/* Self-hosted from Google Fonts. Space Grotesk, Inter and JetBrains Mono are licensed under the SIL Open Font License 1.1. */
/* Inter 400 latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-ext-367ba69a.woff2) format('woff2');
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter 400 latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-bec94a4d.woff2) format('woff2');
  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;
}
/* Inter 500 latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-ext-367ba69a.woff2) format('woff2');
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter 500 latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-bec94a4d.woff2) format('woff2');
  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;
}
/* Inter 600 latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-ext-367ba69a.woff2) format('woff2');
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter 600 latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-bec94a4d.woff2) format('woff2');
  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;
}
/* Inter 700 latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-ext-367ba69a.woff2) format('woff2');
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter 700 latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-bec94a4d.woff2) format('woff2');
  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;
}
/* JetBrains Mono 500 latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-latin-ext-9326b4c9.woff2) format('woff2');
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* JetBrains Mono 500 latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-latin-b87346fd.woff2) format('woff2');
  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;
}
/* JetBrains Mono 700 latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-latin-ext-9326b4c9.woff2) format('woff2');
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* JetBrains Mono 700 latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-latin-b87346fd.woff2) format('woff2');
  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;
}
/* Space Grotesk 500 latin-ext */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/space-grotesk-latin-ext-012a46f9.woff2) format('woff2');
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Space Grotesk 500 latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/space-grotesk-latin-1d9f0cbb.woff2) format('woff2');
  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;
}
/* Space Grotesk 600 latin-ext */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/space-grotesk-latin-ext-012a46f9.woff2) format('woff2');
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Space Grotesk 600 latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/space-grotesk-latin-1d9f0cbb.woff2) format('woff2');
  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;
}
/* Space Grotesk 700 latin-ext */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/space-grotesk-latin-ext-012a46f9.woff2) format('woff2');
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Space Grotesk 700 latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/space-grotesk-latin-1d9f0cbb.woff2) format('woff2');
  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;
}

/* =====================================================================
   Slang dictionary theme
   Warm paper ground, ink text, vermillion accent. Chunky ink borders and
   hard offset shadows rather than soft elevation. Space Grotesk for display,
   Inter for reading.
   ===================================================================== */

:root {
  --paper: #fbf8f3;
  --paper-2: #f3ede2;
  --card: #ffffff;
  --ink: #17130f;
  --ink-2: #3d362f;
  --ink-3: #6b6157;
  --line: #17130f;
  --rule: #ddd4c5;
  --accent: #c8341b;
  --accent-ink: #ffffff;
  --teal: #0f7a6c;
  --amber: #f2b53c;
  --violet: #5b4bd6;

  --container: 1180px;
  --font-display: "Space Grotesk", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 4px 4px 0 var(--line);
  --shadow-lg: 7px 7px 0 var(--line);
  --border: 2px solid var(--line);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.slide-opened, body.modal-open { overflow: hidden; }

a { color: var(--ink); text-decoration: none; }
img { max-width: 100%; height: auto; vertical-align: middle; }
p { margin: 0 0 1.35em; }
ul, ol { margin: 0 0 1.35em 1.25em; padding: 0; }
li { margin-bottom: 0.45em; }
hr { border: 0; border-top: 2px dashed var(--rule); margin: 2.5em 0; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em; background: var(--paper-2); padding: 0.12em 0.4em; border-radius: 5px;
}
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); color: var(--ink); margin: 0 0 0.7em; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-weight: 700; font-size: clamp(2.1rem, 3.4vw + 1rem, 3.4rem); }
h2 { font-weight: 700; font-size: clamp(1.45rem, 1.2vw + 1.05rem, 1.85rem); }
h3 { font-weight: 600; font-size: clamp(1.15rem, 0.7vw + 0.95rem, 1.35rem); }
h4 { font-weight: 600; font-size: 1.1rem; }
h5, h6 { font-weight: 600; font-size: 1rem; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed !important; top: 12px; left: 12px; width: auto; height: auto; margin: 0; clip: auto;
  background: var(--ink); color: var(--paper); padding: 0.7em 1.1em; z-index: 100000; border-radius: var(--radius-sm);
}
.hidden-field { display: none; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 18px; } }

