@charset "UTF-8";

/* Compact dashboard banners, signposts, and category shelves across Civilization VI. */
:root {
  --banner: #132d25;
  --banner-text: #f4f1e4;
  --banner-muted: #c2d0bc;
  --banner-line: #ffffff26;
  --banner-gold: #e6c886;
  --card-radius: 10px;
  --accent: #3c7a5e;
}
[data-district="eras"] { --accent: #4a6f9c; }
[data-district="people"] { --accent: #a4823e; }
[data-district="cities"] { --accent: #3c7a5e; }
[data-district="progress"] { --accent: #9a4b37; }
[data-district="world"] { --accent: #2f7590; }
[data-district="religion"] { --accent: #7458a0; }
[data-district="rules"] { --accent: #6b773f; }

/* Breadcrumb trail */
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; margin: 0; padding: 0; list-style: none; }
.crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.crumbs li a, .crumbs li > span[aria-current] { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 4px; border-radius: 4px; }
.crumbs li a { color: var(--teal); }
.crumbs li a:hover { background: #e9f0df; text-decoration: none; }
.crumbs li > span[aria-current] { color: var(--ink); font-weight: 650; }
.crumb-gap { padding: 0 4px; color: #8a9989; }

/* Shared compact dashboard banner */
.plaza-hero, .shelf-banner, .zone-head, .record-header { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--card-radius); background: var(--banner); color: var(--banner-text); }
.plaza-hero-art, .banner-art, .zone-art { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.plaza-hero::after, .shelf-banner::after, .zone-head::after, .record-header::after { position: absolute; z-index: -1; inset: 0; content: ""; }
.plaza-hero h1, .shelf-banner h1, .zone-head h2, .record-header h1 { color: #fffdf3; }
.plaza-hero .heading-label, .shelf-banner .heading-label, .zone-english { color: var(--banner-gold); }

/* Home: compact search-first hero */
.plaza-hero { display: flex; align-items: center; min-height: 0; margin: 0 0 12px; }
.plaza-hero::after { background: linear-gradient(90deg, #0b1f17f2 0%, #0e261cd9 50%, #0e261c66 100%); }
.plaza-hero-inner { width: min(100%, 760px); padding: 22px 26px; }
.plaza-hero h1 { margin: 0; font-size: clamp(24px, 2.8vw, 34px); letter-spacing: -0.9px; }
.plaza-hero-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 14px; }
.plaza-hero-meta span { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 9px; border: 1px solid var(--banner-line); border-radius: 999px; background: #ffffff14; color: var(--banner-text); font-size: 12px; backdrop-filter: blur(4px); }
.plaza-search .search-form { min-height: 46px; border-color: #ffffff66; border-radius: 9px; box-shadow: 0 6px 20px #0004; }

/* Signpost: compact quick-launch district dock */
.plaza-signpost { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 24px; }
.signpost-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr; align-items: center; gap: 6px 10px; min-height: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--card-radius); background: var(--surface); color: var(--ink); transition: border-color 120ms ease, box-shadow 120ms ease; }
.signpost-card:hover { border-color: #89a17b; box-shadow: 0 4px 12px #173d3412; }
.signpost-art { display: flex; }
.signpost-art .entity-picture { width: 30px; height: 30px; margin-left: -6px; border: 2px solid var(--surface); border-radius: 50%; }
.signpost-art :where(.entity-picture) { padding: 3px; background: #eef1e7; }
.signpost-art .entity-picture:first-child { margin-left: 0; }
.signpost-art .entity-picture img { border-radius: 50%; }
.signpost-text { grid-column: 1 / -1; align-self: start; min-width: 0; }
.signpost-text strong { display: block; font-size: 14.5px; line-height: 1.35; }
.signpost-text small { display: block; margin-top: 2px; color: var(--muted); font-size: 11.5px; line-height: 1.4; word-break: keep-all; }
.signpost-count { grid-column: 2; grid-row: 1; color: #5f735d; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Zones: low-profile section header + crisp white shelves */
.plaza-zone { margin: 0 0 28px; scroll-margin-top: 76px; }
.zone-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-height: 0; padding: 14px 20px; }
.zone-head::after { background: linear-gradient(90deg, #0b1f17f5 0%, #0e261ce0 55%, #0e261c80 100%); }
.zone-head .zone-art { left: 35%; width: 65%; }
.zone-english { display: block; margin-bottom: 2px; font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.zone-head h2 { display: flex; align-items: baseline; gap: 10px; margin: 0; font-size: clamp(18px, 2vw, 22px); letter-spacing: -.5px; }
.zone-count { color: var(--banner-muted); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.zone-text p { margin: 2px 0 0; color: var(--banner-muted); font-size: 13px; line-height: 1.5; }
.zone-shelves, .banner-shelves { display: flex; flex-wrap: wrap; gap: 6px; }
.zone-shelves a, .banner-shelves a { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 3px 10px; border: 1px solid var(--banner-line); border-radius: 999px; background: #ffffff12; color: var(--banner-text); font-size: 12px; font-weight: 600; line-height: 1.35; backdrop-filter: blur(4px); }
.zone-shelves a span, .banner-shelves a span { color: var(--banner-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.zone-shelves a:hover, .banner-shelves a:hover { border-color: #ffffff80; background: #ffffff26; }
.banner-shelves a svg { width: 14px; height: 14px; }
.banner-shelves a[aria-current="page"] { border-color: var(--banner-gold); background: #e6c88629; color: #fff6dc; font-weight: 700; }
.zone-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 10px; }
.plaza-shelf { min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--card-radius); background: var(--surface); }
.shelf-head { display: flex; align-items: center; justify-content: space-between; gap: 8px 14px; margin: 0 0 10px; }
.shelf-head h3 { display: flex; align-items: baseline; gap: 2px; margin: 0; font-size: 16.5px; }
.shelf-head h3 a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.shelf-head h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.shelf-head h3 svg { width: 18px; height: 18px; color: var(--accent); }
.shelf-more { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 5px; min-height: 28px; color: var(--teal); font-size: 12.5px; font-weight: 650; }
.shelf-more svg { width: 15px; height: 15px; }
.shelf-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.shelf-note { margin: -4px 0 10px; color: var(--muted); font-size: 12.5px; }
.home-progression { margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-top: 3px solid #4a6f9c; border-radius: var(--card-radius); background: var(--surface); }
.home-progression .era-navigation { margin-bottom: 10px; }
.home-progression .development-tracks { margin: 0; }

/* Tiles inside shelves */
.plaza-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.plaza-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 3px 10px 3px 4px; border: 1px solid var(--line-soft); border-radius: 7px; background: #f7f8f1; color: var(--ink); font-size: 13px; line-height: 1.35; word-break: keep-all; }
.plaza-chip:hover { border-color: #9cb08f; background: #ecf2e4; }
.plaza-chip .entity-picture { width: 26px; height: 26px; }
.plaza-chip .entity-picture[data-category='units'], .plaza-chip .entity-picture[data-category='civilizations'], .plaza-chip .entity-picture[data-category='great-people'], .plaza-chip .entity-picture[data-category='city-states'], .plaza-chip .entity-picture[data-monochrome='true'] { padding: 3px; }
.plaza-row { display: grid; grid-template-columns: 140px minmax(0, 1fr); align-items: start; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line-soft); }
.plaza-row:first-of-type { border-top: 0; padding-top: 2px; }
.plaza-row-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 2px; padding-top: 6px; color: var(--ink); font-size: 13.5px; font-weight: 700; line-height: 1.4; }
.plaza-row-label a { color: var(--teal); }
.plaza-row-label a:hover { text-decoration: underline; text-underline-offset: 3px; }
.plaza-row-label small { flex-basis: 100%; color: var(--muted); font-size: 11.5px; font-weight: 400; }
.plaza-faces { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 6px; }
.plaza-face { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 52px; padding: 5px 8px 5px 5px; border: 1px solid var(--line-soft); border-radius: 7px; background: #f7f8f1; color: var(--ink); }
.plaza-face:hover { border-color: #9cb08f; background: #ecf2e4; }
.plaza-face .entity-picture { width: 40px; height: 40px; }
.plaza-face > span { min-width: 0; }
.plaza-face strong { display: block; font-size: 13.5px; line-height: 1.35; word-break: keep-all; overflow-wrap: anywhere; }
.plaza-face small { display: flex; align-items: center; gap: 4px; margin-top: 2px; color: var(--muted); font-size: 11.5px; line-height: 1.35; }
.plaza-face small img { width: 15px; height: 15px; padding: 2px; border-radius: 50%; background: #355747; object-fit: contain; }
.plaza-tally { display: grid; grid-template-columns: repeat(auto-fill, minmax(164px, 1fr)); gap: 6px; }
.plaza-tally > a, .plaza-tally > span { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 5px 10px 5px 5px; border: 1px solid var(--line-soft); border-radius: 7px; background: #f7f8f1; color: var(--ink); font-size: 13.5px; line-height: 1.35; }
.plaza-tally.plain > span { padding-left: 11px; }
.plaza-tally > a:hover { border-color: #9cb08f; background: #ecf2e4; }
.plaza-tally .entity-picture { width: 32px; height: 32px; }
.plaza-tally > * > span:not(.entity-picture):not(.group-count) { flex: 1; min-width: 0; word-break: keep-all; }
.plaza-tally small { display: block; color: var(--muted); font-size: 11.5px; }
.plaza-tally .group-count { margin-left: auto; }
.district-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.district-card { min-width: 0; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 8px; background: #f9faf4; }
.district-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--ink); }
.district-card-head .entity-picture { width: 36px; height: 36px; }
.district-card-head strong { font-size: 14.5px; }
.district-card-head .group-count { margin-left: auto; }
.district-card-head:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.district-card .plaza-chip { background: var(--surface); }
.district-card-empty { margin: 0; color: var(--muted); font-size: 12.5px; }
.slot-table { display: grid; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.slot-row { display: grid; grid-template-columns: minmax(120px, 1.6fr) repeat(4, minmax(60px, 1fr)); align-items: center; min-height: 36px; border-top: 1px solid var(--line-soft); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.slot-row > * { padding: 5px 10px; }
.slot-row > span { text-align: center; }
.slot-row a { color: var(--teal); font-weight: 650; }
.slot-row a:hover { text-decoration: underline; text-underline-offset: 3px; }
.slot-caption { min-height: 32px; border-top: 0; background: #eef1e7; color: #496343; font-size: 12px; font-weight: 650; }
.slot-caption > span:first-child { text-align: left; }
.plaza-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.plaza-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; gap: 8px 10px; min-height: 96px; padding: 12px 14px; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--card-radius); background: var(--surface); color: var(--ink); }
.plaza-card:hover { border-color: #9cb08f; box-shadow: 0 4px 12px #173d3412; }
.plaza-card-art { display: flex; grid-column: 1 / -1; gap: 5px; }
.plaza-card-art .entity-picture { width: 32px; height: 32px; }
.plaza-card-text strong { display: flex; align-items: baseline; font-size: 15px; }
.plaza-card-text small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.plaza-card > svg { width: 16px; height: 16px; color: var(--teal); }
.topic-index { display: grid; gap: 0; }
.topic-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-top: 1px solid var(--line-soft); font-size: 13.5px; line-height: 1.6; }
.topic-row:first-child { border-top: 0; padding-top: 0; }
.topic-label { color: var(--ink); font-weight: 700; }
.topic-links { display: flex; flex-wrap: wrap; gap: 2px 0; }
.topic-links a { color: var(--teal); }
.topic-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.topic-links a + a::before { padding: 0 6px; color: #a5b29e; content: "·"; }

/* List pages: compact dashboard header without decorative tile clutter */
.shelf-banner { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 12px; min-height: 0; margin: 0 0 12px; padding: 16px 22px; }
.shelf-banner::after { background: linear-gradient(90deg, #0b1f17f5 0%, #0e261ce0 60%, #0e261c99 100%); }
.banner-main { min-width: 0; }
.shelf-banner h1 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0; font-size: clamp(20px, 2.4vw, 28px); letter-spacing: -0.7px; }
.shelf-banner .heading-count { margin: 0; color: var(--banner-muted); font-size: 14.5px; }
.banner-summary { margin: 4px 0 0; color: var(--banner-muted); font-size: 13.5px; line-height: 1.5; }
.banner-shelves { margin-top: 10px; }
.banner-tiles, .banner-icon { display: none !important; }
.page-kind-listing .browse-layout, .page-kind-eras .era-navigation { margin-top: 0; }

/* Articles: compact record header */
.record-header { display: flex; align-items: center; gap: 16px; min-height: 0; padding: 16px 22px; border-bottom: 0; }
.record-header::after { background: linear-gradient(90deg, #0b1f17f5 0%, #0e261ce6 60%, #0e261ca6 100%); }
.record-header .record-art { flex: 0 0 76px; width: 76px; height: 76px; padding: 8px; border: 1px solid var(--banner-line); border-radius: 12px; background: #ffffff12; backdrop-filter: blur(4px); }
.record-header .record-art[data-category='units'], .record-header .record-art[data-category='civilizations'], .record-header .record-art[data-category='great-people'], .record-header .record-art[data-category='city-states'], .record-header .record-art[data-monochrome='true'] { padding: 14px; border-radius: 50%; background: #355747; }
.record-header .record-art[data-category='leaders'] { padding: 3px; }
.record-header h1 { font-size: clamp(22px, 2.5vw, 30px); text-shadow: 0 1px 8px #0006; }
.record-header .detail-kicker { color: var(--banner-gold); font-weight: 650; }
.record-header .detail-kicker a:hover { color: #fff3cf; }
.record-header .english-name { color: var(--banner-muted); }
.record-header .ruleset { border-color: #e6c88666; background: #e6c8861f; color: var(--banner-gold); }
.record-header .classification-link, .record-header .civ-badge { border-color: var(--banner-line); background: #ffffff14; color: var(--banner-text); }
.record-header .classification-link:hover, .record-header .civ-badge:hover { border-color: #ffffff80; background: #ffffff26; color: #fff; }
.record-header .replacement-link { color: var(--banner-muted); }
.record-header .replacement-link .term-link { color: #fff3cf; text-decoration-color: #e6c88699; }
.record-header .term-link:hover { background: transparent; color: #fff; }
.record-era-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.record-era-links a { display: inline-flex; align-items: center; min-height: 30px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--teal); font-size: 12.5px; }
.record-era-links a:hover { border-color: #9cb08f; background: #ecf2e4; }
.highlight { border-radius: var(--card-radius); background: var(--surface); border-color: var(--line); border-top: 3px solid var(--accent); }
.page-kind-article .highlight { --accent: #6f8866; }
.data-rows, .entry-list, .data-list, .filter-panel, .mobile-toc, .index-tiles, .related-index, .empty-state { border-radius: var(--card-radius); }
.listing-caption { border-radius: var(--card-radius) var(--card-radius) 0 0; }
.listing-caption + .entry-list { border-radius: 0 0 var(--card-radius) var(--card-radius); }
.search-form { border-radius: 8px; }
.index-tiles, .related-index { overflow: hidden; }

/* Shelf footer navigation */
.shelf-nav { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; margin: 28px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.shelf-step, .shelf-home { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 60px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--card-radius); background: var(--surface); color: var(--ink); }
.shelf-step:hover, .shelf-home:hover { border-color: #9cb08f; box-shadow: 0 4px 12px #173d3412; }
.shelf-step.next { flex-direction: row-reverse; text-align: right; }
.shelf-step.is-empty { visibility: hidden; }
.shelf-step .entity-picture { width: 40px; height: 40px; }
.shelf-step > span:last-child { min-width: 0; }
.shelf-step small, .shelf-home small { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.4; }
.shelf-step strong { display: block; font-size: 14px; line-height: 1.4; word-break: keep-all; overflow-wrap: anywhere; }
.shelf-home { justify-content: center; padding-inline: 18px; background: #eef2e6; }
.shelf-home svg { width: 18px; height: 18px; color: var(--teal); }
.shelf-home strong { display: block; font-size: 13.5px; white-space: nowrap; }
.shelf-home small { font-variant-numeric: tabular-nums; }

/* Religion, pantheon, belief, road and city-state icons */
:is(.entity-picture, .record-art)[data-category='religions'], :is(.entity-picture, .record-art)[data-category='pantheons'], :is(.entity-picture, .record-art)[data-category='beliefs'], :is(.entity-picture, .record-art)[data-category='routes'] { padding: 5px; border-radius: 50%; background: #355747; }
:is(.entity-picture, .record-art)[data-category='religions'] img, :is(.entity-picture, .record-art)[data-category='pantheons'] img, :is(.entity-picture, .record-art)[data-category='beliefs'] img, .term-icon[data-category='religions'], .term-icon[data-category='pantheons'], .term-icon[data-category='beliefs'] { filter: brightness(0) invert(1) drop-shadow(0 0 .6px #fff); }
.term-icon[data-category='religions'], .term-icon[data-category='pantheons'], .term-icon[data-category='beliefs'], .term-icon[data-category='routes'], .term-icon[data-category='city-states'] { padding: 2px; border-radius: 50%; background: #355747; }
.plaza-chip .entity-picture[data-category='religions'], .plaza-chip .entity-picture[data-category='pantheons'], .plaza-chip .entity-picture[data-category='beliefs'], .plaza-chip .entity-picture[data-category='routes'] { padding: 3px; }
.record-header .record-art[data-category='religions'], .record-header .record-art[data-category='pantheons'], .record-header .record-art[data-category='beliefs'], .record-header .record-art[data-category='routes'] { padding: 14px; border-radius: 50%; background: #355747; }

.entity-picture[data-category='city-states'], .record-art[data-category='city-states'] { padding: 6px; border-radius: 50%; background: #4d5a63; }
[data-city-state='과학'] { background: #2f6aa3 !important; }
[data-city-state='문화'] { background: #73449a !important; }
[data-city-state='상업'] { background: #a88320 !important; }
[data-city-state='종교'] { background: #5e6c78 !important; }
[data-city-state='산업'] { background: #b8682a !important; }
[data-city-state='군사'] { background: #9c3333 !important; }

@media (max-width: 1279px) {
  .plaza-signpost { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .plaza-signpost { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .zone-head .zone-art { left: 0; width: 100%; }
}
@media (max-width: 600px) {
  .crumbs, .crumbs ol { flex-wrap: nowrap; overflow: hidden; }
  .crumbs ol { min-width: 0; width: 100%; }
  .crumbs li { flex: 0 0 auto; }
  .crumbs li:last-child { flex: 1; min-width: 0; }
  .crumbs li > span[aria-current] { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .plaza-hero-inner { padding: 16px; }
  .plaza-hero h1 { font-size: 22px; }
  .plaza-hero-meta { margin: 6px 0 12px; }
  .plaza-signpost { gap: 8px; margin-bottom: 20px; }
  .signpost-card { gap: 6px; padding: 10px 12px; }
  .zone-head { padding: 12px 14px; }
  .plaza-shelf { padding: 12px; }
  .plaza-row, .topic-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .plaza-row-label { padding-top: 0; }
  .plaza-faces { grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr)); }
  .plaza-tally { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .district-cards, .plaza-cards { grid-template-columns: minmax(0, 1fr); }
  .shelf-banner { padding: 14px 16px; }
  .shelf-banner h1 { font-size: 22px; }
  .record-header { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 10px 12px; padding: 14px 16px; }
  .record-header .record-art { grid-row: 1 / span 2; width: 60px; height: 60px; padding: 6px; border-radius: 10px; }
  .record-header .record-art[data-category='units'], .record-header .record-art[data-category='civilizations'], .record-header .record-art[data-category='great-people'], .record-header .record-art[data-category='city-states'], .record-header .record-art[data-monochrome='true'] { padding: 10px; }
  .record-header h1 { font-size: 22px; }
  .record-header > .banner-art + .record-heading, .record-header > .banner-art + .record-heading ~ .ruleset { grid-column: 1 / -1; }
  .shelf-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shelf-home { grid-column: 1 / -1; grid-row: 1; min-height: 46px; }
  .shelf-step { gap: 8px; min-height: 54px; padding: 8px 10px; }
  .shelf-step .entity-picture { width: 34px; height: 34px; }
  .shelf-step strong { font-size: 13px; }
  .shelf-step.is-empty { display: none; }
}
@media (max-width: 480px) {
  .record-header { grid-template-columns: 52px minmax(0, 1fr); gap: 10px; }
  .record-header .record-art { grid-column: 1; grid-row: 1; width: 52px; height: 52px; padding: 5px; }
  .record-header .record-art[data-category] { padding: 7px; }
  .record-header .record-heading { display: contents; }
  .record-header .detail-kicker { grid-column: 2; align-self: center; margin: 0; }
  .record-header:not(:has(.record-art)) .detail-kicker { grid-column: 1 / -1; }
  .record-header h1, .record-header .english-name, .record-header .record-connections, .record-header .ruleset { grid-column: 1 / -1; margin: 0; }
  .record-header .record-connections:empty { display: none; }
}
.directory-context { max-width: 78ch; margin: 1.25rem 0 1.75rem; line-height: 1.8; color: var(--text-secondary, #5d5548); overflow-wrap: anywhere; }
@media print {
  .plaza-hero, .shelf-banner, .zone-head, .record-header { background: #fff; color: #111; }
  .plaza-hero-art, .banner-art, .zone-art, .banner-tiles, .shelf-nav { display: none !important; }
  .plaza-hero::after, .shelf-banner::after, .zone-head::after, .record-header::after { display: none; }
  .plaza-hero h1, .shelf-banner h1, .zone-head h2, .record-header h1 { color: #111; text-shadow: none; }
}
