/*
Theme Name: usfans Spreadsheet Pro
Theme URI: https://sheetcn.com/
Author: usfans Spreadsheet
Author URI: https://sheetcn.com/
Description: A delivery-focused SEO theme for the usfans Spreadsheet. Parcel-inspired layout, product icon grid, a shipping walkthrough, guide hub, FAQ schema and fully responsive templates.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: usfans-spreadsheet-pro
Tags: one-column, custom-menu, custom-logo, blog, education
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
  --bg: #FAF7F2;
  --bg-alt: #F2ECE1;
  --surface: #FFFFFF;

  --ink: #171F26;
  --ink-2: #3A4750;
  --muted: #6B7883;
  --line: #E8E0D3;
  --line-strong: #D9CDB9;

  --kraft: #C98F5A;
  --kraft-soft: #F5E7D8;
  --forest: #1E6F5C;
  --forest-soft: #DCEEE8;
  --amber: #F0A32E;
  --amber-soft: #FDF0DA;
  --coral: #E1634F;
  --coral-soft: #FCE6E1;
  --sky: #3E86C9;
  --sky-soft: #E1EEF9;
  --plum: #8C6FB0;
  --plum-soft: #EEE8F7;

  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 4px 14px -10px rgba(23, 31, 38, .5);
  --shadow: 0 18px 40px -28px rgba(23, 31, 38, .55);
  --max: 1120px;
  --font: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.72;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.16; letter-spacing: -.02em; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid rgba(30, 111, 92, .5); outline-offset: 3px; border-radius: 6px; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--ink); color: #fff;
  padding: 10px 18px; border-radius: 999px;
  z-index: 200; font-size: 14px; font-weight: 600;
  transition: top .2s ease;
}
.skip-link:focus { top: 14px; color: #fff; text-decoration: none; }

/* ==========================================================================
   3. Layout
   ========================================================================== */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 22px; }
.section { padding: 72px 0; }
.section--tight { padding: 44px 0; }
.section--alt { background: var(--bg-alt); }

.section-head { max-width: 700px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.5vw, 38px); margin-bottom: 12px; }
.section-head p { margin: 0; color: var(--muted); font-size: 16.5px; }

.label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 13px;
  border: 1px dashed var(--line-strong);
  border-radius: 999px;
  background: var(--kraft-soft);
  color: #8A5B2C;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.label::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber);
}

/* ==========================================================================
   4. Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1.2;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn--primary {
  background: var(--forest); color: #fff;
  box-shadow: 0 14px 26px -16px rgba(30, 111, 92, .95);
}
.btn--primary:hover { color: #fff; background: #18604F; }

.btn--accent {
  background: linear-gradient(135deg, var(--amber), #F5BB5C);
  color: #40290A;
  box-shadow: 0 14px 26px -16px rgba(240, 163, 46, .95);
}
.btn--accent:hover { color: #40290A; }

.btn--outline {
  background: #fff; color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.btn--outline:hover { color: var(--ink); border-color: #C6B79F; }

.btn--sm { padding: 11px 19px; font-size: 14.5px; }
.btn--block { width: 100%; }
.btn .btn-arrow { transition: transform .18s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ==========================================================================
   5. Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(250, 247, 242, .9);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 14px; min-height: 74px; }

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); text-decoration: none; }

.brand-mark {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--kraft);
  background-image: linear-gradient(135deg, #D9A470, #B87C48);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 14px; font-weight: 800;
  box-shadow: 0 8px 16px -10px rgba(168, 110, 60, .95);
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute; inset: 6px 8px auto auto;
  width: 12px; height: 4px;
  background: rgba(255, 255, 255, .55);
  border-radius: 1px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 16.5px; font-weight: 800; letter-spacing: -.02em; }
.brand-sub {
  font-family: var(--mono);
  font-size: 9.5px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}

.nav { margin-left: auto; }
.nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav li { position: relative; }
.nav a, .dropbtn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 13px;
  border: 0; border-radius: 999px; background: none;
  font-family: inherit; font-size: 14.5px; font-weight: 600;
  color: var(--ink-2); cursor: pointer;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.nav a:hover, .dropbtn:hover, .has-dropdown.is-open > .dropbtn {
  background: #fff; color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm);
}
.dropbtn .chev {
  width: 8px; height: 8px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease;
}
.has-dropdown.is-open > .dropbtn .chev { transform: rotate(225deg) translateY(-2px); }

.dropdown {
  position: absolute; top: calc(100% + 12px); left: 50%;
  min-width: 250px; padding: 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 30px 54px -34px rgba(23, 31, 38, .5);
  opacity: 0; visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 90;
}
.dropdown--cats { min-width: 520px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }

.has-dropdown:hover > .dropdown,
.has-dropdown.is-open > .dropdown,
.has-dropdown:focus-within > .dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}

.dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 11px;
  font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
}
.dropdown a:hover { background: var(--bg-alt); color: var(--ink); text-decoration: none; box-shadow: none; }
.dropdown .dd-thumb {
  width: 32px; height: 32px; border-radius: 9px;
  overflow: hidden; flex: 0 0 auto; background: var(--bg-alt);
}
.dropdown .dd-thumb img { width: 100%; height: 100%; object-fit: cover; }

.dropdown--plain a { white-space: normal; align-items: flex-start; line-height: 1.4; }
.dropdown--plain .dd-num {
  flex: 0 0 auto; width: 21px; height: 21px;
  border-radius: 6px;
  background: var(--forest-soft); color: var(--forest);
  font-family: var(--mono); font-size: 11px; font-weight: 800;
  display: grid; place-items: center; margin-top: 2px;
}
.dropdown .dd-all {
  grid-column: 1 / -1; margin-top: 5px; padding-top: 9px;
  border-top: 1px solid var(--line); color: var(--forest); justify-content: center;
}

.header-cta { flex-shrink: 0; margin-left: 6px; }

.nav-toggle {
  display: none; width: 44px; height: 44px;
  border: 1px solid var(--line-strong); border-radius: 12px;
  background: #fff; cursor: pointer; padding: 0; place-items: center;
}
.nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; border-radius: 2px; background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ==========================================================================
   6. Hero
   ========================================================================== */
