/* ============================================
   ThinkEngine.tech — Design tokens
   Theme: blueprint paper + workshop tool colors
   ============================================ */
:root {
  --paper: #EEF3F5;
  --paper-line: rgba(31, 42, 51, 0.06);
  --ink: #1F2A33;
  --ink-muted: #5B6B76;
  --card: #FFFFFF;
  --border: #D7E0E3;
  --accent: #E8622C;      /* tool-handle orange, primary action */
  --accent-dark: #C94E1E;
  --brass: #A9762F;       /* brass/copper, secondary accent */
  --easy: #2F8F5B;
  --medium: #C9862E;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Work Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--paper-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--paper-line) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--ink);
  line-height: 1.6;
}

a { color: inherit; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ---------- Header ---------- */
.site-header {
  background: rgba(238, 243, 245, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  color: var(--ink);
}

.logo-mark {
  display: inline-flex;
  color: var(--accent);
  width: 22px;
  height: 22px;
}
.logo-mark svg { width: 100%; height: 100%; }

.logo-dot { color: var(--ink-muted); font-weight: 500; }

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  text-decoration: none;
  color: var(--ink-muted);
  font-weight: 500;
  font-size: 14px;
  transition: color 0.15s ease;
}
.nav a:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 64px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--brass);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 48px;
  line-height: 1.08;
  margin-bottom: 20px;
  max-width: 640px;
}

.hero-sub {
  font-size: 17px;
  color: var(--ink-muted);
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #FFFFFF;
  padding: 13px 26px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }

.btn-secondary {
  display: inline-block;
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 2px;
}

.link-arrow {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.link-arrow:hover { color: var(--accent-dark); border-color: var(--accent); }

/* Signature dimension-line element */
.dimension-line {
  max-width: 600px;
  color: var(--brass);
}
.dimension-line svg { width: 100%; height: 24px; display: block; }
.dimension-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-top: 6px;
}

/* ---------- Sections ---------- */
section { padding: 56px 0; }

.section-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--brass);
  font-weight: 500;
  margin-right: 10px;
  vertical-align: middle;
}

section h2 {
  font-size: 26px;
  margin-bottom: 16px;
}

.section-lead {
  color: var(--ink-muted);
  max-width: 560px;
  margin-bottom: 32px;
  font-size: 15px;
}

/* ---------- Grids & cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 22px;
}

.cat-card .icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  color: var(--accent);
  margin-bottom: 14px;
}
.cat-card .icon svg { width: 100%; height: 100%; }

.cat-card h3 { font-size: 17px; margin-bottom: 8px; }
.cat-card p { font-size: 14px; color: var(--ink-muted); }

/* ---------- Toolbox section ---------- */
.taller { background: rgba(255,255,255,0.4); }

.tool-card { display: flex; flex-direction: column; }

.tool-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--brass);
  margin-bottom: 10px;
}

.tool-card h3 { font-size: 15px; margin-bottom: 8px; }
.tool-card p {
  font-size: 13.5px;
  color: var(--ink-muted);
  margin-bottom: 16px;
  flex-grow: 1;
}

.disclosure {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-top: 28px;
  border-left: 2px solid var(--border);
  padding-left: 12px;
}

/* ---------- Guides ---------- */
.guide-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 3px;
  color: #FFFFFF;
}
.tag-easy { background: var(--easy); }
.tag-medium { background: var(--medium); }

.tag-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}

.guide-card h3 { font-size: 17px; margin-bottom: 8px; }
.guide-card p {
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 16px;
}

.section-footer-link { margin-top: 24px; }

/* ---------- Newsletter ---------- */
.notecard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 40px;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  text-align: center;
}

.notecard-pin {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.notecard h2 { margin-bottom: 10px; }
.notecard p { color: var(--ink-muted); font-size: 14px; margin-bottom: 24px; }

.newsletter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input {
  flex: 1;
  min-width: 200px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 14px;
}
.newsletter-form input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.5);
  padding: 48px 0 20px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-logo { margin-bottom: 10px; }
