/*
Theme Name:   Remove & Replace Child
Theme URI:    https://removeandreplace.com/
Description:  Child theme for Astra powering RemoveandReplace.com — a custom, fast, ad-friendly design for DIY appliance repair guides. Keeps Ezoic ad zones intact and all content editable from the WordPress dashboard.
Author:       Remove & Replace
Author URI:   https://removeandreplace.com/
Template:     astra
Version:      1.0.0
Text Domain:  rr-child
*/

/* =========================================================================
   DESIGN TOKENS
   ========================================================================= */
:root {
  --bg: #fafaf7;
  --bg-warm: #f4f0e6;
  --ink: #14181f;
  --ink-fixed: #14181f;
  --ink-2: #3a414d;
  --ink-3: #6b7280;
  --ink-4: #9ca3af;
  --line: #e5e2d8;
  --line-2: #eae6da;
  --brand: #18406f;
  --brand-2: #102d52;
  --brand-soft: #e9f0f9;
  --accent: #4a8fd4;
  --accent-soft: #e6f0fb;
  --amber: #f5b042;
  --amber-2: #c27d0e;
  --amber-soft: #fdf1de;
  --green: #22a35e;
  --green-soft: #e7f9ee;
  --card: #ffffff;
  --shadow-sm: 0 1px 2px rgba(20,24,31,0.04), 0 1px 3px rgba(20,24,31,0.06);
  --shadow-md: 0 4px 12px rgba(20,24,31,0.06), 0 2px 4px rgba(20,24,31,0.04);
  --shadow-lg: 0 20px 40px rgba(20,24,31,0.08), 0 8px 16px rgba(20,24,31,0.04);
  --radius: 14px;
  --purple: #7c5cd1;
  --purple-soft: #efeafb;
  --red: #b3392c;
  --red-soft: #fbe2df;
  --wrap: 1280px;
}

/* =========================================================================
   RESET / BASE — scoped so Astra admin bar etc. are untouched
   ========================================================================= */
.rr * { box-sizing: border-box; }
body.rr-theme {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  margin: 0;
}
.rr .serif { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-style: italic; }
.rr a { color: inherit; text-decoration: none; }
.rr button { font-family: inherit; cursor: pointer; border: none; background: none; }
.rr img { max-width: 100% !important; height: auto !important; }
html { overflow-x: hidden; }
body { max-width: 100%; }
.rr article.post-body { overflow-x: hidden; }
.rr article.post-body iframe, .rr article.post-body embed, .rr article.post-body object, .rr article.post-body video { max-width: 100%; }
.rr article.post-body table { max-width: 100%; display: block; overflow-x: auto; border: 1px solid var(--border, #ddd); border-collapse: collapse; }
.rr article.post-body table th, .rr article.post-body table td { border: 1px solid var(--border, #ddd); padding: 8px 12px; }
.rr article.post-body pre { max-width: 100%; overflow-x: auto; white-space: pre-wrap; word-wrap: break-word; }
.rr article.post-body * { max-width: 100%; }

/* Hide Astra's default header/footer/containers; we render our own */
.ast-above-header-wrap,
.site-header,
.ast-main-header-wrap,
#masthead,
.site-footer,
#colophon,
.ast-mobile-header-wrap { display: none !important; }
#page .site-content { padding: 0 !important; }
.ast-container, .site-content > .ast-container { max-width: none; padding: 0; margin: 0; }
#secondary, .widget-area { display: none !important; }
#primary, .ast-container .content-area, .ast-container #primary { width: 100% !important; max-width: 100% !important; float: none !important; margin: 0 !important; }
.ast-container .ast-row { display: block !important; }

/* =========================================================================
   TOP BAR
   ========================================================================= */
.rr-topbar { background: #14181f; color: #e5e7eb; font-size: 12.5px; padding: 8px 0; }
.rr-topbar-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; display: flex; justify-content: space-between; align-items: center; }
.rr-topbar-inner span { opacity: 0.75; }
.rr-topbar-inner .live { display: inline-flex; align-items: center; gap: 6px; }
.rr-topbar-inner .live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,0.25); }

/* =========================================================================
   HEADER
   ========================================================================= */
.rr-header { border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; backdrop-filter: blur(8px); background: rgba(250, 250, 247, 0.92); }
body.admin-bar .rr-header { top: 32px; }
.rr-header-inner { max-width: var(--wrap); margin: 0 auto; padding: 16px 32px; display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center; }
.rr-logo { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rr-logo-mark { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(145deg, var(--brand), var(--brand-2)); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rr-logo-text { display: flex; flex-direction: column; gap: 1px; line-height: 1; min-width: 0; }
.rr-logo-text .name { font-family: 'Inter', system-ui, -apple-system, sans-serif !important; font-size: 19px; font-weight: 800 !important; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
.rr-logo-text .name .amp { color: var(--accent); }
.rr-logo-text .name .dotcom { color: var(--ink-3); font-weight: 600 !important; }
.rr-logo-text .tag { font-size: 9px; letter-spacing: 0.18em; color: var(--ink-4); margin-top: 3px; font-weight: 600; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.rr-nav { display: flex; gap: 28px; font-size: 14.5px; font-weight: 500; justify-content: space-evenly; width: 100%; list-style: none; margin: 0; padding: 0; }
.rr-nav li { list-style: none; }
.rr-nav a { color: var(--ink-2); transition: color 0.15s; }
.rr-nav a:hover { color: var(--ink); }
.rr-nav a:visited, .rr-nav a:active, .rr-nav a:focus { color: var(--ink-2) !important; }
.rr-nav a:visited:hover, .rr-nav a:active:hover, .rr-nav a:focus:hover { color: var(--ink) !important; }
.rr-nav .current-menu-item > a { color: var(--ink); }
.rr-nav li.has-mega { position: relative; }
.mega-trigger { background: none !important; border: none !important; font: inherit; font-size: 14.5px; font-weight: 500; color: var(--ink-2); display: inline-flex; align-items: center; gap: 5px; cursor: pointer; padding: 0; }
.mega-trigger:hover { color: var(--ink); }
.mega-trigger:visited, .mega-trigger:active, .mega-trigger:focus { color: var(--ink-2) !important; }
.mega-trigger svg { transition: transform 0.2s; }
.rr-nav li.has-mega.open .mega-trigger svg { transform: rotate(180deg); }
.tools-mega { position: absolute; top: calc(100% + 20px); left: 50%; transform: translateX(-50%) translateY(6px); width: 620px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 18px; opacity: 0; visibility: hidden; transition: opacity 0.2s, transform 0.2s, visibility 0.2s; z-index: 150; }
.rr-nav li.has-mega.open .tools-mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.tools-mega-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.tools-mega-grid a { display: flex; gap: 12px; align-items: flex-start; padding: 11px; border-radius: 10px; transition: background 0.15s; text-decoration: none; }
.tools-mega-grid a:hover { background: var(--bg-warm); text-decoration: none; }
.tools-mega-grid .ic { width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.tools-mega-grid .txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tools-mega-grid a:visited, .tools-mega-grid a:active, .tools-mega-grid a:focus { color: inherit !important; }
.tools-mega-grid .t { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.tools-mega-grid .d { font-size: 12px; color: var(--ink-3); line-height: 1.4; }
@media (max-width: 960px) { .tools-mega { display: none; } }
.m-tools { border-bottom: 1px solid var(--line); }
.m-tools-toggle { width: 100%; display: flex; justify-content: space-between; align-items: center; background: none !important; border: none !important; font: inherit; font-size: 19px; font-weight: 600; color: var(--ink); padding: 16px 4px; }
.m-tools-toggle svg { color: var(--ink-4); transition: transform 0.2s; flex-shrink: 0; }
.m-tools.open .m-tools-toggle svg { transform: rotate(180deg); }
.m-tools-list { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; display: flex; flex-direction: column; }
.m-tools.open .m-tools-list { max-height: 640px; overflow-y: auto; }
.m-tools-list a { font-size: 15.5px; font-weight: 600; line-height: 1.4; color: var(--ink-2); padding: 13px 12px 13px 16px; border-top: 1px solid var(--line); display: block; text-wrap: pretty; }
.m-nav .m-tools-list a { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; min-height: 0; height: auto; flex-shrink: 0; flex-grow: 0; flex-basis: auto; border-top: 1px solid var(--line); border-bottom: none; }
.m-nav .m-tools-list a::after { margin-top: 2px; }
.m-tools-list a:visited, .m-tools-list a:active, .m-tools-list a:focus { color: var(--ink-2) !important; }
.rr-header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.rr-header-actions .icon-btn { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--ink-2); transition: background 0.15s; }
.rr-header-actions .icon-btn:hover { background: var(--bg-warm); }
.btn-ask { background: var(--ink-fixed); color: #fff !important; padding: 9px 18px; border-radius: 100px; font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; transition: transform 0.15s, background 0.15s; }
.btn-ask:hover { background: var(--ink-2); transform: translateY(-1px); }

/* =========================================================================
   HERO (front page)
   ========================================================================= */
.hero { padding: 32px 32px 60px; max-width: 1100px; margin: 0 auto; text-align: center; position: relative; overflow: hidden; }
.appliance-browse { margin: 28px auto 0; max-width: 1000px; padding: 0 32px; }
.appliance-browse-head { text-align: center; font-size: 30px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 24px; }
.appliance-browse-head .serif { color: var(--brand); font-size: 1.05em; }
.appliance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.appliance-card { position: relative; background: white; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: all 0.25s ease; cursor: pointer; }
.appliance-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--brand); }
.appliance-card-img { position: relative; background: white; min-height: 210px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.appliance-card img { max-width: 100%; max-height: 180px; height: auto; object-fit: contain; transition: transform 0.4s cubic-bezier(0.34,1.4,0.64,1); }
.appliance-card:hover img { transform: scale(1.08) rotate(-1deg); }
.appliance-card-body { padding: 16px; flex-grow: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.appliance-card h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--ink); }
.appliance-card-meta { font-size: 13px; color: var(--ink-3); }
.appliance-card-arrow { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--bg-warm); color: var(--ink-3); display: flex; align-items: center; justify-content: center; transition: all 0.25s ease; }
.appliance-card:hover .appliance-card-arrow { background: var(--brand); color: white; transform: translateX(2px); }
/* MINI HUB (category page appliance jump strip) */
.mini-hub { background: var(--bg-warm); border-bottom: 1px solid var(--line); }
.mini-hub-inner { max-width: 1280px; margin: 0 auto; padding: 24px 32px 28px; }
.mini-hub-head { text-align: center; font-size: 14px; font-weight: 600; color: var(--ink-3); margin: 0 0 14px; text-transform: uppercase; letter-spacing: 0.04em; }
.mini-hub-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.mini-hub-card { background: white; border: 1px solid var(--line); border-radius: 10px; padding: 10px 6px 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); transition: all 0.2s ease; }
.mini-hub-card img { width: 44px; height: 44px; object-fit: contain; }
.mini-hub-card span { font-size: 12px; font-weight: 600; text-align: center; line-height: 1.2; }
.mini-hub-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--brand); }
.mini-hub-card.active { border-color: var(--brand); background: var(--brand-soft); }
.cat-problems { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.cat-problem-chip { background: white; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; transition: all 0.2s ease; }
.cat-problem-chip:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
@media (max-width: 900px) { .mini-hub-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) { .mini-hub-grid { grid-template-columns: repeat(3, 1fr); } .mini-hub-inner { padding: 20px 16px 24px; } }
@media (max-width: 900px) { .appliance-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .appliance-grid { grid-template-columns: repeat(2, 1fr); } }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 100px; background: var(--brand-soft); color: var(--brand); font-size: 12.5px; font-weight: 600; margin-bottom: 28px; border: 1px solid rgba(44, 85, 196, 0.15); }
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.hero h1 { font-size: 76px; font-weight: 800; letter-spacing: -0.04em; line-height: 0.98; margin: 0 0 20px; color: var(--ink); }
.hero h1 .serif { color: var(--accent); font-weight: 400; }
.hero-sub { font-size: 19px; color: var(--ink-3); margin: 0 auto 36px; max-width: 580px; line-height: 1.5; }
.hero-credential { display: inline-block; max-width: 620px; margin: -20px auto 36px; padding: 10px 18px; border-radius: 100px; background: var(--brand-soft); color: var(--brand); font-size: 13px; font-weight: 600; line-height: 1.5; }
.home-author-card { display: flex; align-items: center; gap: 14px; max-width: var(--wrap); margin: 0 auto 36px; padding: 16px 32px; text-decoration: none; }
.home-author-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--bg-warm); }
.home-author-info { flex: 1; min-width: 0; }
.home-author-name { font-size: 15px; font-weight: 800; color: var(--ink); }
.home-author-cred { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.home-author-card svg { color: var(--ink-4); flex-shrink: 0; }
@media (max-width: 640px) { .hero-credential { font-size: 12px; padding: 8px 14px; } .home-author-card { padding: 14px 18px; } .home-author-cred { font-size: 12px; } }
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; filter: blur(60px); }
.hero::before { width: 300px; height: 300px; background: radial-gradient(circle, rgba(44,85,196,0.12), transparent); top: 20px; left: 10%; }
.hero::after { width: 260px; height: 260px; background: radial-gradient(circle, rgba(245,176,66,0.1), transparent); top: 100px; right: 8%; }
.hero-grid { content: ''; position: absolute; inset: -40px; background-image: linear-gradient(rgba(24,64,111,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(24,64,111,0.06) 1px, transparent 1px); background-size: 34px 34px; -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 30%, black 0%, transparent 75%); mask-image: radial-gradient(ellipse 60% 55% at 50% 30%, black 0%, transparent 75%); pointer-events: none; z-index: 0; animation: hero-drift 50s linear infinite; }
@keyframes hero-drift { 0% { background-position: 0 0, 0 0; } 100% { background-position: 68px 34px, 68px 34px; } }
@media (prefers-reduced-motion: reduce) { .hero-grid { animation: none; } }
.hero-spotlight { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s ease; background: radial-gradient(circle 260px at var(--sx, 50%) var(--sy, 30%), rgba(44,85,196,0.14), transparent 70%); }
.hero:hover .hero-spotlight { opacity: 1; }
@media (hover: none) { .hero-spotlight { display: none; } }
.hero > * { position: relative; z-index: 1; }
#hero-spotlight { z-index: 0; }

