/* site_support.css — /support/: help centre hub, docs, contact, tickets.
   Sibling to site_audience.css: reads the same tokens (--acc/--acc-ink set by
   support_base.html to --rose/--rose-deep, plus --card, --ink, --soft, the
   --r- radii, --lift, --fill-soft, --border-dash, --display and --body from
   site_toybox.css). Forms reuse .auth-form, .auth-fld and .auth-msg wholesale
   (site_toybox.css) -- the same input contract as every other signed-out
   form on the site.

   Never write a star followed by a slash inside this comment (e.g. a token
   glob): it closes the comment early and the browser drops the next rule.

   The hub, docs index and article are one system: the same hairline
   panels, one soft shadow, a lavender icon tile per category, rose for the
   thing you act on (search, the current filter or article). The hub is
   editorial; the docs pages get progressively quieter so reading wins.
   Contact and ticket pages keep their own devices (notepaper, the torn
   ticket stub, the stamped status) and only share the tokens. */

:root{
  --sup-r:22px;--sup-r-row:16px;
  --sup-wash:color-mix(in oklch, var(--violet) 9%, var(--card));
  --sup-line:color-mix(in oklch, var(--border) 75%, var(--card));
  --sup-shadow:0 1px 2px rgb(24 22 70 / .05), 0 10px 28px -14px rgb(24 22 70 / .2);
  --sup-shadow-hi:0 2px 4px rgb(24 22 70 / .05), 0 22px 44px -18px rgb(24 22 70 / .3);
  --sup-sticky:6.5rem;
}
[data-tb-theme="dark"]{
  --sup-wash:color-mix(in oklch, var(--violet) 20%, var(--card));
  --sup-line:var(--border);
  --sup-shadow:0 1px 2px rgb(0 0 0 / .35), 0 10px 28px -14px rgb(0 0 0 / .6);
  --sup-shadow-hi:0 2px 4px rgb(0 0 0 / .35), 0 22px 44px -18px rgb(0 0 0 / .7);
}

/* Tangerine text ink for the contact note (hub + contact page): --tang-deep
   has no dark twin in site_toybox.css, so this file supplies one. */
:root{--tang-ink:var(--tang-deep)}
[data-tb-theme="dark"]{--tang-ink:oklch(80% 0.12 60)}

/* --- Shared atoms --- */
.doc-icon{display:block;flex:none}

/* The category mark: a lavender tile with a violet glyph, one colour family
   for every category, so the icon tells the topic and nothing competes. */
.sup-tile{
  flex:none;width:2.5rem;height:2.5rem;border-radius:12px;display:grid;place-items:center;
  background:var(--sup-wash);color:var(--violet-deep);
}
.sup-tile .doc-icon{width:20px;height:20px}
.sup-tile--sm{width:1.85rem;height:1.85rem;border-radius:9px}
.sup-tile--sm .doc-icon{width:16px;height:16px}
.sup-tile--lg{width:3.2rem;height:3.2rem;border-radius:16px}
.sup-tile--lg .doc-icon{width:24px;height:24px}

/* Buttons: the .chip-btn shape, sized to a 44px target, flat (no lift) so a
   pair of them inside a panel reads as actions, not as more cards. */
