/**
 * SalesDesk — Public Shell CSS  (v2)
 * assets/css/public-shell.css
 *
 * SINGLE OWNER for everything views/layout-public.php renders itself:
 * nav bar, mega panels, account panel, search sheet, mobile drawer,
 * breadcrumb, <main> page shells and footer. No other stylesheet may
 * declare any selector in this file. If a page needs a variation, add
 * a modifier class here — never override from a page stylesheet.
 *
 * v2 (public UX/UI overhaul):
 *   – Nav content sits in .sd-container (max-width) so the logo lines
 *     up with page content on ultra-wide screens.
 *   – New: inline nav search with typeahead (desktop), search sheet
 *     (mobile), saved-cars icon with live count, "Sell your car" CTA,
 *     scrolled-state shadow (.is-scrolled, set by public-nav.js).
 *   – Mobile drawer is now a right-hand sheet with accordion groups
 *     (<details>) and a pinned account footer.
 *   – Footer redesigned on the ink surface with a newsletter card.
 *
 * Load order: global.css → public-shell.css → public.css → page CSS
 * Behaviour: assets/js/public-nav.js (nav), footer-newsletter.js (footer).
 *
 * Sections:
 *   1. Public body + skip link
 *   2. Nav bar
 *   3. Nav triggers
 *   4. Mega panels
 *   5. Nav actions (search, icons, account, CTA)
 *   6. Account panel
 *   7. Hamburger
 *   8. Search sheet (mobile)
 *   9. Mobile drawer
 *  10. Nav responsive
 *  11. Breadcrumb
 *  12. Page shells
 *  13. Footer
 *  14. Scroll lock, print
 */


/* ══════════════════════════════════════
   1. PUBLIC BODY + SKIP LINK
   ══════════════════════════════════════ */
.sd-public {
  background: var(--bg);
  color: var(--text);
  font-size: var(--fs-md);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

.sd-public a:hover { text-decoration: none; }

.pub-skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: calc(var(--z-modal) + 20);
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 600;
  border-radius: var(--r-md);
}
.pub-skip-link:focus { top: 12px; }


/* ══════════════════════════════════════
   2. NAV BAR
   ══════════════════════════════════════ */
.pub-nav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  height: var(--nav-h);
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease), background var(--dur-2);
}

.pub-nav.is-scrolled {
  background: rgba(255, 255, 255, .94);
  border-bottom-color: var(--border);
  box-shadow: 0 6px 24px rgba(10, 22, 40, .06);
}

.pub-nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
}

.pub-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  color: var(--text);
}

.pub-nav__mark {
  width: 44px;
  height: auto;
}

.pub-nav__name {
  font-family: var(--font-d);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--text);
}
.pub-nav__name span { color: var(--p); }

.pub-nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}


/* ══════════════════════════════════════
   3. NAV TRIGGERS
   ══════════════════════════════════════ */
.pub-nav__browse { position: relative; }

.pub-nav__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 12px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  background: none;
  border: 0;
  border-radius: var(--r-full);
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--dur-1), background var(--dur-1);
}

.pub-nav__trigger:hover { color: var(--text); background: var(--bg); }
.pub-nav__trigger.open  { color: var(--p); background: var(--p-light); }

.pub-chevron {
  display: inline-block;
  font-size: 9px;
  opacity: .55;
  transition: transform var(--dur-2) var(--ease);
}

.pub-nav__trigger.open .pub-chevron,
.pub-nav__acct-btn.open .pub-chevron { transform: rotate(180deg); }


/* ══════════════════════════════════════
   4. MEGA PANELS
   ══════════════════════════════════════ */
.pub-mega-panel {
  --pub-panel-shift: 0px;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  z-index: var(--z-dropdown);
  min-width: 280px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translate(calc(-50% + var(--pub-panel-shift)), 6px);
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease), visibility 0s linear var(--dur-2);
}

.pub-mega-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translate(calc(-50% + var(--pub-panel-shift)), 0);
  transition-delay: 0s;
}

/* Hover bridge so the pointer can travel from trigger to panel */
.pub-mega-panel::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

.pub-mega-cols {
  display: flex;
  gap: 6px;
}

.pub-mega-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 220px;
}

.pub-mega-divider {
  width: 1px;
  margin: 6px 4px;
  background: var(--border);
  flex-shrink: 0;
}

.pub-mega-hdivider {
  height: 1px;
  margin: 8px 6px;
  background: var(--border);
}

