/* Arche Labs: one design system for ARCHE's own pages (sign-in, products, parties, the desk).
   The products inside keep their own looks. No external fonts or scripts: the two typefaces are
   stored in fonts/ beside this file (SIL Open Font Licence, the licences are there too).
   The look follows moco.ai (Gregg, 29 Sep 2026: "look feel, style everything"); the study is in
   docs/research/moco-ai-look-and-feel.md. Two neutrals, one pale sky blue, hairlines and pills. */

@font-face { font-family: "Instrument Sans"; font-style: normal; font-display: swap; font-weight: 400 700;
  src: url(fonts/instrument-sans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-display: swap; font-weight: 400 700;
  src: url(fonts/instrument-sans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible Mono"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(fonts/atkinson-hyperlegible-mono-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible Mono"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(fonts/atkinson-hyperlegible-mono-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light;
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F3F5F3;            /* panels, tiles, the top bar */
  --surface-3: #E9ECE9;            /* a panel under the pointer */
  --ink: #202425;                  /* text and dark bands: 15.7:1 on white */
  --ink-hover: #3A3F40;
  --ink-2: #45484A;                /* 9.2:1 */
  --ink-3: #5D5E5A;                /* muted: 6.5:1 on white, 6.0:1 on the panels */
  --line: #D8D8D4;                 /* hairlines between things (decoration only) */
  --line-strong: #8A8C87;          /* edges of fields, which must show at 3:1 */
  --sky: #B0DCF0;                  /* the one accent: squares, the active tab, soft washes */
  --sky-soft: #DFF1F9;
  --sky-ink: #3D5A66;              /* the accent darkened for anything that must be read: 7.4:1 */
  --brand: var(--ink);             /* buttons are ink pills */
  --brand-ink: #FFFFFF;
  --brand-soft: var(--sky-soft);
  --ok: #127A5A;
  --bad: #C0362C;
  --bad-soft: #FDECEA;
  --ring: var(--sky-ink);          /* focus ring: 7.4:1 on the page, 6.7:1 on the panels */
  --radius-sm: .5rem;
  --radius: 1rem;
  --radius-lg: 1rem;
  --hair: 1.5px;
  --shadow: none;
  --shadow-lift: 0 1px 2px rgba(32, 36, 37, .05), 0 12px 32px rgba(32, 36, 37, .08);
  --ease: cubic-bezier(.215, .61, .355, 1);   /* power3.out, as moco.ai moves */
  /* the sky that stands in for moco's photographs: a pale wash with a faint dot grid */
  --sky-wash: linear-gradient(172deg, #BFE3F3 0%, #D9EFF8 42%, #EEF6F8 78%, #F3F5F3 100%);
  --dots: radial-gradient(rgba(32, 36, 37, .16) 1px, transparent 1.6px);
  --font: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font);
  --font-mono: "Atkinson Hyperlegible Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font: 16px/1.5 var(--font); letter-spacing: -0.01em; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
/* One focus ring for everything, drawn as an outline so no component's own shadow can cancel it. */
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; margin: 0 0 .7rem; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.25rem); letter-spacing: -0.04em; line-height: 1.02; }
h2 { font-size: clamp(1.35rem, 1.15rem + .9vw, 1.75rem); letter-spacing: -0.03em; }
p { margin: 0 0 1rem; text-wrap: pretty; }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 30px); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.scramble-noise { opacity: .5; }  /* the capitals still decoding (scramble.js): paler than the settled ones */

/* the mono capitals that name things, and the small sky square that leads a section */
.eyebrow, .label, a.tile .tile-kind, .adminbar-note {
  font-family: var(--font-mono); font-weight: 500; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase;
}
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); margin-bottom: 1.1rem; }
.eyebrow::before { content: ""; width: .6rem; height: .6rem; background: var(--sky); flex: 0 0 auto; }