.footer-col p { color: var(--ink-muted); font-size: 13.5px; max-width: 280px; }

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--brass);
  margin-bottom: 12px;
  font-weight: 500;
}

.footer-col a {
  display: block;
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 14px;
  margin-bottom: 8px;
}
.footer-col a:hover { color: var(--accent-dark); }

.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  margin-bottom: 0;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  font-size: 12.5px;
  color: var(--ink-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 16px;
  }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ============================================
   Guide article pages
   ============================================ */
.breadcrumb {
  display: inline-block;
  font-size: 13.5px;
  color: var(--ink-muted);
  text-decoration: none;
  margin-bottom: 22px;
}
.breadcrumb:hover { color: var(--accent-dark); }

.guide-hero { padding: 40px 0 20px; }

.guide-hero .guide-meta { margin-bottom: 16px; }

.guide-hero h1 {
  font-size: 34px;
  line-height: 1.15;
  max-width: 720px;
  margin-bottom: 14px;
}

.guide-hero .guide-dek {
  font-size: 16px;
  color: var(--ink-muted);
  max-width: 620px;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  gap: 40px;
  align-items: start;
  padding: 24px 0 72px;
}

.guide-body h2 {
  font-size: 20px;
  margin: 32px 0 12px;
}
.guide-body h2:first-child { margin-top: 0; }

.guide-body p { margin-bottom: 14px; color: var(--ink); font-size: 15.5px; }

.step-list {
  list-style: none;
  counter-reset: step;
  margin: 20px 0;
}
.step-list li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  margin-bottom: 20px;
}
.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-list strong { display: block; margin-bottom: 4px; font-size: 15.5px; }
.step-list p { margin-bottom: 0; color: var(--ink-muted); font-size: 14.5px; }

.callout {
  border-left: 3px solid var(--medium);
  background: rgba(201, 134, 46, 0.08);
  padding: 14px 18px;
  border-radius: 0 4px 4px 0;
  margin: 24px 0;
  font-size: 14.5px;
}
.callout strong { display: block; margin-bottom: 4px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--medium); }

.callout.danger {
  border-left-color: var(--accent-dark);
  background: rgba(201, 78, 30, 0.08);
}
.callout.danger strong { color: var(--accent-dark); }

.sidebar-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
  position: sticky;
  top: 90px;
}
.sidebar-card h3 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--brass);
  margin-bottom: 14px;
  font-weight: 500;
}
.sidebar-card ul {
  list-style: none;
  margin-bottom: 18px;
}
.sidebar-card ul li {
  font-size: 14px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}
.sidebar-card ul li:last-child { border-bottom: none; }
.sidebar-card .btn-secondary { display: block; text-align: center; margin-top: 4px; }

.photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--paper);
  margin: 4px 0 24px;
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-frame.missing {
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: repeating-linear-gradient(45deg, var(--border) 0, var(--border) 1px, transparent 1px, transparent 12px);
}
.photo-missing-msg {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  text-align: center;
  padding: 0 20px;
  line-height: 1.6;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 16px;
}

.diagram-frame {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px 24px 14px;
  margin: 22px 0 28px;
}
.diagram-frame svg { width: 100%; height: auto; display: block; }
.diagram-caption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  margin-top: 8px;
  text-align: center;
}

.archive-list { margin-top: 24px; }
.archive-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--ink);
}
.archive-row:hover .archive-title { color: var(--accent-dark); }
.archive-row .archive-title { font-weight: 600; font-size: 15.5px; }
.archive-row .archive-excerpt { font-size: 13.5px; color: var(--ink-muted); }

@media (max-width: 768px) {
  .guide-layout { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
  .guide-hero h1 { font-size: 26px; }
}


/* ============================================================
   v2 additions — pictures, video, affiliate boxes, ads, forms
   (appended; everything above this line is the original design)
   ============================================================ */

[hidden] { display: none !important; }

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  padding: 11px 18px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.btn-ghost:hover { border-color: #fff; }

/* ---------- Hero with photo ---------- */
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero-photo {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px;
  transform: rotate(1.4deg);
  box-shadow: 0 22px 40px -28px rgba(31, 42, 51, 0.45);
}
.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 3px;
}
.hero-photo figcaption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  padding: 10px 4px 2px;
}

