/* Taivo public help center. Mirrors marketing tokens in src/styles/marketing.css. */
:root {
  --background: 42 38% 96%; --foreground: 222 52% 13%; --card: 40 40% 99.5%; --muted: 40 25% 92%;
  --muted-foreground: 222 16% 38%; --border: 222 20% 86%; --navy: 222 52% 13%; --navy-2: 222 40% 20%;
  --orange: 21 90% 55%; --orange-soft: 24 95% 91%; --teal: 174 78% 28%; --teal-soft: 174 45% 90%; --paper: 40 40% 99.5%;
  --sans: 'Figtree', system-ui, sans-serif; --display: 'Bricolage Grotesque', 'Figtree', sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }
body.h-body { margin: 0; background: hsl(var(--background)); color: hsl(var(--foreground)); font: 400 17px/1.6 var(--sans); overflow-x: clip; min-height: 100dvh; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.025em; line-height: 1.05; margin: 0; color: hsl(var(--navy)); }
p { margin: 0; }
a { color: inherit; }
::selection { background: hsl(var(--orange-soft)); }
:focus-visible { outline: 2.5px solid hsl(var(--orange)); outline-offset: 3px; border-radius: 6px; }
.h-wrap { max-width: 72rem; margin-inline: auto; padding-inline: 1.25rem; }
.h-section { padding-block: 4.5rem; }
.h-muted { color: hsl(var(--muted-foreground)); }
.h-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.h-eyebrow { font: 500 12px/1.4 ui-monospace, 'SFMono-Regular', Menlo, monospace; text-transform: uppercase; letter-spacing: .18em; color: hsl(var(--teal)); margin-bottom: .75rem; }
.h-section > h2, .h-section h2#rel-h { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 2.25rem; }
.h-small-h { font-size: 1.25rem; font-weight: 600; margin-bottom: 1.25rem; }
.h-lede { margin-top: 1.25rem; max-width: 40rem; font-size: 1.2rem; line-height: 1.55; color: hsl(var(--muted-foreground)); }
.h-skip { position: absolute; left: 1rem; top: -4rem; z-index: 60; background: hsl(var(--orange)); color: hsl(var(--navy)); padding: .5rem 1rem; border-radius: 999px; font-weight: 600; }
.h-skip:focus { top: .5rem; }

/* buttons */
.h-btn { display: inline-flex; align-items: center; gap: .5rem; border-radius: 999px; padding: .85rem 1.4rem; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; font: inherit; font-weight: 600; transition: transform .2s var(--ease), background-color .2s; }
.h-btn:hover { transform: translateY(-2px); }
.h-btn .h-arrow, a .h-arrow { transition: transform .2s var(--ease); flex: none; }
.h-btn:hover .h-arrow { transform: translateX(3px); }
.h-btn-navy { background: hsl(var(--navy)); color: hsl(var(--background)); }
.h-btn-ghost { background: transparent; color: hsl(var(--navy)); box-shadow: inset 0 0 0 1.5px currentColor; }
.h-btn-sm { padding: .5rem 1rem; font-size: .9rem; }

