/* ============================================================================
   Faculdade de Direito · Universidade Mandume Ya Ndemufayo
   41 anos de história e tradição · 2026
   Design system — tokens, componentes, temas claro/escuro
   Paleta institucional extraída do logótipo: grená #560507 · dourado #B38742
   ========================================================================= */

/* ---------------------------------------------------------------- 1. Tokens */
:root {
    color-scheme: light;

    /* Grená institucional */
    --brand-950: #23070a;
    --brand-900: #3a070b;
    --brand-800: #560507;
    --brand-700: #6e1017;
    --brand-600: #8a1a24;
    --brand-500: #a62a36;
    --brand-400: #c4515c;
    --brand-100: #f6e7e8;

    /* Dourado institucional */
    --gold-700: #8a6528;
    --gold-600: #9c7433;
    --gold-500: #b38742;
    --gold-400: #c9a15a;
    --gold-300: #dcbe86;
    --gold-200: #efdcb8;

    /* Superfícies e texto (claro) — marfim quente */
    --bg: #fbf8f5;
    --bg-alt: #f4ece7;
    --surface: #ffffff;
    --surface-2: #fbf7f4;
    --surface-inset: #f5ece7;
    --text: #1e1416;
    --text-2: #4c3c3f;
    --muted: #7b6a6d;
    --border: #ece1db;
    --border-strong: #dccdc4;

    --primary: var(--brand-800);
    --primary-hover: var(--brand-700);
    --link: var(--brand-600);
    --accent: var(--gold-500);
    --accent-text: var(--gold-700);
    --on-accent: #2a0508;

    --tag-bg: var(--brand-100);
    --tag-text: var(--brand-700);

    --success: #17694e;
    --success-bg: #e6f4ee;
    --warning: #8a5a10;
    --warning-bg: #fbf1de;
    --danger: #b3261e;
    --danger-bg: #fceceb;
    --info: #3f566e;
    --info-bg: #edf1f6;

    --ring: rgba(138, 26, 36, 0.22);

    /* Cabeçalho e rodapé — sempre escuros nos dois temas */
    --topbar-bg: rgba(58, 7, 11, 0.94);
    --topbar-solid: #3a070b;
    --footer-bg: #23070a;

    /* Sombras */
    --shadow-xs: 0 1px 2px rgba(42, 5, 8, 0.06);
    --shadow-sm: 0 2px 8px -2px rgba(42, 5, 8, 0.1), 0 1px 2px rgba(42, 5, 8, 0.05);
    --shadow-md: 0 10px 26px -10px rgba(42, 5, 8, 0.16), 0 2px 6px -2px rgba(42, 5, 8, 0.07);
    --shadow-lg: 0 26px 54px -18px rgba(42, 5, 8, 0.24), 0 8px 18px -10px rgba(42, 5, 8, 0.12);
    --shadow-accent: 0 12px 28px -10px rgba(179, 135, 66, 0.55);

    /* Raios */
    --r-xs: 6px;
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;
    --r-full: 999px;

    /* Tipografia */
    --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Newsreader', 'Iowan Old Style', Georgia, 'Times New Roman', serif;

    --step--2: clamp(0.72rem, 0.71rem + 0.05vw, 0.76rem);
    --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.88rem);
    --step-0: clamp(1rem, 0.98rem + 0.12vw, 1.06rem);
    --step-1: clamp(1.12rem, 1.06rem + 0.3vw, 1.3rem);
    --step-2: clamp(1.3rem, 1.18rem + 0.6vw, 1.7rem);
    --step-3: clamp(1.55rem, 1.32rem + 1.1vw, 2.25rem);
    --step-4: clamp(1.9rem, 1.5rem + 1.9vw, 2.95rem);
    --step-5: clamp(2.25rem, 1.6rem + 3vw, 3.9rem);

    /* Layout */
    --container: 1180px;
    --gutter: clamp(1rem, 4vw, 2rem);
    --section-y: clamp(3.5rem, 7vw, 6.5rem);

    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Tema escuro — preferência do sistema (sem escolha explícita de "claro") */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) {
        color-scheme: dark;

        --bg: #120a0c;
        --bg-alt: #190f12;
        --surface: #1c1215;
        --surface-2: #23171b;
        --surface-inset: #291c20;
        --text: #f3e9ea;
        --text-2: #c9b8ba;
        --muted: #9a878a;
        --border: #35242a;
        --border-strong: #4a3238;

        --primary: var(--brand-500);
        --primary-hover: var(--brand-400);
        --link: #e9aab1;
        --accent: var(--gold-400);
        --accent-text: var(--gold-300);

        --tag-bg: rgba(196, 81, 92, 0.18);
        --tag-text: #e9aab1;

        --success: #6fd4ac;
        --success-bg: rgba(23, 105, 78, 0.2);
        --warning: #e8bd6d;
        --warning-bg: rgba(138, 90, 16, 0.24);
        --danger: #f0a09a;
        --danger-bg: rgba(179, 38, 30, 0.22);
        --info: #a8bdd4;
        --info-bg: rgba(63, 86, 110, 0.26);

        --ring: rgba(201, 161, 90, 0.32);
        --topbar-bg: rgba(13, 6, 8, 0.9);
        --topbar-solid: #0d0608;
        --footer-bg: #0a0405;

        --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
        --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.5);
        --shadow-md: 0 12px 28px -12px rgba(0, 0, 0, 0.6);
        --shadow-lg: 0 28px 56px -20px rgba(0, 0, 0, 0.7);
    }
}

/* Tema escuro — escolha explícita do utilizador */
:root[data-theme='dark'] {
    color-scheme: dark;

    --bg: #120a0c;
    --bg-alt: #190f12;
    --surface: #1c1215;
    --surface-2: #23171b;
    --surface-inset: #291c20;
    --text: #f3e9ea;
    --text-2: #c9b8ba;
    --muted: #9a878a;
    --border: #35242a;
    --border-strong: #4a3238;

    --primary: var(--brand-500);
    --primary-hover: var(--brand-400);
    --link: #e9aab1;
    --accent: var(--gold-400);
    --accent-text: var(--gold-300);

    --tag-bg: rgba(196, 81, 92, 0.18);
    --tag-text: #e9aab1;

    --success: #6fd4ac;
    --success-bg: rgba(23, 105, 78, 0.2);
    --warning: #e8bd6d;
    --warning-bg: rgba(138, 90, 16, 0.24);
    --danger: #f0a09a;
    --danger-bg: rgba(179, 38, 30, 0.22);
    --info: #a8bdd4;
    --info-bg: rgba(63, 86, 110, 0.26);

    --ring: rgba(201, 161, 90, 0.32);
    --topbar-bg: rgba(13, 6, 8, 0.9);
    --topbar-solid: #0d0608;
    --footer-bg: #0a0405;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 12px 28px -12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 28px 56px -20px rgba(0, 0, 0, 0.7);
}