.pub-mega-panel__inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 340px;
}

.pub-mega-col-label {
  padding: 8px 10px 6px;
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--faint);
}

.pub-mega-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 10px;
  border-radius: var(--r-md);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  transition: background var(--dur-1);
}

.pub-mega-item:hover,
.pub-mega-item:focus-visible { background: var(--bg); }

.pub-mega-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--p-light);
  color: var(--p);
  font-size: 14px;
  transition: background var(--dur-1), color var(--dur-1);
}

.pub-mega-item:hover .pub-mega-icon { background: var(--p); color: #fff; }

.pub-mega-item-text {
  display: flex;
  flex-direction: column;
  padding-top: 1px;
}

.pub-mega-item-sub {
  margin-top: 2px;
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--muted);
}

.pub-mega-item--compact { align-items: center; padding-block: 7px; }
.pub-mega-item--compact .pub-mega-icon { width: 30px; height: 30px; font-size: 13px; }

/* Promo tile inside a mega panel */
.pub-mega-promo {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  width: 230px;
  padding: 18px;
  border-radius: var(--r-lg);
  color: var(--on-ink);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(242, 107, 29, .45) 0%, transparent 55%),
    linear-gradient(160deg, var(--ink-3) 0%, var(--ink) 100%);
}

.pub-mega-promo__eyebrow,
.pub-mega-promo__title { display: block; }

.pub-mega-promo__eyebrow {
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.pub-mega-promo__title {
  margin-top: 6px;
  font-family: var(--font-d);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.02em;
  color: #fff;
}

.pub-mega-promo__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #fff;
}
.pub-mega-promo__link i { transition: transform var(--dur-2) var(--ease); }
.pub-mega-promo:hover .pub-mega-promo__link i { transform: translateX(4px); }


/* ══════════════════════════════════════
   5. NAV ACTIONS
   ══════════════════════════════════════ */
.pub-nav__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: auto;
}

/* Inline search (desktop) */
.pub-nav__search {
  position: relative;
  width: clamp(180px, 20vw, 280px);
  margin-right: 4px;
}

.pub-nav__search-input {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 38px;
  font: 500 14px/1 var(--sans);
  color: var(--text);
  background: var(--bg);
  border: 1px solid transparent;
  border-radius: var(--r-full);
  outline: none;
  transition: background var(--dur-1), border-color var(--dur-1), box-shadow var(--dur-1);
}

.pub-nav__search-input::placeholder { color: var(--faint); font-weight: 400; }

.pub-nav__search-input:hover { border-color: var(--border); }

.pub-nav__search-input:focus {
  background: var(--white);
  border-color: var(--p-mid);
  box-shadow: 0 0 0 4px var(--p-ring);
}

.pub-nav__search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--muted);
  pointer-events: none;
}

.pub-nav__search .typeahead-box { top: calc(100% + 8px); }

/* Round icon buttons (search on mobile, saved cars) */
.pub-nav__icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  color: var(--text2);
  font-size: 17px;
  background: none;
  border: 0;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: background var(--dur-1), color var(--dur-1);
}

.pub-nav__icon-btn:hover { background: var(--bg); color: var(--text); }

.pub-nav__search-btn { display: none; }

.pub-nav__count {
  position: absolute;
  top: 4px;
  right: 3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  font: 700 10px/1 var(--sans);
  color: #fff;
  background: var(--accent);
  border: 2px solid var(--white);
  border-radius: var(--r-full);
}

.pub-nav__count.is-bump { animation: pub-count-bump .45s var(--ease); }

@keyframes pub-count-bump {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.pub-nav__acct-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
}

.pub-nav__signin {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  border-radius: var(--r-full);
  white-space: nowrap;
  transition: background var(--dur-1);
}
.pub-nav__signin:hover { background: var(--bg); }

.pub-nav__acct-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 10px 0 4px;
  font: 600 14px/1 var(--sans);
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: border-color var(--dur-1), box-shadow var(--dur-1);
}

.pub-nav__acct-btn:hover,
.pub-nav__acct-btn.open { border-color: var(--border2); box-shadow: var(--shadow-sm); }

.pub-nav__avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font: 700 12px/1 var(--font-d);
  color: #fff;
  background: linear-gradient(135deg, var(--p-mid), var(--p-dark));
}

.pub-nav__avatar--guest {
  color: var(--muted);
  background: var(--bg);
  font-size: 15px;
}

.pub-nav__cta {
  margin-left: 6px;
  white-space: nowrap;
}