.hero { position: relative; padding: 62px 0 50px; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute; inset: -20% -10% auto -10%; height: 700px;
  background:
    radial-gradient(40% 50% at 8% 30%, rgba(246, 231, 214, .9), transparent 70%),
    radial-gradient(36% 46% at 92% 14%, rgba(220, 238, 232, .85), transparent 70%),
    radial-gradient(30% 40% at 58% 84%, rgba(253, 240, 218, .8), transparent 72%);
  z-index: 0; pointer-events: none;
}
/* Optional photographic hero background (see functions.php) */
.hero--photo::after {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--hero-photo);
  background-size: cover;
  background-position: center;
  opacity: .28;
  z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; }

.hero-inner { display: grid; grid-template-columns: 1.02fr .98fr; gap: 44px; align-items: center; }
.hero h1 { font-size: clamp(31px, 4.8vw, 52px); margin-bottom: 18px; }
.hero h1 em {
  font-style: normal; color: var(--forest);
  background: linear-gradient(180deg, transparent 64%, rgba(30, 111, 92, .16) 64%);
  padding: 0 2px;
}
.hero-lead { font-size: 17.5px; color: var(--ink-2); max-width: 550px; margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-bottom: 26px; }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: 24px;
  list-style: none; margin: 0; padding-top: 18px;
  border-top: 1px dashed var(--line-strong);
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats b { font-size: 21px; letter-spacing: -.02em; }
.hero-stats span { font-size: 12.5px; color: var(--muted); font-weight: 600; }

.hero-art {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 36px 70px -46px rgba(23, 31, 38, .6);
  background: #fff;
}
.hero-art img { width: 100%; }

/* Tracking card overlay — reinforces the delivery theme */
.track-card {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 15px;
  box-shadow: var(--shadow-sm);
}
.track-card .track-top {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 9px;
}
.track-card .track-id { color: var(--ink); font-weight: 700; }
.track-bar { display: flex; align-items: center; gap: 0; }
.track-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line-strong); flex: 0 0 auto;
}
.track-dot.is-done { background: var(--forest); box-shadow: 0 0 0 3px var(--forest-soft); }
.track-line { flex: 1 1 auto; height: 2px; background: var(--line); }
.track-line.is-done { background: var(--forest); }
.track-labels {
  display: flex; justify-content: space-between;
  margin-top: 7px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
}
.track-labels span.is-done { color: var(--forest); font-weight: 700; }

/* ==========================================================================
   7. Category grid — product icons
   ========================================================================== */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.cat-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 12px 12px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.cat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
  text-decoration: none;
  color: var(--ink);
}

.cat-icon {
  aspect-ratio: 1 / 1;
  border-radius: 15px;
  overflow: hidden;
  background: var(--bg-alt);
  display: grid;
  place-items: center;
  padding: 8px;
}
.cat-icon img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform .3s ease;
}
.cat-card:hover .cat-icon img { transform: scale(1.05) rotate(-1.5deg); }

