/* One stylesheet, tokens first (7 website\ui ux.md, site standard Section 3 themes). xurl (Desmond 2026/10/27): violet accent, link-in-bio blocks at the end.
   change --accent (both themes) and the fonts for a new site; the people, profile and video parts are ready if needed. */
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 400; font-display: swap; src: url(../fonts/plus-jakarta-sans-latin-400.woff2) format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 600; font-display: swap; src: url(../fonts/plus-jakarta-sans-latin-600.woff2) format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-weight: 400; font-display: swap; src: url(../fonts/source-serif-4-latin-400.woff2) format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-weight: 600; font-display: swap; src: url(../fonts/source-serif-4-latin-600.woff2) format('woff2'); }

:root {
    --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', 'Noto Sans SC', sans-serif;
    --serif: 'Source Serif 4', Georgia, 'Noto Serif SC', serif;
    --fs-hero: clamp(44px, 1.5rem + 5vw, 96px);
    --fs-h1: clamp(32px, 1.4rem + 2.5vw, 56px);
    --fs-h2: clamp(22px, 1.2rem + 1vw, 30px);
    --fs-ui: 14px;
    --nav-h: 56px;
    --edge: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
    --section-y: clamp(48px, 1.27rem + 7.4vw, 96px);
    --radius: 12px;
    --ease: cubic-bezier(0.23, 1, 0.32, 1);
    /* dark (default) = "Claude Code black" (site standard 2.0, S6): the same tokens on every site, public, member area and admin;
       only --accent and --danger are the site's own. Contrast: accent #a78bfa 5.6 on bg, 4.9 on surface, 6.1 on bg-alt; danger 6.6 / 5.8. */
    --bg: #262624; --bg-alt: #1f1e1d; --surface: #30302e; --ink: #faf9f5; --text: #e3e1d9; --muted: #a8a59b;
    --line: #3e3e3a; --line-strong: #85837a; --accent: #a78bfa; --on-ink: #262624; --on-accent: #1f1e1d; --danger: #ff8a80;
    color-scheme: dark;   /* --line-strong 3:1 for inputs and outline buttons */
}
@media (min-width: 640px) { :root { --edge: max(24px, env(safe-area-inset-left), env(safe-area-inset-right)); } }

