/* Per-template styles. The converter replaces this file with the template's own sheet. */

/* nt:foundation -- appended first by scripts/assemble.py. Tokens, utilities and motion shared by every recipe.
   A direction skin (recipes/skins/<direction>.css) overrides the --nt-* tokens. Variables and logical properties only. */
:root {
  --nt-ease: cubic-bezier(.22, 1, .36, 1);
  --nt-gap: clamp(16px, 3vw, 32px);
  --nt-sec: clamp(48px, 9vw, 120px);
  /* type: Vazirmatn only, weights 300-900 are faked by the 400/700/800 files, so build contrast from SIZE and the 400/800 pair */
  --nt-d1: clamp(2.75rem, 1rem + 9vw, 8.5rem);
  --nt-d2: clamp(2rem, 1rem + 5vw, 5rem);
  --nt-d3: clamp(1.5rem, 1rem + 2.2vw, 2.75rem);
  --nt-lh-d: 1.12;
  --nt-wt-d: 800;
  /* shape */
  --nt-r: var(--radius-card);
  --nt-r-btn: var(--radius-button);
  --nt-bw: 0px;
  --nt-bc: var(--color-border);
  --nt-card-shadow: var(--shadow-card);
  --nt-hard: 6px 6px 0 var(--color-text);
  --nt-grain-o: 0;
  --nt-tile-shadow: none;
  --nt-hair: color-mix(in srgb, var(--color-text) 20%, transparent);
  --nt-metal-hi: color-mix(in srgb, var(--color-accent) 50%, var(--color-surface));
  --nt-metal-lo: color-mix(in srgb, var(--color-accent) 62%, var(--color-text));
  /* the word tape (strip-marquee): a skin sets its own radius, border and shadow */
  --nt-tape-r: 0;
  --nt-tape-bw: max(var(--nt-bw), 2px);
  --nt-tape-bc: var(--color-text);
  --nt-tape-shadow: var(--nt-hard);
  /* the dark band every recipe uses (tape, statement band, ink tiles, footer): a light theme darkens its text colour, a dark skin overrides both */
  --nt-dark-bg: var(--color-text);
  --nt-dark-fg: var(--color-surface);
}
/* illustration colour roles. They are defaults on :root and INHERIT, so any wrapper (a tile, a band, the svg itself) recolours the pieces inside it by setting them.
   Never re-declare them on .nt-art: that would shadow a parent's override (the bug that made tile colours silently ignored).
   Optional roles with built-in fallbacks in the pieces: --art-paper (highlight, white), --art-shadow (offset shadow of hard-shadow pieces, falls back to --art-ink),
   --art-hi / --art-lo / --art-stone / --art-stone-lo (metal highlight, metal shade, gem, gem shade: the obj-ring/pendant/earring/bangle/gem family). */
:root {
  --art-1: var(--color-brand); --art-2: var(--color-accent); --art-3: var(--color-surface-muted); --art-ink: var(--color-text);
  --art-hi: var(--nt-metal-hi); --art-lo: var(--nt-metal-lo); --art-stone: var(--color-surface); --art-stone-lo: color-mix(in srgb, var(--color-surface) 62%, var(--color-accent));
}
.nt-art { display: block; inline-size: 100%; block-size: auto; }
.nt-icon { inline-size: 1.25em; block-size: 1.25em; flex: none; }

/* section shell shared by recipes: full-bleed, own padding, background from the setting or the theme */
.nt-sec { position: relative; isolation: isolate; overflow: clip; background: var(--nt-bg, transparent); color: var(--nt-fg, inherit);
  padding-block: var(--nt-py, var(--nt-sec)); padding-inline: var(--spacing-pad); }
.nt-sec > .nt-in { max-inline-size: var(--container-shop); margin-inline: auto; position: relative; }
.nt-wide > .nt-in { max-inline-size: min(100%, 1440px); }

.nt-eyebrow { display: inline-flex; align-items: center; gap: .75em; font-size: var(--text-small); font-weight: 700; color: var(--nt-eyebrow, var(--color-brand)); }
.nt-eyebrow::before { content: ""; inline-size: 2.2em; block-size: 2px; background: currentColor; }
.nt-display { font-family: var(--font-title); font-weight: var(--nt-wt-d); font-size: var(--nt-d1); line-height: var(--nt-lh-d); margin: 0; text-wrap: balance; }
.nt-h2 { font-family: var(--font-title); font-weight: var(--nt-wt-d); font-size: var(--nt-d2); line-height: var(--nt-lh-d); margin: 0; text-wrap: balance; }
.nt-lede { font-size: var(--text-lead); line-height: 1.9; max-inline-size: 38ch; margin: 0; color: var(--nt-lede, var(--color-text-muted)); }
.nt-mute { color: var(--color-text-muted); }

.nt-btn { --_bg: var(--nt-btn-bg, var(--color-brand)); --_fg: var(--nt-btn-fg, var(--color-brand-contrast));
  display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-block-size: 48px; padding-inline: 1.6em;
  border: var(--nt-bw) solid var(--nt-btn-bc, currentColor); border-radius: var(--nt-r-btn);
  background: var(--_bg); color: var(--_fg); font-weight: 700; text-decoration: none; box-shadow: var(--nt-btn-shadow, none);
  transition: translate .25s var(--nt-ease), box-shadow .25s var(--nt-ease), background-color .2s; }
.nt-btn:hover { translate: 0 -2px; }
.nt-btn:focus-visible, .nt-sec a:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }
.nt-btn--ghost { --_bg: transparent; --_fg: currentColor; border-width: max(var(--nt-bw), 1.5px); }
.nt-btn svg { inline-size: 1.1em; block-size: 1.1em; }
/* an arrow that means "go on" points to the inline end; in RTL that is left, so it is mirrored by direction, not by hand */
.nt-arrow { transition: translate .25s var(--nt-ease); }
.nt-btn:hover .nt-arrow { translate: -4px 0; }
[dir="ltr"] .nt-btn:hover .nt-arrow { translate: 4px 0; }

/* grain: a noise tile (assets/nt-pattern-grain.svg) set by the section as --nt-noise */
.nt-grain::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background-image: var(--nt-noise, none); opacity: var(--nt-grain-o); mix-blend-mode: multiply; }
/* pattern layer: a tile used as a mask so the colour comes from the theme (section sets --nt-pat and --nt-pat-size) */
.nt-pat { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--nt-pat-c, var(--color-brand)); opacity: var(--nt-pat-o, .12);
  -webkit-mask: var(--nt-pat) 0 0 / var(--nt-pat-size, 48px) repeat; mask: var(--nt-pat) 0 0 / var(--nt-pat-size, 48px) repeat; }

