/* ==========================================================================
   Exact Machine Service — Blog
   Self-contained stylesheet. Nothing is inherited from the root site.
   Brand: navy #0b4580 · yellow #f8d009 · Jost (display) + Inter (text)
   ========================================================================== */

/* --------------------------------------------------------------- 1. Tokens */
:root {
  --navy:        #0b4580;
  --navy-deep:   #072c53;
  --navy-ink:    #04203e;
  --yellow:      #f8d009;
  --yellow-dark: #d9b400;

  --ink:         #16202b;
  --body:        #45525f;
  --muted:       #666f7a;   /* 4.75:1 on --surface-alt, clears WCAG AA everywhere it is used */
  --line:        #e2e7ec;
  --line-soft:   #eef1f4;
  --surface:     #ffffff;
  --surface-alt: #f5f7f9;
  --surface-sub: #fafbfc;

  --font-display: 'Jost', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-text:    'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;

  --wrap:      1200px;
  --wrap-slim: 1000px;
  --gutter:    24px;

  --r-sm: 4px;
  --r:    8px;
  --r-lg: 14px;

  --shadow-sm: 0 1px 2px rgba(16, 32, 48, .06), 0 2px 6px rgba(16, 32, 48, .05);
  --shadow:    0 2px 6px rgba(16, 32, 48, .06), 0 12px 28px -10px rgba(16, 32, 48, .18);
  --shadow-lg: 0 4px 12px rgba(16, 32, 48, .08), 0 28px 60px -20px rgba(11, 69, 128, .32);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------------------------------------------------------------- 2. Reset */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--body);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--yellow-dark); }
button { font: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4, h5 { margin: 0; font-family: var(--font-display); color: var(--ink); font-weight: 600; line-height: 1.22; }
p { margin: 0 0 1.15em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

::selection { background: var(--yellow); color: #000; }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 10000;
  background: var(--yellow); color: #000; font-weight: 700;
  padding: 12px 20px; border-radius: 0 0 var(--r) var(--r);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; color: #000; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-slim { max-width: var(--wrap-slim); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------- 3. Header */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 900;
  background: transparent;
}

.header-top { padding: 18px 0 14px; }
.header-top-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
}

.brand { display: inline-block; flex: none; }
.brand img { width: 180px; max-width: 46vw; }

.header-contact { display: flex; gap: 34px; list-style: none; }
.header-contact a {
  display: flex; align-items: center; gap: 12px;
  color: #fff; line-height: 1.25;
}
.header-contact a:hover { color: #fff; }
.header-contact a:hover .hc-icon { background: #fff; }
.hc-icon {
  flex: none;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--yellow); color: #000;
  display: grid; place-items: center;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.header-contact a:hover .hc-icon { transform: translateY(-2px); }
.hc-icon svg { width: 22px; height: 22px; }
.hc-label {
  display: block; font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(255, 255, 255, .8); font-weight: 400;
}
.hc-value { display: block; font-size: 17px; font-weight: 700; color: #fff; }

/* Nav bar */
.header-nav {
  background: linear-gradient(90deg, rgba(11, 69, 128, 1) 62%, rgba(248, 208, 9, .30) 100%);
}
.header-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-list { display: flex; list-style: none; flex-wrap: wrap; }
.nav-list > li > a {
  display: inline-block;
  padding: 16px 0; margin-right: 26px;
  color: #fff; font-weight: 700; font-size: 14.5px; letter-spacing: .02em;
  position: relative;
}
.nav-list > li:last-child > a { margin-right: 0; }
.nav-list > li > a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 8px;
  height: 3px; background: var(--yellow);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav-list > li > a:hover { color: #fff; }
.nav-list > li > a:hover::after,
.nav-list > li.is-active > a::after { transform: scaleX(1); }
.nav-list > li.is-active > a { color: var(--yellow); }

/* Contact links live in the slide-out drawer only. */
.nav-mobile-contact { display: none; }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: 10px;
  color: #fff; margin-left: auto;
}
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

/* ----------------------------------------------------------------- 4. Hero */
.page-hero {
  position: relative;
  padding: 200px 0 62px;
  background: var(--navy-deep) url('../img/banner5.jpg') no-repeat center center;
  background-size: cover;
  color: #fff;
  isolation: isolate;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(4, 32, 62, .90) 0%, rgba(7, 44, 83, .78) 46%, rgba(4, 32, 62, .55) 100%);
}
.page-hero-inner { max-width: 800px; }

.breadcrumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  list-style: none; margin-bottom: 20px;
  font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}
.breadcrumbs a { color: rgba(255, 255, 255, .82); }
.breadcrumbs a:hover { color: var(--yellow); }
.breadcrumbs li + li::before { content: '/'; margin-right: 8px; color: rgba(255, 255, 255, .4); }
.breadcrumbs li[aria-current] { color: var(--yellow); }

.page-hero .eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--yellow); margin-bottom: 14px;
}
.page-hero h1 {
  color: #fff;
  font-size: clamp(30px, 4.4vw, 46px);
  letter-spacing: -.015em;
  margin-bottom: 0;
}
.page-hero h1::after {
  content: ''; display: block;
  width: 100px; height: 3px; background: var(--yellow);
  margin: 22px 0 0;
}
.page-hero .hero-sub {
  margin: 20px 0 0;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
  color: rgba(255, 255, 255, .86);
  max-width: 62ch;
}
.hero-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px;
  margin-top: 26px;
  font-size: 14px; color: rgba(255, 255, 255, .82);
}
.hero-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--yellow); }
.hero-meta svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 7px; color: var(--yellow); }