.cat-body { padding: 11px 4px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; }
.cat-name { font-size: 16px; font-weight: 800; letter-spacing: -.01em; display: block; }
.cat-blurb { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.cat-go {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
  background: var(--forest-soft); color: var(--forest);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 800;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.cat-card:hover .cat-go { background: var(--forest); color: #fff; transform: rotate(-45deg); }

/* ==========================================================================
   8. Delivery band
   ========================================================================== */
.delivery-band {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.delivery-step {
  padding: 26px 22px;
  border-right: 1px dashed var(--line-strong);
  position: relative;
}
.delivery-step:last-child { border-right: 0; }
.delivery-step::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--line);
}
.delivery-step:nth-child(1)::before { background: var(--kraft); }
.delivery-step:nth-child(2)::before { background: var(--amber); }
.delivery-step:nth-child(3)::before { background: var(--sky); }
.delivery-step:nth-child(4)::before { background: var(--forest); }

.step-num {
  font-family: var(--mono); font-size: 11px; font-weight: 800;
  letter-spacing: .14em; color: var(--muted); display: block; margin-bottom: 10px;
}
.delivery-step h3 { font-size: 16.5px; margin-bottom: 6px; }
.delivery-step p { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.55; }

/* ==========================================================================
   9. Prose / article
   ========================================================================== */
.article-shell {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 4vw, 54px);
  box-shadow: 0 26px 54px -46px rgba(23, 31, 38, .5);
}

.prose { font-size: 17.5px; color: var(--ink-2); }
.prose > *:first-child { margin-top: 0; }
.prose h1 { font-size: clamp(28px, 4vw, 40px); color: var(--ink); margin: 0 0 18px; }
.prose h2 { font-size: clamp(22px, 2.6vw, 30px); color: var(--ink); margin: 44px 0 14px; }
.prose h3 { font-size: 20px; color: var(--ink); margin: 28px 0 10px; }
.prose p { margin: 0 0 18px; }
.prose a {
  color: var(--forest); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px;
}
.prose a:hover { color: #18604F; }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 21px; margin: 0 0 20px; }
.prose li { margin-bottom: 9px; }
.prose li::marker { color: var(--kraft); font-weight: 700; }

.prose blockquote {
  margin: 26px 0; padding: 17px 22px;
  background: var(--amber-soft);
  border-left: 4px solid var(--amber);
  border-radius: 0 16px 16px 0;
  font-size: 16.5px;
}
.prose blockquote p:last-child { margin-bottom: 0; }

.prose table {
  width: 100%; border-collapse: collapse; margin: 24px 0;
  font-size: 15px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.prose thead th {
  background: var(--bg-alt); text-align: left;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose img { border-radius: 16px; margin: 22px 0; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 38px 0; }

.article-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; margin: 32px 0; padding: 22px 24px;
  border-radius: 20px;
  background: linear-gradient(120deg, var(--kraft-soft), var(--forest-soft));
  border: 1px solid rgba(201, 143, 90, .22);
}
.article-cta h3 { margin: 0 0 4px; font-size: 18.5px; }
.article-cta p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.article-cta .btn { flex: 0 0 auto; }

.article-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 12px; margin-top: 36px; padding-top: 22px;
  border-top: 1px dashed var(--line-strong);
  font-size: 13.5px; color: var(--muted);
}
.article-foot a { font-weight: 700; }

/* ==========================================================================
   10. Guide cards
   ========================================================================== */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.guide-card {
  display: flex; flex-direction: column; gap: 9px;
  padding: 24px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: transform .22s ease, box-shadow .22s ease;
}
.guide-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.guide-num {
  width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 12px; font-weight: 800;
  background: var(--forest-soft); color: var(--forest);
}
.guide-card:nth-child(2n) .guide-num { background: var(--amber-soft); color: #9A6A10; }
.guide-card:nth-child(3n) .guide-num { background: var(--sky-soft); color: #26659C; }
.guide-card:nth-child(4n) .guide-num { background: var(--plum-soft); color: #6A4E90; }
.guide-card h3 { font-size: 17.5px; line-height: 1.3; }
.guide-card p { font-size: 13.5px; color: var(--muted); margin: 0; flex: 1; }
.guide-more { font-size: 13px; font-weight: 800; color: var(--forest); }

/* ==========================================================================
   11. FAQ
   ========================================================================== */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 4px 19px; margin-bottom: 11px;
  transition: box-shadow .2s ease;
}
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 15px;
  padding: 15px 0; cursor: pointer;
  font-weight: 700; font-size: 16px; color: var(--ink);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: 0 0 auto;
  width: 25px; height: 25px; border-radius: 50%;
  background: var(--forest-soft); color: var(--forest);
  font-size: 16px; font-weight: 700; line-height: 1;
  display: grid; place-items: center;
}
.faq details[open] summary::after { content: "–"; }
.faq .faq-a { padding: 0 0 17px; color: var(--ink-2); font-size: 15.5px; }
.faq .faq-a p:last-child { margin-bottom: 0; }

/* ==========================================================================
   12. CTA band
   ========================================================================== */
.cta-band {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 26px;
  padding: clamp(26px, 4.4vw, 50px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(50% 120% at 84% 6%, rgba(240, 163, 46, .28), transparent 62%),
    linear-gradient(135deg, #1A2A28, #2C4A44);
  color: #fff;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, .05) 0 10px,
    transparent 10px 20px
  );
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(23px, 3.2vw, 34px); margin-bottom: 10px; color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .78); margin: 0; max-width: 500px; font-size: 15.5px; }
.cta-band .btn { flex: 0 0 auto; }
.cta-band .btn--outline {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .3);
  color: #fff; box-shadow: none;
}
.cta-band .btn--outline:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 11px; }

/* ==========================================================================
   13. Footer
   ========================================================================== */
.site-footer {
  margin-top: 80px; padding: 56px 0 24px;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 34px; padding-bottom: 36px; }
.footer-brand .brand { margin-bottom: 13px; }
.footer-brand p { font-size: 13.5px; color: var(--muted); max-width: 300px; margin: 0; line-height: 1.65; }
.footer-col h4 {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 13px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 7px; }
.footer-col a { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.footer-col a:hover { color: var(--forest); text-decoration: none; }

.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(23, 31, 38, .09);
  font-size: 12.5px; color: var(--muted);
}

/* ==========================================================================
   14. Generic templates
   ========================================================================== */
.page-header { padding: 48px 0 28px; text-align: center; }
.page-header h1 { font-size: clamp(28px, 4.2vw, 44px); margin-bottom: 12px; }
.page-header .lede { color: var(--muted); max-width: 620px; margin: 0 auto; font-size: 16.5px; }

.breadcrumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em;
  color: var(--muted); margin-bottom: 16px;
}
.breadcrumbs a { color: var(--muted); font-weight: 600; }
.breadcrumbs a:hover { color: var(--forest); }
.breadcrumbs .sep { color: #C6B79F; }

.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.post-list li { padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.post-list h2 { font-size: 18px; margin: 0 0 5px; }
.post-list h2 a { color: var(--ink); }
.post-list p { margin: 0; color: var(--muted); font-size: 14px; }

.hub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.hub-card {
  display: block; padding: 24px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease;
}
.hub-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.hub-card h2 { font-size: 18px; margin-bottom: 7px; }
.hub-card p { margin: 0 0 11px; color: var(--muted); font-size: 14px; }

.error-404 { text-align: center; padding: 84px 0 100px; }
.error-404 h1 { font-size: clamp(42px, 8vw, 88px); color: var(--kraft); margin-bottom: 8px; }
.error-404 p { color: var(--muted); margin-bottom: 24px; }

/* ==========================================================================
   15. Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .delivery-band { grid-template-columns: repeat(2, 1fr); }
  .delivery-step:nth-child(2) { border-right: 0; }
  .delivery-step:nth-child(1), .delivery-step:nth-child(2) { border-bottom: 1px dashed var(--line-strong); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-art { max-width: 520px; margin-inline: auto; }
  .hero-lead { max-width: none; }

  .nav-toggle { display: grid; margin-left: auto; }
  .header-cta { display: none; }

  .nav {
    position: fixed; inset: 74px 0 auto 0;
    margin: 0; padding: 13px 18px 24px;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 28px 46px -40px rgba(23, 31, 38, .6);
    max-height: calc(100vh - 74px); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a, .dropbtn { width: 100%; justify-content: space-between; padding: 12px 13px; font-size: 15.5px; }

  .dropdown {
    position: static; transform: none; min-width: 0;
    box-shadow: none; border: 0; padding: 0 0 6px 10px;
    opacity: 1; visibility: visible; display: none; background: transparent;
  }
  .has-dropdown.is-open > .dropdown { display: block; }
  .dropdown--cats { grid-template-columns: 1fr; }
  .dropdown a { white-space: normal; }
  .dropdown .dd-all { justify-content: flex-start; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 52px 0; }
  .article-shell { border-radius: 22px; padding: 20px 17px; }
  .prose { font-size: 16.5px; }
  .prose h2 { margin-top: 32px; }
  .prose table { font-size: 13.5px; }
  .prose th, .prose td { padding: 9px; }
  .guide-grid, .hub-grid { grid-template-columns: 1fr; }
  .cat-grid { gap: 12px; }
  .cat-card { padding: 10px 10px 13px; }
  .cat-blurb { display: none; }
  .delivery-band { grid-template-columns: 1fr; }
  .delivery-step { border-right: 0; border-bottom: 1px dashed var(--line-strong); }
  .delivery-step:last-child { border-bottom: 0; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1 1 auto; }
  .track-labels { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .hero-stats { gap: 16px; }
  .hero-stats b { font-size: 18px; }
}

@media (max-width: 460px) {
  .wrap { padding-inline: 15px; }
  .hero { padding-top: 40px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
}

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

/* WordPress core */
.alignwide { max-width: 100%; }
.aligncenter { margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--muted); text-align: center; }
.sticky { position: relative; }
.bypostauthor { display: block; }