/* kit sections wear the skin: product cards, text links, section headings */
.awix-product-card { border: var(--nt-bw) solid var(--nt-bc); border-radius: var(--nt-r); box-shadow: var(--nt-card-shadow); }
.pb-heading { font-weight: var(--nt-wt-d); }

/* motion: entrance, float, marquee. Everything moves only for people who allow it, and the rest state is the visible state. */
@keyframes nt-rise { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
@keyframes nt-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes nt-spin { to { rotate: 360deg; } }
@keyframes nt-slide { to { translate: var(--nt-slide-to, 50%) 0; } }
@keyframes nt-twinkle { 0%, 100% { opacity: 1; scale: 1; } 50% { opacity: .35; scale: .72; } }
@keyframes nt-steam { 0% { opacity: 0; translate: 0 8px; } 40% { opacity: .9; } 100% { opacity: 0; translate: 0 -26px; } }
@media (prefers-reduced-motion: no-preference) {
  .nt-rise { animation: nt-rise .9s var(--nt-ease) both; animation-delay: calc(var(--i, 0) * 110ms); }
  .nt-float { animation: nt-float 6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -1.3s); }
  .nt-twinkle { animation: nt-twinkle 3.6s ease-in-out infinite; }
  .nt-spin { animation: nt-spin var(--nt-spin-t, 40s) linear infinite; }
  .nt-marquee-track { animation: nt-slide var(--nt-marquee-t, 36s) linear infinite; }
  .nt-marquee:hover .nt-marquee-track { animation-play-state: paused; }
  /* scroll-driven reveal only where the browser can do it; without support the element simply shows */
  @supports (animation-timeline: view()) {
    .nt-reveal { animation: nt-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  }
}
@media (prefers-reduced-motion: reduce) { .nt-marquee-track { translate: 0 0; } }

/* nt:skin-split-screen -- direction skin: tokens first, then rules for kit sections */
:root {
  --nt-r: 12px;
  --nt-r-btn: 10px;
  --nt-bw: 0px;
  --nt-card-shadow: 0 10px 26px -14px color-mix(in srgb, var(--color-text) 35%, transparent);
}

/* nt:header-base -- shared by every header-* recipe: sticky wrapper, bar grid, icon buttons, mobile drawer, inline menu on desktop.
   Mirrors the kit's awix-header behaviour (same data-awix-* hooks) under own class names. */
.shopify-section:has(> .nt-hd[data-sticky="true"]) { position: sticky; inset-block-start: 0; z-index: 50; transition: inset-block-start .28s ease; }
.shopify-section.awix-header-hidden:has(> .nt-hd[data-sticky="true"]) { inset-block-start: calc(-1 * (var(--awix-header-h, 96px) + 2px)); }
.nt-hd { position: relative; z-index: 50; background: var(--nt-hd-bg, var(--color-header-bg)); color: var(--color-header-text); font-family: var(--font-title); }
.nt-hd a { color: inherit; text-decoration: none; }
.nt-hd__bar { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; column-gap: 8px; min-block-size: 60px; padding-block: var(--nt-hd-py, 12px); }
.nt-hd__icon { display: inline-flex; align-items: center; justify-content: center; inline-size: 44px; block-size: 44px; padding: 0; border: 0; border-radius: var(--nt-r-btn); background: none; color: inherit; cursor: pointer; }
.nt-hd__icon:hover, .nt-hd__icon:focus-visible, .nt-nav__link:hover, .nt-nav__link:focus-visible { color: var(--nt-cur, var(--color-header-hover)); }
.nt-hd__icon svg { inline-size: 22px; block-size: 22px; }
.nt-hd__burger { grid-column: 1; margin-inline-start: -10px; }
.nt-hd__logo { grid-column: 2; justify-self: center; display: inline-flex; align-items: center; min-block-size: 44px; font-weight: 800; font-size: 1.25rem; line-height: 1.4; }
.nt-hd__logo img { inline-size: min(var(--nt-logo-w, 120px), 40vw); max-block-size: 52px; object-fit: contain; }
.nt-hd__tools { grid-column: 3; display: flex; align-items: center; margin-inline-end: -10px; }
.nt-hd__opener, .nt-hd__closer { display: none; }
.nt-hd__anchor { position: fixed; inset-block-start: 0; inset-inline-start: 0; inline-size: 0; block-size: 0; }
.nt-hd__search { display: none; grid-column: 1 / -1; align-items: center; padding-block-end: 12px; position: relative; }
.nt-hd.is-search-open .nt-hd__search { display: flex; }
.nt-hd__search input { flex: 1; min-inline-size: 0; min-block-size: 44px; padding-inline: 16px 48px; border: 1.5px solid color-mix(in srgb, currentColor 25%, transparent); border-radius: var(--nt-r-btn); background: color-mix(in srgb, currentColor 6%, transparent); color: inherit; font: inherit; }
.nt-hd__search input::placeholder { color: inherit; opacity: .6; }
.nt-hd__search button { margin-inline-start: -46px; }
.nt-hd__backdrop { position: fixed; inset: 0; z-index: 1; background: color-mix(in srgb, var(--color-text) 50%, transparent); opacity: 0; visibility: hidden; transition: opacity .28s ease, visibility 0s .28s; }
.nt-hd.is-nav-open .nt-hd__backdrop { opacity: 1; visibility: visible; transition: opacity .28s ease; }
/* mobile drawer */
.nt-hd__panel { position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 2; inline-size: min(86vw, 380px); display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  background: var(--color-header-bg); color: var(--color-header-text); box-shadow: var(--nt-card-shadow); translate: 100% 0; visibility: hidden; transition: translate .3s var(--nt-ease), visibility 0s .3s; }
:root[dir="ltr"] .nt-hd__panel { translate: -100% 0; }
.nt-hd.is-nav-open .nt-hd__panel { translate: 0 0; visibility: visible; transition: translate .3s var(--nt-ease); }
.nt-hd__panel-head { display: flex; align-items: center; justify-content: space-between; padding: 8px; padding-inline-start: 20px; border-block-end: 1px solid var(--color-border); }
.nt-hd__panel-title { font-weight: 700; }
.nt-nav { padding-block: 4px 24px; }
.nt-nav__list { list-style: none; margin: 0; padding: 0; }
.nt-nav__item { display: flex; flex-wrap: wrap; align-items: center; border-block-end: 1px solid var(--color-border); }
.nt-nav__link { flex: 1; display: flex; align-items: center; min-block-size: 48px; padding-inline: 20px; font-weight: 700; }
.nt-nav__item.is-current > .nt-nav__link { color: var(--nt-cur, var(--color-header-hover)); }
.nt-nav__toggle { display: inline-flex; align-items: center; justify-content: center; inline-size: 48px; block-size: 48px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.nt-nav__toggle svg, .nt-nav__link--toggle svg { inline-size: 18px; block-size: 18px; flex: none; transition: rotate .2s ease; }
.nt-nav__item.is-open > .nt-nav__toggle svg, .nt-nav__item.is-open > .nt-nav__link--toggle svg { rotate: 180deg; }
.nt-nav__link--toggle { justify-content: space-between; gap: 8px; border: 0; background: none; color: inherit; cursor: pointer; text-align: start; font: inherit; font-weight: 700; padding-block: 0; }
.nt-nav__sub { flex: 0 0 100%; display: none; list-style: none; margin: 0; padding: 0 0 8px; background: color-mix(in srgb, currentColor 5%, transparent); }
.nt-nav__item.is-open > .nt-nav__sub { display: block; }
.nt-nav__sublink { display: flex; align-items: center; min-block-size: 44px; padding-inline: 36px 20px; }
.nt-nav__sublink:hover, .nt-nav__sublink:focus-visible { color: var(--color-header-hover); }
/* without script the menu is plain content under the bar */
@media (max-width: 989.98px) {
  .no-js .nt-hd__panel { position: static; grid-column: 1 / -1; inline-size: auto; translate: none; visibility: visible; box-shadow: none; overflow: visible; }
  .no-js .nt-hd__burger, .no-js .nt-hd__search-toggle, .no-js .nt-hd__panel-head, .no-js .nt-nav__toggle, .no-js .nt-hd__backdrop { display: none; }
  .no-js .nt-hd__search { display: flex; }
  .no-js .nt-nav__sub { display: block; }
}
/* inline menu on a wide screen (headers marked nt-hd--inline) */
@media (min-width: 990px) {
  .nt-hd--inline .nt-hd__burger, .nt-hd--inline .nt-hd__panel-head, .nt-hd--inline .nt-hd__backdrop { display: none; }
  .nt-hd--inline .nt-hd__panel { position: static; inline-size: auto; translate: none; visibility: visible; box-shadow: none; overflow: visible; background: none; color: inherit; flex-direction: row; align-items: center; }
  .nt-hd--inline .nt-nav { padding: 0; }
  .nt-hd--inline .nt-nav__list { display: flex; align-items: center; gap: 2px; }
  .nt-hd--inline .nt-nav__item { position: relative; flex-wrap: nowrap; border: 0; }
  .nt-hd--inline .nt-nav__link { padding-inline: 14px; min-block-size: 44px; white-space: nowrap; }
  .nt-hd--inline .nt-nav__toggle { inline-size: 24px; block-size: 44px; margin-inline-start: -10px; }
  .nt-hd--inline .nt-nav__sub { position: absolute; inset-block-start: 100%; inset-inline-start: 0; z-index: 5; min-inline-size: 220px; padding: 8px; margin: 0;
    background: var(--color-header-bg); color: var(--color-header-text); border: max(var(--nt-bw), 1px) solid var(--color-border); border-radius: var(--nt-r); box-shadow: var(--nt-card-shadow); }
  .nt-hd--inline .nt-nav__sublink { padding-inline: 12px; border-radius: calc(var(--nt-r-btn) - 2px); }
  .nt-hd--inline .nt-nav__sublink:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
  .nt-hd--inline .nt-hd__search { display: flex; padding: 0; grid-column: auto; }
  .nt-hd--inline .nt-hd__search input { min-block-size: 40px; inline-size: 200px; padding-inline: 14px 44px; }
  .nt-hd--inline .nt-hd__search-toggle { display: none; }
}
@media (prefers-reduced-motion: reduce) { .nt-hd__panel, .nt-hd__backdrop, .shopify-section:has(> .nt-hd) { transition: none; } }

/* nt:footer-cards */
.nt-foot--cards { --nt-py: clamp(32px, 6vw, 72px); background: var(--nt-bg, var(--color-surface-muted)); color: var(--nt-fg, var(--color-text)); padding-block: var(--nt-py) 0; }
.nt-foot--cards a { color: inherit; text-decoration: none; }
.nt-foot--cards a:hover { color: var(--color-brand); text-decoration: underline; text-underline-offset: .2em; }
.nt-foot--cards a.nt-btn, .nt-foot--cards a.nt-btn:hover { color: var(--_fg); text-decoration: none; }
/* a flat top-level footer link (no children) is a heading-only card: keep it, make it compact */
.nt-fcard:not(:has(li)) { padding-block: 14px; align-self: start; }
.nt-fcards { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nt-fcard { padding: 20px; border-radius: var(--nt-r); border: max(var(--nt-bw), 1px) solid var(--color-border); background: var(--color-surface); box-shadow: var(--nt-card-shadow); }
.nt-fcard h2 { margin: 0 0 8px; font-family: var(--font-title); font-weight: 800; font-size: var(--text-h3); }
.nt-fcard ul { list-style: none; margin: 0; padding: 0; display: grid; }
.nt-fcard li a { display: inline-flex; min-block-size: 40px; align-items: center; }
.nt-fcard--lead { grid-column: 1 / -1; display: grid; gap: 12px; justify-items: start; background: var(--color-brand); color: var(--color-brand-contrast); border-color: transparent; }
.nt-fcard__name { font-family: var(--font-title); font-weight: 800; font-size: clamp(2rem, 1rem + 3.5vw, 4rem); line-height: 1.2; }
.nt-fcard--lead p { margin: 0; max-inline-size: 36ch; opacity: .9; }
.nt-fcard--lead .nt-btn { --nt-btn-bg: var(--color-brand-contrast); --nt-btn-fg: var(--color-brand); }
.nt-foot--cards .nt-foot__contact { margin-block: 16px 0; }
.nt-foot--cards .nt-foot__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 18px calc(18px + var(--awix-bottom-nav-h, 0px)); font-size: var(--text-small); }
@media (min-width: 900px) { .nt-fcards { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); } .nt-fcard--lead { grid-column: span 2; } }
.nt-fcard--lead { position: relative; isolation: isolate; overflow: clip; }
.nt-fcard__art { position: absolute; inset-block-end: -6%; inset-inline-end: 4%; inline-size: clamp(120px, 34%, 240px); z-index: -1; --art-1: var(--color-accent); --art-2: var(--color-brand-contrast); --art-3: color-mix(in srgb, var(--color-brand-contrast) 28%, var(--color-brand)); --art-ink: var(--color-brand-contrast); opacity: .9; }


/* ap:base -- own pieces of this theme: stitched labels, buttons, chips */
.ap-chip { display: inline-flex; align-items: center; padding: 8px 18px; border-radius: 6px; background: var(--color-surface); color: var(--color-text); font-weight: 800; font-size: var(--text-small); line-height: 1.5; outline: 1.5px dashed color-mix(in srgb, var(--color-text) 55%, transparent); outline-offset: -4px; }
.ap-chip--paper { background: var(--color-surface); }
.ap-btn { --nt-btn-bg: var(--color-surface); --nt-btn-fg: var(--color-text); min-block-size: 52px; font-size: 1.0625rem; box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--color-text) 60%, transparent); }
.ap-btn.nt-btn--ghost { --_bg: transparent; --_fg: currentColor; box-shadow: none; border: 1.5px dashed currentColor; }
.ap-sec-pad { padding-inline: var(--spacing-pad); }

