/* My Wishes kit — the framework-free stylesheet the standalone pages load
   (the Admin tool, the provider portal, Joey). Same tokens, type and parts as
   the Portal's styles.css, kept in step by hand; the Portal serves it at /kit/
   and each portal carries its own copy (admintool/kit, sp/kit; a test holds
   them equal). Both themes: the device setting, overridden by data-theme on
   <html>. Grew out of docs/ui-sweep/mock/kit.css (2026-10-07). */
@font-face { font-family: "Fraunces"; src: url(fonts/fraunces.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Literata"; src: url(fonts/literata.woff2) format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Literata"; src: url(fonts/literata-italic.woff2) format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url(fonts/atkinson.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }

/* ------------------------------------------------------------------ tokens */
:root {
	/* Paper: a cloud-grey page, near-white panels, the logo's navy for text. */
	--ground: #e6ecf2;
	--sheet: #fafbfd;
	--ink: #0e1e36;
	--heading: #132847;
	--ink2: #24334a;
	--mute: #536277;
	--line: #c9d3de;
	--tint: #e1ebf7;
	--brand: #0157ac;
	--brand-ink: #ffffff;
	--deep: #132847;      /* the logo's navy: footer, the header rule, the deep panel */
	--sky: #8fc3d1;       /* the logo's light teal: the footer's crest, small marks */
	--on-deep: #eef3f9;
	--on-deep-mute: #a9b8cc;
	--accent: #d1004f;    /* #FF0066 darkened to pass 4.5:1 as text; used for one thing: "needs you" */
	--on-accent: #ffffff;
	--ok: #17734a;
	--ok-tint: #e2f2ea;
	--warn: #8a5a00;
	--warn-tint: #fbf0d9;
	--alert: #b3261e;
	--alert-tint: #fbe6e4;
	--logo-ink: #132847;
	--logo-wing: #447d8f;
	--rule: var(--deep);      /* the header's underline */
	--frame-ink: var(--deep); /* the Menu button */
	--avatar: var(--deep);
	--panel-deep: var(--deep);

	--disp: "Fraunces", "Iowan Old Style", Georgia, serif;
	--serif: "Literata", "Iowan Old Style", Charter, Georgia, serif;
	--sans: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, sans-serif;
	--mono: ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;

	--r: 6px;
	--measure: 66ch;
	--max: 1120px;
	color-scheme: light;
}

/* Night: the same roles on navy.
   Measured, both themes: text >= 11.7:1 (needs 7), quiet text >= 5.2:1 and every
   tag, link and button label >= 5.1:1 (needs 4.5). Paper / Night on the sheet:
   ink 16.1 / 14.7, mute 6.0 / 7.1, brand 6.9 / 8.9, accent 5.3 / 6.2. */
:root[data-theme="dark"] {
	--ground: #0b1322;
	--sheet: #131e31;
	--ink: #ecf1f8;
	--heading: #dfe9f6;
	--ink2: #cfd9e6;
	--mute: #9caabd;
	--line: #2b3a52;
	--tint: #1b2c47;
	--brand: #8ec1ff;
	--brand-ink: #0b1322;
	--deep: #060d1b;
	--sky: #8fc3d1;
	--on-deep: #eef3f9;
	--on-deep-mute: #9caabd;
	--accent: #ff6b9d;
	--on-accent: #0b1322;
	--ok: #6fd3a0;
	--ok-tint: #12302a;
	--warn: #f0c36a;
	--warn-tint: #33280f;
	--alert: #ff8a7a;
	--alert-tint: #3a1b1b;
	--logo-ink: #f4f4f0;
	--logo-wing: #8fc3d1;
	--rule: var(--sky); --frame-ink: var(--ink); --avatar: var(--tint); --panel-deep: var(--tint);
	color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--ground: #0b1322; --sheet: #131e31; --ink: #ecf1f8; --heading: #dfe9f6; --ink2: #cfd9e6; --mute: #9caabd;
		--line: #2b3a52; --tint: #1b2c47; --brand: #8ec1ff; --brand-ink: #0b1322; --deep: #060d1b;
		--on-deep: #eef3f9; --on-deep-mute: #9caabd; --accent: #ff6b9d; --on-accent: #0b1322; --ok: #6fd3a0; --ok-tint: #12302a;
		--warn: #f0c36a; --warn-tint: #33280f; --alert: #ff8a7a; --alert-tint: #3a1b1b; --logo-ink: #f4f4f0; --logo-wing: #8fc3d1;
		--rule: var(--sky); --frame-ink: var(--ink); --avatar: var(--tint); --panel-deep: var(--tint);
		color-scheme: dark;
	}
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ground); overflow-x: clip; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 18px/1.6 var(--serif); overflow-wrap: break-word; min-height: 100dvh; display: flex; flex-direction: column; }
a { color: var(--brand); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
img { max-width: 100%; }
h1, h2, h3 { color: var(--heading); text-wrap: balance; }
p { margin: 0 0 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ------------------------------------------------------------------ the frame */
.head { position: sticky; top: 0; z-index: 20; background: var(--sheet); border-bottom: 3px solid var(--rule); }
.head .bar { max-width: var(--max); margin: 0 auto; padding: 0 20px; min-height: 68px; display: flex; align-items: center; gap: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand svg { width: 42px; height: auto; flex: none; }
.brand .mark path:first-child { fill: var(--logo-ink); }
.brand .mark path:last-child { fill: var(--logo-wing); }
.brand b { font: 600 25px/1 var(--disp); letter-spacing: -.01em; font-variation-settings: "SOFT" 50, "opsz" 48; }
.brand small { font: 700 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); border: 1.5px solid var(--line); border-radius: 999px; padding: 5px 9px; margin-left: 2px; }
.head .tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: var(--r); border: 0; background: none; color: var(--ink2); cursor: pointer; position: relative; }
.icon-btn:hover { background: var(--tint); }
.icon-btn svg { width: 24px; height: 24px; }
.icon-btn .dot { position: absolute; top: 7px; right: 7px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font: 700 12px/18px var(--sans); text-align: center; }
.who { display: inline-flex; align-items: center; gap: 10px; font: 600 16px var(--sans); color: var(--ink2); text-decoration: none; }
.who i { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--avatar); color: var(--on-deep); font: 700 15px var(--sans); font-style: normal; }
.menu-btn { display: none; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px; font: 700 17px var(--sans); color: var(--frame-ink); background: none; border: 2px solid var(--frame-ink); border-radius: var(--r); cursor: pointer; }
.menu-btn .burger { display: inline-grid; gap: 4px; width: 18px; } .menu-btn .burger i { height: 2.5px; background: currentColor; border-radius: 1px; }

