﻿:root {
  --bg: #fafbfc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --accent: #3730a3;
  --accent-soft: #eef2ff;
  --accent-hover: #312e81; 
  --verdict-bg: #f8fafc;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  --radius: 12px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; z-index: 100; padding: 8px 12px; background: var(--surface); border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
header.site {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 0;
}
.logo {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.logo span { color: var(--accent); }
nav.main-nav { display: flex; gap: 20px; flex-wrap: wrap; }
nav.main-nav a { color: var(--muted); font-size: 0.9rem; font-weight: 500; text-decoration: none; }
nav.main-nav a:hover { color: var(--accent); }
.ad-slot {
  background: linear-gradient(180deg, #f1f5f9 0%, #e8eef4 100%);
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius);
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 20px 0;
}
.ad-slot.sidebar { min-height: 250px; margin: 0; }
.hero {
  padding: 48px 0 32px;
  text-align: center;
}
h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 12px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto 28px;
}
.search-wrap {
  max-width: 560px;
  margin: 0 auto;
}
.search-wrap label {
  display: block;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 8px;
}
#dict-search {
  width: 100%;
  padding: 16px 18px;
  font-size: 1.05rem;
  font-family: inherit;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
#dict-search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.search-meta {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}
.layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
  padding-bottom: 64px;
}
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  aside.sidebar { order: -1; }
}
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 24px 0 8px;
}
.pill {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.pill:hover, .pill.active {
  background: var(--accent-soft);
  border-color: #c7d2fe;
  color: var(--accent);
}
.wotd {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}
.wotd h2 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 8px;
}
.wotd .term { font-size: 1.35rem; font-weight: 700; margin: 0 0 12px; }
.wotd p { margin: 0; color: var(--muted); font-size: 0.95rem; }
article.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  scroll-margin-top: 100px;
}
article.card.hidden { display: none; }
article.card h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.card-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 16px;
}
.card-meta .cat { font-weight: 600; color: var(--accent); }
.verdict {
  background: var(--verdict-bg);
  border-left: 4px solid var(--accent);
  padding: 14px 16px;
  margin-bottom: 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.92rem;
}
.verdict strong { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 4px; }
article.card p { margin: 0 0 14px; }
article.card p:last-child { margin-bottom: 0; }
footer.site {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 32px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
footer.site p { margin: 0 0 8px; }

/* Guide pages (extra URLs for SEO + ad inventory) */
.page-head { padding: 8px 0 4px; }
.crumbs {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--muted);
}
.crumbs a { color: var(--muted); font-weight: 500; text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { color: var(--border); user-select: none; }
.page-head h1 {
  text-align: left;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
.lede {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 760px;
  margin: 0 0 18px;
  line-height: 1.6;
}
.longform {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.longform h2 { font-size: 1.2rem; margin: 26px 0 10px; letter-spacing: -0.02em; }
.longform h2:first-child { margin-top: 0; }
.longform p { margin: 0 0 14px; }
.longform ul { margin: 0 0 16px; padding-left: 1.25rem; }
.longform li { margin-bottom: 8px; }
.read-more { margin-top: 20px; font-weight: 600; font-size: 0.95rem; }
.read-more a { text-decoration: none; color: var(--accent); }
.read-more a:hover { text-decoration: underline; color: var(--accent-hover); }
.related {
  background: var(--accent-soft);
  border: 1px solid #c7d2fe;
  border-radius: var(--radius);
  padding: 22px 22px 10px;
  margin: 8px 0 48px;
}
.related h2 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 14px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.related-grid a {
  display: block;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.35;
}
.related-grid a:hover { border-color: var(--accent); color: var(--accent); }
.guides-list { list-style: none; margin: 0; padding: 0; }
.guides-list li { border-bottom: 1px solid var(--border); padding: 18px 0; }
.guides-list li:last-child { border-bottom: none; }
.guides-list a { font-weight: 700; text-decoration: none; color: var(--text); font-size: 1.05rem; }
.guides-list a:hover { color: var(--accent); }
.guides-list p { margin: 6px 0 0; font-size: 0.95rem; color: var(--muted); max-width: 720px; }