/* -------------------------------------------------------------- 5. Toolbar */
.blog-toolbar {
  position: sticky; top: 0; z-index: 500;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.blog-toolbar-inner {
  display: flex; align-items: center; gap: 20px;
  padding-top: 12px; padding-bottom: 12px;   /* .wrap owns the horizontal gutter */
}

.blog-toolbar-inner > nav { flex: 1 1 auto; min-width: 0; }

.cat-nav {
  display: flex; gap: 8px; list-style: none;
  overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
  flex: 1 1 auto; min-width: 0; padding: 4px 0;
  scroll-snap-type: x proximity;
  scroll-padding-left: 0;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 26px), transparent 100%);
          mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 26px), transparent 100%);
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav a {
  display: inline-block; white-space: nowrap; scroll-snap-align: start;
  padding: 8px 16px; border-radius: 100px;
  font-size: 14px; font-weight: 600; color: var(--body);
  background: var(--surface-alt); border: 1px solid transparent;
  transition: all .18s var(--ease);
}
.cat-nav a:hover { background: #eaeef2; color: var(--navy); }
.cat-nav a .n { opacity: .55; font-weight: 500; margin-left: 5px; font-size: 12.5px; }
.cat-nav li.is-active a {
  background: var(--navy); color: #fff; border-color: var(--navy);
}
.cat-nav li.is-active a .n { opacity: .7; }

.search-box { position: relative; flex: none; width: 260px; }
.search-box svg {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; color: var(--muted); pointer-events: none;
}
.search-box input {
  width: 100%; font: inherit; font-size: 14.5px;
  padding: 10px 14px 10px 38px;
  border: 1px solid var(--line); border-radius: 100px;
  background: var(--surface); color: var(--ink);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.search-box input::placeholder { color: var(--muted); }
.search-box input:focus {
  outline: none; border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11, 69, 128, .12);
}

/* ---------------------------------------------------------------- 6. Cards */
.section { padding: 64px 0; }
.section-sm { padding: 46px 0; }
.section-alt { background: var(--surface-alt); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 34px;
}
.section-head h2 {
  font-size: clamp(23px, 2.6vw, 30px);
  letter-spacing: -.01em;
}
.section-head h2::after {
  content: ''; display: block; width: 56px; height: 3px;
  background: var(--yellow); margin-top: 14px;
}
.section-head .lede { margin: 10px 0 0; color: var(--muted); font-size: 15.5px; max-width: 60ch; }

.card-grid {
  display: grid; gap: 30px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card-media {
  position: relative; display: block;
  aspect-ratio: 16 / 9; background: var(--navy-deep);
  overflow: hidden;
}
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
}
.card:hover .card-media img { transform: scale(1.055); }
.card-cat {
  position: absolute; left: 14px; top: 14px; z-index: 2;
  display: inline-block; padding: 6px 12px;
  background: var(--yellow); color: #000;
  font-family: var(--font-display);
  font-size: 11.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  border-radius: var(--r-sm);
}
.card-cat:hover { background: #fff; color: #000; }

.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card-meta {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 11px; font-weight: 500;
}
.card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); opacity: .7; }
.card h3 {
  font-size: 20px; line-height: 1.32; letter-spacing: -.008em;
  margin-bottom: 10px;
}
.card h3 a { color: var(--ink); background-image: linear-gradient(var(--yellow), var(--yellow)); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .3s var(--ease), color .2s var(--ease); }
.card:hover h3 a { color: var(--navy); background-size: 100% 2px; }
.card p { font-size: 15px; line-height: 1.62; color: var(--body); margin-bottom: 18px; }
.card-more {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  letter-spacing: .06em; text-transform: uppercase; color: var(--navy);
}
.card-more svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.card:hover .card-more svg { transform: translateX(5px); }