/* ----------------------------------------------------------- 2. Reset / base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-sans);
    font-size: var(--step-0);
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    display: flex;
    flex-direction: column;
}

body > main {
    flex: 1;
}

img,
svg {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.015em;
    text-wrap: balance;
    margin: 0;
}

h1:has(> .icon),
h2:has(> .icon),
h3:has(> .icon),
h4:has(> .icon) {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

p {
    text-wrap: pretty;
}

::selection {
    background: var(--gold-300);
    color: #2a0508;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: var(--r-xs);
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    padding: 0.7rem 1.1rem;
    border-radius: var(--r-sm);
    background: var(--gold-400);
    color: #2a0508;
    font-weight: 700;
    transition: top 0.2s var(--ease);
}

.skip-link:focus {
    top: 1rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* ------------------------------------------------------ 3. Layout primitivos */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.container.narrow-container {
    max-width: 900px;
}

.section {
    padding-block: var(--section-y);
}

.section-tight {
    padding-block: clamp(2.25rem, 4vw, 3.25rem);
}

.alt-section {
    background: var(--bg-alt);
    border-block: 1px solid var(--border);
}

.stack {
    display: grid;
    gap: 1.5rem;
}

/* --------------------------------------------------------- 4. Micro-elementos */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: var(--step--2);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-text);
    margin-bottom: 0.85rem;
}

.eyebrow::before {
    content: '';
    width: 1.75rem;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    opacity: 0.65;
}

.on-dark .eyebrow,
.hero .eyebrow {
    color: var(--gold-300);
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: var(--r-full);
    background: var(--tag-bg);
    color: var(--tag-text);
    font-size: var(--step--2);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.3rem 0.65rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: var(--r-full);
    padding: 0.25rem 0.65rem;
    font-size: var(--step--2);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.badge-pendente {
    background: var(--info-bg);
    color: var(--info);
}

.badge-confirmada {
    background: var(--success-bg);
    color: var(--success);
}

.badge-aguardando_pagamento {
    background: var(--warning-bg);
    color: var(--warning);
}

.badge-cancelada {
    background: var(--danger-bg);
    color: var(--danger);
}

.info-card .badge {
    margin-top: 0.75rem;
}

.badge + p,
.info-card .badge + p {
    margin-top: 0.75rem;
}

.section-heading {
    max-width: 62ch;
    margin-bottom: clamp(1.75rem, 3vw, 2.75rem);
}

#formacoes-aniversario .section-heading {
    max-width: none;
}

.section-heading h2 {
    font-size: var(--step-3);
    margin: 0;
}

.section-heading p {
    color: var(--muted);
    margin: 0.85rem 0 0;
}

.heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: clamp(1.75rem, 3vw, 2.75rem);
}

.heading-row .section-heading {
    margin-bottom: 0;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 650;
    color: var(--link);
    border-bottom: 1px solid transparent;
    transition: gap 0.2s var(--ease), border-color 0.2s var(--ease);
}

.text-link svg {
    width: 1.05em;
    height: 1.05em;
}

.text-link:hover {
    gap: 0.65rem;
    border-bottom-color: currentColor;
}

.icon {
    width: 1.25rem;
    height: 1.25rem;
    flex: none;
    vertical-align: -0.2em;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-sm {
    width: 1rem;
    height: 1rem;
}

.icon-lg {
    width: 1.6rem;
    height: 1.6rem;
}

/* -------------------------------------------------------------- 5. Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid transparent;
    border-radius: var(--r-full);
    padding: 0.8rem 1.4rem;
    font: inherit;
    font-size: var(--step--1);
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.2;
    cursor: pointer;
    text-align: center;
    transition: transform 0.18s var(--ease), box-shadow 0.22s var(--ease),
        background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn:active {
    transform: translateY(1px) scale(0.995);
}

.btn-primary {
    background: linear-gradient(160deg, var(--gold-400), var(--gold-500));
    color: var(--on-accent);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
    backdrop-filter: blur(6px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-2px);
}

.btn-outline {
    background: var(--surface);
    border-color: var(--border-strong);
    color: var(--text);
    box-shadow: var(--shadow-xs);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-ghost {
    background: transparent;
    color: var(--link);
}

.btn-ghost:hover {
    background: var(--surface-inset);
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 0.95rem 1.7rem;
    font-size: var(--step-0);
}

.btn-small {
    padding: 0.45rem 0.85rem;
    font-size: var(--step--2);
    border-radius: var(--r-sm);
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

/* -------------------------------------------------------- 6. Barra de aviso */
.announce {
    background: var(--brand-950);
    color: rgba(255, 255, 255, 0.72);
    font-size: var(--step--1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.announce-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 42px;
    flex-wrap: wrap;
}

.announce-facts {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    flex-wrap: wrap;
}

.announce-facts span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.announce-facts .icon {
    color: var(--gold-400);
}

.announce-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--gold-300);
    font-weight: 650;
}

.announce-cta:hover {
    color: #fff;
}

@media (max-width: 640px) {
    .announce-facts .announce-hide-sm {
        display: none;
    }
}

/* ------------------------------------------------------- 7. Cabeçalho / nav */
.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--topbar-bg);
    backdrop-filter: blur(14px) saturate(140%);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}

.topbar.is-scrolled {
    box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.8);
    background: var(--topbar-solid);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 76px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
}