/* ap:header -- the rail is stitched like a sewn edge, and the wordmark ends in a tiny sewn button */
.nt-hd--rail { border-block-end: 3px dashed color-mix(in srgb, var(--color-brand) 70%, transparent); }
.nt-hd__name { display: inline-flex; align-items: center; gap: .3em; font-weight: 800; white-space: nowrap; }
.nt-hd__name::after { content: ""; flex: none; inline-size: .62em; block-size: .62em; border-radius: 50%; background: radial-gradient(circle at 36% 50%, var(--color-surface) 0 11%, transparent 13%), radial-gradient(circle at 64% 50%, var(--color-surface) 0 11%, transparent 13%), var(--color-brand); box-shadow: inset 0 0 0 .07em color-mix(in srgb, var(--color-surface) 55%, var(--color-brand)); }
@media (min-width: 990px) {
  .nt-hd--rail { border-block-end: 0; border-inline-end: 3px dashed color-mix(in srgb, var(--color-brand) 70%, transparent); background: var(--color-surface); }
}

/* ap:hero -- two fabrics, a stitched seam, a button, a garment rail */
.ap-hero { --nt-py: 0px; padding: 0; display: grid; grid-template-rows: auto 0 auto; background: var(--color-surface); color: var(--color-brand-contrast); }
.ap-hero__a { grid-row: 1; position: relative; isolation: isolate; display: grid; align-content: center; min-block-size: 430px; padding: clamp(40px, 7vw, 88px) var(--spacing-pad) 84px; background: var(--nt-bg, var(--color-brand)); color: var(--nt-fg, var(--color-brand-contrast)); }
.ap-hero__weave { position: absolute; inset: 0; z-index: -1; background: var(--color-brand-contrast); opacity: .1; -webkit-mask: var(--ap-weave) 0 0 / 46px repeat; mask: var(--ap-weave) 0 0 / 46px repeat; }
.ap-hero__copy { display: grid; justify-items: start; gap: clamp(14px, 2.4vw, 26px); }
.ap-hero__title { margin: 0; display: grid; justify-items: start; gap: .12em; font-family: var(--font-title); font-weight: 800; }
.ap-hero__l1 { font-size: clamp(4.4rem, 1rem + 9.4vw, 8.2rem); line-height: 1.08; }
.ap-hero__l2 { font-size: clamp(2rem, 1rem + 4.2vw, 3.7rem); line-height: 1.5; padding: .02em .32em .08em; background: var(--color-accent); color: var(--color-text); rotate: -1.6deg; margin-inline-start: .15em; box-shadow: 0 10px 20px -12px color-mix(in srgb, var(--color-text) 70%, transparent); }
.ap-hero__text { margin: 0; max-inline-size: 34ch; font-size: var(--text-lead); line-height: 1.9; opacity: .95; }
.ap-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ap-hero__ruler { position: absolute; inset-inline: 0; inset-block-end: 0; block-size: 40px; color: var(--color-brand-contrast); opacity: .55; background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 60px) 0 100% / 100% 24px no-repeat, repeating-linear-gradient(90deg, currentColor 0 1.5px, transparent 1.5px 12px) 0 100% / 100% 12px no-repeat, linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat; }
.ap-hero__seam { grid-row: 2; position: relative; z-index: 4; block-size: 0; }
.ap-hero__seam::before { content: ""; position: absolute; inset-inline: 0; inset-block-start: -2.5px; block-size: 5px; border-radius: 3px; background: repeating-linear-gradient(90deg, var(--color-surface) 0 14px, transparent 14px 26px); }
.ap-hero__button, .ap-duo__button { position: absolute; inset-block-start: 0; inset-inline-start: 50%; inline-size: 92px; margin-inline-start: -46px; margin-block-start: -46px; --art-1: var(--color-surface); --art-2: var(--color-accent); --art-ink: var(--color-text); filter: drop-shadow(0 10px 12px color-mix(in srgb, var(--color-text) 40%, transparent)); }
.ap-hero__b { grid-row: 3; position: relative; isolation: isolate; overflow: clip; aspect-ratio: 1 / 1.04; container-type: inline-size; background: var(--color-accent); color: var(--color-text); --art-1: var(--color-brand); --art-2: var(--color-surface); --art-3: var(--color-surface-muted); --art-ink: var(--color-text); --art-paper: var(--color-surface); }
.ap-hero__rays { position: absolute; inset: -30%; z-index: -1; background: var(--color-surface); opacity: .26; -webkit-mask: var(--ap-rays) center / cover no-repeat; mask: var(--ap-rays) center / cover no-repeat; }
.ap-rack { position: absolute; inset: 0; --rail: 6cqw; }
.ap-rack__bar { position: absolute; inset-inline: 0; inset-block-start: var(--rail); block-size: 6px; background: var(--color-text); z-index: 1; }
.ap-rack__item { position: absolute; z-index: 2; inline-size: var(--w); inset-inline-start: var(--x); inset-block-start: calc(var(--rail) - var(--w) * .11 + 3px); transform-origin: 46.5% 11%; filter: drop-shadow(0 16px 14px color-mix(in srgb, var(--color-text) 30%, transparent)); }
.ap-rack__art { display: block; inline-size: 100%; block-size: auto; }
.ap-rack__item--1 { --w: 60cqw; --x: -5cqw; z-index: 4; }
.ap-rack__item--2 { --w: 54cqw; --x: 23cqw; --art-1: var(--color-surface); --art-2: var(--color-brand); --art-3: var(--color-brand); --art-paper: var(--color-surface); z-index: 3; }
.ap-rack__item--3 { --w: 46cqw; --x: 44cqw; --art-3: var(--color-surface); --art-1: var(--color-brand); z-index: 2; }
.ap-rack__floor { position: absolute; z-index: 3; inline-size: 62cqw; inset-block-end: -9cqw; inset-inline-start: -4cqw; --art-1: var(--color-brand); --art-2: var(--color-surface); --art-3: var(--color-surface-muted); filter: drop-shadow(0 14px 12px color-mix(in srgb, var(--color-text) 30%, transparent)); }
.ap-rack__thread { position: absolute; z-index: 3; inline-size: 38cqw; inset-block-end: -2cqw; inset-inline-end: 0; --art-2: var(--color-brand); --art-paper: var(--color-surface); }
.ap-rack__sp { position: absolute; color: var(--color-surface); --art-1: var(--color-surface); --art-2: var(--color-surface); inline-size: 9cqw; z-index: 1; }
.ap-rack__sp--1 { inset-block-start: 40cqw; inset-inline-end: 5cqw; }
.ap-rack__sp--2 { inset-block-start: 70cqw; inset-inline-start: 56cqw; inline-size: 6cqw; }
.ap-tag { position: absolute; z-index: 6; inset-block-start: var(--rail); inset-inline-start: 83cqw; transform-origin: 50% 0; filter: drop-shadow(0 8px 8px color-mix(in srgb, var(--color-text) 35%, transparent)); }
.ap-tag::before { content: ""; display: block; inline-size: 2px; block-size: 22cqw; margin-inline: auto; background: var(--color-text); }
.ap-tag__body { display: block; min-inline-size: 14.5cqw; padding: 24px 8px 12px; text-align: center; font-family: var(--font-title); font-weight: 800; font-size: max(.78rem, 3.5cqw); line-height: 1.4; background: radial-gradient(circle at 50% 14px, var(--color-accent) 0 5px, transparent 5.6px), var(--color-brand); color: var(--color-brand-contrast); clip-path: polygon(14% 0, 86% 0, 100% 13%, 100% 100%, 0 100%, 0 13%); }
@media (min-width: 900px) {
  .ap-hero { grid-template-columns: 1.08fr .92fr; grid-template-rows: 1fr; min-block-size: min(86vh, 740px); }
  .ap-hero__a { grid-row: 1; grid-column: 1; padding-block: 56px 104px; }
  .ap-hero__b { grid-row: 1; grid-column: 2; aspect-ratio: auto; }
  .ap-hero__seam { grid-row: 1; grid-column: 1 / -1; position: absolute; inset-block: 0; inset-inline-start: 54%; inline-size: 0; block-size: auto; }
  .ap-hero__seam::before { inset: 0 auto; inset-inline-start: -2.5px; inline-size: 5px; block-size: auto; background: repeating-linear-gradient(180deg, var(--color-surface) 0 14px, transparent 14px 26px); }
  .ap-hero__button { inset-block-start: 50%; inline-size: 120px; margin-inline-start: -60px; margin-block-start: -60px; }
  .ap-rack__sp--1 { inset-block-start: 36cqw; }
  .ap-rack__sp--2 { inset-block-start: 82cqw; }
}
@media (max-width: 899px) {
  .ap-rack__floor { inline-size: 54cqw; inset-block-end: -12cqw; }
  .ap-rack__thread { inline-size: 30cqw; inset-block-end: -3cqw; }
  .ap-rack__sp--2 { display: none; }
}
@keyframes ap-swing { from { rotate: -1.8deg; } to { rotate: 2deg; } }
@media (prefers-reduced-motion: no-preference) {
  .ap-rack__item { animation: ap-swing 5.6s ease-in-out infinite alternate; }
  .ap-rack__item--2 { animation-duration: 6.8s; animation-delay: -2.2s; }
  .ap-rack__item--3 { animation-duration: 6.2s; animation-delay: -4s; }
  .ap-tag { animation: ap-swing 4.4s ease-in-out infinite alternate -1s; }
}