/* Featured (first post on page 1) */
.card-feature {
  display: grid; grid-template-columns: 1.15fr 1fr;
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  margin-bottom: 44px;
  transition: box-shadow .3s var(--ease);
}
.card-feature:hover { box-shadow: var(--shadow-lg); }
.card-feature .card-media { aspect-ratio: auto; height: 100%; min-height: 340px; }
.card-feature .card-body { padding: 40px 44px; justify-content: center; }
.card-feature h3 { font-size: clamp(24px, 2.7vw, 33px); line-height: 1.24; margin-bottom: 14px; }
.card-feature p { font-size: 16.5px; }
.feature-flag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--navy);
  margin-bottom: 14px;
}
.feature-flag::before { content: ''; width: 26px; height: 3px; background: var(--yellow); }

/* --------------------------------------------------------- 7. Pagination */
.pagination {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px; margin-top: 56px; list-style: none;
}
.pagination a, .pagination span {
  display: grid; place-items: center;
  min-width: 44px; height: 44px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--r);
  font-weight: 600; font-size: 15px; color: var(--body);
  background: var(--surface);
  transition: all .18s var(--ease);
}
.pagination a:hover { border-color: var(--navy); color: var(--navy); background: #f4f8fd; }
.pagination .is-current { background: var(--navy); border-color: var(--navy); color: #fff; }
.pagination .gap { border: 0; background: none; color: var(--muted); min-width: 24px; padding: 0; }
.pagination .nav-prev svg, .pagination .nav-next svg { width: 16px; height: 16px; }
.pagination .is-disabled { opacity: .4; pointer-events: none; }

/* ------------------------------------------------------------- 8. Article */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 60px;
  align-items: start;
  padding: 56px 0 72px;
}

.article-figure {
  margin: 0 0 38px;
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--navy-deep);
}
.article-figure img { width: 100%; }
.article-figure figcaption {
  padding: 12px 18px; font-size: 13.5px; color: var(--muted);
  background: var(--surface-alt);
}