/* The app's body: a quiet list of places on the left from tablet up; a Menu button below. */
.shell { flex: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 40px; }
.shell.solo { display: block; max-width: 760px; }
.places { padding: 30px 0 40px; font: 17px var(--sans); position: sticky; top: 71px; align-self: start; max-height: calc(100dvh - 71px); overflow: auto; }
.places h4 { margin: 22px 0 6px; padding-left: 12px; font: 700 12.5px/1 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--mute); }
.places h4:first-of-type { margin-top: 18px; }
.places a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: var(--r); color: var(--ink2); text-decoration: none; }
.places a svg { width: 21px; height: 21px; flex: none; color: var(--mute); }
.places a:hover { background: var(--tint); color: var(--ink); }
.places a[aria-current="page"] { background: var(--sheet); color: var(--ink); font-weight: 700; box-shadow: inset 3px 0 0 var(--brand); }
.places a[aria-current="page"] svg { color: var(--brand); }
main { min-width: 0; padding: 34px 0 56px; }

@media (max-width: 960px) {
	.shell { grid-template-columns: 1fr; gap: 0; }
	.places { display: none; position: static; max-height: none; padding: 8px 0 18px; }
	.places.open { display: block; }
	.menu-btn { display: inline-flex; }
	.who span { display: none; }
}
@media (max-width: 560px) {
	body { font-size: 17px; }
	.head .bar { padding: 0 14px; gap: 8px; min-height: 62px; }
	.shell { padding: 0 14px; }
	.brand b { font-size: 22px; }
	.brand svg { width: 36px; }
	.brand small { display: none; }
	.head .tools .icon-btn.help, .head .tools .hide-sm { display: none; }
	main { padding-top: 24px; }
}

