@import url("./editorial.css");

body.studio-history-page {
  --bg-0: #f3f1ef;
  --bg-1: #f5f6fd;
  --bg-2: #dce3f1;
  --panel: rgba(252, 250, 247, 0.95);
  --panel-strong: rgba(255, 255, 253, 0.99);
  --line: rgba(24, 54, 83, 0.13);
  --line-strong: rgba(24, 54, 83, 0.24);
  --text: #182634;
  --text-soft: #556170;
  --text-muted: #6b7584;
  --gold: #b48c41;
  --green: #7db328;
  --mint: #2d8572;
  --red: #b56257;
  --navy: #1f4f6c;
  --blue: #1f4f6c;
  --shadow: 0 28px 70px rgba(31, 45, 64, 0.14);
}

html[data-theme="dark"] body.studio-history-page {
  --bg-0: #0d1118;
  --bg-1: #111825;
  --bg-2: #161f2d;
  --panel: rgba(17, 23, 33, 0.95);
  --panel-strong: rgba(21, 28, 40, 0.99);
  --line: rgba(210, 219, 232, 0.14);
  --line-strong: rgba(210, 219, 232, 0.24);
  --text: #f4efe5;
  --text-soft: #c3cedb;
  --text-muted: #99a6b6;
  --gold: #d9bb6c;
  --green: #9fd04f;
  --mint: #57b9a6;
  --red: #d28a7d;
  --navy: #dbe8f5;
  --blue: #c8d6e4;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

body.studio-history-page .memorial-hero,
body.studio-history-page .search-panel,
body.studio-history-page .honorees-section,
body.studio-history-page .support-panel,
body.studio-history-page .memorial-footer,
body.studio-history-page .dialog-card {
  background:
    radial-gradient(circle at 12% 12%, rgba(179, 139, 63, 0.11), transparent 24%),
    radial-gradient(circle at 88% 18%, rgba(125, 179, 40, 0.08), transparent 26%),
    radial-gradient(circle at 56% 100%, rgba(184, 89, 77, 0.06), transparent 34%),
    linear-gradient(180deg, rgba(251, 248, 241, 0.98), rgba(240, 234, 223, 0.96));
}

body.studio-history-page .hero-brand-box,
body.studio-history-page .honoree-card {
  background:
    radial-gradient(circle at 14% 10%, rgba(179, 139, 63, 0.14), transparent 28%),
    radial-gradient(circle at 88% 82%, rgba(125, 179, 40, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.99), rgba(245, 239, 227, 0.99));
}

body.studio-history-page .honoree-card {
  background:
    radial-gradient(circle at 12% 12%, rgba(179, 139, 63, 0.11), transparent 24%),
    radial-gradient(circle at 88% 18%, rgba(125, 179, 40, 0.08), transparent 26%),
    radial-gradient(circle at 56% 100%, rgba(184, 89, 77, 0.06), transparent 34%),
    linear-gradient(180deg, rgba(251, 248, 241, 0.98), rgba(240, 234, 223, 0.96));
  border-color: var(--line);
  box-shadow: var(--shadow);
}

body.studio-history-page .honoree-portrait {
  background: rgba(255, 255, 255, 0.18);
  border-bottom-color: rgba(23, 61, 90, 0.12);
}

body.studio-history-page .portrait-fallback {
  background:
    radial-gradient(circle at 50% 20%, rgba(243, 229, 182, 0.26), transparent 18%),
    linear-gradient(180deg, rgba(251, 248, 241, 0.98), rgba(238, 231, 219, 0.98));
}

body.studio-history-page .hero-intro {
  gap: 0;
  max-width: none;
}

body.studio-history-page .hero-logo-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.studio-history-page .hero-logo-chip {
  color: inherit;
  text-transform: none;
  letter-spacing: 0;
}

body.studio-history-page .hero-logo-chip img {
  max-height: 86px;
}

body.studio-history-page .hero-intro h1 {
  max-width: none;
  font-size: clamp(30px, 4.2vw, 54px);
}

body.studio-history-page .honoree-card-button {
  grid-template-rows: auto 128px;
}

body.studio-history-page .honoree-copy {
  min-height: 128px;
  max-height: 128px;
  padding: 11px 12px 11px;
  gap: 4px;
}

body.studio-history-page .honoree-copy h3 {
  font-size: clamp(17px, 1.45vw, 22px);
}

body.studio-history-page .card-kicker {
  color: var(--navy);
  font-size: 11px;
  letter-spacing: 0.16em;
}

body.studio-history-page .studio-card-meta {
  display: grid;
  gap: 3px;
  margin-top: 2px;
}

body.studio-history-page .studio-card-description,
body.studio-history-page .studio-card-address {
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.studio-history-page .studio-card-description {
  -webkit-line-clamp: 1;
}

body.studio-history-page .studio-card-address {
  color: var(--navy);
  -webkit-line-clamp: 1;
}

body.studio-history-page .studio-card-address .studio-address-link {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

body.studio-history-page .studio-card-address .studio-address-link:hover,
body.studio-history-page .studio-card-address .studio-address-link:focus-visible {
  color: var(--gold);
}

body.studio-history-page .honoree-card.has-bio .honoree-copy {
  padding-bottom: 26px;
}

body.studio-history-page .gallery-bio-link {
  left: 12px;
  bottom: 8px;
  color: var(--navy);
  font-size: 10px;
  letter-spacing: 0.1em;
}

body.studio-history-page .map-panel {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px;
  display: grid;
  gap: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background:
    radial-gradient(circle at 12% 12%, rgba(179, 139, 63, 0.11), transparent 24%),
    radial-gradient(circle at 88% 18%, rgba(125, 179, 40, 0.08), transparent 26%),
    radial-gradient(circle at 56% 100%, rgba(184, 89, 77, 0.06), transparent 34%),
    linear-gradient(180deg, rgba(251, 248, 241, 0.98), rgba(240, 234, 223, 0.96));
}

body.studio-history-page .map-copy {
  display: grid;
  gap: 8px;
}

body.studio-history-page .map-copy h2 {
  margin: 0;
}

body.studio-history-page .map-copy p {
  margin: 0;
  color: var(--text-soft);
}

body.studio-history-page .map-shell {
  display: grid;
  gap: 10px;
}

body.studio-history-page .studio-map {
  min-height: 360px;
  height: min(56vw, 540px);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(23, 61, 90, 0.18);
  background: rgba(245, 241, 233, 0.72);
}

html[data-theme="dark"] body.studio-history-page .memorial-hero,
html[data-theme="dark"] body.studio-history-page .search-panel,
html[data-theme="dark"] body.studio-history-page .honorees-section,
html[data-theme="dark"] body.studio-history-page .support-panel,
html[data-theme="dark"] body.studio-history-page .memorial-footer,
html[data-theme="dark"] body.studio-history-page .dialog-card,
html[data-theme="dark"] body.studio-history-page .map-panel {
  background:
    radial-gradient(circle at 12% 12%, rgba(197, 155, 76, 0.12), transparent 24%),
    radial-gradient(circle at 88% 18%, rgba(125, 179, 40, 0.08), transparent 26%),
    radial-gradient(circle at 56% 100%, rgba(184, 98, 87, 0.05), transparent 34%),
    linear-gradient(180deg, rgba(15, 21, 31, 0.98), rgba(10, 15, 22, 0.96));
  border-color: rgba(210, 219, 232, 0.14);
}

html[data-theme="dark"] body.studio-history-page .hero-brand-box,
html[data-theme="dark"] body.studio-history-page .honoree-card,
html[data-theme="dark"] body.studio-history-page .studio-map-fallback {
  background:
    radial-gradient(circle at 14% 10%, rgba(197, 155, 76, 0.1), transparent 28%),
    radial-gradient(circle at 88% 82%, rgba(125, 179, 40, 0.07), transparent 32%),
    linear-gradient(180deg, rgba(22, 30, 41, 0.96), rgba(15, 21, 31, 0.96));
}

html[data-theme="dark"] body.studio-history-page .studio-map {
  border-color: rgba(210, 219, 232, 0.18);
  background: rgba(12, 16, 23, 0.86);
}

html[data-theme="dark"] body.studio-history-page .map-copy p,
html[data-theme="dark"] body.studio-history-page .map-status,
html[data-theme="dark"] body.studio-history-page .studio-map-fallback p,
html[data-theme="dark"] body.studio-history-page .support-panel p,
html[data-theme="dark"] body.studio-history-page .search-panel p,
html[data-theme="dark"] body.studio-history-page .memorial-footer small {
  color: var(--text-soft);
}

html[data-theme="dark"] body.studio-history-page .hero-logo-chip {
  background: rgba(18, 24, 35, 0.82);
  border-color: rgba(210, 219, 232, 0.18);
}

html[data-theme="dark"] body.studio-history-page .hero-banner-image {
  background: rgba(14, 20, 30, 0.58);
  border-color: rgba(210, 219, 232, 0.18);
}

html[data-theme="dark"] body.studio-history-page .studio-card-description,
html[data-theme="dark"] body.studio-history-page .studio-card-address {
  color: var(--text-soft);
}

html[data-theme="dark"] body.studio-history-page .studio-card-address .studio-address-link,
html[data-theme="dark"] body.studio-history-page .gallery-bio-link {
  color: var(--gold);
}

html[data-theme="dark"] body.studio-history-page .dialog-copy .section-kicker {
  color: rgba(243, 229, 182, 0.92);
}

html[data-theme="dark"] body.studio-history-page .dialog-meta .studio-meta-description,
html[data-theme="dark"] body.studio-history-page .dialog-meta .studio-meta-address,
html[data-theme="dark"] body.studio-history-page .dialog-bio {
  color: #ffffff;
}

body.studio-history-page .studio-map--fallback {
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.45), transparent 34%),
    linear-gradient(180deg, rgba(238, 233, 223, 0.9), rgba(211, 202, 190, 0.92));
}

body.studio-history-page .studio-map-fallback {
  width: min(440px, 100%);
  display: grid;
  gap: 8px;
  padding: 20px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 12% 12%, rgba(179, 139, 63, 0.11), transparent 24%),
    radial-gradient(circle at 88% 18%, rgba(125, 179, 40, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(251, 248, 241, 0.98), rgba(240, 234, 223, 0.96));
  text-align: center;
  box-shadow: 0 16px 32px rgba(18, 41, 62, 0.08);
}

body.studio-history-page .studio-map-fallback strong {
  color: var(--text);
  font-size: 17px;
}

body.studio-history-page .studio-map-fallback p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.45;
}

