.layout-container {
    background: #fafafa;
    min-height: 100vh;
    padding: 20px 0;
}

.content-container {
    width: 100%;
    max-width: 600px;
    margin: auto;
}

.microsite-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.org-header {
    text-align: center;
    margin-bottom: -10px;
}

.org-name {
    font-size: 0.9rem;
    color: #777;
}

.hero-section {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.hero-section-contain {
    background: #f3f4f6;
    min-height: clamp(220px, 48vw, 460px);
    max-height: min(68vh, 520px);
}

.hero-img-trigger {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: zoom-in;
}

.hero-img {
    width: 100%;
    display: block;
}

.hero-img-contain {
    height: 100%;
    min-height: inherit;
    max-height: inherit;
}

.hero-section-cover {
    background: transparent;
    min-height: auto;
    max-height: none;
}

.hero-section-cover .hero-img-trigger {
    height: auto;
}

.hero-img-cover {
    height: auto;
    min-height: 0;
    max-height: none;
}

.hero-caption {
    position: absolute;
    bottom: 12px;
    left: 16px;
    right: 16px;
    color: white;
    font-size: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.hero-carousel-btn:hover {
    background: rgba(0, 0, 0, 0.6);
}

.hero-carousel-btn-prev {
    left: 10px;
}

.hero-carousel-btn-next {
    right: 10px;
}

.hero-carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.hero-carousel-dot {
    width: 8px;
    height: 8px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    padding: 0;
}

.hero-carousel-dot.active {
    background: #fff;
}

@media (max-width: 576px) {
    .hero-section-contain {
        min-height: clamp(180px, 58vw, 280px);
        max-height: 56vh;
    }

    .hero-section {
        border-radius: 12px;
    }

    .hero-carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }

    .hero-caption {
        left: 12px;
        right: 12px;
        bottom: 10px;
        font-size: 0.9rem;
    }
}

.card-section {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.title-text {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.subtitle-text {
    color: #666;
    margin-bottom: 16px;
}

.body-text {
    color: #333;
    line-height: 1.6;
}

.event-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.event-details .event-row {
    margin-bottom: 6px;
    color: #444;
}

.notice-card {
    background: #fff3cd;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
}

.loading-container {
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 4px solid #ddd;
    border-top-color: #007bff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Share button – YouTube-style: icon + label, opens floating share panel */
.share-bar {
    margin-bottom: 16px;
}

.share-trigger-wrapper {
    position: relative;
    display: inline-block;
}

/* Invisible overlay to close share menu when clicking outside */
.share-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99;
    cursor: default;
}

.share-btn {
    position: relative;
    z-index: 100;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    min-width: 48px;
    padding: 10px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #0f0f0f;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 18px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.share-btn:hover {
    background: rgba(0, 0, 0, 0.08);
}

.share-btn:focus-visible {
    outline: 2px solid #065fd4;
    outline-offset: 2px;
}

.share-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.share-btn-icon svg {
    width: 20px;
    height: 20px;
}

.share-btn-label {
    white-space: nowrap;
}

/* Floating share panel (YouTube-style) */
.share-panel {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    min-width: 220px;
    padding: 8px 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    z-index: 100;
    list-style: none;
}

.share-panel-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    font-size: 0.95rem;
    color: #0f0f0f;
    background: transparent;
    border: none;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.1s ease;
    box-sizing: border-box;
}

.share-panel-item:hover {
    background: rgba(0, 0, 0, 0.06);
}

.share-panel-item:focus-visible {
    outline: 2px solid #065fd4;
    outline-offset: -2px;
}

.share-panel-copy {
    font-family: inherit;
}

.share-panel-icon {
    flex-shrink: 0;
    width: 24px;
    text-align: center;
    font-size: 1rem;
}

.share-panel-item span:last-child {
    flex: 1;
}

/* RSVP widget */
.rsvp-widget {
    position: relative;
}

.rsvp-name-list ul li:last-child {
    border-bottom: none !important;
}

/* RSVP modal */
.rsvp-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
}

.rsvp-modal-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    overflow: hidden;
}

.rsvp-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.rsvp-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0 4px;
}

.rsvp-modal-close:hover {
    color: #000;
}

.rsvp-modal-body {
    padding: 20px;
}

/* Announcements (kanban-style cards, bounded height + pager) */
.announcement-board-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.announcement-board-scroll {
    max-height: 420px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    margin-bottom: 12px;
}

.announcement-kanban {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
    align-items: start;
}

.announcement-card {
    background: #f8f9fb;
    border: 1px solid #e8eaef;
    border-radius: 12px;
    padding: 14px 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 120px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.announcement-type-pill {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #0d47a1;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 8px;
    padding: 8px 12px;
    line-height: 1.2;
    align-self: flex-start;
}

.announcement-type-pill--urgent {
    color: #b71c1c;
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
}

.announcement-body {
    font-size: 0.95rem;
    color: #222;
    line-height: 1.55;
    word-break: break-word;
}

.announcement-meta {
    font-size: 0.75rem;
    color: #666;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #e8eaef;
}

.announcement-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.announcement-pager-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0d47a1;
    background: #fff;
    border: 1px solid #90caf9;
    border-radius: 10px;
    cursor: pointer;
}

.announcement-pager-btn:hover:not(:disabled) {
    background: #e3f2fd;
}

.announcement-pager-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.announcement-pager-info {
    font-size: 0.85rem;
    color: #555;
}

/* Sales widget (read-only, phase 1) */
.sales-widget .sales-product-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sales-product-card {
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 16px;
    background: #fafafa;
}

.sales-product-header {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.sales-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e8f5e9;
    color: #1b5e20;
}

.sales-badge-muted {
    background: #eceff1;
    color: #37474f;
}

.sales-product-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.sales-product-desc {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.sales-product-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.sales-product-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.sales-product-meta {
    margin: 0;
    font-size: 0.9rem;
}

.sales-meta-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 8px;
    margin-bottom: 6px;
}

.sales-meta-row dt {
    margin: 0;
    color: #777;
    font-weight: 500;
}

.sales-meta-row dd {
    margin: 0;
}

.sales-phase-note {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed #e0e0e0;
}

.sales-purchaser-board {
    padding-top: 8px;
    border-top: 1px solid #eee;
}

.sales-purchaser-list li:last-child {
    border-bottom: none !important;
}