/* header */
.h-header { position: sticky; top: 0; z-index: 50; background: hsl(var(--background) / .92); backdrop-filter: blur(10px); border-bottom: 1px solid hsl(var(--border)); }
.h-header-row { display: flex; align-items: center; justify-content: space-between; height: 4rem; gap: 1rem; }
.h-logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.h-logo img { height: 2rem; width: auto; }
.h-logo span { opacity: .6; }
.h-header .h-logo span { opacity: 1; color: hsl(var(--teal)); padding-left: .55rem; border-left: 1.5px solid hsl(var(--border)); }
.h-nav { display: none; align-items: center; gap: .25rem; }
.h-nav a:not(.h-btn) { text-decoration: none; padding: .5rem .85rem; border-radius: 999px; font-size: .92rem; font-weight: 500; color: hsl(var(--navy) / .8); transition: background-color .2s, color .2s; }
.h-nav a:not(.h-btn):hover { background: hsl(var(--navy) / .05); color: hsl(var(--navy)); }
.h-nav a.is-current { color: hsl(var(--navy)); font-weight: 700; background: hsl(var(--orange) / .12); }
.h-nav .h-nav-login { margin-left: .5rem; font-weight: 600 !important; }
.h-menu { position: relative; }
.h-menu summary { list-style: none; cursor: pointer; width: 2.75rem; height: 2.75rem; display: grid; place-content: center; gap: 5px; border-radius: 999px; }
.h-menu summary::-webkit-details-marker { display: none; }
.h-menu summary span { display: block; width: 20px; height: 2px; background: hsl(var(--navy)); border-radius: 2px; transition: transform .2s, opacity .2s; }
.h-menu[open] summary span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.h-menu[open] summary span:nth-child(2) { opacity: 0; }
.h-menu[open] summary span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.h-menu-panel { position: fixed; left: 0; right: 0; top: 4rem; background: hsl(var(--background)); border-bottom: 1px solid hsl(var(--border)); padding: .5rem 1.25rem 1.5rem; box-shadow: 0 30px 50px -30px hsl(var(--navy) / .35); }
.h-menu-panel > a { display: block; padding: .9rem 0; border-bottom: 1px solid hsl(var(--border)); font: 800 1.5rem/1.2 var(--display); text-decoration: none; color: hsl(var(--navy)); }
.h-menu-cta { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.25rem; }
@media (min-width: 1024px) { .h-nav { display: flex; } .h-menu { display: none; } }

/* hero */
.h-hero { position: relative; overflow: hidden; border-bottom: 1px solid hsl(var(--border)); }
.h-hero-inner { position: relative; padding-block: 4rem 4.5rem; }
.h-blob { position: absolute; border-radius: 999px; pointer-events: none; }
.h-blob-teal { width: 34rem; height: 34rem; right: -10rem; top: -14rem; background: hsl(var(--teal-soft)); }
.h-blob-orange { width: 15rem; height: 15rem; left: -6rem; bottom: -7rem; background: hsl(var(--orange-soft)); }
.h-pill { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid hsl(var(--navy) / .15); background: hsl(var(--card)); border-radius: 999px; padding: .35rem .9rem; font-size: .9rem; font-weight: 500; }
.h-pill svg { color: hsl(var(--teal)); }
.h-hero h1 { margin-top: 1.5rem; font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 800; line-height: .98; max-width: 14ch; }
.h-underline { color: hsl(var(--teal)); background: linear-gradient(hsl(var(--orange)), hsl(var(--orange))) 0 92% / 100% 5px no-repeat; padding-bottom: .08em; }

/* search */
.h-search { margin-top: 2.5rem; max-width: 44rem; }
.h-search-label { display: block; font-weight: 700; margin-bottom: .6rem; color: hsl(var(--navy)); }
.h-search-field { display: flex; align-items: center; gap: .75rem; background: hsl(var(--card)); border: 1.5px solid hsl(var(--navy) / .2); border-radius: 1rem; padding: .35rem .5rem .35rem 1.1rem; box-shadow: 0 24px 50px -32px hsl(var(--navy) / .5); transition: border-color .2s, box-shadow .2s; }
.h-search-field:focus-within { border-color: hsl(var(--teal)); box-shadow: 0 0 0 4px hsl(var(--teal) / .15), 0 24px 50px -32px hsl(var(--navy) / .5); }
.h-search-field svg { color: hsl(var(--teal)); flex: none; }
.h-search-field input { flex: 1; min-width: 0; border: 0; background: transparent; font: 500 1.1rem/1 var(--sans); color: hsl(var(--navy)); padding: .85rem 0; }
.h-search-field input:focus { outline: none; }
.h-search-field input::placeholder { color: hsl(var(--muted-foreground) / .8); }
.h-search-field input::-webkit-search-cancel-button { display: none; }
.h-search-reset { border: 0; background: hsl(var(--navy) / .07); color: hsl(var(--navy)); font: 600 .85rem var(--sans); padding: .55rem .9rem; border-radius: 999px; cursor: pointer; }
.h-search-reset:hover { background: hsl(var(--navy) / .12); }
.h-search-hint { margin-top: .6rem; font-size: .88rem; color: hsl(var(--muted-foreground)); }
.h-results { margin-top: 1rem; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 1rem; overflow: hidden; }
.h-results-list { list-style: none; margin: 0; padding: 0; max-height: 26rem; overflow-y: auto; }
.h-results-list li + li { border-top: 1px solid hsl(var(--border)); }
.h-result { display: grid; gap: .15rem; padding: .95rem 1.15rem; text-decoration: none; transition: background-color .15s; }
.h-result:hover, .h-result:focus-visible { background: hsl(var(--teal-soft) / .6); outline-offset: -3px; }
.h-result-meta { font: 500 11px/1.4 ui-monospace, monospace; text-transform: uppercase; letter-spacing: .14em; color: hsl(var(--teal)); }
.h-result-title { font-weight: 700; color: hsl(var(--navy)); }
.h-result-sum { font-size: .92rem; color: hsl(var(--muted-foreground)); }
.h-results-empty { padding: 1.5rem; display: grid; gap: .5rem; justify-items: start; color: hsl(var(--muted-foreground)); }
.h-results-empty-t { font-weight: 700; color: hsl(var(--navy)); }

