:root {
  --cream: #fbf3e7;
  --cream-soft: #fffaf3;
  --navy: #1b4965;
  --navy-deep: #0f3654;
  --ink: #1b2b3a;
  --muted: #5c6f7d;
  --teal: #2a9d8f;
  --gold: #f4a94c;
  --coral: #e76f51;
  --white: #fff;
  --line: rgba(27, 73, 101, .15);
  --shadow: 0 18px 48px rgba(27, 43, 58, .1);
  --radius: 22px;
  --container: 1160px;
  --reading: 760px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream-soft);
  color: var(--ink);
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--coral); }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
[hidden] { display: none !important; }
.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.reading-width { width: min(100% - 32px, var(--reading)); margin-inline: auto; }
.skip-link {
  position: fixed; z-index: 100; top: 12px; left: 12px; transform: translateY(-160%);
  border-radius: 999px; background: var(--navy-deep); color: var(--white); padding: 10px 16px;
}
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid var(--line); background: rgba(255, 250, 243, .94); backdrop-filter: blur(12px); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy-deep); text-decoration: none; font-family: "Baloo 2", sans-serif; font-size: 1.2rem; font-weight: 800; }
.brand img { width: 36px; height: 36px; }
.brand span small { display: block; margin-top: -7px; color: var(--teal); font-family: "Nunito", sans-serif; font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 18px; }
.site-nav a { color: var(--navy-deep); font-weight: 800; text-decoration: none; }
.site-nav .nav-cta { border-radius: 999px; background: var(--navy-deep); color: var(--white); padding: 9px 15px; }

.blog-hero { position: relative; overflow: hidden; padding: 76px 0 62px; background: var(--cream); }
.blog-hero::after { content: ""; position: absolute; width: 330px; height: 330px; right: -150px; bottom: -190px; border-radius: 50%; background: rgba(42, 157, 143, .13); }
.hero-grid { display: grid; gap: 34px; align-items: center; }
.eyebrow, .category-label { color: var(--teal); font-size: .78rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { margin: 0 0 .55em; color: var(--navy-deep); font-family: "Baloo 2", "Nunito", sans-serif; line-height: 1.08; }
h1 { font-size: clamp(2.45rem, 8vw, 4.8rem); }
h2 { font-size: clamp(1.75rem, 5vw, 2.55rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.15em; }
.hero-copy > p { max-width: 690px; color: #315267; font-size: 1.12rem; font-weight: 700; }
.hero-card { transform: rotate(1.5deg); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: 12px; box-shadow: var(--shadow); }
.hero-card img { width: 100%; aspect-ratio: 4 / 3; border-radius: calc(var(--radius) - 7px); object-fit: contain; background: var(--cream); }

.search-panel { position: relative; z-index: 2; margin-top: -30px; }
.search-shell { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: 18px; box-shadow: var(--shadow); }
.search-row { display: grid; gap: 12px; }
.search-field { position: relative; }
.search-field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.search-field input { width: 100%; min-height: 54px; border: 1px solid var(--line); border-radius: 14px; background: var(--cream-soft); color: var(--ink); padding: 12px 16px; }
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 3px; }
.filter-button { flex: 0 0 auto; min-height: 44px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--navy); padding: 8px 14px; cursor: pointer; font-weight: 900; }
.filter-button[aria-pressed="true"] { border-color: var(--teal); background: var(--teal); color: var(--white); }

.articles-section { padding: 72px 0 88px; }
.section-heading { max-width: 680px; margin-bottom: 28px; }
.section-heading p { color: var(--muted); }
.article-grid { display: grid; gap: 22px; }
.article-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.article-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--cream); }
.card-body { padding: 22px; }
.article-card h2 { font-size: 1.5rem; }
.article-card h2 a { color: inherit; text-decoration: none; }
.article-card p { color: var(--muted); }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--muted); font-size: .86rem; font-weight: 800; }
.empty-state { border: 1px dashed rgba(27, 73, 101, .35); border-radius: var(--radius); background: var(--cream); padding: 36px 22px; text-align: center; }
.empty-state p { max-width: 610px; margin-inline: auto; color: var(--muted); }

.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.82); padding: 48px 0 28px; }
.footer-grid { display: grid; gap: 30px; }
.site-footer .brand, .site-footer a, .site-footer h2 { color: var(--white); }
.site-footer h2 { font-size: 1.15rem; }
.footer-links { display: grid; gap: 8px; }
.footer-bottom { margin-top: 30px; border-top: 1px solid rgba(255,255,255,.14); padding-top: 20px; font-size: .86rem; }

