/* ASDB Social Network Refresh — 2026-08-22
   A clearer LinkedIn/Facebook-inspired information hierarchy layered safely
   above the established ASDB styles. */

:root,
[data-theme="light"] {
  --network-blue: #0a66c2;
  --network-blue-dark: #004182;
  --network-ink: #17212b;
  --network-muted: #5f6b76;
  --network-line: #d8dee4;
  --network-canvas: #f3f5f7;
  --network-card: #ffffff;
  --network-soft: #eef3f8;
  --accent: var(--network-blue);
  --accent-hover: var(--network-blue-dark);
  --bg: var(--network-canvas);
  --surface: var(--network-card);
  --surface-2: var(--network-soft);
  --page-bg: var(--network-canvas);
  --text: var(--network-ink);
  --text-secondary: #3f4b57;
  --text-muted: var(--network-muted);
  --border: var(--network-line);
  --border-strong: #b8c2cc;
  --card-bg: var(--network-card);
  --card-border: var(--network-line);
  --card-radius: 12px;
  --card-shadow: 0 1px 2px rgba(23, 33, 43, 0.08);
  --card-shadow-hover: 0 8px 24px rgba(23, 33, 43, 0.12);
}

body {
  background: var(--network-canvas) !important;
  color: var(--network-ink);
}

.container {
  max-width: 1320px;
}

#site-header {
  min-height: 64px;
  padding: 9px 0;
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid var(--network-line) !important;
  box-shadow: 0 1px 2px rgba(23, 33, 43, 0.05);
}

.header-inner {
  gap: 24px;
  flex-wrap: nowrap;
}

.logo-svg {
  width: 38px;
  height: 38px;
  color: var(--network-blue);
}

.logo-text {
  font-size: 1.1rem;
  color: var(--network-ink);
}

.logo-text span {
  color: var(--network-blue);
}

.search-wrap {
  max-width: 680px;
}

.search-input {
  height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--network-soft);
  color: var(--network-ink);
}

.search-input:focus {
  border-color: var(--network-blue);
  background: #fff;
  box-shadow: 0 0 0 1px var(--network-blue);
}

.feed-nav-btn,
.theme-toggle {
  min-height: 40px;
  border-radius: 8px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: var(--network-muted) !important;
}

.feed-nav-btn:hover,
.theme-toggle:hover {
  background: var(--network-soft) !important;
  color: var(--network-blue) !important;
}

#app {
  padding: 18px 0 64px;
}

.home-entry {
  margin-bottom: 18px;
  padding: 18px 20px 14px;
  overflow: hidden;
  border: 1px solid var(--network-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--card-shadow);
}

.entry-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
}

