/*
 * Bagworth product foundation
 *
 * This layer owns the durable public shell, collection, price-guide index,
 * and canonical family pages. The add-bag flow remains in styles.css so its
 * verified behavior and mobile layout stay isolated.
 */

:root {
  --bw-ink: #171512;
  --bw-paper: #f5f3ee;
  --bw-surface: #fffefa;
  --bw-muted: #716c64;
  --bw-line: #d9d5cd;
  --bw-accent: #641b16;
  --bw-positive: #2e6247;
  --bw-display: Georgia, "Times New Roman", serif;
  --bw-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

body.simple-mode,
body.home-anon {
  background: var(--bw-paper);
  color: var(--bw-ink);
}

.simple-mode .app-shell,
.home-anon .app-shell {
  background: var(--bw-paper);
}

.simple-mode .sidebar,
.home-anon .sidebar {
  min-height: 68px;
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  top: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--bw-line);
  padding: 0 clamp(20px, 4vw, 64px);
  background: rgba(245, 243, 238, 0.94);
  backdrop-filter: blur(18px);
}

.simple-mode .brand,
.home-anon .brand {
  width: 100%;
  max-width: none;
  min-height: 68px;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  margin: 0;
  padding: 0;
}

.simple-mode .brand-home,
.home-anon .brand-home {
  flex: 0 0 auto;
  max-width: none;
  gap: 10px;
  color: var(--bw-ink);
  font-size: 15px;
  font-weight: 780;
  letter-spacing: -0.02em;
}

.simple-mode .brand-monogram,
.home-anon .brand-monogram {
  width: 38px !important;
  height: 38px !important;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0 !important;
  background: transparent !important;
  color: transparent;
  font-size: 0;
  box-shadow: none !important;
}

.simple-mode .nav-list,
.home-anon .nav-list {
  position: absolute;
  left: 50%;
  display: flex !important;
  align-items: center;
  gap: 28px;
  transform: translateX(-50%);
}

.simple-mode .nav-list a,
.home-anon .nav-list a {
  display: inline-flex !important;
  align-items: center;
  min-height: 44px;
  padding: 0;
  color: #5f5a53;
  font-size: 13px;
  font-weight: 690;
  text-decoration: none;
}

.simple-mode .nav-list a:hover,
.simple-mode .nav-list a.active,
.home-anon .nav-list a:hover,
.home-anon .nav-list a.active {
  color: var(--bw-ink);
}

.simple-mode .nav-list a.active::after,
.home-anon .nav-list a.active::after {
  display: none;
}

.simple-mode .nav-list .nav-add-bag,
.home-anon .nav-list .nav-add-bag {
  min-height: 36px;
  border: 1px solid var(--bw-ink);
  border-radius: 2px;
  padding: 0 14px;
  background: var(--bw-ink);
  color: #fffefa;
}

.simple-mode .nav-list .nav-add-bag:hover,
.home-anon .nav-list .nav-add-bag:hover {
  background: var(--bw-accent);
  color: #fffefa;
}

.simple-mode .account-wrap,
.home-anon .account-wrap {
  position: static !important;
  inset: auto !important;
  margin-left: auto;
}

.simple-mode .account-button,
.home-anon .account-button {
  width: 36px !important;
  height: 36px !important;
  border: 1px solid var(--bw-line);
  box-shadow: none;
}

.simple-mode main,
.home-anon main {
  padding: clamp(28px, 5vw, 72px) clamp(20px, 4vw, 64px);
}

/* Public landing */
.landing-page.active-page {
  width: min(100%, 1240px);
  margin: 0 auto;
  gap: clamp(72px, 10vw, 132px);
}

.landing-hero {
  min-height: min(680px, calc(100vh - 130px));
  border: 0;
  border-radius: 30px;
  background: #eadfce;
  box-shadow: var(--shadow);
}

.landing-hero-copy {
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 255, 255, 0.72), transparent 30%),
    linear-gradient(150deg, #fffaf4, #e8d9c7);
}

.landing-hero h1 {
  max-width: 600px;
  color: var(--bw-ink);
  font-size: clamp(58px, 6.5vw, 96px);
  letter-spacing: -0.055em;
}