.prose { font-size: 17.5px; line-height: 1.78; color: var(--body); }
.prose > *:first-child { margin-top: 0; }
.prose h2 {
  font-size: clamp(23px, 2.5vw, 29px);
  margin: 2.1em 0 .6em; letter-spacing: -.012em;
  padding-top: 4px;
}
.prose h2::after {
  content: ''; display: block; width: 44px; height: 3px;
  background: var(--yellow); margin-top: 14px;
}
.prose h3 { font-size: clamp(19px, 2vw, 22px); margin: 1.9em 0 .5em; color: var(--navy); }
.prose h4 { font-size: 17.5px; margin: 1.7em 0 .45em; color: var(--ink); }
.prose .post-byline {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 16px; margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.prose p { margin: 0 0 1.25em; }
.prose a {
  color: var(--navy); font-weight: 500;
  border-bottom: 1px solid rgba(11, 69, 128, .28);
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.prose a:hover { color: var(--navy-deep); border-bottom-color: var(--yellow); border-bottom-width: 2px; }
.prose strong, .prose b { color: var(--ink); font-weight: 650; }
.prose ul, .prose ol { margin: 0 0 1.4em; padding-left: 0; }
.prose li { margin-bottom: .62em; padding-left: 30px; position: relative; list-style: none; }
.prose ul > li::before {
  content: ''; position: absolute; left: 4px; top: .62em;
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--yellow); transform: rotate(45deg);
}
.prose ol { counter-reset: li; }
.prose ol > li { counter-increment: li; }
.prose ol > li::before {
  content: counter(li); position: absolute; left: 0; top: .12em;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--navy); color: #fff;
  font-size: 12px; font-weight: 700; font-family: var(--font-display);
  display: grid; place-items: center;
}
.prose li > ul, .prose li > ol { margin-top: .6em; }
.prose blockquote {
  margin: 1.9em 0; padding: 4px 0 4px 28px;
  border-left: 4px solid var(--yellow);
  font-size: 19px; line-height: 1.62; color: var(--ink);
  font-family: var(--font-display); font-weight: 400;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose img { border-radius: var(--r); margin: 1.8em 0; box-shadow: var(--shadow-sm); }
.prose table {
  width: 100%; border-collapse: collapse; margin: 1.8em 0; font-size: 15.5px;
  display: block; overflow-x: auto;
}
.prose th, .prose td { border: 1px solid var(--line); padding: 11px 14px; text-align: left; }
.prose th { background: var(--surface-alt); color: var(--ink); font-weight: 650; }
.prose code {
  background: var(--surface-alt); padding: 2px 7px; border-radius: var(--r-sm);
  font-size: .9em; color: var(--navy-ink);
}

/* Tag list under article */
.tag-list { display: flex; flex-wrap: wrap; gap: 9px; list-style: none; }
.tag-list a {
  display: inline-block; padding: 7px 14px;
  background: var(--surface-alt); border: 1px solid var(--line);
  border-radius: 100px; font-size: 13.5px; font-weight: 500; color: var(--body);
  transition: all .18s var(--ease);
}
.tag-list a:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

.article-foot {
  margin-top: 46px; padding-top: 30px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 26px; justify-content: space-between; align-items: flex-start;
}
.foot-label {
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 13px; font-weight: 600;
}
.share-list { display: flex; gap: 9px; list-style: none; }
.share-list a {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-alt); border: 1px solid var(--line); color: var(--body);
  transition: all .2s var(--ease);
}
.share-list a:hover { background: var(--navy); border-color: var(--navy); color: #fff; transform: translateY(-2px); }
.share-list svg { width: 17px; height: 17px; }

/* Prev / next */
.post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin-top: 44px;
}
.post-nav a {
  display: block; padding: 22px 26px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface);
  transition: all .24s var(--ease);
}
.post-nav a:hover { border-color: var(--navy); box-shadow: var(--shadow); transform: translateY(-3px); }
.post-nav .dir {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-bottom: 9px;
}
.post-nav .dir svg { width: 15px; height: 15px; }
.post-nav strong {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: 16.5px; line-height: 1.36; color: var(--ink);
}
.post-nav .next { text-align: right; }
.post-nav .next .dir { justify-content: flex-end; }
.post-nav .is-empty { visibility: hidden; }

/* -------------------------------------------------------------- 9. Sidebar */
.sidebar { position: sticky; top: 82px; display: grid; gap: 26px; }

.widget {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 24px;
}
.widget-title {
  font-size: 15px; letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: 18px; color: var(--ink);
}
.widget-title::after {
  content: ''; display: block; width: 34px; height: 3px;
  background: var(--yellow); margin-top: 11px;
}
.widget ul { list-style: none; }

