/* NUDISTIQ design system — editorial. Colors are CSS tokens; the CMS can override :root values via an inline <style> (see layout). */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/fraunces-latin-opsz-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 100 900; font-display: swap; src: url('../fonts/fraunces-latin-opsz-italic.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/inter-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --primary: #4B246B;     /* Deep Aubergine */
  --secondary: #7B3FB2;   /* Vivid Purple */
  --accent: #F6C945;      /* Warm Sun Yellow */
  --bg: #FFF9EE;          /* Warm Cream */
  --surface: #F1E8F6;     /* Soft Lavender */
  --text: #211D24;        /* Near Black */
  --muted: #706A70;       /* Warm Gray — AA on cream only */
  --muted-strong: #5C565C;/* companion: AA on lavender */
  --link: #6A3199;        /* companion of Vivid Purple: AA on cream and lavender */
  --on-primary: #FFF9EE;
  --rule: rgba(33, 29, 36, .16);
  --rule-strong: #211D24;
  --focus: #1B5FD1;
  --font-display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --gutter: clamp(20px, 4.5vw, 56px);
  --maxw: 1280px;
  --radius: 2px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.68 var(--font-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--text); padding: 10px 16px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3, h4 { font-family: var(--font-display); font-optical-sizing: auto; font-weight: 500; line-height: 1.04; letter-spacing: -0.022em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.4vw, 5.2rem); font-weight: 400; letter-spacing: -0.022em; word-spacing: .04em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); font-weight: 400; }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.12; }
h1 em, h2 em, h3 em { font-style: italic; }
p { margin: 0 0 1.1em; }
.kicker { font: 600 .7rem/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--link); margin-bottom: 1rem; display: inline-block; }
.masthead .kicker, .dark .kicker { color: var(--accent); }
.muted { color: var(--muted); } .surface .muted, .panel .muted { color: var(--muted-strong); }
.lede { font-family: var(--font-display); font-size: clamp(1.2rem, 1.9vw, 1.5rem); line-height: 1.42; font-weight: 400; max-width: 46ch; letter-spacing: -0.005em; }

/* ---------- demo / staging banner ---------- */
.mode-banner { background: var(--accent); color: var(--text); font: 500 .78rem/1.4 var(--font-body); letter-spacing: .02em; padding: 7px var(--gutter); text-align: center; }