/* ---------- top bar: a rounded bar that floats over the page ---------- */
.topbar { position: sticky; top: 0; z-index: 20; padding: 12px 0 0; pointer-events: none; }
.topbar .wrap {
  pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: 60px; width: calc(100% - 2 * clamp(16px, 3vw, 30px)); max-width: calc(1200px - 2 * clamp(16px, 3vw, 30px)); padding: 0 .6rem 0 1.1rem;
  background: color-mix(in srgb, var(--surface-2) 88%, transparent); border-radius: var(--radius);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
}
.topbar.on-night { position: absolute; left: 0; right: 0; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none;
  font-family: var(--font-mono); font-weight: 600; font-size: .98rem; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 26px; height: 26px; flex: 0 0 auto; }
.account { display: flex; align-items: center; gap: .3rem; font-size: .92rem; color: var(--ink-2); }
.account a, .account button.link { color: var(--ink); font-weight: 500; text-decoration: none; padding: 0 .8rem; border-radius: 999px; }
.account a:hover, .account button.link:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.account .who { max-width: 26ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-3); padding-right: .4rem; }
form.inline { display: inline; margin: 0; }
button.link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
@media (max-width: 640px) { .account .who { display: none; } }
.brand, .account a, .account button.link { white-space: nowrap; }
@media (max-width: 420px) { .topbar .wrap { padding-left: .8rem; } .account { gap: 0; } .account a, .account button.link { padding: 0 .6rem; } }

/* ---------- the admin strip: desk staff only, above the top bar, at every width ---------- */
.adminbar { background: var(--sky-soft); border-bottom: 1px solid color-mix(in srgb, var(--sky-ink) 22%, transparent); }
.adminbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 48px; }
/* a top bar that floats over the artwork (home, sign-in) sits under the strip, not over it */
.adminbar + .topbar.on-night { top: 49px; }  /* the strip: 48px and its 1px line */
.adminbar-note { color: var(--ink); }
@media (max-width: 640px) { .adminbar .wrap { height: 56px; } .adminbar .btn.small { height: 44px; } .adminbar + .topbar.on-night { top: 57px; } }
@media (max-width: 400px) { .adminbar-note { display: none; } .adminbar .wrap { justify-content: flex-end; } }
@media (min-width: 920px) { .split-page .adminbar .wrap { max-width: none; padding: 0 clamp(16px, 3vw, 30px); } }

/* ---------- hero: a big headline, the lede to its right, then a band of sky ---------- */
.hero { background: var(--bg); color: var(--ink); position: relative; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); align-items: end; column-gap: 3rem;
  padding-top: calc(72px + clamp(2.5rem, 7vw, 6rem)); padding-bottom: clamp(1.5rem, 3vw, 2rem); }
.hero .eyebrow { grid-column: 1 / -1; justify-self: start; }
.hero h1 { font-size: clamp(2.75rem, 1.9rem + 3.6vw, 4.5rem); letter-spacing: -0.045em; line-height: 1; max-width: 14ch; margin: 0 0 1.2rem; }
.hero p.lede { color: var(--ink-2); font-size: 1rem; max-width: 36ch; margin: 0 0 1.4rem; }
.hero .wrap::after { /* the sky band, where moco.ai has a photograph */
  content: ""; grid-column: 1 / -1; height: clamp(110px, 16vw, 220px); margin-top: clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--radius); background: var(--dots), var(--sky-wash); background-size: 22px 22px, auto;
}
@media (min-width: 920px) {
  .hero .wrap { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .hero h1 { margin: 0; }
  .hero p.lede { margin: 0 0 .5rem; justify-self: end; }
}

/* ---------- page body ---------- */
main { flex: 1 0 auto; }
.page { padding-top: clamp(1.5rem, 4vw, 3rem); padding-bottom: 5rem; }
.lift { padding-top: clamp(1.25rem, 3vw, 2rem); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: clamp(3rem, 6vw, 4.5rem) 0 1.2rem; }
.section-head h2 { margin: 0; }

/* ---------- product tiles (the launcher): grey panels, as moco.ai's partner cards ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(12px, 1.5vw, 20px); }
a.tile {
  display: flex; flex-direction: column; gap: .5rem; min-height: 220px; padding: 1.3rem 1.3rem 1.2rem;
  background: var(--surface-2); color: var(--ink); text-decoration: none; border-radius: var(--radius);
  position: relative; overflow: hidden; transition: background-color .3s var(--ease);
}
a.tile:hover { background: var(--surface-3); text-decoration: none; }
a.tile .tile-mark {
  width: 44px; height: 44px; border-radius: var(--radius-sm); display: grid; place-items: center;
  background: var(--ink); color: #fff; font-weight: 500; font-size: 1.15rem;
}
a.tile .tile-kind { color: var(--ink-3); margin-top: .6rem; }
a.tile .tile-name { font-size: 1.6rem; font-weight: 500; letter-spacing: -0.035em; line-height: 1.1; }
a.tile .tile-meta { font-size: .875rem; color: var(--ink-3); margin-top: auto; padding-top: .6rem; }
a.tile .tile-go { font-size: .92rem; font-weight: 500; color: var(--ink); display: inline-flex; align-items: center; gap: .6rem; }
a.tile .tile-go span { /* the round arrow button */
  width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--ink); color: #fff; font-size: .9rem; transition: transform .3s var(--ease), background-color .3s var(--ease);
}
a.tile:hover .tile-go span { transform: translateX(3px); background: var(--sky-ink); }
.empty-card { background: var(--surface-2); border-radius: var(--radius); padding: 2rem; color: var(--ink-2); }

