/* lawblog.az — mock-up stylesheet. Meant to become static/css/site.css as is.
   Two families: Source Serif 4 for headlines and reading text, Inter for
   everything around it. Both cover ə ğ ı ş ç ö ü. The build self-hosts them. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var-latin.65850a373e25.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var-latin-ext.01ba6c2a184b.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-var-latin.6a682eb0234e.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-var-latin-ext.20f95b1e4359.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-var-italic-latin.e5fc844e2baa.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-var-italic-latin-ext.fb43d3e01409.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #1b1b1d;
  --ink-2: #44444a;
  --muted: #6b6b72;
  --rule: #e7e3dc;
  --rule-strong: #d6d1c8;
  --brand: #d4141c;          /* logo red #eb1c24, darkened to pass AA on white */
  --brand-hover: #a90f16;
  --on-brand: #fff;          /* text on a brand fill */
  --tint: #fbefee;
  --focus: #1f5fd1;

  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1120px;
  --read: 680px;
  --gutter: 16px;
  --radius: 6px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141416; --surface: #1b1b1e; --ink: #ecebe8; --ink-2: #c9c8c4;
    --muted: #9b9a97; --rule: #2c2c30; --rule-strong: #3a3a3f;
    --brand: #ff4d52; --brand-hover: #ff7a7e; --on-brand: #1b1b1d;
    --tint: #2a1b1c; --focus: #7aa7ff;
  }
}
:root[data-theme="dark"] {
  --bg: #141416; --surface: #1b1b1e; --ink: #ecebe8; --ink-2: #c9c8c4;
  --muted: #9b9a97; --rule: #2c2c30; --rule-strong: #3a3a3f;
  --brand: #ff4d52; --brand-hover: #ff7a7e; --on-brand: #1b1b1d;
  --tint: #2a1b1c; --focus: #7aa7ff;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-head { background: var(--surface); border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; gap: 22px; align-items: center; margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; color: var(--ink-2); padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--brand); }
.head-tools { display: flex; align-items: center; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font: 600 14px/1 var(--sans); padding: 10px 16px; border-radius: var(--radius);
  border: 1px solid var(--brand); background: var(--brand); color: var(--on-brand);
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: var(--on-brand); }
.btn.ghost, .btn.ghost:hover { background: transparent; color: var(--brand); }
.btn.ghost:hover { background: var(--tint); }
.icon-btn {
  width: 36px; height: 36px; display: inline-grid; place-items: center;
  border-radius: 50%; color: var(--ink-2); text-decoration: none; border: 0; background: none;
}
.icon-btn:hover { background: var(--bg); color: var(--ink); }
.lang { font: 600 13px/1 var(--sans); color: var(--muted); text-decoration: none; letter-spacing: .04em; }
.lang:hover { color: var(--ink); }
.menu-toggle { display: none; }
.nav-extra { display: none; }

/* ---------- type helpers ---------- */
.kicker {
  font: 600 12px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand); text-decoration: none;
}
.kicker:hover { text-decoration: underline; }
.meta { font-size: 14px; color: var(--muted); }
.meta a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.meta a:hover { text-decoration: underline; }
.meta .dot::before { content: "·"; margin: 0 6px; }
.section-title {
  font: 600 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--rule);
}

/* ---------- home ---------- */
.intro { padding: 28px 0 8px; color: var(--ink-2); font-size: 15px; }
.intro strong { color: var(--ink); font-weight: 600; }
.lead {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; align-items: center;
  padding: 24px 0 40px; border-bottom: 1px solid var(--rule);
}
.lead img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.lead h1 { font: 600 38px/1.15 var(--serif); margin: 10px 0 14px; letter-spacing: -.01em; }
.lead h1 a { text-decoration: none; }
.lead h1 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.lead p.excerpt { font: 18px/1.6 var(--serif); color: var(--ink-2); margin: 0 0 16px; }