/* ---------- masthead (one slim row: logo · menu · account) ---------- */
.masthead { background: var(--primary); color: var(--on-primary); position: relative; }
.mast-bar { display: flex; align-items: center; gap: 12px 28px; padding: 10px 0; flex-wrap: wrap; }
.brand { display: block; flex: none; line-height: 0; }
.brand img { height: 66px; width: auto; }
.mast-menu { display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; flex: 1 1 520px; flex-wrap: wrap; }
.nav { display: flex; align-items: center; gap: 4px clamp(16px, 2.6vw, 38px); flex-wrap: wrap; }
.nav a { color: var(--on-primary); text-decoration: none; font: 600 .72rem var(--font-body); letter-spacing: .18em; text-transform: uppercase; padding: 12px 0 10px; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.mast-util { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .78rem; }
.mast-util a { color: var(--on-primary); text-decoration: none; font-weight: 500; }
.mast-util a:hover { text-decoration: underline; }
.mast-util a.btn { text-decoration: none; }
.loc-form { display: flex; align-items: center; gap: 8px; }
.loc-form label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.loc-form select { background-color: transparent; color: var(--on-primary); border: 0; border-bottom: 1px solid rgba(255, 249, 238, .5); border-radius: 0; padding: 6px 22px 6px 4px; font: 500 .8rem var(--font-body); min-height: 36px; width: auto; max-width: 275px; }
.loc-form select option { color: var(--text); }
.btn.nav-toggle { display: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 24px; border-radius: var(--radius); border: 1px solid var(--text); background: transparent; color: var(--text); font: 600 .84rem var(--font-body); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .18s, color .18s, border-color .18s; }
.btn:hover { background: var(--text); color: var(--bg); text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--text); }
.btn-primary:hover { background: var(--text); border-color: var(--text); color: var(--accent); }
.btn-solid { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn-solid:hover { background: var(--secondary); border-color: var(--secondary); color: var(--on-primary); }
.btn-ghost { border-color: var(--rule-strong); }
.btn-sm { min-height: 40px; padding: 7px 16px; font-size: .74rem; }
.btn-danger { border-color: #9C1C2B; color: #9C1C2B; } .btn-danger:hover { background: #9C1C2B; color: #fff; }
.masthead .btn, .mast-util .btn { border-color: rgba(255, 249, 238, .7); color: var(--on-primary); min-height: 36px; padding: 6px 16px; font-size: .7rem; }
.masthead .btn:hover { background: var(--on-primary); color: var(--primary); }
.masthead .btn-primary, .mast-util .btn-primary { background: var(--accent); border-color: var(--accent); color: var(--text); }
.masthead .btn-primary:hover { background: var(--on-primary); border-color: var(--on-primary); color: var(--primary); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } html { scroll-behavior: auto; } * { animation: none !important; } }

/* ---------- sections ---------- */
main { display: block; }
.section:not(.surface):not(.dark) + .section:not(.surface):not(.dark) { padding-top: 0; }
.section-head .sub { font: italic 400 1.15rem var(--font-display); color: var(--muted); margin-right: 18px; }
.section-head .head-end { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.section { padding: clamp(56px, 8vw, 112px) 0; }
.section.surface { background: var(--surface); }
.section.dark { background: var(--primary); color: var(--on-primary); }
.section.dark a:not(.btn) { color: var(--accent); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-top: 1px solid var(--rule-strong); margin-bottom: clamp(28px, 4vw, 52px); padding-top: 18px; flex-wrap: wrap; }
.section.dark .section-head { border-color: rgba(255, 249, 238, .5); }
.section-head h2 { margin: 0; }
.section-head .more { font: 600 .74rem var(--font-body); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
mark, .hl { background: linear-gradient(transparent 62%, var(--accent) 62%); color: inherit; padding: 0 .1em; }

/* ---------- lead story (asymmetric) ---------- */
.lead { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(24px, 4vw, 64px); padding: clamp(32px, 5vw, 72px) 0 clamp(48px, 7vw, 96px); align-items: end; }
.lead-copy { grid-column: 1 / span 5; grid-row: 1; padding-bottom: clamp(0px, 2vw, 24px); }
.lead-media { grid-column: 6 / span 7; grid-row: 1; position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: var(--surface); }
.lead-media img { width: 100%; height: 100%; object-fit: cover; }
.lead-copy h1 { font-size: clamp(2.2rem, 3.9vw, 3.5rem); margin: 0 0 .45em; }
.lead-copy h1 a { color: inherit; text-decoration: none; background-image: linear-gradient(var(--accent), var(--accent)); background-repeat: no-repeat; background-size: 0 .09em; background-position: 0 96%; transition: background-size .35s; }
.lead-copy h1 a:hover { background-size: 100% .09em; }
.lead-copy .meta { font: 500 .78rem var(--font-body); letter-spacing: .04em; color: var(--muted); margin: 1.4em 0 1.6em; }
@media (max-width: 900px) { .lead { display: block; padding-top: 0; } .lead-media { margin: 0 calc(var(--gutter) * -1); aspect-ratio: 4 / 3; } .lead-copy { padding: 28px 0 0; } }

/* ---------- cards ---------- */
.grid-events { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(36px, 4vw, 56px) clamp(24px, 3vw, 44px); }
.grid-events > .ecard:nth-child(5n+1) { grid-column: span 7; }
.grid-events > .ecard:nth-child(5n+2) { grid-column: span 5; }
.grid-events > .ecard:nth-child(5n+3), .grid-events > .ecard:nth-child(5n+4), .grid-events > .ecard:nth-child(5n+5) { grid-column: span 4; }
.grid-events.uniform > .ecard { grid-column: span 4 !important; }
@media (max-width: 1000px) { .grid-events > .ecard, .grid-events.uniform > .ecard { grid-column: span 6 !important; } }
@media (max-width: 640px) { .grid-events > .ecard, .grid-events.uniform > .ecard { grid-column: span 12 !important; } }

.ecard { display: flex; flex-direction: column; position: relative; }
.ecard .ph { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); }
.grid-events.uniform .ecard .ph { aspect-ratio: 4 / 3 !important; }
.ecard .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .6, .2, 1); }
.ecard:hover .ph img { transform: scale(1.035); }
@media (prefers-reduced-motion: reduce) { .ecard:hover .ph img, .lead-copy h1 a { transition: none; transform: none; } }
.ecard .body { padding: 18px 0 0; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ecard .kicker { margin: 0 0 4px; }
.ecard h3 { margin: 0 0 4px; font-size: clamp(1.3rem, 2vw, 1.75rem); }
.ecard:nth-child(5n+1) h3 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
.grid-events.uniform .ecard h3 { font-size: clamp(1.3rem, 2vw, 1.6rem) !important; }
.ecard h3 a { color: var(--text); text-decoration: none; }
.ecard h3 a::after { content: ''; position: absolute; inset: 0; }
.ecard h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--secondary); }
.ecard .when { font: 500 .8rem/1.4 var(--font-body); letter-spacing: .02em; margin: 0; color: var(--text); }
.ecard .where { font-size: .92rem; margin: 0; color: var(--muted); }
.facets { font-size: .8rem; color: var(--muted-strong); margin: 4px 0 0; letter-spacing: .01em; }
.facets.disclose strong { font-weight: 600; color: var(--text); }
.facets.disclose strong.flag { color: #7A4A00; background: #FFF1CC; padding: 1px 6px; border-radius: 3px; }
.ecard .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 14px; position: relative; z-index: 3; }
.tags { display: flex; gap: 4px 14px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.tag { font: 600 .66rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--text); }
.tags .tag + .tag::before { content: '·'; margin-right: 14px; color: var(--muted); }
.tag.type { color: var(--link); }
.tag.cancelled { color: #9C1C2B; border: 1px solid currentColor; padding: 3px 6px; margin-left: 8px; }
.tag.demo { color: var(--muted-strong); border: 1px solid var(--rule); padding: 3px 6px; margin-left: 8px; }
.credit { position: absolute; right: 0; bottom: 0; font: 500 .62rem/1 var(--font-body); background: rgba(33, 29, 36, .55); color: #fff; padding: 5px 9px; letter-spacing: .1em; text-transform: uppercase; backdrop-filter: blur(4px); }
.datebox { display: none; }

/* ---------- news ---------- */
.news-split { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 80px); }
@media (max-width: 900px) { .news-split { grid-template-columns: 1fr; } }
.story-big .ph { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); position: relative; }
.story-big .ph img { width: 100%; height: 100%; object-fit: cover; }
.story-big h3 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); margin-top: 10px; }
.story-big h3 a, .brief h3 a, .story-row h3 a { color: inherit; text-decoration: none; }
.story-big h3 a:hover, .brief h3 a:hover, .story-row h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--secondary); }
.briefs { border-top: 1px solid var(--rule-strong); }
.brief { padding: 22px 0; border-bottom: 1px solid var(--rule); }
.brief h3 { font-size: 1.3rem; margin: 6px 0 8px; line-height: 1.15; }
.brief p { font-size: .95rem; margin: 0 0 6px; }
.src { font: 500 .78rem var(--font-body); letter-spacing: .02em; color: var(--muted); margin: 0; }
.panel .src, .surface .src { color: var(--muted-strong); }
.badge-curated, .badge-label { display: inline-block; font: 600 .62rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; border: 1px solid currentColor; padding: 4px 7px; border-radius: 1px; margin: 0 8px 8px 0; vertical-align: middle; }
.badge-curated { color: var(--primary); }
.kicker + .badge-curated, .kicker + .badge-label { margin-left: 10px; }
.badge-label { background: var(--accent); border-color: var(--accent); color: var(--text); }
.story-row { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 32px 0; border-bottom: 1px solid var(--rule); }
.story-row:first-child { border-top: 1px solid var(--rule-strong); }
.story-row .ph { aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface); }
.story-row .ph img { width: 100%; height: 100%; object-fit: cover; }
.story-row h3 { font-size: 1.6rem; }
.story-row.textonly { grid-template-columns: 1fr; }
@media (max-width: 640px) { .story-row { grid-template-columns: 1fr; gap: 14px; } }