/* SEARCH */
.search-wrap { max-width: 720px; margin: 0 auto; position: relative; }
.search { background: #fff; border-radius: 100px; padding: 8px 8px 8px 24px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); transition: box-shadow 0.2s, border-color 0.2s; }
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(44,85,196,0.12), var(--shadow-lg); }
.search svg.search-icon { color: var(--ink-3); flex-shrink: 0; }
.search input { flex: 1; border: none; outline: none; font-family: inherit; font-size: 16px; padding: 10px 4px; background: transparent; color: var(--ink); }
.search input::placeholder { color: var(--ink-4); }
.rr .search-btn { background: var(--brand) !important; color: #fff !important; border: none !important; padding: 12px 22px; border-radius: 100px; font-size: 14.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; line-height: 1.2; white-space: nowrap; cursor: pointer; transition: background 0.15s, transform 0.15s; }
.rr .search-btn:hover { background: var(--brand-2) !important; transform: translateY(-1px); }
.search-hints { margin-top: 20px; display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-3); }
.search-hints .label { color: var(--ink-4); font-size: 12px; font-weight: 500; margin-right: 4px; line-height: 1; align-self: center; }
.hint-chip { padding: 5px 12px; border-radius: 100px; background: #fff; border: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); font-weight: 500; transition: all 0.15s; cursor: pointer; }
.hint-chip:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

/* ============ STREAK BAR ============ */
.streak-bar { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 2px 0 30px; font-size: 14px; font-weight: 600; color: var(--ink-2); position: relative; z-index: 1; }
.streak-bar .rr-ico { width: 15px; height: 15px; color: var(--brand); flex-shrink: 0; }
.streak-bar strong { color: var(--brand); font-variant-numeric: tabular-nums; }

/* ============ TICKER ============ */
.ticker { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 30px; font-size: 13px; color: var(--ink-3); position: relative; z-index: 1; min-height: 18px; }
.ticker-dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; flex-shrink: 0; box-shadow: 0 0 0 3px rgba(34,197,94,0.18); animation: ticker-pulse 2s ease-in-out infinite; }
@keyframes ticker-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.ticker-text { transition: opacity 0.3s ease, transform 0.3s ease; }
.ticker-text.out { opacity: 0; transform: translateY(4px); }

/* STATS */
.stats { max-width: 1100px; margin: 40px auto 0; padding: 0 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.stat { background: #fff; padding: 22px 20px; text-align: center; min-height: 88px; box-sizing: border-box; }
.stat .num { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; min-height: 1em; }
.stat .num .serif { color: var(--accent); }
.stat .lbl { font-size: 12px; color: var(--ink-3); font-weight: 500; margin-top: 6px; letter-spacing: 0.02em; }

/* =========================================================================
   SECTIONS
   ========================================================================= */
section.slab { max-width: var(--wrap); margin: 0 auto; padding: 80px 32px 20px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 36px; gap: 30px; }
.section-head h2 { font-size: 42px; font-weight: 800; letter-spacing: -0.03em; margin: 0; line-height: 1; }
.section-head h2 .serif { color: var(--accent); }
.section-head p { color: var(--ink-3); font-size: 15px; margin: 10px 0 0; max-width: 420px; }
.section-head .view-all { color: var(--ink); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 100px; border: 1px solid var(--line); background: #fff; transition: all 0.15s; flex-shrink: 0; }
.section-head .view-all:hover { border-color: var(--ink); transform: translateX(2px); }

/* CATEGORY GRID */
.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; perspective: 1200px; }
.cat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 0 18px; text-align: left; transition: all 0.2s; cursor: pointer; position: relative; overflow: hidden; display: block; }
.cat::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform 0.3s; }
.cat:hover::before { transform: scaleX(1); }
.cat-photo { width: 100%; height: 96px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.cat.featured .cat-photo { height: 140px; }
.cat-photo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.cat-photo-glow { position: absolute; width: 120px; height: 120px; border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%); opacity: 0.7; }
.cat-photo svg { position: relative; transition: transform 0.4s cubic-bezier(0.34,1.4,0.64,1); }
.cat:hover .cat-photo svg { transform: scale(1.12) rotate(-2deg); }
.cat { transition: all 0.25s cubic-bezier(0.2,0.8,0.2,1); }
.cat:hover { border-color: var(--ink); transform: translateY(-5px); box-shadow: 0 24px 40px rgba(20,24,31,0.12), 0 6px 14px rgba(20,24,31,0.06); }
.cat-body { padding: 14px 16px 0; }
.cat .cat-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--bg-warm); border-radius: 10px; margin-bottom: 12px; color: var(--ink-2); position: relative; z-index: 1; margin-top: -34px; border: 3px solid #fff; margin-left: 16px; }
.cat .cat-name { font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 3px; }
.cat .cat-meta { font-size: 12px; color: var(--ink-4); font-weight: 500; }
.cat.featured { grid-column: span 2; background: var(--ink-fixed); color: #fff; border-color: var(--ink-fixed); padding: 0 0 22px; display: flex; flex-direction: column; justify-content: flex-start; min-height: 160px; }
.cat.featured .cat-body { padding: 0 22px; }
.cat.featured .cat-icon { background: rgba(245,176,66,0.18); color: var(--amber); width: 48px; height: 48px; margin-top: -30px; border: 3px solid var(--ink-fixed); margin-left: 22px; }
.cat.featured .cat-name { font-size: 22px; margin-top: 14px; }
.cat.featured .cat-meta { color: rgba(255,255,255,0.55); font-size: 13px; }
.cat.featured::before { display: none; }
.cat.featured:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cat .badge-top { display: inline-block; font-size: 9.5px; letter-spacing: 0.1em; color: var(--amber) !important; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; background: rgba(245,176,66,0.16); padding: 4px 9px; border-radius: 100px; position: static !important; top: auto !important; right: auto !important; }
.trending-chip { display: inline-block; font-size: 9.5px; letter-spacing: 0.08em; color: #2b7a4d; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; background: rgba(43,122,77,0.12); padding: 4px 9px; border-radius: 100px; }
.cat-tip { max-height: 0; opacity: 0; overflow: hidden; font-size: 11.5px; color: var(--brand); font-weight: 600; margin-top: 0; transition: max-height 0.25s ease, opacity 0.2s, margin-top 0.25s; }
.cat:hover .cat-tip { max-height: 20px; opacity: 1; margin-top: 6px; }
.cat-arrow { position: absolute; bottom: 14px; right: 14px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg-warm); color: var(--ink-3); display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateX(-4px); transition: opacity 0.2s, transform 0.2s; }
.cat:hover .cat-arrow { opacity: 1; transform: translateX(0); }
.cat.featured .cat-arrow { background: rgba(255,255,255,0.12); color: #fff; }
.cat-all { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: var(--bg-warm); border: 1.5px dashed var(--line-2); padding: 24px 16px; }
.cat-all-icon { width: 44px; height: 44px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--brand); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.cat-all .cat-name { text-align: center; }
.cat-all .cat-meta { text-align: center; color: var(--brand); font-weight: 600; }
.cat-all:hover { border-color: var(--brand); background: var(--brand-soft); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
@media (prefers-reduced-motion: no-preference) {
  .cat-photo svg :is(rect, circle, line, path) { stroke-dasharray: 70; stroke-dashoffset: 70; transition: stroke-dashoffset 1s ease; }
  .cat.in .cat-photo svg :is(rect, circle, line, path) { stroke-dashoffset: 0; }
}


.av .vb-icon{position:absolute;bottom:-2px;right:-2px;display:flex;align-items:center;justify-content:center;width:15px;height:15px;font-size:9px;font-weight:700;color:#fff;background:var(--accent);border:2px solid var(--card);border-radius:50%}

/* ============ DARK MODE ============ */
html.dark {
  --bg: #14181f; --bg-warm: #1b212b; --ink: #f2f1ec; --ink-2: #d8d5c9;
  --ink-3: #a3a89c; --ink-4: #767b70; --line: #2a313d; --line-2: #323a47;
  --brand-soft: rgba(74,143,212,0.15); --accent-soft: rgba(74,143,212,0.15); --card: #1b212b;
}
html.dark .rr-header-inner, html.dark .rr-header { background: rgba(20,24,31,0.92); }
html.dark .cat, html.dark .recent-card, html.dark .guide-card, html.dark .side-card, html.dark .m-drawer, html.dark .rv-card, html.dark .stat, html.dark .hint-chip, html.dark .brand-tile, html.dark .tech-card, html.dark .rel-card, html.dark .step, html.dark .cat-all-icon, html.dark .comment-list article, html.dark .comment-body, html.dark .tools-mega, html.dark .tools-list li, html.dark .aft-season .ic, html.dark .mrt-season .ic { background: var(--card); border-color: var(--line); }
html.dark .search, html.dark .search-pop, html.dark .search-float { background: var(--card); }
html.dark .cat-ask-panel .ask-btn, html.dark .recent-hero .rec-tag, html.dark .rel-card .thumb .tag { background: var(--card); color: var(--ink); }
html.dark .newsletter-form input, html.dark .comment-form textarea, html.dark .comment-form input[type="text"], html.dark .comment-form input[type="email"], html.dark .comment-form input[type="url"], html.dark .aft-field input, html.dark .mrt-field input, html.dark .aft-interval .opt, html.dark .mrt-sort select { background: var(--card); color: var(--ink); border-color: var(--line); }
html.dark .aft-interval .opt.active { background: var(--brand) !important; color: #fff !important; }
html.dark .hero-badge { background: var(--brand-soft); color: #8fb8ec; }
html.dark img { filter: brightness(0.92); }
.theme-toggle { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--ink-2); transition: background 0.15s; }
.theme-toggle img, .icon-btn img { width: 18px; height: 18px; display: block; }
.search-float img.s-icon { width: 18px; height: 18px; display: block; }
.theme-toggle:hover { background: var(--bg-warm); }
.theme-toggle .sun { display: none; }
html.dark .theme-toggle .moon { display: none; }
html.dark .theme-toggle .sun { display: block; }

/* ============ SEASONAL BANNER ============ */
/* STREAK BAR (legacy, kept for pages that may still reference it) */
.streak-bar { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 2px 0 30px; font-size: 14px; font-weight: 600; color: var(--ink-2); position: relative; z-index: 1; }
.streak-bar .rr-ico { width: 15px; height: 15px; color: var(--brand); flex-shrink: 0; }
.streak-bar strong { color: var(--brand); font-variant-numeric: tabular-nums; }

/* ACTIVITY PANEL (map + counter) */
.activity-panel { max-width: 1100px; margin: 0 auto 34px; display: grid; grid-template-columns: 260px 1fr; gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); overflow: hidden; position: relative; z-index: 1; }
.activity-stat { padding: 26px 24px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); }
.activity-num { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; color: var(--brand); line-height: 1; font-variant-numeric: tabular-nums; }
.activity-lbl { font-size: 12.5px; color: var(--ink-3); font-weight: 600; margin-top: 6px; line-height: 1.35; }
.activity-map { position: relative; height: 168px; background: var(--card); overflow: hidden; }
.us-map-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.us-state { fill: var(--bg-warm); stroke: var(--line); stroke-width: 1; }
html.dark .us-state { fill: rgba(255,255,255,0.04); }
.map-dots { position: absolute; inset: 0; }
.map-dots span { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--ink-4); opacity: 0.4; transform: translate(-50%,-50%); }
.map-pulse { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 5px rgba(44,85,196,0.18); transform: translate(-50%,-50%); transition: left 0.5s ease, top 0.5s ease; }
.map-pulse::before { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid var(--brand); opacity: 0.5; animation: map-ping 2s ease-out infinite; }
@keyframes map-ping { 0% { transform: scale(0.4); opacity: 0.7; } 100% { transform: scale(2.6); opacity: 0; } }
.map-caption { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); background: var(--card); border: 1px solid var(--line); border-radius: 100px; padding: 7px 14px; box-shadow: var(--shadow-sm); }
.map-caption .ticker-dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; flex-shrink: 0; box-shadow: 0 0 0 3px rgba(34,197,94,0.18); animation: ticker-pulse 2s ease-in-out infinite; }
@keyframes ticker-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
@media (max-width: 640px) { .activity-panel { grid-template-columns: 1fr; } .activity-stat { border-right: none; border-bottom: 1px solid var(--line); flex-direction: row; align-items: baseline; gap: 10px; } }