/* roles */
.h-roles { display: grid; gap: 1.25rem; }
@media (min-width: 860px) { .h-roles { grid-template-columns: 1.15fr 1fr 1fr; } }
.h-role { border-radius: 1.25rem; padding: 1.75rem; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); }
.h-role h3 { font-size: 2rem; font-weight: 800; }
.h-role .h-muted { margin-top: .5rem; }
.h-role ul { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.h-role li a { display: block; padding: .6rem 0; border-top: 1px solid hsl(var(--border)); font-weight: 600; text-decoration: none; transition: color .15s, padding .2s var(--ease); }
.h-role li a:hover { color: hsl(var(--teal)); padding-left: .35rem; }
.h-role-member { background: hsl(var(--teal-soft)); border-color: hsl(var(--teal) / .25); }
.h-role-admin { background: hsl(var(--navy)); border-color: transparent; }
.h-role-admin h3, .h-role-admin li a { color: hsl(var(--background)); }
.h-role-admin .h-muted { color: hsl(var(--background) / .7); }
.h-role-admin .h-eyebrow { color: hsl(var(--orange)); }
.h-role-admin li a { border-color: hsl(0 0% 100% / .15); }
.h-role-admin li a:hover { color: hsl(var(--orange)); }

/* topics */
.h-band { background: hsl(var(--paper)); border-block: 1px solid hsl(var(--border)); }
.h-topics { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 2rem; }
@media (min-width: 700px) { .h-topics { grid-template-columns: 1fr 1fr; } }
.h-topic { display: grid; grid-template-columns: 3rem 1fr; gap: .25rem 1rem; padding: 1.5rem 0; border-top: 2px solid hsl(var(--navy)); text-decoration: none; height: 100%; }
.h-topic-num { grid-row: span 3; font: 800 1.9rem/1 var(--display); color: hsl(var(--orange)); }
.h-topic-title { font: 800 1.45rem/1.15 var(--display); letter-spacing: -.02em; color: hsl(var(--navy)); }
.h-topic-desc { color: hsl(var(--muted-foreground)); }
.h-topic-count { display: inline-flex; align-items: center; gap: .4rem; margin-top: .4rem; font-weight: 600; font-size: .9rem; color: hsl(var(--teal)); }
.h-topic:hover .h-arrow { transform: translateX(4px); }
.h-topic:hover .h-topic-title { text-decoration: underline; text-decoration-color: hsl(var(--orange)); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* article cards */
.h-agrid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 640px) { .h-agrid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .h-agrid:not(.h-agrid-2) { grid-template-columns: repeat(3, 1fr); } }
.h-acard { display: flex; flex-direction: column; gap: .4rem; height: 100%; padding: 1.4rem; border-radius: 1rem; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); text-decoration: none; transition: transform .25s var(--ease), border-color .2s, box-shadow .25s; }
.h-acard:hover { transform: translateY(-3px); border-color: hsl(var(--navy) / .35); box-shadow: 0 24px 40px -30px hsl(var(--navy) / .45); }
.h-acard-meta { font: 500 11px/1.4 ui-monospace, monospace; text-transform: uppercase; letter-spacing: .14em; color: hsl(var(--teal)); }
.h-acard-title { font: 800 1.2rem/1.2 var(--display); letter-spacing: -.02em; color: hsl(var(--navy)); }
.h-acard-sum { color: hsl(var(--muted-foreground)); font-size: .95rem; flex: 1; }
.h-chips { display: inline-flex; flex-wrap: wrap; gap: .35rem; }
.h-acard .h-chips { margin-top: .5rem; }
.h-chip { font-size: .75rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; background: hsl(var(--navy) / .08); color: hsl(var(--navy)); }
.h-chip-member { background: hsl(var(--teal-soft)); color: hsl(var(--teal)); }
.h-chip-manager { background: hsl(var(--orange-soft)); color: hsl(21 70% 32%); }
.h-chip-admin { background: hsl(var(--navy)); color: hsl(var(--background)); }