.landing-primary,
.landing-secondary {
  min-height: 50px;
  border-radius: 999px;
  padding: 0 22px;
  box-shadow: 0 12px 25px rgba(93, 18, 11, 0.16);
}

.landing-primary {
  background: var(--griotte);
}

.landing-primary:hover {
  background: var(--espresso);
}

.landing-hero-art {
  background: var(--espresso);
}

.landing-value-note {
  border-radius: 2px;
  background: rgba(18, 17, 15, 0.76);
}

.landing-proof {
  border-radius: 4px;
}

.landing-market {
  display: grid;
  gap: 34px;
}

.landing-market-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.62fr);
  gap: 32px 80px;
  align-items: end;
}

.landing-market-heading .landing-eyebrow {
  grid-column: 1 / -1;
}

.landing-market-heading h2 {
  max-width: 720px;
  margin: 0;
  font-family: var(--bw-display);
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.landing-market-heading p {
  margin: 0;
  color: var(--bw-muted);
  font-size: 15px;
  line-height: 1.55;
}

.landing-market-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--bw-line);
  border-bottom: 1px solid var(--bw-line);
}

.landing-market-grid a {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--bw-line);
  padding: 28px;
  background: transparent;
  color: var(--bw-ink);
  text-decoration: none;
  transition: background 160ms ease;
}

.landing-market-grid a:last-child {
  border-right: 0;
}

.landing-market-grid a:hover {
  background: var(--bw-surface);
}

