/* ============================================================
   THE WORLD BETWEEN LINES — design tokens (TWBL design system v1.0)
   Deep Forest / Slate / Warm White / Sand / Terracotta, with
   Playfair Display for headings and Inter for UI/body text.
   Tokens are theme-aware: --bg/--ink/--paper/--line/--moss/--clay
   flip under [data-theme="dark"] so nearly every component below
   re-themes automatically without extra rules.
   ============================================================ */
:root {
    /* Raw palette (design-system swatches) */
    --deep-forest: #1b2a24;
    --slate: #2e3437;
    --warm-white: #ffffff;
    --sand: #f6f6f5;
    --terracotta: #c86a4a;
    --charcoal: #4a4f55;
    --stone: #ba9096;
    --light-gray: #d9dde1;
    --soft-gray: #eceff1;

    /* Semantic (theme-aware) tokens — light mode values */
    --bg: var(--warm-white);
    --paper: var(--sand);
    --ink: #111111;
    --ink-80: rgba(17, 17, 17, .8);
    --ink-55: rgba(17, 17, 17, .55);
    --ink-35: rgba(17, 17, 17, .35);
    --line: rgba(17, 17, 17, .12);
    --moss: var(--terracotta);
    --clay: var(--charcoal);

    /* Fixed-surface constants — never flip with the theme; used for
       panels that are always dark regardless of site theme (footer,
       CTA banners) or badges that always sit on a photo. */
    --fixed-dark: var(--deep-forest);
    --fixed-light: var(--warm-white);
    --fixed-ink: #111111;

    /* Semantic status colors (alerts, form validation) */
    --success: #2f6844;
    --warning: #b8792e;
    --error: #c4432e;
    --info: #2e5aac;

    --display: "Playfair Display", "Iowan Old Style", Georgia, serif;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --container: 1240px;
    --gap: 28px;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-pill: 999px;
}

[data-theme="dark"] {
    --bg: var(--deep-forest);
    --paper: var(--slate);
    --ink: var(--warm-white);
    --ink-80: rgba(250, 249, 248, .82);
    --ink-55: rgba(250, 249, 248, .58);
    --ink-35: rgba(250, 249, 248, .36);
    --line: rgba(250, 249, 248, .16);
    --moss: #e08a63;
    --clay: var(--stone);

    /* Status colors were fixed at their light-mode values everywhere
       else in this file — fine on a light background, but a dark green
       on an already-dark background (like the flash message here) has
       almost no contrast. Lighter variants for dark mode only. */
    --success: #6bc48f;
    --warning: #e0a855;
    --error: #e2836e;
    --info: #7ba0e0;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    transition: background-color .25s ease, color .25s ease;
}

img { max-width: 100%; display: block; -webkit-user-drag: none; user-select: none; }

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

h1, h2, h3, h4 {
    font-family: var(--display);
    font-weight: 600;
    line-height: 1.15;
    margin: 0;
    letter-spacing: -0.01em;
}
h1 { font-size: 48px; line-height: 56px; font-weight: 700; }
h2 { font-size: 36px; line-height: 44px; }
h3 { font-size: 28px; line-height: 36px; }
h4 { font-family: var(--sans); font-size: 22px; line-height: 28px; font-weight: 600; }

p { margin: 0 0 1em; }

small, .text-small { font-size: 14px; line-height: 20px; }
.text-caption { font-size: 12px; line-height: 16px; }

:focus-visible {
    outline: 2px solid var(--moss);
    outline-offset: 3px;
}

.eyebrow {
    display: inline-block;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--clay);
}

/* ============================================================
   Buttons & small controls
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 15px 26px;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .18s ease, background-color .18s ease, color .18s ease, opacity .18s ease;
}

.btn svg { width: 15px; height: 15px; flex-shrink: 0; }

.btn--dark,
.btn--primary {
    background: var(--ink);
    color: var(--bg);
}
.btn--dark:hover,
.btn--primary:hover { transform: translateY(-1px); filter: brightness(1.12); }
.btn--dark:active,
.btn--primary:active { transform: translateY(0); filter: brightness(.92); }

.btn--outline,
.btn--secondary {
    background: transparent;
    border-color: var(--ink);
    color: var(--ink);
}
.btn--outline:hover,
.btn--secondary:hover { background: var(--ink); color: var(--bg); }
.btn--outline:active,
.btn--secondary:active { filter: brightness(.92); }

.btn--ghost {
    background: transparent;
    border-color: transparent;
    color: var(--ink);
    padding-left: 10px;
    padding-right: 10px;
}
.btn--ghost:hover { background: var(--paper); }
.btn--ghost:active { filter: brightness(.95); }

.btn:disabled,
.btn[aria-disabled="true"] {
    opacity: .4;
    cursor: not-allowed;
    pointer-events: none;
    transform: none !important;
}

.icon-btn {
    background: none;
    border: none;
    padding: 6px;
    color: var(--ink);
    cursor: pointer;
    display: inline-flex;
}
.icon-btn svg { width: 20px; height: 20px; }

.lang-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 6px;
    border: 1px solid var(--ink-15, rgba(0,0,0,.15));
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: .03em;
    color: var(--ink);
    background: none;
    cursor: pointer;
}
.lang-toggle:hover { background: var(--ink); color: var(--bg); }

.link-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink);
    white-space: nowrap;
}
.link-more svg { width: 15px; height: 15px; }
.link-more:hover { color: var(--moss); }

.link-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.link-back svg { width: 16px; height: 16px; }
.link-back:hover { color: var(--moss); }

/* ============================================================
   Top announcement bar (homepage only)
   ============================================================ */
.topbar {
    background: var(--ink);
    color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 9px 24px;
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    position: relative;
}
.topbar__social {
    position: absolute;
    right: 24px;
    display: flex;
    gap: 14px;
}
.topbar__social svg { width: 15px; height: 15px; }
.topbar__social a { opacity: .85; }
.topbar__social a:hover { opacity: 1; color: var(--clay); }

/* ============================================================
   Main navigation
   ============================================================ */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: var(--container);
    margin: 0 auto;
    padding: 20px 24px;
    position: relative;
}
/* .nav itself is centered at max-width: var(--container) — a plain
   border-bottom would only span that centered width, not the real
   page edges on wider screens. This pseudo-element bleeds full
   viewport-width regardless of how narrow or wide .nav's own box is. */
.nav::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 100vw;
    margin-left: -50vw;
    border-bottom: 1px solid var(--line);
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.nav__logo-mark { position: relative; width: 68px; height: 44px; flex-shrink: 0; }
.nav__logo-mark--light { width: 76px; height: 50px; }
.logo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.logo-img--white { display: none; }
[data-theme="dark"] .logo-img--ink { display: none; }
[data-theme="dark"] .logo-img--white { display: block; }
.nav__logo-text {
    font-family: var(--display);
    font-size: 15px;
    line-height: 1.25;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.nav__logo-line { display: block; }

.nav__links {
    display: flex;
    gap: 28px;
    font-size: 13.5px;
    font-weight: 500;
}
.nav__links a:hover { color: var(--moss); }

.nav__actions {
    display: flex;
    align-items: center;
    gap: 18px;
}
.nav__cta { padding: 12px 22px; }
.nav__burger { display: none; }

.nav__account { position: relative; }
.nav__account-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--ink-55);
    white-space: nowrap;
    background: none;
    border: none;
    font-family: var(--sans);
    cursor: pointer;
    padding: 4px 0;
}
.nav__account-trigger:hover { color: var(--moss); }
.nav__account-trigger svg { width: 14px; height: 14px; transition: transform .15s ease; }
.nav__account:hover .nav__account-trigger svg,
.nav__account:focus-within .nav__account-trigger svg { transform: rotate(180deg); }