/* The footer: the logo's navy, rising in the outline of its cloud, the dove's blue along the crest. */
.foot { position: relative; margin-top: 40px; background: var(--deep); color: var(--on-deep); font: 15px/1.5 var(--sans); }
.foot::before, .foot::after { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 18px; pointer-events: none;
	-webkit-mask: var(--m) repeat-x left bottom / 160px 18px; mask: var(--m) repeat-x left bottom / 160px 18px; }
.foot::before { background: var(--deep); --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='18' viewBox='0 0 160 18'%3E%3Cpath d='M0 18V12C14 12 16 4 30 4S46 12 58 12 70 6 80 6 92 12 102 12 116 2 132 2 148 12 160 12V18Z' fill='black'/%3E%3C/svg%3E"); }
.foot::after { background: var(--sky); --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='18' viewBox='0 0 160 18'%3E%3Cpath d='M0 12C14 12 16 4 30 4S46 12 58 12 70 6 80 6 92 12 102 12 116 2 132 2 148 12 160 12' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E"); }
.foot .bar { max-width: var(--max); margin: 0 auto; padding: 22px 20px 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot a { color: var(--on-deep); text-decoration: none; font-weight: 600; }
.foot a:hover { text-decoration: underline; }
.foot .build { color: var(--on-deep-mute); font: 13px var(--mono); }
.foot .motto { font: 700 12px/1 var(--sans); letter-spacing: .22em; color: var(--sky); text-transform: uppercase; }

/* ------------------------------------------------------------------ page identity */
.kicker { font: 600 14px/1.2 var(--sans); letter-spacing: .03em; color: var(--mute); margin: 0 0 10px; }
.kicker b { color: var(--ink2); font-weight: 700; }
h1 { font: 600 clamp(36px, 5vw, 54px)/1.04 var(--disp); letter-spacing: -.015em; margin: 0 0 14px; font-variation-settings: "SOFT" 50, "opsz" 144; }
.lede { max-width: var(--measure); font-size: 19px; color: var(--ink2); margin: 0 0 26px; }
.page-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 24px; }
.page-top > div { flex: 1 1 420px; }
.page-top .btn { margin-bottom: 26px; }

h2 { font: 600 26px/1.15 var(--disp); margin: 0 0 8px; font-variation-settings: "SOFT" 50, "opsz" 72; }
h3 { font: 700 18px/1.3 var(--sans); margin: 0 0 4px; }
.note { color: var(--mute); font: 15px/1.5 var(--sans); }

/* ------------------------------------------------------------------ surfaces */
.panel { background: var(--sheet); border-radius: var(--r); padding: 22px 24px 20px; margin-bottom: 16px; }
.panel > p, .panel .prose { color: var(--ink2); max-width: var(--measure); }
.panel.inset { background: var(--ground); }
.deep { background: var(--panel-deep); color: var(--on-deep); border-radius: var(--r); padding: 22px 24px; margin-bottom: 16px; }
.deep h2 { color: var(--on-deep); } .deep p { color: var(--on-deep-mute); }
.notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; background: var(--tint); border-left: 4px solid var(--brand); border-radius: var(--r); padding: 12px 16px; margin-bottom: 18px; font: 600 17px/1.4 var(--sans); color: var(--ink); }
.notice.needs { border-left-color: var(--accent); }
.notice p { margin: 0; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 16px; }
.row > * { min-width: 0; margin-bottom: 0; }

/* ------------------------------------------------------------------ controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: var(--r);
	background: var(--brand); color: var(--brand-ink); border: 2px solid var(--brand); font: 700 17px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn.quiet { background: none; color: var(--ink); border-color: var(--line); }
.btn.quiet:hover { background: var(--tint); border-color: var(--ink2); filter: none; }
.btn.wide { width: 100%; }
.btn svg { width: 20px; height: 20px; }
.links { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; font: 17px var(--sans); }

.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font: 700 16px var(--sans); color: var(--ink); }
.field .hint { font: 15px var(--sans); color: var(--mute); }
input[type=text], input[type=email], input[type=password], input[type=search], select {
	width: 100%; min-height: 52px; padding: 10px 14px; font: 18px var(--sans); color: var(--ink); background: var(--sheet);
	border: 2px solid var(--line); border-radius: var(--r); }
input:hover, select:hover { border-color: var(--mute); }
input:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }

.controls { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin: 0 0 16px; font: 16px var(--sans); }
.controls .grow { flex: 1 1 260px; }
.controls select { width: auto; min-width: 180px; }
.seg { display: inline-flex; flex-wrap: wrap; border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; }
.seg button, .seg a { background: none; border: 0; border-right: 2px solid var(--ink); color: var(--ink); min-height: 44px; padding: 0 16px; font: 600 16px var(--sans); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.seg > :last-child { border-right: 0; }
.seg [aria-pressed="true"], .seg [aria-current="page"] { background: var(--ink); color: var(--sheet); }
.seg .n { opacity: .7; font-weight: 500; }
.chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.chips button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--line); background: none; color: var(--ink2); font: 600 15px var(--sans); cursor: pointer; }
.chips button[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); background: var(--sheet); }

.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font: 700 13px/1.4 var(--sans); background: var(--tint); color: var(--ink2); white-space: nowrap; }
.tag.ok { background: var(--ok-tint); color: var(--ok); }
.tag.warn { background: var(--warn-tint); color: var(--warn); }
.tag.alert { background: var(--alert-tint); color: var(--alert); }
.tag.line { background: none; border: 1.5px solid var(--line); }

/* ------------------------------------------------------------------ numbers */
.stat { background: var(--sheet); border-radius: var(--r); padding: 18px 20px 16px; text-decoration: none; color: inherit; display: block; }
a.stat:hover { box-shadow: inset 0 0 0 2px var(--line); }
.stat .k, .stat .v, .stat .d { display: block; }
.stat .k { font: 700 14px/1.2 var(--sans); color: var(--mute); letter-spacing: .02em; display: flex !important; align-items: center; gap: 8px; }
.stat .k svg { width: 18px; height: 18px; color: var(--brand); }
.stat .v { font: 700 44px/1.05 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -.01em; margin: 8px 0 2px; }
.stat .d { font: 15px/1.4 var(--sans); color: var(--mute); }
.stat.needs .v { color: var(--accent); }

dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 10px 26px; margin: 0; font: 17px/1.45 var(--sans); }
dl.kv dt { font-weight: 700; color: var(--mute); }
dl.kv dd { margin: 0; color: var(--ink); }
@media (max-width: 560px) { dl.kv { grid-template-columns: 1fr; gap: 0; } dl.kv dt { margin-top: 12px; } }