/* promise */
.h-promise { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; padding: 2rem; border-radius: 1.75rem; background: hsl(var(--navy)); color: hsl(var(--background) / .8); }
.h-promise svg { width: 2rem; height: 2rem; color: hsl(var(--orange)); }
.h-promise h2 { color: hsl(var(--background)); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: .75rem; }
.h-promise a { color: hsl(var(--orange)); font-weight: 600; }
.h-promise::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@media (min-width: 768px) { .h-promise { padding: 3rem; } }

/* page head + breadcrumbs */
.h-pagehead { border-bottom: 1px solid hsl(var(--border)); background: linear-gradient(180deg, hsl(var(--teal-soft) / .55), hsl(var(--background))); padding-block: 2rem 3rem; }
.h-pagehead h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); font-weight: 800; max-width: 22ch; }
.h-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 1.75rem; padding: 0; font-size: .9rem; }
.h-crumbs li { display: inline-flex; align-items: center; gap: .35rem; color: hsl(var(--muted-foreground)); }
.h-crumbs li + li::before { content: "/"; color: hsl(var(--navy) / .3); }
.h-crumbs a { font-weight: 600; color: hsl(var(--navy)); text-underline-offset: 4px; }
.h-crumbs a:hover { color: hsl(var(--teal)); }
.h-forwho { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1.5rem; font-size: .9rem; font-weight: 600; color: hsl(var(--muted-foreground)); }
.h-forwho svg { color: hsl(var(--teal)); }

/* category layout */
.h-split { display: grid; gap: 3rem; }
@media (min-width: 960px) { .h-split { grid-template-columns: 1fr 16rem; } }
.h-aside { align-self: start; }
@media (min-width: 960px) { .h-aside { position: sticky; top: 6rem; } }
.h-sidelist { list-style: none; margin: 0; padding: 0; }
.h-sidelist a { display: block; padding: .7rem 0; border-top: 1px solid hsl(var(--border)); text-decoration: none; font-weight: 600; transition: color .15s, padding .2s var(--ease); }
.h-sidelist a:hover { color: hsl(var(--teal)); padding-left: .35rem; }
.h-sidelist-wide { display: grid; gap: 0 2rem; }
@media (min-width: 640px) { .h-sidelist-wide { grid-template-columns: 1fr 1fr; } }
.h-back { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.25rem; font-weight: 700; color: hsl(var(--teal)); text-decoration: none; }
.h-back:hover .h-arrow { transform: translateX(3px); }
.h-empty { padding: 2.5rem; border: 2px dashed hsl(var(--navy) / .2); border-radius: 1rem; display: grid; gap: 1rem; justify-items: start; }