.nav__account-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 12px;
    min-width: 180px;
    background: var(--bg);
    border: 1px solid var(--ink-15, rgba(0,0,0,.12));
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0,0,0,.14);
    padding: 8px;
    z-index: 40;
    flex-direction: column;
}
.nav__account:hover .nav__account-menu,
.nav__account:focus-within .nav__account-menu { display: flex; }
.nav__account-menu a,
.nav__account-menu button {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    padding: 9px 12px;
    border-radius: 6px;
    cursor: pointer;
}
.nav__account-menu a:hover,
.nav__account-menu button:hover { background: var(--ink-08, rgba(0,0,0,.05)); color: var(--moss); }
.nav__account-menu form { margin: 0; }

.link-plain {
    background: none;
    border: none;
    font-family: var(--sans);
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
    color: var(--ink);
    padding: 0;
}
.link-plain:hover { color: var(--moss); }

/* Still used by the separate Admin backoffice header (_AdminLayout.cshtml),
   which keeps its own simpler nav rather than the dropdown above. */
.nav__greeting {
    font-size: 13px;
    color: var(--ink-55);
    white-space: nowrap;
}
.nav__greeting:hover { color: var(--moss); }
.nav__logout { display: inline-flex; }
.nav__logout button { background: none; border: none; font-family: var(--sans); cursor: pointer; }

.mobile-nav__logout button { width: 100%; text-align: left; background: none; border: none; }

@media (max-width: 900px) {
    .nav__links, .nav__cta, .nav__account { display: none; }
    .nav__burger { display: inline-flex; }
}

/* ============================================================
   Hero (homepage)
   ============================================================ */
.hero {
    position: relative;
    width: 100%;
    margin: 0 0 90px;
    height: 640px;
    overflow: hidden;
}
.hero__img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.hero__scrim {
    position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(10,10,8,.55) 0%, rgba(10,10,8,.15) 45%, rgba(10,10,8,0) 65%);
}
.hero__content {
    position: absolute;
    left: max(24px, calc((100vw - var(--container)) / 2 + 24px));
    right: 24px;
    bottom: 64px;
    max-width: 480px;
    color: #fff;
}
.hero__content h1 {
    font-size: clamp(40px, 5vw, 58px);
    font-style: italic;
    font-weight: 400;
    margin-bottom: 18px;
}
.hero__rule {
    width: 64px; height: 1px;
    background: rgba(255,255,255,.6);
    margin: 22px 0 18px;
}
.hero__content p {
    font-size: 15.5px;
    color: rgba(255,255,255,.88);
    max-width: 380px;
}
.hero__content .btn { margin-top: 12px; }

.hero__globe {
    position: absolute;
    top: 40px; right: 64px;
    width: 150px; height: 150px;
    color: rgba(255,255,255,.85);
}
@media (max-width: 760px) { .hero__globe { display: none; } }

.hero__scroll {
    position: absolute;
    right: 26px; bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #fff;
}
.hero__scroll span {
    writing-mode: vertical-rl;
    font-size: 10px;
    letter-spacing: .2em;
    text-transform: uppercase;
}
.hero__scroll-line { width: 1px; height: 46px; background: rgba(255,255,255,.6); }

/* ============================================================
   Generic content sections & grids
   ============================================================ */
.section {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px 78px;
}
.section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 28px;
}
.section__head h2 {
    font-size: 26px;
    letter-spacing: .01em;
}

.grid { display: grid; gap: var(--gap); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1000px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid--4 { grid-template-columns: 1fr; } }

/* Photo card (Em Destaque) */
.photo-card { display: block; }
.photo-card img {
    width: 100%; height: 340px;
    object-fit: cover;
    border-radius: var(--radius);
}
.photo-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    font-size: 13px;
}
.photo-card__meta strong { display: block; font-weight: 600; }
.photo-card__meta em { font-style: normal; color: var(--ink-55); font-size: 12.5px; }

.avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}
.avatar--lg { width: 68px; height: 68px; }

/* Collection card */
.collection-card {
    position: relative;
    display: block;
    height: 230px;
    border-radius: var(--radius);
    overflow: hidden;
}
.collection-card img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.collection-card:hover img { transform: scale(1.05); }
.collection-card__scrim {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,10,8,.1) 30%, rgba(10,10,8,.65) 100%);
}
.collection-card__body {
    position: absolute; left: 22px; bottom: 20px;
    color: #fff;
}
.collection-card__body h3 {
    font-size: 21px;
    font-weight: 500;
    margin-bottom: 10px;
}
.collection-card__body span {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
    color: rgba(255,255,255,.85);
}
.collection-card__body svg { width: 14px; height: 14px; }

/* Journal card */
.journal-card { display: block; }
.journal-card img {
    width: 100%; height: 190px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 14px;
}
.journal-card .eyebrow { margin-bottom: 8px; }
.journal-card h3 {
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 10px;
}
.journal-card time { font-size: 12px; color: var(--ink-55); }
.journal-card:hover h3 { color: var(--moss); }

/* ============================================================
   Footer (shared across pages)
   ============================================================ */
.footer { background: var(--slate); color: var(--fixed-light); margin-top: 40px; border-top: 1px solid rgba(250,249,248,.08); }

.footer__banner {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 90px 24px;
    border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer__banner-text h2 {
    font-size: clamp(30px, 3.4vw, 42px);
    color: var(--bg);
}
.footer__banner-cta p {
    color: rgba(250,248,242,.72);
    margin-bottom: 22px;
    max-width: 420px;
}
@media (max-width: 800px) { .footer__banner { grid-template-columns: 1fr; padding: 60px 24px; } }

.footer__main {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr;
    gap: 32px;
    padding: 64px 24px 48px;
}
.footer__col h3 {
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(250,248,242,.55);
    margin-bottom: 18px;
}
.footer__col a {
    display: block;
    font-size: 14px;
    color: rgba(250,248,242,.85);
    margin-bottom: 12px;
}
.footer__col a:hover { color: #fff; }

.footer__wordmark {
    font-family: var(--display);
    font-size: 13px;
    letter-spacing: .05em;
    margin: 14px 0 10px;
}
.footer__tagline { color: rgba(250,248,242,.6); font-size: 13.5px; }

.footer__form {
    display: flex;
    border-bottom: 1px solid rgba(255,255,255,.3);
    padding-bottom: 8px;
    margin-top: 4px;
}
.footer__form input {
    background: none;
    border: none;
    color: #fff;
    font-family: var(--sans);
    font-size: 14px;
    flex: 1;
    padding: 4px 0;
}
.footer__form input::placeholder { color: rgba(250,248,242,.5); }
.footer__form button {
    background: none; border: none; color: #fff; cursor: pointer;
    display: flex;
}
.footer__form svg { width: 18px; height: 18px; }

@media (max-width: 900px) {
    .footer__main { grid-template-columns: 1fr 1fr; }
}

.footer__bottom {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px;
    border-top: 1px solid rgba(255,255,255,.12);
    font-size: 12.5px;
    color: rgba(250,248,242,.6);
    flex-wrap: wrap;
}
.footer__bottom-links { display: flex; gap: 24px; }
.footer__bottom-links a:hover { color: #fff; }
.footer__lang { letter-spacing: .1em; }

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.article-toolbar {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 0;
}
.article-toolbar__share {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-55);
}
.article-toolbar__share svg { width: 16px; height: 16px; }
.article-toolbar__share a:hover { color: var(--moss); }

.article-toolbar__stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink-35);
}
.article-toolbar__stat svg { width: 15px; height: 15px; }