/* MOST SAVED RIBBON */
.card-badge { position: absolute; top: 10px; left: 10px; display: flex; align-items: center; gap: 5px; background: var(--ink-fixed); color: #fff; font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 100px; z-index: 1; }
.card-badge svg { width: 11px; height: 11px; }
.guide-thumb { position: relative; }
.search-hints { transition: opacity 0.25s ease; }
.search-hints.swap { opacity: 0; }
.footer-search { display: flex; align-items: center; gap: 6px; margin-top: 14px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: 8px; padding: 6px 10px; max-width: 248px; }
.footer-search svg { flex-shrink: 0; color: rgba(255,255,255,0.5); }
.footer-search input { flex: 1; min-width: 0; background: none; border: none; color: rgba(255,255,255,0.85); font-size: 12.5px; outline: none; }
.footer-search input::placeholder { color: rgba(255,255,255,0.4); }
.footer-search button { flex-shrink: 0; flex-grow: 0; box-sizing: border-box; padding: 0; margin: 0; display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; min-width: 22px; border-radius: 50%; border: none; background: rgba(255,255,255,0.16); color: rgba(255,255,255,0.9); cursor: pointer; transition: background 0.15s, transform 0.15s; }
.footer-search button:hover { background: var(--accent, #2f6fed); transform: scale(1.06); }
.footer-search button svg { width: 11px; height: 11px; }

/* SEASONAL BANNER */
.icon-pulse { display: inline-block; animation: icon-pulse 2.4s ease-in-out infinite; }
@keyframes icon-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.18); } }
@media (prefers-reduced-motion: reduce) { .icon-pulse { animation: none; } }

/* COMMON THIS WEEK */
.common-week { max-width: var(--wrap); margin: 0 auto 8px; padding: 0 32px 28px; }
.common-week-card { display: flex; align-items: center; gap: 14px; background: linear-gradient(90deg, rgba(245,176,66,0.14), rgba(245,176,66,0.02)); border: 1px solid rgba(245,176,66,0.35); border-radius: var(--radius); padding: 14px 22px; flex-wrap: wrap; }
.common-week-card .rr-ico { width: 22px; height: 22px; flex-shrink: 0; color: var(--amber); }
.common-week-card .cw-text { font-size: 14.5px; color: var(--ink-2); }
.common-week-card .cw-text b { color: var(--ink); }
.common-week-card a.cw-link { margin-left: auto; font-weight: 700; color: var(--brand); white-space: nowrap; display: flex; align-items: center; gap: 5px; }
html.dark .common-week-card { background: linear-gradient(90deg, rgba(245,176,66,0.1), rgba(245,176,66,0.02)); }

/* Tool-page components ship their own white surfaces; darken them here so dark mode
   doesn't leave stark white cards/inputs/buttons floating on the dark background. */
html.dark [class$="-opt"], html.dark [class*="-stepper"] button, html.dark [class*="-gpg-chip"],
html.dark [class*="-btn-secondary"], html.dark [class*="-preset-chip"], html.dark [class*="-remove-btn"],
html.dark [class*="-interval"] .opt, html.dark [class*="-season"] .ic, html.dark [class*="-detect-card"] .badge,
html.dark [class*="qty"] button {
  background: var(--card) !important; color: var(--ink-2) !important;
}
html.dark [class$="-field"] input, html.dark [class$="-field"] select,
html.dark [class*="-field"] input[type="number"], html.dark [class*="-field"] input[type="text"] {
  background: var(--card) !important; color: var(--ink) !important;
}
html.dark [class*="-example"] table { background: var(--card) !important; }

