:root { color-scheme:dark; --background:#080808; --text:#e8e8e8; --muted:#999999; --accent:#cccccc; --line:#333333; --subtle-line:#292929; --surface:#111111; --hover:#1b1b1b; --strong:#ffffff; --button-border:#555555; --border-hover:#858585; --orbit:#666666; --primary:#e8e8e8; --on-primary:#080808; background:var(--background); }
@media(prefers-color-scheme:light) { :root:not([data-theme="dark"]) { color-scheme:light; --background:#ffffff; --text:#171717; --muted:#666666; --accent:#333333; --line:#cccccc; --subtle-line:#dedede; --surface:#f5f5f5; --hover:#eeeeee; --strong:#080808; --button-border:#aaaaaa; --border-hover:#666666; --orbit:#777777; --primary:#171717; --on-primary:#ffffff; } }
:root[data-theme="light"] { color-scheme:light; --background:#ffffff; --text:#171717; --muted:#666666; --accent:#333333; --line:#cccccc; --subtle-line:#dedede; --surface:#f5f5f5; --hover:#eeeeee; --strong:#080808; --button-border:#aaaaaa; --border-hover:#666666; --orbit:#777777; --primary:#171717; --on-primary:#ffffff; }
:root[data-theme="dark"] { color-scheme:dark; --background:#080808; --text:#e8e8e8; --muted:#999999; --accent:#cccccc; --line:#333333; --subtle-line:#292929; --surface:#111111; --hover:#1b1b1b; --strong:#ffffff; --button-border:#555555; --border-hover:#858585; --orbit:#666666; --primary:#e8e8e8; --on-primary:#080808; }
    html { scrollbar-gutter:stable; }
    * { box-sizing: border-box; }
    body { margin: 0; background: var(--background); color: var(--text); font-family: monospace; line-height:1.7; -webkit-font-smoothing: antialiased; }
    .page { min-height: 100svh; max-width: none; margin: 0 auto; padding: 24px 5vw; display: flex; flex-direction: column; }
    main { flex: 1; display: grid; place-items: center; }
    .intro { position: relative; display: grid; place-items: center; width: 100%; min-height: 460px; height: calc(100svh - 48px); isolation: isolate; }
    .rings { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
    .orbit-ring { position: absolute; width: min(78vw, 78svh); aspect-ratio: 1; border: 1px solid var(--orbit); border-radius: 50%; transform: rotate(-32deg) scaleY(.56); }
    .orbit-ring::after { content: ''; position: absolute; top: -3px; left: calc(50% - 3px); width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
    .orbit-ring.two { border-color: var(--line); transform: rotate(38deg) scaleY(.7); }
    .orbit-ring.three { border-color: var(--accent); opacity: .75; transform: rotate(88deg) scaleY(.3); }
    .orbit-ring.three::after { background: var(--accent); }
    .home h1 { position: relative; z-index: 1; margin: 0; padding: 12px 3px; background: var(--background); font-size: clamp(3rem, 7.7vw, 8rem); font-weight: 400; letter-spacing: -.07em; line-height: 1.1; white-space: nowrap; }
    .home h1 .rn-gap { margin-left: .055em; }
    .home h1 em { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; color: var(--muted); }
    .disciplines { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; z-index: 2; }
    .disciplines li { position: absolute; background: var(--background); font: .875rem/1.5 monospace; }
    .disciplines li:nth-child(1) { left: 9%; top: 23%; }
    .disciplines li:nth-child(2) { right: 8%; top: 30%; }
    .disciplines li:nth-child(3) { left: 13%; bottom: 21%; }
    .disciplines li:nth-child(4) { right: 14%; bottom: 15%; }
    .disciplines svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--accent); stroke-width: 1.5; }
    .subject-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color 180ms ease, transform 180ms ease; }
    .subject-link span { position: relative; }
    .subject-link span::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 200ms ease; }
    .subject-link svg { transition: transform 200ms ease, color 180ms ease; }
    .subject-link:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
    .subject-link:focus-visible span::after { transform: scaleX(1); }
    .subject-link:active { transform: scale(.96); }
    @media (hover: hover) { .subject-link:hover { color: var(--strong); } .subject-link:hover span::after { transform: scaleX(1); } .subject-link:hover svg { transform: translateY(-2px); color: var(--strong); } }
    @media (prefers-reduced-motion: reduce) { .subject-link, .subject-link span::after, .subject-link svg { transition: none; } .subject-link:active { transform: none; } }
    @media (max-width: 600px) {
      .page { padding: 20px; }
      .intro { min-height: 460px; height: calc(100svh - 40px); }
      .home h1 { font-size: clamp(2rem, 9.4vw, 3.5rem); }
      .disciplines li { font-size: .8125rem; }
      .subject-link { gap: 8px; padding: 8px; }
      .disciplines li:nth-child(1) { left: 0; top: 20%; }
      .disciplines li:nth-child(2) { right: 0; top: 31%; }
      .disciplines li:nth-child(3) { left: 0; bottom: 25%; }
      .disciplines li:nth-child(4) { right: 0; bottom: 14%; }
      .disciplines svg { width: 18px; height: 18px; }
    }

/* The orbital landing and the journal share a quiet monochrome palette. */
a { color:inherit; text-decoration:none; }
a:hover { color:var(--strong); }
a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible { outline:2px solid var(--accent); outline-offset:5px; }
.shell { width:min(1280px,90vw); margin:0 auto; padding-bottom:36px; }
.nav { position:relative; z-index:10; display:flex; align-items:center; justify-content:space-between; padding:28px 0; }
.logo { display:inline-flex; gap:12px; align-items:center; min-height:44px; font-size:17px; letter-spacing:-.04em; }
.logo .brand-icon { width:32px; height:32px; flex-shrink:0; transition:transform .16s ease; }
.brand-orbits { transform-origin:16px 16px; transition:transform .45s ease; }
.logo:is(:hover,:focus-visible) .brand-orbits { transform:rotate(22deg); }
.logo:active .brand-orbits { transform:rotate(70deg); transition-duration:.14s; }
.logo:active .brand-icon { transform:scale(.88); }
@media(prefers-reduced-motion:reduce) { .logo:is(:hover,:focus-visible,:active) .brand-orbits,.logo:active .brand-icon { transform:none; } }
.logo em { color:var(--muted); font-family:Georgia,serif; font-weight:400; }
.nav-controls { display:flex; align-items:center; gap:28px; font-size:13px; }
.basket-link { padding:12px 0; }
.navigation { position:relative; }
.navigation summary { display:flex; align-items:center; gap:16px; min-height:44px; padding:10px 0 10px 12px; cursor:pointer; list-style:none; }
.navigation summary::-webkit-details-marker { display:none; }
.menu-mark { display:block; width:20px; height:10px; border-top:1px solid currentColor; border-bottom:1px solid currentColor; transition:transform .2s; }
.navigation[open] .menu-mark { transform:rotate(-45deg); height:0; border-bottom:0; }
.menu-panel { position:absolute; top:calc(100% + 12px); right:0; width:260px; padding:18px 24px; background:var(--surface); border:1px solid var(--line); box-shadow:0 20px 60px #0008; }
.menu-panel a { display:block; padding:13px 0; color:var(--muted); font-size:17px; letter-spacing:-.02em; transition:color .18s,transform .18s; }
.menu-panel a:hover { color:var(--strong); transform:translateX(4px); }
.content { display:block; place-items:normal; padding:72px 0 80px; min-height:70svh; }
.content h1 { font-size:clamp(2.7rem,6.5vw,6rem); line-height:1.05; font-weight:400; letter-spacing:-.065em; margin:0 0 36px; }
.content h2 { font-weight:400; letter-spacing:-.035em; }
.page-head { display:flex; align-items:flex-end; justify-content:space-between; gap:32px; padding-bottom:40px; margin-bottom:48px; border-bottom:1px solid var(--subtle-line); }
.page-head h1 { margin:14px 0 0; }
.muted,.summary,figcaption { color:var(--muted); }
.eyebrow { color:var(--muted); font:11px/1.6 monospace; text-transform:uppercase; letter-spacing:.14em; margin:0 0 16px; }
.actions { display:flex; gap:12px; flex-wrap:wrap; margin:28px 0; }
.section-actions { margin:0; gap:24px; }
.button,button { display:inline-flex; align-items:center; justify-content:center; gap:10px; border:1px solid var(--button-border); border-radius:2px; background:transparent; color:var(--text); padding:12px 22px; min-height:46px; font:13px/1.4 Arial,Helvetica,sans-serif; cursor:pointer; transition:background .18s,border-color .18s,transform .18s; }
.button:hover,button:hover { background:var(--hover); border-color:var(--border-hover); }
button:active,.button:active { transform:translateY(1px) scale(.98); }
button:disabled { opacity:.4; cursor:not-allowed; }
.primary { background:var(--primary); border-color:var(--primary); color:var(--on-primary); }
.primary:hover { background:var(--strong); border-color:var(--strong); color:var(--on-primary); }
.section-actions .button { padding:12px 0; border:0; border-bottom:1px solid var(--button-border); border-radius:0; background:none; justify-content:flex-start; }
.section-actions .button:hover { border-color:var(--text); }
.grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); gap:32px; }
.card { display:block; break-inside:avoid; padding:24px 0; border-top:1px solid var(--line); margin-bottom:24px; }
.card h2 { font-size:25px; line-height:1.2; margin:0 0 12px; }
.card p { font-size:14px; line-height:1.7; }
.card img { width:100%; height:auto; display:block; }
.collection .card { padding:0 0 24px; border:0; margin-bottom:32px; }
.card-image { overflow:hidden; background:var(--surface); margin-bottom:24px; }
.card-image img { transition:transform .6s ease; }
.card:hover .card-image img { transform:scale(1.025); }
.card-caption h2 { display:flex; justify-content:space-between; gap:16px; }
.card-caption h2 span { font-size:18px; color:var(--muted); transition:transform .2s,color .2s; }
.card:hover .card-caption h2 span { transform:translate(2px,-2px); color:var(--strong); }
.card-caption .summary { margin:0 0 16px; max-width:45ch; }
.card-caption .eyebrow { margin-bottom:10px; }
.product-card .price { color:var(--text); margin:16px 0 4px; }
.product-card .muted { margin:0; }
.shop-grid .card-image { aspect-ratio:4/5; }
.shop-grid .card-image picture,.shop-grid .card-image img { width:100%; height:100%; object-fit:cover; }
.empty-state { grid-column:1/-1; padding:60px 0; margin:0; font-size:15px; color:var(--muted); }
.article { max-width:820px; margin:0 auto; }
.article > .eyebrow { margin-bottom:24px; }
.article > .summary { font-size:19px; line-height:1.65; margin:0 0 48px; max-width:58ch; }
.article p,.article li { line-height:1.85; }
.article img { max-width:100%; height:auto; }
.article figure { margin:48px 0; }
.article pre { overflow:auto; background:var(--surface); padding:24px; }
.article blockquote { border-left:1px solid var(--orbit); padding-left:24px; margin:32px 0; color:var(--muted); }
.article figcaption { padding-top:12px; font-size:13px; }
.article h2 { margin-top:48px; }
.form { max-width:680px; display:grid; gap:24px; }
.form > button { justify-self:start; min-width:150px; }
label { display:grid; gap:10px; font-size:13px; color:var(--text); }
input,textarea,select { background:var(--surface); color:var(--text); border:1px solid var(--line); padding:14px; font:14px/1.6 monospace; width:100%; border-radius:2px; transition:border-color .18s; }
input:hover,textarea:hover,select:hover { border-color:var(--orbit); }
textarea { min-height:140px; resize:vertical; }
input[type=checkbox] { width:18px; min-height:18px; accent-color:var(--text); }
label.check { display:flex; align-items:center; gap:12px; }
fieldset { border:1px solid var(--line); padding:24px; display:grid; gap:20px; }
legend { padding:0 8px; }
.trap { position:absolute; left:-10000px; }
.notice { border-left:1px solid var(--muted); padding:16px 22px; background:var(--surface); margin:24px 0; line-height:1.7; }
.row { border-bottom:1px solid var(--subtle-line); padding:24px 0; display:flex; gap:24px; align-items:center; flex-wrap:wrap; }
.row form { display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.row input[type=number] { width:80px; }
.row .grow { flex:1; min-width:180px; }
.toolbar { display:flex; gap:8px; flex-wrap:wrap; }
.toolbar button { padding:8px 12px; }
.tiptap { border:1px solid var(--button-border); min-height:250px; padding:20px; outline:none; line-height:1.7; }
.tiptap img { max-width:100%; }
.json-body { display:none; }
.error { color:var(--text); border:1px solid var(--border-hover); padding:12px; }
.badge { font:11px/1.6 monospace; color:var(--muted); }
dl { display:grid; grid-template-columns:140px 1fr; gap:14px; overflow-wrap:anywhere; font-size:14px; line-height:1.6; }
dt { color:var(--muted); }
dd { margin:0; }
pre { white-space:pre-wrap; overflow-wrap:anywhere; }
footer { display:flex; gap:10px; padding:24px 0; border-top:1px solid var(--subtle-line); font-size:12px; color:var(--muted); }
@media(max-width:800px) { .page-head { align-items:flex-start; flex-direction:column; gap:24px; } .content { padding-top:48px; } }
@media(max-width:600px) { .shell { width:calc(100% - 40px); } .nav { padding:16px 0; } .logo { font-size:15px; gap:8px; } .logo .brand-icon { width:26px; height:26px; } .nav-controls { gap:20px; } .menu-panel { width:min(280px,calc(100vw - 40px)); } .content { padding:44px 0 56px; } .content h1 { font-size:clamp(2.6rem,12vw,4rem); overflow-wrap:anywhere; } .page-head { padding-bottom:28px; margin-bottom:32px; } .section-actions { gap:20px; } .row { align-items:flex-start; } dl { grid-template-columns:1fr; gap:8px; } dd { margin-bottom:12px; } .article > .summary { font-size:17px; } }
@media(prefers-reduced-motion:reduce) { * { transition:none!important; } }

/* Section titles occupy the same orbit as the landing wordmark. */
.shell { width:min(1160px,calc(100% - 10vw)); }
.content { padding-top:24px; }
.content h1 { font-size:clamp(2.2rem,4vw,3.5rem); letter-spacing:-.055em; }
.section-head { position:relative; display:flex; align-items:center; justify-content:center; height:300px; margin:0 0 72px; isolation:isolate; }
.section-orbits { position:absolute; width:min(600px,90%); height:100%; pointer-events:none; color:var(--orbit); stroke:currentColor; stroke-width:.7; }
.section-orbits ellipse:nth-child(2) { stroke:var(--line); }
.section-head h1 { position:relative; margin:0; padding:8px 16px; background:var(--background); font-weight:400; }
.section-actions { position:absolute; inset:0; pointer-events:none; }
.section-actions .button { position:absolute; pointer-events:auto; background:var(--background); border:0; padding:10px; font:12px/1.5 monospace; min-height:44px; }
.section-actions .button:first-child { top:30px; left:10%; }
.section-actions .button:nth-child(2) { bottom:30px; right:9%; }
.section-actions .button::after { content:''; position:absolute; left:10px; right:10px; bottom:5px; height:1px; background:var(--muted); transform:scaleX(0); transform-origin:left; transition:transform .2s; }
.section-actions .button:hover::after,.section-actions .button:focus-visible::after { transform:scaleX(1); }
.nav-controls,.navigation summary,.basket-link { font:12px/1.5 monospace; }
.menu-panel { padding:16px 22px; width:210px; background:var(--background); box-shadow:none; border-color:var(--subtle-line); }
.menu-panel a { font:13px/1.6 monospace; padding:14px 0; }
.card h2 { font-size:20px; letter-spacing:-.035em; }
.collection { max-width:1000px; margin:0 auto; }
.collection .card { padding-bottom:12px; }
.card-caption h2 { justify-content:flex-start; }
.card-caption h2::after { display:none; }
.card-caption h2 { text-decoration-thickness:1px; text-underline-offset:6px; }
.card:hover h2 { text-decoration:underline; }
.card-caption p { font-size:13px; }
.card-image { margin-bottom:18px; }
.article { max-width:740px; }
.article h1 { font-size:clamp(2.2rem,4vw,3.5rem); }
.article > .summary { font-size:16px; }
.button,button { font:12px/1.5 monospace; border-radius:0; background:var(--background); }
.primary { background:var(--primary); }
input,textarea,select { background:var(--background); border-radius:0; border-color:var(--line); }
.form { max-width:620px; }
footer { border:0; font:11px/1.6 monospace; margin-top:0; }
@media(max-width:600px) { .content { padding-top:12px; } .section-head { height:280px; margin-bottom:48px; } .section-orbits { width:100%; } .section-head h1 { font-size:clamp(2rem,9vw,3rem); } .section-actions .button:first-child { left:0; top:12px; } .section-actions .button:nth-child(2) { right:0; bottom:12px; } .menu-panel { width:210px; } }

.action-icon { width:18px; height:18px; flex:0 0 18px; }
.section-actions .button { gap:10px; }
.section-actions .button span { text-decoration:underline; text-decoration-color:var(--orbit); text-underline-offset:6px; text-decoration-thickness:1px; transition:text-decoration-color .2s; }
.section-actions .button:hover span,.section-actions .button:focus-visible span { text-decoration-color:var(--text); }
.section-actions .button::after { display:none; }
.section-actions .button .action-icon { transition:transform .2s; }
.section-actions .button:hover .action-icon { transform:translateY(-1px); }

/* A quiet partial underline is shared by the home and section links. */
.subject-link span,.section-actions .button span { position:relative; text-decoration:none; }
.subject-link span::after,.section-actions .button span::after { content:''; position:absolute; left:0; right:0; bottom:-6px; height:1px; background:currentColor; transform:scaleX(.28); transform-origin:left; opacity:.35; transition:transform .22s ease,opacity .22s ease; }
.subject-link:hover span::after,.subject-link:focus-visible span::after,.subject-link:active span::after,.section-actions .button:hover span::after,.section-actions .button:focus-visible span::after,.section-actions .button:active span::after { transform:scaleX(1); opacity:1; }

.crochet-choices{border:0;padding:0;margin:0}.crochet-choices legend{font-size:1.15rem;margin-bottom:1.25rem}.crochet-choices label{display:block;margin-bottom:1rem}.colour-fields{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem}.crochet-estimate{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:1.5rem 0;margin:1rem 0}.crochet-estimate strong{display:block;font-size:clamp(1.6rem,4vw,2.4rem);font-weight:400;letter-spacing:-.035em}.crochet-estimate p{margin-bottom:0}.crochet-configurator{margin:2rem 0 3rem}@media(max-width:600px){.colour-fields{grid-template-columns:1fr;gap:0}}

/* The root palette applies to inline brand artwork as well as page surfaces. */
.brand-icon rect { fill:var(--background); }
.brand-orbits { stroke:var(--accent); }

/* Keep short pages within one viewport; longer content extends naturally. */
.shell { display:flex; flex-direction:column; min-height:100svh; padding-bottom:0; }
.content { flex:1; min-height:0; padding-bottom:32px; }
.section-head { height:clamp(160px,24svh,260px); margin-bottom:32px; }
footer { margin-top:auto; padding:20px 0; }
@media(max-width:600px) { .content { padding-bottom:24px; } .section-head { height:200px; margin-bottom:28px; } }

.theme-toggle { gap:8px; min-height:44px; padding:10px 8px; border:0; background:transparent; color:var(--muted); font:11px/1.5 monospace; }
.theme-toggle:hover { background:transparent; color:var(--text); }
.theme-toggle[hidden] { display:none; }
.theme-toggle svg { display:none; width:17px; height:17px; }
:root[data-theme-preference="system"] .theme-system,:root[data-theme-preference="light"] .theme-light,:root[data-theme-preference="dark"] .theme-dark { display:block; }
.home > .theme-toggle { position:absolute; top:20px; right:5vw; z-index:3; }
@media(max-width:600px) { .nav-controls { gap:14px; } .home > .theme-toggle { top:12px; right:20px; } }

/* Small finite responses to the pointer, with different movement for rings/text. */
.brand-title { transform-origin:center; transition:transform .32s ease; }
.rings,.section-orbits { transform-origin:center; transition:transform .48s ease; }
[data-brand-interaction="hover"] .brand-title,.brand-title[data-brand-interaction="hover"] { transform:translateY(-1px); }
[data-brand-interaction="hover"] .rings,[data-brand-interaction="hover"] .section-orbits { transform:rotate(.6deg) scale(1.004); }
[data-brand-interaction="press"] .brand-title,.brand-title[data-brand-interaction="press"] { transform:scale(.988); }
[data-brand-interaction="press"] .rings,[data-brand-interaction="press"] .section-orbits { transform:rotate(-.6deg) scale(.996); }
@media(prefers-reduced-motion:reduce) { .brand-title,.rings,.section-orbits { transform:none!important; transition:none; } }

.disciplines { pointer-events:none; }
.disciplines a { pointer-events:auto; }

/* Supplier swatches supplement native selects and remain usable with a keyboard. */
.colour-fields { grid-template-columns:1fr; gap:0; }
.yarn-picker { margin:0 0 20px; }
.yarn-picker[hidden] { display:none; }
.yarn-picker summary { min-height:44px; padding:10px 0; cursor:pointer; color:var(--muted); font-size:12px; }
.yarn-swatches { display:grid; grid-template-columns:repeat(auto-fill,minmax(76px,1fr)); gap:8px; padding:8px 0; }
.yarn-swatch { display:flex; flex-direction:column; justify-content:flex-start; gap:8px; padding:10px 4px; min-height:88px; border:1px solid var(--line); font:11px/1.5 monospace; text-align:center; }
.yarn-swatch img,.swatch-unavailable { width:40px; height:40px; border-radius:50%; object-fit:cover; border:1px solid var(--line); }
.swatch-unavailable { display:grid; place-items:center; color:var(--muted); }
.yarn-swatch[aria-pressed="true"] { border:2px solid var(--text); padding:9px 3px; }
select:not([multiple]) { height:52px; }

/* Shared select behaviour; this palette and spacing belong to Kernelspace. */
.ks-select { position:relative; min-width:0; width:100%; height:52px; border:1px solid var(--line); border-radius:3px; background:var(--background); transition:border-color .18s,background .18s; font:14px/1.6 monospace; }
.ks-select:hover { border-color:var(--border-hover); background:var(--surface); }
.ks-select:focus-within { outline:2px solid var(--accent); outline-offset:3px; }
.ks-select > select { position:absolute; inset:0; width:100%; height:100%; opacity:0; margin:0; cursor:pointer; }
.ks-select-value { display:block; line-height:26px; height:100%; padding:12px 42px 12px 16px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; pointer-events:none; }
.ks-select::after { content:''; position:absolute; right:18px; top:20px; width:7px; height:7px; border-right:1px solid var(--muted); border-bottom:1px solid var(--muted); transform:rotate(45deg); pointer-events:none; transition:transform .18s; }
.ks-select[data-open="true"]::after { transform:translateY(4px) rotate(225deg); }
.ks-select[data-disabled="true"] { opacity:.45; }
.ks-select[data-disabled="true"] > select { cursor:not-allowed; }
.ks-select-menu { position:absolute; z-index:120; top:calc(100% + 8px); left:-1px; right:-1px; max-height:min(280px,45vh); overflow:auto; overscroll-behavior:contain; padding:6px; border:1px solid var(--line); border-radius:4px; background:var(--background); box-shadow:0 12px 32px #0002; }
.ks-select-menu[hidden] { display:none; }
.ks-select[data-side="above"] > .ks-select-menu { top:auto; bottom:calc(100% + 8px); }
.ks-select-option { position:relative; padding:12px 34px 12px 12px; min-height:44px; text-align:left; cursor:pointer; overflow-wrap:anywhere; border-radius:2px; }
.ks-select-option:hover,.ks-select-option[data-active="true"] { background:var(--hover); }
.ks-select-option[aria-selected="true"]::after { content:'✓'; position:absolute; right:12px; color:var(--text); }
.ks-select-option[aria-disabled="true"] { color:var(--muted); opacity:.5; cursor:not-allowed; }
@media(prefers-reduced-motion:reduce) { .ks-select,.ks-select::after { transition:none; } }
@media(forced-colors:active) { .ks-select { border-color:ButtonText; } .ks-select-option[data-active="true"] { outline:1px solid Highlight; } }
.home-header { width:min(1160px,100%); margin-inline:auto; }
.nav-controls { margin-left:auto; }
.home .intro { height:auto; min-height:0; flex:1; }
.home main { min-height:400px; }
.page.home { padding-top:0; padding-bottom:0; }
.home footer { width:min(1160px,100%); margin-inline:auto; }
.footer-links { display:flex; flex-wrap:wrap; gap:12px 20px; align-items:center; }
.basket-link { display:inline-flex; align-items:center; gap:8px; min-height:44px; }
.basket-link svg { width:16px; height:16px; }
@media(max-width:600px) { .shell { width:calc(100% - 40px); } .home main { min-height:360px; } .footer-links { gap:8px 16px; } }

h1,h2,h3,h4,h5,h6,.brand-title { font-family:Arial,Helvetica,sans-serif; }
.empty-state { font-family:monospace; line-height:1.7; }
h2,h3,h4,h5,h6 { line-height:1.2; }

.form { width:100%; min-width:0; }
.form > *,fieldset,label { min-width:0; min-inline-size:0; }
legend { max-width:100%; white-space:normal; }
.crochet-choices [hidden] { display:none; }
.home main { display:flex; align-items:stretch; }

.brand-scene { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); display:grid; place-items:center; width:max-content; min-width:min(78vw,78svh); max-width:100%; height:min(78vw,78svh); isolation:isolate; }

.field-note { display:block; font-size:.8rem; line-height:1.6; margin:.6rem 0 1rem; }
@media(max-width:600px) { .content .form > button,.content form.row > button { width:100%; justify-self:stretch; } }
 .product-description { white-space:pre-line; }

/* Direct shop and enquiry links stay quieter than the portfolio subjects. */
.subject-actions { display:flex; align-items:center; gap:4px; padding-left:4px; }
.subject-actions a { display:inline-flex; align-items:center; gap:6px; min-height:44px; padding:8px 6px; color:var(--muted); font:11px/1.5 monospace; white-space:nowrap; transition:color .2s,transform .2s; }
.subject-actions svg { width:14px; height:14px; color:currentColor; }
.subject-actions span { position:relative; }
.subject-actions span::after { content:''; position:absolute; left:0; right:0; bottom:-5px; height:1px; background:currentColor; transform:scaleX(.28); transform-origin:left; opacity:.35; transition:transform .22s,opacity .22s; }
.subject-actions a:hover,.subject-actions a:focus-visible,.subject-actions a:active { color:var(--strong); }
.subject-actions a:hover span::after,.subject-actions a:focus-visible span::after,.subject-actions a:active span::after { transform:scaleX(1); opacity:1; }
.subject-actions a:focus-visible { outline:1px solid var(--accent); outline-offset:0; }
.subject-actions a:active { transform:translateY(1px); }
@media(prefers-reduced-motion:reduce) { .subject-actions a,.subject-actions span::after { transition:none; } .subject-actions a:active { transform:none; } }

.content-paths { justify-content:center; flex-wrap:wrap; margin:0 auto 12px; }
.collection .empty-state { padding:36px 0; }
.content-paths [aria-current="page"] { color:var(--text); }

/* One shared hierarchy connects section overviews, collections and detail pages. */
.public-wayfinding { border-top:1px solid var(--subtle-line); }
.public-wayfinding + .content { padding-top:32px; }
.public-sections,.public-collections { display:flex; flex-wrap:wrap; column-gap:28px; row-gap:0; }
.public-sections { padding:8px 0; border-bottom:1px solid var(--subtle-line); }
.public-sections a,.public-collections a { display:inline-flex; align-items:center; min-height:44px; padding:8px 0; font:13px/1.5 monospace; color:var(--muted); }
.public-sections a:hover,.public-collections a:hover { color:var(--strong); }
.public-sections [aria-current] { color:var(--text); font-weight:700; }
.public-collections { padding:8px 0; }
.public-collections [aria-current] { color:var(--text); text-decoration:underline; text-underline-offset:7px; }
.public-home-label { font:12px/1.5 monospace; letter-spacing:0; }
.navigation .public-menu { width:min(560px,calc(100vw - 40px)); display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px 32px; }
.public-menu .menu-utilities { grid-column:1/-1; display:flex; gap:28px; border-bottom:1px solid var(--subtle-line); }
.public-menu .menu-group > a { color:var(--text); font-weight:700; }
.public-menu .menu-shortcuts a { padding:10px 0; min-height:44px; }
.section-description { max-width:65ch; margin:0 0 40px; }
.collection-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:24px; }
.collection-heading h2 { margin:0; font-size:24px; }
.collection-heading > a { min-height:44px; display:inline-flex; align-items:center; gap:12px; font-size:12px; text-decoration:underline; text-underline-offset:5px; }
.section-preview + .section-preview { margin-top:40px; }
.section-preview .empty-state { padding:20px 0; }
.section-preview .card h3 { font:400 24px/1.3 Arial,Helvetica,sans-serif; letter-spacing:-.035em; margin:0 0 12px; }
@media(max-width:600px) {
 .public-sections,.public-collections { column-gap:20px; }
 .public-sections a,.public-collections a { font-size:12px; }
 .public-home-label { display:none; }
 .public-wayfinding + .content { padding-top:24px; }
 .navigation .public-menu { width:min(340px,calc(100vw - 40px)); grid-template-columns:1fr; gap:12px; }
}
.journal-feed { display:grid; gap:48px; max-width:740px; }
.blog-entry { min-width:0; break-inside:avoid; padding-bottom:36px; border-bottom:1px solid var(--subtle-line); }
.blog-entry h2 { font-size:24px; margin:20px 0 16px; }
.blog-entry h2 a:hover { text-decoration:underline; text-underline-offset:6px; }
.blog-entry .card-image { display:block; }
.blog-entry img { width:100%; height:auto; }
.blog-body { overflow-wrap:anywhere; }
.blog-body pre { max-width:100%; overflow:auto; }
.blog-permalink { display:inline-flex; align-items:center; min-height:44px; color:var(--muted); font-size:11px; text-decoration:underline; text-underline-offset:5px; }
.blog-permalink:hover { color:var(--text); }

/* Keep each subject and its shortcuts together at every viewport size. */
.home .intro { min-height:clamp(460px,36vw,560px); }
.disciplines { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:1fr 1fr; gap:24px; padding:24px clamp(0px,5vw,100px); }
.disciplines li { position:static; min-width:0; max-width:100%; }
.disciplines li:nth-child(1) { grid-column:1; grid-row:1; align-self:start; margin:0; }
.disciplines li:nth-child(2) { grid-column:2; grid-row:1; justify-self:end; align-self:start; margin:32px 0 0; }
.disciplines li:nth-child(3) { grid-column:1; grid-row:2; align-self:end; margin:0 0 16px; }
.disciplines li:nth-child(4) { grid-column:2; grid-row:2; justify-self:end; align-self:end; margin:0; }
.disciplines .subject-actions { flex-wrap:wrap; }
.disciplines .subject-actions a { white-space:normal; }
.disciplines .subject-actions svg { flex-shrink:0; }
@media(max-width:600px) {
 .home .intro { min-height:420px; }
 .disciplines { column-gap:8px; padding:8px 0 0; }
 .disciplines li:nth-child(2) { margin-top:40px; }
 .disciplines .subject-actions { gap:0; padding-left:0; }
 .disciplines .subject-actions a { padding:8px 2px; gap:4px; min-width:44px; }
 .disciplines .subject-actions svg { width:12px; height:12px; flex-basis:12px; }
}

/* Compact language menu follows the Atelierqualiem header pattern. */
.language-menu { position:relative; }
.language-menu summary { display:flex; align-items:center; justify-content:center; gap:8px; width:56px; min-height:44px; cursor:pointer; list-style:none; font:13px/1.7 monospace; }
.language-menu summary::-webkit-details-marker { display:none; }
.language-code { text-transform:uppercase; }
.language-chevron { display:block; flex:none; width:10px; height:10px; color:var(--muted); }
.language-menu[open] .language-chevron { transform:rotate(180deg); }
.language-menu .language-form { position:absolute; z-index:120; top:calc(100% + 8px); right:0; display:flex; flex-direction:column; width:max-content; min-width:180px; max-width:calc(100vw - 32px); max-height:min(360px,60svh); overflow-y:auto; overscroll-behavior:contain; margin:0; padding:8px; background:var(--background); border:1px solid var(--line); border-radius:4px; box-shadow:0 12px 32px #0002; }
.language-menu button { position:relative; display:block; width:100%; min-height:44px; margin:0; padding:10px 34px 10px 12px; border:0; border-radius:2px; background:transparent; color:var(--text); text-align:left; white-space:nowrap; font:13px/1.7 monospace; }
.language-menu button:hover,.language-menu button[aria-current="true"] { background:var(--hover); }
.language-current { position:absolute; right:12px; }
.language-menu button:focus-visible { outline-offset:-2px; }
@media(max-width:600px) { .language-menu .language-form { left:0; right:auto; } }
@media(max-width:360px) { .language-menu .language-form { left:-16px; } }
.translation-review { padding:1.5rem 0; border-bottom:1px solid var(--line); }
@media(max-width:480px) { .nav-controls { gap:.45rem; } }

.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }

/* Mask orbit lines only beneath individual links, never an entire grid cell. */
.disciplines li { width:fit-content; background:transparent; }
.disciplines .subject-link,.disciplines .subject-actions a { background:var(--background); }
@media(max-width:600px) {
  .nav-controls { gap:8px; }
  .nav-controls [data-theme-label] { display:none; }
  .navigation summary { gap:7px; padding-left:2px; }
}
@media(max-width:360px) {
  .nav-controls { gap:5px; }
  .nav-controls .basket-link { gap:4px; }
}
@media(max-width:360px) {
  .nav-controls .theme-toggle { padding-inline:2px; }
  .nav-controls .basket-link svg { display:none; }
}

/* Leave visible space between adjacent shortcuts and wrapped rows. */
.disciplines .subject-actions { column-gap:clamp(16px,2vw,28px); row-gap:8px; }
@media(max-width:600px) {
 .disciplines .subject-actions { column-gap:10px; row-gap:6px; }
 .home .intro { min-height:480px; }
}
/* Reserve progressive controls before scripts enhance them. */
.js .theme-toggle[hidden] { display:inline-flex; visibility:hidden; }
.theme-toggle [data-theme-label] { width:7ch; text-align:left; }
.logo { min-width:44px; justify-content:center; }
:root:not(.js) [data-colour-note][hidden] { display:block; }
@media(max-width:600px) {
 .theme-toggle { width:44px; min-width:44px; padding-inline:0; }
}
@media(max-width:360px) {
 .nav-controls .basket-link { min-width:44px; justify-content:center; }
 .nav-controls .basket-link svg { display:block; }
 .nav-controls .basket-link span { display:none; }
}
/* Keep secondary form fields compact and footer links easy to tap. */
textarea[name="links"] { min-height:88px; }
.footer-links a { display:inline-flex; align-items:center; min-height:44px; }
.menu-panel { max-height:calc(100svh - 112px); overflow-y:auto; overscroll-behavior:contain; }
@media(max-width:600px) { .menu-panel { max-height:calc(100svh - 96px); } }

@media(max-width:600px) {
 .nav-controls .basket-link { min-width:44px; justify-content:center; }
 .nav-controls .basket-link svg { display:block; }
 .nav-controls .basket-link span { display:none; }
}
/* Keep the wordmark's hover area and rings inside the available landing space. */
.home .intro { container-type:size; }
.brand-scene { --scene-size:min(78vw,78svh,100cqh); min-width:var(--scene-size); height:var(--scene-size); }
.brand-scene .orbit-ring { width:var(--scene-size); }

/* The dashboard uses the same typography and quiet links as the portfolio. */
.admin-shell { max-width:1040px; }
.admin-shell .content { padding:40px 0 64px; }
.admin-shell .content h1 { font-size:clamp(2rem,4vw,3.5rem); letter-spacing:-.045em; margin-bottom:32px; }
.admin-shell .content h2 { font-size:20px; }
.admin-shell .form { max-width:640px; }
.admin-shell .card { background:transparent; border:0; padding:24px 0; border-top:1px solid var(--subtle-line); }
.admin-shell .button,.admin-shell button { display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:44px; border:0; border-bottom:1px solid var(--line); border-radius:0; padding:10px 0; background:transparent; color:var(--text); font:13px/1.5 monospace; }
.admin-shell .button:hover,.admin-shell button:hover { border-color:var(--text); color:var(--strong); }
.admin-shell button.primary { padding:12px 18px; border:1px solid var(--line); }
.admin-shell button svg { width:16px; height:16px; }
.admin-login { max-width:420px; margin:8svh auto; }
.admin-shell input,.admin-shell textarea,.admin-shell .ks-select { border-radius:0; }
@media(max-width:600px) { .admin-login { margin:32px 0; } .admin-shell .content { padding-top:24px; } }

.admin-shell .badge { border:0; background:transparent; padding:0; color:var(--muted); }
.admin-shell .form > .muted { font-size:12px; line-height:1.6; }

/* Admin uses the same monochrome tokens and type with a persistent workspace layout. */
.admin-workspace { width:100%; display:grid; grid-template-columns:224px minmax(0,1fr); max-width:none; min-height:100svh; padding:0; }
.admin-sidebar { position:sticky; top:0; height:100svh; overflow-y:auto; padding:26px 16px 20px; border-right:1px solid var(--subtle-line); display:flex; flex-direction:column; }
.admin-brand { display:flex; align-items:center; gap:10px; padding:0 10px 24px; font:20px/1.2 Arial, sans-serif; letter-spacing:-.04em; }
.admin-brand svg { width:26px; height:26px; flex-shrink:0; }
.admin-brand em { font-family:Georgia,serif; color:var(--muted); }
.admin-navigation { display:flex; flex-direction:column; gap:4px; font-size:13px; }
.admin-navigation a { min-height:40px; display:flex; align-items:center; padding:8px 12px; color:var(--muted); border-radius:4px; }
.admin-navigation a:hover { background:var(--hover); color:var(--text); }
.admin-navigation a[aria-current="page"],.admin-navigation a[aria-current="true"] { background:var(--hover); color:var(--strong); box-shadow:inset 2px 0 var(--accent); }
.admin-site-link { margin-top:auto; padding:12px; font-size:12px; color:var(--muted); border-top:1px solid var(--subtle-line); }
.admin-body { min-width:0; }
.admin-topbar { min-height:76px; display:flex; align-items:center; justify-content:space-between; gap:16px; border-bottom:1px solid var(--subtle-line); }
.admin-workspace .admin-topbar { padding:12px 32px; }
.admin-topbar-label { display:flex; align-items:center; gap:10px; font:12px/1.5 Arial,sans-serif; color:var(--muted); }
.admin-topbar-label [aria-current="page"] { color:var(--text); }
.admin-job-summary,.admin-job-meta { display:block; margin-top:4px; font-size:12px; color:var(--muted); }
.admin-job-summary { overflow-wrap:anywhere; }
.admin-topbar-controls { display:flex; align-items:center; gap:24px; margin-left:auto; }
.admin-topbar-controls form { margin:0; }
.admin-shell .admin-topbar button { border:0; padding:8px; }
.admin-workspace .content { max-width:1400px; margin:0 auto; padding:32px; display:block; }
.admin-workspace .content h1 { font-size:32px; line-height:1.2; margin:0 0 28px; }
.admin-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin-bottom:24px; }
.admin-metrics a { display:flex; flex-direction:column; padding:20px; border:1px solid var(--subtle-line); border-radius:6px; background:var(--surface); }
.admin-metrics a:hover { border-color:var(--border-hover); }
.admin-metrics span { font-size:12px; }
.admin-metrics strong { font:400 36px/1.4 Arial,sans-serif; font-variant-numeric:tabular-nums; margin:8px 0 4px; }
.admin-metrics small { color:var(--muted); font-size:11px; }
.admin-panels { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.admin-panel { border:1px solid var(--subtle-line); border-radius:6px; overflow:hidden; background:var(--surface); }
.admin-panel-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px 20px; border-bottom:1px solid var(--subtle-line); }
.admin-shell .admin-panel-heading h2 { font-size:18px; font-weight:400; margin:0; }
.admin-panel-heading a { font-size:11px; color:var(--muted); text-decoration:underline; text-underline-offset:4px; }
.admin-record { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px 20px; border-bottom:1px solid var(--subtle-line); font-size:12px; }
.admin-record:last-child { border:0; }
.admin-record:hover { background:var(--hover); }
.admin-record > span:first-child { min-width:0; }
.admin-record strong { display:block; font-weight:400; overflow-wrap:anywhere; }
.admin-record small { display:block; color:var(--muted); font-size:11px; }
.admin-empty { padding:28px 20px; color:var(--muted); font-size:12px; margin:0; }
.admin-shortcuts { margin-top:24px; }
.admin-quick-actions { display:flex; flex-wrap:wrap; gap:12px; padding:20px; }
.admin-shell .admin-quick-actions .button { padding:10px 16px; border:1px solid var(--line); border-radius:4px; }
.admin-job-notice { font-size:12px; }
.admin-mobile-nav { display:none; }
.admin-navigation a:focus-visible,.admin-metrics a:focus-visible,.admin-record:focus-visible { outline:2px solid var(--text); outline-offset:2px; }
@media(max-width:1100px) { .admin-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } .admin-panels { grid-template-columns:1fr; } }
@media(max-width:800px) {
 .admin-workspace { display:block; }
 .admin-sidebar { display:none; }
 .admin-workspace .admin-topbar { position:sticky; top:0; z-index:10; padding:10px 20px; background:var(--background); min-height:64px; }
 .admin-topbar-label { display:none; }
 .admin-topbar-controls { gap:12px; }
 .admin-workspace .content { padding:24px 20px; }
 .admin-mobile-nav { display:block; }
 .admin-mobile-nav summary { display:flex; align-items:center; gap:12px; cursor:pointer; min-height:44px; font-size:12px; list-style:none; }
 .admin-mobile-nav summary::-webkit-details-marker { display:none; }
 .admin-mobile-panel { position:absolute; top:100%; left:0; width:min(320px,100%); max-height:calc(100svh - 64px); overflow:auto; border:1px solid var(--line); background:var(--background); padding:16px; box-shadow:0 16px 32px #0003; }
 .admin-navigation a { min-height:44px; }
}
@media(max-width:420px) { .admin-metrics { gap:10px; } .admin-metrics a { padding:16px; } .admin-metrics strong { font-size:30px; } .admin-panel-heading { padding:16px; } .admin-quick-actions { flex-direction:column; } }

.admin-section-tabs { display:flex; flex-wrap:wrap; gap:4px 24px; border-bottom:1px solid var(--subtle-line); margin:0 0 28px; padding:0; }
.admin-section-tabs a { display:flex; align-items:center; min-height:44px; padding:10px 0; color:var(--muted); font-size:12px; border-bottom:2px solid transparent; margin-bottom:-1px; }
.admin-section-tabs a:hover { color:var(--text); }
.admin-section-tabs a[aria-current="page"] { border-color:var(--accent); color:var(--strong); }
.admin-section-tabs a:focus-visible { outline:2px solid var(--text); outline-offset:3px; }
@media(max-width:420px) { .admin-section-tabs { gap:0 20px; } }

/* Long customer identifiers must not widen the admin record lists. */
.admin-workspace .row .grow { overflow-wrap:anywhere; }
@media(max-width:800px) {
 .admin-topbar-controls [data-theme-label] { display:none; }
 .admin-topbar-controls .theme-toggle { min-width:44px; }
}
.tiptap:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }

/* Keep field boundaries distinguishable in both palettes. */
:root { --control-border:#666666; }
@media(prefers-color-scheme:light) { :root:not([data-theme="dark"]) { --control-border:#858585; } }
:root[data-theme="light"] { --control-border:#858585; }
:root[data-theme="dark"] { --control-border:#666666; }
input,textarea,select,.ks-select { border-color:var(--control-border); }
.skip-link { position:fixed; z-index:1000; top:12px; left:12px; padding:12px 18px; background:var(--primary); color:var(--on-primary); transform:translateY(calc(-100% - 24px)); }
.skip-link:focus { transform:none; color:var(--on-primary); }
main:focus { outline:none; }
.article p a,.article li a,.blog-body a,.form p a { text-decoration:underline; text-underline-offset:3px; }

/* Workspaces keep related summaries together, with native controls in detail views. */
.work-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}.work-heading h1,.work-heading h2{margin-bottom:8px}.work-jumps{display:flex;gap:24px;flex-wrap:wrap;margin:24px 0}.work-jumps a{text-decoration:underline;text-underline-offset:6px}.work-section{padding:28px 0;border-top:1px solid var(--subtle-line)}.work-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:20px}.work-lane{min-width:0}.work-lane h3{font-size:15px;font-weight:400}.work-card{display:block;padding:16px;background:var(--surface);border:1px solid var(--subtle-line);border-radius:6px;margin-bottom:12px;overflow-wrap:anywhere}.work-card strong,.work-card small,.work-card>span{display:block}.work-card small{color:var(--muted);font-size:12px}.work-card>span{font-size:12px;margin:8px 0}.work-empty{color:var(--muted);font-size:13px}.work-support{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px;margin-top:24px}.work-support>section,.work-support>div{min-width:0}.work-table-wrap{overflow-x:auto}.work-table{width:100%;border-collapse:collapse;font-size:13px}.work-table caption{text-align:left;color:var(--muted);margin-bottom:12px}.work-table th,.work-table td{text-align:left;padding:12px 10px;border-bottom:1px solid var(--subtle-line);font-weight:400}.work-task{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:16px 0;border-bottom:1px solid var(--subtle-line)}.work-task small{display:block;color:var(--muted)}.work-task select{min-width:140px}.work-share-link{overflow-wrap:anywhere}.work-section details{margin:20px 0}.work-section summary{min-height:44px;padding:10px 0;cursor:pointer}.work-card:focus-visible,.work-jumps a:focus-visible{outline:2px solid var(--text);outline-offset:3px}.work-support pre{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:700px){.work-board,.work-support{grid-template-columns:1fr}.work-heading{align-items:flex-start}.work-table{font-size:12px}}

.work-table-wrap:focus-visible{outline:2px solid var(--text);outline-offset:3px}

.work-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:24px 0}.work-overview .work-card{margin:0}.admin-shell .content .work-heading h1{margin:0 0 12px}.work-heading>div>p{margin:0}.work-heading{align-items:flex-start}.work-new>summary{padding:12px 0;min-height:44px;cursor:pointer}@media(max-width:600px){.work-overview{grid-template-columns:1fr}}

/* Domain work lists and focused project views. */
:root{--work-ready:#285b40;--work-ready-bg:#edf5ee;--work-attention:#7b5419;--work-attention-bg:#faf1df;--work-active:#355b80;--work-active-bg:#edf3fa}
:root[data-theme="dark"]{--work-ready:#b9dcc5;--work-ready-bg:#1c3025;--work-attention:#ead0a1;--work-attention-bg:#342918;--work-active:#c0d7ed;--work-active-bg:#1e2c3b}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]){--work-ready:#b9dcc5;--work-ready-bg:#1c3025;--work-attention:#ead0a1;--work-attention-bg:#342918;--work-active:#c0d7ed;--work-active-bg:#1e2c3b}}
.work-summary{display:flex;flex-wrap:wrap;gap:0;background:var(--surface);border:1px solid var(--subtle-line);border-radius:6px;padding:16px 20px;margin:24px 0}.work-summary>span{padding:0 24px;border-right:1px solid var(--subtle-line);color:var(--muted);font-size:13px}.work-summary>span:first-child{padding-left:0}.work-summary>span:last-child{border:0}.work-summary strong{font:500 20px/1.3 Arial,sans-serif;margin-right:6px;color:var(--strong)}.work-project-list{border:1px solid var(--subtle-line);border-radius:6px;overflow:hidden}.work-project-row{display:grid;grid-template-columns:minmax(190px,1.5fr) minmax(110px,.8fr) minmax(220px,1.5fr) 90px;align-items:center;gap:24px;padding:22px 20px;border-bottom:1px solid var(--subtle-line);font-size:13px}.work-project-row:last-child{border:0}.work-project-row strong{display:block;font:500 16px/1.5 Arial,sans-serif;color:var(--strong);overflow-wrap:anywhere}.work-project-row small{display:block;font-size:11px;color:var(--muted);margin-top:4px;overflow-wrap:anywhere}.work-project-row:not(.work-column-head):nth-child(odd){background:var(--surface)}.work-column-head{padding:12px 20px;background:var(--surface);font-size:11px;color:var(--muted)}.work-status{justify-self:start;display:inline-flex;padding:4px 9px;border-radius:4px;font-size:11px;white-space:nowrap}.work-status.status-ready{color:var(--work-ready);background:var(--work-ready-bg)}.work-status.status-attention{color:var(--work-attention);background:var(--work-attention-bg)}.work-status.status-active{color:var(--work-active);background:var(--work-active-bg)}.work-project-row .work-due{font-size:12px;color:var(--strong)}.work-project-row:hover{background:var(--hover)}.work-project-row:focus-visible{outline:2px solid var(--text);outline-offset:-3px}.work-closed{margin-top:28px;color:var(--muted);font-size:12px}.work-closed summary{min-height:44px;padding:12px 0;cursor:pointer}.work-crumb{font-size:12px;color:var(--muted)}.work-facts{display:grid;grid-template-columns:1fr 1fr;gap:20px 40px;max-width:600px;margin:28px 0}.work-facts dt{font-size:11px;color:var(--muted)}.work-facts dd{margin:4px 0;font-size:14px}.admin-shell .content>.work-heading{margin:28px 0}.admin-shell .content>.work-heading h1{margin:0}.work-stock-actions{margin:24px 0}.work-table th,.work-table td{padding:16px}.work-table thead,.work-table tbody tr:nth-child(even){background:var(--surface)}.work-table-wrap{border:1px solid var(--subtle-line);border-radius:6px}.work-table caption{padding:12px 16px;margin:0}.work-table tbody tr:last-child td,.work-table tbody tr:last-child th{border-bottom:0}
@media(max-width:800px){.work-project-row{grid-template-columns:1fr auto;gap:10px 16px;padding:20px 16px}.work-column-head{display:none}.work-next{grid-column:1/-1;padding-top:4px}.work-project-row .work-due{grid-row:1;grid-column:2;font-size:12px}.work-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:16px 12px;gap:12px}.work-summary>span{padding:0 8px;font-size:11px}.work-summary>span:last-child{padding-right:0}.work-summary strong{display:block;font-size:22px;margin:0 0 4px}.work-project-row strong{font-size:16px}.work-facts{gap:20px}.work-table{min-width:580px}}

/* Mobile home keeps navigation at the section level. */
@media(max-width:700px){.home .subject-actions{display:none}}

/* Headers share one measured scroll offset, including wrapped section links. */
html { scroll-padding-top:calc(var(--sticky-header-height,155px) + 16px); }
.public-header { position:sticky; top:0; z-index:30; background:var(--background); }
.public-header .nav,.home-header { min-height:64px; padding:10px 0; background:var(--background); }
.public-header .public-wayfinding { background:var(--background); border-bottom:1px solid var(--subtle-line); }
.public-header .public-sections,.public-header .public-collections { padding:0; }
.public-header + .content { padding-top:32px; }
.public-header + .software-overview { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:64px; align-content:start; padding-top:16px; padding-bottom:24px; }
.software-overview .section-head { grid-column:1/-1; height:clamp(120px,20svh,180px); margin-bottom:12px; }
.software-overview .section-orbits { width:min(400px,100%); }
.software-overview .section-description { grid-column:1/-1; text-align:center; max-width:none; margin:0 0 44px; }
.software-overview .section-preview { min-width:0; padding-top:20px; border-top:1px solid var(--subtle-line); }
.software-overview .section-preview + .section-preview { margin-top:0; }
.software-overview .collection-heading { margin-bottom:12px; }
.software-overview .empty-state { padding:12px 0; }
@media(max-width:700px) {
 .public-header + .software-overview { grid-template-columns:1fr; gap:0; }
 .software-overview .section-head { height:104px; }
 .software-overview .section-description { text-align:left; margin-bottom:16px; }
 .software-overview .section-preview + .section-preview { margin-top:20px; }
}
.home-header { position:sticky; top:0; z-index:30; background:var(--background); }
.admin-workspace .admin-topbar,.admin-shell > .admin-topbar { position:sticky; top:0; z-index:30; background:var(--background); }

.dashboard-title { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:20px; }
.admin-workspace .dashboard-title h1 { font-size:28px; margin:0; }
.dashboard-publish { display:flex; gap:24px; flex-wrap:wrap; font-size:12px; }
.dashboard-publish a { text-decoration:underline; text-underline-offset:4px; min-height:44px; display:inline-flex; align-items:center; }
.dashboard-metrics { gap:0; padding:16px 0; border:1px solid var(--subtle-line); border-radius:6px; background:var(--surface); margin-bottom:0; grid-template-columns:repeat(4,minmax(0,1fr)); }
.dashboard-metrics a { flex-direction:row; align-items:center; justify-content:space-between; gap:8px; padding:0 20px; border:0; border-right:1px solid var(--subtle-line); border-radius:0; }
.dashboard-metrics a:last-child { border:0; }
.dashboard-metrics strong { font-size:28px; line-height:1.2; margin:0; }
.dashboard-links { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:8px 0; font-size:12px; }
.dashboard-active-work { grid-column:1 / -1; }
.dashboard-links a { display:inline-flex; align-items:center; gap:8px; min-height:44px; text-decoration:underline; text-underline-offset:4px; }
.dashboard-panels { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.dashboard-panels .admin-panel-heading { padding:12px 16px; }
.admin-shell .dashboard-panels h2 { font-size:16px; }
.dashboard-panels .admin-record { padding:12px 16px; background:var(--background); }
.dashboard-panels .admin-record small { margin-top:3px; }
.dashboard-panels .admin-empty { padding:22px 16px; background:var(--background); }
.activity-dot { display:inline-block; flex-shrink:0; width:7px; height:7px; border-radius:50%; background:var(--muted); }
.activity-dot.active { background:#577fa3; }
.activity-dot.attention { background:#b88628; }
.activity-icon { display:grid; place-items:center; width:30px; height:30px; flex-shrink:0; border:1px solid var(--subtle-line); border-radius:50%; font-size:16px; }
.activity-icon.active { background:#edf3fb; color:#315b82; }
.activity-icon.ready { background:#eaf4ed; color:#2f6541; }
.activity-icon.attention { background:#fbf0db; color:#805d1f; }
.attention-job { border:1px solid #b78e48; border-radius:6px; padding:16px 20px; margin-bottom:12px; }
.attention-job-main { display:flex; align-items:center; gap:16px; }
.admin-shell .attention-job h2 { font:400 16px Arial,sans-serif; margin:0 0 5px; }
.attention-job p { font-size:12px; margin:0; overflow-wrap:anywhere; }
.attention-job small { font-size:11px; color:var(--muted); }
.attention-job form { margin-left:auto; }
.attention-job button { font-size:12px; padding:8px 18px; min-height:44px; border:1px solid var(--line); border-radius:4px; }
.error-disclosure { margin:10px 0 0 46px; font-size:11px; color:var(--muted); }
.error-disclosure summary { cursor:pointer; }
.error-disclosure p { margin-top:8px; white-space:pre-wrap; }
.background-jobs { margin:12px 0 28px; border:1px solid var(--subtle-line); border-radius:6px; padding:0 20px; }
.background-jobs > summary { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:52px; cursor:pointer; font-size:12px; }
.background-jobs > summary > span:first-child::before { content:'▸'; font-size:11px; margin-right:10px; color:var(--muted); }
.background-jobs[open] > summary > span:first-child::before { content:'▾'; }
.job-counts { display:flex; gap:24px; font-size:11px; color:var(--muted); }
.job-counts > span { display:flex; align-items:center; gap:8px; }
.background-job { display:grid; grid-template-columns:8px minmax(0,1fr) auto; align-items:center; gap:16px; border-top:1px solid var(--subtle-line); padding:12px 0; font-size:11px; color:var(--muted); }
.background-job strong { display:block; font-size:12px; color:var(--text); font-weight:400; }
.background-job small { display:block; font-size:11px; overflow-wrap:anywhere; }
.admin-shell .activity-heading { font:400 18px Arial,sans-serif; margin:28px 0 16px; }
.admin-shell .activity-day h3 { font:400 11px monospace; color:var(--muted); margin:22px 0 12px; }
.activity-timeline { border:1px solid var(--subtle-line); border-radius:6px; padding:0 16px; }
.activity-event { display:grid; grid-template-columns:30px minmax(0,1fr) auto auto; align-items:center; gap:16px; padding:15px 0; border-bottom:1px solid var(--subtle-line); }
.activity-event:last-child { border:0; }
.admin-shell .activity-event h4 { font:400 16px Arial,sans-serif; margin:0 0 5px; }
.activity-event a,.activity-event small,.activity-event time,.activity-event summary { font-size:11px; color:var(--muted); }
.activity-event a { text-decoration:underline; text-underline-offset:4px; }
.activity-event details { width:80px; }
.activity-event details[open] { grid-column:2/-1; grid-row:2; width:auto; }
.activity-event summary { cursor:pointer; }
.activity-event dl { font-size:11px; margin:12px 0 0; overflow-wrap:anywhere; }
.activity-event dd { margin:0 0 8px; }
@media(prefers-color-scheme:dark) { :root:not([data-theme="light"]) .activity-icon.active { background:#192a3b; color:#b3cee9; } :root:not([data-theme="light"]) .activity-icon.ready { background:#1c3023; color:#b5d5bc; } :root:not([data-theme="light"]) .activity-icon.attention { background:#362a14; color:#e2c891; } }
:root[data-theme="dark"] .activity-icon.active { background:#192a3b; color:#b3cee9; }
:root[data-theme="dark"] .activity-icon.ready { background:#1c3023; color:#b5d5bc; }
:root[data-theme="dark"] .activity-icon.attention { background:#362a14; color:#e2c891; }
@media(max-width:800px) {
 .dashboard-title { align-items:flex-start; flex-direction:column; gap:8px; }
 .dashboard-publish { gap:16px; }
 .dashboard-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); row-gap:16px; }
 .dashboard-metrics a { padding:0 16px; }
 .dashboard-metrics a:nth-child(2) { border:0; }

 .dashboard-panels { grid-template-columns:1fr; }
 .public-header + .content { padding-top:24px; }
}
@media(max-width:600px) {
 .attention-job { padding:16px; }
 .attention-job-main { gap:12px; align-items:flex-start; flex-wrap:wrap; }
 .attention-job-main > div { flex:1; min-width:160px; }
 .attention-job form { margin-left:42px; }
 .error-disclosure { margin-left:42px; }
 .background-jobs { padding:0 16px; margin-bottom:24px; }
 .job-counts { gap:12px; }
 .background-job { grid-template-columns:8px minmax(0,1fr); }
 .background-job > span:last-child { grid-column:2; }
 .activity-event { gap:10px; grid-template-columns:30px minmax(0,1fr) auto; }
 .activity-event details { grid-column:2/4; width:auto; }
 .activity-event details[open] { grid-row:auto; }
}

/* Project images use the shared editor controls and neutral palette. */
.project-images { border:0; border-top:1px solid var(--subtle-line); border-bottom:1px solid var(--subtle-line); padding:20px 0 24px; margin:0; }
.project-images legend { padding:0 10px 0 0; font:400 20px Arial,sans-serif; }
.project-image-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.project-image-option { min-width:0; display:grid; gap:12px; align-content:start; }
.project-image-option img,.project-image-pending { width:100%; height:154px; object-fit:cover; background:var(--surface); }
.project-image-pending { display:flex; flex-direction:column; justify-content:center; padding:12px; overflow-wrap:anywhere; font-size:12px; }
.project-image-option .check { margin:0; gap:8px; }
.project-image-option input[type=radio],.project-image-option input[type=checkbox] { width:18px; min-height:18px; margin:0; accent-color:var(--text); }
.project-image-option label { font-size:12px; }
.project-image-option > button { justify-self:start; }
.project-image-option input:not([type=radio]):not([type=checkbox]) { width:100%; padding:10px; font-size:12px; }
@media(max-width:600px) { .project-image-options { grid-template-columns:1fr; } .project-image-option img,.project-image-pending { height:210px; } }
.project-image-option .project-image-remove[hidden] { display:none; }

/* Settings keep short fields together and longer policies in their own tab. */
.settings-width { max-width:760px; }
.settings-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px 32px; }
.admin-shell .settings-form { max-width:none; gap:24px; }
.settings-form p { margin:0; max-width:620px; }
.settings-form textarea { min-height:200px; }
.settings-tabs [role="tab"][aria-selected="true"] { border-bottom-color:var(--text); color:var(--text); }
.settings-pane[hidden],.settings-enhanced .settings-fallback-heading,#general .settings-fallback-heading { display:none; }
.settings-pane > p:first-of-type { margin-top:0; }
.settings-pane dl { grid-template-columns:220px 1fr; gap:16px 24px; margin:24px 0; }
.settings-tax-actions { display:flex; gap:28px; flex-wrap:wrap; }
.settings-pane + .settings-pane,[data-settings-form] + .settings-pane { margin-top:40px; }
.settings-enhanced .settings-pane { margin-top:0; }
.admin-shell button.settings-primary { background:var(--primary); color:var(--on-primary); border:1px solid var(--primary); border-radius:4px; padding:12px 22px; min-height:46px; min-width:150px; font-weight:700; }
.admin-shell button.settings-primary:hover { background:var(--text); color:var(--on-primary); border-color:var(--text); }
.admin-shell button.settings-primary:focus-visible { outline:2px solid var(--text); outline-offset:4px; }
.admin-signout { margin-top:auto; padding:12px; border-top:1px solid var(--subtle-line); }
.admin-shell .admin-signout button { padding:0; min-height:44px; border:0; color:var(--muted); font-size:12px; justify-content:flex-start; }
.admin-shell .admin-topbar-controls > a.button { border:0; padding:8px; font-size:13px; }
.admin-mobile-panel .admin-signout { margin-top:16px; }
@media(max-width:800px) { .admin-shell .admin-topbar-controls > a.button { font-size:12px; } }
@media(max-width:600px) { .settings-grid { grid-template-columns:1fr; gap:20px; } .settings-pane dl { grid-template-columns:1fr; gap:8px; } .settings-form textarea { min-height:180px; } .settings-tabs { gap:24px; } .settings-tax-actions { gap:16px; } }

/* Share header alignment and preserve usable controls on narrow screens. */
.home-header.nav { padding:10px 0; min-height:64px; }
.nav-controls,.nav-controls > * { flex-shrink:0; }
@media(max-width:600px) {
 .page.home { padding-inline:20px; }
 .navigation summary { min-width:44px; }
 .footer-links a { min-width:44px; }
}
@media(max-width:360px) {
 .language-menu summary { width:44px; }
}

.activity-group { border-bottom:1px solid var(--subtle-line); }
.activity-group:last-child { border:0; }
.activity-group > summary { list-style:none; display:grid; grid-template-columns:30px minmax(0,1fr) auto auto; gap:16px; align-items:center; padding:15px 0; cursor:pointer; }
.activity-group > summary::-webkit-details-marker { display:none; }
.activity-group strong { display:block; font:400 16px Arial,sans-serif; margin:0 0 5px; }
.activity-group small,.activity-group time,.activity-step-toggle { font-size:11px; color:var(--muted); }
.activity-step-toggle { display:flex; align-items:center; gap:8px; min-width:80px; }
.activity-step-toggle > span { display:inline-block; transform:rotate(-90deg); }
.activity-group[open] .activity-step-toggle > span { transform:none; }
.activity-steps { list-style:none; padding:0 0 16px 14px; margin:0; }
.activity-steps li { display:grid; grid-template-columns:15px minmax(0,1fr) auto; align-items:center; gap:16px; position:relative; padding:10px 0; font-size:12px; }
.activity-steps li::before { content:''; position:absolute; left:0; top:0; bottom:0; width:1px; background:var(--subtle-line); }
.activity-steps li:last-child::before { bottom:50%; }
.activity-step-dot { width:7px; height:7px; border:1px solid var(--muted); background:var(--background); border-radius:50%; position:relative; left:-3px; z-index:1; }
.activity-steps li:last-child .activity-step-dot { background:var(--text); }
.activity-group > summary:focus-visible { outline:2px solid var(--text); outline-offset:3px; }
@media(max-width:600px) { .activity-group > summary { gap:10px; grid-template-columns:30px minmax(0,1fr) auto; } .activity-step-toggle { grid-column:2/4; min-width:0; } .activity-steps { margin-left:14px; } .activity-steps li { font-size:11px; gap:10px; } }

/* Collection search follows the same compact controls across admin lists. */

.add-content{font-size:12px;border:1px solid var(--line);padding:10px 16px;border-radius:4px;min-height:44px}.collection-search{display:flex;align-items:center;gap:12px;margin:8px 0 16px}.search-field{display:flex;align-items:center;gap:12px;flex:1;min-width:0;border:1px solid var(--line);border-radius:5px;padding:0 14px;background:var(--background);min-height:48px}.search-field:focus-within{outline:1px solid var(--text);outline-offset:1px}.search-field svg{width:18px;height:18px;flex-shrink:0;color:var(--muted)}.search-field input{border:0!important;background:transparent!important;padding:12px 0!important;margin:0!important;min-width:0!important;width:100%;font:13px monospace;outline:0!important;box-shadow:none!important}.search-field kbd{font:11px monospace;white-space:nowrap;color:var(--muted)}.filter-field{display:flex;align-items:center;gap:10px;border:1px solid var(--subtle-line);border-radius:5px;padding:0 12px;min-height:48px;margin:0;font-size:11px}.filter-field>span{color:var(--muted)}.filter-field select{border:0;background:var(--background);color:var(--text);font:12px monospace;padding:10px 14px 10px 0;margin:0;min-width:64px}.search-count{font-size:11px;color:var(--muted);margin:16px 0 12px}.collection-records{border:1px solid var(--subtle-line);border-radius:6px;overflow:hidden}.collection-head,.collection-result{display:grid;grid-template-columns:minmax(200px,1.8fr) 1fr 1fr 90px;align-items:center;gap:24px;padding:14px 20px;font-size:12px}.collection-head{background:var(--surface);font-size:11px;color:var(--muted)}.collection-result{border-top:1px solid var(--subtle-line);min-height:80px}.collection-result strong{display:block;font:400 16px Arial,sans-serif}.collection-result small{display:block;font-size:11px;color:var(--muted);margin-top:5px}.collection-result .collection-updated{font-size:11px;color:var(--muted)}.collection-result mark{background:transparent;color:inherit;text-decoration:underline;text-decoration-color:#9dbaa7;text-underline-offset:4px;text-decoration-thickness:2px}.collection-result:hover,.collection-result:focus-visible{background:var(--surface)}.collection-result:focus-visible{outline:2px solid var(--text);outline-offset:-2px}.collection-empty{padding:48px 20px;text-align:center}.admin-shell .collection-empty h2{font:400 18px Arial,sans-serif;margin:0 0 20px}.collection-empty button{font-size:12px;padding:10px 16px;border:1px solid var(--line);border-radius:4px}@media(max-width:700px){.collection-search{flex-wrap:wrap}.search-field{flex-basis:100%}.search-field kbd{display:none}.filter-field{flex:1;justify-content:space-between;min-width:0}.filter-field select{min-width:0;max-width:100%}.collection-head{display:none}.collection-result{grid-template-columns:minmax(0,1fr) auto;gap:8px 16px;padding:16px}.collection-result>span:first-child{grid-column:1;grid-row:1}.collection-result>span:nth-child(3){grid-column:2;grid-row:1}.collection-result>span:nth-child(2){font-size:11px;color:var(--muted)}.collection-result .collection-updated{grid-column:2;grid-row:2}.collection-heading-row{flex-direction:row;align-items:center}.collection-result strong{font-size:16px}}

.collection-heading-row{display:flex;align-items:center;gap:20px;justify-content:space-between;margin-bottom:24px}.admin-workspace .collection-heading-row h1{margin:0}.collection-heading-row .button,.collection-heading-row button{font-size:12px;min-height:44px}.collection-result .grow{min-width:0}.collection-result strong{overflow-wrap:anywhere}.collection-pagination{display:flex;align-items:center;gap:16px;margin-top:20px;font-size:12px}.collection-pagination .button{min-height:44px;padding:8px 16px}.collection-result .collection-section{color:var(--muted)}
.filter-field .ks-select { width:auto; flex:1; height:46px; border:0; background:transparent; transition:none; font:12px/1.6 monospace; }
.filter-field .ks-select:hover { background:transparent; }
.filter-field .ks-select-value { line-height:22px; padding:12px 32px 12px 2px; }
.filter-field .ks-select::after { right:8px; top:18px; }

/* Approved public controls and subject alignment. */
.public-nav-controls { gap:12px; }
.public-nav-controls .account-link { display:inline-flex; justify-content:center; align-items:center; width:44px; min-width:44px; height:44px; padding:0; }
.public-nav-controls .account-link svg { width:19px; height:19px; stroke-width:1.5; }
.public-nav-controls .basket-link { display:inline-flex; justify-content:center; align-items:center; width:44px; min-width:44px; height:44px; padding:0; }
.public-nav-controls .basket-link svg { display:block; width:18px; height:18px; }
.public-nav-controls .basket-link span { display:none; }
.public-nav-controls > .language-menu > summary { width:44px; min-width:44px; min-height:44px; gap:8px; font:12px/1.5 monospace; }
.public-navigation > summary { width:44px; min-width:44px; height:44px; padding:0; justify-content:center; gap:0; }
.public-navigation .menu-theme { grid-column:1/-1; border-top:1px solid var(--subtle-line); padding-top:8px; display:flex; align-items:center; justify-content:space-between; font:13px/1.7 monospace; }
.public-navigation .menu-theme[hidden] { display:none; }
.public-navigation .menu-theme .theme-toggle { width:auto; min-width:44px; gap:8px; }
.public-navigation .menu-theme [data-theme-label] { display:inline; }
.home .disciplines li:nth-child(3) { grid-column:2; justify-self:end; }
@media(max-width:600px) {
 .public-nav-controls { gap:8px; }
 .js .public-nav-controls > .theme-toggle { display:none; }
 .public-nav-controls > .language-menu .language-form { left:auto; right:0; }
 .home .disciplines li:nth-child(3) { grid-column:1/-1; justify-self:center; }
 .home footer,.home .footer-links { justify-content:center; }
 .home footer { text-align:center; }
}
@media(max-width:340px) { .public-nav-controls { gap:4px; } }

/* Only the orbital heads and their short highlights move. */
.home .orbit-motion { position:absolute; left:50%; top:50%; width:var(--scene-size); height:var(--scene-size); transform:translate(-50%,-50%); overflow:visible; pointer-events:none; color:var(--muted); }
.home .orbit-motion[hidden] { display:none; }
.home .orbit-active .orbit-ring::after { display:none; }
.home .orbit-motion .orbit-accent { color:var(--accent); }
.home .orbit-motion circle.orbit-accent { opacity:.75; }

/* Product stock alerts. */
.stock-sizes { margin:24px 0 32px; max-width:620px; }
.stock-size { display:flex; justify-content:space-between; gap:24px; padding:14px 0; border-bottom:1px solid var(--subtle-line); }
.stock-alert { max-width:620px; margin:0 0 28px; }
.stock-alert label { margin-bottom:8px; }
.stock-alert-fields { display:flex; gap:12px; align-items:stretch; }
.stock-alert-fields input { flex:1; min-width:0; }
.stock-alert-fields button { white-space:nowrap; }
.stock-alert p { font-size:12px; margin-top:10px; }
.stock-link { font-size:13px; }
.stock-response { max-width:620px; margin:24px 0 28px; }
.stock-response h2 { font-size:22px; }
@media(max-width:600px) {
 .stock-alert-fields { flex-direction:column; }
 .stock-alert-fields button { width:100%; }
 .stock-sizes { margin-bottom:28px; }
}

/* Recent projects share the homepage's quiet bottom edge. */
.recent-work { width:min(590px,100%); margin-inline:auto; flex-shrink:0; min-height:112px; padding:0 0 8px; }
.work-carousel { display:grid; grid-template-columns:44px minmax(0,1fr) 44px; gap:24px; align-items:center; touch-action:pan-y; }
.work-slides { grid-column:2; min-width:0; }
.work-feature { display:flex; align-items:center; justify-content:center; gap:20px; min-height:100px; width:100%; padding:8px 0; }
.work-feature[hidden] { display:none; }
.work-feature img { display:block; width:112px; height:80px; object-fit:cover; border:1px solid var(--subtle-line); box-shadow:0 5px 10px -4px #00000026; }
.work-feature[data-work-section="crochet"] img { object-position:50% 58%; }
.work-copy { display:grid; min-width:0; gap:5px; }
.work-label { font:10px/1.6 monospace; color:var(--muted); }
.work-name { font:13px/1.5 monospace; }
.work-count { display:block; color:var(--muted); font:10px/1.6 monospace; margin-top:5px; letter-spacing:.06em; }
.work-feature:hover .work-name,.work-feature:focus-visible .work-name { text-decoration:underline; text-underline-offset:5px; }
.carousel-control { width:44px; min-width:44px; height:44px; min-height:44px; padding:0; border:1px solid var(--subtle-line); border-radius:0; }
.carousel-control[hidden] { display:none; }
.carousel-control svg { width:16px; height:16px; stroke-width:1.2; }
.carousel-control:hover { border-color:var(--border-hover); }
.carousel-control[data-work-previous] { grid-column:1; grid-row:1; }
.carousel-control[data-work-next] { grid-column:3; grid-row:1; }
.carousel-status { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
@media(max-width:600px) {
 .recent-work { padding-bottom:0; min-height:108px; }
 .work-carousel { gap:10px; }
 .work-feature { gap:12px; justify-content:flex-start; }
 .work-feature img { width:68px; height:76px; flex:none; }
 .work-label { font-size:9px; }
 .work-name { font-size:12px; }
 .work-count { margin-top:4px; font-size:9px; }
 .carousel-control { border-color:transparent; }
}
@media(prefers-reduced-motion:reduce) { .carousel-control { transition:none; } }

/* Telegram iOS clips the page inside its web frame instead of scrolling the document. */
.browser-scroll-root { display:contents; }
html[data-telegram-ios],html[data-telegram-ios] body { height:100%; overflow:hidden; }
html[data-telegram-ios] .browser-scroll-root { display:block; position:fixed; inset:0; overflow-y:auto; overscroll-behavior-y:contain; scroll-padding-top:calc(var(--sticky-header-height,155px) + 16px); }
@media print {
 html[data-telegram-ios],html[data-telegram-ios] body { height:auto; overflow:visible; }
 html[data-telegram-ios] .browser-scroll-root { display:contents; position:static; inset:auto; overflow:visible; }
}