/* light: the device asks for it and no cookie says otherwise, or the cookie says light */
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) { --bg: #fafaf7; --bg-alt: #f1f0ea; --surface: #fff; --ink: #121212; --text: #2b2b2b; --muted: #5c5c5c;
        --line: #e3e2dc; --line-strong: #8f8e88; --accent: #5b3fc4; --on-ink: #fafaf7; --on-accent: #fff; --danger: #b3261e; color-scheme: light; }
}
:root[data-theme="light"] { --bg: #fafaf7; --bg-alt: #f1f0ea; --surface: #fff; --ink: #121212; --text: #2b2b2b; --muted: #5c5c5c;
    --line: #e3e2dc; --line-strong: #8f8e88; --accent: #5b3fc4; --on-ink: #fafaf7; --on-accent: #fff; --danger: #b3261e; color-scheme: light; }
/* silver: calm cool grey, after the light rules so it wins over the device's light. /admin and the login start here.
   Contrast: accent #5b3fc4 6.0 on bg, 5.4 on bg-alt, 6.75 on surface; on-accent #f8f9fa on accent 6.75; danger 5.4 on bg-alt */
:root[data-theme="silver"] { --bg: #e9ecef; --bg-alt: #dde1e6; --surface: #f8f9fa; --ink: #16181b; --text: #2a2d32; --muted: #4d535b;
    --line: #cdd2d8; --line-strong: #767d86; --accent: #5b3fc4; --on-ink: #f8f9fa; --on-accent: #f8f9fa; --danger: #a8261e; color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font: 16px/1.6 var(--sans); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; }
ul[role="list"] { list-style: none; }
h1, h2, h3, p, figure, dl, dd, blockquote { margin: 0; }
h1, h2, h3 { color: var(--ink); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: 16px; letter-spacing: 0; }
p { text-wrap: pretty; }
a { color: var(--accent); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { a:hover { text-decoration: underline; text-underline-offset: 3px; } }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.small { font-size: var(--fs-ui); color: var(--muted); }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--edge); }
.section { padding-block: var(--section-y); }
.alt { background: var(--bg-alt); }
.head { margin-bottom: 40px; max-width: 680px; }
.split { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1024px) { .split { grid-template-columns: 5fr 7fr; gap: 64px; } }
.prose { max-width: 720px; }
.prose > * + * { margin-top: 20px; }

.skip { position: absolute; left: var(--edge); top: 8px; z-index: 30; padding: 12px 16px; border-radius: 99px; color: var(--on-ink); background: var(--ink); translate: 0 -200%; }
.skip:focus { translate: 0; }

/* Header: brand, three links, language and theme. Fits 320px without a menu button. */
.nav { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 8px; height: calc(var(--nav-h) - 1px); }
.brand { margin-right: auto; font-weight: 600; white-space: nowrap; color: var(--ink); }
.nav ul { display: flex; }
.nav a, .theme { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; font-size: var(--fs-ui); color: var(--muted); }
.nav ul a { padding-inline: clamp(5px, 2vw, 12px); }
.nav a[aria-current] { color: var(--ink); }
.tools { display: flex; align-items: center; margin-right: -10px; }
.lang { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 44px; font-size: var(--fs-ui); font-weight: 600; }
span.lang { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--accent); }
/* Theme choice: a half-filled circle and the name of the theme in use (the name hides on small phones; the button still says it) */
.theme { gap: 6px; min-width: 44px; padding: 0 8px; background: none; border: 0; cursor: pointer; white-space: nowrap; }
.theme svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.theme svg path { fill: currentColor; stroke: none; }
@media (max-width: 479px) { .theme .theme-name { display: none; } span.lang { display: none; } }
@media (max-width: 400px) { .brand { font-size: 13px; } .nav ul a { font-size: 13px; } .nav .wrap { gap: 2px; } .nav ul a { padding-inline: 4px; } .lang { min-width: 26px; } .theme { min-width: 32px; padding: 0 2px; } }
@media (hover: hover) and (pointer: fine) { .nav a:hover, .theme:hover { color: var(--ink); text-decoration: none; } }

/* Buttons: the same system as the starter kit (the admin shell uses it too).
   .btn = primary (accent fill, one per view); --secondary outline; --ghost text only; --danger red fill; --sm smaller;
   --block full width on phones. 44px high, mouse and touch. States: hover (mouse only), focus ring, press, disabled, .is-busy. */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 24px;
    font: 600 var(--fs-ui)/1.2 var(--sans); text-align: center; color: var(--on-accent); background: var(--accent);
    border: 1px solid transparent; border-radius: 99px; cursor: pointer; white-space: nowrap; text-decoration: none;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
    transition: background-color 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease), scale 180ms var(--ease);
}
.btn svg { flex: none; width: 18px; height: 18px; }
.btn:active { scale: 0.98; }
.btn--secondary { color: var(--ink); background: transparent; border-color: var(--line-strong); }
.btn--ghost { padding-inline: 12px; color: var(--ink); background: transparent; }
.btn--danger { color: var(--on-accent); background: var(--danger); }
.btn--sm { padding-inline: 16px; }
.btn--ghost.btn--sm { padding-inline: 8px; }
@media (max-width: 639px) { .btn--block { width: 100%; } }
@media (hover: hover) and (pointer: fine) {
    .btn:hover { background: color-mix(in srgb, var(--accent) 85%, var(--ink)); text-decoration: none; }
    .btn--secondary:hover, .btn--ghost:hover { background: var(--bg-alt); }
    .btn--secondary:hover { border-color: var(--ink); }
    .btn--danger:hover { background: color-mix(in srgb, var(--danger) 85%, var(--ink)); }
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { color: var(--muted); background: var(--bg-alt); border-color: var(--line); cursor: not-allowed; scale: none; }
.btn--ghost:disabled { background: transparent; }
.btn.is-busy { cursor: progress; }
.btn.is-busy svg { display: none; }
.btn.is-busy::before { content: ""; flex: none; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: btn-spin 700ms linear infinite; }
@keyframes btn-spin { to { rotate: 360deg; } }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn.is-busy::before { animation-duration: 2s; } }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 32px; }
.actions > a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--fs-ui); }

