/* Ving Tsun Portugal — site público (V6)
   Identidade: preto do emblema, latão dourado, brasa e cinábrio da linhagem.
   Tipografia: Marcellus (títulos, eco das capitulares do emblema) + Hanken Grotesk (texto). */

:root {
    --ink: #000;
    --lacquer: #140c07;
    --lacquer-2: #1e130b;
    --lacquer-3: #2a1b10;
    --line: rgba(201, 150, 46, .22);
    --line-strong: rgba(201, 150, 46, .5);
    --brass: #c9962e;
    --brass-hi: #e7b955;
    --ember: #e0661b;
    --cinnabar: #b0201b;
    --bone: #ede5d3;
    --ash: #a89f8f;
    --ok: #6fbf73;
    --warn: #e7b955;
    --bad: #e2544c;

    --display: "Marcellus", "Trajan Pro", Optima, "Palatino Linotype", Georgia, serif;
    --text: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;

    --wrap: 1200px;
    --gutter: clamp(16px, 4vw, 40px);
    --radius: 4px;
    --space: clamp(64px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--ink);
    color: var(--bone);
    font: 400 17px/1.65 var(--text);
    -webkit-font-smoothing: antialiased;
}
img, video, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--brass-hi); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--bone); }
:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--brass); color: #000; }

h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.08; letter-spacing: .005em; margin: 0 0 .5em; color: var(--bone); }
h3, h4 { font-family: var(--text); font-weight: 600; line-height: 1.3; margin: 0 0 .4em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.25rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ash); max-width: 62ch; }
.muted { color: var(--ash); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brass); color: #000; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(760px + var(--gutter) * 2); }
.section { padding-block: var(--space); }
.section + .section { padding-top: 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 8px 0 0; color: var(--ash); max-width: 56ch; }

/* ---------- Botões ---------- */
.btn {
    --b: var(--brass);
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 0 24px;
    border: 1px solid var(--b); border-radius: var(--radius);
    background: var(--b); color: #0a0603;
    font: 600 15px/1 var(--text); letter-spacing: .01em;
    text-decoration: none; cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--brass-hi); border-color: var(--brass-hi); color: #000; }