/* ------------------------------------------------------------------ lists of things */
.items { list-style: none; margin: 0; padding: 0; }
.items > li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.items > li:first-child { border-top: 0; padding-top: 4px; }
.items .glyph { width: 44px; height: 44px; border-radius: var(--r); background: var(--tint); display: grid; place-items: center; color: var(--brand); }
.items .glyph svg { width: 22px; height: 22px; }
.items .t { font: 700 18px/1.3 var(--sans); color: var(--ink); text-decoration: none; }
.items a.t:hover { text-decoration: underline; }
.items .m { font: 15px/1.45 var(--sans); color: var(--mute); display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin-top: 2px; }
.items .end { display: flex; align-items: center; gap: 6px; }
@media (max-width: 560px) { .items > li { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 2px 12px; } .items .glyph { width: 40px; height: 40px; } .items .end .tag { display: none; } }

/* Three-column "Past / Present / Future". */
.ppf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; background: var(--sheet); border-radius: var(--r); margin-bottom: 16px; }
.ppf section { padding: 22px 24px; border-left: 1px solid var(--line); }
.ppf section:first-child { border-left: 0; }
.ppf .when { font: 700 12.5px/1 var(--sans); letter-spacing: .2em; color: var(--sky); text-transform: uppercase; margin: 0 0 10px; }
:root:not([data-theme="dark"]) .ppf .when { color: var(--brand); }
.ppf h3 { font: 600 22px/1.2 var(--disp); margin: 0 0 12px; }
.ppf ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font: 17px var(--sans); }
.ppf a { text-decoration: none; } .ppf a:hover { text-decoration: underline; }
@media (max-width: 760px) { .ppf { grid-template-columns: 1fr; } .ppf section { border-left: 0; border-top: 1px solid var(--line); } .ppf section:first-child { border-top: 0; } }

