/*
Theme Name: PLAYDATES
Description: Custom theme for the PLAYDATES platform (prototype). Requires the PLAYDATES Core plugin.
Version: 0.2.0
Requires PHP: 7.4
Text Domain: playdates
*/

:root {
	--orange: #e8710a;
	--orange-btn: #bf5400;
	--orange-soft: #fff1e3;
	--ink: #2b2b33;
	--muted: #62626e;
	--line: #e7e3dc;
	--paper: #ffffff;
	--sand: #f7f4ef;
	--dark: #2f2f36;
	--tinies: #f5a800;
	--kids: #1fb35a;
	--junior: #1e9be8;
	--teens: #d0219e;
	--radius: 18px;
	--shadow: 0 6px 24px rgba(43, 43, 51, .08);
	--font: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--paper);
}
img { max-width: 100%; height: auto; }
a { color: var(--orange-btn); }
a:hover { color: #8f3d00; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.container { width: min(1120px, 100% - 40px); margin-inline: auto; }
.screen-reader-text { position: absolute; left: -9999px; }
:focus-visible { outline: 3px solid #1e6fe8; outline-offset: 2px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .75em 1.5em; border-radius: 999px; border: 2px solid transparent;
	font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
	background: var(--orange-btn); color: #fff; transition: transform .12s ease, background .12s ease;
}
.btn:hover { background: #8f3d00; color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--orange-btn); border-color: var(--orange-btn); }
.btn--ghost:hover { background: var(--orange-soft); color: #8f3d00; }
.btn--white { background: #fff; color: var(--orange-btn); }
.btn--white:hover { background: var(--orange-soft); color: #8f3d00; }
.btn--small { padding: .45em 1em; font-size: .9rem; }
.btn[disabled], .btn.is-disabled { background: #d9d5cd; color: #57534b; cursor: not-allowed; transform: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.site-header__in { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { text-decoration: none; display: inline-flex; flex-direction: column; line-height: 1; }
.wordmark { font-weight: 900; font-size: 1.7rem; letter-spacing: .01em; }
.wordmark span:nth-child(1) { color: #ff0000; } .wordmark span:nth-child(2) { color: #ffc000; }
.wordmark span:nth-child(3) { color: #00b050; } .wordmark span:nth-child(4) { color: #c00000; }
.wordmark span:nth-child(5) { color: #00b0f0; } .wordmark span:nth-child(6) { color: #00a03c; }
.wordmark span:nth-child(7) { color: #ff00ff; } .wordmark span:nth-child(8) { color: #7030a0; }
.wordmark span:nth-child(9) { color: #ff0000; }
.brand__tag { font-size: .72rem; font-weight: 700; color: var(--orange-btn); margin-top: 3px; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.main-nav a { display: block; padding: .45em .9em; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav a[aria-current="page"] { background: var(--orange-soft); color: var(--orange-btn); }
.site-header__user { display: flex; align-items: center; gap: 10px; }
.site-header__hello { font-size: .9rem; color: var(--muted); }
/* ---------- Stripes ---------- */
.stripes {
	height: 14px;
	background: linear-gradient(90deg,
		#e36c0c 0 11.11%, #ffc000 11.11% 22.22%, #00ff00 22.22% 33.33%, #ff0000 33.33% 44.44%,
		#00b0f0 44.44% 55.55%, #00b050 55.55% 66.66%, #ff00ff 66.66% 77.77%, #990099 77.77% 88.88%, #e36c0c 88.88% 100%);
}
.stripes--tall { height: auto; padding-block: 64px; }

/* ---------- Hero ---------- */
.hero { background: var(--orange); color: #fff; }
.hero__in { padding-block: clamp(48px, 8vw, 96px); display: grid; gap: 28px; }
.hero h1 { font-style: italic; font-weight: 800; margin: 0; max-width: 16ch; text-shadow: 0 2px 0 rgba(0,0,0,.08); }
.hero p { font-size: 1.25rem; font-weight: 700; max-width: 40ch; margin: 0; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(44px, 6vw, 80px); }
.section--sand { background: var(--sand); }
.section__title { text-align: center; color: var(--orange); font-weight: 900; text-transform: uppercase; letter-spacing: .02em; }
.section__lead { text-align: center; max-width: 60ch; margin: 0 auto 2rem; color: var(--muted); }
.intro { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.intro__cards { display: grid; gap: 16px; }
.cta-card { display: block; padding: 24px; border-radius: var(--radius); text-decoration: none; color: #fff; }
.cta-card strong { display: block; font-size: 1.4rem; line-height: 1.2; margin-bottom: 4px; }
.cta-card--blue { background: #0b6fa8; } .cta-card--orange { background: var(--orange-btn); }
.cta-card:hover { color: #fff; filter: brightness(1.08); }
@media (max-width: 820px) { .intro { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: #fff; border-radius: var(--radius); padding: 24px; text-align: center; box-shadow: var(--shadow); }
.step__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--orange-soft); color: var(--orange-btn); display: grid; place-items: center; margin: 0 auto 12px; font-weight: 900; font-size: 1.6rem; }
.step h3 { margin-bottom: .3em; }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Age cards ---------- */
.ages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.age-card { text-align: center; text-decoration: none; color: var(--ink); background: #fff; border-radius: var(--radius); padding: 24px 16px; box-shadow: var(--shadow); transition: transform .15s ease; }
.age-card:hover { transform: translateY(-4px); color: var(--ink); }
.age-card__icon { width: 96px; height: 96px; margin: 0 auto 12px; display: block; }
.age-card strong { display: block; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .03em; }
.age-card span { color: var(--muted); font-size: .95rem; }
@media (max-width: 820px) { .ages { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Training cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.t-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); }
.t-card__cover { text-decoration: none; display: flex; align-items: flex-end; min-height: 150px; padding: 18px; background: var(--age, var(--orange)); color: var(--on, #fff); position: relative; }
.t-card__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.t-card__age { position: relative; font-weight: 900; font-size: 1.6rem; text-transform: uppercase; line-height: 1; }
.t-card__age small { display: block; font-size: .85rem; font-weight: 700; opacity: .9; margin-top: 4px; text-transform: none; }
.t-card__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.t-card__title { font-size: 1.25rem; margin: 0; }
.t-card__title a { color: var(--ink); text-decoration: none; }
.t-card__title a:hover { color: var(--orange-btn); }
.t-card__excerpt { color: var(--muted); font-size: .98rem; margin: 0; }
.t-card__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 700; padding: .25em .75em; border-radius: 999px; background: var(--sand); color: #45454f; }
.chip--ok { background: #e1f6e8; color: #0d6b32; }
.chip--warn { background: #fff0cf; color: #7a4a00; }
.chip--bad { background: #fde3e3; color: #8a1c1c; }
.chip .dot { width: .6em; height: .6em; border-radius: 50%; background: var(--age, var(--orange)); }
.t-card__foot { padding: 0 20px 20px; }
.age-tinies { --age: var(--tinies); --on: #2b2b33; } .age-kids { --age: var(--kids); }
.age-junior { --age: var(--junior); } .age-teens { --age: var(--teens); }

/* ---------- Catalog ---------- */
.page-head { background: var(--sand); padding-block: 40px 28px; border-bottom: 1px solid var(--line); }
.page-head h1 { margin: 0 0 .2em; }
.page-head p { color: var(--muted); margin: 0; max-width: 60ch; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.filters a { text-decoration: none; font-weight: 700; padding: .5em 1.1em; border-radius: 999px; border: 2px solid var(--line); color: var(--ink); background: #fff; }
.filters a:hover { border-color: var(--age, var(--orange)); }
.filters a[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Single training ---------- */
.t-hero { background: var(--age, var(--orange)); color: var(--on, #fff); padding-block: 44px; }
.t-hero h1 { margin: 6px 0 0; }
.t-hero__age { font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.t-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; padding-block: 40px 64px; }
.t-aside { position: sticky; top: 92px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.t-aside dl { margin: 0 0 18px; display: grid; gap: 10px; }
.t-aside dt { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.t-aside dd { margin: 0; font-weight: 700; font-size: 1.1rem; }
.t-aside .btn { width: 100%; }
.t-aside__note { font-size: .88rem; color: var(--muted); margin: 12px 0 0; }
.included h2 { font-size: 1.4rem; }
.included__section { margin-bottom: 22px; }
.included__section h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; color: var(--orange-btn); border-bottom: 2px solid var(--orange-soft); padding-bottom: 6px; }
.lesson-list { list-style: none; margin: 0; padding: 0; }
.lesson-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.lesson-list a { color: var(--ink); text-decoration: none; font-weight: 600; }
.lesson-list a:hover { color: var(--orange-btn); }
.lesson-list .is-locked { color: var(--muted); }
.type-badge { flex: none; font-size: .7rem; font-weight: 900; letter-spacing: .05em; padding: .25em .6em; border-radius: 6px; background: var(--sand); color: #45454f; }
@media (max-width: 860px) { .t-layout { grid-template-columns: 1fr; } .t-aside { position: static; order: -1; } }

/* ---------- Notices ---------- */
.notice-bar { padding: 14px 18px; border-radius: 12px; margin: 20px 0; font-weight: 600; background: #fff0cf; color: #5c3a00; border: 1px solid #f0d48f; }
.notice-bar--ok { background: #e1f6e8; color: #0d4d26; border-color: #a8dfb9; }
.notice-bar--bad { background: #fde3e3; color: #7a1616; border-color: #f2b8b8; }

/* ---------- Dashboard ---------- */
.dash-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; justify-content: space-between; margin-bottom: 8px; }
.dash-head h1 { margin: 0; }
.dash-section { margin-top: 40px; }
.dash-section > h2 { font-size: 1.4rem; }
.progress { height: 10px; border-radius: 999px; background: #ece8e1; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--age, var(--orange)); border-radius: 999px; transition: width .3s ease; }
.progress-row { display: flex; justify-content: space-between; font-size: .88rem; color: var(--muted); margin: 6px 0 12px; }
.devices { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 24px; }
.device { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.device:last-child { border-bottom: 0; }
.device small { display: block; color: var(--muted); }
.empty { background: var(--sand); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--muted); }

/* ---------- Login ---------- */
.login-card { width: min(440px, 100%); margin: 56px auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; border: 1px solid var(--line); }
.login-card h1 { font-size: 1.8rem; }
.login-card form p { margin: 0 0 16px; }
.login-card label { display: block; font-weight: 700; margin-bottom: 4px; }
.login-card input[type="text"], .login-card input[type="password"] { width: 100%; padding: .7em .9em; font: inherit; border: 2px solid var(--line); border-radius: 12px; }
.login-card input[type="text"]:focus, .login-card input[type="password"]:focus { border-color: var(--orange); outline: none; }
.login-card input[type="submit"] { width: 100%; }

/* ---------- Lesson viewer ---------- */
.viewer-bar { background: var(--dark); color: #fff; }
.viewer-bar__in { display: flex; align-items: center; gap: 16px; min-height: 56px; }
.viewer-bar a { color: #fff; text-decoration: none; font-weight: 700; }
.viewer-bar a:hover { text-decoration: underline; color: #fff; }
.viewer-bar__title { flex: 1; min-width: 0; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer-bar__nav { display: flex; gap: 8px; }
.viewer-bar .btn { background: #fff; color: var(--ink); padding: .35em .9em; font-size: .9rem; }
.viewer-bar .btn:hover { background: var(--orange-soft); color: var(--ink); }
.viewer-bar .btn.is-disabled { background: #55555f; color: #a8a8b3; }
.viewer { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; padding-block: 24px 56px; align-items: start; }
.viewer__stage { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: #fff; }
.viewer__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.viewer__hint { font-size: .85rem; color: var(--muted); margin: 0; }
.btn.is-done { background: #0d7a3b; }
.btn.is-done:hover { background: #095c2c; }
.viewer__nav { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: 84px; max-height: calc(100vh - 110px); overflow: auto; }
.viewer__nav h2 { font-size: 1.05rem; margin-bottom: 4px; }
.vnav-section { margin-top: 16px; }
.vnav-section h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 6px; }
.vnav-list { list-style: none; margin: 0; padding: 0; }
.vnav-list a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.vnav-list a:hover { background: var(--sand); }
.vnav-list .is-current a { background: var(--orange-soft); color: #7a3600; }
.status-dot { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #c9c4ba; background: #fff; position: relative; }
.status-dot[data-status="started"] { border-color: var(--orange); background: linear-gradient(90deg, var(--orange) 50%, #fff 50%); }
.status-dot[data-status="completed"] { border-color: #0d7a3b; background: #0d7a3b; }
.status-dot[data-status="completed"]::after { content: ""; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
@media (max-width: 960px) { .viewer { grid-template-columns: 1fr; } .viewer__nav { position: static; max-height: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #d7d7de; padding-block: 36px; font-size: .92rem; }
.site-footer a { color: #ffd9b3; }
.site-footer__in { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }

/* ---------- Prose ---------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; }

/* ---------- Print: never print lessons ---------- */
@media print { .viewer { display: none !important; } body::before { content: "Printing is disabled for this page."; display: block; padding: 24px; font: 16px sans-serif; } }


/* =====================================================================
   v0.2 - showcase site: navigation, hero, sections, footer, content pages
   ===================================================================== */
.container--narrow { width: min(760px, 100% - 40px); }
.center { text-align: center; margin-top: 28px; }
.btn--lg { padding: .9em 1.8em; font-size: 1.05rem; }
.btn--outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.85); }
.btn--outline-white:hover { background: rgba(255,255,255,.16); color: #fff; }
.eyebrow, .kicker { font-weight: 900; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; margin: 0 0 .6em; }
.kicker { color: var(--orange-btn); }

/* Header + navigation */
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(43,43,51,.10); }
.site-header__in { gap: 20px; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.main-nav > ul { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.main-nav li { position: relative; }
.main-nav a { display: block; padding: .5em .85em; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .96rem; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a, .main-nav a[aria-current="page"] { background: var(--orange-soft); color: var(--orange-btn); }
.main-nav .menu-item-has-children > a::after { content: ""; display: inline-block; margin-left: .45em; width: .45em; height: .45em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.main-nav .sub-menu { display: block; flex-direction: column; list-style: none; margin: 0; padding: 8px; position: absolute; left: 0; top: 100%; min-width: 230px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s ease; z-index: 60; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu, .main-nav li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a { border-radius: 10px; font-weight: 600; }
.main-nav__user { display: flex; gap: 8px; margin-left: 6px; }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 2px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 22px; height: 2.5px; background: var(--ink); border-radius: 2px; position: relative; content: ""; }
.nav-toggle__bars::before { position: absolute; top: -7px; } .nav-toggle__bars::after { position: absolute; top: 7px; }
@media (max-width: 1020px) {
	.nav-toggle { display: inline-flex; }
	.site-header__in { flex-wrap: wrap; min-height: 64px; }
	.main-nav { display: none; width: 100%; margin: 0; padding: 8px 0 16px; flex-direction: column; align-items: stretch; }
	.main-nav.is-open { display: flex; }
	.main-nav > ul { flex-direction: column; align-items: stretch; }
	.main-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; display: none; }
	.main-nav li.is-open > .sub-menu { display: block; }
	.main-nav__user { margin: 8px 0 0; }
}

/* Home hero */
.hero--home { background: var(--orange) center / cover no-repeat; position: relative; }
.hero--home .hero__in { padding-block: clamp(56px, 9vw, 120px) clamp(40px, 6vw, 72px); }
.hero--home h1 { max-width: 18ch; font-size: clamp(2.4rem, 6vw, 4.2rem); }
.hero__lead { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 700; max-width: 46ch; margin: 0; }
.hero__ages { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.hero__ages > span { font-weight: 800; }
.hero__ages a { color: #fff; text-decoration: none; font-weight: 800; padding: .4em .95em; border-radius: 999px; background: rgba(255,255,255,.18); border: 1.5px solid rgba(255,255,255,.55); }
.hero__ages a:hover { background: #fff; color: var(--orange-btn); }
.hero__ages small { font-weight: 600; opacity: .9; }
.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust__in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-block: 22px; }
.trust__in > div { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: .95rem; line-height: 1.3; }
.trust .icon { flex: none; color: var(--orange-btn); }
@media (max-width: 900px) { .trust__in { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .trust__in { grid-template-columns: 1fr; } }

/* Split (image + text) */
.split__in { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split__media img { width: 100%; border-radius: 28px; box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; }
.split__media.is-illustration { background: var(--orange-soft); border-radius: 28px; aspect-ratio: 4/3; display: grid; place-items: center; }
.illus { display: flex; gap: 12px; align-items: center; } .illus svg { width: 30%; height: auto; }
.illus svg:nth-child(2) { width: 38%; transform: translateY(-14px); }
.ticks { list-style: none; padding: 0; margin: 0 0 1.4em; }
.ticks li { position: relative; padding-left: 32px; margin-bottom: .6em; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--kids); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 900; }
@media (max-width: 820px) { .split__in { grid-template-columns: 1fr; } }

/* Age cards: per-age accent */
.age-card { border-bottom: 5px solid var(--age, var(--orange)); }
.age-card em { display: block; margin-top: 10px; font-style: normal; font-weight: 800; color: var(--orange-btn); font-size: .92rem; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature .icon { color: var(--orange-btn); background: var(--orange-soft); border-radius: 14px; padding: 10px; width: 52px; height: 52px; margin-bottom: 12px; }
.feature h3 { margin-bottom: .3em; } .feature p { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 800; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--orange-btn); }
.faq details[open] summary::after { content: "–"; }
.faq__a { padding: 0 20px 6px; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--orange-btn) center / cover no-repeat; color: #fff; padding-block: clamp(40px, 6vw, 72px); }
.cta-band__in { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-band h2 { margin: 0 0 .25em; } .cta-band p { margin: 0; font-weight: 600; font-size: 1.1rem; }
.cta-band--compact { padding-block: 36px; }
.cta-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; justify-content: space-between; margin-top: 40px; padding: 22px 26px; background: var(--orange-soft); border-radius: var(--radius); }
.help-box { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-top: 28px; padding: 18px 22px; background: var(--sand); border-radius: var(--radius); }

/* Inner page hero */
.page-hero { background: var(--sand) center / cover no-repeat; border-bottom: 1px solid var(--line); padding-block: clamp(36px, 6vw, 72px); }
.page-hero.has-image { color: #fff; border: 0; padding-block: clamp(64px, 10vw, 140px); }
.page-hero.has-image .crumbs a, .page-hero.has-image .crumbs li { color: #fff; }
.page-hero h1 { margin: 0 0 .25em; }
.page-hero__lead { font-size: 1.2rem; max-width: 60ch; margin: 0; color: var(--muted); }
.page-hero.has-image .page-hero__lead { color: #fff; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 14px; font-size: .88rem; }
.crumbs li + li::before { content: "›"; margin-right: 6px; opacity: .6; }
.crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.t-hero .crumbs a, .t-hero .crumbs li { color: inherit; opacity: .9; }
.page-head .crumbs { margin-bottom: 8px; }

/* Content utilities for page bodies (usable in the editor or a page builder) */
.entry > * { max-width: none; }
.entry .band { padding-block: clamp(40px, 6vw, 80px); }
.entry .band--sand { background: var(--sand); }
.entry .band--orange { background: var(--orange-btn); color: #fff; }
.entry .band--orange a { color: #fff; }
.entry .lead { font-size: 1.25rem; color: var(--muted); }
.entry h2.title { text-align: center; color: var(--orange); font-weight: 900; text-transform: uppercase; }
.entry .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.entry .col-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.entry .col-card h3 { margin-bottom: .3em; } .entry .col-card p:last-child { margin-bottom: 0; }
.entry .num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--orange-soft); color: var(--orange-btn); font-weight: 900; margin-bottom: 10px; }
.entry .two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
.entry .two img { border-radius: 24px; width: 100%; }
@media (max-width: 820px) { .entry .two { grid-template-columns: 1fr; } }
.entry .wp-block-image img, .entry .band img { max-width: 100%; height: auto; }

/* Posts */
.cards--posts { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.post-card h2, .post-card h3 { font-size: 1.25rem; margin: 0; } .post-card h2 a, .post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--orange-btn); }
.post-card img { border-radius: 12px; margin-bottom: 8px; }
.post-card p { color: var(--muted); margin: 0; }
.post-card__date { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.pager { margin-top: 32px; text-align: center; } .pager .nav-links { display: flex; gap: 8px; justify-content: center; }
.pager .page-numbers { padding: .4em .9em; border-radius: 999px; border: 2px solid var(--line); text-decoration: none; }
.pager .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.prose__img { margin-bottom: 24px; } .prose__img img { border-radius: 20px; }

/* Contact form */
.contact-form label { display: block; font-weight: 700; margin-bottom: 4px; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form select, .contact-form textarea { width: 100%; padding: .7em .9em; font: inherit; border: 2px solid var(--line); border-radius: 12px; background: #fff; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--orange); outline: none; }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form__hp { position: absolute; left: -9999px; }
.contact-form__consent label { font-weight: 500; display: flex; gap: 10px; align-items: flex-start; }
@media (max-width: 620px) { .contact-form__row { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--dark); color: #d9d9e0; padding-block: 48px 0; }
.site-footer a { color: #fff; text-decoration: none; } .site-footer a:hover { text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 32px; }
.site-footer h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: .8em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; } .site-footer li { margin-bottom: .45em; }
.site-footer .wordmark { font-size: 1.5rem; }
.site-footer__blurb { margin-top: 12px; font-size: .95rem; }
.site-footer__social { display: flex; gap: 14px; }
.site-footer__base { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.12); padding-block: 18px; font-size: .88rem; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }
.draft-note { margin: 28px 0 0; padding: 10px 14px; border: 2px dashed #e0b27a; border-radius: 10px; background: #fff8ef; color: #7a4a00; font-size: .85rem; }

.hero--home::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(150,60,0,.6) 0%, rgba(150,60,0,.25) 55%, transparent 80%); pointer-events: none; }

/* Bacheca PLAYDATES (staff dashboard) */
.staff-form label { display: block; font-weight: 700; margin-bottom: 4px; }
.staff-form input[type="text"], .staff-form input[type="number"], .staff-form select, .staff-form textarea, .staff-form input[type="file"] { width: 100%; padding: .7em .9em; font: inherit; border: 2px solid var(--line); border-radius: 12px; background: #fff; }
.staff-form input:focus, .staff-form select:focus, .staff-form textarea:focus { border-color: var(--orange); outline: none; }
.staff-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.staff-form__row--3 { grid-template-columns: 1fr 1fr 1fr; }
.staff-form p { margin: 0 0 14px; }
.staff-form .checkbox-row { display: flex; align-items: center; gap: 8px; }
.staff-form .checkbox-row label { display: inline; margin: 0; font-weight: 500; }
@media (max-width: 700px) { .staff-form__row, .staff-form__row--3 { grid-template-columns: 1fr; } }

.staff-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.staff-card h2 { margin-top: 0; font-size: 1.25rem; }
.staff-card__intro { color: var(--muted); margin-top: -8px; }

.staff-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.staff-table th, .staff-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: .92rem; vertical-align: middle; }
.staff-table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.staff-table tr:last-child td { border-bottom: none; }
.staff-table form { display: inline; }

.staff-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.staff-tabs a { padding: .5em 1.1em; border-radius: 999px; border: 2px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; font-size: .92rem; }
.staff-tabs a.is-active, .staff-tabs a:hover { border-color: var(--orange); color: var(--orange-btn); }
.hero--home > .container { position: relative; }