.entry-heading h1 {
  margin: 0;
  color: var(--network-ink);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.entry-heading p {
  margin: 0;
  color: var(--network-muted);
  font-size: 0.88rem;
}

.home-entry .sport-filters {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 7px;
  margin: 0;
  padding: 1px 0 5px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.home-entry .sport-tab {
  flex: 0 0 auto;
  padding: 7px 13px;
  border: 1px solid var(--network-line);
  border-radius: 999px;
  background: #fff;
  color: var(--network-muted);
  font-size: 0.79rem;
  font-weight: 700;
}

.home-entry .sport-tab:hover {
  border-color: var(--network-blue);
  color: var(--network-blue);
}

.home-entry .sport-tab.active {
  border-color: var(--network-blue);
  background: var(--network-blue);
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.memory-entry {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.8fr);
  gap: 1px;
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid var(--network-line);
  border-radius: 14px;
  background: var(--network-line);
  box-shadow: var(--card-shadow);
}

.memory-search-panel,
.memory-decade-panel {
  background: #fff;
}

.memory-search-panel {
  padding: 30px 32px 27px;
  background:
    radial-gradient(circle at 96% 6%, rgba(33, 137, 230, 0.16), transparent 31%),
    linear-gradient(135deg, #fff 0%, #f7fbff 100%);
}

.memory-search-panel h1 {
  max-width: 730px;
  margin: 5px 0 9px;
  color: var(--network-ink);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.memory-search-panel > p {
  max-width: 760px;
  margin: 0 0 18px;
  color: var(--network-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.memory-search {
  display: flex;
  gap: 9px;
  max-width: 820px;
}

.memory-search-field {
  position: relative;
  flex: 1;
  min-width: 0;
}

.memory-search input {
  width: 100%;
  min-width: 0;
  height: 50px;
  padding: 0 16px;
  border: 1px solid #b9c9d8;
  border-radius: 9px;
  background: #fff;
  color: var(--network-ink);
  font: 600 0.9rem/1 var(--font-body);
}

.memory-search-dropdown {
  top: calc(100% + 7px);
  z-index: 500;
  text-align: left;
}

.memory-search input:focus {
  outline: 2px solid rgba(10, 102, 194, 0.25);
  border-color: var(--network-blue);
}

.memory-search button {
  min-height: 50px;
  padding: 0 19px;
  border: 0;
  border-radius: 9px;
  background: var(--network-blue);
  color: #fff;
  font: 800 0.84rem/1 var(--font-body);
  cursor: pointer;
}

.memory-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
}

.memory-prompts button {
  padding: 5px 9px;
  border: 0;
  border-radius: 999px;
  background: #e8f2fb;
  color: var(--network-blue-dark);
  font: 700 0.7rem/1 var(--font-body);
  cursor: pointer;
}

.memory-decade-panel {
  padding: 25px;
}

.memory-decade-panel h2 {
  margin: 5px 0 14px;
  color: var(--network-ink);
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.memory-decades {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.memory-decades button {
  min-height: 78px;
  padding: 12px;
  border: 1px solid var(--network-line);
  border-radius: 10px;
  background: var(--network-soft);
  color: var(--network-ink);
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.memory-decades button:nth-child(1) { background: #f4ede1; }
.memory-decades button:nth-child(2) { background: #fbe8ef; }
.memory-decades button:nth-child(3) { background: #e8f1fb; }
.memory-decades button:nth-child(4) { background: #e9f6ef; }

.memory-decades button:hover {
  border-color: var(--network-blue);
  transform: translateY(-2px);
}

.memory-decades strong,
.memory-decades span {
  display: block;
}

.memory-decades strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1;
}

.memory-decades span {
  margin-top: 5px;
  color: var(--network-muted);
  font-size: 0.67rem;
  font-weight: 700;
}

.memory-categories,
.memory-showcase-section {
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid var(--network-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--card-shadow);
}

.memory-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.memory-section-heading h2 {
  margin: 3px 0 0;
  color: var(--network-ink);
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.05;
}

.memory-section-heading p {
  margin: 0;
  color: var(--network-muted);
  font-size: 0.8rem;
}

.memory-category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
}

.memory-category-grid button {
  min-height: 108px;
  padding: 13px;
  border: 1px solid var(--network-line);
  border-radius: 10px;
  background: #fff;
  color: var(--network-ink);
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.memory-category-grid button:hover {
  border-color: #8ab8df;
  box-shadow: 0 7px 16px rgba(23, 33, 43, 0.09);
  transform: translateY(-2px);
}

.memory-category-grid span,
.memory-category-grid strong,
.memory-category-grid small {
  display: block;
}

.memory-category-grid span {
  margin-bottom: 9px;
  font-size: 1.3rem;
}

.memory-category-grid strong {
  font-size: 0.8rem;
  line-height: 1.2;
}

.memory-category-grid small {
  margin-top: 4px;
  color: var(--network-muted);
  font-size: 0.66rem;
  line-height: 1.3;
}

.memory-showcase {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 11px;
}

.memory-card {
  overflow: hidden;
  border: 1px solid var(--network-line);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(23, 33, 43, 0.07);
}

.memory-card-visual {
  position: relative;
  display: flex;
  min-height: 130px;
  padding: 13px;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  background: var(--memory-gradient);
  color: #fff;
  cursor: pointer;
}

.memory-card-visual::after {
  position: absolute;
  right: -35px;
  bottom: -42px;
  width: 120px;
  height: 120px;
  border: 18px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: '';
}

.memory-card-year {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.14);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.memory-card-monogram {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 0.85;
  letter-spacing: -0.06em;
}

.memory-card-copy {
  padding: 12px;
}

.memory-card-copy strong,
.memory-card-copy small {
  display: block;
}

.memory-card-copy strong {
  min-height: 36px;
  color: var(--network-ink);
  font-size: 0.82rem;
  line-height: 1.2;
}

.memory-card-copy small {
  margin-top: 4px;
  color: var(--network-muted);
  font-size: 0.65rem;
  line-height: 1.35;
}

.memory-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--network-line);
}

.memory-card-actions a {
  padding: 8px 5px;
  color: var(--network-blue);
  font-size: 0.65rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.memory-card-actions a + a {
  border-left: 1px solid var(--network-line);
}

.memory-card-actions a:hover {
  background: var(--network-soft);
}

.archive-entry .entry-heading h2 {
  margin: 0;
  color: var(--network-ink);
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 48px;
  overflow: hidden;
  margin-bottom: 24px;
  padding: 46px 52px;
  text-align: left;
  border: 1px solid #0a55a0;
  border-radius: 16px;
  background:
    radial-gradient(circle at 85% 20%, rgba(89, 176, 255, 0.34), transparent 28%),
    linear-gradient(125deg, #063a70 0%, #0a66c2 58%, #1184da 100%);
  box-shadow: 0 10px 30px rgba(10, 102, 194, 0.18);
}

.home-hero::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -130px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 48px rgba(255, 255, 255, 0.04), 0 0 0 96px rgba(255, 255, 255, 0.03);
}

.hero-copy,
.hero-proof {
  position: relative;
  z-index: 1;
}

.hero-kicker,
.card-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--network-blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero-kicker {
  color: #b8dcff;
}

.home-hero h1 {
  max-width: 760px;
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(2.2rem, 4.6vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.home-hero p {
  max-width: 680px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-primary,
.hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
}

.hero-primary {
  border: 1px solid #fff;
  background: #fff;
  color: var(--network-blue-dark);
}

.hero-secondary {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(105px, 1fr));
  min-width: 360px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  background: rgba(2, 37, 70, 0.28);
  backdrop-filter: blur(12px);
}

.hero-proof div {
  padding: 4px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-proof div:last-child {
  border-right: 0;
}

.hero-proof strong,
.hero-proof span {
  display: block;
}

.hero-proof strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.hero-proof span {
  margin-top: 3px;
  color: #cce5fb;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-social-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 292px;
  gap: 24px;
  align-items: start;
}

.home-discovery,
.home-insights {
  position: sticky;
  top: 88px;
}

.home-insights {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.network-card,
.browse-section,
.v2-feed-header,
.v2-feed-item {
  border: 1px solid var(--network-line) !important;
  border-radius: 12px !important;
  background: var(--network-card) !important;
  box-shadow: var(--card-shadow) !important;
}

.network-card {
  padding: 20px;
}

.card-heading {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--network-line);
}

.card-heading h2,
.insight-card h2 {
  margin: 0;
  color: var(--network-ink);
  font-size: 1.06rem;
  line-height: 1.28;
}

.discovery-card h3 {
  margin: 20px 0 8px;
  color: var(--network-muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.discovery-card .sport-filters,
.discovery-card .location-filters,
.discovery-card .era-timeline {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  margin: 0;
}

.discovery-card .sport-tab,
.discovery-card .loc-tab,
.discovery-card .era-chip {
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--network-muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
}

.discovery-card .sport-tab:hover,
.discovery-card .loc-tab:hover,
.discovery-card .era-chip:hover {
  background: var(--network-soft);
  color: var(--network-blue);
}

.discovery-card .sport-tab.active,
.discovery-card .loc-tab.active,
.discovery-card .era-chip.active {
  background: #e5f1fb;
  color: var(--network-blue-dark);
  box-shadow: inset 3px 0 0 var(--network-blue);
}

.home-stream {
  min-width: 0;
}

.v2-feed {
  max-width: none;
  margin: 0 0 24px;
  gap: 12px;
}

.home-insights .v2-feed {
  gap: 9px;
  margin: 0;
}

.home-insights .v2-feed-header {
  padding: 16px;
}

.home-insights .v2-feed-header h2 {
  margin-bottom: 3px;
  font-size: 1rem;
}

.home-insights .v2-feed-header p {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.4;
}

.home-insights .v2-feed-item {
  padding: 14px;
}

.home-insights .v2-feed-item-head {
  align-items: flex-start;
  gap: 10px;
}

.home-insights .v2-feed-item-avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  font-size: 0.72rem;
}

.home-insights .v2-feed-item-title {
  font-size: 0.8rem;
  line-height: 1.35;
}

.home-insights .v2-feed-item-time,
.home-insights .v2-feed-item-body {
  font-size: 0.73rem;
  line-height: 1.4;
}

.home-insights .v2-feed-item-tag {
  display: inline-block;
  margin: 4px 0 0;
  font-size: 0.58rem;
}

.v2-feed-header {
  padding: 20px 22px;
}

.v2-feed-header h2 {
  color: var(--network-ink);
  font-size: 1.25rem;
}

.v2-feed-item {
  padding: 18px 20px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.v2-feed-item:hover {
  border-color: #a9c7e3 !important;
  box-shadow: var(--card-shadow-hover) !important;
  transform: translateY(-1px);
}

.v2-feed-item-avatar {
  width: 46px;
  height: 46px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--network-line);
}

.v2-feed-item-title,
.v2-feed-item-body {
  color: var(--network-ink);
}

.v2-feed-item-title a {
  color: var(--network-blue);
}

.v2-feed-item-tag {
  background: var(--network-soft);
  color: var(--network-muted);
}

.browse-section {
  margin-top: 0;
  padding: 0 24px 24px;
  overflow: hidden;
  border-top: 4px solid var(--network-blue) !important;
  box-shadow: 0 10px 30px rgba(23, 33, 43, 0.09) !important;
}

.directory-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 -24px;
  padding: 26px 24px 22px;
  background: linear-gradient(135deg, #f7fbff 0%, #edf6ff 100%);
  border-bottom: 1px solid var(--network-line);
}

.directory-hero-copy {
  max-width: 620px;
}

.directory-hero h2 {
  max-width: 580px;
  margin: 5px 0 7px;
  color: var(--network-ink);
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.35vw, 2.25rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.directory-hero p {
  margin: 0;
  color: var(--network-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.directory-total {
  min-width: 132px;
  padding: 13px 15px;
  border: 1px solid #bdd8ef;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  text-align: right;
}

.directory-total strong,
.directory-total span {
  display: block;
}

.directory-total strong {
  color: var(--network-blue-dark);
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1;
}

.directory-total span {
  margin-top: 4px;
  color: var(--network-muted);
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.directory-results-header {
  margin: 0;
  padding: 18px 0 14px;
}

.directory-results-header .section-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.directory-load-more {
  padding: 22px 0 4px;
  text-align: center;
}

.directory-load-more[hidden] {
  display: none;
}

.directory-load-more button {
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: 700 0.9rem/1 var(--font-body);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.directory-load-more button:hover,
.directory-load-more button:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.browse-section .section-header {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--network-line);
}

.browse-section .section-title {
  display: block;
  color: var(--network-ink);
  font-size: 1.2rem;
}

.node-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.node-card {
  min-height: 150px;
  padding: 16px;
  border: 1px solid var(--network-line) !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.node-card:hover {
  border-color: #98bfe2 !important;
  box-shadow: 0 6px 18px rgba(23, 33, 43, 0.1) !important;
  transform: translateY(-2px);
}

.node-card::before {
  height: 4px !important;
  opacity: 1 !important;
}

.card-name {
  color: var(--network-ink);
}

.insight-card p {
  margin: 12px 0 18px;
  color: var(--network-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.insight-card button {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--network-blue);
  border-radius: 999px;
  background: transparent;
  color: var(--network-blue);
  font-size: 0.82rem;
  font-weight: 750;
}

.insight-action {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--network-blue);
  border-radius: 999px;
  color: var(--network-blue);
  font-size: 0.82rem;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}

.quick-links-card {
  display: flex;
  flex-direction: column;
}

.quick-links-card a {
  padding: 10px 0;
  border-bottom: 1px solid var(--network-line);
  color: var(--network-ink);
  font-size: 0.86rem;
  font-weight: 650;
  text-decoration: none;
}

.quick-links-card a:last-child {
  border-bottom: 0;
}

.quick-links-card a:hover {
  color: var(--network-blue);
}

.network-note {
  padding: 0 6px;
  color: var(--network-muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

#profile-view.visible,
#filter-view,
#search-view,
#feed-view.feed-active,
#map-view {
  color: var(--network-ink);
}

.v2-profile-hero,
.profile-card,
.connections-section,
.filter-view-wrap,
.search-view-wrap,
.feed-card {
  border-color: var(--network-line) !important;
  background: #fff !important;
  box-shadow: var(--card-shadow) !important;
}

@media (max-width: 1120px) {
  .memory-entry {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr);
  }

  .memory-category-grid,
  .memory-showcase {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-social-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .home-insights {
    display: none;
  }

  .home-hero {
    grid-template-columns: 1fr;
  }

  .hero-proof {
    width: min(100%, 520px);
    min-width: 0;
  }
}

@media (max-width: 760px) {
  #site-header .container,
  #app > .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .header-inner {
    gap: 10px;
    flex-wrap: wrap;
  }

  .logo-text,
  .feed-nav-label {
    display: none;
  }

  .search-wrap {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }

  #app {
    padding-top: 10px;
  }

  .memory-entry {
    grid-template-columns: 1fr;
    margin-bottom: 10px;
    border-radius: 10px;
  }

  .memory-search-panel {
    padding: 22px 16px 18px;
  }

  .memory-search-panel h1 {
    font-size: 2.15rem;
  }

  .memory-search {
    flex-direction: column;
  }

  .memory-search button {
    width: 100%;
  }

  .memory-decade-panel {
    padding: 16px;
  }

  .memory-decades {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .memory-decades button {
    min-height: 70px;
    padding: 9px;
  }

  .memory-decades strong {
    font-size: 1.05rem;
  }

  .memory-decades span {
    font-size: 0.56rem;
  }

  .memory-categories,
  .memory-showcase-section {
    margin-bottom: 10px;
    padding: 14px;
  }

  .memory-section-heading {
    display: block;
  }

  .memory-section-heading p {
    margin-top: 5px;
  }

  .memory-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .memory-category-grid button {
    min-height: 98px;
  }

  .memory-showcase {
    display: flex;
    margin-right: -14px;
    padding-right: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .memory-showcase::-webkit-scrollbar {
    display: none;
  }

  .memory-card {
    min-width: min(72vw, 250px);
    scroll-snap-align: start;
  }

  .home-entry {
    margin-bottom: 10px;
    padding: 15px 14px 11px;
  }

  .entry-heading {
    display: block;
    margin-bottom: 12px;
  }

  .entry-heading p {
    margin-top: 6px;
  }

  .home-hero {
    gap: 28px;
    margin-bottom: 14px;
    padding: 30px 24px;
    border-radius: 13px;
  }

  .home-hero h1 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }

  .hero-proof div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 9px 4px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .hero-proof div:last-child {
    border-bottom: 0;
  }

  .home-social-layout {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .home-discovery {
    position: static;
    width: 100%;
  }

  .discovery-card .sport-filters,
  .discovery-card .location-filters,
  .discovery-card .era-timeline {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .discovery-card .sport-filters::-webkit-scrollbar,
  .discovery-card .location-filters::-webkit-scrollbar,
  .discovery-card .era-timeline::-webkit-scrollbar {
    display: none;
  }

  .discovery-card .sport-tab,
  .discovery-card .loc-tab,
  .discovery-card .era-chip {
    width: auto;
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid var(--network-line);
    border-radius: 999px;
    background: #fff;
  }

  .discovery-card .sport-tab.active,
  .discovery-card .loc-tab.active,
  .discovery-card .era-chip.active {
    border-color: var(--network-blue);
    background: var(--network-blue);
    color: #fff;
    box-shadow: none;
  }

  .node-grid {
    grid-template-columns: 1fr;
  }

  .browse-section,
  .network-card {
    padding: 16px;
  }
}

/* Mobile-first polish for iPhone and Android browsers. Keep these overrides
   last so the older component styles cannot reintroduce desktop dimensions. */
@media (max-width: 760px) {
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body {
    min-width: 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  img,
  video,
  canvas,
  iframe,
  svg {
    max-width: 100%;
  }

  #asdb-gate {
    min-height: 100vh;
    min-height: 100dvh;
    padding:
      max(18px, env(safe-area-inset-top, 0px))
      max(18px, env(safe-area-inset-right, 0px))
      max(18px, env(safe-area-inset-bottom, 0px))
      max(18px, env(safe-area-inset-left, 0px));
    overflow-y: auto;
  }

  #asdb-gate > div {
    width: min(100%, 360px) !important;
    padding: 1.25rem 0 !important;
  }

  #gate-input {
    min-height: 48px;
    font-size: 16px !important;
  }

  #asdb-gate button {
    min-height: 48px;
  }

  #site-header {
    min-height: 0;
    padding: 6px 0 8px;
  }

  #site-header .container,
  #breadcrumb-bar .container,
  #app > .container,
  #site-footer .container {
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
  }

  .header-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 6px 10px;
    width: 100%;
  }

  .logo-mark {
    grid-column: 1;
    min-width: 44px;
    min-height: 44px;
  }

  .logo-svg {
    width: 34px;
    height: 34px;
  }

  .header-actions {
    grid-column: 3;
    gap: 4px;
  }

  .feed-nav-btn,
  .theme-toggle {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    justify-content: center;
  }

  .feed-nav-btn svg,
  .theme-toggle svg {
    width: 19px;
    height: 19px;
  }

  .search-wrap {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100% !important;
    min-width: 0;
  }

  .search-input {
    height: 46px;
    min-height: 46px;
    padding-right: 12px;
    font-size: 16px;
  }

  .search-results-dropdown {
    top: calc(100% + 5px);
    max-height: min(56vh, 420px);
    border-radius: 10px;
    overscroll-behavior: contain;
  }

  .search-result-item {
    min-height: 58px;
    padding: 10px 12px;
  }

  #breadcrumb-bar {
    padding: 6px 0;
  }

  .breadcrumb-inner {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .breadcrumb-inner::-webkit-scrollbar {
    display: none;
  }

  #breadcrumb-trail {
    min-width: max-content;
    flex-wrap: nowrap !important;
  }

  .nav-btn {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
  }

  #app {
    padding: 10px 0 40px;
  }

  .home-entry {
    border-radius: 10px;
    padding: 13px 12px 9px;
  }

  .entry-heading {
    margin-bottom: 10px;
  }

  .entry-heading h1 {
    font-size: 1.35rem;
    line-height: 1.05;
  }

  .entry-heading p {
    font-size: 0.8rem;
  }

  .home-entry .sport-filters {
    margin-right: -12px;
    padding-right: 12px;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .home-entry .sport-filters::-webkit-scrollbar {
    display: none;
  }

  .home-entry .sport-tab,
  .discovery-card .sport-tab,
  .discovery-card .loc-tab,
  .discovery-card .era-chip {
    min-height: 40px;
    scroll-snap-align: start;
  }

  .home-social-layout {
    gap: 10px;
  }

  .network-card,
  .browse-section,
  .v2-feed-header,
  .v2-feed-item {
    border-radius: 10px !important;
  }

  .home-discovery .network-card {
    padding: 12px;
  }

  .discovery-card .card-heading {
    display: none;
  }

  .discovery-card h3 {
    margin: 4px 0 6px;
  }

  .discovery-card .era-timeline + *,
  .discovery-card h3:not(:first-of-type) {
    margin-top: 10px;
  }

  .discovery-card .location-filters,
  .discovery-card .era-timeline {
    margin-right: -12px;
    padding-right: 12px;
    scroll-snap-type: x proximity;
  }

  .v2-feed {
    gap: 10px;
    margin-bottom: 10px;
  }

  .v2-feed-header {
    padding: 15px 14px;
  }

  .v2-feed-header h2 {
    font-size: 1.12rem;
  }

  .v2-feed-header p {
    font-size: 0.82rem;
    line-height: 1.4;
  }

  .v2-feed-item {
    padding: 14px;
  }

  .v2-feed-item-head {
    align-items: flex-start;
    gap: 10px;
  }

  .v2-feed-item-avatar {
    width: 42px;
    height: 42px;
  }

  .v2-feed-item-tag {
    margin-left: 0;
    margin-top: 5px;
  }

  .browse-section {
    padding: 14px;
  }

  .directory-hero {
    align-items: flex-start;
    margin: -14px -14px 0;
    padding: 19px 14px 17px;
  }

  .directory-hero h2 {
    font-size: 1.45rem;
  }

  .directory-total {
    min-width: 112px;
    padding: 10px 11px;
  }

  .directory-total strong {
    font-size: 1.3rem;
  }

  .browse-section .section-header {
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
  }

  .browse-section .section-title {
    font-size: 1.08rem;
  }

  .node-grid {
    gap: 10px;
  }

  .node-card {
    min-height: 0;
    padding: 14px;
  }

  .node-grid .node-card::before {
    height: 34px !important;
    margin-bottom: -19px;
  }

  .node-card .card-avatar {
    width: 50px;
    height: 50px;
    margin-bottom: 9px;
    font-size: 1.05rem;
  }

  .profile-layout,
  .profile-main,
  .tab-panel,
  .profile-section {
    min-width: 0;
  }

  .profile-sidebar {
    display: none;
  }

  .v2-profile-hero {
    margin-top: 0;
    margin-bottom: 12px;
    border-radius: 10px;
  }

  .v2-hero-cover {
    height: 120px;
  }

  .v2-hero-body {
    padding: 0 14px 14px;
  }

  .v2-hero-avatar-wrap {
    width: 96px;
    height: 96px;
    margin-top: -48px;
    margin-bottom: 10px;
    padding: 4px;
  }

  .v2-hero-avatar {
    border-width: 3px;
    font-size: 2rem;
  }

  .v2-hero-verified-check {
    right: 3px;
    bottom: 3px;
    width: 32px;
    height: 32px;
  }

  .v2-hero-name-row,
  .v2-hero-name-row > div:first-child {
    min-width: 0;
    width: 100%;
  }

  .v2-hero-name {
    font-size: clamp(1.55rem, 8vw, 2rem);
    overflow-wrap: anywhere;
  }

  .v2-hero-tagline {
    font-size: 0.95rem;
    line-height: 1.4;
  }

  .v2-hero-stats {
    gap: 6px 9px;
    font-size: 0.8rem;
  }

  .v2-profile-hero .v2-hero-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px !important;
    padding-top: 14px !important;
  }

  .v2-action-btn {
    min-height: 44px;
    width: 100%;
    padding: 8px 10px;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  .profile-chips-row,
  .profile-tabs,
  .conn-typefilter,
  .social-links,
  .profile-legal-actions {
    max-width: 100%;
  }

  .profile-tabs {
    position: sticky;
    top: 106px;
    z-index: 30;
    margin: 0 -12px 16px;
    padding: 0 12px;
    background: var(--network-canvas);
    border-bottom-color: var(--network-line);
  }

  .profile-tab-btn {
    min-height: 44px;
    padding: 10px 13px;
  }

  .claim-banner,
  .defunct-notice {
    align-items: flex-start;
    padding: 14px !important;
  }

  .claim-btn {
    width: 100%;
    min-height: 44px;
  }

  .profile-section {
    margin-bottom: 22px;
    padding: 0;
  }

  .profile-section p,
  .profile-section li,
  .profile-source-list a,
  .legal-page,
  .legal-section,
  .filter-page,
  .search-page {
    overflow-wrap: anywhere;
  }

  .conn-chip {
    width: 100%;
    min-height: 48px;
  }

  .conn-chip-name,
  .conn-chip-rel {
    white-space: normal;
  }

  .related-carousel,
  .lineage-chain,
  .source-table {
    max-width: 100%;
  }

  .source-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .filter-page,
  .search-page,
  #legal-view {
    padding-top: 12px;
  }

  .filter-page-header,
  .search-page-header {
    margin-bottom: 18px;
  }

  .filter-page-header h2,
  .search-page-header h2 {
    font-size: 1.5rem;
    overflow-wrap: anywhere;
  }

  .filter-subgroup {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 10px;
  }

  .subgroup-label,
  .subgroup-chip {
    flex: 0 0 auto;
  }

  .legal-page {
    padding: 0;
  }

  .legal-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .legal-tab {
    flex: 0 0 auto;
    min-height: 44px;
  }

  .auth-modal,
  .claim-modal-box,
  .flag-modal-box,
  .sixdeg-modal-box,
  .stripe-modal-box {
    width: min(100%, 560px) !important;
    max-width: 100% !important;
    border-radius: 14px !important;
    padding: 22px 16px 16px !important;
  }

  .flag-modal-overlay,
  .auth-modal-overlay {
    padding:
      max(12px, env(safe-area-inset-top, 0px))
      max(12px, env(safe-area-inset-right, 0px))
      max(12px, env(safe-area-inset-bottom, 0px))
      max(12px, env(safe-area-inset-left, 0px)) !important;
  }

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

  .footer-links {
    margin-left: 0;
  }
}

@media (max-width: 420px) {
  .entry-heading .card-eyebrow,
  .entry-heading p {
    display: none;
  }

  .entry-heading h1 {
    font-size: 1.2rem;
  }

  .memory-search-panel h1 {
    font-size: 1.9rem;
  }

  .memory-search-panel > p {
    font-size: 0.84rem;
  }

  .memory-prompts button:nth-child(n+4) {
    display: none;
  }

  .directory-hero {
    flex-direction: column;
    gap: 14px;
  }

  .directory-total {
    width: 100%;
    text-align: left;
  }

  .home-entry .sport-tab {
    padding: 7px 12px;
  }

  .v2-feed-item-title {
    font-size: 0.88rem;
  }

  .card-tags {
    gap: 3px;
  }

  .tag {
    font-size: 0.68rem;
  }
}

@media (hover: none) and (pointer: coarse) {
  .v2-feed-item:hover,
  .node-card:hover,
  .node-grid .node-card:hover,
  .v2-card:hover {
    transform: none !important;
  }

  .flag-btn {
    opacity: 0.75;
  }
}

/* ── NOSTALGIA POLISH ───────────────────────────────────────
   Keeps the search-first layout while making the archive feel
   warmer, more tactile and more rewarding to explore. */
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 7%, rgba(255, 164, 91, 0.08), transparent 24rem),
    radial-gradient(circle at 94% 18%, rgba(46, 126, 203, 0.09), transparent 28rem),
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: auto, auto, 32px 32px, 32px 32px;
  content: '';
}

.memory-entry,
.memory-categories,
.memory-showcase-section,
.archive-entry {
  box-shadow: 0 10px 34px rgba(23, 33, 43, 0.075);
}

.memory-search-panel {
  position: relative;
  isolation: isolate;
}

.memory-search-panel::after {
  position: absolute;
  top: -72px;
  right: -46px;
  z-index: -1;
  width: 250px;
  height: 250px;
  border: 42px solid rgba(44, 131, 211, 0.055);
  border-radius: 50%;
  content: '';
}

.memory-search input {
  box-shadow: 0 5px 18px rgba(23, 33, 43, 0.055);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.memory-search input:focus {
  box-shadow: 0 0 0 4px rgba(10, 102, 194, 0.1), 0 10px 24px rgba(23, 33, 43, 0.08);
  transform: translateY(-1px);
}

.memory-search > button {
  box-shadow: 0 7px 18px rgba(10, 102, 194, 0.24);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.memory-search > button:hover {
  background: var(--network-blue-dark);
  box-shadow: 0 10px 23px rgba(10, 102, 194, 0.29);
  transform: translateY(-2px);
}

/* Community memory submissions on every profile */
.memory-submit-widget {
  border-color: #b9d8f4 !important;
  background: linear-gradient(145deg, #f5faff 0%, #eef7ff 100%) !important;
}

.memory-submit-eyebrow {
  display: block;
  margin-bottom: 7px;
  color: var(--network-blue);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.memory-submit-widget h4 {
  margin-bottom: 8px !important;
  font-size: 1rem !important;
  line-height: 1.2;
}

.memory-submit-widget p {
  margin: 0 0 13px;
  color: var(--network-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.memory-submit-button,
.memory-form-submit {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  background: var(--network-blue);
  color: #fff;
  font: 800 0.8rem/1 var(--font-body);
  cursor: pointer;
}

.memory-submit-button:hover,
.memory-form-submit:hover {
  background: var(--network-blue-dark);
}

.memory-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(10, 18, 28, 0.76);
  backdrop-filter: blur(5px);
}

.memory-modal {
  position: relative;
  width: min(680px, 100%);
  max-height: min(88vh, 760px);
  overflow-y: auto;
  padding: 28px;
  border: 1px solid #cad7e3;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(8, 20, 33, 0.3);
  color: var(--network-ink);
}

.memory-modal h3 {
  max-width: 560px;
  margin: 0 36px 8px 0;
  font: 800 clamp(1.35rem, 3vw, 2rem)/1.05 var(--font-display);
  letter-spacing: -0.035em;
}

.memory-modal > p {
  margin: 0 0 20px;
  color: var(--network-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.memory-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--network-soft);
  color: var(--network-muted);
  font-size: 1.35rem;
  cursor: pointer;
}

.memory-modal form {
  display: grid;
  gap: 8px;
}

.memory-modal label {
  margin-top: 5px;
  color: var(--network-ink);
  font-size: 0.76rem;
  font-weight: 800;
}

.memory-modal label span {
  color: var(--network-muted);
  font-weight: 600;
}

.memory-modal input,
.memory-modal select,
.memory-modal textarea {
  width: 100%;
  border: 1px solid #b9c9d8;
  border-radius: 9px;
  background: #fff;
  padding: 11px 12px;
  color: var(--network-ink);
  font: 600 0.86rem/1.35 var(--font-body);
}

.memory-modal textarea {
  resize: vertical;
}

.memory-modal input:focus,
.memory-modal select:focus,
.memory-modal textarea:focus {
  outline: 3px solid rgba(10, 102, 194, 0.13);
  border-color: var(--network-blue);
}

.memory-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.memory-form-row > div {
  display: grid;
  gap: 8px;
}

.memory-form-note {
  margin: 7px 0 5px;
  color: var(--network-muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.memory-form-submit {
  min-height: 48px;
  margin-top: 2px;
  font-size: 0.86rem;
}

@media (max-width: 620px) {
  .memory-modal-overlay {
    align-items: flex-end;
    padding: 8px;
  }

  .memory-modal {
    max-height: 92vh;
    padding: 22px 18px;
    border-radius: 16px 16px 10px 10px;
  }

  .memory-form-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.memory-prompts button {
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.memory-prompts button:hover {
  background: #d6eafb;
  transform: translateY(-1px);
}

/* Founder origin story — the pre-internet seed of ASDB */
.founder-origin {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.65fr);
  gap: 0;
  margin: 18px 0;
  overflow: hidden;
  border: 1px solid var(--network-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 34px rgba(23, 33, 43, 0.065);
}

.founder-origin-copy {
  padding: clamp(24px, 4vw, 42px);
  background:
    radial-gradient(circle at 100% 0%, rgba(58, 148, 229, 0.12), transparent 34%),
    #fff;
}

.founder-origin-copy h2 {
  max-width: 760px;
  margin: 0 0 13px;
  color: var(--network-ink);
  font: 800 clamp(1.65rem, 3.6vw, 3rem)/0.98 var(--font-display);
  letter-spacing: -0.055em;
}

.founder-origin-copy p {
  max-width: 790px;
  margin: 0;
  color: var(--network-muted);
  font-size: clamp(0.88rem, 1.25vw, 1rem);
  line-height: 1.65;
}

.founder-origin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.founder-origin-actions button {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid #b7c9da;
  border-radius: 8px;
  background: #fff;
  color: var(--network-blue);
  font: 800 0.78rem/1 var(--font-body);
  cursor: pointer;
}

.founder-origin-actions button:first-child {
  border-color: var(--network-blue);
  background: var(--network-blue);
  color: #fff;
}

.fax-memory {
  position: relative;
  align-self: stretch;
  min-height: 290px;
  padding: 30px 27px;
  overflow: hidden;
  border-left: 1px dashed #bbc2c8;
  background:
    repeating-linear-gradient(0deg, rgba(20, 28, 34, 0.025) 0, rgba(20, 28, 34, 0.025) 1px, transparent 1px, transparent 4px),
    #f4f1e8;
  color: #22272b;
  transform: rotate(0.35deg) scale(0.985);
}

.fax-memory::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 45%, rgba(255,255,255,0.48) 50%, transparent 55%);
  content: '';
}

.fax-memory-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 3px double #343a3f;
  font: 800 0.64rem/1.1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.08em;
}

.fax-memory-top strong {
  font-size: 1rem;
}

.fax-memory dl {
  margin: 19px 0;
}

.fax-memory dl div {
  display: grid;
  grid-template-columns: 75px 1fr;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px dotted #8f969b;
  font: 700 0.71rem/1.25 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.fax-memory dt {
  color: #6b7277;
}

.fax-memory dd {
  margin: 0;
}

.fax-memory-stamp {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 11px 6px;
  border: 3px solid #c3413a;
  color: #c3413a;
  font: 900 0.76rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.08em;
  transform: rotate(-4deg);
}

@media (max-width: 820px) {
  .founder-origin {
    grid-template-columns: 1fr;
  }

  .fax-memory {
    min-height: 0;
    border-top: 1px dashed #bbc2c8;
    border-left: 0;
    transform: none;
  }
}

.memory-prompts .memory-surprise {
  margin-left: 2px;
  background: #17212b;
  color: #fff;
}

.memory-prompts .memory-surprise:hover {
  background: #263647;
}

.memory-surprise span {
  margin-right: 3px;
  color: #ffd26f;
}

.memory-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(146, 174, 200, 0.34);
  color: var(--network-muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.memory-proof span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}

.memory-proof strong {
  color: var(--network-ink);
  font-family: var(--font-display);
  font-size: 0.86rem;
}

.memory-decades button {
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.memory-decades button::after {
  position: absolute;
  right: -8px;
  bottom: -18px;
  color: rgba(23, 33, 43, 0.055);
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 1;
  content: '◯';
}

.memory-category-grid button {
  position: relative;
  overflow: hidden;
}

.memory-category-grid button::after {
  position: absolute;
  inset: auto -30px -45px auto;
  width: 80px;
  height: 80px;
  border: 14px solid rgba(23, 33, 43, 0.035);
  border-radius: 50%;
  content: '';
}

.memory-category-grid button:nth-child(1) { background: linear-gradient(145deg, #fff 55%, #fff0e6); }
.memory-category-grid button:nth-child(2) { background: linear-gradient(145deg, #fff 55%, #fff7d9); }
.memory-category-grid button:nth-child(3) { background: linear-gradient(145deg, #fff 55%, #e8f4ff); }
.memory-category-grid button:nth-child(4) { background: linear-gradient(145deg, #fff 55%, #f1eaff); }
.memory-category-grid button:nth-child(5) { background: linear-gradient(145deg, #fff 55%, #e7f7ef); }
.memory-category-grid button:nth-child(6) { background: linear-gradient(145deg, #fff 55%, #fbeaf1); }

.memory-card {
  position: relative;
  transition: transform 190ms ease, box-shadow 190ms ease, border-color 190ms ease;
}

.memory-card:hover {
  border-color: #9ebbd3;
  box-shadow: 0 14px 30px rgba(23, 33, 43, 0.14);
  transform: translateY(-5px);
}

.memory-card-visual {
  transition: filter 190ms ease;
}

.memory-card:hover .memory-card-visual {
  filter: saturate(1.12) contrast(1.03);
}

.memory-card-visual::before {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,.18) 3px 4px);
  pointer-events: none;
  content: '';
}

.memory-card-open {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(10, 14, 18, 0.42);
  color: #fff;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 170ms ease, transform 170ms ease;
}

.memory-card:hover .memory-card-open,
.memory-card-visual:focus .memory-card-open {
  opacity: 1;
  transform: translateY(0);
}

.memory-card-actions a {
  transition: background 150ms ease, color 150ms ease;
}

.memory-card-actions a:hover {
  background: #e7f2fc;
  color: var(--network-blue-dark);
}

@media (max-width: 760px) {
  .memory-proof {
    gap: 8px 14px;
  }

  .memory-proof span:nth-child(3) {
    display: none;
  }

  .memory-card {
    flex: 0 0 76vw;
    max-width: 290px;
    scroll-snap-align: start;
  }

  .memory-card-open {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .memory-search input,
  .memory-search > button,
  .memory-prompts button,
  .memory-decades button,
  .memory-category-grid button,
  .memory-card,
  .memory-card-open {
    transition: none !important;
  }
}

/* ── ASDB MIXTAPE ─────────────────────────────────────────── */
.asdb-mixtape {
  margin-bottom: 18px;
  padding: 21px;
  overflow: hidden;
  border: 1px solid #24303c;
  border-radius: 14px;
  background:
    radial-gradient(circle at 88% -30%, rgba(63, 145, 218, 0.34), transparent 34%),
    linear-gradient(135deg, #111922, #1b2732 58%, #10161d);
  color: #fff;
  box-shadow: 0 14px 38px rgba(14, 24, 34, 0.16);
}

.mixtape-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.asdb-mixtape .card-eyebrow { color: #6eb9ff; }

.mixtape-intro h2 {
  margin: 3px 0 2px;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  letter-spacing: -0.045em;
}

.mixtape-intro p { margin: 0; color: #aebdca; font-size: 0.8rem; }

.mixtape-eq {
  display: flex;
  align-items: end;
  gap: 5px;
  height: 42px;
}

.mixtape-eq i {
  width: 5px;
  min-height: 8px;
  border-radius: 999px;
  background: linear-gradient(#6eb9ff, #f5a524);
  animation: asdb-eq 900ms ease-in-out infinite alternate;
}

.mixtape-eq i:nth-child(2) { height: 80%; animation-delay: -600ms; }
.mixtape-eq i:nth-child(3) { height: 45%; animation-delay: -300ms; }
.mixtape-eq i:nth-child(4) { height: 95%; animation-delay: -750ms; }
.mixtape-eq i:nth-child(5) { height: 60%; animation-delay: -150ms; }
.mixtape-eq i:nth-child(6) { height: 32%; animation-delay: -450ms; }

@keyframes asdb-eq { from { height: 20%; } to { height: 100%; } }

.mixtape-stations {
  display: flex;
  gap: 7px;
  margin: 16px 0 13px;
  overflow-x: auto;
  scrollbar-width: none;
}

.mixtape-stations::-webkit-scrollbar { display: none; }

.mixtape-station {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid #3b4a58;
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  color: #b9c7d2;
  font: 800 0.68rem/1 var(--font-body);
  cursor: pointer;
}

.mixtape-station:hover,
.mixtape-station.active {
  border-color: #6eb9ff;
  background: #eaf5ff;
  color: #0d4f88;
}

.mixtape-track-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mixtape-track {
  display: grid;
  grid-template-columns: 42px minmax(120px, .72fr) minmax(170px, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 72px;
  padding: 10px;
  border: 1px solid #34434f;
  border-radius: 10px;
  background: rgba(255,255,255,.045);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.mixtape-track:hover {
  border-color: var(--track-color);
  background: rgba(255,255,255,.075);
  transform: translateY(-2px);
}

.mixtape-play {
  display: grid;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  place-items: center;
  background: var(--track-color);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,.22);
}

.mixtape-play span { margin-left: 2px; font-size: .72rem; }
.mixtape-track-copy small,
.mixtape-track-copy strong,
.mixtape-track-copy span { display: block; }
.mixtape-track-copy small { color: #8294a3; font-size: .56rem; font-weight: 800; text-transform: uppercase; }
.mixtape-track-copy strong { margin-top: 2px; color: #fff; font-size: .79rem; }
.mixtape-track-copy span { color: #aebdca; font-size: .66rem; }
.mixtape-track p { margin: 0; color: #9fb0bd; font-size: .62rem; line-height: 1.35; }

.mixtape-story {
  padding: 6px 8px;
  border: 1px solid #41515f;
  border-radius: 999px;
  background: transparent;
  color: #dbe8f1;
  font: 800 .58rem/1 var(--font-body);
  cursor: pointer;
  white-space: nowrap;
}

.mixtape-source-note { margin: 12px 0 0; color: #718493; font-size: .56rem; }
.asdb-player[hidden] { display: none !important; }

.asdb-player {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 8000;
  width: min(420px, calc(100vw - 36px));
  overflow: hidden;
  border: 1px solid #34434f;
  border-radius: 14px;
  background: #101820;
  color: #fff;
  box-shadow: 0 22px 60px rgba(0,0,0,.34);
}

.asdb-player-drawer { padding: 10px 10px 0; }
.asdb-player-drawer[hidden] { display: none; }

.asdb-player-video {
  min-height: 225px;
  overflow: hidden;
  border-radius: 9px;
  background: #05080b;
}

.asdb-player-video iframe { display: block; width: 100%; height: 225px; border: 0; }

.asdb-player-context {
  display: grid;
  gap: 4px;
  padding: 10px 3px 11px;
}

.asdb-player-context strong { color: #6eb9ff; font-size: .58rem; text-transform: uppercase; }
.asdb-player-context span { color: #aebdca; font-size: .65rem; line-height: 1.35; }
.asdb-player-context button { width: fit-content; padding: 0; border: 0; background: none; color: #fff; font: 800 .62rem/1.5 var(--font-body); cursor: pointer; }
.asdb-player-context div { display: flex; flex-wrap: wrap; gap: 12px; }
.asdb-player-context a { color: #8bc8ff; font: 800 .62rem/1.5 var(--font-body); text-decoration: none; }

.asdb-player-bar {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 9px 10px;
}

.asdb-player-art {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border: 0;
  border-radius: 9px;
  place-items: center;
  background: linear-gradient(135deg, var(--active-track, #0a66c2), #111922);
  color: #fff;
  font: 800 .72rem var(--font-display);
  cursor: pointer;
}

.asdb-player-art i { position: absolute; width: 22px; height: 22px; right: -6px; bottom: -7px; border: 5px solid rgba(255,255,255,.16); border-radius: 50%; }
.asdb-player-now { min-width: 0; }
.asdb-player-now small, .asdb-player-now strong, .asdb-player-now span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asdb-player-now small { color: #6eb9ff; font-size: .49rem; font-weight: 900; letter-spacing: .08em; }
.asdb-player-now strong { margin-top: 2px; font-size: .77rem; }
.asdb-player-now span { color: #8fa1af; font-size: .62rem; }
.asdb-player-actions { display: flex; gap: 3px; }
.asdb-player-actions button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: #aebdca; font-size: 1rem; cursor: pointer; }
.asdb-player-actions button:hover { background: #26333e; color: #fff; }
.asdb-player-actions .asdb-player-main { background: #fff; color: #111922; font-size: .62rem; }

@media (max-width: 900px) {
  .mixtape-track-list { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .asdb-mixtape { margin-bottom: 10px; padding: 16px 14px; border-radius: 11px; }
  .mixtape-track { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .mixtape-track p { display: none; }
  .asdb-player { right: 8px; bottom: max(8px, env(safe-area-inset-bottom)); width: calc(100vw - 16px); }
  .asdb-player-video, .asdb-player-video iframe { min-height: 210px; height: 210px; }
  .asdb-player-actions button:first-child,
  .asdb-player-actions button:nth-child(3) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .mixtape-eq i { animation: none; height: 55%; }
  .mixtape-track { transition: none; }
}

/* ── PROFILE COMMUNITY LORE ─────────────────────────────────── */
.community-lore-section {
  overflow: hidden;
  border: 1px solid #dfc56b;
  border-radius: 16px;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 196, 64, .22), transparent 34%),
    linear-gradient(135deg, #fffdf4 0%, #fff8dd 100%);
}

.community-lore-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 14px;
}

.community-lore-heading h3 { margin: 4px 0 0; color: #17202b; }
.community-lore-kicker,
.community-lore-label {
  color: #9b5b00;
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.community-lore-status {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(155, 91, 0, .22);
  border-radius: 999px;
  background: rgba(255,255,255,.58);
  color: #775220;
  font-size: .62rem;
  font-weight: 800;
}

.community-lore-list { padding: 0 12px 12px; }
.community-lore-card {
  display: grid;
  grid-template-columns: minmax(210px, 34%) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(117, 77, 18, .16);
  border-radius: 12px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 12px 34px rgba(100, 71, 12, .08);
}

.community-lore-visual {
  position: relative;
  display: block;
  min-height: 220px;
  overflow: hidden;
  background: #111;
}

.community-lore-visual img { width: 100%; height: 100%; object-fit: cover; }
.community-lore-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.32), transparent 55%); }
.community-lore-play {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  display: grid;
  width: 54px;
  height: 54px;
  border: 2px solid rgba(255,255,255,.85);
  border-radius: 50%;
  place-items: center;
  background: rgba(0,0,0,.66);
  color: #fff;
  font-size: 1rem;
  transform: translate(-50%, -50%);
}

.community-lore-copy { padding: 22px; }
.community-lore-copy h4 { margin: 5px 0 8px; color: #17202b; font: 800 1.35rem/1.1 var(--font-display); }
.community-lore-copy p { margin: 0; color: #536170; line-height: 1.55; }
.community-lore-people { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.community-lore-person {
  padding: 6px 10px;
  border: 1px solid #c7a846;
  border-radius: 999px;
  background: #fff9df;
  color: #714800;
  font: 800 .68rem/1 var(--font-body);
  cursor: pointer;
}
.community-lore-person:hover { background: #ffefad; }
.community-lore-watch { display: inline-block; margin-top: 15px; color: #075fbd; font-size: .72rem; font-weight: 900; text-decoration: none; }
.community-lore-watch:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .community-lore-heading { display: block; padding: 16px 15px 12px; }
  .community-lore-status { display: inline-block; margin-top: 10px; }
  .community-lore-card { grid-template-columns: 1fr; }
  .community-lore-visual { min-height: 185px; aspect-ratio: 16 / 9; }
  .community-lore-copy { padding: 17px 15px 19px; }
}

/* ── THE REWIND — WARM 1980s EDITORIAL HOME ─────────────────
   Sun-faded surf magazines, VHS labels and mixtapes. The visual
   language is nostalgic and human, never costume-neon or fratty. */
#home-view {
  --rewind-ink: #20233d;
  --rewind-navy: #20284b;
  --rewind-cream: #fff5dc;
  --rewind-paper: #fffaf0;
  --rewind-pink: #e85c92;
  --rewind-coral: #ef765d;
  --rewind-cyan: #28a7b8;
  --rewind-gold: #f2bd4b;
  position: relative;
  padding-top: 12px;
}

#home-view::before {
  position: absolute;
  inset: -30px -100vw auto;
  z-index: -1;
  height: 720px;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 244, 218, .72), rgba(255,255,255,0)),
    repeating-linear-gradient(0deg, rgba(32,35,61,.018) 0, rgba(32,35,61,.018) 1px, transparent 1px, transparent 4px);
  content: '';
}

#home-view .memory-entry {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(32, 35, 61, .26);
  border-radius: 7px;
  background: var(--rewind-paper);
  box-shadow: 10px 12px 0 rgba(32, 40, 75, .09), 0 22px 55px rgba(70, 45, 35, .10);
}

#home-view .memory-entry::before {
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  height: 7px;
  background: linear-gradient(90deg, var(--rewind-coral) 0 23%, var(--rewind-gold) 23% 43%, var(--rewind-cyan) 43% 68%, var(--rewind-pink) 68% 100%);
  content: '';
}

#home-view .memory-search-panel {
  padding: clamp(28px, 4vw, 48px);
  background:
    radial-gradient(circle at 94% 12%, rgba(232, 92, 146, .14), transparent 25%),
    radial-gradient(circle at 78% 110%, rgba(242, 189, 75, .21), transparent 34%),
    linear-gradient(135deg, #fffaf0 0%, #fff4e5 62%, #f8e3dc 100%);
}

#home-view .memory-search-panel::after {
  top: auto;
  right: 4%;
  bottom: -115px;
  width: 250px;
  height: 250px;
  border: 18px solid rgba(40, 167, 184, .09);
  box-shadow: 0 0 0 30px rgba(232, 92, 146, .055), 0 0 0 58px rgba(242, 189, 75, .05);
}

#home-view .card-eyebrow {
  color: #a33b67;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .67rem;
  letter-spacing: .17em;
}

#home-view .memory-search-panel h1 {
  max-width: 840px;
  margin: 10px 0 14px;
  color: var(--rewind-ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.4rem, 5.2vw, 4.35rem);
  font-style: italic;
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: .96;
  text-shadow: 3px 3px 0 rgba(232, 92, 146, .12);
}

#home-view .memory-search-panel > p {
  max-width: 760px;
  color: #5d5965;
  font-size: clamp(.9rem, 1.35vw, 1.06rem);
}

#home-view .memory-search input {
  border: 2px solid rgba(32, 35, 61, .34);
  border-radius: 4px;
  background: rgba(255,255,255,.84);
  box-shadow: 4px 5px 0 rgba(32, 40, 75, .11);
}

#home-view .memory-search > button {
  border-radius: 4px;
  background: var(--rewind-navy);
  box-shadow: 4px 5px 0 rgba(232, 92, 146, .35);
}

#home-view .memory-search > button:hover { background: #343d6b; }
#home-view .memory-prompts button { border-radius: 2px; background: #f6e7c9; color: #4a4260; }
#home-view .memory-prompts button:hover { background: #edd49f; }
#home-view .memory-prompts .memory-surprise { background: var(--rewind-pink); color: #fff; }
#home-view .memory-proof { border-color: rgba(32, 35, 61, .18); color: #6f6874; }

#home-view .memory-decade-panel {
  padding: clamp(28px, 3.1vw, 42px) clamp(22px, 3vw, 36px);
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0, rgba(255,255,255,.025) 1px, transparent 1px, transparent 4px),
    var(--rewind-navy);
  color: #fff9e8;
}

#home-view .memory-decade-panel .card-eyebrow { color: #f5adca; }
#home-view .memory-decade-panel h2 {
  color: #fff9e8;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  letter-spacing: -.03em;
}

#home-view .memory-decades button {
  min-height: 106px;
  border: 0;
  border-radius: 3px;
  box-shadow: 4px 4px 0 rgba(0,0,0,.24);
  transform: rotate(-.4deg);
}
#home-view .memory-decades button:nth-child(even) { transform: rotate(.45deg); }
#home-view .memory-decades button:nth-child(1) { background: #f2d28f; }
#home-view .memory-decades button:nth-child(2) { background: #ef8fb2; }
#home-view .memory-decades button:nth-child(3) { background: #82ced0; }
#home-view .memory-decades button:nth-child(4) { background: #eca779; }
#home-view .memory-decades button strong { color: var(--rewind-ink); font-family: Georgia, serif; font-style: italic; }
#home-view .memory-decades button span { color: rgba(32,35,61,.72); }

/* The mixtape belongs above the fold, presented like a real deck. */
#home-view .asdb-mixtape {
  position: relative;
  margin: 22px 0 18px;
  padding: 24px 24px 18px;
  overflow: hidden;
  border: 2px solid #2a2a33;
  border-radius: 7px;
  background:
    linear-gradient(90deg, transparent 0 58%, rgba(232,92,146,.11) 58% 60%, transparent 60% 63%, rgba(40,167,184,.12) 63% 65%, transparent 65%),
    #e9dfc8;
  color: var(--rewind-ink);
  box-shadow: 8px 9px 0 rgba(32,40,75,.12), inset 0 0 0 5px rgba(255,255,255,.34);
}

#home-view .asdb-mixtape::before {
  position: absolute;
  top: 13px;
  right: 18px;
  width: 58px;
  height: 10px;
  border-top: 3px solid var(--rewind-pink);
  border-bottom: 3px solid var(--rewind-cyan);
  content: '';
}

#home-view .asdb-mixtape .card-eyebrow { color: #9b3e68; }
#home-view .mixtape-intro h2 {
  color: var(--rewind-ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  font-style: italic;
  letter-spacing: -.035em;
}
#home-view .mixtape-intro p { color: #655f68; }
#home-view .mixtape-eq i { background: linear-gradient(#e85c92, #ef765d, #f2bd4b); }
#home-view .mixtape-stations { margin: 17px 0 13px; }
#home-view .mixtape-station {
  border-color: #8d846f;
  border-radius: 2px;
  background: rgba(255,250,237,.76);
  color: #4d4852;
}
#home-view .mixtape-station:hover,
#home-view .mixtape-station.active { border-color: var(--rewind-pink); background: var(--rewind-pink); color: #fff; }

#home-view .mixtape-track-list {
  display: grid;
  grid-auto-columns: minmax(300px, 360px);
  grid-auto-flow: column;
  grid-template-columns: none;
  gap: 10px;
  padding: 2px 2px 10px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline proximity;
}

#home-view .mixtape-track {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  min-height: 84px;
  border: 1px solid #2d2d35;
  border-radius: 3px;
  background: #252633;
  box-shadow: 3px 4px 0 rgba(0,0,0,.17);
  scroll-snap-align: start;
}
#home-view .mixtape-track p { display: none; }
#home-view .mixtape-source-note { color: #766f65; }

/* The player is always visible: a portable cassette deck, not a hidden widget. */
.asdb-player {
  border: 2px solid #22242e;
  border-radius: 6px;
  background: #e8dec7;
  color: #20233d;
  box-shadow: 7px 8px 0 rgba(32,35,61,.18), 0 20px 55px rgba(0,0,0,.20);
}
.asdb-player::before {
  display: block;
  height: 5px;
  background: linear-gradient(90deg, #e85c92 0 34%, #f2bd4b 34% 58%, #28a7b8 58% 100%);
  content: '';
}
.asdb-player-bar { min-height: 70px; }
.asdb-player-art { border-radius: 3px; background: #252633; box-shadow: inset 0 0 0 2px #777264; }
.asdb-player-now small { color: #a33b67; }
.asdb-player-now strong { color: #20233d; }
.asdb-player-now span { color: #67636a; }
.asdb-player-actions button { color: #4f4b55; }
.asdb-player-actions button:hover { background: #d0c5ac; color: #20233d; }
.asdb-player-actions .asdb-player-main { background: #e85c92; color: #fff; }
.asdb-player-drawer { background: #20233d; }

#home-view .founder-origin,
#home-view .memory-categories,
#home-view .memory-showcase-section,
#home-view .archive-entry {
  border-radius: 7px;
  border-color: rgba(32,35,61,.22);
  box-shadow: 7px 8px 0 rgba(32,40,75,.07);
}

#home-view .founder-origin-copy h2,
#home-view .memory-section-heading h2,
#home-view .entry-heading h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 700;
  letter-spacing: -.04em;
}

#home-view .memory-category-grid button { border-radius: 4px; box-shadow: 3px 4px 0 rgba(32,40,75,.08); }

@media (max-width: 760px) {
  #home-view { padding-top: 4px; }
  #home-view .memory-entry { border-radius: 5px; box-shadow: 5px 6px 0 rgba(32,40,75,.08); }
  #home-view .memory-search-panel { padding: 27px 17px 20px; }
  #home-view .memory-search-panel h1 { font-size: clamp(2.25rem, 11.5vw, 3.2rem); }
  #home-view .memory-decade-panel { padding: 22px 16px; }
  #home-view .memory-decades { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #home-view .memory-decades button { min-height: 88px; }
  #home-view .asdb-mixtape { margin-top: 15px; padding: 20px 14px 14px; }
  #home-view .asdb-mixtape::before { right: 12px; width: 42px; }
  #home-view .mixtape-track-list { grid-auto-columns: minmax(270px, 84vw); }
  .asdb-player { bottom: max(8px, env(safe-area-inset-bottom)); }
}

/* ── MUSIC-FIRST HOME: THE PLAYER IS THE HERO ─────────────── */
#home-view > .asdb-mixtape:first-child {
  margin: 0 0 18px;
  padding: clamp(20px, 3vw, 34px);
  border: 0;
  border-radius: 10px;
  background:
    radial-gradient(circle at 100% 0%, rgba(232,92,146,.22), transparent 34%),
    radial-gradient(circle at 0% 100%, rgba(40,167,184,.16), transparent 38%),
    #171922;
  color: #fff;
  box-shadow: 0 18px 48px rgba(20, 22, 30, .22);
}

#home-view > .asdb-mixtape:first-child::before {
  top: 0;
  right: 0;
  left: 0;
  width: auto;
  height: 5px;
  border: 0;
  background: linear-gradient(90deg, #e85c92, #f2bd4b 48%, #28a7b8);
}

#home-view > .asdb-mixtape .mixtape-intro { align-items: end; }
#home-view > .asdb-mixtape .mixtape-intro h2 {
  margin-top: 4px;
  color: #fff;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.8rem, 3.6vw, 3.25rem);
  font-style: italic;
  line-height: 1;
}
#home-view > .asdb-mixtape .mixtape-intro p { max-width: 760px; color: #b9bbc7; font-size: .88rem; }

.mixtape-stage {
  display: grid;
  grid-template-columns: minmax(380px, 1.35fr) minmax(260px, .65fr);
  gap: 0;
  margin: 22px 0 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: #0b0c11;
}

.mixtape-stage-video {
  position: relative;
  display: grid;
  min-height: 350px;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(40,167,184,.45), rgba(32,35,61,.25) 48%, rgba(232,92,146,.48)),
    #212432;
}

.mixtape-stage-video::before {
  position: absolute;
  width: 260px;
  height: 260px;
  border: 28px solid rgba(255,255,255,.055);
  border-radius: 50%;
  box-shadow: 0 0 0 45px rgba(255,255,255,.025);
  content: '';
}

.mixtape-stage-video > button {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.mixtape-stage-video > button span {
  display: grid;
  width: 78px;
  height: 78px;
  margin-bottom: 7px;
  border: 2px solid rgba(255,255,255,.82);
  border-radius: 50%;
  place-items: center;
  background: rgba(10,11,16,.58);
  font-size: 1.35rem;
  box-shadow: 0 10px 35px rgba(0,0,0,.28);
}
.mixtape-stage-video > button strong { font: 800 1.15rem/1 var(--font-body); }
.mixtape-stage-video > button small { color: rgba(255,255,255,.72); font-size: .72rem; }
.mixtape-stage-video iframe { display: block; width: 100%; height: 100%; min-height: 350px; border: 0; }

.mixtape-stage-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 3vw, 42px);
  background: #f7f3e8;
  color: #20233d;
}
.mixtape-stage-copy > span { color: #a33b67; font-size: .64rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.mixtape-stage-copy h3 { margin: 10px 0 2px; font: italic 700 clamp(1.8rem, 3vw, 2.8rem)/.98 Georgia, serif; letter-spacing: -.04em; }
.mixtape-stage-copy > strong { color: #66606d; font-size: .9rem; }
.mixtape-stage-copy p { margin: 18px 0 0; color: #5f5b65; font-size: .82rem; line-height: 1.55; }
.mixtape-stage-copy > div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.mixtape-stage-copy button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #20233d;
  border-radius: 4px;
  background: transparent;
  color: #20233d;
  font: 800 .72rem/1 var(--font-body);
  cursor: pointer;
}
.mixtape-stage-copy button:first-child { border-color: #e85c92; background: #e85c92; color: #fff; }

#home-view > .asdb-mixtape .mixtape-station { border-color: #444752; background: #272a35; color: #c8cad2; }
#home-view > .asdb-mixtape .mixtape-station:hover,
#home-view > .asdb-mixtape .mixtape-station.active { border-color: #e85c92; background: #e85c92; color: #fff; }
#home-view > .asdb-mixtape .mixtape-source-note { color: #747784; }

/* Search is a utility now, not a wall of letters. */
#home-view .memory-entry { margin-top: 0; box-shadow: 0 12px 36px rgba(32,35,61,.08); }
#home-view .memory-search-panel { padding: clamp(24px, 3vw, 34px); }
#home-view .memory-search-panel h1 {
  max-width: none;
  margin: 7px 0 7px;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1;
  text-shadow: none;
}
#home-view .memory-search-panel > p { margin-bottom: 18px; }

@media (max-width: 900px) {
  .mixtape-stage { grid-template-columns: 1fr; }
  .mixtape-stage-video,
  .mixtape-stage-video iframe { min-height: 310px; }
}

@media (max-width: 620px) {
  #home-view > .asdb-mixtape:first-child { padding: 20px 12px 14px; border-radius: 6px; }
  #home-view > .asdb-mixtape .mixtape-intro h2 { font-size: 2rem; }
  .mixtape-stage { margin: 16px 0 14px; }
  .mixtape-stage-video,
  .mixtape-stage-video iframe { min-height: 220px; }
  .mixtape-stage-copy { padding: 21px 17px; }
  .mixtape-stage-copy h3 { font-size: 2rem; }
  #home-view .memory-search-panel h1 { font-size: 2.2rem; }
}

/* ── PREMIUM 1980s ARCHIVE ───────────────────────────────────
   Cultural memory through editorial restraint: warm stock,
   sober ink and the faded color of period surf photography. */
#home-view {
  --rewind-ink: #15263a;
  --rewind-navy: #15263a;
  --rewind-cream: #f4efe5;
  --rewind-paper: #fbf8f1;
  --rewind-pink: #b94737;
  --rewind-coral: #c65a43;
  --rewind-cyan: #357985;
  --rewind-gold: #b89554;
}

#home-view::before {
  background:
    linear-gradient(180deg, rgba(238, 231, 217, .72), rgba(255,255,255,0)),
    repeating-linear-gradient(0deg, rgba(21,38,58,.014) 0, rgba(21,38,58,.014) 1px, transparent 1px, transparent 5px);
}

#home-view > .asdb-mixtape:first-child {
  border: 1px solid rgba(21,38,58,.28);
  border-radius: 3px;
  background: #f3eee3;
  color: #15263a;
  box-shadow: 0 18px 45px rgba(43, 48, 54, .11);
}

#home-view > .asdb-mixtape:first-child::before {
  height: 3px;
  background: linear-gradient(90deg, #b94737 0 38%, #b89554 38% 62%, #357985 62% 100%);
}

#home-view > .asdb-mixtape .mixtape-intro h2 {
  color: #15263a;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: normal;
  font-weight: 600;
  letter-spacing: -.035em;
}
#home-view > .asdb-mixtape .mixtape-intro p { color: #62666b; }
#home-view > .asdb-mixtape .card-eyebrow { color: #8f3e34; }
#home-view > .asdb-mixtape .mixtape-eq i { background: #357985; }

.mixtape-stage {
  border-color: rgba(21,38,58,.28);
  border-radius: 2px;
  background: #111820;
}

.mixtape-stage-video {
  background:
    linear-gradient(145deg, rgba(53,121,133,.48), rgba(21,38,58,.34) 52%, rgba(185,71,55,.40)),
    #172431;
}
.mixtape-stage-video::before {
  width: 245px;
  height: 245px;
  border-width: 20px;
  border-color: rgba(255,255,255,.045);
  box-shadow: 0 0 0 42px rgba(255,255,255,.018);
}
.mixtape-stage-video > button span {
  width: 70px;
  height: 70px;
  border-width: 1px;
  background: rgba(10,16,23,.72);
}

.mixtape-stage-copy { background: #fbf8f1; color: #15263a; }
.mixtape-stage-copy > span { color: #8f3e34; }
.mixtape-stage-copy h3 {
  font-style: normal;
  font-weight: 600;
  color: #15263a;
}
.mixtape-stage-copy > strong,
.mixtape-stage-copy p { color: #62666b; }
.mixtape-stage-copy button {
  border-color: #15263a;
  border-radius: 2px;
  color: #15263a;
}
.mixtape-stage-copy button:first-child { border-color: #15263a; background: #15263a; color: #fff; }

#home-view > .asdb-mixtape .mixtape-station {
  border-color: #aaa293;
  border-radius: 1px;
  background: transparent;
  color: #4f555c;
}
#home-view > .asdb-mixtape .mixtape-station:hover,
#home-view > .asdb-mixtape .mixtape-station.active { border-color: #15263a; background: #15263a; color: #fff; }
#home-view > .asdb-mixtape .mixtape-track {
  border-color: #303943;
  border-radius: 2px;
  background: #1a222c;
  box-shadow: none;
}
#home-view > .asdb-mixtape .mixtape-source-note { color: #7d7a73; }

#home-view .memory-entry {
  border-radius: 3px;
  border-color: rgba(21,38,58,.24);
  box-shadow: 0 13px 36px rgba(43,48,54,.08);
}
#home-view .memory-entry::before { height: 3px; background: linear-gradient(90deg, #b94737, #b89554 52%, #357985); }
#home-view .memory-search-panel {
  background:
    linear-gradient(115deg, rgba(251,248,241,.98), rgba(246,240,229,.95)),
    #fbf8f1;
}
#home-view .memory-search-panel::after { display: none; }
#home-view .memory-search-panel h1 {
  color: #15263a;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: normal;
  font-weight: 600;
  letter-spacing: -.035em;
}
#home-view .memory-search input,
#home-view .memory-search > button,
#home-view .memory-prompts button { border-radius: 2px; box-shadow: none; }
#home-view .memory-search > button { background: #15263a; }
#home-view .memory-prompts button { background: #eee6d7; color: #424c56; }
#home-view .memory-prompts .memory-surprise { background: #357985; color: #fff; }

#home-view .memory-decade-panel {
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0, rgba(255,255,255,.018) 1px, transparent 1px, transparent 5px),
    #15263a;
}
#home-view .memory-decades button,
#home-view .memory-decades button:nth-child(even) {
  min-height: 92px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 1px;
  background: transparent;
  box-shadow: none;
  transform: none;
}
#home-view .memory-decades button:hover { background: rgba(255,255,255,.08); }
#home-view .memory-decades button strong { color: #fff; font-family: Georgia, serif; font-style: normal; font-weight: 600; }
#home-view .memory-decades button span { color: #adb8c1; }
#home-view .memory-decades button:nth-child(2) { border-color: #b89554; background: rgba(184,149,84,.12); }

#home-view .memory-categories,
#home-view .memory-showcase-section,
#home-view .archive-entry { border-radius: 3px; box-shadow: 0 10px 28px rgba(43,48,54,.07); }
#home-view .memory-category-grid button {
  border-radius: 1px;
  background: #fbf8f1 !important;
  box-shadow: none;
}
#home-view .memory-category-grid button::after { background: #357985; }
#home-view .memory-category-grid span {
  color: #9a463a;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.asdb-player {
  border: 1px solid #38424d;
  border-radius: 3px;
  background: #15202b;
  color: #fff;
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
}
.asdb-player::before { height: 2px; background: linear-gradient(90deg, #b94737, #b89554 52%, #357985); }
.asdb-player-art { border-radius: 2px; background: #0d141c; box-shadow: inset 0 0 0 1px #4e5963; }
.asdb-player-now small { color: #bb9b63; }
.asdb-player-now strong { color: #fff; }
.asdb-player-now span { color: #9ea8b0; }
.asdb-player-actions button { color: #bcc4ca; }
.asdb-player-actions button:hover { background: #263441; color: #fff; }
.asdb-player-actions .asdb-player-main { background: #f4efe5; color: #15263a; }

/* ── DIRECTORY-FIRST HIERARCHY ───────────────────────────────
   Music remains present and persistent, but it supports the
   archive instead of becoming the archive's landing page. */
#home-view > .memory-entry:first-child { margin-top: 0; }

#home-view > .memory-entry + .asdb-mixtape {
  display: grid;
  grid-template-columns: minmax(270px, .7fr) minmax(0, 1.3fr);
  gap: 13px 22px;
  margin: 14px 0 18px;
  padding: 18px 20px 14px;
  border: 1px solid rgba(21,38,58,.24);
  border-radius: 3px;
  background: #f3eee3;
  color: #15263a;
  box-shadow: 0 9px 26px rgba(43,48,54,.07);
}

#home-view > .memory-entry + .asdb-mixtape::before {
  top: 0;
  right: 0;
  left: 0;
  width: auto;
  height: 2px;
  border: 0;
  background: linear-gradient(90deg, #b94737, #b89554 52%, #357985);
}

#home-view > .memory-entry + .asdb-mixtape .mixtape-intro {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  grid-column: 1;
  grid-row: 1 / span 2;
}
#home-view > .memory-entry + .asdb-mixtape .mixtape-intro > div:first-child { flex: 1; }
#home-view > .memory-entry + .asdb-mixtape .mixtape-intro h2 {
  margin: 4px 0 5px;
  color: #15263a;
  font: 600 clamp(1.2rem, 2vw, 1.6rem)/1.05 Georgia, 'Times New Roman', serif;
  letter-spacing: -.025em;
}
#home-view > .memory-entry + .asdb-mixtape .mixtape-intro p {
  max-width: 430px;
  margin: 0;
  color: #65686b;
  font-size: .72rem;
  line-height: 1.45;
}
#home-view > .memory-entry + .asdb-mixtape .mixtape-eq {
  flex: 0 0 auto;
  width: 36px;
  height: 30px;
  margin-top: 5px;
}

#home-view > .memory-entry + .asdb-mixtape .mixtape-stations {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  margin: 0;
}
#home-view > .memory-entry + .asdb-mixtape .mixtape-station {
  min-height: 28px;
  padding: 0 9px;
  border-color: #aaa293;
  border-radius: 1px;
  background: transparent;
  color: #4f555c;
  font-size: .58rem;
}
#home-view > .memory-entry + .asdb-mixtape .mixtape-station:hover,
#home-view > .memory-entry + .asdb-mixtape .mixtape-station.active { border-color: #15263a; background: #15263a; color: #fff; }

#home-view > .memory-entry + .asdb-mixtape .mixtape-track-list {
  display: grid;
  grid-auto-columns: minmax(220px, 250px);
  grid-auto-flow: column;
  grid-template-columns: none;
  gap: 7px;
  grid-column: 2;
  grid-row: 2;
  padding: 0 0 5px;
  overflow-x: auto;
}
#home-view > .memory-entry + .asdb-mixtape .mixtape-track {
  grid-template-columns: 34px minmax(0, 1fr) auto;
  min-height: 62px;
  padding: 8px;
  border: 1px solid #303943;
  border-radius: 2px;
  background: #1a222c;
  box-shadow: none;
}
#home-view > .memory-entry + .asdb-mixtape .mixtape-play { width: 34px; height: 34px; }
#home-view > .memory-entry + .asdb-mixtape .mixtape-track-copy small { font-size: .48rem; }
#home-view > .memory-entry + .asdb-mixtape .mixtape-track-copy strong { font-size: .68rem; }
#home-view > .memory-entry + .asdb-mixtape .mixtape-track-copy span { font-size: .57rem; }
#home-view > .memory-entry + .asdb-mixtape .mixtape-story { padding: 5px 7px; font-size: .51rem; }
#home-view > .memory-entry + .asdb-mixtape .mixtape-source-note {
  grid-column: 1 / -1;
  margin: 0;
  color: #858077;
  font-size: .48rem;
}

@media (max-width: 900px) {
  #home-view > .memory-entry + .asdb-mixtape {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  #home-view > .memory-entry + .asdb-mixtape .mixtape-intro,
  #home-view > .memory-entry + .asdb-mixtape .mixtape-stations,
  #home-view > .memory-entry + .asdb-mixtape .mixtape-track-list {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 620px) {
  #home-view > .memory-entry + .asdb-mixtape { padding: 16px 12px 12px; }
  #home-view > .memory-entry + .asdb-mixtape .mixtape-intro h2 { font-size: 1.35rem; }
  #home-view > .memory-entry + .asdb-mixtape .mixtape-intro p { font-size: .68rem; }
  #home-view > .memory-entry + .asdb-mixtape .mixtape-track-list { grid-auto-columns: minmax(205px, 76vw); }
  #home-view > .memory-entry + .asdb-mixtape .mixtape-source-note { display: none; }
}

/* ── PACIFIC REWIND ──────────────────────────────────────────
   Surf culture is the atmosphere. The archive is the product.
   Period photography and sun-faded ocean color replace the
   newspaper/archive styling without sacrificing modern utility. */
main:has(#home-view) {
  background:
    radial-gradient(circle at 8% 18%, rgba(0, 201, 214, .14), transparent 27%),
    radial-gradient(circle at 92% 30%, rgba(255, 82, 107, .11), transparent 26%),
    linear-gradient(180deg, #061b2b 0, #0a2d40 42%, #eef5f4 42%, #eef5f4 100%);
}

main:has(#home-view) > .container,
#site-header .container {
  max-width: 1380px;
}

#home-view {
  --surf-night: #061b2b;
  --surf-navy: #092c40;
  --surf-blue: #08a9bd;
  --surf-cyan: #2ed8d0;
  --surf-sun: #ffc24c;
  --surf-coral: #ff5d63;
  --surf-pink: #ef3f88;
  --surf-foam: #f5fbfa;
  --surf-ink: #102737;
  padding-top: 20px;
  color: var(--surf-ink);
}

#home-view::before { display: none; }

#home-view .card-eyebrow {
  color: var(--surf-cyan);
  font-family: var(--font-body);
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .19em;
  text-transform: uppercase;
}

/* A surf-film opening frame with the search embedded in it. */
#home-view .memory-entry {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
  min-height: 570px;
  margin: 0 0 14px;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: #0a2737 url('asdb-surf-hero-1988.png') center / cover no-repeat;
  box-shadow: 0 28px 70px rgba(0, 10, 18, .38);
}

#home-view .memory-entry::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  height: auto;
  background:
    linear-gradient(90deg, rgba(2, 19, 31, .93) 0%, rgba(3, 24, 38, .78) 39%, rgba(3, 24, 38, .18) 72%),
    linear-gradient(0deg, rgba(1, 12, 20, .72), transparent 48%);
  content: '';
}

#home-view .memory-entry::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .18;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,.08) 3px 4px);
  mix-blend-mode: soft-light;
  content: '';
}

#home-view .memory-search-panel,
#home-view .memory-decade-panel {
  position: relative;
  z-index: 1;
}

#home-view .memory-search-panel {
  display: flex;
  min-height: 570px;
  padding: clamp(42px, 6vw, 80px);
  flex-direction: column;
  justify-content: flex-end;
  background: transparent;
}

#home-view .memory-search-panel::after { display: none; }

#home-view .memory-search-panel h1 {
  max-width: 820px;
  margin: 12px 0 14px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 6.5vw, 6.8rem);
  font-style: normal;
  font-weight: 700;
  letter-spacing: -.065em;
  line-height: .86;
  text-wrap: balance;
  text-shadow: 0 4px 30px rgba(0,0,0,.38);
}

#home-view .memory-search-panel > p {
  max-width: 690px;
  margin: 0 0 24px;
  color: rgba(255,255,255,.84);
  font-size: clamp(.9rem, 1.2vw, 1.08rem);
  line-height: 1.5;
}

#home-view .memory-search {
  max-width: 860px;
  gap: 9px;
}

#home-view .memory-search input {
  min-height: 58px;
  padding: 0 20px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 12px;
  background: rgba(250,255,255,.94);
  color: #0b2637;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
  font-size: .95rem;
}

#home-view .memory-search input:focus {
  border-color: var(--surf-cyan);
  box-shadow: 0 0 0 4px rgba(46,216,208,.22), 0 12px 30px rgba(0,0,0,.18);
}

#home-view .memory-search > button {
  min-height: 58px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--surf-coral), var(--surf-pink));
  color: #fff;
  box-shadow: 0 12px 28px rgba(239,63,136,.28);
  font-weight: 900;
}

#home-view .memory-search > button:hover {
  background: linear-gradient(135deg, #ff7771, #ff4e9a);
  transform: translateY(-2px);
}

#home-view .memory-prompts { margin-top: 11px; }
#home-view .memory-prompts button,
#home-view .memory-prompts .memory-surprise {
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(3, 24, 38, .58);
  color: #fff;
  box-shadow: none;
  backdrop-filter: blur(8px);
}
#home-view .memory-prompts button:hover,
#home-view .memory-prompts .memory-surprise:hover {
  border-color: var(--surf-cyan);
  background: rgba(8,169,189,.7);
}

#home-view .memory-proof {
  margin-top: 20px;
  border-color: rgba(255,255,255,.22);
  color: rgba(255,255,255,.72);
}
#home-view .memory-proof strong { color: #fff; }

#home-view .memory-decade-panel {
  align-self: stretch;
  padding: 42px 30px;
  border-left: 1px solid rgba(255,255,255,.18);
  background: rgba(3, 22, 34, .56);
  color: #fff;
  backdrop-filter: blur(14px) saturate(1.2);
}

#home-view .memory-decade-panel .card-eyebrow { color: #8ff5ef; }
#home-view .memory-decade-panel h2 {
  margin: 8px 0 24px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-style: normal;
  font-weight: 650;
  letter-spacing: -.045em;
}

#home-view .memory-decades { gap: 10px; }
#home-view .memory-decades button,
#home-view .memory-decades button:nth-child(even) {
  min-height: 106px;
  padding: 15px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  box-shadow: none;
  transform: none;
}
#home-view .memory-decades button:hover {
  border-color: var(--surf-cyan);
  background: rgba(46,216,208,.16);
  transform: translateY(-3px);
}
#home-view .memory-decades button:nth-child(2) {
  border-color: rgba(255,194,76,.9);
  background: linear-gradient(145deg, rgba(255,93,99,.92), rgba(239,63,136,.82));
  box-shadow: 0 12px 24px rgba(239,63,136,.24);
}
#home-view .memory-decades button strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-style: normal;
  font-weight: 700;
}
#home-view .memory-decades button span { margin-top: 5px; color: rgba(255,255,255,.72); }
#home-view .memory-decades button:nth-child(2) span { color: #fff; }
#home-view .memory-decades button::after { color: rgba(255,255,255,.07); }

/* Music stays available as a background control, never the landing story. */
#home-view > .memory-entry + .asdb-mixtape {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 10px 18px;
  margin: 14px 0 22px;
  padding: 15px 18px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  background: rgba(5, 28, 43, .88);
  color: #fff;
  box-shadow: 0 14px 34px rgba(0,0,0,.2);
  backdrop-filter: blur(12px);
}
#home-view > .memory-entry + .asdb-mixtape::before { display: none; }
#home-view > .memory-entry + .asdb-mixtape .mixtape-intro { grid-column: 1; grid-row: 1 / span 2; }
#home-view > .memory-entry + .asdb-mixtape .mixtape-intro h2 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 650;
  letter-spacing: -.025em;
}
#home-view > .memory-entry + .asdb-mixtape .mixtape-intro p { display: none; }
#home-view > .memory-entry + .asdb-mixtape .card-eyebrow { color: #77e8e1; font-size: .55rem; }
#home-view > .memory-entry + .asdb-mixtape .mixtape-eq { height: 24px; }
#home-view > .memory-entry + .asdb-mixtape .mixtape-stations { grid-column: 2; margin: 0; }
#home-view > .memory-entry + .asdb-mixtape .mixtape-station {
  border-color: rgba(255,255,255,.2);
  border-radius: 999px;
  color: rgba(255,255,255,.7);
}
#home-view > .memory-entry + .asdb-mixtape .mixtape-station:hover,
#home-view > .memory-entry + .asdb-mixtape .mixtape-station.active {
  border-color: var(--surf-cyan);
  background: var(--surf-cyan);
  color: #042132;
}
#home-view > .memory-entry + .asdb-mixtape .mixtape-track-list {
  grid-column: 2;
  grid-auto-columns: minmax(210px, 245px);
  gap: 8px;
}
#home-view > .memory-entry + .asdb-mixtape .mixtape-track {
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 10px;
  background: rgba(255,255,255,.06);
}
#home-view > .memory-entry + .asdb-mixtape .mixtape-source-note { display: none; }