/* Next steps: one ink panel, numbered because order matters. */
.steps { list-style: none; counter-reset: s; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr auto; gap: 2px 14px; align-items: center; background: color-mix(in srgb, var(--on-deep) 8%, transparent); border-radius: var(--r); padding: 14px 16px; }
.steps li::before { content: counter(s); width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--sky); color: var(--on-deep); display: grid; place-items: center; font: 700 16px var(--sans); grid-row: span 2; }
.steps b { font: 700 18px/1.3 var(--sans); color: var(--on-deep); }
.steps span { font: 15px/1.4 var(--sans); color: var(--on-deep-mute); grid-column: 2; }
.steps a.go { grid-row: 1 / span 2; grid-column: 3; color: var(--on-deep); font: 700 16px var(--sans); text-decoration: none; border: 2px solid color-mix(in srgb, var(--on-deep) 40%, transparent); border-radius: var(--r); padding: 8px 14px; white-space: nowrap; }
.steps a.go:hover { background: color-mix(in srgb, var(--on-deep) 12%, transparent); }
.progress { display: flex; align-items: center; gap: 12px; font: 15px var(--sans); color: var(--on-deep-mute); }
.progress i { flex: 0 0 160px; height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--on-deep) 18%, transparent); overflow: hidden; }
.progress i::after { content: ""; display: block; height: 100%; width: var(--p); background: var(--sky); }
@media (max-width: 560px) { .steps li { grid-template-columns: 36px 1fr; } .steps a.go { grid-row: auto; grid-column: 2; justify-self: start; margin-top: 8px; } }

/* Tables (admin): plain rows, scroll on their own on a phone. */
.table-wrap { overflow-x: auto; margin: 0 -4px; }
table.rows { width: 100%; border-collapse: collapse; font: 16px var(--sans); }
table.rows th { text-align: left; font: 700 13px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); padding: 8px 12px; border-bottom: 2px solid var(--line); white-space: nowrap; }
table.rows td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
table.rows td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.rows tr:hover td { background: var(--tint); }
table.rows .em { font-weight: 700; color: var(--ink); }

/* Sign-in pages: a single column with the dove behind the title. */
.door { max-width: 520px; margin: 0 auto; padding: 40px 0 20px; }
.door .panel { padding: 28px 28px 24px; }
.or { display: flex; align-items: center; gap: 12px; margin: 20px 0; font: 600 14px var(--sans); color: var(--mute); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 560px) { .door { padding-top: 22px; } .door .panel { padding: 22px 18px 20px; } }

@media (max-width: 560px) {
	.seg { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; }
	.seg > * { flex: none; }
	.stat { padding: 14px 16px; }
	.stat .v { font-size: 36px; }
}
