/*
Theme Name: YardToGarage
Theme URI: https://yardtogarage.com
Author: YardToGarage
Author URI: https://yardtogarage.com
Description: A fast, blog-first automotive theme for YardToGarage — America's used auto parts guide. Built-in parts quote form with year/make/model/ZIP and a lead inbox (CSV export), contact form, homepage part finder, AdSense slots with a policy gate, E-E-A-T author & reviewer profiles, breadcrumbs, auto table of contents, schema, article patterns (cost tables, shop tips, symptom checklists) and one-click setup. No page builder or paid plugins required.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
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: yardtogarage
Tags: blog, news, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, block-patterns, editor-style
*/

/* =========================================================================
   1. DESIGN TOKENS
   Asphalt + signal orange + hazard yellow, on warm "shop-floor" concrete.
   ========================================================================= */
:root {
  --ytg-asphalt: #14171c;
  --ytg-asphalt-2: #1d2128;
  --ytg-asphalt-3: #2a2f38;
  --ytg-steel: #5b6472;
  --ytg-steel-2: #8a929e;
  --ytg-signal: #ff6a1a;        /* CTA — always dark text on it */
  --ytg-signal-dark: #e85a0c;
  --ytg-signal-ink: #b43f00;    /* orange for text links on light bg (AA) */
  --ytg-signal-tint: #fff0e6;
  --ytg-hazard: #ffc629;
  --ytg-hazard-tint: #fff7da;
  --ytg-green: #15803d;
  --ytg-green-tint: #e6f4ea;
  --ytg-red: #c62828;
  --ytg-red-tint: #fdecec;
  --ytg-blue: #1d5fbf;
  --ytg-blue-tint: #e8f0fb;

  --ytg-text: #1b1f24;
  --ytg-text-2: #545c68;
  --ytg-bg: #f3f2ee;
  --ytg-surface: #ffffff;
  --ytg-line: #e1dfd8;
  --ytg-line-2: #cfccc3;

  --ytg-font-head: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --ytg-font-body: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --ytg-radius: 14px;
  --ytg-radius-sm: 8px;
  --ytg-radius-xs: 5px;
  --ytg-shadow-sm: 0 1px 2px rgba(20, 23, 28, .06), 0 1px 1px rgba(20, 23, 28, .04);
  --ytg-shadow: 0 10px 30px -12px rgba(20, 23, 28, .25), 0 2px 6px rgba(20, 23, 28, .06);
  --ytg-shadow-lg: 0 30px 60px -20px rgba(20, 23, 28, .45);
  --ytg-max: 1240px;
  --ytg-gutter: clamp(16px, 4vw, 32px);
  --ytg-header-h: 72px;

  --ytg-hazard-stripe: repeating-linear-gradient(-45deg, var(--ytg-hazard) 0 12px, var(--ytg-asphalt) 12px 24px);
}

/* =========================================================================
   2. BASE
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--ytg-header-h) + 16px); }
body {
  margin: 0;
  background: var(--ytg-bg);
  color: var(--ytg-text);
  font-family: var(--ytg-font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  -webkit-tap-highlight-color: rgba(255, 106, 26, .18);
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--ytg-signal-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ytg-asphalt); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ytg-font-head);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ytg-asphalt);
  margin: 0 0 .5em;
  letter-spacing: .003em;
}
p { margin: 0 0 1.1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ytg-signal); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--ytg-hazard); color: var(--ytg-asphalt); }
hr { border: 0; height: 1px; background: var(--ytg-line); margin: 2em 0; }

.ytg-skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--ytg-asphalt); color: #fff; padding: 10px 16px; border-radius: var(--ytg-radius-sm); }
.ytg-skip:focus { left: 12px; color: #fff; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.ytg-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ytg-muted { color: var(--ytg-text-2); }
.ytg-icon { flex: none; vertical-align: middle; }

/* =========================================================================
   3. CONTAINER
   ========================================================================= */
.ytg-container { width: 100%; max-width: var(--ytg-max); margin: 0 auto; padding-left: var(--ytg-gutter); padding-right: var(--ytg-gutter); }
.ytg-main { display: block; min-height: 50vh; outline: none; }

/* =========================================================================
   4. BUTTONS, CHIPS, EYEBROWS
   ========================================================================= */
.ytg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 11px 22px;
  border: 2px solid transparent; border-radius: var(--ytg-radius-sm);
  font-family: var(--ytg-font-head); font-weight: 700; font-size: 18px; letter-spacing: .04em; text-transform: uppercase; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.ytg-btn:active { transform: translateY(1px); }
.ytg-btn .ytg-icon { transition: transform .15s; }
.ytg-btn:hover .ytg-icon--arrow { transform: translateX(3px); }
.ytg-btn--signal { background: var(--ytg-signal); color: var(--ytg-asphalt); box-shadow: 0 6px 18px -8px rgba(255, 106, 26, .7); }
.ytg-btn--signal:hover { background: var(--ytg-signal-dark); color: var(--ytg-asphalt); filter: brightness(1.03); }
.ytg-btn--dark { background: var(--ytg-asphalt); color: #fff; }
.ytg-btn--dark:hover { background: var(--ytg-asphalt-3); color: #fff; }
.ytg-btn--outline-light { border-color: rgba(255, 255, 255, .45); color: #fff; background: transparent; }
.ytg-btn--outline-light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .06); }
.ytg-btn--outline { border-color: var(--ytg-asphalt); color: var(--ytg-asphalt); background: transparent; }
.ytg-btn--outline:hover { background: var(--ytg-asphalt); color: #fff; }
.ytg-btn--lg { min-height: 54px; padding: 14px 28px; font-size: 20px; }
.ytg-btn--block { display: flex; width: 100%; }
.ytg-btn[disabled], .ytg-btn.is-loading { opacity: .7; cursor: progress; }

.ytg-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ytg-font-head); font-weight: 700; font-size: 15px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ytg-signal-ink); margin-bottom: 10px;
}
.ytg-eyebrow::before { content: ""; width: 22px; height: 4px; background: var(--ytg-signal); border-radius: 2px; }
.ytg-eyebrow--hazard { color: var(--ytg-hazard); }
.ytg-eyebrow--hazard::before { background: var(--ytg-hazard-stripe); width: 28px; height: 8px; border-radius: 1px; }
.ytg-eyebrow--light { color: var(--ytg-hazard); }
.ytg-eyebrow--light::before { background: var(--ytg-hazard); }

/* License-plate category chip */
.ytg-plate {
  display: inline-block;
  padding: 4px 10px 3px;
  border: 1.5px solid var(--ytg-asphalt);
  border-radius: var(--ytg-radius-xs);
  background: #fff;
  box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 3px rgba(20, 23, 28, .12);
  font-family: var(--ytg-font-head); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; line-height: 1.2;
  color: var(--ytg-asphalt); text-decoration: none;
}
.ytg-plate:hover { background: var(--ytg-hazard); color: var(--ytg-asphalt); }

.ytg-chip {
  display: inline-flex; align-items: center; min-height: 38px; padding: 6px 15px;
  border: 1.5px solid var(--ytg-line-2); border-radius: 999px; background: var(--ytg-surface);
  color: var(--ytg-asphalt); font-weight: 600; font-size: 15px; text-decoration: none; line-height: 1.2;
  transition: border-color .15s, background .15s, color .15s;
}
.ytg-chip:hover { border-color: var(--ytg-asphalt); color: var(--ytg-asphalt); }
.ytg-chip.is-active { background: var(--ytg-asphalt); border-color: var(--ytg-asphalt); color: #fff; }
.ytg-chip--sm { min-height: 32px; font-size: 14px; padding: 4px 12px; }

.ytg-link-arrow { display: inline-flex; align-items: center; gap: 6px; font-family: var(--ytg-font-head); font-weight: 700; font-size: 17px; letter-spacing: .06em; text-transform: uppercase; color: var(--ytg-asphalt); text-decoration: none; }
.ytg-link-arrow:hover { color: var(--ytg-signal-ink); }
.ytg-link-arrow:hover .ytg-icon { transform: translateX(3px); }
.ytg-link-arrow .ytg-icon { transition: transform .15s; }

.ytg-hazard { display: block; height: 8px; background: var(--ytg-hazard-stripe); }

/* =========================================================================
   5. TOP BAR, HEADER, NAV, SEARCH
   ========================================================================= */
.ytg-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; pointer-events: none; }
.ytg-progress span { display: block; height: 100%; background: var(--ytg-signal); transform-origin: 0 50%; transform: scaleX(0); }