/* ---------- cards: white, hairline, no shadow ---------- */
.card { background: var(--surface); border: var(--hair) solid var(--line); border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 1.8rem); }
.card + .card { margin-top: 1.1rem; }
.partybox { margin: 0 0 1.1rem; }
/* One block per party: its name, its products, then its people (issue #46). */
.party-block { scroll-margin-top: 5.5rem; }  /* room above a party when a link jumps to it */
.party-block:first-child .section-head { margin-top: 0; }
.party-block .tiles + .partybox, .party-block .empty-card + .partybox { margin-top: 1.1rem; }
.party-block:target .partybox { border-color: var(--ink); }  /* the party you just started */
.party-block .section-head h2.party { margin: 0; }
#start-party { margin-top: clamp(3rem, 6vw, 4.5rem); scroll-margin-top: 5.5rem; }
h2.party { font-size: 1.45rem; margin: 0 0 .3rem; }
.party-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
@media (min-width: 860px) {
  .party-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; }
  .party-grid > div + div { border-left: 1px solid var(--line); padding-left: 1.8rem; }
  .party-grid > div:first-child { padding-right: 1.8rem; }
}
.label { color: var(--ink-3); margin: 0 0 .7rem; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.people li { display: flex; align-items: center; gap: .65rem; padding: .4rem 0; }
.av { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; flex: 0 0 auto;
  font-size: .85rem; font-weight: 600; color: var(--ink); background: var(--sky); text-transform: uppercase; }
ul.people li:nth-child(2n) .av { background: var(--surface-3); }
ul.people li:nth-child(3n) .av { background: var(--sky-soft); }
.waiting li { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .35rem 0; }
.party-foot { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; align-items: center; margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .92rem; }
.party-foot a { color: var(--ink-2); }
.party-foot a.danger { color: var(--bad); text-decoration-color: color-mix(in srgb, var(--bad) 45%, transparent); }
details summary { cursor: pointer; color: var(--ink-2); font-weight: 500; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::before { content: "›"; display: inline-block; margin-right: .45rem; transition: transform .2s var(--ease); }
details[open] summary::before { transform: rotate(90deg); }
details[open] summary { margin-bottom: .8rem; }
.pill { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 500; padding: .2rem .65rem; border-radius: 999px; background: var(--sky-soft); color: var(--ink); }

/* ---------- forms: pill fields, ink pill buttons ---------- */
form div { margin-bottom: 1rem; }
label { display: block; font-weight: 500; font-size: .92rem; margin-bottom: .45rem; color: var(--ink); }
input[type=email], input[type=password], input[type=text], input[type=search] {
  width: 100%; height: 48px; padding: 0 1.15rem; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
input:hover { border-color: var(--ink-3); }
::placeholder { color: var(--ink-3); opacity: 1; }  /* 6.5:1 in every browser (Firefox otherwise fades it to about 3.5:1) */
input:focus { outline: none; border-color: var(--ring); box-shadow: 0 0 0 2px var(--ring); }  /* solid, 7.4:1 (0048 L2) */
input:focus-visible { outline: none; }
.helptext, form div > span.helptext { display: block; font-size: .82rem; color: var(--ink-3); margin-top: .4rem; padding-left: 1.15rem; }
form div ul { font-size: .82rem; color: var(--ink-3); margin: .4rem 0 0; padding-left: 2.2rem; }
ul.errorlist { list-style: none; padding: .55rem 1rem; margin: .5rem 0; border-radius: var(--radius-sm); background: var(--bad-soft); color: var(--bad); font-size: .88rem; font-weight: 500; }
.error { background: var(--bad-soft); color: var(--bad); border-radius: var(--radius-sm); padding: .75rem 1rem; font-weight: 500; font-size: .92rem; }
button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 46px; padding: 0 1.35rem; border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  font: inherit; font-weight: 500; font-size: .98rem; letter-spacing: -0.01em;
  background: var(--brand); color: var(--brand-ink);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
button:hover, .btn:hover { background: var(--ink-hover); text-decoration: none; }
button.quiet, .btn.quiet { background: var(--surface-2); color: var(--ink); }
button.quiet:hover, .btn.quiet:hover { background: var(--surface-3); }
button.small, .btn.small { height: 34px; padding: 0 .95rem; font-size: .85rem; }
@media (max-width: 640px) { button.small, .btn.small { height: 44px; } }  /* a finger, not a pointer */
button.wide, .btn.wide { width: 100%; }
button .arrow, .btn .arrow { transition: transform .25s var(--ease); }
button:hover .arrow, .btn:hover .arrow { transform: translateX(3px); }
.inline-form { display: flex; gap: .6rem; align-items: flex-start; flex-wrap: wrap; }
.inline-form > div { flex: 1 1 240px; margin: 0; }
.inline-form label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- the split sign-in layout: a sky panel beside the form ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100vh; }
.split-art { background: var(--dots), var(--sky-wash); background-size: 22px 22px, auto; color: var(--ink);
  position: relative; overflow: hidden; padding: 100px clamp(20px, 5vw, 56px) 2rem; }
.split-art > * { position: relative; z-index: 1; }
.split-art .eyebrow::before { background: var(--ink); }  /* the sky square would vanish on the sky */
.split-art h1 { color: var(--ink); font-size: clamp(2rem, 1.3rem + 2.6vw, 3.5rem); letter-spacing: -0.045em; line-height: 1; max-width: 13ch; }
.split-art .lede { color: var(--ink-2); max-width: 38ch; }
.split-art ul { list-style: none; padding: 0; margin: 2rem 0 0; display: none; max-width: 44ch; }
.split-art li { display: flex; gap: .8rem; align-items: flex-start; padding: .9rem 0; border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); color: var(--ink-2); }
.split-art li b { color: var(--ink); font-weight: 600; }
.split-art .tick { flex: 0 0 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: .7rem; margin-top: 1px; }
.split-form { display: flex; align-items: flex-start; justify-content: center; padding: clamp(1.5rem, 5vw, 3rem) clamp(16px, 5vw, 56px) 3rem; }
.form-card { width: 100%; max-width: 440px; }
.form-card, .party-grid li, h2.party { overflow-wrap: anywhere; }  /* a 60-character email must not push the page sideways (0048 M1) */
.form-card h1 { font-size: clamp(2rem, 1.6rem + 1.4vw, 2.6rem); }
.form-card .alt { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line); display: grid; gap: .5rem; font-size: .95rem; }
@media (max-width: 919px) {
  .split-art { padding-top: 96px; padding-bottom: 1.6rem; }
  .split-art h1 { font-size: 2rem; margin-bottom: .4rem; }
  .split-art .lede { font-size: .95rem; margin: 0; }
}
@media (max-width: 560px) { .split-art .lede { display: none; } }
@media (min-width: 920px) {
  .split-page .topbar { padding-top: 24px; }
  .split-page .topbar .wrap { max-width: none; width: calc(100% - 48px); }  /* inside the sky panel's 12px margin */
  .split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .split-art { margin: 12px 0 12px 12px; border-radius: var(--radius); padding-top: 120px;
    display: flex; flex-direction: column; justify-content: center; min-height: calc(100vh - 24px); }
  .split-art ul { display: block; }
  .split-form { align-items: center; }
}