/* article */
.h-article-grid { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .h-article-grid { grid-template-columns: 15rem minmax(0, 44rem); gap: 4rem; } }
.h-toc { align-self: start; border-left: 2px solid hsl(var(--border)); padding-left: 1.1rem; }
@media (min-width: 960px) { .h-toc { position: sticky; top: 6rem; } }
.h-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.h-toc li { counter-increment: toc; }
.h-toc a { display: flex; gap: .6rem; padding: .4rem 0; text-decoration: none; font-size: .95rem; color: hsl(var(--muted-foreground)); transition: color .15s; }
.h-toc a::before { content: counter(toc, decimal-leading-zero); font: 500 12px/1.9 ui-monospace, monospace; color: hsl(var(--orange)); }
.h-toc a:hover { color: hsl(var(--navy)); }
.h-prose { min-width: 0; }
.h-callout { display: grid; grid-template-columns: auto 1fr; gap: .9rem; padding: 1.1rem 1.25rem; border-radius: 1rem; background: hsl(var(--orange-soft) / .7); border-left: 4px solid hsl(var(--orange)); margin-bottom: 2.5rem; font-size: .97rem; }
.h-callout svg { color: hsl(21 70% 38%); margin-top: .15rem; }
.h-asec { padding-top: .5rem; margin-bottom: 2.75rem; }
.h-asec h2 { position: relative; font-size: 1.75rem; font-weight: 800; margin-bottom: 1rem; }
.h-anchor { position: absolute; left: -1.4rem; color: hsl(var(--orange)); text-decoration: none; opacity: 0; transition: opacity .15s; }
.h-asec h2:hover .h-anchor, .h-anchor:focus-visible { opacity: 1; }
.h-asec p { margin-bottom: 1rem; font-size: 1.07rem; line-height: 1.75; color: hsl(var(--navy) / .88); }
.h-steps { list-style: none; counter-reset: st; margin: 1.25rem 0; padding: 0; display: grid; gap: .75rem; }
.h-steps li { counter-increment: st; position: relative; padding: .9rem 1rem .9rem 3.4rem; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: .85rem; }
.h-steps li::before { content: counter(st); position: absolute; left: .9rem; top: .8rem; width: 1.75rem; height: 1.75rem; display: grid; place-items: center; border-radius: 999px; background: hsl(var(--teal)); color: hsl(var(--background)); font: 700 .85rem/1 var(--sans); }
.h-bullets { margin: 1rem 0; padding: 0; list-style: none; display: grid; gap: .55rem; }
.h-bullets li { position: relative; padding-left: 1.4rem; }
.h-bullets li::before { content: ""; position: absolute; left: 0; top: .62em; width: .5rem; height: .5rem; border-radius: 999px; background: hsl(var(--orange)); }
.h-endnote { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid hsl(var(--border)); color: hsl(var(--muted-foreground)); }
.h-endnote a, .h-prose a { color: hsl(var(--teal)); font-weight: 600; text-underline-offset: 4px; }

/* not found */
.h-nf .h-hero-inner p:last-child { margin-top: 2rem; }

/* footer */
.h-footer { background: hsl(var(--paper)); border-top: 1px solid hsl(var(--border)); padding-block: 3rem; font-size: .93rem; }
.h-footer-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .h-footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.h-footer .h-muted { margin-top: .75rem; max-width: 22rem; }
.h-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.h-footer nav a { text-decoration: none; font-weight: 600; }
.h-footer nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 640px) { .h-section { padding-block: 3.25rem; } .h-hero-inner { padding-block: 2.75rem 3rem; } .h-anchor { display: none; } }

/* entrance */
@media (prefers-reduced-motion: no-preference) {
  .h-hero-inner > *, .h-pagehead .h-wrap > * { animation: h-in .6s var(--ease) both; }
  .h-hero-inner > :nth-child(2), .h-pagehead .h-wrap > :nth-child(2) { animation-delay: .06s; }
  .h-hero-inner > :nth-child(3), .h-pagehead .h-wrap > :nth-child(3) { animation-delay: .12s; }
  .h-hero-inner > :nth-child(n+4), .h-pagehead .h-wrap > :nth-child(n+4) { animation-delay: .18s; }
}
@keyframes h-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .h-btn:hover, .h-acard:hover { transform: none; }
}