/* ---------- Category cards that are links ---------- */
a.cat-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
a.cat-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.cat-count {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brass);
}

/* ---------- Guide cards with a picture ---------- */
.guide-card.has-thumb {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.guide-card .thumb { display: block; background: var(--paper); }
.guide-card .thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}
.guide-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.guide-card-body p { flex: 1; }
.tag-cat {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brass);
  margin-left: auto;
}

/* ---------- Guide page: cover + step pictures ---------- */
.guide-cover,
.step-figure {
  margin: 4px 0 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.guide-cover img,
.step-figure img { display: block; width: 100%; height: auto; }
.guide-cover figcaption,
.step-figure figcaption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  padding: 8px 12px;
  border-top: 1px solid var(--border);
}
.step-list li .step-figure { margin: 12px 0 4px; }

/* ---------- Video ---------- */
.video-block { margin: 8px 0 28px; }
.yt {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #10181d;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.yt-btn {
  all: unset;
  cursor: pointer;
  position: absolute;
  inset: 0;
  display: block;
}
.yt-btn img, .yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.yt-btn img { opacity: 0.92; }
.yt-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 68px; height: 48px;
  background: var(--accent);
  border-radius: 12px;
  transition: background 0.15s ease;
}
.play::after {
  content: '';
  position: absolute;
  left: 27px; top: 13px;
  border-left: 18px solid #fff;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}
.yt-btn:hover .play, .video-card:hover .play { background: var(--accent-dark); }

.video-strip .video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.video-card { text-decoration: none; color: inherit; display: block; }
.video-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #10181d;
  border: 1px solid var(--border);
  margin-bottom: 10px;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-card strong { font-family: var(--font-display); font-size: 15px; line-height: 1.3; }
.video-card:hover strong { color: var(--accent-dark); }

/* ---------- Shopping list in the sidebar ---------- */
.aff-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.aff-link {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  white-space: nowrap;
}
.aff-link:hover { color: var(--accent); }
.aff-note {
  font-size: 12px;
  color: var(--ink-muted);
  margin: -6px 0 16px;
}
.aff-note a { color: inherit; }

/* ---------- Ads ---------- */
.ad-slot { margin: 28px 0; min-height: 90px; text-align: center; }
.ad-slot::before {
  content: 'PUBLICIDAD';
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

/* ---------- Cookie bar ---------- */
.cookie-bar {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  max-width: 620px;
  margin: 0 auto;
  background: var(--ink);
  color: #fff;
  padding: 14px 16px;
  border-radius: 6px;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  z-index: 100;
  font-size: 13.5px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.cookie-bar a { color: #fff; }
.cookie-actions { display: flex; gap: 8px; }
.cookie-bar .btn-primary { padding: 11px 18px; font-size: 14px; }

/* ---------- Forms ---------- */
.form-status { flex-basis: 100%; font-size: 13.5px; margin: 6px 0 0; text-align: center; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--easy); }
.form-status.err { color: var(--accent-dark); }
.form-status a { color: inherit; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-fineprint { font-size: 12px !important; margin: 14px 0 0 !important; }
.form-fineprint a { color: inherit; }

.inline-signup {
  margin: 34px 0 8px;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
}
.inline-signup h2 { font-size: 18px !important; margin: 0 0 6px !important; }
.inline-signup p { font-size: 14px !important; color: var(--ink-muted) !important; margin-bottom: 14px !important; }
.inline-signup .newsletter-form { justify-content: flex-start; }

.contact-form { display: grid; gap: 16px; max-width: 560px; margin-top: 8px; }
.contact-form label { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); display: grid; gap: 6px; }
.contact-form input, .contact-form textarea {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 15px;
  background: #fff;
  color: var(--ink);
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.contact-form .btn-primary { justify-self: start; }
.contact-form .form-status { text-align: left; }

/* ---------- Guides index: filters ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 28px 0 6px; }
.chip {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-muted);
  cursor: pointer;
}
.chip:hover { border-color: var(--accent); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.search-input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 14px;
  background: #fff;
}
.search-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.result-count { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); margin: 6px 0 0; }
.empty { color: var(--ink-muted); grid-column: 1 / -1; }

/* ---------- Toolbox page ---------- */
.tool-group { padding: 28px 0 8px; }
.tool-group h2 { font-size: 22px; margin-bottom: 4px; }
.tool-card .store-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: baseline; }
.printable { background: var(--card); border: 1px solid var(--border); border-radius: 6px; padding: 26px; margin: 36px 0 8px; }
.printable h2 { font-size: 22px; margin-bottom: 6px; }
.printable p { color: var(--ink-muted); font-size: 14.5px; margin-bottom: 16px; }
.checklist { list-style: none; columns: 2; column-gap: 32px; margin: 0 0 18px; }
.checklist li { padding: 6px 0 6px 30px; position: relative; break-inside: avoid; font-size: 14.5px; }
.checklist li::before {
  content: '';
  position: absolute; left: 0; top: 9px;
  width: 16px; height: 16px;
  border: 1.5px solid var(--ink-muted);
  border-radius: 3px;
}

/* ---------- Legal / text pages ---------- */
.legal { max-width: 720px; padding-bottom: 72px; }
.legal h2 { font-size: 20px; margin: 34px 0 10px; }
.legal p, .legal li { font-size: 15.5px; margin-bottom: 12px; }
.legal ul { margin: 0 0 14px 22px; }
.legal a { color: var(--accent-dark); }
.legal .updated { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); }

.guide-note {
  margin: 30px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px !important;
  color: var(--ink-muted) !important;
}
.related { padding-top: 12px; }

@media (max-width: 900px) {
  .video-strip .video-grid { grid-template-columns: 1fr; }
  .checklist { columns: 1; }
}
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-photo { transform: none; max-width: 340px; }
  .hero { padding: 56px 0 40px; }
}

@media print {
  .site-header, .site-footer, .newsletter, .cookie-bar, .no-print, .ad-slot { display: none !important; }
  body { background: #fff; }
  .printable { border: none; padding: 0; }
}

/* fix: original .guide-layout padding shorthand removed the page's side gutters on phones */
.guide-layout { padding-left: 24px; padding-right: 24px; }

/* ============================================================
   Calculators
   ============================================================ */
.calc-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.calc-card { background: var(--card); border: 1px solid var(--border); border-radius: 6px; padding: 24px; }
.calc-card h2 { font-size: 18px; margin-bottom: 18px; }
.calc-form { display: grid; gap: 16px; }
.calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc-row-swap { grid-template-columns: 1fr auto 1fr; align-items: end; }
.calc-field { display: grid; gap: 6px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); align-content: start; }
.calc-field em { font-style: normal; color: var(--brass); }
.calc-field small { font-family: var(--font-body); font-size: 12.5px; color: var(--ink-muted); line-height: 1.4; }
.calc-field input[type="text"], .calc-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 16px;
  background: #fff;
  color: var(--ink);
}
.calc-field input:focus, .calc-field select:focus, .calc-swap:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.calc-check { display: flex; gap: 10px; align-items: center; font-size: 15px; cursor: pointer; }
.calc-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.calc-swap {
  width: 44px; height: 46px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  font-size: 20px;
  color: var(--ink);
  cursor: pointer;
}
.calc-swap:hover { border-color: var(--accent); color: var(--accent-dark); }