/* The discovery lanes feel like sun-faded board graphics, not forms. */
#home-view .memory-categories,
#home-view .memory-showcase-section,
#home-view .archive-entry {
  margin-bottom: 18px;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(9, 44, 64, .12);
}

#home-view .memory-categories {
  padding: 28px;
  background: #fff;
}
#home-view .memory-section-heading h2,
#home-view .entry-heading h2 {
  color: var(--surf-ink);
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 650;
  letter-spacing: -.045em;
}
#home-view .memory-category-grid { gap: 10px; }
#home-view .memory-category-grid button {
  min-height: 150px;
  padding: 18px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  box-shadow: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
#home-view .memory-category-grid button:nth-child(1) { background: linear-gradient(145deg, #ff694f, #ef3f88) !important; }
#home-view .memory-category-grid button:nth-child(2) { background: linear-gradient(145deg, #ffba39, #ff754b) !important; }
#home-view .memory-category-grid button:nth-child(3) { background: linear-gradient(145deg, #0fa6bf, #17629a) !important; }
#home-view .memory-category-grid button:nth-child(4) { background: linear-gradient(145deg, #6e4ec5, #ef3f88) !important; }
#home-view .memory-category-grid button:nth-child(5) { background: linear-gradient(145deg, #087d84, #17b7a9) !important; }
#home-view .memory-category-grid button:nth-child(6) { background: linear-gradient(145deg, #173d58, #0a2436) !important; }
#home-view .memory-category-grid button:hover {
  box-shadow: 0 16px 28px rgba(9,44,64,.2);
  transform: translateY(-5px) rotate(-.5deg);
}
#home-view .memory-category-grid span { color: rgba(255,255,255,.62); }
#home-view .memory-category-grid strong { color: #fff; font-size: .92rem; }
#home-view .memory-category-grid small { color: rgba(255,255,255,.78); }
#home-view .memory-category-grid button::after { border-color: rgba(255,255,255,.12); background: transparent; }