/* QUIZ */
.quiz-section { background: var(--bg-warm); padding: 56px 32px; }
.quiz-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.quiz-inner h2 { margin: 0 0 6px; }
.quiz-inner > p { margin: 0 0 26px; color: var(--ink-3); font-size: 15px; }
.quiz-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 32px; text-align: left; }
.quiz-step { display: none; }
.quiz-step.active { display: block; }
.quiz-progress { display: flex; gap: 6px; margin-bottom: 20px; }
.quiz-progress span { height: 4px; flex: 1; border-radius: 2px; background: var(--line); }
.quiz-progress span.done { background: var(--brand); }
.quiz-q { font-weight: 700; font-size: 17px; margin-bottom: 14px; }
.quiz-opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.quiz-opt { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border: 1.5px solid #cfe0f5!important; border-radius: 10px; background: #dcebfa!important; cursor: pointer; font-size: 14.5px; font-weight: 600; color: var(--ink-2); transition: border-color 0.15s, color 0.15s, background 0.15s; text-align: left; }
.quiz-opt:hover { border-color: var(--brand)!important; color: var(--brand); background: #c9dff5!important; }
.quiz-opt .rr-ico { width: 18px; height: 18px; flex-shrink: 0; }
.quiz-back { margin-top: 16px; font-size: 13px; color: var(--ink-3); cursor: pointer; font-weight: 600; }
.quiz-back:hover { color: var(--brand); }
.quiz-result { text-align: center; }
.quiz-result .rr-ico { width: 34px; height: 34px; color: var(--brand); margin: 0 auto 14px; }
.quiz-result h3 { margin: 0 0 8px; }
.quiz-result p { color: var(--ink-3); margin: 0 0 20px; font-size: 14.5px; }
.quiz-result a { display: inline-flex; align-items: center; gap: 8px; background: var(--brand); color: #fff; padding: 13px 24px; border-radius: 100px; font-weight: 700; font-size: 14.5px; }
.quiz-checkmark circle, .quiz-checkmark path { stroke-dasharray: 44; stroke-dashoffset: 44; }
.quiz-checkmark.play circle { animation: quiz-draw 0.5s ease forwards; }
.quiz-checkmark.play path { stroke-dasharray: 10; stroke-dashoffset: 10; animation: quiz-draw-check 0.3s 0.45s ease forwards; }
@keyframes quiz-draw { to { stroke-dashoffset: 0; } }
@keyframes quiz-draw-check { to { stroke-dashoffset: 0; } }
.quiz-confetti { position: relative; display: block; width: 0; height: 0; margin: 0 auto; }
.quiz-confetti span { position: absolute; top: 0; left: 0; width: 6px; height: 6px; border-radius: 2px; opacity: 0; animation: confetti-pop 0.7s ease-out forwards; animation-delay: var(--dl, 0s); }
@keyframes confetti-pop { 0% { opacity: 1; transform: translate(0,0) rotate(0deg); } 100% { opacity: 0; transform: translate(calc(cos(var(--a)) * var(--d)), calc(sin(var(--a)) * var(--d))) rotate(200deg); } }
@media (prefers-reduced-motion: reduce) { .quiz-checkmark circle, .quiz-checkmark path { stroke-dashoffset: 0; animation: none; } .quiz-confetti span { display: none; } }

/* GUIDE FILTER CHIPS */
.guide-filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin: -8px 0 16px; }
.guide-filter-chip { padding: 6px 14px; border-radius: 100px; background: var(--card); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--ink-3); cursor: pointer; transition: all 0.15s; }
.guide-filter-chip:hover { border-color: var(--brand); color: var(--brand); }
.guide-filter-chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.guide-card.filtered-out { display: none; }
@media (max-width: 640px) { .quiz-opts { grid-template-columns: 1fr; } .quiz-card { padding: 22px; } }

.seasonal-banner { background: linear-gradient(90deg, var(--brand), var(--accent)); color: #fff; line-height: 1.3; }
.seasonal-inner { max-width: var(--wrap); margin: 0 auto; padding: 10px 32px; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 13.5px; font-weight: 600; text-align: center; position: relative; }
.seasonal-inner a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.seasonal-close { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.18); width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.seasonal-close:hover { background: rgba(255,255,255,0.3); }

/* ============ RECENTLY VIEWED ============ */
.recently-viewed { display: none; }
.recently-viewed.show { display: block; }
.rv-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.rv-card { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; transition: all 0.2s; }
.rv-card:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.rv-card .rv-icon { width: 34px; height: 34px; border-radius: 8px; background: var(--bg-warm); display: flex; align-items: center; justify-content: center; color: var(--ink-3); flex-shrink: 0; }
.rv-card .rv-title { font-size: 13.5px; font-weight: 600; line-height: 1.3; }

/* ============ NEWSLETTER ============ */
.newsletter { max-width: var(--wrap); margin: 80px auto 0; padding: 0 32px; }
.newsletter-box { background: var(--bg-warm); border-radius: var(--radius); padding: 44px 40px; text-align: center; }
.newsletter-box h2 { font-size: 32px; margin: 0 0 10px; }
.newsletter-box p { color: var(--ink-3); font-size: 15.5px; margin: 0 0 24px; }
.newsletter-form { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; }
.newsletter-form input { flex: 1; border: 1px solid var(--line); border-radius: 100px; padding: 13px 18px; font-size: 14.5px; font-family: inherit; outline: none; background: #fff; color: var(--ink); }
.newsletter-form input:focus { border-color: var(--brand); }
.newsletter-form button { background: var(--ink-fixed); color: #fff; padding: 13px 22px; border-radius: 100px; font-weight: 700; font-size: 14px; white-space: nowrap; transition: background 0.15s; }
.newsletter-form button:hover { background: var(--ink-2); }
.newsletter-note { font-size: 12px; color: var(--ink-4); margin-top: 14px; }
.newsletter-success { display: none; font-size: 14.5px; font-weight: 600; color: var(--brand); }

/* ============ FAQ ============ */
.faq { max-width: 900px; margin: 80px auto 0; padding: 0 32px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; padding: 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; background: none; border: none; cursor: pointer; color: var(--ink); }
.faq-q:hover{color:var(--ink)!important}
.faq-q .plus { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--ink-4); display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; transition: transform 0.25s; }
.faq-q .plus::before, .faq-q .plus::after { content: ''; position: absolute; background: var(--ink-2); }
.faq-q .plus::before { width: 10px; height: 1.5px; }
.faq-q .plus::after { width: 1.5px; height: 10px; transition: transform 0.25s; }
.faq-item.open .plus::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a p { font-size: 15px; color: var(--ink-3); line-height: 1.6; padding: 0 0 22px; margin: 0; }

/* BRAND CHART */
.brand-chart { margin-top: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 28px 28px 22px; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.chart-head h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
.chart-head h3 .serif { color: var(--accent); }
.chart-note { font-size: 12.5px; color: var(--ink-4); font-weight: 500; }
.chart-rows { display: flex; flex-direction: column; gap: 12px; }
.chart-row { display: grid; grid-template-columns: 92px 1fr 52px; align-items: center; gap: 14px; }
.chart-name { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.chart-bar { height: 10px; border-radius: 100px; background: var(--bg-warm); overflow: hidden; }
.chart-fill { height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--accent), var(--brand)); transform-origin: left; animation: chart-grow 1s cubic-bezier(0.16,1,0.3,1) backwards; }
@keyframes chart-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.chart-val { font-size: 13px; font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; text-align: right; }
@media (max-width: 640px) { .chart-row { grid-template-columns: 76px 1fr 44px; gap: 10px; } }

/* FEATURE GRID (latest + ask) */
.feature-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; }
.guides { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.guide-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; gap: 14px; cursor: pointer; transition: all 0.15s; }
.guide-card:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.guide-thumb { width: 72px; height: 72px; border-radius: 10px; background: var(--bg-warm); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--ink-3); font-size: 24px; background-image: repeating-linear-gradient(45deg, transparent 0 6px, rgba(20,24,31,0.04) 6px 7px); overflow: hidden; }
.guide-thumb img { width: 100%; height: 100%; object-fit: cover; }
.guide-card .guide-meta { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); font-weight: 700; }
.guide-card h3 { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; margin: 4px 0 6px; line-height: 1.25; }
.guide-card .guide-sub { font-size: 12px; color: var(--ink-4); display: flex; gap: 8px; align-items: center; }
.guide-card .guide-sub .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-4); }

/* ASK PANEL */
.ask-panel { background: var(--ink-fixed); color: #fff; border-radius: var(--radius); padding: 32px 28px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.ask-panel::before { content: ''; position: absolute; top: -60px; right: -60px; width: 200px; height: 200px; background: radial-gradient(circle, rgba(245,176,66,0.25), transparent 70%); }
.ask-tools { width: 56px; height: 56px; background: rgba(245,176,66,0.15); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: var(--amber); position: relative; }
.ask-panel h3 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; margin: 0 0 12px; position: relative; color: #fff !important; }
.ask-panel h3 .serif { color: var(--amber); font-weight: 400; }
.ask-panel p { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.55; margin: 0 0 24px; position: relative; }
.ask-panel .ask-btn { background: var(--amber); color: var(--ink); padding: 14px 22px; border-radius: 100px; font-weight: 700; font-size: 14.5px; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; transition: transform 0.15s; position: relative; }
.ask-panel .ask-btn:hover { transform: translateX(2px); }
.ask-panel .meta { margin-top: 18px; font-size: 12px; color: rgba(255,255,255,0.5); display: flex; gap: 14px; position: relative; }
.ask-panel .meta span::before { content: '✓'; color: var(--amber); margin-right: 6px; }

/* WIDE / RECENT */
.wide-section { background: var(--bg-warm); padding: 56px 0; margin-top: 52px; border-bottom: 1px solid var(--line); }
.wide-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.recent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.recent-card { background: #fff; border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: all 0.2s; border: 1px solid var(--line); }
.recent-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.recent-hero { aspect-ratio: 16/10; background: var(--bg-warm); position: relative; display: flex; align-items: center; justify-content: center; color: var(--ink-4); background-image: radial-gradient(circle at 30% 40%, rgba(44,85,196,0.08), transparent 50%), radial-gradient(circle at 70% 60%, rgba(245,176,66,0.08), transparent 50%); overflow: hidden; }
.recent-hero img { width: 100%; height: 100%; object-fit: cover; }
.recent-hero .ph-icon { font-size: 60px; opacity: 0.3; }
.thumb-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; position: relative; }
.thumb-fallback span { display: flex; filter: drop-shadow(0 3px 6px rgba(20,24,31,0.1)); }
.guide-thumb .thumb-fallback svg { width: 26px; height: 26px; }
.recent-hero .thumb-fallback svg { width: 44px; height: 44px; }
.recent-hero .rec-tag { position: absolute; top: 14px; left: 14px; padding: 5px 11px; background: #fff; border-radius: 100px; font-size: 11px; letter-spacing: 0.1em; color: var(--brand); font-weight: 700; text-transform: uppercase; z-index: 2; }
.recent-body { padding: 20px 22px 22px; }
.recent-body h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.015em; margin: 0 0 8px; line-height: 1.25; }
.recent-body p { font-size: 13.5px; color: var(--ink-3); margin: 0 0 16px; line-height: 1.5; }
.recent-body .meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--ink-4); }
.recent-body .read { color: var(--ink); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }

/* BRANDS */
.brands { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.brand-tile { display: flex; align-items: center; justify-content: center; height: 76px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: all 0.15s; }
.brand-tile .wordmark { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink-3); filter: grayscale(1); opacity: 0.65; transition: all 0.15s; }
.brand-tile:hover { border-color: var(--ink); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.brand-tile:hover .wordmark { filter: none; opacity: 1; color: var(--brand); }
.brand-tile.brand-more .wordmark { font-size: 13px; font-weight: 700; color: var(--brand); opacity: 1; filter: none; }

/* TRUST */
.trust { max-width: var(--wrap); margin: 52px auto 0; padding: 0 32px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.trust-copy h2 { font-size: 48px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; margin: 0 0 18px; }
.trust-copy h2 .serif { color: var(--accent); }
.trust-copy p { font-size: 16px; color: var(--ink-3); line-height: 1.55; margin: 0 0 24px; }
.trust-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }
.trust-pt { display: flex; gap: 12px; align-items: flex-start; }
.trust-pt .pt-icon { width: 32px; height: 32px; background: var(--brand-soft); color: var(--brand); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.trust-pt strong { font-size: 14px; font-weight: 700; display: block; margin-bottom: 2px; }
.trust-pt span { font-size: 13px; color: var(--ink-3); line-height: 1.4; }
.tech-stack { display: flex; flex-direction: column; gap: 14px; }
.tech-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-md); position: relative; }
.tech-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); display: flex; align-items: center; justify-content: center; font-size: 16px; color: #fff; font-weight: 700; margin-bottom: 12px; }
.tech-quote { font-size: 15.5px; line-height: 1.45; letter-spacing: -0.01em; font-weight: 500; margin: 0 0 14px; }
.tech-name { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.tech-name b { color: var(--ink); display: block; font-weight: 700; font-size: 14px; }

/* =========================================================================
   ARTICLE (single)
   ========================================================================= */
body.single .rr a { color: var(--brand); }
.crumb { max-width: var(--wrap); margin: 0 auto; padding: 20px 32px 0; font-size: 13px; color: var(--ink-3); }
.crumb a { color: var(--ink-3); }
.crumb a:hover { color: var(--ink); }
.crumb .sep { margin: 0 8px; opacity: 0.5; }
.crumb .current { color: var(--ink); font-weight: 600; }

.article-head { max-width: 1180px; margin: 0 auto; padding: 32px 32px 40px; }
.article-head-inner { max-width: 100%; }
.article-head .cat-tag { display: inline-block; padding: 6px 14px; background: var(--brand-soft); color: var(--brand); border-radius: 100px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 20px; }
.article-head h1 { font-size: 56px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; margin: 0 0 20px; }
.article-head h1 .serif { color: var(--accent); font-weight: 400; }
.article-head .dek { font-size: 20px; color: var(--ink-3); line-height: 1.45; margin: 0 0 28px; }
.rr .article-head-inner .byline { display: flex !important; flex-wrap: nowrap; align-items: center !important; justify-content: space-between !important; gap: 14px; padding: 16px 0; box-shadow: inset 0 1px 0 0 rgba(20,24,31,0.14), inset 0 -1px 0 0 rgba(20,24,31,0.14); }
.rr .article-head-inner .byline .av { flex-shrink: 0; }
.rr .article-head-inner .byline .meta { flex: 1 1 auto; min-width: 0; }
.rr .article-head-inner .byline .actions { flex-shrink: 0; }
.byline .av { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; overflow: hidden; }
.byline .av img { width: 100%; height: 100%; object-fit: cover; }
.byline .meta { flex: 1; font-size: 13px; color: var(--ink-3); }
.byline .meta b { color: var(--ink); display: block; font-size: 14px; font-weight: 700; }
.byline .meta .tech-title { color: var(--ink-3); font-weight: 500; font-size: 13px; }
.byline .meta .vet-badge { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 2px 8px; background: var(--bg-warm); border: 1px solid var(--line); border-radius: 20px; font-size: 11.5px; font-weight: 700; color: var(--ink-2); vertical-align: middle; }
.trust-strip { font-size: 13px; color: var(--ink-3); display: inline; margin-left: 6px; }
.trust-strip .trust-check { display: inline-flex; vertical-align: -3px; }
.trust-strip a { color: var(--brand); font-weight: 600; }
.dot-sep { color: var(--ink); font-size: 25px; line-height: 0; vertical-align: -4px; }
.trust-strip .trust-check svg { display: block; stroke-width: 4.5; filter: drop-shadow(0 0 0.3px currentColor); width: 21px; height: 21px; }
.byline .meta .pub-line, .byline .meta .read-line { display: block; white-space: nowrap; }
.byline .meta .pub-line { font-size: 12px; }
.share-bar { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; padding: 16px 22px; background: var(--card, #fff); border: 1px solid var(--line); border-radius: var(--radius); flex-wrap: wrap; }
.share-label { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.share-icons { display: flex; gap: 8px; }
.share-btn { display: flex; align-items: center; justify-content: center; border: none; background: none; padding: 0; cursor: pointer; border-radius: 50%; transition: transform .15s ease; flex-shrink: 0; }
.share-btn:hover { transform: translateY(-2px); }
.share-btn svg { flex-shrink: 0; }
@media (max-width: 480px) { .share-bar { flex-wrap: wrap; padding: 14px 16px; gap: 10px; } .share-label { font-size: 13px; width: 100%; } .share-icons { gap: 8px; } }
.author-bio { display: flex; gap: 20px; margin-top: 40px; padding: 28px; background: var(--bg-warm, #f4f3ee); border-radius: var(--radius); max-width: 100%; box-sizing: border-box; }
.author-bio .bio-av, .rr article.post-body .author-bio img.bio-av { width: 64px !important; height: 64px !important; max-width: 64px; margin: 0 !important; border-radius: 50% !important; flex-shrink: 0; align-self: flex-start; }
.author-bio .bio-body { min-width: 0; flex: 1; overflow-wrap: break-word; word-break: break-word; }
.author-bio h4 { margin: 0 0 2px; font-size: 16px; }
.author-bio h4 a { color: var(--ink); text-decoration: none; }
.author-bio .bio-role { margin: 0 0 10px; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.author-bio .bio-text { margin: 0 0 10px; font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
.author-bio .bio-link { font-size: 13.5px; font-weight: 700; color: var(--brand); text-decoration: none; }
.author-bio .bio-link:hover { text-decoration: underline; }
@media (max-width: 480px) { .author-bio { flex-direction: column; align-items: center; text-align: center; } .author-bio .bio-av { width: 96px !important; height: 96px !important; max-width: 96px; } }
.rr .article-head-inner .byline .actions { align-self: flex-start !important; margin-top: 2px; }
.byline .actions { display: flex; gap: 8px; }
.byline .actions button, .byline .actions a { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink-2) !important; display: flex; align-items: center; justify-content: center; background: #fff; }
.byline .actions button svg, .byline .actions a svg { stroke: currentColor !important; stroke-width: 2.2; }
/* Icon font-family-free fallback: CSS mask + background-color, immune to SVG stripping/minifier issues */
.byline .actions button .rr-ico { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; background-color: currentColor; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; }
.byline .actions button .rr-ico svg { position: relative; z-index: 1; }
.rr-ico-arrow-right { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14'/><path d='m12 5 7 7-7 7'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14'/><path d='m12 5 7 7-7 7'/></svg>"); }
.search-float button .rr-ico, .search-pop button .rr-ico { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; background-color: currentColor; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; }
.search-float button .rr-ico svg, .search-pop button .rr-ico svg { position: relative; z-index: 1; }
.rr-ico { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; }
.rr-ico-bookmark { -webkit-mask-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAyNCAyNCcgZmlsbD0nbm9uZScgc3Ryb2tlPSdibGFjaycgc3Ryb2tlLXdpZHRoPScyJyBzdHJva2UtbGluZWNhcD0ncm91bmQnIHN0cm9rZS1saW5lam9pbj0ncm91bmQnPjxwYXRoIGQ9J00xOSAyMWwtNy01LTcgNVY1YTIgMiAwIDAgMSAyLTJoMTBhMiAyIDAgMCAxIDIgMnonLz48L3N2Zz4=); mask-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAyNCAyNCcgZmlsbD0nbm9uZScgc3Ryb2tlPSdibGFjaycgc3Ryb2tlLXdpZHRoPScyJyBzdHJva2UtbGluZWNhcD0ncm91bmQnIHN0cm9rZS1saW5lam9pbj0ncm91bmQnPjxwYXRoIGQ9J00xOSAyMWwtNy01LTcgNVY1YTIgMiAwIDAgMSAyLTJoMTBhMiAyIDAgMCAxIDIgMnonLz48L3N2Zz4=); }
.rr-ico-share { -webkit-mask-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAyNCAyNCcgZmlsbD0nbm9uZScgc3Ryb2tlPSdibGFjaycgc3Ryb2tlLXdpZHRoPScyJyBzdHJva2UtbGluZWNhcD0ncm91bmQnIHN0cm9rZS1saW5lam9pbj0ncm91bmQnPjxjaXJjbGUgY3g9JzE4JyBjeT0nNScgcj0nMycvPjxjaXJjbGUgY3g9JzYnIGN5PScxMicgcj0nMycvPjxjaXJjbGUgY3g9JzE4JyBjeT0nMTknIHI9JzMnLz48bGluZSB4MT0nOC42JyB5MT0nMTAuNicgeDI9JzE1LjQnIHkyPSc2LjQnLz48bGluZSB4MT0nOC42JyB5MT0nMTMuNCcgeDI9JzE1LjQnIHkyPScxNy42Jy8+PC9zdmc+); mask-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAyNCAyNCcgZmlsbD0nbm9uZScgc3Ryb2tlPSdibGFjaycgc3Ryb2tlLXdpZHRoPScyJyBzdHJva2UtbGluZWNhcD0ncm91bmQnIHN0cm9rZS1saW5lam9pbj0ncm91bmQnPjxjaXJjbGUgY3g9JzE4JyBjeT0nNScgcj0nMycvPjxjaXJjbGUgY3g9JzYnIGN5PScxMicgcj0nMycvPjxjaXJjbGUgY3g9JzE4JyBjeT0nMTknIHI9JzMnLz48bGluZSB4MT0nOC42JyB5MT0nMTAuNicgeDI9JzE1LjQnIHkyPSc2LjQnLz48bGluZSB4MT0nOC42JyB5MT0nMTMuNCcgeDI9JzE1LjQnIHkyPScxNy42Jy8+PC9zdmc+); }
.rr-ico-print { -webkit-mask-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAyNCAyNCcgZmlsbD0nbm9uZScgc3Ryb2tlPSdibGFjaycgc3Ryb2tlLXdpZHRoPScyJyBzdHJva2UtbGluZWNhcD0ncm91bmQnIHN0cm9rZS1saW5lam9pbj0ncm91bmQnPjxwb2x5bGluZSBwb2ludHM9JzYgOSA2IDIgMTggMiAxOCA5Jy8+PHBhdGggZD0nTTYgMThINGEyIDIgMCAwIDEtMi0ydi01YTIgMiAwIDAgMSAyLTJoMTZhMiAyIDAgMCAxIDIgMnY1YTIgMiAwIDAgMS0yIDJoLTInLz48cmVjdCB4PSc2JyB5PScxNCcgd2lkdGg9JzEyJyBoZWlnaHQ9JzgnLz48L3N2Zz4=); mask-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAyNCAyNCcgZmlsbD0nbm9uZScgc3Ryb2tlPSdibGFjaycgc3Ryb2tlLXdpZHRoPScyJyBzdHJva2UtbGluZWNhcD0ncm91bmQnIHN0cm9rZS1saW5lam9pbj0ncm91bmQnPjxwb2x5bGluZSBwb2ludHM9JzYgOSA2IDIgMTggMiAxOCA5Jy8+PHBhdGggZD0nTTYgMThINGEyIDIgMCAwIDEtMi0ydi01YTIgMiAwIDAgMSAyLTJoMTZhMiAyIDAgMCAxIDIgMnY1YTIgMiAwIDAgMS0yIDJoLTInLz48cmVjdCB4PSc2JyB5PScxNCcgd2lkdGg9JzEyJyBoZWlnaHQ9JzgnLz48L3N2Zz4=); }
.rr-ico-search { -webkit-mask-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAyNCAyNCcgZmlsbD0nbm9uZScgc3Ryb2tlPSdibGFjaycgc3Ryb2tlLXdpZHRoPScyJyBzdHJva2UtbGluZWNhcD0ncm91bmQnIHN0cm9rZS1saW5lam9pbj0ncm91bmQnPjxjaXJjbGUgY3g9JzExJyBjeT0nMTEnIHI9JzcnLz48bGluZSB4MT0nMjEnIHkxPScyMScgeDI9JzE2LjY1JyB5Mj0nMTYuNjUnLz48L3N2Zz4=); mask-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAyNCAyNCcgZmlsbD0nbm9uZScgc3Ryb2tlPSdibGFjaycgc3Ryb2tlLXdpZHRoPScyJyBzdHJva2UtbGluZWNhcD0ncm91bmQnIHN0cm9rZS1saW5lam9pbj0ncm91bmQnPjxjaXJjbGUgY3g9JzExJyBjeT0nMTEnIHI9JzcnLz48bGluZSB4MT0nMjEnIHkxPScyMScgeDI9JzE2LjY1JyB5Mj0nMTYuNjUnLz48L3N2Zz4=); }
.rr-ico-pdf { -webkit-mask-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAyNCAyNCcgZmlsbD0nbm9uZScgc3Ryb2tlPSdibGFjaycgc3Ryb2tlLXdpZHRoPScyJyBzdHJva2UtbGluZWNhcD0ncm91bmQnIHN0cm9rZS1saW5lam9pbj0ncm91bmQnPjxwYXRoIGQ9J00yMSAxNXY0YTIgMiAwIDAgMS0yIDJINWEyIDIgMCAwIDEtMi0ydi00Jy8+PHBvbHlsaW5lIHBvaW50cz0nNyAxMCAxMiAxNSAxNyAxMCcvPjxsaW5lIHgxPScxMicgeTE9JzE1JyB4Mj0nMTInIHkyPSczJy8+PC9zdmc+); mask-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAyNCAyNCcgZmlsbD0nbm9uZScgc3Ryb2tlPSdibGFjaycgc3Ryb2tlLXdpZHRoPScyJyBzdHJva2UtbGluZWNhcD0ncm91bmQnIHN0cm9rZS1saW5lam9pbj0ncm91bmQnPjxwYXRoIGQ9J00yMSAxNXY0YTIgMiAwIDAgMS0yIDJINWEyIDIgMCAwIDEtMi0ydi00Jy8+PHBvbHlsaW5lIHBvaW50cz0nNyAxMCAxMiAxNSAxNyAxMCcvPjxsaW5lIHgxPScxMicgeTE9JzE1JyB4Mj0nMTInIHkyPSczJy8+PC9zdmc+); }
.rr-ico-moon { -webkit-mask-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAyNCAyNCcgZmlsbD0nbm9uZScgc3Ryb2tlPSdibGFjaycgc3Ryb2tlLXdpZHRoPScyJyBzdHJva2UtbGluZWNhcD0ncm91bmQnIHN0cm9rZS1saW5lam9pbj0ncm91bmQnPjxwYXRoIGQ9J00yMSAxMi43OUE5IDkgMCAxIDEgMTEuMjEgMyA3IDcgMCAwIDAgMjEgMTIuNzl6Jy8+PC9zdmc+); mask-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAyNCAyNCcgZmlsbD0nbm9uZScgc3Ryb2tlPSdibGFjaycgc3Ryb2tlLXdpZHRoPScyJyBzdHJva2UtbGluZWNhcD0ncm91bmQnIHN0cm9rZS1saW5lam9pbj0ncm91bmQnPjxwYXRoIGQ9J00yMSAxMi43OUE5IDkgMCAxIDEgMTEuMjEgMyA3IDcgMCAwIDAgMjEgMTIuNzl6Jy8+PC9zdmc+); }
.rr-ico-sun { -webkit-mask-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAyNCAyNCcgZmlsbD0nbm9uZScgc3Ryb2tlPSdibGFjaycgc3Ryb2tlLXdpZHRoPScyJyBzdHJva2UtbGluZWNhcD0ncm91bmQnIHN0cm9rZS1saW5lam9pbj0ncm91bmQnPjxjaXJjbGUgY3g9JzEyJyBjeT0nMTInIHI9JzUnLz48bGluZSB4MT0nMTInIHkxPScxJyB4Mj0nMTInIHkyPSczJy8+PGxpbmUgeDE9JzEyJyB5MT0nMjEnIHgyPScxMicgeTI9JzIzJy8+PGxpbmUgeDE9JzQuMjInIHkxPSc0LjIyJyB4Mj0nNS42NCcgeTI9JzUuNjQnLz48bGluZSB4MT0nMTguMzYnIHkxPScxOC4zNicgeDI9JzE5Ljc4JyB5Mj0nMTkuNzgnLz48bGluZSB4MT0nMScgeTE9JzEyJyB4Mj0nMycgeTI9JzEyJy8+PGxpbmUgeDE9JzIxJyB5MT0nMTInIHgyPScyMycgeTI9JzEyJy8+PGxpbmUgeDE9JzQuMjInIHkxPScxOS43OCcgeDI9JzUuNjQnIHkyPScxOC4zNicvPjxsaW5lIHgxPScxOC4zNicgeTE9JzUuNjQnIHgyPScxOS43OCcgeTI9JzQuMjInLz48L3N2Zz4=); mask-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAyNCAyNCcgZmlsbD0nbm9uZScgc3Ryb2tlPSdibGFjaycgc3Ryb2tlLXdpZHRoPScyJyBzdHJva2UtbGluZWNhcD0ncm91bmQnIHN0cm9rZS1saW5lam9pbj0ncm91bmQnPjxjaXJjbGUgY3g9JzEyJyBjeT0nMTInIHI9JzUnLz48bGluZSB4MT0nMTInIHkxPScxJyB4Mj0nMTInIHkyPSczJy8+PGxpbmUgeDE9JzEyJyB5MT0nMjEnIHgyPScxMicgeTI9JzIzJy8+PGxpbmUgeDE9JzQuMjInIHkxPSc0LjIyJyB4Mj0nNS42NCcgeTI9JzUuNjQnLz48bGluZSB4MT0nMTguMzYnIHkxPScxOC4zNicgeDI9JzE5Ljc4JyB5Mj0nMTkuNzgnLz48bGluZSB4MT0nMScgeTE9JzEyJyB4Mj0nMycgeTI9JzEyJy8+PGxpbmUgeDE9JzIxJyB5MT0nMTInIHgyPScyMycgeTI9JzEyJy8+PGxpbmUgeDE9JzQuMjInIHkxPScxOS43OCcgeDI9JzUuNjQnIHkyPScxOC4zNicvPjxsaW5lIHgxPScxOC4zNicgeTE9JzUuNjQnIHgyPScxOS43OCcgeTI9JzQuMjInLz48L3N2Zz4=); }
.byline .actions button:hover, .byline .actions a:hover { border-color: var(--ink); color: var(--ink); }
@media print {
  .rr-topbar, header.rr-header, .m-backdrop, .m-drawer, .crumb, .actions, .post-sidebar, .related, footer.rr-footer, #rr-toast, .inline-ask, .ad-zone, .ad-leader, .ad-incontent, .adsbygoogle, [id^="ez-"], .ezoic-ad { display: none !important; }
  .body-grid { grid-template-columns: 1fr !important; max-width: none; padding: 0; }
  .hero-img, .article-head, .article-head-inner { max-width: none; padding: 0; }
  body { padding: 0; margin: 0; }
  a { color: inherit; text-decoration: none; }
}
.rr-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: var(--ink-fixed); color: #fff; font-size: 13.5px; font-weight: 600; padding: 11px 20px; border-radius: 100px; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; z-index: 999; }
.rr-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.search-pop-wrap { position: relative; }
.search-pop { position: absolute; top: calc(100% + 10px); right: 0; background: #fff; border: 1px solid var(--line); border-radius: 100px; box-shadow: var(--shadow-lg); padding: 6px 6px 6px 18px; display: flex; align-items: center; gap: 8px; width: 300px; max-width: calc(100vw - 32px); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.18s, transform 0.18s, visibility 0.18s; z-index: 120; }
.search-pop.open { opacity: 1; visibility: visible; transform: translateY(0); }
.search-pop input { flex: 1; border: none; outline: none; font-size: 14px; font-family: inherit; color: var(--ink); background: transparent; }
.search-pop button { width: 34px; height: 34px; border-radius: 50%; background: var(--ink-fixed); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.search-pop button:hover { background: var(--ink-2); }
.search-float { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); max-height: 0 !important; overflow: hidden !important; opacity: 0 !important; transition: max-height 0.25s ease, opacity 0.2s; z-index: 90; }
.search-float.open { max-height: 90px !important; opacity: 1 !important; }
.search-float form { max-width: var(--wrap); margin: 0 auto; padding: 18px 32px; display: flex; align-items: center; gap: 12px; }
.search-float svg.s-icon { color: var(--ink-4); flex-shrink: 0; }
.search-float input { flex: 1; border: none; outline: none; font-size: 16px; font-family: inherit; color: var(--ink); background: transparent; }
.search-float button { width: 40px; height: 40px; border-radius: 50%; background: var(--ink-fixed); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.search-float button:hover { background: var(--ink-2); }

/* =========================================================================
   CATEGORY ARCHIVE
   ========================================================================= */
.cat-hero { max-width: var(--wrap); margin: 0 auto; padding: 56px 32px 40px; text-align: center; border-bottom: 1px solid var(--line); }
.cat-hero-icon { width: 64px; height: 64px; border-radius: 16px; background: var(--bg-warm); color: var(--brand); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.cat-hero h1 { font-size: 42px; letter-spacing: -0.02em; margin: 0 0 14px; }
.cat-hero h1 .serif { color: var(--brand); font-weight: 400; }
.cat-hero-sub { font-size: 17px; color: var(--ink-3); max-width: 620px; margin: 0 auto 16px; line-height: 1.5; }
.cat-hero-meta { display: inline-block; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--ink-4); background: var(--bg-warm); padding: 7px 16px; border-radius: 100px; }
.cat-ask-panel { max-width: var(--wrap); margin: 56px auto 0; background: var(--ink-fixed); color: #fff; border-radius: var(--radius); padding: 32px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cat-ask-panel .ask-tools { width: 52px; height: 52px; border-radius: 14px; background: rgba(245,176,66,0.16); color: var(--amber); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cat-ask-panel h3 { font-size: 21px; margin: 0 0 6px; color: #fff !important; }
.cat-ask-panel h3 .serif { color: var(--amber); font-weight: 400; }
.cat-ask-panel p { color: rgba(255,255,255,0.65); font-size: 14.5px; margin: 0; }
.cat-ask-panel .ask-btn { margin-left: auto; background: #fff; color: var(--ink); padding: 13px 22px; border-radius: 100px; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; transition: background 0.15s; }
.cat-ask-panel .ask-btn:hover { background: var(--bg-warm); }
@media (max-width: 700px) {
  .cat-hero { padding: 40px 20px 32px; }
  .cat-hero h1 { font-size: 30px; }
  .cat-ask-panel { padding: 24px 20px; }
  .cat-ask-panel .ask-btn { margin-left: 0; width: 100%; justify-content: center; }
}
@media (max-width: 600px) {
  .rr .article-head-inner .byline { flex-wrap: wrap; }
  .byline .actions { order: 3; width: 100%; justify-content: flex-start; margin-top: 4px; }
}

.hero-img { max-width: 1080px; margin: 0 auto 48px; padding: 0 32px; }
.hero-img .ph { aspect-ratio: 21/9; background: var(--bg-warm); border-radius: var(--radius); background-image: radial-gradient(circle at 30% 40%, rgba(44,85,196,0.08), transparent 55%), radial-gradient(circle at 70% 60%, rgba(245,176,66,0.09), transparent 55%); display: flex; align-items: center; justify-content: center; color: var(--ink-4); overflow: hidden; }
.hero-img img { width: 100%; aspect-ratio: 21/9; object-fit: cover; border-radius: var(--radius); display: block; }

.body-grid { max-width: 1180px; margin: 0 auto; padding: 0 32px; display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 60px; align-items: flex-start; }
.rr article.post-body { max-width: 720px; justify-self: start; width: 100%; }
.rr article.post-body a { color: var(--brand); font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 2px; }
.rr article.post-body a:hover { color: var(--accent); }
.rr article.post-body p { font-size: 17px; line-height: 1.7; color: var(--ink-2); margin: 0 0 20px; }
.rr article.post-body > p:first-of-type, .rr article.post-body p.lead { font-size: 20px; color: var(--ink); font-weight: 500; margin-bottom: 28px; }
.rr article.post-body h2 { font-size: 32px; font-weight: 800; letter-spacing: -0.025em; margin: 48px 0 16px; line-height: 1.1; }
.rr article.post-body h2 .serif { color: var(--accent); font-weight: 400; }
.rr article.post-body h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.015em; margin: 32px 0 12px; }
.rr article.post-body ul, .rr article.post-body ol { padding-left: 22px; margin: 0 0 20px; }
.rr article.post-body li { font-size: 17px; line-height: 1.65; color: var(--ink-2); margin-bottom: 8px; }
.rr article.post-body blockquote { border-left: 3px solid var(--brand); padding: 4px 0 4px 20px; margin: 28px 0; font-family: 'Instrument Serif', Georgia, serif; font-size: 22px; line-height: 1.4; color: var(--ink); font-style: italic; }
.rr article.post-body img { display: block; max-width: 100%; height: auto; border-radius: var(--radius); margin: 32px auto; }
.rr article.post-body img.alignleft { float: left; margin: 8px 24px 20px 0; max-width: 45%; }
.rr article.post-body img.alignright { float: right; margin: 8px 0 20px 24px; max-width: 45%; }
.rr article.post-body img.aligncenter, .rr article.post-body img.alignnone { float: none; margin: 32px auto; }
.rr article.post-body .wp-block-image { margin: 32px 0; text-align: center; }
.rr article.post-body .wp-block-image img { margin: 0 auto; }
.rr article.post-body .wp-block-image.alignleft { float: left; max-width: 45%; margin: 8px 24px 20px 0; }
.rr article.post-body .wp-block-image.alignright { float: right; max-width: 45%; margin: 8px 0 20px 24px; }
.rr article.post-body .wp-caption-text, .rr article.post-body figcaption { font-size: 13px; color: var(--ink-3); text-align: center; margin: -20px 0 28px; font-style: italic; }

/* ============ COMMENTS ============ */
.comments-section { max-width: 720px; margin: 0 auto 80px; padding: 0 32px; }
@media (max-width: 600px) { .comments-section { padding: 0 16px; } .comment-list article, .comment-body { padding: 14px 16px; } }
.comments-title, .comment-reply-title { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 24px; color: var(--ink); }
.comment-reply-title { font-size: 17px; margin: 0 0 14px; }
.comment-list { list-style: none; margin: 0 0 36px; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.comment-list .children { list-style: none; margin: 16px 0 0; padding: 0 0 0 30px; display: flex; flex-direction: column; gap: 16px; }
.comment-list article, .comment-body { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: #fff; max-width: 100%; box-sizing: border-box; }
.comment-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.comment-author { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 700; color: var(--ink); max-width: 100%; }
.comment-author .avatar, .comment-list .avatar { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; }
.comment-author .fn { font-style: normal; }
.comment-metadata { font-size: 12.5px; color: var(--ink-4); margin-left: 0; }
.comment-content { min-width: 0; overflow-wrap: break-word; word-break: break-word; }
.comment-content p { font-size: 15px; line-height: 1.55; color: var(--ink-2); margin: 6px 0 8px; }
.reply a { font-size: 12.5px; font-weight: 700; color: var(--brand); }
.comment-respond { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--bg-warm); }
.comment-form p { margin: 0 0 10px; }
.comment-form textarea, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"] { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-family: inherit; font-size: 14.5px; outline: none; background: #fff; color: var(--ink); box-sizing: border-box; }
.comment-form textarea:focus, .comment-form input:focus { border-color: var(--brand); }
.comment-form input[type="submit"], .comment-form button[type="submit"], #commentform input[type="submit"], #commentform button[type="submit"] { margin-top: 6px; background: var(--ink-fixed) !important; color: #fff !important; padding: 12px 24px; border-radius: 100px; font-weight: 700; font-size: 14px; border: none !important; cursor: pointer; opacity: 1 !important; }
.comment-form input[type="submit"]:hover, .comment-form button[type="submit"]:hover, #commentform input[type="submit"]:hover, #commentform button[type="submit"]:hover { background: var(--ink-2) !important; }
.comment-notes, .logged-in-as { font-size: 13px; color: var(--ink-3); margin-bottom: 14px; }
.no-comments { font-size: 14.5px; color: var(--ink-3); }

/* STEP CARDS (re-usable block / shortcode) */
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; margin: 24px 0; position: relative; }
.step::before { content: ''; position: absolute; left: 0; top: 24px; bottom: 24px; width: 3px; background: var(--brand); border-radius: 3px; }
.step .step-num { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); font-weight: 700; margin-bottom: 6px; }
.step h3 { margin: 0 0 10px !important; font-size: 22px; }
.step p:last-child { margin-bottom: 0; }
.step .difficulty { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); font-weight: 600; margin-top: 10px; }
.step .difficulty .dots { display: inline-flex; gap: 3px; }
.step .difficulty .dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.step .difficulty .dots span.on { background: var(--amber); }

/* INLINE ASK CTA */
.inline-ask { background: var(--ink-fixed); color: #fff; border-radius: var(--radius); padding: 28px; display: flex; gap: 22px; align-items: center; margin: 40px 0; position: relative; overflow: hidden; }
.inline-ask::before { content: ''; position: absolute; top: -40px; right: -40px; width: 160px; height: 160px; background: radial-gradient(circle, rgba(245,176,66,0.2), transparent 70%); }
.inline-ask .icon { width: 52px; height: 52px; background: rgba(245,176,66,0.15); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--amber); flex-shrink: 0; position: relative; }
.inline-ask h4 { font-size: 20px; margin: 0 0 4px; font-weight: 800; letter-spacing: -0.02em; position: relative; color: #fff !important; }
.inline-ask h4 .serif { color: var(--amber); font-weight: 400; }
.inline-ask p { font-size: 13.5px; color: rgba(255,255,255,0.65); margin: 0; position: relative; }
.inline-ask .btn { background: var(--amber); color: var(--ink) !important; padding: 12px 20px; border-radius: 100px; font-weight: 700; font-size: 13.5px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; position: relative; margin-left: auto; transition: transform 0.15s; }
.inline-ask .btn:hover { transform: translateX(2px); }

/* EZOIC AD ZONES */
.ad-zone { background: var(--bg-warm); border: 1px dashed var(--line); border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--ink-4); gap: 6px; background-image: repeating-linear-gradient(45deg, transparent 0 10px, rgba(20,24,31,0.018) 10px 11px); }
.ad-zone .ad-label { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: var(--ink-4); }
.ad-zone .ad-dim { font-size: 11px; color: var(--ink-4); opacity: 0.7; }
.ad-leader { max-width: 760px; margin: 0 auto 40px; padding: 0 32px; }
.ad-leader .ad-zone { min-height: 110px; }
.ad-incontent { margin: 36px 0; min-height: 250px; }
.ad-sidebar { min-height: 600px; }
/* When Ezoic injects a real ad, the placeholder div needs no styling */
.ezoic-ad { margin: 36px auto; text-align: center; }

/* SIDEBAR */
.rr aside.post-sidebar { position: sticky; top: 80px; }
body.admin-bar .rr aside.post-sidebar { top: 112px; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.side-card h4 { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-4); margin: 0 0 14px; font-weight: 700; }
.toc { list-style: none; padding: 0; margin: 0; }
.toc li { margin-bottom: 2px; list-style: none; }
.toc a { display: flex; gap: 10px; font-size: 13.5px; color: var(--ink-2); padding: 6px 0 6px 10px; line-height: 1.35; border-left: 2px solid transparent; margin-left: -12px; }
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--brand); border-left-color: var(--brand); font-weight: 600; }
.toc a .n { color: var(--ink-4); font-weight: 600; min-width: 16px; }
.toc a.active .n { color: var(--brand); }
.side-progress { display: flex; flex-direction: column; align-items: center; text-align: center; background: var(--ink-fixed) !important; border-color: var(--ink-fixed) !important; gap: 4px; }
.side-progress .ring-wrap { position: relative; width: 80px; height: 80px; margin-bottom: 6px; }
.side-progress .prog-ring { width: 80px; height: 80px; transform: rotate(-90deg); }
.side-progress .prog-ring circle { fill: none; stroke-width: 6; }
.side-progress .prog-ring .bg { stroke: rgba(255,255,255,0.12); }
.side-progress .prog-ring .fg { stroke: var(--amber); stroke-linecap: round; transition: stroke-dashoffset 0.15s linear; }
.side-progress .prog-pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 800; color: #fff !important; }
.side-progress .prog-label { font-size: 12.5px; color: rgba(255,255,255,0.65) !important; }
.side-ask { background: var(--ink-fixed); color: #fff; border-radius: var(--radius); padding: 22px; position: relative; overflow: hidden; }
.side-ask::before { content: ''; position: absolute; top: -30px; right: -30px; width: 120px; height: 120px; background: radial-gradient(circle, rgba(245,176,66,0.22), transparent 70%); }
.side-ask .ic { width: 40px; height: 40px; background: rgba(245,176,66,0.18); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--amber); margin-bottom: 12px; position: relative; }
.side-ask h5 { font-size: 18px; margin: 0 0 6px; font-weight: 800; letter-spacing: -0.015em; position: relative; color: #fff !important; }
.side-ask h5 .serif { color: var(--amber); font-weight: 400; }
.side-ask p { font-size: 12.5px; margin: 0 0 14px; color: rgba(255,255,255,0.65); line-height: 1.5; position: relative; }
.side-ask .btn { display: inline-flex; align-items: center; gap: 6px; background: var(--amber); color: var(--ink) !important; padding: 10px 16px; border-radius: 100px; font-weight: 700; font-size: 13px; position: relative; }

/* RELATED */
.related { background: var(--bg-warm); border-top: 1px solid var(--line); padding: 52px 0; margin-top: 52px; }
.related-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.related h2 { font-size: 36px; font-weight: 800; letter-spacing: -0.025em; margin: 0 0 8px; }
.related h2 .serif { color: var(--accent); font-weight: 400; }
.related p.sub { color: var(--ink-3); margin: 0 0 32px; font-size: 15px; }
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rel-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: inherit; transition: all 0.2s; }
.rel-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.rel-card .thumb { aspect-ratio: 16/10; background: var(--bg-warm); background-image: radial-gradient(circle at 30% 40%, rgba(44,85,196,0.08), transparent 55%), radial-gradient(circle at 70% 60%, rgba(245,176,66,0.08), transparent 55%); position: relative; overflow: hidden; }
.rel-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.rel-card .thumb .tag { position: absolute; top: 14px; left: 14px; background: #fff; padding: 5px 11px; border-radius: 100px; font-size: 11px; font-weight: 700; color: var(--brand); letter-spacing: 0.08em; text-transform: uppercase; z-index: 2; }
.rel-card .bdy { padding: 18px 20px 20px; }
.rel-card h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 6px; line-height: 1.3; }
.rel-card .rmeta { font-size: 12px; color: var(--ink-4); }

