/* shell.css — du-marketplace native shell (header, nav, main base, footer).
   Palette: navy #111c4e · blue #2352ed · white #ffffff · pale blue #eff5ff.
   System sans only. No CDN, no webfont, no framework.
   Owned by the du-marketplace theme; enqueued by root as handle
   'du-native-shell' (see README-home.md). */

:root {
  --du-navy: #111c4e;
  --du-blue: #2352ed;
  --du-blue-dark: #1a3fc4;
  --du-white: #ffffff;
  --du-pale: #eff5ff;
  --du-pale-2: #e2ecfd;
  --du-ink: #111c4e;
  --du-muted: #4d5d80;
  --du-line: #d9e2f2;
  --du-radius: 10px;
  --du-shell: 1330px;
  --du-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --du-header-h: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body.du-native-body {
  background: var(--du-white);
  color: var(--du-ink);
  font-family: var(--du-font);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden; /* defensive: never a horizontal scrollbar */
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

.du-native-body a {
  color: var(--du-blue);
  text-underline-offset: 2px;
}

.du-native-body :focus-visible {
  outline: 3px solid var(--du-navy);
  outline-offset: 3px;
  border-radius: 2px;
}

.du-shell {
  width: 100%;
  max-width: var(--du-shell);
  margin-inline: auto;
  padding-inline: 40px;
}

/* ---------------------------------------------------------------- skip link */

.du-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 12px 18px;
  background: var(--du-navy);
  color: var(--du-white);
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 var(--du-radius) 0;
}

.du-skip-link:focus {
  left: 0;
}

/* ------------------------------------------------------------------- header */

.du-site-header {
  background: var(--du-white);
  border-bottom: 1px solid var(--du-line);
  position: relative;
  z-index: 20;
}

.du-header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--du-header-h);
}

.du-brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  min-width: 0;
}

.du-brand img {
  display: block;
  width: auto;
  max-width: 215px;
  max-height: 56px;
  height: auto;
}

.du-brand-text {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.4px;
  color: var(--du-navy);
  text-decoration: none;
  white-space: nowrap;
}

.du-primary-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.du-nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.du-nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--du-navy);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}

.du-nav-list a:hover {
  color: var(--du-blue);
  text-decoration: underline;
}

.du-nav-upload {
  color: var(--du-blue) !important;
}

.du-header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.du-account-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--du-navy);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.du-account-link:hover {
  color: var(--du-blue);
  text-decoration: underline;
}

.du-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 44px;
  color: var(--du-navy);
  text-decoration: none;
}

.du-cart:hover {
  color: var(--du-blue);
}

.du-cart-icon {
  width: 26px;
  height: 26px;
}

.du-cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--du-blue);
  color: var(--du-white);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

/* ------------------------------------------------------------------- toggle */

.du-nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--du-line);
  border-radius: 8px;
  color: var(--du-navy);
  font: 600 15px/1 var(--du-font);
  cursor: pointer;
}

.du-nav-toggle-bars,
.du-nav-toggle-bars::before,
.du-nav-toggle-bars::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.du-nav-toggle-bars::before {
  transform: translateY(-6px);
}

.du-nav-toggle-bars::after {
  transform: translateY(4px);
}

/* --------------------------------------------------------------------- main */

.du-main {
  display: block;
  min-height: 40vh;
}

.du-main h1,
.du-main h2,
.du-main h3 {
  color: var(--du-ink);
  line-height: 1.15;
  letter-spacing: -0.4px;
}

.du-main p {
  margin: 0 0 1em;
}

/* ------------------------------------------------------------------- footer */

.du-site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--du-line);
  background: var(--du-white);
  color: var(--du-muted);
  font-size: 14px;
}

.du-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  padding-block: 22px;
}

.du-footer-note {
  margin: 0;
  color: var(--du-muted);
}

.du-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.du-footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--du-muted);
  text-decoration: none;
}

.du-footer-links a:hover {
  color: var(--du-blue);
  text-decoration: underline;
}

/* ------------------------------------------------------------------ a11y util */

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

/* -------------------------------------------------------------- responsive */

@media (max-width: 1100px) {
  .du-shell {
    padding-inline: 24px;
  }

  .du-header-inner {
    gap: 18px;
  }

  .du-nav-list {
    gap: 22px;
  }

  .du-nav-list a,
  .du-account-link {
    font-size: 16px;
  }

  .du-header-actions {
    gap: 14px;
  }
}

@media (max-width: 860px) {
  .du-site-header {
    position: sticky;
    top: 0;
  }

  .du-header-inner {
    flex-wrap: wrap;
    row-gap: 0;
    min-height: 68px;
    padding-block: 4px;
  }

  .du-brand {
    flex: 1 1 auto;
  }

  .du-brand img {
    max-width: 168px;
    max-height: 46px;
  }

  .du-header-actions {
    order: 2;
    margin-left: auto;
  }

  .du-nav-toggle {
    order: 3;
    display: inline-flex;
  }

  .du-primary-nav {
    order: 4;
    flex: 0 0 100%;
    width: 100%;
    display: none;
    border-top: 1px solid var(--du-line);
    padding-block: 8px;
  }

  .du-primary-nav.is-open {
    display: block;
  }

  .du-nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .du-nav-list a {
    justify-content: flex-start;
    padding-block: 12px;
    border-bottom: 1px solid var(--du-line);
  }

  .du-nav-list li:last-child a {
    border-bottom: 0;
  }
}

/* No-JS fallback: with JavaScript disabled the mobile nav stays reachable
   (the .no-js class is removed by an inline head script when JS runs). */
@media (max-width: 860px) {
  html.no-js .du-primary-nav {
    display: block;
  }
}

@media (max-width: 420px) {
  .du-shell {
    padding-inline: 16px;
  }

  .du-brand img {
    max-width: 138px;
  }

  .du-brand-text {
    font-size: 17px;
    white-space: normal;
  }

  .du-account-link {
    font-size: 15px;
  }

  .du-header-actions {
    gap: 8px;
  }

  .du-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 359px) {
  .du-brand img {
    max-width: 116px;
  }

  .du-cart {
    min-width: 44px;
  }

  .du-cart-icon {
    width: 23px;
    height: 23px;
  }

  .du-nav-toggle-label {
    display: none;
  }
}
/* Crisp wordmark paired with the existing D; no new raster lettering. */
.du-brand-lockup { display:flex; align-items:center; gap:10px; text-decoration:none; color:#111c4e; }
.du-brand .du-brand-symbol { width:44px; height:44px; object-fit:contain; }
.du-brand-wordmark { display:block; font-size:17px; line-height:1.13; font-weight:650; letter-spacing:-.35px; }
.du-brand-wordmark strong { display:block; color:#2352ed; font-weight:800; }
.du-account-link { display:inline-flex; align-items:center; gap:7px; }
.du-account-icon { display:none; width:23px; height:23px; }
@media(max-width:620px) {
 .du-header-inner { gap:9px; }
 .du-brand .du-brand-symbol { width:32px; height:32px; }
 .du-brand-lockup { gap:7px; }
 .du-brand-wordmark { font-size:13px; letter-spacing:-.2px; }
 .du-account-icon { display:block; }
 .du-account-link { min-width:40px; min-height:44px; justify-content:center; }
 .du-account-label { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
 .du-nav-toggle-label { display:none; }
 .du-header-actions { gap:2px; }
}