/* ══════════════════════════════════════
   6. ACCOUNT PANEL
   ══════════════════════════════════════ */
.pub-mega-panel.pub-acct-panel {
  left: auto;
  right: 0;
  width: 280px;
  min-width: 0;
  padding: 8px;
  transform: translateY(6px);
}

.pub-mega-panel.pub-acct-panel.open { transform: translateY(0); }

.pub-acct-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 12px;
}

.pub-acct-head__title {
  font-family: var(--font-d);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.pub-acct-head__sub { font-size: var(--fs-xs); color: var(--muted); }

.pub-acct-section-label {
  padding: 10px 10px 4px;
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--faint);
}

.pub-acct-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--r-sm);
  transition: background var(--dur-1);
}

.pub-acct-item i {
  width: 18px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.pub-acct-item:hover { background: var(--bg); }
.pub-acct-item.danger,
.pub-acct-item.danger i { color: var(--red); }

.pub-acct-divider {
  height: 1px;
  margin: 6px 4px;
  background: var(--border);
}

.pub-acct-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px 4px 4px;
}


/* ══════════════════════════════════════
   7. HAMBURGER
   ══════════════════════════════════════ */
.pub-nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 11px;
  background: none;
  border: 0;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: background var(--dur-1);
}

.pub-nav__hamburger:hover { background: var(--bg); }

.pub-nav__hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--dur-2) var(--ease), opacity var(--dur-1);
}

.pub-nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.pub-nav__hamburger.open span:nth-child(2) { opacity: 0; }
.pub-nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ══════════════════════════════════════
   8. SEARCH SHEET (mobile)
   ══════════════════════════════════════ */
.pub-search-sheet {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  flex-direction: column;
  background: var(--white);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease), visibility 0s linear var(--dur-2);
}

.pub-search-sheet.open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.pub-search-sheet__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px var(--page-gutter);
  border-bottom: 1px solid var(--border);
}

.pub-search-sheet__form {
  position: relative;
  flex: 1;
}

.pub-search-sheet__input {
  width: 100%;
  height: 48px;
  padding: 0 14px 0 42px;
  font: 500 16px/1 var(--sans);   /* 16px stops iOS zoom-on-focus */
  color: var(--text);
  background: var(--bg);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  outline: none;
}

.pub-search-sheet__input:focus {
  background: var(--white);
  border-color: var(--p-mid);
  box-shadow: 0 0 0 4px var(--p-ring);
}

.pub-search-sheet__icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.pub-search-sheet__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px var(--page-gutter) 32px;
}

.pub-search-sheet__label {
  margin: 4px 0 10px;
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--faint);
}

.pub-search-sheet__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.pub-search-sheet .typeahead-box { top: calc(100% + 6px); }


/* ══════════════════════════════════════
   9. MOBILE DRAWER
   ══════════════════════════════════════ */
.pub-mobile-nav {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: var(--z-modal);
  background: rgba(10, 22, 40, .48);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-2) var(--ease), visibility 0s linear var(--dur-2);
}

.pub-mobile-nav.open {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.pub-mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--white);
  box-shadow: var(--shadow-xl);
  transform: translateX(100%);
  transition: transform var(--dur-3) var(--ease);
}

.pub-mobile-nav.open .pub-mobile-nav__panel { transform: none; }

.pub-mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 var(--page-gutter);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.pub-mobile-nav__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px var(--page-gutter) 24px;
}

.pub-mobile-nav__primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 0 12px;
  padding: 16px;
  border-radius: var(--r-lg);
  color: #fff;
  font-family: var(--font-d);
  font-size: 16px;
  font-weight: 700;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(242, 107, 29, .5) 0%, transparent 55%),
    linear-gradient(160deg, var(--ink-3), var(--ink));
}

.pub-mobile-nav__group { border-bottom: 1px solid var(--border); }

.pub-mobile-nav__group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 2px;
  font-family: var(--font-d);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  cursor: pointer;
}

.pub-mobile-nav__group > summary::-webkit-details-marker { display: none; }

.pub-mobile-nav__group > summary::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 12px;
  color: var(--faint);
  transition: transform var(--dur-2) var(--ease);
}

.pub-mobile-nav__group[open] > summary::after { transform: rotate(180deg); }

.pub-mobile-nav__links {
  display: grid;
  gap: 2px;
  padding: 0 0 14px;
}

.pub-mobile-nav__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 10px;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 500;
  color: var(--text2);
}

