/* =========================================================
   Laptop Repair World Guides — Apple-style editorial system
   Adapted from Anthropic design handoff for DIY publication.
   White canvas · Inter · massive tiles · zero commercial fluff
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Surfaces — Apple-style white canvas, LRW navy for emphasis tiles */
  --bg: #ffffff;
  --bg-soft: #fbfbfd;
  --bg-alt: #f5f5f7;
  --bg-dark: #0a0f2e;       /* LRW navy */
  --bg-black: #0a0f2e;      /* navy used where Apple uses pure black */

  /* Ink — Apple-like dark text, but pulled toward navy */
  --ink: #0a0f2e;           /* LRW navy as body ink */
  --ink-2: #2b3055;
  --ink-3: #6b7a99;         /* LRW gray */
  --ink-4: #94a3b8;
  --ink-on-dark: #f5f5f7;
  --ink-on-dark-2: rgba(255,255,255,0.72);

  /* Lines */
  --line: #d2d2d7;
  --line-2: #e8e8ed;
  --line-soft: #f0f0f3;

  /* Accent — LRW brand blue for links + cyan for highlights + orange for one CTA */
  --link: #1a3de4;          /* LRW blue */
  --link-hover: #2d50e8;
  --brand-navy: #0a0f2e;
  --brand-cyan: #00d4ff;
  --brand-orange: #ff5c1a;

  /* Type */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
  --fs-mega: clamp(3rem, 8vw, 5.6rem);
  --fs-h1: clamp(2.4rem, 5.5vw, 4.2rem);
  --fs-h2: clamp(1.9rem, 3.6vw, 3rem);
  --fs-h3: clamp(1.3rem, 2vw, 1.6rem);
  --fs-lead: clamp(1.12rem, 1.6vw, 1.35rem);
  --fs-body: 17px;
  --fs-sm: 14px;
  --fs-xs: 12px;

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 22px;
  --r-2xl: 28px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.6, 1);
  --t-fast: 200ms;
  --t-med: 400ms;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.47;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