/* ---------- guides ---------- */
.guides-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(24px, 4vw, 64px); }
.guide-tile { padding: 28px 0 8px; border-top: 1px solid rgba(255, 249, 238, .35); }
.guide-tile .num { font: italic 300 clamp(3.4rem, 6vw, 5.2rem)/1 var(--font-display); color: var(--accent); }
.guide-tile h3 { margin: .35em 0 .4em; font-size: 1.5rem; }
.guide-tile a { color: var(--on-primary) !important; text-decoration: none; }
.guide-tile a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.guide-tile p { color: rgba(255, 249, 238, .85); font-size: .95rem; margin: 0; }
@media (max-width: 860px) { .guides-strip { grid-template-columns: 1fr; } }

.spot { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.spot .ph { aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); position: relative; }
.spot .ph img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .spot { grid-template-columns: 1fr; } .spot .ph { aspect-ratio: 4 / 3; } }

.cta-band { background: var(--accent); }
.cta-band .wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: center; padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.cta-band h2 { font-size: clamp(2.2rem, 5.4vw, 4.2rem); margin: 0 0 .3em; font-weight: 400; }
.cta-band .lede { margin: 0; }
.cta-band .btn { border-color: var(--text); }
.cta-band .btn-primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.cta-band .btn-primary:hover { background: var(--text); border-color: var(--text); color: var(--accent); }
@media (max-width: 760px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* ---------- discovery / filters ---------- */
.finder { background: var(--surface); padding: clamp(20px, 3vw, 36px); display: grid; gap: 18px; }
.finder-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: end; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border: 1px solid var(--rule-strong); border-radius: 999px; text-decoration: none; color: var(--text); font: 600 .78rem var(--font-body); letter-spacing: .06em; text-transform: uppercase; background: transparent; cursor: pointer; }
.chip:hover { background: var(--text); color: var(--bg); }
.chip[aria-current="true"] { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field legend { font: 600 .72rem var(--font-body); letter-spacing: .1em; text-transform: uppercase; }
.field .hint { font-size: .84rem; color: var(--muted); } .surface .field .hint, .panel .field .hint, .finder .field .hint { color: var(--muted-strong); }
input[type=text], input[type=search], input[type=email], input[type=password], input[type=url], input[type=date], input[type=time], input[type=number], input[type=datetime-local], select, textarea {
  font: inherit; font-size: 1rem; color: var(--text); background: #fff; border: 1px solid #6f6675; border-radius: var(--radius); padding: 10px 12px; min-height: 46px; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); }
textarea { min-height: 120px; resize: vertical; }
select { appearance: none; -webkit-appearance: none; padding-right: 38px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23211D24' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.loc-form select { background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23FFF9EE' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 4px center; padding-right: 22px; }
input[type=color] { min-height: 46px; padding: 4px; width: 100%; background: #fff; border: 1px solid #6f6675; }
input[type=checkbox], input[type=radio] { width: 22px; height: 22px; accent-color: var(--primary); flex: none; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check label { font-weight: 400; letter-spacing: 0; text-transform: none; font-size: 1rem; }
.err { color: #9C1C2B; font-weight: 600; font-size: .9rem; }
input[aria-invalid=true], select[aria-invalid=true], textarea[aria-invalid=true] { border-color: #9C1C2B; }
.notice { border-left: 3px solid var(--secondary); background: var(--surface); padding: 16px 20px; margin: 0 0 24px; }
.notice.warn { border-color: #B26B00; background: #FFF1CC; } .notice.bad { border-color: #9C1C2B; background: #FCE4E7; } .notice.ok { border-color: #1E7A44; background: #E3F5EA; }
.notice p:last-child { margin: 0; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 18px 0; }
.view-toggle { display: inline-flex; border: 1px solid var(--rule-strong); border-radius: 999px; overflow: hidden; }
.view-toggle a { padding: 8px 20px; text-decoration: none; color: var(--text); font: 600 .74rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; min-height: 40px; display: inline-flex; align-items: center; }
.view-toggle a[aria-current="true"] { background: var(--text); color: var(--bg); }
.pager { display: flex; gap: 10px; align-items: center; justify-content: center; margin: 56px 0 0; flex-wrap: wrap; }

/* ---------- calendar month view ---------- */
.cal { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal caption { font: 400 clamp(1.6rem, 3vw, 2.2rem) var(--font-display); text-align: left; padding: 0 0 14px; letter-spacing: -.02em; }
.cal th { font: 600 .68rem var(--font-body); text-transform: uppercase; letter-spacing: .16em; padding: 10px 6px; border-bottom: 1px solid var(--rule-strong); text-align: left; }
.cal td { vertical-align: top; height: 118px; border: 1px solid var(--rule); border-top: 0; padding: 6px 8px; background: #fff; }
.cal td.off { background: transparent; color: var(--muted); }
.cal td.today { box-shadow: inset 0 0 0 2px var(--secondary); }
.cal .d { font: 500 .95rem var(--font-display); }
.cal ul { list-style: none; margin: 4px 0 0; padding: 0; }
.cal li a { display: block; font-size: .74rem; line-height: 1.25; padding: 4px 6px; margin-bottom: 3px; background: var(--primary); color: var(--on-primary); text-decoration: none; border-radius: 1px; overflow: hidden; text-overflow: ellipsis; }
.cal li a.cx { background: #9C1C2B; text-decoration: line-through; }
.cal-nav { display: flex; gap: 10px; margin: 0 0 14px; align-items: center; flex-wrap: wrap; }
@media (max-width: 700px) {
  .cal, .cal thead, .cal tbody, .cal tr, .cal td { display: block; }
  .cal thead { display: none; } .cal td { height: auto; min-height: 0; border-width: 0 0 1px; padding: 10px 4px; } .cal td.empty { display: none; }
  .cal td .d::after { content: attr(data-dow); font: 500 .8rem var(--font-body); margin-left: 8px; color: var(--muted); }
  .cal li a { font-size: .95rem; padding: 8px 10px; }
}

/* ---------- event detail ---------- */
.crumbs { font-size: .8rem; margin: 22px auto 0; letter-spacing: .02em; } .crumbs ol { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0; flex-wrap: wrap; } .crumbs li + li::before { content: '/'; margin-right: 8px; color: var(--muted); }
.crumbs a { color: var(--muted-strong); }
.ev-hero { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 80px); padding: 28px 0 clamp(48px, 6vw, 80px); align-items: start; }
.ev-hero h1 { font-size: clamp(2.4rem, 4.6vw, 4.2rem); margin-top: 18px; }
.ev-hero .ph { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); }
.ev-hero .ph img { width: 100%; height: 100%; object-fit: cover; }
.ev-when { font: 400 clamp(1.25rem, 2vw, 1.6rem)/1.3 var(--font-display); margin: 0 0 6px; }
.facts { border-top: 1px solid var(--rule-strong); padding: 0; margin: 0; }
.facts div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font: 600 .66rem var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted-strong); padding-top: 4px; }
.facts dd { margin: 0; font-weight: 500; }
.ev-body { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 96px); padding-bottom: clamp(56px, 8vw, 112px); }
@media (max-width: 900px) { .ev-hero, .ev-body { grid-template-columns: 1fr; } .ev-hero .ph { margin: 0 calc(var(--gutter) * -1); aspect-ratio: 4 / 3; } }
.prose { max-width: 66ch; font-size: 1.1rem; } .prose h2 { font-size: 1.9rem; margin-top: 1.7em; } .prose h3 { margin-top: 1.4em; } .prose ul, .prose ol { padding-left: 1.3em; } .prose li { margin-bottom: .45em; }
.prose blockquote { border-left: 2px solid var(--accent); margin: 1.8em 0; padding: .1em 0 .1em 1.4em; font: italic 400 1.5rem/1.35 var(--font-display); }
.panel { background: var(--surface); padding: 24px; border-radius: var(--radius); margin-bottom: 24px; }
.panel h3 { font-size: 1.15rem; }
.addcal { position: relative; display: inline-block; }
.addcal > summary { list-style: none; cursor: pointer; } .addcal > summary::-webkit-details-marker { display: none; }
.addcal-menu { position: absolute; z-index: 20; left: 0; top: calc(100% + 8px); min-width: 280px; background: #fff; border: 1px solid var(--rule-strong); padding: 6px; box-shadow: 0 18px 40px -12px rgba(33, 29, 36, .35); }
.addcal-menu a { display: block; padding: 12px 14px; text-decoration: none; color: var(--text); font-weight: 500; min-height: 44px; }
.addcal-menu a:hover, .addcal-menu a:focus-visible { background: var(--surface); }
.addcal-menu p { font-size: .8rem; color: var(--muted); margin: 8px 14px 6px; }

/* ---------- article ---------- */
.article-head { max-width: 940px; padding: 36px 0 12px; }
.article-head h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); }
.byline { color: var(--muted); font: 500 .8rem var(--font-body); letter-spacing: .03em; }
.article-hero { max-width: 1120px; margin: 24px 0 40px; position: relative; aspect-ratio: 16 / 8; overflow: hidden; background: var(--surface); }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.source-box { border: 1px solid var(--rule-strong); background: var(--surface); padding: 26px; max-width: 66ch; margin: 28px 0; }
.source-box .btn { margin-top: 6px; }
.stale { background: #FFF1CC; border-left: 3px solid #B26B00; padding: 12px 16px; margin: 16px 0; max-width: 66ch; }

/* ---------- footer ---------- */
.footer { background: var(--primary); color: var(--on-primary); padding: clamp(56px, 7vw, 96px) 0 32px; }
.footer a { color: var(--on-primary); text-decoration-color: rgba(255, 249, 238, .4); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: clamp(28px, 5vw, 80px); }
.footer img { width: 200px; height: auto; margin-bottom: 20px; }
.footer p { font: 400 1.05rem/1.55 var(--font-display); max-width: 40ch; opacity: .92; }
.footer ul { list-style: none; margin: 0; padding: 0; } .footer li { margin-bottom: 10px; font-size: .92rem; }
.footer h2 { font: 600 .66rem var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.footer small { display: block; margin-top: 56px; padding-top: 20px; border-top: 1px solid rgba(255, 249, 238, .2); opacity: .8; font-size: .78rem; letter-spacing: .02em; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- admin / portal (working surfaces: calm, dense, legible) ---------- */
.desk { display: grid; grid-template-columns: 230px 1fr; gap: 40px; padding: 36px 0 72px; }
.desk-nav { display: flex; flex-direction: column; gap: 1px; position: sticky; top: 12px; align-self: start; }
.desk-nav a { padding: 10px 14px; text-decoration: none; color: var(--text); font-weight: 500; font-size: .92rem; border-left: 2px solid transparent; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.desk-nav a:hover { background: var(--surface); }
.desk-nav a[aria-current="page"] { border-left-color: var(--secondary); background: var(--surface); font-weight: 600; }
.desk-nav .count { background: var(--accent); color: var(--text); font-weight: 700; font-size: .72rem; padding: 2px 8px; border-radius: 10px; }
@media (max-width: 860px) { .desk { grid-template-columns: 1fr; } .desk-nav { position: static; flex-direction: row; flex-wrap: wrap; } }
.desk h1, .is-account h1 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
table.data { width: 100%; border-collapse: collapse; font-size: .94rem; background: #fff; }
table.data th { text-align: left; font: 600 .66rem var(--font-body); text-transform: uppercase; letter-spacing: .14em; padding: 12px 12px; border-bottom: 1px solid var(--rule-strong); background: var(--bg); }
table.data td { padding: 14px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.table-scroll { overflow-x: auto; }
.form-grid { display: grid; gap: 20px; max-width: 780px; }
.form-grid.two { grid-template-columns: 1fr 1fr; } @media (max-width: 620px) { .form-grid.two { grid-template-columns: 1fr; } }
fieldset { border: 1px solid var(--rule-strong); padding: 20px 22px 22px; margin: 0 0 26px; border-radius: var(--radius); } legend { font: 500 1.3rem var(--font-display); padding: 0 10px; }
details.more { border: 1px dashed #8b8290; padding: 12px 18px; margin-bottom: 26px; } details.more > summary { cursor: pointer; font-weight: 600; min-height: 38px; display: flex; align-items: center; }
.status { display: inline-block; font: 600 .62rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; padding: 5px 8px; border-radius: 1px; background: var(--surface); border: 1px solid var(--muted-strong); color: var(--text); }
.status.published { background: #E3F5EA; border-color: #1E7A44; } .status.submitted, .status.pending { background: #FFF1CC; border-color: #B26B00; } .status.rejected, .status.cancelled, .status.changes_requested, .status.failed { background: #FCE4E7; border-color: #9C1C2B; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.diff { display: grid; grid-template-columns: 140px 1fr 1fr; font-size: .9rem; border: 1px solid var(--rule-strong); } .diff > * { padding: 10px 12px; border-bottom: 1px solid var(--rule); } .diff .h { font-weight: 700; background: var(--surface); } .diff .old { background: #FCE4E7; } .diff .new { background: #E3F5EA; }
.stack > * + * { margin-top: 20px; }
.empty { border: 1px dashed #8b8290; padding: 48px 28px; text-align: center; }
.empty h3 { margin-bottom: .3em; }
.embed-mode .masthead, .embed-mode .footer, .embed-mode .crumbs { display: none; }
.embed-mode { background: transparent; }
.embed-mode .mode-banner { font-size: .72rem; padding: 4px 8px; }
.embed-mode .section { padding: 24px 0; }
.embed-mode .wrap { padding: 0 6px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* ---------- mobile nav ---------- */
@media (max-width: 1000px) {
  .mast-bar { justify-content: space-between; }
  .brand img { height: 56px; }
  .btn.nav-toggle { display: inline-flex; margin-left: auto; }
  .mast-menu { display: none; flex: 1 1 100%; flex-direction: column; align-items: stretch; padding-bottom: 14px; border-top: 1px solid rgba(255, 249, 238, .16); }
  .mast-menu.open { display: flex; }
  .nav { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(255, 249, 238, .14); }
  .mast-util { justify-content: space-between; padding-top: 8px; }
}

/* Full-bleed hero: image edge to edge, text on top over a protective gradient (cream text on the dark side ≥ 4.5:1) */
.hero-full { position: relative; min-height: clamp(520px, calc(100vh - 150px), 860px); display: flex; align-items: flex-end; overflow: hidden; background: var(--primary); color: var(--on-primary); }
.hero-full > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 14, 24, .5) 0%, rgba(20, 14, 24, .38) 30%, rgba(20, 14, 24, .12) 55%, rgba(20, 14, 24, 0) 72%), linear-gradient(0deg, rgba(20, 14, 24, .84) 0%, rgba(20, 14, 24, .7) 24%, rgba(20, 14, 24, .3) 47%, rgba(20, 14, 24, 0) 65%); }
.hero-overlay { position: relative; width: 100%; padding-top: 80px; padding-bottom: clamp(36px, 5vw, 64px); }
.hero-copy { max-width: 600px; }
.hero-copy .kicker { color: var(--accent); }
.hero-copy h1 { font-size: clamp(2.5rem, 5vw, 4.6rem); color: var(--on-primary); margin: 0 0 .35em; text-shadow: 0 2px 24px rgba(27, 11, 43, .35); }
.hero-copy .lede { color: var(--on-primary); max-width: 40ch; margin: 0 0 1.6em; text-shadow: 0 1px 14px rgba(20, 14, 24, .5); }
.hero-copy .kicker { text-shadow: 0 1px 10px rgba(20, 14, 24, .6); }
.hero-copy .btn-ghost { border-color: var(--on-primary); color: var(--on-primary); }
.hero-copy .btn-ghost:hover { background: var(--on-primary); color: var(--primary); }
.hero-full .credit { position: absolute; right: var(--gutter); bottom: 14px; left: auto; background: rgba(27, 11, 43, .55); color: #fff; }
@media (max-width: 900px) { .hero-full { min-height: 620px; } .hero-shade { background: linear-gradient(0deg, rgba(20, 14, 24, .86) 0%, rgba(20, 14, 24, .72) 42%, rgba(20, 14, 24, .12) 80%, rgba(20, 14, 24, 0) 100%); } .hero-full .credit { right: auto; left: var(--gutter); bottom: 10px; } .hero-overlay { padding-bottom: 56px; } }

/* ---------- rich-text editor (CMS and organizer forms) ---------- */
.rte { border: 1px solid #6f6675; border-radius: var(--radius); background: #fff; max-width: 860px; }
.rte:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(75, 36, 107, .18); }
.rte-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; padding: 6px 8px; background: var(--surface); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 5; border-radius: var(--radius) var(--radius) 0 0; }
.rte-group { display: flex; gap: 2px; padding-right: 8px; margin-right: 2px; border-right: 1px solid var(--rule-strong); }
.rte-group:last-child { border-right: 0; padding-right: 0; margin-right: 0; }
.rte-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid transparent; border-radius: var(--radius); background: transparent; color: var(--text); cursor: pointer; }
.rte-btn svg { display: block; pointer-events: none; }
.rte-btn:hover { background: #fff; border-color: var(--rule-strong); }
.rte-btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 1px; }
.rte-btn[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.rte-link { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; padding: 10px 12px; background: #FFF1CC; border-bottom: 1px solid var(--rule); }
.rte-link[hidden] { display: none; }
.rte-link label { display: flex; flex-direction: column; gap: 4px; font: 600 .72rem var(--font-body); letter-spacing: .08em; text-transform: uppercase; flex: 1 1 260px; }
.rte-area { min-height: 240px; padding: 16px 18px; font-size: 1.05rem; line-height: 1.65; outline: none; max-width: none; }
.rte-area p, .rte-area h2, .rte-area h3 { margin-top: 0; }
.rte-area a { color: var(--link); }
/* Event image upload: live crop preview (listings show every event image in this same 4:3 frame) */
.crop-frame { max-width: 360px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); border: 1px solid var(--rule-strong); border-radius: var(--radius); }
.crop-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
#cover-check.warn { color: #7A4A00; font-weight: 600; } #cover-check.bad { color: #9C1C2B; font-weight: 600; } #cover-check.ok { color: #1E6B3C; font-weight: 600; }
/* Event image placeholder and verification labels */
.ph .img-missing { position: absolute; inset: 0; z-index: 0; display: grid; place-items: center; background: linear-gradient(135deg, #4B246B 0%, #7B4FA0 55%, #E8A33D 140%); color: #fff; }
.ph .img-missing span { font: 600 .8rem var(--font-body); letter-spacing: .22em; text-transform: uppercase; opacity: .92; padding: 0 12px; text-align: center; }
.ph img.remote { position: relative; z-index: 1; }
.verify { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin: 4px 0 14px; font-size: .92rem; }
.verify .vbadge { font: 700 .7rem var(--font-body); letter-spacing: .14em; text-transform: uppercase; padding: 4px 9px; border-radius: 3px; border: 1px solid currentColor; }
.verify.v-organizer_verified .vbadge, .verify.v-nudistiq_verified .vbadge { color: #1E6B3C; } .verify.v-community .vbadge { color: #7A4A00; } .verify.v-unverified .vbadge { color: #9C1C2B; }
.credit-line { font-size: .88rem; color: var(--muted-strong); margin: 0 0 14px; } .claim-box { border: 1px dashed var(--rule-strong); padding: 14px 16px; margin: 16px 0; border-radius: var(--radius); }
.landing-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }

/* Event finder: compact layout — the main choices in one row, the rest behind "More filters". */
.finder { padding: clamp(14px, 2vw, 22px); gap: 12px; }
.finder [hidden] { display: none !important; }
.finder .chip { min-height: 34px; padding: 4px 14px; font-size: .72rem; }
.finder .filters { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 12px; }
.finder .field { gap: 4px; }
.finder input[type=search], .finder input[type=date], .finder select { min-height: 40px; padding: 6px 10px; font-size: .95rem; }
.finder .row-actions { gap: 10px; }
.finder .btn { min-height: 40px; padding: 8px 20px; }
.more-filters > summary { cursor: pointer; font: 600 .78rem var(--font-body); letter-spacing: .08em; text-transform: uppercase; padding: 4px 0 10px; list-style-position: inside; }
.more-filters > summary .muted { text-transform: none; letter-spacing: 0; font-weight: 400; }

/* Illustration shown when an event has no picture of its own; sits under a remote image if one loads. */
.ph img.ph-fallback.under { position: absolute; inset: 0; z-index: 0; }
