/* Pack and Kin Studio — the shared skin for every PUBLIC (anonymous) page.
   Home, pricing, sign-up, dealer program, legal, login and the error pages all
   link this one file.

   WHY IT EXISTS. The dark gradient this replaces was hand-copied into nine
   templates, so every palette change was a nine-file sweep that nothing
   enforced — and the marketing pages had drifted onto a palette that appears
   nowhere in static/brand/tokens.css, the file that calls itself the source of
   truth. This restores the real brand: cream ground, navy ink, gold and red.

   NO JAVASCRIPT is needed by anything styled here, and none should be added.
   config/test_csp_nonce_coverage.py holds inline scripts and on*= handlers at a
   hard zero; disclosure widgets use <details>/<summary> for that reason.

   Colours are the tokens from static/brand/tokens.css (source of truth:
   core/branding.py), re-declared rather than imported so a public page is one
   request and cannot render unstyled while a second file is in flight. */

:root {
  /* --- brand, straight from tokens.css --- */
  --pk-navy: #091E49;
  --pk-navy-dark: #050F30;
  --pk-red: #E1322B;
  --pk-red-dark: #B8261F;
  /* The fill behind WHITE button text (QA-054). The brand red measures 4.47:1
     against white, just under WCAG AA's 4.5 for text the size of a button label;
     this is the nearest shade that clears it with margin (5.05:1). Brand red
     stays the colour of every accent that carries no text. */
  --pk-red-button: #D32C26;
  --pk-gold: #FEA724;
  --pk-sky: #2AC4E6;
  --pk-ink: #15233B;
  --pk-slate: #5A6475;
  --pk-cloud: #FDF7EB;
  --pk-line: #EBE2D1;
  /* Red for small TEXT on the cream and white grounds (QA-069). The brand red
     #E1322B measures 3.9-4.4:1 there, under the 4.5:1 AA floor for body-size
     text; #B8261F measures 5.9:1 on #F7EFE0. The brand red stays for large
     headings, icons and the wordmark (a logotype, which WCAG 1.4.3 exempts).
     Button fills behind white text are --pk-red-button (QA-054). */
  --pk-red-text: #B8261F;

  /* --- derived surfaces. Warm neutrals only: a grey card on a cream ground
         reads as dirty, so every "white" here carries a little of the cloud. --- */
  --surface: #FFFDF8;
  --surface-sunk: #F7EFE0;
  --ink-soft: #3C4A63;
  --line-soft: #F0E8D9;
  --gold-wash: #FFF4DF;
  --red-wash: #FDECEA;
  --navy-wash: #EDF1F8;
  --green: #1F7A4C;
  --green-wash: #E7F4EC;

  --shadow-sm: 0 1px 2px rgba(9, 30, 73, .06), 0 2px 6px rgba(9, 30, 73, .05);
  --shadow-md: 0 4px 10px rgba(9, 30, 73, .06), 0 14px 30px rgba(9, 30, 73, .08);
  --shadow-lg: 0 10px 20px rgba(9, 30, 73, .07), 0 30px 60px rgba(9, 30, 73, .12);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;

  --measure: 62ch;
  --page: 1120px;

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  /* The footer sits at the bottom of a short page rather than halfway up it
     with bare cream underneath (the legal version list, the error pages). */
  display: flex;
  flex-direction: column;
  background: var(--pk-cloud);
  color: var(--pk-ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

h1, h2, h3, h4 {
  line-height: 1.15;
  letter-spacing: -0.018em;
  margin: 0 0 .5em;
  color: var(--pk-navy);
  font-weight: 800;
}
h1 { font-size: clamp(2.1rem, 1.35rem + 2.6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.35rem); }
h3 { font-size: 1.18rem; }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--pk-red-text); text-decoration: none; font-weight: 650; }
a:hover { text-decoration: underline; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--pk-gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===========================================================================
   LAYOUT
   =========================================================================== */

/* `padding-inline` / `padding-block`, never the shorthand, on these two: they are
   routinely on ONE element (`class="pk-page pk-section"`), and each shorthand
   zeroed the other's axis. On a phone the later `.pk-page { padding: 0 18px }`
   erased every section's vertical rhythm — the pricing page's "Start here" badge
   landed on its intro (readiness pass 2026-09-14, MEDIUM spacing). */
.pk-page { max-width: var(--page); margin: 0 auto; padding-inline: 24px; }
.pk-page--narrow { max-width: 820px; }

.pk-section { padding-block: 72px; }
.pk-section--tight { padding-block: 48px; }

/* An alternating band. Full-bleed colour, page-width contents. */
.pk-band { background: var(--surface); border-block: 1px solid var(--line-soft); }
.pk-band--sunk { background: var(--surface-sunk); border-color: var(--pk-line); }

/* The dark punctuation band. Used sparingly — two per page at most, or it stops
   being punctuation and becomes the old all-dark page again. */
.pk-band--navy {
  background:
    radial-gradient(circle at 12% 0%, #12306B 0, transparent 55%),
    radial-gradient(circle at 100% 100%, #0B2350 0, transparent 50%),
    var(--pk-navy);
  border-color: transparent;
  color: #E8EEF9;
}
.pk-band--navy h1,
.pk-band--navy h2,
.pk-band--navy h3 { color: #FFFFFF; }
/* `:not(.pk-btn)` IS LOAD-BEARING. A button is an <a> too, and this selector
   scores (0,1,1) against .pk-btn--gold's (0,1,0) — so without the exclusion it
   repaints every button label gold, and a gold button in this band renders its
   text gold on gold. That shipped: the two Partners buttons were empty pills
   until a screenshot caught it. Band rules restyle PROSE links; they must never
   reach a component that already owns its colours. */
.pk-band--navy a:not(.pk-btn) { color: var(--pk-gold); }
.pk-band--navy .pk-lede,
.pk-band--navy .pk-muted { color: #AFC0DC; }

.pk-eyebrow {
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .74rem;
  font-weight: 800;
  color: var(--pk-red-text);
  margin: 0 0 10px;
}
.pk-band--navy .pk-eyebrow { color: var(--pk-gold); }

.pk-lede { font-size: 1.13rem; color: var(--ink-soft); max-width: var(--measure); }
.pk-muted { color: var(--pk-slate); }
.pk-small { font-size: .87rem; }
.pk-center { text-align: center; }
.pk-center .pk-lede { margin-inline: auto; }

/* ===========================================================================
   HEADER / FOOTER
   =========================================================================== */

.pk-top {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253, 247, 235, .88);
  backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--pk-line);
}
.pk-top__inner {
  display: flex; align-items: center; gap: 20px;
  min-height: 68px; padding-block: 10px;
}
.pk-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--pk-navy); font-weight: 800; }
.pk-brand:hover { text-decoration: none; }
.pk-brand img { width: 34px; height: 34px; }
.pk-brand__name { font-size: 1.06rem; letter-spacing: -.01em; }
.pk-brand__name .accent { color: var(--pk-red); }

.pk-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
/* `:not(.pk-btn)` IS LOAD-BEARING (QA-054). ``.pk-nav a`` scores (0,1,1) and
   ``.pk-btn--primary`` (0,1,0), so without the exclusion the header's red
   "Create your store" pill took this grey text colour — measured 2.00:1 on every
   public page — and its hover turned the label red on red. Same fix, same
   reason, as ``.pk-band--navy a:not(.pk-btn)`` above. */
.pk-nav a:not(.pk-btn) { color: var(--ink-soft); font-weight: 650; font-size: .94rem; }
.pk-nav a:not(.pk-btn):hover { color: var(--pk-red-text); text-decoration: none; }

/* The phone menu (QA-071) — hidden until the wide links stop fitting. */
.pk-menu { display: none; position: relative; }
.pk-menu__button {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--pk-line); background: var(--surface);
  color: var(--pk-navy); font-weight: 750; font-size: .9rem;
}
.pk-menu__button::-webkit-details-marker { display: none; }
.pk-menu__bars, .pk-menu__bars::before, .pk-menu__bars::after {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor;
}
.pk-menu__bars { position: relative; }
.pk-menu__bars::before, .pk-menu__bars::after { content: ""; position: absolute; left: 0; }
.pk-menu__bars::before { top: -6px; }
.pk-menu__bars::after { top: 6px; }
.pk-menu[open] .pk-menu__button { border-color: var(--pk-navy); }
.pk-menu__panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 110;
  display: flex; flex-direction: column; gap: 2px; min-width: 220px; padding: 8px;
  background: var(--surface); border: 1px solid var(--pk-line);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
}
.pk-nav .pk-menu__panel a:not(.pk-btn) { display: block; padding: 11px 12px; border-radius: 8px; font-size: 1rem; }
.pk-nav .pk-menu__panel a:not(.pk-btn):hover { background: var(--surface-sunk); }
.pk-menu__panel .pk-btn { margin-top: 6px; }
.pk-menu__narrow { display: none; }