.btn-line { background: transparent; color: var(--bone); border-color: var(--line-strong); }
.btn-line:hover { background: transparent; color: var(--brass-hi); border-color: var(--brass-hi); }
.btn-quiet { background: transparent; border-color: transparent; color: var(--brass-hi); padding: 0 8px; }
.btn-quiet:hover { background: transparent; border-color: transparent; color: var(--bone); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-full { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; flex: none; }
.link-more { font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-more:hover { text-decoration: underline; }

/* ---------- Cabeçalho ---------- */
.site-header {
    position: sticky; top: 0; z-index: 40;
    background: rgba(0, 0, 0, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--bone); text-decoration: none; flex: none; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand span { font-family: var(--display); font-size: 1.2rem; line-height: 1.05; }
.brand small { display: block; font-family: var(--text); font-size: .72rem; color: var(--ash); letter-spacing: .02em; margin-top: 2px; }
.brand:hover { color: var(--brass-hi); }

.main-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.main-nav a {
    color: var(--bone); text-decoration: none; font-size: 15px; padding: 8px 12px; border-radius: var(--radius);
    position: relative;
}
.main-nav a:hover { color: var(--brass-hi); }
.main-nav a[aria-current="page"] { color: var(--brass-hi); }
.main-nav a[aria-current="page"]::after {
    content: ""; position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%);
    border: 5px solid transparent; border-bottom-color: var(--brass); border-top: 0;
}
.header-tools { display: flex; align-items: center; gap: 6px; }
.tool {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-width: 44px; height: 44px; padding: 0 10px; border-radius: var(--radius);
    color: var(--bone); text-decoration: none; background: none; border: 1px solid transparent; cursor: pointer; font: inherit; font-size: 15px;
    position: relative;
}
.tool:hover { color: var(--brass-hi); border-color: var(--line); }
.tool svg { width: 22px; height: 22px; }
.cart-n {
    position: absolute; top: 4px; right: 2px; min-width: 19px; height: 19px; padding: 0 5px;
    border-radius: 10px; background: var(--ember); color: #000; font-size: 11px; font-weight: 700; line-height: 19px; text-align: center;
}
.account { position: relative; }
.account summary { list-style: none; }
.account summary::-webkit-details-marker { display: none; }
.account-menu {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px;
    background: var(--lacquer); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 8px; box-shadow: 0 18px 50px rgba(0, 0, 0, .6);
}
.account-menu a, .account-menu p { display: block; padding: 9px 12px; color: var(--bone); text-decoration: none; border-radius: 3px; font-size: 15px; margin: 0; }
.account-menu p { color: var(--ash); font-size: 13px; border-bottom: 1px solid var(--line); margin-bottom: 6px; padding-bottom: 10px; }
.account-menu a:hover { background: var(--lacquer-2); color: var(--brass-hi); }
.nav-toggle { display: none; }
.lang-switch { font-weight: 700; font-size: 13px; letter-spacing: .04em; border-color: var(--line); }
.lang-switch:hover { border-color: var(--brass); }

@media (max-width: 1080px) {
    .nav-toggle { display: inline-flex; }
    .main-nav {
        position: fixed; inset: 72px 0 auto 0; z-index: 39;
        flex-direction: column; align-items: stretch; gap: 0;
        background: #000; border-bottom: 1px solid var(--line);
        padding: 8px var(--gutter) 20px; max-height: calc(100vh - 72px); overflow: auto;
        transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s;
    }
    body.nav-open .main-nav { transform: none; opacity: 1; visibility: visible; }
    .main-nav a { padding: 14px 4px; border-bottom: 1px solid rgba(201, 150, 46, .12); font-size: 17px; }
    .main-nav a[aria-current="page"]::after { display: none; }
    .header-tools { margin-left: auto; }
    .tool .tool-label { display: none; }
}
/* V7.22.26: no tablet (iPad ao alto) o menu fica visível numa segunda linha do cabeçalho, em vez de ir para o botão ☰ */
@media (min-width: 700px) and (max-width: 1080px) {
    .site-header .wrap { flex-wrap: wrap; row-gap: 4px; min-height: 0; padding-top: 12px; padding-bottom: 4px; }
    .nav-toggle { display: none; }
    .main-nav {
        position: static; inset: auto; z-index: auto; order: 3; flex: 0 0 100%;
        flex-direction: row; justify-content: center; align-items: center; flex-wrap: wrap; gap: 2px;
        margin: 0; padding: 4px 0 6px; background: none; border: 0; border-top: 1px solid rgba(201, 150, 46, .12); max-height: none; overflow: visible;
        transform: none; opacity: 1; visibility: visible; transition: none;
    }
    .main-nav a { padding: 8px 14px; border-bottom: 0; font-size: 15.5px; }
    .main-nav a[aria-current="page"]::after { display: block; }
}
@media (min-width: 700px) and (max-width: 800px) { .main-nav a { padding: 8px 9px; font-size: 15px; } }
@media (max-width: 480px) {
    .site-header .wrap { gap: 10px; }
    .brand { gap: 8px; }
    .brand img { width: 38px; height: 38px; }
    .brand small { display: none; }
    .brand span { font-size: 1rem; }
    .header-tools { gap: 2px; }
    .tool { min-width: 40px; padding: 0 6px; }
}
@media (max-width: 380px) { .brand span { font-size: .9rem; } .tool { min-width: 38px; padding: 0 5px; } }
@media (max-width: 330px) { .brand span { display: none; } }

/* ---------- Mensagens ---------- */
.flash {
    display: flex; gap: 12px; align-items: flex-start;
    border: 1px solid var(--line-strong); border-left-width: 4px; background: var(--lacquer);
    padding: 14px 18px; border-radius: var(--radius); margin: 0 0 20px; color: var(--bone);
}
.flash.success { border-color: rgba(111, 191, 115, .5); border-left-color: var(--ok); }
.flash.error { border-color: rgba(226, 84, 76, .5); border-left-color: var(--bad); }
.flash-bar { padding-top: 20px; }
.flash.fade-out { opacity: 0; transition: opacity .6s; }

/* ---------- Página inicial: abertura ---------- */
.hero {
    position: relative; overflow: hidden; isolation: isolate;
    padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 110px);
    background:
        radial-gradient(ellipse 55% 60% at 74% 52%, rgba(224, 102, 27, .32), transparent 70%),
        radial-gradient(ellipse 35% 40% at 74% 56%, rgba(176, 32, 27, .35), transparent 70%),
        #000;
    border-bottom: 1px solid var(--line);
}
.hero .wrap { display: grid; grid-template-columns: auto minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.hero-glyphs {
    writing-mode: vertical-rl; font-family: "Noto Serif CJK TC", "Noto Serif TC", "Songti TC", "SimSun", serif;
    font-size: clamp(3.5rem, 8vw, 7.5rem); line-height: 1; color: var(--brass);
    letter-spacing: .08em; margin: 0; align-self: stretch; display: flex; align-items: center;
    border-right: 1px solid var(--line); padding-right: clamp(14px, 2.4vw, 32px);
    text-shadow: 0 0 40px rgba(224, 102, 27, .35);
}
.hero h1 { font-size: clamp(2.8rem, 7.2vw, 6rem); line-height: .98; margin-bottom: 28px; }
.hero .lead { color: #d4cab8; font-size: clamp(1.08rem, 1.7vw, 1.3rem); max-width: 34ch; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-lineage { margin-top: 44px; color: var(--ash); font-size: 14px; display: flex; gap: 10px; align-items: center; }
.hero-lineage::before { content: ""; width: 28px; height: 1px; background: var(--cinnabar); }
.hero-emblem { position: relative; justify-self: center; width: min(100%, 520px); aspect-ratio: 1 / .9; }
.hero-emblem.is-logo { mix-blend-mode: lighten; }
.hero-emblem img.logo { width: 100%; height: 100%; object-fit: contain; }
.hero-emblem .tri-photo { position: absolute; inset: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.hero-emblem .tri-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-emblem svg.tri-frame { position: absolute; inset: -14px; width: calc(100% + 28px); height: calc(100% + 28px); overflow: visible; pointer-events: none; }

@media (prefers-reduced-motion: no-preference) {
    .hero-glyphs, .hero-copy, .hero-emblem { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
    .hero-copy { animation-delay: .12s; }
    .hero-emblem { animation-delay: .24s; }
    @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 900px) {
    .hero .wrap { grid-template-columns: auto 1fr; }
    .hero-emblem { grid-column: 1 / -1; width: min(78%, 420px); order: -1; margin-bottom: 8px; }
    .hero-glyphs { font-size: 3.4rem; }
}
@media (max-width: 520px) {
    .hero .wrap { grid-template-columns: 1fr; }
    .hero-glyphs { writing-mode: horizontal-tb; border: 0; padding: 0; font-size: 2.4rem; }
}

/* ---------- Página inicial: princípios ---------- */
.intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.principles { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.principles li { padding: 22px 0 22px 34px; border-bottom: 1px solid var(--line); position: relative; }
.principles li::before {
    content: ""; position: absolute; left: 4px; top: 30px;
    border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 13px solid var(--brass);
}
.principles h3 { margin: 0 0 4px; font-size: 1.12rem; }
.principles p { margin: 0; color: var(--ash); }
@media (max-width: 820px) { .intro-grid { grid-template-columns: 1fr; } }

/* ---------- Eventos ---------- */
.event-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.event-row { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.event-date { text-align: center; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 10px 0 8px; background: var(--lacquer); }
.event-date strong { display: block; font-family: var(--display); font-size: 2rem; line-height: 1; color: var(--brass-hi); font-weight: 400; }
.event-date span { font-size: 13px; color: var(--ash); }
.event-row h3 { margin: 0 0 4px; font-size: 1.2rem; }
.event-row p { margin: 0; color: var(--ash); }
.event-row .event-desc { margin-top: 10px; color: var(--bone); max-width: 70ch; }
@media (max-width: 640px) {
    .event-row { grid-template-columns: 64px 1fr; }
    .event-row > :last-child:not(:nth-child(2)) { grid-column: 2; justify-self: start; }
    .event-date strong { font-size: 1.5rem; }
}

/* ---------- Grelhas de conteúdo ---------- */
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.tile { background: var(--lacquer); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.tile h3 { font-size: 1.2rem; }
.tile p:last-child { margin-bottom: 0; }
.tile-meta { color: var(--ash); font-size: 14px; margin-bottom: 8px; }

.news-card { display: flex; flex-direction: column; background: var(--lacquer); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--bone); text-decoration: none; }
.news-card:hover { border-color: var(--line-strong); color: var(--bone); }
.news-card:hover h3 { color: var(--brass-hi); }
.news-card .news-img { aspect-ratio: 16 / 9; background: var(--lacquer-2); overflow: hidden; }
.news-card .news-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card .news-img.empty { display: grid; place-items: center; }
.news-card .news-img.empty img { width: 64px; height: 64px; object-fit: contain; opacity: .5; }
.news-card .news-body { padding: 22px 24px 26px; }
.news-card time { color: var(--ash); font-size: 14px; }
.news-card h3 { margin: 6px 0 8px; font-size: 1.25rem; transition: color .15s; }
.news-card p { color: var(--ash); margin: 0; }

.school-card address { font-style: normal; color: var(--ash); margin-bottom: 12px; }
.school-card .city { color: var(--brass-hi); font-size: 14px; margin-bottom: 4px; }
.contact-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.contact-lines a { color: var(--bone); }

.instructor { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: start; }
.instructor img { width: 120px; height: 150px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.instructor .rank { color: var(--brass-hi); font-size: 15px; margin-bottom: 10px; }
@media (max-width: 480px) { .instructor { grid-template-columns: 1fr; } }

/* ---------- Faixas ---------- */
.band { background: var(--lacquer); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; padding-block: clamp(40px, 6vw, 72px); }
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: var(--ash); margin: 0; max-width: 56ch; }
@media (max-width: 720px) { .cta-band { grid-template-columns: 1fr; } }

.gift { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.gift-visual { max-width: 460px; justify-self: center; width: 100%; }
.gift-visual img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); display: block; }
.gift ul { padding-left: 1.1em; color: var(--ash); margin: 0 0 28px; }
.gift li { margin-bottom: 6px; }
@media (max-width: 820px) { .gift { grid-template-columns: 1fr; } }

/* ---------- Páginas interiores ---------- */
.page-intro {
    padding: clamp(40px, 6vw, 80px) 0 clamp(32px, 4vw, 52px);
    border-bottom: 1px solid var(--line);
    background: radial-gradient(ellipse 50% 120% at 100% 0, rgba(224, 102, 27, .14), transparent 70%), #000;
}
.page-intro h1 { margin-bottom: 14px; }
.page-intro .lead { margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--ash); margin-bottom: 18px; }
.crumbs a { color: var(--ash); text-decoration: none; }
.crumbs a:hover { color: var(--brass-hi); }
.crumbs span[aria-hidden] { opacity: .5; }

.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.4em; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.prose h3 { margin-top: 1.5em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: var(--radius); margin: 8px 0 28px; display: block; }
.article-meta { color: var(--ash); margin-bottom: 24px; }

.empty {
    border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 48px 28px; text-align: center; color: var(--ash);
}
.empty h3 { color: var(--bone); }
.empty p { margin: 0 auto 18px; max-width: 46ch; }
.empty p:last-child { margin-bottom: 0; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Formulários ---------- */
form { margin: 0; }
.form { display: grid; gap: 18px; }
.field, form > label { display: grid; gap: 7px; font-size: 15px; font-weight: 600; color: var(--bone); }
.field small, .hint { font-weight: 400; color: var(--ash); font-size: 14px; }
input, select, textarea {
    width: 100%; min-height: 48px; padding: 11px 14px;
    background: #0b0705; color: var(--bone);
    border: 1px solid rgba(201, 150, 46, .32); border-radius: var(--radius);
    font: 400 16px/1.4 var(--text);
}
textarea { min-height: 120px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--line-strong); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brass-hi); box-shadow: 0 0 0 3px rgba(231, 185, 85, .18); }
input[disabled] { opacity: .6; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; min-height: 0; accent-color: var(--brass); margin: 0; flex: none; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row-cp { display: grid; grid-template-columns: 160px 1fr; gap: 16px; }
@media (max-width: 560px) { .row-2, .row-cp { grid-template-columns: 1fr; } }
.check-line { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 15px; }
.check-line input { margin-top: 3px; }
.hp { position: absolute; left: -9999px; top: -9999px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-family: var(--display); font-size: 1.35rem; padding: 0; margin-bottom: 14px; color: var(--bone); }

.choice-list { display: grid; gap: 10px; }
.choice {
    display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start;
    padding: 16px 18px; border: 1px solid rgba(201, 150, 46, .28); border-radius: var(--radius); cursor: pointer;
    background: #0b0705; font-weight: 400;
}
.choice:hover { border-color: var(--line-strong); }
.choice:has(input:checked) { border-color: var(--brass-hi); background: var(--lacquer); }
.choice input { margin-top: 3px; }
.choice strong { display: block; font-weight: 600; }
.choice small { color: var(--ash); font-size: 14px; }
.choice .price { font-weight: 600; white-space: nowrap; }
.choice[hidden] { display: none; }
.reveal[hidden] { display: none; }

/* ---------- Autenticação ---------- */
.auth { min-height: calc(100vh - 72px - 200px); display: grid; place-items: center; padding: 56px var(--gutter); }
.auth-card { width: 100%; max-width: 440px; }
.auth-card .auth-logo { width: 72px; margin-bottom: 18px; }
.auth-card h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.auth-card > p { color: var(--ash); }
.auth-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 22px; font-size: 15px; }

/* ---------- Galeria e média ---------- */
.gallery-grid { columns: 3 300px; column-gap: 18px; }
.gallery-item { break-inside: avoid; margin: 0 0 18px; background: var(--lacquer); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery-item img, .gallery-item video { display: block; width: 100%; cursor: zoom-in; }
.gallery-item video { cursor: auto; background: #000; }
.gallery-item figcaption { padding: 12px 16px 14px; font-size: 15px; }
.gallery-item figcaption small { display: block; color: var(--ash); }

.folder { margin-bottom: 48px; }
.folder-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 20px; }
.folder-head h2 { margin: 0; font-size: 1.8rem; }
.folder-head .level { color: var(--brass-hi); font-size: 14px; }
.folder-head p { margin: 6px 0 0; color: var(--ash); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px; border: 1px solid var(--line-strong); font-size: 13px; color: var(--ash); white-space: nowrap; }
.pill.ok { color: var(--ok); border-color: rgba(111, 191, 115, .45); }
.pill.warn { color: var(--warn); border-color: rgba(231, 185, 85, .5); }
.pill.bad { color: var(--bad); border-color: rgba(226, 84, 76, .5); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.media-card { background: var(--lacquer); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.media-open { display: block; width: 100%; background: none; border: 0; padding: 0; color: var(--bone); cursor: pointer; text-align: left; font: inherit; }
.media-thumb { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #000; }
.video-thumb { position: relative; display: grid; place-items: center; }
.video-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.play-badge { position: relative; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .7); border: 1px solid var(--brass); color: var(--brass-hi); font-size: 18px; }
.media-title { display: block; padding: 10px 14px 4px; font-weight: 600; font-size: 15px; }
.media-description { padding: 0 14px 12px; color: var(--ash); font-size: 14px; }
.media-modal { position: fixed; inset: 0; z-index: 90; display: none; }
.media-modal.is-open { display: grid; place-items: center; }
.media-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .9); }
.media-modal-dialog { position: relative; width: min(1100px, 94vw); max-height: 92vh; display: grid; gap: 10px; }
.media-modal-dialog h2 { font-size: 1.2rem; font-family: var(--text); font-weight: 600; margin: 0; padding-right: 50px; }
.media-modal-close { position: absolute; right: 0; top: -6px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: #000; color: var(--bone); font-size: 24px; cursor: pointer; }
.modal-image, .modal-video { width: 100%; max-height: 82vh; object-fit: contain; background: #000; border-radius: var(--radius); }

/* ---------- Área de membro ---------- */
.member-hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.hub-link { display: block; padding: 24px; background: var(--lacquer); border: 1px solid var(--line); border-radius: var(--radius); color: var(--bone); text-decoration: none; }
.hub-link:hover { border-color: var(--brass); color: var(--bone); }
.hub-link strong { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.hub-link span { color: var(--ash); font-size: 15px; }
.member-card {
    display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end;
    padding: clamp(24px, 4vw, 40px); margin-bottom: 32px; border-radius: 10px;
    background: radial-gradient(ellipse 70% 120% at 100% 100%, rgba(224, 102, 27, .35), transparent 60%), linear-gradient(135deg, #1e130b, #0a0604);
    border: 1px solid var(--line-strong);
}
.member-card h2 { margin: 0 0 6px; }
.member-card .num { color: var(--brass-hi); font-variant-numeric: tabular-nums; }
.member-card dl { margin: 0; display: grid; grid-template-columns: auto auto; gap: 4px 18px; font-size: 15px; }
.member-card dt { color: var(--ash); }
.member-card dd { margin: 0; font-weight: 600; }
@media (max-width: 600px) { .member-card { grid-template-columns: 1fr; } }
.rows { border-top: 1px solid var(--line); }
.rows > div { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.rows p { margin: 2px 0 0; color: var(--ash); font-size: 15px; }

/* ---------- Loja ---------- */
.shop-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters a {
    padding: 9px 16px; border-radius: 99px; border: 1px solid var(--line); color: var(--bone); text-decoration: none; font-size: 15px;
}
.filters a:hover { border-color: var(--brass); color: var(--brass-hi); }
.filters a[aria-current] { background: var(--brass); border-color: var(--brass); color: #000; }
.products { display: grid; gap: clamp(16px, 2.4vw, 28px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.product { display: flex; flex-direction: column; color: var(--bone); text-decoration: none; }
.product-img { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); background: var(--lacquer); border: 1px solid var(--line); }
.product-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.product:hover .product-img img { transform: scale(1.04); }
.product:hover { color: var(--bone); }
.product:hover h3 { color: var(--brass-hi); }
.product-flag { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 99px; font-size: 13px; font-weight: 600; background: #000; border: 1px solid var(--line-strong); color: var(--bone); }
.product-flag.out { color: var(--ash); }
.product-flag.gift { background: var(--ember); border-color: var(--ember); color: #000; }
.product h3 { margin: 14px 0 2px; font-size: 1.08rem; transition: color .15s; }
.product .price { color: var(--brass-hi); font-weight: 600; }
.product .price s { color: var(--ash); font-weight: 400; margin-left: 6px; }
.product p { color: var(--ash); font-size: 15px; margin: 4px 0 0; }

.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.pdp-gallery { display: grid; gap: 12px; position: sticky; top: 96px; }
.pdp-gallery .main-img { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--lacquer); }
.pdp-gallery .main-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbs { display: flex; gap: 10px; }
.thumbs button { width: 84px; aspect-ratio: 1; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--lacquer); cursor: pointer; }
.thumbs button[aria-pressed="true"] { border-color: var(--brass-hi); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); margin-bottom: 12px; }
.pdp .pdp-price { font-size: 1.6rem; color: var(--brass-hi); font-weight: 600; margin-bottom: 18px; }
.pdp .pdp-price s { font-size: 1.1rem; color: var(--ash); font-weight: 400; margin-left: 10px; }
.pdp .pdp-summary { color: #d4cab8; font-size: 1.1rem; }
.pdp-buy { display: grid; gap: 22px; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 26px 0; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.sizes label { position: relative; }
.sizes input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.sizes span {
    display: grid; place-items: center; min-width: 56px; height: 48px; padding: 0 14px;
    border: 1px solid rgba(201, 150, 46, .35); border-radius: var(--radius); font-weight: 600;
}
.sizes input:checked + span { background: var(--brass); border-color: var(--brass); color: #000; }
.sizes input:focus-visible + span { outline: 2px solid var(--brass-hi); outline-offset: 2px; }
.sizes input:disabled + span { opacity: .35; text-decoration: line-through; }
.sizes input:disabled { cursor: not-allowed; }
.field-label { font-weight: 600; margin-bottom: 10px; display: flex; justify-content: space-between; gap: 12px; }
.field-label small { font-weight: 400; color: var(--ash); }
.qty { display: inline-flex; border: 1px solid rgba(201, 150, 46, .35); border-radius: var(--radius); overflow: hidden; height: 48px; }
.qty button { width: 44px; background: #0b0705; color: var(--bone); border: 0; font-size: 20px; cursor: pointer; }
.qty button:hover { color: var(--brass-hi); }
.qty input { width: 56px; min-height: 0; height: 100%; border: 0; border-radius: 0; text-align: center; padding: 0; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
.buy-row .btn { flex: 1; min-width: 200px; }
.stock-note { font-size: 14px; color: var(--ash); }
.stock-note.low { color: var(--ember); }
.pdp-details h2 { font-size: 1.35rem; margin-bottom: 10px; }
.pdp-details ul { padding-left: 1.1em; color: #d4cab8; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--ash); font-size: 15px; }
.facts li { display: flex; gap: 10px; }
.facts li::before { content: ""; flex: none; margin-top: 7px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 8px solid var(--brass); }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; } .pdp-gallery { position: static; } }

.cart { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.cart-lines { border-top: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); display: block; }
.cart-line h3 { margin: 0 0 2px; font-size: 1.05rem; }
.cart-line h3 a { color: var(--bone); text-decoration: none; }
.cart-line h3 a:hover { color: var(--brass-hi); }
.cart-line .meta { color: var(--ash); font-size: 14px; margin: 0; }
.cart-line .line-actions { display: flex; align-items: center; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.cart-line .line-total { font-weight: 600; text-align: right; white-space: nowrap; }
.remove { background: none; border: 0; color: var(--ash); cursor: pointer; padding: 6px 0; font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.remove:hover { color: var(--bad); }
.summary { background: var(--lacquer); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: sticky; top: 96px; }
.summary h2 { font-size: 1.5rem; margin-bottom: 18px; }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; margin: 0 0 20px; }
.summary dt { color: var(--ash); }
.summary dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.summary .total { font-size: 1.25rem; font-weight: 700; color: var(--bone); padding-top: 12px; border-top: 1px solid var(--line); }
.summary .note { font-size: 14px; color: var(--ash); margin: 14px 0 0; }
.summary-items { list-style: none; margin: 0 0 18px; padding: 0 0 14px; border-bottom: 1px solid var(--line); display: grid; gap: 12px; }
.summary-items li { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; font-size: 15px; }
.summary-items img { width: 52px; height: 52px; object-fit: cover; border-radius: 3px; display: block; }
.summary-items small { display: block; color: var(--ash); }
@media (max-width: 900px) { .cart { grid-template-columns: 1fr; } .summary { position: static; } }
@media (max-width: 520px) {
    .cart-line { grid-template-columns: 72px 1fr; }
    .cart-line img { width: 72px; height: 72px; }
    .cart-line .line-total { grid-column: 2; text-align: left; }
}

.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.checkout .form { gap: 36px; }
.checkout fieldset .form { gap: 16px; }
@media (max-width: 960px) { .checkout { grid-template-columns: 1fr; } .checkout .summary { order: -1; } }

.order-status { display: grid; gap: 6px; padding: 24px 26px; border: 1px solid var(--line-strong); border-left: 4px solid var(--brass); border-radius: var(--radius); background: var(--lacquer); margin-bottom: 32px; }
.order-status h2 { font-size: 1.5rem; margin: 0; }
.order-status p { margin: 0; color: #d4cab8; }
.steps { list-style: none; display: flex; gap: 0; padding: 0; margin: 0 0 32px; counter-reset: s; flex-wrap: wrap; }
.steps li { flex: 1; min-width: 120px; padding: 12px 0 0; border-top: 3px solid var(--lacquer-3); color: var(--ash); font-size: 14px; margin-right: 6px; }
.steps li.done { border-top-color: var(--brass); color: var(--bone); }
.voucher-codes { display: grid; gap: 12px; }
.voucher-code {
    display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; align-items: center;
    padding: 18px 22px; border: 1px dashed var(--brass); border-radius: var(--radius); background: #0b0705;
}
.voucher-code code { font: 600 1.4rem/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .06em; color: var(--brass-hi); }
.voucher-code small { color: var(--ash); grid-column: 1 / -1; }
.balance { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0 8px; }
.balance i { width: 22px; height: 19px; background: var(--brass); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.balance i.used { background: var(--lacquer-3); }

/* ---------- Rodapé ---------- */
.site-footer { border-top: 1px solid var(--line); background: #000; padding: 64px 0 28px; margin-top: 0; color: var(--ash); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-brand img { width: 64px; margin-bottom: 14px; }
.footer-brand p { max-width: 32ch; }
.site-footer h2 { font: 600 15px/1.3 var(--text); color: var(--bone); margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ash); text-decoration: none; }
.site-footer a:hover { color: var(--brass-hi); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(201, 150, 46, .14); font-size: 14px; }
.footer-bottom .lineage { color: var(--cinnabar); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Certificado (impressão) ---------- */
.certificate-page { background: #efe8d8; color: #1a120b; display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.certificate { width: min(900px, 100%); background: #fbf7ee; border: 10px double #b48a2c; padding: clamp(28px, 6vw, 70px); text-align: center; }
.certificate h1, .certificate h2 { color: #1a120b; }
.certificate-logo { width: 110px; }
.certificate .org { color: #8a6418; font-size: 15px; }
.certificate-number { color: #6b5a40; }
.signature { margin: 40px auto 24px; width: 260px; border-top: 1px solid #1a120b; padding-top: 8px; }
@media print { .no-print { display: none !important; } .certificate-page { background: #fff; } }

/* ---------- Ficha de aluno ---------- */
.ficha-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.ficha-form { gap: 40px; max-width: 760px; }
.ficha-sec legend { margin-bottom: 10px; }
.ficha-sec > .hint { margin: 0 0 16px; max-width: 62ch; }
.ficha-health { border-left: 3px solid var(--ember); padding-left: 20px; }
.ficha-aside { position: sticky; top: 96px; }
.ficha-actions { position: sticky; bottom: 0; padding: 16px 0; background: linear-gradient(transparent, #000 40%); }
.meter-line { height: 8px; border-radius: 4px; background: var(--lacquer-3); overflow: hidden; }
.meter-line span { display: block; height: 100%; background: var(--brass); }
@media (max-width: 900px) { .ficha-layout { grid-template-columns: 1fr; } .ficha-aside { position: static; order: -1; } }

.photo-crop { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; align-items: start; }
.pc-frame {
    position: relative; width: 210px; aspect-ratio: 600 / 771; overflow: hidden; border-radius: 6px;
    background: #f3efe6; border: 1px solid var(--line-strong); touch-action: none; user-select: none;
}
.photo-crop.has-new .pc-frame { cursor: grab; }
.pc-frame.dragging { cursor: grabbing; }
.pc-current { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; }
.pc-empty { position: absolute; inset: 0; display: grid; place-items: center; color: #8a7f6c; font-size: 14px; text-align: center; padding: 12px; }
.pc-guide { position: absolute; left: 22%; right: 22%; top: 12%; height: 56%; border: 2px dashed rgba(201, 150, 46, .75); border-radius: 50%; pointer-events: none; display: none; }
.photo-crop.has-new .pc-guide { display: block; }
.pc-side { display: grid; gap: 12px; align-content: start; }
.pc-side .hint { margin: 0; }
.pc-pick { cursor: pointer; justify-self: start; }
.pc-zoom { accent-color: var(--brass); min-height: 0; padding: 0; border: 0; background: none; max-width: 260px; }
.pc-msg.bad { color: var(--bad); }
.pc-msg:empty { display: none; }
@media (max-width: 520px) { .photo-crop { grid-template-columns: 1fr; } }

.member-photo { width: 96px; aspect-ratio: 600 / 771; object-fit: cover; border-radius: 6px; border: 1px solid var(--line-strong); }
.member-card .who { display: flex; gap: 20px; align-items: center; }

/* ---------- Parceiros ---------- */
.partners { display: grid; gap: clamp(16px, 2.4vw, 28px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.partner-card { display: flex; flex-direction: column; background: var(--lacquer); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--bone); text-decoration: none; }
.partner-card:hover { border-color: var(--brass); color: var(--bone); }
.partner-card:hover h3 { color: var(--brass-hi); }
.partner-img { position: relative; aspect-ratio: 16 / 10; background: var(--lacquer-2); overflow: hidden; }
.partner-img > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.partner-logo { position: absolute; left: 14px; bottom: -1px; width: 64px; height: 64px; border-radius: 6px 6px 0 0; background: #fff; padding: 6px; display: grid; place-items: center; }
.partner-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.partner-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.partner-body h3 { margin: 0; font-size: 1.25rem; transition: color .15s; }
.partner-body p { margin: 0; color: var(--ash); font-size: 15px; }
.partner-cat { color: var(--brass-hi) !important; font-size: 14px !important; margin: 0; }
.partner-perk { margin-top: auto; padding-top: 14px; font-weight: 700; color: var(--bone); display: flex; gap: 10px; align-items: baseline; }
.partner-perk::before { content: ""; flex: none; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 10px solid var(--ember); transform: translateY(-1px); }
.partner-perk.soon { color: var(--ash); font-weight: 400; }
.partner-perk.soon::before { border-bottom-color: var(--lacquer-3); }
.partner-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; margin-top: 56px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); }
.partner-cta h2 { font-size: 1.6rem; margin-bottom: 6px; }
.partner-cta p { margin: 0; color: var(--ash); max-width: 60ch; }
@media (max-width: 680px) { .partner-cta { grid-template-columns: 1fr; } }

.partner-hero { border-bottom: 1px solid var(--line); background: radial-gradient(ellipse 50% 120% at 100% 0, rgba(224, 102, 27, .14), transparent 70%), #000; padding: clamp(36px, 5vw, 64px) 0; }
.partner-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.partner-hero h1 { margin-bottom: 14px; }
.partner-hero .lead { margin: 0; }
.partner-hero-logo { max-width: 140px; max-height: 80px; background: #fff; padding: 8px; border-radius: 6px; margin-bottom: 18px; display: block; }
.partner-hero-img { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); aspect-ratio: 5 / 4; max-height: 360px; justify-self: end; width: 100%; }
.partner-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
@media (max-width: 820px) { .partner-hero-in { grid-template-columns: 1fr; } .partner-hero-img { justify-self: stretch; } }
.partner-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 5vw, 64px); align-items: start; }
.partner-article h2 { font-size: 1.5rem; }
.partner-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.partner-gallery figure { margin: 0; }
.partner-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); margin: 0; cursor: zoom-in; border: 1px solid var(--line); }
.partner-gallery figcaption { font-size: 13px; color: var(--ash); margin-top: 4px; }
.partner-aside { position: sticky; top: 96px; }
.perk-box { background: var(--lacquer); border: 1px solid var(--line-strong); border-top: 3px solid var(--ember); border-radius: var(--radius); padding: 22px 24px; }
.perk-box h2 { font-size: 1.2rem; margin-bottom: 10px; font-family: var(--text); font-weight: 600; color: var(--ash); }
.perk-title { font-family: var(--display); font-size: 1.6rem; line-height: 1.2; color: var(--bone); margin-bottom: 12px; }
.perk-cond { font-size: 15px; color: #d4cab8; }
.perk-cond p, .perk-cond ul { margin: 0 0 10px; }
.perk-code code { font: 600 1.15rem ui-monospace, Menlo, Consolas, monospace; color: var(--brass-hi); border: 1px dashed var(--brass); padding: 4px 10px; border-radius: 4px; margin-left: 6px; }
.perk-box .hint { font-size: 14px; color: var(--ash); margin: 8px 0 0; }
.partner-contacts { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; font-size: 15px; }
.partner-contacts span { display: block; color: var(--ash); font-size: 13px; }
.partner-contacts a { color: var(--bone); }
.partner-contacts a:hover { color: var(--brass-hi); }
@media (max-width: 900px) { .partner-layout { grid-template-columns: 1fr; } .partner-aside { position: static; order: -1; } }
@media (max-width: 1240px) and (min-width: 1081px) { .main-nav a { padding: 8px 8px; font-size: 14.5px; } .site-header .wrap { gap: 18px; } }

/* ---------- Instituto ---------- */
.inst-intro { padding-bottom: 0; }
.inst-mark { font-family: var(--display); color: var(--brass); font-size: 1.05rem; margin: 0 0 6px; letter-spacing: .02em; }
.inst-tabs { display: flex; gap: 4px; margin-top: 28px; }
.inst-tabs a { padding: 12px 18px; color: var(--ash); text-decoration: none; border-bottom: 2px solid transparent; font-weight: 600; }
.inst-tabs a:hover { color: var(--bone); }
.inst-tabs a[aria-current] { color: var(--bone); border-bottom-color: var(--brass); }
.tab-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--ember); color: #000; font-size: 12px; margin-left: 4px; }
.inst-progress { display: grid; grid-template-columns: minmax(0, 360px) auto; gap: 16px; align-items: center; margin-bottom: 40px; }
.inst-progress p { margin: 0; color: var(--ash); }
.inst-module { margin-bottom: 48px; }
.inst-module h2 { font-size: 1.6rem; margin-bottom: 14px; }
.lesson-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.lesson-list li { border-bottom: 1px solid var(--line); }
.lesson-list a { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 4px; color: var(--bone); text-decoration: none; }
.lesson-list a:hover strong { color: var(--brass-hi); }
.lesson-text strong { display: block; font-size: 1.08rem; transition: color .15s; }
.lesson-text small { display: block; color: var(--ash); font-size: 15px; margin-top: 2px; }
.lesson-tags { display: flex; gap: 6px; }
.lesson-state { width: 22px; height: 19px; clip-path: polygon(50% 0, 100% 100%, 0 100%); background: var(--lacquer-3); }
.lesson-list li.done .lesson-state { background: var(--brass); }
.lesson-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.lesson-video { position: relative; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; }
.lesson-video video, .lesson-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lesson-img { width: 100%; border-radius: var(--radius); margin-bottom: 28px; cursor: zoom-in; }
.lesson-file { display: grid; grid-template-columns: auto 1fr auto auto; gap: 14px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--lacquer); margin-top: 28px; }
.lesson-file > span { font-weight: 700; font-size: 12px; color: #000; background: var(--brass); padding: 4px 8px; border-radius: 3px; }
.lesson-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.lesson-nav a { color: var(--bone); text-decoration: none; max-width: 48%; }
.lesson-nav a:hover { color: var(--brass-hi); }
.lesson-nav a.next { text-align: right; margin-left: auto; }
.lesson-nav small { display: block; color: var(--ash); font-size: 13px; }
.lesson-aside { position: sticky; top: 96px; }
.lesson-aside h3 { font-size: 1.1rem; }
.done-note { color: var(--ok); margin-bottom: 12px; }
@media (max-width: 900px) { .lesson-layout { grid-template-columns: 1fr; } .lesson-aside { position: static; } }

.secao-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.secao-layout > div:first-child { position: sticky; top: 96px; }
@media (max-width: 960px) { .secao-layout { grid-template-columns: 1fr; } .secao-layout > div:first-child { position: static; } }
.threads { display: grid; gap: 20px; }
.thread { background: var(--lacquer); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; scroll-margin-top: 96px; }
.thread-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.thread-head time { color: var(--ash); font-size: 14px; margin-left: auto; }
.thread-lesson { margin: 0 0 8px; font-size: 14px; }
.thread-text { margin: 0 0 10px; }
.post-video { margin: 10px 0; display: grid; gap: 4px; }
.post-video video { width: 100%; max-height: 420px; background: #000; border-radius: var(--radius); }
.post-video .hint { font-size: 13px; color: var(--ash); }
.reply { margin-top: 14px; padding: 12px 16px; border-left: 3px solid var(--lacquer-3); background: rgba(0, 0, 0, .25); border-radius: 0 var(--radius) var(--radius) 0; }
.reply.staff { border-left-color: var(--brass); }
.reply p { margin: 0 0 6px; }
.reply-who { font-size: 14px; }
.reply-who time { color: var(--ash); margin-left: 6px; }
.reply-form summary { cursor: pointer; color: var(--brass-hi); font-weight: 600; margin-top: 14px; font-size: 15px; }
.upload-msg { color: var(--bad); margin: 0; }
.hub-link.hub-inst { border-color: var(--brass); background: radial-gradient(ellipse 80% 120% at 100% 100%, rgba(224, 102, 27, .22), transparent 60%), var(--lacquer); }

/* ---------- Pedido de registo em análise ---------- */
.pending-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.pending-steps li { position: relative; padding: 0 0 26px 44px; }
.pending-steps li::before { content: ""; position: absolute; left: 6px; top: 4px; width: 20px; height: 17px; clip-path: polygon(50% 0, 100% 100%, 0 100%); background: var(--lacquer-3); }
.pending-steps li::after { content: ""; position: absolute; left: 15px; top: 26px; bottom: 2px; width: 2px; background: var(--lacquer-3); }
.pending-steps li:last-child::after { display: none; }
.pending-steps li.done::before { background: var(--ok); }
.pending-steps li.now::before { background: var(--ember); }
.pending-steps strong { display: block; font-size: 1.1rem; }
.pending-steps span { display: block; color: var(--ash); margin-top: 2px; }
.pending-steps li.now strong { color: var(--brass-hi); }

/* ---------- Biblioteca PDF (V6.7) ---------- */
.lib-section { padding-top: clamp(32px, 5vw, 56px); }
.lib-bar { align-items: center; }
.lib-n { opacity: .6; font-size: 13px; margin-left: 2px; }
.filters a[aria-current] .lib-n { opacity: .75; }
.lib-search input { width: min(320px, 80vw); padding: 10px 16px; border-radius: 99px; border: 1px solid var(--line-strong); background: var(--lacquer); color: var(--bone); font: inherit; font-size: 15px; }
.lib-search input:focus { outline: none; border-color: var(--brass); }
.lib-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(22px, 3vw, 36px) clamp(16px, 2.4vw, 28px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); }
.lib-item { display: flex; flex-direction: column; min-width: 0; }
.lib-book { display: flex; flex-direction: column; gap: 12px; color: var(--bone); text-decoration: none; }
.lib-book:hover { color: var(--bone); }
.lib-cover {
    position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 2px 6px 6px 2px;
    background: #f4efe4; box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 14px 28px -12px rgba(0,0,0,.9), 0 2px 6px rgba(0,0,0,.6);
    transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
}
.lib-cover::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 9px; z-index: 2; background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(0,0,0,.05) 60%, rgba(255,255,255,.08)); }
.lib-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.lib-book:hover .lib-cover, .lib-book:focus-visible .lib-cover { transform: translateY(-6px); box-shadow: 0 22px 36px -14px rgba(0,0,0,.95), 0 0 0 1px var(--brass); }
.lib-cover-blank { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 18px 16px 18px 22px; background: radial-gradient(ellipse 90% 70% at 100% 100%, rgba(224,102,27,.35), transparent 60%), linear-gradient(160deg, #2a1b10, #0a0604); color: var(--bone); }
.lib-cover-mark { font-size: 12px; letter-spacing: .2em; color: var(--brass); font-weight: 700; }
.lib-cover-title { font-family: var(--display); font-size: 1.15rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.lib-ribbon { position: absolute; top: 10px; right: 0; z-index: 3; background: var(--ember); color: #000; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px 3px 10px; border-radius: 3px 0 0 3px; }
.lib-open { position: absolute; left: 50%; bottom: 14px; z-index: 3; transform: translate(-50%, 8px); opacity: 0; transition: .25s; background: rgba(0,0,0,.82); color: var(--brass-hi); border: 1px solid var(--brass); border-radius: 99px; padding: 5px 16px; font-size: 13px; font-weight: 600; }
.lib-book:hover .lib-open, .lib-book:focus-visible .lib-open { opacity: 1; transform: translate(-50%, 0); }
.lib-meta { display: grid; gap: 2px; }
.lib-cat { color: var(--brass-hi); font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; margin: 0; }
.lib-title { font-size: 15.5px; line-height: 1.35; font-weight: 600; }
.lib-author { color: var(--ash); font-size: 14px; }
.lib-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ash); flex-wrap: wrap; }
.lib-dl { display: inline-flex; align-items: center; gap: 5px; color: var(--brass-hi); text-decoration: none; font-weight: 600; }
.lib-dl:hover { color: var(--bone); }
.lib-ro { font-size: 12.5px; opacity: .8; }
.lib-admin-note { margin: 6px 0 0; font-size: 12.5px; color: var(--warn); }
.lib-admin-link { margin: 40px 0 0; font-size: 15px; }

/* Leitor */
.reader-head { padding: clamp(28px, 4vw, 44px) 0 18px; border-bottom: 1px solid var(--line); }
.reader-title { display: flex; justify-content: space-between; align-items: end; gap: 16px 24px; flex-wrap: wrap; }
.reader-title h1 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin: 4px 0 6px; }
.reader-sub { margin: 0; color: var(--ash); font-size: 15px; }
.reader-desc { color: var(--ash); max-width: 75ch; margin: 14px 0 0; font-size: 15.5px; }
.reader { background: #0d0907; padding-bottom: 48px; }
.reader-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 4px; padding: 8px max(var(--gutter), calc((100vw - var(--wrap)) / 2)); background: rgba(10,6,4,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.rb-btn, .rb-zoom { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; min-width: 38px; justify-content: center; padding: 0 10px; border-radius: 6px; border: 1px solid transparent; background: none; color: var(--bone); font: inherit; font-size: 14px; text-decoration: none; cursor: pointer; }
.rb-btn:hover, .rb-zoom:hover { border-color: var(--line-strong); color: var(--brass-hi); }
.rb-zoom { font-variant-numeric: tabular-nums; min-width: 64px; }
.rb-dl { color: var(--brass-hi); border-color: var(--line-strong); }
.rb-sep { width: 1px; height: 22px; background: var(--line); margin: 0 6px; }
.rb-grow { flex: 1; }
.rb-page { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ash); }
.rb-page input { width: 56px; padding: 6px 6px; text-align: center; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--lacquer); color: var(--bone); font: inherit; font-size: 14px; -moz-appearance: textfield; }
.rb-page input::-webkit-inner-spin-button { -webkit-appearance: none; }
.rb-page b { color: var(--bone); font-weight: 600; }
.reader-pages { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 24px 16px; min-height: 60vh; outline: none; }
.reader-page { background: #fff; box-shadow: 0 10px 30px -10px rgba(0,0,0,.9); max-width: none; flex: none; }
.reader-page canvas { display: block; }
.reader-msg { color: var(--ash); padding: 60px 0; }
.reader-msg.is-error { color: var(--bad); }
.reader.is-full { overflow: auto; background: #0d0907; }
.reader.is-full .reader-pages { min-height: 0; }
.reader-print-note { display: none; }
.no-copy .reader-page { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.reader-pages { overflow-x: auto; }
@media (max-width: 640px) { .rb-lbl { display: none; } .rb-sep { margin: 0 2px; } .rb-btn, .rb-zoom { padding: 0 6px; } .reader-pages { padding: 14px 8px; align-items: flex-start; } }
@media print {
    .reader.no-copy .reader-pages, .reader.no-copy .reader-bar { display: none !important; }
    .reader.no-copy .reader-print-note { display: block; color: #000; }
}
@media (max-width: 600px) {
    .lib-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
    .lib-title { font-size: 14.5px; }
    .lib-foot { font-size: 12px; }
    .lib-search, .lib-search input { width: 100%; }
    .lib-cover-title { font-size: 1rem; }
}
.footer-bottom .legal { color: var(--ash); }
@media (max-width: 480px) {
    .reader-bar { gap: 2px; flex-wrap: nowrap; padding-inline: 8px; }
    .reader-bar > a.rb-btn:first-child, .rb-sep { display: none; }
    .rb-btn { min-width: 34px; padding: 0 4px; }
    .rb-zoom { min-width: 46px; padding: 0 2px; font-size: 13px; }
    .rb-page input { width: 40px; padding: 6px 2px; }
    .rb-page { gap: 4px; font-size: 13px; }
}

/* ---------- V6.8: 詠春 葡萄牙 (Ving Tsun Portugal) na barra lateral ---------- */
.hero-glyphs { justify-content: center; }
.glyph-set { display: flex; flex-direction: column; align-items: stretch; gap: .16em; }
.g-vt { display: block; line-height: 1; }
.g-pt {
    display: flex; justify-content: space-between; align-items: center;
    font-size: .4em; line-height: 1; letter-spacing: 0;
    color: var(--bone); opacity: .82; text-shadow: none;
    padding-block: .12em; /* acerta o início e o fim com os caracteres grandes */
}
.g-pt span { display: block; }
@media (max-width: 520px) {
    .glyph-set { gap: .1em; }
    .g-pt { font-size: .42em; padding-inline: .06em; }
}

/* ---------- V6.8: mensagem de boas-vindas ---------- */
html.welcome-lock, html.welcome-lock body { overflow: hidden; }
.welcome {
    position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px;
    background: radial-gradient(ellipse 60% 55% at 50% 58%, rgba(224, 102, 27, .28), transparent 70%), radial-gradient(ellipse 120% 90% at 50% 120%, rgba(176, 32, 27, .22), transparent 60%), #050302;
    cursor: pointer; transition: opacity .7s ease, visibility .7s;
}
.welcome[hidden] { display: none; }
.welcome.is-out { opacity: 0; visibility: hidden; }
.welcome-inner { display: grid; justify-items: center; text-align: center; gap: 18px; max-width: 900px; }
.welcome-logo { width: clamp(84px, 12vw, 120px); height: auto; mix-blend-mode: lighten; animation: wIn 1s cubic-bezier(.2, .7, .2, 1) both; }
.welcome-glyphs { margin: 0; font-family: "Noto Serif CJK TC", "Noto Serif TC", "Songti TC", "SimSun", serif; color: var(--brass); letter-spacing: .3em; font-size: 1.2rem; opacity: .85; animation: wIn 1s .15s cubic-bezier(.2, .7, .2, 1) both; padding-left: .3em; }
.welcome-text { margin: 0; font-family: var(--display); font-size: clamp(1.9rem, 5.2vw, 3.6rem); line-height: 1.15; color: var(--bone); text-wrap: balance; }
.welcome-a { display: inline-block; animation: wIn 1.1s .35s cubic-bezier(.2, .7, .2, 1) both; }
.welcome-b { display: inline-block; color: var(--brass-hi); text-shadow: 0 0 32px rgba(224, 102, 27, .5); animation: wIn 1.1s .85s cubic-bezier(.2, .7, .2, 1) both; }
/* V7.4: a palavra a dourado fica sempre na sua linha, para não saltar quando muda de idioma */
.welcome-b { display: block; min-height: 1.2em; margin-top: .12em; }
.welcome-b.is-swap { animation: wSwap .42s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes wSwap { from { opacity: 0; transform: translateY(.35em); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
.welcome-b:lang(zh-Hant) { font-family: "Noto Serif CJK TC", "Noto Serif TC", "Songti TC", var(--display), serif; }
.welcome-line { width: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--brass), transparent); animation: wLine 1.6s 1.1s ease forwards; }
/* V7.22.5: «Saltar intro» no canto de cima, sempre à vista (também em telemóveis com a barra do navegador) */
.welcome { height: 100vh; height: 100dvh; }
.welcome-skip { position: absolute; right: max(16px, env(safe-area-inset-right)); top: max(16px, env(safe-area-inset-top)); z-index: 2; background: rgba(5, 3, 2, .55); border: 1px solid var(--brass); color: var(--bone); border-radius: 99px; padding: 10px 20px; min-height: 44px; font: inherit; font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.welcome-hint { position: absolute; left: 0; right: 0; bottom: max(18px, env(safe-area-inset-bottom)); margin: 0; text-align: center; color: var(--ash); font-size: 13px; letter-spacing: .04em; opacity: 0; animation: wIn 1s 1.6s ease forwards; }
.welcome-skip:hover { color: var(--brass-hi); border-color: var(--brass); }
@keyframes wIn { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes wLine { to { width: min(320px, 60vw); } }
@media (prefers-reduced-motion: reduce) {
    .welcome-logo, .welcome-glyphs, .welcome-a, .welcome-b { animation: none; }
    .welcome-line { animation: none; width: min(320px, 60vw); }
    .welcome { transition: none; }
}

/* ---------- V6.8.1: texto corrido justificado (artigos, matérias do Instituto, parceiros) ---------- */
.prose p, .prose li {
    text-align: justify; text-justify: inter-word;
    -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 7 3 3;
    overflow-wrap: break-word;
}
.prose p.muted, .prose figcaption { text-align: left; -webkit-hyphens: manual; hyphens: manual; }
/* Resumos nos cartões da lista de artigos (artigos.php e página inicial) */
.news-card p { text-align: justify; text-justify: inter-word; -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 7 3 3; }
@media (max-width: 340px) { .prose p, .prose li, .news-card p { text-align: left; } }

/* ---------- V6.8.2: página do artigo ---------- */
.article-title { font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.15; text-wrap: balance; margin-bottom: 12px; }
.wrap.narrow.prose { max-width: calc(760px + var(--gutter) * 2); } /* texto alinhado com o título */
.article-head { padding-bottom: clamp(24px, 3vw, 36px); }
.article-body { padding-top: clamp(32px, 4vw, 52px); }
.article-body .lead { font-size: clamp(1.08rem, 1.5vw, 1.2rem); }

/* ---------- V6.8.3: lista de artigos (título, resumo, «Ler mais») ---------- */
.article-list-section { padding-top: clamp(32px, 5vw, 64px); }
.article-list { border-top: 1px solid var(--line); }
.article-item { display: grid; grid-template-columns: 1fr; gap: 24px; padding: clamp(26px, 3.4vw, 40px) 0; border-bottom: 1px solid var(--line); }
.article-item.has-img { grid-template-columns: 220px 1fr; align-items: start; }
.article-thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--lacquer); }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.article-item:hover .article-thumb img { transform: scale(1.04); }
.article-summary time { display: block; color: var(--brass); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.article-summary h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.2; margin: 0 0 12px; text-wrap: balance; }
.article-summary h2 a { color: var(--bone); text-decoration: none; transition: color .15s; }
.article-summary h2 a:hover { color: var(--brass-hi); }
.article-summary p { color: var(--ash); margin: 0 0 14px; text-align: justify; text-justify: inter-word; -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 7 3 3; }
.read-more { display: inline-flex; align-items: center; gap: 2px; color: var(--brass-hi); font-weight: 600; font-size: 15px; text-decoration: none; border-bottom: 1px solid transparent; padding-bottom: 1px; }
.read-more:hover { color: var(--bone); border-bottom-color: var(--brass); }
.read-more span { transition: transform .2s; display: inline-block; }
.read-more:hover span { transform: translateX(3px); }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 36px; font-size: 15px; }
.pager a { color: var(--brass-hi); text-decoration: none; font-weight: 600; }
.pager-n { color: var(--ash); }
@media (max-width: 640px) {
    .article-item.has-img { grid-template-columns: 1fr; gap: 16px; }
    .article-thumb { aspect-ratio: 16 / 9; }
}
.article-list, .article-list-section .pager { max-width: 880px; }

/* ---------- V6.8.4: artigos em janelas (cartões) ---------- */
.art-grid { display: grid; gap: clamp(18px, 2.2vw, 26px); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.art-card { display: flex; flex-direction: column; background: var(--lacquer); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; color: var(--bone); text-decoration: none; transition: border-color .2s, transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s; }
.art-card:hover, .art-card:focus-visible { border-color: var(--brass); transform: translateY(-4px); box-shadow: 0 18px 30px -18px rgba(0,0,0,.9), 0 0 0 1px rgba(201,150,46,.25); color: var(--bone); }
.art-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--lacquer-2); }
.art-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.art-card:hover .art-img img { transform: scale(1.05); }
.art-img.is-empty { display: grid; place-items: center; background: radial-gradient(ellipse 70% 90% at 50% 100%, rgba(224,102,27,.22), transparent 70%), linear-gradient(160deg, #1e130b, #0a0604); }
.art-img.is-empty img { width: 64px; height: 64px; object-fit: contain; mix-blend-mode: lighten; opacity: .8; }
.art-card:hover .art-img.is-empty img { transform: none; }
.art-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.art-body time { color: var(--brass); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.art-title { font-family: var(--display); font-weight: 400; font-size: 1.28rem; line-height: 1.25; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; transition: color .15s; }
.art-card:hover .art-title { color: var(--brass-hi); }
.art-excerpt { color: var(--ash); font-size: 15px; line-height: 1.6; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; text-align: justify; -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 7 3 3; }
.art-more { margin-top: auto; color: var(--brass-hi); font-weight: 600; font-size: 14.5px; }
.art-more span { display: inline-block; transition: transform .2s; }
.art-card:hover .art-more span { transform: translateX(4px); }
.article-list-section .pager { max-width: none; }
@media (max-width: 980px) { .art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .art-grid { grid-template-columns: 1fr; } .art-excerpt { -webkit-line-clamp: 3; } }
@media (max-width: 600px) { .art-img.is-empty { aspect-ratio: 3 / 1; } .art-img.is-empty img { width: 48px; height: 48px; } }

/* ---------- V7.0: Glossário 詞彙 ---------- */
.zh { font-family: "Noto Serif TC", "Noto Serif CJK TC", "Songti TC", "PMingLiU", "MingLiU", "SimSun", serif; }
.gloss-section { padding-top: clamp(28px, 4vw, 48px); }
.gloss-bar { display: flex; justify-content: space-between; align-items: center; gap: 14px 20px; flex-wrap: wrap; margin-bottom: 28px; }
.gloss-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.gloss-search { width: min(300px, 100%); padding: 10px 16px; border-radius: 99px; border: 1px solid var(--line-strong); background: var(--lacquer); color: var(--bone); font: inherit; font-size: 15px; }
.gloss-search:focus { outline: none; border-color: var(--brass); }
.gloss-study { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--ash); cursor: pointer; user-select: none; }
.gloss-study input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gs-track { width: 38px; height: 22px; border-radius: 99px; background: var(--lacquer-3); border: 1px solid var(--line-strong); position: relative; transition: .2s; }
.gs-knob { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--ash); transition: .2s; }
.gloss-study input:checked + .gs-track { background: var(--brass); border-color: var(--brass); }
.gloss-study input:checked + .gs-track .gs-knob { left: 18px; background: #000; }
.gloss-study input:focus-visible + .gs-track { outline: 2px solid var(--brass-hi); outline-offset: 2px; }
.gloss-study input:checked ~ span:last-child { color: var(--brass-hi); }

.gloss-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.gcard { position: relative; }
.gcard[hidden] { display: none; }
.gcard-open { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; text-align: left; font: inherit; color: var(--bone); cursor: pointer; background: var(--lacquer); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; transition: border-color .2s, transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s; }
.gcard-open:hover, .gcard-open:focus-visible { border-color: var(--brass); transform: translateY(-3px); box-shadow: 0 16px 28px -18px #000; }
.gcard.is-draft .gcard-open { opacity: .6; }
.gcard-top { position: relative; display: grid; place-items: center; min-height: 128px; padding: 22px 16px 16px; background: radial-gradient(ellipse 80% 90% at 50% 120%, rgba(224,102,27,.32), transparent 65%), linear-gradient(180deg, #1c120a, #0d0805); border-bottom: 1px solid var(--line); }
.gcard-zh { font-weight: 900; font-size: clamp(2.2rem, 3.4vw, 2.7rem); line-height: 1.05; color: var(--brass-hi); letter-spacing: .06em; text-align: center; text-shadow: 0 0 22px rgba(224,102,27,.45); word-break: keep-all; }
.gcard-photo { position: absolute; top: 10px; right: 10px; width: 52px; height: 52px; border-radius: 8px; object-fit: contain; background: #000; border: 2px solid var(--brass); box-shadow: 0 4px 10px rgba(0,0,0,.6); }
.gcard-draft { position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 700; color: #000; background: var(--warn); padding: 2px 8px; border-radius: 99px; }
.gcard-body { display: flex; flex-direction: column; gap: 2px; padding: 14px 58px 16px 16px; flex: 1; }
.gcard-rom { font-family: var(--display); font-weight: 400; font-size: 1.2rem; line-height: 1.25; }
.gcard-jp { color: var(--brass); font-size: 13.5px; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.gcard-pt { color: var(--ash); font-size: 14.5px; margin-top: 4px; transition: filter .25s, color .25s; }
.gplay { position: absolute; right: 12px; bottom: 14px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); background: #0d0805; color: var(--brass-hi); cursor: pointer; transition: .2s; }
.gplay:hover { border-color: var(--brass); background: var(--brass); color: #000; }
.gplay[data-tts] { border-style: dashed; }
.gplay.is-playing { background: var(--ember); border-color: var(--ember); color: #000; animation: gpulse 1s ease-in-out infinite; }
@keyframes gpulse { 50% { box-shadow: 0 0 0 7px rgba(224,102,27,.18); } }
.is-study .gcard-pt { filter: blur(6px); color: transparent; text-shadow: 0 0 8px var(--ash); user-select: none; }
.is-study .gcard.is-revealed .gcard-pt { filter: none; color: var(--bone); text-shadow: none; }
.gloss-none { color: var(--ash); padding: 30px 0; }
.gloss-note { margin: 34px 0 0; font-size: 14px; color: var(--ash); }

.gdlg { width: min(880px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--line-strong); border-radius: 12px; background: #0f0a06; color: var(--bone); overflow: auto; }
.gdlg::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(3px); }
.gdlg-close { position: absolute; top: 10px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: #000; color: var(--bone); font-size: 24px; cursor: pointer; }
.gdlg-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.gdlg.no-photo .gdlg-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); }
.gdlg-visual { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 34px 24px; background: radial-gradient(ellipse 90% 70% at 50% 110%, rgba(224,102,27,.35), transparent 65%), linear-gradient(180deg, #1c120a, #090604); border-right: 1px solid var(--line); }
.gdlg-zh { margin: 0; font-weight: 900; font-size: clamp(3rem, 7vw, 4.6rem); line-height: 1.05; color: var(--brass-hi); text-align: center; letter-spacing: .06em; text-shadow: 0 0 30px rgba(224,102,27,.5); }
.gdlg-photo-link { display: block; max-width: 100%; line-height: 0; cursor: zoom-in; }
.gdlg-photo-link[hidden] { display: none; }
.gdlg-photo { display: block; width: auto; height: auto; max-width: 100%; max-height: 58vh; margin: 0 auto; object-fit: contain; border-radius: 8px; border: 1px solid var(--line-strong); background: #000; }
.gdlg-photo[hidden] { display: none; }
.gdlg-text { padding: 34px 30px 30px; }
.gdlg-cat { margin: 0 0 6px; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); }
.gdlg-text h2 { margin: 0 0 6px; font-size: clamp(1.8rem, 3.4vw, 2.4rem); padding-right: 40px; }
.gdlg-jp { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; color: var(--brass-hi); font-size: 1.05rem; letter-spacing: .05em; }
.gplay-lg { position: static; width: auto; height: 38px; padding: 0 14px 0 12px; display: inline-flex; gap: 6px; border-radius: 99px; font: inherit; font-size: 14px; font-weight: 600; letter-spacing: 0; }
.gdlg-pt { margin: 0; font-size: 1.25rem; color: var(--bone); }
.gdlg-pt2 { margin: 2px 0 0; color: var(--ash); font-style: italic; }
.gdlg-desc { margin-top: 18px; max-width: none; color: #d8cfbd; font-size: 16px; }
@media (max-width: 680px) {
    .gdlg-grid, .gdlg.no-photo .gdlg-grid { grid-template-columns: 1fr; }
    .gdlg-visual { border-right: 0; border-bottom: 1px solid var(--line); padding: 28px 18px; }
    .gdlg-photo { max-height: 46vh; }
    .gdlg-text { padding: 24px 20px; }
    .gloss-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .gcard-top { min-height: 100px; }
    .gcard-zh { font-size: 1.9rem; }
    .gcard-photo { width: 40px; height: 40px; top: 6px; right: 6px; }
    .gcard-body { padding: 12px 12px 54px; }
    .gplay { right: auto; left: 12px; bottom: 12px; width: 34px; height: 34px; }
}
.gcard-zh.len-4 { font-size: clamp(1.8rem, 2.6vw, 2.1rem); }
.gcard-zh.len-5, .gcard-zh.len-6 { font-size: clamp(1.45rem, 2.1vw, 1.7rem); letter-spacing: .02em; }
.gdlg-zh:has(+ *) { }
@media (max-width: 680px) { .gcard-zh.len-4 { font-size: 1.45rem; } .gcard-zh.len-5, .gcard-zh.len-6 { font-size: 1.15rem; } }

/* V7.5 — Glossário: som ao passar o rato pelos caracteres */
@media (hover: hover) and (pointer: fine) {
    .gcard-zh, .gdlg-zh { cursor: help; transition: color .15s, text-shadow .15s; }
    .gcard-zh:hover, .gdlg-zh:hover { color: var(--brass-hi); text-shadow: 0 0 18px rgba(224, 102, 27, .45); }
}
.gloss-hover-tip { margin: 0 0 14px; font-size: 14px; color: var(--ash); }
.gloss-hover-opt[hidden] { display: none; }

/* V7.6 — Instituto: módulos de estudo */
.inst-study .zh, .mod-seal { font-family: "Noto Serif TC", "Noto Serif CJK TC", "Songti TC", "PMingLiU", serif; }
.study-summary { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(18px, 3vw, 32px); align-items: center; padding: clamp(18px, 3vw, 28px); margin-bottom: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: radial-gradient(120% 140% at 0% 0%, rgba(201, 150, 46, .1), transparent 55%), var(--lacquer); }
.study-ring { --p: 0; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--brass) calc(var(--p) * 1%), var(--lacquer-3) 0); }
.study-ring > span { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--lacquer); }
.study-ring strong { font-size: 1.35rem; color: var(--bone); }
.study-kicker { margin: 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
.study-count { margin: 4px 0 12px; font-size: 1.15rem; color: var(--bone); }
.study-next { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: baseline; max-width: 100%; text-align: left; }
.study-next strong { font-weight: 700; }
.study-alldone { margin: 0; color: var(--brass-hi); }

.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 14px; margin-bottom: 44px; }
.mod-card { --mc: var(--brass); position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px 18px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, color-mix(in srgb, var(--mc) 12%, var(--lacquer)), var(--lacquer) 70%); color: var(--bone); text-decoration: none; overflow: hidden; transition: transform .18s, border-color .18s, box-shadow .18s, opacity .18s; }
.mod-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--mc); }
.mod-card:hover, .mod-card:focus-visible { transform: translateY(-3px); border-color: color-mix(in srgb, var(--mc) 70%, transparent); box-shadow: 0 14px 30px -18px color-mix(in srgb, var(--mc) 80%, #000); }
.mod-card.is-active { border-color: var(--mc); box-shadow: 0 0 0 1px var(--mc), 0 14px 30px -18px color-mix(in srgb, var(--mc) 80%, #000); }
.mod-card.is-dim { opacity: .55; }
.mod-card.is-dim:hover { opacity: .9; }
.mod-card.is-empty { cursor: default; opacity: .5; }
.mod-card.is-empty:hover { transform: none; box-shadow: none; border-color: var(--line); }
.mod-seal { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; font-size: 30px; font-weight: 900; line-height: 1; color: var(--mc); background: color-mix(in srgb, var(--mc) 15%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mc) 45%, transparent); }
.mod-name { font-family: var(--display); font-size: 1.22rem; line-height: 1.2; margin-top: 4px; }
.mod-desc { font-size: 14px; line-height: 1.45; color: var(--ash); }
.mod-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; gap: 10px; }
.mod-bar { flex: 1; height: 6px; border-radius: 3px; background: var(--lacquer-3); overflow: hidden; }
.mod-bar span { display: block; height: 100%; background: var(--mc); border-radius: 3px; }
.mod-n { font-size: 13px; color: var(--ash); white-space: nowrap; }
.mod-soon { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ash); }
.mod-filter { margin: -26px 0 22px; }

.inst-module { --mc: var(--brass); margin-bottom: 48px; scroll-margin-top: 96px; }
.inst-module[hidden] { display: none; }
.inst-module-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 2px solid color-mix(in srgb, var(--mc) 55%, transparent); }
.inst-module-head .mod-seal { width: 50px; height: 50px; font-size: 25px; flex: none; }
.inst-module-head h2 { font-size: 1.6rem; margin: 0; }
.inst-module-head p { margin: 3px 0 0; color: var(--ash); font-size: 15px; }
.inst-module .lesson-list { border-top: 0; }
.inst-module .lesson-list a { grid-template-columns: 34px minmax(0, 1fr) auto; padding: 16px 6px; border-radius: 10px; transition: background .15s; }
.inst-module .lesson-list a:hover { background: color-mix(in srgb, var(--mc) 7%, transparent); }
.inst-module .lesson-list a:hover strong { color: var(--bone); }
.inst-module .lesson-state { width: 30px; height: 30px; clip-path: none; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--ash); background: transparent; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--mc) 55%, transparent); }
.inst-module .lesson-list li.done .lesson-state { background: var(--mc); box-shadow: none; }
.inst-module .lesson-list li.done .lesson-state::after { content: ""; width: 10px; height: 6px; border: 2px solid #0c0806; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.inst-module .lesson-list li.done strong { color: var(--ash); }
@media (max-width: 560px) {
    .study-summary { grid-template-columns: 1fr; justify-items: start; }
    .study-ring { width: 80px; height: 80px; } .study-ring > span { width: 62px; height: 62px; }
    .mod-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .mod-card { padding: 16px 14px 14px; } .mod-seal { width: 48px; height: 48px; font-size: 24px; }
    .mod-desc { display: none; }
    .inst-module .lesson-tags { display: none; }
}

/* V7.8 — Fotografia da ficha só pelo administrador */
.photo-locked { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.photo-locked .pc-frame { cursor: default; flex: none; }
.photo-locked .hint { flex: 1 1 220px; margin: 0; }

/* V7.9 — atalho do administrador para o painel */
.admin-pill { position: fixed; left: 16px; bottom: 16px; z-index: 60; padding: 10px 16px; border-radius: 99px; background: var(--brass); color: #120d07; font-weight: 600; font-size: 14px; text-decoration: none; box-shadow: 0 8px 24px rgba(0,0,0,.45); }
.admin-pill:hover { background: var(--brass-hi); }
.account-menu a.account-admin { color: var(--brass-hi); font-weight: 600; }
@media print { .admin-pill { display: none; } }

/* V7.9 — PDFs da matéria em vários idiomas */
.lesson-file-ml + .lesson-file-ml { margin-top: 10px; }
.pdf-langs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pdf-lang { font: inherit; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; min-width: 40px; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: var(--ash); cursor: pointer; }
.pdf-lang:hover { border-color: var(--brass); color: var(--brass-hi); }
.pdf-lang.is-on { background: var(--brass); border-color: var(--brass); color: #120d07; }
@media (max-width: 560px) { .lesson-file { grid-template-columns: auto 1fr; } .lesson-file .btn { grid-column: span 1; } }
.lesson-file-ml small { display: block; margin-top: 2px; }

/* V7.9.2 — Conteúdo exclusivo */
.ex-mine { border-color: var(--brass); }
.ex-sub { margin: 40px 0 14px; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--ash); }
.media-card.is-new { outline: 2px solid var(--brass); outline-offset: 2px; border-radius: var(--radius); }
.new-dot { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: var(--brass); color: #120d07; padding: 2px 7px; border-radius: 99px; vertical-align: 1px; }
.hub-new { display: inline-block; margin-left: 6px; font-size: 11.5px; font-weight: 700; background: var(--brass); color: #120d07; padding: 2px 8px; border-radius: 99px; vertical-align: 2px; }

/* V7.9.4 — Biblioteca: áudio, vídeo e ZIP */
.lib-media { padding-top: 10px; }
.lib-player-video video { width: 100%; max-height: 78vh; background: #000; border-radius: var(--radius); display: block; }
.lib-player-audio { display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: center; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--lacquer); max-width: 820px; }
.lib-audio-art { aspect-ratio: 1; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(160deg, #2a1b10, #0a0604); color: var(--brass); font-size: 64px; }
.lib-audio-art img { width: 100%; height: 100%; object-fit: cover; }
.lib-audio-body { display: grid; gap: 6px; min-width: 0; }
.lib-audio-body small { color: var(--ash); }
.lib-audio-body audio { width: 100%; margin-top: 10px; }
.lib-zip { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--lacquer); max-width: 820px; }
.lib-zip > div { display: grid; gap: 4px; } .lib-zip small { color: var(--ash); }
.lib-zip-ic { font-weight: 700; letter-spacing: .12em; font-size: 13px; color: #120d07; background: var(--brass); padding: 14px 12px; border-radius: 8px; }
@media (max-width: 640px) { .lib-player-audio { grid-template-columns: 1fr; } .lib-audio-art { max-width: 180px; } .lib-zip { grid-template-columns: auto 1fr; } .lib-zip .btn { grid-column: 1 / -1; } }
.lib-cover-mark.t-audio, .lib-cover-mark.t-video, .lib-cover-mark.t-zip { color: var(--brass-hi); }
.lib-type { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; padding: 2px 7px; border-radius: 3px; background: var(--brass); color: #120d07; position: absolute; left: 14px; bottom: 10px; z-index: 3; }
.lib-types { margin-bottom: 16px; }

/* V7.9.5 — aviso aos alunos na área de membro */
.member-notice { display: flex; gap: 14px; align-items: flex-start; margin: 26px 0 0; padding: 16px 20px; border: 1px solid var(--line); border-left: 4px solid var(--brass); border-radius: var(--radius); background: var(--lacquer); }
.member-notice p { margin: 0; font-size: 1.05rem; line-height: 1.55; color: var(--bone); }
.member-notice a { color: var(--brass-hi); }
.mn-label { flex: none; white-space: nowrap; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #120d07; background: #f4efe6; padding: 4px 9px; border-radius: 99px; margin-top: 3px; }
.member-notice.is-destaque { background: linear-gradient(90deg, rgba(201,150,46,.22), var(--lacquer) 70%); border-color: var(--brass); }
.member-notice.is-destaque p { font-family: var(--display); font-size: 1.25rem; }
@media (max-width: 560px) { .member-notice { flex-direction: column; gap: 8px; } }

.mn-label.mn-branco { background: #f4efe6; color: #120d07; }
.mn-label.mn-dourado { background: var(--brass); color: #120d07; }
.mn-label.mn-vermelho { background: #b0201b; color: #fff; }
.mn-label.mn-contorno { background: transparent; color: #f4efe6; border: 1px solid #f4efe6; padding: 3px 9px; }

/* V7.10 — Privacidade e termo do praticante */
.consent-docs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 26px; }
.consent-doc { border: 1px solid var(--line); border-radius: var(--radius); background: var(--lacquer); padding: 20px 22px; min-width: 0; }
.consent-doc h2 { margin: 0 0 12px; font-size: 1.35rem; }
.consent-scroll { max-height: 340px; overflow: auto; padding-right: 10px; font-size: 14.5px; }
.consent-scroll h3 { font-size: 1rem; margin: 1.1em 0 .4em; color: var(--brass-hi); }
.consent-scroll h3:first-child { margin-top: 0; }
.consent-link { margin: 12px 0 0; font-size: 14px; }
.consent-form { display: grid; gap: 14px; max-width: 860px; padding: 22px; border: 1px solid var(--brass); border-radius: var(--radius); }
.consent-form em { font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--brass-hi); margin-left: 4px; white-space: nowrap; }
.consent-form em.opt { color: var(--ash); font-weight: 400; }
.consent-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.consent-done { display: inline-block; margin: 0 0 18px; padding: 6px 12px; border-radius: 99px; background: rgba(127,209,161,.12); color: #9fdcb8; font-size: 14px; }
.consent-page h3 { color: var(--brass-hi); }
@media (max-width: 860px) { .consent-docs { grid-template-columns: 1fr; } .consent-scroll { max-height: 260px; } }
.consent-form [hidden] { display: none !important; }

/* V7.11 — Aulas em direto */
.live-h { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--ash); margin: 34px 0 14px; }
.live-h:first-child { margin-top: 0; }
.live-cards { display: grid; gap: 12px; }
.live-card { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--lacquer); color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.live-card:hover { border-color: var(--brass); transform: translateY(-1px); }
.live-card.is-aberta { border-color: #c0291f; box-shadow: 0 0 0 1px #c0291f inset; }
.live-cal { display: grid; place-items: center; width: 62px; height: 66px; border-radius: 10px; background: #0b0806; border: 1px solid var(--line); line-height: 1; }
.live-cal b { font-size: 26px; color: var(--bone); } .live-cal span { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--brass-hi); margin-top: -10px; }
.live-info { display: grid; gap: 4px; min-width: 0; }
.live-info strong { font-size: 1.12rem; color: var(--bone); }
.live-info small { color: var(--ash); }
.live-kind { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-hi); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #e3342f; box-shadow: 0 0 0 0 rgba(227,52,47,.7); animation: livepulse 1.6s infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(227,52,47,.6); } 70% { box-shadow: 0 0 0 9px rgba(227,52,47,0); } 100% { box-shadow: 0 0 0 0 rgba(227,52,47,0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.live-count { color: var(--brass-hi) !important; font-weight: 600; }
.live-go { font-weight: 600; color: var(--brass-hi); white-space: nowrap; }
.live-banner { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; margin-top: 22px; padding: 14px 20px; border-radius: var(--radius); border: 1px solid #c0291f; background: linear-gradient(90deg, rgba(192,41,31,.25), var(--lacquer) 75%); color: inherit; text-decoration: none; }
.live-banner strong { color: var(--bone); font-size: 1.08rem; }
.live-desc { max-width: 70ch; color: var(--ash); margin-top: 0; }
.live-wait, .live-enter { text-align: center; padding: 46px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--lacquer); max-width: 760px; margin: 0 auto; }
.live-big { font-family: var(--display); font-size: clamp(2.6rem, 8vw, 4.6rem); color: var(--bone); margin: 14px 0 6px; font-variant-numeric: tabular-nums; }
.live-enter h2 { margin: 14px 0 22px; }
.btn-xl { font-size: 1.15rem; padding: 16px 34px; }
.live-tips { text-align: left; display: inline-block; color: var(--ash); margin: 10px auto 0; }
.live-note { margin: 18px auto 0; max-width: 56ch; font-size: 13.5px; color: #f0d79a; }
.live-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.live-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.live-frame.jitsi { aspect-ratio: auto; height: min(78vh, 760px); }
.live-yt { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; }
.live-chat { border-radius: var(--radius); overflow: hidden; background: #fff; min-height: 420px; }
.live-chat iframe { width: 100%; height: 100%; border: 0; display: block; min-height: 420px; }
.live-small { font-size: 13px; margin-top: 8px; }
@media (max-width: 900px) { .live-yt { grid-template-columns: 1fr; } .live-chat, .live-chat iframe { min-height: 360px; } }
@media (max-width: 600px) { .live-card { grid-template-columns: auto 1fr; } .live-go { grid-column: 1 / -1; } .live-banner { grid-template-columns: 1fr; gap: 6px; } }
.live-enter .btn-xl + p { margin-top: 18px; }

/* V7.12 — acesso do instrutor */
.staff-banner { display: grid; grid-template-columns: auto auto 1fr auto; gap: 14px; align-items: center; margin-top: 22px; padding: 14px 20px; border-radius: var(--radius); border: 1px solid var(--brass); background: linear-gradient(90deg, rgba(201,150,46,.18), var(--lacquer) 70%); color: inherit; text-decoration: none; }
.staff-banner strong { color: var(--bone); font-size: 1.08rem; }
.staff-banner small { color: var(--ash); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
@media (max-width: 700px) { .staff-banner { grid-template-columns: 1fr; gap: 4px; } .staff-banner small { white-space: normal; } }

/* V7.12.1 — página Sobre */
.about-photo { margin: 0 0 28px; }
.about-photo img { width: 100%; height: auto; border-radius: var(--radius); display: block; }
.about-photo figcaption { margin-top: 8px; font-size: 13.5px; color: var(--ash); }

/* V7.13 — Chat dos membros */
.chat-section { padding-top: 28px; }
.chat { display: grid; grid-template-columns: 260px minmax(0, 1fr); height: min(74vh, 760px); min-height: 480px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--lacquer); }
.chat-rooms { border-right: 1px solid var(--line); overflow-y: auto; padding: 10px; background: rgba(0,0,0,.25); }
.chat-room { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; color: inherit; text-decoration: none; }
.chat-room:hover { background: rgba(255,255,255,.04); }
.chat-room.is-on { background: rgba(201,150,46,.16); box-shadow: inset 3px 0 0 var(--brass); }
.chat-room-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #0b0806; border: 1px solid var(--line); color: var(--brass-hi); font-weight: 700; }
.chat-room-txt { display: grid; min-width: 0; }
.chat-room-txt strong { font-size: 14.5px; color: var(--bone); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-room-txt small { font-size: 12px; color: var(--ash); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-new { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: #c0291f; color: #fff; font-size: 11.5px; display: grid; place-items: center; }
.chat-new[hidden] { display: none; }
.chat-main { display: grid; grid-template-rows: auto auto 1fr auto; min-width: 0; min-height: 0; }
.chat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.chat-head h2 { margin: 0; font-size: 1.15rem; }
.chat-head small { color: var(--ash); }
.chat-live { display: inline-flex; gap: 6px; align-items: center; font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--ash); }
.chat-live i { width: 7px; height: 7px; border-radius: 50%; background: #3fb37f; }
.chat-pin { display: flex; gap: 10px; align-items: flex-start; padding: 10px 18px; background: rgba(201,150,46,.10); border-bottom: 1px solid var(--line); font-size: 14px; }
.chat-pin p { margin: 0; white-space: pre-line; color: var(--bone); }
.chat-pin[hidden] { display: none; }
.chat-log { overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.chat-loading, .chat-empty { margin: auto; color: var(--ash); }
.chat-day { align-self: center; margin: 8px 0; padding: 3px 12px; border-radius: 99px; background: rgba(255,255,255,.06); font-size: 12px; color: var(--ash); }
.msg { display: flex; gap: 10px; align-items: flex-end; max-width: 78%; }
.msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.msg-av { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; background: hsl(var(--h) 45% 32%); }
.msg-b { position: relative; padding: 8px 12px 6px; border-radius: 14px 14px 14px 4px; background: #1d1611; border: 1px solid var(--line); min-width: 0; }
.msg.mine .msg-b { border-radius: 14px 14px 4px 14px; background: #3a2a12; border-color: rgba(201,150,46,.35); }
.msg-who { font-size: 12.5px; font-weight: 700; color: var(--brass-hi); margin-bottom: 2px; display: flex; gap: 6px; align-items: center; }
.msg-tag { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 1px 6px; border-radius: 4px; background: rgba(201,150,46,.2); color: var(--brass-hi); }
.msg-t { color: var(--bone); font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.msg-t a { color: var(--brass-hi); }
.msg.gone .msg-t em { color: var(--ash); font-size: 13.5px; }
.msg-meta { display: flex; gap: 8px; justify-content: flex-end; align-items: center; margin-top: 2px; font-size: 11px; color: var(--ash); }
.msg-del, .msg-mute { border: 0; background: none; color: var(--ash); cursor: pointer; padding: 0 2px; font-size: 14px; line-height: 1; opacity: 0; transition: opacity .15s; }
.msg:hover .msg-del, .msg:hover .msg-mute, .msg-del:focus, .msg-mute:focus { opacity: 1; }
@media (hover: none) { .msg-del, .msg-mute { opacity: .7; } }
.mute-menu { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ash); }
.mute-menu button { font: inherit; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: var(--bone); cursor: pointer; }
.mute-menu button:hover { border-color: var(--brass); }
.chat-form { border-top: 1px solid var(--line); padding: 10px 14px 12px; display: grid; gap: 8px; }
.chat-emojis { display: flex; gap: 2px; flex-wrap: wrap; }
.chat-emojis button { border: 0; background: none; font-size: 18px; padding: 2px 5px; border-radius: 6px; cursor: pointer; }
.chat-emojis button:hover { background: rgba(255,255,255,.07); }
.chat-input { display: flex; gap: 10px; align-items: flex-end; }
.chat-input textarea { flex: 1; resize: none; min-height: 44px; max-height: 160px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: #0b0806; color: var(--bone); font: inherit; font-size: 15px; line-height: 1.4; }
.chat-input textarea:focus { outline: none; border-color: var(--brass); }
.chat-err { margin: 0; font-size: 13px; color: #f3a28f; }
.chat-err[hidden] { display: none; }
.chat-closed { margin: 0; padding: 14px 18px; border-top: 1px solid var(--line); color: var(--ash); font-size: 14px; }
.chat-note { margin-top: 12px; font-size: 13px; }
@media (max-width: 760px) {
  .chat { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: 80vh; }
  .chat-rooms { display: flex; gap: 6px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; }
  .chat-room { grid-template-columns: auto auto; white-space: nowrap; padding: 8px 10px; }
  .chat-room-ic, .chat-room-txt small { display: none; }
  .chat-room.is-on { box-shadow: inset 0 -2px 0 var(--brass); }
  .msg { max-width: 92%; }
  .chat-emojis { display: none; }
}

/* V7.14 — Assistente de perguntas frequentes (página Sobre) */
.faq-band { border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(201,150,46,.05), transparent 40%); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 40px; align-items: start; }
.faq-bot { position: sticky; top: 96px; display: grid; grid-template-rows: auto 1fr auto auto; height: min(640px, 80vh); border: 1px solid var(--brass); border-radius: var(--radius); background: var(--lacquer); overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.faq-bot-head { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(201,150,46,.18), transparent); }
.faq-bot-head img { border-radius: 50%; background: #0b0806; }
.faq-bot-head div { display: grid; } .faq-bot-head strong { color: var(--bone); font-size: 1.05rem; } .faq-bot-head small { color: var(--ash); font-size: 12.5px; }
.faq-log { overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.fb { max-width: 92%; padding: 10px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; }
.fb p { margin: 0 0 6px; } .fb p:last-child { margin-bottom: 0; }
.fb ul { margin: 6px 0; padding-left: 1.1em; } .fb li { margin: 3px 0; }
.fb a { color: var(--brass-hi); }
.fb-bot { align-self: flex-start; background: #1d1611; border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; color: var(--bone); }
.fb-me { align-self: flex-end; background: #3a2a12; border: 1px solid rgba(201,150,46,.35); border-radius: 14px 14px 4px 14px; color: var(--bone); }
.fb-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.fb-chips button { font: inherit; font-size: 13px; text-align: left; padding: 6px 11px; border-radius: 99px; border: 1px solid rgba(201,150,46,.45); background: transparent; color: var(--brass-hi); cursor: pointer; }
.fb-chips button:hover { background: rgba(201,150,46,.14); }
.fb-also { margin-top: 10px !important; font-size: 13px; color: var(--ash); }
.fb-vote { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ash); }
.fb-vote button { font: inherit; padding: 2px 10px; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: var(--bone); cursor: pointer; }
.fb-vote .btn { margin-top: 4px; }
.faq-ask { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.faq-ask input { flex: 1; min-width: 0; padding: 11px 14px; border-radius: 99px; border: 1px solid var(--line); background: #0b0806; color: var(--bone); font: inherit; }
.faq-ask input:focus { outline: none; border-color: var(--brass); }
.faq-ask .btn { border-radius: 99px; padding: 0 16px; }
.faq-privacy { margin: 0; padding: 0 14px 12px; font-size: 11.5px; color: var(--ash); }
.faq-list h2 { margin-top: 0; }
.faq-tema { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-hi); margin: 26px 0 8px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; padding: 14px 32px 14px 0; position: relative; font-weight: 600; color: var(--bone); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 4px; top: 10px; font-size: 22px; color: var(--brass-hi); font-weight: 400; }
.faq-item[open] summary::after { content: '−'; }
.faq-a { padding: 0 0 16px; color: var(--ash); line-height: 1.6; }
.faq-a a { color: var(--brass-hi); }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } .faq-bot { position: relative; top: 0; height: 560px; } }

/* V7.14.1 — página principal: texto «Uma arte de proximidade» justificado */
.intro-grid .lead, .intro-grid .principles p { text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; }
@media (max-width: 480px) { .intro-grid .lead, .intro-grid .principles p { text-align: left; } } /* em ecrãs muito estreitos, justificado cria espaços grandes */

/* V7.15 — Comunicados oficiais (página Instrutores) */
.ann-section { padding-bottom: 0; }
.ann { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 40px; align-items: center; padding: 30px; border: 1px solid var(--brass); border-radius: var(--radius); background: linear-gradient(135deg, rgba(201,150,46,.10), var(--lacquer) 60%); }
.ann + .ann { margin-top: 22px; }
.ann-cover { display: block; border-radius: 6px; overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.55); transform: rotate(-1.2deg); transition: transform .25s; background: #fbf7ef; }
.ann-cover:hover { transform: rotate(0) scale(1.02); }
.ann-cover img { display: block; width: 100%; height: auto; }
.ann-cover-blank { display: grid; place-items: center; aspect-ratio: 210 / 297; font-weight: 700; letter-spacing: .2em; color: #8a1f17; }
.ann-eyebrow { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-hi); }
.ann-body h2 { margin: 0 0 14px; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.15; }
.ann-text { color: var(--ash); line-height: 1.65; margin: 0 0 16px; max-width: 62ch; text-align: justify; hyphens: auto; }
.ann-quote { margin: 0 0 14px; padding: 14px 18px; border-left: 3px solid #b0201b; background: rgba(176,32,27,.10); color: var(--bone); font-style: italic; font-size: 1.05rem; line-height: 1.5; border-radius: 0 8px 8px 0; }
.ann-sign { margin: 0 0 18px; color: var(--ash); font-size: 14px; }
.ann-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ann-h { margin: 0 0 20px; }
@media (max-width: 800px) { .ann { grid-template-columns: 1fr; gap: 24px; padding: 20px; } .ann-cover { max-width: 240px; margin: 0 auto; } .ann-text { text-align: left; } }

/* V7.15.1 — subtítulo na página Sobre («O início») */
.about-text h3.about-sub { margin: 1.1em 0 .5em; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-hi); font-family: inherit; font-weight: 700; }
.about-text h2 + h3.about-sub { margin-top: .4em; }
.about-text p { text-align: justify; hyphens: auto; }

/* V7.17 — «O meu arquivo» (Documentos) */
.arq-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.arq-chip { font: inherit; font-size: 14px; padding: 6px 14px; border-radius: 99px; border: 1px solid var(--line-strong); background: transparent; color: var(--ash); cursor: pointer; }
.arq-chip span { opacity: .7; margin-left: 4px; }
.arq-chip:hover { border-color: var(--brass); color: var(--brass-hi); }
.arq-chip.is-on { background: var(--brass); border-color: var(--brass); color: #120d07; }
.arq-group + .arq-group { margin-top: 30px; }
.arq-title { margin: 0 0 12px; font-size: 1.15rem; color: var(--brass-hi); }
.arq-foot { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-top: 6px; }
.arq-dl { white-space: nowrap; font-size: 13.5px; font-weight: 600; color: var(--brass-hi); text-decoration: none; border: 1px solid var(--line-strong); padding: 4px 10px; border-radius: 99px; }
.arq-dl:hover { border-color: var(--brass); }

/* V7.18 — separadores de «A minha conta» */
.acct-tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 28px 0 0; }
.acct-tabs a { padding: 10px 16px; font-weight: 600; font-size: 15px; color: var(--ash); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.acct-tabs a:hover { color: var(--brass-hi); }
.acct-tabs a.is-on { color: var(--brass-hi); border-bottom-color: var(--brass); }
.acct-tabs-wrap + .section { padding-top: 40px; }

/* V7.19 — verificar certificado */
.verify-ok { border: 1px solid var(--line-strong); border-radius: 14px; padding: 26px 28px; background: rgba(201, 150, 46, .06); }
.verify-badge { display: inline-block; margin: 0 0 14px; padding: 5px 12px; border-radius: 99px; background: #1f5e3a; color: #e7f6ec; font-weight: 700; font-size: 14px; }
.verify-ok h2 { margin: 0 0 4px; font-size: 1.9rem; }
.verify-what { margin: 0 0 14px; color: var(--brass-hi); font-size: 1.15rem; }
.trial-steps { margin: 0 0 24px; padding-left: 1.3em; display: grid; gap: 8px; color: var(--ash); }
.trial-schools { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.trial-schools li { border-left: 2px solid var(--brass); padding-left: 12px; }

/* ---------- V7.20: cartão de membro digital ---------- */
.mcard-open { margin-top: 16px; }
.mcard {
    --tone: var(--ok);
    max-width: 400px; margin: 0 auto; padding: 22px 22px 18px; border-radius: 18px; position: relative; overflow: hidden;
    background: radial-gradient(ellipse 90% 70% at 100% 0%, rgba(224, 102, 27, .32), transparent 60%), linear-gradient(160deg, #24170d, #0a0604 70%);
    border: 1px solid var(--line-strong); box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
}
.mcard.is-warn { --tone: var(--warn); }
.mcard.is-bad { --tone: var(--bad); }
.mcard::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--tone); }
.mcard-top { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; }
.mcard-top img { border-radius: 50%; background: #000; }
.mcard-top strong { display: block; font-size: 16px; letter-spacing: .02em; }
.mcard-top small { color: var(--ash); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; }
.mcard-id { display: flex; gap: 16px; align-items: center; }
.mcard-id h2 { margin: 0 0 4px; font-size: 1.45rem; line-height: 1.15; }
.mcard-photo { width: 84px; height: 105px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line-strong); flex: none; }
.mcard-initials { display: grid; place-items: center; font: 600 2.2rem/1 var(--serif, Georgia, serif); color: var(--brass-hi); background: rgba(255, 255, 255, .04); }
.mcard-num { margin: 0; color: var(--brass-hi); font-weight: 600; font-variant-numeric: tabular-nums; }
.mcard-line { margin: 2px 0 0; color: var(--ash); font-size: 14px; }
.mcard-status { display: flex; gap: 12px; align-items: center; margin: 20px 0 16px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--tone); background: rgba(0, 0, 0, .3); }
.mcard-status strong { display: block; color: var(--tone); font-size: 1.1rem; }
.mcard-status small { color: var(--bone); font-size: 14px; }
.mcard-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--tone); flex: none; box-shadow: 0 0 0 4px rgba(255, 255, 255, .06); }
.mcard-qr { width: min(220px, 70%); margin: 0 auto; background: #fff; padding: 8px; border-radius: 10px; }
.mcard-qr svg { display: block; width: 100%; height: auto; }
.mcard-code { text-align: center; margin: 10px 0 2px; font: 600 15px/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .12em; color: var(--ash); }
.mcard-clock { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 6px 0 0; font-variant-numeric: tabular-nums; font-size: 15px; color: var(--bone); }
.mcard-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--tone); animation: mcardPulse 1.2s ease-in-out infinite; }
@keyframes mcardPulse { 50% { opacity: .2; transform: scale(.7); } }
@media (prefers-reduced-motion: reduce) { .mcard-pulse { animation-duration: 3s; } }
.mcard-help { max-width: 400px; margin: 22px auto 0; }
.mcard-help p { font-size: 14px; }
.verify-member.is-warn .verify-badge { background: #6b4e12; color: #fff3d6; }
.verify-member.is-bad .verify-badge { background: #7a2420; color: #fde8e6; }
.verify-member.is-bad { background: rgba(226, 84, 76, .06); }
.verify-member .mcard-id { margin-bottom: 8px; }

/* ---------- V7.21: Biblioteca com pastas ---------- */
.lib-folders { margin-bottom: 18px; }
.lib-folder { margin-bottom: 56px; }
.lib-folder .folder-head .btn { white-space: nowrap; }
.lib-item.is-photo .lib-cover { border-radius: 6px; background: #111; }
.lib-item.is-photo .lib-cover::before { display: none; }
.lib-item.is-photo .lib-cover img { object-position: center; }
.lib-cover .play-badge { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; }
.lib-photo { margin: 0; text-align: center; }
.lib-photo img { max-width: 100%; max-height: 80vh; border-radius: 8px; border: 1px solid var(--line); }
.dash-summary { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin: -8px 0 32px; }
.dash-sum { display: flex; flex-direction: column; gap: 3px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .02); color: var(--bone); text-decoration: none; min-width: 0; }
.dash-sum:hover { border-color: var(--brass); color: var(--bone); }
.dash-sum small { color: var(--ash); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; }
.dash-sum strong { font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-sum span { color: var(--ash); font-size: 14px; }
.dash-sum.is-new { border-color: var(--brass); }
.dash-sum.is-new strong { color: var(--brass-hi); }
.ff-lib { margin-top: 36px; font-size: 15px; }
.acct-tabs .hub-new { margin-left: 4px; }
.hub-link .hub-new, .acct-tabs .hub-new { color: #120d07; }
.member-card .mcard-open { justify-self: start; margin-top: 4px; }
@media (max-width: 700px) {
    .lib-folders, .lib-bar .lib-types { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
    .lib-folders::-webkit-scrollbar, .lib-bar .lib-types::-webkit-scrollbar { display: none; }
    .lib-folders a, .lib-bar .lib-types a { flex: none; }
    .lib-bar .lib-types { max-width: 100%; }
}
/* V7.22: instrutores dentro do cartão da escola */
.school-teachers { list-style: none; margin: 14px 0 4px; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.school-teachers a { display: flex; gap: 10px; align-items: center; color: var(--bone); text-decoration: none; }
.school-teachers a:hover strong { color: var(--brass-hi); }
.school-teachers img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #000; flex: none; }
.school-teachers strong { display: block; font-size: 15px; }
.school-teachers small { color: var(--ash); font-size: 13px; }

/* V7.22.6: barra de atalhos da área de membro */
.member-bar { background: rgba(255, 255, 255, .025); border-bottom: 1px solid var(--line); }
.member-bar .wrap { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-top: 8px; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.member-bar .wrap::-webkit-scrollbar { display: none; }
.member-bar a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; min-height: 40px; border-radius: 99px; border: 1px solid var(--line); color: var(--ash); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.member-bar a:hover { color: var(--brass-hi); border-color: var(--brass); }
.member-bar a.is-on { color: var(--bone); border-color: var(--brass); background: rgba(201, 150, 46, .12); }
/* V7.22.6: no telemóvel, o cabeçalho do Instituto fica curto para os módulos aparecerem logo */
@media (max-width: 640px) {
    .inst-intro { padding-top: 18px; padding-bottom: 14px; }
    .inst-intro .crumbs { display: none; }
    .inst-intro .inst-mark { font-size: .8rem; margin-bottom: 2px; }
    .inst-intro h1 { font-size: 2rem; margin-bottom: 6px; }
    .inst-intro .lead { display: none; }
    .member-bar a { padding: 7px 12px; min-height: 38px; font-size: 13.5px; }
    .inst-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 4px; }
    .inst-tabs::-webkit-scrollbar { display: none; }
    .inst-tabs a { white-space: nowrap; flex: 0 0 auto; padding-left: 12px; padding-right: 12px; }
}

/* V7.22.7: área de membro compacta — cabeçalho numa linha e os tópicos logo no topo */
.dash-head { border-bottom: 1px solid var(--line); background: radial-gradient(ellipse 60% 140% at 100% 0%, rgba(224, 102, 27, .12), transparent 60%); }
.dash-head .wrap { display: flex; align-items: center; gap: 14px; padding-top: 18px; padding-bottom: 18px; }
.dash-avatar { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 1px solid var(--brass); display: grid; place-items: center; font-weight: 700; font-size: 1.3rem; color: var(--brass-hi); background: var(--lacquer); }
.dash-who { flex: 1 1 auto; min-width: 0; }
.dash-who h1 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin: 0 0 2px; line-height: 1.15; }
.dash-who p { margin: 0; color: var(--ash); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-card-btn { flex: 0 0 auto; }
.dash-body { padding-top: 22px; }
.dash-body .member-hub { gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); margin-bottom: 22px; }
.dash-body .hub-link { padding: 16px 18px; }
.dash-body .hub-link strong { font-size: 1.02rem; }
.dash-body .hub-link span { font-size: 14px; }
.dash-body .dash-summary { margin: 0 0 8px; }
@media (max-width: 600px) {
    .dash-head .wrap { padding-top: 12px; padding-bottom: 12px; gap: 12px; }
    .dash-avatar { width: 44px; height: 44px; font-size: 1.1rem; }
    .dash-who p { white-space: normal; font-size: 13px; }
    .dash-body { padding-top: 14px; }
    .dash-body .member-hub { grid-template-columns: 1fr 1fr; gap: 8px; }
    .dash-body .hub-link { padding: 12px 12px; }
    .dash-body .hub-link > span { display: none; }
    .dash-body .hub-link.hub-inst { grid-column: 1 / -1; }
    .dash-body .hub-link.hub-inst > span { display: block; font-size: 12.5px; }
    .dash-body .dash-summary { gap: 8px; }
    .dash-body .dash-sum { padding: 10px 12px; }
    .dash-body > .wrap > .flash { padding: 10px 14px; font-size: 14.5px; gap: 8px 12px; margin-bottom: 10px !important; flex-wrap: nowrap !important; }
    .dash-body > .wrap > .flash .btn { flex: 0 0 auto; padding: 6px 12px; font-size: 13px; min-height: 34px; }
    .dash-body .hub-link strong { font-size: .98rem; }
}
/* V7.22.8: rodapé curto na área de membro */
.site-footer.is-compact { padding: 0 0 18px; }
.site-footer.is-compact .footer-bottom { margin-top: 0; border-top: 0; padding-top: 16px; gap: 6px 18px; justify-content: flex-start; font-size: 13px; }
.site-footer.is-compact .footer-bottom .legal { flex-basis: 100%; }
.site-footer.is-compact .footer-bottom .lineage { margin-left: auto; }
.dash-body { padding-bottom: 32px; }

/* V7.22.9: reflexão do dia no cabeçalho da área de membro, por baixo do nome */
.dash-head .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 14px; row-gap: 10px; }
.dash-thought { grid-column: 2 / -1; min-width: 0; display: flex; gap: 12px; margin: 2px 0 0; padding: 14px 18px 14px 14px; border-left: 3px solid var(--brass); border-radius: 0 12px 12px 0; background: linear-gradient(90deg, rgba(201, 150, 46, .13), rgba(201, 150, 46, .03) 70%, transparent); }
.dash-thought-mark { flex: none; font-family: var(--display); font-size: 3.2rem; line-height: .8; color: var(--brass); opacity: .75; margin-top: 2px; }
.dash-thought-body { min-width: 0; display: grid; gap: 6px; justify-items: start; }
.dash-thought-body p { margin: 0; font-family: var(--display); font-size: 1.18rem; line-height: 1.5; color: var(--bone); max-width: 70ch; }
.dash-thought-body p a { color: var(--brass-hi); }
.dash-thought.is-destaque { border-left-width: 4px; background: linear-gradient(90deg, rgba(201, 150, 46, .24), rgba(201, 150, 46, .05) 75%, transparent); }
.dash-thought.is-destaque .dash-thought-body p { font-size: 1.32rem; }
.dash-thought.is-long:not(.is-open) .dash-thought-body p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dash-thought-more { background: none; border: 0; padding: 4px 0; min-height: 32px; color: var(--brass-hi); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.dash-thought .mn-label { margin-top: 0; }
@media (max-width: 600px) {
    .dash-thought { grid-column: 1 / -1; padding: 12px 14px 12px 10px; gap: 8px; }
    .dash-thought-mark { font-size: 2.4rem; }
    .dash-thought-body p { font-size: 1.05rem; }
    .dash-thought.is-destaque .dash-thought-body p { font-size: 1.12rem; }
}
.dash-who .nw { white-space: nowrap; }
/* V7.22.10: reflexão do dia com letra mais pequena */
.dash-thought { padding: 10px 16px 10px 12px; gap: 10px; }
.dash-thought-mark { font-size: 2.4rem; }
.dash-thought-body { gap: 4px; }
.dash-thought-body p { font-size: 1rem; line-height: 1.45; }
.dash-thought.is-destaque .dash-thought-body p { font-size: 1.08rem; }
.dash-thought .mn-label { font-size: 10px; padding: 3px 8px; }
@media (max-width: 600px) {
    .dash-thought { padding: 10px 12px 10px 8px; gap: 6px; }
    .dash-thought-mark { font-size: 1.9rem; }
    .dash-thought-body p { font-size: .95rem; }
    .dash-thought.is-destaque .dash-thought-body p { font-size: 1rem; }
}
@media (max-width: 600px) {
    .dash-who p { font-size: 12.5px; overflow: visible; text-overflow: clip; }
    .dash-who .nw { white-space: normal; }
}
/* V7.22.11: na área de membro (páginas com a barra de atalhos) o título é mais compacto:
   a barra já mostra onde está, por isso o «Início / Área de membro» sai e o conteúdo sobe */
.member-bar ~ .page-intro { padding-top: clamp(22px, 3vw, 36px); padding-bottom: clamp(18px, 2.4vw, 28px); }
.member-bar ~ .page-intro.inst-intro { padding-bottom: 0; }
.member-bar ~ .page-intro .crumbs { display: none; }
.member-bar ~ .page-intro h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 8px; }
.member-bar ~ .page-intro .lead { font-size: 1rem; max-width: 70ch; }
.member-bar ~ .page-intro .inst-tabs { margin-top: 16px; }
.member-bar ~ .section { padding-top: 28px; }
@media (max-width: 600px) { .member-bar ~ .page-intro .lead { display: none; } .member-bar ~ .page-intro h1 { margin-bottom: 0; } }
/* V7.22.12: página «não encontrada» */
.nf { min-height: 56vh; display: grid; align-items: center; }
.nf-wrap { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 5vw, 64px); align-items: center; }
.nf-glyph { margin: 0; font-family: "Noto Serif CJK TC", "Noto Serif TC", "Songti TC", "PMingLiU", serif; font-size: clamp(6rem, 18vw, 13rem); line-height: 1; color: var(--brass); opacity: .5; }
.nf-code { margin: 0 0 6px; font-size: 13px; letter-spacing: .3em; color: var(--brass-hi); font-weight: 700; }
.nf-copy h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.nf-links { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 600px) { .nf-wrap { grid-template-columns: 1fr; } .nf-glyph { font-size: 5rem; } }
.school-hours { margin: 10px 0 12px; padding: 10px 14px; border-left: 2px solid var(--brass); background: rgba(201, 150, 46, .07); border-radius: 0 8px 8px 0; }
.school-hours strong { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-hi); margin-bottom: 4px; }
.school-hours p { margin: 0; font-size: 15px; color: var(--bone); }
/* V7.22.13: Biblioteca — documentos em lista (título e tema), abre só ao clicar */
.lib-rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: rgba(255, 255, 255, .015); }
.lib-row { display: flex; align-items: stretch; border-top: 1px solid var(--line); }
.lib-row:first-child { border-top: 0; }
.lib-row-main { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 12px 16px; color: var(--bone); text-decoration: none; min-height: 56px; }
.lib-row-main:hover, .lib-row-main:focus-visible { background: rgba(201, 150, 46, .08); color: var(--bone); }
.lib-row-type { flex: none; width: 52px; text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .08em; padding: 5px 0; border-radius: 6px; background: #8f1d17; color: #fff; }
.lib-row-type.t-zip { background: #3a3226; color: var(--brass-hi); }
.lib-row-type.t-audio { background: #1f3a33; color: #bfe8d6; }
.lib-row-text { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.lib-row-text strong { font-weight: 600; font-size: 1rem; line-height: 1.35; }
.lib-row-text small { color: var(--ash); font-size: 13.5px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-row-text .lib-admin-note { color: var(--brass-hi); }
.lib-row-star { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #120d07; background: var(--brass); padding: 2px 7px; border-radius: 99px; vertical-align: 2px; }
.lib-row-meta { flex: none; color: var(--ash); font-size: 13px; white-space: nowrap; }
.lib-row-go { flex: none; color: var(--brass-hi); font-weight: 600; font-size: 14px; white-space: nowrap; }
.lib-row-dl { flex: none; display: grid; place-items: center; width: 52px; border-left: 1px solid var(--line); color: var(--ash); text-decoration: none; }
.lib-row-dl:hover { color: var(--brass-hi); background: rgba(201, 150, 46, .08); }
.lib-row-dl.is-off { width: auto; padding: 0 12px; font-size: 12px; white-space: nowrap; }
.lib-grid-after { margin-top: 18px; }
@media (max-width: 640px) {
    .lib-row-main { gap: 10px; padding: 10px 12px; }
    .lib-row-type { width: 42px; font-size: 10px; }
    .lib-row-meta, .lib-row-go { display: none; }
    .lib-row-text small { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
    .lib-row-dl { width: 46px; }
    .lib-row-dl.is-off { display: none; }
}
/* fotografias e vídeos: miniaturas mais pequenas e quadradas, para a página não ficar comprida */
.lib-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 18px 14px; }
.lib-item.is-photo .lib-cover, .lib-item .lib-cover:has(.play-badge) { aspect-ratio: 1; }
@media (max-width: 640px) { .lib-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; } }
.lib-cover:has(.play-badge) .lib-cover-title { display: none; }
.lib-row-type.t-video { background: #2a1b10; color: var(--brass-hi); border: 1px solid rgba(201, 150, 46, .45); }
.lib-row-type.t-imagem { background: #f4efe6; color: #120d07; }

/* V7.22.16: resumo do artigo justificado, como o texto */
.article-lead { text-align: justify; text-justify: inter-word; -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 7 3 3; }

/* V7.22.19: a imagem do artigo aparece inteira no cartão (sem cortes), com um fundo desfocado da própria imagem */
.art-img:not(.is-empty), .news-card .news-img:not(.empty) { position: relative; isolation: isolate; }
.img-fit-bg { position: absolute; inset: -20px; z-index: -1; background-size: cover; background-position: center; filter: blur(18px) brightness(.45) saturate(1.1); }
.art-img:not(.is-empty) img, .news-card .news-img:not(.empty) img { object-fit: contain; }
.art-card:hover .art-img:not(.is-empty) img { transform: scale(1.02); }

/* V7.22.20: imagem a meio do texto (por exemplo, uma tabela copiada de um PDF) */
.text-fig { margin: 1.6em 0; text-align: center; }
.text-fig a { display: inline-block; max-width: 100%; cursor: zoom-in; }
.text-fig img { display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: 4px; border: 1px solid var(--line); background: #fff; }
.text-fig figcaption { margin-top: 8px; color: var(--ash); font-size: .9em; text-align: center; }

/* V7.22.23: partilha dos artigos */
.share-bar { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.share-lbl { color: var(--ash); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-right: 4px; }
.share-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--bone); cursor: pointer; transition: border-color .15s, color .15s, background .15s; padding: 0; }
.share-btn[hidden] { display: none; }
.share-btn:hover, .share-btn:focus-visible { border-color: var(--brass); color: var(--brass-hi); }
.share-btn.is-done { border-color: var(--brass); color: var(--brass-hi); background: rgba(201,150,46,.12); }
.share-tip { position: absolute; left: 0; top: calc(100% + 6px); font-size: 13px; color: var(--brass-hi); }
.article-share-end { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); }
.article-share-end .share-bar { margin-top: 0; }
.related-articles .ann-h { margin-bottom: 22px; }
@media (max-width: 480px) { .share-lbl { display: none; } .share-bar { gap: 6px; } .share-btn { width: 38px; height: 38px; } }
