/* Nohena help centre (nohena.com/help): the landing's type and colour, a reading layout, no eyebrows. */
:root { --display: 'Instrument Sans', 'Hanken Grotesk', system-ui, sans-serif; --body: 'Hanken Grotesk', system-ui, sans-serif; --mono: 'IBM Plex Mono', ui-monospace, monospace; --pad: clamp(16px, 4vw, 40px); --rule: 1px solid var(--border-subtle); --rule-2: 1px solid var(--border-default); }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--text-primary); font-family: var(--body); font-size: 16.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--green-500); outline-offset: 2px; border-radius: 4px; }
.hw { max-width: 1160px; margin: 0 auto; padding-inline: var(--pad); }

/* header */
.hh { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: var(--rule); }
.hh__in { display: flex; align-items: center; gap: 18px; height: 60px; }
.hh__logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.hh__help { text-decoration: none; font-family: var(--display); font-weight: 500; font-size: 16px; color: var(--green-700); padding-left: 16px; border-left: var(--rule-2); }
.hh__nav { display: flex; gap: 4px; margin-left: 10px; }
.hh__nav a, .hh__signin { text-decoration: none; color: var(--text-secondary); font-size: 14.5px; padding: 7px 10px; border-radius: 6px; }
.hh__nav a:hover, .hh__signin:hover { background: var(--stone-100); color: var(--text-primary); }
.hh__act { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.hbtn { display: inline-flex; align-items: center; height: 36px; padding: 0 13px; border-radius: 8px; font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.hbtn--pri { background: var(--green-600); color: var(--paper); }
.hbtn--pri:hover { background: var(--green-700); }
@media (max-width: 900px) { .hh__nav { display: none; } }
/* Skip to content: off screen until a keyboard user reaches it, then shown at the top left. */
.hskip { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 8px 14px; border-radius: 6px; background: var(--green-600); color: var(--paper); font-weight: 600; font-size: 13px; text-decoration: none; }
.hskip:focus { top: 12px; }
/* The phone menu: the sections, Sign in and Get started for free, under the header (help.js opens and closes it). */
.hh__menu { display: none; width: 40px; height: 40px; flex: none; border-radius: 8px; border: var(--rule-2); background: var(--stone-0); align-items: center; justify-content: center; cursor: pointer; padding: 0; color: var(--text-primary); }
.hh__menu svg { width: 18px; height: 18px; }
.hh__menu .x { display: none; }
.hh__menu[aria-expanded="true"] .bars { display: none; }
.hh__menu[aria-expanded="true"] .x { display: block; }
.hh__drop { display: none; border-top: var(--rule); background: var(--paper); box-shadow: 0 18px 30px -22px rgba(6,41,31,.4); }
.hh__drop.is-open { display: block; }
.hh__dropin { display: grid; padding-block: 6px 18px; }
.hh__drop a:not(.hbtn) { display: flex; align-items: center; min-height: 48px; text-decoration: none; color: var(--text-primary); font-size: 16px; font-weight: 500; border-bottom: var(--rule); }
.hh__cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.hh__cta .hbtn { display: inline-flex; justify-content: center; height: 46px; font-size: 14.5px; }
.hbtn--sec { background: var(--stone-0); color: var(--text-primary); border: var(--rule-2); }
.hbtn--sec:hover { border-color: var(--green-400); }
@media (max-width: 900px) { .hh__menu { display: inline-flex; } }
@media (min-width: 901px) { .hh__drop { display: none !important; } }
@media (max-width: 560px) { .hh__signin { display: none; } .hh__help { padding-left: 12px; font-size: 15px; } .hbtn { padding: 0 11px; font-size: 13px; } .hh__in { gap: 12px; } }
@media (max-width: 400px) { .hh__act .hbtn--pri { display: none; } }

/* index: hero + search */
.hx { padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 40px); border-bottom: var(--rule); }
.hx h1 { font-family: var(--display); font-weight: 600; font-size: clamp(36px, 5vw, 60px); letter-spacing: -0.035em; line-height: 1.02; margin: 0 0 12px; }
.hx__l { font-size: clamp(16.5px, 1.4vw, 18.5px); color: var(--text-secondary); margin: 0 0 22px; max-width: 58ch; }
.hs { display: flex; align-items: center; gap: 10px; max-width: 640px; height: 54px; padding: 0 16px; border: var(--rule-2); border-radius: 12px; background: var(--stone-0); box-shadow: 0 18px 40px -30px rgba(6,41,31,.4); }
.hs:focus-within { border-color: var(--green-500); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green-300) 30%, transparent); }
.hs svg { width: 19px; height: 19px; color: var(--text-muted); flex: none; }
.hs input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16.5px; color: var(--text-primary); }
.hr { max-width: 640px; margin-top: 8px; border: var(--rule-2); border-radius: 12px; background: var(--stone-0); overflow: hidden; }
.hr a { display: grid; gap: 2px; padding: 12px 16px; border-bottom: var(--rule); text-decoration: none; }
.hr a:last-child { border-bottom: 0; }
.hr a:hover, .hr a.is-on { background: var(--green-50); }
.hr b { font-weight: 600; }
.hr span { font-size: 13.5px; color: var(--text-muted); }
.hr__none { padding: 14px 16px; color: var(--text-muted); font-size: 14.5px; }
.hx__start { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-top: 22px; font-size: 14px; }
.hx__start span { color: var(--text-muted); margin-right: 2px; }
.hx__start a { text-decoration: none; padding: 6px 11px; border-radius: 8px; border: var(--rule-2); background: var(--stone-0); }
.hx__start a:hover { border-color: var(--green-400); color: var(--green-700); }

