/*
Theme Name: Tonight in Lynn
Theme URI: https://tonightinlynn.com
Author: Tonight in Lynn
Description: Lightweight custom theme for tonightinlynn.com. Today's events first, then the weekend, then guides. Works with The Events Calendar and Yoast SEO.
Version: 1.3.1
Requires at least: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: tonightinlynn
*/

/* Layout: a dark navy header, a white "today" board with amber time numerals,
   then warm paper sections for the weekend, guides and articles. */
:root {
	--night: #0c1322; --night-2: #141d31; --night-line: #26324c; --night-ink: #f2efe8; --night-muted: #9ba6bd;
	--amber: #f2a33a; --amber-deep: #b86a0a; --amber-wash: #fdf3e4;
	--white: #ffffff; --paper: #f6f3ec; --ink: #151b28; --muted: #5d6577; --line: #e4e1da; --sand: #f3ead9;
	--serif: "DM Serif Display", Georgia, "Times New Roman", serif;
	--cond: "Archivo", "Arial Narrow", system-ui, sans-serif;
	--sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
	--max: 1160px;
	--narrow: 700px;
	color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
img, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { text-wrap: balance; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--amber); color: var(--night); padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 12px; }
[hidden] { display: none !important; }

.gutter { padding-inline: max(16px, calc((100% - var(--max)) / 2)); }
.narrow { max-width: var(--narrow); margin-inline: auto; }
.label { font-family: var(--cond); font-stretch: 80%; font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.muted { color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--sans); font-weight: 700; font-size: .92rem; line-height: 1.2; border-radius: 999px; padding: 11px 18px; border: 0; cursor: pointer; text-align: center; }
.btn-amber { background: var(--amber); color: var(--night); }
.btn-amber:hover { background: #f5b45c; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-ghost-light { background: transparent; color: var(--night-ink); box-shadow: inset 0 0 0 1.5px var(--night-line); }
.btn-dark { background: var(--ink); color: var(--white); }

/* ---------- Header ---------- */
.site-head { background: var(--night); color: var(--night-ink); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
.admin-bar .site-head { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-head { top: 0; } }
.site-head .in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.site-head .logo img { height: 42px; width: auto; }
.nav { display: flex; align-items: center; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; font-weight: 600; font-size: .95rem; }
.nav-list a { color: var(--night-muted); }
.nav-list a:hover, .nav-list .current-menu-item a { color: var(--night-ink); }
.nav-cta { display: none; }
.menu-btn { display: none; background: none; border: 1px solid var(--night-line); color: var(--night-ink); border-radius: 10px; padding: 8px 14px; font: 600 .88rem var(--sans); cursor: pointer; }
@media (max-width: 900px) {
	.site-head .logo img { height: 36px; }
	.head-cta { display: none; }
	.menu-btn { display: inline-flex; }
	.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--night); border-top: 1px solid var(--night-line); padding: 8px 16px 20px; flex-direction: column; align-items: stretch; gap: 12px; }
	.nav-open .nav { display: flex; }
	.nav-list { flex-direction: column; gap: 0; font-size: 1.05rem; }
	.nav-list a { display: block; padding: 12px 0; border-bottom: 1px solid var(--night-line); color: var(--night-ink); }
	.nav-cta { display: inline-flex; }
}