.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--ink-55);
    font-size: 11px;
    letter-spacing: .1em;
    cursor: pointer;
    padding: 0;
}
.like-btn svg { width: 16px; height: 16px; transition: transform .15s ease; }
.like-btn:hover svg { color: var(--terracotta); }
.like-btn.is-liked { color: var(--terracotta); }
.like-btn.is-liked svg { fill: var(--terracotta); color: var(--terracotta); }
.like-btn.is-liked:disabled { cursor: default; opacity: 1; }
.like-btn--bump svg { transform: scale(1.3); }

.article-header {
    max-width: 760px;
    margin: 40px auto 0;
    padding: 0 24px;
}
.article-header .eyebrow { margin-bottom: 18px; }
.article-header h1 {
    font-size: clamp(32px, 4.4vw, 48px);
    margin-bottom: 22px;
}
.article-header__lead {
    font-size: 18px;
    color: var(--ink-80);
    max-width: 620px;
}
.article-header__meta {
    font-size: 12.5px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ink-55);
    margin-top: 18px;
}

.article-hero {
    max-width: 1320px;
    margin: 40px auto 0;
    padding: 0 24px;
    position: relative;
}
.article-hero img {
    width: 100%;
    height: min(60vh, 620px);
    object-fit: cover;
    border-radius: var(--radius);
}
.article-hero figcaption {
    position: absolute;
    right: 42px; bottom: 24px;
    color: #fff;
    font-size: 12px;
    letter-spacing: .05em;
}

.article-layout {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 64px;
    padding: 70px 24px 0;
    align-items: start;
}

.article-toc {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.article-toc__label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-55);
    margin-bottom: 4px;
}
.article-toc nav {
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--line);
}
.article-toc a {
    font-size: 13.5px;
    color: var(--ink-55);
    padding: 8px 0 8px 16px;
    border-left: 2px solid transparent;
    margin-left: -1px;
}
.article-toc a:hover { color: var(--ink); }
.article-toc a.is-active {
    color: var(--ink);
    border-left-color: var(--moss);
    font-weight: 600;
}

@media (max-width: 860px) {
    .article-layout { grid-template-columns: 1fr; }
    .article-toc { position: static; flex-direction: row; flex-wrap: wrap; }
    .article-toc nav { flex-direction: row; flex-wrap: wrap; border-left: none; border-top: 1px solid var(--line); }
    .article-toc a { border-left: none; border-top: 2px solid transparent; padding: 10px 14px 8px 0; }
}

.article-body { max-width: 700px; font-size: 17px; }
.article-body h2 {
    font-size: 24px;
    margin: 44px 0 16px;
}
.article-body p { color: var(--ink-80); }

.drop-cap::first-letter {
    float: left;
    font-family: var(--display);
    font-size: 74px;
    line-height: .8;
    padding: 6px 10px 0 0;
    font-weight: 500;
}

.markdown-body p { color: var(--ink-80); margin-bottom: 22px; line-height: 1.7; }
.markdown-body--article > p:first-of-type::first-letter {
    float: left;
    font-family: var(--display);
    font-size: 74px;
    line-height: .8;
    padding: 6px 10px 0 0;
    font-weight: 500;
    color: var(--ink);
}
.markdown-body h1, .markdown-body h2, .markdown-body h3 { margin: 40px 0 16px; }
.markdown-body h2 { font-size: 24px; }
.markdown-body h3 { font-size: 20px; font-family: var(--sans); font-weight: 600; }
.markdown-body a { color: var(--moss); text-decoration: underline; text-underline-offset: 2px; }
.markdown-body strong { font-weight: 700; color: var(--ink); }
.markdown-body ul, .markdown-body ol { margin: 0 0 22px; padding-left: 22px; color: var(--ink-80); }
.markdown-body li { margin-bottom: 8px; line-height: 1.6; }
.markdown-body blockquote { margin: 32px 0; }
.markdown-body img { width: 100%; border-radius: var(--radius); margin: 24px 0; }
.markdown-body hr { border: none; border-top: 1px solid var(--line); margin: 40px 0; }
.markdown-body code { background: var(--paper); padding: 2px 6px; border-radius: 4px; font-size: 14px; }

blockquote {
    margin: 40px 0;
    padding-left: 26px;
    border-left: 2px solid var(--moss);
    font-family: var(--display);
    font-style: italic;
    font-size: 24px;
    line-height: 1.4;
    color: var(--ink);
}

.badge--draft { background: var(--warning); color: #fff; }

.itinerary-days { display: flex; flex-direction: column; margin-bottom: 40px; }
.itinerary-days__row {
    display: flex;
    gap: 24px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}
.itinerary-days__row:last-child { border-bottom: none; }
.itinerary-days__label {
    width: 100px;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--clay);
    padding-top: 3px;
}
.itinerary-days__body h3 { font-size: 17px; font-weight: 500; margin-bottom: 6px; }
.itinerary-days__body p { color: var(--ink-55); font-size: 14.5px; margin: 0; }
.itinerary-days__body .markdown-body p { color: var(--ink-55); font-size: 14.5px; margin: 0; }
@media (max-width: 600px) {
    .itinerary-days__row { flex-direction: column; gap: 6px; }
    .itinerary-days__label { width: auto; }
}

.itinerary-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 32px;
}
.itinerary-cta h3 { font-size: 18px; margin-bottom: 6px; }
.itinerary-cta p { color: var(--ink-55); font-size: 14px; margin: 0; max-width: 420px; }

.article-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 36px 0;
}
.article-gallery img {
    width: 100%; height: 220px;
    object-fit: cover;
    border-radius: var(--radius);
}
@media (max-width: 700px) { .article-gallery { grid-template-columns: 1fr; } }

.info-bar {
    max-width: var(--container);
    margin: 70px auto 0;
    padding: 30px 24px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.info-bar__item {
    display: flex;
    align-items: center;
    gap: 14px;
}
.info-bar__item svg { width: 22px; height: 22px; color: var(--clay); flex-shrink: 0; }
.info-bar__item span {
    display: block;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-55);
    margin-bottom: 4px;
}
.info-bar__item strong { font-weight: 600; font-size: 14.5px; }
@media (max-width: 760px) { .info-bar { grid-template-columns: 1fr 1fr; } }

.article-footer-grid {
    max-width: var(--container);
    margin: 56px auto 0;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
}
.author-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.profile-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 26px;
}
.profile-preview strong { display: block; font-size: 15px; }
.profile-preview span { display: block; font-size: 12.5px; color: var(--ink-55); margin-top: 2px; }
.author-card__label {
    display: block;
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-55);
    margin-bottom: 6px;
}
.author-card h3 { font-size: 19px; margin-bottom: 8px; }
.author-card p { font-size: 14px; color: var(--ink-55); max-width: 380px; margin-bottom: 10px; }

