/* Australian Linen & Towels — shared design system */
:root {
  --navy: #1C2B7E;            /* Calibrated to Logo Royal Navy */
  --navy-2: #293CA6;          /* Calibrated brighter navy */
  --navy-deep: #0B133F;       /* Logo-deep background navy */
  --gold: #b8933a;            /* fills, borders, dark-bg accents — keep bright */
  --gold-soft: #d4b568;       /* gold on dark navy — already 9:1, fine */
  --gold-text: #8a6a1f;       /* gold TEXT on cream/white — WCAG AA 4.76:1 */
  --accent-red: #BA0404;      /* Logo Tagline Crimson Red */
  --ivory: #faf8f3;
  --ivory-2: #f2ede2;
  --paper: #ffffff;
  --ink: #1a1d2e;
  --muted: #6b6e7d;
  --line: #e5e0d2;
  --line-dark: #2a2f5c;

  --f-serif: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 15.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Body copy paragraphs — editorial readability, slightly darker than --ink for content blocks */
p { color: #2a2d40; }
/* Don't bleed paragraph color into footer / dark sections that explicitly set their own color */
.site-footer p, .utility-bar p, [data-page] .hero p, .hero p { color: inherit; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- Top utility bar ---------- */
.utility-bar {
  background: var(--navy-deep);
  color: #ffffff;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}
.utility-bar .wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 9px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.utility-bar .left { display: flex; gap: 28px; }
.utility-bar .right { display: flex; gap: 28px; }
.utility-bar a:hover { color: var(--gold-soft); }

/* ---------- Header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 22px 48px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}
.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
  grid-column: 2;
}
.brand .mark {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: 0.02em;
  color: var(--navy);
  line-height: 1;
}
.brand .mark em { font-style: italic; color: var(--gold-text); font-weight: 400; }

/* New: image logo in header */
.brand-logo {
  display: block;
  height: 48px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
}
@media (max-width: 768px) {
  .brand-logo { height: 38px; max-width: 180px; }
}
@media (max-width: 480px) {
  .brand-logo { height: 32px; max-width: 150px; }
}
.brand .sub {
  font-size: 9.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}
.nav-main {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-main.left { justify-self: start; }
.nav-main.right { justify-self: end; }
.nav-main a {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 0;
  position: relative;
}
.nav-main a.active { color: var(--navy); }
.nav-main a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--gold);
}
.nav-main a:hover { color: var(--navy); }
.header-icons { display: flex; gap: 18px; align-items: center; }
.mobile-only-search { display: none; }
.header-icons .icon-btn {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--ink);
  transition: background .2s;
}
.header-icons .icon-btn:hover { background: var(--ivory-2); }
.header-icons .cart-count {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--gold);
  color: var(--paper);
  font-size: 9px;
  font-weight: 600;
  width: 14px; height: 14px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.header-icons .icon-btn { position: relative; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: var(--paper);
  cursor: pointer;
  transition: all .25s ease;
  font-family: var(--f-sans);
}
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn.btn-ghost { background: transparent; color: var(--navy); }
.btn.btn-ghost:hover { background: var(--navy); color: var(--paper); }
.btn.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--paper); }
.btn.btn-gold:hover { background: #a3812f; border-color: #a3812f; }
.btn.btn-light { background: var(--paper); border-color: var(--paper); color: var(--navy); }
.btn.btn-light:hover { background: transparent; color: var(--paper); }
.btn.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.6); color: var(--paper); }
.btn.btn-outline-light:hover { background: var(--paper); color: var(--navy); border-color: var(--paper); }
.btn .arrow { display: inline-block; font-family: var(--f-serif); font-size: 16px; letter-spacing: 0; }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-text);
  font-weight: 500;
}
.display {
  font-family: var(--f-serif);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.display em { font-style: italic; color: var(--gold-text); font-weight: 400; }
.section-title {
  font-family: var(--f-serif);
  font-weight: 400;
  color: var(--navy);
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.section-title em { font-style: italic; color: var(--gold-text); font-weight: 400; }
.lede {
  font-family: var(--f-serif);
  font-size: 20px;
  line-height: 1.5;
  color: var(--muted);
  font-weight: 400;
}
.rule {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 0 0 20px;
  display: block;
}
.rule.center { margin-left: auto; margin-right: auto; }

/* ---------- Layout ---------- */
.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
}
.section { padding: 110px 0; }
.section-sm { padding: 72px 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #b9bbc9;
  padding: 88px 0 32px;
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}
.site-footer h5 {
  font-family: var(--f-sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 20px;
  font-weight: 500;
}
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.site-footer a:hover { color: var(--gold-soft); }
.site-footer .brand-block .mark {
  font-family: var(--f-serif);
  font-size: 22px;
  color: var(--paper);
  letter-spacing: 0.02em;
  line-height: 1;
}
.site-footer .brand-block .mark em { color: var(--gold-text); font-style: italic; }
.site-footer .brand-block .sub {
  font-size: 9.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #8e90a3;
  margin: 8px 0 22px;
}
.site-footer .brand-block p { font-size: 13px; line-height: 1.6; color: #9b9dae; }
.newsletter input {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 1px solid #3a3e6b;
  color: var(--paper);
  padding: 10px 0;
  font-family: var(--f-sans);
  font-size: 13px;
  outline: none;
}
.newsletter input::placeholder { color: #717488; }
.newsletter-row { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #3a3e6b; }
.newsletter-row button {
  background: none; border: none; color: var(--gold-soft); font-family: var(--f-serif); font-size: 20px;
  cursor: pointer; padding: 8px 0;
}
.footer-bottom {
  max-width: 1440px;
  margin: 56px auto 0;
  padding: 24px 48px 0;
  border-top: 1px solid #2a2f5c;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7c7f94;
}
.footer-bottom .legals { display: flex; gap: 24px; }

/* ---------- Product card ---------- */
.product-card {
  display: block;
  background: var(--paper);
  position: relative;
  transition: transform .4s ease;
}
.product-card .img-wrap {
  aspect-ratio: 4/5;
  background: var(--ivory-2);
  overflow: hidden;
  position: relative;
}
.product-card .img-wrap .swatch-badge {
  position: absolute;
  top: 14px; left: 14px;
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  background: var(--paper);
  color: var(--navy);
  padding: 6px 10px;
  border: 1px solid var(--line);
}
/* Free-delivery badge — works inside any product card image container */
.delivery-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--f-sans);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: #2d6a4f;          /* editorial forest — refined, not supermarket */
  color: #ffffff;
  padding: 6px 10px;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(20, 30, 20, 0.18);
  z-index: 2;
  pointer-events: none;
  white-space: nowrap;
}
/* If an existing tag/swatch-badge sits in the same corner, drop the delivery badge below it */
.product-card .tag ~ .delivery-badge,
.product-card .swatch-badge ~ .delivery-badge { top: 44px; }
.product-card .img-wrap .wishlist {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  display: inline-flex; align-items: center; justify-content: center;
  border: none;
  cursor: pointer;
  color: var(--navy);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .3s, transform .3s;
}
.product-card:hover .wishlist { opacity: 1; transform: translateY(0); }
.product-card .meta { padding: 18px 2px 4px; }
.product-card .cat {
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.product-card h3 {
  font-family: var(--f-serif);
  font-weight: 400;
  color: var(--navy);
  font-size: 22px;
  margin-top: 6px;
  letter-spacing: -0.005em;
}
.product-card .price-row {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  color: var(--ink);
}
.product-card .price-row .unit { color: var(--muted); font-size: 11.5px; }
.product-card .swatches {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.product-card .swatches .sw {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1px solid var(--line);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease;
}
.product-card .swatches .sw:hover {
  transform: scale(1.35);
  border-color: var(--gold);
}

/* ---------- Woven texture placeholder (no hand-drawn illustrations) ---------- */
.weave {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: var(--ivory-2);
  background-image:
    repeating-linear-gradient(90deg, rgba(0,0,0,0.04) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.05) 0 1px, transparent 1px 4px);
}
.weave.white { background-color: #f7f4eb; }
.weave.charcoal { background-color: #3c3f4a; background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 4px); }
.weave.camel { background-color: #c9a97c; background-image:
    repeating-linear-gradient(90deg, rgba(0,0,0,0.06) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.07) 0 1px, transparent 1px 4px); }
.weave.navy { background-color: var(--navy); background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 4px); }
.weave.ivory { background-color: #f0e9d8; }
.weave.linen { background-color: #ebe3cf; }
.weave .tag {
  position: absolute;
  bottom: 12px; left: 12px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(0,0,0,.4);
  text-transform: uppercase;
}
.weave.charcoal .tag, .weave.navy .tag { color: rgba(255,255,255,.45); }

/* ---------- Mobile-only elements: hidden on desktop by default ---------- */
.mobile-drawer,
.drawer-overlay,
.mobile-call-bar,
.mobile-filter-bar {
  display: none;
}

/* ---------- Mobile menu toggle ---------- */
.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 10px;
  margin-left: -10px;
  cursor: pointer;
  color: var(--navy);
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.menu-toggle svg { width: 24px; height: 24px; }

/* ---------- Mobile filter button (shown on collection page) ---------- */
.mobile-filter-bar {
  display: none;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 10px 16px;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
  gap: 12px;
}
.mobile-filter-bar .filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: var(--paper);
  border: 0;
  padding: 10px 18px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  border-radius: 2px;
}
.mobile-filter-bar .sort-wrap {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}
.mobile-filter-bar .sort-wrap select {
  border: 1px solid var(--line);
  padding: 9px 10px;
  font-family: var(--f-sans);
  font-size: 12px;
  background: var(--paper);
  min-height: 40px;
}

/* ---------- Filter drawer (bottom sheet) ---------- */
.filter-drawer {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--paper);
  z-index: 250;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 12px 12px 0 0;
  padding: 20px 20px 100px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.filter-drawer.open { transform: translateY(0); }
.filter-drawer .fd-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.filter-drawer .fd-head h4 {
  font-family: var(--f-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--navy);
}
.filter-drawer .fd-head button {
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
  color: var(--navy);
}
.filter-drawer .fd-apply {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: var(--navy);
  color: var(--paper);
  border: 0;
  padding: 16px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  z-index: 260;
  border-radius: 3px;
}

/* ---------- Responsive: Header & Global ---------- */
@media (max-width: 900px) {
  .utility-bar .wrap {
    padding: 8px 16px;
    font-size: 10px;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
  }
  .utility-bar .left,
  .utility-bar .right {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .site-header .wrap {
    padding: 14px 16px;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
  }
  .brand { grid-column: 2; }
  .brand .mark { font-size: 19px; }
  .brand .sub { display: none; }

  .nav-main.left,
  .nav-main.right {
    display: none;
  }
  .menu-toggle { display: inline-flex; }
  .mobile-only-search { display: flex; justify-self: end; }

  /* Mobile drawer (nav) — shown on mobile */
  .mobile-drawer {
    display: flex;
    position: fixed;
    top: 0; left: 0;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    background: var(--paper);
    z-index: 200;
    padding: 20px 20px 120px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    flex-direction: column;
    gap: 0;
    box-shadow: 2px 0 24px rgba(0,0,0,0.12);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .drawer-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 18, 53, 0.5);
    z-index: 199;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  .mobile-drawer.open { transform: translateX(0); }
  .mobile-drawer .close {
    background: none; border: 0; padding: 10px; cursor: pointer;
    align-self: flex-end;
    color: var(--navy);
    min-width: 44px;
    min-height: 44px;
  }
  .mobile-drawer .close svg { width: 22px; height: 22px; }
  .mobile-drawer .brand-sm {
    font-family: var(--f-serif);
    font-size: 22px;
    color: var(--navy);
    padding: 4px 0 20px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 8px;
  }
  .mobile-drawer .brand-sm em { font-style: italic; color: var(--gold-text); }
  .mobile-drawer a {
    font-size: 14px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
    padding: 16px 0;
    text-decoration: none;
    border-bottom: 1px solid var(--line);
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  .mobile-drawer a:last-of-type { border-bottom: 0; }
  .mobile-drawer .contact-info {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--muted);
    line-height: 1.8;
  }
  .mobile-drawer .contact-info a {
    font-size: 14px;
    color: var(--navy);
    padding: 8px 0;
    border: 0;
    letter-spacing: 0;
    text-transform: none;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: auto;
    font-weight: 500;
  }
  .drawer-overlay.open { opacity: 1; pointer-events: auto; }

  /* Site footer mobile — accordion */
  .site-footer .wrap {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    padding: 36px 20px 0 !important;
  }
  .site-footer .brand-block {
    text-align: left;
    padding-bottom: 24px;
    border-bottom: 1px solid #2a2f5c;
    margin-bottom: 8px;
  }
  .site-footer > .wrap > div:not(.brand-block) {
    border-bottom: 1px solid #2a2f5c;
  }
  .site-footer h5 {
    font-size: 11px;
    margin-bottom: 0;
    letter-spacing: 0.18em;
    padding: 18px 0;
    cursor: pointer;
    position: relative;
    user-select: none;
  }
  .site-footer h5::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: 300;
    color: var(--gold-soft);
    transition: transform 0.3s;
  }
  .site-footer .acc-open h5::after {
    content: "−";
  }
  .site-footer ul {
    padding-left: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .site-footer .acc-open ul {
    max-height: 400px;
    padding-bottom: 16px;
  }
  .site-footer ul li a {
    display: block;
    padding: 10px 0;
    min-height: 40px;
  }
  .site-footer > .wrap > div:last-of-type > div {
    padding: 0 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }
  .site-footer > .wrap > div.acc-open:last-of-type > div {
    max-height: 300px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 20px !important;
    margin-top: 20px !important;
  }
}

@media (max-width: 480px) {
  .utility-bar {
    display: none;
  }
  .site-header .wrap { padding: 12px 14px; }
  .brand .mark { font-size: 17px; }
}

/* ---------- Sticky mobile call bar ---------- */
.mobile-call-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--navy);
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0));
  z-index: 100;
  gap: 8px;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
}
.mobile-call-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  min-height: 48px;
  border-radius: 2px;
}
.mobile-call-bar a.call { background: var(--gold); color: var(--paper); }
.mobile-call-bar a.email { background: transparent; color: var(--paper); border: 1px solid rgba(255,255,255,0.3); }
.mobile-call-bar a svg { width: 16px; height: 16px; }

@media (max-width: 768px) {
  .mobile-call-bar { display: flex; }
  body { padding-bottom: 76px; }
}

/* ---------- Form controls ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.field input, .field select, .field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  font-family: var(--f-sans);
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); }
.field textarea { min-height: 110px; resize: vertical; }

/* ── Accessibility: keyboard focus rings (mouse clicks unaffected) ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
  border-radius: 2px;
}
.newsletter input:focus-visible { outline-color: var(--gold-soft); }

/* Skip-to-content link — visible only when focused via keyboard */
.alt-skip {
  position: absolute;
  left: 8px;
  top: -52px;
  z-index: 10020;
  background: var(--navy);
  color: #fff;
  padding: 10px 18px;
  font-family: var(--f-sans);
  font-size: 13px;
  text-decoration: none;
  border-radius: 3px;
  transition: top .15s ease;
}
.alt-skip:focus { top: 8px; }

/* icon lines */
.ln { stroke: currentColor; stroke-width: 1.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ── LEAD CAPTURE MODAL (#altLMOv / #altLMBox) ───────────────────────────────
   Injected by assets/lead-capture.js (auto-loaded via partials.js).
   Moved here from a JS string-array — styles belong in CSS, not JavaScript.
   ─────────────────────────────────────────────────────────────────────────── */
#altLMOv {
  position: fixed; inset: 0; z-index: 10010;
  background: rgba(10,14,40,.75); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px; animation: lmFd .25s ease;
}
@keyframes lmFd { from { opacity: 0 } to { opacity: 1 } }
#altLMBox {
  background: #fff; max-width: 500px; width: 100%; position: relative;
  box-shadow: 0 32px 80px rgba(0,0,0,.3);
  animation: lmUp .3s cubic-bezier(.4,0,.2,1);
}
@keyframes lmUp {
  from { transform: translateY(20px); opacity: 0 }
  to   { transform: translateY(0);    opacity: 1 }
}
#altLMBox .lm-hd { background: #0f1235; padding: 32px 36px 26px; position: relative; }
#altLMBox .lm-eye {
  font-family: "JetBrains Mono", monospace; font-size: 9.5px;
  letter-spacing: .22em; text-transform: uppercase; color: #b8933a; margin-bottom: 10px;
}
#altLMBox .lm-ttl {
  font-family: "Playfair Display", Georgia, serif; font-size: 26px;
  font-weight: 400; color: #fff; line-height: 1.2; margin-bottom: 8px;
}
#altLMBox .lm-ttl em { font-style: italic; color: #d4b568; }
#altLMBox .lm-sub    { font-size: 13px; color: #9b9dae; line-height: 1.65; }
#altLMBox .lm-cls {
  position: absolute; top: 12px; right: 14px; background: none; border: none;
  color: #6b6e85; cursor: pointer; font-size: 22px; padding: 6px 8px;
  transition: color .15s; line-height: 1;
}
#altLMBox .lm-cls:hover { color: #fff; }
#altLMBox .lm-bd { padding: 24px 36px 32px; }
#altLMBox .lm-offer {
  background: #faf8f3; border-left: 3px solid #b8933a;
  padding: 10px 16px; font-size: 12.5px; color: #5a5e78;
  margin-bottom: 20px; line-height: 1.5;
}
#altLMBox .lm-offer strong { color: #0f1235; }
#altLMBox .lm-form { display: flex; gap: 0; border: 1px solid #d6d0c0; }
#altLMBox .lm-inp {
  flex: 1; border: none; padding: 13px 16px; font-family: inherit;
  font-size: 14px; color: #0f1235; background: #faf8f3; outline: none; min-width: 0;
}
#altLMBox .lm-inp::placeholder { color: #b0b2c0; }
#altLMBox .lm-btn {
  background: #b8933a; color: #fff; border: none; padding: 13px 20px;
  font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; cursor: pointer; white-space: nowrap;
  font-weight: 500; transition: background .2s;
}
#altLMBox .lm-btn:hover { background: #d4b568; }
#altLMBox .lm-skip     { text-align: center; margin-top: 14px; font-size: 12px; color: #9b9dae; }
#altLMBox .lm-skip a   { color: #6b6e85; border-bottom: 1px solid #d6d0c0; cursor: pointer; }
@media (max-width: 520px) {
  #altLMBox .lm-hd   { padding: 24px 22px 20px; }
  #altLMBox .lm-ttl  { font-size: 21px; }
  #altLMBox .lm-bd   { padding: 18px 22px 26px; }
  #altLMBox .lm-form { flex-direction: column; border: none; gap: 8px; }
  #altLMBox .lm-inp  { border: 1px solid #d6d0c0; padding: 12px 14px; }
  #altLMBox .lm-btn  { padding: 13px; width: 100%; }
}