.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding: 40px 0 64px; }
.post-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 168px; gap: 24px;
  padding: 22px 0; border-bottom: 1px solid var(--rule);
}
.post-row:first-of-type { padding-top: 4px; }
.post-row h2 { font: 600 22px/1.25 var(--serif); margin: 6px 0 8px; }
.post-row h2 a { text-decoration: none; }
.post-row h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.post-row p { margin: 0 0 10px; color: var(--ink-2); font-size: 15px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-row img { width: 168px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.more-link { display: inline-block; margin-top: 24px; font-weight: 600; color: var(--brand); text-decoration: none; }
.more-link:hover { text-decoration: underline; }

.side-block { margin-bottom: 40px; }
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list li { display: flex; justify-content: space-between; padding: 7px 0; font-size: 15px; }
.cat-list a { text-decoration: none; color: var(--ink-2); }
.cat-list a:hover { color: var(--ink); text-decoration: underline; }
.cat-list span { color: var(--muted); font-variant-numeric: tabular-nums; }
.pod-list { list-style: none; margin: 0; padding: 0; counter-reset: ep; }
.pod-list li { padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 14.5px; line-height: 1.45; }
.pod-list li:last-child { border-bottom: 0; }
.pod-list a { text-decoration: none; }
.pod-list a:hover { text-decoration: underline; }
.pod-list small { display: block; color: var(--muted); margin-top: 3px; font-size: 13px; }

.signup { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px; }
.signup h3 { font: 600 19px/1.3 var(--serif); margin: 0 0 6px; }
.signup p { margin: 0 0 14px; font-size: 14px; color: var(--ink-2); }
.signup form { display: flex; gap: 8px; flex-wrap: wrap; }
.signup input { flex: 1 1 160px; min-width: 0; }

/* ---------- forms ---------- */
input[type=email], input[type=text], textarea, select {
  font: 15px/1.4 var(--sans); color: var(--ink); background: var(--surface);
  border: 1px solid var(--rule-strong); border-radius: var(--radius); padding: 10px 12px; width: 100%;
}
input:focus, textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field .hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.req { color: var(--brand); }
.file-drop {
  border: 1.5px dashed var(--rule-strong); border-radius: var(--radius); padding: 22px;
  text-align: center; color: var(--ink-2); font-size: 14px; background: var(--surface);
}
.file-drop strong { color: var(--brand); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.check input { margin-top: 3px; accent-color: var(--brand); }
.altcha {
  display: flex; align-items: center; gap: 10px; border: 1px solid var(--rule-strong);
  border-radius: var(--radius); padding: 12px 14px; font-size: 14px; background: var(--surface); max-width: 320px;
}
.altcha .tick { width: 20px; height: 20px; border-radius: 4px; border: 2px solid #2f8f4e; display: grid; place-items: center; color: #2f8f4e; font-weight: 700; font-size: 13px; }
.altcha small { margin-left: auto; color: var(--muted); font-size: 11px; }

/* ---------- article ---------- */
.article-head { max-width: 880px; margin: 0 auto; padding: 44px var(--gutter) 0; }
.article-head .kickers { display: flex; gap: 14px; flex-wrap: wrap; }
.article-head h1 { font: 600 44px/1.12 var(--serif); letter-spacing: -.015em; margin: 14px 0 20px; max-width: 820px; }
.byline { display: flex; align-items: center; gap: 12px; padding-bottom: 28px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--tint); color: var(--brand);
  display: grid; place-items: center; font: 600 14px/1 var(--sans); flex-shrink: 0;
}
.byline .who { font-weight: 600; font-size: 15px; }
.byline .who a { text-decoration: none; }
.byline .who a:hover { text-decoration: underline; }
.byline .meta { font-size: 14px; }
.byline .tools { margin-left: auto; display: flex; gap: 6px; }
.hero { max-width: 880px; margin: 0 auto; padding: 0 var(--gutter); }
.hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.hero figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }

.prose { max-width: var(--read); margin: 0 auto; padding: 36px var(--gutter) 8px; font: 19px/1.72 var(--serif); color: var(--ink); overflow-wrap: anywhere; }
.prose p { margin: 0 0 1.15em; }
.prose h2 { font: 600 27px/1.25 var(--serif); margin: 1.8em 0 .6em; letter-spacing: -.01em; }
.prose h3 { font: 600 21px/1.3 var(--serif); margin: 1.5em 0 .5em; }
.prose a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--brand-hover); }
.prose blockquote { margin: 1.5em 0; padding: 2px 0 2px 22px; border-left: 3px solid var(--brand); color: var(--ink-2); font-style: italic; }
.prose .toc { font: 15px/1.5 var(--sans); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px 20px; margin: 0 0 2em; }
.prose .toc strong { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.prose .toc ol { margin: 0; padding-left: 0; list-style: none; counter-reset: toc; }
.prose .toc li { margin: 3px 0; }
.prose .toc li:not(.toc-numbered) { counter-increment: toc; }
.prose .toc li:not(.toc-numbered)::before { content: counter(toc) ". "; color: var(--muted); }
.prose .toc a { color: var(--ink-2); text-decoration: none; }
.prose .toc a:hover { color: var(--ink); text-decoration: underline; }

/* footnote marker with hover/focus card */
.fn { position: relative; }
.fn > a { font: 600 12px/1 var(--sans); vertical-align: super; text-decoration: none; color: var(--brand); padding: 0 2px; }
.fn .fn-card {
  position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%);
  width: min(360px, 80vw); background: var(--ink); color: var(--bg); font: 14px/1.5 var(--sans);
  padding: 12px 14px; border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,.18);
  opacity: 0; visibility: hidden; transition: opacity .15s; z-index: 5; font-style: normal;
  overflow-wrap: anywhere;
}
.fn:hover .fn-card, .fn:focus-within .fn-card, .fn.show .fn-card { opacity: 1; visibility: visible; }
.notes { max-width: var(--read); margin: 8px auto 0; padding: 24px var(--gutter) 0; overflow-wrap: anywhere; }
.notes ol { margin: 0; padding-left: 22px; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.notes li { margin-bottom: 10px; }
.notes li a.back { text-decoration: none; color: var(--brand); margin-left: 4px; }

.article-foot { max-width: var(--read); margin: 0 auto; padding: 28px var(--gutter) 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { font-size: 13.5px; padding: 6px 12px; border: 1px solid var(--rule-strong); border-radius: 999px; text-decoration: none; color: var(--ink-2); background: var(--surface); }
.chip:hover { border-color: var(--ink-2); color: var(--ink); }
.author-box { display: flex; gap: 16px; padding: 22px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.author-box .avatar { width: 56px; height: 56px; font-size: 18px; }
.author-box h3 { margin: 0 0 4px; font: 600 17px/1.3 var(--sans); }
.author-box p { margin: 0 0 6px; font-size: 14.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.related { max-width: var(--wrap); margin: 0 auto; padding: 48px var(--gutter) 64px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); margin-bottom: 12px; }
.card h3 { font: 600 19px/1.3 var(--serif); margin: 6px 0 8px; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.translation-note { font: 14px/1.4 var(--sans); color: var(--muted); }
.translation-note a { color: var(--brand); }

/* ---------- archive ---------- */
.archive-head { padding: 40px 0 24px; border-bottom: 1px solid var(--rule); }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.archive-head h1 { font: 600 40px/1.15 var(--serif); margin: 8px 0 8px; letter-spacing: -.01em; }
.archive-head p { margin: 0; color: var(--ink-2); max-width: 640px; }
.subcats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.archive-list { max-width: 820px; padding: 8px 0 24px; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 0 64px; font-size: 15px; max-width: 100%; }
.pager a, .pager span { min-width: 38px; height: 38px; display: inline-grid; place-items: center; padding: 0 10px; border-radius: var(--radius); text-decoration: none; color: var(--ink-2); }
.pager .ellipsis { min-width: 0; padding: 0 4px; background: none; }
.pager a:hover { background: var(--surface); color: var(--ink); }
.pager span[aria-current] { background: var(--ink); color: var(--bg); font-weight: 600; }

/* ---------- page / form ---------- */
.page { max-width: var(--read); margin: 0 auto; padding: 44px var(--gutter) 72px; }
.page h1 { font: 600 40px/1.15 var(--serif); margin: 0 0 14px; letter-spacing: -.01em; }
.page .lede { font: 19px/1.6 var(--serif); color: var(--ink-2); margin: 0 0 28px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 32px; padding: 0; list-style: none; counter-reset: s; }
.steps li { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 14px; font-size: 14px; color: var(--ink-2); counter-increment: s; }
.steps li::before { content: counter(s); display: block; font: 600 22px/1 var(--serif); color: var(--brand); margin-bottom: 6px; }
.form-card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.success { display: flex; gap: 14px; background: #eef7f0; border: 1px solid #cfe7d6; color: #1f5132; border-radius: var(--radius); padding: 16px 18px; margin-top: 24px; font-size: 14.5px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .success { background: #16261b; border-color: #24442f; color: #b9e2c5; } }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--rule); background: var(--surface); }
.site-foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-top: 36px; padding-bottom: 36px; }
.site-foot img { height: 30px; width: auto; margin-bottom: 12px; }
.site-foot p { margin: 0; font-size: 14px; color: var(--muted); max-width: 340px; }
.site-foot h4 { margin: 0 0 10px; font: 600 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { padding: 4px 0; font-size: 14.5px; }
.site-foot a { text-decoration: none; color: var(--ink-2); }
.site-foot a:hover { color: var(--ink); text-decoration: underline; }
.copy { border-top: 1px solid var(--rule); font-size: 13px; color: var(--muted); padding: 14px 0; }

/* ---------- phone ---------- */
@media (max-width: 900px) {
  .home-grid { grid-template-columns: 1fr; gap: 8px; }
  .lead { grid-template-columns: 1fr; gap: 18px; }
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav, .head-tools .lang, .head-tools .btn { display: none; }
  .menu-toggle { display: inline-grid; }
  .head-tools { gap: 4px; margin-left: auto; }
  /* On a phone the note card spans the reading column instead of floating
     over the marker, so a marker near the edge cannot push it off-screen. */
  .fn { position: static; }
  .prose p { position: relative; }
  .fn .fn-card { left: 0; right: 0; width: auto; transform: none; bottom: auto; top: calc(100% + 6px); }
  .site-head .wrap { min-height: 58px; gap: 8px; }
  .brand img { height: 32px; }
  .lead h1 { font-size: 28px; }
  .lead p.excerpt { font-size: 16.5px; }
  .post-row { grid-template-columns: minmax(0, 1fr) 96px; gap: 14px; padding: 18px 0; }
  .post-row img { width: 96px; }
  .post-row h2 { font-size: 18.5px; }
  .post-row p { display: none; }
  .article-head { padding-top: 28px; }
  .article-head h1 { font-size: 30px; }
  .byline .tools { display: none; }
  .hero { padding: 0; }
  .hero img { border-radius: 0; }
  .hero figcaption { padding: 0 var(--gutter); }
  .prose { font-size: 18px; padding-top: 26px; }
  .prose h2 { font-size: 23px; }
  .cards { grid-template-columns: 1fr; }
  .archive-head h1, .page h1 { font-size: 30px; }
  .steps, .two { grid-template-columns: 1fr; }
  .form-card { padding: 18px; }
  .site-foot .wrap { grid-template-columns: 1fr 1fr; }
  .site-foot .wrap > :first-child { grid-column: 1 / -1; }
}

/* ---------- additions for the real site ---------- */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--bg); padding: 10px 16px; z-index: 20; }
.skip-link:focus { left: 8px; top: 8px; }
.draft-banner { background: var(--brand); color: var(--on-brand); text-align: center; padding: 10px 16px; font-weight: 600; font-size: 14px; }
.chip-rest { display: none; }
.chip-rest.open { display: contents; }
button.chip { font: inherit; cursor: pointer; }
.cat-tree { max-width: 640px; padding: 12px 0 48px; }
.cat-tree .cat-child { padding-left: 18px; }
@media (max-width: 760px) {
  .nav.open .nav-extra { display: inline-flex; }
  .nav.open .nav-extra.btn { margin-top: 8px; }
}
.search-bar { border-bottom: 1px solid var(--rule); background: var(--surface); padding: 14px 0; }
.search-bar form { display: flex; gap: 8px; }
.search-bar input { flex: 1; }
.form-errors { border: 1px solid var(--brand); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 18px; font-size: 14.5px; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.altcha-mark { width: 20px; height: 20px; border-radius: 4px; border: 2px solid var(--rule-strong); flex-shrink: 0; display: grid; place-items: center; }
.altcha[data-state="done"] .altcha-mark { border-color: #2f8f4e; color: #2f8f4e; }
.altcha[data-state="done"] .altcha-mark::after { content: "✓"; font-weight: 700; font-size: 13px; }
.form-consent { font-size: 14px; color: var(--ink-2); margin-bottom: 18px; }
.form-consent-title { font: 600 15px/1.3 var(--sans); color: var(--ink); margin: 0 0 6px; }
.field-help, .hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.head-tools form { display: inline; }
@media (max-width: 760px) {
  .nav.open { display: flex; position: absolute; top: 58px; left: 0; right: 0; background: var(--surface); flex-direction: column; align-items: flex-start; padding: 12px 16px 18px; border-bottom: 1px solid var(--rule); gap: 6px; z-index: 10; }
  .site-head .wrap { position: relative; }
}