.collection-promo {
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 26px 28px;
    border-radius: var(--radius);
}
.collection-promo h3 { font-size: 16px; margin-bottom: 8px; }
.collection-promo p { font-size: 13.5px; color: var(--ink-55); margin-bottom: 16px; }
.collection-promo .btn { padding: 11px 20px; }

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

.article-pager {
    max-width: var(--container);
    margin: 70px auto 0;
    padding: 26px 24px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.article-pager__link {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    max-width: 320px;
}
.article-pager__link svg { width: 18px; height: 18px; flex-shrink: 0; }
.article-pager__link em {
    display: block;
    font-style: normal;
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-55);
    margin-bottom: 4px;
}
.article-pager__link--next { text-align: right; justify-content: flex-end; }
.article-pager__link:hover { color: var(--moss); }

.article-pager__grid {
    width: 38px; height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.article-pager__grid svg { width: 15px; height: 15px; }

@media (max-width: 640px) {
    .article-pager { flex-direction: column; }
    .article-pager__link--next { text-align: left; justify-content: flex-start; }
}

/* ============================================================
   Journal listing (/Artigos)
   ============================================================ */
.journal-card-wrap { position: relative; }
.journal-card__edit {
    position: absolute;
    top: 12px; right: 12px;
    background: rgba(250, 248, 242, .92);
    color: var(--fixed-ink);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 20px;
}
.journal-card__edit:hover { background: #fff; color: var(--moss); }

/* Single-column article layout used by the dynamic article page (no TOC) */
.article-layout--single { grid-template-columns: 1fr; max-width: 700px; }
.article-footer-grid--single { grid-template-columns: 1fr; max-width: 700px; }

/* ============================================================
   Auth pages (login / register)
   ============================================================ */
.auth-page {
    max-width: 460px;
    margin: 70px auto 120px;
    padding: 0 24px;
}
.auth-card h1 {
    font-size: 32px;
    margin: 14px 0 10px;
}
.auth-card__lead {
    color: var(--ink-55);
    font-size: 14.5px;
    margin-bottom: 30px;
}
.auth-card__submit { width: 100%; justify-content: center; margin-top: 6px; }
.auth-card__switch {
    text-align: center;
    font-size: 13.5px;
    color: var(--ink-55);
    margin-top: 22px;
}
.auth-card__switch a { color: var(--moss); font-weight: 600; }
.auth-card__hint {
    text-align: center;
    font-size: 12px;
    color: var(--ink-35);
    margin-top: 14px;
}

/* ============================================================
   Shared form controls (auth + article create/edit)
   ============================================================ */
.form-field {
    display: block;
    margin-bottom: 18px;
}
.form-field span:first-child {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--ink-55);
    margin-bottom: 8px;
}
.form-field input,
.form-field textarea {
    width: 100%;
    font-family: var(--sans);
    font-size: 15px;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 14px;
    resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--moss);
}
.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: var(--ink-55);
    margin-bottom: 22px;
}
.honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-error {
    color: var(--error);
    font-size: 12.5px;
    display: block;
    margin-top: 6px;
}
.form-error:empty { display: none; margin: 0; }

.form-page {
    max-width: 780px;
    margin: 60px auto 120px;
    padding: 0 24px;
}
.form-page h1 { font-size: 32px; margin: 14px 0 10px; }
.form-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
    margin-top: 24px;
}
.form-grid { display: grid; gap: 18px 20px; }
.form-grid--2 { grid-template-columns: 1fr 1fr; }
.form-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 700px) {
    .form-grid--2, .form-grid--4 { grid-template-columns: 1fr 1fr; }
}
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    margin-top: 10px;
}
.form-delete {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 28px;
    padding: 20px 26px;
    border: 1px solid rgba(196, 67, 46, .3);
    border-radius: var(--radius);
    background: rgba(196, 67, 46, .06);
}
.form-delete span { font-size: 13.5px; color: var(--ink-55); }
.form-delete__btn { border-color: var(--error); color: var(--error); }
.form-delete__btn:hover { background: var(--error); color: #fff; }

/* ============================================================
   Flash banner (newsletter / contact / planning confirmations)
   ============================================================ */
.flash {
    background: var(--moss);
    color: #fff;
    text-align: center;
    padding: 12px 24px;
    font-size: 13.5px;
    letter-spacing: .03em;
    transition: opacity .4s ease, max-height .4s ease;
    overflow: hidden;
}
.flash--hide { opacity: 0; max-height: 0; padding: 0; }

/* ============================================================
   Nav search
   ============================================================ */
.nav__search {
    display: flex;
    align-items: center;
    position: relative;
}
.nav__search-input {
    width: 0;
    opacity: 0;
    border: none;
    background: var(--paper);
    border-radius: 20px;
    font-family: var(--sans);
    font-size: 13px;
    padding: 0;
    transition: width .25s ease, opacity .25s ease, padding .25s ease;
}
.nav__search:hover .nav__search-input,
.nav__search:focus-within .nav__search-input {
    width: 170px;
    opacity: 1;
    padding: 7px 14px;
    margin-left: -34px;
    padding-left: 30px;
}
@media (max-width: 900px) { .nav__search-input { display: none; } }

.nav__search-suggestions {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 300px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(0,0,0,.12);
    overflow: hidden;
    z-index: 60;
}
.nav__search-suggestions.is-open { display: block; }
.nav__search-suggestions__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 16px;
    font-size: 13.5px;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
}
.nav__search-suggestions__item:last-child { border-bottom: none; }
.nav__search-suggestions__item:hover,
.nav__search-suggestions__item.is-active { background: var(--bg); color: var(--moss); }
.nav__search-suggestions__type {
    font-size: 10px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-35);
    flex-shrink: 0;
}
.nav__search-suggestions__empty {
    padding: 14px 16px;
    font-size: 13px;
    color: var(--ink-35);
}

/* ============================================================
   Page intro (title + subtitle used on most listing pages)
   ============================================================ */
.page-intro { margin-bottom: 32px; }
.page-intro h1 { font-size: 34px; margin-bottom: 10px; }
.page-intro p { color: var(--ink-55); font-size: 15px; max-width: 560px; }

/* ============================================================
   Filter bars, chips, selects (Journal, Destinos, Roteiros, Pesquisa)
   ============================================================ */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
}
.filter-select-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.filter-select-wrap__label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-55);
}
.filter-chip {
    display: inline-flex;
    align-items: center;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .03em;
    padding: 9px 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    color: var(--ink-55);
    background: transparent;
    cursor: pointer;
    white-space: nowrap;
}
.filter-chip.is-active,
.filter-chip:hover {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
}
.filter-select {
    font-family: var(--sans);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-55);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 9px 14px;
    max-width: 280px;
}
.filter-select:focus-visible {
    outline: none;
    border-color: var(--moss);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--moss) 20%, transparent);
}
.filter-select--right { margin-left: auto; }
.filter-search {
    font-family: var(--sans);
    font-size: 13px;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 9px 16px;
    background: var(--paper);
    margin-left: auto;
    min-width: 200px;
}

/* ============================================================
   Home: split blocks (Última viagem / Artigos recentes)
   ============================================================ */
.section--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
@media (max-width: 860px) { .section--split { grid-template-columns: 1fr; } }

.split-block__title { font-size: 20px; margin-bottom: 18px; }