.pub-mobile-nav__item i {
  width: 20px;
  text-align: center;
  color: var(--p);
  font-size: 14px;
}

.pub-mobile-nav__item:active,
.pub-mobile-nav__item:hover { background: var(--bg); color: var(--text); }

.pub-mobile-nav__item--danger,
.pub-mobile-nav__item--danger i { color: var(--red); }

.pub-mobile-nav__foot {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px var(--page-gutter) calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: var(--bg2);
}

.pub-mobile-nav__foot--single { grid-template-columns: 1fr; }


/* ══════════════════════════════════════
   10. NAV RESPONSIVE
   Keep 1100px in sync with NAV_DESKTOP_MQ in public-nav.js
   ══════════════════════════════════════ */
@media (max-width: 1280px) {
  .pub-nav__search { width: 190px; }
  .pub-nav__trigger { padding: 0 9px; }
}

@media (max-width: 1100px) {
  /* .pub-nav prefix: .pub-btn (public.css, loaded later) must not win */
  .pub-nav .pub-nav__links,
  .pub-nav .pub-nav__search,
  .pub-nav .pub-nav__acct-wrap,
  .pub-nav .pub-nav__cta { display: none; }

  .pub-nav .pub-nav__hamburger,
  .pub-nav .pub-nav__search-btn { display: inline-flex; }
}

@media (min-width: 1101px) {
  .pub-mobile-nav,
  .pub-search-sheet { display: none; }
}

@media (max-width: 380px) {
  .pub-nav__name { font-size: 17px; }
  .pub-nav__mark { width: 38px; }
  .pub-nav__icon-btn { width: 38px; }
}

/* Landscape phones: --nav-h already drops to 56px (global.css). Trim the
   overlay chrome to match so the scrollable body keeps the height. */
@media (max-height: 520px) and (orientation: landscape) {
  .pub-mobile-nav__body { padding-block: 8px 16px; }
  .pub-mobile-nav__primary { margin: 2px 0 10px; padding: 12px 14px; }
  .pub-mobile-nav__group > summary { padding: 13px 2px; }
  .pub-mobile-nav__foot { padding-block: 10px calc(10px + env(safe-area-inset-bottom)); }

  .pub-search-sheet__head { padding-block: 8px; }
  .pub-search-sheet__input { height: 44px; }
  .pub-search-sheet__body { padding-block: 14px 20px; }
  .pub-search-sheet__chips { margin-bottom: 16px; }
}


/* ══════════════════════════════════════
   11. BREADCRUMB
   ══════════════════════════════════════ */
.pub-breadcrumb {
  padding-block: 14px 0;
}

.pub-breadcrumb__list {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  font-size: var(--fs-sm);
  white-space: nowrap;
  list-style: none;
}

.pub-breadcrumb__list::-webkit-scrollbar { display: none; }

.pub-breadcrumb a {
  color: var(--muted);
  transition: color var(--dur-1);
}

.pub-breadcrumb a:hover { color: var(--p); }

.pub-breadcrumb .sep {
  font-size: 8px;
  color: var(--faint);
}

.pub-breadcrumb .current {
  color: var(--text);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* ══════════════════════════════════════
   12. PAGE SHELLS
   ══════════════════════════════════════ */
.pub-page-wide,
.pub-page-narrow {
  display: block;
  min-height: 60vh;
}

.pub-page-narrow > * {
  max-width: 880px;
  margin-inline: auto;
}


/* ══════════════════════════════════════
   13. FOOTER
   ══════════════════════════════════════ */
.sd-footer {
  margin-top: var(--section-y);
  color: var(--on-ink-2);
  background: var(--ink);
  font-size: 14px;
}

.sd-footer__top {
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) repeat(3, minmax(140px, 1fr)) minmax(260px, 1.3fr);
  gap: 40px;
  padding-block: 64px 48px;
}

.sd-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.sd-footer__logo { width: 44px; height: auto; }

.sd-footer__name {
  font-family: var(--font-d);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: #fff;
}
.sd-footer__name span { color: var(--p-bright); }

.sd-footer__desc {
  max-width: 320px;
  margin-bottom: 20px;
  line-height: 1.7;
}

.sd-footer__socials {
  display: flex;
  gap: 8px;
}

.sd-footer__social {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--on-ink);
  border: 1px solid var(--on-ink-3);
  border-radius: var(--r-full);
  transition: background var(--dur-1), border-color var(--dur-1);
}