input, select, textarea { font: inherit; color: inherit; outline: 0; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5 {
  font-family: var(--font); font-weight: 600;
  line-height: 1.06; letter-spacing: -0.025em; color: var(--ink);
}
p { line-height: 1.55; color: var(--ink-2); }
::selection { background: rgba(0,102,204,0.18); }

/* =========================================================
   Layout
   ========================================================= */
.container { width: 100%; max-width: 1024px; margin: 0 auto; padding: 0 22px; }
.container-wide { width: 100%; max-width: 1366px; margin: 0 auto; padding: 0 22px; }
@media (max-width: 640px) {
  .container, .container-wide { padding: 0 16px; }
}

/* Tile — Apple's signature centered section */
.tile { padding: 90px 0 100px; text-align: center; position: relative; }
.tile-sm { padding: 64px 0; }
.tile-tight { padding: 56px 0 64px; }
.tile.dark { background: var(--bg-black); color: var(--ink-on-dark); }
.tile.dark h1, .tile.dark h2, .tile.dark h3, .tile.dark h4 { color: #fff; }
.tile.dark p { color: var(--ink-on-dark-2); }
.tile.gray { background: var(--bg-alt); }
.tile.soft { background: var(--bg-soft); }

.tile h2 {
  font-size: var(--fs-mega); font-weight: 600;
  letter-spacing: -0.035em; line-height: 1.05;
  max-width: 18ch; margin: 0 auto;
}
.tile h2.tight { letter-spacing: -0.045em; }
.tile .lede {
  font-size: var(--fs-lead); font-weight: 500;
  color: var(--ink-2); margin-top: 12px;
  max-width: 38ch; line-height: 1.3;
  margin-left: auto; margin-right: auto;
  letter-spacing: -0.005em;
}
.tile.dark .lede { color: rgba(255,255,255,0.75); }
.tile p.tile-body {
  font-size: var(--fs-body); color: var(--ink-2);
  margin-top: 20px; max-width: 56ch;
  margin-left: auto; margin-right: auto;
}
.tile-links {
  margin-top: 22px; display: inline-flex;
  align-items: center; gap: 24px; flex-wrap: wrap; justify-content: center;
}

/* =========================================================
   Apple-style links + buttons
   ========================================================= */
.alink {
  color: var(--link); font-size: 1rem; font-weight: 400;
  display: inline-flex; align-items: center; gap: 4px;
  transition: color var(--t-fast);
}
.alink:hover { color: var(--link-hover); }
.alink::after {
  content: '›'; font-size: 1.3rem; line-height: 0.5;
  margin-left: 2px; margin-top: 2px;
}
.tile.dark .alink { color: #5eb6ff; }
.tile.dark .alink:hover { color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 22px; border-radius: 980px;
  font-size: 0.95rem; font-weight: 400;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
  white-space: nowrap;
}
.btn-pill { background: var(--link); color: #fff; }
.btn-pill:hover { background: var(--link-hover); color: #fff; }
.btn-pill-light { background: #fff; color: var(--ink); }
.btn-pill-light:hover { background: var(--bg-alt); color: var(--ink); }
.btn-pill-outline { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn-pill-outline:hover { background: var(--bg-alt); }
.btn-pill-outline-dark { background: transparent; border: 1px solid rgba(255,255,255,0.45); color: #fff; }
.btn-pill-outline-dark:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

/* Single brand-orange button reserved for ONE pro-help CTA at end of page */
.btn-orange { background: var(--brand-orange); color: #fff; }
.btn-orange:hover { background: #e5500f; color: #fff; }

/* =========================================================
   Top strip — slim trust bar above main nav (hours + phone)
   ========================================================= */
.top-strip {
  background: var(--brand-navy);
  color: rgba(255,255,255,0.78);
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.top-strip-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 8px 22px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.top-strip-left, .top-strip-right {
  display: inline-flex; align-items: center; gap: 18px;
  flex-wrap: wrap;
}
.top-strip i { color: var(--brand-cyan); margin-right: 6px; font-size: 0.85rem; }
.top-strip a { color: #fff; font-weight: 500; transition: color var(--t-fast); }
.top-strip a:hover { color: var(--brand-cyan); }
.top-strip .ts-help { color: rgba(255,255,255,0.65); }
.top-strip .ts-wa {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 10px; border-radius: 999px;
  background: rgba(37,211,102,0.15); color: #25d366;
  font-weight: 600; font-size: 12px;
}
.top-strip .ts-wa:hover { background: rgba(37,211,102,0.25); color: #25d366; }
@media (max-width: 760px) {
  .top-strip-inner { padding: 6px 14px; gap: 8px; font-size: 12px; }
  .top-strip-left, .top-strip-right { gap: 10px; }
  .top-strip-left .ts-hours { display: none; }   /* hide hours, keep phone */
  .top-strip-right .ts-loc { display: none; }    /* hide location text on mobile */
}

/* =========================================================
   Sub-nav — categories strip below main nav (white bg)
   ========================================================= */
.subnav {
  background: #fff;
  border-bottom: 1px solid var(--line-2);
  position: sticky; top: 76px; z-index: 90;
}
.subnav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px;
  gap: 16px;
}
.subnav-left {
  display: flex; align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1; min-width: 0;
}
.subnav-left::-webkit-scrollbar { display: none; }
.subnav-hours {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--ink-3); font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}
.subnav-hours i { font-size: 0.85rem; opacity: 0.65; }
@media (max-width: 700px) {
  .subnav-hours { display: none; }   /* hours hidden in subnav on phones — already in hamburger menu */
}
.subnav-left a, .subnav-inner a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 14px;
  font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
  letter-spacing: -0.005em;
}
.subnav-left a:hover, .subnav-inner a:hover { color: var(--link); }
.subnav-left a.active, .subnav-inner a.active { color: var(--link); border-bottom-color: var(--link); }
.subnav-left a i, .subnav-inner a i { font-size: 0.92rem; opacity: 0.75; }
@media (max-width: 1100px) {
  .subnav { top: 68px; }
}
@media (max-width: 900px) {
  .subnav { display: none; }    /* mobile: categories live in hamburger menu */
}

/* =========================================================
   Top bar — DARK NAVY, Apple-thin, LRW logo + "Guides" cyan pill
   ========================================================= */
.topbar {
  position: sticky; top: 0; z-index: 200;       /* always above mobile-nav overlay */
  background: rgba(10,15,46,0.97);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  isolation: isolate;                            /* clean stacking context */
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; max-width: 1280px;
  margin: 0 auto; padding: 0 22px;
  font-size: 13px;
  gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 17px; font-weight: 600;
  letter-spacing: -0.015em; color: #fff;
  font-family: 'Inter', sans-serif;
  min-width: 0;       /* let flex shrink */
}
.brand:hover { color: #fff; }
.brand-logo {
  width: 54px; height: 54px; flex-shrink: 0;
  filter: brightness(0) invert(1);
}
.brand-name {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; line-height: 1;
  white-space: nowrap;
  min-width: 0;
}
.brand-name > .brand-text { white-space: nowrap; }
.brand-pill {
  display: inline-flex; align-items: center;
  padding: 4px 10px;
  background: rgba(0,212,255,0.18); color: var(--brand-cyan);
  border-radius: 6px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  flex-shrink: 0;
}
@media (max-width: 1100px) {
  .nav { height: 68px; }
  .brand { font-size: 15px; gap: 10px; }
  .brand-logo { width: 46px; height: 46px; }
}
/* MOBILE NAV — clean, no wrapping */
@media (max-width: 760px) {
  .nav { height: 60px; padding: 0 16px; gap: 12px; }
  .brand-logo { width: 38px; height: 38px; }
  .brand { gap: 9px; }
  .brand-name > .brand-text { display: none; }     /* hide wordmark on mobile — just logo + pill */
  .brand-pill {
    background: rgba(0,212,255,0.20);
    color: var(--brand-cyan);
    padding: 4px 10px;
    font-size: 11px;
  }
  .hamburger {
    width: 44px; height: 44px;     /* full touch target */
    font-size: 1.1rem;
  }
}
@media (max-width: 380px) {
  .brand-logo { width: 34px; height: 34px; }
  .brand-pill { padding: 3px 8px; font-size: 10px; }
}
.nav-links {
  display: flex; align-items: center; gap: 2px;
}
.nav-links > li > a, .nav-links > li > button {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 14px; font-size: 13px; font-weight: 400;
  color: rgba(255,255,255,0.75); border-radius: 6px;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-links > li > a:hover, .nav-links > li > button:hover {
  color: #fff; background: rgba(255,255,255,0.06);
}
.nav-links > li > a.active {
  color: #fff; font-weight: 500;
  background: rgba(0,212,255,0.10);    /* cyan tint for current page */
}

.nav-cta-stack {
  display: inline-flex; flex-direction: column; align-items: flex-end;
  gap: 4px;
}
.nav-cta-group {
  display: inline-flex; align-items: center; gap: 8px;
}
.nav-hours {
  font-size: 11px; color: rgba(255,255,255,0.55);
  font-weight: 500; letter-spacing: 0;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}
.nav-hours i { margin-right: 4px; opacity: 0.65; font-size: 0.78rem; }
@media (max-width: 480px) {
  .nav-hours { display: none; }   /* hide hours on smallest screens */
}
.nav-cta-call, .nav-cta-wa {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600;
  transition: transform var(--t-fast), background var(--t-fast);
}
.nav-cta-call {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.14);
}
.nav-cta-call:hover { background: rgba(255,255,255,0.14); color: #fff; transform: translateY(-1px); }
.nav-cta-wa {
  background: #25d366;
  color: #fff;
}
.nav-cta-wa:hover { background: #20bd5b; color: #fff; transform: translateY(-1px); }
.nav-cta-call i, .nav-cta-wa i { font-size: 0.9rem; }
@media (max-width: 900px) {
  .nav-cta-group .nav-cta-call .label { display: none; }
  .nav-cta-group .nav-cta-wa .label { display: none; }
  .nav-cta-call, .nav-cta-wa { padding: 8px 12px; }
}
@media (max-width: 768px) {
  /* Mobile: hide topbar Call + WhatsApp — they live in the sticky bottom CTA bar.
     Topbar shrinks to brand + hamburger only. */
  .nav-cta-call, .nav-cta-wa { display: none; }
}

.nav-search-mini {
  position: relative;
  margin-left: 8px;
}
.nav-search-mini input {
  padding: 7px 14px 7px 32px;
  border: 1px solid rgba(255,255,255,0.10); border-radius: 999px;
  font-size: 13px; background: rgba(255,255,255,0.06);
  color: #fff;
  width: 220px;
  transition: border-color 0.2s, background 0.2s, width 0.3s;
}
.nav-search-mini input::placeholder { color: rgba(255,255,255,0.45); }
.nav-search-mini input:focus {
  border-color: var(--brand-cyan); background: rgba(255,255,255,0.10);
  width: 280px;
}
.nav-search-mini i {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,0.55); font-size: 0.78rem;
}
.hamburger { color: #fff; }
.hamburger:hover { background: rgba(255,255,255,0.06); }

.hamburger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 8px;
  align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.15rem;
  transition: background var(--t-fast);
}
.hamburger:hover, .hamburger:focus-visible { background: rgba(255,255,255,0.08); outline: none; }
.hamburger:active { background: rgba(255,255,255,0.14); }

/* Mobile nav overlay — dark navy full screen, topbar floats above */
.mobile-nav {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10,15,46,0.98);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  z-index: 95;                 /* below topbar (z:100) so hamburger stays clickable */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  height: 100vh;
  height: 100dvh;              /* dynamic viewport — accounts for iOS Safari URL bar */
  padding: 80px 0 60px;        /* clear the topbar above */
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.mobile-nav.open {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}
.mobile-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 22px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background var(--t-fast), color var(--t-fast);
}
.mobile-nav a:hover, .mobile-nav a:focus-visible {
  background: rgba(255,255,255,0.06); color: var(--brand-cyan); outline: none;
}
.mobile-nav a::after {
  content: '›'; opacity: 0.45; font-size: 1.1rem; line-height: 1;
}
/* Lock body scroll when mobile nav is open */
body.mobile-nav-locked { overflow: hidden; }

/* =========================================================
   MOBILE STICKY CTA BAR — Call Now (orange) + WhatsApp (green)
   Fixed bottom of viewport, ≤768px only. Injected via guides.js.
   Mirror of the LRW main-site pattern.
   ========================================================= */
.mobile-cta-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: none;
  grid-template-columns: 1fr 1fr;
  background: var(--ink, #0a0f2e);
  border-top: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 -6px 18px rgba(0,0,0,0.35);
  padding: 8px 10px env(safe-area-inset-bottom, 8px);
  gap: 8px;
}
.mobile-cta-bar a {
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 13px 12px;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 700; font-size: 0.95rem;
  text-decoration: none;
  min-height: 44px;
  letter-spacing: -0.005em;
}
.mobile-cta-bar .mob-cta-wa   { background: #25d366; color: #fff; }
.mobile-cta-bar .mob-cta-call { background: var(--brand-orange, #ff5c1a); color: #fff; }
.mobile-cta-bar a:active     { transform: scale(0.98); filter: brightness(0.92); }
@media (max-width: 768px) {
  .mobile-cta-bar { display: grid; }
  body { padding-bottom: 76px; }
}

@media (max-width: 900px) {
  .nav-links, .nav-search-mini { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 760px) {
  .mobile-nav { padding: 72px 0 60px; }     /* tighter clearance for shorter mobile nav */
}
@media (max-width: 380px) {
  .mobile-nav a { padding: 14px 18px; font-size: 14px; }
}

/* =========================================================
   Hero — editorial, search-led
   ========================================================= */
.hero {
  padding: clamp(80px, 14vw, 160px) 0 clamp(64px, 10vw, 120px);
  text-align: center;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}
.hero-eyebrow {
  display: inline-block; font-size: 13px; font-weight: 500;
  color: var(--ink-3); letter-spacing: 0;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: var(--fs-mega); font-weight: 600;
  letter-spacing: -0.045em; line-height: 1.02;
  max-width: 18ch; margin: 0 auto 22px;
}
.hero h1 em {
  font-style: normal;
  color: var(--brand-orange);
  display: inline-block;
  white-space: nowrap;
}
.hero h1 em.hl-blue { color: var(--link); }     /* LRW blue variant */
.hero h1 em.hl-navy { color: var(--brand-navy); }
.hero h1 .hl-orange-inline { color: var(--brand-orange); }
.hero h1 .hl-blue-inline { color: var(--link); }
.hero .lede {
  font-size: var(--fs-lead); font-weight: 500;
  color: var(--ink-2); max-width: 40ch;
  margin: 0 auto 36px;
  line-height: 1.35; letter-spacing: -0.005em;
}
.hero-search-wrap {
  max-width: 560px; margin: 0 auto;
  position: relative;
}
.hero-search-wrap input {
  width: 100%; padding: 18px 24px 18px 56px;
  border: 1px solid var(--line); border-radius: 999px;
  font-family: inherit; font-size: 16px;
  background: var(--bg);
  box-shadow: 0 2px 14px rgba(0,0,0,0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.hero-search-wrap input:focus {
  border-color: var(--link);
  box-shadow: 0 0 0 4px rgba(0,102,204,0.10);
}
.hero-search-wrap i {
  position: absolute; left: 24px; top: 50%; transform: translateY(-50%);
  color: var(--ink-3); font-size: 1.05rem;
}
.hero-search-hint {
  margin-top: 14px; font-size: 13px; color: var(--ink-3);
}
.hero-search-hint a {
  color: var(--link); margin: 0 8px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.hero-search-hint a:hover { border-bottom-color: var(--link); }

/* Live search dropdown */
.search-results {
  position: absolute;
  top: calc(100% + 8px); left: 0; right: 0;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: 0 18px 50px rgba(0,0,0,0.10);
  max-height: 460px; overflow-y: auto;
  z-index: 80;
  text-align: left;
  -webkit-overflow-scrolling: touch;
}
.search-results[hidden] { display: none; }
.search-result-item {
  display: block;
  padding: 14px 20px;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
  transition: background var(--t-fast);
}
.search-result-item:last-child { border-bottom: 0; }
.search-result-item:hover, .search-result-item.is-focused {
  background: var(--bg-soft);
  color: var(--ink);
}
.sr-cat {
  display: inline-block;
  font-size: 11px; font-weight: 500;
  color: var(--link); letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.sr-title {
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  line-height: 1.3; color: var(--ink);
  margin-bottom: 2px;
}
.sr-title mark {
  background: rgba(255,92,26,0.18);
  color: var(--brand-orange);
  padding: 0 2px; border-radius: 3px;
}
.sr-excerpt {
  font-size: 12.5px; color: var(--ink-3);
  line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
  overflow: hidden;
}
.sr-empty {
  padding: 22px 20px; color: var(--ink-3);
  font-size: 14px; text-align: center;
}
.sr-empty strong { color: var(--ink); font-weight: 600; }

/* =========================================================
   Categories — Apple-style cards grid
   ========================================================= */
.categories {
  padding: clamp(56px, 8vw, 96px) 0;
  background: var(--bg-soft);
}
.section-eyebrow {
  text-align: center; font-size: 13px; font-weight: 500;
  color: var(--ink-3); margin-bottom: 8px;
}
.section-h {
  text-align: center; font-size: var(--fs-h2); font-weight: 600;
  letter-spacing: -0.035em; line-height: 1.08;
  margin-bottom: 16px;
}
.section-lede {
  text-align: center; font-size: var(--fs-lead);
  color: var(--ink-2); max-width: 44ch;
  margin: 0 auto 56px; line-height: 1.4; font-weight: 500;
  letter-spacing: -0.005em;
}
.cat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 1180px; margin: 0 auto;
}
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: 1fr; } }
.cat-card {
  background: var(--bg); border-radius: var(--r-xl);
  padding: 36px 32px;
  text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column;
  border: 1px solid var(--line-2);
  transition: transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
  position: relative; overflow: hidden;
  min-height: 240px;
}
.cat-card:hover {
  transform: scale(1.015);
  box-shadow: 0 22px 60px rgba(0,0,0,0.06);
  color: var(--ink);
}
.cat-card .cat-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(26,61,228,0.10); color: var(--link);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 24px;
}
.cat-card h3 {
  font-size: clamp(1.2rem, 1.7vw, 1.5rem); font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.15;
  margin-bottom: 10px;
}
.cat-card p {
  font-size: 14px; color: var(--ink-3);
  line-height: 1.45; flex: 1;
}
.cat-card-foot {
  margin-top: 22px;
  display: flex; align-items: center; justify-content: space-between;
}
.cat-card-count {
  font-size: 12px; font-weight: 500; color: var(--ink-3);
  letter-spacing: 0;
}
.cat-card-arrow {
  font-size: 14px; color: var(--link);
  transition: transform var(--t-fast);
}
.cat-card:hover .cat-card-arrow { transform: translateX(4px); }

/* =========================================================
   Featured / article grid
   ========================================================= */
.featured {
  padding: clamp(56px, 8vw, 96px) 0;
  background: var(--bg);
}
.article-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1180px; margin: 0 auto;
}
@media (max-width: 900px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .article-grid { grid-template-columns: 1fr; } }
.article-card {
  text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform var(--t-fast) var(--ease);
}
.article-card:hover { transform: translateY(-2px); color: var(--ink); }
.article-card-img {
  aspect-ratio: 16/10;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--bg-alt) 0%, #e8eef9 100%);
  overflow: hidden; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.article-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.article-card:hover .article-card-img img { transform: scale(1.04); }
.article-card-img i {
  font-size: 2.4rem; color: var(--ink-4); opacity: 0.55;
}
.article-card-cat {
  font-size: 12px; font-weight: 500;
  color: var(--link); letter-spacing: 0.02em;
  text-transform: uppercase;
}
.article-card h3 {
  font-size: 1.15rem; font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.25;
  color: var(--ink);
}
.article-card-excerpt {
  font-size: 14px; color: var(--ink-3);
  line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card-meta {
  display: flex; gap: 14px;
  font-size: 12px; color: var(--ink-4);
  align-items: center;
}
.article-card-meta i { font-size: 11px; opacity: 0.7; margin-right: 4px; }

/* =========================================================
   Popular this week — list style on dark tile
   ========================================================= */
.popular-list {
  max-width: 720px; margin: 32px auto 0;
  display: flex; flex-direction: column; gap: 0;
}
.popular-item {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 20px; align-items: center;
  padding: 18px 0;
  text-decoration: none; color: var(--ink-on-dark);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  transition: opacity var(--t-fast);
}
.popular-item:hover { opacity: 0.7; color: var(--ink-on-dark); }
.popular-item:last-child { border-bottom: 0; }
.popular-num {
  font-size: 1.6rem; font-weight: 600;
  letter-spacing: -0.04em; color: rgba(255,255,255,0.45);
  text-align: right;
}
.popular-text { text-align: left; }
.popular-text h4 {
  font-size: 1.05rem; font-weight: 500;
  color: #fff; letter-spacing: -0.015em;
  line-height: 1.3; margin-bottom: 4px;
}
.popular-text .meta {
  font-size: 12px; color: rgba(255,255,255,0.5);
}
.popular-arrow {
  font-size: 1rem; color: rgba(255,255,255,0.45);
  transition: transform var(--t-fast), color var(--t-fast);
}
.popular-item:hover .popular-arrow {
  transform: translateX(3px); color: rgba(255,255,255,0.85);
}

/* =========================================================
   About tile — short editorial mission
   ========================================================= */
.about-tile p.tile-body {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-2); line-height: 1.55;
  max-width: 50ch;
}

/* =========================================================
   Pro-help CTA — soft funnel to LRW (single commercial mention)
   ========================================================= */
.pro-help {
  padding: clamp(64px, 9vw, 110px) 0;
  background: var(--bg-alt);
  text-align: center;
}
.pro-help h2 {
  font-size: var(--fs-h2); font-weight: 600;
  letter-spacing: -0.035em; max-width: 22ch;
  margin: 0 auto 16px;
}
.pro-help p {
  font-size: var(--fs-lead); color: var(--ink-2);
  max-width: 44ch; margin: 0 auto 32px;
  line-height: 1.4; letter-spacing: -0.005em;
}
.pro-help-actions {
  display: inline-flex; align-items: center; gap: 24px;
  flex-wrap: wrap; justify-content: center;
}

/* =========================================================
   Article page — reading mode
   ========================================================= */
.article-hero {
  padding: 80px 0 24px;
  background: var(--bg);
}
.article-hero .container { max-width: 720px; }
.article-breadcrumb {
  font-size: 13px; color: var(--ink-3);
  margin-bottom: 18px;
}
.article-breadcrumb a { color: var(--ink-3); transition: color 0.2s; }
.article-breadcrumb a:hover { color: var(--link); }
.article-breadcrumb span { margin: 0 6px; opacity: 0.5; }
.article-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 500;
  color: var(--link); letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.article-title {
  font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 600;
  letter-spacing: -0.04em; line-height: 1.08;
  margin-bottom: 22px; color: var(--ink);
}
.article-meta-row {
  display: flex; gap: 22px;
  font-size: 13px; color: var(--ink-3);
  align-items: center; flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-2);
  margin-bottom: 36px;
}
.article-meta-row i { font-size: 12px; margin-right: 5px; opacity: 0.7; }

.article-body { padding: 0 0 56px; background: var(--bg); }
.article-body-inner { max-width: 720px; margin: 0 auto; padding: 0 22px; }
.article-featured-img {
  width: 100%; max-height: 480px; object-fit: cover;
  border-radius: var(--r-lg); margin-bottom: 40px; display: block;
}
.article-body-inner h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem); font-weight: 600;
  letter-spacing: -0.025em; line-height: 1.18;
  margin: 48px 0 18px;
}
.article-body-inner h3 {
  font-size: clamp(1.18rem, 1.9vw, 1.4rem); font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.22;
  margin: 36px 0 14px;
}
.article-body-inner p {
  font-size: 1.06rem; line-height: 1.7;
  color: var(--ink-2); margin: 0 0 22px;
}
.article-body-inner p strong { color: var(--ink); font-weight: 600; }
.article-body-inner a {
  color: var(--link);
  border-bottom: 1px solid rgba(0,102,204,0.25);
  transition: border-color 0.2s;
}
.article-body-inner a:hover {
  color: var(--link-hover); border-bottom-color: var(--link);
}
.article-body-inner ul, .article-body-inner ol {
  font-size: 1.04rem; line-height: 1.7; color: var(--ink-2);
  padding-left: 26px; margin: 0 0 22px;
}
.article-body-inner ul li { list-style: disc; }
.article-body-inner ol li { list-style: decimal; }
.article-body-inner li { margin-bottom: 8px; }
.article-body-inner img {
  max-width: 100%; height: auto;
  border-radius: 10px; margin: 28px 0; display: block;
}
.article-body-inner figure { margin: 32px 0; }
.article-body-inner figcaption {
  font-size: 13px; color: var(--ink-3);
  text-align: center; margin-top: 10px;
}
.article-body-inner pre, .article-body-inner code {
  background: var(--bg-alt); border-radius: 8px;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.92em;
}
.article-body-inner code { padding: 2px 6px; }
.article-body-inner pre {
  padding: 16px 22px; overflow-x: auto;
  margin: 24px 0; line-height: 1.55;
}
.article-body-inner blockquote {
  border-left: 3px solid var(--link);
  padding: 4px 0 4px 22px; margin: 32px 0;
  color: var(--ink-2); font-style: italic;
}
.article-body-inner table {
  width: 100%; border-collapse: collapse;
  margin: 28px 0; font-size: 0.96rem;
}
.article-body-inner th, .article-body-inner td {
  padding: 12px 16px; border: 1px solid var(--line-2);
  text-align: left;
}
.article-body-inner th {
  background: var(--bg-soft); font-weight: 600; color: var(--ink);
}

/* AdSense slots — flush with article body. Empty until AdSense approved. */
.ad-slot {
  min-height: 0;
  margin: 32px 0;
  text-align: center;
}
.ad-slot:empty, .ad-slot:not(:has(ins)) { display: none; }
.ad-slot ins.adsbygoogle { display: block; min-height: 90px; }
.ad-slot-incontent { margin: 36px 0; }
.ad-slot-end { margin: 44px 0 0; padding-top: 36px; border-top: 1px solid var(--line-2); }

/* Step-by-step HowTo style */
.howto-step {
  background: var(--bg-soft); border-radius: var(--r-lg);
  padding: 28px 30px; margin: 28px 0;
  border-left: 3px solid var(--link);
}
.howto-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--link); color: #fff; font-weight: 600;
  font-size: 0.95rem; margin-right: 14px;
}
.howto-step h4 {
  display: inline-block; font-size: 1.15rem;
  font-weight: 600; letter-spacing: -0.02em;
  color: var(--ink); vertical-align: middle;
}
.howto-step p { margin-top: 14px; }

/* =========================================================
   Category page
   ========================================================= */
.cat-page-hero {
  padding: 88px 0 40px; background: var(--bg-soft);
  text-align: center;
}
.cat-page-hero .cat-page-eyebrow {
  font-size: 13px; font-weight: 500; color: var(--ink-3);
  margin-bottom: 12px;
}
.cat-page-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 600;
  letter-spacing: -0.045em; line-height: 1.02;
  margin-bottom: 14px;
}
.cat-page-hero p {
  font-size: var(--fs-lead); color: var(--ink-2);
  max-width: 42ch; margin: 0 auto;
  line-height: 1.35; letter-spacing: -0.005em;
}
.cat-page-articles {
  padding: 64px 0 96px;
}

/* =========================================================
   Footer — LRW canonical, dark
   ========================================================= */
.site-footer {
  background: var(--bg-black); color: rgba(255,255,255,0.6);
  padding: 56px 0 0;
}
.site-footer .container { max-width: 1180px; padding: 0 22px; }
.footer-publisher {
  text-align: center; padding: 8px 0 32px;
  font-size: 14px; color: rgba(255,255,255,0.55);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  margin-bottom: 36px; line-height: 1.5;
}
.footer-publisher strong { color: #fff; font-weight: 600; }
.footer-publisher a { color: #5eb6ff; }
.footer-publisher a:hover { color: #fff; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px; padding-bottom: 36px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h5 {
  color: #fff; font-size: 13px; font-weight: 600;
  margin: 0 0 18px; letter-spacing: 0;
  font-family: var(--font);
}
.footer-col p, .footer-col ul, .footer-col li {
  font-size: 13px; line-height: 1.7;
  color: rgba(255,255,255,0.55);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 4px; }
.footer-col a { color: rgba(255,255,255,0.55); transition: color var(--t-fast); }
.footer-col a:hover { color: #fff; }
.footer-col i { width: 16px; opacity: 0.55; margin-right: 6px; }
.footer-logo { width: 56px; height: 56px; margin-bottom: 16px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding: 22px 0;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 14px;
  font-size: 12px; color: rgba(255,255,255,0.4);
}
.footer-bottom a {
  color: rgba(255,255,255,0.4); margin-left: 18px;
  transition: color var(--t-fast);
}
.footer-bottom a:hover { color: rgba(255,255,255,0.85); }

/* =========================================================
   Misc
   ========================================================= */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--link); color: #fff; padding: 12px 16px;
  font-weight: 700; z-index: 1000;
}
.skip-link:focus { left: 16px; top: 16px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* =========================================================
   MOBILE RESPONSIVE — comprehensive sweep
   ========================================================= */
@media (max-width: 760px) {
  body { font-size: 16px; }

  /* Hero — tighter padding, smaller headline */
  .hero { padding: 56px 0 48px; }
  .hero-eyebrow { font-size: 12px; margin-bottom: 12px; }
  .hero h1 { font-size: clamp(2.1rem, 9vw, 3rem); margin-bottom: 16px; }
  .hero .lede { font-size: 1rem; margin-bottom: 24px; }
  .hero-search-wrap input { padding: 14px 18px 14px 48px; font-size: 15px; }
  .hero-search-wrap i { left: 18px; }
  .hero-search-hint { font-size: 12px; }
  .hero-search-hint a { display: inline-block; margin: 4px 6px; }

  /* Tiles — compress padding */
  .tile { padding: 56px 0 64px; }
  .tile-sm { padding: 44px 0; }
  .tile h2 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .tile .lede { font-size: 1rem; }

  /* Section headers */
  .section-h { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .section-lede { font-size: 1rem; margin-bottom: 36px; }

  /* Categories */
  .categories { padding: 48px 0 56px; }
  .cat-card { padding: 28px 24px; min-height: 200px; }
  .cat-card h3 { font-size: 1.25rem; }
  .cat-card p { font-size: 13.5px; }

  /* Featured */
  .featured { padding: 48px 0 56px; }
  .article-grid { gap: 28px; }
  .article-card h3 { font-size: 1.1rem; }

  /* Popular dark tile */
  .popular-item { grid-template-columns: 32px 1fr auto; gap: 14px; padding: 16px 0; }
  .popular-num { font-size: 1.4rem; }
  .popular-text h4 { font-size: 1rem; }

  /* Pro-help */
  .pro-help { padding: 56px 0 64px; }
  .pro-help h2 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .pro-help p { font-size: 1rem; margin-bottom: 24px; }
  .pro-help-actions { flex-direction: column; gap: 14px; }
  .pro-help-actions .btn { width: 100%; max-width: 320px; }

  /* Article hero */
  .article-hero { padding: 48px 0 16px; }
  .article-hero .container { padding: 0 16px; }
  .article-title { font-size: clamp(1.7rem, 7vw, 2.4rem); }
  .article-meta-row { gap: 16px; font-size: 12px; padding-bottom: 22px; margin-bottom: 28px; }

  /* Article body — comfortable mobile reading */
  .article-body { padding: 0 0 40px; }
  .article-body-inner { padding: 0 16px; }
  .article-body-inner h2 { font-size: 1.4rem; margin: 32px 0 14px; }
  .article-body-inner h3 { font-size: 1.18rem; margin: 26px 0 12px; }
  .article-body-inner p { font-size: 1rem; line-height: 1.65; margin-bottom: 18px; }
  .article-body-inner ul, .article-body-inner ol { font-size: 1rem; padding-left: 22px; }
  .article-featured-img { margin-bottom: 28px; max-height: 280px; }
  .howto-step { padding: 22px 20px; margin: 22px 0; }
  .howto-step h4 { font-size: 1.05rem; }
  .howto-step-num { width: 28px; height: 28px; font-size: 0.85rem; margin-right: 10px; }

  /* Category page */
  .cat-page-hero { padding: 56px 0 28px; }
  .cat-page-hero h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .cat-page-articles { padding: 40px 0 56px; }

  /* Footer */
  .site-footer { padding: 40px 0 0; margin-top: 40px; }
  .footer-publisher { font-size: 13px; padding: 0 0 24px; margin-bottom: 28px; }
  .footer-grid { gap: 24px; padding-bottom: 28px; }
  .footer-col h5 { margin-bottom: 12px; }
  .footer-bottom { padding: 18px 0; font-size: 11.5px; flex-direction: column; align-items: flex-start; }
  .footer-bottom a { margin-left: 0; margin-right: 14px; }
}
@media (max-width: 480px) {
  .container, .container-wide { padding: 0 14px; }
  .hero h1 { font-size: clamp(1.8rem, 9vw, 2.4rem); }
  .tile h2, .section-h { font-size: clamp(1.6rem, 8vw, 2rem); }
  .article-title { font-size: clamp(1.55rem, 8vw, 2.1rem); }
  .cat-grid { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .nav { padding: 0 12px; gap: 8px; }
  .brand { font-size: 13px; }
  .brand-logo { width: 36px; height: 36px; }
}
/* No horizontal scroll anywhere — use `clip` instead of `hidden` so position:sticky keeps working on iOS Safari */
html { overflow-x: clip; }
body { overflow-x: clip; }
img, video, iframe, table { max-width: 100%; }
.article-body-inner pre { max-width: 100%; }