/* ── SEARCH OVERLAY (#altSearchOverlay) ──────────────────────────────────────
   Injected by partials.js on demand. Moved here from a JS string.
   ─────────────────────────────────────────────────────────────────────────── */
#altSearchOverlay {
  display: none; position: fixed; inset: 0; z-index: 10000;
  background: rgba(10,14,40,.72); backdrop-filter: blur(4px);
}
#altSearchOverlay.open { display: flex; flex-direction: column; align-items: center; padding-top: 80px; }
.alt-search-box {
  width: 100%; max-width: 640px; background: #fff; border-radius: 4px;
  box-shadow: 0 24px 64px rgba(0,0,0,.28); overflow: hidden;
}
.alt-search-input-wrap { display: flex; align-items: center; padding: 0 18px; border-bottom: 1px solid #e8e5de; }
.alt-search-input-wrap svg { flex-shrink: 0; opacity: .45; }
#altSearchInput {
  flex: 1; border: none; outline: none; padding: 18px 14px;
  font-family: var(--f-sans, 'Inter', sans-serif); font-size: 16px;
  color: #1a1f4e; background: transparent;
}
#altSearchInput::placeholder { color: #aaa; }
.alt-search-close { background: none; border: none; cursor: pointer; padding: 6px; opacity: .5; transition: opacity .2s; flex-shrink: 0; }
.alt-search-close:hover { opacity: 1; }
#altSearchResults { max-height: 420px; overflow-y: auto; }
.alt-sr-item {
  display: flex; align-items: center; gap: 14px; padding: 12px 18px;
  cursor: pointer; border-bottom: 1px solid #f0ede8; transition: background .15s;
}
.alt-sr-item:last-child { border-bottom: none; }
.alt-sr-item:hover     { background: #faf8f5; }
.alt-sr-img            { width: 52px; height: 52px; object-fit: cover; border-radius: 3px; background: #f0ede8; flex-shrink: 0; }
.alt-sr-name           { font-family: var(--f-serif, 'Inter', sans-serif); font-size: 16px; font-weight: 600; color: #1a1f4e; }
.alt-sr-meta           { font-size: 11px; color: #8b8fa8; margin-top: 2px; letter-spacing: .04em; }
.alt-sr-tag {
  margin-left: auto; font-family: var(--f-mono, 'JetBrains Mono', monospace);
  font-size: 9px; letter-spacing: .12em; text-transform: uppercase;
  background: #1a1f4e; color: #fff; padding: 3px 8px; border-radius: 2px; flex-shrink: 0;
}
.alt-search-empty { padding: 40px 18px; text-align: center; color: #aaa; font-size: 14px; }
.alt-search-hint  { padding: 10px 18px; font-size: 11px; color: #bbb; letter-spacing: .06em; text-transform: uppercase; }
.alt-search-btn   { background: none; border: none; cursor: pointer; padding: 4px; display: flex; align-items: center; color: inherit; }