/* ---------- Today board (homepage, event header) ---------- */
.today { background: var(--white); color: var(--ink); padding-block: 40px 52px; border-bottom: 1px solid var(--line); background-image: radial-gradient(ellipse 60% 70% at 92% 0%, rgba(242, 163, 58, .16), transparent 70%); }
.today .date { color: var(--amber-deep); }
.today h1, .page-head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.5rem, 7vw, 4.6rem); line-height: 1; margin: .25em 0 0; letter-spacing: -.01em; }
.today h1 em { color: var(--amber-deep); }
.sub { color: var(--muted); margin: .8em 0 0; max-width: 52ch; }
.sub a, .empty a, .prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 3px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.chip { font: 600 .86rem var(--sans); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; background: transparent; cursor: pointer; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.on { background: var(--ink); color: var(--white); border-color: var(--ink); }

.board { margin-top: 26px; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto; gap: 6px 22px; align-items: center; padding-block: 18px; border-bottom: 1px solid var(--line); }
.row time { font-family: var(--cond); font-stretch: 68%; font-weight: 800; font-size: 2.4rem; line-height: 1; color: var(--amber-deep); font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; }
.row time small { font-size: .9rem; font-weight: 700; letter-spacing: .06em; margin-left: 3px; text-transform: uppercase; }
.row h3 { font-family: var(--sans); font-weight: 700; font-size: 1.15rem; margin: 0; line-height: 1.25; }
.row p { margin: 3px 0 0; color: var(--muted); font-size: .92rem; }
.row:hover h3 { text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 3px; }
.tag { font-family: var(--cond); font-stretch: 80%; font-weight: 700; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; white-space: nowrap; }
.tag.free { color: var(--amber-deep); border-color: rgba(184, 106, 10, .4); background: var(--amber-wash); }
.board-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.board-foot a.more { font-weight: 700; border-bottom: 2px solid var(--amber); }
.paper .board { background: transparent; }
@media (max-width: 640px) {
	.today { padding-block: 28px 40px; }
	.row { grid-template-columns: 4.6rem minmax(0, 1fr); padding-block: 15px; }
	.row time { font-size: 1.9rem; }
	.row .tag { grid-column: 2; justify-self: start; }
}

.empty { margin-top: 24px; padding: 20px 22px; border: 1px dashed #d3cdc0; border-radius: 12px; background: var(--paper); max-width: 680px; }
.empty p { margin: 0; }
.paper .empty { background: var(--white); }

/* ---------- Sections on paper ---------- */
.paper { padding-block: 56px 8px; }
.paper:last-of-type { padding-bottom: 56px; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.sec-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 5vw, 3rem); line-height: 1; margin: .2em 0 0; }
.sec-head .label { color: var(--amber-deep); }
.sec-head > a { font-weight: 700; border-bottom: 2px solid var(--amber); }

.weekend { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.weekend.solo { grid-template-columns: 1fr; }
/* No roundup to feature: lay Friday/Saturday/Sunday side by side instead of one half-width column. */
.weekend.solo .days { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); column-gap: 36px; }
@media (max-width: 860px) { .weekend { grid-template-columns: 1fr; } }
.feature { position: relative; border-radius: 16px; overflow: hidden; background: var(--night); color: var(--night-ink); min-height: 360px; display: flex; align-items: end; }
.feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 19, 34, 0) 25%, rgba(12, 19, 34, .92) 100%); }
.feature .txt { position: relative; z-index: 1; padding: 26px; display: grid; gap: 8px; }
.feature .label { color: var(--amber); }
.feature h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 3.6vw, 2.3rem); line-height: 1.05; margin: 0; }
.feature p { margin: 0; color: #d5d9e3; max-width: 52ch; }
.days { display: grid; gap: 22px; }
.day h4 { margin: 0 0 6px; font-family: var(--cond); font-stretch: 80%; font-weight: 800; font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; gap: 10px; align-items: baseline; }
.day h4 span { color: var(--ink); }
.li { display: grid; grid-template-columns: 4.8rem minmax(0, 1fr); gap: 12px; padding-block: 11px; border-bottom: 1px solid var(--line); }
.li time { font-family: var(--cond); font-stretch: 72%; font-weight: 800; font-size: 1.05rem; color: var(--amber-deep); font-variant-numeric: tabular-nums; padding-top: 1px; white-space: nowrap; }
.li time.multi { white-space: normal; line-height: 1.15; }
.li time.multi span { display: block; font-size: .78em; letter-spacing: .04em; text-transform: uppercase; }
.row time.multi { font-size: 1.7rem; }
.row time.multi small { display: block; margin: 4px 0 0; }
.li b { display: block; font-weight: 700; line-height: 1.3; }
.li small { color: var(--muted); font-size: .86rem; display: block; }
.li:hover b { text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 3px; }
.narrow-list { gap: 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); column-gap: 40px; }