/* ---------- desk (audit) ---------- */
.trail li { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.trail li > :first-child:not(a) { font-family: var(--font-mono); font-size: .82rem; color: var(--ink-3); }
@media (max-width: 640px) { .trail li { grid-template-columns: 1fr; gap: .1rem; } }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); color: var(--ink-3); font-size: .85rem; }
.footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding-top: 1.6rem; padding-bottom: 1.8rem; }

/* ---------- entrance: headlines rise, the sky wipes in (never for people who ask for less motion) ---------- */
@keyframes arche-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes arche-wipe { from { clip-path: inset(0 100% 0 0 round var(--radius)); } to { clip-path: inset(0 0 0 0 round var(--radius)); } }
@media (prefers-reduced-motion: no-preference) {
  .hero .eyebrow, .hero h1, .hero p.lede, .split-art > *, .form-card { animation: arche-rise .9s var(--ease) both; }
  .hero h1, .split-art h1 { animation-delay: .08s; }
  .hero p.lede, .split-art .lede, .form-card { animation-delay: .16s; }
  .split-art ul { animation-delay: .24s; }
  .hero .wrap::after { animation: arche-wipe 1.2s var(--ease) .2s both; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* the account links are text links, not buttons */
.account button.link, button.link { height: auto; background: none; color: inherit; border-radius: 999px; font-weight: 500; }
.account button.link { color: var(--ink); }

/* ---- checker's fixes (0042): tap targets, the sign-in band on tablets ---- */
.party-foot a, .party-foot summary, .alt a, .account a, .account button.link, .topbar .brand, .trail a, .page > p a { display: inline-flex; align-items: center; min-height: 44px; }
.party-foot details { display: inline-block; }
@media (max-width: 919px) { .split { align-content: start; min-height: 0; } }

/* ---------- areas: a bar of tabs over the product (House, Allotment, Health) ---------- */
body.area-page { height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.areabar { display: flex; align-items: center; gap: .9rem; padding: 0 max(12px, env(safe-area-inset-left)); min-height: 56px;
  background: var(--surface-2); border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.areabar .brand svg { width: 26px; height: 26px; }
.areabar .brand { min-width: 44px; min-height: 44px; justify-content: center; }
.area-name { font-weight: 500; letter-spacing: -0.02em; white-space: nowrap; }
.area-who { font-weight: 400; color: var(--ink-3); }
.area-tabs { display: flex; gap: .3rem; overflow-x: auto; scrollbar-width: none; margin-left: auto; }
.area-tabs::-webkit-scrollbar { display: none; }
.area-tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border-radius: 999px; white-space: nowrap;
  color: var(--ink-2); font-weight: 500; font-size: .92rem; text-decoration: none; }
.area-tabs a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.area-tabs a:focus-visible { outline-offset: -3px; }  /* drawn inside: the scrolling strip clips anything outside (0048 M2) */
.area-tabs a[aria-current="page"] { color: var(--ink); font-weight: 600; background: var(--sky); }
.area-frame { flex: 1 1 auto; width: 100%; border: 0; display: block; background: #fff; }
@media (max-width: 640px) { .areabar { flex-wrap: wrap; gap: 0 .5rem; padding-bottom: .35rem; } .area-tabs { margin-left: 0; flex-basis: 100%; }
  .area-tabs a { padding: 0 .8rem; font-size: .88rem; } }

/* ---------- Help (ADR 0022): on every page, opening the feedback window ---------- */
.adminbar-go { display: inline-flex; gap: .5rem; align-items: center; }
.areabar .area-help { margin-left: auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border-radius: 999px;
  color: var(--ink-2); font-weight: 500; text-decoration: none; white-space: nowrap; }
.areabar .area-tabs + .area-help { margin-left: .3rem; }
.areabar .area-help:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