.calc-side { display: grid; gap: 20px; }
.calc-result { background: var(--ink); color: #fff; border-radius: 6px; padding: 24px; min-height: 140px; }
.calc-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.65); margin-bottom: 6px; }
.calc-label-2 { margin-top: 20px; }
.calc-big { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 4.4vw, 38px); line-height: 1.15; overflow-wrap: anywhere; }
.calc-big-2 { font-size: clamp(20px, 3.4vw, 28px); }
.calc-sub { font-size: 14px; color: rgba(255,255,255,0.8); margin: 8px 0 0; line-height: 1.5; }
.calc-sub strong { color: #fff; }
.calc-table { margin: 18px 0 0; border-top: 1px solid rgba(255,255,255,0.18); }
.calc-table > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.12); font-size: 14px; }
.calc-table dt { color: rgba(255,255,255,0.72); }
.calc-table dd { font-family: var(--font-mono); font-size: 13px; text-align: right; }
.calc-h3 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.65); margin: 22px 0 0; font-weight: 500; }
.calc-note { font-size: 12.5px; color: rgba(255,255,255,0.65); margin-top: 16px; line-height: 1.5; }
.calc-empty { color: rgba(255,255,255,0.8); font-size: 15px; line-height: 1.5; }
.calc-guide { background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 0 6px 6px 0; padding: 14px 18px; margin: 0 0 8px !important; }
.calc-more { display: flex; flex-wrap: wrap; gap: 10px; }
.calc-shop { margin: 0; }