.feature-card { display: block; }
.feature-card img {
    width: 100%; height: 260px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 14px;
}
.feature-card__body h3 { font-size: 19px; margin-bottom: 8px; }
.feature-card__body span { font-size: 12.5px; color: var(--ink-55); text-transform: uppercase; letter-spacing: .04em; }

.mini-list { display: flex; flex-direction: column; gap: 16px; }
.mini-card {
    display: flex;
    align-items: center;
    gap: 14px;
}
.mini-card img {
    width: 76px; height: 76px;
    object-fit: cover;
    border-radius: var(--radius);
    flex-shrink: 0;
}
.mini-card span { display: flex; flex-direction: column; gap: 4px; }
.mini-card strong { font-size: 14.5px; font-weight: 500; }
.mini-card em { font-style: normal; font-size: 12px; color: var(--ink-55); }
.mini-card:hover strong { color: var(--moss); }

/* ============================================================
   Extra grid sizes
   ============================================================ */
.grid--5 { grid-template-columns: repeat(3, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1050px) { .grid--5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1000px) { .grid--3, .grid--2 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid--5, .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.collection-card--sm { height: 200px; }
.collection-card--lg { height: 320px; }

/* ============================================================
   Continent cards
   ============================================================ */
.continent-card {
    position: relative;
    display: block;
    height: 200px;
    border-radius: var(--radius);
    overflow: hidden;
}
.continent-card--tall { height: 340px; }
.continent-card img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.continent-card:hover img { transform: scale(1.05); }
.continent-card__scrim {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,10,8,.05) 40%, rgba(10,10,8,.7) 100%);
}
.continent-card__body {
    position: absolute; left: 18px; bottom: 16px;
    color: #fff;
}
.continent-card__body h3 { font-size: 18px; margin-bottom: 6px; }
.continent-card__body span { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.85); }

/* ============================================================
   Timeline (Home)
   ============================================================ */
.timeline {
    display: flex;
    gap: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.timeline__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px 20px;
    border-right: 1px solid var(--line);
}
.timeline__item:last-child { border-right: none; }
.timeline__year { font-family: var(--display); font-size: 24px; }
.timeline__count { font-size: 12px; color: var(--ink-55); text-transform: uppercase; letter-spacing: .04em; }

/* ============================================================
   Map teaser (Home)
   ============================================================ */
.map-teaser {
    position: relative;
    background: var(--slate);
    color: var(--fixed-light);
    border-radius: var(--radius);
    padding: 60px;
    display: flex;
    align-items: center;
    gap: 30px;
    overflow: hidden;
    min-height: 280px;
}
.map-teaser__map {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.map-teaser__scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(100deg, rgba(15,18,20,.92) 0%, rgba(15,18,20,.72) 40%, rgba(15,18,20,.25) 75%);
}
.map-teaser__text { position: relative; z-index: 2; max-width: 420px; }
.map-teaser__text h2 { color: var(--fixed-light); font-size: 28px; margin-bottom: 12px; }
.map-teaser__text p { color: var(--fixed-light); opacity: .78; max-width: 380px; margin-bottom: 20px; }
.btn--outline-light { border-color: var(--fixed-light); opacity: .85; color: var(--fixed-light); }
.btn--outline-light:hover { background: var(--fixed-light); color: var(--fixed-dark); opacity: 1; }
@media (max-width: 760px) { .map-teaser { padding: 40px; min-height: 320px; } }

/* ============================================================
   Journal listing (rows + pagination)
   ============================================================ */
.journal-list { display: flex; flex-direction: column; gap: 28px; margin-bottom: 40px; }
.journal-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
}
.journal-row__img { position: relative; display: block; }
.journal-row__img img {
    width: 100%; height: 150px;
    object-fit: cover;
    border-radius: var(--radius);
}
.journal-row__body h3 { font-size: 20px; margin-bottom: 8px; }
.journal-row__body p { color: var(--ink-55); font-size: 14px; max-width: 560px; }
.journal-row__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: var(--ink-35);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-top: 10px;
}
.journal-row__edit { color: var(--moss); text-transform: none; letter-spacing: 0; margin-left: auto; }
@media (max-width: 640px) { .journal-row { grid-template-columns: 1fr; } .journal-row__img img { height: 200px; } }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 48px; }
.pagination__item {
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    font-size: 13px;
    color: var(--ink-55);
}
.pagination__item.is-active,
.pagination__item:hover { background: var(--ink); color: var(--bg); }

/* ============================================================
   Article & destination tabs
   ============================================================ */
.article-tabs__bar {
    max-width: var(--container);
    margin: 40px auto 0;
    padding: 0 24px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--line);
}
.article-tabs__btn {
    background: none;
    border: none;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .03em;
    color: var(--ink-55);
    padding: 14px 6px;
    margin-right: 22px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.article-tabs__btn.is-active { color: var(--ink); border-bottom-color: var(--moss); }
.article-tab-panel { display: none; }
.article-tab-panel.is-active { display: block; }

.article-layout--wide { max-width: var(--container); grid-template-columns: 1fr 280px; }
.article-body--wide { max-width: none; }

.info-bar--stacked { margin: 0 0 20px; border: none; padding: 0; }

.mini-map {
    width: 100%;
    height: 320px;
    border-radius: var(--radius);
    margin-top: 20px;
    background: var(--paper);
    z-index: 0;
}

/* ============================================================
   Destination page
   ============================================================ */
.destination-header {
    max-width: var(--container);
    margin: 32px auto 0;
    padding: 0 24px;
}
.destination-header h1 { font-size: clamp(32px, 4.4vw, 48px); margin-top: 12px; }

.stat-row {
    max-width: var(--container);
    margin: 40px auto 0;
    padding: 28px 24px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}
.stat-row__item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-right: 1px solid var(--line);
}
.stat-row__item:last-child { border-right: none; }
.stat-row__item strong { font-family: var(--display); font-size: 26px; }
.stat-row__item span { font-size: 11.5px; color: var(--ink-55); text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 640px) { .stat-row { grid-template-columns: 1fr 1fr; } .stat-row__item { border-right: none; border-bottom: 1px solid var(--line); padding-bottom: 14px; } }

.region-sidebar { padding-top: 8px; }
.region-list { list-style: none; margin: 14px 0 22px; padding: 0; display: flex; flex-direction: column; }
.region-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 13.5px;
}
.region-list em { font-style: normal; color: var(--ink-55); }
.region-sidebar__btn { width: 100%; justify-content: center; }

@media (max-width: 860px) { .article-layout--wide { grid-template-columns: 1fr; } }