#home-view .memory-showcase-section { padding: 28px; background: #e8f2f1; }
#home-view .memory-card {
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 9px 24px rgba(6,39,56,.12);
}
#home-view .memory-card-visual { min-height: 178px; }
#home-view .memory-card-actions a:hover { background: #dff7f5; color: #087d84; }

#home-view .archive-entry { padding: 26px 28px; background: #fff; }
#home-view .archive-entry .sport-tab { border-radius: 999px; }
#home-view .archive-entry .sport-tab.active { background: var(--surf-blue); color: #fff; }

/* Keep the working directory below visually calm and highly usable. */
#home-view .home-social-layout { margin-top: 0; }
#home-view .home-discovery,
#home-view .home-insights,
#home-view .home-stream > * {
  border-radius: 16px;
}

@media (max-width: 980px) {
  #home-view .memory-entry { grid-template-columns: 1fr; min-height: 0; background-position: 62% center; }
  #home-view .memory-entry::before {
    background: linear-gradient(0deg, rgba(2,19,31,.96) 0%, rgba(2,19,31,.64) 62%, rgba(2,19,31,.14) 100%);
  }
  #home-view .memory-search-panel { min-height: 560px; padding: 44px; }
  #home-view .memory-decade-panel {
    padding: 24px;
    border-top: 1px solid rgba(255,255,255,.16);
    border-left: 0;
  }
  #home-view .memory-decades { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #home-view > .memory-entry + .asdb-mixtape { grid-template-columns: 1fr; }
  #home-view > .memory-entry + .asdb-mixtape .mixtape-intro,
  #home-view > .memory-entry + .asdb-mixtape .mixtape-stations,
  #home-view > .memory-entry + .asdb-mixtape .mixtape-track-list { grid-column: 1; grid-row: auto; }
}