/* ---------- buttons, chips, labels ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  border: var(--border); border-radius: 999px; padding: 0.7em 1.4em; background: var(--card); color: var(--ink);
  box-shadow: var(--shadow); transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover, .btn:focus { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--line); color: var(--ink); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover, .btn-accent:focus { color: var(--accent-ink); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover, .btn-ink:focus { color: var(--paper); }

.chip {
  display: inline-flex; align-items: center; font-family: var(--font-display); font-weight: 700;
  font-size: 0.68rem; letter-spacing: 0.09em; text-transform: uppercase;
  border: 2px solid var(--line); border-radius: 999px; padding: 0.26em 0.7em; background: var(--card); color: var(--ink);
}
.chip-slang { background: var(--amber); }
.chip-grammar { background: var(--teal); color: #fff; border-color: var(--line); }
.chip-blog { background: var(--violet); color: #fff; }

.eyebrow {
  font-family: var(--font-display); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 0.6rem;
}
.meta-date { font-size: 0.8rem; color: var(--ink-3); margin: 0; font-variant-numeric: tabular-nums; }

/* ---------- header ---------- */
.site-header { background: var(--paper); border-bottom: var(--border); position: sticky; top: 0; z-index: 60; }
.inside-header { max-width: var(--container); margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 1.25rem; }
.site-logo { display: flex; align-items: center; }
.site-logo img { width: 115px; height: auto; display: block; }
.main-navigation { display: flex; align-items: center; gap: 0.35rem; margin-left: auto; }
.main-navigation .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.15rem; }
.main-navigation .menu li { margin: 0; }
.main-navigation .menu a {
  display: block; font-family: var(--font-display); font-weight: 600; font-size: 0.94rem;
  padding: 0.5em 0.8em; border-radius: 999px; color: var(--ink-2); border: 2px solid transparent;
}
.main-navigation .menu a:hover { background: var(--paper-2); color: var(--ink); }
.main-navigation .current-menu-item > a { border-color: var(--line); background: var(--card); color: var(--ink); }
.menu-bar-items { display: flex; align-items: center; gap: 0.35rem; margin-left: 0.4rem; }
.menu-bar-item, .menu-toggle {
  background: var(--card); border: var(--border); border-radius: 999px; color: var(--ink);
  width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem;
}
.menu-bar-item:hover, .menu-toggle:hover { background: var(--amber); }
.menu-toggle { display: none; }
@media (max-width: 1000px) {
  .main-navigation .menu { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 640px) { .inside-header { padding: 12px 18px; } .site-logo img { width: 100px; } }

/* ---------- slide-out ---------- */
.slideout-overlay { position: fixed; inset: 0; background: rgba(23, 19, 15, 0.45); z-index: 10000; }
.slideout-navigation {
  position: fixed; top: 0; right: 0; bottom: 0; width: 290px; max-width: 86vw; background: var(--paper);
  border-left: var(--border); transform: translateX(100%); transition: transform 0.28s ease; z-index: 10001;
  overflow-y: auto; padding: 14px;
}
.slideout-navigation:not(.open) { visibility: hidden; transition: transform 0.28s ease, visibility 0s linear 0.28s; }
.slideout-navigation.open { transform: none; visibility: visible; }
.slideout-exit {
  background: var(--card); border: var(--border); border-radius: 999px; width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center; margin-left: auto; font-size: 1.05rem; color: var(--ink);
}
.slideout-menu { list-style: none; margin: 1rem 0 0; padding: 0; }
.slideout-menu li { margin: 0 0 0.4rem; }
.slideout-menu a {
  display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  padding: 0.6em 0.8em; border-radius: var(--radius-sm); color: var(--ink);
}
.slideout-menu a:hover { background: var(--paper-2); }

/* ---------- search modal ---------- */
.gp-modal { position: fixed; inset: 0; z-index: 10000; }
.gp-modal-overlay {
  position: fixed; inset: 0; background: rgba(23, 19, 15, 0.35); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; justify-content: center; align-items: flex-start; padding: 18vh 18px 0; opacity: 0; transition: opacity 0.22s ease;
}
.gp-modal.open .gp-modal-overlay { opacity: 1; }
.gp-modal-container { width: 100%; max-width: 560px; transform: translateY(-8px); transition: transform 0.22s ease; }
.gp-modal.open .gp-modal-container { transform: none; }
.search-modal-form {
  display: flex; align-items: center; background: var(--card); border: var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
}
.search-modal-form .search-field {
  flex: 1; min-width: 0; height: 62px; border: 0; background: transparent; color: var(--ink);
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; padding: 0 20px;
}
.search-modal-form .search-field:focus { outline: none; }
.search-modal-form button {
  border: 0; border-left: var(--border); background: var(--accent); color: #fff;
  width: 62px; height: 62px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem;
}

/* ---------- home ---------- */
.lookup { border-bottom: var(--border); background: var(--paper-2); }
.lookup-inner { max-width: var(--container); margin: 0 auto; padding: 68px 24px 60px; text-align: center; }
.lookup h1 { margin-bottom: 0.35em; max-width: 15ch; margin-left: auto; margin-right: auto; }
.lookup h1 .mark { color: var(--accent); }
.lookup-sub { font-size: 1.15rem; color: var(--ink-2); max-width: 54ch; margin: 0 auto 2rem; }
.lookup-form { display: flex; max-width: 560px; margin: 0 auto 1.25rem; background: var(--card); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.lookup-form input {
  flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 20px; height: 64px;
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--ink);
}
.lookup-form input:focus { outline: none; }
.lookup-form button { border: 0; border-left: var(--border); background: var(--accent); color: #fff; padding: 0 1.4rem; height: 64px; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; }
.lookup-hint { font-size: 0.9rem; color: var(--ink-3); margin: 0; }
.lookup-hint a { border-bottom: 2px solid var(--accent); font-weight: 600; }
@media (max-width: 640px) { .lookup-inner { padding: 44px 18px 40px; } .lookup-form { flex-direction: column; } .lookup-form input, .lookup-form button { height: 56px; flex: none; } .lookup-form button { border-left: 0; border-top: var(--border); } }

.section { padding: 60px 0; }
.section + .section { padding-top: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head a { font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; border-bottom: 2px solid var(--accent); }

/* term tiles */
.term-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.term-tile {
  display: flex; flex-direction: column; gap: 0.3rem; background: var(--card); border: var(--border);
  border-radius: var(--radius); padding: 1rem 1.05rem; box-shadow: var(--shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.term-tile:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--line); }
.term-tile .t { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1.1; }
.term-tile .d { font-size: 0.85rem; color: var(--ink-3); line-height: 1.4; }

/* article cards */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.post-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 980px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .post-grid, .post-grid--2 { grid-template-columns: 1fr; } }

.card {
  display: flex; flex-direction: column; background: var(--card); border: var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.card:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--line); }
.card-media { position: relative; border-bottom: var(--border); aspect-ratio: 40 / 21; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-media .chip { position: absolute; top: 12px; left: 12px; }
.card-body { padding: 1.1rem 1.15rem 1.2rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.card-title { font-size: 1.2rem; margin: 0; }
.card-sub { font-size: 0.92rem; color: var(--ink-2); margin: 0; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 0.35rem; }

/* ---------- dictionary ---------- */
.az-nav { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 2.5rem; }
.az-nav a, .az-nav span {
  font-family: var(--font-display); font-weight: 700; font-size: 0.88rem; min-width: 38px;
  display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 0.5em;
  border: var(--border); border-radius: var(--radius-sm); background: var(--card);
}
.az-nav a:hover { background: var(--amber); }
.az-nav span { opacity: 0.35; border-style: dashed; }
.az-group { margin-bottom: 2.75rem; scroll-margin-top: 90px; }
.az-letter {
  font-family: var(--font-display); font-size: 2rem; font-weight: 700; margin: 0 0 1rem;
  padding-bottom: 0.35rem; border-bottom: var(--border);
}
.az-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px 22px; }
.az-list li { margin: 0; padding: 0.6rem 0; border-bottom: 1px dashed var(--rule); }
.az-list .t { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.az-list .t:hover { color: var(--accent); }
.az-list .d { display: block; font-size: 0.88rem; color: var(--ink-3); }

/* ---------- archive ---------- */
.page-head { border-bottom: var(--border); background: var(--paper-2); }
.page-head-inner { max-width: var(--container); margin: 0 auto; padding: 52px 24px 46px; }
.page-head h1 { margin-bottom: 0.3em; }
.page-head p { font-size: 1.1rem; color: var(--ink-2); max-width: 62ch; margin: 0; }
@media (max-width: 640px) { .page-head-inner { padding: 36px 18px 32px; } }

.archive { padding: 52px 0 72px; }
.archive-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 46px; align-items: start; }
@media (max-width: 1000px) { .archive-grid { grid-template-columns: 1fr; gap: 46px; } }
.paging { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; flex-wrap: wrap; }
.paging-info { font-family: var(--font-display); font-size: 0.85rem; color: var(--ink-3); }
.search-inline { display: flex; gap: 10px; margin: 1.25rem 0 0; max-width: 520px; }
.search-inline input {
  flex: 1; min-width: 0; height: 50px; padding: 0 1rem; border: var(--border);
  border-radius: var(--radius-sm); background: var(--card); font-size: 1rem; color: var(--ink);
}

/* sidebar */
.sidebar { display: flex; flex-direction: column; gap: 26px; }
.panel { background: var(--card); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; }
.panel h2 { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1rem; }
.panel ol { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.panel ol li { counter-increment: n; margin: 0 0 0.7rem; padding-left: 1.9rem; position: relative; font-size: 0.95rem; line-height: 1.4; }
.panel ol li::before {
  content: counter(n); position: absolute; left: 0; top: 0.05em; font-family: var(--font-display);
  font-weight: 700; font-size: 0.75rem; width: 1.35rem; height: 1.35rem; border: 2px solid var(--line);
  border-radius: 999px; display: flex; align-items: center; justify-content: center;
}
.panel ol a:hover { color: var(--accent); }
.newsletter { background: var(--amber); }
.newsletter h2 { color: var(--ink); }
.newsletter p { font-size: 0.95rem; }
.newsletter-form input {
  width: 100%; border: var(--border); border-radius: var(--radius-sm); padding: 0.75rem 0.9rem;
  margin-bottom: 0.6rem; background: var(--card); font-size: 0.95rem;
}
.newsletter-form .btn { width: 100%; }
.newsletter-note { font-size: 0.78rem; color: var(--ink-2); margin: 0.8rem 0 0; }

/* ---------- single entry ---------- */
.entry-head { border-bottom: var(--border); background: var(--paper-2); }
.entry-head-inner { max-width: 880px; margin: 0 auto; padding: 48px 24px 44px; }
.entry-head .chip { margin-bottom: 1.1rem; }
.entry-term { font-size: clamp(2.6rem, 6vw + 1rem, 4.6rem); margin: 0 0 0.15em; letter-spacing: -0.035em; }
.entry-sub { font-family: var(--font-display); font-size: clamp(1.05rem, 1vw + 0.8rem, 1.4rem); font-weight: 500; color: var(--ink-2); margin: 0 0 1.5rem; }
.entry-byline { display: flex; align-items: center; gap: 0.7rem; font-size: 0.88rem; color: var(--ink-3); flex-wrap: wrap; }
.entry-byline img { width: 34px; height: 34px; border-radius: 999px; border: 2px solid var(--line); }
.entry-byline .dot { opacity: 0.5; }
@media (max-width: 640px) { .entry-head-inner { padding: 32px 18px 30px; } }

.factbox {
  background: var(--card); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.15rem 1.3rem; margin: 0 0 2rem;
}
.factbox dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 0.55rem 1.25rem; }
.factbox dt { font-family: var(--font-display); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink-3); padding-top: 0.15em; }
.factbox dd { margin: 0; font-size: 0.97rem; }
@media (max-width: 560px) { .factbox dl { grid-template-columns: 1fr; gap: 0.15rem; } .factbox dd { margin-bottom: 0.6rem; } }

.entry-wrap { padding: 46px 0 72px; }
.entry-layout { max-width: 880px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .entry-layout { padding: 0 18px; } }

.entry-content { font-size: 1.075rem; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h2 { margin-top: 2.2em; }
.entry-content h3 { margin-top: 1.7em; }
.entry-content h2 + h3 { margin-top: 0.9em; }
.entry-content a { color: var(--ink); border-bottom: 2px solid var(--accent); font-weight: 500; }
.entry-content a:hover { background: var(--amber); }
.entry-content strong { font-weight: 700; }
.entry-content blockquote {
  margin: 0 0 1.35em; padding: 0.9rem 1.2rem; background: var(--card);
  border: var(--border); border-left-width: 7px; border-radius: var(--radius-sm); font-size: 1.02rem;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content figure { margin: 0 0 1.35em; }
.entry-content figcaption { font-size: 0.85rem; color: var(--ink-3); margin-top: 0.5em; }
.entry-content img { border: var(--border); border-radius: var(--radius-sm); }

.entry-content table { width: 100%; border-collapse: collapse; font-size: 0.96rem; margin: 0; }
.entry-content th, .entry-content td { padding: 0.65em 0.85em; border: 1px solid var(--rule); text-align: left; vertical-align: top; }
.entry-content thead th { background: var(--ink); color: var(--paper); font-family: var(--font-display); border-color: var(--ink); }
.entry-content tbody tr:nth-child(even) { background: var(--paper-2); }
.table-wrap, .table-accent, .table-amber, .table-green, .table-blue {
  overflow-x: auto; margin: 0 0 1.6em; border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--card);
}
.table-wrap table, .table-accent table, .table-amber table, .table-green table, .table-blue table { min-width: 30em; }
.table-accent thead th, .table-amber thead th { background: var(--accent); border-color: var(--accent); }
.table-green thead th { background: var(--teal); border-color: var(--teal); }
.table-blue thead th { background: var(--violet); border-color: var(--violet); }

.callout { background: var(--amber); border: var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.5em; box-shadow: var(--shadow); }
.callout p:last-child { margin-bottom: 0; }

/* table of contents */
.toc { background: var(--paper-2); border: var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 0 0 2em; }
.toc-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.toc-title { font-family: var(--font-display); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; margin: 0; color: var(--ink-3); }
.toc-toggle { background: var(--card); border: var(--border); border-radius: 999px; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); font-size: 0.9rem; }
.toc-toggle:hover { background: var(--amber); }
.toc-list { counter-reset: item; list-style: none; margin: 0.9rem 0 0; padding: 0; }
.toc-list ol { counter-reset: item; list-style: none; margin: 0.3rem 0 0; padding-left: 1.15rem; }
.toc-list li { counter-increment: item; margin: 0 0 0.4em; font-size: 0.93rem; line-height: 1.4; }
.toc-list li::before { content: counters(item, ".") "."; color: var(--accent); font-family: var(--font-display); font-weight: 700; margin-right: 0.4em; }
.toc-list a { color: var(--ink-2); }
.toc-list a:hover { color: var(--accent); }

/* author + related */
.author-box { display: flex; gap: 1.25rem; background: var(--card); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4rem; margin: 3rem 0; }
.author-box img { width: 76px; height: 76px; border-radius: 999px; border: var(--border); flex: none; }
.author-box-name { font-family: var(--font-display); font-weight: 700; margin: 0 0 0.35rem; }
.author-box-bio { font-size: 0.95rem; margin: 0 0 0.75rem; color: var(--ink-2); }
.author-social { display: flex; gap: 0.8rem; }
.author-social a { color: var(--ink-3); font-size: 1.05rem; }
.author-social a:hover { color: var(--accent); }
@media (max-width: 560px) { .author-box { flex-direction: column; } }

.related h2 { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1rem; }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .related-grid { grid-template-columns: 1fr; } }
.related-item { display: block; background: var(--card); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1.15rem; transition: transform 0.12s ease, box-shadow 0.12s ease; }
.related-item:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--line); }
.related-item .t { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; display: block; margin-bottom: 0.2rem; }
.related-item .d { font-size: 0.88rem; color: var(--ink-3); }

