:root {
    --bg: #f4efe6;
    --bg-deep: #ece3d4;
    --paper: #fffdf8;
    --paper-strong: #fffaf1;
    --ink: #211814;
    --muted: #6d6257;
    --line: #d8cab7;
    --line-strong: #c5b29c;
    --accent: #7b2f2f;
    --accent-strong: #5f2323;
    --accent-soft: #f3e3df;
    --accent-gold: #b98a3d;
    --soft: #efe5d8;
    --shadow-soft: 0 14px 38px rgba(57, 35, 24, 0.07);
    --shadow-card: 0 18px 44px rgba(44, 28, 22, 0.08);
    --container: 1100px;
    --radius-lg: 22px;
    --radius-md: 18px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: 'Plus Jakarta Sans', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(185, 138, 61, 0.1), transparent 28%),
        radial-gradient(circle at top right, rgba(123, 47, 47, 0.08), transparent 24%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(123, 47, 47, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(123, 47, 47, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
}

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

.site-shell {
    width: min(calc(100% - 28px), var(--container));
    margin: 0 auto;
    padding: 22px 0 56px;
    position: relative;
    z-index: 1;
}

.site-shell--agenda,
.site-shell--detail,
.site-shell--form,
.site-shell--narrow,
.site-shell--legal {
    max-width: var(--container);
}

.site-shell--narrow {
    max-width: 760px;
}

.site-shell--legal {
    max-width: 860px;
}

.topbar,
.page-topbar,
.hero-actions,
.topbar-actions,
.site-footer,
.site-footer-links,
.site-footer-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.topbar,
.page-topbar,
.site-footer {
    justify-content: space-between;
}

.site-header,
.page-topbar,
.hero,
.featured-list,
.agenda-panel,
.detail-card,
.event-form,
.message-card,
.empty-state,
.ad {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.site-header,
.page-topbar {
    padding: 18px 20px;
}

.brand,
h1,
h2,
h3,
.month-title {
    font-family: 'Fraunces', serif;
}

.brand {
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -0.03em;
}

.topbar-link,
.text-link {
    color: var(--accent);
    font-weight: 800;
    position: relative;
}

.topbar-link.is-active {
    color: var(--ink);
}

.site-nav {
    width: 100%;
}

.topbar-actions--nav {
    align-items: center;
}

.button--nav {
    margin-left: 6px;
}

.topbar-link::after,
.text-link::after,
.detail-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.topbar-link:hover::after,
.text-link:hover::after,
.detail-link:hover::after {
    transform: scaleX(1);
}

.hero {
    margin-top: 18px;
    padding: 30px 26px 24px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(140deg, rgba(255, 250, 241, 0.98) 0%, rgba(255, 253, 248, 0.94) 58%, rgba(243, 227, 223, 0.82) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    right: -70px;
    top: -120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(185, 138, 61, 0.18) 0%, rgba(185, 138, 61, 0) 72%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    inset: auto auto 0 0;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(123, 47, 47, 0.14) 0%, rgba(123, 47, 47, 0) 72%);
    transform: translate(-24%, 28%);
    pointer-events: none;
}

.hero--compact {
    padding-bottom: 18px;
}

.hero-content {
    max-width: 760px;
    position: relative;
    z-index: 1;
}

.eyebrow,
.section-kicker,
.featured-kicker {
    margin: 0 0 8px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.75rem;
    font-weight: 800;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.05;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    max-width: 14ch;
    letter-spacing: -0.04em;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.55rem);
}

.hero-text,
.section-copy,
.featured-item p,
.detail-summary,
.detail-copy,
.detail-block p,
.form-intro p,
.message-card p,
.empty-state p,
.site-footer {
    color: var(--muted);
    line-height: 1.7;
}

.hero-text {
    margin: 16px 0 0;
    max-width: 62ch;
    font-size: 1.08rem;
}

.hero-actions {
    margin-top: 22px;
}

.hero-actions--compact {
    margin-top: 14px;
}

.hero-trust {
    margin: 14px 0 0;
    color: #52627c;
    font-size: 0.94rem;
    line-height: 1.55;
}

.audience-card h2 {
    margin-bottom: 10px;
}

.audience-card p {
    margin: 0;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    font-weight: 800;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(44, 28, 22, 0.08);
}

.button-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 12px 26px rgba(123, 47, 47, 0.22);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--line-strong);
}

