@import url('https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:wght@500;600;700;800&family=Hanken+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --font-display: "Schibsted Grotesk", "Hanken Grotesk", system-ui, sans-serif;
  --font-sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --teal-50: #E9F7F5;
  --teal-100: #C8ECE8;
  --teal-200: #97DBD4;
  --teal-400: #2BA69B;
  --teal-500: #0E8A80;
  --teal-600: #0B6F67;
  --teal-700: #095852;
  --ink-900: #0C2B2A;
  --ink-800: #143A38;
  --accent-300: #F8C794;
  --n-0: #FFFFFF;
  --n-25: #FBFCFC;
  --n-50: #F6F8F7;
  --n-100: #F1F4F3;
  --n-200: #E2E8E6;
  --n-300: #CDD6D3;
  --n-600: #586462;
  --ink: var(--ink-900);
  --muted: var(--n-600);
  --primary: var(--teal-600);
  --primary-hover: var(--teal-700);
  --primary-soft: var(--teal-50);
  --primary-soft-border: var(--teal-200);
  --surface: var(--n-0);
  --surface-soft: var(--n-100);
  --line: var(--n-200);
  --line-strong: var(--n-300);
  --focus-ring: 0 0 0 3px rgba(43, 166, 155, 0.40);
  --shadow-sm: 0 1px 3px rgba(12, 43, 42, 0.08), 0 1px 2px rgba(12, 43, 42, 0.05);
  --shadow: 0 12px 28px rgba(12, 43, 42, 0.10);
  --radius: 14px;
  --content: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(151, 219, 212, 0.48) 0, rgba(151, 219, 212, 0) 28rem),
    radial-gradient(circle at 82% 2%, rgba(248, 199, 148, 0.42) 0, rgba(248, 199, 148, 0) 26rem),
    radial-gradient(circle at 86% 74%, rgba(233, 244, 251, 0.72) 0, rgba(233, 244, 251, 0) 28rem),
    linear-gradient(180deg, #f8fbfa 0%, #f1f7f5 46%, #f8fbfa 100%);
  background-attachment: fixed;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary-hover); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary); }
