/*
Theme Name: ReviewForge
Theme URI: https://handbrake-review.com
Author: ReviewForge Editorial
Author URI: https://handbrake-review.com
Description: Independent video software reviews, encoding guides and tutorials.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: reviewforge
Tags: blog, light, custom-menu, featured-images, two-columns
*/

:root {
  --blue: #1267ff;
  --blue-dark: #0d52cc;
  --blue-soft: #e8f1ff;
  --dark: #071529;
  --text: #111827;
  --muted: #475569;
  --line: #e5ebf4;
  --soft: #f5f9ff;
  --panel: #fff;
  --bg: #fff;
  --container: 1160px;
  --shadow: 0 20px 55px rgba(16, 54, 111, 0.10);
  --shadow-sm: 0 8px 24px rgba(16, 54, 111, 0.06);
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 14px;
  --radius-sm: 10px;
}

[data-theme="dark"] {
  --bg: #0a1628;
  --text: #f1f5f9;
  --muted: #b6c4d9;
  --line: #243b5f;
  --soft: #112240;
  --panel: #152a47;
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .hero {
  background: radial-gradient(circle at 72% 10%, #132a4f 0, #0f2138 32%, #0a1628 70%);
}
[data-theme="dark"] .entry-title,
[data-theme="dark"] h1.entry-title,
[data-theme="dark"] .page-hero .entry-title { color: #eef4ff; }
[data-theme="dark"] .hero-text,
[data-theme="dark"] .page-hero .hero-text,
[data-theme="dark"] .intro-copy { color: #b8c8de; }
[data-theme="dark"] .article-content .lead { color: #e2e8f4; }
[data-theme="dark"] .ticker-track { color: #c5d4e8; }
[data-theme="dark"] .tags a { background: var(--panel); color: var(--text); border-color: var(--line); }
[data-theme="dark"] .search-title strong { color: var(--text); }
[data-theme="dark"] .faq-list summary { color: var(--text); }
[data-theme="dark"] .article-sidebar { background: var(--panel); }
[data-theme="dark"] .review-panel { background: radial-gradient(600px 360px at 0% 100%, rgba(18, 103, 255, 0.14), transparent 70%), var(--soft); }
[data-theme="dark"] .score-card,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .guide-card-icon h3,
[data-theme="dark"] .related-card h4,
[data-theme="dark"] .search-result-card h3,
[data-theme="dark"] .legal-content h2,
[data-theme="dark"] .article-content h2,
[data-theme="dark"] .article-content h3 { color: var(--text); }
[data-theme="dark"] .breadcrumbs span:last-child { color: #dbe7f8; opacity: 1; }
[data-theme="dark"] .page-hero { background: linear-gradient(180deg, rgba(18, 103, 255, 0.08), transparent 70%); }
[data-theme="dark"] .icon-btn { background: var(--panel); border-color: var(--line); color: var(--text); }
[data-theme="dark"] .main-col,
[data-theme="dark"] .panel,
[data-theme="dark"] .guide-card,
[data-theme="dark"] .guide-card-icon,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .search-result-card,
[data-theme="dark"] .related-card,
[data-theme="dark"] .cookie-consent { background: var(--panel); color: var(--text); }
[data-theme="dark"] .section-head h2,
[data-theme="dark"] .review-row h3,
[data-theme="dark"] .side-item h3,
[data-theme="dark"] .guide-card-icon h3,
[data-theme="dark"] .faq-list summary { color: var(--text); }
[data-theme="dark"] .review-row p,
[data-theme="dark"] .side-item p,
[data-theme="dark"] .guide-card-icon p,
[data-theme="dark"] .faq-list p { color: var(--muted); }
[data-theme="dark"] .main-nav.is-open { background: var(--panel); }

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img, picture, video { max-width: 100%; height: auto; display: block; }
img { decoding: async; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; color: var(--text); }
ul, ol { padding-left: 1.25em; }
.container { width: min(calc(100% - 48px), var(--container)); margin: 0 auto; }
.section-pad { padding: 72px 0; position: relative; }

/* WordPress layout shell */
#page.site { display: flex; flex-direction: column; min-height: 100vh; position: relative; }
#primary.site-main { flex: 1; }
#colophon.site-footer { margin-top: auto; }
.wp-block-group, .entry-content { width: 100%; }
.alignwide { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.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:focus {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  width: auto; height: auto; clip: auto; padding: 12px 18px;
  background: var(--panel); color: var(--text); border-radius: var(--radius-sm);
  font-weight: 700; box-shadow: var(--shadow); border: 1px solid var(--line);
}

/* Ambient page glow */
.page-glow {
  position: fixed; border-radius: 999px; pointer-events: none;
  filter: blur(80px); opacity: 0.18; z-index: -1;
  animation: glowDrift 16s ease-in-out infinite;
}
.glow-one { width: 420px; height: 420px; background: #1267ff; right: -200px; top: 8%; opacity: 0.12; }
.glow-two { width: 360px; height: 360px; background: #5d95ff; left: -220px; top: 55%; opacity: 0.08; animation-delay: -8s; }

/* Header & navigation */
.site-header, #masthead.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.site-header.is-scrolled { border-color: var(--line); background: rgba(255, 255, 255, 0.98); }
html[data-theme="dark"] #masthead.site-header,
html[data-theme="dark"] .site-header,
html[data-theme="dark"] #masthead.site-header.is-scrolled,
html[data-theme="dark"] .site-header.is-scrolled {
  background: rgba(10, 22, 40, 0.98);
  border-bottom-color: var(--line);
}
html[data-theme="dark"] #masthead.site-header .brand-text strong,
html[data-theme="dark"] .site-header .brand-text strong { color: #f1f5f9; }
html[data-theme="dark"] #masthead.site-header .brand-text strong span,
html[data-theme="dark"] .site-header .brand-text strong span { color: #8ec0ff; }
html[data-theme="dark"] #masthead.site-header .brand-text small,
html[data-theme="dark"] .site-header .brand-text small { color: #b6c4d9; }
html[data-theme="dark"] #masthead.site-header .main-nav a,
html[data-theme="dark"] #masthead.site-header .main-navigation a,
html[data-theme="dark"] .site-header .main-nav a,
html[data-theme="dark"] .site-header .main-navigation a { color: #d8e4f4; }
html[data-theme="dark"] #masthead.site-header .main-nav a:hover,
html[data-theme="dark"] #masthead.site-header .main-nav a.is-active,
html[data-theme="dark"] #masthead.site-header .main-navigation a:hover,
html[data-theme="dark"] #masthead.site-header .main-navigation a.is-active,
html[data-theme="dark"] .site-header .main-nav a:hover,
html[data-theme="dark"] .site-header .main-nav a.is-active,
html[data-theme="dark"] .site-header .main-navigation a:hover,
html[data-theme="dark"] .site-header .main-navigation a.is-active { color: #ffffff; }
html[data-theme="dark"] #masthead.site-header .nav-search-link,
html[data-theme="dark"] .site-header .nav-search-link { color: #8ec0ff !important; }
html[data-theme="dark"] #masthead.site-header .icon-btn,
html[data-theme="dark"] .site-header .icon-btn {
  background: var(--panel);
  border-color: var(--line);
  color: #f1f5f9;
}
.header-inner, .nav-wrap {
  height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 22px;
}
.brand {
  display: flex; align-items: center; gap: 12px; min-width: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong {
  font-size: 30px; font-weight: 900; letter-spacing: -1px; color: var(--text);
}
.brand-text strong span { color: var(--blue); }
.brand-text small {
  display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 3px;
}
.brand-footer .brand-text strong { color: #fff; }
.brand-footer .brand-text strong span { color: #8ec0ff; }
.brand-mark {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; display: block;
  transition: transform 0.35s var(--ease-out), filter 0.35s ease;
  filter: drop-shadow(0 6px 16px rgba(18, 103, 255, 0.22));
}
.brand:hover .brand-mark { transform: rotate(-4deg) scale(1.04); filter: drop-shadow(0 10px 22px rgba(18, 103, 255, 0.32)); }
.main-nav, .main-navigation {
  margin-left: auto; display: flex; align-items: center; gap: 30px; flex: 1; justify-content: center;
}
.main-nav a, .main-navigation a {
  color: var(--muted); font-size: 14px; font-weight: 600;
  transition: color 0.2s ease; position: relative; white-space: nowrap;
}
.nav-search-link { color: var(--blue) !important; }
.main-nav a::after, .main-navigation a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 2px;
  border-radius: 2px; background: var(--blue);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}
.main-nav a:hover::after, .main-nav a.is-active::after,
.main-navigation a:hover::after, .main-navigation a.is-active::after { transform: scaleX(1); }
.main-nav a:hover, .main-nav a.is-active,
.main-navigation a:hover, .main-navigation a.is-active { color: var(--text); }
.nav-cta {
  font-size: 13px; font-weight: 800; color: var(--blue);
  background: var(--soft); padding: 11px 16px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--blue-soft); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.nav-cta span { margin-left: 4px; }
.header-actions { display: flex; gap: 10px; flex-shrink: 0; }
.icon-btn {
  width: 42px; height: 42px; border: 1px solid var(--line); background: var(--panel);
  border-radius: 12px; font-size: 19px; cursor: pointer; color: var(--text);
  display: grid; place-items: center; transition: border-color 0.2s, background 0.2s;
}
.icon-btn:hover { border-color: var(--blue); background: var(--soft); }
.menu-toggle { display: none; }

/* Buttons */
.button {
  min-height: 48px; display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; padding: 0 22px; border-radius: 8px;
  font-size: 14px; font-weight: 800; border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary {
  color: #fff; background: var(--blue);
  box-shadow: 0 10px 30px rgba(18, 103, 255, 0.25);
}
.button-primary:hover { box-shadow: 0 14px 36px rgba(18, 103, 255, 0.32); }
.button-secondary { color: var(--text); background: var(--panel); border-color: #cbd7e8; }
.button-secondary:hover { background: var(--soft); }
.button-compact { min-height: 42px; padding: 0 16px; }
.text-link, .card-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--blue); font-weight: 800; font-size: 14px;
  transition: gap 0.2s ease;
}
.text-link:hover, .card-link:hover { gap: 12px; }

/* Hero */
.hero {
  background: radial-gradient(circle at 72% 10%, #d9e8ff 0, #eef5ff 32%, #fff 70%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 54px 0 0;
}
.hero-grid {
  min-height: 555px; display: grid; grid-template-columns: 1fr 1.05fr;
  align-items: center; gap: 52px;
}
.hero .eyebrow {
  display: inline-flex; border: 1px solid var(--blue); border-radius: 8px;
  padding: 6px 12px; color: var(--blue); font-size: 12px;
  text-transform: uppercase; font-weight: 800; margin-bottom: 22px;
  background: transparent;
}
.hero-points {
  list-style: none; padding: 0; margin: 0 0 22px;
  display: grid; gap: 12px; font-size: 21px; font-weight: 800;
}
.hero-points li { display: flex; align-items: center; gap: 12px; }
.hero-points li::before {
  content: "✓"; width: 20px; height: 20px; display: grid; place-items: center;
  border-radius: 7px; background: var(--blue); color: #fff; font-size: 14px; flex-shrink: 0;
}
.entry-title, h1.entry-title {
  font-size: clamp(34px, 4.8vw, 43px);
  margin: 0 0 22px; color: var(--text); max-width: 640px; letter-spacing: -1.6px;
}
.hero .entry-title span, .hero h1 span { color: var(--blue); }
.hero-text {
  font-size: 17px; line-height: 1.7; color: var(--muted);
  max-width: 535px; margin: 0 0 30px;
}
.hero-art { position: relative; }
.hero-art .glow {
  position: absolute; inset: -25px; border-radius: 45px;
  background: linear-gradient(135deg, rgba(18, 103, 255, 0.12), rgba(255, 255, 255, 0));
  filter: blur(10px);
}
.hero-art img {
  position: relative; width: 100%; display: block; border-radius: 14px;
  filter: drop-shadow(0 25px 45px rgba(35, 80, 150, 0.18));
  animation: heroFloat 6s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.button-primary { position: relative; overflow: hidden; }
.button-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform 0.65s ease;
}
.button-primary:hover::after { transform: translateX(120%); }
.guide-card-icon, .review-row, .panel, .main-col {
  animation: fadeUp 0.7s var(--ease-out) backwards;
}
.content-home .review-row:nth-child(2) { animation-delay: 0.06s; }
.content-home .review-row:nth-child(3) { animation-delay: 0.12s; }
.content-home .review-row:nth-child(4) { animation-delay: 0.18s; }
.content-home .review-row:nth-child(5) { animation-delay: 0.24s; }
.guide-icon-grid .guide-card-icon:nth-child(2) { animation-delay: 0.08s; }
.guide-icon-grid .guide-card-icon:nth-child(3) { animation-delay: 0.16s; }
.guide-icon-grid .guide-card-icon:nth-child(4) { animation-delay: 0.24s; }
.site-header { animation: slideDown 0.55s var(--ease-out) backwards; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.eyebrow, .section-kicker {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--blue); font-size: 11px; text-transform: uppercase; font-weight: 800; letter-spacing: 0.08em;
}
.section-kicker { border: none; padding: 0; }
.entry-title span, h1 span, h2 span { color: var(--blue); }
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--blue);
  box-shadow: 0 0 0 6px rgba(18, 103, 255, 0.12);
  animation: pulseDot 2.4s ease-in-out infinite;
}

/* Ticker */
.ticker-section {
  overflow: hidden; border-bottom: 1px solid var(--line);
  background: var(--soft);
}
.ticker-track {
  width: max-content; display: flex; align-items: center; gap: 28px;
  padding: 16px 0; color: var(--text);
  font-size: 12px; font-weight: 800; letter-spacing: 0.12em;
  white-space: nowrap; animation: ticker 34s linear infinite;
}
.ticker-track i { color: var(--blue); font-style: normal; }

/* Popular searches */
.searches, .searches-home { background: var(--bg); border-bottom: 1px solid var(--line); }
.searches-inner {
  display: grid; grid-template-columns: 120px 1fr;
  gap: 24px; align-items: center; padding: 22px 0;
}
.search-title { display: flex; gap: 12px; align-items: center; font-size: 17px; line-height: 1.05; }
.search-title span { font-size: 24px; color: var(--blue); }
.tags { display: flex; gap: 10px; flex-wrap: wrap; }
.tags a {
  font-size: 13px; border: 1px solid #d8e1ef;
  background: #fbfdff; border-radius: 8px;
  padding: 8px 14px; color: var(--text);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.tags a:hover { border-color: var(--blue); background: var(--soft); color: var(--blue); }

/* Intro & features */
.intro { padding-bottom: 56px; }
.intro-grid, .section-heading-row, .faq-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: end;
}
.section-heading-row { grid-template-columns: 1fr auto; }
h2 { font-size: clamp(28px, 3.5vw, 40px); margin: 10px 0 0; max-width: 560px; }
.intro-copy { color: var(--muted); font-size: 16px; line-height: 1.7; }
.feature-grid {
  margin-top: 48px; display: grid;
  grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.feature-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); box-shadow: var(--shadow-sm);
  overflow: hidden; transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-card-img { display: flex; flex-direction: column; min-height: 280px; padding: 0; }
.feature-card-img .img-card {
  height: 140px; flex-shrink: 0; border-radius: 0;
  border: none; border-bottom: 1px solid var(--line); overflow: hidden;
}
.feature-card-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.feature-card h3 { font-size: 18px; margin: 0 0 8px; }
.feature-card p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; flex: 1; }
.img-card { border-radius: 12px; overflow: hidden; position: relative; }
.img-card img { width: 100%; height: 100%; object-fit: cover; }

/* Guide cards */
section.guides { border-top: 1px solid var(--line); background: var(--soft); }
.guide-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-top: 40px;
}
body.guides-archive .guide-grid,
body.reviews-archive .guide-grid { margin-top: 0; }
.guide-card {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--panel); box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease, box-shadow 0.3s ease;
}
.guide-card:hover { transform: translateY(-5px); border-color: rgba(18, 103, 255, 0.25); box-shadow: var(--shadow); }
.guide-card-lead { grid-column: 1 / -1; }
.guide-visual {
  height: 190px; position: relative; overflow: hidden;
}
.guide-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.guide-card:hover .guide-visual img { transform: scale(1.05); }
.guide-visual-blue { background: linear-gradient(135deg, #d9e8ff, #5d95ff); }
.guide-visual-lavender { background: linear-gradient(135deg, #e4dcff, #9a79f2); }
.guide-visual-pink { background: linear-gradient(135deg, #ffe0f0, #f390c9); }
.guide-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.tag-row { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; }
.tag {
  color: #0d3d8a; background: var(--blue-soft); border-radius: 999px;
  padding: 4px 10px; font-size: 11px; letter-spacing: 0.06em; font-weight: 800;
}
.tag-blue { color: #0b4860; background: #d4f4f8; }
.tag-pink { color: #70304f; background: #ffe0f0; }
.guide-body h3 { font-size: 20px; margin: 12px 0 8px; }
.guide-body h3 a { color: inherit; }
.guide-body h3 a:hover { color: var(--blue); }
.guide-body p { color: var(--muted); font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
.guide-body .card-link { margin-top: auto; }

/* Review panel & score card */
.review-section { padding-top: 24px; }
.review-panel {
  padding: 48px; border: 1px solid var(--line); border-radius: 20px;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px;
  overflow: hidden; position: relative;
  background: radial-gradient(600px 360px at 0% 100%, rgba(18, 103, 255, 0.08), transparent 70%), var(--soft);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}
.review-panel:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.review-content p { color: var(--muted); font-size: 16px; line-height: 1.65; max-width: 560px; margin: 20px 0 24px; }
.score-card {
  padding: 24px; align-self: center;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--panel); box-shadow: var(--shadow-sm);
}
.score-top {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10px; color: var(--muted); letter-spacing: 0.08em; font-weight: 700;
}
.score-pill {
  font-size: 9px; letter-spacing: 0;
  border-radius: 999px; padding: 4px 8px;
  background: var(--blue-soft); color: var(--blue);
}
.score-number {
  font-size: 64px; font-weight: 900; line-height: 0.95;
  letter-spacing: -0.06em; margin: 20px 0 8px; color: var(--text);
}
.score-number span { font-size: 22px; color: var(--muted); }
.score-card > p { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0; }

/* Homepage content grid */
.content-home { padding: 28px 0 0; }
.content-grid {
  display: grid; grid-template-columns: 1.55fr 0.95fr; gap: 18px;
}
.main-col, .panel {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); box-shadow: var(--shadow);
}
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 18px 20px 8px;
}
.section-head h2 { font-size: 22px; margin: 0; letter-spacing: -0.02em; color: var(--text); }
.section-head a { color: var(--blue); font-weight: 800; font-size: 14px; }
.section-head.compact { align-items: flex-start; }
.section-head.compact a { font-size: 13px; text-align: right; }
.review-row {
  display: grid; grid-template-columns: 150px 1fr auto;
  gap: 22px; align-items: center;
  padding: 20px; border-bottom: 1px solid var(--line);
}
.review-row:last-child { border-bottom: 0; }
.review-thumb, .side-thumb {
  border-radius: 12px; overflow: hidden;
}
.review-row img { width: 135px; height: 112px; object-fit: cover; border-radius: 12px; background: var(--soft); }
.label {
  font-size: 12px; text-transform: uppercase;
  color: var(--blue); font-weight: 900;
}
.review-row h3, .side-item h3 { margin: 6px 0; font-size: 18px; letter-spacing: -0.02em; color: var(--text); }
.review-row h3 a, .side-item h3 a, .guide-card-icon h3 a { color: var(--text); transition: color 0.2s; }
.review-row h3 a:hover, .side-item h3 a:hover, .guide-card-icon h3 a:hover { color: var(--blue); }
.review-row p, .side-item p { margin: 0 0 8px; color: var(--muted); line-height: 1.5; font-size: 14px; }
.review-row small, .side-item small { color: #64748b; font-size: 12px; }
.rating { white-space: nowrap; color: #f7a600; font-size: 15px; }
.rating b { color: var(--text); margin-left: 4px; }
.side-col { display: grid; gap: 18px; align-content: start; }
.panel { padding-bottom: 16px; }
.side-item {
  display: grid; grid-template-columns: 78px 1fr;
  gap: 14px; padding: 12px 20px; align-items: center;
}
.side-item img { width: 78px; height: 58px; object-fit: cover; border-radius: 10px; background: var(--soft); }
.side-item h3 { font-size: 15px; line-height: 1.25; }
.side-item.small img { height: 58px; }
.mini-btn {
  display: table; margin: 12px auto 0; padding: 11px 22px;
  border: 1px solid #dbe5f3; border-radius: 8px; color: var(--blue);
  font-weight: 800; font-size: 14px; transition: background 0.2s, border-color 0.2s;
}
.mini-btn:hover { background: var(--soft); border-color: var(--blue); }

/* Featured guides (icon cards) */
.featured-guides {
  padding: 20px 0 48px;
  background: var(--bg);
}
.featured-guides .section-head {
  padding: 0 0 18px; margin-bottom: 0;
}
.guide-icon-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.guide-card-icon {
  border: 1px solid var(--line); border-radius: 12px; padding: 22px;
  background: var(--panel); box-shadow: var(--shadow);
  min-height: 170px; display: flex; flex-direction: column;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}
.guide-card-icon:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(16, 54, 111, 0.14); }
.guide-icon {
  width: 48px; height: 48px; border-radius: 13px; background: #e9f1ff;
  color: var(--blue); display: grid; place-items: center;
  font-size: 26px; font-weight: 900; margin-bottom: 14px;
}
.guide-card-icon h3 { font-size: 16px; margin: 0 0 8px; letter-spacing: -0.02em; }
.guide-card-icon p { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0 0 12px; flex: 1; }
.guide-card-icon .card-link { font-size: 13px; margin-top: auto; }

/* FAQ */
section.faq { border-top: 1px solid var(--line); }
.faq-grid { align-items: start; }
.faq-list { display: grid; gap: 10px; }
.faq-list details {
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel); padding: 0 18px;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.faq-list details[open] { border-color: rgba(18, 103, 255, 0.3); background: var(--soft); }
.faq-list summary {
  list-style: none; cursor: pointer; min-height: 60px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px; font-size: 16px; font-weight: 700;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--blue); font-size: 22px; transition: transform 0.25s ease; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list p { color: var(--muted); font-size: 14px; line-height: 1.65; padding-bottom: 18px; margin: 0; }
.faq-list a { color: var(--blue); text-decoration: underline; }

/* About block */
.about-site-block {
  padding: 36px 40px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--soft);
}
.about-site-block h2 { font-size: 26px; margin: 0 0 12px; }
.about-site-block p { color: var(--muted); margin: 0 0 12px; max-width: 720px; line-height: 1.7; }
.about-site-block ul { color: var(--muted); margin: 12px 0 0; }

/* Multi-page layouts */
.breadcrumbs {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  color: var(--muted); font-size: 13px; margin-bottom: 20px;
}
.breadcrumbs a { color: var(--blue); transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--blue-dark); }
.breadcrumbs span { color: var(--muted); opacity: 0.55; }
.breadcrumbs span[aria-current="page"] { color: var(--text); opacity: 1; font-weight: 600; }
.page-hero { padding-top: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.page-hero-compact { padding-bottom: 36px; }
.page-hero h1, .page-hero .entry-title { font-size: clamp(32px, 4.5vw, 48px); max-width: 780px; }
.page-hero .hero-text { max-width: 620px; }
.article-layout {
  display: grid; grid-template-columns: 1fr 280px;
  gap: 48px; align-items: start;
}
.article-content { max-width: 760px; }
.article-content h2 { font-size: clamp(24px, 3vw, 32px); margin: 40px 0 14px; }
.article-content h3 { font-size: 20px; margin: 28px 0 10px; }
.article-content p, .article-content li { color: var(--muted); font-size: 16px; line-height: 1.75; }
.article-content ul, .article-content ol { margin: 14px 0; }
.article-content li { margin-bottom: 6px; }
.article-content .lead { font-size: 18px; color: var(--text); line-height: 1.7; opacity: 0.92; }
.ad-disclosure {
  margin-top: 28px; padding: 16px 18px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--soft);
  font-size: 13px; line-height: 1.65; color: var(--muted);
}
.ad-disclosure strong { color: var(--text); }
.ad-disclosure a { color: var(--blue); text-decoration: underline; }
.article-figure { margin: 0 0 32px; }
.article-figure-media {
  border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.article-figure img { width: 100%; height: min(42vw, 320px); object-fit: cover; display: block; }
.article-figure figcaption {
  margin-top: 10px; font-size: 13px; color: var(--muted); text-align: center; line-height: 1.5;
}
.related-card h4 { color: var(--text); }
.search-result-card h3 { color: var(--text); }
.guide-card-icon h3 { color: var(--text); }
.feature-card h3 { color: var(--text); }
.review-content h2 { color: var(--text); }
.article-sidebar {
  position: sticky; top: 100px;
  padding: 22px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--panel);
  box-shadow: var(--shadow-sm);
}
.article-sidebar h4 {
  font-size: 12px; margin: 0 0 14px;
  color: var(--blue); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 800;
}
.article-sidebar .article-toc-list {
  list-style: none; margin: 0; padding: 0;
}
.article-sidebar .article-toc-nav a,
.article-sidebar .sidebar-link {
  display: block; color: #0f172a; font-size: 14px; font-weight: 600;
  padding: 10px 12px; margin: 0 -12px;
  border-bottom: 1px solid var(--line);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.article-sidebar .article-toc-nav a:hover,
.article-sidebar .sidebar-link:hover { color: var(--blue); background: var(--soft); }
.article-sidebar .article-toc-nav a.is-active {
  color: var(--blue); background: var(--blue-soft); font-weight: 700;
}
.article-sidebar .article-toc-nav li:last-child a { border-bottom: 1px solid var(--line); }
.article-sidebar .sidebar-link { border-bottom: none; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
html[data-theme="dark"] .article-sidebar h4 { color: #8ec0ff; }
html[data-theme="dark"] .article-sidebar .article-toc-nav a,
html[data-theme="dark"] .article-sidebar .sidebar-link { color: #e2e8f4; }
html[data-theme="dark"] .article-sidebar .article-toc-nav a:hover,
html[data-theme="dark"] .article-sidebar .article-toc-nav a.is-active { color: #ffffff; background: rgba(18, 103, 255, 0.12); }
html[data-theme="dark"] .article-sidebar .sidebar-link:hover { color: #ffffff; background: rgba(18, 103, 255, 0.08); }
.article-meta {
  display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center;
  color: var(--muted); font-size: 13px; margin: 14px 0 0;
  padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
.article-byline a { color: var(--blue); text-decoration: underline; }
.back-to-guides { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal-content { max-width: 780px; }
.legal-content h2 { font-size: 22px; margin: 32px 0 10px; }
.legal-content p, .legal-content li { color: var(--muted); font-size: 15px; line-height: 1.7; }
.legal-meta { color: var(--muted); font-size: 14px; margin-bottom: 20px; }

/* Search */
.search-form { display: flex; gap: 10px; margin: 24px 0 32px; }
.search-form input {
  flex: 1; min-height: 48px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--panel);
  color: var(--text); padding: 0 16px; outline: none;
}
.search-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(18, 103, 255, 0.12); }
.search-results { display: grid; gap: 12px; }
.search-result-card {
  display: block; padding: 18px 20px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--panel);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.search-result-card:hover { border-color: rgba(18, 103, 255, 0.3); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.search-result-card h3 { margin: 0 0 6px; font-size: 17px; }
.search-result-card p { margin: 0; color: var(--muted); font-size: 14px; }
.search-empty { color: var(--muted); }
body.nav-open { overflow: hidden; }
body.cookie-dialog-open { overflow: hidden; }

/* Related cards */
.related-links { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.related-links h3 { font-size: 20px; margin-bottom: 16px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related-card {
  padding: 18px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--panel);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.related-card:hover { border-color: rgba(18, 103, 255, 0.3); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.related-card h4 { font-size: 15px; margin: 0 0 6px; }
.related-card p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.5; }

/* Footer */
.site-footer {
  padding: 44px 0 0;
  background: linear-gradient(135deg, #071a2f, #082746);
  color: #fff;
}
.footer-grid {
  display: grid; grid-template-columns: 1.8fr 1fr 1.25fr 1fr;
  gap: 48px; padding-bottom: 44px;
}
.footer-brand-wrap p { color: #c8d8ee; line-height: 1.6; max-width: 310px; margin: 16px 0 0; font-size: 14px; }
.footer-grid .widget h4, .footer-grid .widget-title {
  font-size: 15px; margin: 0 0 14px; color: #fff;
}
.footer-grid .widget a {
  display: block; color: #dce9fa; margin: 9px 0; font-size: 14px;
  transition: color 0.2s;
}
.footer-grid .widget a:hover { color: #fff; }
.site-info {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0 26px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  color: #a8bdd9; font-size: 12px;
}
.site-info p { margin: 0; }
.footer-brand-wrap p {
  color: #c8d8ee; line-height: 1.6; max-width: 320px;
  font-size: 14px; margin: 16px 0 0;
}
.footer-brand-wrap .brand { color: #fff; }
.footer-brand-wrap .brand b { color: #5d95ff; }
.footer-brand-wrap .brand-mark { background: #196bff; }
.editorial-badge {
  display: inline-block; margin-top: 14px; padding: 6px 12px;
  border-radius: 999px; border: 1px solid rgba(93, 149, 255, 0.35);
  background: rgba(18, 103, 255, 0.15); color: #b8d4ff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.footer-links, .footer-widgets {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.site-footer .widget-title {
  font-size: 14px; font-weight: 800; margin: 0 0 12px; color: #fff;
}
.site-footer .widget a, .footer-links a {
  display: block; color: #dce9fa; margin: 8px 0; font-size: 14px;
  transition: color 0.2s;
}
.site-footer .widget a:hover, .footer-links a:hover { color: #fff; }
.site-info {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0 28px;
  display: flex; justify-content: space-between; gap: 30px;
  color: #8dabc8; font-size: 12px;
}
.site-info p { margin: 0; }
.site-info p:last-child { max-width: 520px; text-align: right; }
.footer-legal-links {
  display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px;
}
.footer-legal-links a, .cookie-settings-link {
  color: #a8bdd9; font-size: 12px;
}
.footer-legal-links a:hover, .cookie-settings-link:hover { color: #fff; }
.cookie-settings-link {
  background: none; border: none; padding: 0;
  text-decoration: underline; cursor: pointer;
}

/* Cookie consent */
.cookie-consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100;
  max-width: 520px; margin-left: auto;
  padding: 22px 24px; border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  transform: translateY(120%); opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.cookie-consent.is-visible { transform: translateY(0); opacity: 1; }
.cookie-consent h2 { font-size: 17px; margin: 0 0 8px; color: var(--text); }
.cookie-consent p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0 0 14px; }
.cookie-consent a { color: var(--blue); text-decoration: underline; }
.cookie-consent-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-consent-actions button {
  min-height: 40px; padding: 0 14px; border-radius: 8px;
  font-size: 13px; font-weight: 700; border: 1px solid transparent;
}
.cookie-btn-accept { color: #fff; background: var(--blue); }
.cookie-btn-reject { color: var(--text); background: var(--panel); border-color: var(--line); }
.cookie-btn-settings { color: var(--muted); background: transparent; border-color: var(--line); }
.cookie-settings-panel {
  display: none; margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--line);
}
.cookie-settings-panel.is-open { display: block; }
.cookie-setting-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.cookie-setting-row:last-child { border-bottom: none; }
.cookie-setting-row span { color: var(--muted); font-size: 12px; display: block; margin-top: 2px; }
.cookie-setting-row input { width: 18px; height: 18px; accent-color: var(--blue); }

/* Post / widget WordPress classes */
.post { /* structural hook for generated articles */ }
.widget { /* sidebar/footer widget wrapper */ }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes glowDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(14px, -18px) scale(1.05); }
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 6px rgba(18, 103, 255, 0.12); transform: scale(1); }
  50% { box-shadow: 0 0 0 10px rgba(18, 103, 255, 0.18); transform: scale(1.12); }
}
@keyframes ticker { to { transform: translateX(-50%); } }

.site-header { animation: slideDown 0.6s var(--ease-out) backwards; }
.home .hero-copy > * { animation: fadeUp 0.75s var(--ease-out) backwards; }
.home .hero-copy > :nth-child(1) { animation-delay: 0.05s; }
.home .hero-copy > :nth-child(2) { animation-delay: 0.12s; }
.home .hero-copy > :nth-child(3) { animation-delay: 0.19s; }
.home .hero-copy > :nth-child(4) { animation-delay: 0.26s; }
.home .hero-copy > :nth-child(5) { animation-delay: 0.33s; }
.home .hero-copy > :nth-child(6) { animation-delay: 0.4s; }
.home .hero-image-wrap { animation: fadeUp 0.9s var(--ease-out) 0.15s backwards; }
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.card-link span, .text-link span, .nav-cta span {
  display: inline-block; transition: transform 0.25s var(--ease-out);
}
.card-link:hover span, .text-link:hover span, .nav-cta:hover span { transform: translate(3px, -1px); }

/* Touch targets & safe areas */
.button, .menu-toggle, .main-nav a, .cookie-consent-actions button { min-height: 44px; }
.menu-toggle { min-width: 44px; }
@supports (padding: max(0px)) {
  .site-header { padding-left: max(0px, env(safe-area-inset-left)); padding-right: max(0px, env(safe-area-inset-right)); }
  .cookie-consent { bottom: max(12px, env(safe-area-inset-bottom)); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
  .ticker-track { animation: none; }
  .reveal { opacity: 1; transform: none; }
  .feature-card:hover, .guide-card:hover, .related-card:hover, .button:hover { transform: none; }
  .guide-card:hover .guide-visual img { transform: none; }
}

/* Tablet — 980px */
@media (max-width: 980px) {
  .page-glow { display: none; }
  .container { width: min(calc(100% - 32px), var(--container)); }
  .nav-cta { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-image-wrap { max-height: 420px; margin-inline: auto; width: 100%; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .guide-grid { grid-template-columns: 1fr 1fr; }
  .guide-card-lead { grid-column: 1 / -1; }
  .review-panel { grid-template-columns: 1fr; gap: 32px; padding: 36px; }
  .content-grid { grid-template-columns: 1fr; }
  .guide-icon-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-links, .footer-widgets { grid-template-columns: 1fr 1fr; }
  .searches-inner { grid-template-columns: 1fr; }
  .search-title br { display: none; }
  .review-row { grid-template-columns: 120px 1fr; }
  .rating { grid-column: 2; }
}

/* Mobile — 700px */
@media (max-width: 700px) {
  .container { width: min(calc(100% - 24px), var(--container)); }
  .section-pad { padding: 56px 0; }
  .nav-wrap, .header-inner { height: 72px; justify-content: space-between; gap: 16px; }
  .brand-text strong { font-size: 23px; }
  .brand-text small { display: none; }
  .icon-btn.theme-toggle { display: none; }
  .hero-grid { min-height: auto; padding: 38px 0; }
  .hero-points { font-size: 17px; }
  .hero-text { font-size: 15px; }
  .button { width: 100%; }
  .hero-art img { border-radius: 10px; }
  .guide-icon-grid { grid-template-columns: 1fr; }
  .brand-mark { width: 36px; height: 36px; border-radius: 10px; font-size: 12px; }
  .menu-toggle {
    display: flex; flex-direction: column; gap: 4px;
    width: 44px; height: 44px; align-items: center; justify-content: center;
    border: 1px solid var(--line); background: var(--panel);
    border-radius: var(--radius-sm); color: var(--text);
  }
  .menu-toggle span {
    display: block; height: 2px; width: 17px;
    border-radius: 3px; background: currentColor; transition: 0.2s;
  }
  .menu-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle.is-open span:nth-child(2) { opacity: 0; }
  .menu-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .main-nav, .main-navigation {
    position: fixed; left: 16px; right: 16px; top: 76px;
    display: none; flex-direction: column; align-items: stretch;
    gap: 0; padding: 10px; margin-left: 0;
    border: 1px solid var(--line); background: rgba(255, 255, 255, 0.98);
    border-radius: var(--radius); box-shadow: var(--shadow);
    max-height: calc(100vh - 96px); overflow-y: auto;
  }
  .main-nav.is-open, .main-navigation.is-open { display: flex; }
  .main-nav a, .main-navigation a { padding: 12px; border-radius: 8px; }
  .main-nav a:hover, .main-navigation a:hover { background: var(--soft); }
  .entry-title, h1.entry-title { font-size: clamp(30px, 8vw, 40px); }
  .hero { padding-top: 32px; padding-bottom: 48px; }
  .hero-stats { gap: 16px; flex-wrap: wrap; }
  .feature-grid, .guide-grid, .related-grid { grid-template-columns: 1fr; }
  .review-panel { padding: 28px 20px; }
  .score-number { font-size: 52px; }
  .review-row { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
  .review-row img { width: 100%; height: 180px; }
  .rating { grid-column: 1; }
  .side-item { grid-template-columns: 70px 1fr; padding: 12px 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-links, .footer-widgets { grid-template-columns: 1fr; }
  .site-info { display: grid; gap: 10px; }
  .site-info p:last-child { text-align: left; }
  .footer-legal-links { flex-direction: column; align-items: flex-start; gap: 8px; }
  .search-form { flex-direction: column; }
  .search-form .button { width: 100%; }
  .article-meta { flex-direction: column; align-items: flex-start; gap: 6px; }
  .about-site-block { padding: 24px 20px; }
  .cookie-consent { max-width: none; left: 12px; right: 12px; }
  .cookie-consent-actions { flex-direction: column; }
  .cookie-consent-actions button { width: 100%; }
  .tags a { font-size: 12px; padding: 7px 10px; }
}