.brand-mark {
    width: 44px;
    height: 44px;
    flex: none;
    overflow: hidden;
    border-radius: var(--r-full);
    background: #fff;
    box-shadow: 0 0 0 1px rgba(201, 161, 90, 0.6), var(--shadow-sm);
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-text {
    display: grid;
    min-width: 0;
}

.brand-text strong {
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
    white-space: nowrap;
}

.brand-text small {
    font-size: var(--step--2);
    color: rgba(255, 255, 255, 0.62);
    letter-spacing: 0.02em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.9rem;
    border-radius: var(--r-full);
    font-size: var(--step--1);
    font-weight: 650;
    color: rgba(255, 255, 255, 0.76);
    transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.main-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
}

.main-nav a[aria-current='page'] {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.main-nav a[aria-current='page']::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0.3rem;
    translate: -50% 0;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: var(--gold-400);
}

.main-nav .nav-admin {
    color: rgba(255, 255, 255, 0.5);
}

.main-nav .nav-admin:hover {
    color: rgba(255, 255, 255, 0.9);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.9rem;
    border: none;
    border-radius: var(--r-full);
    background: transparent;
    font: inherit;
    font-size: var(--step--1);
    font-weight: 650;
    color: rgba(255, 255, 255, 0.76);
    cursor: pointer;
    transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle[aria-current='page'] {
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
}

.nav-dropdown-caret {
    transition: transform 0.2s var(--ease);
}

.nav-dropdown.is-open .nav-dropdown-caret {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    list-style: none;
    margin: 0;
    padding: 0.4rem;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 210px;
    background: var(--topbar-solid);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
    z-index: 50;
}

.nav-dropdown.is-open .nav-dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: none;
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.6rem 0.75rem;
    border-radius: var(--r-sm, 8px);
    font-size: var(--step--1);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.78);
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
}

.nav-dropdown-menu a[aria-current='page'] {
    color: var(--gold-400);
}

.nav-mobile-cta {
    display: none;
}

.nav-tools {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--r-full);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.35);
}

.theme-toggle .icon-moon {
    display: none;
}

:root[data-theme='dark'] .theme-toggle .icon-moon {
    display: block;
}

:root[data-theme='dark'] .theme-toggle .icon-sun {
    display: none;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) .theme-toggle .icon-moon {
        display: block;
    }

    :root:not([data-theme='light']) .theme-toggle .icon-sun {
        display: none;
    }
}

.nav-toggle {
    display: none;
}

.nav-toggle .icon-x {
    display: none;
}

[data-nav='open'] .nav-toggle .icon-x {
    display: block;
}

[data-nav='open'] .nav-toggle .icon-menu {
    display: none;
}

@media (max-width: 980px) {
    .brand-text small {
        display: none;
    }
}

@media (max-width: 900px) {
    .nav-toggle {
        display: inline-grid;
    }

    .nav-cta {
        display: none;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 0.75rem var(--gutter) 1.15rem;
        background: var(--topbar-solid);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: var(--shadow-lg);
        visibility: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
        max-height: calc(100vh - 76px);
        overflow-y: auto;
    }

    [data-nav='open'] .main-nav {
        visibility: visible;
        opacity: 1;
        transform: none;
    }

    .main-nav ul {
        display: grid;
        gap: 0.15rem;
    }

    .main-nav a,
    .nav-dropdown-toggle {
        border-radius: var(--r-md);
        padding: 0.8rem 0.9rem;
        font-size: var(--step-0);
        width: 100%;
        justify-content: space-between;
    }

    .main-nav a[aria-current='page']::after {
        left: 0.9rem;
        bottom: auto;
        top: 50%;
        translate: 0 -50%;
        width: 3px;
        height: 18px;
    }

    .main-nav a[aria-current='page'] {
        padding-left: 1.35rem;
    }

    .main-nav .nav-dropdown-menu {
        position: static;
        visibility: visible;
        opacity: 1;
        transform: none;
        background: rgba(255, 255, 255, 0.04);
        border: none;
        box-shadow: none;
        padding: 0.15rem 0 0.15rem 0.9rem;
        display: none;
    }

    .main-nav .nav-dropdown.is-open .nav-dropdown-menu {
        display: grid;
        gap: 0.1rem;
    }

    .nav-mobile-cta {
        display: block;
        margin-top: 0.5rem;
    }

    .nav-mobile-cta .btn {
        display: flex;
        justify-content: center;
        width: 100%;
    }
}

/* ---------------------------------------------------------------- 8. Hero */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(3rem, 6vw, 5.5rem) clamp(3.75rem, 8vw, 7rem);
    background: radial-gradient(125% 125% at 12% 0%, #6e1017 0%, #3a070b 48%, #180406 100%);
    color: #fff;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 68px 68px;
    -webkit-mask-image: radial-gradient(85% 75% at 72% 15%, #000 0%, transparent 78%);
    mask-image: radial-gradient(85% 75% at 72% 15%, #000 0%, transparent 78%);
}

.hero::after {
    content: '';
    position: absolute;
    z-index: -1;
    width: min(560px, 70vw);
    aspect-ratio: 1;
    right: -12%;
    top: -28%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 161, 90, 0.34), transparent 62%);
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: center;
}

.hero-copy h1 {
    font-size: var(--step-5);
    line-height: 1.04;
    margin: 0 0 1.1rem;
    max-width: 22ch;
}

.hero-copy h1 em {
    font-style: italic;
    color: var(--gold-300);
}

.hero-lead {
    font-size: var(--step-1);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
    max-width: 56ch;
    margin: 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin: 2rem 0 1.75rem;
}

.hero-meta {
    list-style: none;
    margin: 0;
    padding: 1.25rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: var(--step--1);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.hero-meta li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-meta .icon {
    color: var(--gold-400);
}

/* Emblema comemorativo + nota do tema */
.hero-aside {
    display: grid;
    gap: clamp(1rem, 2vw, 1.4rem);
}

.logo-card {
    margin: 0;
    padding: clamp(0.9rem, 2vw, 1.4rem);
    border-radius: var(--r-xl);
    background: #fff;
    border: 1px solid rgba(201, 161, 90, 0.55);
    box-shadow: var(--shadow-lg), 0 0 0 6px rgba(201, 161, 90, 0.12);
}

.logo-emblem {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: var(--r-md);
}

.theme-note {
    padding: clamp(1.1rem, 2.4vw, 1.5rem);
    border-radius: var(--r-lg);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
}

.theme-note h2 {
    font-size: var(--step-2);
    margin: 0.9rem 0 0.5rem;
}

.theme-note p {
    margin: 0;
    font-size: var(--step--1);
    color: rgba(255, 255, 255, 0.76);
}

.card-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--r-full);
    background: rgba(201, 161, 90, 0.18);
    border: 1px solid rgba(201, 161, 90, 0.4);
    color: var(--gold-300);
    font-size: var(--step--2);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* --------------------------------------------------- 9. Faixa de estatísticas */
.stats-band {
    background: var(--brand-950);
    color: #fff;
    padding-block: clamp(1.75rem, 3.5vw, 2.5rem);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1rem, 2.5vw, 2rem);
    margin: 0;
}

.stats-grid > div {
    display: flex;
    flex-direction: column-reverse;
    gap: 0.3rem;
    text-align: center;
}