/* =========================================================================
   FOOTER
   ========================================================================= */
.rr-footer { background: var(--ink-fixed); color: rgba(255,255,255,0.7); padding: 60px 32px 32px; margin-top: 60px; }
body.single .rr-footer { margin-top: 0; }
.footer-inner { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 50px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand .rr-logo { margin-bottom: 14px; }
.footer-brand .rr-logo-mark { width: 73px; height: 73px; background: rgba(255,255,255,0.12); }
.footer-brand .rr-logo-mark svg { width: 45px; height: 45px; }
.footer-brand .rr-logo-text .name { color: #fff; font-size: 36px; }
.footer-brand .rr-logo-text .tag { font-size: 13px; }
.footer-brand .rr-logo-text .name .dotcom { color: rgba(255,255,255,0.6); }
.footer-brand .rr-logo-text .tag { color: rgba(255,255,255,0.5); }
.footer-brand p { font-size: 13.5px; line-height: 1.5; margin: 0 0 14px; max-width: 320px; }
.footer-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 20px; }
.footer-badges li { font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em; color: rgba(255,255,255,0.75); background: rgba(255,255,255,0.08); border-radius: 100px; padding: 6px 12px; }
.rr-footer h4 { color: #fff; font-size: 13px; font-weight: 700; margin: 0 0 16px; letter-spacing: 0.04em; text-transform: uppercase; }
.rr-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.rr-footer ul li { list-style: none; }
.rr-footer ul a { font-size: 14px; transition: color 0.15s; color: rgba(255,255,255,0.75) !important; text-transform: capitalize; }
.rr-footer ul a:hover { color: #fff !important; }
.footer-bottom { max-width: var(--wrap); margin: 0 auto; padding-top: 28px; display: flex; justify-content: space-between; font-size: 12.5px; color: rgba(255,255,255,0.4); }
.footer-bottom a { margin-left: 20px; color: rgba(255,255,255,0.55) !important; }
.footer-bottom a:hover { color: #fff !important; }
.footer-top-link { font-weight: 600; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.65); transition: background 0.15s, color 0.15s; }
.social a:hover { background: var(--accent); color: #fff; }
.footer-legal { max-width: var(--wrap); margin: 18px auto 0; font-size: 11.5px; color: rgba(255,255,255,0.3); line-height: 1.5; }

/* =========================================================================
   MOBILE MENU (drawer)
   ========================================================================= */
.menu-toggle { display: none; width: 40px; height: 40px; border-radius: 10px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: none; transition: background 0.15s; }
.menu-toggle:hover { background: var(--bg-warm); }
.menu-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.25s, opacity 0.2s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.m-backdrop { position: fixed; inset: 0; background: rgba(20,24,31,0.45); backdrop-filter: blur(2px); opacity: 0; transition: opacity 0.25s; z-index: 9998; }
.m-backdrop.open { opacity: 1; }
.m-drawer { position: fixed; top: 0; right: 0; height: 100%; width: 84%; max-width: 340px; background: var(--bg); z-index: 9999; transform: translateX(100%); transition: transform 0.28s cubic-bezier(0.4,0,0.2,1); display: flex; flex-direction: column; padding: 18px 18px 22px; box-shadow: -20px 0 50px rgba(20,24,31,0.18); overflow-y: auto; }
.m-drawer.open { transform: translateX(0); }
.m-drawer-head { display: flex; justify-content: space-between; align-items: center; }
.m-drawer-title { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-4); font-weight: 700; }
.m-close { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--ink-2); background: none; transition: background 0.15s; }
.m-close:hover { background: var(--bg-warm); }
.m-nav, .m-nav ul { display: flex; flex-direction: column; list-style: none; margin: 0; padding: 0; }
.m-nav a, .m-tools-list a { -webkit-tap-highlight-color: transparent; }
.m-drawer > *, .m-nav > li, .m-nav ul > li { flex-shrink: 0; }
.m-nav a { min-height: 44px; box-sizing: border-box; }
.m-nav { margin-top: 14px; }
.m-nav a { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); padding: 16px 4px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; transition: color 0.15s; }
.m-nav a:visited, .m-nav a:active, .m-nav a:focus { color: var(--ink) !important; }
.m-nav a::after { content: '\2192'; color: var(--ink-4); font-size: 15px; }
.m-nav a:hover { color: var(--brand); }
.m-ask-btn { margin-top: 18px; background: var(--ink-fixed); color: #fff !important; text-align: center; padding: 15px; border-radius: 100px; font-weight: 700; font-size: 15px; transition: background 0.15s; }
.m-ask-btn:hover { background: var(--ink-2); }
body.menu-open { overflow: hidden; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 960px) {
  .menu-toggle { display: flex; }
  .hero h1 { font-size: 48px; }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .cat.featured { grid-column: span 3; }
  .feature-grid { grid-template-columns: 1fr; }
  .guides { grid-template-columns: 1fr; }
  .recent-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: 1fr; }
  .brands { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }  .rr-nav { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head h2 { font-size: 32px; }
  .body-grid { grid-template-columns: 1fr; }
  .rr aside.post-sidebar { position: static !important; order: -1; }
  .rr aside.post-sidebar, [class*="still-stuck"], [id*="still-stuck"], [class*="rr-cta"], [id*="rr-stuck"] { display: none !important; left: auto !important; top: auto !important; width: auto !important; }
  .article-head h1 { font-size: 36px; }
  .rel-grid { grid-template-columns: 1fr; }
  .inline-ask { flex-direction: column; align-items: flex-start; }
  .inline-ask .btn { margin-left: 0; }
}

/* ---- Phones ---- */
@media (max-width: 600px) {
  /* Header: switch to flex so logo truncates instead of overlapping the icons */
  .rr-header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; gap: 10px; }
  .rr-logo { flex: 1 1 auto; min-width: 0; overflow: hidden; }
  .rr-logo-text { min-width: 0; overflow: hidden; }
  .rr-logo-text .name { font-size: 15.5px; }
  .rr-logo-text .tag { font-size: 8px; }
  .rr-header-actions { flex: 0 0 auto; }
  .btn-ask { display: none; }
  /* Search bar: compact on phones instead of a tall full-bleed row */
  .search-float form { padding: 10px 16px; gap: 8px; }
  .search-float input { font-size: 14px; }
  .search-float button { width: 32px; height: 32px; }
  .search-float svg.s-icon { width: 15px; height: 15px; }
  .search-float.open { max-height: 60px !important; }
  /* Top bar: stack the two lines, center them */
  .rr-topbar { font-size: 11.5px; }
  .rr-topbar-inner { flex-direction: column; gap: 3px; text-align: center; padding: 0 16px; }
  .rr-topbar-inner .live { justify-content: center; }

  /* Header: tighter gutters */
  /* Hero */
  .hero { padding: 40px 18px 36px; }
  .hero h1 { font-size: 38px; }
  .hero-sub { font-size: 16px; margin-bottom: 28px; }
  .hero-badge { margin-bottom: 22px; }

  /* Search: compact stacked layout on phones */
  .search { flex-direction: column; align-items: stretch; padding: 8px; border-radius: 16px; gap: 6px; }
  .search input { text-align: center; padding: 6px 4px; font-size: 14.5px; }
  .rr .search-btn { justify-content: center; padding: 10px; font-size: 13.5px; }
  .search svg.search-icon { display: none; }
  .search-hints { margin-top: 16px; }

  /* Stats: 2-up, lighter gutters */
  .stats { margin: 28px 16px 0; padding: 0; grid-template-columns: repeat(2, 1fr); }

  /* Sections */
  section.slab { padding: 48px 16px 20px; }
  .section-head h2 { font-size: 27px; }

  /* Categories: 2-up */
  .cats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat.featured { grid-column: span 2; min-height: 0; }

  .wide-section { padding: 40px 0; margin-top: 40px; }
  .wide-inner { padding: 0 16px; }

  .trust { margin-top: 40px; padding: 0 16px; gap: 28px; }
  .trust-copy h2 { font-size: 34px; }
  .trust-points { grid-template-columns: 1fr; }
  .brands { grid-template-columns: repeat(2, 1fr); }

  /* Footer: 2-up links, stacked legal row, safe gutters */
  .rr-footer { padding: 48px 16px 24px; margin-top: 64px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { grid-column: span 1; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
  .footer-bottom a { margin-left: 0; margin-right: 16px; }
}
/* === PROTECTED: user-added Ezoic block below — keep verbatim on any edit === */
/* Ezoic Ad Height Reservation - CLS Fix (selectors corrected to ezoic-pub-ad-placeholder-XXX) */
/* HORIZONTAL PLACEHOLDERS - 90px Desktop/Tablet, 100px Mobile */
#ezoic-pub-ad-placeholder-108{min-height:90px}/* under_first_paragraph */
#ezoic-pub-ad-placeholder-109{min-height:90px}/* under_second_paragraph */
#ezoic-pub-ad-placeholder-107{min-height:90px}/* under_page_title */
#ezoic-pub-ad-placeholder-110{min-height:90px}/* mid_content */
#ezoic-pub-ad-placeholder-111{min-height:90px}/* long_content */
#ezoic-pub-ad-placeholder-124{min-height:90px}/* incontent_15 */
#ezoic-pub-ad-placeholder-123{min-height:90px}/* incontent_14 */
/* BOX PLACEHOLDERS - 250px Desktop/Tablet, 100px Mobile */
#ezoic-pub-ad-placeholder-112{min-height:250px}/* longer_content */
#ezoic-pub-ad-placeholder-113{min-height:250px}/* longest_content */
#ezoic-pub-ad-placeholder-114{min-height:250px}/* incontent_5 */
/* MOBILE OVERRIDES - All Horizontal & Box reserve 100px on mobile */
@media (max-width: 768px){#ezoic-pub-ad-placeholder-108,#ezoic-pub-ad-placeholder-109,#ezoic-pub-ad-placeholder-107,#ezoic-pub-ad-placeholder-110,#ezoic-pub-ad-placeholder-111,#ezoic-pub-ad-placeholder-124,#ezoic-pub-ad-placeholder-123,#ezoic-pub-ad-placeholder-112,#ezoic-pub-ad-placeholder-113,#ezoic-pub-ad-placeholder-114{min-height:100px}}
/* === END PROTECTED === */