/* ---------- static pages ---------- */
.page-body { padding: 52px 0 72px; }
.page-body-inner { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.page-body .entry-content h2 { margin-top: 2em; }
@media (max-width: 640px) { .page-body-inner { padding: 0 18px; } }

.contact-form { max-width: 620px; }
.contact-form label { display: block; font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea {
  width: 100%; margin-top: 0.45rem; padding: 0.75rem 0.9rem; border: var(--border);
  border-radius: var(--radius-sm); background: var(--card); color: var(--ink); font-size: 1rem;
}
.form-note { background: var(--teal); color: #fff; border: var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; box-shadow: var(--shadow); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); margin-top: auto; border-top: var(--border); }
.footer-inner { max-width: var(--container); margin: 0 auto; padding: 56px 24px 40px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { width: 112px; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.92rem; color: #cfc6b9; max-width: 34ch; margin-bottom: 1.1rem; }
.footer-social { display: flex; gap: 1rem; }
.footer-social a { color: var(--paper); font-size: 1.15rem; opacity: 0.85; }
.footer-social a:hover { opacity: 1; color: var(--amber); }
.footer-col h2 { font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); margin: 0 0 0.9rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0 0 0.5rem; }
.footer-col a { color: #e7dfd2; font-size: 0.93rem; }
.footer-col a:hover { color: var(--paper); border-bottom: 2px solid var(--amber); }
.footer-bottom { max-width: var(--container); margin: 0 auto; padding: 20px 24px 34px; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 0.85rem; color: #b9b0a3; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-bottom a { color: #e7dfd2; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-inner { grid-template-columns: 1fr; padding: 40px 18px 30px; } .footer-bottom { padding: 20px 18px 30px; } }

html, body { min-height: 100%; }
body { display: flex; flex-direction: column; }
.site-content { flex: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- breadcrumbs ---------- */
.breadcrumbs { margin: 0 0 1.1rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.breadcrumbs li { margin: 0; display: flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; color: var(--ink-3); }
.breadcrumbs li + li::before { content: "/"; color: var(--ink-3); opacity: 0.55; }
.breadcrumbs a { color: var(--ink-3); font-weight: 500; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 600; max-width: 44ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-head-count { font-size: 0.9rem; color: var(--ink-3); margin: 0.75rem 0 0; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 90px 0 110px; }
.notfound h1 { font-size: clamp(3.4rem, 9vw, 6rem); margin-bottom: 0.2em; }
.notfound p { font-size: 1.12rem; color: var(--ink-2); max-width: 52ch; margin: 0 auto 1.6rem; }
.notfound .lookup-form { margin-bottom: 1.6rem; }
.notfound-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- archive intro ---------- */
.archive-intro { margin-top: 3rem; padding-top: 2rem; border-top: 2px dashed var(--rule); }
.archive-intro h2 { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.9rem; }
.archive-intro p { color: var(--ink-2); max-width: 68ch; margin: 0; }

/* =====================================================================
   Tech & AI layer
   One mono face and a soft terminal green, used sparingly so the tech
   vertical reads clearly without turning the site into a dark-mode dev blog.
   ===================================================================== */
:root {
  --lime: #b6f09c;
  --night: #120f0c;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.chip-tech { background: var(--ink); color: var(--lime); font-family: var(--font-mono); letter-spacing: 0.04em; }
.chip-sponsored { background: var(--paper-2); color: var(--ink-2); margin-left: 0.4rem; }

/* hero: cycling word with a terminal caret */
.lookup h1 .cycle { display: inline-block; min-width: 2.28em; text-align: left; white-space: nowrap; }
.lookup h1 .cycle::after {
  content: ""; display: inline-block; width: 0.07em; height: 0.82em; margin-left: 0.06em;
  background: currentColor; vertical-align: -0.06em; animation: caret 1.05s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.popular { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 1.4rem 0 0; }
.popular-label { font-size: 0.82rem; color: var(--ink-3); margin-right: 0.2rem; }
.popular .chip { font-size: 0.72rem; padding: 0.35em 0.8em; text-transform: none; letter-spacing: 0.01em; transition: transform 0.12s ease; }
.popular .chip:hover { transform: translateY(-1px); }

/* the dark tech band */
.tech-band { background: var(--ink); color: var(--paper); border-top: var(--border); border-bottom: var(--border); padding: 72px 0; }
.tech-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.tech-copy .eyebrow { color: var(--lime); font-family: var(--font-mono); letter-spacing: 0.08em; }
.tech-copy h2 { color: var(--paper); font-size: clamp(1.7rem, 2vw + 1rem, 2.4rem); margin-bottom: 0.6em; }
.tech-copy p { color: #d8cfc2; font-size: 1.05rem; }
.tech-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem; margin-top: 1.6rem; }
.btn-lime { background: var(--lime); color: var(--ink); border-color: var(--paper); box-shadow: 4px 4px 0 var(--paper); }
.btn-lime:hover, .btn-lime:focus { color: var(--ink); box-shadow: 2px 2px 0 var(--paper); }
.tech-link { color: var(--lime); font-family: var(--font-mono); font-size: 0.9rem; border-bottom: 1px solid rgba(182, 240, 156, 0.4); }
.tech-link:hover { color: var(--paper); border-color: var(--paper); }

.terminal { background: var(--night); border: 2px solid var(--paper); border-radius: var(--radius); box-shadow: 8px 8px 0 var(--lime); overflow: hidden; font-family: var(--font-mono); }
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid rgba(251, 248, 243, 0.18); background: #1c1713; }
.terminal-bar .dot { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--paper); }
.dot-1 { background: var(--accent); } .dot-2 { background: var(--amber); } .dot-3 { background: var(--lime); }
.terminal-path { margin-left: 0.6rem; font-size: 0.75rem; color: #a99f92; }
.terminal-body { list-style: none; margin: 0; padding: 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.terminal-body li { margin: 0; }
.terminal-body a { display: flex; flex-direction: column; gap: 0.3rem; padding: 0.75rem 0.8rem; border-radius: 8px; height: 100%; }
.terminal-body a:hover, .terminal-body a:focus { background: rgba(182, 240, 156, 0.1); }
.tt-cmd { color: var(--lime); font-size: 0.82rem; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.tt-prompt { color: var(--amber); margin-right: 0.15em; }
.tt-out { color: #b9b0a3; font-family: var(--font-body); font-size: 0.8rem; line-height: 1.4; }
.terminal-more { display: block; padding: 11px 20px 13px; border-top: 1px solid rgba(251, 248, 243, 0.18); color: var(--lime); font-size: 0.82rem; font-weight: 700; }
.terminal-more span:first-child { color: var(--amber); }
.terminal-more:hover { background: rgba(182, 240, 156, 0.08); }
@media (max-width: 1000px) { .tech-grid { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 640px) { .tech-band { padding: 52px 0; } .terminal-body { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .terminal-body { grid-template-columns: 1fr; } }


/* sponsored disclosure and guest authors */
.disclosure { font-size: 0.88rem; color: var(--ink-2); background: var(--paper-2); border: 2px dashed var(--rule); border-radius: var(--radius-sm); padding: 0.7rem 0.95rem; margin: 0 0 1.75rem; }
.author-box .eyebrow { margin-bottom: 0.25rem; }
.author-box-name a { border-bottom: 2px solid var(--accent); }
.author-box-note { font-size: 0.88rem; color: var(--ink-3); margin: 0; }
.author-box-note a { border-bottom: 2px solid var(--accent); color: var(--ink); }

/* dictionary tag for tech terms */
.az-list .tag { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 700; background: var(--ink); color: var(--lime); border-radius: 5px; padding: 0.12em 0.45em; margin-left: 0.45rem; vertical-align: 0.15em; }

/* write-for-us page */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 0 0 2rem; }
.guide-card { background: var(--card); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1.1rem; }
.guide-card h3 { font-size: 1.02rem; margin: 0 0 0.35rem; }
.guide-card p { font-size: 0.93rem; color: var(--ink-2); margin: 0; }
.pitch-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5rem 0 0; }
/* Buttons inside article content must not inherit the underlined-link styling. */
.entry-content a.btn { color: var(--ink); border-bottom: var(--border); font-weight: 700; }
.entry-content a.btn:hover { background: var(--card); color: var(--ink); }
.entry-content a.btn-ink, .entry-content a.btn-ink:hover, .entry-content a.btn-ink:focus { background: var(--ink); color: var(--paper); }
.entry-content a.btn-accent, .entry-content a.btn-accent:hover { background: var(--accent); color: #fff; }

@media (prefers-reduced-motion: reduce) { .lookup h1 .cycle::after { display: none; } }

/* ---------- search suggestions ---------- */
.suggest { position: relative; }
.suggest-list {
  position: absolute; z-index: 45; margin: 0; padding: 6px; list-style: none; text-align: left;
  background: var(--card); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  max-height: min(62vh, 460px); overflow-y: auto; overscroll-behavior: contain;
}
.suggest-list[hidden] { display: none; }
.suggest-list li { margin: 0; }
.suggest-label, .suggest-empty {
  font-family: var(--font-display); font-weight: 700; font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3); padding: 0.55rem 0.7rem 0.3rem;
}
.suggest-empty { text-transform: none; letter-spacing: 0; font-size: 0.92rem; font-weight: 600; color: var(--ink-2); padding: 0.7rem 0.7rem 0.45rem; }
.suggest-opt {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 0.8rem; row-gap: 0.1rem; align-items: center;
  padding: 0.55rem 0.7rem; border-radius: var(--radius-sm); color: var(--ink); border: 2px solid transparent;
}
.suggest-opt[aria-selected="true"] { background: var(--paper-2); border-color: var(--line); }
.suggest-opt .s-term { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; line-height: 1.25; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-opt .chip { grid-column: 2; grid-row: 1 / span 2; font-size: 0.58rem; padding: 0.22em 0.6em; }
.suggest-opt .s-desc { grid-column: 1; font-size: 0.82rem; line-height: 1.35; color: var(--ink-3); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-opt mark { background: var(--amber); color: var(--ink); border-radius: 3px; padding: 0 1px; }
.suggest-foot { display: block; margin-top: 4px; border-top: 2px dashed var(--rule); border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.suggest-foot[aria-selected="true"] { border-top-color: var(--line); }
.suggest-foot .s-all { display: inline-flex; align-items: center; gap: 0.5em; font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; color: var(--ink-2); }
.suggest-foot svg { color: var(--accent); flex: none; }
/* the hero input's focus ring lives on the form, so keep it lit while the list is open */
.suggest.is-open .lookup-form, .suggest.is-open .search-modal-form { box-shadow: var(--shadow-lg), 0 0 0 3px var(--amber); }
@media (max-width: 640px) {
  .suggest-list { max-height: 55vh; }
  .suggest-opt .s-desc { white-space: normal; }
}

/* brand the browser's built-in clear button on search fields */
input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none; appearance: none; width: 16px; height: 16px; margin-left: 8px; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6157' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center / contain no-repeat;
}
input[type="search"]::-webkit-search-cancel-button:hover { opacity: 0.7; }

/* ---------- section sub-topics ---------- */
.subtopics { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.subtopics li {
  margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 0.8rem;
  background: var(--card); border: 2px solid var(--line); border-radius: 999px; padding: 0.3em 0.8em;
}
.archive-standards { margin-top: 0.9rem !important; font-size: 0.93rem; }
.archive-standards a, .archive-intro a { border-bottom: 2px solid var(--accent); color: var(--ink); }
.entry-reviewed { font-size: 0.85rem; color: var(--ink-3); margin: 0.6rem 0 0; }
.entry-reviewed a { border-bottom: 2px solid var(--accent); color: var(--ink-2); }

/* ---------- review verdict panel ---------- */
.verdict { background: var(--card); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.3rem 1.4rem; margin: 0 0 2rem; }
.verdict-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.verdict-head .eyebrow { margin: 0; }
.verdict-score { font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; line-height: 1; margin: 0; }
.verdict-score span { font-size: 1rem; color: var(--ink-3); margin-left: 0.1em; }
.verdict-label { display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; margin: 0.5rem 0 0.6rem; padding: 0.25em 0.7em; border: 2px solid var(--line); border-radius: 999px; }
.verdict-good { background: var(--lime); }
.verdict-caution { background: var(--amber); }
.verdict-avoid { background: var(--accent); color: #fff; }
.verdict-neutral { background: var(--paper-2); }
.verdict-summary { margin: 0 0 1rem; color: var(--ink-2); }
.verdict-facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 0.45rem 1.2rem; border-top: 2px dashed var(--rule); padding-top: 1rem; }
.verdict-facts dt { font-family: var(--font-display); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink-3); padding-top: 0.15em; }
.verdict-facts dd { margin: 0; font-size: 0.95rem; overflow-wrap: anywhere; }
.verdict-facts a { border-bottom: 2px solid var(--accent); color: var(--ink); }
.verdict-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 1.1rem; }
.verdict-list-title { font-family: var(--font-display); font-weight: 700; margin: 0 0 0.35rem; }
.verdict-lists ul { margin: 0 0 0 1.1rem; font-size: 0.93rem; }
.verdict-method { font-size: 0.82rem; color: var(--ink-3); margin: 1.1rem 0 0; }
.verdict-method a { border-bottom: 2px solid var(--accent); color: var(--ink-2); }
@media (max-width: 560px) { .verdict-facts, .verdict-lists { grid-template-columns: 1fr; } .verdict-facts dd { margin-bottom: 0.5rem; } }

/* links inside running text need more than colour to stand out */
.page-head p a, .lookup-sub a, .notfound p a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }

.subtopics + .page-head-count { margin-top: 1rem; }
.form-error { background: var(--accent); }
