:root {
    --ink: #241c2a;
    --ink-soft: #4f4655;
    --muted: #746b78;
    --paper: #fffdf9;
    --canvas: #f5f0e8;
    --canvas-deep: #ece5da;
    --night: #21172b;
    --night-soft: #352440;
    --brand: #ef5847;
    --brand-dark: #c83b30;
    --accent: #dff36c;
    --sun: #f7c94b;
    --violet: #7259e8;
    --sky: #83d4ed;
    --lagoon-wash: rgba(78, 177, 198, .25);
    --facade-wash: rgba(221, 112, 90, .18);
    --sweet-wash: rgba(235, 186, 65, .20);
    --azulejo-wash: rgba(87, 117, 164, .027);
    --line: #ddd5cb;
    --line-strong: #c8bdb1;
    --success-bg: #e9f6e9;
    --success-ink: #225a35;
    --danger-bg: #fff0ed;
    --danger-ink: #8d2e2b;
    --warning-bg: #fff7d8;
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 26px;
    --shadow-sm: 0 3px 0 rgba(36, 28, 42, .08);
    --shadow: 0 18px 45px rgba(36, 28, 42, .10);
    --font: "Segoe UI Variable Text", "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
    --display: "Segoe UI Variable Display", "Segoe UI", Inter, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background-color: var(--canvas);
    background-image:
        radial-gradient(ellipse 46rem 34rem at 4% 12%, var(--lagoon-wash) 0%, rgba(78, 177, 198, .11) 43%, transparent 74%),
        radial-gradient(ellipse 40rem 32rem at 96% 38%, var(--facade-wash) 0%, rgba(221, 112, 90, .08) 45%, transparent 75%),
        radial-gradient(ellipse 43rem 31rem at 10% 84%, var(--sweet-wash) 0%, rgba(235, 186, 65, .08) 46%, transparent 76%),
        radial-gradient(ellipse 35rem 27rem at 91% 91%, rgba(100, 168, 177, .15) 0%, transparent 72%),
        linear-gradient(135deg, transparent 0 46%, var(--azulejo-wash) 46% 47%, transparent 47% 53%, var(--azulejo-wash) 53% 54%, transparent 54% 100%),
        linear-gradient(180deg, #f8f4ed 0%, #f3eee6 48%, #f7f2ea 100%);
    background-size: auto, auto, auto, auto, 68px 68px, auto;
    background-attachment: fixed;
    color: var(--ink);
    font: 16px/1.55 var(--font);
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--brand); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.035em; line-height: 1.08; }
h1 { font-size: clamp(2rem, 4vw, 3.25rem); margin: 0 0 14px; }
h2 { font-size: clamp(1.55rem, 2.5vw, 2.15rem); }
h3 { font-size: 1.13rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 10px 14px; color: #fff; background: var(--night); border-radius: 8px; }
.muted { color: var(--muted); }
.help { color: var(--muted); font-size: .82rem; }
.field-help { display: block; margin-top: 5px; color: var(--muted); font-size: .78rem; line-height: 1.35; }
.stack > * + * { margin-top: 14px; }
.inline { display: inline-flex; align-items: center; gap: 9px; }
.split { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

/* Header and brand */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 253, 249, .94); border-bottom: 1px solid rgba(200, 189, 177, .72); backdrop-filter: blur(14px); }
.header-inner { min-height: 74px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; color: var(--night); background: var(--accent); border-radius: 50% 50% 44% 56%; transform: rotate(-3deg); }
.brand-mark svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark .brand-landmark { fill: var(--brand); }
.brand-mark .brand-clock { fill: var(--accent); }
.brand-mark .brand-details { fill: none; }
.brand-copy { display: flex; flex-direction: column; font-size: 1.02rem; line-height: .9; letter-spacing: -.04em; }
.brand-copy strong { font-size: 1.12rem; font-weight: 850; }
.brand-copy span { color: var(--brand); font-weight: 700; }
.desktop-nav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-link { position: relative; padding: 10px 11px; color: var(--ink-soft); font-size: .9rem; font-weight: 680; text-decoration: none; }
.nav-link::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 5px; height: 2px; background: var(--brand); transform: scaleX(0); transition: transform .18s ease; }
.nav-link:hover, .nav-link.is-active { color: var(--ink); text-decoration: none; }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-icon-link { display: grid; place-items: center; width: 38px; height: 38px; color: var(--muted); border-radius: 50%; }
.nav-icon-link:hover { background: var(--canvas); color: var(--ink); }
.nav-icon-link svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mobile-nav { display: none; margin-left: auto; position: relative; }
.mobile-nav summary { width: 42px; height: 42px; display: grid; align-content: center; gap: 5px; padding: 10px; list-style: none; cursor: pointer; border: 1px solid var(--line); border-radius: 12px; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary span { height: 2px; width: 100%; background: var(--ink); border-radius: 10px; }
.mobile-nav nav { position: absolute; right: 0; top: 50px; width: min(290px, calc(100vw - 40px)); display: flex; flex-direction: column; padding: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.mobile-nav nav a { padding: 12px; font-weight: 700; text-decoration: none; border-radius: 9px; }
.mobile-nav nav a:hover { background: var(--canvas); }

/* Shared controls */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 10px 17px; border: 1px solid var(--brand); border-radius: 999px; color: #fff; background: var(--brand); font-weight: 760; font-size: .92rem; line-height: 1; text-align: center; cursor: pointer; text-decoration: none; transition: transform .16s ease, background .16s ease, box-shadow .16s ease; }
.button:hover { color: #fff; background: var(--brand-dark); border-color: var(--brand-dark); box-shadow: 0 5px 0 rgba(36, 28, 42, .13); transform: translateY(-2px); text-decoration: none; }
.button:active { transform: translateY(0); box-shadow: none; }
.button-small { min-height: 38px; padding: 8px 14px; font-size: .84rem; }
.button-secondary { color: var(--ink); background: transparent; border-color: var(--line-strong); }
.button-secondary:hover { color: var(--ink); background: var(--paper); border-color: var(--ink); }
.button-light { color: var(--night); background: var(--accent); border-color: var(--accent); }
.button-light:hover { color: var(--night); background: #edff8f; border-color: #edff8f; }
.button-danger { color: #fff; background: #a73738; border-color: #a73738; }
.button-quiet { min-height: auto; padding: 4px 6px; color: var(--brand-dark); background: transparent; border: 0; box-shadow: none; }
.button-quiet:hover { color: var(--brand-dark); background: var(--danger-bg); box-shadow: none; transform: none; }
.button-block { width: 100%; }

.page-content { min-height: calc(100vh - 300px); padding-block: 32px 78px; }
.subscription-result { max-width: 650px; margin: 48px auto 30px; padding: clamp(30px, 6vw, 58px); text-align: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.subscription-result .overline { justify-content: center; }
.subscription-result h1 { margin-bottom: 12px; }
.subscription-result p:not(.overline) { margin: 0 auto 24px; color: var(--muted); }
.alert { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 20px; padding: 13px 15px; border: 1px solid; border-radius: 12px; font-size: .92rem; }
.alert > span:first-child { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; font-weight: 800; }
.alert-success { color: var(--success-ink); background: var(--success-bg); border-color: #b7dcbf; }
.alert-success > span:first-child { color: #fff; background: #3d8a54; }
.alert-error { color: var(--danger-ink); background: var(--danger-bg); border-color: #edc1ba; }
.alert-error > span:first-child { color: #fff; background: #ad3d36; }
.error-text { color: var(--danger-ink); font-size: .82rem; font-weight: 650; }
.overline { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; color: var(--brand-dark); font-size: .72rem; font-weight: 820; letter-spacing: .13em; text-transform: uppercase; }
.overline > span { display: inline-block; width: 21px; height: 2px; background: currentColor; }
.overline-light { color: var(--accent); }
.eyebrow { color: var(--brand-dark); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

/* Home */
.home-hero { position: relative; min-height: 250px; display: grid; grid-template-columns: 1.28fr .72fr; overflow: hidden; color: #fff; background: var(--night); border-radius: var(--radius-lg); box-shadow: 0 9px 0 #dfd7cb; }
.hero-content { z-index: 2; grid-column: 1; grid-row: 1; display: flex; flex-direction: column; justify-content: center; padding: 25px 24px 24px 40px; }
.hero-content h1 { max-width: 680px; margin-bottom: 9px; font-size: clamp(2.05rem, 3.4vw, 2.65rem); font-weight: 820; letter-spacing: -.06em; }
.hero-content h1 em { color: var(--accent); font-family: Georgia, serif; font-weight: 500; }
.hero-lead { max-width: 580px; margin: 0 0 13px; color: #dcd2e4; font-size: .89rem; line-height: 1.42; }
.hero-search { width: min(540px, 100%); min-height: 48px; display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 8px; padding: 4px 5px 4px 14px; color: var(--ink); background: #fff; border-radius: 999px; box-shadow: 0 6px 22px rgba(0, 0, 0, .2); }
.hero-search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.hero-search input { min-width: 0; padding: 7px 2px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: .86rem; }
.hero-search input::placeholder { color: #8b838e; }
.hero-search button { min-height: 38px; padding: 7px 18px; color: #fff; background: var(--brand); border: 0; border-radius: 999px; font-size: .82rem; font-weight: 780; cursor: pointer; }
.hero-search button:hover { background: var(--brand-dark); }
.hero-actions { display: flex; align-items: center; gap: 14px; margin-top: 9px; color: #a99dad; font-size: .68rem; }
.hero-actions a { color: #fff; font-weight: 720; text-decoration: none; }
.hero-actions a span { color: var(--accent); }
.hero-art { position: relative; z-index: 1; grid-column: 2; grid-row: 1; min-width: 0; overflow: hidden; isolation: isolate; background: linear-gradient(150deg, #173d4c 0%, #275766 58%, #3d7180 100%); }
.hero-art::before { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .16; background: linear-gradient(45deg, transparent 45%, #d9f0ee 45% 55%, transparent 55%) 0 0 / 24px 24px, linear-gradient(-45deg, transparent 45%, #d9f0ee 45% 55%, transparent 55%) 12px 0 / 24px 24px; -webkit-mask-image: linear-gradient(to bottom, #000, transparent 72%); mask-image: linear-gradient(to bottom, #000, transparent 72%); }
.hero-art::after { content: ""; position: absolute; z-index: 0; width: 82px; height: 82px; right: 22px; top: 26px; background: var(--sun); border: 8px solid rgba(255, 255, 255, .15); border-radius: 50%; box-shadow: 0 0 0 18px rgba(247, 201, 75, .08); }
.hero-cityscape { position: absolute; z-index: 2; left: -6%; bottom: 0; width: 112%; height: 100%; overflow: visible; }
.hero-city-buildings { fill: #f0d5b0; stroke: var(--night); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.hero-casarao { fill: #ef826d; }
.hero-casarao-detail, .hero-market-detail, .hero-theatre-detail, .hero-clock-hand { fill: none; }
.hero-market { fill: #f4dfbd; }
.hero-market-roof { fill: var(--accent); }
.hero-clock { fill: var(--paper); }
.hero-theatre { fill: #86c8d0; }
.hero-fountain { fill: none; stroke: #f6f0dc; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.hero-fountain circle { fill: var(--accent); stroke: var(--night); }
.hero-lagoon { stroke: var(--night); stroke-width: 3; }
.hero-lagoon-back { fill: #69c6d4; }
.hero-lagoon-front { fill: #3f9dad; }
.hero-city-stamp { position: absolute; z-index: 4; right: 19px; top: 18px; display: flex; flex-direction: column; padding: 10px 13px 9px; color: var(--night); background: var(--accent); border: 2px solid var(--night); box-shadow: 5px 5px 0 rgba(33, 23, 43, .32); font-size: .62rem; line-height: 1; letter-spacing: .09em; text-align: center; transform: rotate(3deg); }
.hero-city-stamp strong { font-size: .73rem; font-weight: 900; }
.hero-city-stamp span { margin-top: 4px; color: var(--brand-dark); font-weight: 850; }
.category-strip { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 38px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.category-strip a { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 7px 10px; color: var(--ink-soft); font-size: .8rem; font-weight: 720; text-decoration: none; border-right: 1px solid var(--line); transition: background .15s ease, color .15s ease; }
.category-strip a:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.category-strip a:last-child { border: 0; border-radius: 0 var(--radius) var(--radius) 0; }
.category-strip a:hover { color: var(--ink); background: #fff8ef; }
.category-strip a span { display: grid; place-items: center; width: 27px; height: 27px; color: var(--night); background: var(--sun); border-radius: 8px; font-size: .86rem; font-weight: 900; transform: rotate(-3deg); }
.category-strip a:nth-child(2) span { background: #f8a6a0; }
.category-strip a:nth-child(3) span { background: var(--accent); }
.category-strip a:nth-child(4) span { background: var(--sky); }
.category-strip a:nth-child(5) span { color: #fff; background: var(--violet); }
.events-section { padding-top: 20px; }
.events-section + .events-section { padding-top: 48px; }
.events-section-past { padding-bottom: 12px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 24px 0 18px; }
.section-head h1, .section-head h2 { margin: 0; }
.section-head > div > p:last-child { margin-bottom: 0; }
.section-head-editorial { margin: 0 0 23px; }
.section-head-editorial h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.55rem); }
.stats-header { align-items: flex-end; margin-bottom: 24px; }
.stats-header .muted { max-width: 620px; margin-top: 8px; }
.stats-filter { display: flex; align-items: flex-end; gap: 8px; flex: none; padding: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow-sm); }
.stats-filter label { align-self: center; padding-left: 4px; color: var(--muted); font-size: .72rem; font-weight: 760; }
.stats-filter select { min-height: 38px; padding: 7px 29px 7px 10px; color: var(--ink); background: var(--canvas); border: 1px solid var(--line); border-radius: 8px; font-size: .78rem; font-weight: 700; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.stats-card { min-width: 0; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.stats-card-primary { color: #fff; background: var(--night); border-color: var(--night); }
.stats-card-label { display: block; margin-bottom: 11px; color: var(--muted); font-size: .72rem; font-weight: 780; letter-spacing: .06em; text-transform: uppercase; }
.stats-card-primary .stats-card-label { color: #cfc3d7; }
.stats-card strong { display: block; color: var(--ink); font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -.06em; line-height: 1; }
.stats-card-primary strong { color: var(--accent); }
.stats-card small { display: block; margin-top: 9px; color: var(--muted); font-size: .72rem; }
.stats-card-primary small { color: #a99dad; }
.stats-panel { min-width: 0; margin-bottom: 20px; padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.stats-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.stats-panel-head h2 { margin: 0; font-size: 1.35rem; }
.stats-panel-head .eyebrow { margin: 0 0 6px; }
.stats-period { flex: none; padding: 6px 9px; color: var(--muted); background: var(--canvas); border-radius: 999px; font-size: .68rem; font-weight: 700; }
.stats-chart-scroll { overflow-x: auto; padding-bottom: 5px; }
.stats-chart { min-width: 560px; height: 205px; display: grid; grid-template-columns: repeat(auto-fit, minmax(24px, 1fr)); align-items: end; gap: 6px; padding: 10px 4px 0; border-bottom: 1px solid var(--line); }
.stats-chart-item { min-width: 0; height: 100%; display: grid; grid-template-rows: 20px 1fr 18px; align-items: end; gap: 4px; text-align: center; }
.stats-chart-count { overflow: hidden; color: var(--muted); font-size: .57rem; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.stats-chart-track { height: 100%; display: flex; align-items: end; justify-content: center; }
.stats-chart-track span { display: block; width: min(21px, 80%); min-height: 3px; background: var(--brand); border-radius: 5px 5px 2px 2px; }
.stats-chart-item small { color: var(--muted); font-size: .6rem; }
.stats-two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.stats-two-column .stats-panel { margin-bottom: 0; }
.stats-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.stats-list-row { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); }
.stats-list-row:first-child { padding-top: 0; border-top: 0; }
.stats-rank { display: grid; place-items: center; flex: none; width: 28px; height: 28px; color: var(--brand-dark); background: var(--danger-bg); border-radius: 50%; font-size: .64rem; font-weight: 850; }
.stats-list-copy { min-width: 0; flex: 1; }
.stats-list-copy strong, .stats-list-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats-list-copy strong { color: var(--ink); font-size: .8rem; }
.stats-list-copy small { margin-top: 2px; color: var(--muted); font-size: .66rem; }
.stats-list-row > b { flex: none; color: var(--ink); font-size: .78rem; }
.stats-panel-sources { margin-top: 20px; }
.stats-source-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.stats-source { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; padding: 11px 12px; background: var(--canvas); border-radius: 10px; }
.stats-source span { overflow: hidden; color: var(--ink-soft); font-size: .74rem; text-overflow: ellipsis; white-space: nowrap; }
.stats-source strong { flex: none; color: var(--brand-dark); font-size: .76rem; }
.stats-empty { padding: 18px; color: var(--muted); background: var(--canvas); border: 1px dashed var(--line-strong); border-radius: 10px; font-size: .78rem; }
.stats-note { margin: 17px 0 0; color: var(--muted); font-size: .72rem; }
.text-link { color: var(--ink); font-size: .88rem; font-weight: 760; text-decoration: none; }
.text-link span { color: var(--brand); font-size: 1.05rem; }
.event-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 23px; }
.event-card { min-width: 0; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.event-card-cover { position: relative; min-height: 176px; display: block; overflow: hidden; background: var(--violet); text-decoration: none; }
.event-card-cover img { width: 100%; height: 176px; object-fit: contain; transition: transform .3s ease; }
.event-card:hover .event-card-cover img { transform: scale(1.025); }
.cover-category { position: absolute; left: 24px; bottom: 17px; z-index: 2; max-width: 84%; color: rgba(255, 255, 255, .9); font-size: clamp(1.45rem, 2.8vw, 2.2rem); font-weight: 900; letter-spacing: -.08em; line-height: .9; text-transform: uppercase; }
.cover-shape { position: absolute; border-radius: 50%; }
.cover-shape-one { width: 160px; height: 160px; right: -35px; top: -48px; background: var(--accent); }
.cover-shape-two { width: 85px; height: 85px; right: 72px; bottom: -34px; background: var(--brand); }
.category-artes, .category-cultura { background: #6a50df; }
.category-artes .cover-shape-two, .category-cultura .cover-shape-two { background: #f77667; }
.category-esportes { background: #187b77; }
.category-esportes .cover-shape-one { background: #bdf17b; }
.category-educacao, .category-tecnologia { background: #2969c8; }
.category-educacao .cover-shape-one, .category-tecnologia .cover-shape-one { background: #87d9ee; }
.category-gastronomia { background: #bd483a; }
.category-gastronomia .cover-shape-one { background: #f7c94b; }
.category-infantil { background: #ee7b34; }
.category-infantil .cover-shape-one { background: #fff184; }
.category-negocios { background: #2e405f; }
.category-religiao { background: #855376; }
.category-saude { background: #297d60; }
.category-turismo { background: #156e91; }
.category-outros, .category-evento { background: #5d5461; }
.date-tile { position: absolute; z-index: 5; top: 12px; left: 12px; width: 51px; height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--ink); background: rgba(255, 253, 249, .95); border-radius: 9px; box-shadow: 0 4px 14px rgba(0, 0, 0, .16); line-height: 1; }
.date-tile strong { font-size: 1.45rem; letter-spacing: -.06em; }
.date-tile span { margin-top: 3px; color: var(--brand-dark); font-size: .62rem; font-weight: 900; letter-spacing: .12em; }
.event-ribbon { position: absolute; z-index: 6; top: 12px; right: 12px; display: inline-flex; align-items: center; min-height: 25px; padding: 5px 9px; border-radius: 999px; box-shadow: 0 4px 12px rgba(0, 0, 0, .14); font-size: .64rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.event-ribbon-today { color: var(--night); background: var(--accent); }
.event-ribbon-finished { color: #fff; background: var(--night); }
.event-card-body { padding: 17px 18px 18px; }
.event-card-labels { min-height: 21px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.access-label { display: inline-flex; align-items: center; padding: 3px 8px; color: var(--ink-soft); background: var(--canvas); border-radius: 999px; font-size: .68rem; font-weight: 750; }
.access-gratuito { color: #20563b; background: #dff3df; }
.event-card h3 { min-height: 2.45em; margin: 9px 0 13px; font-size: 1.18rem; line-height: 1.2; }
.event-card h3 a { text-decoration: none; }
.event-card h3 a:hover { color: var(--brand-dark); }
.event-meta { display: flex; align-items: flex-start; gap: 8px; margin: 7px 0; color: var(--ink-soft); font-size: .8rem; line-height: 1.35; }
.event-meta svg { width: 16px; height: 16px; flex: none; margin-top: 1px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.event-meta strong { color: var(--ink); }
.event-summary { display: -webkit-box; overflow: hidden; margin: 12px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.45; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.empty-state { min-height: 170px; display: flex; align-items: center; gap: 22px; padding: 28px 34px; background: var(--paper); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.empty-state h3 { margin: 0 0 5px; }
.empty-state p { max-width: 580px; margin: 0; color: var(--muted); font-size: .9rem; }
.empty-state .button { margin-left: auto; flex: none; }
.empty-illustration { flex: none; width: 78px; height: 78px; display: grid; place-items: center; color: var(--night); background: var(--sun); border-radius: 50% 50% 45% 55%; font-size: 2rem; transform: rotate(-5deg); }
.empty-illustration span { transform: rotate(5deg); }
.subscription-banner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px; margin-top: 46px; padding: 26px 30px; color: #fff; background: var(--night); border-radius: var(--radius-lg); box-shadow: 0 7px 0 rgba(33, 23, 43, .14); }
.subscription-copy h2 { margin: 3px 0 5px; color: #fff; font-size: clamp(1.45rem, 2.7vw, 2rem); }
.subscription-copy p:last-child { max-width: 560px; margin: 0; color: #dcd2e4; font-size: .84rem; }
.subscription-form { display: flex; align-items: center; gap: 8px; min-width: min(100%, 405px); padding: 5px; background: #fff; border-radius: 999px; }
.subscription-form input { min-width: 0; flex: 1; padding: 9px 11px; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: .84rem; }
.subscription-form input::placeholder { color: #8b838e; }
.subscription-form .button { flex: none; min-height: 39px; padding-inline: 15px; font-size: .8rem; }
.subscription-banner + .publisher-banner { margin-top: 32px; }
.publisher-banner { position: relative; min-height: 195px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px; margin-top: 70px; padding: 34px 42px; overflow: hidden; color: #fff; background: var(--brand); border-radius: var(--radius-lg); }
.publisher-banner::after { content: ""; position: absolute; width: 230px; height: 230px; right: 160px; top: -135px; border: 26px solid rgba(255, 255, 255, .13); border-radius: 50%; }
.publisher-banner h2 { margin: 3px 0 4px; font-size: clamp(1.5rem, 3vw, 2.25rem); }
.publisher-banner p { margin: 0; color: #ffe0dc; }
.publisher-banner .overline { color: #fff1a9; }
.publisher-banner .button { position: relative; z-index: 2; }
.publisher-icon { width: 82px; height: 82px; display: grid; place-items: center; color: var(--night); background: var(--accent); border-radius: 50%; font-size: 3rem; font-weight: 300; transform: rotate(-6deg); }

/* Explore */
.explore-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding: 22px 0 27px; }
.explore-header h1 { margin-bottom: 8px; font-size: clamp(2.15rem, 4vw, 3.25rem); }
.explore-header p:last-child { margin: 0; color: var(--muted); }
.filter-panel { display: grid; grid-template-columns: 1.65fr 1fr .9fr .9fr auto; align-items: end; gap: 0; padding: 13px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); }
.filter-panel label { display: block; margin: 0 0 5px; color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.filter-search, .filter-field { min-width: 0; padding: 0 13px; border-right: 1px solid var(--line); }
.filter-search { padding-left: 4px; }
.input-with-icon { display: flex; align-items: center; gap: 8px; }
.input-with-icon svg { width: 19px; height: 19px; flex: none; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; }
.filter-panel input, .filter-panel select { width: 100%; min-width: 0; height: 37px; padding: 5px 4px; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: .88rem; }
.filter-panel select { cursor: pointer; }
.filter-submit { margin-left: 12px; min-height: 45px; padding-inline: 22px; }
.category-chips { display: flex; gap: 7px; margin: 16px 0 0; padding: 2px 0 7px; overflow-x: auto; scrollbar-width: thin; }
.category-chips a { flex: none; padding: 7px 12px; color: var(--ink-soft); background: transparent; border: 1px solid var(--line); border-radius: 999px; font-size: .76rem; font-weight: 700; text-decoration: none; }
.category-chips a:hover, .category-chips a.is-selected { color: #fff; background: var(--night); border-color: var(--night); }
.applied-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; color: var(--muted); font-size: .75rem; }
.applied-filters > span:first-child { font-weight: 760; }
.filter-chip { padding: 5px 9px; color: var(--ink-soft); background: #ebe4da; border-radius: 999px; }
.applied-filters a { margin-left: 3px; color: var(--brand-dark); font-weight: 720; }
.results-section { padding-top: 40px; }
.results-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin: 0 0 18px; }
.results-heading h2 { margin: 0; font-size: 1.35rem; }
.results-heading span { color: var(--muted); font-size: .78rem; }
.empty-state-results { margin-top: 10px; }

/* Public event detail */
.breadcrumb { display: flex; align-items: center; gap: 8px; margin: 1px 0 19px; overflow: hidden; color: var(--muted); font-size: .76rem; white-space: nowrap; }
.breadcrumb a { text-decoration: none; }
.breadcrumb > span:last-child { overflow: hidden; color: var(--ink-soft); text-overflow: ellipsis; }
.event-detail { overflow: visible; }
.event-detail-hero { display: grid; grid-template-columns: 1.12fr .88fr; min-height: 430px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.event-detail-cover { position: relative; min-height: 430px; overflow: hidden; background: var(--violet); }
.event-detail-cover img { width: 100%; height: 100%; object-fit: contain; }
.detail-shape { position: absolute; border-radius: 50%; }
.detail-shape-one { width: 390px; height: 390px; right: -90px; top: -90px; background: var(--accent); }
.detail-shape-two { width: 225px; height: 225px; left: -45px; bottom: -80px; background: var(--brand); }
.detail-category-word { position: absolute; z-index: 2; left: 40px; bottom: 45px; max-width: 90%; color: rgba(255, 255, 255, .92); font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 900; letter-spacing: -.095em; line-height: .8; text-transform: uppercase; }
.event-detail-intro { display: flex; flex-direction: column; justify-content: center; padding: 40px 44px; }
.event-labels { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.event-detail-intro h1 { margin-bottom: 14px; font-size: clamp(2.15rem, 4.3vw, 3.6rem); }
.event-deck { margin: 0 0 28px; color: var(--ink-soft); font-size: 1rem; line-height: 1.55; }
.event-key-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding-top: 21px; border-top: 1px solid var(--line); }
.event-key-facts > div { display: flex; gap: 10px; min-width: 0; }
.fact-icon { flex: none; width: 34px; height: 34px; display: grid; place-items: center; color: var(--brand); background: var(--danger-bg); border-radius: 10px; }
.fact-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.event-key-facts p { display: flex; flex-direction: column; min-width: 0; margin: 0; line-height: 1.25; }
.event-key-facts p > span { margin-bottom: 3px; color: var(--muted); font-size: .65rem; font-weight: 760; letter-spacing: .05em; text-transform: uppercase; }
.event-key-facts strong { font-size: .83rem; }
.event-key-facts small { margin-top: 3px; color: var(--muted); font-size: .74rem; }
.event-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 55px; margin-top: 44px; }
.event-detail-content { min-width: 0; padding-left: 22px; }
.content-section { padding: 0 0 40px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.content-section h2 { margin: 0 0 17px; font-size: 1.72rem; }
.prose { color: var(--ink-soft); font-size: .98rem; line-height: 1.75; white-space: normal; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.tag-list span { padding: 6px 10px; color: var(--ink-soft); background: #ebe4da; border-radius: 999px; font-size: .74rem; font-weight: 680; }
.location-address { color: var(--muted); overflow-wrap: anywhere; }
.location-map-wrap { margin-top: 20px; }
.location-map { overflow: hidden; aspect-ratio: 16 / 8; min-height: 220px; background: var(--canvas); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); }
.location-map iframe { display: block; width: 100%; height: 100%; min-height: 220px; border: 0; }
.location-map-link { margin-top: 12px; }
.location-map-link svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.accessibility-note { margin-top: 20px; padding: 15px 17px; background: var(--warning-bg); border-left: 3px solid var(--sun); border-radius: 0 10px 10px 0; }
.accessibility-note p { margin: 4px 0 0; color: var(--ink-soft); font-size: .87rem; }
.organizer-section h2 { margin: 1px 0 4px; font-size: 1.13rem; }
.organizer-section a { color: var(--brand-dark); font-size: .8rem; font-weight: 700; }
.event-action-card { position: sticky; top: 98px; align-self: start; padding: 23px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.action-date { width: 62px; height: 68px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; background: var(--night); border-radius: 11px; line-height: 1; }
.action-date strong { font-size: 1.8rem; letter-spacing: -.06em; }
.action-date span { margin-top: 4px; color: var(--accent); font-size: .66rem; font-weight: 850; letter-spacing: .12em; }
.action-heading { display: flex; flex-direction: column; margin: 18px 0; }
.action-heading > span { color: var(--muted); font-size: .68rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.action-heading strong { margin-top: 3px; font-size: 1.18rem; }
.action-heading small { margin-top: 3px; color: var(--muted); }
.event-action-card > .button-block + .button-block { margin-top: 10px; }
.action-link { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 2px; color: var(--ink-soft); background: transparent; border: 0; border-bottom: 1px solid var(--line); font-size: .82rem; font-weight: 690; text-decoration: none; text-align: left; cursor: pointer; }
.action-link:hover { color: var(--brand-dark); text-decoration: none; }
.action-link svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--brand); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.verification-note { margin: 18px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.4; }
.verification-note > span { display: inline-grid; place-items: center; width: 17px; height: 17px; margin-right: 4px; color: #fff; background: #4c8d5b; border-radius: 50%; font-size: .65rem; }
.verification-note small { margin-left: 25px; }
.back-to-results { margin-top: 25px; padding-top: 23px; border-top: 1px solid var(--line); font-size: .82rem; font-weight: 700; }
.event-gallery { padding-bottom: 36px; }
.public-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.public-gallery-item { display: block; overflow: hidden; padding: 0; background: var(--canvas); border: 1px solid var(--line); border-radius: 13px; cursor: zoom-in; }
.public-gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .22s ease; }
.public-gallery-item:hover img { transform: scale(1.035); }
.gallery-lightbox[hidden] { display: none; }
.gallery-lightbox { position: fixed; z-index: 90; inset: 0; display: grid; place-items: center; padding: 34px; background: rgba(25, 18, 32, .88); }
.gallery-lightbox img { max-width: min(1100px, 100%); max-height: calc(100vh - 68px); object-fit: contain; border-radius: 12px; box-shadow: 0 20px 70px rgba(0, 0, 0, .35); }
.gallery-lightbox-close { position: absolute; top: 18px; right: 22px; display: grid; place-items: center; width: 42px; height: 42px; color: #fff; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.gallery-lightbox-close:hover { background: rgba(255, 255, 255, .24); }
body.gallery-lightbox-open { overflow: hidden; }

/* Forms and internal screens */
.tag { display: inline-flex; align-items: center; width: fit-content; padding: 4px 9px; margin: 0 0 8px; color: var(--brand-dark); background: var(--danger-bg); border-radius: 999px; font-size: .69rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.form-card, .detail-main, .detail-side { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.form-card { padding: clamp(22px, 4vw, 36px); }
.form-card > h1:first-of-type { font-size: clamp(1.8rem, 3vw, 2.55rem); }
.form-card h2 { margin: 32px 0 17px; padding-bottom: 10px; font-size: 1.25rem; border-bottom: 1px solid var(--line); }
.form-card h2:first-child { margin-top: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label, .field .label { color: var(--ink); font-size: .8rem; font-weight: 760; }
.field small { color: var(--muted); font-size: .75rem; line-height: 1.35; }
.field input, .field select, .field textarea { width: 100%; min-height: 45px; padding: 10px 12px; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); transition: border .15s ease, box-shadow .15s ease; }
.field textarea { min-height: 125px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #95899b; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(114, 89, 232, .17); }
.field input.is-invalid { border-color: var(--brand-dark); }
.field input:disabled { color: var(--muted); background: var(--canvas); }
.field input[type="file"] { padding: 8px; background: var(--canvas); }
.check { display: flex; align-items: flex-start; gap: 9px; color: var(--ink-soft); font-size: .84rem; line-height: 1.45; cursor: pointer; }
.check input { flex: none; width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--brand); }
.notice { margin: 18px 0; padding: 14px 16px; color: #5f4a14; background: var(--warning-bg); border: 1px solid #ead58b; border-radius: 11px; font-size: .85rem; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr); gap: 22px; }
.detail-main, .detail-side { padding: 26px; }
.detail-main h1 { font-size: clamp(1.85rem, 3vw, 2.6rem); }
.detail-main h2, .detail-side h2 { margin-top: 26px; font-size: 1.2rem; }
.detail-side h2:first-child { margin-top: 0; }
.detail-main dl { display: grid; grid-template-columns: 110px 1fr; gap: 9px 14px; }
.detail-main dt { color: var(--muted); font-size: .78rem; font-weight: 750; }
.detail-main dd { margin: 0; overflow-wrap: anywhere; }
.status { display: inline-flex; align-items: center; padding: 4px 8px; color: var(--ink-soft); background: #ece7e1; border-radius: 999px; font-size: .68rem; font-weight: 780; }
.status-published, .status-approved, .status-active { color: #24603c; background: #e0f2e3; }
.status-pending { color: #75580d; background: #fff1bd; }
.status-rejected, .status-cancelled, .status-suspended { color: #8a302d; background: #fbe0dc; }
.status-draft, .status-archived { color: #55505a; background: #ebe7eb; }
.status-changes_requested { color: #713e86; background: #f0e1f5; }
.table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { color: var(--muted); background: #faf6f0; font-size: .68rem; font-weight: 820; letter-spacing: .06em; text-transform: uppercase; }
td { font-size: .84rem; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fffaf3; }
.empty { padding: 36px; color: var(--muted); background: var(--paper); border: 1px dashed var(--line-strong); border-radius: var(--radius); text-align: center; }

/* Admin integration token */
.integration-panel { display: grid; gap: 16px; margin: 0 0 28px; padding: 23px 25px; color: #f8f3fb; background: var(--night); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius); box-shadow: var(--shadow); }
.integration-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.integration-panel h2 { margin: 0; color: #fff; font-size: 1.28rem; }
.integration-panel p { max-width: 760px; margin: 0; color: #d9cfdf; font-size: .82rem; line-height: 1.5; }
.integration-panel strong { color: #fff; }
.integration-kicker { margin-bottom: 6px !important; color: var(--accent) !important; font-size: .66rem !important; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.integration-status { display: inline-flex; align-items: center; padding: 5px 9px; color: #2a1837; background: var(--accent); border-radius: 999px; font-size: .66rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.integration-token-notice { display: grid; gap: 5px; padding: 14px; color: #342543; background: #fff8e3; border: 1px solid #ecd990; border-radius: 11px; }
.integration-token-notice strong { color: #342543; font-size: .84rem; }
.integration-token-notice > span { color: #66532a; font-size: .75rem; }
.integration-token-row { display: flex; align-items: center; gap: 9px; margin-top: 5px; }
.integration-token-row code { min-width: 0; flex: 1; overflow-x: auto; padding: 10px 11px; color: var(--night); background: #fff; border: 1px solid #e7dba9; border-radius: 8px; font-size: .74rem; line-height: 1.4; user-select: all; }
.integration-token-row .button { flex: none; }
.integration-panel .integration-token-notice .button-secondary { color: var(--night); border-color: #b9a76d; }
.integration-panel .integration-token-notice .button-secondary:hover { color: var(--night); background: #fff; border-color: var(--night); }
.integration-token-meta { display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 13px 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px; }
.integration-token-meta > div { display: grid; gap: 4px; min-width: 150px; color: #f6effa; font-size: .78rem; }
.integration-meta-label { color: #b8a9c1; font-size: .65rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.integration-token-meta code { color: #fff; font-size: .82rem; }
.integration-empty { color: #b8a9c1 !important; font-style: italic; }
.integration-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 13px 18px; padding-top: 2px; }
.integration-actions form { margin: 0; }
.integration-panel .button-secondary { color: #fff; border-color: rgba(255, 255, 255, .3); }
.integration-panel .button-secondary:hover { color: var(--night); background: #fff; border-color: #fff; }
.integration-help { color: #b8a9c1 !important; font-size: .7rem !important; }
.integration-help code { color: #f4d67c; }

/* Event editor */
.editor-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding: 10px 0 28px; }
.editor-header h1 { margin: 0 0 9px; font-size: clamp(2rem, 3.5vw, 2.9rem); }
.editor-header > div > p:last-child { max-width: 640px; margin: 0; color: var(--muted); }
.editor-back { display: inline-block; margin-bottom: 20px; color: var(--ink-soft); font-size: .78rem; font-weight: 700; text-decoration: none; }
.editor-city { display: inline-flex; align-items: center; gap: 7px; flex: none; margin-bottom: 5px; padding: 8px 12px; color: var(--ink-soft); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; font-size: .78rem; font-weight: 700; }
.editor-city svg { width: 16px; height: 16px; fill: none; stroke: var(--brand); stroke-width: 1.8; }
.event-editor-layout { min-width: 0; max-width: 100%; display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: 28px; align-items: start; }
.editor-sidebar { position: sticky; top: 98px; min-width: 0; max-width: 100%; }
.editor-sidebar > p { margin: 0 0 10px; color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.editor-sidebar nav { overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); }
.editor-sidebar nav a { display: flex; align-items: center; gap: 11px; padding: 14px; text-decoration: none; border-bottom: 1px solid var(--line); }
.editor-sidebar nav a:last-child { border: 0; }
.editor-sidebar nav a:hover { background: #fff7ee; }
.editor-sidebar nav a > span { display: grid; place-items: center; flex: none; width: 29px; height: 29px; color: var(--brand-dark); background: var(--danger-bg); border-radius: 50%; font-size: .67rem; font-weight: 850; }
.editor-sidebar nav a strong, .editor-sidebar nav a small { display: block; }
.editor-sidebar nav a strong { color: var(--ink); font-size: .78rem; }
.editor-sidebar nav a small { margin-top: 2px; color: var(--muted); font-size: .66rem; }
.editor-tip { display: flex; gap: 10px; margin-top: 14px; padding: 14px; color: #554f22; background: var(--warning-bg); border-radius: 12px; font-size: .72rem; }
.editor-tip > span { color: #b68b0d; font-size: 1.15rem; }
.editor-tip p { margin: 0; }
.event-editor { min-width: 0; }
.editor-section { margin-bottom: 20px; padding: clamp(22px, 4vw, 36px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); scroll-margin-top: 95px; }
.editor-section-heading { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 27px; padding-bottom: 19px; border-bottom: 1px solid var(--line); }
.editor-section-heading > span { display: grid; place-items: center; flex: none; width: 37px; height: 37px; color: #fff; background: var(--night); border-radius: 50%; font-size: .72rem; font-weight: 850; }
.editor-section-heading h2 { margin: 0 0 4px; padding: 0; font-size: 1.35rem; border: 0; }
.editor-section-heading p { margin: 0; color: var(--muted); font-size: .79rem; }
.field-checkbox { justify-content: center; padding-top: 23px; }
.checkbox-fieldset { padding: 0; border: 0; }
.checkbox-fieldset legend { margin-bottom: 10px; color: var(--ink); font-size: .8rem; font-weight: 760; }
.checkbox-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.checkbox-grid .check { min-height: 44px; align-items: center; padding: 9px 11px; background: var(--canvas); border: 1px solid var(--line); border-radius: 9px; }
.checkbox-grid .check input { margin-top: 0; }
.current-cover { position: relative; width: 200px; overflow: hidden; border-radius: 11px; }
.current-cover img { width: 200px; height: 112px; object-fit: contain; }
.current-cover span { position: absolute; left: 7px; bottom: 7px; padding: 3px 7px; color: #fff; background: rgba(33, 23, 43, .8); border-radius: 999px; font-size: .65rem; }
.gallery-field { min-width: 0; }
.gallery-dropzone { position: relative; display: grid; place-items: center; gap: 3px; min-height: 150px; padding: 21px; color: var(--ink-soft); background: #fbf8f2; border: 1.5px dashed var(--line-strong); border-radius: 13px; text-align: center; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.gallery-dropzone:hover, .gallery-dropzone:focus-visible, .gallery-dropzone.is-dragging { background: #fff6e9; border-color: var(--brand); outline: 0; }
.gallery-dropzone.is-dragging { transform: translateY(-1px); }
.gallery-dropzone strong { color: var(--ink); font-size: .86rem; }
.gallery-dropzone span { color: var(--muted); font-size: .76rem; }
.gallery-dropzone small { margin-top: 5px; color: var(--muted); font-size: .68rem; }
.gallery-dropzone-icon { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 3px; color: #fff; background: var(--brand); border-radius: 50%; font-size: 1.35rem; font-weight: 350; line-height: 1; }
.gallery-input { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; opacity: 0; pointer-events: none; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; margin-top: 13px; }
.gallery-grid:empty { display: none; }
.gallery-item { min-width: 0; overflow: hidden; margin: 0; background: var(--canvas); border: 1px solid var(--line); border-radius: 12px; cursor: grab; }
.gallery-item:active, .gallery-item.is-dragging { cursor: grabbing; }
.gallery-item.is-dragging { opacity: .58; border-color: var(--brand); }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--canvas-deep); }
.gallery-item figcaption { display: flex; align-items: center; gap: 4px; min-width: 0; padding: 7px; color: var(--muted); font-size: .66rem; }
.gallery-item figcaption > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gallery-item-order { display: grid; place-items: center; flex: none; width: 21px; height: 21px; color: var(--brand-dark); background: var(--danger-bg); border-radius: 50%; font-size: .6rem; font-weight: 800; }
.gallery-item button { display: grid; place-items: center; flex: none; width: 22px; height: 22px; padding: 0; color: var(--ink-soft); background: transparent; border: 0; border-radius: 5px; font-size: .8rem; cursor: pointer; }
.gallery-item button:hover { background: #e9e1d7; color: var(--ink); }
.gallery-item button[data-gallery-remove] { margin-left: auto; color: var(--danger-ink); font-size: 1.05rem; }
.gallery-upload-status { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 9px 11px; color: var(--success-ink); background: var(--success-bg); border-radius: 9px; font-size: .75rem; }
.gallery-upload-status::before { content: ""; width: 7px; height: 7px; flex: none; background: currentColor; border-radius: 50%; }
.event-editor.is-uploading .gallery-dropzone { opacity: .58; pointer-events: none; }
.event-editor.is-uploading .gallery-item { pointer-events: none; }
.button.is-loading { position: relative; opacity: .72; }
.button.is-loading::after { content: ""; display: inline-block; width: 12px; height: 12px; margin-left: 8px; vertical-align: -2px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: gallery-spin .7s linear infinite; }
@keyframes gallery-spin { to { transform: rotate(360deg); } }
.publication-check { display: flex; align-items: flex-start; gap: 12px; margin: 9px 0 18px; padding: 15px; color: #3c5231; background: #edf7e8; border-radius: 11px; }
.publication-check > span { display: grid; place-items: center; flex: none; width: 23px; height: 23px; color: #fff; background: #5b935b; border-radius: 50%; font-size: .75rem; }
.publication-check p { margin: 3px 0 0; color: #64725e; font-size: .78rem; }
.responsibility-check { padding: 14px; background: var(--canvas); border-radius: 10px; }
.editor-actions { position: sticky; z-index: 5; bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 16px; background: rgba(255, 253, 249, .95); border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 10px 35px rgba(36, 28, 42, .18); backdrop-filter: blur(12px); }
.editor-actions > div { display: flex; gap: 8px; }
.editor-actions > span { color: var(--muted); font-size: .72rem; }

/* Footer */
.site-footer { color: #ddd3e3; background: var(--night); }
.footer-grid { display: grid; grid-template-columns: 1.5fr .75fr .75fr 1fr; gap: 44px; padding-block: 50px 38px; }
.brand-on-dark { color: #fff; }
.footer-brand > p { margin: 16px 0 0; color: #a99dad; font-size: .85rem; }
.footer-grid h2 { margin: 0 0 13px; color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.footer-grid > div:not(.footer-brand) a { display: block; width: fit-content; margin: 7px 0; color: #cfc4d5; font-size: .82rem; text-decoration: none; }
.footer-grid > div:not(.footer-brand) a:hover { color: var(--accent); }
.footer-note span { display: inline-flex; padding: 5px 9px; color: var(--accent); background: rgba(223, 243, 108, .08); border: 1px solid rgba(223, 243, 108, .22); border-radius: 999px; font-size: .67rem; font-weight: 760; text-transform: uppercase; }
.footer-note p { color: #a99dad; font-size: .78rem; }
.footer-grid > div:not(.footer-brand) a.footer-contact-button { display: inline-flex; align-items: center; width: fit-content; margin: 14px 0 0; padding: 9px 13px; color: var(--night); background: var(--accent); border: 1px solid var(--accent); border-radius: 2px; font-size: .74rem; font-weight: 800; text-decoration: none; }
.footer-grid > div:not(.footer-brand) a.footer-contact-button:hover { color: var(--night); background: #edff8f; border-color: #edff8f; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 16px; color: #857a8b; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .7rem; }

@media (max-width: 1020px) {
    .home-hero { grid-template-columns: 1.35fr .65fr; }
    .hero-content { padding-left: 32px; }
    .hero-city-stamp { right: 12px; top: 14px; }
    .filter-panel { grid-template-columns: 1.4fr 1fr 1fr; row-gap: 12px; }
    .filter-panel .filter-field:nth-of-type(3) { border-right: 0; }
    .filter-panel .filter-field:nth-of-type(4) { border-left: 0; }
    .filter-submit { margin-right: 12px; }
    .event-editor-layout { grid-template-columns: 205px minmax(0, 1fr); gap: 18px; }
    .checkbox-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
    .container { width: min(100% - 28px, 680px); }
    .desktop-nav { display: none; }
    .mobile-nav { display: block; }
    .page-content { padding-block: 22px 58px; }
    .home-hero { grid-template-columns: 1.42fr .58fr; min-height: 280px; }
    .hero-content { grid-column: 1; padding: 27px 18px 26px 28px; justify-content: center; }
    .hero-content h1 { font-size: clamp(2.05rem, 6vw, 2.45rem); }
    .hero-art { position: relative; left: auto; right: auto; bottom: auto; width: auto; height: auto; grid-column: 2; grid-row: 1; }
    .hero-art::after { width: 66px; height: 66px; top: 27px; right: 11px; border-width: 6px; }
    .hero-cityscape { left: 0; width: 100%; }
    .hero-city-stamp { right: 8px; top: 13px; padding: 8px 9px 7px; }
    .hero-city-stamp strong { font-size: .64rem; }
    .category-strip { grid-template-columns: repeat(5, minmax(125px, 1fr)); overflow-x: auto; }
    .category-strip a { border-bottom: 0; }
    .event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .subscription-banner { grid-template-columns: 1fr; gap: 17px; }
    .subscription-form { width: min(100%, 470px); }
    .publisher-banner { grid-template-columns: auto 1fr; padding: 28px; }
    .publisher-banner .button { grid-column: 2; width: fit-content; }
    .explore-header { align-items: flex-start; padding-top: 12px; }
    .filter-panel { grid-template-columns: 1fr 1fr; gap: 11px; }
    .filter-search, .filter-field { padding: 0; border-right: 0; }
    .filter-search { grid-column: 1 / -1; }
    .filter-panel input, .filter-panel select, .input-with-icon { min-height: 45px; padding-inline: 10px; background: #faf7f2; border: 1px solid var(--line); border-radius: 9px; }
    .input-with-icon input { min-height: auto; padding: 0; background: transparent; border: 0; }
    .filter-submit { width: 100%; margin: 0; }
    .integration-token-row { align-items: stretch; flex-direction: column; }
    .integration-token-row .button { width: 100%; }
    .integration-actions { align-items: stretch; flex-direction: column; }
    .integration-actions form, .integration-actions form .button { width: 100%; }
    .event-detail-hero { grid-template-columns: 1fr; }
    .event-detail-cover { min-height: 330px; }
    .event-detail-intro { padding: 32px; }
    .event-detail-layout { grid-template-columns: 1fr; gap: 15px; }
    .event-detail-content { padding-left: 0; }
    .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .event-action-card { position: static; grid-row: 1; }
    .action-date { float: left; margin-right: 15px; }
    .action-heading { min-height: 68px; justify-content: center; }
    .detail-layout { grid-template-columns: 1fr; }
    .event-editor-layout { grid-template-columns: 1fr; }
    .editor-sidebar { position: static; overflow: hidden; }
    .editor-sidebar > p, .editor-tip { display: none; }
    .editor-sidebar nav { width: 100%; max-width: 100%; display: flex; overflow-x: auto; }
    .editor-sidebar nav a { min-width: 155px; border-right: 1px solid var(--line); border-bottom: 0; }
    .form-grid { grid-template-columns: 1fr; }
    .form-grid .full { grid-column: auto; }
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 30px; }
    .footer-note { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
    body { font-size: 15px; }
    .container { width: calc(100% - 24px); }
    .header-inner { min-height: 66px; }
    .brand-mark { width: 38px; height: 38px; }
    .brand-mark svg { width: 30px; height: 30px; }
    .brand-copy { font-size: .9rem; }
    .brand-copy strong { font-size: 1rem; }
    .home-hero { grid-template-columns: 1fr; min-height: 0; border-radius: 18px; }
    .hero-content { padding: 25px 18px 24px; }
    .hero-content h1 { margin-top: 1px; font-size: 2.1rem; }
    .hero-lead { margin-bottom: 12px; font-size: .86rem; }
    .hero-search { grid-template-columns: 18px minmax(0, 1fr) auto; min-height: 48px; padding: 4px 5px 4px 12px; border-radius: 999px; }
    .hero-search button { grid-column: auto; width: auto; min-height: 38px; margin: 0; padding-inline: 13px; }
    .hero-actions { display: block; }
    .hero-actions span { display: none; }
    .hero-art { display: none; }
    .category-strip { margin-top: 25px; }
    .category-strip a { min-height: 48px; padding: 7px 9px; }
    .events-section { padding-top: 20px; }
    .events-section + .events-section { padding-top: 34px; }
    .section-head, .section-head-editorial { align-items: flex-start; }
    .section-head-editorial .text-link { margin-top: 5px; white-space: nowrap; }
    .event-grid { grid-template-columns: 1fr; gap: 17px; }
    .event-card { display: grid; grid-template-columns: 126px 1fr; }
    .event-card-cover, .event-card-cover img { min-height: 100%; height: 100%; }
    .cover-category { left: 12px; bottom: 13px; font-size: 1.2rem; writing-mode: vertical-rl; transform: rotate(180deg); }
    .cover-shape-one { width: 110px; height: 110px; }
    .date-tile { width: 45px; height: 52px; top: 8px; left: 8px; }
    .date-tile strong { font-size: 1.25rem; }
    .event-card-body { min-width: 0; padding: 14px; }
    .event-card-labels { display: block; }
    .event-card-labels .access-label { display: none; }
    .event-card h3 { min-height: 0; margin: 7px 0 10px; font-size: 1.02rem; }
    .event-summary { display: none; }
    .event-meta { font-size: .73rem; }
    .empty-state { flex-direction: column; align-items: flex-start; padding: 25px; }
    .empty-state .button { margin-left: 0; }
    .publisher-banner { grid-template-columns: 1fr; gap: 15px; padding: 28px 24px; }
    .subscription-banner { margin-top: 36px; padding: 23px 19px; border-radius: 18px; }
    .subscription-form { width: 100%; min-width: 0; }
    .subscription-form .button { padding-inline: 12px; }
    .publisher-icon { width: 62px; height: 62px; }
    .publisher-banner .button { grid-column: 1; }
    .explore-header { display: block; }
    .explore-header .button { margin-top: 18px; }
    .filter-panel { grid-template-columns: 1fr; padding: 12px; }
    .filter-search { grid-column: auto; }
    .filter-submit { margin-top: 2px; }
    .results-heading { align-items: flex-end; }
    .event-detail-cover { min-height: 250px; }
    .detail-category-word { left: 22px; bottom: 28px; font-size: 3rem; }
    .event-detail-intro { padding: 25px 21px; }
    .event-detail-intro h1 { font-size: 2.1rem; }
    .event-key-facts { grid-template-columns: 1fr; }
    .event-detail-layout { margin-top: 28px; }
    .content-section { margin-bottom: 29px; padding-bottom: 30px; }
    .content-section h2 { font-size: 1.45rem; }
    .public-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .gallery-item figcaption { padding: 6px; }
    .gallery-item figcaption > span:nth-child(2) { display: none; }
    .form-card, .detail-main, .detail-side { padding: 20px; }
    .editor-header { display: block; }
    .editor-city { margin-top: 15px; }
    .editor-section { padding: 20px; }
    .editor-section-heading { gap: 10px; }
    .checkbox-grid { grid-template-columns: 1fr; }
    .editor-actions { align-items: stretch; flex-direction: row; bottom: 6px; padding: 9px; }
    .editor-actions > div { width: 100%; display: flex; }
    .editor-actions .button { min-width: 0; flex: 1; padding-inline: 10px; }
    .editor-actions > span { display: none; }
    .form-actions .button { width: 100%; }
    .section-head { display: block; }
    .section-head > .button { margin-top: 15px; }
    .footer-grid { grid-template-columns: 1fr 1fr; padding-block: 38px 28px; }
    .footer-brand, .footer-note { grid-column: 1 / -1; }
    .footer-bottom { align-items: flex-start; flex-direction: column; gap: 4px; }
    th, td { padding: 12px; }
}

@media (max-width: 820px) {
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats-two-column { grid-template-columns: 1fr; gap: 0; }
    .stats-two-column .stats-panel { margin-bottom: 20px; }
    .stats-source-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .stats-header { display: block; }
    .stats-filter { width: 100%; margin-top: 17px; }
    .stats-filter label { margin-right: auto; }
    .stats-filter select { flex: 1; }
    .stats-card { padding: 15px; }
    .stats-card strong { font-size: 1.75rem; }
    .stats-card small { min-height: 30px; }
    .stats-panel { padding: 18px; }
    .stats-panel-head { display: block; }
    .stats-period { display: inline-flex; margin-top: 9px; }
    .stats-source-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
