/* HUNTR Sites SEO section (server-rendered by worker/src/seo/render.ts). Mobile-first, no framework.
   Brand: cream page, ink text, lime primary button with black text, olive links, sage lines.
   Tool scripts (web/public/seo/tools/*.js) use: .seo-tool .seo-field .seo-label .seo-input .seo-row .seo-btn
   .seo-btn-ghost .seo-result .seo-badge(.ok/.warn/.bad) .seo-score .seo-muted .seo-copy */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/lib/fonts/inter-normal-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/lib/fonts/inter-normal-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C4; }

:root {
  --bg: #fefffb; --bg-soft: #fbffed; --surface: #fff; --surface-2: #f2f4f1; --text: #1b1b1b; --text-2: #2f2f30; --text-3: #565850; --muted: #767676;
  --line: #e3e7df; --line-strong: #c6c6c6; --lime: #e7ff7b; --lime-hover: #ddf37a; --lime-soft: #f1ffb0; --olive: #3d4f00; --sage: #ccd5c8;
  --ok: #1f6b2e; --ok-bg: #e4f5e6; --warn: #8a5a00; --warn-bg: #fff3d6; --bad: #b3261e; --bad-bg: #fde7e5;
  --radius: 14px; --gutter: 16px; --header-h: 56px;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.7 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--olive); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 4px; }
img, svg, video { max-width: 100%; }
.seo-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--text); color: #fff; padding: 8px 14px; border-radius: 8px; }
.seo-skip:focus { left: 8px; }

