/*
Theme Name: ItForks!
Theme URI: https://www.itforks.com/
Author: ItForks!
Description: Lightweight custom WordPress theme for ItForks! — Geek Out. Eat Well.
Version: 0.6.4
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: itforks
*/

:root {
  --if-void: #090A0F;
  --if-surface: #12141B;
  --if-surface-2: #191C25;
  --if-green: #7CFF4F;
  --if-purple: #7C5CFF;
  --if-orange: #FFB84D;
  --if-cloud: #F5F5F2;
  --if-static: #A6A8B1;
  --if-border: rgba(245,245,242,.10);
  --if-max: 1240px;
  --if-radius: 18px;
  --if-radius-sm: 12px;
  --if-shadow: 0 24px 70px rgba(0,0,0,.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--if-void);
  color: var(--if-cloud);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
body.admin-bar .site-header { top: 32px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--if-green); outline-offset: 4px; }
button, input { font: inherit; }

h1,h2,h3,h4,h5,h6,
.site-title,
.nav-menu,
.eyebrow,
.btn,
.score-number,
.mobile-nav-label {
  font-family: "Space Grotesk", Inter, sans-serif;
}
h1,h2,h3,h4,h5,h6 { margin: 0 0 .55em; line-height: 1.08; letter-spacing: -.03em; }
p { margin: 0 0 1em; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9,10,15,.88);
  border-bottom: 1px solid var(--if-border);
  backdrop-filter: blur(18px);
}
.header-inner {
  max-width: var(--if-max);
  margin: 0 auto;
  min-height: 76px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display:flex; align-items:center; gap:12px; min-width:0; }
.brand-mark { width:36px; height:36px; flex:0 0 36px; }
.site-title { font-weight:800; font-size:20px; letter-spacing:-.04em; }
.site-title span { color: var(--if-green); }
.main-nav ul { display:flex; gap:24px; list-style:none; padding:0; margin:0; }
.main-nav a { color: var(--if-static); font: 600 14px/1 "Space Grotesk", sans-serif; }
.main-nav a:hover { color: var(--if-cloud); }
.header-actions { display:flex; align-items:center; gap:12px; }
.search-button { border:1px solid var(--if-border); background:var(--if-surface); color:var(--if-cloud); width:42px; height:42px; border-radius:50%; cursor:pointer; }
.mobile-menu-toggle { display:none; }

.container { width:min(var(--if-max), calc(100% - 40px)); margin-inline:auto; }
.section { padding: 92px 0; }
.section-head { display:flex; align-items:end; justify-content:space-between; gap:24px; margin-bottom:32px; }
.section-kicker, .eyebrow { color:var(--if-green); font-size:12px; font-weight:800; letter-spacing:.16em; text-transform:uppercase; }
.section-title { font-size: clamp(32px, 5vw, 50px); }
.section-description { max-width:560px; color:var(--if-static); }

.hero { padding: 88px 0 74px; position:relative; overflow:hidden; }
.hero::after { content:""; position:absolute; width:480px; height:480px; right:-180px; top:-180px; background:radial-gradient(circle, rgba(124,255,79,.12), transparent 68%); pointer-events:none; }
.hero-grid { display:grid; grid-template-columns:1.05fr .95fr; gap:64px; align-items:center; }
.hero h1 { font-size:clamp(52px, 8vw, 94px); max-width:760px; }
.hero h1 .accent { color:var(--if-green); }
.hero-copy { font-size:clamp(18px, 2vw, 21px); color:var(--if-static); max-width:650px; }
.hero-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:30px; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:48px; padding:0 20px; border-radius:12px; font-weight:800; font-size:13px; letter-spacing:.04em; text-transform:uppercase; transition:transform .18s ease, background .18s ease; }
.btn:hover { transform:translateY(-2px); }
.btn-primary { background:var(--if-green); color:var(--if-void); }
.btn-secondary { background:var(--if-surface); color:var(--if-cloud); border:1px solid var(--if-border); }