.stats-grid dt {
    font-size: var(--step--2);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.58);
}

.stats-grid dd {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.2rem);
    font-weight: 600;
    line-height: 1;
    color: #fff;
}

.stats-grid dd span {
    color: var(--gold-400);
}

@media (max-width: 720px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem 1rem;
    }
}

/* ----------------------------------------------------- 10. Cartões / grelhas */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: clamp(1.15rem, 2.2vw, 1.75rem);
}

.info-card,
.news-card,
.panel,
.form-card,
.side-card,
.stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
}

.info-card {
    padding: clamp(1.4rem, 2.5vw, 1.9rem);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.info-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
}

.info-card h3 {
    font-size: var(--step-1);
    margin: 0 0 0.55rem;
}

.info-card p {
    margin: 0;
    color: var(--muted);
    font-size: var(--step--1);
    text-align: justify;
}

.info-card p + p {
    margin-top: 0.75rem;
}

.info-card.offering-open {
    border-color: var(--success);
    box-shadow: 0 0 0 1.5px var(--success) inset, var(--shadow-sm);
}

.info-card.offering-full {
    opacity: 0.65;
}

.card-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: var(--r-md);
    margin-bottom: 1.15rem;
    color: var(--primary);
    background: linear-gradient(155deg, rgba(86, 5, 7, 0.1), rgba(179, 135, 66, 0.18));
    border: 1px solid var(--border);
}

:root[data-theme='dark'] .card-icon {
    color: var(--gold-300);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) .card-icon {
        color: var(--gold-300);
    }
}

/* Notícias */
.news-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
}

.news-media {
    position: relative;
    overflow: hidden;
    background: var(--surface-inset);
}

.news-image {
    aspect-ratio: 16 / 10;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s var(--ease);
}

.news-card:hover .news-image {
    transform: scale(1.06);
}

.news-media .tag {
    position: absolute;
    left: 0.9rem;
    top: 0.9rem;
    background: rgba(35, 7, 10, 0.78);
    color: #fff;
    backdrop-filter: blur(8px);
}

.news-body {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: clamp(1.1rem, 2vw, 1.45rem);
    flex: 1;
}

.news-body h3 {
    font-size: var(--step-1);
    margin: 0;
}

.news-body h3 a:hover {
    color: var(--link);
}

.news-body p {
    margin: 0;
    color: var(--muted);
    font-size: var(--step--1);
}

.news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
    padding-top: 0.9rem;
    border-top: 1px solid var(--border);
    font-size: var(--step--1);
    color: var(--muted);
}

.news-date {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.news-card.featured {
    grid-column: 1 / -1;
}

@media (min-width: 860px) {
    .news-card.featured {
        display: grid;
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
        align-items: stretch;
    }

    .news-card.featured .news-media {
        height: 100%;
    }

    .news-card.featured .news-image {
        height: 100%;
        aspect-ratio: auto;
        min-height: 340px;
    }

    .news-card.featured .news-body {
        padding: clamp(1.5rem, 3vw, 2.5rem);
        justify-content: center;
    }

    .news-card.featured h3 {
        font-size: var(--step-3);
    }

    .news-card.featured p {
        font-size: var(--step-0);
    }
}

/* Estado vazio */
.empty-state {
    grid-column: 1 / -1;
    display: grid;
    justify-items: center;
    gap: 0.6rem;
    text-align: center;
    padding: clamp(2.5rem, 6vw, 4rem);
    border: 1px dashed var(--border-strong);
    border-radius: var(--r-lg);
    background: var(--surface-2);
    color: var(--muted);
}

.empty-state .icon {
    width: 2.25rem;
    height: 2.25rem;
    color: var(--border-strong);
}

.empty-state strong {
    font-family: var(--font-display);
    font-size: var(--step-1);
    font-weight: 600;
    color: var(--text);
}

.empty-state p {
    margin: 0;
    max-width: 42ch;
    font-size: var(--step--1);
}

/* ------------------------------------------------- 11. Cabeçalhos de página */
.page-hero {
    position: relative;
    padding-block: clamp(2.5rem, 5vw, 3.75rem) clamp(1.75rem, 3vw, 2.5rem);
    background: linear-gradient(180deg, var(--bg-alt), var(--bg));
    border-bottom: 1px solid var(--border);
}

.page-hero h1 {
    font-size: var(--step-4);
    margin: 0;
    max-width: 30ch;
}

.page-hero p {
    color: var(--muted);
    margin: 0.9rem 0 0;
    max-width: 62ch;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    list-style: none;
    margin: 0 0 1.1rem;
    padding: 0;
    font-size: var(--step--1);
    color: var(--muted);
}

.breadcrumbs a:hover {
    color: var(--link);
}

.breadcrumbs li:not(:last-child)::after {
    content: '/';
    margin-left: 0.45rem;
    opacity: 0.5;
}

.breadcrumbs [aria-current='page'] {
    color: var(--text);
    font-weight: 600;
}

/* -------------------------------------------------------------- 12. Artigo */
.article-page {
    padding-top: clamp(1.75rem, 3.5vw, 2.75rem);
    background: linear-gradient(180deg, var(--bg-alt), var(--bg) 340px);
}

.article-wrap {
    max-width: 820px;
}

.article-header h1 {
    font-size: var(--step-4);
    margin: 0 0 1rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    flex-wrap: wrap;
    font-size: var(--step--1);
    color: var(--muted);
    margin: 0 0 1.75rem;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.article-image {
    aspect-ratio: 16 / 9;
    border-radius: var(--r-xl);
    background-size: cover;
    background-position: center;
    background-color: var(--surface-inset);
    margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
    box-shadow: var(--shadow-md);
}

.prose {
    font-size: var(--step-0);
    line-height: 1.8;
    color: var(--text-2);
}

.prose > p {
    margin: 0 0 1.35em;
}

.prose > p:first-child {
    font-size: 1.14em;
    line-height: 1.65;
    color: var(--text);
}

.prose > p:first-child::first-letter {
    float: left;
    font-family: var(--font-display);
    font-size: 3.1em;
    line-height: 0.82;
    font-weight: 600;
    padding: 0.06em 0.1em 0 0;
    color: var(--primary);
}

:root[data-theme='dark'] .prose > p:first-child::first-letter {
    color: var(--gold-300);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) .prose > p:first-child::first-letter {
        color: var(--gold-300);
    }
}

.article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: clamp(2rem, 4vw, 3rem);
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

/* -------------------------------------------------------- 13. Formulários */
.form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: start;
}