/* The page body grows so a short page's footer meets the bottom of the window. */
body > main { flex: 1 0 auto; }

.pk-foot {
  background: var(--pk-navy-dark);
  color: #9DB0CE;
  padding: 52px 0 40px;
  font-size: .92rem;
}
.pk-foot a:not(.pk-btn) { color: #CBD8EE; font-weight: 600; }
.pk-foot__cols {
  display: grid; gap: 32px;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  align-items: start;
}
.pk-foot h4 {
  color: #FFFFFF; font-size: .78rem; text-transform: uppercase;
  letter-spacing: .12em; margin: 0 0 12px;
}
.pk-foot ul { list-style: none; margin: 0; padding: 0; }
.pk-foot li { margin: 0 0 8px; }
.pk-foot__bar {
  margin-top: 36px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center;
}
.pk-foot__brand { display: flex; align-items: center; gap: 9px; color: #FFFFFF; font-weight: 800; }
/* The credential pages' one-line footer (auth/credential_base.html). */
.pk-foot--slim { padding: 18px 0; }
.pk-foot--slim .pk-foot__bar { margin-top: 0; padding-top: 0; border-top: 0; }
.pk-foot__brand img { width: 28px; height: 28px; }

/* ===========================================================================
   BUTTONS
   =========================================================================== */

.pk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 999px;
  padding: 13px 26px;
  font: inherit; font-weight: 750; font-size: .98rem; line-height: 1.2;
  cursor: pointer; text-align: center;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.pk-btn:hover { text-decoration: none; transform: translateY(-1px); }
.pk-btn:active { transform: translateY(0); }

.pk-btn--primary { background: var(--pk-red-button); color: #FFFFFF; box-shadow: var(--shadow-sm); }
.pk-btn--primary:hover { background: var(--pk-red-dark); box-shadow: var(--shadow-md); }

.pk-btn--gold { background: var(--pk-gold); color: var(--pk-navy); box-shadow: var(--shadow-sm); }
.pk-btn--gold:hover { background: #F09A14; box-shadow: var(--shadow-md); }

.pk-btn--ghost { background: transparent; color: var(--pk-navy); border-color: #D8CDB8; }
.pk-btn--ghost:hover { background: var(--surface); border-color: var(--pk-navy); }
.pk-band--navy .pk-btn--ghost { color: #FFFFFF; border-color: rgba(255,255,255,.42); }
.pk-band--navy .pk-btn--ghost:hover { background: rgba(255,255,255,.1); border-color: #FFFFFF; }

.pk-btn--sm { padding: 9px 18px; font-size: .9rem; }
.pk-btn--block { display: flex; width: 100%; }

.pk-btnrow { display: flex; flex-wrap: wrap; gap: 12px; }
.pk-center .pk-btnrow { justify-content: center; }

/* ===========================================================================
   CARDS & GRIDS
   =========================================================================== */

.pk-grid { display: grid; gap: 20px; }
.pk-grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.pk-grid--3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.pk-grid--4 { grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); }

.pk-card {
  background: var(--surface);
  border: 1px solid var(--pk-line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.pk-card--link { display: block; color: inherit; transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease; }
.pk-card--link:hover {
  text-decoration: none; transform: translateY(-3px);
  box-shadow: var(--shadow-md); border-color: var(--pk-gold);
}
.pk-card h3 { margin: 0 0 6px; }
.pk-card p { color: var(--pk-slate); font-size: .95rem; }

.pk-card__icon {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 14px;
  background: var(--gold-wash); color: var(--pk-navy);
}
.pk-card__icon svg { width: 24px; height: 24px; }
.pk-card__icon--red   { background: var(--red-wash);   color: var(--pk-red); }
.pk-card__icon--navy  { background: var(--navy-wash);  color: var(--pk-navy); }
.pk-card__icon--green { background: var(--green-wash); color: var(--green); }

.pk-card__go { display: inline-block; margin-top: 14px; color: var(--pk-red-text); font-weight: 750; font-size: .93rem; }
.pk-card--link:hover .pk-card__go { text-decoration: underline; }

/* Feature list with a tick. */
.pk-ticks { list-style: none; margin: 0; padding: 0; }
.pk-ticks li { position: relative; padding: 5px 0 5px 27px; color: var(--ink-soft); font-size: .95rem; }
.pk-ticks li::before {
  content: ""; position: absolute; left: 2px; top: 12px;
  width: 12px; height: 7px; border: 2px solid var(--green);
  border-top: 0; border-right: 0; transform: rotate(-45deg);
}
.pk-band--navy .pk-ticks li { color: #C9D6EC; }
.pk-band--navy .pk-ticks li::before { border-color: var(--pk-gold); }

.pk-chip {
  display: inline-block; font-size: .76rem; font-weight: 650;
  border-radius: 999px; padding: 4px 11px;
  background: var(--navy-wash); color: var(--pk-navy); border: 1px solid #DCE4F2;
}
.pk-chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ===========================================================================
   FORMS  (sign-up, login, dealer application, capture)
   =========================================================================== */

.pk-shell {
  min-height: 100vh;
  display: grid; grid-template-rows: auto 1fr auto;
}
.pk-formwrap { display: grid; place-items: center; padding: 40px 20px 64px; }

.pk-panel {
  width: 100%; max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--pk-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px;
}
.pk-panel--wide { max-width: 560px; }
.pk-panel__logo { display: block; width: 52px; height: 52px; margin: 0 auto 12px; }
.pk-panel__brand { text-align: center; font-size: 1.22rem; font-weight: 800; color: var(--pk-navy); }
.pk-panel__brand .accent { color: var(--pk-red); }
.pk-panel__sub {
  margin: 8px 0 22px; text-align: center;
  color: var(--pk-slate); font-size: .96rem;
}

label {
  display: block; margin: 15px 0 6px;
  font-size: .74rem; font-weight: 750;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--pk-slate);
}
input, select, textarea {
  width: 100%;
  border: 1px solid #DCD2BF;
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  color: var(--pk-ink);
  padding: 11px 13px;
  font-family: inherit; font-size: .97rem;
}
textarea { resize: vertical; min-height: 92px; }
input::placeholder, textarea::placeholder { color: #9AA3B2; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--pk-navy);
  box-shadow: 0 0 0 3px rgba(9, 30, 73, .12);
}
.help { margin: 6px 0 0; color: var(--pk-slate); font-size: .81rem; }

/* `.hint` is `.help` under the name the credential templates already use — it
   also wraps Django's password-validator help text, which renders as its own
   <ul>, so the list needs sizing too. */
.hint { margin: 6px 0 0; color: var(--pk-slate); font-size: .81rem; line-height: 1.45; }
.hint ul { margin: 4px 0 0; padding-left: 18px; }

button, .pk-submit {
  margin-top: 24px; width: 100%;
  border: none; border-radius: 999px; padding: 13px;
  font-family: inherit; font-weight: 750; font-size: 1rem;
  color: #FFFFFF; background: var(--pk-red-button); cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background-color .12s ease, box-shadow .12s ease;
}
button:hover, .pk-submit:hover { background: var(--pk-red-dark); box-shadow: var(--shadow-md); }
/* .pk-btn is a styled anchor in its own right — never a full-width form submit. */
button.pk-btn { margin-top: 0; width: auto; }

.error { margin-top: 6px; color: var(--pk-red-dark); font-size: .84rem; font-weight: 600; }
.errorbox {
  margin: 16px 0; padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: var(--red-wash); border: 1px solid #F3C7C3;
  color: #8E211B; font-size: .9rem;
}
.foot { margin-top: 18px; text-align: center; font-size: .9rem; color: var(--pk-slate); }
.msg { color: var(--ink-soft); line-height: 1.6; }
.icon { font-size: 2.4rem; text-align: center; margin: 4px 0 10px; }
.sub { /* legacy hook the sign-up templates already use for their subtitle */
  margin: 8px 0 22px; text-align: center; color: var(--pk-slate); font-size: .96rem;
}

/* The FB-017 consent block (legal/_consent_block.html). */
.consent {
  margin-top: 22px; padding: 14px 16px;
  border-radius: var(--radius); background: var(--gold-wash);
  border: 1px solid #F2E0BC;
}
.consent-lead { margin: 0 0 8px; color: var(--ink-soft); font-size: .84rem; line-height: 1.5; }
.consent-docs { margin: 0 0 10px; padding-left: 18px; font-size: .84rem; }
.consent-docs li { margin: 3px 0; }
.consent-ver { color: var(--pk-slate); }
.consent-check {
  display: flex; align-items: flex-start; gap: 9px; margin: 0;
  text-transform: none; letter-spacing: 0; font-size: .88rem; color: var(--pk-ink);
}
.consent-check input { width: auto; margin: 3px 0 0; }

/* ===========================================================================
   DISCLOSURE (FAQ) — <details>, because the CSP holds inline script at zero.
   =========================================================================== */

.pk-faq { border-top: 1px solid var(--pk-line); }
.pk-faq details { border-bottom: 1px solid var(--pk-line); }
.pk-faq summary {
  cursor: pointer; list-style: none;
  padding: 20px 44px 20px 0; position: relative;
  font-weight: 700; font-size: 1.04rem; color: var(--pk-navy);
}
.pk-faq summary::-webkit-details-marker { display: none; }
.pk-faq summary::after {
  content: ""; position: absolute; right: 10px; top: 26px;
  width: 10px; height: 10px;
  border-right: 2px solid var(--pk-slate); border-bottom: 2px solid var(--pk-slate);
  transform: rotate(45deg); transition: transform .16s ease;
}
.pk-faq details[open] summary::after { transform: rotate(-135deg); top: 30px; }
.pk-faq summary:hover { color: var(--pk-red-text); }
.pk-faq__a { padding: 0 44px 22px 0; color: var(--ink-soft); max-width: var(--measure); }

/* ===========================================================================
   RESPONSIVE
   =========================================================================== */

@media (max-width: 900px) {
  .pk-foot__cols { grid-template-columns: 1fr 1fr; }
}
/* The wide links fold into the menu BEFORE they stop fitting, not at the phone
   breakpoint. With the three audience pages (Stores · Mailrooms · Online
   sellers) beside Pricing/Dealers/Developers the masthead needs ~1,100px, and
   between that and 720px the links wrapped to two lines and then ran under the
   wordmark — measured 2026-10-05 at 1024, 900 and 760. `nowrap` keeps a label on
   one line until the fold; the menu carries every destination (QA-071). */
.pk-nav a { white-space: nowrap; }
@media (max-width: 1120px) {
  .pk-nav__wide { display: none; }
  .pk-menu { display: block; }
}
@media (max-width: 720px) {
  .pk-section { padding-block: 52px; }
  .pk-page { padding-inline: 18px; }
  .pk-nav { gap: 14px; }
  .pk-panel { padding: 24px; }
}
@media (max-width: 520px) {
  .pk-foot__cols { grid-template-columns: 1fr; }
  .pk-btnrow .pk-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .pk-btn:hover, .pk-card--link:hover { transform: none; }
}

/* ===========================================================================
   CHOICE ROWS
   A stacked list of destinations inside a panel: the sign-up audience chooser
   (signup/chooser.html) and the multi-portal chooser someone lands on when
   their account reaches more than one portal (auth/portal_chooser.html).
   =========================================================================== */

.pk-choice {
  display: flex; align-items: center; gap: 13px;
  margin: 10px 0; padding: 14px 16px;
  border: 1px solid var(--pk-line); border-radius: var(--radius);
  background: var(--surface); color: var(--pk-ink);
  transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease;
}
.pk-choice:hover {
  text-decoration: none; transform: translateY(-2px);
  border-color: var(--pk-gold); box-shadow: var(--shadow-sm);
}
.pk-choice__icon {
  width: 38px; height: 38px; flex: none; border-radius: 11px;
  display: grid; place-items: center; font-size: 1.15rem;
  background: var(--gold-wash);
}
.pk-choice__text { flex: 1; min-width: 0; }
.pk-choice__t { display: block; font-weight: 750; }
/* Regular weight: the card inherited 650, close enough to the 750 title that the
   description competed with it; and no one-word last line (QA-080). */
.pk-choice__d { display: block; color: var(--pk-slate); font-size: .86rem; line-height: 1.4; font-weight: 400; text-wrap: pretty; }
.pk-choice__go { color: var(--pk-red-text); font-weight: 800; transition: transform .16s ease; }
.pk-choice:hover .pk-choice__go { transform: translateX(3px); }

/* A secondary, low-emphasis submit — the "Sign out" on the chooser and
   no-workspace pages, which must stay a POST form (Django 5+ LogoutView is
   POST-only and a GET anchor 405s: core/accounts/test_logout_templates.py). */
.pk-linkform { margin-top: 18px; text-align: center; }
.pk-linkform button {
  margin: 0; width: auto; padding: 9px 20px;
  background: transparent; color: var(--pk-slate);
  border: 1px solid var(--pk-line); font-size: .9rem; box-shadow: none;
}
.pk-linkform button:hover { background: var(--surface-sunk); color: var(--pk-ink); box-shadow: none; }

/* An error page's heading sits inside a narrow panel, so the fluid h1 that a
   marketing hero wants is far too large here. */
.pk-panel h1 { font-size: 1.5rem; text-align: center; }

/* The wordmark must not wrap. At 375px "Pack and Kin Studio" broke after "Kin",
   pushing the header to two lines and shoving the nav down with it. */
.pk-brand__name { white-space: nowrap; }
.pk-nowrap { white-space: nowrap; }
/* At 375px the masthead cannot hold mark + wordmark + "Sign in" + the primary
   CTA; measured, "Sign in" wrapped to two lines and overlapped "Studio". Until
   QA-071 the WORDMARK gave way, leaving a favicon-only front door. Now "Sign in"
   and the CTA move into the menu instead — one tap away, never dropped — and the
   wordmark stays. */
@media (max-width: 460px) {
  .pk-brand img { width: 30px; height: 30px; }
  .pk-top__inner { gap: 12px; }
  .pk-nav__roomy { display: none; }
  .pk-menu__narrow { display: block; }
  .pk-menu__panel .pk-btn.pk-menu__narrow { display: flex; }
}

/* Skip link. Off-screen until focused, then pinned over the sticky masthead —
   `top` must clear nothing because it paints above it (.pk-top is z-index 100). */
.pk-skip {
  position: absolute; left: -9999px; top: 0;
  z-index: 200; padding: 12px 20px;
  background: var(--pk-navy); color: #FFFFFF;
  border-radius: 0 0 var(--radius) 0; font-weight: 750;
}
.pk-skip:focus { left: 0; text-decoration: none; }