.article-header { padding: 46px 0 28px; background: var(--cream); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 26px; color: var(--muted); font-size: .9rem; }
.article-header h1 { max-width: 930px; font-size: clamp(2.35rem, 7vw, 4.25rem); }
.article-deck { max-width: 800px; color: #315267; font-size: 1.15rem; font-weight: 700; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; color: var(--muted); font-size: .92rem; font-weight: 800; }
.draft-badge { display: inline-flex; border-radius: 999px; background: #fff0c7; color: #704e00; padding: 6px 11px; font-size: .78rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.featured-image { width: min(100% - 32px, 980px); margin: 28px auto 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: 12px; box-shadow: var(--shadow); }
.featured-image img { width: 100%; max-height: 570px; border-radius: calc(var(--radius) - 7px); object-fit: contain; background: var(--cream); }
.featured-image figcaption { padding: 10px 6px 0; color: var(--muted); font-size: .84rem; }

.article-layout { display: grid; gap: 36px; padding: 52px 0 84px; }
.article-body { min-width: 0; }
.article-body > p:first-child { color: var(--ink); font-size: 1.18rem; font-weight: 700; }
.article-body h2 { margin-top: 1.6em; scroll-margin-top: 95px; }
.article-body h3 { margin-top: 1.4em; scroll-margin-top: 95px; }
.article-body p, .article-body li { font-size: 1.04rem; }
.article-body ul, .article-body ol { padding-left: 1.35rem; }
.article-body li { margin-bottom: .55rem; }
.inline-related { margin: 28px 0; border-radius: 14px; background: var(--cream); padding: 16px 18px; color: var(--navy); font-weight: 800; }
.callout { margin: 28px 0; border-left: 5px solid var(--teal); border-radius: 0 16px 16px 0; background: #eaf8f5; padding: 20px 22px; }
.callout strong { color: var(--navy-deep); }
.article-figure { margin: 34px 0; }
.article-figure img { width: 100%; border: 1px solid var(--line); border-radius: 18px; background: var(--cream); object-fit: contain; }
.article-figure figcaption { margin-top: 8px; color: var(--muted); font-size: .84rem; }
.toc { border: 1px solid var(--line); border-radius: 18px; background: var(--white); padding: 20px; }
.toc h2 { margin-top: 0; font-size: 1.2rem; }
.toc ol { margin-bottom: 0; }
.faq-list details { margin-bottom: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); padding: 14px 16px; }
.faq-list summary { color: var(--navy-deep); cursor: pointer; font-weight: 900; }
.faq-list details p { margin: 10px 0 0; }
.faq-entry { margin-bottom: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); padding: 16px; }
.faq-entry h3 { margin-bottom: 6px; font-size: 1.15rem; }
.faq-entry p { margin-bottom: 0; }
.references { font-size: .95rem; overflow-wrap: anywhere; }
.table-scroll { margin: 24px 0; overflow-x: auto; }
.article-body table { width: 100%; min-width: 620px; border-collapse: collapse; background: var(--white); }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
.article-body th { background: var(--cream); color: var(--navy-deep); font-weight: 900; }

.product-cta { margin: 38px 0; border: 1px solid rgba(231,111,81,.35); border-radius: var(--radius); background: #fff3ee; padding: 22px; }
.product-cta-grid { display: grid; gap: 20px; align-items: center; }
.product-cta img { width: 100%; max-height: 250px; object-fit: contain; }
.product-cta h2 { margin-top: 0; }
.price { color: var(--coral); font-family: "Baloo 2", sans-serif; font-size: 2rem; font-weight: 800; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; border-radius: 999px; background: var(--coral); color: var(--white); padding: 12px 20px; text-decoration: none; font-weight: 900; box-shadow: 0 13px 26px rgba(231,111,81,.22); }
.button:hover { background: #d96045; color: var(--white); }
.commercial-note { margin-top: 10px; color: var(--muted); font-size: .8rem; }
.photo-credit { margin-top: 8px; color: var(--muted); font-size: .78rem; }
.related { margin-top: 44px; border-top: 1px solid var(--line); padding-top: 30px; }
.related-list { display: grid; gap: 12px; }
.related-item { border: 1px solid var(--line); border-radius: 14px; background: var(--white); padding: 16px; }
.related-item span { display: block; color: var(--muted); font-size: .85rem; }
.article-aside { align-self: start; }
.aside-card { border: 1px solid var(--line); border-radius: 18px; background: var(--white); padding: 20px; box-shadow: var(--shadow); }
.aside-card p { color: var(--muted); font-size: .92rem; }

.consent-banner { position: fixed; z-index: 50; right: 14px; bottom: 14px; left: 14px; max-width: 620px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); padding: 18px; box-shadow: 0 24px 70px rgba(15,54,84,.24); }
.consent-banner p { margin-bottom: 12px; color: var(--muted); font-size: .9rem; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.consent-actions button { min-height: 42px; border: 1px solid var(--navy); border-radius: 999px; padding: 8px 14px; cursor: pointer; font-weight: 900; }
.consent-accept { background: var(--navy); color: var(--white); }
.consent-reject { background: var(--white); color: var(--navy); }

@media (min-width: 700px) {
  .hero-grid { grid-template-columns: 1.2fr .8fr; }
  .search-row { grid-template-columns: minmax(220px, 320px) 1fr; align-items: center; }
  .filters { flex-wrap: wrap; justify-content: flex-end; overflow: visible; }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .product-cta-grid { grid-template-columns: 220px 1fr; }
  .related-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 980px) {
  .article-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: minmax(0, var(--reading)) 260px; justify-content: center; }
  .article-aside { position: sticky; top: 96px; }
}

@media (max-width: 620px) {
  .header-inner { gap: 8px; }
  .brand { gap: 7px; font-size: .98rem; white-space: nowrap; }
  .brand img { width: 32px; height: 32px; }
  .brand span small { display: none; }
  .site-nav a:not(.nav-cta) { display: none; }
  .site-nav .nav-cta { padding: 8px 10px; font-size: .76rem; white-space: nowrap; }
  .article-header h1 { font-size: 2.15rem; overflow-wrap: break-word; }
  .consent-banner { max-height: calc(100vh - 28px); overflow-y: auto; }
  .consent-actions > button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