.form-card,
.panel {
    padding: clamp(1.25rem, 3vw, 2rem);
}

.form-section + .form-section {
    margin-top: 1.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border);
}

.form-section > legend,
.form-section-title {
    font-family: var(--font-display);
    font-size: var(--step-1);
    font-weight: 600;
    padding: 0;
    margin-bottom: 0.35rem;
}

.form-section {
    border: 0;
    padding: 0;
    margin: 0;
}

.form-section-hint {
    color: var(--muted);
    font-size: var(--step--1);
    margin: 0 0 1.25rem;
}

.form-grid {
    display: grid;
    gap: 1.1rem;
}

.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.span-2 {
    grid-column: 1 / -1;
}

.field {
    display: grid;
    gap: 0.4rem;
}

.field > label {
    font-size: var(--step--1);
    font-weight: 650;
    color: var(--text);
}

.req {
    color: var(--danger);
    margin-left: 0.15rem;
}

.field-hint {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: var(--step--2);
    color: var(--muted);
}

input,
select,
textarea {
    width: 100%;
    font: inherit;
    font-size: var(--step--1);
    color: var(--text);
    background-color: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-md);
    padding: 0.75rem 0.9rem;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

input::placeholder,
textarea::placeholder {
    color: var(--muted);
    opacity: 0.75;
}

textarea {
    resize: vertical;
    min-height: 7rem;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2367758c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 1.05rem;
    padding-right: 2.5rem;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--ring);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
    border-color: var(--danger);
    background-color: var(--danger-bg);
}

.field-error {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: var(--step--2);
    font-weight: 600;
    color: var(--danger);
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: var(--step--1);
    font-weight: 600;
    cursor: pointer;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: var(--surface-2);
}

.checkbox-row input {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.1rem;
    flex: none;
    accent-color: var(--primary);
    padding: 0;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.form-actions .field-hint {
    max-width: 34ch;
}

/* Cartão lateral */
.side-card {
    padding: clamp(1.25rem, 2.5vw, 1.6rem);
    position: sticky;
    top: 6.5rem;
}

.side-card h2 {
    font-size: var(--step-1);
    margin: 0 0 1rem;
}

.side-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.side-list li {
    display: flex;
    gap: 0.75rem;
    font-size: var(--step--1);
    color: var(--muted);
}

.side-list strong {
    display: block;
    color: var(--text);
}

.side-list .icon {
    color: var(--accent-text);
    margin-top: 0.15rem;
}

.step-list {
    counter-reset: step;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.9rem;
}

.step-list li {
    counter-increment: step;
    display: flex;
    gap: 0.75rem;
    font-size: var(--step--1);
    color: var(--muted);
}

.step-list li::before {
    content: counter(step);
    flex: none;
    width: 1.65rem;
    height: 1.65rem;
    display: grid;
    place-items: center;
    border-radius: var(--r-full);
    background: var(--surface-inset);
    border: 1px solid var(--border);
    color: var(--primary);
    font-size: var(--step--2);
    font-weight: 800;
}

.side-divider {
    height: 1px;
    background: var(--border);
    margin-block: 1.25rem;
}

/* ------------------------------------------------------- 13b. Loading overlay */
.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
}

.loading-overlay[hidden] {
    display: none;
}

.loading-overlay-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 22rem;
    padding: 2rem 2.25rem;
    border-radius: var(--r-lg);
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.loading-spinner {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--r-full);
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    animation: loading-spin 0.8s linear infinite;
}

.loading-overlay-card p {
    margin: 0;
    color: var(--muted);
    font-size: var(--step--1);
}

@keyframes loading-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ------------------------------------------------- 13c. Registration highlight modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    overflow-y: auto;
}

.modal-overlay[hidden] {
    display: none;
}

.modal-card {
    position: relative;
    width: 100%;
    max-width: 34rem;
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
    padding: 2.25rem;
    border-radius: var(--r-lg);
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: var(--r-full);
    background: var(--surface-2);
    color: var(--muted);
    cursor: pointer;
}

.modal-close:hover {
    background: var(--surface-inset);
    color: var(--text);
}

.modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto;
    border-radius: var(--r-full);
}

.modal-icon-success {
    background: var(--success-bg);
    color: var(--success);
}

.modal-card h2 {
    margin: 1rem 0 0.5rem;
}

.modal-lead {
    color: var(--muted);
}

/* ------------------------------------------------------------- 14. Alertas */
.flash-stack {
    width: 100%;
    max-width: var(--container);
    margin: 1.25rem auto 0;
    padding-inline: var(--gutter);
    display: grid;
    gap: 0.75rem;
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border-radius: var(--r-md);
    padding: 0.95rem 1.1rem;
    font-size: var(--step--1);
    font-weight: 600;
    border: 1px solid;
}

.alert .icon {
    margin-top: 0.1rem;
}

.alert ul {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 0.25rem;
    font-weight: 500;
}

.alert-success {
    background: var(--success-bg);
    color: var(--success);
    border-color: color-mix(in srgb, var(--success) 30%, transparent);
}

.alert-error {
    background: var(--danger-bg);
    color: var(--danger);
    border-color: color-mix(in srgb, var(--danger) 30%, transparent);
}

@supports not (color: color-mix(in srgb, red, blue)) {
    .alert-success {
        border-color: rgba(23, 105, 78, 0.3);
    }

    .alert-error {
        border-color: rgba(169, 47, 59, 0.3);
    }
}

/* -------------------------------------------------------------- 15. Faixa CTA */
.cta-band {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #fff;
    background: radial-gradient(120% 140% at 85% 10%, #6e1017 0%, #3a070b 46%, #180406 100%);
}

.cta-band::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset: auto auto -60% -10%;
    width: min(460px, 60vw);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 161, 90, 0.3), transparent 62%);
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1.5rem, 4vw, 3rem);
    flex-wrap: wrap;
}

.cta-inner h2 {
    font-size: var(--step-3);
    margin: 0 0 0.6rem;
    max-width: 24ch;
}

.cta-inner p {
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    max-width: 48ch;
}

/* -------------------------------------------------------------- 16. Admin */
.admin-hero {
    background: linear-gradient(180deg, var(--brand-900), var(--brand-800));
    color: #fff;
    border-bottom: 0;
}

.admin-hero h1 {
    color: #fff;
}

.admin-hero p {
    color: rgba(255, 255, 255, 0.7);
}