/* Hero: portrait first on phones, side by side from 1024px with the photo to the screen edge */
.hero { display: grid; gap: 24px; padding-bottom: var(--section-y); }
.hero figure { grid-row: 1; }
.hero img { width: 100%; aspect-ratio: 4 / 5; max-height: 38svh; object-fit: cover; object-position: 50% 25%; background: var(--surface); }
.hero figcaption, .hero-copy { padding-inline: var(--edge); }
.hero figcaption { padding-top: 12px; font-size: var(--fs-ui); color: var(--muted); }
.hero figcaption b { display: block; font-weight: 600; color: var(--ink); }
.hero h1 { font-size: var(--fs-hero); line-height: 0.98; letter-spacing: -0.035em; }
.hero h1 + p { margin-top: 16px; max-width: 560px; }
@media (min-width: 640px) {
    .hero { padding-top: 48px; }
    .hero figure, .hero-copy { margin-inline: var(--edge); }
    .hero figcaption, .hero-copy { padding-inline: 0; }
    .hero img { max-height: 46svh; border-radius: var(--radius); }
}
@media (min-width: 1024px) {
    /* About 70% of the screen, so the guests below always peek in (Desmond 2026/10/22: hero too big) */
    /* The text sets the height (at least 480px, about 70% of the screen); the photo only fills it and can never spill over */
    .hero { grid-template-columns: minmax(var(--edge), 1fr) minmax(0, 600px) minmax(0, 600px) minmax(var(--edge), 1fr); gap: 0; min-height: clamp(480px, 70svh, 720px); padding: 0; }
    .hero-copy { grid-column: 2; grid-row: 1; align-self: center; margin: 0; padding: 64px 48px 64px 0; }
    .hero figure { grid-column: 3 / -1; grid-row: 1; position: relative; margin: 0; overflow: hidden; }
    .hero img { position: absolute; inset: 0 0 64px; width: 100%; height: calc(100% - 64px); max-height: none; aspect-ratio: auto; border-radius: 0; }
    .hero figcaption { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; padding: 12px var(--edge) 0 16px; }
}

/* Guests: swipe row on phones, grid from 1024px */
.people { display: flex; gap: 16px; margin-inline: calc(var(--edge) * -1); padding-inline: var(--edge); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge); scrollbar-width: none; overscroll-behavior-x: contain; }
.people li { flex: 0 0 min(64vw, 300px); scroll-snap-align: start; }
.tile { display: block; color: var(--text); }
.tile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: var(--radius); background: var(--surface); }
.tile h3 { margin-top: 14px; }
.tile p { font-size: var(--fs-ui); color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .tile:hover { text-decoration: none; } .tile:hover h3 { text-decoration: underline; text-underline-offset: 3px; } }
@media (min-width: 640px) { .people { margin-inline: 0; padding-inline: 0; gap: 24px; } }
@media (min-width: 1024px) { .people { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; } }

.statement { font-size: clamp(30px, 1rem + 4.4vw, 72px); line-height: 1.08; letter-spacing: -0.03em; color: var(--ink); text-wrap: balance; }

/* Profile (Wikipedia style): article in the serif, facts box on the right from 1024px */
.profile { display: grid; gap: 32px; padding-block: 40px var(--section-y); }
.crumb { font-size: var(--fs-ui); margin-bottom: 12px; }
.profile h1 span { font-weight: 400; color: var(--muted); }
.lead { margin-top: 16px; max-width: 680px; font: 20px/1.55 var(--serif); color: var(--ink); }
.infobox { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.infobox img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.infobox dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; padding: 16px; font-size: var(--fs-ui); }
.infobox dt { color: var(--muted); }
.infobox dd { color: var(--ink); }
.article { max-width: 680px; font: 18px/1.7 var(--serif); }
.article section + section { margin-top: 40px; }
.article h2 { margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-family: var(--sans); }
.article sup { font: 600 12px var(--sans); }
.article .small { margin-top: 12px; font-family: var(--sans); }
blockquote { padding-left: 20px; border-left: 2px solid var(--accent); font-style: italic; color: var(--ink); }
blockquote + blockquote { margin-top: 20px; }
.refs ol { padding-left: 24px; font: var(--fs-ui)/1.6 var(--sans); }
.refs li + li { margin-top: 6px; }
@media (min-width: 1024px) {
    .profile { grid-template-columns: minmax(0, 1fr) 320px; column-gap: 64px; }
    .profile-head, .article { grid-column: 1; }
    .infobox { grid-column: 2; grid-row: 1 / span 2; align-self: start; position: sticky; top: calc(var(--nav-h) + 24px); }
}