/* ap:rail -- collections hang on a clothes rail */
.ap-rail { background: var(--nt-bg, var(--color-surface)); color: var(--nt-fg, var(--color-text)); padding-block: var(--nt-py, clamp(56px, 9vw, 112px)); }
.ap-rail__head { display: grid; gap: 14px; justify-items: start; max-inline-size: 640px; margin-block-end: clamp(12px, 3vw, 32px); }
.ap-rail__title { margin: 0; }
.ap-rail__text { margin: 0; color: var(--color-text-muted); line-height: 1.9; }
.ap-rail__row { display: grid; grid-auto-flow: column; grid-auto-columns: 64%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-block: 8px 12px; margin-inline: calc(-1 * var(--spacing-pad)); padding-inline: var(--spacing-pad); }
.ap-rail__row::-webkit-scrollbar { display: none; }
.ap-hang { container-type: inline-size; scroll-snap-align: start; display: grid; justify-items: center; align-content: start; text-decoration: none; color: inherit; --art-1: var(--color-brand); --art-2: var(--color-accent); --art-3: var(--color-surface); --art-paper: var(--color-surface); }
.ap-hang--2 { --art-1: var(--color-accent); --art-2: var(--color-brand); }
.ap-hang--3 { --art-1: color-mix(in srgb, var(--color-text) 80%, var(--color-surface)); --art-2: var(--color-accent); }
.ap-hang--4 { --art-1: color-mix(in srgb, var(--color-brand) 52%, var(--color-surface)); --art-2: var(--color-brand); --art-3: var(--color-surface-muted); }
.ap-hang::before { content: ""; position: absolute; inset-inline: 0; inset-block-start: calc(min(100cqw, 300px) * .11 - 3px); block-size: 6px; background: var(--color-text); }
.ap-hang { position: relative; }
.ap-hang__fig { position: relative; inline-size: min(100%, 300px); aspect-ratio: 1; transform-origin: 46.5% 11%; }
.ap-hang__art { position: relative; z-index: 1; filter: drop-shadow(0 14px 12px color-mix(in srgb, var(--color-text) 22%, transparent)); }
.ap-hang__tag { position: relative; z-index: 2; margin-block-start: -12%; display: block; min-inline-size: 110px; max-inline-size: 90%; padding: 20px 18px 10px; text-align: center; background: radial-gradient(circle at 50% 10px, var(--color-surface) 0 4px, transparent 4.6px), var(--color-text); color: var(--color-surface); clip-path: polygon(12% 0, 88% 0, 100% 14%, 100% 100%, 0 100%, 0 14%); rotate: -2.5deg; transition: rotate .4s var(--nt-ease), translate .4s var(--nt-ease); }
.ap-hang:nth-child(even) .ap-hang__tag { rotate: 2.5deg; }
.ap-hang__name { font-family: var(--font-title); font-weight: 800; font-size: 1.0625rem; line-height: 1.4; }
.ap-hang:hover .ap-hang__tag, .ap-hang:focus-visible .ap-hang__tag { rotate: 0deg; translate: 0 6px; }
@media (min-width: 900px) {
  .ap-rail__row { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); overflow: visible; margin-inline: 0; padding-inline: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .ap-hang:hover .ap-hang__fig, .ap-hang:focus-visible .ap-hang__fig { animation: ap-swing 1.4s ease-in-out 2 alternate; }
}