.button-large {
    width: 100%;
}

.button-loading {
    display: none;
}

.button.is-loading .button-label {
    display: none;
}

.button.is-loading .button-loading {
    display: inline;
}

.button[disabled] {
    cursor: wait;
    opacity: 0.85;
}

.main-content,
.detail-layout,
.form-layout {
    padding-top: 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    flex-wrap: wrap;
    margin: 34px 0 18px;
}

.section-header p {
    margin: 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.blog-grid--home {
    margin-bottom: 20px;
}

.blog-card,
.blog-article-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.blog-card {
    padding: 22px;
}

.blog-card-meta {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.blog-card h2,
.blog-card h3 {
    margin-bottom: 12px;
}

.blog-card p {
    margin: 0 0 16px;
    color: var(--muted);
    line-height: 1.7;
}

.blog-card-author,
.blog-byline,
.legal-note {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.55;
}

.blog-card-author,
.legal-note {
    font-size: 0.92rem;
}

.blog-byline {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 12px;
}

.blog-byline strong {
    color: var(--ink);
    font-size: 0.96rem;
}

.blog-article-card {
    padding: 28px 30px;
}

.blog-article-content {
    margin-top: 22px;
}

.blog-article-content h2 {
    margin: 28px 0 14px;
    font-size: 1.55rem;
}

.blog-article-content p,
.blog-article-content li {
    color: var(--muted);
    line-height: 1.82;
    font-size: 1.02rem;
}

.blog-article-content p {
    margin: 0 0 18px;
}

.article-event-list {
    margin: 0 0 22px;
    padding-left: 20px;
}

.article-event-list li {
    margin-bottom: 12px;
}

.article-event-list span {
    display: block;
    color: var(--muted);
    font-size: 0.95rem;
    margin-top: 4px;
}

.featured-list {
    display: grid;
    gap: 14px;
    padding: 18px 20px;
    background:
        linear-gradient(180deg, rgba(255, 253, 248, 0.98) 0%, rgba(252, 245, 236, 0.98) 100%);
}

.featured-item {
    padding: 16px 0 0;
    border-top: 1px solid rgba(185, 138, 61, 0.24);
}

.featured-item:first-child {
    padding-top: 0;
    border-top: 0;
}

.filter-bar {
    padding: 20px;
    border-radius: var(--radius-md);
    background:
        linear-gradient(180deg, rgba(243, 227, 223, 0.75) 0%, rgba(255, 250, 241, 0.92) 100%);
    margin-bottom: 20px;
    border: 1px solid rgba(123, 47, 47, 0.12);
}

.filters {
    display: grid;
    grid-template-columns: minmax(140px, 0.9fr) minmax(140px, 0.9fr) minmax(240px, 1.4fr) auto;
    gap: 10px;
    align-items: center;
}

.filters input,
.filters select {
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(123, 47, 47, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
    font: inherit;
}

.filter-control {
    width: 100%;
    min-width: 0;
}

.filters input {
    min-width: 0;
}

.field-hint {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

.active-location-filter[hidden] {
    display: none;
}

.active-location-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.active-location-filter__label {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(123, 47, 47, 0.08);
    color: var(--accent-strong);
    font-size: 0.9rem;
    font-weight: 800;
}

.active-location-filter__clear {
    min-height: 34px;
    padding-inline: 12px;
}

.filter-button {
    min-height: 46px;
    padding-inline: 14px;
    white-space: nowrap;
}

.filter-button--location {
    min-height: 46px;
    color: var(--muted);
    font-size: 0.94rem;
}

.agenda-shortcuts {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin: 0 0 16px;
    padding: 10px 0 2px;
}

.agenda-shortcut {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(23, 32, 51, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--muted);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.agenda-shortcut:hover {
    transform: translateY(-1px);
    border-color: rgba(15, 118, 110, 0.22);
    color: var(--ink);
}

.agenda-shortcut.is-active {
    background: rgba(221, 243, 240, 0.9);
    color: var(--accent);
    border-color: rgba(15, 118, 110, 0.18);
}

.featured-item h3 a:hover,
.detail-link:hover,
.text-link:hover,
.topbar-link:hover {
    opacity: 0.8;
}

.ad {
    margin-top: 18px;
    padding: 18px;
}

.ad-placeholder {
    min-height: 100px;
    padding: 18px;
    border: 1px dashed #cdbfaa;
    border-radius: var(--radius-md);
    display: grid;
    place-items: center;
    text-align: center;
    background: linear-gradient(180deg, #fbf7f0 0%, #f3ece1 100%);
}

.ad-placeholder span {
    font-weight: 800;
}

.ad-placeholder small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
}

.agenda-panel {
    padding: 20px;
    background:
        linear-gradient(180deg, rgba(255, 253, 248, 0.98) 0%, rgba(255, 249, 239, 0.98) 100%);
}

.month-block + .month-block {
    margin-top: 24px;
}

.month-title {
    padding: 13px 15px;
    border-left: 4px solid var(--accent-gold);
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(243, 227, 223, 0.9) 0%, rgba(255, 249, 239, 0.92) 100%);
    color: var(--accent-strong);
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    box-shadow: inset 0 0 0 1px rgba(123, 47, 47, 0.05);
}

.day-group {
    padding-top: 10px;
}

.dayline {
    padding: 14px 0 10px;
    border-bottom: 1px solid rgba(123, 47, 47, 0.12);
    font-weight: 800;
    color: var(--ink);
}

.agenda-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 84px;
    gap: 18px 16px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(123, 47, 47, 0.12);
    align-items: start;
    transition: background 160ms ease, transform 160ms ease;
}

.agenda-row:hover {
    background: rgba(255, 252, 245, 0.88);
}

.agenda-main {
    display: grid;
    gap: 8px;
}

.agenda-main strong {
    display: block;
    font-family: 'Fraunces', 'Newsreader', serif;
    font-size: 1.24rem;
    font-weight: 500;
    line-height: 1.24;
    letter-spacing: -0.02em;
    max-width: none;
}

.agenda-mobile-head {
    display: none;
}

.agenda-meta,
.agenda-mobile-meta {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.35;
}

.detail-link {
    color: var(--accent);
    font-weight: 500;
    position: relative;
}

.agenda-side {
    color: var(--muted);
    line-height: 1.65;
}

.agenda-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0;
    min-width: 0;
}

.agenda-kicker a {
    text-decoration: none;
}

.agenda-kicker-city {
    color: var(--ink);
    font-weight: 800;
}

.agenda-kicker-venue {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 500;
}

.agenda-kicker-series {
    color: rgba(95, 35, 35, 0.68);
    font-size: 0.76rem;
    font-weight: 600;
}

.agenda-kicker-series:hover {
    color: var(--accent-deep);
}

.agenda-kicker-tag {
    color: rgba(109, 98, 87, 0.72);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.agenda-kicker-sep {
    color: rgba(109, 98, 87, 0.58);
    padding: 0 7px;
}

.agenda-side--time {
    text-align: right;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
    font-size: 0.96rem;
    min-width: 84px;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    max-width: max-content;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: #165f59;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border: 1px solid rgba(15, 118, 110, 0.12);
}

.tag--muted {
    background: rgba(255, 255, 255, 0.82);
    color: var(--muted);
    border-color: rgba(23, 32, 51, 0.08);
}

.agenda-badges .tag + .tag {
    color: var(--muted);
    border-color: rgba(23, 32, 51, 0.08);
}

.empty-state,
.message-card {
    padding: 24px;
    box-shadow: var(--shadow-soft);
}

.empty-state--filters {
    display: none;
    padding: 16px 0 6px;
}

.legal-card {
    padding: 24px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.legal-card + .legal-card {
    margin-top: 18px;
}

.legal-lead {
    margin: 14px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.legal-section + .legal-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.legal-section h2 {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.legal-section p,
.legal-section li {
    color: var(--muted);
    line-height: 1.75;
}

.legal-section ul {
    margin: 0;
    padding-left: 20px;
}

.grouping-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.grouping-copy h2 {
    margin-bottom: 10px;
}

.review-login,
.review-filters {
    display: grid;
    gap: 16px;
}

.review-counts {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.review-count {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(23, 32, 51, 0.05);
    color: var(--muted);
    border: 1px solid rgba(23, 32, 51, 0.08);
    font-size: 0.92rem;
    font-weight: 700;
}

.review-count.is-active {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: rgba(15, 118, 110, 0.14);
}

.review-error {
    color: #a84830 !important;
    padding: 14px 16px;
    border: 1px solid rgba(168, 72, 48, 0.18);
    border-radius: 14px;
    background: rgba(252, 241, 236, 0.92);
}

.review-list {
    display: grid;
    gap: 14px;
}

.review-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 18px 0;
    border-top: 1px solid rgba(123, 47, 47, 0.12);
}

.review-item:first-child {
    padding-top: 0;
    border-top: 0;
}

.review-item-main {
    display: grid;
    gap: 6px;
}

.review-item-main strong {
    font-size: 1.05rem;
}

.review-item-main p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.review-actions {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    align-items: start;
    margin-top: 10px;
}

.review-actions-title {
    grid-column: 1 / -1;
    margin: 4px 0 0;
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.review-actions form,
.review-actions .button {
    width: 100%;
}

.review-actions form {
    margin: 0;
}

.review-edit-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
    margin-top: 18px;
    flex-wrap: wrap;
}

.form-help {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.form-help--error {
    color: #a84830;
}

.form-help--success {
    color: #1f5b4f;
    font-weight: 700;
}

.clipboard-summary {
    margin-top: 12px;
}

.clipboard-candidates {
    margin-top: 16px;
}

.candidate-list,
.preview-grid {
    display: grid;
    gap: 12px;
}

.candidate-card {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
}

.candidate-card strong {
    display: block;
    margin-bottom: 6px;
}

.candidate-card p {
    margin: 0 0 12px;
    color: var(--muted);
}

.preview-card {
    margin-top: 22px;
}

.preview-label {
    margin: 0 0 6px;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.preview-value {
    margin: 0;
    color: var(--ink);
    line-height: 1.6;
}

.message-card--success {
    border-color: rgba(31, 79, 70, 0.24);
}

.message-card--error {
    border-color: rgba(168, 72, 48, 0.26);
}

.form-layout {
    max-width: 860px;
    margin: 0 auto;
}

.form-intro {
    margin-bottom: 20px;
}

.event-form {
    padding: 22px;
}

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

.form-section h2 {
    margin-bottom: 18px;
    font-size: 1.45rem;
}

.form-grid {
    display: grid;
    gap: 16px;
}

label {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
    font-weight: 700;
}

label span {
    font-size: 0.95rem;
}

input,
textarea {
    width: 100%;
    min-height: 54px;
    padding: 12px 14px;
    border: 1px solid rgba(123, 47, 47, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--ink);
    font: inherit;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: rgba(123, 47, 47, 0.42);
    box-shadow: 0 0 0 4px rgba(123, 47, 47, 0.1);
}

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

.checkbox-field {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 12px 14px;
    border: 1px solid rgba(123, 47, 47, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
}

.checkbox-field input {
    width: 18px;
    min-height: 18px;
    margin: 0;
    padding: 0;
}

.checkbox-field span {
    font-size: 0.96rem;
}

#formValidationFeedback {
    margin-top: 12px;
}

.detail-card {
    padding: 24px;
    background:
        linear-gradient(180deg, rgba(255, 253, 248, 0.98) 0%, rgba(255, 248, 239, 0.98) 100%);
}

.detail-summary {
    max-width: 64ch;
    margin: 14px 0 0;
}

.detail-hero h1 {
    max-width: 18ch;
    font-size: clamp(2.1rem, 4.2vw, 4.1rem);
    line-height: 0.95;
    text-wrap: balance;
}

.detail-grid {
    display: grid;
    gap: 24px;
    margin-top: 24px;
}

.detail-main,
.detail-sidebar {
    display: grid;
    gap: 18px;
}

.detail-meta-grid {
    display: grid;
    gap: 12px;
}

.detail-meta-grid strong {
    display: block;
    margin-bottom: 4px;
    color: var(--accent);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.detail-section h2,
.detail-block h2 {
    margin-bottom: 12px;
    font-size: 1.28rem;
}

.detail-copy p {
    margin: 0 0 12px;
}

.detail-copy p:last-child {
    margin-bottom: 0;
}

.detail-block {
    padding: 20px;
    border: 1px solid rgba(123, 47, 47, 0.12);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 24px rgba(44, 28, 22, 0.05);
}

.stack-links {
    display: grid;
    gap: 12px;
}

.map-placeholder {
    min-height: 220px;
    margin-top: 12px;
    border: 1px solid rgba(123, 47, 47, 0.12);
    border-radius: 18px;
    display: grid;
    place-items: center;
    text-align: center;
    background:
        radial-gradient(circle at top left, rgba(185, 138, 61, 0.18) 0%, rgba(185, 138, 61, 0) 48%),
        linear-gradient(135deg, var(--accent-soft) 0%, var(--soft) 100%);
    color: var(--muted);
    font-weight: 700;
}

.map-embed-shell {
    margin-top: 12px;
    border: 1px solid rgba(123, 47, 47, 0.12);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 24px rgba(44, 28, 22, 0.05);
}

.map-embed {
    display: block;
    width: 100%;
    min-height: 320px;
    border: 0;
    background: #eef4fb;
}

.center-layout {
    min-height: 80vh;
    display: grid;
    place-items: center;
}

.status-page {
    gap: 20px;
}

.status-card {
    display: grid;
    gap: 18px;
}

.status-code {
    margin: 0;
    color: var(--accent);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.status-title {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.status-lead {
    margin: 0;
    max-width: 60ch;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.7;
}

.status-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.status-list {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.75;
}

.status-list li + li {
    margin-top: 8px;
}

.text-link--spaced {
    display: inline-block;
    margin-top: 14px;
}

.site-footer {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid rgba(123, 47, 47, 0.12);
}

.site-footer-meta {
    color: var(--muted);
}

.site-footer-links a {
    color: var(--accent);
    font-weight: 700;
}

.cookie-banner {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 40;
    padding: 16px 18px;
    border: 1px solid rgba(123, 47, 47, 0.14);
    border-radius: var(--radius-md);
    background: rgba(255, 251, 245, 0.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 34px rgba(31, 26, 23, 0.1);
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.cookie-banner.is-hidden {
    display: none;
}

.cookie-copy {
    max-width: 62ch;
}

.cookie-copy strong {
    display: block;
    margin-bottom: 6px;
}

.cookie-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (min-width: 760px) {
    .form-grid,
    .detail-grid,
    .detail-meta-grid,
    .review-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .candidate-list,
    .preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    }

    .featured-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }

    .featured-item {
        border-top: 0;
        padding: 0;
        min-height: 100%;
        padding-right: 12px;
        border-right: 1px solid rgba(185, 138, 61, 0.24);
    }

    .featured-item:last-child {
        border-right: 0;
        padding-right: 0;
    }

    .detail-hero h1 {
        max-width: 14ch;
    }
}

@media (max-width: 860px) {
    .agenda-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 18px 0;
    }

    .agenda-mobile-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        min-height: auto;
    }

    .agenda-side--time {
        display: none;
    }

    .agenda-mobile-time {
        flex: 0 0 auto;
        color: var(--ink);
        font-weight: 800;
        line-height: 1.3;
        white-space: nowrap;
    }

    .agenda-mobile-meta {
        max-width: calc(100% - 96px);
        font-size: 0.76rem;
    }

    .agenda-kicker-venue {
        font-size: 0.74rem;
    }

    .agenda-kicker-series {
        font-size: 0.72rem;
    }

    .agenda-kicker-tag {
        font-size: 0.7rem;
    }

    .agenda-main strong {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        max-width: none;
    }

    .agenda-meta {
        display: none;
    }

    .review-item {
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
    }
}

@media (max-width: 640px) {
    .site-shell {
        width: min(calc(100% - 18px), var(--container));
        padding-top: 14px;
    }

    .brand {
        font-size: 1.7rem;
    }

    h1 {
        font-size: clamp(1.8rem, 9vw, 2.5rem);
    }

    .hero {
        padding: 24px 18px 20px;
    }

    .hero-text {
        font-size: 1rem;
    }

    .section-header {
        margin: 24px 0 14px;
        gap: 8px;
    }

    .section-copy {
        font-size: 0.98rem;
        line-height: 1.55;
    }

    .featured-list-shell {
        padding: 12px;
        border-radius: 22px;
    }

    .featured-list-shell::after {
        display: none;
    }

    .featured-list {
        gap: 10px;
        padding: 0 0 2px;
        scroll-padding-inline: 0;
        scroll-snap-type: x mandatory;
    }

    .featured-item {
        min-width: calc(100vw - 58px);
        padding: 14px;
        border-radius: 18px;
    }

    .featured-item h3 {
        margin: 10px 0 8px;
        font-size: 0.98rem;
        line-height: 1.2;
    }

    .agenda-mobile-meta {
        font-size: 0.68rem;
    }

    .agenda-main strong {
        font-size: 1.06rem;
        line-height: 1.22;
    }

    .agenda-place-venue {
        font-size: 0.88rem;
    }

    .featured-meta {
        font-size: 0.88rem;
    }

    .featured-submeta {
        font-size: 0.78rem;
        line-height: 1.5;
    }

    .month-title {
        letter-spacing: 0.12em;
    }

    .form-grid,
    .form-grid--checks {
        grid-template-columns: 1fr;
    }

    .filters {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: stretch;
        gap: 8px;
    }

    .filter-control--region,
    .filter-control--comuna {
        grid-column: span 1;
    }

    .filter-control--search {
        grid-column: 1 / 2;
    }

    .filter-button--apply {
        grid-column: 2 / 3;
    }

    .filter-bar {
        padding: 12px;
        margin-bottom: 12px;
        border-radius: 16px;
    }

    .filters input,
    .filters select {
        min-height: 40px;
        padding-inline: 11px;
        border-radius: 12px;
    }

    .filter-button {
        min-height: 40px;
        padding-inline: 10px;
    }

    .field-hint {
        display: none;
    }

    .agenda-shortcuts {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 2px;
        scrollbar-width: thin;
        margin-bottom: 12px;
    }

    .agenda-shortcut {
        flex: 0 0 auto;
        min-height: 34px;
        padding: 0 12px;
        font-size: 0.78rem;
    }

    .tag {
        min-height: 22px;
        padding: 0 8px;
        font-size: 0.68rem;
    }

    .detail-hero h1 {
        max-width: none;
        font-size: clamp(1.95rem, 11vw, 3rem);
        line-height: 0.98;
        text-wrap: pretty;
    }
}

/* 2026 visual refresh aligned with approved mockup */
:root {
    --bg: #f4f7fb;
    --bg-deep: #e8eef6;
    --paper: rgba(255, 255, 255, 0.86);
    --paper-strong: rgba(255, 255, 255, 0.96);
    --ink: #111827;
    --muted: #667085;
    --line: #dbe3ee;
    --line-strong: #c6cfdb;
    --accent: #172033;
    --accent-strong: #0f172a;
    --accent-soft: #ddf3f0;
    --accent-gold: #0f766e;
    --soft: #eef4fb;
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-card: 0 18px 60px rgba(15, 23, 42, 0.12);
    --container: 1160px;
    --radius-lg: 26px;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background:
        radial-gradient(circle at top right, rgba(15, 118, 110, 0.08), transparent 24%),
        radial-gradient(circle at left 20%, rgba(59, 130, 246, 0.08), transparent 20%),
        linear-gradient(180deg, #f8fbff 0%, var(--bg) 42%, var(--bg-deep) 100%);
}

body::before {
    opacity: 0;
}

.brand,
h1,
h2,
h3 {
    font-family: 'Newsreader', serif;
}

.month-title,
.dayline,
.detail-link {
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
}

.site-header,
.page-topbar,
.hero,
.agenda-panel,
.detail-card,
.event-form,
.message-card,
.empty-state,
.ad,
.cookie-banner,
.review-panel,
.review-login-card,
.review-item,
.legal-card,
.contact-card,
.contact-form,
.featured-list-shell {
    backdrop-filter: blur(18px);
}

.site-header,
.page-topbar,
.hero,
.agenda-panel,
.detail-card,
.event-form,
.message-card,
.empty-state,
.ad,
.legal-card,
.contact-card,
.contact-form,
.review-panel,
.review-login-card,
.review-item {
    background: var(--paper);
    border: 1px solid rgba(23, 32, 51, 0.07);
    box-shadow: var(--shadow-soft);
}

.topbar,
.page-topbar {
    background: rgba(255, 255, 255, 0.72);
    border-radius: 20px;
}

.topbar-link,
.text-link {
    color: var(--accent);
    font-weight: 700;
}

.hero {
    margin-top: 20px;
    padding: 26px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.94) 55%, rgba(221, 243, 240, 0.92) 100%);
}

.hero::before {
    width: 300px;
    height: 300px;
    right: -80px;
    top: -110px;
    border-radius: 36px;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.14), rgba(59, 130, 246, 0.12));
    transform: rotate(18deg);
}

.hero::after {
    display: none;
}

h1 {
    font-size: clamp(2.26rem, 5vw, 4rem);
    line-height: 0.93;
    letter-spacing: -0.05em;
    max-width: 12ch;
}

h2 {
    font-size: clamp(1.44rem, 2.9vw, 2.08rem);
    letter-spacing: -0.03em;
}

.hero-text {
    font-size: 1.04rem;
}

.button-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #1f3657 100%);
    border-color: transparent;
    color: #fff;
}

.featured-list-shell {
    position: relative;
    padding: 18px;
    border-radius: var(--radius-lg);
}

.featured-list-shell::after {
    content: '';
    position: absolute;
    top: 22px;
    right: 22px;
    bottom: 42px;
    width: 58px;
    background: linear-gradient(90deg, rgba(244, 247, 251, 0), rgba(244, 247, 251, 0.96));
    pointer-events: none;
    border-radius: 0 22px 22px 0;
}

.featured-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 2px 2px 4px;
    background: transparent;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.featured-list::-webkit-scrollbar {
    height: 8px;
}

.featured-list::-webkit-scrollbar-thumb {
    background: rgba(23, 32, 51, 0.16);
    border-radius: 999px;
}

.featured-item {
    min-width: min(84vw, 320px);
    padding: 16px;
    border: 1px solid rgba(23, 32, 51, 0.09);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 252, 0.98));
    scroll-snap-align: start;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.featured-item h3 {
    margin: 12px 0 10px;
    font-family: 'Fraunces', 'Newsreader', serif;
    font-size: 1.08rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.featured-item h3 a {
    color: var(--ink);
    text-decoration: none;
}

.featured-meta,
.featured-submeta {
    margin: 0;
}

.featured-meta {
    font-size: 0.94rem;
    color: #52627c;
    line-height: 1.45;
}

.featured-submeta {
    margin-top: 4px;
    font-size: 0.84rem;
    color: var(--muted);
    line-height: 1.45;
}

.featured-kicker {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-gold);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.featured-hint {
    margin: 8px 2px 0;
    color: var(--muted);
    font-size: 0.76rem;
}

.filter-bar {
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(23, 32, 51, 0.04), rgba(15, 118, 110, 0.08));
    margin-bottom: 22px;
    border: 1px solid rgba(23, 32, 51, 0.06);
}

.filters input,
.filters select {
    border: 1px solid rgba(23, 32, 51, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
}

.agenda-panel {
    padding: 22px;
}

.agenda-month-nav {
    display: grid;
    gap: 12px;
    margin: 0 0 22px;
    padding: 16px 18px;
    border: 1px solid rgba(23, 32, 51, 0.06);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.agenda-month-nav__label {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.agenda-month-nav__list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.agenda-month-nav__link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(23, 32, 51, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--accent);
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.agenda-month-nav__link:hover {
    transform: translateY(-1px);
    border-color: rgba(15, 118, 110, 0.22);
    background: rgba(221, 243, 240, 0.72);
}

.agenda-month-nav__link[hidden] {
    display: none;
}

.month-title {
    border-left: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #172033, #243755);
    color: #f8fafc;
    font-weight: 600;
    letter-spacing: 0.1em;
    box-shadow: none;
}

.day-group {
    position: relative;
    margin: 14px 0 18px 8px;
    padding: 8px 0 0 20px;
}

.day-group::before {
    content: '';
    position: absolute;
    top: 12px;
    bottom: 10px;
    left: 0;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(32, 122, 122, 0.24), rgba(32, 122, 122, 0.08));
}

.dayline {
    display: inline-block;
    margin: 0 0 10px;
    padding: 6px 12px 6px 14px;
    border: 1px solid rgba(23, 32, 51, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--accent);
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    font-size: 0.93rem;
    font-weight: 700;
    letter-spacing: 0.035em;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.04);
}

.agenda-row {
    margin-left: 6px;
    padding-left: 20px;
    border-bottom: 1px solid rgba(23, 32, 51, 0.06);
}

.agenda-row:hover {
    background: rgba(248, 250, 252, 0.9);
}

@media (max-width: 860px) {
    .agenda-row {
        margin-left: 0;
        padding-left: 0;
    }

    .agenda-mobile-head {
        display: flex;
    }

    .agenda-side--time {
        display: none;
    }
}

@media (min-width: 860px) {
    .agenda-shortcuts {
        position: sticky;
        top: 18px;
        z-index: 8;
        padding: 12px;
        margin-bottom: 18px;
        border: 1px solid rgba(23, 32, 51, 0.06);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.86);
        backdrop-filter: blur(18px);
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    }

    .agenda-month-nav {
        grid-template-columns: auto 1fr;
        align-items: center;
        position: sticky;
        top: 18px;
        z-index: 8;
    }

    .agenda-month-nav__label {
        min-width: 96px;
    }

    .agenda-month-nav__list {
        justify-content: flex-end;
    }

    .featured-list-shell::after,
    .featured-hint {
        display: none;
    }

    .featured-list {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        overflow: visible;
        padding-bottom: 0;
        align-items: start;
    }

    .featured-item {
        min-width: 0;
        padding: 16px;
        border: 1px solid rgba(23, 32, 51, 0.09);
        border-radius: 22px;
        padding-right: 16px;
    }

    .featured-item:first-child,
    .featured-item:last-child {
        padding: 16px;
        border: 1px solid rgba(23, 32, 51, 0.09);
        border-radius: 22px;
        padding-right: 16px;
    }

    .featured-kicker {
        margin: 0;
    }
}

select {
    width: 100%;
    min-height: 54px;
    padding: 12px 14px;
    border: 1px solid rgba(23, 32, 51, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--ink);
    font: inherit;
}

select:focus {
    outline: none;
    border-color: rgba(23, 32, 51, 0.28);
    box-shadow: 0 0 0 4px rgba(23, 32, 51, 0.08);
}

.scraping-source-list {
    display: grid;
    gap: 12px;
}

.scraping-source-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid rgba(23, 32, 51, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
}

.scraping-source-item input {
    width: 18px;
    min-height: 18px;
    margin-top: 3px;
}

.scraping-source-item span {
    display: grid;
    gap: 4px;
}

.scraping-source-item small {
    color: var(--muted);
    font-weight: 500;
    line-height: 1.55;
    word-break: break-word;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.blog-grid--home {
    margin-bottom: 20px;
}

.blog-card,
.blog-article-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.blog-card {
    padding: 22px;
}

.blog-card-meta {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.blog-card h2,
.blog-card h3 {
    margin-bottom: 12px;
}

.blog-card p {
    margin: 0 0 16px;
    color: var(--muted);
    line-height: 1.7;
}

.blog-article-card {
    padding: 28px 30px;
}

.blog-article-content {
    margin-top: 22px;
}

.blog-article-content h2 {
    margin: 28px 0 14px;
    font-size: 1.55rem;
}

.blog-article-content p,
.blog-article-content li {
    color: var(--muted);
    line-height: 1.82;
    font-size: 1.02rem;
}

.blog-article-content p {
    margin: 0 0 18px;
}

.article-event-list {
    margin: 0 0 22px;
    padding-left: 20px;
}

.article-event-list li {
    margin-bottom: 12px;
}

.article-event-list span {
    display: block;
    color: var(--muted);
    font-size: 0.95rem;
    margin-top: 4px;
}

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

    .button--nav {
        margin-left: 0;
    }
}

@media (max-width: 640px) {
    .blog-card,
    .blog-article-card {
        padding: 18px;
    }

    .blog-article-content p,
    .blog-article-content li {
        font-size: 0.98rem;
    }
}

@media (max-width: 560px) {
    .topbar-actions--nav {
        width: 100%;
        gap: 10px 14px;
    }

    .button--nav {
        width: 100%;
        justify-content: center;
    }
}
