* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
}
a { color: var(--color-primary); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { color: var(--color-secondary); }
img, iframe { max-width: 100%; }
img { height: auto; }
.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 20;
  background: var(--color-text);
  color: white;
  padding: .6rem .8rem;
}
.skip-link:focus { top: 1rem; }
.site-header {
  background: rgba(251,250,246,.96);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: .85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  color: var(--color-text);
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}
.brand-logo {
  display: block;
  width: min(208px, 54vw);
  height: auto;
}
.nav-links {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--color-text);
  font-size: .94rem;
  font-weight: 650;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-block: .2rem;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}
.nav-toggle { display: none; min-width: 48px; min-height: 48px; }
.share-bar {
  margin: .55rem 0 1.25rem;
  padding: 0;
  display: flex;
  align-items: center;
  gap: .35rem;
  flex-wrap: wrap;
  color: var(--color-muted);
  font-size: .78rem;
}
.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: .28rem .52rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: transparent;
  color: var(--color-muted);
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}
.share-button[data-share-native] {
  color: var(--color-primary);
  background: #e8f1eb;
  border-color: #b7d2c3;
}
.share-button:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-surface);
}
.content-shell {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}
.article {
  max-width: var(--reading-width);
  margin: 0 auto;
}
.eyebrow {
  color: var(--color-secondary);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.breadcrumbs {
  font-size: .9rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
}
.article-hero {
  margin-bottom: 1.6rem;
}
.lede {
  font-size: 1.18rem;
  color: var(--color-text);
}
.icp-line,
.byline,
.affiliate-note {
  color: var(--color-muted);
}
.toc {
  display: grid;
  gap: .35rem;
  padding: 1rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: var(--radius);
  margin: 1.4rem 0;
}
.toc a {
  color: var(--color-text);
}
.proof-panel,
.trust-box {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1rem;
}
.media-figure {
  margin: 1.2rem 0;
}
.media-figure img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.media-embed-block {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-surface);
}
.media-figure figcaption,
.media-caption {
  margin: .55rem 0 0;
  color: var(--color-muted);
  font-size: .92rem;
}
.media-embed-block {
  padding: 0;
}
.media-embed {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius);
  background: var(--color-bg);
}
.lite-video {
  width: 100%;
  max-width: 100%;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  min-height: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(45,106,79,.16), rgba(196,127,44,.13)),
    var(--color-surface);
}
.lite-video-button {
  min-height: 48px;
  padding: .72rem 1rem;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius);
  background: var(--color-primary);
  color: white;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.lite-video-button:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
}
@media (max-width: 520px) {
  .lite-video-button {
    max-width: calc(100% - 2rem);
    white-space: normal;
  }
}
.diagnostic-chart {
  display: grid;
  gap: .75rem;
  margin-top: 1rem;
}
.diagnostic-chart div {
  display: grid;
  gap: .25rem;
}
.diagnostic-chart span {
  font-weight: 800;
}
.diagnostic-chart b {
  display: block;
  min-width: 3.5rem;
  padding: .35rem .5rem;
  border-radius: var(--radius);
  background: var(--color-primary);
  color: white;
  font-size: .9rem;
}
.diagnostic-chart .bar-10 { width: 10%; }
.diagnostic-chart .bar-25 { width: 25%; }
.diagnostic-chart .bar-35 { width: 35%; }
.diagnostic-chart .bar-40 { width: 40%; }
.diagnostic-chart .bar-45 { width: 45%; }
.diagnostic-chart .bar-60 { width: 60%; }
.diagnostic-chart .bar-65 { width: 65%; }
.diagnostic-chart .bar-75 { width: 75%; }
.diagnostic-chart .bar-80 { width: 80%; }
.diagnostic-chart .bar-85 { width: 85%; }
.diagnostic-chart .bar-95 { width: 95%; }
.step-list li {
  margin-bottom: .75rem;
}
.product-grid,
.internal-link-grid,
.path-grid,
.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.internal-link-grid a,
.path-grid a,
.method-grid article {
  display: grid;
  gap: .25rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: .85rem;
  text-decoration: none;
}
.internal-link-grid span,
.path-grid span {
  color: var(--color-muted);
  font-size: .92rem;
}
.architecture-home .content-shell {
  max-width: 1120px;
}
.home-hub .article-hero h1 {
  font-size: clamp(2.35rem, 4.2vw, 4.7rem);
}
.home-hub {
  max-width: 1120px;
}
.home-hub .home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.home-hub .home-hero .media-figure {
  margin: 0;
}
.home-hub .home-hero .media-figure img {
  box-shadow: 0 18px 40px rgba(31, 43, 35, .12);
}
.home-hub > .share-bar,
.home-hub > .home-diagnostic,
.home-hub > #method,
.home-hub > #sources,
.home-hub > #faq {
  max-width: var(--reading-width);
  margin-left: auto;
  margin-right: auto;
}
.source-matrix {
  overflow-x: auto;
}
.media-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.media-strip figure {
  margin: 0;
}
.media-strip img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--color-surface);
}
.media-strip figcaption {
  color: var(--color-muted);
  font-size: .92rem;
  margin-top: .35rem;
}
.method-grid article p {
  margin: 0;
  color: var(--color-muted);
}
.source-list li {
  margin-bottom: .5rem;
}
.back-to-top {
  text-align: right;
}
h1, h2, h3, h4 {
  color: var(--color-text);
  font-family: var(--font-heading);
  line-height: 1.15;
  margin: 1.9rem 0 .7rem;
}
h1 { font-size: clamp(2.1rem, 7vw, 4.3rem); max-width: 950px; }
h2 { font-size: 1.8rem; border-top: 1px solid var(--color-border); padding-top: 1.4rem; }
h3 { font-size: 1.24rem; }
p, li { color: var(--color-text); }
.hero-highlight { color: var(--color-primary); }
section {
  margin-block: 1.2rem;
}
.button,
.wp-block-button__link,
.product-card-btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: .72rem 1rem;
  border-radius: var(--radius);
  background: var(--color-primary);
  color: white;
  font-weight: 800;
  text-decoration: none;
}
.button:hover,
.wp-block-button__link:hover,
.product-card-btn:hover {
  background: var(--color-secondary);
  color: white;
}
.product-card,
.product-box {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 1rem 0;
}
.product-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: white;
  border-radius: var(--radius);
  margin-bottom: .85rem;
}
.product-card-btn,
.product-card .button {
  background: var(--color-primary);
  color: #fff;
  border: 2px solid var(--color-primary);
}
.product-card-btn:hover,
.product-card .button:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: #fff;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
}
th, td {
  border: 1px solid var(--color-border);
  padding: .7rem;
  text-align: left;
  vertical-align: top;
}
.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 2rem 1rem;
}
.footer-grid {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-grid nav {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
}
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}
@media (max-width: 760px) {
  .nav { align-items: flex-start; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links { display: none; width: 100%; padding-top: .5rem; }
  .nav-links.is-open { display: grid; }
  .nav { flex-wrap: wrap; }
  .home-hub .home-hero { grid-template-columns: 1fr; }
  h1 { font-size: 2.2rem; }
}

.footer-pref-button {
  border: 0;
  background: transparent;
  color: var(--color-primary);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: .18em;
  cursor: pointer;
  padding: 0;
}
.cookie-pref-button {
  min-height: 44px;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius);
  background: var(--color-primary);
  color: #fff;
  padding: .62rem .9rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.cookie-pref-button:hover { background: var(--color-secondary); }
.cookie-consent {
  position: fixed;
  z-index: 40;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 960px;
  margin-inline: auto;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: 0 18px 54px rgba(26, 35, 34, .18);
}
.cookie-consent p {
  margin: .25rem 0 0;
  font-size: .94rem;
}
.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cookie-actions button {
  min-height: 44px;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-primary);
  padding: .62rem .82rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.cookie-actions button:hover { background: var(--color-bg); }
.cookie-actions [data-cookie-choice="accept"] {
  background: var(--color-primary);
  color: #fff;
}
.cookie-actions [data-cookie-choice="accept"]:hover { background: var(--color-secondary); }
@media (max-width: 680px) {
  .cookie-consent { display: grid; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions button { flex: 1 1 150px; }
}