button, input, textarea { font: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 100;
  padding: 10px 14px; border-radius: 8px; background: var(--ink); color: white;
}
.skip-link:focus { top: 16px; }
.shell { width: min(calc(100% - 40px), var(--content)); margin: 0 auto; }
.site-header { border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(14px); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }
.brand-logo { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 9px; object-fit: contain; }
.brand-divider { width: 1px; height: 22px; background: var(--line); }
.brand-help { color: var(--muted); font-weight: 550; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.assistant-launcher { min-height: 44px; padding: 9px 16px; border: 1px solid var(--primary-soft-border); border-radius: 10px; background: var(--primary-soft); color: var(--primary-hover); cursor: pointer; font-weight: 700; }
.assistant-launcher:hover { border-color: var(--primary); background: var(--teal-100); }
.back-link { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 650; text-decoration: none; }
.assistant-dialog { width: min(620px, calc(100% - 32px)); max-height: min(760px, calc(100dvh - 32px)); padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: 0 26px 80px rgba(12, 43, 42, .24); }
.assistant-dialog::backdrop { background: rgba(12, 43, 42, .56); backdrop-filter: blur(3px); }
.assistant-dialog-panel { max-height: min(760px, calc(100dvh - 32px)); padding: 28px; overflow-y: auto; }
.assistant-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.assistant-dialog-header h2 { margin: 0; font-size: 28px; }
.assistant-kicker { margin: 0 0 4px; color: var(--primary); font-size: 12px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.assistant-close { width: 44px; height: 44px; flex: 0 0 44px; border: 0; border-radius: 10px; background: var(--surface-soft); color: var(--ink); cursor: pointer; font-size: 28px; line-height: 1; }
.assistant-close:hover { background: var(--n-200); }
.assistant-privacy { margin: 20px 0; padding: 14px 16px; border: 1px solid var(--primary-soft-border); border-radius: 12px; background: var(--primary-soft); color: var(--ink-800); font-size: 14px; line-height: 1.5; }
.assistant-form { display: grid; gap: 10px; }
.assistant-form label { font-weight: 700; }
.assistant-question-field { position: relative; }
.assistant-form textarea { width: 100%; min-height: 140px; padding: 13px 14px 62px; resize: vertical; border: 1px solid var(--line-strong); border-radius: 12px; background: white; color: var(--ink); line-height: 1.5; }
.assistant-form textarea:disabled { background: var(--surface-soft); }
.assistant-form textarea[readonly]:not(:disabled) { background: #fbfdfc; }
.assistant-voice { position: absolute; right: 10px; bottom: 10px; min-height: 44px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: white; color: var(--ink-800); cursor: pointer; font-size: 14px; font-weight: 700; }
.assistant-voice[hidden], .assistant-voice-note[hidden] { display: none !important; }
.assistant-voice svg { width: 18px; height: 18px; flex: 0 0 18px; }
.assistant-voice:hover { border-color: var(--primary); color: var(--primary-hover); }
.assistant-voice.is-listening { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-hover); box-shadow: 0 0 0 3px rgba(11, 111, 103, .12); }
.assistant-voice.is-listening svg { animation: assistantVoicePulse 1.15s ease-in-out infinite; }
.assistant-voice:disabled { cursor: not-allowed; opacity: .58; }
.assistant-voice-note { margin: -2px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.assistant-turnstile { width: 100%; display: flex; justify-content: center; overflow: hidden; }
.assistant-turnstile:empty { display: none; }
.assistant-turnstile iframe { max-width: 100%; }
.assistant-form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.assistant-submit, .assistant-clear, .assistant-another { min-height: 44px; padding: 10px 16px; border-radius: 10px; cursor: pointer; font-weight: 700; }
.assistant-submit { border: 1px solid var(--primary); background: var(--primary); color: white; }
.assistant-submit:hover { background: var(--primary-hover); }
.assistant-clear, .assistant-another { border: 1px solid var(--line-strong); background: white; color: var(--ink); }
.assistant-clear:hover, .assistant-another:hover { border-color: var(--primary); color: var(--primary-hover); }
.assistant-submit:disabled, .assistant-clear:disabled { cursor: not-allowed; opacity: .58; }
.assistant-result { margin: 0 0 20px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }
.assistant-answer { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.assistant-sources { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.assistant-sources h3 { margin: 0 0 7px; font-size: 14px; }
.assistant-sources ul { margin: 0 0 14px; padding-left: 20px; }
.assistant-sources li { margin: 6px 0; }
.assistant-sources a { min-height: 44px; display: inline-flex; align-items: center; overflow-wrap: anywhere; font-weight: 650; }
.assistant-status { min-height: 24px; margin: 12px 0 0; color: var(--muted); font-size: 14px; }
@keyframes assistantVoicePulse { 0%, 100% { opacity: .55; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.08); } }
.hero { position: relative; padding: 76px 0 80px; background: rgba(255, 255, 255, 0.34); border-bottom: 1px solid rgba(205, 214, 211, 0.72); overflow: visible; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 999px; pointer-events: none; filter: blur(2px); }
.hero::before { width: 260px; height: 260px; right: 7%; top: -155px; background: rgba(151, 219, 212, 0.28); }
.hero::after { width: 180px; height: 180px; left: 3%; bottom: -125px; background: rgba(248, 199, 148, 0.20); }
.hero-inner { position: relative; z-index: 1; text-align: center; }
.eyebrow { margin: 0 0 10px; color: var(--primary); font-size: 14px; font-weight: 700; letter-spacing: .10em; text-transform: uppercase; }
h1, h2, h3 { color: var(--ink); font-family: var(--font-display); line-height: 1.2; letter-spacing: -0.025em; }
.hero h1 { max-width: 760px; margin: 0 auto 14px; font-size: clamp(34px, 5vw, 54px); }
.hero-copy { max-width: 650px; margin: 0 auto 32px; color: var(--muted); font-size: 18px; }
.search-wrap { position: relative; width: min(100%, 720px); margin: 0 auto; text-align: left; }
.search-form { position: relative; }
.search-icon { position: absolute; left: 20px; top: 50%; width: 22px; height: 22px; color: var(--muted); transform: translateY(-50%); pointer-events: none; }
.search-input { width: 100%; min-height: 62px; padding: 15px 52px 15px 56px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: white; color: var(--ink); box-shadow: var(--shadow); }
.search-input::placeholder { color: var(--muted); }
.search-input::-webkit-search-cancel-button { cursor: pointer; }
.search-results { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; right: 0; max-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 18px 46px rgba(12,43,42,.16); }
.search-results[hidden] { display: none; }
.search-results ul { margin: 0; padding: 6px; list-style: none; }
.search-results li + li { border-top: 1px solid var(--line); }
.search-results a { display: flex; flex-direction: column; padding: 12px 14px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.search-results a:hover { background: var(--surface-soft); }
.search-results a span { color: var(--muted); font-size: 14px; }
.search-count { margin: 0; padding: 10px 19px 4px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.search-empty { display: flex; flex-direction: column; padding: 18px; }
.search-empty span { color: var(--muted); font-size: 14px; }
.home-main { padding: 72px 0 84px; }
.section-heading { margin: 0 0 28px; font-size: 30px; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.category-card { min-height: 210px; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.category-card:hover { transform: translateY(-3px); border-color: var(--primary-soft-border); color: var(--ink); box-shadow: var(--shadow); }
.category-icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); }
.category-icon svg { width: 23px; height: 23px; }
.category-card h3 { margin: 0 0 8px; font-size: 20px; }
.category-card p { margin: 0; color: var(--muted); font-size: 15px; }
.popular { margin-top: 72px; padding: 34px; border-radius: 20px; background: var(--surface-soft); }
.popular h2 { margin: 0 0 20px; font-size: 26px; }
.popular-list { display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 0; gap: 0 40px; list-style: none; }
.popular-list li { border-top: 1px solid var(--line); }
.popular-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 2px; color: var(--ink); font-weight: 620; text-decoration: none; }
.popular-list a::after { content: "→"; color: var(--primary); }
.site-footer { padding: 36px 0; border-top: 1px solid var(--line); background: var(--surface-soft); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 14px; }
.footer-inner p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--ink); font-weight: 600; text-decoration: none; }
.compact-search { padding: 28px 0; background: var(--surface-soft); border-bottom: 1px solid var(--line); }
.compact-search .search-wrap { width: min(100%, 680px); margin: 0; }
.compact-search .search-input { min-height: 50px; box-shadow: none; }
.breadcrumbs { padding: 24px 0 12px; color: var(--muted); font-size: 14px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 7px; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.category-main { padding-bottom: 84px; }
.category-header { padding: 28px 0 34px; }
.category-header h1 { margin: 0 0 10px; font-size: clamp(32px, 4vw, 44px); }
.category-header p { max-width: 680px; margin: 0; color: var(--muted); font-size: 18px; }
.article-list { max-width: 840px; border-top: 1px solid var(--line); }
.article-list article { border-bottom: 1px solid var(--line); }
.article-list a { display: block; padding: 21px 4px; color: var(--ink); text-decoration: none; }
.article-list a:hover h2 { color: var(--primary); }
.article-list h2 { margin: 0 0 4px; font-size: 20px; }
.article-list p { margin: 0; color: var(--muted); font-size: 15px; }
.article-shell { display: grid; grid-template-columns: minmax(0, 760px) 240px; gap: 72px; align-items: start; padding-bottom: 84px; }
.article-shell-single { grid-template-columns: minmax(0, 760px); }
.article-header { padding: 22px 0 26px; border-bottom: 1px solid var(--line); }
.article-header h1 { margin: 0 0 14px; font-size: clamp(34px, 5vw, 48px); }
.article-description { margin: 0 0 12px; color: var(--muted); font-size: 19px; }
.article-updated { margin: 0; color: var(--muted); font-size: 13px; }
.article-content { padding-top: 12px; }
.article-content section { padding-top: 28px; scroll-margin-top: 20px; }
.article-content h2 { margin: 0 0 12px; font-size: 25px; }
.article-content p { margin: 0 0 16px; }
.article-content ul, .article-content ol { margin: 0 0 18px; padding-left: 24px; }
.article-content li { margin: 8px 0; padding-left: 4px; }
.callout { margin: 18px 0; padding: 17px 18px; border-left: 4px solid var(--primary); border-radius: 0 10px 10px 0; background: var(--primary-soft); }
.article-aside { position: sticky; top: 24px; padding-top: 30px; }
.article-aside strong { display: block; margin-bottom: 9px; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; }
.article-aside ul { margin: 0; padding: 0; list-style: none; }
.article-aside a { display: block; padding: 6px 0; color: var(--muted); font-size: 14px; text-decoration: none; }
.article-aside a:hover { color: var(--primary); }
.related { margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--line); }
.related h2 { font-size: 22px; }
.related ul { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding: 0; list-style: none; }
.related a { display: block; height: 100%; padding: 15px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font-weight: 620; text-decoration: none; }
.related a:hover { border-color: var(--primary-soft-border); }
.not-found { min-height: 60vh; display: grid; place-items: center; padding: 70px 0; text-align: center; }
.not-found h1 { margin: 0 0 8px; font-size: 42px; }
.not-found p { margin: 0 0 24px; color: var(--muted); }
.primary-link { display: inline-block; padding: 10px 17px; border-radius: 10px; background: var(--primary); color: white; font-weight: 700; text-decoration: none; box-shadow: var(--shadow-sm); }
.primary-link:hover { background: var(--primary-hover); color: white; }

@media (max-width: 900px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .article-shell { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .article-aside { display: none; }
}

@media (max-width: 640px) {
  .shell { width: min(calc(100% - 28px), var(--content)); }
  .header-inner { min-height: 64px; gap: 10px; }
  .brand-divider, .brand-help { display: none; }
  .brand span:first-of-type { display: none; }
  .header-actions { gap: 6px; }
  .assistant-launcher { padding: 9px 11px; font-size: 13px; }
  .back-link { padding: 0 4px; font-size: 13px; }
  .assistant-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); border-radius: 16px; }
  .assistant-dialog-panel { max-height: calc(100dvh - 16px); padding: 20px 18px; }
  .assistant-dialog-header h2 { font-size: 24px; }
  .assistant-form-actions { flex-direction: column; }
  .assistant-submit, .assistant-clear { width: 100%; }
  .hero { padding: 52px 0 58px; }
  .hero-copy { font-size: 16px; }
  .search-input { min-height: 56px; padding-left: 51px; }
  .home-main { padding: 52px 0 64px; }
  .section-heading { font-size: 26px; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 0; padding: 21px; }
  .category-icon { margin-bottom: 15px; }
  .popular { margin-top: 52px; padding: 24px 20px; }
  .popular-list { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .compact-search { padding: 20px 0; }
  .category-header { padding-top: 18px; }
  .article-header { padding-top: 14px; }
  .article-description { font-size: 17px; }
  .article-content section { padding-top: 22px; }
  .related ul { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .assistant-voice.is-listening svg { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