.admin-hero .eyebrow {
    color: var(--gold-300);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: clamp(0.85rem, 1.6vw, 1.25rem);
    margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1.15rem 1.25rem;
}

.stat-icon {
    width: 42px;
    height: 42px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: var(--r-sm);
    background: var(--surface-inset);
    border: 1px solid var(--border);
    color: var(--primary);
}

.stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 600;
    line-height: 1.05;
}

.stat-label {
    display: block;
    font-size: var(--step--2);
    font-weight: 650;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--muted);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(1.25rem, 2.5vw, 1.75rem);
    align-items: start;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.35rem;
}

.panel-header h2 {
    font-size: var(--step-1);
    margin: 0;
}

.panel-header .count {
    font-size: var(--step--2);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.admin-form {
    display: grid;
    gap: 1.1rem;
}

.list-stack {
    display: grid;
    gap: 0.65rem;
    max-height: 30rem;
    overflow-y: auto;
}

.mini-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    padding: 0.8rem 0.95rem;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: var(--surface-2);
    transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.mini-item:hover {
    border-color: var(--border-strong);
    background: var(--surface-inset);
}

.mini-item strong {
    display: block;
    font-size: var(--step--1);
    font-weight: 650;
    line-height: 1.35;
}

.mini-item .mini-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.3rem;
    font-size: var(--step--2);
    color: var(--muted);
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--step--1);
}

th,
td {
    padding: 0.85rem 1rem;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
}

thead th {
    position: sticky;
    top: 0;
    background: var(--surface-2);
    font-size: var(--step--2);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}

tbody tr:last-child td {
    border-bottom: 0;
}

tbody tr {
    transition: background-color 0.15s var(--ease);
}

tbody tr:hover {
    background: var(--surface-2);
}

.cell-strong {
    font-weight: 650;
    color: var(--text);
}

.cell-sub {
    display: block;
    font-size: var(--step--2);
    color: var(--muted);
}

.inline-form {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.inline-form select {
    width: auto;
    min-width: 11rem;
    padding-block: 0.45rem;
    font-size: var(--step--2);
}

.full-width-panel {
    width: 100%;
}

@media (max-width: 820px) {
    .data-table thead {
        display: none;
    }

    .table-wrap {
        border: 0;
        overflow: visible;
    }

    .data-table,
    .data-table tbody,
    .data-table tr,
    .data-table td {
        display: block;
        width: 100%;
    }

    .data-table tr {
        border: 1px solid var(--border);
        border-radius: var(--r-md);
        background: var(--surface-2);
        padding: 0.4rem 0.2rem;
        margin-bottom: 0.75rem;
    }

    .data-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.25rem 1rem;
        border: 0;
        padding: 0.5rem 0.85rem;
        text-align: right;
    }

    /* Sem isto o email longo não encolhe e transborda a célula. */
    .data-table .cell-strong,
    .data-table .cell-sub {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .data-table .cell-sub {
        flex-basis: 100%;
    }

    .data-table td::before {
        content: attr(data-label);
        font-size: var(--step--2);
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--muted);
        text-align: left;
    }

    .data-table td:empty {
        display: none;
    }

    .inline-form {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}

/* Autenticação */
.auth-shell {
    display: flex;
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 30rem;
}

.logout-form {
    display: contents;
}

/* Sub-navegação do painel */
.admin-subnav {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.admin-subnav-inner {
    display: flex;
    gap: clamp(1rem, 2.5vw, 1.75rem);
    flex-wrap: wrap;
    padding-block: 0.85rem;
}

.admin-subnav-inner a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: var(--step--1);
    font-weight: 650;
    color: var(--text-2);
    transition: color 0.2s var(--ease);
}

.admin-subnav-inner a:hover {
    color: var(--primary);
}

#visitas,
#noticias,
#inscricoes {
    scroll-margin-top: 5.5rem;
}

/* Gráfico de visitas (barras) */
.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 0.4rem;
    height: 12rem;
    padding: 0.5rem 0.15rem 0;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}

.chart-bar-col {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    height: 100%;
    min-width: 1.5rem;
}

.chart-bar-value {
    font-size: var(--step--2);
    font-weight: 700;
    color: var(--muted);
    line-height: 1;
}

.chart-bar {
    width: 100%;
    max-width: 1.5rem;
    min-height: 4px;
    border-radius: var(--r-xs) var(--r-xs) 0 0;
    background: linear-gradient(180deg, var(--gold-400), var(--primary));
    transition: transform 0.2s var(--ease);
}

.chart-bar-col:hover .chart-bar {
    transform: scaleY(1.03);
}

.chart-bar-label {
    font-size: var(--step--2);
    color: var(--muted);
    white-space: nowrap;
}

@media (max-width: 640px) {
    .chart-bar-col:nth-child(odd) .chart-bar-label {
        visibility: hidden;
    }
}

/* Ações rápidas (editar / publicar / remover) */
.mini-item {
    flex-wrap: wrap;
    row-gap: 0.5rem;
}

.mini-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex: none;
}

.icon-btn-sm {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: none;
    border: 1px solid var(--border-strong);
    border-radius: var(--r-sm);
    background: var(--surface);
    color: var(--text-2);
    cursor: pointer;
    transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.icon-btn-sm:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--surface-inset);
}

.icon-btn-danger:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: var(--danger-bg);
}

/* Filtros da tabela de inscrições */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.filter-bar .field {
    flex: 1 1 12rem;
}

.filter-bar .filter-date {
    flex: 0 1 10rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-bar .filter-date label {
    margin: 0;
    white-space: nowrap;
}

.action-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

@media (max-width: 820px) {
    .action-cell {
        justify-content: flex-start;
    }
}

/* -------------------------------------------------------------- 17. Rodapé */
.site-footer {
    background: var(--footer-bg);
    color: rgba(255, 255, 255, 0.7);
    padding-block: clamp(2.5rem, 5vw, 3.75rem) 0;
    font-size: var(--step--1);
}

.footer-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: clamp(1.75rem, 4vw, 3rem);
    padding-bottom: 2.5rem;
}

.footer-brand .brand {
    margin-bottom: 1rem;
    color: #fff;
}

.footer-brand p {
    margin: 0;
    max-width: 34ch;
}

.footer-brand .motto {
    margin-top: 0.6rem;
    color: var(--gold-300);
    font-family: var(--font-display);
    font-size: var(--step-0);
}

.site-footer h4 {
    font-family: var(--font-sans);
    font-size: var(--step--2);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 1rem;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}

.footer-links li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a,
.footer-contact a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s var(--ease);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--gold-300);
}