.guides { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.guides.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .guides, .guides.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .guides, .guides.three { grid-template-columns: 1fr; } }
.guide { display: grid; gap: 10px; align-content: start; }
.ph { display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--night); }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.guide:hover .ph img, .post-card:hover .ph img { transform: scale(1.04); }
.ph-fallback { width: 100%; height: 100%; display: grid; place-items: center; background: var(--night); }
.ph-fallback img { width: 40%; height: auto; object-fit: contain; opacity: .85; }
.guide .label { color: var(--amber-deep); font-size: .7rem; }
.guide h3 { margin: 0; font-family: var(--sans); font-weight: 700; font-size: 1.08rem; line-height: 1.3; }
@media (prefers-reduced-motion: reduce) { .ph img { transition: none; } }

/* ---------- Bands ---------- */
.bands { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; padding-block: 56px 64px; }
@media (max-width: 860px) { .bands { grid-template-columns: 1fr; } }
.band { border-radius: 16px; padding: 30px; display: grid; gap: 12px; align-content: start; }
.band h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 3.4vw, 2.1rem); line-height: 1.05; margin: 0; }
.band p { margin: 0; max-width: 46ch; }
.band.mail { background: var(--night); color: var(--night-ink); }
.band.mail p { color: var(--night-muted); }
.band.mail .label { color: var(--amber); }
.band.submit { background: var(--sand); color: var(--ink); }
.band.submit .label { color: var(--amber-deep); }
.band-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.signup form { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
.signup p { margin: 0; }
.signup input[type="email"] { flex: 1 1 200px; min-width: 0; width: 100%; border-radius: 999px; border: 1px solid var(--night-line); background: var(--night-2); color: var(--night-ink); padding: 11px 16px; font: 500 .95rem var(--sans); }
.signup button, .signup input[type="submit"] { background: var(--amber); color: var(--night); border: 0; border-radius: 999px; padding: 11px 18px; font: 700 .92rem var(--sans); cursor: pointer; }

/* ---------- Page heads, listings ---------- */
.page-head { background: var(--white); padding-block: 44px 40px; border-bottom: 1px solid var(--line); background-image: radial-gradient(ellipse 60% 70% at 92% 0%, rgba(242, 163, 58, .12), transparent 70%); }
.page-head .label { color: var(--amber-deep); }
.page-head h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 26px; }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { display: grid; gap: 12px; align-content: start; }
.post-card .body { display: grid; gap: 6px; }
.post-card .meta { display: flex; gap: 12px; align-items: baseline; font-size: .85rem; color: var(--muted); }
.post-card .meta .label { color: var(--amber-deep); font-size: .7rem; }
.post-card h2 { margin: 0; font-size: 1.2rem; line-height: 1.3; font-weight: 700; }
.post-card h2 a:hover { text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 3px; }
.post-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.pagination, .pager { margin-top: 40px; }
.pagination .nav-links, .pager { display: flex; gap: 8px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.pagination .page-numbers { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; }
.pagination .page-numbers.current { background: var(--ink); color: var(--white); border-color: var(--ink); }
.pager a { font-weight: 700; border-bottom: 2px solid var(--amber); }
.search-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; max-width: 520px; }
.search-form input[type="search"] { flex: 1 1 220px; min-width: 0; border: 1px solid var(--line); border-radius: 999px; padding: 11px 16px; font: 500 1rem var(--sans); background: var(--white); color: var(--ink); }

/* Events calendar list */
.cal { display: grid; gap: 40px; }
.cal-date { margin: 0; font-family: var(--cond); font-stretch: 80%; font-weight: 800; font-size: 1.05rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; gap: 10px; align-items: baseline; }
.cal-date span { color: var(--ink); }
.cal .board { margin-top: 10px; }

