/* HARC Forum. Builds on the HARC Light theme's tokens (navy, gold, sky, cards),
 * with fallbacks so it still reads under another theme. */

.hf {
	--hf-navy: var(--navy, #0b1446);
	--hf-navy-deep: var(--navy-deep, #0b0e35);
	--hf-navy-lift: var(--navy-lift, #1a2a78);
	--hf-gold: var(--gold, #f0d020);
	--hf-gold-ink: var(--gold-ink, #8a6d00);
	--hf-ink: var(--ink, #13283f);
	--hf-soft: var(--ink-soft, #4a5f76);
	--hf-line: var(--line, #cfe2f2);
	--hf-card: var(--card, #fff);
	--hf-tint: #eef6fd;
	--hf-radius: var(--radius, 14px);
	--hf-shadow: var(--shadow, 0 1px 2px rgba(14,51,88,.06), 0 8px 24px rgba(14,51,88,.08));
	--hf-head: var(--font-head, system-ui, sans-serif);
	--hf-mono: var(--font-mono, ui-monospace, monospace);
	--hf-ok: #0f6b57;
	--hf-bad: #b42318;
	--band: var(--hf-navy-lift);
	--on-band: #fff;
}

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

/* ---- shared bits ----------------------------------------------------------- */

.hf-card {
	background: var(--hf-card);
	border-radius: var(--hf-radius);
	box-shadow: var(--hf-shadow);
	padding: clamp(16px, 3vw, 28px);
}
.hf-card + .hf-card, .hf-section { margin-top: 24px; }
.hf-section__head, .hf-list-head {
	display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px;
	margin-bottom: 10px;
}
.hf-section__head h2, .hf-section > h2 { font-family: var(--hf-head); font-size: 1.35rem; margin: 0 0 10px; color: var(--hf-navy-deep); }
.hf-title { font-family: var(--hf-head); font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.15; margin: 0 0 14px; color: var(--hf-navy-deep); }
.hf-lede { font-size: 1.1rem; color: var(--hf-soft); max-width: 60ch; }
.hf-head { margin-bottom: 20px; }
.hf-muted, .hf-hint { color: var(--hf-soft); }
.hf-hint { font-size: .9375rem; margin: 4px 0 8px; }
.hf-narrow { max-width: 560px; margin: 0 auto; }
.hf-compose { max-width: 820px; }
.hf-empty { text-align: center; color: var(--hf-soft); }
.hf-empty h2 { font-family: var(--hf-head); color: var(--hf-navy-deep); margin-top: 0; }

.hf-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 10px 22px;
	border: 0; border-radius: 999px;
	background: var(--hf-navy-deep); color: #fff;
	font-family: var(--hf-head); font-weight: 600; font-size: 1rem; line-height: 1.2;
	text-decoration: none; cursor: pointer;
	transition: background .15s ease, transform .15s ease;
}
.hf-btn:hover { background: var(--hf-navy-lift); color: #fff; text-decoration: none; transform: translateY(-1px); }
.hf-btn--quiet { background: #fff; color: var(--hf-navy); box-shadow: inset 0 0 0 1.5px var(--hf-line); }
.hf-btn--quiet:hover { background: var(--hf-tint); color: var(--hf-navy); }
.hf-btn--small { min-height: 36px; padding: 6px 14px; font-size: .9rem; }
.hf-btn--block { width: 100%; }
.hf-btn.is-armed, .hf-btn-text.is-armed { background: var(--hf-bad); color: #fff; }
.hf-btn-text, .hf-linkish {
	background: none; border: 0; padding: 4px 2px; font: inherit; font-size: .9375rem;
	color: var(--hf-navy); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.hf-inline-form { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }
.hf-inline-form input[type="text"], .hf-inline-form select { width: auto; min-width: 10rem; }

.hf-chip {
	display: inline-block; padding: 1px 9px; border-radius: 999px;
	background: var(--hf-tint); color: var(--hf-navy);
	font-size: .78rem; font-weight: 700; letter-spacing: .02em; vertical-align: middle; text-decoration: none;
}
.hf-chip--new { background: var(--hf-gold); color: var(--hf-navy-deep); }
.hf-chip--pin { background: var(--hf-navy-deep); color: var(--hf-gold); }
.hf-chip--wait { background: #fff4cc; color: #6b4e00; }
.hf-chip--poll { background: #e7f6ee; color: var(--hf-ok); }
.hf-note { display: inline-block; padding: 1px 8px; border-radius: 999px; background: rgba(255,255,255,.22); font-size: .78rem; font-weight: 700; }
.hf-note--new { background: var(--hf-gold); color: var(--hf-navy-deep); }
.hf-count {
	display: inline-block; min-width: 1.4em; margin-left: 5px; padding: 0 5px; border-radius: 999px;
	background: var(--hf-gold); color: var(--hf-navy-deep); font-size: .75rem; font-weight: 700; text-align: center;
}
.hf-call { font-family: var(--hf-mono); font-weight: 600; font-size: .9em; color: var(--hf-navy-lift); text-decoration: none; }
.hf-call:hover { text-decoration: underline; }

/* ---- forum bar ------------------------------------------------------------- */

.hf-bar {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
	margin: -16px 0 24px; padding: 8px 10px 8px 16px;
	background: var(--hf-navy-deep); border-radius: 999px;
	box-shadow: 0 8px 20px rgba(11, 14, 53, .18);
}
.hf-bar a, .hf-bar .hf-linkish { color: #fff; text-decoration: none; font-size: .95rem; }
.hf-bar__links, .hf-bar__you { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.hf-bar__links a, .hf-bar__you > a:not(.hf-btn), .hf-bar .hf-linkish { padding: 6px 12px; border-radius: 999px; }
.hf-bar__links a:hover, .hf-bar__you > a:not(.hf-btn):hover, .hf-bar .hf-linkish:hover { background: rgba(255,255,255,.12); }
.hf-bar a[aria-current] { background: rgba(255,255,255,.16); box-shadow: inset 0 -2px 0 var(--hf-gold); }
.hf-bar form { margin: 0; }
.hf-bar .hf-btn { background: var(--hf-gold); color: var(--hf-navy-deep); }
.hf-bar__me { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 640px) {
	.hf-bar { border-radius: 18px; padding: 8px; }
	.hf-bar__links a, .hf-bar__you > a:not(.hf-btn), .hf-bar .hf-linkish { padding: 6px 9px; }
}

.hf-flashes { margin: 0 0 20px; }
.hf-flash { margin: 0 0 8px; padding: 12px 16px; border-radius: 12px; background: #fff; border-left: 5px solid var(--hf-navy-lift); box-shadow: var(--hf-shadow); }
.hf-flash--success { border-left-color: var(--hf-ok); }
.hf-flash--error { border-left-color: var(--hf-bad); }
.hf-flash--info { border-left-color: var(--hf-gold); }

.hf-crumbs { font-size: .9rem; margin-bottom: 6px; color: var(--hf-soft); }
.hf-crumbs a { color: inherit; }

/* ---- topic bands ----------------------------------------------------------- */

.hf-bands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .hf-bands { grid-template-columns: 1fr; } }
.hf-band {
	display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
	padding: 14px 16px; border-radius: var(--hf-radius);
	background: var(--hf-card); box-shadow: var(--hf-shadow);
	border-left: 8px solid var(--band);
	color: var(--hf-ink); text-decoration: none;
	transition: transform .15s ease, box-shadow .15s ease;
}
.hf-band:hover { transform: translateY(-2px); color: var(--hf-ink); text-decoration: none; box-shadow: 0 2px 4px rgba(14,51,88,.08), 0 14px 30px rgba(14,51,88,.14); }
.hf-band__mark {
	display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
	background: var(--band); color: var(--on-band); font-family: var(--hf-head); font-weight: 800; font-size: 1.3rem;
}
.hf-band__name { display: block; font-family: var(--hf-head); font-weight: 700; font-size: 1.1rem; color: var(--hf-navy-deep); }
.hf-band__name .hf-note { background: var(--hf-tint); color: var(--hf-navy); margin-left: 4px; }
.hf-band__name .hf-note--new { background: var(--hf-gold); color: var(--hf-navy-deep); }
.hf-band__desc { display: block; font-size: .925rem; color: var(--hf-soft); line-height: 1.4; }
.hf-band__stats { display: grid; gap: 2px; text-align: right; font-size: .8rem; color: var(--hf-soft); white-space: nowrap; }
.hf-band__stats b { font-family: var(--hf-mono); color: var(--hf-navy-deep); font-size: .95rem; }

/* ---- thread lists ---------------------------------------------------------- */

.hf-threads { list-style: none; margin: 0; padding: 0; background: var(--hf-card); border-radius: var(--hf-radius); box-shadow: var(--hf-shadow); overflow: hidden; }
.hf-row {
	display: grid; grid-template-columns: 1fr repeat(3, 4.2rem); align-items: center; gap: 8px;
	padding: 12px 16px; border-top: 1px solid var(--hf-line); border-left: 5px solid var(--band);
}
.hf-row:first-child { border-top: 0; }
.hf-row.is-pinned { background: #fffbea; }
.hf-row__title { font-family: var(--hf-head); font-weight: 600; font-size: 1.05rem; color: var(--hf-navy-deep); text-decoration: none; }
.hf-row__title:hover { text-decoration: underline; }
.hf-row.is-unread .hf-row__title { font-weight: 800; }
.hf-row__meta { margin: 2px 0 0; font-size: .875rem; color: var(--hf-soft); }
.hf-row__meta a { color: inherit; }
.hf-when { font-weight: 700; color: var(--hf-navy-lift); }
.hf-where { color: var(--hf-soft); }
.hf-where::before { content: "· "; }
.hf-stat { text-align: center; line-height: 1.1; }
.hf-stat b { display: block; font-family: var(--hf-mono); color: var(--hf-navy-deep); }
.hf-stat span { font-size: .72rem; color: var(--hf-soft); text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 640px) {
	.hf-row { grid-template-columns: 1fr auto; }
	.hf-stat:not(:nth-of-type(1)) { display: none; }
}

.hf-list-bar { margin: 8px 0 12px; }
.hf-sorts, .hf-sub-filter, .hf-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.hf-sorts a, .hf-sub-filter a, .hf-tabs a {
	padding: 6px 14px; border-radius: 999px; background: #fff; color: var(--hf-navy);
	font-size: .9rem; text-decoration: none; box-shadow: inset 0 0 0 1.5px var(--hf-line);
}
.hf-sorts a[aria-current], .hf-sub-filter a[aria-current], .hf-tabs a[aria-current] { background: var(--hf-navy-deep); color: #fff; box-shadow: none; }
.hf-sub-filter { margin: 14px 0 0; }
.hf-tabs { margin-bottom: 20px; }

.hf-pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 18px 0; color: var(--hf-soft); }
.hf-pager > :last-child { justify-self: end; }

/* ---- mastheads ------------------------------------------------------------- */

.hf-masthead, .hf-thread-head {
	padding: clamp(18px, 3vw, 28px); border-radius: var(--hf-radius);
	background: var(--band); color: var(--on-band); box-shadow: var(--hf-shadow); margin-bottom: 16px;
}
.hf-masthead .hf-crumbs, .hf-thread-head .hf-crumbs { color: var(--on-band); opacity: .85; }
.hf-masthead h1, .hf-thread-head h1 { font-family: var(--hf-head); font-size: clamp(1.5rem, 4vw, 2.2rem); line-height: 1.15; margin: 0 0 6px; color: var(--on-band); }
.hf-masthead p { margin: 0 0 10px; max-width: 65ch; }
.hf-masthead__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hf-masthead__actions form { margin: 0; }
.hf-btn--on-band { background: var(--on-band); color: var(--band); }
.hf-btn--on-band:hover { background: var(--on-band); color: var(--band); opacity: .9; }
.hf-btn--band-quiet { background: transparent; color: var(--on-band); box-shadow: inset 0 0 0 1.5px currentColor; }
.hf-btn--band-quiet:hover { background: rgba(255,255,255,.15); color: var(--on-band); }
.hf-link-on-band { color: var(--on-band); }
.hf-link-on-band:hover { color: var(--on-band); }
.hf-thread-head__meta { margin: 6px 0 0; font-size: .9rem; opacity: .92; }
.hf-thread-head .hf-chip { background: rgba(255,255,255,.9); }
.hf-event-line { margin: 2px 0; font-weight: 600; }
.hf-event-line .hf-when, .hf-event-line .hf-where { color: var(--on-band); }
.hf-event-actions { margin: 0 0 16px; }

/* ---- posts ----------------------------------------------------------------- */

.hf-posts { display: grid; gap: 12px; }
.hf-post {
	display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 10px;
	padding: 16px 18px 12px 8px; border-radius: var(--hf-radius);
	background: var(--hf-card); box-shadow: var(--hf-shadow);
	scroll-margin-top: 20px;
}
.hf-post:target { box-shadow: 0 0 0 3px var(--hf-gold), var(--hf-shadow); }
.hf-post.is-muted { background: #f6f8fb; }
.hf-post.is-muted .hf-prose { opacity: .75; }
.hf-votes { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hf-votes button, .hf-votes a {
	display: grid; place-items: center; width: 36px; height: 32px; border: 0; border-radius: 8px;
	background: none; color: var(--hf-soft); font-size: .9rem; cursor: pointer; text-decoration: none;
}
.hf-votes button:hover:not(:disabled), .hf-votes a:hover { background: var(--hf-tint); color: var(--hf-navy); }
.hf-votes button[aria-pressed="true"] { background: var(--hf-navy-deep); color: var(--hf-gold); }
.hf-votes button:disabled { opacity: .35; cursor: default; }
.hf-score { font-family: var(--hf-mono); font-weight: 700; color: var(--hf-navy-deep); }
.hf-post__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .925rem; }
.hf-author { font-weight: 700; color: var(--hf-navy-deep); text-decoration: none; }
.hf-author:hover { text-decoration: underline; }
.hf-post__time { color: var(--hf-soft); }
.hf-mod-note { font-size: .8rem; padding: 1px 8px; border-radius: 999px; background: #fff4cc; color: #6b4e00; }
.hf-post__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--hf-line); }
.hf-report form { display: grid; gap: 6px; margin-top: 8px; max-width: 26rem; }
.hf-new-marker {
	display: flex; align-items: center; gap: 10px; margin: 4px 0 -2px;
	font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--hf-gold-ink);
}
.hf-new-marker::after { content: ""; flex: 1; height: 2px; background: var(--hf-gold); }
.hf-inline-error { color: var(--hf-bad); font-size: .85rem; margin: 4px 0 0; }

.hf-prose { margin-top: 8px; overflow-wrap: anywhere; }
.hf-prose > :first-child { margin-top: 0; }
.hf-prose > :last-child { margin-bottom: 0; }
.hf-prose h2, .hf-prose h3 { font-family: var(--hf-head); color: var(--hf-navy-deep); line-height: 1.2; }
.hf-prose h2 { font-size: 1.3rem; }
.hf-prose h3 { font-size: 1.12rem; }
.hf-prose blockquote { margin: 12px 0; padding: 4px 16px; border-left: 4px solid var(--hf-gold); color: var(--hf-soft); }
.hf-prose pre { padding: 12px 14px; border-radius: 10px; background: var(--hf-navy-deep); color: #e8eefc; overflow-x: auto; font-size: .9rem; }
.hf-prose code { font-family: var(--hf-mono); font-size: .92em; }
.hf-prose :not(pre) > code { padding: 1px 5px; border-radius: 5px; background: var(--hf-tint); }
.hf-prose hr { border: 0; border-top: 1px solid var(--hf-line); }
.hf-prose--quoted { padding: 10px 14px; border-radius: 10px; background: var(--hf-tint); }

/* ---- attachments and galleries --------------------------------------------- */

.hf-attachments { margin-top: 12px; }
.hf-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.hf-gallery a { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--hf-tint); }
.hf-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.hf-gallery a:hover img { transform: scale(1.04); }
.hf-files { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.hf-files a { display: inline-flex; gap: 8px; align-items: baseline; padding: 6px 12px; border-radius: 10px; background: var(--hf-tint); text-decoration: none; }
.hf-files a::before { content: "\1F4CE"; }
.hf-files span { color: var(--hf-soft); font-size: .85rem; }
.hf-lightbox { max-width: min(96vw, 1200px); max-height: 96vh; padding: 12px; border: 0; border-radius: var(--hf-radius); background: var(--hf-navy-deep); color: #fff; }
.hf-lightbox::backdrop { background: rgba(5, 8, 30, .85); }
.hf-lightbox img { display: block; max-width: 100%; max-height: calc(96vh - 110px); margin: 0 auto; border-radius: 8px; }
.hf-lightbox__caption { text-align: center; margin: 8px 0; font-size: .9rem; }
.hf-lightbox__controls { display: flex; justify-content: center; gap: 8px; }
.hf-lightbox .hf-btn { background: #fff; color: var(--hf-navy-deep); }

.hf-map { margin: 0 0 16px; }
.hf-map img { display: block; width: 100%; height: auto; max-height: 320px; object-fit: cover; border-radius: var(--hf-radius); box-shadow: var(--hf-shadow); }
.hf-map figcaption { font-size: .8rem; color: var(--hf-soft); margin-top: 6px; }

/* ---- polls ----------------------------------------------------------------- */

.hf-poll { margin-bottom: 16px; border-top: 5px solid var(--hf-gold); }
.hf-poll__kicker { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hf-gold-ink); }
.hf-poll h2 { font-family: var(--hf-head); color: var(--hf-navy-deep); font-size: 1.3rem; margin: 2px 0 12px; }
.hf-poll__form { display: grid; gap: 8px; justify-items: start; }
.hf-poll__choice {
	display: flex; align-items: center; gap: 10px; width: 100%; max-width: 36rem;
	padding: 10px 14px; border-radius: 12px; background: var(--hf-tint); cursor: pointer;
}
.hf-poll__choice:hover { box-shadow: inset 0 0 0 2px var(--hf-line); }
.hf-poll__choice input { width: 20px; height: 20px; accent-color: var(--hf-navy-deep); }
.hf-poll__results { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 40rem; }
.hf-poll__results li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; }
.hf-poll__label { font-weight: 600; }
.hf-poll__you { font-size: .75rem; font-weight: 700; color: var(--hf-gold-ink); text-transform: uppercase; letter-spacing: .05em; margin-left: 6px; }
.hf-poll__bar { grid-column: 1 / -1; height: 10px; border-radius: 999px; background: var(--hf-tint); overflow: hidden; order: 3; }
.hf-poll__bar span { display: block; width: var(--pct); height: 100%; border-radius: inherit; background: var(--hf-navy-lift); }
.hf-poll__results li.is-mine .hf-poll__bar span { background: var(--hf-gold); }
.hf-poll__n { font-family: var(--hf-mono); font-size: .9rem; }
.hf-poll__names { grid-column: 1 / -1; order: 4; font-size: .875rem; color: var(--hf-soft); }
.hf-poll__people { margin: 14px 0 0; padding-top: 10px; border-top: 1px solid var(--hf-line); font-size: .95rem; }
.hf-poll__choice.is-featured { background: #fffbea; box-shadow: inset 0 0 0 2px var(--hf-gold); }
.hf-poll__results li.is-featured .hf-poll__label { color: var(--hf-navy-deep); }
.hf-poll__plain li.is-featured { font-weight: 700; }
.hf-poll__plain { margin: 0 0 8px; }
.hf-poll__foot { margin: 12px 0 0; font-size: .9rem; color: var(--hf-soft); }
/* Ideas polls: a numbered list, each line with its own up and down vote */
.hf-ideas__sort { margin: -4px 0 12px; font-size: .9rem; color: var(--hf-soft); }
.hf-ideas__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hf-idea {
	display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; gap: 4px 10px; align-items: center;
	padding: 10px 12px; border-radius: 12px; background: var(--hf-tint); scroll-margin-top: 20px;
}
.hf-idea:target { box-shadow: inset 0 0 0 2px var(--hf-gold); }
.hf-idea.is-featured { background: #fffbea; box-shadow: inset 0 0 0 2px var(--hf-gold); }
.hf-idea__num { font-family: var(--hf-mono); font-weight: 700; color: var(--hf-soft); text-align: right; }
.hf-idea__label { line-height: 1.4; }
.hf-idea__votes { display: flex; gap: 6px; margin: 0; }
.hf-idea__votes button, .hf-idea__votes.is-static > span {
	display: inline-flex; align-items: center; gap: 6px; min-width: 4rem; justify-content: center;
	padding: 6px 10px; border: 0; border-radius: 999px; background: #fff; color: var(--hf-navy);
	box-shadow: inset 0 0 0 1.5px var(--hf-line); font: inherit; font-size: .9rem; cursor: pointer;
}
.hf-idea__votes.is-static > span { cursor: default; color: var(--hf-soft); }
.hf-idea__votes [data-count], .hf-idea__votes.is-static > span { font-family: var(--hf-mono); font-weight: 700; }
.hf-idea__votes button:hover:not(:disabled) { box-shadow: inset 0 0 0 2px var(--hf-navy-lift); }
.hf-idea__votes button[aria-pressed="true"][data-value="1"] { background: var(--hf-navy-deep); color: var(--hf-gold); box-shadow: none; }
.hf-idea__votes button[aria-pressed="true"][data-value="-1"] { background: var(--hf-bad); color: #fff; box-shadow: none; }
.hf-idea__votes button:disabled { opacity: .6; cursor: progress; }
.hf-idea .hf-inline-error { grid-column: 2 / -1; margin: 0; }
@media (max-width: 520px) {
	.hf-idea { grid-template-columns: 1.5rem minmax(0, 1fr); }
	.hf-idea__votes { grid-column: 2; }
}
.hf-poll-form { margin: 4px 0 18px; padding: 12px 16px; border-radius: 12px; background: var(--hf-tint); }
.hf-poll-form summary { cursor: pointer; font-family: var(--hf-head); font-weight: 700; color: var(--hf-navy-deep); }
.hf-poll-form[open] summary { margin-bottom: 10px; }

/* ---- sign-ups --------------------------------------------------------------- */

.hf-rsvp { margin-bottom: 16px; border-top: 5px solid var(--hf-navy-lift); }
.hf-rsvp h2 { font-family: var(--hf-head); color: var(--hf-navy-deep); font-size: 1.3rem; margin: 2px 0 6px; }
.hf-rsvp__totals { margin: 0 0 12px; color: var(--hf-soft); }
.hf-rsvp__totals strong { font-family: var(--hf-mono); color: var(--hf-navy-deep); font-size: 1.1rem; }
.hf-rsvp__form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 12px 14px; border-radius: 12px; background: var(--hf-tint); }
.hf-rsvp__coming { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--hf-navy-deep); cursor: pointer; }
.hf-rsvp__coming input { width: 22px; height: 22px; accent-color: var(--hf-navy-deep); }
.hf-rsvp__qty { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.hf .hf-rsvp__qty input { flex: 0 0 auto; width: 5.5rem; min-height: 44px; text-align: center; font-size: 1.1rem; }
.hf-rsvp__cost { margin: 0; font-family: var(--hf-mono); font-weight: 700; color: var(--hf-navy-deep); white-space: nowrap; }
@media (max-width: 520px) {
	.hf-rsvp__form { display: grid; justify-items: start; }
	.hf-rsvp__qty { display: grid; gap: 4px; }
}
.hf-rsvp__note { margin: 10px 0 0; padding: 8px 12px; border-left: 4px solid var(--hf-gold); background: #fffbea; border-radius: 0 8px 8px 0; font-size: .95rem; }
.hf-rsvp__list { margin-top: 12px; }
.hf-rsvp__list summary { cursor: pointer; font-weight: 700; color: var(--hf-navy-deep); }
.hf-rsvp__list ul { margin: 8px 0 0; padding-left: 20px; columns: 2 14rem; }

/* ---- forms ----------------------------------------------------------------- */

.hf-form h2 { font-family: var(--hf-head); color: var(--hf-navy-deep); margin-top: 0; }
.hf-field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.hf-field > label, .hf-field > legend, .hf-report label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--hf-navy-deep); }
.hf input[type="text"], .hf input[type="email"], .hf input[type="search"], .hf input[type="url"], .hf input[type="number"],
.hf input[type="date"], .hf input[type="datetime-local"], .hf input[type="password"], .hf select, .hf textarea {
	width: 100%; min-height: 44px; padding: 9px 12px;
	border: 1.5px solid var(--hf-line); border-radius: 10px; background: #fff;
	font: inherit; color: var(--hf-ink);
}
.hf input:focus, .hf select:focus, .hf textarea:focus { outline: none; border-color: var(--hf-navy-lift); box-shadow: 0 0 0 3px rgba(26, 42, 120, .15); }
.hf input[type="file"] { font: inherit; max-width: 100%; }
.hf-check { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 10px; cursor: pointer; }
.hf-check input { flex: none; width: 20px; height: 20px; margin-top: 3px; accent-color: var(--hf-navy-deep); }
.hf-check b { display: block; color: var(--hf-navy-deep); }
.hf-error { color: var(--hf-bad); font-weight: 600; font-size: .9rem; margin: 6px 0 0; }
.hf-rules { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: #fffbea; border-left: 5px solid var(--hf-gold); font-size: .95rem; }
.hf-rules p { margin: 0; }
.hf-username-status { min-height: 1.4em; margin: 4px 0 0; font-size: .9rem; }
.hf-username-status.is-ok { color: var(--hf-ok); }
.hf-username-status.is-bad { color: var(--hf-bad); }
.hf-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.hf-swatch { position: relative; cursor: pointer; }
.hf-swatch input { position: absolute; opacity: 0; }
.hf-swatch span { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--band); color: var(--on-band); font-weight: 700; font-size: .9rem; }
.hf-swatch input:checked + span { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--hf-navy-deep); }
.hf-swatch input:focus-visible + span { outline: 3px solid var(--hf-navy-lift); outline-offset: 4px; }
.hf-place-results { display: grid; gap: 6px; margin-top: 6px; }
.hf-place-choice { text-align: left; padding: 8px 12px; border: 1.5px solid var(--hf-line); border-radius: 10px; background: #fff; font: inherit; font-size: .9rem; cursor: pointer; }
.hf-place-choice:hover { border-color: var(--hf-navy-lift); }
.hf-sub-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.hf-add-member { margin: 0 0 16px; padding: 12px 16px; }
.hf-rsvp__mod { margin-top: 14px; border-top: 1px solid var(--hf-line, #e3e6ee); padding-top: 10px; }
.hf-rsvp__mod summary { cursor: pointer; font-weight: 600; }
.hf-rsvp__modform { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin: 10px 0 6px; }
.hf-rsvp__modform label { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; }
.hf-rsvp__modform input[type=number] { width: 6em; }
.hf-rsvp__list li .hf-inline-form { display: inline; margin-left: 8px; }
.hf-rsvp__remove { font-size: .85rem; }
.hf-add-member[open] summary { margin-bottom: 8px; }
.hf-add-member .hf-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 4px 16px; align-items: end; }
.hf-add-member .hf-hint { margin-top: 0; }
.hf-add-member__h { font-size: 1.05rem; margin: 14px 0 6px; }
.hf-roster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 16px; }
.hf-roster li { display: flex; align-items: center; gap: 8px; }
.hf-roster li form { margin-left: auto; }
.hf-roster .hf-callsign { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; min-width: 6.5ch; }
.hf-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.hf-filter input, .hf-filter select { width: auto; }

/* TipTap editor (the bundle builds .editor/.toolbar/.tb inside the form). */
.hf .editor { border: 1.5px solid var(--hf-line); border-radius: 12px; background: #fff; }
.hf .editor:focus-within { border-color: var(--hf-navy-lift); box-shadow: 0 0 0 3px rgba(26, 42, 120, .15); }
.hf .toolbar { position: relative; display: flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-bottom: 1px solid var(--hf-line); background: var(--hf-tint); border-radius: 12px 12px 0 0; }
.hf .tb { min-width: 38px; height: 38px; padding: 0 8px; background: none; border: 0; border-radius: 8px; color: var(--hf-ink); font: inherit; font-size: .9rem; cursor: pointer; white-space: nowrap; }
.hf .tb:hover { background: #fff; }
.hf .tb[aria-pressed="true"] { background: var(--hf-navy-deep); color: #fff; }
.hf .editor-area { min-height: 10rem; padding: 12px 14px; outline: none; margin: 0; }
.hf .editor-area p.is-editor-empty:first-child::before { content: attr(data-placeholder); color: var(--hf-soft); float: left; height: 0; pointer-events: none; }
.hf .link-row { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 2px; }
.hf .link-row input { flex: 1 1 14rem; width: auto; }
.hf .link-row .btn { min-height: 36px; padding: 6px 14px; border: 0; border-radius: 999px; background: var(--hf-navy-deep); color: #fff; font: inherit; font-size: .9rem; cursor: pointer; }
.hf .link-row .btn-quiet { background: #fff; color: var(--hf-navy); box-shadow: inset 0 0 0 1.5px var(--hf-line); }
.hf .emoji-panel { position: absolute; z-index: 5; top: 100%; right: 4px; width: min(20rem, calc(100vw - 48px)); padding: 8px; background: #fff; border: 1px solid var(--hf-line); border-radius: 12px; box-shadow: 0 10px 30px rgba(16, 24, 40, .14); }
.hf .emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); max-height: 13rem; overflow-y: auto; margin-top: 6px; }
.hf .emoji-grid button { height: 40px; background: none; border: 0; font-size: 1.3rem; cursor: pointer; border-radius: 8px; }
.hf .emoji-grid button:hover { background: var(--hf-tint); }
@media (max-width: 520px) { .hf .emoji-panel { left: 0; right: 0; width: auto; } }

.hf-reply { margin-top: 20px; scroll-margin-top: 20px; }
.hf-reply h2 { font-family: var(--hf-head); color: var(--hf-navy-deep); margin-top: 0; }
.hf-reply-emails { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 16px; padding: 10px 14px; border-radius: 10px; background: var(--hf-tint, #f3f5fb); color: var(--hf-soft); font-size: .95rem; }
.hf-foot-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.hf-mod-tools summary { cursor: pointer; font-weight: 700; color: var(--hf-navy-deep); }
.hf-mod-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; }

/* ---- calendar -------------------------------------------------------------- */

.hf-cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 12px; }
.hf-cal-nav h2 { font-family: var(--hf-head); color: var(--hf-navy-deep); margin: 0; font-size: 1.4rem; }
.hf-calendar { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 4px; }
.hf-calendar th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--hf-soft); padding: 4px; }
.hf-calendar td { height: 6.5rem; vertical-align: top; padding: 6px; border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgba(14,51,88,.06); }
.hf-calendar td.is-other { background: rgba(255,255,255,.5); }
.hf-calendar td.is-other .hf-day { opacity: .45; }
.hf-calendar td.is-today { box-shadow: inset 0 0 0 2px var(--hf-gold); }
.hf-day { display: block; font-family: var(--hf-mono); font-size: .85rem; font-weight: 700; color: var(--hf-navy-deep); }
.hf-cal-event { display: block; margin-top: 4px; padding: 2px 6px; border-radius: 6px; background: var(--band); color: var(--on-band); font-size: .78rem; line-height: 1.3; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hf-cal-event:hover { color: var(--on-band); filter: brightness(1.08); }
.hf-cal-list { display: none; }
.hf-events { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hf-events li { line-height: 1.45; }
.hf-cal-add { font-size: .9rem; }
@media (max-width: 720px) {
	.hf-calendar { display: none; }
	.hf-cal-list { display: block; padding: 16px; border-radius: var(--hf-radius); background: #fff; box-shadow: var(--hf-shadow); }
}

/* ---- people ---------------------------------------------------------------- */

.hf-avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; vertical-align: middle; flex: none; }
.hf-avatar--letter { background: var(--hf-navy-lift); color: #fff; font-family: var(--hf-head); font-weight: 700; font-size: .9rem; }
.hf-avatar--small { width: 24px; height: 24px; font-size: .75rem; }
.hf-avatar--large { width: 72px; height: 72px; font-size: 1.8rem; }
.hf-profile { display: flex; align-items: center; gap: 18px; }
.hf-profile .hf-title { margin-bottom: 4px; }
.hf-profile p { margin: 0; }
.hf-profile-posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hf-profile-posts li { padding: 12px 16px; border-radius: 12px; background: #fff; box-shadow: var(--hf-shadow); }
.hf-profile-posts p { margin: 4px 0 0; color: var(--hf-soft); font-size: .95rem; }
.hf-account__who { display: flex; align-items: center; gap: 14px; }

/* ---- footer and privacy -------------------------------------------------- */

.hf-foot { margin: 28px 0 0; font-size: .875rem; text-align: center; }
.hf-foot { color: var(--hf-soft); }
.hf-foot a { color: var(--hf-soft); }
.hf-licence-note { margin: 6px 0 0; font-size: .8rem; color: var(--hf-soft); }
.hf-licence-note a, .hf-post__licence a { color: inherit; }
.hf-post__licence { margin: 10px 0 0; font-size: .78rem; color: var(--hf-soft); }
.hf-privacy h2 { margin-top: 1.6em; }
.hf-privacy h2:first-of-type { margin-top: 1em; }

/* ---- moderation ------------------------------------------------------------ */

.hf-queue-item { margin-bottom: 12px; }
.hf-queue-item__where { margin: 0 0 8px; font-size: .9rem; color: var(--hf-soft); }
.hf-report-reason { font-weight: 700; margin: 0 0 8px; }
.hf-members { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hf-member { padding: 14px 18px; }
.hf-member__who { display: flex; gap: 12px; align-items: flex-start; }
.hf-member__who p { margin: 2px 0 0; font-size: .875rem; }
.hf-member__more summary { list-style: none; }
.hf-member__more .hf-mod-row { margin-top: 6px; }
.hf-plain-list { padding-left: 18px; }
.hf-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--hf-radius); overflow: hidden; box-shadow: var(--hf-shadow); font-size: .9rem; }
.hf-table th, .hf-table td { padding: 8px 12px; text-align: left; border-top: 1px solid var(--hf-line); vertical-align: top; }
.hf-table th { background: var(--hf-tint); border-top: 0; }
@media (max-width: 640px) { .hf-table { display: block; overflow-x: auto; } }
.hf-settings fieldset { margin-bottom: 24px; }
.hf-settings legend { font-family: var(--hf-head); font-size: 1.15rem; }

/* Spam trap on the account forms: out of sight, and skipped by keyboard and screen readers */
.hf-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---- archived threads: kept for reference, greyed and frozen ---- */
.hf-archived-banner {
	display: flex;
	align-items: center;
	gap: .8rem;
	margin: 0 0 1rem;
	padding: .9rem 1.1rem;
	border-radius: var(--hf-radius);
	background: repeating-linear-gradient(-45deg, #4b4f55 0 14px, #55595f 14px 28px);
	color: #fff;
	font-weight: 600;
}
.hf-archived-banner p { margin: 0; }
.hf-archived-banner__tag {
	flex: none;
	padding: .2rem .6rem;
	border: 2px solid #fff;
	border-radius: 6px;
	font-family: var(--hf-head);
	font-size: .8rem;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.hf-archived {
	filter: grayscale(1);
	opacity: .78;
}
.hf-archived .hf-thread-head,
.hf-archived .hf-posts { --band: #8a8f96; }
.hf-archived .hf-votes button[disabled] { cursor: not-allowed; opacity: .5; }
.hf-chip--archived { background: #5a5e64; color: #fff; }
.hf-thread-head .hf-chip--archived { background: #fff; color: #3d4146; }
.hf-row.is-archived { filter: grayscale(1); opacity: .7; }