.calc-tools .card h3 { margin-bottom: 6px; }

@media (max-width: 860px) {
  .calc-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .calc-card, .calc-result { padding: 18px; }
  .calc-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .calc-row-swap { grid-template-columns: 1fr; }
  .calc-swap { justify-self: center; transform: rotate(90deg); }
}

/* tables inside explanatory text */
.legal table { width: 100%; border-collapse: collapse; margin: 4px 0 20px; font-size: 14.5px; background: var(--card); border: 1px solid var(--border); }
.legal th, .legal td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); }
.legal th { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--ink-muted); background: var(--paper); }
.legal tr:last-child td { border-bottom: none; }
.legal sup { font-size: 0.75em; }

.guide-hero .tag-cat { margin-left: 0; }


/* Sparkle & Shine cross-promo banner (site-wide, 2026-09-23) */
    .sparkle-promo { padding: 28px 0 40px; }
    .sparkle-promo-card {
      display: flex; align-items: center; justify-content: space-between; gap: 16px;
      flex-wrap: wrap;
      background: #1c3b37;
      background-image: radial-gradient(circle at 85% 15%, rgba(217,164,65,.25), transparent 55%);
      border: 1px solid #2f5850;
      border-top: 3px solid #d9a441;
      border-radius: 12px;
      padding: 18px 22px;
      text-decoration: none;
      box-shadow: 0 10px 24px rgba(15,35,32,.2), 0 2px 6px rgba(15,35,32,.12);
      transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    }
    .sparkle-promo-card:hover {
      transform: translateY(-2px);
      border-color: #d9a441;
      box-shadow: 0 14px 30px rgba(15,35,32,.26), 0 3px 8px rgba(15,35,32,.16);
    }
    .sparkle-promo-text { max-width: 640px; }
    .sparkle-promo-tag {
      display: inline-flex; align-items: center; gap: 6px;
      font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; letter-spacing: .05em;
      color: #ffd685; background: rgba(217,164,65,.16);
      border: 1px solid rgba(217,164,65,.4);
      padding: 3px 9px; border-radius: 999px;
      margin-bottom: 6px;
    }
    .sparkle-promo-text h3 { color: #fff; font-size: 17px; margin-bottom: 3px; }
    .sparkle-promo-text p { color: rgba(255,255,255,.82); font-size: 13px; }
    .sparkle-promo-text b { color: #fff; }
    .sparkle-promo-btn {
      flex: none; display: inline-flex; align-items: center; gap: 8px;
      background: #2f8f86; color: #fff; font-weight: 700; font-size: 13px;
      padding: 9px 16px; border-radius: 6px; white-space: nowrap;
      box-shadow: 0 4px 12px rgba(47,143,134,.35);
      transition: background .18s ease, box-shadow .18s ease;
    }
    .sparkle-promo-card:hover .sparkle-promo-btn { background: #3aa398; box-shadow: 0 6px 16px rgba(47,143,134,.45); }
    @media (max-width: 560px) {
      .sparkle-promo-card { padding: 16px; }
      .sparkle-promo-btn { width: 100%; justify-content: center; }
    }
  
