/**
 * Offutt Stables Family Event Hub — guest styles.
 *
 * Brand: matches offuttstables.com (Astra theme). Colors read the theme's own
 * Astra global palette variables when present, so if the site's colors are
 * changed in Appearance → Customize → Global → Colors, the portal follows.
 * Fallbacks are the Offutt Stables palette:
 *   crimson #DD183B · crimson-dark #CC1939 · navy #0F172A · text #3A3A3A
 *   cream #FFEDE6 · peach #FFD1BF · near-black #140609
 * Fonts: Poppins (headings) + Work Sans (body), already loaded by the theme.
 *
 * Built for older eyes and fingers: 18px+ text, ≥48px touch targets,
 * WCAG AA contrast, visible focus, reduced-motion support.
 * Everything is scoped under .osh so it won't fight the theme.
 */

.osh {
	--osh-brand: var(--ast-global-color-0, #DD183B);
	--osh-brand-dark: var(--ast-global-color-1, #CC1939);
	--osh-brand-ink: #B5122F;            /* crimson dark enough for text on cream (6:1) */
	--osh-heading: var(--ast-global-color-2, #0F172A);
	--osh-ink: var(--ast-global-color-3, #3A3A3A);
	--osh-cream: var(--ast-global-color-4, #FFEDE6);
	--osh-peach: var(--ast-global-color-6, #FFD1BF);
	--osh-night: var(--ast-global-color-7, #140609);
	--osh-paper: #ffffff;
	--osh-muted: #5a5250;
	--osh-line: #f0d2c6;
	--osh-line-strong: #8a7f7b;
	--osh-ok: #1e7b3e;
	--osh-ok-tint: #e7f5ec;
	--osh-amber: #8a5a00;
	--osh-amber-tint: #fff4d6;
	--osh-radius: 12px;
	--osh-font-head: "Poppins", "Work Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--osh-font-body: "Work Sans", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--osh-focus: 0 0 0 3px #fff, 0 0 0 6px #1a5fb4;
	--osh-sticky-top: 0px;
	--osh-tabbar-h: 0px;

	box-sizing: border-box;
	max-width: 880px;
	margin: 0 auto;
	padding: 0 0 32px;
	color: var(--osh-ink);
	font-family: var(--osh-font-body);
	font-size: 18px;
	line-height: 1.6;
	-webkit-text-size-adjust: 100%;
}
.admin-bar .osh { --osh-sticky-top: 32px; }
@media (max-width: 782px) { .admin-bar .osh { --osh-sticky-top: 46px; } }

.osh *, .osh *::before, .osh *::after { box-sizing: inherit; }
.osh [hidden] { display: none !important; }
.osh a { color: var(--osh-brand-ink); text-underline-offset: 3px; }
.osh a:hover { color: var(--osh-brand-dark); }
.osh :focus-visible { outline: none; box-shadow: var(--osh-focus); border-radius: 6px; }
.osh h1, .osh h2, .osh h3, .osh h4 { font-family: var(--osh-font-head); }

.osh-visually-hidden {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.osh-skip { position: absolute; left: -9999px; }
.osh-skip:focus { left: 12px; top: 12px; z-index: 1000; background: #fff; padding: 12px 16px; }
.osh-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* Typography ------------------------------------------------------------ */
.osh-h2 { font-size: 1.55rem; font-weight: 700; line-height: 1.25; margin: 0 0 6px; color: var(--osh-heading); }
.osh-h2 > span[aria-hidden] { font-size: .9em; }
.osh-h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.3; margin: 24px 0 10px; color: var(--osh-heading); }
.osh-lead { font-size: 1.2rem; font-weight: 600; margin: 0 0 8px; color: var(--osh-heading); }
.osh-help { color: var(--osh-muted); margin: 0 0 16px; }
.osh-optional { font-weight: 400; color: var(--osh-muted); font-size: .9em; }
.osh-empty { color: var(--osh-muted); font-style: italic; margin: 8px 0; }
.osh-kicker { display: block; font-family: var(--osh-font-head); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--osh-brand-ink); margin: 0 0 2px; }

/* Cards & sections ------------------------------------------------------- */
.osh-card {
	background: var(--osh-paper);
	border: 1px solid var(--osh-line);
	border-top: 4px solid var(--osh-brand);
	border-radius: var(--osh-radius);
	padding: 20px 16px;
	box-shadow: 0 2px 10px rgba(20, 6, 9, .05);
}
.osh-section { margin: 20px 12px 0; scroll-margin-top: calc(var(--osh-sticky-top) + 16px); }
.osh-section:not(.osh-card) { padding: 0 4px; }

/* Hero (matches the red banner on offuttstables.com) -------------------- */
.osh-hero {
	background: var(--osh-brand);
	background-image: linear-gradient(160deg, var(--osh-brand) 0%, var(--osh-brand-dark) 100%);
	color: #fff;
	padding: 18px 16px 24px;
	border-radius: 0 0 var(--osh-radius) var(--osh-radius);
	scroll-margin-top: var(--osh-sticky-top);
}
.osh-hero a { color: #fff; }
.osh-hero a:hover { color: var(--osh-cream); }
.osh-hero__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.osh-hero__hello { margin: 0; font-size: 1.05rem; font-weight: 500; }
.osh-hero__household { display: block; font-size: .92rem; opacity: .92; font-weight: 400; }
.osh-hero__brand { font-family: var(--osh-font-head); font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .9; margin: 18px 0 0; }
.osh-hero__title { font-family: var(--osh-font-head); font-weight: 700; font-size: 2rem; line-height: 1.12; margin: 4px 0 10px; color: #fff; }
.osh-hero__meta { display: flex; flex-direction: column; gap: 2px; margin: 0 0 14px; font-size: 1.05rem; }
.osh-hero__welcome { background: rgba(255,255,255,.14); border-left: 4px solid var(--osh-cream); border-radius: 8px; padding: 12px 14px; margin-top: 14px; }
.osh-hero__welcome p { margin: 0 0 8px; }
.osh-hero__welcome p:last-child { margin: 0; }
.osh-link-quiet { font-size: .95rem; white-space: nowrap; padding: 10px 0; display: inline-block; }
.osh-switcher { margin-top: 14px; }
.osh-label--light { color: #fff; }

.osh-countdown { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; min-height: 52px; }
.osh-countdown__unit { display: inline-flex; align-items: baseline; gap: 5px; background: var(--osh-cream); color: var(--osh-brand-ink); border-radius: 8px; padding: 6px 12px; }
.osh-countdown__unit strong { font-family: var(--osh-font-head); font-size: 1.6rem; line-height: 1; }
.osh-countdown__togo { font-weight: 600; }
.osh-countdown__done { font-family: var(--osh-font-head); font-size: 1.4rem; font-weight: 700; margin: 0; }

/* Section navigation ----------------------------------------------------- *
 * Phones: fixed to the bottom of the screen like an app's tab bar, always
 * within thumb reach. Computers: sticks to the top while scrolling.
 * The current section is highlighted (aria-current) by frontend.js.       */
.osh-tabbar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990;
	display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
	background: var(--osh-paper);
	border-top: 1px solid var(--osh-line);
	box-shadow: 0 -4px 16px rgba(20, 6, 9, .12);
	padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
}
.osh-tabbar a {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
	min-height: 60px; padding: 4px 2px; border-radius: 10px;
	color: var(--osh-heading) !important; text-decoration: none;
	font-family: var(--osh-font-head); font-size: .78rem; font-weight: 600; line-height: 1.15; text-align: center;
}
.osh-tabbar a span[aria-hidden] { font-size: 1.45rem; line-height: 1.1; }
.osh-tabbar a[aria-current="true"] { background: var(--osh-cream); color: var(--osh-brand-ink) !important; box-shadow: inset 0 3px 0 var(--osh-brand); }
.osh-dash { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

@media (min-width: 768px) {
	.osh { --osh-tabbar-h: 64px; }
	.osh-section { scroll-margin-top: calc(var(--osh-sticky-top) + var(--osh-tabbar-h) + 16px); }
	.osh-tabbar {
		position: sticky; top: var(--osh-sticky-top); bottom: auto; left: auto; right: auto;
		margin: 14px 12px 0; padding: 6px;
		border: 1px solid var(--osh-line); border-radius: var(--osh-radius);
		box-shadow: 0 6px 18px rgba(20, 6, 9, .10);
	}
	.osh-tabbar a { flex-direction: row; gap: 8px; min-height: 52px; font-size: .95rem; white-space: nowrap; }
	.osh-tabbar a span[aria-hidden] { font-size: 1.2rem; }
	.osh-tabbar a:hover { background: var(--osh-cream); }
	.osh-dash { padding-bottom: 32px; }
}

/* "Next step" buttons at the end of each section */
.osh-next {
	display: flex; align-items: center; justify-content: center; gap: 10px;
	margin: 22px 0 0; min-height: 56px; padding: 12px 18px;
	background: var(--osh-cream); border: 2px solid var(--osh-peach); border-radius: 10px;
	font-family: var(--osh-font-head); font-weight: 600; font-size: 1.05rem;
	color: var(--osh-brand-ink) !important; text-decoration: none;
}
.osh-next:hover { background: var(--osh-peach); }
.osh-next span[aria-hidden] { font-size: 1.3rem; }

/* Alerts & tags ---------------------------------------------------------- */
.osh-alert { border-radius: 10px; padding: 14px 16px; margin: 16px 12px 0; border: 2px solid; }
.osh-card .osh-alert, .osh-gate .osh-alert { margin: 16px 0 0; }
.osh-alert--info { background: #f4f6fb; border-color: #b9c3dc; }
.osh-alert--success { background: var(--osh-ok-tint); border-color: #8cc5a0; }
.osh-alert--warn { background: var(--osh-amber-tint); border-color: #e6b44c; }
.osh-preview-banner { background: var(--osh-night); color: #fff; border-color: var(--osh-night); }
.osh-preview-banner a { color: var(--osh-peach) !important; }
.osh-tag { display: inline-block; font-family: var(--osh-font-head); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding: 3px 10px; border-radius: 999px; background: var(--osh-cream); color: var(--osh-brand-ink); }
.osh-tag--urgent, .osh-tag--full { background: var(--osh-brand); color: #fff; }
.osh-tag--important { background: var(--osh-amber); color: #fff; }
.osh-tag--open { background: var(--osh-ok-tint); color: var(--osh-ok); }

/* Announcements ---------------------------------------------------------- */
.osh-announcements { display: grid; gap: 12px; }
.osh-announcement { background: var(--osh-paper); border: 1px solid var(--osh-line); border-left: 6px solid var(--osh-heading); border-radius: 10px; padding: 14px 16px; }
.osh-announcement--important { border-left-color: var(--osh-amber); background: #fffcf3; }
.osh-announcement--urgent { border-left-color: var(--osh-brand); background: var(--osh-cream); }
.osh-announcement__meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 0 0 4px; font-size: .9rem; color: var(--osh-muted); }
.osh-announcement__title { font-size: 1.2rem; font-weight: 700; margin: 0 0 6px; color: var(--osh-heading); }
.osh-announcement__body p { margin: 0 0 8px; }

/* Forms ------------------------------------------------------------------ */
.osh-form { margin: 0; }
.osh-field { margin: 0 0 16px; }
.osh-label { display: block; font-weight: 600; margin: 0 0 6px; color: var(--osh-heading); }
.osh-input {
	display: block; width: 100%; min-height: 52px; padding: 12px 14px;
	font: inherit; font-size: 1.05rem; color: var(--osh-heading);
	background: #fff; border: 2px solid var(--osh-line-strong); border-radius: 8px;
	-webkit-appearance: none; appearance: none;
}
select.osh-input { background-image: linear-gradient(45deg, transparent 50%, #555 50%), linear-gradient(135deg, #555 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
textarea.osh-input { min-height: 84px; resize: vertical; }
.osh-input:focus { border-color: var(--osh-brand); }
.osh-hero .osh-input { border-color: #fff; }
.osh fieldset { border: 0; padding: 0; margin: 0 0 8px; min-width: 0; }
.osh-grid-2 { display: grid; gap: 0 14px; grid-template-columns: 1fr; }

.osh-choice { display: grid; gap: 10px; margin-bottom: 20px !important; }
.osh-choice legend { margin-bottom: 8px; }
.osh-choice__opt { position: relative; display: block; cursor: pointer; }
.osh-choice__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.osh-choice__opt > span {
	display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 12px 18px;
	border: 2px solid var(--osh-line-strong); border-radius: 10px; font-size: 1.15rem; font-weight: 600; background: #fff; color: var(--osh-heading);
}
.osh-choice__opt input:focus-visible + span { box-shadow: var(--osh-focus); }
.osh-choice__opt--attending input:checked + span { background: var(--osh-cream); border-color: var(--osh-brand); border-width: 3px; color: var(--osh-brand-ink); }
.osh-choice__opt--tentative input:checked + span { background: var(--osh-amber-tint); border-color: var(--osh-amber); border-width: 3px; }
.osh-choice__opt--not_attending input:checked + span { background: #f1efee; border-color: #5c5452; border-width: 3px; }
.osh-choice__opt input:checked + span::after { content: "✓"; margin-left: auto; font-size: 1.4rem; }
.osh fieldset:disabled .osh-choice__opt { cursor: default; opacity: .75; }

.osh-stepper { display: grid; grid-template-columns: 56px 1fr 56px; gap: 8px; }
.osh-stepper__btn {
	min-height: 52px; font-size: 1.6rem; font-weight: 700; line-height: 1; cursor: pointer;
	background: var(--osh-cream); border: 2px solid var(--osh-peach); border-radius: 8px; color: var(--osh-brand-ink);
}
.osh-stepper__btn:active { background: var(--osh-peach); }
.osh-stepper__input { text-align: center; font-size: 1.3rem; font-weight: 700; -moz-appearance: textfield; }
.osh-stepper__input::-webkit-outer-spin-button, .osh-stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Buttons (crimson, like the site's) ------------------------------------- */
.osh-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 52px; padding: 12px 22px; font-family: var(--osh-font-head); font-weight: 600; font-size: 1.02rem; line-height: 1.2;
	border-radius: 8px; border: 2px solid transparent; cursor: pointer; text-decoration: none; text-align: center;
	transition: background-color .15s, border-color .15s, color .15s;
}
.osh-btn--primary { background: var(--osh-brand); color: #fff !important; }
.osh-btn--primary:hover { background: var(--osh-brand-dark); }
.osh-btn--secondary { background: var(--osh-cream); color: var(--osh-brand-ink) !important; border-color: var(--osh-brand); }
.osh-btn--secondary:hover { background: var(--osh-peach); }
.osh-btn--ghost { background: #fff; color: var(--osh-heading) !important; border-color: var(--osh-line-strong); }
.osh-btn--ghost:hover { background: var(--osh-cream); }
.osh-btn--danger { background: #fff; color: var(--osh-brand-ink) !important; border-color: var(--osh-brand); }
.osh-btn--small { min-height: 44px; padding: 8px 14px; font-size: .95rem; }
.osh-btn--block { width: 100%; }
.osh-btn:disabled { opacity: .6; cursor: wait; }
.osh-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 8px; }
.osh-actions .osh-btn--primary { flex: 1 1 220px; }

.osh-status { font-weight: 700; min-height: 1.6em; }
.osh-status--ok { color: var(--osh-ok); }
.osh-status--busy { color: var(--osh-muted); }
.osh-status--error { color: var(--osh-brand-ink); }
.osh-last-saved { margin: 10px 0 0; font-size: .95rem; }

/* Who's Bringing What --------------------------------------------------- */
.osh-board { margin: 0 0 8px; }
.osh-board__list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; }
.osh-board__list > li { display: grid; grid-template-columns: 1.8rem 1fr; align-items: center; gap: 6px 10px; padding: 12px 14px; border-radius: 10px; }
.osh-board__icon { font-size: 1.25rem; text-align: center; }
.osh-board__need { background: var(--osh-cream); border: 2px solid var(--osh-peach); border-left: 6px solid var(--osh-brand); }
.osh-board__need .osh-board__icon { color: var(--osh-brand-ink); }
.osh-board__met { background: var(--osh-ok-tint); }
.osh-board__list > li > .osh-btn { grid-column: 2; justify-self: start; }
.osh-board__form { grid-column: 1 / -1; background: #fff; border: 2px solid var(--osh-peach); border-radius: 10px; padding: 14px; margin-top: 4px; }
.osh-board__form .osh-field { margin-bottom: 12px; }
.osh-board__form .osh-actions { margin-top: 4px; }
.osh-board__thanks { grid-column: 1 / -1; color: var(--osh-ok); font-weight: 700; margin: 0; }
@media (min-width: 640px) {
	.osh-board__list > li { grid-template-columns: 1.8rem 1fr auto; }
	.osh-board__list > li > .osh-btn { grid-column: auto; }
}
.osh-add-item { background: var(--osh-cream); border-radius: 10px; padding: 16px 14px 8px; margin: 18px 0 0; scroll-margin-top: calc(var(--osh-sticky-top) + var(--osh-tabbar-h) + 16px); }
.osh-add-item .osh-h3 { margin-top: 0; }
.osh-similar { margin: 6px 0 0; color: var(--osh-amber); font-weight: 600; }
.osh-similar:empty { display: none; }
.osh-dupe { background: var(--osh-amber-tint); border: 2px solid #e6b44c; border-radius: 10px; padding: 12px 14px; margin: 0 0 12px; }
.osh-dupe p { margin: 0 0 8px; font-weight: 600; }

.osh-items__group { margin-bottom: 14px; }
.osh-items__cat { font-size: .9rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--osh-brand-ink); margin: 0 0 6px; border-bottom: 2px solid var(--osh-cream); padding-bottom: 4px; }
.osh-items__list { list-style: none; margin: 0; padding: 0; }
.osh-item { display: grid; grid-template-columns: 1.6rem 1fr; gap: 4px 8px; align-items: start; padding: 10px 0; border-bottom: 1px dashed var(--osh-line); }
.osh-item__icon { line-height: 1.6; }
.osh-item__actions { grid-column: 2; display: flex; gap: 8px; }
@media (min-width: 640px) { .osh-item { grid-template-columns: 1.6rem 1fr auto; align-items: center; } .osh-item__actions { grid-column: auto; } }
.osh-item:last-child { border-bottom: 0; }
.osh-item__main { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; }
.osh-item__main strong { color: var(--osh-heading); }
.osh-item__who, .osh-item__meta { color: var(--osh-muted); font-size: .95rem; }
.osh-item--mine { background: var(--osh-cream); margin: 0 -10px; padding: 10px; border-radius: 8px; }

/* Volunteers ------------------------------------------------------------- */
.osh-roles { display: grid; gap: 14px; }
.osh-role { border: 2px solid var(--osh-line); border-radius: 10px; padding: 14px; background: #fff; }
.osh-role--full { background: #fbf8f7; }
.osh-role__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.osh-role__title { margin: 0; font-size: 1.2rem; font-weight: 700; color: var(--osh-heading); }
.osh-role__when, .osh-role__desc { margin: 4px 0 0; color: var(--osh-muted); }
.osh-role__list { list-style: none; margin: 10px 0; padding: 0; }
.osh-role__list li { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; padding: 4px 0; min-height: 44px; }
.osh-role__list .osh-btn { margin-left: auto; }
.osh-role__mine { font-weight: 700; }
.osh-meter { height: 10px; background: var(--osh-cream); border-radius: 999px; overflow: hidden; margin: 10px 0 0; }
.osh-meter span { display: block; height: 100%; background: var(--osh-brand); border-radius: 999px; }
.osh-inline { display: grid; grid-template-columns: 1fr; gap: 8px; }

/* Info ------------------------------------------------------------------- */
.osh-address { margin: 0 0 12px; }
.osh-address strong { color: var(--osh-heading); }
.osh-directions { margin: 12px 0; }
.osh-map { position: relative; padding-top: 66%; border-radius: 10px; overflow: hidden; border: 1px solid var(--osh-line); margin: 12px 0; }
.osh-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.osh-schedule { list-style: none; margin: 0; padding: 0; border-left: 4px solid var(--osh-brand); }
.osh-schedule li { display: grid; grid-template-columns: 6.5em 1fr; gap: 10px; padding: 10px 0 10px 14px; border-bottom: 1px dashed var(--osh-line); }
.osh-schedule li:last-child { border-bottom: 0; }
.osh-schedule__time { font-family: var(--osh-font-head); font-weight: 700; color: var(--osh-brand-ink); }
.osh-schedule__what strong { color: var(--osh-heading); }
.osh-schedule__what span { display: block; color: var(--osh-muted); }
.osh-docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.osh-doc { display: flex; gap: 12px; align-items: center; padding: 12px 14px; min-height: 60px; border: 2px solid var(--osh-line); border-radius: 10px; text-decoration: none; color: var(--osh-ink) !important; }
.osh-doc:hover { border-color: var(--osh-brand); background: var(--osh-cream); }
.osh-doc__icon { font-size: 1.8rem; }
.osh-doc__text { display: flex; flex-direction: column; }
.osh-doc__text strong { color: var(--osh-heading); }
.osh-doc__text span, .osh-doc__text small { color: var(--osh-muted); }

.osh-footer { text-align: center; color: var(--osh-muted); margin: 28px 12px 0; }
.osh-footer p { margin: 4px 0; }

/* Gate ------------------------------------------------------------------- */
.osh-gate { padding: 24px 12px; }
.osh-gate__card { max-width: 560px; margin: 0 auto; padding: 0 0 24px; text-align: left; overflow: hidden; border-top: 0; }
.osh-gate__banner { background: var(--osh-brand); background-image: linear-gradient(160deg, var(--osh-brand) 0%, var(--osh-brand-dark) 100%); color: #fff; text-align: center; padding: 22px 20px 20px; margin: 0 0 20px; }
.osh-gate__body { padding: 0 20px; }
.osh-gate__icon { font-size: 2.6rem; line-height: 1; }
.osh-gate__title { font-family: var(--osh-font-head); font-weight: 700; font-size: 1.7rem; margin: 8px 0 0; color: #fff; }
.osh-gate__sub { margin: 4px 0 0; opacity: .92; }
.osh-resend { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--osh-line); }
.osh-resend .osh-input { margin-bottom: 14px; }
.osh-admin-hint { font-size: .9rem; }

/* Larger screens --------------------------------------------------------- */
@media (min-width: 640px) {
	.osh-hero { border-radius: var(--osh-radius); margin: 16px 12px 0; padding: 26px 30px 30px; }
	.osh-hero__title { font-size: 2.6rem; }
	.osh-hero__meta { flex-direction: row; flex-wrap: wrap; gap: 4px 22px; }
	.osh-card { padding: 24px 28px; }
	.osh-grid-2 { grid-template-columns: 1fr 1fr; }
	.osh-choice { grid-template-columns: repeat(3, 1fr); }
	.osh-inline { grid-template-columns: 1fr auto; }
	.osh-roles { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.osh *, .osh *::before, .osh *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
	.osh-tabbar, .osh-next, .osh-add-item, .osh-role__form, .osh-item__actions, .osh-link-quiet, .osh-actions, .osh-board__list .osh-btn { display: none !important; }
	.osh-dash { padding-bottom: 0; }
	.osh-hero { background: none; color: #000; }
	.osh-hero a, .osh-hero__title { color: #000; }
}

/* ======================================================================
 * Full red page (Settings → "Full red page background", on by default).
 * Turns the theme's white header bar, cream background, white content box
 * and footer red on the event pages only, matching the red home page.
 * Written for Astra (offuttstables.com) with generic fallbacks.
 * ==================================================================== */
body.osh-portal-page {
	--osh-page-red: var(--ast-global-color-0, #DD183B);
	--osh-page-red-dark: var(--ast-global-color-1, #CC1939);
	background: var(--osh-page-red) !important;
}
body.osh-portal-page #page,
body.osh-portal-page .site-content,
body.osh-portal-page .ast-separate-container .ast-article-single,
body.osh-portal-page .ast-separate-container .ast-article-post,
body.osh-portal-page .site-main > article,
body.osh-portal-page .wp-site-blocks,
body.osh-portal-page .entry-content {
	background: transparent !important;
	box-shadow: none !important;
	border: 0 !important;
}
body.osh-portal-page.ast-separate-container .ast-article-single { padding: 8px 0 0 !important; }
body.osh-portal-page .entry-header,
body.osh-portal-page .ast-archive-description { display: none !important; }  /* our banner shows the title */

/* Header bar */
body.osh-portal-page .site-header,
body.osh-portal-page .main-header-bar,
body.osh-portal-page .ast-primary-header-bar,
body.osh-portal-page .ast-above-header-bar,
body.osh-portal-page .ast-below-header-bar,
body.osh-portal-page .ast-mobile-header-wrap .ast-primary-header-bar,
body.osh-portal-page header.wp-block-template-part {
	background: var(--osh-page-red) !important;
	border-bottom: 0 !important;
	box-shadow: none !important;
}
body.osh-portal-page .site-title a,
body.osh-portal-page .site-description,
body.osh-portal-page .main-header-menu > .menu-item > .menu-link,
body.osh-portal-page .ast-builder-menu .main-header-menu > .menu-item > .menu-link,
body.osh-portal-page .ast-header-break-point .ast-mobile-header-wrap .menu-toggle,
body.osh-portal-page header.wp-block-template-part a {
	color: #fff !important;
}
body.osh-portal-page .main-header-menu > .menu-item:hover > .menu-link,
body.osh-portal-page .main-header-menu > .current-menu-item > .menu-link { color: var(--ast-global-color-4, #FFEDE6) !important; opacity: .9; }
body.osh-portal-page .ast-mobile-menu-trigger-minimal svg,
body.osh-portal-page .menu-toggle .ast-mobile-svg { fill: #fff !important; }

/* Footer */
body.osh-portal-page .site-footer,
body.osh-portal-page .site-primary-footer-wrap,
body.osh-portal-page .site-above-footer-wrap,
body.osh-portal-page .site-below-footer-wrap,
body.osh-portal-page footer.wp-block-template-part {
	background: var(--osh-page-red-dark) !important;
	color: #fff !important;
	border-top: 0 !important;
}
body.osh-portal-page .site-footer a,
body.osh-portal-page .site-footer p,
body.osh-portal-page .site-footer .widget-title,
body.osh-portal-page footer.wp-block-template-part a { color: #fff !important; }

/* Our own pieces on a red page: banner blends into the page, cards stay white. */
.osh-portal-page .osh-hero {
	background: transparent; background-image: none;
	padding-left: 4px; padding-right: 4px; margin-top: 0;
}
@media (min-width: 640px) { .osh-portal-page .osh-hero { padding: 8px 12px 18px; } }
.osh-portal-page .osh-hero__welcome { background: rgba(0,0,0,.14); }
.osh-portal-page .osh-card { border-top-color: #fff; box-shadow: 0 8px 24px rgba(20, 6, 9, .22); }
.osh-portal-page .osh-section:not(.osh-card) .osh-h2 { color: #fff; }
.osh-portal-page .osh-footer, .osh-portal-page .osh-footer strong { color: #fff; }
.osh-portal-page .osh-footer a { color: #fff !important; }
.osh-portal-page .osh-dash > .osh-alert { box-shadow: 0 6px 18px rgba(20, 6, 9, .2); }
.osh-portal-page .osh-gate__card { background: transparent; border: 0; box-shadow: none; }
.osh-portal-page .osh-gate__banner { background: transparent; background-image: none; padding-top: 4px; }
.osh-portal-page .osh-gate__body { background: #fff; border-radius: var(--osh-radius); padding: 22px 20px; box-shadow: 0 8px 24px rgba(20, 6, 9, .22); }
.osh-portal-page .osh-tabbar { border-color: transparent; }

/* ---------------------------------------------------------------------
 * 1.3: white welcome box, "Covered so far" panel, share card
 * ------------------------------------------------------------------- */
.osh .osh-hero__welcome,
.osh-portal-page .osh .osh-hero__welcome {
	background: #fff; color: var(--osh-heading);
	border-left: 6px solid var(--osh-night); border-radius: 10px;
	padding: 14px 16px; box-shadow: 0 4px 14px rgba(20, 6, 9, .18);
}
.osh .osh-hero__welcome a { color: var(--osh-brand-ink); }

.osh-covered {
	margin: 4px 0 6px; padding: 16px 14px 8px;
	background: linear-gradient(180deg, var(--osh-cream) 0%, #fff 100%);
	border: 2px solid var(--osh-peach); border-radius: 12px;
}
.osh-covered__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin: 0 0 8px; }
.osh-covered__title { font-family: var(--osh-font-head); font-size: 1.35rem; font-weight: 700; color: var(--osh-heading); margin: 0; }
.osh-covered__count { font-family: var(--osh-font-head); font-weight: 600; color: #fff; background: var(--osh-brand); border-radius: 999px; padding: 3px 12px; font-size: .9rem; }
.osh-covered__count:empty { display: none; }
.osh-covered__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.osh-chip { font-family: var(--osh-font-head); font-size: .82rem; font-weight: 600; color: var(--osh-brand-ink); background: #fff; border: 1px solid var(--osh-peach); border-radius: 999px; padding: 3px 10px; }
.osh-covered .osh-items__list { display: grid; gap: 8px; }
.osh-covered .osh-item { background: #fff; border: 1px solid var(--osh-line); border-radius: 10px; padding: 10px 12px; margin: 0; }
.osh-covered .osh-item--mine { background: #fff; border: 2px solid var(--osh-brand); }
.osh-covered .osh-item__main strong { font-size: 1.08rem; }
.osh-covered .osh-items__cat { border-bottom: 0; margin-top: 6px; }
@media (min-width: 640px) {
	.osh-covered .osh-items__list { grid-template-columns: 1fr 1fr; }
	.osh-covered .osh-item { grid-template-columns: 1.6rem 1fr; align-items: start; }
	.osh-covered .osh-item__actions { grid-column: 2; }
}
.osh-board__head { margin-top: 22px; }

.osh-share { border-top-color: var(--osh-night); }
.osh-share__buttons { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 6px 0 8px; }
@media (min-width: 640px) { .osh-share__buttons { grid-template-columns: 1fr 1fr; } }
.osh-share__qr { text-align: center; margin: 12px 0 0; }
.osh-share__qr canvas { width: min(280px, 80vw); height: auto; aspect-ratio: 1; image-rendering: pixelated; border: 3px solid var(--osh-brand); border-radius: 8px; }
.osh-share__qr p { margin: 8px 0 0; color: var(--osh-muted); }
.osh-share__url { margin: 10px 0 0; font-size: .9rem; color: var(--osh-muted); word-break: break-all; }
@media print { .osh-share { display: none !important; } }

/* ---------------------------------------------------------------------
 * 1.4: festive banner art, confetti background, celebration burst
 * ------------------------------------------------------------------- */
.osh-hero { position: relative; overflow: hidden; isolation: isolate; }
.osh-hero > *:not(.osh-hero__art) { position: relative; z-index: 2; }
.osh-hero--festive { padding-top: 58px; padding-bottom: 118px; }
.osh-hero__art { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.osh-hero__bunting { position: absolute; top: 0; left: -2px; right: -2px; height: 52px; }
.osh-hero__bunting svg, .osh-gate__bunting svg { display: block; width: 100%; height: 100%; }
.osh-hero__sparkles { position: absolute; top: 40px; left: 0; right: 0; height: 170px; opacity: .9; }
.osh-hero__sparkles svg { width: 100%; height: 100%; }
.osh-hero__scene { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; }
.osh-hero__scene svg { display: block; width: 100%; height: 100%; }
.osh-hero__top { margin-top: 2px; }
.osh .osh-hero__welcome { margin-bottom: 4px; }
@media (min-width: 640px) {
	.osh-hero--festive { padding-top: 84px; padding-bottom: 168px; }
	.osh-hero__bunting { height: 78px; }
	.osh-hero__scene { height: 170px; }
}
/* Confetti texture behind the banner text */
.osh-hero--festive:not(.osh-hero--photo)::before {
	content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
	background: url(../img/confetti.svg) repeat; background-size: 260px 260px;
}
/* Photo banner: red tint keeps white text readable (≥4.5:1) */
.osh-hero--photo {
	background-image: linear-gradient(180deg, rgba(204, 25, 57, .88) 0%, rgba(221, 24, 59, .72) 55%, rgba(122, 10, 30, .9) 100%), var(--osh-hero-photo) !important;
	background-size: cover !important; background-position: center !important;
}
.osh-hero--photo.osh-hero--festive { padding-bottom: 28px; }
.osh-portal-page .osh-hero--photo { border-radius: var(--osh-radius); margin: 8px 12px 0; padding-left: 16px; padding-right: 16px; }
@media (min-width: 640px) { .osh-portal-page .osh-hero--photo { padding: 84px 30px 30px; } }

/* Twinkle */
@keyframes osh-twinkle { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.1); } }
.osh-tw { transform-box: fill-box; transform-origin: center; animation: osh-twinkle 2.8s ease-in-out infinite; }
.osh-tw1 { animation-delay: .7s; } .osh-tw2 { animation-delay: 1.4s; } .osh-tw3 { animation-delay: 2.1s; }
@keyframes osh-sway { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(.6deg); } }
.osh-hero__bunting svg .osh-art-flags { transform-origin: 50% 0; animation: osh-sway 6s ease-in-out infinite; }

/* Sign-in / sign-up banners */
.osh-gate__banner { position: relative; padding-top: 52px !important; }
.osh-gate__bunting { position: absolute; top: 0; left: 0; right: 0; height: 44px; }
@media (min-width: 640px) { .osh-gate__bunting { height: 56px; } .osh-gate__banner { padding-top: 64px !important; } }

/* Full red page: confetti everywhere */
body.osh-portal-page { background-image: url(../img/confetti.svg) !important; background-repeat: repeat !important; background-size: 260px 260px !important; }

/* Celebration burst (RSVP "Attending") */
.osh-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 99999; overflow: hidden; }
.osh-confetti i { position: absolute; top: -20px; display: block; width: 10px; height: 14px; border-radius: 2px; }

@media (prefers-reduced-motion: reduce) {
	.osh-tw, .osh-hero__bunting svg .osh-art-flags { animation: none !important; }
	.osh-confetti { display: none; }
}
/* Full red page + festive banner spacing (more specific than the plain rules above) */
.osh-portal-page .osh-hero.osh-hero--festive { padding-top: 58px; padding-bottom: 118px; }
.osh-portal-page .osh-hero.osh-hero--festive::before { display: none; } /* page already has confetti */
.osh-portal-page .osh-hero.osh-hero--photo { padding-bottom: 28px; }
@media (min-width: 640px) {
	.osh-portal-page .osh-hero.osh-hero--festive { padding: 84px 12px 168px; }
	.osh-portal-page .osh-hero.osh-hero--photo { padding: 84px 30px 30px; }
}

/* ---------------------------------------------------------------------
 * 1.5: Who's Coming
 * ------------------------------------------------------------------- */
.osh-coming__tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 10px; margin: 8px 0 6px; }
.osh-tile { background: var(--osh-cream); border: 2px solid var(--osh-peach); border-radius: 12px; padding: 12px 6px; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.osh-tile strong { font-family: var(--osh-font-head); font-weight: 700; font-size: 2rem; line-height: 1.05; color: var(--osh-brand-ink); }
.osh-tile span { font-family: var(--osh-font-head); font-weight: 600; font-size: .85rem; color: var(--osh-heading); }
.osh-tile--main { background: var(--osh-brand); border-color: var(--osh-brand); }
.osh-tile--main strong, .osh-tile--main span { color: #fff; }
.osh-tile--main strong { font-size: 2.4rem; }
.osh-tile--maybe { background: var(--osh-amber-tint); border-color: #e6b44c; }
.osh-tile--maybe strong { color: var(--osh-amber); }
.osh-coming__split { margin: 4px 0 0; text-align: center; font-weight: 600; color: var(--osh-heading); }
.osh-coming__plan { margin: 12px 0 0; padding: 10px 14px; background: #fff; border: 2px dashed var(--osh-peach); border-radius: 10px; font-weight: 600; color: var(--osh-heading); text-align: center; }
.osh-coming__group { margin-top: 16px; }
.osh-coming__label { font-size: .9rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--osh-brand-ink); margin: 0 0 6px; }
.osh-coming__group--maybe .osh-coming__label { color: var(--osh-amber); }
.osh-coming__list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--osh-line); border-radius: 10px; overflow: hidden; }
.osh-coming__list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 10px 14px; border-top: 1px solid var(--osh-line); background: #fff; }
.osh-coming__list li:first-child { border-top: 0; }
.osh-coming__list li:nth-child(even) { background: #fffaf8; }
.osh-coming__list li.is-you { background: var(--osh-cream); }
.osh-coming__name { font-weight: 600; color: var(--osh-heading); }
.osh-coming__you { display: inline-block; margin-left: 8px; font-family: var(--osh-font-head); font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; background: var(--osh-brand); color: #fff; border-radius: 999px; padding: 1px 8px; vertical-align: 2px; }
.osh-coming__count { color: var(--osh-muted); }
.osh-coming__more { margin-top: 8px; }
.osh-coming__waiting { margin: 12px 0 0; text-align: center; }