/* index: topic grid + lists */
.hc { padding-block: 36px 8px; }
.hc__g { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.hc__c { display: grid; align-content: start; gap: 6px; padding: 16px; border: var(--rule-2); border-radius: 12px; background: var(--stone-0); text-decoration: none; min-width: 0; transition: border-color .16s; }
.hc__c:hover { border-color: var(--green-400); }
.hc__c b { font-family: var(--display); font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; }
.hc__c span { font-size: 13.5px; line-height: 1.45; color: var(--text-secondary); }
.hc__c i { font-style: normal; font-size: 12.5px; color: var(--text-muted); margin-top: 4px; }
@media (max-width: 1000px) { .hc__g { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .hc__g { grid-template-columns: 1fr; } }
.hl { padding-block: 28px clamp(56px, 7vw, 96px); display: grid; gap: 36px; }
.hl__cat { scroll-margin-top: 80px; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 8px 40px; border-top: var(--rule-2); padding-top: 22px; }
.hl__cat h2 { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; margin: 0; }
.hl__cat p { grid-column: 1; margin: 0; font-size: 14.5px; color: var(--text-muted); }
.hl__cat ul { grid-column: 2; grid-row: 1 / span 2; list-style: none; margin: 0; padding: 0; display: grid; }
.hl__cat li a { display: grid; gap: 2px; padding: 11px 0; border-bottom: var(--rule); text-decoration: none; }
.hl__cat li:last-child a { border-bottom: 0; }
.hl__cat li a:hover b { color: var(--green-700); }
.hl__cat li b { font-weight: 600; font-size: 15.5px; }
.hl__cat li span { font-size: 14px; color: var(--text-muted); line-height: 1.5; }
@media (max-width: 800px) { .hl__cat { grid-template-columns: 1fr; } .hl__cat ul { grid-column: 1; grid-row: auto; margin-top: 6px; } }

/* article */
.ha { padding-block: 22px clamp(56px, 7vw, 96px); }
.crumb { display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--text-muted); margin-bottom: 18px; }
.crumb a { text-decoration: none; color: var(--text-secondary); }
.crumb a:hover { color: var(--green-700); }
.ha__g { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; align-items: start; }
.ha__main { min-width: 0; max-width: 720px; }
.ha h1 { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 14px; text-wrap: balance; }
.ha__sum { font-size: 18.5px; line-height: 1.55; color: var(--text-primary); margin: 0 0 10px; }
.ha__meta { font-size: 13.5px; color: var(--text-muted); margin: 0 0 26px; padding-bottom: 18px; border-bottom: var(--rule); }
.ha__body { font-size: 16.5px; line-height: 1.7; color: var(--text-secondary); }
.ha__body h2 { font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: -0.015em; color: var(--text-primary); margin: 30px 0 10px; scroll-margin-top: 80px; }
.ha__body p { margin: 0 0 14px; }
.ha__body ul, .ha__body ol { margin: 0 0 16px; padding-left: 22px; }
.ha__body li { margin: 0 0 7px; padding-left: 2px; }
.ha__body li::marker { color: var(--green-600); }
.ha__body strong { color: var(--text-primary); font-weight: 600; }
.ha__faq, .ha__rel { margin-top: 36px; border-top: var(--rule-2); padding-top: 22px; }
.ha__faq h2, .ha__rel h2 { font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: -0.015em; margin: 0 0 8px; }
.ha__faq details { border-bottom: var(--rule); }
.ha__faq summary { list-style: none; cursor: pointer; padding: 14px 0; display: flex; justify-content: space-between; gap: 16px; font-weight: 600; }
.ha__faq summary::-webkit-details-marker { display: none; }
.ha__faq summary::after { content: '+'; font-family: var(--mono); color: var(--text-muted); font-weight: 400; }
.ha__faq details[open] summary::after { content: '−'; }
.ha__faq details p { margin: 0 0 14px; color: var(--text-secondary); }
.rel { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rel__c { display: grid; gap: 4px; align-content: start; padding: 14px; border: var(--rule-2); border-radius: 12px; background: var(--stone-0); text-decoration: none; }
.rel__c:hover { border-color: var(--green-400); }
.rel__k { font-size: 12.5px; color: var(--text-muted); }
.rel__c b { font-weight: 600; line-height: 1.35; }
.rel__c span:last-child { font-size: 13.5px; color: var(--text-muted); line-height: 1.45; }
@media (max-width: 560px) { .rel { grid-template-columns: 1fr; } }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 30px; }
.pn a { display: grid; gap: 2px; padding: 12px 14px; border: var(--rule); border-radius: 10px; text-decoration: none; }
.pn a:hover { border-color: var(--green-400); }
.pn a span { font-size: 12.5px; color: var(--text-muted); }
.pn a b { font-weight: 600; font-size: 14.5px; line-height: 1.35; }
.pn__n { text-align: right; }
.stuck { display: grid; gap: 4px; margin-top: 26px; padding: 16px; border-radius: 12px; background: var(--green-50); border: 1px solid var(--green-100); font-size: 14.5px; color: var(--text-secondary); }
.stuck b { color: var(--text-primary); }
.stuck a { color: var(--green-700); }
.ha__side { position: sticky; top: 84px; display: grid; gap: 22px; }
.toc { display: grid; gap: 2px; font-size: 14px; }
.toc b { font-family: var(--display); font-size: 14.5px; margin-bottom: 6px; }
.toc a { text-decoration: none; color: var(--text-muted); padding: 5px 0 5px 12px; border-left: 2px solid var(--border-subtle); line-height: 1.4; }
.toc a:hover { color: var(--text-primary); }
.toc a.is-on, .toc a[aria-current="page"] { color: var(--green-700); border-left-color: var(--green-600); font-weight: 600; }
.toc--cat { max-height: 50vh; overflow: auto; }
@media (max-width: 960px) { .ha__g { grid-template-columns: 1fr; gap: 30px; } .ha__side { position: static; } .toc:not(.toc--cat) { display: none; } }

/* sidebar search (a plain GET form to /help?q=, works without script) */
.hs--side { height: 42px; max-width: none; padding: 0 12px; border-radius: 10px; box-shadow: none; }
.hs--side input { font-size: 14.5px; }
.toc a.toc__all { margin-top: 6px; color: var(--green-700); border-left-color: transparent; font-weight: 600; }

/* a guide's quick answers */
.ha__qa { margin-top: 36px; border-top: var(--rule-2); padding-top: 22px; }
.ha__qa h2 { font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: -0.015em; margin: 0 0 6px; }
.qa { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.qa li a { display: block; padding: 10px 0 10px 18px; border-bottom: var(--rule); text-decoration: none; position: relative; font-size: 15px; line-height: 1.4; color: var(--text-secondary); }
.qa li a::before { content: ''; position: absolute; left: 2px; top: 17px; width: 7px; height: 7px; border-radius: 2px; background: var(--green-200); }
.qa li a:hover { color: var(--green-700); }
.qa li a:hover::before { background: var(--green-600); }
@media (max-width: 640px) { .qa { grid-template-columns: 1fr; } }

/* an answer reads as one card of text: tighter than a guide */
.ha--answer .ha__sum { font-size: 19.5px; padding: 16px 18px; border-left: 3px solid var(--green-600); background: var(--stone-0); border-radius: 0 10px 10px 0; margin-bottom: 14px; }
.ha--answer .ha__meta { margin-bottom: 20px; }

/* topic pages */
.ht__main h1 { font-family: var(--display); font-weight: 600; font-size: clamp(32px, 4vw, 46px); letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 12px; }
.ht__h { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; margin: 30px 0 12px; scroll-margin-top: 80px; }
.rel--g .rel__c i { font-style: normal; font-size: 12.5px; color: var(--text-muted); margin-top: 4px; }
.ht__grp { scroll-margin-top: 80px; border-top: var(--rule); padding-top: 16px; margin-top: 18px; }
.ht__grp h3 { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; margin: 0 0 4px; }
.ht__grp h3 a { text-decoration: none; }
.ht__grp h3 a:hover { color: var(--green-700); }
.tq { list-style: none; margin: 0; padding: 0; display: grid; }
.tq li a { display: grid; gap: 2px; padding: 10px 0; border-bottom: var(--rule); text-decoration: none; }
.tq li:last-child a { border-bottom: 0; }
.tq li b { font-weight: 600; font-size: 15px; line-height: 1.4; }
.tq li span { font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.tq li a:hover b { color: var(--green-700); }

/* index: the link from a topic's guides to its answers */
.hl__cat h2 a { text-decoration: none; }
.hl__cat h2 a:hover { color: var(--green-700); }
.hl__more a b { color: var(--green-700); }
.hl__more a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* footer */
.hf { background: var(--ink-bg); color: var(--on-ink-muted); padding: 40px 0 26px; font-size: 14px; }
.hf__g { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.hf__logo { color: var(--on-ink); margin-bottom: 12px; }
.hf p { margin: 0 0 10px; max-width: 40ch; }
.hf__small { font-size: 12.5px; }
.hf h3 { font-size: 14px; color: var(--on-ink); margin: 0 0 10px; font-weight: 600; }
.hf a:not(.hh__logo) { display: block; text-decoration: none; padding: 4px 0; color: var(--on-ink-muted); }
.hf a:hover { color: var(--on-ink); }
.hf__b { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--ink-line); font-size: 13px; }
.hf .hf__soc { display: flex; align-items: center; gap: 14px; }
.hf .hf__soc a { display: inline-flex; padding: 0; color: var(--on-ink-muted); }
.hf .hf__soc a:hover { color: var(--on-ink); }
.hf__soc svg { width: 16px; height: 16px; display: block; fill: currentColor; }
@media (max-width: 760px) { .hf__g { grid-template-columns: 1fr 1fr; } .hf__g > div:first-child { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* videos: the player (article and watch page), cards, the hub, the index band */
.hvid { margin: 0 0 26px; }
.hvp { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--ink-bg); border: var(--rule-2); border-radius: 12px; }
.hvp--tall { aspect-ratio: 9 / 16; width: min(100%, 420px); margin-inline: auto; }
.hvid figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin-top: 10px; font-size: 14px; color: var(--text-muted); }
.hvid figcaption b { color: var(--text-primary); font-weight: 600; }
.hvid figcaption a, .hvid__more a, .hvw__read a, .ha__meta a { color: var(--green-700); }
.hvid__more { margin: -12px 0 24px; font-size: 14px; color: var(--text-muted); }
.hvid--watch { margin-bottom: 18px; }
.hvw__read { margin: 0 0 8px; font-size: 15px; color: var(--text-secondary); }
.hvw__ch, .hvt { margin-top: 30px; border-top: var(--rule-2); padding-top: 22px; }
.hvw__ch h2, .hvt h2 { font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: -0.015em; margin: 0 0 10px; }
.hvch { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.hvch a { display: flex; gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: var(--rule); text-decoration: none; font-size: 15px; line-height: 1.4; color: var(--text-secondary); }
.hvch a span, .hvt__t { font-family: var(--mono); font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--green-700); }
.hvch a span { min-width: 3.2em; }
.hvch a:hover, .hvch a.is-on { color: var(--text-primary); }
.hvch a.is-on { font-weight: 600; }
@media (max-width: 640px) { .hvch { grid-template-columns: 1fr; } }
.hvt { font-size: 16px; line-height: 1.7; color: var(--text-secondary); }
.hvt h3 { display: flex; align-items: baseline; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 16px; color: var(--text-primary); margin: 18px 0 4px; scroll-margin-top: 80px; }
.hvt p { margin: 0 0 10px; }
.hvt > p:first-of-type { display: flex; gap: 10px; align-items: baseline; }
.hvt__t { flex: none; text-decoration: none; padding: 1px 6px; border-radius: 5px; background: var(--green-50); border: 1px solid var(--green-100); }
.hvt__t:hover { border-color: var(--green-400); }

.hvg { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.hvg--big { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.hvc { display: grid; align-content: start; gap: 4px; min-width: 0; text-decoration: none; }
.hvc__i { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; border: var(--rule-2); background: var(--stone-100); margin-bottom: 6px; transition: border-color .16s; }
.hvc__i img { width: 100%; height: 100%; object-fit: cover; }
.hvc--tall .hvc__i img { object-fit: contain; }
.hvc__i i { position: absolute; right: 8px; bottom: 8px; font-style: normal; font-family: var(--mono); font-size: 12px; font-variant-numeric: tabular-nums; color: var(--on-ink); background: color-mix(in srgb, var(--ink-bg) 82%, transparent); padding: 2px 7px; border-radius: 6px; }
.hvc:hover .hvc__i, .hvc[aria-current="page"] .hvc__i { border-color: var(--green-400); }
.hvc b { font-weight: 600; font-size: 15.5px; line-height: 1.35; }
.hvc:hover b { color: var(--green-700); }
.hvc > span:last-child { font-size: 13.5px; color: var(--text-muted); line-height: 1.45; }

.hvh h1 { font-family: var(--display); font-weight: 600; font-size: clamp(32px, 4vw, 46px); letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 12px; }
.hvh__l { max-width: 62ch; }
.hvh .ha__meta a { text-decoration: none; }
.hvh__sec { margin-top: 30px; scroll-margin-top: 80px; }
.hvh__sec h2 { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; margin: 0 0 4px; scroll-margin-top: 80px; }
.hvh__d { margin: 0 0 14px; font-size: 14.5px; color: var(--text-muted); }
.hvh__sec > h2 + .hvg { margin-top: 12px; }

.hvi { padding-block: 34px 6px; }
.hvi__h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 14px; }
.hvi__h h2 { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; margin: 0; }
.hvi__h p { margin: 0; flex: 1 1 320px; font-size: 14.5px; color: var(--text-muted); }
.hvi__h a { font-weight: 600; font-size: 14.5px; color: var(--green-700); }
.hvi .hvg { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.hx__start a.hx__vid { border-color: var(--green-200); color: var(--green-700); font-weight: 600; }

/* the Glossary topic points to the full trade glossary at /glossary */
.hglos { margin: 0 0 8px; border-color: var(--green-200); background: var(--green-50); }
.hglos b { color: var(--green-700); }