.sup-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.45rem;min-height:2.75rem;
  padding:.55em 1.25em;border-radius:var(--r-pill);border:0;cursor:pointer;
  font-family:var(--display);font-weight:800;font-size:.9rem;line-height:1.2;text-decoration:none;
  transition:background-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), translate var(--dur-fast) var(--ease);
}
.sup-btn:hover{translate:0 -1px}
.sup-btn:active{translate:0 0}
.sup-btn:focus-visible{outline:none;box-shadow:var(--ring-strong)}
.sup-btn--rose{background:var(--rose);color:#fff}
.sup-btn--rose:hover{background:var(--rose-deep)}
.sup-btn--tang{background:var(--tang);color:#fff}
.sup-btn--tang:hover{background:var(--tang-deep)}
.sup-btn--quiet{background:var(--card);color:var(--ink);box-shadow:inset 0 0 0 1px var(--border)}
.sup-btn--quiet:hover{background:var(--hover)}
.sup-btn--quiet:focus-visible{box-shadow:inset 0 0 0 1px var(--border), var(--ring-strong)}
[data-tb-theme="dark"] .sup-btn--rose:hover{background:oklch(62% 0.16 10)}
@media (forced-colors:active){.sup-btn{border:2px solid ButtonText}}

/* --- Section header for contact and ticket pages (centred) --- */
.sup-head{
  text-align:center;max-width:38rem;margin:0 auto clamp(2.2rem, 5vw, 3rem);
  display:grid;justify-items:center;
}
.sup-head h1{font-size:clamp(2rem, 4.6vw, 3.1rem);line-height:1.08;margin:0 0 .8rem}
.sup-head .line{margin:0 auto;max-width:40ch}

.sup-crumb{
  display:flex;align-items:center;gap:.4rem;justify-content:center;flex-wrap:wrap;
  font-weight:700;font-size:.85rem;color:var(--soft);margin-bottom:1.2rem;
}
.sup-crumb a{color:var(--soft);text-decoration:none;border-radius:4px}
.sup-crumb a:hover{color:var(--acc-ink);text-decoration:underline}
.sup-crumb a:focus-visible{outline:none;box-shadow:var(--ring-strong)}
.sup-crumb span[aria-hidden]{opacity:.6}
.sup-crumb [aria-current]{color:var(--ink)}
.sup-crumb--start{justify-content:flex-start;margin-bottom:clamp(1rem, 2.5vw, 1.5rem)}

/* --- Docs page header: left-aligned and compact -- a tool, not a poster --- */
.sup-pagehead{display:grid;gap:.15rem;margin-bottom:clamp(1.4rem, 3vw, 2rem)}
.sup-pagehead .sup-crumb{justify-content:flex-start;margin-bottom:.6rem}
.sup-pagehead h1{font-size:clamp(2rem, 4vw, 2.8rem);line-height:1.08;margin:0 0 .45rem}
.sup-pagehead .line{margin:0;font-size:1.02rem;max-width:52ch}

/* --- Hub hero: the search is the first thing you can do --- */
.sup-hero{
  position:relative;isolation:isolate;text-align:center;display:grid;justify-items:center;
  max-width:46rem;margin:0 auto clamp(3rem, 7vw, 4.5rem);padding-top:clamp(.5rem, 2vw, 1.5rem);
}
/* Two low-contrast glows behind the heading -- the only decoration on the
   page, CSS only, clipped by the page so they can never cause overflow. */
.sup-hero__glow{
  position:absolute;z-index:-1;inset:-4rem -8rem -2rem;pointer-events:none;
  background:
    radial-gradient(closest-side at 22% 38%, color-mix(in oklch, var(--violet) 16%, transparent), transparent),
    radial-gradient(closest-side at 80% 60%, color-mix(in oklch, var(--rose) 14%, transparent), transparent);
  filter:blur(8px);
}
#tb-main{overflow-x:clip}
.sup-hero h1{
  font-size:clamp(2.3rem, 5.2vw, 3.6rem);line-height:1.04;letter-spacing:-.015em;margin:0 0 .8rem;
}
.sup-hero .line{margin:0 auto;font-size:1.06rem;max-width:46ch;text-wrap:balance}

/* --- Search: one pill, two sizes (hero on the hub, compact in the docs) --- */
.docs-search{margin-bottom:1.4rem}
.docs-search--hero{width:100%;max-width:40rem;margin:clamp(1.6rem, 3.5vw, 2.2rem) auto 0;text-align:left}
.docs-search__row{
  display:flex;align-items:center;gap:.65rem;min-height:3.25rem;
  background:var(--card);border-radius:var(--r-pill);
  box-shadow:inset 0 0 0 1px var(--sup-line), var(--sup-shadow);
  padding:.35rem .35rem .35rem 1.15rem;
  transition:box-shadow var(--dur-fast) var(--ease);
}
.docs-search--hero .docs-search__row{min-height:3.6rem;padding-left:1.3rem;box-shadow:inset 0 0 0 1px var(--sup-line), var(--sup-shadow-hi)}
.docs-search__row .doc-icon{color:var(--soft)}
.docs-search__row input{
  flex:1;border:0;background:transparent;font:inherit;font-weight:600;font-size:1rem;color:var(--ink);
  min-width:0;padding:.55em 0;
}
.docs-search--hero .docs-search__row input{font-size:1.08rem}
.docs-search__row input:focus{outline:none}
.docs-search__row input::placeholder{color:var(--soft);opacity:.75}
.docs-search__row button{
  font-family:var(--display);font-weight:800;font-size:.9rem;color:#fff;background:var(--rose);
  border:0;border-radius:var(--r-pill);padding:0 1.35em;min-height:2.6rem;cursor:pointer;flex:none;
  transition:background-color var(--dur-fast) var(--ease);
}
.docs-search--hero .docs-search__row button{min-height:2.9rem;padding:0 1.6em}
.docs-search__row button:hover{background:var(--rose-deep)}
.docs-search__row button:focus-visible{outline:none;box-shadow:var(--ring-strong)}
.docs-search__row:has(input:focus-visible){box-shadow:inset 0 0 0 1.5px var(--violet), var(--sup-shadow), var(--ring)}
@media (forced-colors:active){.docs-search__row{border:1px solid CanvasText}}

/* --- Hub sections: one heading row, one gap --- */
.sup-sec{margin-bottom:clamp(3rem, 7vw, 4.5rem)}
.sup-sec:last-child{margin-bottom:clamp(1rem, 3vw, 2rem)}
.sup-sec-head{
  display:flex;align-items:baseline;justify-content:space-between;gap:.4rem 1rem;flex-wrap:wrap;
  margin-bottom:1.2rem;
}
.sup-sec-head h2{font-size:clamp(1.45rem, 2.6vw, 1.85rem);margin:0}
.sup-more{
  display:inline-flex;align-items:center;gap:.35rem;color:var(--acc-ink);font-weight:800;font-size:.95rem;
  text-decoration:none;border-radius:6px;padding:.3rem .1rem;
}
.sup-more .doc-icon{width:16px;height:16px;transition:translate var(--dur-fast) var(--ease)}
.sup-more:hover{text-decoration:underline;text-underline-offset:3px}
.sup-more:hover .doc-icon{translate:2px 0}
.sup-more:focus-visible{outline:none;box-shadow:var(--ring-strong)}

/* Topics: real categories with their first articles. Equal cards (grid
   rows stretch, the "All N" link pinned to the bottom), one anatomy each. */
.sup-topics{
  list-style:none;margin:0;padding:0;
  display:grid;grid-template-columns:repeat(auto-fill, minmax(min(100%, 17rem), 1fr));gap:1rem;
}
.sup-topic{
  display:flex;flex-direction:column;gap:.85rem;
  background:var(--card);border-radius:var(--sup-r);box-shadow:inset 0 0 0 1px var(--sup-line), var(--sup-shadow);
  padding:1.25rem 1.25rem 1.1rem;
  transition:box-shadow var(--dur) var(--ease), translate var(--dur) var(--ease);
}
.sup-topic:hover{box-shadow:inset 0 0 0 1px var(--sup-line), var(--sup-shadow-hi);translate:0 -2px}
.sup-topic__head{display:flex;align-items:center;gap:.8rem}
.sup-topic h3{margin:0;font-size:1.1rem;line-height:1.2}
.sup-topic h3 a{color:var(--ink);text-decoration:none;border-radius:4px}
.sup-topic h3 a:hover{color:var(--acc-ink);text-decoration:underline;text-underline-offset:3px}
.sup-topic__list{list-style:none;margin:0;padding:0;display:grid}
.sup-topic__list li + li{border-top:1px solid var(--sup-line)}
.sup-topic__list a{
  display:flex;align-items:center;justify-content:space-between;gap:.6rem;min-height:2.75rem;
  padding:.45rem .2rem;color:var(--soft);font-weight:600;font-size:.95rem;line-height:1.35;
  text-decoration:none;border-radius:8px;
}
.sup-topic__list .doc-icon{width:16px;height:16px;opacity:0;translate:-3px 0;
  transition:opacity var(--dur-fast) var(--ease), translate var(--dur-fast) var(--ease)}
.sup-topic__list a:hover{color:var(--ink)}
.sup-topic__list a:hover .doc-icon, .sup-topic__list a:focus-visible .doc-icon{opacity:1;translate:0 0;color:var(--acc-ink)}
.sup-topic__all{
  margin-top:auto;align-self:flex-start;display:inline-flex;align-items:center;gap:.35rem;
  font-family:var(--display);font-weight:800;font-size:.86rem;color:var(--acc-ink);
  text-decoration:none;border-radius:6px;padding:.35rem .1rem;
}
.sup-topic__all .doc-icon{width:15px;height:15px;transition:translate var(--dur-fast) var(--ease)}
.sup-topic__all:hover{text-decoration:underline;text-underline-offset:3px}
.sup-topic__all:hover .doc-icon{translate:2px 0}
.sup-topic a:focus-visible{outline:none;box-shadow:var(--ring-strong)}

/* --- Still stuck: one band, two clearly different routes to a person --- */
.sup-band{
  display:grid;grid-template-columns:minmax(0, 15rem) minmax(0, 1fr);gap:clamp(1.2rem, 3vw, 2.5rem);
  align-items:center;background:var(--sup-wash);border-radius:calc(var(--sup-r) + 6px);
  padding:clamp(1.3rem, 3.5vw, 2.4rem);
}
.sup-band__intro h2{font-size:clamp(1.45rem, 2.6vw, 1.85rem);margin:0 0 .6rem}
.sup-band__intro p{margin:0;color:var(--soft);font-weight:600;line-height:1.55}
@media (max-width:900px){.sup-band{grid-template-columns:1fr}}

.sup-reach{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:1rem}
@media (max-width:760px){.sup-reach{grid-template-columns:1fr}}
.sup-reach__card{
  position:relative;overflow:hidden;display:flex;flex-direction:column;align-items:flex-start;gap:.5rem;
  background:var(--card);border-radius:var(--sup-r);box-shadow:var(--sup-shadow);
  padding:1.35rem 1.35rem 1.25rem;
}
/* the accent edge carries the route's colour, as on the contact and ticket
   pages it leads to: tangerine note, rose ticket */
.sup-reach__card::before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:var(--tone)}
.sup-reach__card--note{--tone:var(--tang)}
.sup-reach__card--ticket{--tone:var(--rose)}
.sup-reach h3{font-size:1.12rem;line-height:1.25;margin:.15rem 0 0}
.sup-reach p{margin:0;color:var(--soft);font-weight:600;font-size:.95rem;line-height:1.55;max-width:42ch}
.sup-reach__foot{
  margin-top:auto;padding-top:.75rem;display:flex;align-items:center;flex-wrap:wrap;gap:.6rem 1rem;
}
.sup-reach__icon{
  width:2.5rem;height:2.5rem;border-radius:12px;display:grid;place-items:center;
  background:color-mix(in oklch, var(--tone) 16%, var(--card));color:var(--tone-ink, var(--ink));
}
.sup-reach__card--note .sup-reach__icon{--tone-ink:var(--tang-ink)}
.sup-reach__card--ticket .sup-reach__icon{--tone-ink:var(--rose-deep)}
.sup-reach__icon .doc-icon{width:20px;height:20px}
.sup-reach__aside{display:flex;flex-wrap:wrap;gap:.2rem 1rem;font-size:.9rem;font-weight:700}
.sup-reach__aside a{color:var(--acc-ink);text-decoration:none;border-radius:4px;padding:.35rem 0}
.sup-reach__aside a:hover{text-decoration:underline;text-underline-offset:3px}
.sup-reach__aside a:focus-visible{outline:none;box-shadow:var(--ring-strong)}
/* the new-ticket page's submit button keeps the hub's rose */
.sup-reach__btn--rose{background:var(--rose);color:#fff}
.sup-reach__btn--rose:hover{background:var(--rose-deep)}

/* --- Docs: sticky rail + main column --- */
.docs-layout{
  display:grid;grid-template-columns:16.5rem minmax(0,1fr);gap:clamp(1.75rem, 3.5vw, 3rem);
  align-items:start;
}
.docs-aside{position:sticky;top:var(--sup-sticky);display:grid;gap:1rem}
.docs-main{min-width:0}

/* Sidebar panel. Categories fold (only the active one is open), so the panel
   stays shorter than the window and needs no scroll pane of its own; the
   max-height is only a safety net for a very short window. */
.docs-sidebar{
  background:var(--card);border-radius:var(--sup-r);box-shadow:inset 0 0 0 1px var(--sup-line), var(--sup-shadow);
  padding:.6rem;max-height:calc(100dvh - var(--sup-sticky) - 1.5rem);overflow-y:auto;overscroll-behavior:contain;
  scrollbar-width:thin;
}
.docs-sidebar nav > ul{list-style:none;margin:.25rem 0 0;padding:.25rem 0 0;border-top:1px solid var(--sup-line);display:grid;gap:.1rem}
.docs-sidebar__all, .docs-sidebar__cat > summary{
  display:flex;align-items:center;gap:.6rem;min-height:2.75rem;padding:.3rem .5rem;border-radius:12px;
  font-family:var(--display);font-weight:700;font-size:.9rem;line-height:1.25;color:var(--ink);
  text-decoration:none;cursor:pointer;
}
.docs-sidebar__all:hover, .docs-sidebar__cat > summary:hover{background:var(--hover)}
.docs-sidebar__all:focus-visible, .docs-sidebar__cat > summary:focus-visible{outline:none;box-shadow:var(--ring-strong)}
.docs-sidebar__all[aria-current="page"]{background:color-mix(in oklch, var(--rose) 9%, var(--card));color:var(--acc-ink);font-weight:800}
.docs-sidebar__cat > summary{list-style:none}
.docs-sidebar__cat > summary::-webkit-details-marker{display:none}
.docs-sidebar__name{flex:1;min-width:0}
.docs-sidebar__count{
  flex:none;min-width:1.6rem;padding:.1rem .45rem;border-radius:var(--r-pill);text-align:center;
  font-family:var(--body);font-weight:700;font-size:.75rem;color:var(--soft);background:var(--fill-soft);
}
.docs-sidebar__cat[open] > summary .docs-sidebar__name{font-weight:800}
.docs-sidebar__arts{
  list-style:none;margin:.1rem 0 .45rem 1.42rem;padding:0 0 0 .6rem;border-left:1px solid var(--sup-line);
  display:grid;gap:.05rem;
}
.docs-sidebar__arts a{
  display:block;padding:.5rem .6rem;border-radius:10px;position:relative;
  color:var(--soft);font-weight:600;font-size:.88rem;line-height:1.35;text-decoration:none;
}
.docs-sidebar__arts a:hover{background:var(--hover);color:var(--ink)}
.docs-sidebar__arts a:focus-visible{outline:none;box-shadow:var(--ring-strong)}
/* current: a rose bar on the rail plus weight and ink -- never colour alone */
.docs-sidebar__arts a[aria-current="page"]{background:color-mix(in oklch, var(--rose) 9%, var(--card));color:var(--acc-ink);font-weight:800}
.docs-sidebar__arts a[aria-current="page"]::before{
  content:"";position:absolute;left:calc(-.6rem - 1.5px);top:.45rem;bottom:.45rem;width:3px;border-radius:3px;background:var(--rose);
}
.docs-sidebar__catlink{font-size:.84rem!important;color:var(--acc-ink)!important;font-weight:700!important}
.docs-sidebar__catlink[aria-current="page"]{text-decoration:underline;text-underline-offset:3px}
@media (forced-colors:active){
  .docs-sidebar__arts a[aria-current="page"], .docs-sidebar__all[aria-current="page"]{outline:2px solid Highlight}
}
.docs-sidebar__toggle{display:none}

/* "Still need help?" -- compact under the rail, a strip at an article's end */
.docs-help{
  border-radius:var(--sup-r);background:var(--sup-wash);padding:1.1rem 1.1rem 1.15rem;display:grid;gap:.85rem;
}
.docs-help h2{font-size:1.02rem;margin:0 0 .3rem}
.docs-help p{margin:0;color:var(--soft);font-weight:600;font-size:.88rem;line-height:1.5}
.docs-help__acts{display:flex;flex-wrap:wrap;gap:.5rem}
.docs-aside .docs-help__acts .sup-btn{flex:1 1 auto}
.docs-help--inline{
  grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:1rem 1.5rem;padding:1.25rem 1.4rem;
}
.docs-help--inline h2{font-size:1.1rem}
.docs-help--inline p{font-size:.92rem}
@media (max-width:640px){.docs-help--inline{grid-template-columns:1fr}}
.docs-help-mobile{display:none;margin-top:2rem}
.docs-layout--article .docs-aside__help{display:none}

/* Category chips: the filter, with real counts. Wrap on wide screens, one
   swipeable row on a phone. */
.docs-pills{list-style:none;margin:0 0 1.5rem;padding:0;display:flex;flex-wrap:wrap;gap:.45rem}
.docs-pills a{
  display:inline-flex;align-items:center;gap:.45rem;min-height:2.4rem;white-space:nowrap;
  background:var(--card);color:var(--ink);box-shadow:inset 0 0 0 1px var(--sup-line);
  font-weight:700;font-size:.86rem;padding:.35em .55em .35em 1em;border-radius:var(--r-pill);text-decoration:none;
  transition:background-color var(--dur-fast) var(--ease);
}
.docs-pills__n{
  min-width:1.5rem;padding:.05rem .4rem;border-radius:var(--r-pill);text-align:center;
  font-size:.74rem;background:var(--fill-soft);color:var(--soft);
}
.docs-pills a:hover:not([aria-current="true"]){background:var(--hover)}
.docs-pills a[aria-current="true"]{background:var(--rose);color:#fff;box-shadow:none}
.docs-pills a[aria-current="true"] .docs-pills__n{background:rgb(255 255 255 / .25);color:#fff}
.docs-pills a:focus-visible{outline:none;box-shadow:var(--ring-strong)}
@media (forced-colors:active){.docs-pills a[aria-current="true"]{outline:2px solid Highlight}}

.docs-results-head{
  display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:.2rem 1rem;
  margin:0 0 .8rem;
}
.docs-results-head h2{font-size:1.3rem;margin:0}
.docs-result-count{color:var(--soft);font-weight:600;font-size:.9rem;margin:0}

/* Results: one panel of rows, not a wall of cards -- docs density. */
.docs-results{
  list-style:none;margin:0;padding:.35rem;display:grid;gap:0;
  background:var(--card);border-radius:var(--sup-r);box-shadow:inset 0 0 0 1px var(--sup-line), var(--sup-shadow);
}
.docs-result + .docs-result{border-top:1px solid var(--sup-line)}
.docs-result > a{
  display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:1rem;align-items:start;
  padding:1rem 1rem 1rem .9rem;border-radius:var(--sup-r-row);text-decoration:none;color:inherit;
  transition:background-color var(--dur-fast) var(--ease);
}
.docs-result > a:hover{background:var(--hover)}
.docs-result > a:focus-visible{outline:none;box-shadow:var(--ring-strong)}
.docs-result__body{display:grid;gap:.25rem;min-width:0}
.docs-result__cat{
  font-family:var(--display);font-weight:800;font-size:.7rem;letter-spacing:.06em;
  text-transform:uppercase;color:var(--acc-ink);
}
.docs-result h3{font-size:1.06rem;line-height:1.3;margin:0}
.docs-result > a:hover h3{color:var(--acc-ink)}
.docs-result p{
  color:var(--soft);font-weight:600;font-size:.92rem;line-height:1.5;margin:0;
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;
}
.docs-result :is(h3, p) mark{background:color-mix(in oklch, var(--acc) 35%, transparent);color:inherit;border-radius:3px}
.docs-result__meta{display:inline-flex;align-items:center;gap:.35rem;margin-top:.2rem;color:var(--soft);font-weight:600;font-size:.8rem}
.docs-result__meta .doc-icon{width:14px;height:14px}
.docs-result__go{align-self:center;color:var(--soft);transition:translate var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease)}
.docs-result__go .doc-icon{width:18px;height:18px}
.docs-result > a:hover .docs-result__go{translate:3px 0;color:var(--acc-ink)}

.docs-empty{
  display:grid;justify-items:center;gap:.9rem;text-align:center;padding:2.75rem 1.25rem;
  background:var(--card);border-radius:var(--sup-r);box-shadow:inset 0 0 0 1px var(--sup-line);
}
.docs-empty p{margin:0;max-width:40ch;color:var(--soft);font-weight:600;line-height:1.55}
.docs-empty p a{color:var(--acc-ink);font-weight:700}

/* --- Article --- */
.docs-draft{
  background:var(--fill-soft);color:var(--soft);font-weight:700;padding:.7em 1.1em;
  border-radius:var(--r-md);margin-bottom:1.5rem;
}
.docs-article{min-width:0;max-width:46rem}
.docs-article__head{margin-bottom:1.8rem;padding-bottom:1.4rem;border-bottom:1px solid var(--sup-line)}
.docs-article__cat{
  display:inline-flex;align-items:center;gap:.4rem;margin-bottom:.9rem;padding:.3rem .75rem .3rem .55rem;
  border-radius:var(--r-pill);background:var(--sup-wash);color:var(--violet-deep);
  font-family:var(--display);font-weight:800;font-size:.8rem;text-decoration:none;
}
.docs-article__cat .doc-icon{width:16px;height:16px}
.docs-article__cat:hover{text-decoration:underline;text-underline-offset:3px}
.docs-article__cat:focus-visible{outline:none;box-shadow:var(--ring-strong)}
.docs-article__head h1{font-size:clamp(1.9rem, 3.6vw, 2.6rem);line-height:1.1;margin:0 0 .8rem}
.docs-article__meta{display:flex;flex-wrap:wrap;gap:.4rem 1.2rem;margin:0;color:var(--soft);font-weight:600;font-size:.88rem}
.docs-article__meta > span{display:inline-flex;align-items:center;gap:.4rem}
.docs-article__meta .doc-icon{width:15px;height:15px}

/* Prose: ~70 characters a line, a clear H2/H3 rhythm, links you can't miss. */
.docs-prose{max-width:70ch;line-height:1.75;font-size:1.06rem}
.docs-prose > :first-child{margin-top:0}
.docs-prose h2{
  font-size:1.45rem;line-height:1.2;margin:2.4rem 0 .9rem;padding-top:1.6rem;border-top:1px solid var(--sup-line);
}
.docs-prose h3{font-size:1.18rem;line-height:1.25;margin:1.8rem 0 .6rem}
.docs-prose p{margin:0 0 1.15rem}
.docs-prose strong{color:var(--ink);font-weight:800}
.docs-prose a{
  color:var(--acc-ink);font-weight:700;text-decoration:underline;text-decoration-thickness:1.5px;
  text-underline-offset:3px;text-decoration-color:color-mix(in oklch, var(--acc) 55%, transparent);border-radius:3px;
}
.docs-prose a:hover{text-decoration-color:currentColor}
.docs-prose a:focus-visible{outline:none;box-shadow:var(--ring-strong)}
.docs-prose :is(ul,ol){margin:0 0 1.25rem;padding-inline-start:1.5rem;display:grid;gap:.5rem}
.docs-prose li::marker{color:var(--rose);font-weight:800}
.docs-prose li > :is(ul,ol){margin:.5rem 0 0}
/* "**Setting** (who) — what it does" paragraphs (support_docs.doc_body):
   drawn as setting rows, wording untouched. Consecutive rows stack tight. */
.docs-prose .docs-term{
  margin:0 0 .5rem;padding:.75rem 1rem .75rem 1.1rem;border-radius:12px;line-height:1.65;
  background:color-mix(in oklch, var(--violet) 4%, var(--card));
  box-shadow:inset 2px 0 0 color-mix(in oklch, var(--violet) 45%, var(--card)), inset 0 0 0 1px var(--sup-line);
}
.docs-prose .docs-term + :not(.docs-term){margin-top:1.4rem}
.docs-prose code{background:var(--fill-soft);padding:.15em .4em;border-radius:6px;font-size:.92em}
.docs-prose pre{background:var(--fill-soft);border-radius:var(--r-sm);padding:1rem;overflow-x:auto;margin:0 0 1.15rem}
.docs-prose pre code{background:none;padding:0}
.docs-prose blockquote{
  margin:0 0 1.15rem;padding:.9rem 1.1rem;border-radius:14px;color:var(--ink);
  background:color-mix(in oklch, var(--cyan) 14%, var(--card));box-shadow:inset 3px 0 0 var(--cyan);
}
.docs-prose blockquote > :last-child{margin-bottom:0}
.docs-prose table{width:100%;border-collapse:collapse;margin:0 0 1.15rem;font-size:.95rem;display:block;overflow-x:auto}
.docs-prose :is(th,td){text-align:start;padding:.6rem .8rem;border-bottom:1px solid var(--sup-line)}
.docs-prose th{font-family:var(--display);font-weight:800}
.docs-prose img{max-width:100%;height:auto;border-radius:14px;box-shadow:inset 0 0 0 1px var(--sup-line)}
@media (forced-colors:active){.docs-prose .docs-term, .docs-prose blockquote{border-left:3px solid CanvasText}}

/* Previous / next, then the help strip: after the reading, never in it. */
.docs-pager{
  display:grid;grid-template-columns:repeat(2, minmax(0,1fr));gap:.8rem;
  margin:2.6rem 0 1.2rem;padding-top:1.6rem;border-top:1px solid var(--sup-line);
}
.docs-pager__link{
  display:grid;gap:.3rem;padding:1rem 1.15rem;border-radius:var(--sup-r-row);text-decoration:none;color:inherit;
  background:var(--card);box-shadow:inset 0 0 0 1px var(--sup-line);
  transition:box-shadow var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.docs-pager__link:hover{box-shadow:inset 0 0 0 1px var(--sup-line), var(--sup-shadow)}
.docs-pager__link:focus-visible{outline:none;box-shadow:inset 0 0 0 1px var(--sup-line), var(--ring-strong)}
.docs-pager__link--next{grid-column:2;text-align:end}
.docs-pager__link--next .docs-pager__dir{justify-content:flex-end}
.docs-pager__dir{display:flex;align-items:center;gap:.35rem;color:var(--soft);font-weight:700;font-size:.8rem}
.docs-pager__dir .doc-icon{width:15px;height:15px}
.docs-pager__title{font-family:var(--display);font-weight:800;font-size:.98rem;line-height:1.3;color:var(--ink)}
.docs-pager__link:hover .docs-pager__title{color:var(--acc-ink)}
@media (max-width:560px){
  .docs-pager{grid-template-columns:1fr}
  .docs-pager__link--next{grid-column:auto}
}

@media (prefers-reduced-motion:reduce){
  .sup-btn, .sup-topic, .sup-topic__list .doc-icon, .sup-topic__all .doc-icon, .sup-more .doc-icon,
  .docs-result > a, .docs-result__go, .docs-pager__link, .docs-search__row, .docs-pills a{transition:none}
  .sup-topic:hover, .sup-btn:hover{translate:none}
}

/* --- Docs below 900px: one column, the nav folds into "Browse docs" --- */
@media (max-width:900px){
  .docs-layout{grid-template-columns:1fr;gap:1.25rem}
  .docs-aside{position:static}
  .docs-sidebar{max-height:none;overflow:visible;padding:.35rem}
  .docs-sidebar__toggle{
    display:flex;align-items:center;justify-content:space-between;gap:.5rem;min-height:2.9rem;
    padding:.35rem .75rem;border-radius:16px;list-style:none;cursor:pointer;
    font-family:var(--display);font-weight:800;font-size:.95rem;color:var(--ink);
  }
  .docs-sidebar__toggle::-webkit-details-marker{display:none}
  .docs-sidebar__toggle:focus-visible{outline:none;box-shadow:var(--ring-strong)}
  .docs-sidebar__toggle svg{transition:rotate var(--dur-fast) var(--ease)}
  .docs-sidebar[open] .docs-sidebar__toggle svg{rotate:180deg}
  .docs-sidebar > nav{padding:.25rem .25rem .35rem}
  .docs-aside__help{display:none}
  .docs-help-mobile{display:block}
  .docs-article{max-width:none}
}
@media (max-width:640px){
  .docs-pills{
    flex-wrap:nowrap;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none;
    margin-inline:calc(-1 * 4vw);padding-inline:4vw;scroll-padding-inline:4vw;
    mask-image:linear-gradient(to right, transparent, #000 4vw, #000 calc(100% - 4vw), transparent);
  }
  .docs-pills::-webkit-scrollbar{display:none}
  .docs-pills li{scroll-snap-align:start;flex:none}
  .docs-result > a{grid-template-columns:minmax(0,1fr) auto;padding:.9rem .75rem}
  .docs-result > a > .sup-tile{display:none}
  .docs-search__row button{padding:0 1em}
}
@media (prefers-reduced-motion:reduce){.docs-sidebar__toggle svg{transition:none}}

/* The new-ticket form's rose "Ticket" tag down the left edge (ticket_new.html). */
.sup-ticket-card__tag{
  flex:none;display:flex;align-items:center;justify-content:center;
  writing-mode:vertical-rl;rotate:180deg;
  font-family:var(--display);font-weight:800;font-size:.85rem;letter-spacing:.06em;
  color:#fff;background:var(--rose);width:var(--tag-w);
  border-radius:0 var(--r-lg) var(--r-lg) 0;
}

/* --- Contact / ticket forms: reuse .auth-card + .auth-form, add just a
       two-column row for name/subject and the honeypot wrapper. --- */
.sup-form-wrap{display:grid;justify-items:center;margin-top:clamp(2rem, 4vw, 3rem)}
.sup-form-wrap .auth-card{width:min(540px, 100%)}
.sup-form-row{display:grid;grid-template-columns:1fr 1fr;gap:.9rem;align-items:start}
@media (max-width:560px){.sup-form-row{grid-template-columns:1fr}}
.sup-honeypot{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}

/* .auth-form styles input/select but never textarea (sign-in has none);
   the contact and ticket forms both carry a message box. Same contract. */
.sup-contact .auth-form textarea, .sup-form-wrap .auth-form textarea{
  font:inherit;font-weight:600;color:var(--ink);width:100%;min-height:9rem;resize:vertical;
  background-color:var(--surface-sunk);border:2px solid var(--border);border-radius:14px;
  padding:.7em .9em;outline:none;transition:border-color .15s, box-shadow .15s;
}
:is(.sup-contact, .sup-form-wrap) .auth-form textarea:focus{border-color:var(--violet);box-shadow:var(--ring)}
:is(.sup-contact, .sup-form-wrap) .auth-form textarea::placeholder{color:var(--soft);opacity:.6}

/* --- Contact: the note you leave for the team. Tangerine, like its hub
       note (support_base's accent block; --tang-ink is defined above). --- */

.sup-contact{
  display:grid;grid-template-columns:minmax(0,1fr) 18rem;gap:clamp(1.2rem, 3vw, 2rem);
  align-items:start;max-width:60rem;margin:clamp(2rem, 4vw, 3rem) auto 0;
}
@media (max-width:860px){.sup-contact{grid-template-columns:1fr;max-width:36rem}}

.sup-note-card{position:relative;overflow:hidden;padding:clamp(1.6rem, 4vw, 2.4rem);display:grid;gap:1.1rem}
/* the hub card's top tab, so the page reads as the card you clicked */
.sup-note-card::before{
  content:"";position:absolute;top:0;left:1.7rem;right:1.7rem;height:5px;
  border-radius:0 0 4px 4px;background:var(--tang);
}
.sup-note-card h2{font-size:1.45rem;margin:0}
.sup-fld{display:grid;gap:.35rem}

/* The one device: the message box is ruled like notepaper. Rule pitch ==
   line-height and the gradient starts at padding-top, so every line of text
   sits on a rule; background-attachment:local scrolls the rules with it. */
.sup-contact .sup-note-form textarea{
  --pitch:1.75rem;--pad:.6rem;--rule:color-mix(in oklch, var(--tang) 28%, transparent);
  line-height:var(--pitch);padding:var(--pad) .9em;min-height:calc(var(--pitch) * 6 + var(--pad) * 2);
  background-image:repeating-linear-gradient(to bottom,
    transparent 0 calc(var(--pitch) - 1px), var(--rule) calc(var(--pitch) - 1px) var(--pitch));
  background-position:0 var(--pad);background-attachment:local;
}
@media (forced-colors:active){.sup-contact .sup-note-form textarea{background-image:none}}

.sup-note-foot{display:flex;align-items:center;gap:.6rem 1rem;flex-wrap:wrap;margin-top:.2rem}
.sup-note-foot .chip-btn{width:auto;margin-top:0}

.sup-note-sent{display:grid;gap:.6rem;justify-items:start}
.sup-note-sent__mark{
  width:3rem;height:3rem;border-radius:var(--r-md);display:grid;place-items:center;
  background:var(--tang);color:#fff;
}
.sup-note-sent__mark svg{width:24px;height:24px;display:block}
.sup-note-sent p{margin:0;color:var(--soft);font-weight:600}
.sup-note-sent p b{color:var(--ink)}
.sup-note-sent__next{display:flex;flex-wrap:wrap;gap:.4rem 1.4rem;margin-top:.4rem!important}
.sup-note-sent__next a{color:var(--acc-ink);font-weight:700}
.sup-note-sent__next a:focus-visible{outline:none;box-shadow:var(--ring-strong);border-radius:4px}

/* Routing aside: the question to ask before writing. Rows are tinted for
   where they lead (ticket = rose, docs = cyan, as on the hub). */
.sup-route{
  background:var(--fill-soft);border-radius:var(--r-lg);padding:1.3rem 1.2rem;display:grid;gap:.2rem;
}
.sup-route h2{font-size:1rem;margin:0 0 .5rem}
.sup-route__row{
  display:grid;grid-template-columns:2.4rem 1fr;gap:.8rem;align-items:start;
  padding:.85rem .5rem;border-radius:var(--r-md);text-decoration:none;color:inherit;
}
.sup-route__row + .sup-route__row{border-top:1px dashed var(--border-dash);border-radius:0 0 var(--r-md) var(--r-md)}
.sup-route__row:hover{background:var(--hover)}
.sup-route__row:focus-visible{outline:none;box-shadow:var(--ring-strong)}
.sup-route__row--tickets{--tone:var(--rose);--tone-ink:#fff}
.sup-route__row--docs{--tone:var(--cyan);--tone-ink:var(--cyan-ink)}
.sup-route__row--contact{--tone:var(--tang);--tone-ink:#fff}
.sup-route__row--status{--tone:var(--rose);--tone-ink:#fff}
.sup-route__icon{
  width:2.4rem;height:2.4rem;border-radius:var(--r-sm);display:grid;place-items:center;
  background:var(--tone);color:var(--tone-ink);
}
.sup-route__icon svg{width:20px;height:20px;display:block}
.sup-route__row b{display:block;font-family:var(--display);font-size:.95rem;line-height:1.3;margin-bottom:.2rem}
.sup-route__row b + span{display:block;color:var(--soft);font-weight:600;font-size:.88rem;line-height:1.45}
.sup-route__row:hover b{color:var(--acc-ink)}
.sup-route__more{margin:.35rem 0 0 3.7rem;font-size:.88rem;font-weight:700}
.sup-route__more a{color:var(--acc-ink);border-radius:4px}
.sup-route__more a:focus-visible{outline:none;box-shadow:var(--ring-strong)}

/* --- New ticket: the form is the stub the hub card promised -- the same
       rose "Ticket" tag down the left and dashed tear line (no punches: on a
       tall form they would just be decoration). Layout is Contact's grid. --- */
.sup-ticket-card{--tag-w:2.9rem;display:flex;padding:0;overflow:hidden}
.sup-ticket-card__body{
  flex:1;min-width:0;display:grid;gap:1.1rem;padding:clamp(1.6rem, 4vw, 2.4rem);
  border-left:2px dashed color-mix(in oklch, var(--rose) 50%, var(--card));
}
.sup-ticket-card__body h2{font-size:1.45rem;margin:0}
@media (max-width:480px){
  .sup-ticket-card{flex-direction:column}
  .sup-ticket-card__tag{writing-mode:horizontal-tb;rotate:0deg;width:auto;padding:.45rem;border-radius:0}
  .sup-ticket-card__body{border-left:0;border-top:2px dashed color-mix(in oklch, var(--rose) 50%, var(--card))}
}

/* Category: four visible choices instead of a select that opens on
   "Something else". Real radios (arrow keys work), drawn as chips. */
.sup-kind{border:0;margin:0;padding:0;min-width:0}
.sup-kind legend{padding:0;margin-bottom:.45rem;font-weight:700;font-size:.88rem;color:var(--soft)}
.sup-kind__opts{display:flex;flex-wrap:wrap;gap:.5rem}
.sup-kind__opt{position:relative;cursor:pointer}
.auth-form .sup-kind input[type="radio"]{
  position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;
}
.sup-kind__opt span{
  display:block;padding:.5em 1em;border-radius:999px;font-weight:700;font-size:.92rem;color:var(--ink);
  background:var(--surface-sunk);border:2px solid var(--border);transition:background-color .15s, border-color .15s, color .15s;
}
.sup-kind__opt:hover span{border-color:color-mix(in oklch, var(--rose) 60%, var(--border))}
.sup-kind__opt input:checked + span{background:var(--rose);border-color:var(--rose);color:#fff}
.sup-kind__opt input:focus-visible + span{box-shadow:var(--ring-strong)}
@media (forced-colors:active){.sup-kind__opt input:checked + span{border-style:double;border-width:4px}}
@media (prefers-reduced-motion:reduce){.sup-kind__opt span{transition:none}}

/* --- Ticket reference: a torn stub, not a pill. A coloured stub tag ("Ticket")
       butts against the code half across a dashed tear line; two notches cut
       from the card behind it (background:var(--card), matching whatever
       this sits on) read as where it was torn from a longer roll. --- */
.sup-ref{
  position:relative;display:inline-flex;align-items:stretch;margin:.75rem 0 1.1rem;
  border-radius:var(--r-md);box-shadow:var(--lift);rotate:-1.2deg;
}
.sup-ref::before,.sup-ref::after{
  content:"";position:absolute;top:50%;translate:0 -50%;z-index:1;
  width:1.05rem;height:1.05rem;border-radius:50%;background:var(--card);
}
.sup-ref::before{left:-.52rem}
.sup-ref::after{right:-.52rem}
.sup-ref__tag{
  font-family:var(--display);font-weight:800;font-size:.72rem;letter-spacing:.06em;
  text-transform:uppercase;color:#fff;background:var(--acc);
  padding:.9em 1em;display:flex;align-items:center;
  border-radius:var(--r-md) 0 0 var(--r-md);
}
.sup-ref__code{
  font-family:var(--display);font-weight:800;font-size:1.5rem;letter-spacing:.02em;
  color:var(--acc-ink);background:var(--fill-soft);padding:.5em 1.3em;
  border-radius:0 var(--r-md) var(--r-md) 0;
  border-left:2px dashed color-mix(in oklch, var(--acc) 45%, var(--card));
  display:flex;align-items:center;
}

/* --- Status: open/in-progress stay plain (still moving); resolved/closed
       read as a stamped, closed case -- a rotated outline, not a fill. --- */
.sup-status{
  display:inline-flex;align-items:center;gap:.5rem;font-family:var(--display);font-weight:800;
  font-size:.8rem;letter-spacing:.03em;padding:.5em 1em;border-radius:999px;
}
.sup-status::before{content:"";width:.55rem;height:.55rem;border-radius:50%;background:currentColor}
.sup-status--open{background:oklch(94% 0.07 70 / .5);color:oklch(44% 0.12 70)}
.sup-status--in_progress{background:oklch(94% 0.06 220 / .6);color:var(--cyan-ink)}
.sup-status--resolved{
  background:transparent;color:var(--lime-ink);
  box-shadow:inset 0 0 0 2px currentColor;rotate:-2.5deg;
}
.sup-status--closed{
  background:transparent;color:var(--soft);
  box-shadow:inset 0 0 0 2px currentColor;rotate:2deg;
}
.sup-note{
  background:var(--fill-soft);border-radius:var(--r-md);padding:1rem 1.1rem;margin-top:1rem;
  text-align:left;color:var(--ink);font-weight:600;line-height:1.6;
}
.sup-ticket-list{list-style:none;margin:0;padding:0;display:grid;gap:.8rem}
.sup-ticket-list li{
  position:relative;
  background:var(--card);border-radius:var(--r-md);box-shadow:var(--lift);
  padding:1rem 1.2rem;display:flex;flex-wrap:wrap;gap:.6rem 1.2rem;align-items:center;
  justify-content:space-between;
}
.sup-ticket-list li:has(a:focus-visible){box-shadow:var(--lift), var(--ring-strong)}
.sup-ticket-list a:focus-visible{outline:none}
.sup-ticket-list b{font-family:var(--display)}