.ytg-topbar { background: var(--ytg-asphalt); color: #c9ced6; font-size: 14px; }
.ytg-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.ytg-topbar__msg { display: inline-flex; align-items: center; gap: 8px; }
.ytg-topbar__msg .ytg-icon { color: var(--ytg-hazard); }
.ytg-topbar__links { display: inline-flex; gap: 18px; }
.ytg-topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.ytg-topbar a:hover { color: var(--ytg-hazard); }

.ytg-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--ytg-line);
  transition: box-shadow .2s;
}
.admin-bar .ytg-header { top: 32px; }
.ytg-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(20, 23, 28, .35); }
.ytg-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--ytg-header-h); }
.ytg-header__brand { flex: none; }
.ytg-header__brand .custom-logo { max-height: 52px; width: auto; }

.ytg-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.ytg-logo__mark { display: inline-flex; }
.ytg-logo__word { font-family: var(--ytg-font-head); font-weight: 800; font-size: 28px; letter-spacing: .01em; text-transform: uppercase; line-height: 1; color: var(--ytg-asphalt); }
.ytg-logo__word em { font-style: normal; font-weight: 700; font-size: .62em; color: var(--ytg-signal-ink); margin: 0 3px; vertical-align: .22em; letter-spacing: .08em; }
.ytg-logo--light .ytg-logo__word { color: #fff; }
.ytg-logo--light .ytg-logo__word em { color: var(--ytg-signal); }

.ytg-nav { flex: 1; min-width: 0; display: flex; justify-content: center; }
.ytg-nav__list { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.ytg-nav__list > li { position: relative; }
.ytg-nav__list a {
  display: block; padding: 10px 13px; border-radius: var(--ytg-radius-sm);
  font-family: var(--ytg-font-head); font-weight: 700; font-size: 17px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--ytg-asphalt); text-decoration: none; white-space: nowrap;
}
.ytg-nav__list a:hover { background: var(--ytg-bg); }
.ytg-nav__list .current-menu-item > a, .ytg-nav__list .current-menu-ancestor > a, .ytg-nav__list .current-post-ancestor > a { box-shadow: inset 0 -3px 0 var(--ytg-signal); border-radius: 0; }
.ytg-nav__list .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 220px; list-style: none; margin: 0; padding: 8px;
  background: #fff; border: 1px solid var(--ytg-line); border-radius: var(--ytg-radius-sm); box-shadow: var(--ytg-shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s;
}
.ytg-nav__list li:hover > .sub-menu, .ytg-nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.ytg-nav__list .sub-menu a { text-transform: none; font-family: var(--ytg-font-body); font-weight: 600; font-size: 15px; letter-spacing: 0; }
.ytg-nav__cta-mobile { display: none; }

.ytg-header__actions { display: flex; align-items: center; gap: 8px; flex: none; }
.ytg-iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: var(--ytg-radius-sm); background: transparent; color: var(--ytg-asphalt); cursor: pointer; }
.ytg-iconbtn:hover { background: var(--ytg-bg); }
.ytg-menu-toggle { display: none; }
.ytg-menu-toggle__close { display: none; }
.ytg-menu-toggle[aria-expanded="true"] .ytg-menu-toggle__open { display: none; }
.ytg-menu-toggle[aria-expanded="true"] .ytg-menu-toggle__close { display: inline-flex; }
.ytg-header__cta { min-height: 42px; padding: 9px 18px; font-size: 17px; }

.ytg-searchbar { border-top: 1px solid var(--ytg-line); background: #fff; padding: 16px 0; }
.ytg-searchbar[hidden] { display: none; }

.ytg-searchform { position: relative; display: flex; gap: 8px; }
.ytg-searchform__icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ytg-steel); display: inline-flex; pointer-events: none; }
.ytg-searchform input[type="search"] {
  flex: 1; min-width: 0; min-height: 46px; padding: 10px 14px 10px 42px;
  border: 1.5px solid var(--ytg-line-2); border-radius: var(--ytg-radius-sm); background: #fff; font-size: 16px;
}
.ytg-searchform input[type="search"]:focus { border-color: var(--ytg-asphalt); outline: none; box-shadow: 0 0 0 3px rgba(255, 106, 26, .25); }
.ytg-searchform .ytg-btn { min-height: 46px; padding: 10px 18px; font-size: 16px; }

/* =========================================================================
   6. HERO + PART FINDER
   ========================================================================= */
