/* reference-skin.css — reference pages (glossary/guides/characters/order/eras)
   in the new design. Preserves all seo-* content; only reskins to match. */
:root{
  --paper: rgba(12,17,20,0.72);
  --paper-strong: rgba(14,20,24,0.92);
  --ink: #f3e7c8;
  --ink-strong: #fff3cc;
  --muted: #c4b078;
  --line: rgba(240,199,115,0.16);
  --gold: #f0c773;
  --gold-2: #c88c30;
  --green:#76d39a; --amber:#f0bb45; --red:#e66d3f; --blue:#6ebfe4; --lime:#a3c957; --violet:#c692df;
  --shadow: 0 22px 70px rgba(0,0,0,0.34);
  --radius: 14px;
}

.hero-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.quick-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.quick-nav a {
  border: 1px solid rgba(240, 199, 115, 0.24);
  border-radius: 999px;
  background: rgba(5, 8, 10, 0.42);
  color: #f6d99a;
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.quick-nav a:hover,
.quick-nav a:focus-visible {
  border-color: rgba(240, 199, 115, 0.72);
  outline: none;
}
.reference-page {
  min-height: 100vh;
}
.reference-hero {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 42px;
}
.reference-hero-copy {
  max-width: 820px;
  padding-top: 76px;
}
.reference-hero h1 {
  font-size: clamp(42px, 7vw, 78px);
}
.reference-main {
  display: grid;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 80px;
}
.reference-tools,
.faq-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.reference-tools {
  display: grid;
  grid-template-columns: minmax(240px, 0.55fr) 1fr;
  gap: 14px;
  align-items: end;
  padding: 14px;
}
.seo-hub-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
  width: 100%;
  margin: 18px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(110, 191, 228, 0.1), transparent 48%),
    var(--paper);
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.seo-hub-panel.is-compact-guide {
  grid-template-columns: minmax(230px, 0.34fr) 1fr;
  gap: 18px;
}
.seo-hub-panel.is-compact-guide > div:first-child {
  grid-template-columns: 1fr;
  align-content: start;
}
.seo-hub-panel > div:first-child {
  display: grid;
  grid-template-columns: minmax(220px, 0.38fr) 1fr;
  gap: 6px 20px;
  align-items: end;
}
.seo-hub-panel .panel-kicker {
  grid-column: 1 / -1;
}
.seo-hub-panel h2 {
  margin: 0;
  color: var(--ink-strong);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.22;
}
.seo-hub-panel p:not(.panel-kicker) {
  margin: 0;
  color: #dfca93;
  font-size: 14px;
  line-height: 1.7;
}
.seo-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(174px, 1fr));
  grid-auto-rows: 118px;
  gap: 10px;
}
.seo-hub-grid a {
  display: grid;
  align-content: start;
  gap: 8px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(240, 199, 115, 0.24);
  border-radius: var(--radius);
  background: rgba(5, 8, 10, 0.54);
  padding: 12px;
  text-decoration: none;
}
.seo-hub-grid a:hover,
.seo-hub-grid a:focus-visible {
  border-color: rgba(240, 199, 115, 0.78);
  outline: none;
  transform: translateY(-2px);
}
.seo-hub-grid span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}
.seo-hub-grid strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--ink-strong);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 18px;
  line-height: 1.28;
}
.seo-hub-grid small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #d8c48c;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
}
.seo-hub-more {
  grid-column: 2;
  border-top: 1px solid rgba(240, 199, 115, 0.16);
  padding-top: 10px;
}
.seo-hub-more summary {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid rgba(240, 199, 115, 0.26);
  border-radius: 999px;
  background: rgba(5, 8, 10, 0.5);
  color: #f2d795;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 900;
  list-style: none;
  cursor: pointer;
}
.seo-hub-more summary::-webkit-details-marker {
  display: none;
}
.seo-hub-more summary::after {
  margin-left: 8px;
  color: var(--gold);
  content: "+";
}
.seo-hub-more[open] summary::after {
  content: "−";
}
.seo-hub-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
}
.seo-hub-compact a {
  border: 1px solid rgba(240, 199, 115, 0.22);
  border-radius: 999px;
  background: rgba(5, 8, 10, 0.38);
  color: #f2d795;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}
.seo-hub-compact a:hover,
.seo-hub-compact a:focus-visible {
  border-color: rgba(240, 199, 115, 0.78);
  color: var(--ink-strong);
  outline: none;
}
.seo-page {
  min-height: 100vh;
}
.seo-hero {
  padding-bottom: 24px;
}
.seo-hero-grid {
  display: grid;
  grid-template-columns: minmax(220px, 330px) 1fr;
  gap: clamp(18px, 4vw, 46px);
  align-items: end;
  padding-top: 54px;
}
.seo-poster {
  width: 100%;
  max-height: 520px;
  border: 1px solid rgba(240, 199, 115, 0.48);
  border-radius: var(--radius);
  object-fit: contain;
  background: rgba(5, 8, 10, 0.78);
  box-shadow: var(--shadow);
}
.seo-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.seo-meta-row span {
  border: 1px solid rgba(240, 199, 115, 0.28);
  border-radius: 999px;
  background: rgba(5, 8, 10, 0.54);
  color: #f6d996;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 900;
}
.seo-main {
  gap: 16px;
}
.seo-panel,
.seo-mini-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.seo-panel {
  padding: clamp(18px, 3vw, 28px);
}
.seo-panel h2,
.seo-panel h3 {
  margin: 0;
  color: var(--ink-strong);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  line-height: 1.3;
}
.seo-panel h2 {
  font-size: clamp(26px, 3vw, 38px);
}
.seo-panel p,
.seo-list,
.seo-facts {
  color: #dfca93;
  line-height: 1.9;
}
.seo-panel p {
  margin: 14px 0 0;
}
.seo-grid,
.seo-grid-two {
  display: grid;
  gap: 14px;
}
.seo-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.seo-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.seo-mini-card {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
  min-height: 150px;
  padding: 12px;
}
.seo-mini-card img {
  width: 90px;
  height: 126px;
  border: 1px solid rgba(240, 199, 115, 0.22);
  border-radius: 6px;
  object-fit: cover;
  background: rgba(5, 8, 10, 0.6);
}
.seo-mini-card p {
  margin: 0;
  color: #cdbb85;
  font-size: 12px;
  line-height: 1.6;
}
.seo-mini-card h3 {
  margin: 8px 0;
  color: var(--ink-strong);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 20px;
  line-height: 1.35;
}
.seo-mini-card a,
.seo-related-list a,
.order-row {
  color: var(--ink-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.seo-next-prev,
.seo-related-list,
.order-list,
.seo-guide-index {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.seo-related-list,
.order-list {
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}
.seo-guide-index {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.seo-next-prev {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.seo-next-prev a,
.order-row,
.seo-related-list a,
.seo-guide-card {
  border: 1px solid rgba(240, 199, 115, 0.22);
  border-radius: var(--radius);
  background: rgba(5, 8, 10, 0.42);
  padding: 12px;
  text-decoration: none;
}
.seo-guide-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 164px;
}
.seo-next-prev a:hover,
.seo-next-prev a:focus-visible,
.order-row:hover,
.order-row:focus-visible,
.seo-related-list a:hover,
.seo-related-list a:focus-visible,
.seo-guide-card:hover,
.seo-guide-card:focus-visible {
  border-color: rgba(240, 199, 115, 0.72);
  outline: none;
}
.seo-next-prev span,
.order-row span,
.seo-guide-card span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}
.seo-next-prev strong,
.order-row strong,
.seo-guide-card strong {
  display: block;
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.45;
}
.seo-guide-card strong {
  color: var(--ink-strong);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 22px;
  margin-top: 0;
}
.seo-guide-card small {
  color: #d8c48c;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.65;
}
.seo-related-list a small {
  display: block;
  margin-top: 4px;
  color: #cdbb85;
  font-size: 12px;
  font-weight: 800;
}
.seo-character-tags {
  margin-top: 16px;
}
.seo-list {
  margin: 18px 0 0;
  padding-left: 1.2em;
}
.seo-facts {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
}
.seo-facts div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  border-bottom: 1px solid rgba(240, 199, 115, 0.16);
  padding-bottom: 8px;
}
.seo-facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.seo-facts dd {
  margin: 0;
  color: var(--ink-strong);
  font-weight: 900;
}
.seo-muted {
  color: var(--muted);
  font-weight: 900;
}
.seo-faq {
  box-shadow: var(--shadow);
}
@media (max-width: 1080px) {
  .starter-panel,
  .guide-tools,
  .map-panel,
  .seo-hub-panel.is-compact-guide,
  .seo-hub-panel,
  .seo-hero-grid {
    grid-template-columns: 1fr;
  }
  .seo-grid,
  .seo-guide-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .seo-hub-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
  .seo-hub-more {
    grid-column: auto;
  }
}}
@media (max-width: 740px) {
  .hero-top {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .quick-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
    max-width: none;
    margin-inline: 0;
    overflow-x: visible;
    padding: 0 0 7px;
    scrollbar-width: none;
  }
  .quick-nav::-webkit-scrollbar {
    display: none;
  }
  .quick-nav a {
    flex: 0 1 auto;
    padding: 8px 10px;
    font-size: 12px;
  }
  .map-panel,
  .starter-panel,
  .guide-tools,
  .seo-hub-panel,
  .static-timeline-panel,
  .audit-panel,
  .notes-section,
  .beyond-section {
    padding: 16px;
  }
  .work-grid,
  .beyond-section,
  .seo-hub-grid,
  .primary-guide-grid,
  .seo-guide-index,
  .seo-grid,
  .seo-grid-two,
  .seo-related-list,
  .order-list,
  .seo-next-prev,
  .editorial-quick-grid,
  .longform-grid,
  .longform-summary,
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .seo-hub-panel {
    width: 100%;
  }
  .seo-hub-panel > div:first-child,
  .static-timeline-heading,
  .static-era-list article {
    grid-template-columns: 1fr;
  }
  .seo-hub-panel p:not(.panel-kicker),
  .static-timeline-heading p:not(.panel-kicker) {
    margin-top: 10px;
  }
  .seo-hub-grid a,
  .static-work-links a {
    min-height: 0;
  }
  .seo-hero-grid {
    gap: 18px;
    padding-top: 34px;
  }
  .seo-poster {
    width: min(250px, 74vw);
    margin: 0 auto;
  }
  .character-hero,
  .character-main,
  .reference-hero,
  .reference-main {
    width: min(100% - 20px, 1180px);
  }
  .character-hero,
  .reference-hero {
    padding-top: 18px;
  }
  .character-hero-copy,
  .reference-hero-copy {
    padding-top: 56px;
  }
  .character-main,
  .character-profile-head,
  .character-facts,
  .character-directory-grid,
  .reference-tools,
  .glossary-grid,
  .seo-grid,
  .seo-grid-two {
    grid-template-columns: 1fr;
  }
  .seo-mini-card {
    grid-template-columns: 76px 1fr;
    min-height: 126px;
  }
  .seo-mini-card img {
    width: 76px;
    height: 106px;
  }
  .character-profile,
  .character-directory,
  .reference-tools,
  .faq-panel {
    padding: 16px;
  }
}}

/* ---- new-design overrides: breathing room + mincho headings ---- */
.seo-main{ max-width: 960px; margin: 0 auto; padding: 8px 20px 80px; }
.seo-panel{ padding: clamp(22px,3.5vw,38px) !important; margin-bottom: 22px;
  background: var(--paper); border:1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.seo-panel > h2, .seo-panel > h3{
  font-family:"Noto Serif JP","Hiragino Mincho ProN","Yu Mincho",serif !important;
  letter-spacing:.02em; color: var(--ink-strong); }
.seo-panel > h2{ font-size: clamp(1.4rem,2.6vw,1.9rem); margin:0 0 14px; }
.seo-panel p, .seo-panel li{ line-height: 2.0; font-size: 1.02rem; color: var(--ink); }
.seo-panel p{ margin: 0 0 14px; }
.seo-mini-card{ padding: 18px 20px !important; }
.seo-mini-card h3, .seo-mini-card strong{
  font-family:"Noto Serif JP","Hiragino Mincho ProN",serif; }
.seo-grid{ gap: 18px !important; }
.seo-grid-two{ gap: 22px !important; }
.seo-facts{ line-height: 2.0 !important; }
.seo-list{ line-height: 2.0; }
.seo-list li{ margin: 6px 0; }
.reference-hero, .seo-hero{ display:none; }  /* replaced by the new-design hero */
/* content links -> gold (was default blue) */
.seo-main a{ color: var(--gold); text-decoration: none;
  border-bottom: 1px solid rgba(240,199,115,.22); transition: border-color .15s; }
.seo-main a:hover{ border-bottom-color: var(--gold); }
.seo-main a.order-row, .seo-main a.seo-mini-card{ border-bottom: none; }
