/*
Theme Name: NoDrillSmart
Theme URI: https://www.nodrillsmart.com
Author: NoDrillSmart
Description: A standalone custom WordPress theme for NoDrillSmart — smart-home products for renters, built for reviews, buying guides and blog content around a no-drill, damage-free brand promise. Converted from the Stage 2 static build; no page builder, Astra, or paid plugin required.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nodrillsmart
*/

/* ==========================================================================
   NoDrillSmart — Design System
   Ported unchanged from the Stage 2 static build (assets/css originally
   css/style.css). Brand: renter-friendly smart living, no drilling.
   Type: Sora (display) / IBM Plex Sans (body) / IBM Plex Mono (labels, data)
   ========================================================================== */

/* ==========================================================================
   NoDrillSmart — Design System
   Brand: renter-friendly smart living. No drilling, no damage, no drama.
   Type: Sora (display) / IBM Plex Sans (body) / IBM Plex Mono (labels, data)
   ========================================================================== */

:root{
  /* ---- Color tokens ---- */
  --ink:        #172227;   /* primary text / dark surfaces */
  --ink-70:     #172227b3;
  --paper:      #F3F4EF;   /* page background — warm, cool-leaning neutral */
  --surface:    #FFFFFF;   /* card surfaces */
  --surface-2:  #ECEEE6;   /* subtle recessed surface */
  --line:       #DBDACF;   /* hairline borders */
  --line-strong:#C7C6B8;

  --amber:      #E3A73C;   /* primary accent — "tape" — CTAs, highlights */
  --amber-ink:  #17130A;
  --amber-dark: #B87A18;   /* amber for backgrounds/outlines — meets 3:1 non-text contrast */
  --amber-text: #8C5F0E;   /* amber for small text/labels on light backgrounds — meets 4.5:1 */
  --teal:       #2E6E63;   /* secondary accent — "approved / safe" */
  --teal-dark:  #21504A;
  --teal-tint:  #E4EEEA;
  --coral:      #A8412D;   /* reserved: warnings / "requires drilling" flags — meets 4.5:1 on white and on --coral-tint */
  --coral-tint: #F5E7E2;

  /* ---- Type ---- */
  --font-display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-body: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* ---- Scale ---- */
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(23,34,39,0.06), 0 1px 1px rgba(23,34,39,0.04);
  --shadow-md: 0 8px 24px rgba(23,34,39,0.10);
  --shadow-lg: 0 20px 48px rgba(23,34,39,0.16);
  --maxw: 1200px;
}

/* ---- Reset ---- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
button{ font-family: inherit; cursor: pointer; }
h1,h2,h3,h4{
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1{ font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 700; letter-spacing: -0.02em; }
h2{ font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3{ font-size: 1.25rem; }
p{ margin: 0 0 1em; }
.container{ max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---- Focus states ---- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline: 3px solid var(--amber-dark);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
.skip-link{
  position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff;
  padding: 12px 18px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus{ left: 0; }

/* ---- Eyebrow / mono label ---- */
.eyebrow{
  font-family: var(--font-mono);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--teal-dark);
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-weight: 500;
}
.eyebrow::before{
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber);
  display: inline-block;
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header{
  position: sticky; top: 0; z-index: 100;
  background: rgba(243,244,239,0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--maxw); margin: 0 auto;
  gap: 20px;
}
.brand{
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  color: var(--ink); white-space: nowrap;
}
.brand .mark{ width: 34px; height: 34px; flex-shrink: 0; }
.brand .brand-name b{ color: var(--teal-dark); }

.main-nav{ display: flex; }
.main-nav ul{ display: flex; gap: 2px; align-items: center; }
.main-nav a{
  display: inline-block; padding: 10px 14px; font-size: .95rem; font-weight: 500;
  border-radius: var(--radius-sm); color: var(--ink);
}
.main-nav a:hover, .main-nav a[aria-current="page"]{ background: var(--surface-2); color: var(--teal-dark); }