.destination-card {
    position: relative;
    display: block;
    height: 300px;
    border-radius: var(--radius);
    overflow: hidden;
}
.destination-card img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.destination-card:hover img { transform: scale(1.05); }
.destination-card__scrim {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,10,8,.05) 40%, rgba(10,10,8,.72) 100%);
}
.destination-card__body { position: absolute; left: 20px; bottom: 18px; color: #fff; }
.destination-card__body h3 { font-size: 22px; margin: 8px 0; }
.destination-card__body span { font-size: 12px; color: rgba(255,255,255,.8); }
.eyebrow--light { color: rgba(255,255,255,.85); }

/* ============================================================
   Collection page (masonry gallery)
   ============================================================ */
/* CSS multi-column (the previous approach here) always fills one
   column top-to-bottom before starting the next — there's no way to
   make that read left-to-right in pure CSS. Grid reads in row order
   naturally, which is what a photo gallery should do. The trade-off:
   photos crop to a fixed ratio instead of keeping their natural
   variable heights — true variable-height "masonry" with correct
   left-to-right reading order isn't achievable without JS. */
.masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
/* The Gallery tab sits inside .article-body, which caps prose at
   700px for readability — sensible for the Overview text, but that
   same width starves a photo grid that has the whole page to work
   with. Widen just this panel, offset to stay centered against the
   page rather than the narrower article column. min() keeps it from
   ever exceeding the viewport's actual free space. */
.article-tab-panel[data-panel="gallery"] {
    max-width: min(980px, 100vw - 48px);
    margin-left: calc((700px - min(980px, 100vw - 48px)) / 2);
}
@media (max-width: 1100px) {
    .article-tab-panel[data-panel="gallery"] {
        max-width: min(820px, 100vw - 48px);
        margin-left: calc((700px - min(820px, 100vw - 48px)) / 2);
    }
}
@media (max-width: 760px) {
    .article-tab-panel[data-panel="gallery"] { max-width: none; margin-left: 0; }
}
.masonry__item-btn {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: var(--radius);
    overflow: hidden;
    line-height: 0;
}
.masonry__item-btn:hover .masonry__item { transform: scale(1.03); }
.masonry__item {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
    display: block;
    transition: transform .3s ease;
}
@media (max-width: 700px) { .masonry { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); } }

/* ============================================================
   Collection slideshow / lightbox
   ============================================================ */
.slideshow {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(10,10,10,.94);
    padding: 24px;
}
.slideshow.is-open { display: flex; }
.slideshow__stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: min(1100px, 88vw);
}
.slideshow__img {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.slideshow__meta {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255,255,255,.75);
    font-size: 12.5px;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.slideshow__category { color: var(--terracotta); font-weight: 600; }
.slideshow__close {
    position: absolute;
    top: 24px; right: 24px;
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.08);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
}
.slideshow__close:hover { background: rgba(255,255,255,.18); }
.slideshow__close svg { width: 18px; height: 18px; }
.slideshow__nav {
    width: 48px; height: 48px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.08);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
}
.slideshow__nav:hover { background: rgba(255,255,255,.18); }
.slideshow__nav svg { width: 20px; height: 20px; }
@media (max-width: 700px) {
    .slideshow { padding: 16px; gap: 6px; }
    .slideshow__nav { width: 38px; height: 38px; }
    .slideshow__close { top: 14px; right: 14px; width: 36px; height: 36px; }
}

/* ============================================================
   Roteiros listing
   ============================================================ */
.roteiro-list { display: flex; flex-direction: column; gap: 20px; }
.roteiro-row {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    align-items: center;
    gap: 22px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
}
.roteiro-row__img { position: relative; }
.roteiro-row__img img { width: 100%; height: 100px; object-fit: cover; border-radius: var(--radius); }
.roteiro-row__badge {
    position: absolute; top: 8px; right: 8px;
    background: var(--ink);
    color: var(--bg);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .04em;
    padding: 4px 9px;
    border-radius: 12px;
}
.roteiro-row__body h3 { font-size: 18px; margin-bottom: 6px; }
.roteiro-row__body p { color: var(--ink-55); font-size: 13.5px; margin-bottom: 8px; }
.roteiro-row__meta { display: flex; gap: 14px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-35); }
.roteiro-row__cta { white-space: nowrap; padding: 11px 18px; }
@media (max-width: 700px) { .roteiro-row { grid-template-columns: 1fr; } .roteiro-row__cta { width: 100%; text-align: center; } }

/* ============================================================
   Planning form extras (checkbox grid, success state)
   ============================================================ */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 20px;
    margin-top: 6px;
}
.checkbox-grid .form-checkbox { margin-bottom: 0; }
@media (max-width: 600px) { .checkbox-grid { grid-template-columns: 1fr; } }

.form-actions__full { width: 100%; justify-content: center; }

.form-success {
    background: rgba(47, 104, 68, .1);
    border: 1px solid rgba(47, 104, 68, .3);
    border-radius: var(--radius);
    padding: 20px 26px;
    margin-top: 24px;
}
.form-success h2 { font-size: 18px; margin-bottom: 6px; }
.form-success p { color: var(--ink-55); font-size: 13.5px; margin: 0; }

/* ============================================================
   Contact page
   ============================================================ */
.contact-page {
    max-width: var(--container);
    margin: 60px auto 120px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 50px;
}
.contact-card { padding-top: 6px; }
.contact-card h1 { font-size: 30px; margin-bottom: 10px; }
.contact-card > p { color: var(--ink-55); margin-bottom: 30px; }
.contact-card__detail { padding: 16px 0; border-top: 1px solid var(--line); }
.contact-card__detail span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-55); margin-bottom: 4px; }
.contact-form-wrap .form-card { margin-top: 0; }
@media (max-width: 860px) { .contact-page { grid-template-columns: 1fr; } }

/* ============================================================
   About page
   ============================================================ */
.about-page { max-width: var(--container); margin: 0 auto 120px; padding: 0 24px; }
.about-card {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 50px;
    align-items: center;
    padding-top: 20px;
}
.about-card__photo { width: 100%; height: 420px; object-fit: cover; border-radius: var(--radius); }
.about-card__body h1 { font-size: 32px; margin-bottom: 18px; }
.about-card__body p { color: var(--ink-70); margin-bottom: 14px; max-width: 520px; }
@media (max-width: 800px) { .about-card { grid-template-columns: 1fr; } .about-card__photo { height: 300px; } }

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    text-align: center;
    margin-top: 56px;
    padding: 30px 0;
    border-top: 1px solid var(--line);
}
.about-stats__item strong { display: block; font-family: var(--display); font-size: 30px; margin-bottom: 6px; }
.about-stats__item span { font-size: 11.5px; color: var(--ink-55); text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 640px) { .about-stats { grid-template-columns: 1fr 1fr; row-gap: 24px; } }

/* ============================================================
   404 page
   ============================================================ */
.notfound {
    position: relative;
    height: 70vh;
    min-height: 460px;
    overflow: hidden;
}
.notfound img { width: 100%; height: 100%; object-fit: cover; }
.notfound__scrim { position: absolute; inset: 0; background: rgba(10,10,8,.55); }
.notfound__content {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
    color: #fff;
    padding: 0 24px;
}
.notfound__code { font-family: var(--display); font-size: 90px; line-height: 1; }
.notfound__content h1 { font-size: 26px; margin: 10px 0 8px; }
.notfound__content p { color: rgba(255,255,255,.8); margin-bottom: 24px; }

/* ============================================================
   Under construction (/UnderConstruction) — standalone page,
   no site nav/footer, only rendered when maintenance mode is on.
   ============================================================ */
.under-construction {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
    background: var(--bg);
    color: var(--ink);
}
.under-construction__mark { width: 44px; height: 44px; margin-bottom: 24px; opacity: .9; }
.under-construction h1 {
    font-family: var(--display);
    font-size: clamp(28px, 4vw, 40px);
    max-width: 560px;
    margin: 14px 0 12px;
}
.under-construction p { color: var(--ink-55); max-width: 460px; margin: 0; }

/* ============================================================
   Full map page (/Mapa)
   ============================================================ */