.toc { max-height: 46vh; overflow-y: auto; }
.toc li { margin-bottom: 3px; }
.toc a {
  display: block; padding: 7px 12px 7px 14px;
  font-size: 14.5px; line-height: 1.45; color: var(--body);
  border-left: 2px solid var(--line-soft);
  transition: all .18s var(--ease);
}
.toc a:hover { color: var(--navy); border-left-color: var(--navy); background: var(--surface-sub); }
.toc a.is-active {
  color: var(--navy); font-weight: 600;
  border-left-color: var(--yellow); background: #f6f9fd;
}
.toc .lvl-3 a { padding-left: 26px; font-size: 13.5px; }

.mini-list li { display: flex; gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.mini-list li:first-child { padding-top: 0; }
.mini-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.mini-list img {
  width: 74px; height: 56px; object-fit: cover; border-radius: var(--r-sm);
  flex: none; background: var(--navy-deep);
}
.mini-list a {
  font-family: var(--font-display); font-weight: 500; font-size: 14.5px;
  line-height: 1.38; color: var(--ink);
}
.mini-list a:hover { color: var(--navy); }
.mini-list time { display: block; font-size: 12px; color: var(--muted); margin-top: 5px; letter-spacing: .03em; }

.cat-list li + li { margin-top: 2px; }
.cat-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--r-sm);
  font-size: 15px; font-weight: 500; color: var(--body);
  transition: all .18s var(--ease);
}
.cat-list a:hover { background: var(--surface-alt); color: var(--navy); padding-left: 16px; }
.cat-list a.is-active { background: var(--navy); color: #fff; }
.cat-list .n {
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  background: var(--surface-alt); border-radius: 100px; padding: 2px 9px;
}
.cat-list a:hover .n { background: #fff; }
.cat-list a.is-active .n { background: rgba(255, 255, 255, .2); color: #fff; }

/* Sidebar CTA */
.widget-cta {
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-ink) 100%);
  border-color: transparent; color: #fff;
  position: relative; overflow: hidden;
  padding: 30px 26px;
}
.widget-cta::before {
  content: ''; position: absolute; right: -50px; top: -50px;
  width: 170px; height: 170px; border-radius: 50%;
  border: 22px solid rgba(248, 208, 9, .13);
}
.widget-cta .widget-title { color: #fff; font-size: 20px; text-transform: none; letter-spacing: -.01em; position: relative; }
.widget-cta .widget-title::after { background: var(--yellow); }
.widget-cta p { font-size: 14.5px; color: rgba(255, 255, 255, .84); line-height: 1.6; position: relative; }
.widget-cta .btn { width: 100%; justify-content: center; }
.widget-cta .cta-phone {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  margin-top: 13px; color: #fff; font-weight: 600; font-size: 16px;
  position: relative;
}
.widget-cta .cta-phone:hover { color: var(--yellow); }
.widget-cta .cta-phone svg { width: 17px; height: 17px; color: var(--yellow); }

/* -------------------------------------------------------------- 10. Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-display); font-weight: 600; font-size: 14.5px;
  letter-spacing: .07em; text-transform: uppercase;
  border-radius: var(--r); border: 2px solid transparent;
  transition: all .22s var(--ease); cursor: pointer; position: relative;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--yellow); color: #000; border-color: var(--yellow); }
.btn-primary:hover { background: #000; border-color: #000; color: #fff; transform: translateY(-2px); }
.btn-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy:hover { background: var(--yellow); border-color: var(--yellow); color: #000; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-ghost:hover { background: #fff; border-color: #fff; color: var(--navy); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--navy); background: var(--navy); color: #fff; }

/* ------------------------------------------------------------ 11. CTA band */
.cta-band {
  position: relative; isolation: isolate;
  background: var(--navy-ink);
  color: #fff; padding: 66px 0; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 380px at 12% 0%, rgba(11, 69, 128, .95), transparent 70%),
    radial-gradient(700px 340px at 92% 100%, rgba(248, 208, 9, .16), transparent 68%),
    linear-gradient(180deg, #062a4e 0%, #04203e 100%);
  background-color: var(--navy-ink);
}
.cta-band-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.cta-band .eyebrow {
  font-family: var(--font-display); font-size: 12.5px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--yellow);
  display: block; margin-bottom: 12px;
}
.cta-band h2 { color: #fff; font-size: clamp(25px, 3.2vw, 36px); letter-spacing: -.015em; max-width: 18ch; }
.cta-band p { margin: 14px 0 0; color: rgba(255, 255, 255, .82); max-width: 52ch; font-size: 16px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* -------------------------------------------------------------- 12. Footer */
.site-footer {
  position: relative; isolation: isolate;
  background: var(--navy-ink) url('../img/footer-img.jpg') no-repeat center center;
  background-size: cover;
  color: rgba(255, 255, 255, .78);
  padding: 66px 0 0;          /* .footer-grid carries the bottom space, so the
                                 white copyright bar sits flush at the very end */
  font-size: 15px;
}
.site-footer::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(4, 32, 62, .93), rgba(4, 26, 50, .96));
}
.footer-grid {
  display: grid; gap: 40px;
  grid-template-columns: 1.25fr 1fr 1fr 1.15fr;
  padding-bottom: 52px;
}
.footer-title {
  color: #fff; font-size: 17px; letter-spacing: .01em; margin-bottom: 18px;
}
.site-footer p { line-height: 1.66; }
.site-footer a { color: rgba(255, 255, 255, .82); }
.site-footer a:hover { color: var(--yellow); }
.footer-logo { width: 190px; max-width: 70%; margin-bottom: 22px; }
.footer-mdna { width: 150px; margin-top: 26px; opacity: .95; }

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { display: inline-flex; align-items: center; gap: 9px; }
.footer-links a::before {
  content: ''; flex: none;
  width: 6px; height: 6px; border-right: 2px solid var(--yellow); border-top: 2px solid var(--yellow);
  transform: rotate(45deg);
  transition: transform .2s var(--ease);
}
.footer-links a:hover::before { transform: rotate(45deg) translate(2px, -2px); }

.footer-cta-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; color: #fff; margin-bottom: 4px;
}
.footer-cta-link svg { width: 16px; height: 16px; color: var(--yellow); transition: transform .2s var(--ease); }
.footer-cta-link:hover svg { transform: translateX(4px); }
.footer-sub { font-size: 14px; color: rgba(255, 255, 255, .62); margin: 22px 0 6px; }
.footer-ebay { width: 130px; border-radius: 3px; margin-top: 6px; }

.footer-contact { list-style: none; }
.footer-contact li {
  position: relative; padding-left: 30px; margin-bottom: 15px; line-height: 1.5;
}
.footer-contact svg {
  position: absolute; left: 0; top: 3px;
  width: 18px; height: 18px; color: var(--yellow);
}
.footer-bottom {
  background: #fff; color: #000;
  padding: 15px 0; font-size: 13px; text-align: center;
}
.footer-bottom a { color: #000; text-decoration: underline; display: block; }
.footer-bottom a:hover { color: var(--navy); }
.footer-bottom span { display: block; }

/* --------------------------------------------------------- 13. Reading bar */
.read-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  z-index: 999; background: transparent; pointer-events: none;
}
.read-progress > i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--yellow), var(--yellow-dark));
  transition: width .1s linear;
}