/* ap:swatches -- a fan of fabric swatch cards */
.ap-sw { background: var(--nt-bg, var(--color-accent)); color: var(--nt-fg, var(--color-text)); padding-block: var(--nt-py, clamp(60px, 9vw, 120px)); }
.ap-sw::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--color-text); opacity: .09; -webkit-mask: var(--ap-weave) 0 0 / 48px repeat; mask: var(--ap-weave) 0 0 / 48px repeat; }
.ap-sw__head { display: grid; gap: 14px; justify-items: start; max-inline-size: 700px; margin-block-end: clamp(32px, 5vw, 60px); }
.ap-sw__title { margin: 0; }
.ap-sw__text { margin: 0; line-height: 1.9; max-inline-size: 46ch; }
.ap-sw__fan { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 16px; padding-block-start: 14px; }
.ap-sw__card { position: relative; display: grid; grid-template-rows: 1fr auto; aspect-ratio: 3 / 4.1; padding: 10px 10px 0; background: var(--color-surface); color: var(--color-text); border-radius: 6px; text-decoration: none; box-shadow: 0 18px 28px -14px color-mix(in srgb, var(--color-text) 60%, transparent); rotate: calc((var(--i) - 2.5) * 1.7deg); transition: rotate .4s var(--nt-ease), translate .4s var(--nt-ease), box-shadow .4s var(--nt-ease); }
.ap-sw__card:hover, .ap-sw__card:focus-visible { rotate: 0deg; translate: 0 -12px; z-index: 2; box-shadow: 0 26px 34px -16px color-mix(in srgb, var(--color-text) 70%, transparent); }
.ap-sw__cord { position: absolute; inset-block-start: -17px; inset-inline-start: calc(50% - 11px); inline-size: 22px; block-size: 30px; border: 3.5px solid var(--color-brand); border-block-end: 0; border-radius: 12px 12px 0 0; }
.ap-sw__cord::after { content: ""; position: absolute; inset-block-start: 20px; inset-inline-start: 50%; inline-size: 12px; block-size: 12px; margin-inline-start: -6px; border-radius: 50%; background: var(--color-accent); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--color-text) 35%, transparent); }
.ap-sw__cloth { position: relative; overflow: clip; border-radius: 3px; margin-block-start: 14px; background: var(--color-brand); }
.ap-sw__cloth::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, color-mix(in srgb, var(--color-surface) 22%, transparent), transparent 40%, color-mix(in srgb, var(--color-text) 14%, transparent)); }
.ap-sw__card--solid .ap-sw__cloth { background: var(--color-brand); }
.ap-sw__card--solid .ap-sw__cloth::before { content: ""; position: absolute; inset: 0; background: var(--color-brand-contrast); opacity: .22; -webkit-mask: var(--ap-weave) 0 0 / 34px repeat; mask: var(--ap-weave) 0 0 / 34px repeat; }
.ap-sw__card--stripe .ap-sw__cloth { background: repeating-linear-gradient(90deg, var(--color-text) 0 11px, var(--color-surface) 11px 26px); }
.ap-sw__card--plaid .ap-sw__cloth { background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--color-brand) 62%, transparent) 0 22px, transparent 22px 56px), repeating-linear-gradient(0deg, color-mix(in srgb, var(--color-brand) 62%, transparent) 0 22px, transparent 22px 56px), repeating-linear-gradient(90deg, var(--color-text) 0 2px, transparent 2px 56px), repeating-linear-gradient(0deg, var(--color-text) 0 2px, transparent 2px 56px), var(--color-surface-muted); }
.ap-sw__card--dots .ap-sw__cloth { background: radial-gradient(circle at 14px 14px, var(--color-surface) 0 5.5px, transparent 6px) 0 0 / 28px 28px, radial-gradient(circle at 28px 28px, var(--color-accent) 0 4px, transparent 4.5px) 0 0 / 28px 28px, var(--color-text); }
.ap-sw__card--twill .ap-sw__cloth { background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--color-text) 78%, var(--color-surface)) 0 3px, transparent 3px 8px), var(--color-surface-muted); }
.ap-sw__card--waves .ap-sw__cloth { background: var(--color-surface-muted); }
.ap-sw__card--waves .ap-sw__cloth::before { content: ""; position: absolute; inset: 0; background: var(--color-brand); -webkit-mask: var(--ap-waves) 0 0 / 52px repeat; mask: var(--ap-waves) 0 0 / 52px repeat; }
.ap-sw__label { padding: 12px 6px 14px; text-align: center; font-family: var(--font-title); font-weight: 800; font-size: 1.125rem; line-height: 1.4; }
@media (min-width: 900px) {
  .ap-sw__fan { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 18px; }
  .ap-sw__card:nth-child(even) { margin-block-start: 34px; }
}