.map-page {
    max-width: var(--container);
    margin: 0 auto 120px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
}
.map-page__map { width: 100%; height: 620px; border-radius: var(--radius); background: var(--paper); }
.map-page__groups {
    margin: 14px 0 0;
    max-height: 620px;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* legacy Edge/IE */
}
.map-page__groups::-webkit-scrollbar { display: none; } /* Chrome, Safari, modern Edge */
.map-page__group { border-bottom: 1px solid var(--line); }
.map-page__group summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 0;
    cursor: pointer;
    list-style: none;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ink-55);
}
.map-page__group summary::-webkit-details-marker { display: none; }
.map-page__group summary::before {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 1.5px solid var(--ink-55);
    border-bottom: 1.5px solid var(--ink-55);
    transform: rotate(-45deg);
    transition: transform .15s ease;
    flex-shrink: 0;
    order: -1;
}
.map-page__group[open] summary::before { transform: rotate(45deg); }
.map-page__group summary:hover { color: var(--moss); }
.map-page__group-count {
    margin-left: auto;
    font-size: 10.5px;
    color: var(--ink-40, var(--ink-55));
}
.map-page__list { list-style: none; margin: 0 0 8px; padding: 0 0 0 18px; }
.map-page__list-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    background: none;
    border: none;
    text-align: left;
    padding: 9px 0;
    cursor: pointer;
    color: var(--ink);
}
.map-page__list-item strong { font-size: 14px; font-weight: 500; color: inherit; }
.map-page__list-item:hover strong { color: var(--moss); }
@media (max-width: 900px) { .map-page { grid-template-columns: 1fr; } .map-page__map { height: 420px; } }

/* ============================================================
   Search results (/Pesquisa)
   ============================================================ */
.search-results { display: flex; flex-direction: column; gap: 4px; }
.search-result {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}
.search-result img { width: 70px; height: 70px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; }
.search-result__type { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--clay); }
.search-result h3 { font-size: 16px; margin-top: 4px; font-weight: 500; }
.search-result:hover h3 { color: var(--moss); }

/* Leaflet popup font matches the site */
.leaflet-popup-content { font-family: var(--sans); font-size: 13px; }
.leaflet-popup-content a { color: var(--moss); font-weight: 600; }

/* Keep attribution unobtrusive on the decorative homepage teaser map */
#map-teaser .leaflet-control-attribution {
    background: transparent;
    color: rgba(250,249,248,.35);
    font-size: 10px;
}
#map-teaser .leaflet-control-attribution a { color: rgba(250,249,248,.45); }

/* ============================================================
   Theme toggle (light/dark)
   ============================================================ */
.theme-toggle { position: relative; }
.theme-toggle__moon,
.theme-toggle__sun {
    display: flex;
    width: 20px; height: 20px;
}
.theme-toggle__sun { display: none; }
[data-theme="dark"] .theme-toggle__moon { display: none; }
[data-theme="dark"] .theme-toggle__sun { display: flex; }

/* ============================================================
   Mobile navigation panel
   ============================================================ */
.mobile-nav {
    max-height: 0;
    overflow: hidden;
    background: var(--slate);
    transition: max-height .3s ease;
}
.mobile-nav.is-open { max-height: 520px; }
.mobile-nav nav {
    display: flex;
    flex-direction: column;
    padding: 8px 24px 20px;
}
.mobile-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--fixed-light);
    font-size: 15px;
    font-weight: 500;
    padding: 14px 4px;
    border-bottom: 1px solid rgba(250,249,248,.12);
}
.mobile-nav a svg { width: 16px; height: 16px; opacity: .6; }
.mobile-nav a:hover { color: var(--terracotta); }
@media (min-width: 901px) { .mobile-nav { display: none; } }

/* ============================================================
   Alerts / toasts
   ============================================================ */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    line-height: 1.5;
    border: 1px solid transparent;
}
.alert svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.alert span { flex: 1; }
.alert__close {
    background: none; border: none; cursor: pointer; color: inherit;
    opacity: .6; display: flex; padding: 2px; flex-shrink: 0;
}
.alert__close:hover { opacity: 1; }
.alert__close svg { width: 15px; height: 15px; margin: 0; }

.alert--success { background: rgba(47,104,68,.1); border-color: rgba(47,104,68,.3); color: var(--success); }
.alert--warning { background: rgba(184,121,46,.1); border-color: rgba(184,121,46,.3); color: var(--warning); }
.alert--error   { background: rgba(196,67,46,.1); border-color: rgba(196,67,46,.3); color: var(--error); }
.alert--info    { background: rgba(46,90,172,.1); border-color: rgba(46,90,172,.3); color: var(--info); }

.alert--flash {
    max-width: var(--container);
    margin: 16px auto 0;
    padding-left: 24px;
    padding-right: 24px;
}

/* ============================================================
   Badges & tags
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: var(--radius-pill);
}
.badge--novo { background: var(--terracotta); color: #fff; }
.badge--popular { background: var(--fixed-dark); color: var(--fixed-light); }
.badge--destaque { background: var(--warning); color: #fff; }

.card-badge {
    position: absolute;
    top: 14px; left: 14px;
    z-index: 2;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 13px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line);
    color: var(--ink-55);
    background: var(--paper);
}

/* ============================================================
   Progress steps (Planear wizard)
   ============================================================ */
.wizard-steps {
    display: flex;
    align-items: center;
    margin: 0 0 40px;
}
.wizard-steps__step {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    position: relative;
}
.wizard-steps__circle {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--paper);
    border: 1px solid var(--line);
    color: var(--ink-55);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
    transition: background-color .2s ease, color .2s ease;
}
.wizard-steps__label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-55);
    white-space: nowrap;
}
.wizard-steps__step::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
    margin-left: 10px;
}
.wizard-steps__step:last-child::after { display: none; }