body.studio-history-page .map-status {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.45;
}

body.studio-history-page .map-status[data-tone="error"] {
  color: var(--red);
}

body.studio-history-page .dialog-copy .section-kicker {
  color: rgba(243, 229, 182, 0.92);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.26em;
}

body.studio-history-page .dialog-meta .studio-meta-description,
body.studio-history-page .dialog-meta .studio-meta-address {
  font-size: 17px;
  line-height: 1.55;
}

body.studio-history-page .dialog-meta .studio-meta-address {
  color: rgba(255, 255, 255, 0.92);
}

body.studio-history-page .dialog-meta .studio-address-link {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

body.studio-history-page .dialog-meta .studio-address-link:hover,
body.studio-history-page .dialog-meta .studio-address-link:focus-visible {
  color: #f3e5b6;
}

body.studio-history-page .map-popup {
  display: grid;
  gap: 4px;
  min-width: 160px;
}

body.studio-history-page .map-popup strong {
  color: var(--text);
}

body.studio-history-page .map-popup span {
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.35;
}

body.studio-history-page .studio-marker-active {
  filter: drop-shadow(0 0 10px rgba(217, 187, 108, 0.95)) drop-shadow(0 0 18px rgba(31, 79, 108, 0.42));
  animation: studio-marker-pulse 0.9s ease-in-out 3;
  z-index: 1000 !important;
}

@keyframes studio-marker-pulse {
  0%,
  100% {
    filter: drop-shadow(0 0 8px rgba(217, 187, 108, 0.72)) drop-shadow(0 0 14px rgba(31, 79, 108, 0.32));
  }
  50% {
    filter: drop-shadow(0 0 16px rgba(217, 187, 108, 1)) drop-shadow(0 0 26px rgba(31, 79, 108, 0.5));
  }
}

body.studio-history-page.landing-page .memorial-hero {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

body.studio-history-page.landing-page .hero-brand-box {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.studio-history-page.landing-page .hero-logo-chip {
  min-height: 88px;
  max-height: 88px;
  padding: 18px 24px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.92), rgba(245, 238, 224, 0.86));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.52),
    0 8px 18px rgba(42, 32, 20, 0.08);
}

body.studio-history-page.landing-page .hero-logo-chip img {
  max-height: 86px;
}

html[data-theme="dark"] body.studio-history-page.landing-page .hero-logo-chip {
  background:
    linear-gradient(180deg, rgba(27, 33, 39, 0.9), rgba(13, 18, 25, 0.82));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 10px 22px rgba(0, 0, 0, 0.28);
}

@media (max-width: 640px) {
  body.studio-history-page .hero-logo-row {
    grid-template-columns: 1fr;
  }

  body.studio-history-page .map-panel {
    width: min(1280px, calc(100% - 24px));
    padding: 18px;
  }
}