.ytg-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(255, 106, 26, .22), transparent 60%),
    radial-gradient(700px 400px at 5% 100%, rgba(255, 198, 41, .10), transparent 60%),
    linear-gradient(160deg, #1d2128 0%, #14171c 55%, #0e1013 100%);
}
.ytg-hero::before { /* subtle diamond-plate texture */
  content: ""; position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background-image:
    linear-gradient(45deg, #fff 1px, transparent 1px),
    linear-gradient(-45deg, #fff 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%); mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.ytg-hero--photo { background: linear-gradient(100deg, rgba(14, 16, 19, .94) 0%, rgba(14, 16, 19, .82) 45%, rgba(14, 16, 19, .55) 100%), var(--ytg-hero-img) center / cover no-repeat, #14171c; }
.ytg-hero--photo::before { display: none; }
.ytg-hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(64px, 9vw, 112px); }
.ytg-hero__inner--solo { grid-template-columns: minmax(0, 820px); }
.ytg-hero__title { color: #fff; font-size: clamp(44px, 7vw, 84px); font-weight: 800; line-height: .95; text-transform: uppercase; letter-spacing: -.005em; margin-bottom: 20px; }
.ytg-hero__text { font-size: clamp(17px, 1.6vw, 20px); color: #cfd4db; max-width: 56ch; margin-bottom: 28px; }
.ytg-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.ytg-hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; margin: 0; padding: 0; color: #e7eaee; font-weight: 600; font-size: 15px; }
.ytg-hero__trust li { display: inline-flex; align-items: center; gap: 7px; }
.ytg-hero__trust .ytg-icon { color: var(--ytg-hazard); }

.ytg-road { height: 16px; background: linear-gradient(90deg, var(--ytg-hazard) 50%, transparent 0) center / 56px 3px repeat-x, var(--ytg-asphalt); border-top: 1px solid rgba(255, 255, 255, .06); }
.ytg-hero .ytg-road { position: absolute; left: 0; right: 0; bottom: 0; }

.ytg-finder {
  position: relative; background: #fff; color: var(--ytg-text); border-radius: var(--ytg-radius);
  padding: 22px; box-shadow: var(--ytg-shadow-lg); overflow: hidden;
}
.ytg-finder::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 8px; background: var(--ytg-hazard-stripe); }
.ytg-finder__head { display: flex; align-items: center; gap: 10px; margin: 6px 0 16px; font-family: var(--ytg-font-head); font-weight: 800; font-size: 26px; text-transform: uppercase; color: var(--ytg-asphalt); letter-spacing: .02em; }
.ytg-finder__head .ytg-icon { color: var(--ytg-signal); }
.ytg-finder__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.ytg-finder__field { display: flex; flex-direction: column; gap: 5px; }
.ytg-finder__field > span { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ytg-text-2); }
.ytg-finder__note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 0; font-size: 14px; color: var(--ytg-text-2); }
.ytg-finder__note .ytg-icon { color: var(--ytg-green); }

/* Shared input look */
.ytg-finder select, .ytg-finder input,
.ytg-form input[type="text"], .ytg-form input[type="email"], .ytg-form input[type="tel"], .ytg-form input[type="number"], .ytg-form select, .ytg-form textarea,
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; min-height: 48px; padding: 10px 13px;
  border: 1.5px solid var(--ytg-line-2); border-radius: var(--ytg-radius-sm);
  background: #fff; font-size: 16px; color: var(--ytg-text);
  transition: border-color .15s, box-shadow .15s;
}
.ytg-finder select, .ytg-form select {
  -webkit-appearance: none; appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2314171c' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
}
.ytg-finder select:focus, .ytg-finder input:focus,
.ytg-form input:focus, .ytg-form select:focus, .ytg-form textarea:focus,
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--ytg-asphalt); box-shadow: 0 0 0 3px rgba(255, 106, 26, .25); }
.ytg-form textarea, .comment-form textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
::placeholder { color: #9aa1ab; opacity: 1; }

/* =========================================================================
   7. HOMEPAGE SECTIONS
   ========================================================================= */
.ytg-section { padding: clamp(48px, 7vw, 88px) 0; }
.ytg-section--tint { background: #ebe9e3; }
.ytg-section--flush { padding-top: 0; }
.ytg-section--dark { background: var(--ytg-asphalt); color: #cfd4db; }
.ytg-section--dark .ytg-section__title { color: #fff; }
.ytg-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.ytg-section__head--center { justify-content: center; text-align: center; }
.ytg-section__head--center .ytg-eyebrow { justify-content: center; }
.ytg-section__title { font-size: clamp(32px, 4vw, 46px); font-weight: 800; text-transform: uppercase; margin: 0; }

/* Part tiles */
.ytg-parts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ytg-part {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 20px;
  background: var(--ytg-surface); border: 1px solid var(--ytg-line); border-radius: var(--ytg-radius);
  text-decoration: none; color: var(--ytg-text); overflow: hidden;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.ytg-part::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--ytg-signal); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.ytg-part:hover { transform: translateY(-3px); box-shadow: var(--ytg-shadow); border-color: transparent; color: var(--ytg-text); }
.ytg-part:hover::after { transform: scaleX(1); }
.ytg-part__icon { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; margin-bottom: 10px; border-radius: 12px; background: var(--ytg-asphalt); color: var(--ytg-hazard); }
.ytg-part:hover .ytg-part__icon { background: var(--ytg-signal); color: var(--ytg-asphalt); }
.ytg-part__name { font-family: var(--ytg-font-head); font-weight: 700; font-size: 22px; text-transform: uppercase; color: var(--ytg-asphalt); line-height: 1.1; }
.ytg-part__desc { font-size: 14.5px; color: var(--ytg-text-2); line-height: 1.45; }

/* Latest grid: 1 large feature + 6 */
.ytg-latest { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.ytg-latest .ytg-card--feature { grid-column: span 2; grid-row: span 2; }

/* How it works */
.ytg-how { position: relative; overflow: hidden; }
.ytg-how::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: var(--ytg-hazard-stripe); opacity: .9; }
.ytg-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0 0 36px; padding: 0; counter-reset: none; }
.ytg-step-card { position: relative; padding: 28px 24px 26px; background: var(--ytg-asphalt-2); border: 1px solid #2f3540; border-radius: var(--ytg-radius); }
.ytg-step-card .ytg-icon { color: var(--ytg-signal); margin-bottom: 14px; }
.ytg-step-card__n { position: absolute; top: 14px; right: 18px; font-family: var(--ytg-font-head); font-weight: 800; font-size: 56px; line-height: 1; color: rgba(255, 255, 255, .06); }
.ytg-step-card h3 { color: #fff; font-size: 26px; text-transform: uppercase; margin-bottom: 8px; }
.ytg-step-card p { margin: 0; color: #aeb5bf; font-size: 16px; }
.ytg-how__cta { text-align: center; margin: 0; }

/* Topics + makes */
.ytg-topics { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); }
.ytg-topics .ytg-section__title, .ytg-makes .ytg-section__title { margin-bottom: 22px; }
.ytg-topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ytg-topic {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 14px 16px; background: #fff; border: 1px solid var(--ytg-line); border-radius: var(--ytg-radius-sm);
  text-decoration: none; color: var(--ytg-text); transition: border-color .15s, box-shadow .15s;
}
.ytg-topic:hover { border-color: var(--ytg-asphalt); color: var(--ytg-text); box-shadow: var(--ytg-shadow-sm); }
.ytg-topic__icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--ytg-signal-tint); color: var(--ytg-signal-ink); }
.ytg-topic__name { font-weight: 700; font-size: 16.5px; line-height: 1.2; }
.ytg-topic__count { font-size: 13px; color: var(--ytg-text-2); white-space: nowrap; }
.ytg-make-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ytg-make-chips .ytg-chip { font-family: var(--ytg-font-head); font-size: 17px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ytg-make-chips .ytg-chip:hover { background: var(--ytg-hazard); border-color: var(--ytg-hazard); }
.ytg-makes__note { font-size: 14.5px; margin-top: 14px; }

/* Bottom band */
.ytg-band {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 48px); border-radius: var(--ytg-radius);
  background: var(--ytg-signal); color: var(--ytg-asphalt); overflow: hidden;
}
.ytg-band::after { content: ""; position: absolute; right: -40px; top: 0; bottom: 0; width: 180px; background: var(--ytg-hazard-stripe); opacity: .18; transform: skewX(-12deg); }
.ytg-band > * { position: relative; z-index: 1; }
.ytg-band h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; text-transform: uppercase; margin: 0 0 4px; }
.ytg-band p { margin: 0; font-size: 18px; font-weight: 500; }

/* =========================================================================
   8. CARDS
   ========================================================================= */
.ytg-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.ytg-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ytg-cards__ad { grid-column: 1 / -1; }
.ytg-card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: var(--ytg-surface); border: 1px solid var(--ytg-line); border-radius: var(--ytg-radius); overflow: hidden;
  transition: transform .18s, box-shadow .18s;
}
.ytg-card:hover { transform: translateY(-3px); box-shadow: var(--ytg-shadow); }
.ytg-card__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ytg-asphalt-2); }
.ytg-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ytg-card:hover .ytg-card__media img { transform: scale(1.04); }
.ytg-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.ytg-card__title { font-size: 25px; line-height: 1.1; margin: 0; }
.ytg-card__title a { color: var(--ytg-asphalt); text-decoration: none; background: linear-gradient(var(--ytg-signal), var(--ytg-signal)) 0 100% / 0 3px no-repeat; transition: background-size .25s; }
.ytg-card:hover .ytg-card__title a { background-size: 100% 3px; }
.ytg-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card clickable */
.ytg-card .ytg-plate { position: relative; z-index: 2; }
.ytg-card__excerpt { font-size: 15.5px; color: var(--ytg-text-2); margin: 0; line-height: 1.55; }
.ytg-card__meta { margin: auto 0 0; padding-top: 4px; font-size: 13.5px; color: var(--ytg-steel); font-weight: 600; display: flex; gap: 6px; }
.ytg-card--feature .ytg-card__media { aspect-ratio: 16 / 9; }
.ytg-card--feature .ytg-card__title { font-size: clamp(30px, 3.2vw, 40px); }
.ytg-card--feature .ytg-card__excerpt { font-size: 17px; }
.ytg-card--feature .ytg-card__body { padding: 24px 26px 26px; }

/* Placeholder when no featured image */
.ytg-ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--ytg-hazard);
  background:
    linear-gradient(45deg, rgba(255,255,255,.035) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.035) 75%) 0 0 / 28px 28px,
    linear-gradient(45deg, rgba(255,255,255,.035) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.035) 75%) 14px 14px / 28px 28px,
    radial-gradient(circle at 70% 20%, rgba(255, 106, 26, .35), transparent 55%),
    var(--ytg-asphalt-2);
}
.ytg-ph::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--ytg-hazard-stripe); opacity: .85; }
.ytg-ph .ytg-icon { opacity: .9; }

/* =========================================================================
   9. PAGE HEAD, BREADCRUMBS, FILTER
   ========================================================================= */