.wizard-steps__step.is-done .wizard-steps__circle { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.wizard-steps__step.is-done .wizard-steps__label { color: var(--ink); }
.wizard-steps__step.is-active .wizard-steps__circle { background: var(--moss); color: #fff; border-color: var(--moss); }
.wizard-steps__step.is-active .wizard-steps__label { color: var(--ink); }

.wizard-panel { display: none; }
.wizard-panel.is-active { display: block; }
.wizard-panel .form-actions { justify-content: space-between; }
.wizard--flat .wizard-panel { display: block !important; padding-bottom: 28px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.wizard--flat .wizard-panel:last-child { border-bottom: none; }
.wizard--flat .wizard-steps,
.wizard--flat .progress-bar { display: none; }
.wizard--flat [data-wizard-next],
.wizard--flat [data-wizard-back] { display: none; }

.progress-bar {
    height: 6px;
    background: var(--paper);
    border-radius: var(--radius-pill);
    overflow: hidden;
}
.progress-bar__fill {
    height: 100%;
    background: var(--moss);
    border-radius: var(--radius-pill);
    transition: width .3s ease;
}

/* ============================================================
   Footer social icons
   ============================================================ */
.footer__social {
    display: flex;
    gap: 14px;
    margin-top: 18px;
}
.footer__social a {
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(250,249,248,.2);
    color: rgba(250,249,248,.85);
}
.footer__social svg { width: 15px; height: 15px; }
.footer__social a:hover { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }

/* ============================================================
   Timeline page (dedicated /Timeline)
   ============================================================ */
.timeline-page { max-width: var(--container); margin: 0 auto 120px; padding: 0 24px; }
.timeline-year { display: flex; gap: 40px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.timeline-year__label { width: 90px; flex-shrink: 0; }
.timeline-year__label strong { display: block; font-family: var(--display); font-size: 32px; }
.timeline-year__label span { font-size: 12px; color: var(--ink-55); text-transform: uppercase; letter-spacing: .05em; }
.timeline-year__items { flex: 1; display: flex; flex-direction: column; gap: 22px; }
.timeline-entry {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}
.timeline-entry:last-child { border-bottom: none; padding-bottom: 0; }
.timeline-entry__month {
    width: 46px;
    flex-shrink: 0;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--clay);
}
.timeline-entry img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.timeline-entry__body { flex: 1; }
.timeline-entry__body h3 { font-size: 16px; font-weight: 500; margin-bottom: 4px; }
.timeline-entry__body span { font-size: 12.5px; color: var(--ink-55); }
.timeline-entry:hover h3 { color: var(--moss); }
@media (max-width: 700px) {
    .timeline-year { flex-direction: column; gap: 16px; }
    .timeline-year__label { width: auto; display: flex; align-items: baseline; gap: 10px; }
}

/* ============================================================
   Backoffice / Admin shell
   ============================================================ */
.admin-shell {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: var(--slate);
    color: var(--fixed-light);
    display: flex;
    flex-direction: column;
    padding: 22px 16px;
    position: sticky;
    top: 0;
    height: 100vh;
}
.admin-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--fixed-light);
    font-family: var(--display);
    font-size: 15px;
    letter-spacing: .03em;
    padding: 6px 10px 26px;
}
.admin-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}
.admin-sidebar__nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: var(--radius-sm);
    color: rgba(250, 249, 248, .72);
    font-size: 13.5px;
    font-weight: 500;
}
.admin-sidebar__nav a svg { width: 18px; height: 18px; flex-shrink: 0; }
.admin-sidebar__nav a:hover { background: rgba(250, 249, 248, .08); color: #fff; }
.admin-sidebar__nav a.is-active { background: var(--terracotta); color: #fff; }
.admin-sidebar__viewsite {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    margin-top: 10px;
    border-top: 1px solid rgba(250, 249, 248, .14);
    padding-top: 18px;
    color: rgba(250, 249, 248, .6);
    font-size: 12.5px;
}
.admin-sidebar__viewsite svg { width: 15px; height: 15px; }
.admin-sidebar__viewsite:hover { color: #fff; }

.admin-main {
    flex: 1;
    min-width: 0;
    background: var(--bg);
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
    border-bottom: 1px solid var(--line);
}
.admin-topbar h1 { font-size: 22px; font-family: var(--sans); font-weight: 600; }
.admin-topbar__actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.admin-content {
    padding: 32px;
    max-width: 1100px;
}

@media (max-width: 900px) {
    .admin-sidebar { position: fixed; z-index: 40; transform: translateX(-100%); transition: transform .2s ease; }
    .admin-sidebar.is-open { transform: translateX(0); }
    .admin-content { padding: 20px; }
    .admin-topbar { padding: 16px 20px; }
}

/* Dashboard stat cards */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 36px;
}
.admin-stat-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
}
.admin-stat-card strong { display: block; font-family: var(--display); font-size: 30px; margin-bottom: 4px; }
.admin-stat-card span { font-size: 12px; color: var(--ink-55); text-transform: uppercase; letter-spacing: .05em; }
@media (max-width: 760px) { .admin-stats { grid-template-columns: 1fr 1fr; } }

.admin-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}
.admin-page-head p { color: var(--ink-55); font-size: 13.5px; margin: 4px 0 0; }

/* Data table */
.admin-table-wrap {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-55);
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
}
.admin-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    font-size: 13.5px;
    vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(0,0,0,.015); }
.admin-table__actions { display: flex; gap: 8px; justify-content: flex-end; }
.admin-table__icon-btn {
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--ink-55);
    border: 1px solid var(--line);
    background: none;
    cursor: pointer;
}
.admin-table__icon-btn svg { width: 14px; height: 14px; }
.admin-table__icon-btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.admin-table__icon-btn--danger:hover { background: var(--error); border-color: var(--error); color: #fff; }
.admin-table__thumb { width: 42px; height: 42px; object-fit: cover; border-radius: var(--radius-sm); }
.admin-table__title { font-weight: 500; color: var(--ink); }
.admin-table__meta { color: var(--ink-55); font-size: 12px; }

.admin-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--ink-55);
}

.admin-role-badge {
    display: inline-flex;
    align-items: center;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: var(--terracotta);
    color: #fff;
}

.admin-form-hint {
    font-size: 12px;
    color: var(--ink-35);
    margin-top: -12px;
    margin-bottom: 18px;
}

/* ============================================================
   Repeater — structured, add/remove repeatable form rows
   (destination regions, collection photos, itinerary days)
   ============================================================ */
.repeater { margin-bottom: 22px; }
.repeater__label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--ink-55);
    margin-bottom: 10px;
}
.repeater__list { display: flex; flex-direction: column; gap: 10px; }
.repeater__row {
    display: grid;
    grid-template-columns: var(--repeater-cols, 1fr auto);
    gap: 10px;
    align-items: start;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 12px;
}
.repeater__row input,
.repeater__row textarea {
    width: 100%;
    font-family: var(--sans);
    font-size: 14px;
    color: var(--ink);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 9px 11px;
}
.repeater__row input:focus,
.repeater__row textarea:focus { outline: none; border-color: var(--moss); }
.repeater__remove {
    width: 34px; height: 34px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: none;
    color: var(--error);
    cursor: pointer;
}
.repeater__remove:hover { background: var(--error); border-color: var(--error); color: #fff; }
.repeater__row--stacked {
    display: block;
    position: relative;
    padding: 14px 46px 14px 14px;
}
.repeater__row--stacked .repeater__row-grid {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 10px;
    margin-bottom: 10px;
}
.repeater__row--stacked textarea { min-height: 60px; resize: vertical; }
.repeater__row--stacked .repeater__remove {
    position: absolute;
    top: 10px; right: 10px;
}
.repeater__remove svg { width: 14px; height: 14px; }
.repeater__add {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--moss);
    background: none;
    border: 1px dashed var(--line);
    border-radius: var(--radius-sm);
    padding: 9px 16px;
    cursor: pointer;
}
.repeater__add:hover { border-color: var(--moss); }
.repeater__add svg { width: 14px; height: 14px; }
.repeater__empty { font-size: 13px; color: var(--ink-35); padding: 8px 2px; }

/* ============================================================
   Markdown editor toolbar
   ============================================================ */
.md-editor { margin-bottom: 18px; }
.md-toolbar {
    display: flex;
    align-items: center;
    gap: 2px;
    border: 1px solid var(--line);
    border-bottom: none;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    background: var(--paper);
    padding: 6px;
}
.md-toolbar__btn {
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    border: none;
    background: none;
    border-radius: 6px;
    color: var(--ink-55);
    cursor: pointer;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 13px;
}
.md-toolbar__btn:hover { background: var(--bg); color: var(--ink); }
.md-toolbar__btn svg { width: 15px; height: 15px; }
.md-toolbar__sep { width: 1px; height: 18px; background: var(--line); margin: 0 4px; }
.md-editor textarea {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
.md-hint { font-size: 11.5px; color: var(--ink-35); margin: 6px 0 18px; }