#toTop {
  position: fixed; right: 22px; bottom: 22px; z-index: 800;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: #fff; border: 0;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all .28s var(--ease);
}
#toTop.is-visible { opacity: 1; visibility: visible; transform: none; }
#toTop:hover { background: var(--yellow); color: #000; }
#toTop svg { width: 20px; height: 20px; }

/* ----------------------------------------------------------- 14. Utilities */
.empty-state {
  text-align: center; padding: 70px 20px;
  border: 1px dashed var(--line); border-radius: var(--r-lg);
  background: var(--surface-sub);
}
.empty-state svg { width: 46px; height: 46px; color: var(--line); margin: 0 auto 18px; }
.empty-state h3 { font-size: 21px; margin-bottom: 8px; }
.empty-state p { color: var(--muted); margin-bottom: 22px; }

.results-count { font-size: 14.5px; color: var(--muted); margin-bottom: 26px; }
.results-count strong { color: var(--ink); }

.is-hidden { display: none !important; }

/* ------------------------------------------------------- 15. Media queries */
@media (max-width: 1080px) {
  .article-layout { grid-template-columns: 1fr; gap: 46px; }
  .sidebar { position: static; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .toc { max-height: none; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
}

@media (max-width: 900px) {
  .card-feature { grid-template-columns: 1fr; }
  .card-feature .card-media { min-height: 0; aspect-ratio: 16 / 9; }
  .card-feature .card-body { padding: 30px 26px 32px; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 860px) {
  :root { --gutter: 20px; }

  .header-contact { display: none; }
  .header-top { padding: 14px 0 10px; }
  .header-nav-inner { position: relative; }
  .nav-toggle { display: block; position: absolute; right: 0; top: -60px; }
  .nav-list {
    position: fixed; inset: 0 0 0 auto;
    width: min(320px, 84vw);
    background: var(--navy-ink);
    flex-direction: column; align-items: stretch;
    padding: 90px 26px 40px;
    transform: translateX(100%);
    transition: transform .34s var(--ease);
    z-index: 1000; overflow-y: auto;
    box-shadow: -18px 0 50px rgba(0, 0, 0, .4);
  }
  .nav-open .nav-list { transform: none; }
  .nav-list > li > a {
    display: block; margin: 0; padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    font-size: 15px;
  }
  .nav-list > li > a::after { display: none; }
  .nav-list > li.is-active > a { color: var(--yellow); }
  .nav-list .nav-mobile-contact {
    margin-top: 24px; display: grid; gap: 10px;
  }
  .nav-mobile-contact { display: grid; }
  .nav-list .nav-mobile-contact a {
    display: flex; align-items: center; gap: 10px;
    color: #fff; font-weight: 600; font-size: 15px; padding: 4px 0;
  }
  .nav-list .nav-mobile-contact svg { width: 17px; height: 17px; color: var(--yellow); flex: none; }
  .nav-toggle { z-index: 1001; }
  .nav-scrim {
    position: fixed; inset: 0; z-index: 999;
    background: rgba(4, 20, 40, .6);
    opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
  }
  .nav-open .nav-scrim { opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }

  .page-hero { padding: 150px 0 48px; }
  .page-hero h1::after { margin-top: 18px; }

  .blog-toolbar-inner { flex-direction: column; align-items: stretch; gap: 12px; }
  .search-box { width: 100%; }
  .cat-nav {
    margin: 0 calc(var(--gutter) * -1);
    padding: 4px var(--gutter);
    scroll-padding-left: var(--gutter);
  }

  .section { padding: 48px 0; }
  .card-grid { gap: 24px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .article-layout { padding: 42px 0 56px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { text-align: left; }
  .post-nav .next .dir { justify-content: flex-start; }
  .post-nav .is-empty { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .prose { font-size: 17px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .card-grid { grid-template-columns: 1fr; }
  .article-foot { flex-direction: column; gap: 24px; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1; justify-content: center; }
  #toTop { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* ------------------------------------------------------------- 16. Print */
@media print {
  .site-header, .blog-toolbar, .sidebar, .cta-band, .site-footer,
  .post-nav, .read-progress, #toTop, .article-foot { display: none !important; }
  .page-hero { padding: 0 0 20px; background: none; color: #000; }
  .page-hero::before { display: none; }
  .page-hero h1, .page-hero .hero-sub, .hero-meta { color: #000; }
  .article-layout { display: block; padding: 0; }
  body { font-size: 12pt; }
  .prose a { border: 0; color: #000; }
  .prose a[href^="http"]::after { content: ' (' attr(href) ')'; font-size: 9pt; color: #555; }
}