@media (max-width: 760px) {
  main:has(#home-view) { background: linear-gradient(180deg, #061b2b 0, #0a2d40 31%, #eef5f4 31%); }
  #home-view { padding-top: 8px; }
  #home-view .memory-entry { border-radius: 16px; background-position: 66% center; }
  #home-view .memory-search-panel { min-height: 520px; padding: 30px 18px 24px; }
  #home-view .memory-search-panel h1 { font-size: clamp(3rem, 16vw, 4.45rem); line-height: .88; }
  #home-view .memory-search-panel > p { max-width: 92%; font-size: .88rem; }
  #home-view .memory-search { display: grid; grid-template-columns: 1fr; }
  #home-view .memory-search input,
  #home-view .memory-search > button { min-height: 54px; border-radius: 10px; }
  #home-view .memory-search > button { width: 100%; }
  #home-view .memory-prompts { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 3px; }
  #home-view .memory-prompts button { flex: 0 0 auto; }
  #home-view .memory-decade-panel { padding: 22px 16px; }
  #home-view .memory-decades { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #home-view .memory-decades button { min-height: 82px; }
  #home-view > .memory-entry + .asdb-mixtape { padding: 14px; border-radius: 13px; }
  #home-view > .memory-entry + .asdb-mixtape .mixtape-intro { align-items: center; }
  #home-view > .memory-entry + .asdb-mixtape .mixtape-track-list { grid-auto-columns: minmax(205px, 78vw); }
  #home-view .memory-categories,
  #home-view .memory-showcase-section,
  #home-view .archive-entry { padding: 20px 14px; border-radius: 14px; }
  #home-view .memory-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #home-view .memory-category-grid button { min-height: 132px; }
}

@media (max-width: 430px) {
  #home-view .memory-search-panel { min-height: 500px; }
  #home-view .memory-search-panel h1 { font-size: 3.15rem; }
  #home-view .memory-category-grid { grid-template-columns: 1fr 1fr; }
  #home-view .memory-category-grid button { min-height: 126px; padding: 14px; }
}

/* ── Directory-preserving profile drill-in ───────────────────
   A profile is a deeper directory view, not a separate destination. Keep
   the same three-column rhythm and give people an exact return path. */
#profile-view.visible {
  padding-top: 0;
}