.header-cta{ display: flex; align-items: center; gap: 10px; }
.nav-toggle{
  display: none; background: none; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 8px 10px;
}
.nav-toggle svg{ width: 22px; height: 22px; display: block; }

@media (max-width: 960px){
  .main-nav{
    position: fixed; inset: 0 0 0 auto; width: min(320px, 86vw); height: 100vh;
    background: var(--surface); border-left: 1px solid var(--line);
    transform: translateX(100%); transition: transform .28s ease;
    padding: 90px 22px 22px; box-shadow: var(--shadow-lg);
  }
  .main-nav.open{ transform: translateX(0); }
  .main-nav ul{ flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a{ padding: 13px 12px; font-size: 1.05rem; }
  .nav-toggle{ display: inline-flex; }
  .nav-scrim{
    position: fixed; inset: 0; background: rgba(23,34,39,.4); z-index: 90;
    opacity: 0; pointer-events: none; transition: opacity .28s ease;
  }
  .nav-scrim.open{ opacity: 1; pointer-events: auto; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-1px); }
.btn-primary{ background: var(--ink); color: #fff; }
.btn-primary:hover{ background: #0d1518; box-shadow: var(--shadow-md); }
.btn-secondary{ background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover{ background: var(--surface-2); }
.btn-amazon{ background: var(--ink); color: #fff; width: 100%; }
.btn-amazon:hover{ background: #0d1518; }
.btn-aliexpress{ background: var(--surface); color: var(--ink); border-color: var(--line-strong); width: 100%; }
.btn-aliexpress:hover{ background: var(--surface-2); }
.btn-block{ width: 100%; }
.btn-sm{ padding: 8px 16px; font-size: .85rem; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{ padding: 64px 0 40px; }
.hero-grid{
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
}
.hero-copy p.lead{ font-size: 1.1rem; color: var(--ink-70); max-width: 46ch; }
.hero-actions{ display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-badges{ display: flex; gap: 18px; flex-wrap: wrap; margin-top: 34px; }
.hero-badge{
  display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--ink-70);
  font-family: var(--font-mono);
}
.hero-badge svg{ width: 18px; height: 18px; color: var(--teal-dark); flex-shrink: 0; }
.hero-art{ position: relative; }
@media (max-width: 880px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-art{ order: -1; max-width: 420px; margin: 0 auto; }
}

/* ==========================================================================
   Sections / generic layout
   ========================================================================== */
section{ padding: 64px 0; }
.section-head{
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  margin-bottom: 32px; flex-wrap: wrap;
}
.section-head h2{ margin: 6px 0 0; }
.section-tight{ padding: 40px 0; }
.bg-surface{ background: var(--surface); }
.bg-ink{ background: var(--ink); color: #fff; }
.bg-ink .eyebrow{ color: var(--amber); }
.bg-ink h2{ color: #fff; }
.bg-ink p{ color: #ffffffb0; }
.bg-teal-tint{ background: var(--teal-tint); }

/* ---- Grids ---- */
.grid{ display: grid; gap: 24px; }
.grid-4{ grid-template-columns: repeat(4, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px){ .grid-4{ grid-template-columns: repeat(2, 1fr); } .grid-3{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px){ .grid-4, .grid-3, .grid-2{ grid-template-columns: 1fr; } }

/* ==========================================================================
   Peel Card — signature component
   A card that reads as a removable label/sticker: a folded corner peel and
   a dashed "no-drill" edge, echoing the site's core promise.
   ========================================================================== */
.peel-card{
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.peel-card:hover{ box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--line-strong); }
.peel-card::after{
  content: "";
  position: absolute; top: 0; right: 0; width: 26px; height: 26px;
  background: linear-gradient(135deg, transparent 50%, var(--paper) 50.5%);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  pointer-events: none;
}
.peel-card .peel-media{
  aspect-ratio: 4/3; background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.peel-card .peel-media svg{ width: 44%; height: 44%; color: var(--line-strong); }
.peel-card .peel-body{ padding: 20px; }
.peel-card h3{ margin-bottom: 6px; font-size: 1.08rem; }
.peel-card .peel-desc{ color: var(--ink-70); font-size: .93rem; margin-bottom: 14px; }

/* "Coming soon" placeholder variant — intentionally non-interactive */
.peel-card--soon{ cursor: default; opacity: 0.68; }
.peel-card--soon:hover{ transform: none; box-shadow: none; border-color: var(--line); }

/* Category-card variant */
.cat-card{ padding: 26px 22px; }
.cat-card .cat-icon{
  width: 46px; height: 46px; border-radius: var(--radius-sm);
  background: var(--teal-tint); color: var(--teal-dark);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.cat-card .cat-icon svg{ width: 24px; height: 24px; }
.cat-card p{ color: var(--ink-70); font-size: .92rem; margin-bottom: 14px; }
.cat-card .cat-link{ font-family: var(--font-mono); font-size: .8rem; font-weight: 500; color: var(--teal-dark); }

/* ---- No-drill badge (trust mark) ---- */
.nodrill-badge{
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 500;
  color: var(--teal-dark); background: var(--teal-tint);
  border: 1px solid #C4DAD2; border-radius: 999px; padding: 4px 10px 4px 6px;
  text-transform: uppercase; letter-spacing: .04em;
}
.nodrill-badge svg{ width: 15px; height: 15px; }
.badge-warning{ color: var(--coral); background: var(--coral-tint); border-color: #E7C6BC; }

/* ---- Placeholder tag ---- */
.demo-tag{
  font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em;
  background: var(--surface-2); color: var(--ink-70); border: 1px dashed var(--line-strong);
  padding: 3px 8px; border-radius: var(--radius-sm); display: inline-block;
}

/* ==========================================================================
   Product card (affiliate component)
   ========================================================================== */
.product-card{ display: flex; flex-direction: column; }
.product-card .price-row{
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px;
}
.product-card .price{ font-family: var(--font-mono); font-weight: 500; color: var(--ink-70); font-size: .9rem; }
.product-card .cta-row{ display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.best-for-tag{
  font-family: var(--font-mono); font-size: .72rem; color: var(--amber-text); font-weight: 500;
  text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; display: block;
}

/* ==========================================================================
   Philosophy strip (icon row)
   ========================================================================== */
.philosophy-grid{ display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
@media (max-width: 900px){ .philosophy-grid{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px){ .philosophy-grid{ grid-template-columns: repeat(2, 1fr); } }
.philosophy-item{
  text-align: center; padding: 22px 12px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-md);
}
.philosophy-item svg{ width: 30px; height: 30px; color: var(--teal-dark); margin-bottom: 10px; }
.philosophy-item span{ font-size: .85rem; font-weight: 500; display: block; }

/* ==========================================================================
   Article / blog cards
   ========================================================================== */
.article-card .peel-body{ display: flex; flex-direction: column; gap: 4px; }
.article-meta{ font-family: var(--font-mono); font-size: .72rem; color: var(--ink-70); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }

/* ==========================================================================
   Comparison table
   ========================================================================== */
.table-wrap{ overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
table.compare{ width: 100%; border-collapse: collapse; min-width: 720px; }
table.compare th, table.compare td{ padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: .92rem; vertical-align: top; }
table.compare thead th{ font-family: var(--font-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-70); background: var(--surface-2); }
table.compare tbody tr:last-child td{ border-bottom: none; }
table.compare tbody tr:hover{ background: var(--paper); }
table.compare td.product-cell{ font-weight: 600; font-family: var(--font-display); }
.yes-tag{ color: var(--teal-dark); font-weight: 600; }
.no-tag{ color: var(--coral); font-weight: 600; }

/* ==========================================================================
   Newsletter
   ========================================================================== */
.newsletter-box{
  background: var(--ink); color: #fff; border-radius: var(--radius-lg);
  padding: 44px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center;
}
@media (max-width: 780px){ .newsletter-box{ grid-template-columns: 1fr; padding: 30px 24px; } }
.newsletter-form{ display: flex; gap: 10px; }
@media (max-width: 460px){ .newsletter-form{ flex-direction: column; } .newsletter-form .btn{ width: 100%; } }
.newsletter-form input[type="email"]{
  flex: 1; padding: 13px 16px; border-radius: 999px; border: 1px solid #3a4b4f; background: #1F2C31; color: #fff; font-size: .95rem;
}
.newsletter-form input::placeholder{ color: #9fb0b3; }
.newsletter-form .btn-primary{ background: var(--amber); color: var(--amber-ink); }
.newsletter-form .btn-primary:hover{ background: var(--amber-dark); }
.form-note{ font-size: .78rem; color: #ffffff80; margin-top: 10px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{ background: var(--ink); color: #fff; padding: 60px 0 24px; margin-top: 40px; }
.footer-grid{ display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid #2b393e; }
@media (max-width: 880px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .footer-grid{ grid-template-columns: 1fr; } }
.footer-brand .brand{ color: #fff; margin-bottom: 12px; }
.footer-brand p{ color: #ffffff9c; font-size: .9rem; max-width: 32ch; }
.footer-col h4{ font-family: var(--font-mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: #ffffff9c; margin-bottom: 14px; font-weight: 500; }
.footer-col ul{ display: flex; flex-direction: column; gap: 9px; }
.footer-col a{ color: #ffffffd8; font-size: .9rem; }
.footer-col a:hover{ color: var(--amber); }
.footer-social{ display: flex; gap: 10px; margin-top: 8px; }
.footer-social a{ width: 34px; height: 34px; border: 1px solid #3a4b4f; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.footer-social svg{ width: 16px; height: 16px; }
.footer-bottom{ display: flex; justify-content: space-between; align-items: center; padding-top: 22px; flex-wrap: wrap; gap: 12px; }
.footer-bottom p{ color: #ffffff70; font-size: .8rem; margin: 0; }
.footer-legal{ display: flex; gap: 16px; flex-wrap: wrap; }
.footer-legal a{ color: #ffffff70; font-size: .8rem; }
.footer-legal a:hover{ color: #fff; }

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */
.breadcrumbs{ font-family: var(--font-mono); font-size: .78rem; color: var(--ink-70); padding: 18px 0 0; }
.breadcrumbs a{ color: var(--teal-dark); }
.breadcrumbs span{ margin: 0 6px; color: var(--line-strong); }

/* ==========================================================================
   Page header (category / hub pages)
   ========================================================================== */
.page-header{ padding: 30px 0 44px; border-bottom: 1px solid var(--line); }
.page-header h1{ margin-top: 10px; }
.page-header .lead{ max-width: 62ch; color: var(--ink-70); font-size: 1.05rem; }

/* ==========================================================================
   Trust / "Why" section list
   ========================================================================== */
.reason-list{ display: grid; gap: 20px; }
.reason-item{ display: flex; gap: 16px; align-items: flex-start; }
.reason-item .num{ font-family: var(--font-mono); color: var(--amber-text); font-weight: 600; font-size: .9rem; flex-shrink: 0; padding-top: 3px; }
.reason-item h3{ margin-bottom: 4px; font-size: 1.05rem; }
.reason-item p{ color: var(--ink-70); font-size: .93rem; margin: 0; }

/* ==========================================================================
   Review template
   ========================================================================== */
.review-hero{ display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
@media (max-width: 880px){ .review-hero{ grid-template-columns: 1fr; } }
.review-media{ background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-lg); aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; }
.review-media svg{ width: 34%; height: 34%; color: var(--line-strong); }
.verdict-box{ background: var(--teal-tint); border: 1px solid #C4DAD2; border-radius: var(--radius-md); padding: 20px; margin: 20px 0; }
.verdict-box h4{ margin: 0 0 6px; font-size: .95rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--teal-dark); }
.spec-list{ display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin: 18px 0; }
@media (max-width: 480px){ .spec-list{ grid-template-columns: 1fr; } }
.spec-list div{ display: flex; justify-content: space-between; font-size: .9rem; border-bottom: 1px dotted var(--line-strong); padding-bottom: 6px; }
.spec-list dt{ color: var(--ink-70); }
.spec-list dd{ margin: 0; font-weight: 600; font-family: var(--font-mono); font-size: .84rem; }
.proscons{ display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0; }
@media (max-width: 640px){ .proscons{ grid-template-columns: 1fr; } }
.proscons .box{ border-radius: var(--radius-md); padding: 20px; }
.proscons .pros{ background: var(--teal-tint); border: 1px solid #C4DAD2; }
.proscons .cons{ background: var(--coral-tint); border: 1px solid #E7C6BC; }
.proscons h4{ margin: 0 0 10px; font-size: .95rem; }
.proscons li{ font-size: .9rem; padding: 4px 0; padding-left: 20px; position: relative; }
.proscons .pros li::before{ content: "+"; position: absolute; left: 0; color: var(--teal-dark); font-weight: 700; }
.proscons .cons li::before{ content: "–"; position: absolute; left: 0; color: var(--coral); font-weight: 700; }
.video-embed{
  aspect-ratio: 16/9; background: var(--ink); border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; color: #ffffffb0; margin: 24px 0;
  font-family: var(--font-mono); font-size: .85rem; text-align: center; gap: 10px; flex-direction: column;
}
.video-embed svg{ width: 40px; height: 40px; }
.faq-item{ border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq-item summary{ cursor: pointer; font-weight: 600; font-family: var(--font-display); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary::after{ content: "+"; font-size: 1.3rem; color: var(--amber-dark); }
.faq-item[open] summary::after{ content: "\2212"; }
.faq-item p{ margin-top: 10px; color: var(--ink-70); font-size: .93rem; }

/* ==========================================================================
   Buying guide template
   ========================================================================== */
.guide-layout{ display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 880px){ .guide-layout{ grid-template-columns: 1fr; } }
.guide-toc{ background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 22px; }
@media (max-width: 880px){ .guide-toc{ order: -1; } }
.guide-toc h4{ font-family: var(--font-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; color: var(--ink-70); }
.guide-toc ol{ counter-reset: toc; display: flex; flex-direction: column; gap: 8px; }
.guide-toc li{ counter-increment: toc; font-size: .92rem; }
.guide-toc li a{ color: var(--ink); }
.guide-toc li a:hover{ color: var(--teal-dark); }
.pick-card{ display: grid; grid-template-columns: .55fr 1fr; gap: 24px; padding: 26px; align-items: start; }
@media (max-width: 720px){ .pick-card{ grid-template-columns: 1fr; } }
.pick-label{
  font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--amber-text); font-weight: 600; margin-bottom: 8px; display: block;
}
.disclosure-note{
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 18px; font-size: .85rem; color: var(--ink-70);
}

/* ==========================================================================
   Prose (blog / legal pages)
   ========================================================================== */
.prose{ max-width: 74ch; }
.prose h2{ margin-top: 2em; }
.prose h3{ margin-top: 1.6em; }
.prose p, .prose li{ color: var(--ink-70); font-size: 1.02rem; }
.prose ul, .prose ol{ margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li{ margin-bottom: .4em; }
.prose blockquote{
  margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--amber);
  font-style: italic; color: var(--ink);
}

/* ==========================================================================
   Forms
   ========================================================================== */
.form-field{ margin-bottom: 18px; }
.form-field label{ display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea{
  width: 100%; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .95rem; background: var(--surface); color: var(--ink);
}
.form-field textarea{ min-height: 140px; resize: vertical; }
.form-hint{ font-size: .78rem; color: var(--ink-70); margin-top: 4px; }
.contact-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 780px){ .contact-grid{ grid-template-columns: 1fr; } }

/* ==========================================================================
   Misc utilities
   ========================================================================== */
.mt-0{ margin-top: 0; } .mb-0{ margin-bottom: 0; }
.text-center{ text-align: center; }
.stack{ display: flex; flex-direction: column; gap: 10px; }
.pill-nav{ display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0; }
.pill-nav a{
  font-family: var(--font-mono); font-size: .8rem; padding: 7px 14px; border: 1px solid var(--line-strong);
  border-radius: 999px; color: var(--ink);
}
.pill-nav a[aria-current="page"], .pill-nav a:hover{ background: var(--ink); color: #fff; border-color: var(--ink); }

.back-to-top{
  position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transition: opacity .2s ease;
  border: none; z-index: 80;
}
.back-to-top.show{ opacity: 1; pointer-events: auto; }

.search-box{ display: flex; gap: 10px; max-width: 560px; }
.search-box input{ flex: 1; padding: 13px 16px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .95rem; }
@media (max-width: 460px){ .search-box{ flex-direction: column; } .search-box .btn{ width: 100%; } }
.search-results-meta{ font-family: var(--font-mono); font-size: .82rem; color: var(--ink-70); margin-bottom: 20px; }

.error-page{ padding: 100px 0; text-align: center; }
.error-page .code{ font-family: var(--font-mono); font-size: 5rem; color: var(--line-strong); font-weight: 700; }

/* ==========================================================================
   WordPress core compatibility
   ========================================================================== */
.screen-reader-text{
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px,1px,1px,1px); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.screen-reader-text:focus{
  position: fixed !important; top: 10px; left: 10px; width: auto; height: auto;
  clip: auto; padding: 12px 18px; background: var(--ink); color: #fff; z-index: 999999;
  border-radius: var(--radius-sm);
}
.alignwide{ margin-left: calc(50% - 45vw); margin-right: calc(50% - 45vw); max-width: 1100px; }
.alignfull{ margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: none; }
.wp-caption, .wp-block-image{ max-width: 100%; }
.wp-caption-text{ font-size: .82rem; color: var(--ink-70); margin-top: 6px; }

/* Native WP search form (used in search.php / header search link target) */
.wp-search-form{ display: flex; gap: 10px; max-width: 560px; }
.wp-search-form input[type="search"]{ flex: 1; padding: 13px 16px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .95rem; }
@media (max-width: 460px){ .wp-search-form{ flex-direction: column; } .wp-search-form .btn{ width: 100%; } }

/* Pagination (WP the_posts_pagination / next/prev) */
.nds-pagination{ display: flex; gap: 8px; flex-wrap: wrap; margin-top: 40px; }
.nds-pagination a, .nds-pagination span{
  font-family: var(--font-mono); font-size: .85rem; padding: 8px 14px; border: 1px solid var(--line-strong);
  border-radius: 999px; color: var(--ink);
}
.nds-pagination .current{ background: var(--ink); color: #fff; border-color: var(--ink); }
.nds-pagination a:hover{ background: var(--surface-2); }

/* Comments (kept minimal — comments are not a core focus of this theme) */
.comments-area{ margin-top: 48px; max-width: 74ch; }
.comment-list{ list-style: none; margin: 0; padding: 0; }
.comment-list li{ border-top: 1px solid var(--line); padding: 18px 0; }
.comment-respond input, .comment-respond textarea{
  width: 100%; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .95rem; margin-bottom: 12px;
}
.comment-respond textarea{ min-height: 120px; }

/* Featured image on single review/guide/post */
.nds-featured-image{ border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.nds-featured-image img{ width: 100%; height: 100%; object-fit: cover; display: block; }

/* Author admin notice bar (theme-provisioned content) */
.nds-admin-note{
  background: #FFF6E5; border: 1px dashed var(--amber-dark); border-radius: var(--radius-sm);
  padding: 12px 16px; font-family: var(--font-mono); font-size: .82rem; color: var(--ink); margin-bottom: 20px;
}