/* Video: our poster; Instagram's player loads only after the tap */
.video { position: relative; display: block; width: min(100%, 360px); padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); cursor: pointer; }
.video img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.video span { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px 0 14px; border-radius: 99px; font: 600 var(--fs-ui) var(--sans); color: #fcfcfc; background: rgb(10 10 10 / 0.7); }
.video span::before { content: ''; border-left: 11px solid currentColor; border-block: 7px solid transparent; }
/* Crop box (9:16, the reel itself): Instagram draws a 4:5 frame with its header (about 54px) above and likes and comments
   below. The frame is made 142% wide (4:5 to 9:16) and shifted so only the video shows; tall enough to never scroll. */
.embed-box { position: relative; width: min(100%, 320px); aspect-ratio: 9 / 16; overflow: hidden; border-radius: var(--radius); background: #000; }
.embed { position: absolute; left: -26%; top: -56px; width: 150%; height: calc(100% + 480px); border: 0; }

/* Forms */
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: var(--fs-ui); color: var(--muted); }
.form input, .form select, .form textarea { min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); }
.form .hp { position: absolute; left: -9999px; }
.notice { padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink); }

.footer { padding-block: 40px; border-top: 1px solid var(--line); font-size: var(--fs-ui); color: var(--muted); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer ul { display: flex; gap: 0 20px; }
.footer a { display: inline-flex; min-height: 44px; align-items: center; color: var(--muted); }

/* Home front door (#start): the name box with its button beside it (under it on a phone), then the two ways to sign in */
.start { display: grid; gap: 20px; max-width: 480px; margin-top: 32px; }
.start .form { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; }
.start .form .prefix { background: var(--surface); }
.start .actions { margin-top: 0; }
@media (max-width: 479px) { .start .form { grid-template-columns: minmax(0, 1fr); } }

/* Motion, dial 3 (7 website\motion.md Section 13): one calm entrance, then reveal once */
@keyframes rise { from { opacity: 0; translate: 0 16px; } }
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { @keyframes rise { from { opacity: 0; } } }
.hero img { animation: fade 700ms var(--ease) backwards; }
.hero h1 { animation: rise 600ms var(--ease) 150ms backwards; }
.hero-copy > :not(h1), .hero figcaption { animation: rise 500ms var(--ease) 320ms backwards; }
.hero-copy > .actions { animation-delay: 440ms; }
.is-waiting { opacity: 0; translate: 0 16px; }
.is-in { transition: opacity 600ms var(--ease), translate 600ms var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
@media (prefers-reduced-motion: reduce) { .is-waiting { translate: none; } }
@media print { .is-waiting { opacity: 1; translate: none; } .nav, .footer { display: none; } }
@media (hover: hover) and (pointer: fine) { .tile img { transition: scale 300ms var(--ease); } .tile:hover img { scale: 1.02; } }

/* xurl: the member page (Experience), the member area (Operate), home steps and plans */
.bio { padding-block: 40px var(--section-y); }
.card { max-width: 560px; margin-inline: auto; padding-inline: var(--edge); text-align: center; }
.avatar { display: inline-grid; place-items: center; width: 96px; height: 96px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); object-fit: cover; font-size: 36px; font-weight: 600; color: var(--ink); }
.card-name { margin-top: 16px; font-size: var(--fs-h2); }
.bio-text { margin-top: 8px; color: var(--muted); }
.links { display: grid; gap: 12px; margin-top: 32px; }
.link-btn { position: relative; display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 12px 48px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--ink); font-weight: 600; transition: border-color 180ms var(--ease), scale 120ms var(--ease); }
.link-btn:active { scale: 0.99; }
.link-btn .icon { position: absolute; left: 16px; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); }
.btn-line, .btn-sm { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 99px; background: none; color: var(--ink); font-size: var(--fs-ui); font-weight: 600; cursor: pointer; transition: border-color 180ms var(--ease); }
.btn-sm { font-weight: 400; color: var(--text); padding-inline: 14px; }
@media (hover: hover) and (pointer: fine) { .link-btn:hover, .btn-line:hover, .btn-sm:hover { border-color: var(--ink); text-decoration: none; } }
.share { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 8px; margin-top: 32px; }
.share.left { justify-content: flex-start; margin-top: 12px; }
.share.left .qr { margin-top: 0; }
.qr { margin-top: 8px; }
.qr summary { list-style: none; }
.qr summary::-webkit-details-marker { display: none; }
.qr img { margin: 12px auto 0; width: 200px; height: 200px; padding: 12px; border-radius: var(--radius); background: #fff; }
.share .qr img { margin-inline: 0; }
.made { margin-top: 48px; }
.made a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
/* The member's look (Page::lookAttrs): a colour and a button style as attributes on .card, so the public page and the preview on
   My page share these rules. The colour touches the link buttons only (border or fill, icon): never the page, the name or the
   bio. Each colour has a value for the light themes (--pl) and one for dark (--pd). Measured in Chrome in light, silver and dark,
   all 24 looks: text on a button 5.2 or more (lowest: filled orange, silver), icon 3.2 or more, button edge on the page 3.1 or more. */
[data-accent="violet"] { --pl: #5b3fc4; --pd: #a78bfa; }
[data-accent="blue"] { --pl: #1d4ed8; --pd: #8ab4f8; }
[data-accent="green"] { --pl: #14753a; --pd: #7ad69a; }
[data-accent="orange"] { --pl: #b8400e; --pd: #fdba74; }
[data-accent="pink"] { --pl: #be185d; --pd: #f9a8d4; }
[data-accent] { --pick: var(--pd); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) [data-accent] { --pick: var(--pl); } }
:root[data-theme="light"] [data-accent], :root[data-theme="silver"] [data-accent] { --pick: var(--pl); }
:is(.card, .look-s)[data-accent] .link-btn { border-color: var(--pick); box-shadow: inset 0 0 0 1px var(--pick); }
:is(.card, .look-s)[data-accent] .link-btn .icon { color: var(--pick); }
:is(.card, .look-s)[data-btn="round"] .link-btn { border-radius: 28px; }
:is(.card, .look-s)[data-btn="soft"] .link-btn { background: color-mix(in srgb, var(--pick, var(--ink)) 16%, var(--surface)); box-shadow: none; }
:is(.card, .look-s)[data-btn="fill"] .link-btn { border-color: transparent; background: var(--pick, var(--ink)); color: var(--on-ink); box-shadow: none; }
:is(.card, .look-s)[data-btn="fill"][data-accent] .link-btn { color: var(--on-accent); }
:is(.card, .look-s)[data-btn="fill"] .link-btn .icon { color: inherit; }
@media (hover: hover) and (pointer: fine) {
    .card[data-accent] .link-btn:hover { border-color: var(--ink); }
    .card[data-btn="fill"] .link-btn:hover { border-color: transparent; background: color-mix(in srgb, var(--pick, var(--ink)) 85%, var(--ink)); }
    .card[data-btn="fill"]:not([data-accent]) .link-btn:hover { background: color-mix(in srgb, var(--ink) 85%, var(--bg)); }
}
/* My page: the picture box, and the two groups of choices with their samples (a dot in the colour, a small button in the style) */
.pic { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.pic .avatar { flex: none; }
.pic label { flex: 1 1 200px; min-width: 0; }
.pic input { width: 100%; }
.look { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.look legend { padding: 0 0 8px; font-size: var(--fs-ui); color: var(--muted); }
.look label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border: 1px solid var(--line-strong); border-radius: 99px; color: var(--ink); cursor: pointer; }
.look input { width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; accent-color: var(--accent); }
.look label:has(:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.look-dot { width: 20px; height: 20px; border-radius: 50%; background: var(--pick, var(--ink)); }
.look-s .link-btn { display: block; width: 36px; min-height: 22px; padding: 0; border-radius: 6px; }
.look-s[data-btn="round"] .link-btn { border-radius: 11px; }

.steps { display: grid; gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 12px; border-top: 1px solid var(--line); list-style: none; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 6px; font-size: var(--fs-ui); color: var(--accent); }
.plans > div { display: grid; gap: 4px; padding-block: 16px; border-top: 1px solid var(--line); }
.plans > div:last-child { border-bottom: 1px solid var(--line); }
.plans dt { font-weight: 600; color: var(--ink); }
.plans dd { color: var(--muted); }
@media (min-width: 640px) { .plans > div { grid-template-columns: 140px 1fr; gap: 24px; } }

.my { display: grid; gap: 24px; max-width: 720px; }
.my h1 { font-size: var(--fs-h2); }
.box { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.box h2, .box h3 { font-size: 18px; margin-bottom: 8px; }
.form.add { margin-bottom: 16px; }   /* add sits above the list */
.form .small { margin-bottom: 4px; }
.form .hint { margin-top: -10px; }   /* the hint belongs to the field above it */
.form .prefix { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg); }
.form .prefix span { padding-left: 12px; color: var(--muted); white-space: nowrap; }
.form .prefix input { flex: 1; min-width: 0; border: 0; background: none; padding-left: 2px; }
.url { font-size: clamp(20px, 1rem + 1.5vw, 28px); font-weight: 600; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.url a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
.inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.form textarea { field-sizing: content; min-height: 44px; resize: vertical; }
.form .row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
/* Links in the member area: one row each (handle, icon, title, short link), switch and icon tools on the right, the edit form only on
   the pencil (Desmond 2026/10/27). The tools drop to a line of their own, and wrap, when the title would get under 150px. */
.lk-list { display: grid; }
.lk { padding: 10px 0; border-top: 1px solid var(--line); }
.lk-row { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; }
.lk-row > .icon { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); }
.lk-main { flex: 1 1 150px; min-width: 0; display: grid; gap: 2px; overflow-wrap: anywhere; }
.lk-main b { font-weight: 600; color: var(--ink); }
.lk-main .small a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -10px; }   /* 44px target, row stays compact */
.lk-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; margin: 0 -10px 0 auto; }
.btn--icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; transition: color 180ms var(--ease), background-color 180ms var(--ease); }
.btn--icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.btn--icon:disabled { opacity: 0.25; cursor: default; }
.btn--icon.is-copied, .btn--icon[aria-expanded="true"] { color: var(--accent); }
@media (hover: hover) and (pointer: fine) {
    .btn--icon:not(:disabled):hover { color: var(--ink); background: var(--bg); text-decoration: none; }
    .btn--icon.danger:not(:disabled):hover { color: var(--danger); }
}
@media (max-width: 639px) { .lk-tools { flex: 1 1 100%; } }
/* Drag handle (main.js shows it): a finger on it moves the row, not the page */
.lk-grip { flex: none; margin: 0 -8px 0 -12px; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.lk-grip[hidden] { display: none; }
.lk-grip svg { fill: currentColor; }
.lk.is-drag { position: relative; z-index: 1; border-radius: 8px; background: var(--bg); outline: 1px solid var(--line-strong); }
.lk.is-drag .lk-grip { color: var(--accent); cursor: grabbing; }
/* Show or hide switch: a real button (role=switch) of the row's small form; 44px target, the 36px track is drawn inside it */
.switch { position: relative; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: none; cursor: pointer; }
.switch::before { content: ''; position: absolute; inset: 12px 4px; border: 1px solid var(--line-strong); border-radius: 99px; background: var(--bg); }
.switch::after { content: ''; position: absolute; top: 15px; left: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); }
.switch[aria-checked="true"]::before { border-color: var(--accent); background: var(--accent); }
.switch[aria-checked="true"]::after { left: 23px; background: var(--on-accent); }
.switch:disabled { opacity: 0.35; cursor: default; }
/* A link that is off the page (the member's switch, or hidden by staff) stays in the list, dimmed, with its pill */
.lk.is-off .lk-main b { font-weight: 400; color: var(--muted); }
.lk.is-off .lk-row > .icon { opacity: 0.5; }
.lk .pill { display: inline-block; margin-left: 6px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 99px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.lk .pill.bad { border-color: var(--danger); color: var(--danger); }
/* Remove asks first: the bin is the summary of a <details>; open, the question and its two buttons take the place of the other tools */
.lk-ask > summary { list-style: none; }
.lk-ask > summary::-webkit-details-marker { display: none; }
.lk-ask[open], .lk-ask-q { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 8px; font-size: var(--fs-ui); color: var(--ink); }
.lk-ask[open] > summary { color: var(--danger); }
.lk-tools:has(.lk-ask[open]) > :not(.lk-ask) { display: none; }
.lk-edit { margin: 8px 0 6px 32px; padding: 16px; border-radius: 8px; background: var(--bg); }
.lk-edit[hidden] { display: none; }
@media (max-width: 639px) { .lk-edit { margin-left: 0; } }
.notice.error { border-color: var(--ink); }
/* Admin > Links: what a member or a reporter typed breaks anywhere, so a long address or note never widens the table; names and codes stay on one line */
td.typed { min-width: 14ch; overflow-wrap: anywhere; }
td.typed.wide { width: 40%; min-width: 22ch; }
td.typed p { margin: 0 0 6px; }
td.typed > div { position: sticky; left: 12px; max-width: min(90ch, calc(100vw - 58px)); }   /* on a phone the reports stay in view while the table scrolls sideways */
td.nowrap { white-space: nowrap; }

/* Member area /my keeps its one page, with the admin's text size buttons (S4): A- A+ beside the title; 3 = normal, the whole
   page scales (the same zoom steps as the admin). The same rules as admin.css .text-pick, which the public pages do not load. */
.my-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.text-pick { display: inline-flex; gap: 4px; }
.text-pick button { min-width: 44px; min-height: 44px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.text-pick button:disabled { opacity: .45; cursor: default; }
.text-pick .text-now { align-self: center; min-width: 44px; text-align: center; font-size: var(--fs-ui); font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }   /* the size now, 88% to 122% (100% = normal) */
html[data-text="1"] body.page-my-index { zoom: 0.88; }
html[data-text="2"] body.page-my-index { zoom: 0.94; }
html[data-text="4"] body.page-my-index { zoom: 1.1; }
html[data-text="5"] body.page-my-index { zoom: 1.22; }

/* Live preview on /my: the public card in a phone frame. Below 1024px it opens on its button; from 1024px it stays open beside
   the editor (main.js opens it) and follows the scroll. --zoom = the text size step, so the frame still fits the screen when zoomed. */
.my > *, .my-main > * { min-width: 0; }
.my-cols, .my-main { display: grid; gap: 24px; }
.my-preview > summary { list-style: none; }
.my-preview > summary::-webkit-details-marker { display: none; }
.my-preview > .small { margin-top: 12px; text-align: center; }
.phone { width: min(100%, 340px); margin: 12px auto 0; padding-block: 28px; border: 6px solid var(--line-strong); border-radius: 36px; background: var(--bg); overflow: hidden auto; overflow-wrap: anywhere; scrollbar-width: thin; }
.phone .card { padding-inline: 16px; }
.phone .card-name { color: var(--ink); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
html[data-text="4"] .my { --zoom: 1.1; }
html[data-text="5"] .my { --zoom: 1.22; }
@media (min-width: 1024px) {
    .my--wide { max-width: 1120px; }
    .my-cols { grid-template-columns: minmax(0, 1fr) 340px; column-gap: 32px; align-items: start; }
    .my-main { grid-area: 1 / 1; }
    .my-preview { grid-area: 1 / 2; position: sticky; top: calc(var(--nav-h) + 24px); }
    .my-preview[open] > summary { display: none; }
    .my-preview[open] > .small { margin-top: 0; }
    .phone { max-height: max(320px, calc(100vh / var(--zoom, 1) - var(--nav-h) - 140px)); }
}