#profile-view .profile-layout {
  grid-template-columns: 220px minmax(0, 1fr) 292px;
  gap: 24px;
}

#profile-view .profile-directory-context,
#profile-view .profile-sidebar {
  position: sticky;
  top: 88px;
}

.profile-directory-card {
  padding: 20px;
  border: 1px solid var(--network-line);
  border-radius: 12px;
  background: var(--network-card);
  box-shadow: var(--card-shadow);
}

.profile-directory-card h2 {
  margin: 7px 0 8px;
  color: var(--network-ink);
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.profile-directory-card > p {
  margin: 0;
  color: var(--network-muted);
  font-size: .78rem;
  line-height: 1.5;
}

.profile-back-results {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  padding: 10px 12px;
  border: 1px solid var(--network-blue);
  border-radius: 999px;
  background: #fff;
  color: var(--network-blue);
  font: 800 .78rem/1 var(--font-body);
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.profile-back-results:hover,
.profile-back-results:focus-visible {
  background: var(--network-blue);
  color: #fff;
  transform: translateX(-2px);
}

.profile-back-results span:first-child {
  font-size: 1rem;
}

.profile-directory-filters {
  display: grid;
  gap: 7px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--network-line);
}

.profile-directory-filters > span {
  color: var(--network-muted);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.profile-directory-filters strong {
  display: block;
  padding: 8px 10px;
  border-left: 3px solid var(--network-blue);
  border-radius: 0 7px 7px 0;
  background: #eef6fd;
  color: var(--network-ink);
  font-size: .75rem;
}

#profile-view .profile-main {
  min-width: 0;
}

#profile-view .v2-profile-hero {
  margin-top: 0;
  margin-bottom: 14px;
  border-radius: 12px;
}