.ytg-breadcrumbs { background: transparent; font-size: 14px; color: var(--ytg-text-2); }
.ytg-breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; list-style: none; margin: 0; padding: 16px 0 0; gap: 4px; }
.ytg-breadcrumbs li { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.ytg-breadcrumbs li + li::before { content: "›"; color: var(--ytg-steel-2); margin: 0 4px; }
.ytg-breadcrumbs a { color: var(--ytg-text-2); text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.ytg-breadcrumbs a:hover { color: var(--ytg-signal-ink); }
.ytg-breadcrumbs [aria-current] { color: var(--ytg-asphalt); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }

.ytg-pagehead { padding: 26px 0 30px; }
.ytg-pagehead__title { font-size: clamp(40px, 5.5vw, 64px); font-weight: 800; text-transform: uppercase; margin: 0 0 10px; }
.ytg-pagehead__desc { color: var(--ytg-text-2); max-width: 70ch; font-size: 18px; }
.ytg-pagehead__desc p:last-child { margin-bottom: 0; }
.ytg-pagehead__count { color: var(--ytg-steel); font-weight: 600; font-size: 15px; margin: 8px 0 0; }
.ytg-pagehead__icon { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 7px; background: var(--ytg-asphalt); color: var(--ytg-hazard); }
.ytg-pagehead__eyebrow::before { display: none; }
.ytg-pagehead__search { max-width: 620px; margin-top: 18px; }
.ytg-pagehead .ytg-authorbox { margin-top: 16px; max-width: 820px; }
.ytg-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

/* =========================================================================
   10. LAYOUT + SIDEBAR
   ========================================================================= */
.ytg-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding-bottom: 72px; align-items: start; }
.ytg-layout--article { padding-top: 18px; }
.ytg-sidebar__inner { position: sticky; top: calc(var(--ytg-header-h) + 20px); display: flex; flex-direction: column; gap: 20px; }
.admin-bar .ytg-sidebar__inner { top: calc(var(--ytg-header-h) + 52px); }
.ytg-widget { background: #fff; border: 1px solid var(--ytg-line); border-radius: var(--ytg-radius); padding: 20px; }
.ytg-widget__title, .ytg-widget h2, .ytg-widget .wp-block-heading { font-size: 20px; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--ytg-asphalt); }
.ytg-widget ul { list-style: none; margin: 0; padding: 0; }
.ytg-widget li { padding: 7px 0; border-bottom: 1px solid var(--ytg-line); }
.ytg-widget li:last-child { border-bottom: 0; }
.ytg-widget a { color: var(--ytg-text); text-decoration: none; font-weight: 600; }
.ytg-widget a:hover { color: var(--ytg-signal-ink); }
.ytg-widget .ytg-searchform .ytg-btn { padding: 10px 14px; }
.ytg-widget .ytg-searchform input[type="search"] { padding-left: 38px; }

.ytg-minilist li { padding: 0; border: 0; }
.ytg-minilist li + li { margin-top: 12px; }
.ytg-minilist__item { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; }
.ytg-minilist__thumb { position: relative; display: block; width: 72px; height: 54px; border-radius: 8px; overflow: hidden; background: var(--ytg-asphalt-2); }
.ytg-minilist__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ytg-minilist__thumb .ytg-ph .ytg-icon { width: 22px; height: 22px; }
.ytg-minilist__thumb .ytg-ph::after { height: 3px; }
.ytg-minilist__title { display: block; font-weight: 700; font-size: 15px; line-height: 1.3; color: var(--ytg-asphalt); }
.ytg-minilist__date { display: block; font-size: 12.5px; color: var(--ytg-steel); font-weight: 500; margin-top: 2px; }
.ytg-catlist a { display: flex; justify-content: space-between; gap: 10px; }
.ytg-catlist__n { min-width: 28px; text-align: center; font-size: 12.5px; padding: 1px 8px; border-radius: 99px; background: var(--ytg-bg); color: var(--ytg-text-2); }

.ytg-sidecta { position: relative; padding: 26px 22px 22px; border-radius: var(--ytg-radius); background: var(--ytg-asphalt); color: #c9ced6; overflow: hidden; }
.ytg-sidecta .ytg-hazard { position: absolute; top: 0; left: 0; right: 0; }
.ytg-sidecta__title { color: #fff; font-size: 30px; text-transform: uppercase; margin: 4px 0 8px; }
.ytg-sidecta p { font-size: 15.5px; margin-bottom: 16px; }

/* =========================================================================
   11. ARTICLE + CONTENT TYPOGRAPHY
   ========================================================================= */
.ytg-article { background: #fff; border: 1px solid var(--ytg-line); border-radius: var(--ytg-radius); padding: clamp(22px, 4vw, 48px); }
.ytg-article__header { margin-bottom: 26px; }
.ytg-article__header .ytg-plate { margin-bottom: 14px; }
.ytg-article__title { font-size: clamp(36px, 5vw, 56px); font-weight: 800; line-height: 1.02; margin: 0 0 14px; }
.ytg-article__dek { font-size: 20px; color: var(--ytg-text-2); line-height: 1.5; margin: 0 0 18px; max-width: 60ch; }
.ytg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 14.5px; color: var(--ytg-text-2); font-weight: 500; }
.ytg-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.ytg-meta .ytg-icon { color: var(--ytg-steel-2); }
.ytg-meta__author img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.ytg-meta__author a { color: var(--ytg-asphalt); font-weight: 700; text-decoration: none; }
.ytg-meta__updated { color: var(--ytg-green); font-weight: 600; }

.ytg-reviewed { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 8px 14px; border-radius: 999px; background: var(--ytg-green-tint); color: #0f5a2b; font-size: 14.5px; }
.ytg-reviewed .ytg-icon { color: var(--ytg-green); }
.ytg-reviewed a { color: inherit; text-decoration: none; }

.ytg-article__thumb { margin: 0 0 28px; border-radius: var(--ytg-radius-sm); overflow: hidden; }
.ytg-article__thumb img { width: 100%; }
.ytg-article__thumb figcaption { font-size: 13.5px; color: var(--ytg-steel); padding: 8px 2px 0; }

.ytg-content { font-size: 18px; line-height: 1.75; max-width: 74ch; overflow-wrap: break-word; }
.ytg-content--page { max-width: none; }
.ytg-content > *:first-child { margin-top: 0; }
.ytg-content h2 { font-size: clamp(30px, 3.4vw, 38px); margin: 1.6em 0 .55em; padding-top: .3em; }
.ytg-content h2::before { content: ""; display: block; width: 44px; height: 5px; margin-bottom: 14px; background: var(--ytg-signal); border-radius: 3px; }
.ytg-content h3 { font-size: clamp(24px, 2.6vw, 28px); margin: 1.5em 0 .5em; }
.ytg-content h4 { font-size: 22px; margin: 1.4em 0 .4em; }
.ytg-content ul, .ytg-content ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.ytg-content li { margin-bottom: .4em; }
.ytg-content ul > li::marker { color: var(--ytg-signal); }
.ytg-content ol > li::marker { font-family: var(--ytg-font-head); font-weight: 700; color: var(--ytg-signal-ink); }
.ytg-content strong { color: var(--ytg-asphalt); }
.ytg-content blockquote, .ytg-content .wp-block-quote { margin: 1.6em 0; padding: 16px 22px; border-left: 5px solid var(--ytg-hazard); background: var(--ytg-hazard-tint); border-radius: 0 var(--ytg-radius-sm) var(--ytg-radius-sm) 0; font-size: 19px; }
.ytg-content blockquote p:last-child { margin-bottom: 0; }
.ytg-content blockquote cite { display: block; font-size: 14px; font-style: normal; color: var(--ytg-text-2); margin-top: 8px; }
.ytg-content .wp-block-pullquote { border-top: 4px solid var(--ytg-asphalt); border-bottom: 4px solid var(--ytg-asphalt); padding: 1.4em 0; font-family: var(--ytg-font-head); font-size: 28px; }
.ytg-content code, .ytg-content kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em; background: #f1efe9; padding: .12em .4em; border-radius: 4px; }
.ytg-content pre { background: var(--ytg-asphalt); color: #e7eaee; padding: 18px; border-radius: var(--ytg-radius-sm); overflow-x: auto; font-size: 15px; }
.ytg-content pre code { background: none; padding: 0; color: inherit; }
.ytg-content figure { margin: 1.8em 0; }
.ytg-content img { border-radius: var(--ytg-radius-sm); }
.ytg-content figcaption, .wp-caption-text, .wp-element-caption { font-size: 14px; color: var(--ytg-steel); margin-top: 8px; text-align: left; }
.ytg-content a { font-weight: 600; }

/* Tables (spec sheets, cost tables) */
.ytg-content table, .ytg-content .wp-block-table table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 0; }
.ytg-content .wp-block-table, .ytg-content > table { display: block; overflow-x: auto; margin: 1.8em 0; border: 1px solid var(--ytg-line); border-radius: var(--ytg-radius-sm); }
.ytg-content .wp-block-table table { display: table; }
.ytg-content th, .ytg-content td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--ytg-line); vertical-align: top; }
.ytg-content thead th { background: var(--ytg-asphalt); color: #fff; font-family: var(--ytg-font-head); font-weight: 700; font-size: 16px; letter-spacing: .06em; text-transform: uppercase; border-bottom: 0; }
.ytg-content tbody tr:nth-child(even) td { background: #faf9f6; }
.ytg-content tbody tr:last-child td { border-bottom: 0; }
.ytg-content .wp-block-table figcaption { padding: 8px 14px 10px; margin: 0; background: #faf9f6; border-top: 1px solid var(--ytg-line); }
.ytg-content .wp-block-table.is-style-stripes { border-bottom: 1px solid var(--ytg-line); }

/* =========================================================================
   12. ARTICLE TOOLS — TOC, callouts, cost, specs, quick answer, pros/cons
   ========================================================================= */
.ytg-toc { margin: 1.6em 0 2em; border: 1px solid var(--ytg-line); border-left: 5px solid var(--ytg-asphalt); border-radius: var(--ytg-radius-sm); background: #faf9f6; }
.ytg-toc__title { display: flex; align-items: center; gap: 10px; padding: 14px 18px; cursor: pointer; list-style: none; font-family: var(--ytg-font-head); font-weight: 700; font-size: 20px; letter-spacing: .06em; text-transform: uppercase; color: var(--ytg-asphalt); }
.ytg-toc__title::-webkit-details-marker { display: none; }
.ytg-toc__title::after { content: "+"; margin-left: auto; font-size: 24px; line-height: 1; color: var(--ytg-steel); }
.ytg-toc[open] .ytg-toc__title::after { content: "–"; }
.ytg-toc__list { margin: 0 !important; padding: 0 18px 16px 42px !important; font-size: 16px; line-height: 1.5; }
.ytg-toc__list li { margin: 6px 0; }
.ytg-toc__list a { color: var(--ytg-text); font-weight: 600; text-decoration: none; }
.ytg-toc__list a:hover { color: var(--ytg-signal-ink); text-decoration: underline; }
.ytg-toc__sub { list-style: circle; margin-left: 18px !important; font-weight: 500; }
.ytg-toc__sub a { font-weight: 500 !important; }

.ytg-callout { margin: 1.8em 0; padding: 18px 20px 18px 20px; border-radius: var(--ytg-radius-sm); border: 1px solid; font-size: 17px; }
.ytg-callout > *:last-child, .ytg-callout__body > *:last-child { margin-bottom: 0; }
.ytg-callout__title { display: flex; align-items: center; gap: 9px; margin: 0 0 8px !important; font-family: var(--ytg-font-head); font-weight: 700; font-size: 20px; letter-spacing: .06em; text-transform: uppercase; }
.ytg-callout__title::before { content: ""; width: 22px; height: 22px; flex: none; background: currentColor; -webkit-mask: var(--ytg-callout-icon) center / contain no-repeat; mask: var(--ytg-callout-icon) center / contain no-repeat; }
.ytg-callout--tip { background: var(--ytg-hazard-tint); border-color: #f2dd8c; --ytg-callout-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-3.5 10.9c.6.5 1 1.2 1 2.1h5c0-.9.4-1.6 1-2.1A6 6 0 0 0 12 3z'/%3E%3C/svg%3E"); }
.ytg-callout--tip .ytg-callout__title { color: #7a5a00; }
.ytg-callout--warning { background: var(--ytg-red-tint); border-color: #f3c3c3; --ytg-callout-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 2 20h20z'/%3E%3Cpath d='M12 10v4M12 17h.01'/%3E%3C/svg%3E"); }
.ytg-callout--warning .ytg-callout__title { color: var(--ytg-red); }
.ytg-callout--info { background: var(--ytg-blue-tint); border-color: #c5d8f3; --ytg-callout-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v6M12 7.5h.01'/%3E%3C/svg%3E"); }
.ytg-callout--info .ytg-callout__title { color: var(--ytg-blue); }
.ytg-callout--check { background: var(--ytg-green-tint); border-color: #bfe2ca; --ytg-callout-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 11l3 3 8-8'/%3E%3Cpath d='M20 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11'/%3E%3C/svg%3E"); }
.ytg-callout--check .ytg-callout__title { color: var(--ytg-green); }

.ytg-checklist { list-style: none !important; padding-left: 0 !important; margin: 0; }
.ytg-checklist li { position: relative; padding-left: 30px; margin: 8px 0; }
.ytg-checklist li::before { content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 5px; background: var(--ytg-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4.5 4.5L19 7'/%3E%3C/svg%3E") center / 12px no-repeat; }

.ytg-cost { display: flex; align-items: center; gap: 16px; margin: 1.8em 0; padding: 18px 22px; border-radius: var(--ytg-radius-sm); background: var(--ytg-asphalt); color: #c9ced6; }
.ytg-cost > .ytg-icon { width: 48px; height: 48px; padding: 10px; border-radius: 12px; background: var(--ytg-signal); color: var(--ytg-asphalt); }
.ytg-cost > div { display: flex; flex-direction: column; }
.ytg-cost__label { font-size: 13.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ytg-hazard); }
.ytg-cost__range { font-family: var(--ytg-font-head); font-weight: 800; font-size: clamp(30px, 4vw, 40px); line-height: 1.05; color: #fff; }
.ytg-cost__note { font-size: 14.5px; margin-top: 2px; }

.ytg-specs { margin: 1.8em 0; border: 1px solid var(--ytg-line); border-radius: var(--ytg-radius-sm); overflow: hidden; }
.ytg-specs figcaption { display: flex; align-items: center; gap: 9px; margin: 0; padding: 12px 16px; background: var(--ytg-asphalt); color: #fff; font-family: var(--ytg-font-head); font-weight: 700; font-size: 19px; letter-spacing: .05em; text-transform: uppercase; }
.ytg-specs figcaption .ytg-icon { color: var(--ytg-hazard); }
.ytg-specs table { width: 100%; border-collapse: collapse; }
.ytg-specs th { width: 40%; background: #faf9f6; font-weight: 700; color: var(--ytg-asphalt); }
.ytg-specs th, .ytg-specs td { padding: 11px 16px; border-bottom: 1px solid var(--ytg-line); font-size: 16px; text-align: left; }
.ytg-specs tr:last-child th, .ytg-specs tr:last-child td { border-bottom: 0; }

.ytg-quick-answer { margin: 1.4em 0 1.8em; padding: 18px 22px; border: 2px solid var(--ytg-asphalt); border-radius: var(--ytg-radius-sm); background: #fff; box-shadow: 6px 6px 0 var(--ytg-hazard); }
.ytg-quick-answer > *:last-child { margin-bottom: 0; }
.ytg-quick-answer__label { display: inline-block; margin: 0 0 6px !important; font-family: var(--ytg-font-head); font-weight: 800; font-size: 16px; letter-spacing: .12em; text-transform: uppercase; color: var(--ytg-signal-ink); }

.ytg-proscons { gap: 16px !important; margin: 1.8em 0; }
.ytg-proscons > .wp-block-column { padding: 16px 20px; border-radius: var(--ytg-radius-sm); border: 1px solid var(--ytg-line); }
.ytg-pros { background: var(--ytg-green-tint); border-color: #bfe2ca !important; }
.ytg-cons { background: var(--ytg-red-tint); border-color: #f3c3c3 !important; }
.ytg-proscons h4 { margin-top: 0 !important; text-transform: uppercase; letter-spacing: .06em; }
.ytg-pros h4 { color: var(--ytg-green); }
.ytg-cons h4 { color: var(--ytg-red); }
.ytg-proscons ul { margin-bottom: 0 !important; }
.ytg-pros li::marker { content: "+  "; color: var(--ytg-green); font-weight: 700; }
.ytg-cons li::marker { content: "–  "; color: var(--ytg-red); font-weight: 700; }

.ytg-inline-cta { margin: 1.6em 0; }

/* =========================================================================
   13. ARTICLE FOOTER — tags, share, CTA, author, related, post nav
   ========================================================================= */
.ytg-article__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--ytg-line); }
.ytg-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ytg-share { display: flex; align-items: center; gap: 6px; }
.ytg-share__label { font-family: var(--ytg-font-head); font-weight: 700; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--ytg-steel); margin-right: 4px; }
.ytg-share__btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--ytg-line-2); background: #fff; color: var(--ytg-asphalt); cursor: pointer; transition: .15s; }
.ytg-share__btn:hover { background: var(--ytg-asphalt); border-color: var(--ytg-asphalt); color: #fff; }
.ytg-share__copied { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); padding: 3px 8px; border-radius: 5px; background: var(--ytg-asphalt); color: #fff; font-size: 12px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.ytg-share__btn.is-copied .ytg-share__copied { opacity: 1; }

.ytg-cta {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
  margin: 32px 0 0; padding: 30px clamp(22px, 3vw, 34px) 28px; border-radius: var(--ytg-radius);
  background: radial-gradient(500px 220px at 100% 0, rgba(255, 106, 26, .3), transparent 70%), var(--ytg-asphalt);
  color: #c9ced6; overflow: hidden;
}
.ytg-cta::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 8px; background: var(--ytg-hazard-stripe); }
.ytg-cta__body { flex: 1 1 320px; }
.ytg-cta__title { color: #fff !important; font-size: clamp(28px, 3.2vw, 36px) !important; text-transform: uppercase; margin: 0 0 6px !important; padding: 0 !important; }
.ytg-cta__title::before { display: none !important; }
.ytg-cta__text { margin: 0 !important; font-size: 16.5px; color: #c9ced6; }
.ytg-content .ytg-cta .ytg-inline-cta { margin: 0; }

.ytg-authorbox { display: grid; grid-template-columns: 96px 1fr; gap: 20px; margin-top: 28px; padding: 22px; border: 1px solid var(--ytg-line); border-radius: var(--ytg-radius); background: #faf9f6; }
.ytg-authorbox__avatar img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--ytg-signal); }
.ytg-authorbox .ytg-eyebrow { margin-bottom: 4px; font-size: 13px; }
.ytg-authorbox__name { font-family: var(--ytg-font-head); font-weight: 800; font-size: 26px; text-transform: uppercase; margin: 0; line-height: 1.1; }
.ytg-authorbox__name a { color: var(--ytg-asphalt); text-decoration: none; }
.ytg-authorbox__role { color: var(--ytg-text-2); font-weight: 600; font-size: 15px; margin-top: 2px; }
.ytg-authorbox__creds { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ytg-cred { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; background: var(--ytg-asphalt); color: #fff; font-size: 12.5px; font-weight: 600; }
.ytg-cred::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ytg-hazard); }
.ytg-authorbox__bio { margin: 12px 0 0; font-size: 15.5px; color: var(--ytg-text); line-height: 1.6; }
.ytg-authorbox__link { display: inline-block; margin-top: 8px; font-weight: 700; font-size: 15px; }

.ytg-related { margin-top: 48px; }
.ytg-related .ytg-section__title { font-size: 34px; margin-bottom: 20px; }
.ytg-related .ytg-card__title { font-size: 21px; }
.ytg-related .ytg-card__excerpt { display: none; }

.ytg-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.ytg-postnav__item { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--ytg-line); border-radius: var(--ytg-radius-sm); background: #fff; text-decoration: none; color: var(--ytg-text); }
.ytg-postnav__item:hover { border-color: var(--ytg-asphalt); color: var(--ytg-text); }
.ytg-postnav__item span { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ytg-signal-ink); }
.ytg-postnav__item strong { font-family: var(--ytg-font-head); font-size: 20px; line-height: 1.15; color: var(--ytg-asphalt); }
.ytg-postnav__item--next { text-align: right; }

/* =========================================================================
   14. PAGES + FORMS
   ========================================================================= */
.ytg-page { max-width: 880px; margin: 0 auto 72px; padding: clamp(22px, 4vw, 48px); background: #fff; border: 1px solid var(--ytg-line); border-radius: var(--ytg-radius); margin-top: 18px; }
.ytg-page--wide { max-width: var(--ytg-max); background: transparent; border: 0; padding: 0; }
.ytg-page--wide .ytg-page__header, .ytg-page--wide .ytg-content > p { max-width: 760px; }
.ytg-page__title { font-size: clamp(38px, 5vw, 58px); font-weight: 800; text-transform: uppercase; line-height: 1; margin: 0 0 18px; }
.ytg-page--wide .ytg-content { font-size: 18px; }
.ytg-canvas { max-width: none; }

.ytg-quote { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; margin: 28px 0 8px; font-size: 16px; line-height: 1.5; }
.ytg-quote--solo { grid-template-columns: minmax(0, 1fr); }
.ytg-quote__main { min-width: 0; }
.ytg-quote .ytg-form { position: relative; background: #fff; border: 1px solid var(--ytg-line); border-radius: var(--ytg-radius); padding: clamp(20px, 3vw, 32px); box-shadow: var(--ytg-shadow-sm); overflow: hidden; }
.ytg-quote .ytg-form::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 8px; background: var(--ytg-hazard-stripe); }
.ytg-form__title { font-size: 30px; text-transform: uppercase; }
.ytg-step { border: 0; margin: 0 0 8px; padding: 14px 0 6px; min-width: 0; }
.ytg-step + .ytg-step { border-top: 1px dashed var(--ytg-line-2); padding-top: 22px; }
.ytg-step legend { display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 14px; font-family: var(--ytg-font-head); font-weight: 700; font-size: 22px; text-transform: uppercase; letter-spacing: .04em; color: var(--ytg-asphalt); }
.ytg-step + .ytg-step legend { float: left; width: 100%; }
.ytg-step + .ytg-step legend + * { clear: both; }
.ytg-step__n { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; background: var(--ytg-asphalt); color: var(--ytg-hazard); font-size: 18px; }
.ytg-grid2, .ytg-grid3 { display: grid; gap: 14px; }
.ytg-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ytg-grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ytg-field { margin-bottom: 14px; min-width: 0; }
.ytg-grid2 .ytg-field, .ytg-grid3 .ytg-field { margin-bottom: 14px; }
.ytg-field label, .ytg-label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 15px; color: var(--ytg-asphalt); }
.ytg-req { color: var(--ytg-red); }
.ytg-opt { font-weight: 500; color: var(--ytg-steel); font-size: 13px; }
.ytg-field__hint { margin: 6px 0 0; font-size: 14px; color: var(--ytg-text-2); }
.ytg-field.is-invalid input, .ytg-field.is-invalid select, .ytg-field.is-invalid textarea { border-color: var(--ytg-red); background: #fffafa; }
.ytg-consent.is-invalid { outline: 2px solid var(--ytg-red); outline-offset: 4px; border-radius: 6px; }
.ytg-form__error { color: var(--ytg-red); font-weight: 600; margin: 0 0 12px; }

.ytg-segment { display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; gap: 4px; background: var(--ytg-bg); border: 1.5px solid var(--ytg-line-2); border-radius: var(--ytg-radius-sm); min-height: 48px; }
.ytg-segment label { margin: 0; position: relative; display: block; }
.ytg-segment input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.ytg-segment span { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 36px; border-radius: 6px; font-weight: 700; font-size: 15px; color: var(--ytg-text-2); cursor: pointer; transition: .15s; }
.ytg-segment input:checked + span { background: var(--ytg-asphalt); color: #fff; }
.ytg-segment input:focus-visible + span { outline: 3px solid var(--ytg-signal); }

.ytg-consent { display: flex; gap: 12px; align-items: flex-start; margin: 6px 0 20px; font-size: 14px; color: var(--ytg-text-2); line-height: 1.5; cursor: pointer; }
.ytg-consent input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ytg-signal-dark); cursor: pointer; }
.ytg-formnote { margin: 12px 0 0; font-size: 13.5px; color: var(--ytg-steel); text-align: center; }

.ytg-formmsg { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; margin-bottom: 18px; border-radius: var(--ytg-radius-sm); font-size: 16px; line-height: 1.5; }
.ytg-formmsg .ytg-icon { margin-top: 1px; }
.ytg-formmsg strong { display: block; }
.ytg-formmsg--ok { background: var(--ytg-green-tint); color: #0f5a2b; border: 1px solid #bfe2ca; }
.ytg-formmsg--err { background: var(--ytg-red-tint); color: #8e1c1c; border: 1px solid #f3c3c3; }

.ytg-quote__aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--ytg-header-h) + 20px); }
.ytg-aside-card { padding: 22px; background: #fff; border: 1px solid var(--ytg-line); border-radius: var(--ytg-radius); }
.ytg-aside-card h3 { font-size: 22px; text-transform: uppercase; margin: 0 0 14px; }
.ytg-aside-card--dark { background: var(--ytg-asphalt); border-color: var(--ytg-asphalt); color: #c9ced6; }
.ytg-aside-card--dark h3 { color: #fff; }
.ytg-aside-card--dark .ytg-checklist li { margin: 10px 0; }
.ytg-mini-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.ytg-mini-steps li { position: relative; padding-left: 44px; margin-bottom: 16px; counter-increment: s; }
.ytg-mini-steps li:last-child { margin-bottom: 0; }
.ytg-mini-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--ytg-signal); color: var(--ytg-asphalt); font-family: var(--ytg-font-head); font-weight: 800; font-size: 18px; }
.ytg-mini-steps strong { display: block; color: var(--ytg-asphalt); font-size: 16px; }
.ytg-mini-steps span { display: block; font-size: 14.5px; color: var(--ytg-text-2); }

.ytg-contact { margin: 24px 0; font-size: 16px; line-height: 1.5; }
.ytg-contact .ytg-form { padding: 24px; background: #faf9f6; border: 1px solid var(--ytg-line); border-radius: var(--ytg-radius); }

/* =========================================================================
   15. COMMENTS
   ========================================================================= */
.ytg-comments { margin-top: 48px; padding: clamp(22px, 3vw, 34px); background: #fff; border: 1px solid var(--ytg-line); border-radius: var(--ytg-radius); }
.ytg-comments .ytg-section__title { font-size: 30px; margin-bottom: 18px; }
.ytg-comments__list, .ytg-comments__list .children { list-style: none; margin: 0; padding: 0; }
.ytg-comments__list .children { margin-left: clamp(16px, 4vw, 48px); }
.ytg-comments__list .comment-body { padding: 18px 0; border-bottom: 1px solid var(--ytg-line); }
.ytg-comments .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.ytg-comments .comment-author img { border-radius: 50%; }
.ytg-comments .comment-author .says { display: none; }
.ytg-comments .comment-metadata { font-size: 13px; margin: 4px 0 8px 54px; }
.ytg-comments .comment-metadata a { color: var(--ytg-steel); text-decoration: none; }
.ytg-comments .comment-content { margin-left: 54px; font-size: 16px; }
.ytg-comments .reply { margin-left: 54px; }
.ytg-comments .comment-reply-link { font-size: 14px; font-weight: 700; }
.ytg-comments .bypostauthor > .comment-body .fn::after { content: "Author"; margin-left: 8px; padding: 1px 8px; border-radius: 99px; background: var(--ytg-hazard); color: var(--ytg-asphalt); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
.comment-form { display: grid; gap: 14px; }
.comment-form p { margin: 0; }
.comment-form label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.comment-form .comment-form-cookies-consent label { font-weight: 500; }

/* =========================================================================
   16. ADS
   ========================================================================= */
.ytg-ad { margin: 28px 0; text-align: center; }
.ytg-ad__label { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ytg-steel-2); }
.ytg-ad__slot { min-height: 90px; }
.ytg-sidebar .ytg-ad { margin: 0; padding: 14px; background: #fff; border: 1px solid var(--ytg-line); border-radius: var(--ytg-radius); }

/* =========================================================================
   17. FOOTER
   ========================================================================= */
.ytg-footer { background: #0f1115; color: #9ea6b1; font-size: 15.5px; margin-top: 0; }
.ytg-footer > .ytg-container { padding-top: 56px; }
.ytg-footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; }
.ytg-footer__grid:has(> :nth-child(5)) { grid-template-columns: 1.6fr repeat(4, 1fr); }
.ytg-footer__brand p { margin: 16px 0 0; max-width: 44ch; line-height: 1.6; }
.ytg-footer h4 { color: #fff; font-size: 17px; letter-spacing: .12em; text-transform: uppercase; margin: 6px 0 16px; }
.ytg-footer ul { list-style: none; margin: 0; padding: 0; }
.ytg-footer li { margin: 0 0 9px; }
.ytg-footer a { color: #d4d9e0; text-decoration: none; }
.ytg-footer a:hover { color: var(--ytg-signal); }
.ytg-footer__contact { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.ytg-social { display: flex; gap: 8px; margin-top: 20px !important; }
.ytg-social li { margin: 0; }
.ytg-social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid #2c323b; color: #fff; }
.ytg-social a:hover { background: var(--ytg-signal); border-color: var(--ytg-signal); color: var(--ytg-asphalt); }
.ytg-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 44px; padding: 22px 0 28px; border-top: 1px solid #23282f; font-size: 13.5px; }
.ytg-disclaimer { max-width: 80ch; color: #7f8893; }
.ytg-fwidget { color: inherit; }

.ytg-totop { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: var(--ytg-asphalt); color: var(--ytg-hazard); box-shadow: var(--ytg-shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .2s; }
.ytg-totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.ytg-totop:hover { background: var(--ytg-signal); color: var(--ytg-asphalt); }

/* =========================================================================
   18. EMPTY STATES, 404, PAGINATION
   ========================================================================= */
.ytg-empty { grid-column: 1 / -1; padding: 48px 24px; text-align: center; background: #fff; border: 2px dashed var(--ytg-line-2); border-radius: var(--ytg-radius); }
.ytg-empty > .ytg-icon { color: var(--ytg-signal); margin: 0 auto 12px; display: block; }
.ytg-empty h2 { font-size: 30px; text-transform: uppercase; }
.ytg-empty p { max-width: 52ch; margin: 0 auto 18px; color: var(--ytg-text-2); }
.ytg-empty__search { max-width: 520px; margin: 0 auto 18px; }

.ytg-404 { padding: clamp(56px, 10vw, 120px) 0; text-align: center; }
.ytg-404__plate { display: inline-flex; flex-direction: column; align-items: center; padding: 14px 34px 10px; margin-bottom: 28px; border: 4px solid var(--ytg-asphalt); border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 6px var(--ytg-asphalt), 8px 8px 0 var(--ytg-hazard); font-family: var(--ytg-font-head); font-weight: 800; font-size: clamp(64px, 12vw, 120px); line-height: .9; letter-spacing: .06em; color: var(--ytg-asphalt); }
.ytg-404__plate span { font-size: 16px; letter-spacing: .3em; color: var(--ytg-signal-ink); }
.ytg-404 h1 { font-size: clamp(36px, 5vw, 56px); text-transform: uppercase; }
.ytg-404 p { color: var(--ytg-text-2); max-width: 54ch; margin-left: auto; margin-right: auto; }
.ytg-404__search { max-width: 560px; margin: 24px auto; }
.ytg-404__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.ytg-pagination { margin-top: 36px; }
.ytg-pagination .nav-links, .ytg-pagination--inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ytg-pagination .page-numbers, .ytg-pagination--inner .post-page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: var(--ytg-radius-sm); background: #fff; border: 1px solid var(--ytg-line); color: var(--ytg-asphalt); font-weight: 700; text-decoration: none; }
.ytg-pagination .page-numbers:hover { border-color: var(--ytg-asphalt); }
.ytg-pagination .page-numbers.current, .ytg-pagination--inner .current { background: var(--ytg-asphalt); border-color: var(--ytg-asphalt); color: #fff; }
.ytg-pagination .dots { border: 0; background: transparent; }

/* =========================================================================
   19. WORDPRESS CORE / BLOCKS
   ========================================================================= */
.alignleft { float: left; margin: .3em 1.5em 1em 0; max-width: 50%; }
.alignright { float: right; margin: .3em 0 1em 1.5em; max-width: 50%; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.ytg-content .alignwide, .ytg-content .alignfull { max-width: 100%; }
.ytg-canvas .alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.ytg-canvas > *:not(.alignfull) { max-width: var(--ytg-max); margin-left: auto; margin-right: auto; padding-left: var(--ytg-gutter); padding-right: var(--ytg-gutter); }
.gallery, .wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.wp-block-gallery.has-nested-images { display: flex; }
.wp-block-image img { border-radius: var(--ytg-radius-sm); }
.wp-block-embed__wrapper iframe { width: 100%; border-radius: var(--ytg-radius-sm); }
.wp-block-separator { border: 0; height: 2px; background: var(--ytg-line); }
.wp-block-button__link { font-family: var(--ytg-font-head); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border-radius: var(--ytg-radius-sm); background: var(--ytg-asphalt); color: #fff; padding: 12px 24px; text-decoration: none; }
.wp-block-button__link:hover { color: #fff; filter: brightness(1.2); }
.is-style-outline > .wp-block-button__link { background: transparent; color: var(--ytg-asphalt); border: 2px solid currentColor; }
.wp-block-details { border: 1px solid var(--ytg-line); border-radius: var(--ytg-radius-sm); padding: 14px 18px; margin: 10px 0; background: #fff; }
.wp-block-details summary { cursor: pointer; font-weight: 700; color: var(--ytg-asphalt); }
.wp-block-details[open] summary { margin-bottom: 8px; }
.has-asphalt-color { color: var(--ytg-asphalt) !important; } .has-asphalt-background-color { background-color: var(--ytg-asphalt) !important; }
.has-signal-color { color: var(--ytg-signal) !important; } .has-signal-background-color { background-color: var(--ytg-signal) !important; }
.has-hazard-color { color: var(--ytg-hazard) !important; } .has-hazard-background-color { background-color: var(--ytg-hazard) !important; }
.has-steel-color { color: var(--ytg-steel) !important; } .has-steel-background-color { background-color: var(--ytg-steel) !important; }
.has-concrete-color { color: var(--ytg-bg) !important; } .has-concrete-background-color { background-color: var(--ytg-bg) !important; }
.has-white-color { color: #fff !important; } .has-white-background-color { background-color: #fff !important; }
.sticky .ytg-card__title a::before { content: "★ "; color: var(--ytg-signal); }

/* =========================================================================
   20. RESPONSIVE
   ========================================================================= */
@media (max-width: 1360px) {
  .ytg-header__inner { gap: 14px; }
  .ytg-nav__list a { padding: 10px 8px; font-size: 16px; letter-spacing: .03em; }
}
@media (max-width: 1080px) {
  .ytg-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 28px; }
  .ytg-parts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ytg-quote { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 1180px) {
  .ytg-menu-toggle { display: inline-flex; }
  .ytg-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
  .ytg-nav {
    position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--ytg-header-h)); height: calc(100dvh - var(--ytg-header-h)); z-index: 99;
    border-top: 1px solid var(--ytg-line); padding-bottom: 96px !important;
    display: flex; flex-direction: column; justify-content: flex-start; gap: 16px;
    padding: 18px var(--ytg-gutter) 32px; background: #fff; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .2s;
  }
  .ytg-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .ytg-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .ytg-nav__list > li { border-bottom: 1px solid var(--ytg-line); }
  .ytg-nav__list a { padding: 16px 4px; font-size: 22px; }
  .ytg-nav__list .current-menu-item > a, .ytg-nav__list .current-post-ancestor > a, .ytg-nav__list .current-menu-ancestor > a { box-shadow: none; color: var(--ytg-signal-ink); }
  .ytg-nav__list .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 10px 12px; }
  .ytg-nav__cta-mobile { display: flex; }
  .ytg-menu-open { overflow: hidden; }
  .ytg-header__inner { justify-content: space-between; }
}
@media (max-width: 980px) {
  :root { --ytg-header-h: 64px; }
  .ytg-hero__inner { grid-template-columns: minmax(0, 1fr); }
  .ytg-hero__finder { max-width: 560px; }
  .ytg-layout { grid-template-columns: minmax(0, 1fr); }
  .ytg-sidebar__inner { position: static; }
  .ytg-sidebar { display: grid; }
  .ytg-latest { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ytg-latest .ytg-card--feature { grid-column: 1 / -1; grid-row: auto; }
  .ytg-latest .ytg-card:nth-child(n+6) { display: none; }
  .ytg-steps { grid-template-columns: minmax(0, 1fr); }
  .ytg-topics { grid-template-columns: minmax(0, 1fr); }
  .ytg-quote { grid-template-columns: minmax(0, 1fr); }
  .ytg-quote__aside { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .ytg-footer__grid, .ytg-footer__grid:has(> :nth-child(5)) { grid-template-columns: 1fr 1fr; }
  .ytg-footer__brand { grid-column: 1 / -1; }
  .ytg-cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ytg-cards--3 .ytg-card:nth-child(3) { display: none; }
}
@media (max-width: 782px) {
  .admin-bar .ytg-header { top: 46px; }
}
@media (max-width: 680px) {
  body { font-size: 16.5px; }
  .ytg-topbar__links { display: none; }
  .ytg-topbar__inner { justify-content: center; text-align: center; font-size: 13px; padding-top: 6px; padding-bottom: 6px; }
  .ytg-header__cta { display: none; }
  .ytg-logo__word { font-size: 23px; }
  .ytg-logo__mark svg { width: 32px; height: 32px; }
  .ytg-hero__actions .ytg-btn { flex: 1 1 100%; }
  .ytg-finder { padding: 18px; }
  .ytg-section__head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .ytg-parts { gap: 10px; }
  .ytg-part { padding: 16px; }
  .ytg-part__icon { width: 46px; height: 46px; }
  .ytg-part__name { font-size: 19px; }
  .ytg-part__desc { display: none; }
  .ytg-latest, .ytg-cards, .ytg-cards--3 { grid-template-columns: minmax(0, 1fr); }
  .ytg-cards--3 .ytg-card:nth-child(3) { display: flex; }
  .ytg-topic-grid { grid-template-columns: minmax(0, 1fr); }
  .ytg-grid2, .ytg-grid3 { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ytg-quote__aside { grid-template-columns: minmax(0, 1fr); }
  .ytg-article { padding: 20px 18px; border-radius: var(--ytg-radius-sm); margin-left: calc(var(--ytg-gutter) * -.5); margin-right: calc(var(--ytg-gutter) * -.5); }
  .ytg-content { font-size: 17px; }
  .ytg-article__footer { flex-direction: column; align-items: flex-start; }
  .ytg-authorbox { grid-template-columns: 64px 1fr; gap: 14px; padding: 18px; }
  .ytg-authorbox__avatar img { width: 64px; height: 64px; }
  .ytg-postnav { grid-template-columns: minmax(0, 1fr); }
  .ytg-postnav__item--next { text-align: left; }
  .ytg-footer__grid, .ytg-footer__grid:has(> :nth-child(5)) { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .ytg-band { flex-direction: column; align-items: flex-start; }
  .ytg-band .ytg-btn { width: 100%; }
  .ytg-cta .ytg-btn { width: 100%; }
  .ytg-page { padding: 22px 18px; }
  .ytg-searchform .ytg-btn { padding: 10px 14px; }
  .alignleft, .alignright { float: none; margin: 1em 0; max-width: 100%; }
  .ytg-breadcrumbs [aria-current] { max-width: 24ch; }
}
@media (max-width: 380px) {
  .ytg-finder__fields { grid-template-columns: minmax(0, 1fr); }
  .ytg-parts { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* =========================================================================
   21. PRINT
   ========================================================================= */
@media print {
  .ytg-topbar, .ytg-header, .ytg-sidebar, .ytg-footer, .ytg-share, .ytg-cta, .ytg-ad, .ytg-related, .ytg-postnav, .ytg-comments, .ytg-totop, .ytg-progress, .ytg-breadcrumbs { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .ytg-layout { display: block; }
  .ytg-article { border: 0; padding: 0; }
  .ytg-content a::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