.hero-art { min-height:420px; position:relative; display:grid; place-items:center; }
.hero-panel { width:min(100%, 520px); aspect-ratio:1/1; background:linear-gradient(145deg, var(--if-surface), #0e1016); border:1px solid var(--if-border); border-radius:32px; box-shadow:var(--if-shadow); position:relative; overflow:hidden; }
.hero-panel::before { content:""; position:absolute; inset:18%; border:1px solid rgba(124,255,79,.15); border-radius:50%; transform:rotate(-18deg) skewX(-8deg); }
.hero-panel::after { content:""; position:absolute; width:180px; height:180px; border-radius:50%; background:radial-gradient(circle, rgba(124,92,255,.32), transparent 70%); right:-40px; bottom:-40px; }
.fork-symbol { position:absolute; inset:0; display:grid; place-items:center; }
.fork-symbol svg { width:48%; height:auto; filter:drop-shadow(0 0 30px rgba(124,255,79,.18)); }
.hero-badge { position:absolute; left:24px; bottom:24px; background:rgba(9,10,15,.86); border:1px solid var(--if-border); padding:10px 13px; border-radius:999px; font:800 11px/1 "Space Grotesk"; letter-spacing:.1em; text-transform:uppercase; }

.card-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.card { background:var(--if-surface); border:1px solid var(--if-border); border-radius:var(--if-radius); overflow:hidden; transition:transform .2s ease, border-color .2s ease; }
.card:hover { transform:translateY(-4px); border-color:rgba(124,255,79,.28); }
.card-media { aspect-ratio:16/10; background:linear-gradient(135deg,#1a1d26,#0f1117); display:grid; place-items:center; overflow:hidden; }
.card-media img { width:100%; height:100%; object-fit:cover; }
.card-placeholder { color:var(--if-static); font:800 12px/1 "Space Grotesk"; letter-spacing:.14em; text-transform:uppercase; }
.card-body { padding:22px; }
.card-meta { display:flex; align-items:center; gap:10px; color:var(--if-static); font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; margin-bottom:10px; }
.card h3 { font-size:23px; }
.card p { color:var(--if-static); }
.card-link { color:var(--if-green); font:800 12px/1 "Space Grotesk"; text-transform:uppercase; letter-spacing:.08em; }

.world-section { position:relative; }
.world-section.gear { background:linear-gradient(180deg, transparent, rgba(124,255,79,.025)); }
.world-section.fuel { background:linear-gradient(180deg, transparent, rgba(255,184,77,.035)); }
.world-section.lab { background:linear-gradient(180deg, transparent, rgba(124,92,255,.035)); }
.world-section.loadouts { background:linear-gradient(180deg, transparent, rgba(124,255,79,.025)); }
.world-tag { display:inline-flex; align-items:center; padding:6px 9px; border-radius:999px; background:rgba(124,255,79,.09); color:var(--if-green); font:800 11px/1 "Space Grotesk"; letter-spacing:.1em; }

.loadout-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.loadout-card { padding:28px; min-height:260px; background:var(--if-surface); border:1px solid var(--if-border); border-radius:var(--if-radius); display:flex; flex-direction:column; justify-content:space-between; }
.loadout-card:nth-child(2) { background:linear-gradient(145deg,var(--if-surface),rgba(124,92,255,.12)); }
.loadout-card:nth-child(3) { background:linear-gradient(145deg,var(--if-surface),rgba(255,184,77,.10)); }
.loadout-price { font:800 30px/1 "Space Grotesk"; }

.score-card { display:grid; grid-template-columns:auto 1fr; gap:28px; align-items:center; padding:30px; background:var(--if-surface); border:1px solid var(--if-border); border-radius:var(--if-radius); }
.score-number { font-size:64px; font-weight:800; color:var(--if-green); line-height:1; }
.score-label { font:800 12px/1 "Space Grotesk"; color:var(--if-static); letter-spacing:.12em; text-transform:uppercase; }
.score-bars { display:grid; gap:9px; }
.score-row { display:grid; grid-template-columns:130px 1fr 38px; gap:10px; align-items:center; font-size:12px; color:var(--if-static); }
.score-track { height:7px; border-radius:999px; background:#252833; overflow:hidden; }
.score-fill { height:100%; width:92%; background:var(--if-green); border-radius:inherit; }

.community { display:grid; grid-template-columns:1fr .9fr; gap:20px; }
.poll-card { padding:34px; background:linear-gradient(145deg,var(--if-surface),rgba(124,92,255,.10)); border:1px solid var(--if-border); border-radius:var(--if-radius); }
.poll-options { display:grid; gap:10px; margin-top:24px; }
.poll-option { display:flex; justify-content:space-between; align-items:center; padding:14px 16px; border:1px solid var(--if-border); border-radius:12px; background:rgba(9,10,15,.32); color:var(--if-cloud); }
.poll-option:hover { border-color:rgba(124,255,79,.35); }
.poll-count { color:var(--if-static); font-size:12px; }

.newsletter { padding:70px 0; }
.newsletter-box { padding:48px; border-radius:28px; background:var(--if-green); color:var(--if-void); display:grid; grid-template-columns:1fr auto; gap:30px; align-items:end; }
.newsletter h2 { font-size:clamp(34px,5vw,58px); }
.newsletter p { max-width:650px; font-size:18px; }
.newsletter .btn-secondary { background:var(--if-void); color:var(--if-cloud); border-color:var(--if-void); }

.site-footer { border-top:1px solid var(--if-border); padding:60px 0 100px; color:var(--if-static); }
.footer-grid { display:grid; grid-template-columns:1.2fr repeat(3,1fr); gap:40px; }
.footer-title { color:var(--if-cloud); font:800 14px/1 "Space Grotesk"; text-transform:uppercase; letter-spacing:.08em; margin-bottom:15px; }
.footer-links { list-style:none; padding:0; margin:0; display:grid; gap:8px; font-size:14px; }
.footer-links a:hover { color:var(--if-cloud); }
.footer-bottom { margin-top:50px; padding-top:20px; border-top:1px solid var(--if-border); font-size:12px; }

.entry-shell { padding:80px 0; }
.entry-content { max-width:820px; }
.entry-content > * { max-width:100%; }
.entry-title { font-size:clamp(42px,7vw,78px); }
.entry-meta { color:var(--if-static); margin-bottom:28px; }
.entry-content h2 { margin-top:1.8em; }
.entry-content a { color:var(--if-green); text-decoration:underline; text-underline-offset:3px; }

.mobile-bottom-nav { display:none; }
.screen-reader-text { position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

@media (max-width: 980px) {
  .main-nav { display:none; }
  .mobile-menu-toggle { display:inline-flex; }
  .header-actions .btn { display:none; }
  .hero-grid, .community { grid-template-columns:1fr; }
  .hero-art { min-height:360px; }
  .card-grid, .loadout-grid { grid-template-columns:repeat(2,1fr); }
  .footer-grid { grid-template-columns:repeat(2,1fr); }
  .newsletter-box { grid-template-columns:1fr; align-items:start; }
}

@media (max-width: 680px) {
  body { padding-bottom:76px; }
  body.admin-bar .site-header { top:46px; }
  .header-inner { min-height:66px; padding:0 18px; }
  .container { width:min(var(--if-max), calc(100% - 28px)); }
  .section { padding:66px 0; }
  .hero { padding:58px 0 44px; }
  .hero h1 { font-size:clamp(48px, 15vw, 68px); }
  .hero-art { min-height:280px; }
  .hero-panel { border-radius:24px; }
  .card-grid, .loadout-grid, .footer-grid { grid-template-columns:1fr; }
  .section-head { display:block; }
  .section-description { margin-top:12px; }
  .score-card { grid-template-columns:1fr; }
  .score-row { grid-template-columns:100px 1fr 32px; }
  .newsletter { padding:48px 0; }
  .newsletter-box { padding:32px 24px; }
  .mobile-bottom-nav { position:fixed; left:0; right:0; bottom:0; z-index:60; display:grid; grid-template-columns:repeat(5,1fr); background:rgba(9,10,15,.96); border-top:1px solid var(--if-border); backdrop-filter:blur(16px); padding:9px 8px calc(9px + env(safe-area-inset-bottom)); }
  .mobile-nav-item { display:grid; place-items:center; gap:4px; color:var(--if-static); font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }
  .mobile-nav-item.active, .mobile-nav-item:hover { color:var(--if-green); }
  .mobile-nav-icon { width:20px; height:20px; border:1px solid currentColor; border-radius:6px; opacity:.9; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior:auto !important; transition:none !important; }
}
/* v0.2 structured product */
.product-hero{display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center;padding:72px 0 56px}.product-deck{font-size:20px;color:var(--if-static);max-width:650px;line-height:1.65}.product-price{font-family:"Space Grotesk",sans-serif;font-size:28px;font-weight:700;margin:24px 0 18px}.product-visual{background:var(--if-surface);border:1px solid rgba(255,255,255,.1);border-radius:28px;overflow:hidden;min-height:420px;display:flex;align-items:center;justify-content:center}.product-visual img{width:100%;height:100%;object-fit:cover}.forks-panel{display:grid;grid-template-columns:240px 1fr;gap:48px;background:var(--if-surface);border:1px solid rgba(255,255,255,.1);border-radius:24px;padding:32px;margin:20px 0 56px}.forks-overall strong{display:block;font:700 84px/1 "Space Grotesk",sans-serif;color:var(--if-green);margin-top:12px}.forks-overall>span:last-child{color:var(--if-static)}.forks-bars{display:grid;gap:14px}.fork-row{display:grid;grid-template-columns:140px 1fr 36px;gap:14px;align-items:center;font-size:14px}.fork-row>div{height:8px;background:#242731;border-radius:999px;overflow:hidden}.fork-row i{display:block;height:100%;background:var(--if-green);border-radius:999px}.product-copy{max-width:820px;font-size:18px;line-height:1.8;margin:0 auto 56px}.pros-cons{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-bottom:72px}.pros-cons>div{background:var(--if-surface);border:1px solid rgba(255,255,255,.08);border-radius:20px;padding:28px}.pros-cons h2{font-size:28px;margin:8px 0 16px}.pros-cons p{white-space:normal;color:var(--if-static);line-height:1.8}@media(max-width:800px){.product-hero{grid-template-columns:1fr;gap:32px;padding:40px 0}.product-visual{min-height:280px}.forks-panel{grid-template-columns:1fr;gap:28px}.fork-row{grid-template-columns:110px 1fr 30px}.pros-cons{grid-template-columns:1fr}}

/* v0.3 product publishing system */
.product-intro{min-width:0}.product-chips{display:flex;flex-wrap:wrap;gap:8px;margin:22px 0}.product-chips span{border:1px solid rgba(124,255,79,.28);background:rgba(124,255,79,.06);color:var(--if-green);border-radius:999px;padding:7px 10px;font:700 11px/1 "Space Grotesk",sans-serif;letter-spacing:.08em;text-transform:uppercase}.product-buyline{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:24px 0 18px}.product-buyline .product-price{margin:0}.availability{color:var(--if-static);font-size:13px}.affiliate-note{font-size:12px;color:var(--if-static);margin:10px 0 0}.product-placeholder{width:100%;min-height:420px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:radial-gradient(circle at 65% 70%,rgba(124,92,255,.16),transparent 32%),radial-gradient(circle at 45% 38%,rgba(124,255,79,.10),transparent 30%),#0d0f15;text-align:center}.placeholder-fork{font:700 120px/1 "Space Grotesk",sans-serif;color:var(--if-green);filter:drop-shadow(0 0 28px rgba(124,255,79,.12));position:relative}.placeholder-fork span{font-size:52px;position:absolute;right:-26px;bottom:5px}.product-placeholder strong{margin-top:24px;font:700 14px/1 "Space Grotesk",sans-serif;letter-spacing:.18em}.product-placeholder small{margin-top:10px;color:var(--if-static);font-size:10px;letter-spacing:.14em}.forks-panel{grid-template-columns:270px 1fr;padding:38px 40px;align-items:center}.forks-overall strong{font-size:104px;letter-spacing:-.06em}.forks-denom{font-weight:700}.forks-overall em{display:block;margin-top:14px;color:var(--if-static);font-style:normal;font:700 10px/1 "Space Grotesk",sans-serif;letter-spacing:.16em}.forks-bars{gap:17px}.fork-row{grid-template-columns:150px 1fr 40px}.pros-cons ul{list-style:none;padding:0;margin:16px 0 0;display:grid;gap:11px;color:var(--if-static)}.pros-cons li{position:relative;padding-left:22px;line-height:1.55}.pros-cons li:before{content:"+";position:absolute;left:0;color:var(--if-green);font-weight:800}.pros-cons>div:last-child li:before{content:"–";color:var(--if-orange,#FFB84D)}
.review-product-link{display:grid;grid-template-columns:120px 1fr;gap:20px;align-items:center;background:var(--if-surface);border:1px solid rgba(255,255,255,.08);border-radius:18px;padding:18px;margin:32px 0}.review-product-link img{width:120px;height:90px;object-fit:cover;border-radius:12px}.review-product-link h3{margin:4px 0 8px}.review-product-link p{margin:0;color:var(--if-static)}
@media(max-width:800px){.product-placeholder{min-height:280px}.placeholder-fork{font-size:88px}.forks-panel{padding:28px 22px}.forks-overall strong{font-size:88px}.fork-row{grid-template-columns:105px 1fr 30px;gap:9px}.review-product-link{grid-template-columns:1fr}.review-product-link img{width:100%;height:180px}}

/* v0.4 editorial review system */
.review-shell .entry-article{max-width:1240px}.review-hero{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(340px,.85fr);gap:64px;align-items:center;padding:72px 0 48px}.review-hero .entry-title{max-width:800px}.review-hero-visual{min-height:360px;border:1px solid rgba(255,255,255,.1);border-radius:26px;overflow:hidden;background:var(--if-surface)}.review-hero-visual>img{display:block;width:100%;height:100%;min-height:360px;object-fit:cover}.product-placeholder.compact{min-height:360px}.product-placeholder.compact .placeholder-fork{font-size:90px}.review-meta-line{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:24px;color:var(--if-static);font-size:13px}.review-meta-line>*{padding-right:12px;border-right:1px solid rgba(255,255,255,.12)}.review-meta-line>*:last-child{border:0}.review-product-card{display:grid;grid-template-columns:150px 1fr;gap:24px;align-items:center;background:linear-gradient(135deg,rgba(124,255,79,.05),transparent 45%),var(--if-surface);border:1px solid rgba(255,255,255,.09);border-radius:22px;padding:22px;margin:0 0 56px}.review-product-media{width:150px;height:112px;border-radius:14px;overflow:hidden;background:#0d0f15;display:flex;align-items:center;justify-content:center}.review-product-media img{width:100%;height:100%;object-fit:cover}.review-product-media span{font:700 42px/1 "Space Grotesk",sans-serif;color:var(--if-green)}.review-product-card h3{font-size:26px;margin:5px 0 6px}.review-product-card p{color:var(--if-static);margin:0 0 10px}.review-body{font-size:19px;max-width:800px}.review-body p:first-child{font-size:21px;color:var(--if-cloud);line-height:1.75}.review-body h2{font-size:34px;margin-top:52px}.review-body h3{font-size:25px;margin-top:38px}.review-body a{color:var(--if-green);text-decoration:underline;text-underline-offset:4px}.review-pros-cons{margin-top:20px}.review-verdict{display:grid;grid-template-columns:1fr auto;gap:30px;align-items:end;background:linear-gradient(120deg,rgba(124,255,79,.08),rgba(124,92,255,.06)),var(--if-surface);border:1px solid rgba(124,255,79,.2);border-radius:24px;padding:34px 38px;margin:0 0 40px}.review-verdict .eyebrow{grid-column:1/-1}.review-verdict blockquote{font:600 28px/1.35 "Space Grotesk",sans-serif;margin:0;max-width:800px}.review-verdict>div:last-child{text-align:center}.review-verdict>div:last-child strong{display:block;font:700 64px/1 "Space Grotesk",sans-serif;color:var(--if-green)}.review-verdict>div:last-child span{font:700 10px/1 "Space Grotesk",sans-serif;letter-spacing:.16em}.review-buy{display:flex;justify-content:space-between;gap:32px;align-items:center;background:var(--if-surface);border:1px solid rgba(255,255,255,.09);border-radius:22px;padding:28px 32px;margin-bottom:64px}.review-buy h2{margin:6px 0 5px}.review-buy p{color:var(--if-static);font-size:12px;max-width:600px;margin:0}.related-reviews{padding:20px 0 72px}.related-reviews h2{font-size:36px}.related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.related-grid a{background:var(--if-surface);border:1px solid rgba(255,255,255,.08);border-radius:16px;padding:20px}.related-grid span{display:block;color:var(--if-green);font-size:10px;font-weight:800;letter-spacing:.14em;margin-bottom:8px}
@media(max-width:800px){.review-hero{grid-template-columns:1fr;gap:28px;padding:40px 0}.review-hero-visual,.review-hero-visual>img,.product-placeholder.compact{min-height:260px}.review-product-card{grid-template-columns:90px 1fr}.review-product-media{width:90px;height:90px}.review-verdict{grid-template-columns:1fr}.review-verdict>div:last-child{text-align:left}.review-buy{align-items:flex-start;flex-direction:column}.related-grid{grid-template-columns:1fr}.review-body{font-size:17px}}


/* v0.5 Editorial Publishing */
.story-shell{padding-top:0}.story-article{max-width:1240px}.story-hero{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(340px,.88fr);gap:64px;align-items:center;padding:76px 0 48px}.story-kicker{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:16px}.story-kicker .eyebrow{margin:0}.story-status{display:inline-flex;align-items:center;gap:7px;border:1px solid rgba(124,255,79,.24);background:rgba(124,255,79,.05);color:var(--if-green);border-radius:999px;padding:7px 10px;font:700 10px/1 "Space Grotesk",sans-serif;letter-spacing:.08em;text-transform:uppercase}.story-status:before{content:"●";font-size:7px}.story-dek{font-size:21px;line-height:1.6;color:var(--if-static);max-width:760px;margin:20px 0 0}.story-byline{display:flex;gap:12px;flex-wrap:wrap;color:var(--if-static);font-size:13px;margin-top:24px}.story-byline span+span:before{content:"/";margin-right:12px;color:rgba(255,255,255,.25)}.story-visual{min-height:390px;border:1px solid rgba(255,255,255,.1);border-radius:28px;overflow:hidden;background:var(--if-surface)}.story-visual img{width:100%;height:100%;min-height:390px;object-fit:cover;display:block}.story-visual .product-placeholder{min-height:390px}.story-product-card{display:grid;grid-template-columns:140px minmax(0,1fr) auto;gap:22px;align-items:center;background:linear-gradient(135deg,rgba(124,255,79,.06),transparent 45%),var(--if-surface);border:1px solid rgba(255,255,255,.09);border-radius:22px;padding:20px 22px;margin:0 0 58px}.story-product-media{width:140px;height:108px;border-radius:14px;overflow:hidden;background:#0d0f15;display:flex;align-items:center;justify-content:center}.story-product-media img{width:100%;height:100%;object-fit:cover}.story-product-media span{font:700 40px/1 "Space Grotesk",sans-serif;color:var(--if-green)}.story-product-card h2{font-size:25px;margin:5px 0 6px}.story-product-card p{color:var(--if-static);margin:0}.story-product-card .btn{white-space:nowrap}.story-body{max-width:790px;margin:0 auto;font-size:19px;line-height:1.82}.story-body>p:first-child{font-size:22px;line-height:1.7;color:var(--if-cloud)}.story-body h2{font-size:36px;margin:58px 0 18px}.story-body h3{font-size:27px;margin:42px 0 16px}.story-body blockquote{margin:40px 0;padding:6px 0 6px 28px;border-left:3px solid var(--if-green);font:600 25px/1.5 "Space Grotesk",sans-serif}.story-body a{color:var(--if-green);text-decoration:underline;text-underline-offset:4px}.story-body ul,.story-body ol{padding-left:24px}.story-body li{margin:9px 0}.story-note{max-width:790px;margin:48px auto 0;border-top:1px solid rgba(255,255,255,.1);padding-top:24px;color:var(--if-static);font-size:13px;line-height:1.7}.story-note strong{color:var(--if-cloud)}.product-coverage{padding:10px 0 68px}.product-coverage h2{font-size:32px}.product-coverage-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.product-coverage-grid a{background:var(--if-surface);border:1px solid rgba(255,255,255,.08);border-radius:16px;padding:20px}.product-coverage-grid span{display:block;color:var(--if-green);font-size:10px;font-weight:800;letter-spacing:.12em;margin-bottom:8px}
@media(max-width:800px){.story-hero{grid-template-columns:1fr;gap:30px;padding:42px 0 34px}.story-dek{font-size:18px}.story-visual,.story-visual img,.story-visual .product-placeholder{min-height:270px}.story-product-card{grid-template-columns:82px 1fr}.story-product-media{width:82px;height:82px}.story-product-card .btn{grid-column:1/-1;width:100%;text-align:center}.story-body{font-size:17px}.story-body>p:first-child{font-size:19px}.story-body h2{font-size:30px}.product-coverage-grid{grid-template-columns:1fr}}


/* v0.5.1 Editorial reading polish */
.story-reading-layout{max-width:1080px;margin:0 auto;display:grid;grid-template-columns:minmax(0,820px);justify-content:center;gap:56px;align-items:start}
.story-reading-layout.has-rail{max-width:1180px;grid-template-columns:minmax(0,800px) 300px;justify-content:stretch}
.story-main-column{min-width:0}
.story-body{max-width:none;margin:0;font-size:20px;line-height:1.9;letter-spacing:-.006em;color:rgba(245,245,242,.92)}
.story-body>p{margin:0 0 1.45em}
.story-body>p:first-child{font-size:22px;line-height:1.78;color:var(--if-cloud)}
.story-body h2{font-size:clamp(31px,3vw,40px);line-height:1.12;margin:72px 0 24px;padding-top:4px;letter-spacing:-.035em}
.story-body h2:before{content:"";display:block;width:42px;height:3px;background:var(--if-green);border-radius:99px;margin:0 0 18px}
.story-body h3{font-size:28px;margin:48px 0 18px}
.story-body strong{color:var(--if-cloud)}
.story-body blockquote{margin:46px 0;padding:10px 0 10px 28px;border-left:3px solid var(--if-green);font-size:26px;line-height:1.55}
.story-body ul,.story-body ol{margin:0 0 1.6em;padding-left:28px}
.story-body li{margin:12px 0}
.story-body hr{border:0;border-top:1px solid var(--if-border);margin:64px 0}
.story-note{max-width:none;margin:56px 0 0;padding:26px 28px;border:1px solid rgba(255,255,255,.09);border-left:3px solid var(--if-green);border-radius:0 16px 16px 0;background:rgba(255,255,255,.025);font-size:14px;line-height:1.75}
.story-rail{position:sticky;top:108px;display:grid;gap:16px}
.story-product-card.story-product-card-rail{display:block;margin:0;padding:18px;border-radius:20px}
.story-product-card-rail .story-product-media{width:100%;height:auto;aspect-ratio:16/10;margin-bottom:18px}
.story-product-card-rail .story-product-media span{font-size:54px}
.story-product-card-rail h2{font-size:22px;line-height:1.15;margin:7px 0 8px}
.story-product-card-rail p{font-size:13px;line-height:1.55;margin:0 0 16px}
.story-product-card-rail .btn{width:100%;min-height:44px}
.story-rail-note{padding:20px;border:1px solid rgba(255,255,255,.08);border-radius:18px;background:var(--if-surface)}
.story-rail-note strong{display:block;font:700 16px/1.3 "Space Grotesk",sans-serif;margin:8px 0 7px}
.story-rail-note p{margin:0;color:var(--if-static);font-size:12px;line-height:1.65}
/* A clean treatment for a final Sources heading/list made with ordinary Gutenberg blocks. */
.story-body h2:last-of-type + ul{padding:20px 24px 20px 44px;border:1px solid rgba(255,255,255,.08);border-radius:16px;background:var(--if-surface);font-size:15px;line-height:1.65}
.story-body h2:last-of-type + ul a{font-weight:700}
@media(max-width:980px){.story-reading-layout.has-rail{grid-template-columns:minmax(0,760px);justify-content:center}.story-rail{position:static;grid-row:1;margin-bottom:6px}.story-product-card.story-product-card-rail{display:grid;grid-template-columns:110px 1fr auto;gap:18px;align-items:center}.story-product-card-rail .story-product-media{width:110px;aspect-ratio:1/1;margin:0}.story-product-card-rail .btn{width:auto}.story-rail-note{display:none}}
@media(max-width:800px){.story-body{font-size:18px;line-height:1.82}.story-body>p:first-child{font-size:20px}.story-body h2{font-size:30px;margin-top:56px}.story-body h2:before{margin-bottom:14px}.story-note{margin-top:42px;padding:22px}.story-product-card.story-product-card-rail{grid-template-columns:82px 1fr}.story-product-card-rail .story-product-media{width:82px}.story-product-card-rail .btn{grid-column:1/-1;width:100%}}
@media(max-width:520px){.story-body{font-size:17px;line-height:1.8}.story-body>p:first-child{font-size:19px}.story-body h2{font-size:28px}.story-body blockquote{font-size:22px;padding-left:20px}.story-reading-layout{display:block}}


/* v0.5.2 Left-anchored editorial layout + visual breaks */
.story-reading-layout{max-width:1180px;margin:0;display:grid;grid-template-columns:minmax(0,740px);justify-content:start;gap:64px;align-items:start}
.story-reading-layout.has-rail{max-width:1180px;grid-template-columns:minmax(0,740px) 300px;justify-content:start}
.story-main-column{min-width:0}
.story-body{max-width:740px;margin:0;font-size:20px;line-height:1.9}
.story-body>p{margin:0 0 1.55em}
.story-body>p:first-child{font-size:22px;line-height:1.78}
.story-visual-break{margin:54px 0 62px;max-width:740px}
.story-visual-break-frame{position:relative;aspect-ratio:16/9;overflow:hidden;border:1px solid rgba(245,245,242,.12);border-radius:20px;background:radial-gradient(circle at 72% 34%,rgba(124,255,79,.10),transparent 27%),linear-gradient(145deg,#151821,#0d0f15);display:grid;place-items:center;box-shadow:0 22px 60px rgba(0,0,0,.16)}
.story-visual-break-frame:before{content:"";position:absolute;inset:18px;border:1px solid rgba(124,255,79,.08);border-radius:14px;pointer-events:none}
.story-visual-break-inner{position:relative;z-index:1;text-align:center;padding:28px}
.story-visual-break-mark{display:block;color:var(--if-green);font:700 clamp(42px,8vw,72px)/1 "Space Grotesk",sans-serif;text-shadow:0 0 34px rgba(124,255,79,.18);margin-bottom:16px}
.story-visual-break-label{display:block;color:var(--if-green);font:800 11px/1.2 "Space Grotesk",sans-serif;letter-spacing:.16em;text-transform:uppercase;margin-bottom:8px}
.story-visual-break-title{display:block;color:var(--if-cloud);font:700 clamp(18px,2.4vw,25px)/1.2 "Space Grotesk",sans-serif}
.story-visual-break-caption{margin:12px 4px 0;color:var(--if-static);font-size:12px;line-height:1.55}
.story-visual-break img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:20px;border:1px solid rgba(245,245,242,.12)}
@media(max-width:980px){.story-reading-layout,.story-reading-layout.has-rail{max-width:780px;margin:0 auto;grid-template-columns:minmax(0,1fr)}.story-body,.story-visual-break{max-width:none}.story-rail{grid-row:1}}
@media(max-width:800px){.story-reading-layout,.story-reading-layout.has-rail{margin:0}.story-visual-break{margin:42px 0 50px}.story-visual-break-frame{border-radius:16px}.story-visual-break-frame:before{inset:12px}.story-body{font-size:18px;line-height:1.82}}


/* v0.5.3 Magazine-scale visual breaks */
@media (min-width:981px){
  .story-reading-layout{grid-template-columns:minmax(0,820px)}
  .story-reading-layout.has-rail{grid-template-columns:minmax(0,820px) 300px;gap:60px}
  .story-main-column{overflow:visible}
  .story-body{max-width:700px}
  .story-visual-break{width:820px;max-width:none;margin:64px 0 72px}
  .story-visual-break-frame,.story-visual-break img{border-radius:22px}
}
.story-visual-break{position:relative}
.story-visual-break-frame,.story-visual-break img{box-shadow:0 26px 70px rgba(0,0,0,.24)}
.story-visual-break-caption{display:flex;gap:10px;align-items:baseline;justify-content:space-between;margin:14px 2px 0;padding-top:10px;border-top:1px solid rgba(245,245,242,.08);font-size:12px;line-height:1.55}
.story-visual-break-caption-text{color:var(--if-static)}
.story-visual-break-source{flex:0 0 auto;color:rgba(245,245,242,.58);font-size:10px;font-weight:700;letter-spacing:.10em;text-transform:uppercase}
@media(max-width:980px){.story-visual-break{width:auto;max-width:none}.story-visual-break-caption{display:block}.story-visual-break-source{display:block;margin-top:5px}}

/* v0.5.4 Media Library image support */
.story-visual-break-image{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:22px;border:1px solid rgba(245,245,242,.12);box-shadow:0 26px 70px rgba(0,0,0,.24)}
@media(max-width:800px){.story-visual-break-image{border-radius:16px}}

/* v0.5.6 Feature-width editorial plates */
@media (min-width:981px){
  .story-main-column{overflow:visible}
  .story-visual-break{
    /* Keep the plate anchored to the reading column, then let it consume
       the open editorial canvas to the right. On large displays it tops
       out at 1360px; on smaller desktops it preserves a safe right gutter. */
    width:min(1360px,calc(100vw - 330px));
    max-width:none;
    margin:78px 0 88px;
    z-index:1;
  }
  .story-visual-break-image,
  .story-visual-break-frame{
    width:100%;
    max-width:none;
  }
  .story-reading-layout.has-rail .story-visual-break{
    width:min(1360px,calc(100vw - 330px));
  }
  .story-reading-layout.has-rail .story-rail{z-index:0}
}
@media (min-width:981px) and (max-width:1180px){
  .story-visual-break,
  .story-reading-layout.has-rail .story-visual-break{
    width:calc(100vw - 330px);
  }
}
@media (max-width:980px){
  .story-visual-break,
  .story-reading-layout.has-rail .story-visual-break{
    width:auto;
    max-width:none;
  }
}


/* v0.5.8 Editorial Hero — headline first, cinematic feature image below */
.story-hero.story-hero-feature{display:block;padding:76px 0 56px}
.story-hero-copy{max-width:820px}
.story-hero-feature .entry-title{max-width:820px}
.story-visual.story-visual-feature{width:min(1360px,calc(100vw - 80px));max-width:none;aspect-ratio:16/9;min-height:0;margin:46px 0 0;border-radius:24px}
.story-visual.story-visual-feature img{display:block;width:100%;height:100%;min-height:0;aspect-ratio:16/9;object-fit:cover}
.story-visual.story-visual-feature .product-placeholder{min-height:0;height:100%;aspect-ratio:16/9}
@media(max-width:980px){.story-visual.story-visual-feature{width:100%;margin-top:36px}}
@media(max-width:800px){.story-hero.story-hero-feature{padding:42px 0 38px}.story-visual.story-visual-feature{width:100%;margin-top:30px;border-radius:18px}.story-visual.story-visual-feature img{aspect-ratio:16/9}.story-visual.story-visual-feature .product-placeholder{aspect-ratio:16/9}}


/* v0.6.0 Featured Product Module — prominent, reusable product callout */
.story-reading-layout,.story-reading-layout.has-rail{max-width:1180px;display:block;margin:0;overflow:visible}
.story-main-column{max-width:none;overflow:visible}
.story-product-inline{position:relative;width:min(1180px,calc(100vw - 80px));display:grid;grid-template-columns:300px minmax(0,1fr) auto;gap:34px;align-items:center;margin:0 0 52px;padding:26px 28px 26px 24px;overflow:hidden;border:1px solid rgba(124,255,79,.38);border-left:4px solid var(--if-green);border-radius:22px;background:linear-gradient(110deg,rgba(124,255,79,.10),rgba(18,20,27,.98) 35%,rgba(9,10,15,.98));box-shadow:0 22px 70px rgba(0,0,0,.24)}
.story-product-inline:before{content:"";position:absolute;left:-90px;top:-110px;width:390px;height:390px;border-radius:50%;background:radial-gradient(circle,rgba(124,255,79,.18),rgba(124,255,79,0) 68%);pointer-events:none}
.story-product-inline-media{position:relative;display:grid;place-items:center;width:300px;height:210px;overflow:hidden;border:0;border-radius:16px;background:rgba(9,10,15,.72);z-index:1}
.story-product-inline-media img{display:block;width:100%;height:100%;object-fit:contain;padding:12px}
.story-product-inline-media span{color:var(--if-green);font:700 54px/1 "Space Grotesk",sans-serif}
.story-product-inline-copy{position:relative;min-width:0;z-index:1}
.story-product-inline-copy .eyebrow{display:block;margin-bottom:10px;letter-spacing:.12em}
.story-product-inline-copy strong{display:block;max-width:620px;font:700 clamp(24px,2.3vw,38px)/1.08 "Space Grotesk",sans-serif}
.story-product-inline-copy strong a{color:var(--if-cloud);text-decoration:none}
.story-product-inline-copy strong a:hover{color:var(--if-green)}
.story-product-inline-copy small{display:block;margin-top:16px;color:var(--if-static);font-size:14px;line-height:1.5}
.story-product-inline-action{position:relative;z-index:1;white-space:nowrap;min-height:56px;padding:0 26px;background:var(--if-green);border-color:var(--if-green);color:var(--if-void);font-weight:800}
.story-product-inline-action:hover{filter:brightness(1.06);color:var(--if-void)}
@media(max-width:980px){.story-product-inline{width:100%;grid-template-columns:220px minmax(0,1fr);gap:24px;padding:22px}.story-product-inline-media{width:220px;height:170px}.story-product-inline-action{grid-column:2;width:max-content}}
@media(max-width:700px){.story-product-inline{grid-template-columns:1fr;gap:18px;margin-bottom:36px;padding:18px;border-radius:18px}.story-product-inline-media{width:100%;height:230px}.story-product-inline-copy strong{font-size:25px}.story-product-inline-action{grid-column:1;width:100%}}


/* v0.6.1 Product image fit — preserve complete product photography */
.story-product-inline-media{padding:14px;background:linear-gradient(135deg,rgba(124,255,79,.055),rgba(9,10,15,.92))}
.story-product-inline-media img{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center;padding:0}


/* v0.6.2 Featured Product image fix — square media well, never crop product assets */
.story-product-inline-media{width:260px;height:auto;aspect-ratio:1/1;padding:14px;overflow:hidden;align-self:center}
.story-product-inline-media img{display:block!important;width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center center!important;margin:auto}
@media(max-width:980px){.story-product-inline-media{width:210px;height:auto;aspect-ratio:1/1}}
@media(max-width:700px){.story-product-inline-media{width:100%;height:auto;aspect-ratio:1/1;max-height:320px}}


/* v0.6.3 — cache-busted stylesheet + definitive product image containment */
.story-product-inline-media{box-sizing:border-box;width:260px;aspect-ratio:1/1;height:auto!important;padding:14px;overflow:hidden;display:flex;align-items:center;justify-content:center}
.story-product-inline-media img{box-sizing:border-box;display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:contain!important;object-position:center center!important;padding:0!important;margin:0!important}
@media(max-width:980px){.story-product-inline-media{width:210px}}
@media(max-width:700px){.story-product-inline-media{width:100%;max-width:320px;margin-inline:auto}}


/* v0.6.4: opt-in editorial graphics; direct children of Story reading copy.
   Match the existing hero where it fits, then cap at the actual viewport
   space to the right of the centered 1240px container (20px gutters).
   No centering offsets, transforms or changes to ordinary reading copy. */
.story-shell .story-body > .itf-editorial-graphic {
  width:100%;
  max-width:none;
  min-width:0;
  margin-inline:0;
}
.story-shell .story-body > .itf-editorial-graphic > :where(:not(style)),
.story-shell .story-body > .itf-editorial-graphic > .wp-block-group__inner-container > :where(:not(style)) {
  max-width:100%;
  margin-inline:0;
}
.story-shell .story-body > .itf-editorial-graphic > .wp-block-group__inner-container {
  width:100%;
  max-width:none;
  min-width:0;
}
@media (min-width:981px) {
  .story-shell .story-body > .itf-editorial-graphic {
    width:min(1360px,calc(100vw - 80px),calc(100vw - max(20px,calc((100vw - var(--if-max)) / 2)) - 20px));
  }
}