#profile-view .v2-hero-cover {
  height: 150px;
}

#profile-view .v2-hero-body {
  padding: 0 22px 20px;
}

#profile-view .v2-hero-avatar-wrap {
  width: 112px;
  height: 112px;
  margin-top: -56px;
  margin-bottom: 11px;
  padding: 4px;
}

#profile-view .v2-hero-avatar {
  border-width: 3px;
  font-size: 2.45rem;
}

#profile-view .v2-hero-name {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
}

#profile-view .v2-hero-tagline {
  font-size: .92rem;
}

#profile-view .v2-hero-stats {
  margin-top: .65rem;
  font-size: .8rem;
}

#profile-view .v2-profile-hero .v2-hero-actions {
  margin-top: 14px !important;
  padding-top: 14px !important;
}

#profile-view .profile-chips-row,
#profile-view .claim-banner,
#profile-view .profile-tabs,
#profile-view .tab-panel,
#profile-view .related-carousel-wrap,
#profile-view .profile-legal {
  padding-right: 2px;
  padding-left: 2px;
}

.profile-commerce {
  margin: 18px 2px 22px;
  padding: 22px;
  border: 1px solid var(--network-line);
  border-radius: 12px;
  background: var(--network-card);
  box-shadow: var(--card-shadow);
}

.profile-commerce-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.profile-commerce-heading h2 {
  margin: 6px 0 0;
  color: var(--network-ink);
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.05;
  letter-spacing: -.035em;
}

.profile-commerce-heading p {
  max-width: 390px;
  margin: 0;
  color: var(--network-muted);
  font-size: .78rem;
  line-height: 1.45;
  text-align: right;
}