/* ap:duo -- two fields, huge words, garments bleeding off the edge */
.ap-duo { --nt-py: 0px; padding: 0; display: grid; grid-template-rows: auto 0 auto; background: var(--color-surface); }
.ap-duo__side { position: relative; isolation: isolate; overflow: clip; display: grid; align-content: center; min-block-size: clamp(440px, 96vw, 580px); padding: clamp(40px, 6vw, 80px) var(--spacing-pad); }
.ap-duo__side--a { grid-row: 1; background: var(--nt-dark-bg); color: var(--nt-dark-fg); --art-1: var(--color-brand); --art-2: var(--color-accent); --art-3: var(--color-surface); --art-ink: var(--nt-dark-fg); --art-paper: var(--color-surface); --nt-btn-bg: var(--color-accent); --nt-btn-fg: var(--color-text); }
.ap-duo__side--b { grid-row: 3; background: var(--nt-bg, var(--color-surface-muted)); color: var(--nt-fg, var(--color-text)); --art-1: color-mix(in srgb, var(--color-text) 82%, var(--color-surface)); --art-2: var(--color-accent); --art-3: var(--color-surface); --art-ink: var(--color-text); --art-paper: var(--color-surface); --nt-btn-bg: var(--color-brand); --nt-btn-fg: var(--color-brand-contrast); }
.ap-duo__pat { position: absolute; inset: 0; z-index: -2; opacity: .12; background: currentColor; -webkit-mask: var(--ap-dots) 0 0 / 28px repeat; mask: var(--ap-dots) 0 0 / 28px repeat; }
.ap-duo__side--b .ap-duo__pat { opacity: .09; -webkit-mask: var(--ap-weave) 0 0 / 46px repeat; mask: var(--ap-weave) 0 0 / 46px repeat; }
.ap-duo__piece { position: absolute; z-index: -1; inset-block-end: -8%; inset-inline-end: -9%; inline-size: min(72%, 440px); rotate: 7deg; filter: drop-shadow(0 22px 22px color-mix(in srgb, var(--color-text) 35%, transparent)); }
.ap-duo__side--b .ap-duo__piece { rotate: -6deg; inset-inline-end: -4%; }
.ap-duo__art { display: block; inline-size: 100%; block-size: auto; }
.ap-duo__copy { display: grid; justify-items: start; gap: clamp(12px, 2vw, 20px); max-inline-size: 28rem; }
.ap-duo__side--a .ap-chip { background: var(--color-surface); }
.ap-duo__word { margin: 0; font-family: var(--font-title); font-weight: 800; font-size: clamp(4.4rem, 1rem + 12vw, 9.6rem); line-height: 1.1; }
.ap-duo__text { margin: 0; max-inline-size: 26ch; font-size: var(--text-lead); line-height: 1.85; }
.ap-duo__seam { grid-row: 2; position: relative; z-index: 4; block-size: 0; }
.ap-duo__seam::before { content: ""; position: absolute; inset-inline: 0; inset-block-start: -2.5px; block-size: 5px; border-radius: 3px; background: repeating-linear-gradient(90deg, var(--color-brand) 0 14px, transparent 14px 26px); }
.ap-duo__button { --art-1: var(--color-brand); --art-2: var(--color-accent); --art-ink: var(--color-text); --art-paper: var(--color-surface); inline-size: 84px; margin-inline-start: -42px; margin-block-start: -42px; }
@media (min-width: 900px) {
  .ap-duo { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
  .ap-duo__side { min-block-size: 600px; }
  .ap-duo__side--a, .ap-duo__side--b { grid-row: 1; }
  .ap-duo__side--b { grid-column: 2; }
  .ap-duo__seam { grid-row: 1; grid-column: 1 / -1; position: absolute; inset-block: 0; inset-inline-start: 50%; inline-size: 0; block-size: auto; }
  .ap-duo__seam::before { inset: 0 auto; inset-inline-start: -2.5px; inline-size: 5px; block-size: auto; background: repeating-linear-gradient(180deg, var(--color-brand) 0 14px, transparent 14px 26px); }
  .ap-duo__button { inset-block-start: 50%; inline-size: 104px; margin-inline-start: -52px; margin-block-start: -52px; }
}
@media (prefers-reduced-motion: no-preference) {
  .ap-duo__art { transition: translate .6s var(--nt-ease), rotate .6s var(--nt-ease); }
  .ap-duo__side:hover .ap-duo__art { translate: 0 -14px; }
}

/* ap:labels -- promises as sewn care labels on a stitched rope */
.ap-lab { background: var(--nt-bg, var(--color-brand)); color: var(--nt-fg, var(--color-brand-contrast)); padding-block: var(--nt-py, clamp(60px, 9vw, 116px)); }
.ap-lab__weave { position: absolute; inset: 0; z-index: -1; background: var(--color-brand-contrast); opacity: .1; -webkit-mask: var(--ap-weave) 0 0 / 46px repeat; mask: var(--ap-weave) 0 0 / 46px repeat; }
.ap-lab__head { display: grid; gap: 16px; justify-items: start; margin-block-end: clamp(48px, 7vw, 76px); }
.ap-lab__title { margin: 0; font-size: var(--nt-d3); max-inline-size: 22ch; line-height: 1.4; }
.ap-lab__row { position: relative; display: grid; gap: 52px 20px; padding-block-start: 34px; }
.ap-lab__row::before { content: ""; position: absolute; inset-inline: -50vw; inset-block-start: 0; border-block-start: 4px dashed var(--color-brand-contrast); }
.ap-lab__label { position: relative; display: grid; gap: 10px; justify-items: start; padding: 28px 24px 20px; background: var(--color-surface); color: var(--color-text); border-radius: 6px; outline: 2px dashed color-mix(in srgb, var(--color-text) 38%, transparent); outline-offset: -10px; box-shadow: 0 22px 30px -18px color-mix(in srgb, var(--color-text) 70%, transparent); rotate: calc((var(--i) - 1) * 1.6deg); transform-origin: 50% -34px; }
.ap-lab__label::before, .ap-lab__label::after { content: ""; position: absolute; inset-block-start: -34px; inline-size: 3px; block-size: 34px; background: var(--color-brand-contrast); }
.ap-lab__label::before { inset-inline-start: 26px; }
.ap-lab__label::after { inset-inline-end: 26px; }
.ap-lab__icon { display: grid; place-items: center; inline-size: 52px; block-size: 52px; border-radius: 50%; background: var(--color-text); color: var(--color-surface); font-size: 1.5rem; }
.ap-lab__name { margin: 4px 0 0; font-family: var(--font-title); font-weight: 800; font-size: 1.4rem; line-height: 1.4; }
.ap-lab__text { margin: 0; color: var(--color-text-muted); line-height: 1.85; }
.ap-lab__care { margin-block-start: 6px; color: color-mix(in srgb, var(--color-text) 60%, var(--color-surface)); }
.ap-lab__care-art { inline-size: 120px; block-size: auto; }
@media (min-width: 900px) {
  .ap-lab__row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ap-lab__label:nth-child(2) { margin-block-start: 30px; }
}
@media (prefers-reduced-motion: no-preference) {
  .ap-lab__label { animation: ap-swing 6s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -1.8s); }
}