/* ---- header (slim, sticky, fixed height: no layout shift) ---- */
.seo-header { position: sticky; top: 0; z-index: 50; background: rgba(254, 255, 251, 0.94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.seo-header-in { max-width: 1080px; margin: 0 auto; height: var(--header-h); padding: 0 var(--gutter); display: flex; align-items: center; gap: 14px; }
.seo-logo { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: -0.02em; white-space: nowrap; }
.seo-logo svg { flex: none; }
.seo-nav { display: none; margin-left: 12px; gap: 4px; }
.seo-nav a { color: var(--text-2); text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 8px 10px; border-radius: 8px; }
.seo-nav a:hover { background: var(--surface-2); }
.seo-lang { margin-left: auto; color: var(--text-3); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-decoration: none; padding: 6px 9px; border: 1px solid var(--line-strong); border-radius: 8px; }
.seo-lang:hover { background: var(--surface-2); }
@media (min-width: 860px) { .seo-nav { display: flex; } }
@media (max-width: 380px) { .seo-logo span { display: none; } }

/* ---- buttons ---- */
.seo-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 1px solid #1b1b1b; border-radius: 999px; background: var(--lime); color: #1b1b1b; font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer; transition: background 0.15s, transform 0.15s; white-space: normal; text-align: center; }
.seo-btn:hover { background: var(--lime-hover); text-decoration: none; }
.seo-btn:active { transform: translateY(1px); }
.seo-btn[disabled], .seo-btn[aria-disabled='true'] { opacity: 0.55; cursor: not-allowed; }
.seo-btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; white-space: nowrap; }
.seo-btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.seo-btn-ghost:hover { background: var(--surface-2); }
@media (max-width: 520px) { .seo-header .seo-btn-sm { padding: 0 12px; font-size: 13px; } }
.seo-cta-short { display: none; }
@media (max-width: 520px) { .seo-header .seo-cta-long { display: none; } .seo-header .seo-cta-short { display: inline; } }

/* ---- layout ---- */
.seo-main { min-height: 60vh; }
.seo-wrap { max-width: 760px; margin: 0 auto; padding: 20px var(--gutter) 56px; }
.seo-crumbs ol { display: flex; flex-wrap: wrap; gap: 2px 0; list-style: none; margin: 0 0 18px; padding: 0; font-size: 13.5px; color: var(--muted); }
.seo-crumbs li + li::before { content: '›'; margin: 0 8px; color: var(--line-strong); }
.seo-crumbs a { color: var(--text-3); text-decoration: none; }
.seo-crumbs a:hover { text-decoration: underline; }
.seo-article-head h1 { margin: 0 0 8px; font-size: clamp(28px, 6.4vw, 42px); line-height: 1.15; letter-spacing: -0.03em; font-weight: 700; text-wrap: balance; overflow-wrap: break-word; }
.seo-updated { margin: 0 0 16px; font-size: 13.5px; color: var(--muted); }
.seo-lead { margin: 0 0 24px; font-size: 19px; line-height: 1.55; color: var(--text-2); }

/* ---- article content ---- */
.seo-content h2 { margin: 2.2em 0 0.5em; font-size: clamp(22px, 4.6vw, 28px); line-height: 1.25; letter-spacing: -0.02em; text-wrap: balance; }
.seo-content h3 { margin: 1.8em 0 0.4em; font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; }
.seo-content p, .seo-content ul, .seo-content ol { margin: 0 0 1.1em; }
.seo-content ul:not(.seo-checklist) { padding-left: 1.3em; }
.seo-content li { margin: 0.3em 0; }
.seo-content li::marker { color: var(--olive); }
.seo-checklist { list-style: none; padding: 0; }
.seo-checklist li { display: flex; gap: 12px; align-items: flex-start; margin: 0.55em 0; }
.seo-check { flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--lime) no-repeat center / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%231b1b1b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); border: 1px solid #1b1b1b; }
.seo-steps { list-style: none; padding: 0; counter-reset: step; }
.seo-steps li { counter-increment: step; position: relative; display: block; margin: 0 0 14px; padding: 16px 16px 16px 64px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.seo-steps li::before { content: counter(step); position: absolute; left: 16px; top: 16px; width: 34px; height: 34px; border-radius: 50%; background: var(--lime); border: 1px solid #1b1b1b; display: grid; place-items: center; font-weight: 700; font-size: 15px; line-height: 1; }
.seo-step-title { display: block; font-size: 17px; margin-bottom: 2px; }
.seo-step-text { display: block; color: var(--text-2); }
.seo-callout { margin: 0 0 1.2em; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); border-left-width: 4px; background: var(--bg-soft); border-left-color: var(--olive); }
.seo-callout-warn { background: var(--warn-bg); border-color: #f0d9a3; border-left-color: var(--warn); }
.seo-table-wrap { margin: 0 0 1.4em; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.seo-table-wrap table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.seo-table-wrap th, .seo-table-wrap td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.seo-table-wrap thead th { background: var(--surface-2); font-weight: 600; white-space: nowrap; }
.seo-table-wrap tbody th { font-weight: 600; }
.seo-table-wrap tr:last-child > * { border-bottom: 0; }

/* ---- CTA box ---- */
.seo-cta { display: flex; flex-direction: column; gap: 16px; margin: 28px 0; padding: 22px; background: var(--lime-soft); border: 1px solid var(--line); border-radius: 18px; }
.seo-cta-title { margin: 0 0 4px; font-size: 21px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.seo-cta-text { margin: 0; color: var(--text-2); font-size: 16px; line-height: 1.55; }
.seo-cta-sale { margin: 8px 0 0; font-size: 13.5px; font-weight: 600; color: var(--olive); }
.seo-cta .seo-btn { align-self: stretch; }
@media (min-width: 640px) { .seo-cta { flex-direction: row; align-items: center; justify-content: space-between; } .seo-cta .seo-btn { align-self: center; flex: none; } }

/* ---- FAQ ---- */
.seo-faq { margin-top: 40px; }
.seo-faq h2 { font-size: clamp(22px, 4.6vw, 28px); letter-spacing: -0.02em; margin: 0 0 12px; }
.seo-faq details { border-top: 1px solid var(--line-strong); }
.seo-faq details:last-of-type { border-bottom: 1px solid var(--line-strong); }
.seo-faq summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 600; position: relative; }
.seo-faq summary::-webkit-details-marker { display: none; }
.seo-faq summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-size: 24px; font-weight: 400; color: var(--olive); }
.seo-faq details[open] summary::after { content: '–'; }
.seo-faq-a { padding: 0 0 16px; color: var(--text-2); }
.seo-faq-a p { margin: 0; }

/* ---- cards (hubs, related) ---- */
.seo-more { margin-top: 48px; }
.seo-more h2 { font-size: clamp(21px, 4.4vw, 26px); letter-spacing: -0.02em; margin: 0 0 14px; }
.seo-more-all { margin: 12px 0 0; font-size: 15px; }
.seo-cards { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
.seo-card { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none; transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.seo-card:hover { border-color: var(--text); box-shadow: 0 6px 20px rgba(27, 27, 27, 0.07); transform: translateY(-1px); text-decoration: none; }
.seo-card-kind { align-self: flex-start; font-size: 11.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--olive); background: var(--lime-soft); padding: 2px 9px; border-radius: 999px; }
.seo-card-kind:empty { display: none; }
.seo-card-title { font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: -0.015em; overflow-wrap: break-word; }
.seo-card-text { font-size: 14.5px; line-height: 1.5; color: var(--text-3); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.seo-empty { padding: 28px; text-align: center; color: var(--text-3); background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
@media (min-width: 600px) { .seo-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .seo-main:has(.seo-cards):not(:has(.seo-article)) .seo-wrap { max-width: 1080px; } .seo-article .seo-cards { grid-template-columns: 1fr 1fr; } .seo-wrap > .seo-cards, .seo-wrap > .seo-more .seo-cards { grid-template-columns: repeat(3, 1fr); } }

/* ---- footer ---- */
.seo-footer { background: #1b1b1b; color: #d9dcd5; padding: 40px var(--gutter) 28px; }
.seo-footer a { color: #fff; text-decoration: none; }
.seo-footer a:hover { text-decoration: underline; }
.seo-footer .seo-logo { color: #fff; }
.seo-footer .seo-logo rect { fill: #e7ff7b; }
.seo-footer-in { max-width: 1080px; margin: 0 auto; display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
.seo-footer-brand { grid-column: 1 / -1; }
.seo-footer-brand p { margin: 10px 0 0; max-width: 420px; font-size: 14.5px; line-height: 1.55; color: #a9ada4; }
.seo-footer-title { margin: 0 0 10px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; }
.seo-footer ul { list-style: none; margin: 0; padding: 0; }
.seo-footer li { margin: 6px 0; font-size: 14.5px; }
.seo-footer-copy { max-width: 1080px; margin: 28px auto 0; padding-top: 18px; border-top: 1px solid #3a3a36; font-size: 13px; color: #a9ada4; }
@media (min-width: 760px) { .seo-footer-in { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .seo-footer-brand { grid-column: auto; } }

/* ---- generic tool classes (used by web/public/seo/tools/*.js) ---- */
.seo-tool { margin: 0 0 1.6em; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 2px 14px rgba(27, 27, 27, 0.04); }
.seo-field { margin: 0 0 16px; min-width: 0; }
.seo-label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--text); }
.seo-input { display: block; width: 100%; min-height: 48px; padding: 11px 14px; background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); border-radius: 10px; font: 400 16px/1.4 var(--font); transition: border-color 0.15s, box-shadow 0.15s; appearance: none; -webkit-appearance: none; }
select.seo-input { padding-right: 36px; background: var(--surface) no-repeat right 12px center / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%23565850' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
textarea.seo-input { min-height: 110px; resize: vertical; }
.seo-input:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px rgba(231, 255, 123, 0.9); }
.seo-input::placeholder { color: var(--muted); }
.seo-row { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .seo-row { grid-template-columns: 1fr 1fr; } }
.seo-result { margin: 18px 0 0; padding: 18px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); overflow-wrap: anywhere; }
.seo-result:empty { display: none; }
.seo-result h3 { margin: 0 0 8px; font-size: 17px; }
.seo-result > :last-child { margin-bottom: 0; }
.seo-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1.4; background: var(--surface-2); color: var(--text-2); vertical-align: middle; }
.seo-badge.ok { background: var(--ok-bg); color: var(--ok); }
.seo-badge.warn { background: var(--warn-bg); color: var(--warn); }
.seo-badge.bad { background: var(--bad-bg); color: var(--bad); }
.seo-score { font-size: clamp(48px, 14vw, 72px); font-weight: 700; line-height: 1; letter-spacing: -0.04em; color: var(--text); }
.seo-score small { font-size: 0.34em; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.seo-muted { color: var(--text-3); font-size: 14px; }
.seo-copy { position: relative; margin: 0 0 1em; padding: 14px 14px 14px 14px; background: #1b1b1b; color: #f4f4f5; border-radius: 12px; font: 400 13.5px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; overflow-x: auto; }
.seo-copy .seo-btn { position: absolute; top: 8px; right: 8px; min-height: 32px; padding: 0 12px; font-size: 12.5px; }
.seo-copy:has(.seo-btn) { padding-right: 96px; }
.seo-copy code, .seo-copy pre { font: inherit; background: none; padding: 0; margin: 0; white-space: inherit; color: inherit; }
.seo-tool .seo-btn + .seo-btn { margin-left: 8px; }
@media (max-width: 480px) { .seo-tool { padding: 16px; } .seo-tool .seo-btn { width: 100%; } .seo-tool .seo-btn + .seo-btn { margin: 8px 0 0; } .seo-copy .seo-btn { width: auto; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } html { scroll-behavior: auto; } }
@media print { .seo-header, .seo-footer, .seo-cta { display: none; } }