.profile-commerce-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.profile-commerce-link {
  display: flex;
  min-width: 0;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 15px;
  border: 1px solid var(--network-line);
  border-radius: 10px;
  background: var(--network-soft);
  color: var(--network-ink);
  text-decoration: none;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.profile-commerce-link:hover,
.profile-commerce-link:focus-visible {
  border-color: var(--network-blue);
  background: #eef7ff;
  transform: translateY(-1px);
}

.profile-commerce-link-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.profile-commerce-link-copy small {
  color: var(--network-blue);
  font-size: .58rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.profile-commerce-link-copy strong {
  overflow: hidden;
  font-size: .82rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-commerce-link-copy em {
  overflow: hidden;
  color: var(--network-muted);
  font-size: .68rem;
  font-style: normal;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-commerce-arrow {
  flex: 0 0 auto;
  color: var(--network-blue);
  font-size: 1rem;
  font-weight: 900;
}

.profile-commerce-disclosure {
  margin: 12px 0 0;
  color: var(--network-muted);
  font-size: .64rem;
  line-height: 1.4;
}

@media (max-width: 1120px) {
  #profile-view .profile-layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  #profile-view .profile-sidebar {
    display: none;
  }
}

@media (max-width: 760px) {
  #profile-view .profile-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  #profile-view .profile-directory-context {
    position: static;
  }

  .profile-directory-card {
    padding: 12px;
  }

  .profile-directory-card h2,
  .profile-directory-card > p,
  .profile-directory-filters {
    display: none;
  }

  .profile-back-results {
    width: fit-content;
    min-height: 40px;
    margin-top: 8px;
    padding: 9px 13px;
  }

  .profile-commerce {
    margin-right: 0;
    margin-left: 0;
    padding: 16px;
  }

  .profile-commerce-heading {
    display: block;
  }

  .profile-commerce-heading p {
    margin-top: 8px;
    text-align: left;
  }

  .profile-commerce-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ── ASDB WORKSPACE SHELL ────────────────────────────────────
   Dense, calm application structure inspired by the owner's CRM.
   Surf culture lives in imagery and color; navigation stays quiet. */
@media (min-width: 901px) {
  body { padding-left: 218px; }

  .app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1200;
    display: flex;
    width: 218px;
    padding: 16px 10px 124px;
    flex-direction: column;
    background:
      radial-gradient(circle at 30% 0%, rgba(21, 195, 198, .12), transparent 28%),
      #071923;
    color: #fff;
    box-shadow: 1px 0 0 rgba(255,255,255,.08);
  }

  #site-header {
    left: 218px;
    width: calc(100% - 218px);
  }

  #site-header .logo-mark { display: none; }
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 7px 18px;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.sidebar-brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 10px;
  place-items: center;
  background: linear-gradient(145deg, #0ba8bd, #ef3f88);
  color: #fff;
  font: 700 1rem/1 var(--font-display);
  box-shadow: 0 8px 22px rgba(0,0,0,.2);
}

.sidebar-brand strong,
.sidebar-brand small { display: block; }
.sidebar-brand strong { font: 650 .92rem/1 var(--font-display); letter-spacing: -.02em; }
.sidebar-brand small { margin-top: 4px; color: rgba(255,255,255,.45); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; }

.sidebar-section-label {
  padding: 10px 9px 7px;
  color: rgba(255,255,255,.36);
  font-size: .56rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.sidebar-nav { display: grid; gap: 4px; }
.sidebar-nav-item {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  gap: 11px;
  padding: 0 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255,255,255,.65);
  cursor: pointer;
  text-align: left;
  transition: color 140ms ease, background 140ms ease;
}
.sidebar-nav-item > span { width: 18px; color: rgba(255,255,255,.46); font-size: 1rem; text-align: center; }
.sidebar-nav-item strong { font-size: .73rem; font-weight: 700; }
.sidebar-nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.sidebar-nav-item.active { background: #0f7f8d; color: #fff; box-shadow: inset 3px 0 0 #5ff0e4; }
.sidebar-nav-item.active > span { color: #8afff5; }

.sidebar-culture-note {
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 10px;
  background:
    linear-gradient(0deg, rgba(5,22,31,.88), rgba(5,22,31,.36)),
    url('asdb-surf-hero-1988.png') center / cover;
}
.sidebar-culture-note span,
.sidebar-culture-note strong,
.sidebar-culture-note small { display: block; }
.sidebar-culture-note span { color: #71ebe2; font-size: .5rem; font-weight: 900; letter-spacing: .15em; }
.sidebar-culture-note strong { margin-top: 5px; font: 650 .8rem/1.1 var(--font-display); }
.sidebar-culture-note small { margin-top: 4px; color: rgba(255,255,255,.58); font-size: .58rem; line-height: 1.35; }

#site-header {
  min-height: 64px;
  border-bottom: 1px solid #dce5e8;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
}
#site-header .container { max-width: none; }
#site-header .header-inner { min-height: 64px; padding: 9px 16px; }
#site-header .search-wrap { max-width: 720px; }
#site-header .search-input { height: 42px; border-radius: 8px; background: #f1f5f6; font-size: .78rem; }
.header-music-btn {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid #ccdadd;
  border-radius: 7px;
  background: #fff;
  color: #315363;
  font: 800 .66rem/1 var(--font-body);
  cursor: pointer;
}
.header-music-btn:hover { border-color: #0f7f8d; color: #0f7f8d; }

#app { min-height: calc(100vh - 64px); background: #eef3f4; }
#app > .container { max-width: none; padding: 18px 22px 44px; }
#site-footer { background: #eef3f4; }

/* Compact the homepage into a workspace, not a billboard. */
main:has(#home-view) {
  background: #eef3f4;
}
#home-view { padding-top: 0; }
#home-view .memory-entry {
  grid-template-columns: minmax(0, 1fr) 290px;
  min-height: 360px;
  margin-bottom: 16px;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(5,32,47,.2);
}
#home-view .memory-search-panel {
  min-height: 360px;
  padding: clamp(28px, 3.6vw, 48px);
}
#home-view .memory-search-panel h1 {
  max-width: 710px;
  margin: 8px 0 10px;
  font-size: clamp(2.55rem, 4.8vw, 4.75rem);
  line-height: .88;
}
#home-view .memory-search-panel > p { margin-bottom: 16px; font-size: .82rem; }
#home-view .memory-search input,
#home-view .memory-search > button { min-height: 48px; }
#home-view .memory-proof { margin-top: 12px; padding-top: 10px; }
#home-view .memory-decade-panel { padding: 28px 20px; }
#home-view .memory-decade-panel h2 { margin: 6px 0 15px; font-size: 1.35rem; }
#home-view .memory-decades { gap: 8px; }
#home-view .memory-decades button,
#home-view .memory-decades button:nth-child(even) { min-height: 74px; padding: 10px 12px; border-radius: 10px; }
#home-view .memory-decades button strong { font-size: 1.08rem; }
#home-view .memory-decades button span { font-size: .55rem; }

/* Homepage music is intentionally gone; the global player and Music tab remain. */
#home-view > .memory-entry + .asdb-mixtape { display: none !important; }

#home-view .memory-categories,
#home-view .memory-showcase-section,
#home-view .archive-entry { margin-bottom: 14px; border-radius: 14px; box-shadow: 0 6px 20px rgba(16,55,70,.08); }
#home-view .memory-categories,
#home-view .memory-showcase-section { padding: 20px; }
#home-view .memory-section-heading { margin-bottom: 13px; }
#home-view .memory-section-heading h2,
#home-view .entry-heading h2 { font-size: 1.25rem; }
#home-view .memory-category-grid { gap: 8px; }
#home-view .memory-category-grid button { min-height: 104px; padding: 14px; border-radius: 10px; }
#home-view .memory-category-grid strong { font-size: .76rem; }
#home-view .memory-category-grid small { font-size: .59rem; }
#home-view .memory-card-visual { min-height: 128px; }
#home-view .archive-entry { padding: 18px 20px; }

/* Dedicated music workspace */
.music-workspace { color: #1d3440; }
.music-workspace-header {
  display: flex;
  min-height: 154px;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 32px;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
  background:
    linear-gradient(90deg, rgba(4,25,37,.95), rgba(4,25,37,.6)),
    url('asdb-surf-hero-1988.png') center 54% / cover;
  color: #fff;
}
.music-kicker { color: #67ece2; font-size: .58rem; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.music-workspace-header h1 { margin: 5px 0 4px; font: 650 clamp(2rem, 3vw, 3rem)/1 var(--font-display); letter-spacing: -.05em; }
.music-workspace-header p { max-width: 690px; margin: 0; color: rgba(255,255,255,.7); font-size: .72rem; }
.music-saved-summary {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 8px;
  background: rgba(2,20,31,.48);
  color: #fff;
  font: 700 .68rem/1 var(--font-body);
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.music-saved-summary span { color: #ff6a8e; font-size: 1rem; }

.music-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 14px;
  padding: 12px;
  border: 1px solid #d2dfe2;
  border-top: 0;
  background: #fff;
}
.music-search-control {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid #c9d8dc;
  border-radius: 8px;
  background: #f5f8f8;
  color: #6e848d;
}
.music-search-control input { width: 100%; border: 0; outline: 0; background: transparent; color: #203b47; font: 500 .72rem var(--font-body); }
.music-filter-row { display: flex; align-items: center; gap: 6px; overflow-x: auto; }
.music-filter-row button {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #cbdadd;
  border-radius: 999px;
  background: #fff;
  color: #59717c;
  font: 800 .58rem/1 var(--font-body);
  cursor: pointer;
}
.music-filter-row button.active { border-color: #0f7f8d; background: #0f7f8d; color: #fff; }

.music-workspace-body {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 520px;
  border: 1px solid #d2dfe2;
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: #fff;
}
.music-library-nav { padding: 14px 10px; border-right: 1px solid #d8e2e4; background: #f4f7f7; }
.music-library-nav button {
  display: grid;
  width: 100%;
  min-height: 38px;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #5f747d;
  font: 700 .66rem/1 var(--font-body);
  cursor: pointer;
  text-align: left;
}
.music-library-nav button strong { color: #87989f; font-size: .56rem; }
.music-library-nav button.active { background: #dce9e9; color: #214b56; }

.music-library-panel { min-width: 0; padding: 0 14px 18px; }
.music-library-heading { display: flex; min-height: 46px; align-items: center; justify-content: space-between; border-bottom: 1px solid #d8e2e4; }
.music-library-heading strong { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.music-library-heading span { color: #83969e; font-size: .62rem; }
.music-library-row {
  display: grid;
  grid-template-columns: 34px minmax(150px, .7fr) minmax(220px, 1.3fr) 48px 48px 34px;
  min-height: 64px;
  align-items: center;
  gap: 10px;
  padding: 7px 4px;
  border-bottom: 1px solid #dce5e7;
}
.music-library-row:hover { background: #f5f9f9; }
.music-row-play {
  display: grid;
  width: 30px;
  height: 30px;
  border: 1px solid color-mix(in srgb, var(--track-color), #fff 35%);
  border-radius: 50%;
  place-items: center;
  background: color-mix(in srgb, var(--track-color), #fff 88%);
  color: var(--track-color);
  font-size: .56rem;
  cursor: pointer;
}
.music-row-title strong,
.music-row-title span,
.music-row-connection strong,
.music-row-connection span { display: block; }
.music-row-title strong { color: #203944; font-size: .72rem; }
.music-row-title span { margin-top: 3px; color: #70838b; font-size: .62rem; }
.music-row-connection strong { color: #345d69; font-size: .57rem; text-transform: uppercase; }
.music-row-connection span { margin-top: 3px; overflow: hidden; color: #7b8d94; font-size: .57rem; text-overflow: ellipsis; white-space: nowrap; }
.music-library-row time { color: #798b92; font-size: .62rem; }
.music-row-story,
.music-row-save { border: 0; background: transparent; color: #66808a; font: 800 .58rem var(--font-body); cursor: pointer; }
.music-row-story:hover { color: #0f7f8d; }
.music-row-save { font-size: 1rem; }
.music-row-save.saved { color: #ef496f; }
.music-empty { display: grid; min-height: 260px; place-content: center; justify-items: center; color: #71868e; }
.music-empty strong { color: #2b4752; }
.music-empty span { margin-top: 5px; font-size: .68rem; }

/* The persistent player behaves like the CRM's compact utility player. */
@media (min-width: 901px) {
  .asdb-player {
    right: auto;
    bottom: 10px;
    left: 10px;
    z-index: 1400;
    width: 198px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 9px;
    background: #0b202b;
    box-shadow: 0 14px 34px rgba(0,0,0,.32);
  }
  .asdb-player.open { left: 228px; width: min(420px, calc(100vw - 248px)); }
  .asdb-player-bar { min-height: 58px; grid-template-columns: 36px minmax(0,1fr) auto; gap: 7px; padding: 7px; }
  .asdb-player-art { width: 36px; height: 36px; }
  .asdb-player-now small { font-size: .41rem; }
  .asdb-player-now strong { font-size: .64rem; }
  .asdb-player-now span { font-size: .52rem; }
  .asdb-player-actions { gap: 0; }
  .asdb-player-actions button { width: 24px; height: 24px; }
  .asdb-player:not(.open) .asdb-player-actions button:first-child,
  .asdb-player:not(.open) .asdb-player-actions button:nth-child(3),
  .asdb-player:not(.open) .asdb-player-actions button:last-child { display: none; }
}

@media (max-width: 1100px) and (min-width: 901px) {
  #home-view .memory-entry { grid-template-columns: 1fr 240px; }
  #home-view .memory-search-panel h1 { font-size: 3.3rem; }
  .music-toolbar { grid-template-columns: 1fr; }
  .music-filter-row { justify-content: flex-start; }
  .music-library-row { grid-template-columns: 34px minmax(130px,.7fr) minmax(180px,1.3fr) 42px 34px; }
  .music-row-story { display: none; }
}

@media (max-width: 900px) {
  body { padding-bottom: 66px; }
  .app-sidebar {
    position: fixed;
    inset: auto 0 0;
    z-index: 1300;
    height: 62px;
    padding: 5px 8px max(5px, env(safe-area-inset-bottom));
    background: rgba(6,25,35,.97);
    backdrop-filter: blur(14px);
  }
  .sidebar-brand,
  .sidebar-section-label,
  .sidebar-culture-note { display: none; }
  .sidebar-nav { display: grid; height: 100%; grid-template-columns: repeat(4,1fr); gap: 2px; }
  .sidebar-nav-item {
    display: grid;
    min-height: 50px;
    justify-items: center;
    align-content: center;
    gap: 2px;
    padding: 0;
    border-radius: 7px;
    text-align: center;
  }
  .sidebar-nav-item > span { width: auto; font-size: .88rem; }
  .sidebar-nav-item strong { font-size: .52rem; }
  .sidebar-nav-item.active { box-shadow: inset 0 2px 0 #64f0e5; }
  #site-header { width: 100%; }
  .header-music-btn span { display: none; }
  #app > .container { padding: 12px 10px 30px; }
  #home-view .memory-entry { grid-template-columns: 1fr; min-height: 0; }
  #home-view .memory-search-panel { min-height: 390px; padding: 26px 20px 20px; }
  #home-view .memory-search-panel h1 { font-size: clamp(2.45rem, 12vw, 3.8rem); }
  #home-view .memory-decade-panel { padding: 18px 16px; }
  #home-view .memory-decades { grid-template-columns: repeat(4,minmax(0,1fr)); }
  #home-view .memory-decades button,
  #home-view .memory-decades button:nth-child(even) { min-height: 66px; padding: 8px; }
  .music-workspace-header { min-height: 130px; padding: 22px 18px; }
  .music-workspace-header p { max-width: 520px; }
  .music-toolbar { grid-template-columns: 1fr; }
  .music-filter-row { padding-bottom: 2px; }
  .music-workspace-body { grid-template-columns: 1fr; }
  .music-library-nav { display: none; }
  .music-library-row { grid-template-columns: 32px minmax(110px,.7fr) minmax(140px,1fr) 34px; }
  .music-library-row time,
  .music-row-story { display: none; }
  .asdb-player { bottom: 70px; }
}

@media (max-width: 620px) {
  #site-header .header-inner { min-height: 58px; padding: 8px 10px; }
  #site-header .search-input { height: 40px; }
  .feed-nav-btn { display: none; }
  #home-view .memory-search-panel { min-height: 350px; }
  #home-view .memory-search-panel h1 { font-size: 2.55rem; }
  #home-view .memory-search-panel > p { margin-bottom: 13px; }
  #home-view .memory-prompts button:nth-child(n+4) { display: none; }
  #home-view .memory-proof span:nth-child(2) { display: inline-flex; }
  #home-view .memory-decade-panel h2 { font-size: 1.15rem; }
  #home-view .memory-decades { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #home-view .memory-category-grid button { min-height: 94px; }
  .music-workspace-header { display: block; border-radius: 11px 11px 0 0; }
  .music-saved-summary { margin-top: 15px; }
  .music-toolbar { padding: 9px; }
  .music-library-panel { padding: 0 8px 12px; }
  .music-library-row { grid-template-columns: 32px minmax(0,1fr) 34px; gap: 8px; }
  .music-row-connection { display: none; }
}

/* ── DIRECTORY WORKSPACE ────────────────────────────────────
   The archive gets a dedicated application view. The nostalgic homepage
   remains an invitation; this route is the fast, information-dense tool. */
#home-view.directory-mode > .memory-entry,
#home-view.directory-mode > .asdb-mixtape,
#home-view.directory-mode > .memory-categories,
#home-view.directory-mode > .memory-showcase-section {
  display: none !important;
}

#home-view.directory-mode .archive-entry {
  position: sticky;
  top: 76px;
  z-index: 24;
  margin-bottom: 12px;
  padding: 13px 16px 11px;
  border: 1px solid #d4e0e3;
  border-radius: 11px;
  box-shadow: 0 7px 22px rgba(11,45,58,.1);
}
#home-view.directory-mode .archive-entry .entry-heading { align-items: center; margin-bottom: 9px; }
#home-view.directory-mode .archive-entry .card-eyebrow { font-size: .5rem; }
#home-view.directory-mode .archive-entry h2 { margin-top: 2px; font-size: 1.06rem; letter-spacing: -.035em; }
#home-view.directory-mode .archive-entry .entry-heading > p { display: none; }
#home-view.directory-mode .archive-entry .sport-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  margin: 0;
  padding: 0 0 3px;
  overflow-x: auto;
  scrollbar-width: thin;
}
#home-view.directory-mode .archive-entry .sport-tab {
  min-height: 30px;
  flex: 0 0 auto;
  padding: 0 10px;
  font-size: .58rem;
}

#home-view.directory-mode .home-social-layout {
  grid-template-columns: 190px minmax(0, 1fr) 230px;
  gap: 13px;
}
#home-view.directory-mode .home-discovery,
#home-view.directory-mode .home-insights { top: 164px; }
#home-view.directory-mode .network-card { padding: 15px; }
#home-view.directory-mode .card-heading { padding-bottom: 10px; }
#home-view.directory-mode .card-heading h2,
#home-view.directory-mode .insight-card h2 { font-size: .88rem; }
#home-view.directory-mode .discovery-card h3 { margin: 14px 0 5px; font-size: .57rem; }
#home-view.directory-mode .discovery-card .loc-tab,
#home-view.directory-mode .discovery-card .era-chip { padding: 6px 8px; font-size: .67rem; }

#home-view.directory-mode .directory-hero {
  min-height: 126px;
  margin: -1px -1px 14px;
  padding: 20px;
  border-radius: 11px 11px 0 0;
  background:
    linear-gradient(90deg, rgba(4,28,41,.96), rgba(4,38,52,.7)),
    url('asdb-surf-hero-1988.png') center 57% / cover;
  color: #fff;
}
#home-view.directory-mode .directory-hero .card-eyebrow { color: #66ece3; }
#home-view.directory-mode .directory-hero h2 { color: #fff; font-size: 1.35rem; }
#home-view.directory-mode .directory-hero p { color: rgba(255,255,255,.7); font-size: .67rem; }
#home-view.directory-mode .directory-total {
  border-color: rgba(255,255,255,.2);
  background: rgba(3,24,35,.54);
  color: #fff;
}
#home-view.directory-mode .directory-total strong,
#home-view.directory-mode .directory-total span { color: #fff; }
#home-view.directory-mode .browse-section { padding: 0 14px 16px; }
#home-view.directory-mode .directory-results-header { margin-bottom: 10px; padding-bottom: 10px; }
#home-view.directory-mode .node-grid { gap: 8px; }
#home-view.directory-mode .node-card { min-height: 126px; padding: 12px; }
#home-view.directory-mode .home-insights { gap: 10px; }
#home-view.directory-mode .insight-card p { margin: 8px 0 12px; font-size: .7rem; }
#home-view.directory-mode .right-rail-feed .v2-feed-item:nth-of-type(n+4) { display: none; }
#home-view.directory-mode .quick-links-card a { padding: 8px 0; font-size: .7rem; }

@media (min-width: 1460px) {
  #home-view.directory-mode .node-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1180px) {
  #home-view.directory-mode .home-social-layout { grid-template-columns: 176px minmax(0,1fr); }
  #home-view.directory-mode .home-insights { display: none; }
}

@media (max-width: 900px) {
  #home-view.directory-mode .archive-entry { top: 70px; }
  #home-view.directory-mode .home-social-layout { grid-template-columns: 1fr; }
  #home-view.directory-mode .home-discovery { position: static; }
  #home-view.directory-mode .discovery-card { padding: 11px; }
  #home-view.directory-mode .discovery-card .card-heading,
  #home-view.directory-mode .discovery-card h3 { display: none; }
  #home-view.directory-mode .discovery-card .location-filters,
  #home-view.directory-mode .discovery-card .era-timeline { flex-direction: row; overflow-x: auto; }
  #home-view.directory-mode .discovery-card .era-timeline { margin-top: 5px; }
  #home-view.directory-mode .discovery-card .loc-tab,
  #home-view.directory-mode .discovery-card .era-chip { width: auto; flex: 0 0 auto; }
}

@media (max-width: 620px) {
  #home-view.directory-mode .archive-entry { top: 66px; padding: 10px; }
  #home-view.directory-mode .archive-entry h2 { font-size: .92rem; }
  #home-view.directory-mode .directory-hero { min-height: 112px; padding: 16px; }
  #home-view.directory-mode .directory-hero h2 { font-size: 1.15rem; }
  #home-view.directory-mode .directory-total { padding: 8px 10px; }
  #home-view.directory-mode .directory-total strong { font-size: 1rem; }
}

/* Faceted directory controls */
.directory-within-search {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  margin: 13px 0 8px;
  padding: 0 9px;
  border: 1px solid #cbdadd;
  border-radius: 7px;
  background: #f4f8f8;
  color: #62808a;
}
.directory-within-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1c3b47;
  font: 600 .64rem var(--font-body);
}
.directory-within-search:focus-within { border-color: #168b95; box-shadow: 0 0 0 3px rgba(22,139,149,.1); }

.directory-facet { border-top: 1px solid #dce5e7; }
.directory-facet summary {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  color: #49646e;
  font-size: .57rem;
  font-weight: 900;
  letter-spacing: .1em;
  list-style: none;
  text-transform: uppercase;
  cursor: pointer;
}
.directory-facet summary::-webkit-details-marker { display: none; }
.directory-facet summary::after { content: '+'; color: #7b9299; font-size: .82rem; }
.directory-facet[open] summary::after { content: '−'; }
.directory-facet > div { padding: 0 0 9px; }

.discovery-card .type-filters {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.discovery-card .type-chip {
  display: flex;
  width: 100%;
  min-height: 29px;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #5d737c;
  font: 700 .63rem var(--font-body);
  cursor: pointer;
  text-align: left;
}
.discovery-card .type-chip span { color: #8ba0a7; font-size: .52rem; }
.discovery-card .type-chip:hover { background: #eaf2f3; color: #176f7a; }
.discovery-card .type-chip.active { background: #dceced; color: #155b65; box-shadow: inset 3px 0 0 #1596a0; }

#home-view.directory-mode .discovery-card .location-filters,
#home-view.directory-mode .discovery-card .era-timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 3px;
}
#home-view.directory-mode .discovery-card .loc-tab,
#home-view.directory-mode .discovery-card .era-chip {
  overflow: hidden;
  padding: 6px 7px;
  font-size: .58rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.letter-filters { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 4px; }
.letter-chip {
  display: grid;
  min-height: 27px;
  padding: 0;
  border: 1px solid #d5e0e3;
  border-radius: 5px;
  place-items: center;
  background: #fff;
  color: #5e747c;
  font: 800 .56rem var(--font-body);
  cursor: pointer;
}
.letter-chip:hover,
.letter-chip.active { border-color: #168b95; background: #168b95; color: #fff; }
.directory-reset {
  width: 100%;
  min-height: 32px;
  margin-top: 8px;
  border: 1px solid #cbd9dc;
  border-radius: 6px;
  background: #fff;
  color: #607880;
  font: 800 .58rem var(--font-body);
  cursor: pointer;
}
.directory-reset:hover { border-color: #168b95; color: #168b95; }

.active-directory-filters { display: none; flex-wrap: wrap; gap: 5px; margin: -2px 0 10px; }
.active-directory-filters.visible { display: flex; }
.active-directory-filters button {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border: 1px solid #a9cfd2;
  border-radius: 999px;
  background: #e5f4f3;
  color: #19636c;
  font: 800 .55rem var(--font-body);
  cursor: pointer;
}
.active-directory-filters button span { font-size: .75rem; }

@media (max-width: 900px) {
  #home-view.directory-mode .directory-within-search { margin-top: 0; }
  #home-view.directory-mode .directory-facet { border-top: 0; }
  #home-view.directory-mode .directory-facet summary { min-height: 30px; }
  #home-view.directory-mode .discovery-card .type-filters,
  #home-view.directory-mode .discovery-card .location-filters,
  #home-view.directory-mode .discovery-card .era-timeline {
    display: flex;
    flex-direction: row;
    padding-bottom: 4px;
    overflow-x: auto;
  }
  #home-view.directory-mode .discovery-card .type-chip,
  #home-view.directory-mode .discovery-card .loc-tab,
  #home-view.directory-mode .discovery-card .era-chip { width: auto; flex: 0 0 auto; }
  #home-view.directory-mode .discovery-card .type-chip { gap: 7px; padding: 0 9px; border: 1px solid #d6e1e3; }
  #home-view.directory-mode .directory-letter-facet,
  #home-view.directory-mode .directory-reset { display: none; }
}

.directory-select-filters { display: grid; gap: 7px; }
.directory-select-filters label {
  display: grid;
  gap: 3px;
  color: #71858d;
  font-size: .48rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.directory-select-filters select {
  width: 100%;
  min-height: 32px;
  padding: 0 25px 0 8px;
  border: 1px solid #d1dde0;
  border-radius: 6px;
  outline: 0;
  background: #f7f9f9;
  color: #3f5a65;
  font: 700 .6rem var(--font-body);
  text-transform: none;
  cursor: pointer;
}
.directory-select-filters select:focus { border-color: #168b95; box-shadow: 0 0 0 3px rgba(22,139,149,.1); }

@media (max-width: 900px) {
  #home-view.directory-mode .directory-advanced-facet > div {
    grid-template-columns: repeat(2,minmax(150px,1fr));
    overflow: visible;
  }
}

@media (max-width: 520px) {
  #home-view.directory-mode .directory-advanced-facet > div { grid-template-columns: 1fr; }
}