.footer-contact {
    display: grid;
    gap: 0.6rem;
    margin: 0;
}

.footer-contact .icon {
    color: var(--gold-400);
}

.values-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem 1.5rem;
    list-style: none;
    margin: 0;
    padding: 1.35rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    font-size: var(--step--2);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-300);
}

.values-strip li {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
}

.values-strip li:not(:last-child)::after {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.5;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-block: 1.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    font-size: var(--step--2);
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom p {
    margin: 0;
}

.footer-admin-link {
    display: inline-flex;
    align-items: center;
    opacity: 0.35;
    color: inherit;
    transition: opacity 0.2s var(--ease);
}

.footer-admin-link:hover {
    opacity: 0.8;
}

/* ---------------------------------------------------------- 18. Paginação */
.pagination-wrap {
    margin-top: clamp(2rem, 4vw, 3rem);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination a,
.pagination span {
    display: inline-grid;
    place-items: center;
    min-width: 2.6rem;
    height: 2.6rem;
    padding-inline: 0.7rem;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--surface);
    font-size: var(--step--1);
    font-weight: 650;
    color: var(--text-2);
    transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination .is-active span {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

:root[data-theme='dark'] .pagination .is-active span {
    color: #23070a;
    background: var(--gold-400);
    border-color: var(--gold-400);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) .pagination .is-active span {
        color: #23070a;
        background: var(--gold-400);
        border-color: var(--gold-400);
    }
}

.pagination .is-disabled span {
    opacity: 0.45;
    cursor: not-allowed;
}

.pagination .is-dots span {
    border-color: transparent;
    background: transparent;
}

.pagination-summary {
    text-align: center;
    margin: 1rem 0 0;
    font-size: var(--step--2);
    color: var(--muted);
}

/* -------------------------------------------------- 19. Movimento / revelar */
html.js [data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
    transition-delay: var(--reveal-delay, 0ms);
}

html.js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }

    html.js [data-reveal] {
        opacity: 1;
        transform: none;
    }
}

/* ------------------------------------------------------- 20. Responsividade */
@media (max-width: 980px) {
    .hero-inner,
    .form-layout,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .side-card {
        position: static;
    }
}

@media (max-width: 720px) {
    .two-col {
        grid-template-columns: 1fr;
    }

    .footer-wrap {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .hero-meta {
        gap: 0.75rem 1.25rem;
    }

    .cta-inner .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .footer-wrap {
        grid-template-columns: 1fr;
    }

    .hero-actions .btn {
        width: 100%;
    }
}

/* --------------------------------------------------- 20b. Conteúdo do site */
.three-col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.settings-groups {
    display: grid;
    gap: 1.75rem;
}

.add-row {
    margin-top: 1.1rem;
    padding-top: 1.1rem;
    border-top: 1px dashed var(--border);
    align-items: center;
}

.mini-item form.form-grid {
    flex: 1;
    align-items: center;
}

.mini-item .btn-small {
    white-space: nowrap;
}

/* Editor de texto rico (Quill) */
.rich-editor {
    background: var(--surface);
    border-radius: var(--r-md);
    color: var(--text);
}

.ql-toolbar.ql-snow {
    border-color: var(--border-strong);
    border-top-left-radius: var(--r-md);
    border-top-right-radius: var(--r-md);
    background: var(--surface-2);
}

.ql-container.ql-snow {
    border-color: var(--border-strong);
    border-bottom-left-radius: var(--r-md);
    border-bottom-right-radius: var(--r-md);
    font-size: var(--step--1);
    min-height: 12rem;
}

.ql-editor {
    min-height: 12rem;
}

/* Imagens da notícia (capa + galeria) no formulário de admin */
.image-preview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.image-preview img {
    width: 5rem;
    height: 5rem;
    object-fit: cover;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
}

.gallery-manage {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(6rem, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.gallery-manage-item {
    display: grid;
    gap: 0.35rem;
    cursor: default;
}

.gallery-manage-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
}

.gallery-manage-remove {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: var(--step--2);
    color: var(--danger);
}

.gallery-manage-remove input {
    width: auto;
    accent-color: var(--danger);
}

/* Galeria de fotos no artigo público */
.article-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
    gap: 0.85rem;
    margin: 0 0 clamp(1.75rem, 4vw, 2.75rem);
}

.article-gallery-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    transition: transform 0.2s var(--ease);
}

.article-gallery-item:hover img {
    transform: scale(1.03);
}

.prose h2,
.prose h3,
.prose h4 {
    font-family: var(--font-display);
    color: var(--text);
    margin: 1.5em 0 0.6em;
}

.prose ul,
.prose ol {
    margin: 0 0 1.35em;
    padding-left: 1.4em;
}

.prose li {
    margin-bottom: 0.4em;
}

.prose blockquote {
    margin: 0 0 1.35em;
    padding: 0.25rem 0 0.25rem 1.1rem;
    border-left: 3px solid var(--accent);
    color: var(--text);
    font-style: italic;
}

.prose a {
    color: var(--link);
    text-decoration: underline;
}

/* Redes sociais no rodapé */
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.footer-social a {
    font-size: var(--step--2);
    color: var(--muted);
}

.footer-social a:hover {
    color: var(--text);
}

/* ------------------------------------------ 20.5 Modalidades e ofertas */
.strapline {
    margin-top: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.modality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
}

.modality-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: clamp(1.25rem, 2.2vw, 1.6rem);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
}

.modality-card h3 {
    margin: 0;
    font-size: var(--step-1);
}

.modality-facts {
    display: grid;
    gap: 0.4rem;
    margin: 0;
    flex: 1;
}

.modality-facts > div {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: var(--step--2);
}

.modality-facts dt {
    color: var(--muted);
    font-weight: 600;
}

.modality-facts dd {
    margin: 0;
    text-align: right;
    font-weight: 600;
    color: var(--muted);
}

.modality-grid-picker {
    align-items: stretch;
}