.sd-footer__social:hover { background: var(--ink-3); border-color: transparent; }

.sd-footer__col-title {
  margin-bottom: 14px;
  font-family: var(--font-d);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: #fff;
}

.sd-footer__links {
  display: grid;
  gap: 10px;
}

.sd-footer__link {
  color: var(--on-ink-2);
  transition: color var(--dur-1);
}

.sd-footer__link:hover { color: #fff; }

.sd-footer__nl {
  padding: 22px;
  border-radius: var(--r-lg);
  background: var(--ink-2);
  border: 1px solid var(--on-ink-3);
}

.sd-footer__nl-label {
  font-family: var(--font-d);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.sd-footer__nl-sub {
  margin: 4px 0 14px;
  font-size: var(--fs-sm);
}

.sd-footer__nl-form {
  display: flex;
  gap: 6px;
  padding: 5px;
  background: var(--ink);
  border: 1px solid var(--on-ink-3);
  border-radius: var(--r-full);
  transition: border-color var(--dur-1), box-shadow var(--dur-1);
}

.sd-footer__nl-form:focus-within {
  border-color: var(--p-bright);
  box-shadow: 0 0 0 4px rgba(47, 124, 246, .25);
}

.sd-footer__nl-input {
  flex: 1;
  min-width: 0;
  padding: 0 12px;
  font: 400 14px/1 var(--sans);
  color: #fff;
  background: transparent;
  border: 0;
  outline: none;
}

.sd-footer__nl-input::placeholder { color: rgba(232, 238, 248, .45); }

.sd-footer__nl-btn {
  height: 38px;
  padding: 0 16px;
  font: 600 13px/1 var(--sans);
  color: var(--on-accent);
  background: var(--accent);
  border: 0;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: background var(--dur-1);
}

.sd-footer__nl-btn:hover { background: var(--accent-dark); }
.sd-footer__nl-btn:disabled { opacity: .7; cursor: wait; }

.sd-footer__nl-note {
  margin-top: 10px;
  font-size: var(--fs-xs);
  color: rgba(232, 238, 248, .5);
}

.sd-footer__nl-note.is-success { color: #6ee7a0; }
.sd-footer__nl-note.is-error   { color: #fca5a5; }

.sd-footer__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding-block: 20px;
  border-top: 1px solid var(--on-ink-3);
}

.sd-footer__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  color: var(--on-ink);
}

.sd-footer__badge i { color: var(--accent-2); }

.sd-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 20px calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--on-ink-3);
  font-size: var(--fs-xs);
  color: rgba(232, 238, 248, .5);
}

.sd-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.sd-footer__legal a { color: rgba(232, 238, 248, .6); }
.sd-footer__legal a:hover { color: #fff; }

@media (max-width: 1100px) {
  .sd-footer__top { grid-template-columns: repeat(3, 1fr); }
  .sd-footer__col--brand,
  .sd-footer__col--nl { grid-column: span 3; }
  .sd-footer__col--nl { max-width: 520px; }
}

@media (max-width: 640px) {
  .sd-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 32px 20px;
    padding-block: 48px 32px;
  }
  .sd-footer__col--brand,
  .sd-footer__col--nl { grid-column: span 2; }
  .sd-footer__bottom { flex-direction: column; align-items: flex-start; }
}


/* ══════════════════════════════════════
   14. SCROLL LOCK, PRINT
   ══════════════════════════════════════ */
/* ── Touch ergonomics ────────────────────────────────────────────────
   These are plain text links: ~19-22px tall, well under the 44px target.
   Padding (not extra height) keeps the visual rhythm on pointer devices
   unchanged while giving fingers something to hit. */
@media (pointer: coarse) {
  .sd-footer__links { gap: 2px; }
  .sd-footer__link { padding-block: 9px; }
  .sd-footer__legal { gap: 2px 18px; }
  .sd-footer__legal a { display: inline-block; padding-block: 8px; }
  .pub-breadcrumb__list a,
  .pub-breadcrumb__list span { display: inline-block; padding-block: 7px; }
  .pub-mobile-nav__head .pub-nav__brand { padding-block: 10px; }
  .pub-nav__brand { min-height: 44px; }
}

.pub-scroll-lock,
.pub-scroll-lock body { overflow: hidden; }

@media print {
  .pub-nav,
  .pub-mobile-nav,
  .pub-search-sheet,
  .sd-footer,
  .pub-skip-link { display: none !important; }
}