/* ap:kit -- kit sections wear the two-field rhythm */
#shopify-section-template--index__awix-products { padding-inline: var(--spacing-pad); background: var(--color-surface-muted); }
#shopify-section-template--index__awix-products .pb-more { margin-block-start: 40px; }

/* ap:swatches needle */
.ap-sw__needle { position: absolute; z-index: 0; inset-block-start: 24px; inset-inline-end: 4%; inline-size: min(34vw, 300px); --art-2: var(--color-brand); --art-paper: var(--color-surface); rotate: 8deg; opacity: .95; pointer-events: none; }
.ap-sw .nt-in { position: relative; z-index: 1; }
.ap-sw__needle { z-index: 0; }
@media (max-width: 899px) { .ap-sw__needle { inset-block-start: 8px; inset-inline-end: -6%; inline-size: 44vw; } }

@media (max-width: 899px) {
  .ap-duo__side { align-content: start; min-block-size: 0; padding-block-end: 72vw; }
  .ap-duo__piece { inline-size: 78%; inset-block-end: -6vw; inset-inline-end: -6%; }
  .ap-duo__word { font-size: clamp(4rem, 1rem + 14vw, 6rem); }
}

/* nt:header-rail -- on desktop a fixed vertical rail at the inline-start edge; the menu is a drawer beside it (:target). Below 990px a normal bar + island drawer. */
.nt-hd--rail { border-block-end: max(var(--nt-bw), 1px) solid var(--nt-bc); }
.nt-hd--rail .nt-hd__bar { padding-inline: var(--spacing-pad); }
@media (min-width: 990px) {
  :root { --nt-rail: 88px; }
  body:has(.nt-hd--rail) { padding-inline-start: var(--nt-rail); }
  .shopify-section:has(> .nt-hd--rail) { position: static; }
  .nt-hd--rail { position: fixed; inset-block: 0; inset-inline-start: 0; inline-size: var(--nt-rail); z-index: 70; border: 0; border-inline-end: max(var(--nt-bw), 1px) solid var(--nt-bc); }
  .nt-hd--rail .nt-hd__bar { display: flex; flex-direction: column; align-items: center; justify-content: space-between; block-size: 100%; padding-block: 18px; padding-inline: 0; column-gap: 0; }
  .nt-hd--rail .nt-hd__burger { display: none; }
  .nt-hd--rail .nt-hd__opener { display: inline-flex; margin: 0; border: max(var(--nt-bw), 1.5px) solid currentColor; border-radius: 50%; }
  .nt-hd--rail .nt-hd__logo { writing-mode: vertical-rl; rotate: 180deg; font-size: 1.5rem; font-weight: var(--nt-wt-d); flex: 1; justify-content: center; }
  .nt-hd--rail .nt-hd__logo img { max-block-size: 52px; inline-size: 52px; rotate: 180deg; }
  .nt-hd--rail .nt-hd__tools { flex-direction: column; margin: 0; }
  .nt-hd--rail .nt-hd__search-toggle { display: inline-flex; }
  .nt-hd--rail .nt-hd__search { position: fixed; inset-block-start: 20px; inset-inline-start: calc(var(--nt-rail) + 16px); inline-size: min(440px, 50vw); padding: 0; z-index: 71; }
  .nt-hd--rail .nt-hd__search input { background: var(--color-surface); color: var(--color-text); box-shadow: var(--nt-card-shadow); }
  .nt-hd--rail .nt-hd__backdrop { display: none; }
  .nt-hd--rail .nt-hd__panel { position: fixed; inset-block: 0; inset-inline-start: var(--nt-rail); inline-size: min(460px, 44vw); z-index: 69; padding: 28px 8px;
    background: var(--color-brand); color: var(--color-brand-contrast); translate: 100% 0; visibility: hidden; box-shadow: var(--nt-card-shadow); transition: translate .5s var(--nt-ease), visibility 0s .5s; }
  :root[dir="ltr"] .nt-hd--rail .nt-hd__panel { translate: -100% 0; }
  .nt-hd--rail .nt-hd__panel:target { translate: 0 0; visibility: visible; transition: translate .5s var(--nt-ease); }
  .nt-hd--rail .nt-hd__panel-head { border: 0; }
  .nt-hd--rail .nt-hd__panel .nt-hd__closer { display: inline-flex; }
  .nt-hd--rail .nt-hd__panel [data-awix-nav-close] { display: none; }
  .nt-hd--rail .nt-nav__item { border-color: color-mix(in srgb, currentColor 25%, transparent); }
  .nt-hd--rail .nt-nav__link { font-size: 1.5rem; font-weight: var(--nt-wt-d); min-block-size: 64px; }
  .nt-hd--rail .nt-nav__link:hover { color: var(--color-accent); }
  .nt-hd--rail .nt-nav__sublink { padding-inline: 36px 20px; }
  .nt-hd--rail .nt-nav__sub { display: block; background: none; }
  .nt-hd--rail .nt-nav__toggle, .nt-hd--rail .nt-nav__link--toggle svg { display: none; }
}

/* ap:header-late -- after nt:header-rail so these win */
@media (min-width: 990px) {
  .nt-hd--rail { border-inline-end: 0; background-color: var(--color-surface); }
  .nt-hd--rail { background-image: repeating-linear-gradient(180deg, color-mix(in srgb, var(--color-brand) 80%, transparent) 0 10px, transparent 10px 18px); background-size: 3px 100%; background-repeat: no-repeat; background-position: left top; }
}
@media (min-width: 990px) {
  .nt-hd--rail .nt-hd__panel { --nt-cur: var(--color-surface); }
  .nt-hd--rail .nt-nav__item.is-current > .nt-nav__link { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .28em; }
}