.modality-pick {
    position: relative;
    cursor: pointer;
    gap: 0.35rem;
    padding-right: 3rem;
    border-width: 1.5px;
    transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.modality-pick:hover {
    border-color: var(--border-strong);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.modality-pick input {
    position: absolute;
    top: 1.35rem;
    right: 1.35rem;
    width: 1.2rem;
    height: 1.2rem;
    margin: 0;
    accent-color: var(--primary);
}

.modality-pick:has(input:checked) {
    border-color: var(--primary);
    background: var(--surface-2);
    box-shadow: 0 0 0 1px var(--primary);
}

.modality-pick .card-icon {
    margin-bottom: 0.2rem;
}

.modality-pick-title {
    font-weight: 700;
    font-size: var(--step-0);
    line-height: 1.3;
}

.modality-pick-price {
    color: var(--primary);
    font-size: var(--step-1);
    font-weight: 800;
    margin-bottom: 0.2rem;
}

.modality-grid-picker.has-error {
    outline: 1px solid var(--danger);
    outline-offset: 6px;
    border-radius: var(--r-lg);
}

.form-section-lead {
    padding: clamp(1.4rem, 2.5vw, 2rem);
    margin: 0 0 1.75rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
}

.form-section-lead > legend {
    font-size: var(--step-1);
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.6rem;
}

.offering-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.offering-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: var(--surface-2);
    cursor: pointer;
    transition: border-color 0.2s var(--ease), opacity 0.2s var(--ease);
}

.offering-card:has(input:checked) {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary) inset;
}

.offering-card.is-full {
    opacity: 0.6;
    cursor: not-allowed;
}

.offering-card-title {
    font-weight: 700;
}

.offering-card-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: var(--step--2);
    color: var(--muted);
}

.tag-list {
    list-style: none;
    margin: 0.85rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag-list li {
    font-size: var(--step--2);
    font-weight: 600;
    padding: 0.3rem 0.65rem;
    border-radius: var(--r-full);
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--muted);
}

.tag-list-block {
    display: grid;
    gap: 0.5rem;
    padding-left: 1.2rem;
}

/* ------------------------------------------------------------ 20.6 Programa */
.program-day {
    padding: clamp(1.5rem, 3vw, 2.25rem);
    margin-bottom: 1.5rem;
}

.program-day-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.program-day-header h2 {
    margin: 0.35rem 0 0;
}

/* Navegação entre dias do programa */
.program-day-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.program-day-nav a {
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    background: var(--surface);
    color: var(--text);
    font-size: var(--step--1);
    font-weight: 600;
    text-decoration: none;
}

.program-day-nav a:hover {
    border-color: var(--accent);
    color: var(--accent-text);
}

.program-day {
    scroll-margin-top: 6rem;
}

.program-speakers {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.program-speakers-header {
    margin-bottom: 1rem;
}

.program-speakers-header h3 {
    margin: 0.25rem 0 0;
    font-family: var(--font-display);
    color: var(--primary);
}

.auth-shell-stack {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* ----------------------------------------------------------- Convidados */
.guest-section + .guest-section {
    padding-top: 0;
}

.guest-session-header {
    margin-bottom: 1.5rem;
    padding: 1.1rem 1.5rem;
    border-radius: var(--r-lg);
    background: linear-gradient(135deg, var(--brand-800), var(--brand-900));
    color: #fff;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.guest-session-header h2 {
    margin: 0.2rem 0 0;
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2.4vw, 1.75rem);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.guest-session-schedule {
    display: inline-block;
    color: var(--gold-300);
    font-size: var(--step--1);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.program-speakers-header .guest-session-schedule {
    color: var(--accent-text);
}

.guest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
    gap: 1.25rem;
}

.guest-grid-compact {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr));
    gap: 1rem;
}

.guest-card {
    margin: 0;
    padding: 0.75rem;
    border: 1.5px solid var(--gold-300);
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.guest-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.guest-card-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: contain;
}

.guest-card-fallback {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 3 / 4;
    border: 3px solid var(--gold-400);
    border-radius: 50%;
    background: radial-gradient(circle at 50% 35%, var(--brand-600), var(--brand-900));
}

.guest-card-initials {
    color: var(--gold-200);
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 700;
}

.guest-card-pill {
    position: absolute;
    bottom: 12%;
    padding: 0.2rem 0.7rem;
    border-radius: var(--r-full);
    background: linear-gradient(160deg, var(--gold-300), var(--gold-400));
    color: var(--brand-900);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.guest-card-caption {
    display: grid;
    gap: 0.15rem;
    margin-top: 0.75rem;
    text-align: center;
    color: #1e1416;
}

.guest-card-caption strong {
    color: var(--brand-800);
    font-family: var(--font-display);
    font-size: 1.1rem;
}

.guest-card-honorific,
.guest-card-role {
    color: #7b6a6d;
    font-size: var(--step--1);
}

.guest-admin-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.guest-admin-thumb {
    flex: none;
    width: 2.75rem;
    height: 4rem;
    border-radius: var(--r-xs);
    background: #fff;
    object-fit: contain;
    border: 1px solid var(--border);
}

.guest-admin-initials {
    display: grid;
    place-items: center;
    background: var(--brand-800);
    color: var(--gold-200);
    font-weight: 700;
    font-size: var(--step--1);
}

.guest-photo-preview img {
    width: 6rem;
    height: 9rem;
    object-fit: contain;
    background: #fff;
}

/* ---------------------------------------------------------------- 21. Print */
@media print {
    .topbar,
    .announce,
    .site-footer,
    .hero::before,
    .hero::after,
    .cta-band,
    .pagination-wrap {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }
}

/* ---------------------------------------------- Admin · vincular conta a inscrição */
.account-link {
    position: relative;
    margin-bottom: 1.25rem;
}

.account-link [hidden],
.account-notice[hidden],
.field[hidden] {
    display: none !important;
}

.account-link .alert {
    align-items: center;
}

.account-link .alert > div {
    flex: 1;
    font-weight: 500;
}

.account-results {
    list-style: none;
    margin: 0.35rem 0 0;
    padding: 0.25rem;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-md);
    display: grid;
    gap: 0.1rem;
}

.account-results button {
    width: 100%;
    text-align: left;
    padding: 0.55rem 0.7rem;
    font: inherit;
    font-size: var(--step--1);
    color: var(--text);
    background: transparent;
    border: 0;
    border-radius: calc(var(--r-md) - 4px);
    cursor: pointer;
}

.account-results button:hover,
.account-results button:focus-visible {
    background: var(--surface-inset);
}

.account-empty {
    padding: 0.55rem 0.7rem;
    font-size: var(--step--1);
    color: var(--muted);
}

.account-notice {
    margin-top: 0.4rem;
    font-size: var(--step--2);
    color: var(--muted);
}

.account-notice.is-found {
    color: var(--success);
    font-weight: 600;
}

.account-notice .btn {
    margin-left: 0.25rem;
}

.admin-form input[readonly] {
    background-color: var(--surface-inset);
    cursor: not-allowed;
}