/* ---------- Articles ---------- */
.article-head { background: var(--white); padding-block: 44px 28px; }
.article-head .label { color: var(--amber-deep); }
.article-head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 5.5vw, 3.5rem); line-height: 1.04; margin: .3em 0 0; }
.dek { font-size: 1.2rem; color: var(--muted); margin: .7em 0 0; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 18px; font-size: .9rem; color: var(--muted); }
.byline span:first-child { color: var(--ink); font-weight: 600; }
.hero-img { margin: 0; background: var(--white); padding-bottom: 8px; }
.hero-img img { width: 100%; max-height: 640px; object-fit: cover; border-radius: 14px; }
.hero-img figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.prose { background: var(--white); padding-block: 28px 56px; }
.page-body { padding-top: 36px; }
.prose .narrow > * { margin-block: 0 1.1em; }
.prose p, .prose li { font-size: 1.08rem; line-height: 1.72; text-align: left; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 4vw, 2.2rem); line-height: 1.1; margin-top: 1.6em; }
.prose h3 { font-size: 1.3rem; line-height: 1.25; margin-top: 1.5em; }
.prose h4 { font-size: 1.1rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose blockquote { margin-inline: 0; padding-left: 20px; border-left: 3px solid var(--amber); font-family: var(--serif); font-size: 1.35rem; line-height: 1.35; }
.prose img { border-radius: 10px; }
.prose figure { margin-inline: 0; }
.prose figcaption, .prose .wp-element-caption { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose .alignwide { max-width: min(1000px, 100vw - 32px); margin-inline: calc((min(1000px, 100vw - 32px) - 100%) / -2); }
.prose .wp-block-button__link { background: var(--amber); color: var(--night); border-radius: 999px; font-weight: 700; text-decoration: none; padding: 11px 18px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }
.share { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); }
.share .label { color: var(--muted); }
.share a, .share button { font: 700 .92rem var(--sans); color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; border-bottom: 2px solid var(--amber); text-decoration: none; }

/* ---------- Single event ---------- */
.event-head .back { color: var(--muted); display: inline-block; margin-bottom: 18px; }
.past-note { margin: 0 0 14px; display: inline-block; background: var(--amber-wash); color: var(--amber-deep); font-weight: 600; font-size: .9rem; padding: 6px 12px; border-radius: 8px; }
.event-grid { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 28px; align-items: start; }
.when-block { display: grid; justify-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 12px 8px 14px; background: var(--white); }
.when-block .m { font-family: var(--cond); font-stretch: 80%; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--amber-deep); }
.when-block .dnum { font-family: var(--cond); font-stretch: 68%; font-weight: 800; font-size: 3.6rem; line-height: 1; }
.when-block .dow { font-size: .8rem; color: var(--muted); }
.event-head h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); }
.facts { margin: 22px 0 0; display: grid; gap: 10px; }
.facts div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 12px; }
.facts dt { font-family: var(--cond); font-stretch: 80%; font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.facts dd { margin: 0; font-weight: 600; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
@media (max-width: 640px) {
	.event-grid { grid-template-columns: 1fr; gap: 16px; }
	.when-block { grid-template-columns: auto auto auto; gap: 10px; justify-content: start; align-items: baseline; padding: 8px 14px; justify-self: start; }
	.when-block .dnum { font-size: 1.6rem; }
	.facts div { grid-template-columns: 5.5rem minmax(0, 1fr); }
}
/* Hide The Events Calendar's own chrome that the theme template replaces. */
.tribe-events-pg-template { max-width: none !important; padding: 0 !important; margin: 0 !important; }
.tribe-events-before-html:empty, .tribe-events-after-html:empty { display: none; }

/* ---------- Footer ---------- */
.site-foot { background: var(--night); color: var(--night-muted); padding-block: 44px 32px; font-size: .92rem; }
.site-foot .cols { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 760px) { .site-foot .cols { grid-template-columns: 1fr 1fr; } .site-foot .about { grid-column: 1 / -1; } }
.site-foot .logo img { height: 40px; width: auto; margin-bottom: 12px; }
.site-foot .about p { margin: 0; max-width: 36ch; }
.foot-h { margin: 0 0 10px; color: var(--night-ink); font-family: var(--cond); font-stretch: 80%; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; }
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-list a:hover { color: var(--night-ink); }
.site-foot .legal { border-top: 1px solid var(--night-line); margin-top: 32px; padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .82rem; }

/* ===========================================================================
   Homepage v2: separated header, news/events band, category colors, tiles.
   =========================================================================== */
.c-music { --c: #c13a7a; } .c-arts { --c: #5a49c9; } .c-family { --c: #17836a; } .c-food { --c: #c2561a; }
.c-community { --c: #2b67b3; } .c-outdoors { --c: #3e7a35; } .c-health { --c: #0f7f8c; } .c-classes { --c: #8a5a14; } .c-city { --c: #4b5a75; }
/* News accents, from the social card template's per-topic colors. */
.c-need { --c: #c8452f; --s1: #ff6b5b; --s2: #ffb36b; } .c-police { --c: #b23a48; --s1: #ff5e6c; --s2: #ff9d7a; }
.c-school { --c: #2f63b8; --s1: #3b82f6; --s2: #7cc4ff; } .c-transit { --c: #137a7f; --s1: #2dd4bf; --s2: #7dd3fc; }
.scard.c-community { --s1: #3ddc84; --s2: #9be15d; } .scard.c-city { --s1: #8b7bff; --s2: #c084fc; } .scard.c-food { --s1: #ff9f43; --s2: #ffd166; }

.site-head { background: rgba(7, 11, 20, .95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(242, 163, 58, .45); box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .6); }

.topband { color: #fff; padding-block: 22px 38px; position: relative; overflow: hidden;
	background: radial-gradient(90% 70% at 15% 0%, rgba(92, 120, 190, .22), transparent 60%), linear-gradient(180deg, #172242, #121a30 60%, var(--night)); }
.topband .label { color: var(--amber); }
.mhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-block: 14px 14px; }
.mhead .count { font-family: var(--cond); font-weight: 700; font-size: .85rem; color: #8f99ae; font-variant-numeric: tabular-nums; }
.mhead .more { font-weight: 700; font-size: .85rem; color: #fff; border-bottom: 2px solid var(--amber); }
.hero { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); align-items: start; }
.hero.solo { grid-template-columns: minmax(0, 1fr); }
.side { border-left: 1px solid rgba(255, 255, 255, .12); padding-left: clamp(20px, 2.5vw, 34px); }
.slides { display: grid; }
.slide { grid-area: 1 / 1; display: grid; gap: 18px; align-content: start; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.slide.on { opacity: 1; visibility: visible; }

/* News card (social card template, widened). */
.scard { position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 18px; min-height: clamp(360px, 34vw, 440px); padding: clamp(18px, 2.4vw, 30px); border-radius: 18px; overflow: hidden; color: #f8fafc; isolation: isolate;
	background: linear-gradient(180deg, rgba(6, 20, 38, .58), rgba(6, 20, 38, .74) 48%, rgba(7, 20, 41, .92)), radial-gradient(65% 65% at 88% 88%, rgba(79, 47, 131, .32), transparent), var(--photo) center / cover, #07182b; }
.contours { position: absolute; right: -4%; bottom: 8%; width: 70%; color: #7ca6e8; opacity: .18; z-index: -1; }
.stop { display: flex; justify-content: space-between; align-items: start; }
.stop img { height: clamp(34px, 3.4vw, 46px); width: auto; filter: drop-shadow(0 6px 14px rgba(0, 8, 20, .4)); }
.stop time { font-weight: 700; font-size: .82rem; letter-spacing: .28em; }
.sbody { align-self: center; display: grid; gap: 12px; max-width: 46rem; }
.scat { font-weight: 700; font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; background: linear-gradient(90deg, var(--s1, #8b7bff), var(--s2, #c084fc)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.srule { display: block; height: 4px; border-radius: 3px; background: linear-gradient(90deg, var(--s1, #8b7bff), var(--s2, #c084fc)); }
.scard h2 { margin: 2px 0 0; font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.06; letter-spacing: -.02em; }
.scard p { margin: 0; font-size: clamp(.95rem, 1.3vw, 1.1rem); color: #dde3ee; max-width: 40ch; }
.sfoot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid rgba(248, 250, 252, .35); font-size: .9rem; }
.stag { font-weight: 700; font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; padding: 8px 12px; border-radius: 8px; border: 1px solid rgba(124, 166, 232, .35); background: rgba(10, 29, 53, .6); white-space: nowrap; }
.scard:hover h2 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.sactions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Event slide (fallback when there's no recent news). */
.art { position: relative; display: block; aspect-ratio: 2 / 1; border-radius: 18px; overflow: hidden; background: var(--night-2); max-width: 100%; }
.art::before { content: ""; position: absolute; inset: -40px; background: var(--img) center / cover; filter: blur(30px) saturate(1.3); opacity: .55; }
.art img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.eyebrow { display: flex; align-items: center; gap: 8px; font-family: var(--cond); font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #c9d0de; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.info h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 2.6vw, 2.5rem); line-height: 1.05; margin: 10px 0 8px; }
.blurb { color: #c9d0de; margin: 0 0 14px; max-width: 52ch; font-size: .95rem; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 0 0 16px; }
.facts div { display: flex; gap: 8px; align-items: baseline; }
.facts dt { font-family: var(--cond); font-weight: 800; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #8f99ae; }
.facts dd { margin: 0; font-weight: 600; }
.credit { margin: 10px 0 0; font-size: .75rem; color: #7d879b; }

.controls { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.bars { display: flex; gap: 6px; flex: 1; }
.bar { flex: 1; height: 4px; padding: 0; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .18); cursor: pointer; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--amber); }
.bar.done span { width: 100%; }
.bar.on span { animation: til-fill var(--dur, 7s) linear forwards; }
.topband.paused .bar.on span { animation-play-state: paused; }
@keyframes til-fill { to { width: 100%; } }
.arrow { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .3); background: transparent; color: #fff; font-size: 1.1rem; cursor: pointer; }
.arrow:hover { background: rgba(255, 255, 255, .1); }

.evlist { display: grid; }
.evi { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.evi:first-child { padding-top: 4px; }
.evi img, .evi-ph { width: 108px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; }
.evi-ph { display: block; background: var(--night-2) url('assets/logo-light.png') center / 50% auto no-repeat; }
.evi div { display: grid; gap: 3px; }
.evi b { font-weight: 600; line-height: 1.3; }
.evi small { color: #aeb6c7; font-size: .82rem; line-height: 1.4; }
.evi:hover b { text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 3px; }
.ntopic { font-family: var(--cond); font-weight: 800; font-size: .68rem; line-height: 1; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--c) 55%, white); }

.tabs { display: none; }
@media (max-width: 860px) {
	.hero { grid-template-columns: minmax(0, 1fr); }
	.side { border-left: 0; padding-left: 0; }
	.tabs { display: flex; gap: 6px; padding: 4px 0 4px; }
	.tabs button { flex: 1; font: 700 .95rem var(--sans); color: #b9c1d3; background: rgba(255, 255, 255, .06); border: 0; border-radius: 999px; padding: 10px; cursor: pointer; }
	.tabs button[aria-selected="true"] { background: var(--amber); color: var(--night); }
}

/* Today board thumbnails and colored category tags. */
.row.has-thumb { grid-template-columns: 76px 6.5rem minmax(0, 1fr) auto; }
.row .thumb { width: 76px; height: 54px; object-fit: cover; border-radius: 10px; display: block; }
span.thumb { background: var(--night) url('assets/logo-light.png') center / 62% auto no-repeat; }
.tag[class*="c-"] { color: var(--c); border-color: color-mix(in srgb, var(--c) 30%, white); background: color-mix(in srgb, var(--c) 8%, white); }
@media (max-width: 640px) {
	.row.has-thumb { grid-template-columns: 60px minmax(0, 1fr); }
	.row.has-thumb .thumb { grid-row: span 2; width: 60px; height: 60px; }
	.row.has-thumb .tag { display: none; }
}

/* Find your thing. */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 12px; }
.tile { display: grid; gap: 6px; padding: 18px; border-radius: 16px; background: var(--c); color: #fff; min-height: 130px; align-content: end; transition: transform .15s ease; }
.tile:hover { transform: translateY(-3px); }
.tile b { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; line-height: 1.1; }
.tile em { font-style: normal; font-family: var(--cond); font-weight: 800; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }

@media (prefers-reduced-motion: reduce) { .slide, .tile { transition: none; } .bar.on span { animation: none; width: 100%; } }

/* Article v2: news-card header, story + rail. */
.story-head { position: relative; color: #f8fafc; padding-block: clamp(36px, 6vw, 64px) clamp(30px, 5vw, 48px); isolation: isolate;
	background: linear-gradient(180deg, rgba(6, 20, 38, .7), rgba(7, 20, 41, .94)), radial-gradient(60% 80% at 90% 100%, rgba(79, 47, 131, .35), transparent), var(--photo) center 35% / cover, #07182b; }
.story-head-in { max-width: 860px; display: grid; gap: 12px; }
.story-head .scat { justify-self: start; }
.story-head .srule { max-width: 520px; }
.story-head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 5.2vw, 3.6rem); line-height: 1.04; margin: 6px 0 0; }
.story-head .dek { margin: 0; font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: #d6dce8; max-width: 60ch; }
.story-head .byline { color: #aeb6c7; margin-top: 6px; }
.story-head .byline span:first-child { color: #fff; }
.story { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(28px, 4vw, 56px); align-items: start; background: var(--white); padding-block: 36px 56px; }
.story-main { max-width: 700px; background: transparent; padding: 0; }
.story-main > * { margin-block: 0 1.1em; }
.story-img { margin: 0 0 1.4em; }
.story-img img { width: 100%; border-radius: 14px; }
.rail { position: sticky; top: 96px; display: grid; gap: 22px; }
.rail-box { background: var(--paper); border-radius: 16px; padding: 18px 18px 8px; }
.rail-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.rail-head .label { color: var(--amber-deep); }
.rail-head a { font-size: .82rem; font-weight: 700; border-bottom: 2px solid var(--amber); }
.rail-news { display: grid; gap: 3px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rail-news:last-child { border-bottom: 0; }
.rail-news b { line-height: 1.3; font-size: .98rem; }
.rail-news time { font-size: .8rem; color: var(--muted); }
.rail-news:hover b { text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 3px; }
.rail .ntopic { color: var(--c); }
.rail .evi { border-bottom-color: var(--line); grid-template-columns: 88px minmax(0, 1fr); }
.rail .evi:last-child { border-bottom: 0; }
.rail .evi img, .rail .evi-ph { width: 88px; }
.rail .evi small { color: var(--muted); }
@media (max-width: 960px) {
	.story { grid-template-columns: minmax(0, 1fr); }
	.rail { position: static; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
}

/* Contact and Submit-an-Event forms. */
.form-page .narrow { max-width: 760px; }
.til-form { display: grid; gap: 22px; margin-top: 8px; }
.til-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; }
.til-form legend { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 10px; padding: 0; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.fgrid .full { grid-column: 1 / -1; }
.til-form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.til-form .req { color: var(--amber-deep); }
.til-form .opt { font-weight: 400; color: var(--muted); }
.til-form input[type="text"], .til-form input[type="email"], .til-form input[type="url"], .til-form input[type="date"], .til-form input[type="time"], .til-form select, .til-form textarea {
	font: 400 1rem/1.4 var(--sans); color: var(--ink); background: var(--white); border: 1.5px solid #d8d2c4; border-radius: 10px; padding: 11px 12px; width: 100%; }
.til-form input:focus, .til-form select:focus, .til-form textarea:focus { outline: 2px solid var(--amber); outline-offset: 1px; border-color: var(--amber); }
.til-form input[type="file"] { font: 400 .95rem var(--sans); padding: 10px; border: 1.5px dashed #d8d2c4; border-radius: 10px; background: var(--paper); }
.til-form .check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.til-form .check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--amber-deep); flex: none; }
.til-form button { justify-self: start; padding: 13px 26px; font-size: 1rem; }
.til-form .fine { margin: -8px 0 0; font-size: .85rem; color: var(--muted); }
.til-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-done, .form-error { padding: 16px 18px; border-radius: 12px; margin: 10px 0 18px; }
.form-done { background: #e8f5ee; border: 1px solid #b9e0c9; color: #1d5b3a; }
.form-error { background: #fdecea; border: 1px solid #f3c1bb; color: #8a2a1f; }
@media (max-width: 640px) { .fgrid { grid-template-columns: minmax(0, 1fr); } }