.landing-market-grid span,
.landing-market-grid small {
  color: var(--bw-muted);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.landing-market-grid strong {
  margin-top: 12px;
  font-family: var(--bw-display);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.landing-market-grid small {
  margin-top: auto;
  letter-spacing: 0;
  text-transform: none;
}

.landing-market-grid em {
  margin-top: 12px;
  font-size: 13px;
  font-style: normal;
  font-weight: 780;
}

/* Personal collection */
.simple-mode main > .collection-home,
.simple-mode .collection-home.panel {
  width: min(100%, 1180px);
  margin-inline: auto;
  padding-inline: 0;
}

.simple-mode .collection-topbar {
  align-items: end;
  border-bottom: 1px solid var(--bw-line);
  padding-bottom: 24px;
}

.simple-mode .collection-topbar > div:first-child {
  display: grid;
  gap: 7px;
}

.simple-mode .collection-eyebrow {
  color: var(--bw-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.simple-mode .collection-topbar h2 {
  margin: 0;
  color: var(--bw-ink);
  font-size: clamp(50px, 6vw, 76px);
  letter-spacing: -0.05em;
}

.simple-mode .collection-topbar p {
  max-width: 580px;
  margin: 0;
  color: var(--bw-muted);
  font-size: 14px;
  line-height: 1.5;
}

.simple-mode .collection-overview {
  min-height: 290px;
  display: flex;
  align-items: end;
  border: 1px solid var(--bw-line);
  border-radius: 4px;
  margin: 0;
  padding: clamp(28px, 5vw, 56px);
  background: var(--bw-surface);
  box-shadow: none;
}

.simple-mode .collection-overview::after {
  display: none !important;
}

.simple-mode .collection-overview small {
  color: var(--bw-muted);
}

.simple-mode .collection-overview strong {
  max-width: 820px;
  color: var(--bw-ink);
  font-size: clamp(54px, 8vw, 96px);
  letter-spacing: -0.055em;
  line-height: 0.9;
}

.simple-mode .collection-overview.is-empty-collection strong {
  font-size: clamp(48px, 6.8vw, 82px);
}

.simple-mode .empty-collection-cta,
.simple-mode .add-bag-trigger {
  border-radius: 2px;
  background: var(--bw-ink);
  box-shadow: none;
}

.collection-trust-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  border-right: 1px solid var(--bw-line);
  border-bottom: 1px solid var(--bw-line);
  border-left: 1px solid var(--bw-line);
  margin-bottom: 34px;
}

.collection-trust-row > span,
.collection-trust-row > a {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 4px;
  border-right: 1px solid var(--bw-line);
  padding: 18px 22px;
}

.collection-trust-row > a {
  min-width: 220px;
  place-items: center;
  border-right: 0;
  color: var(--bw-ink);
  font-size: 13px;
  font-weight: 780;
  text-decoration: none;
}

.collection-trust-row strong {
  font-size: 12px;
  font-weight: 800;
}

.collection-trust-row small {
  max-width: 320px;
  color: var(--bw-muted);
  font-size: 12px;
  line-height: 1.4;
}

.simple-mode .collection-row {
  border-radius: 3px;
  box-shadow: none;
}

/* Price-guide index */
.price-guide-page.active-page {
  width: min(100%, 1180px);
  margin: 0 auto;
  display: grid;
  gap: 30px;
}

.price-guide-page,
.price-guide-hero,
.price-guide-hero > div {
  min-width: 0;
  max-width: 100%;
}

.price-guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: end;
  border-bottom: 1px solid var(--bw-line);
  padding: 28px 0 42px;
}

.price-guide-hero h2 {
  max-width: 800px;
  margin: 10px 0 0;
  font-family: var(--bw-display);
  font-size: clamp(54px, 7.5vw, 96px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.9;
}

.price-guide-hero p {
  max-width: 700px;
  margin: 24px 0 0;
  color: var(--bw-muted);
  font-size: 16px;
  line-height: 1.55;
}

.price-guide-hero .primary-button {
  width: auto;
  min-height: 46px;
  border-radius: 2px;
  padding: 0 18px;
  background: var(--bw-ink);
  text-decoration: none;
}

.price-guide-toolbar {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) 220px 200px;
  gap: 1px;
  border: 1px solid var(--bw-line);
  background: var(--bw-line);
}

.price-guide-toolbar label {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  background: var(--bw-surface);
}

.price-guide-toolbar label > span {
  color: var(--bw-muted);
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.price-guide-toolbar input,
.price-guide-toolbar select {
  width: 100%;
  min-height: 34px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--bw-ink);
  font: 650 14px/1 var(--bw-ui);
  outline: 0;
}

.price-guide-toolbar label:focus-within {
  box-shadow: inset 0 -2px var(--bw-accent);
}

.price-guide-index {
  border-top: 1px solid var(--bw-line);
}

.price-guide-index-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
}

.price-guide-index-head h3 {
  margin: 4px 0 0;
  font-family: var(--bw-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.price-guide-index-head > span {
  color: var(--bw-muted);
  font-size: 12px;
  font-weight: 760;
}

.price-guide-list {
  display: grid;
  border-bottom: 1px solid var(--bw-line);
}

.price-guide-list .price-guide-row {
  min-height: 138px;
  display: grid;
  grid-template-columns: 56px minmax(240px, 1fr) minmax(210px, 0.7fr) 130px;
  gap: 24px;
  align-items: center;
  border: 0;
  border-top: 1px solid var(--bw-line);
  border-radius: 0;
  padding: 22px 0;
  background: transparent;
  color: var(--bw-ink);
  text-align: left;
  transition: background 150ms ease, padding 150ms ease;
}

.price-guide-list .price-guide-row:hover,
.price-guide-list .price-guide-row:focus-visible {
  padding-right: 18px;
  padding-left: 18px;
  background: var(--bw-surface);
  outline: 0;
}

.price-guide-number {
  color: #aaa49b;
  font-family: var(--font-mono);
  font-size: 11px;
}

.price-guide-name,
.price-guide-value {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.price-guide-name small,
.price-guide-value small {
  color: var(--bw-muted);
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.price-guide-name strong {
  font-family: var(--bw-display);
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.price-guide-name > span,
.price-guide-value > span {
  color: var(--bw-muted);
  font-size: 12px;
}

.price-guide-value strong {
  font-size: 20px;
  font-weight: 720;
  letter-spacing: -0.025em;
}

.price-guide-open {
  justify-self: end;
  font-size: 12px;
  font-weight: 780;
}

.price-guide-open b {
  margin-left: 8px;
  font-size: 17px;
  font-weight: 500;
}

.price-guide-method {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  border: 1px solid var(--bw-line);
  padding: 24px;
  background: #e9e5dc;
}

.price-guide-method span {
  font-family: var(--bw-display);
  font-size: 22px;
}

.price-guide-method p {
  max-width: 720px;
  margin: 0;
  color: var(--bw-muted);
  font-size: 13px;
  line-height: 1.55;
}

/* Canonical family dossier */
.simple-mode .bag-detail-page.active-page {
  width: min(100%, 1180px);
  margin: 0 auto;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.simple-mode .bag-detail-page .back-button {
  min-height: auto;
  border: 0;
  padding: 0 0 22px;
  background: transparent;
  color: var(--bw-muted);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.simple-mode .bag-detail-hero {
  min-height: 560px;
  grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1.14fr);
  border: 1px solid var(--bw-line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bw-surface);
}

.simple-mode .bag-detail-image.is-guide-placeholder {
  min-height: 560px;
  align-content: end;
  border-radius: 0;
  padding: clamp(30px, 5vw, 58px);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.06), transparent 40%),
    #24211d;
  color: #fffefa;
}

.simple-mode .bag-detail-image.is-guide-placeholder span {
  color: rgba(255, 254, 250, 0.62);
  font-family: var(--bw-ui);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.simple-mode .bag-detail-image.is-guide-placeholder strong {
  max-width: 420px;
  margin-top: 10px;
  font-family: var(--bw-display);
  font-size: clamp(54px, 7vw, 90px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.86;
  text-transform: none;
}

.simple-mode .bag-detail-image.is-guide-placeholder small {
  margin-top: 28px;
  color: rgba(255, 254, 250, 0.52);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.simple-mode .bag-detail-copy {
  align-content: center;
  padding: clamp(34px, 6vw, 74px);
}

.simple-mode .bag-detail-copy h2 {
  max-width: 590px;
  font-size: clamp(52px, 6vw, 84px);
  letter-spacing: -0.055em;
  line-height: 0.88;
}

.simple-mode .bag-guide-actions .primary-button,
.simple-mode .bag-guide-actions .secondary-button {
  min-height: 46px;
  border-radius: 2px;
  padding: 0 18px;
}

.simple-mode .bag-guide-actions .primary-button {
  background: var(--bw-ink);
}

.simple-mode .bag-owned-context {
  grid-template-columns: 1fr;
  gap: 4px;
  border: 1px solid var(--bw-line);
  border-radius: 2px;
  padding: 14px 16px;
  background: #eee8df;
  color: var(--bw-ink);
}

.simple-mode .bag-owned-context span,
.simple-mode .bag-owned-context strong {
  text-align: left;
}

.simple-mode .bag-owned-context strong {
  font-size: 14px;
}

.simple-mode .bag-detail-grid {
  margin-top: 22px;
  grid-template-columns: minmax(0, 1fr);
}

.simple-mode .bag-detail-card {
  border: 1px solid var(--bw-line);
  border-radius: 3px;
  background: var(--bw-surface);
  box-shadow: none;
}

.simple-mode #bagDetailMarketCard {
  padding: clamp(28px, 5vw, 58px);
}

.simple-mode #bagDetailMarketCard h3 {
  font-family: var(--bw-display);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.simple-mode .bag-family-stats {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.simple-mode .history-card.bag-detail-card {
  margin-top: 22px;
}

@media (max-width: 860px) {
  .simple-mode .nav-list,
  .home-anon .nav-list {
    position: static;
    width: auto;
    max-width: none;
    margin-left: auto;
    margin-right: 16px;
    gap: 16px;
    transform: none;
  }

  .simple-mode .nav-list::after,
  .home-anon .nav-list::after {
    content: none;
  }

  .simple-mode .nav-list a:not(.nav-add-bag),
  .home-anon .nav-list a:not(.nav-add-bag) {
    display: none !important;
  }

  .landing-market-heading,
  .price-guide-hero,
  .price-guide-method {
    grid-template-columns: 1fr;
  }

  .landing-market-grid {
    grid-template-columns: 1fr;
  }

  .landing-market-grid a {
    min-height: 190px;
    border-right: 0;
    border-bottom: 1px solid var(--bw-line);
  }

  .landing-market-grid a:last-child {
    border-bottom: 0;
  }

  .price-guide-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .price-guide-toolbar .search-label {
    grid-column: 1 / -1;
  }

  .price-guide-list .price-guide-row {
    grid-template-columns: 36px minmax(0, 1fr) minmax(170px, 0.7fr);
  }

  .price-guide-open {
    display: none;
  }

  .simple-mode .bag-detail-hero {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .simple-mode .bag-detail-image.is-guide-placeholder {
    min-height: 370px;
  }
}

@media (max-width: 620px) {
  .simple-mode .sidebar,
  .home-anon .sidebar {
    min-height: 60px;
    padding: 0 16px;
  }

  .simple-mode .brand,
  .home-anon .brand {
    min-height: 60px;
    padding-right: 0;
  }

  .simple-mode .brand-home,
  .home-anon .brand-home {
    font-size: 14px;
  }

  .simple-mode .brand-monogram,
  .home-anon .brand-monogram {
    width: 34px !important;
    height: 34px !important;
  }

  .simple-mode .nav-list,
  .home-anon .nav-list {
    flex: 0 0 auto;
    margin-right: 0;
  }

  .simple-mode .account-wrap,
  .home-anon .account-wrap {
    display: none;
  }

  .simple-mode .nav-list .nav-add-bag,
  .home-anon .nav-list .nav-add-bag {
    min-height: 34px;
    padding: 0 12px;
  }

  .simple-mode .account-button,
  .home-anon .account-button {
    width: 34px !important;
    height: 34px !important;
  }

  .simple-mode main,
  .home-anon main {
    padding: 20px 16px 48px;
  }

  .landing-hero {
    border-radius: 24px;
  }

  .landing-hero h1 {
    font-size: clamp(48px, 14vw, 68px);
  }

  .landing-actions {
    width: 100%;
    display: grid;
  }

  .landing-primary,
  .landing-secondary {
    width: 100%;
  }

  .simple-mode .collection-topbar {
    align-items: start;
  }

  .simple-mode .collection-topbar p {
    display: none;
  }

  .simple-mode .collection-overview {
    min-height: 250px;
    border-radius: 3px;
    padding: 26px;
  }

  .simple-mode .collection-overview strong,
  .simple-mode .collection-overview.is-empty-collection strong {
    font-size: clamp(44px, 14vw, 64px);
  }

  .collection-trust-row {
    grid-template-columns: 1fr;
  }

  .collection-trust-row > span,
  .collection-trust-row > a {
    min-height: 76px;
    border-right: 0;
    border-bottom: 1px solid var(--bw-line);
  }

  .collection-trust-row > a {
    min-width: 0;
    border-bottom: 0;
  }

  .price-guide-hero {
    padding-top: 10px;
  }

  .price-guide-hero h2 {
    max-width: 100%;
    font-size: clamp(46px, 13vw, 62px);
    overflow-wrap: normal;
  }

  .price-guide-hero p {
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .price-guide-hero .primary-button {
    width: 100%;
  }

  .price-guide-toolbar {
    grid-template-columns: 1fr;
  }

  .price-guide-toolbar .search-label {
    grid-column: auto;
  }

  .price-guide-list .price-guide-row {
    min-height: 170px;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 22px 0;
  }

  .price-guide-value {
    grid-column: 2;
  }

  .price-guide-name strong {
    font-size: 38px;
  }

  .simple-mode .bag-detail-image.is-guide-placeholder {
    min-height: 310px;
  }

  .simple-mode .bag-detail-copy {
    padding: 28px 22px 34px;
  }

  .simple-mode .bag-detail-copy h2 {
    font-size: 50px;
  }

  .simple-mode .bag-guide-actions {
    display: grid;
  }
}

<<<<<<< HEAD
/* Public celebrity archives are text-first until Bagworth has image rights. */
.celebrity-archive-page {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 68px) 0;
}

.celebrity-archive-hero {
  max-width: 760px;
}

.celebrity-archive-hero h2 {
  margin: 8px 0 14px;
  color: var(--espresso);
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 86px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.91;
}

.celebrity-archive-hero p {
  max-width: 650px;
  margin: 0;
  color: var(--charcoal);
  font-size: 16px;
  line-height: 1.65;
}

.archive-back-link {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--griotte);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.celebrity-closet-directory {
  margin-top: clamp(32px, 5vw, 56px);
}

.celebrity-directory-card {
  display: grid;
  grid-template-columns: minmax(230px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 5vw, 60px);
  overflow: hidden;
  border: 1px solid rgba(68, 48, 36, 0.14);
  border-radius: 28px;
  background: #fffaf5;
  box-shadow: 0 18px 48px rgba(64, 42, 30, 0.08);
}

.celebrity-directory-art {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background: linear-gradient(145deg, #3b302a, #75604e);
}

.celebrity-directory-art span {
  position: absolute;
  border: 1px solid rgba(255, 250, 245, 0.22);
  box-shadow: 0 18px 28px rgba(16, 11, 8, 0.26);
}

.celebrity-directory-art span:nth-child(1) { width: 42%; height: 35%; right: 10%; bottom: 13%; border-radius: 24px 24px 38px 38px; background: #9d846a; transform: rotate(9deg); }
.celebrity-directory-art span:nth-child(2) { width: 38%; height: 29%; left: 12%; bottom: 18%; border-radius: 38% 38% 18px 18px; background: #332821; transform: rotate(-9deg); }
.celebrity-directory-art span:nth-child(3) { width: 32%; height: 24%; left: 34%; top: 18%; border-radius: 16px; background: #b49674; transform: rotate(-2deg); }

.celebrity-directory-card > div:last-child { padding: clamp(26px, 4vw, 50px) clamp(24px, 4vw, 54px) clamp(28px, 4vw, 48px) 0; }
.celebrity-directory-card h3 { margin: 7px 0 12px; color: var(--espresso); font-family: var(--font-display); font-size: clamp(36px, 5vw, 58px); font-weight: 500; line-height: 0.96; }
.celebrity-directory-card p { max-width: 580px; margin: 0; color: var(--charcoal); line-height: 1.6; }
.celebrity-directory-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.celebrity-directory-meta span { border-radius: 999px; padding: 7px 10px; background: #f0e6db; color: #5f493b; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.celebrity-directory-card a,
.bag-celebrity-archive a { color: var(--griotte); font-size: 13px; font-weight: 850; text-decoration: none; }

.celebrity-archive-method {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(210px, 0.75fr);
  gap: 24px;
  margin-top: clamp(32px, 5vw, 52px);
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid rgba(68, 48, 36, 0.12);
  border-radius: 22px;
  background: #f6efe7;
}

.celebrity-archive-method p { max-width: 690px; margin: 8px 0 0; color: var(--charcoal); font-size: 14px; line-height: 1.6; }
.celebrity-archive-method strong { display: block; margin-top: 8px; color: var(--espresso); font-family: var(--font-display); font-size: 30px; font-weight: 500; }
.celebrity-archive-method small { display: block; max-width: 240px; margin-top: 6px; color: #705b4b; font-size: 12px; line-height: 1.45; }

.celebrity-archive-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin: clamp(38px, 6vw, 66px) 0 16px; }
.celebrity-archive-section-heading h3 { margin: 6px 0 0; color: var(--espresso); font-family: var(--font-display); font-size: clamp(31px, 4vw, 46px); font-weight: 500; line-height: 0.98; }
.celebrity-archive-section-heading > small { color: #705b4b; font-size: 12px; white-space: nowrap; }
.celebrity-sighting-grid { display: grid; gap: 12px; }
.celebrity-sighting-card { display: grid; grid-template-columns: 42px minmax(0, 1fr) minmax(210px, 0.58fr); gap: 18px; align-items: start; padding: 23px 0; border-top: 1px solid rgba(68, 48, 36, 0.16); }
.celebrity-sighting-card:last-child { border-bottom: 1px solid rgba(68, 48, 36, 0.16); }
.celebrity-sighting-number { color: #a38367; font-size: 12px; font-weight: 850; letter-spacing: 0.08em; }
.celebrity-sighting-copy > span { color: #705b4b; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.celebrity-sighting-copy h4 { margin: 5px 0 7px; color: var(--espresso); font-family: var(--font-display); font-size: 27px; font-weight: 500; line-height: 1; }
.celebrity-sighting-copy p { margin: 0; color: var(--charcoal); font-size: 13px; line-height: 1.55; }
.celebrity-sighting-copy small { display: inline-block; margin-top: 10px; border-radius: 999px; padding: 5px 8px; background: #efe3d5; color: #705b4b; font-size: 10px; font-weight: 850; letter-spacing: 0.04em; text-transform: uppercase; }
.celebrity-sighting-actions { display: grid; gap: 9px; padding-top: 3px; }
.celebrity-sighting-actions a { color: var(--griotte); font-size: 12px; font-weight: 850; text-decoration: none; }
.celebrity-sighting-actions small { color: #705b4b; font-size: 11px; line-height: 1.45; }

.bag-celebrity-archive { margin: 22px 0; padding: 22px 24px; border: 1px solid rgba(102, 69, 49, 0.18); border-radius: 18px; background: #f7efe6; }
.bag-celebrity-archive h3 { margin: 5px 0 7px; color: var(--espresso); font-family: var(--font-display); font-size: 28px; font-weight: 500; }
.bag-celebrity-archive p { max-width: 620px; margin: 0 0 12px; color: var(--charcoal); font-size: 13px; line-height: 1.5; }

@media (max-width: 700px) {
  .celebrity-directory-card,
  .celebrity-archive-method { grid-template-columns: 1fr; }
  .celebrity-directory-art { min-height: 210px; }
  .celebrity-directory-card > div:last-child { padding: 26px; }
  .celebrity-archive-section-heading { display: grid; gap: 9px; }
  .celebrity-sighting-card { grid-template-columns: 30px minmax(0, 1fr); }
  .celebrity-sighting-actions { grid-column: 2; }
}

/* Navigation must win over the compact-header legacy rules above. */
.simple-mode .site-menu-button {
  display: inline-flex;
}

.simple-mode .nav-list,
.home-anon .nav-list,
.signed-out-app .nav-list {
  display: none !important;
  position: absolute;
  inset: 72px 0 auto;
  width: 100%;
  transform: none;
}

.simple-mode .sidebar.menu-open .nav-list {
  display: flex !important;
}

.simple-mode .sidebar.menu-open .nav-list a {
  display: inline-flex !important;
}

.signed-out-app .site-menu-button,
.signed-out-app .sidebar.menu-open .nav-list {
  display: none !important;
}

@media (max-width: 760px) {
  .simple-mode .sidebar.menu-open .nav-list {
    display: grid !important;
  }

  .simple-mode .sidebar.menu-open .nav-list a {
    display: flex !important;
  }
}

/* Family-guide actions follow Bagworth's soft, tactile controls. */
.simple-mode .bag-guide-actions .primary-button,
.simple-mode .bag-guide-actions .secondary-button {
  border-radius: 999px;
}

.simple-mode #bagDetailChartCard > h3 {
  margin: 0;
  color: var(--espresso);
  font-family: var(--font-display);
  font-size: clamp(31px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

/* Responsive collection shell: keep the value legible before phone width. */
.simple-mode .sidebar {
  --app-header-height: 72px;
  min-width: 0;
}

.simple-mode .brand,
.simple-mode .brand-home,
.simple-mode .account-wrap,
.simple-mode .collection-topbar,
.simple-mode .collection-overview,
.simple-mode .collection-overview > span,
.collection-trust-row > * {
  min-width: 0;
}

.simple-mode .account-wrap {
  position: static !important;
  display: grid;
  flex: 0 0 auto;
  margin-left: auto;
}

.simple-mode .account-button {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px;
  min-height: 42px;
}

@media (max-width: 1080px) {
  .simple-mode main {
    padding-inline: clamp(18px, 4vw, 40px);
  }

  .simple-mode .collection-home.panel {
    width: min(100%, 900px);
  }

  .simple-mode .collection-overview {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 22px;
    padding: clamp(28px, 5vw, 46px);
  }

  .simple-mode .collection-overview > span {
    gap: 6px;
  }

  .simple-mode .collection-overview strong,
  .simple-mode .collection-overview.is-empty-collection strong {
    max-width: 100%;
    font-size: clamp(52px, 8.5vw, 82px);
    overflow-wrap: normal;
    word-break: normal;
  }

  .simple-mode .collection-overview .delta-toggle {
    width: 100%;
    min-height: 52px;
    justify-self: stretch;
  }

  .collection-trust-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collection-trust-row > a {
    grid-column: 1 / -1;
    min-width: 0;
    min-height: 64px;
    border-top: 1px solid var(--bw-line);
  }
}

@media (max-width: 700px) {
  .simple-mode .sidebar {
    --app-header-height: 64px;
    min-height: var(--app-header-height);
    padding: max(10px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  }

  .simple-mode main {
    padding-top: calc(24px + var(--app-header-height));
    padding-right: max(16px, env(safe-area-inset-right));
    padding-bottom: calc(32px + env(safe-area-inset-bottom));
    padding-left: max(16px, env(safe-area-inset-left));
  }

  .simple-mode .brand {
    min-height: 44px;
    gap: 8px;
    padding: 0 !important;
  }

  .simple-mode .brand-home {
    max-width: calc(100% - 104px);
  }

  .simple-mode .account-wrap {
    display: grid !important;
  }

  .simple-mode .account-button {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px;
    min-height: 40px;
  }

  .simple-mode .nav-list,
  .home-anon .nav-list,
  .signed-out-app .nav-list {
    inset: 100% 0 auto;
    padding-inline: max(16px, env(safe-area-inset-left));
  }

  .simple-mode .collection-topbar {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 18px;
  }

  .simple-mode .collection-topbar .closet-actions,
  .simple-mode .collection-topbar .add-bag-trigger {
    width: 100%;
  }

  .simple-mode .collection-topbar .add-bag-trigger {
    min-height: 50px;
  }

  .simple-mode .collection-overview {
    gap: 18px;
    padding: 24px;
  }

  .simple-mode .collection-overview strong,
  .simple-mode .collection-overview.is-empty-collection strong {
    font-size: clamp(48px, 15vw, 66px);
    line-height: 0.94;
  }

  .collection-trust-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .collection-trust-row > span,
  .collection-trust-row > a {
    min-height: 0;
    padding: 18px;
    border-right: 0;
  }

  .collection-trust-row > a {
    grid-column: auto;
  }
}

/* Global app header: keep brand, menu, and account controls inside every viewport. */
body.simple-mode .sidebar,
.home-anon .sidebar {
  box-sizing: border-box;
  width: 100%;
  max-width: 100dvw;
  overflow-x: clip;
  padding-right: max(16px, env(safe-area-inset-right));
  padding-left: max(16px, env(safe-area-inset-left));
}

body.simple-mode .brand,
.home-anon .brand {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  column-gap: clamp(8px, 1.8vw, 16px);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

body.simple-mode .brand-home,
.home-anon .brand-home {
  grid-column: 1;
  max-width: 100% !important;
  min-width: 0;
  overflow: hidden;
}

body.simple-mode .site-menu-button,
.home-anon .site-menu-button {
  grid-column: 2;
  justify-self: end;
  flex: 0 0 auto;
}

body.simple-mode .account-wrap,
.home-anon .account-wrap {
  grid-column: 3;
  justify-self: end;
  flex: 0 0 auto;
  margin-left: 0 !important;
  min-width: 0;
}

body.simple-mode .site-menu-button,
body.simple-mode .account-button,
.home-anon .site-menu-button,
.home-anon .account-button {
  max-width: calc(100dvw - 32px);
}

@media (max-width: 380px) {
  body.simple-mode .brand,
  .home-anon .brand {
    column-gap: 7px;
  }

  body.simple-mode .brand-home,
  .home-anon .brand-home {
    gap: 7px;
  }

  body.simple-mode .brand-mark,
  .home-anon .brand-mark {
    width: 34px;
    height: 34px;
  }
}
