:root {
  --paper: #f6f4ef;
  --white: #fffefa;
  --ink: #26352f;
  --muted: #6d756f;
  --line: #dce0d7;
  --green: #315d49;
  --pale: #e8eee5;
  --header: 80px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
select {
  color: inherit;
}
button {
  cursor: pointer;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 13px;
  line-height: 1.5;
  transition:
    background 0.14s,
    border-color 0.14s;
}
button:hover {
  border-color: #98ac9e;
  background: #edf2e9;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
select:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #9bb98a;
  outline-offset: 3px;
}
button.on {
  background: var(--pale);
  border-color: #b3c7b2;
  color: #244e39;
}
a {
  color: var(--green);
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
p {
  margin: 0;
}
button[hidden],
[hidden] {
  display: none !important;
}
small {
  font-size: 12px;
}
input {
  min-width: 0;
}
select {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  background: var(--white);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.skip {
  position: fixed;
  top: -70px;
  z-index: 100;
  background: white;
  padding: 10px;
}
.skip:focus {
  top: 5px;
}
.header {
  height: var(--header);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 30px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 218px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  font-size: 37px;
  line-height: 1;
  color: var(--green);
}
.brand h1 {
  font-size: 20px;
  letter-spacing: 1px;
  font-weight: 650;
}
.brand small {
  display: block;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 2.2px;
  margin-top: 5px;
}
.searchbox {
  border: 1px solid #cbd3c7;
  background: var(--white);
  display: flex;
  align-items: center;
  border-radius: 8px;
  gap: 8px;
  max-width: 660px;
  width: 100%;
  padding: 0 12px;
  height: 43px;
}
.searchbox > span {
  font-size: 27px;
  line-height: 1;
  color: #7f8f81;
}
.searchbox input {
  border: 0;
  background: transparent;
  outline: 0;
  width: 100%;
  height: 100%;
  font-size: 14px;
  color: var(--ink);
}
.searchbox:focus-within {
  outline: 2px solid #a7bfa0;
  outline-offset: 1px;
}
.searchbox input::-webkit-search-cancel-button {
  display: none;
}
.searchbox button {
  padding: 0 6px;
  border: 0;
  font-size: 23px;
  background: transparent;
}
.searchbox kbd {
  color: #8b938b;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0 5px;
  border-radius: 3px;
}
.quiet {
  white-space: nowrap;
  margin-left: auto;
  background: transparent;
  font-size: 13px;
  border: 0;
}
.workspace {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  max-width: 2100px;
  margin: auto;
}
.sidebar {
  border-right: 1px solid var(--line);
  height: calc(100dvh - var(--header));
  position: sticky;
  top: var(--header);
  padding: 27px 17px;
  overflow: auto;
}
.sidebar-label {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--muted);
  margin: 0 12px 15px;
}
.sidebar button[data-lane] {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  text-align: left;
  margin: 3px 0;
  font-size: 13px;
  padding: 12px 10px;
  white-space: nowrap;
}
.sidebar button[data-lane].on {
  background: var(--pale);
  font-weight: 650;
}
.sidebar button[data-lane]:hover {
  background: #ecede5;
}
.sidebar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c);
  flex: none;
}
.sidebar small {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.sidebar-stats {
  border-top: 1px solid var(--line);
  margin-top: 25px;
  padding: 20px 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 2.2;
}
.sidebar-stats b {
  font-weight: 500;
  color: var(--ink);
}
.sidebar-stats span {
  margin: 0 5px;
}
.random {
  width: 100%;
  font-size: 12px;
  background: transparent;
}
.main {
  padding: 0 30px 24px;
  min-width: 0;
}
.browsebar {
  display: flex;
  align-items: center;
  min-height: 69px;
  border-bottom: 1px solid var(--line);
  gap: 8px;
}
.tabs {
  display: flex;
  gap: 6px;
  white-space: nowrap;
  overflow: auto;
}
.tabs button {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 22px 14px 19px;
  position: relative;
  font-size: 14px;
  font-weight: 500;
  flex: none;
}
.tabs button.on {
  color: var(--green);
  background: transparent;
}
.tabs button.on:after {
  content: "";
  position: absolute;
  bottom: 0;
  height: 3px;
  left: 12px;
  right: 12px;
  background: var(--green);
  border-radius: 2px;
}
.tabs button:hover {
  background: #e9ece3;
}
.tabs span {
  font-size: 11px;
  color: var(--muted);
  margin-left: 3px;
}
.mobile-lane {
  display: none;
}
.era-bar {
  display: flex;
  gap: 7px;
  overflow: auto;
  padding: 18px 0 15px;
  scrollbar-width: thin;
}
.era-bar button {
  font-size: 12px;
  white-space: nowrap;
  text-align: left;
  padding: 8px 12px;
  flex: 1;
  min-height: 53px;
}
.era-bar button:first-child {
  flex: 0 0 auto;
  text-align: center;
}
.era-bar small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}
.resultbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 7px 0 14px;
  min-height: 38px;
}
.resultbar > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.resultbar h2 {
  font-size: 19px;
  font-weight: 600;
}
.resultbar span {
  font-size: 12px;
  color: var(--muted);
}
.result-actions {
  font-size: 12px;
}
.result-actions button {
  padding: 6px 10px;
}
.result-actions select {
  padding: 6px 8px;
}
#activeFilters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
#activeFilters:not(:empty) {
  margin-bottom: 15px;
}
#activeFilters button {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 4px;
  background: #e7ebdf;
}
.map-scroll {
  overflow-x: auto;
  max-height: none;
  min-height: 300px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  scrollbar-width: thin;
  scrollbar-color: #aab5a4 #e9ede5;
  overscroll-behavior-x: contain;
}
.map-table {
  width: 100%;
  min-width: 1290px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}
.map-table.single-era {
  min-width: 0;
}
.map-table th,
.map-table td {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.map-table tr:last-child > * {
  border-bottom: 0;
}
.map-table tr > *:last-child {
  border-right: 0;
}
.map-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #f0f2e9;
  height: 68px;
}
.map-table th:first-child {
  width: 124px;
  position: sticky;
  left: 0;
  background: #f3f4ec;
  z-index: 2;
}
.map-table thead th:first-child {
  z-index: 4;
  padding: 20px 12px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}
.map-table th button {
  border: 0;
  background: transparent;
  width: 100%;
  height: 100%;
  text-align: left;
  padding: 14px 12px;
  font-weight: 550;
  font-size: 12px;
  border-radius: 0;
}
.map-table tbody th button {
  border-left: 3px solid var(--c);
  color: var(--c);
}
.map-table th small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 6px;
}
.map-table td {
  padding: 10px 7px 12px;
}
.map-node {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  font-size: 12px;
  line-height: 1.55;
  padding: 7px 5px;
  border: 0;
  background: transparent;
}
.map-node i {
  color: #9eac99;
  font-style: normal;
  font-size: 10px;
  flex: none;
  padding-top: 2px;
}
.map-node:hover {
  background: #e8eee4;
}
.map-pictures {
  display: flex;
  height: 72px;
  gap: 4px;
  margin-bottom: 7px;
}
.map-pictures button {
  flex: 1;
  width: 0;
  padding: 3px;
  background: #eeede6;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
}
.map-pictures img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}
.more-nodes summary {
  padding: 7px 5px;
  cursor: pointer;
  font-size: 11px;
  color: var(--green);
  list-style: none;
}
.more-nodes summary span {
  float: right;
}
.more-nodes[open] summary span {
  transform: rotate(45deg);
}
.cell-empty {
  display: block;
  text-align: center;
  font-size: 13px;
  color: #b8bfb3;
  padding: 15px;
}
.mobile-map {
  display: none;
}
.entry-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.entry-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
}
.entry-card:hover {
  border-color: #9eb29f;
}
.entry-open {
  border: 0;
  border-radius: 0;
  display: flex;
  gap: 17px;
  width: 100%;
  padding: 17px;
  background: transparent;
  text-align: left;
  min-height: 159px;
}
.entry-thumb {
  width: 88px;
  height: 112px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ecebe3;
  border-radius: 4px;
  padding: 5px;
  color: var(--c);
}
.entry-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.entry-thumb > span {
  font-family: serif;
  font-size: 36px;
  opacity: 0.55;
}
.entry-copy {
  min-width: 0;
  padding-right: 18px;
}
.meta {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.65;
}
.entry-copy h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
  margin: 5px 0 6px;
}
.entry-copy h3 span {
  display: block;
  font-weight: 400;
  font-size: 11px;
  color: var(--muted);
}
.entry-copy p {
  font-size: 12px;
  line-height: 1.7;
  color: #606b61;
}
.entry-tags {
  font-size: 10px;
  color: #899183;
  margin-top: 8px;
}
.open-arrow {
  position: absolute;
  right: 15px;
  bottom: 15px;
  color: #8c9e8c;
  font-size: 16px;
}
.quick-save {
  position: absolute;
  right: 8px;
  top: 7px;
  border: 0;
  background: transparent;
  padding: 6px;
  font-size: 20px;
  color: #82907e;
  line-height: 1;
}
.art-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 23px 18px;
}
.art-card {
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  border-radius: 8px;
  overflow: hidden;
  align-self: start;
}
.art-card:hover {
  background: transparent;
}
.art-stage {
  height: 235px;
  background: #eae8df;
  padding: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 5px;
}
.art-stage img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  transition: transform 0.2s;
}
.art-card:hover img {
  transform: scale(1.035);
}
.art-zoom {
  position: absolute;
  bottom: 8px;
  right: 9px;
  font-size: 18px;
  color: #74816f;
  opacity: 0;
}
.art-card:hover .art-zoom {
  opacity: 1;
}
.art-info {
  padding: 12px 2px;
}
.art-info h3 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}
.art-info p {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin: 5px 0;
}
.art-info p span {
  display: block;
}
.art-info small {
  font-size: 10px;
  color: #8b9388;
}
.load-more {
  text-align: center;
  margin: 25px 0;
}
.load-more span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 10px;
}
.route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.route-card {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
}
.route-cover {
  height: 138px;
  background: #e6e8de;
  position: relative;
  overflow: hidden;
  padding: 10px;
}
.route-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.route-cover > span {
  position: absolute;
  right: 12px;
  bottom: 10px;
  border-radius: 4px;
  padding: 3px 8px;
  background: #fffefae8;
  font-size: 11px;
}
.route-copy {
  padding: 20px;
}
.route-copy h3 {
  font-size: 21px;
  font-family: "Songti SC", "Noto Serif CJK SC", serif;
  font-weight: 600;
  margin: 7px 0 10px;
}
.route-copy p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  min-height: 46px;
}
.route-stops {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 15px 0;
}
.route-stops button {
  font-size: 11px;
  padding: 4px 7px;
  background: #f1f3eb;
  border: 0;
}
.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
  font-size: 12px;
}
.primary:hover {
  background: #264b39;
  color: white;
}
.empty,
.loading {
  padding: 70px 20px;
  text-align: center;
  border: 1px dashed #cdd6c5;
  border-radius: 9px;
  color: var(--muted);
}
.empty > span {
  font-size: 36px;
  color: #98a58f;
}
.empty h3 {
  font-size: 17px;
  color: var(--ink);
  font-weight: 500;
  margin: 15px 0;
}
.empty p {
  font-size: 13px;
  line-height: 1.8;
}
.empty button {
  margin-top: 5px;
  font-size: 13px;
}
footer {
  display: flex;
  gap: 15px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin-top: 25px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}
footer a {
  text-decoration: none;
  margin-left: auto;
}
.text-button {
  border: 0;
  padding: 0;
  background: transparent;
  font-size: 11px;
  color: var(--muted);
}
dialog {
  color: var(--ink);
  background: var(--white);
  padding: 0;
  border: 0;
}
dialog::backdrop {
  background: #20352866;
  backdrop-filter: blur(3px);
}
html:has(dialog[open]) {
  overflow: hidden;
}
dialog {
  overscroll-behavior: contain;
}
#detail {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(1600px, calc(100vw - 48px));
  max-width: 100vw;
  height: calc(100dvh - 32px);
  max-height: 100dvh;
  overflow: auto;
  border-radius: 12px;
  box-shadow: 0 18px 70px #11251940;
  scrollbar-gutter: stable;
}
.drawer-top {
  position: sticky;
  top: 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 25px;
  z-index: 5;
  min-height: 65px;
}
.drawer-top #crumb {
  font-size: 11px;
  color: var(--muted);
  flex: 1;
}
.drawer-top button {
  font-size: 12px;
  padding: 7px 10px;
}
.detail-heading {
  padding: 29px 36px 22px;
}
.detail-heading h2 {
  font-family: "Songti SC", "Noto Serif CJK SC", serif;
  font-size: 32px;
  line-height: 1.45;
  font-weight: 650;
  margin: 7px 0;
}
.detail-en {
  color: var(--muted);
  font-size: 13px;
}
.detail-hook {
  font-size: 17px;
  line-height: 1.8;
  margin: 17px 0;
  color: #47594b;
}
.detail-actions {
  display: flex;
  gap: 8px;
}
.detail-actions button {
  font-size: 12px;
  padding: 8px 13px;
}
.detail-gallery {
  padding: 0 36px;
}
.detail-art {
  background: #ebe9e1;
  padding: 18px;
  width: 100%;
  border: 0;
  position: relative;
}
.detail-art img {
  height: 310px;
  width: 100%;
  object-fit: contain;
}
.detail-art > span {
  position: absolute;
  bottom: 9px;
  right: 11px;
  font-size: 11px;
  background: #fffefad9;
  padding: 3px 6px;
  border-radius: 3px;
}
.art-caption {
  position: relative;
  padding: 12px 55px 12px 0;
  line-height: 1.7;
  font-size: 11px;
  color: var(--muted);
}
.art-caption strong {
  font-size: 14px;
  color: var(--ink);
  font-weight: 600;
}
.art-caption > span:not(.art-position) {
  display: block;
}
.art-caption a {
  display: inline-block;
  margin-top: 3px;
  font-size: 11px;
}
.art-caption .art-position {
  position: absolute;
  right: 0;
  top: 13px;
  font-size: 11px;
}
.thumbnails {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 3px 2px 8px;
}
.thumbnails button {
  width: 74px;
  height: 62px;
  flex: none;
  padding: 4px;
  border: 2px solid transparent;
  background: #eeede5;
}
.thumbnails button.on {
  border-color: var(--green);
}
.thumbnails img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.detail-reading {
  padding: 3px 36px 30px;
}
.detail-section {
  margin: 26px 0;
}
.detail-section h3,
.distinguish h3 {
  font-size: 13px;
  color: var(--green);
  font-weight: 650;
  margin-bottom: 10px;
}
.detail-section h3 > span {
  color: var(--muted);
  margin-left: 5px;
  font-weight: 400;
}
.detail-section p {
  font-size: 15px;
  line-height: 1.95;
  color: #46564b;
  margin: 9px 0;
}
.distinguish {
  background: #f2f0e7;
  border-left: 3px solid #ac9a60;
  padding: 16px 19px;
  margin: 25px 0;
}
.distinguish p {
  font-size: 13px;
  line-height: 1.9;
  color: #5e634e;
}
.distinguish h3 {
  color: #887645;
}
.related {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.related button {
  text-align: left;
  padding: 12px;
  line-height: 1.7;
}
.related b {
  display: block;
  font-size: 13px;
  font-weight: 550;
}
.related b span {
  float: right;
  color: #8c9e87;
}
.related small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}
.resource-links {
  display: grid;
  gap: 7px;
}
.resource-links a,
.source-list a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 12px;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.7;
}
.resource-links a:hover,
.source-list a:hover {
  background: var(--pale);
}
.resource-links b,
.source-list b {
  font-weight: 550;
}
.resource-links small,
.source-list small {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.search-links {
  margin-top: 15px;
  font-size: 12px;
  color: var(--muted);
}
.search-links summary {
  cursor: pointer;
  margin-bottom: 8px;
}
.search-links a {
  display: inline-block;
  margin: 4px 15px 4px 0;
  font-size: 12px;
}
.detail-bottom {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--white);
  padding: 12px 25px;
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 18px #20352808;
}
.detail-bottom button {
  font-size: 12px;
  white-space: nowrap;
}
.detail-bottom > span {
  font-size: 11px;
  text-align: center;
  color: var(--muted);
}
.detail-bottom small {
  display: block;
  font-size: 10px;
  margin-top: 3px;
}
.modal {
  width: min(960px, 94vw);
  max-height: 90dvh;
  overflow: auto;
  padding: 27px;
  border-radius: 10px;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}
.modal-head h2 {
  font-size: 23px;
  font-weight: 600;
}
.modal-head button {
  font-size: 12px;
  white-space: nowrap;
}
.modal > p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
  margin: 15px 0;
}
.source-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.compare-table th,
.compare-table td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  padding: 15px;
  font-size: 13px;
  line-height: 1.9;
}
.compare-table th:first-child {
  width: 64px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}
.compare-table thead th {
  font-size: 19px;
  font-weight: 550;
}
.compare-table small {
  font-size: 11px;
  color: var(--muted);
  display: block;
}
.compare-table img {
  height: 190px;
  width: 100%;
  object-fit: contain;
  background: #efede4;
}
#lightbox {
  width: min(1150px, 97vw);
  max-width: 97vw;
  max-height: 97dvh;
  border-radius: 8px;
  overflow: auto;
  background: #eeece6;
}
.light-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 15px 22px;
}
.light-head b {
  font-size: 15px;
  font-weight: 600;
}
.light-head small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.light-head button {
  font-size: 12px;
  white-space: nowrap;
}
.light-stage {
  padding: 0 22px;
}
.light-stage img {
  height: 64dvh;
  width: 100%;
  object-fit: contain;
}
.light-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  margin: 15px;
}
.light-controls button {
  font-size: 12px;
}
.light-controls span {
  font-size: 12px;
  color: var(--muted);
}
.light-credit {
  padding: 0 22px 18px;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
}
#comparebar {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: #284e3c;
  color: white;
  box-shadow: 0 5px 25px #19302230;
  z-index: 25;
  border-radius: 9px;
  padding: 11px 13px 11px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  max-width: 95vw;
}
#comparebar span {
  min-width: 0;
}
#comparebar button {
  font-size: 12px;
  white-space: nowrap;
  padding: 7px 10px;
}
#clearCompare {
  background: transparent;
  border: 0;
  color: white;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 12px);
  background: #273d32;
  color: white;
  padding: 10px 18px;
  border-radius: 7px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  font-size: 13px;
  transition: 0.2s;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (min-width: 1750px) {
  .art-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .entry-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .map-table {
    min-width: 1450px;
  }
  .map-node {
    font-size: 13px;
  }
  .map-pictures {
    height: 88px;
  }
}
@media (max-width: 1200px) {
  .workspace {
    grid-template-columns: 176px minmax(0, 1fr);
  }
  .sidebar {
    padding: 24px 10px;
  }
  .sidebar button[data-lane] {
    font-size: 12px;
    gap: 7px;
  }
  .main {
    padding: 0 20px 24px;
  }
  .header {
    padding: 0 20px;
    gap: 20px;
  }
  .brand {
    min-width: 190px;
  }
  .brand h1 {
    font-size: 18px;
  }
  .art-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .art-stage {
    height: 210px;
  }
  .entry-list {
    grid-template-columns: 1fr;
  }
  .era-bar button {
    padding: 7px 10px;
    flex: none;
  }
  .tabs button {
    padding: 21px 10px 19px;
    font-size: 13px;
  }
  .route-copy {
    padding: 16px;
  }
  .route-copy h3 {
    font-size: 19px;
  }
}
@media (max-width: 800px) {
  :root {
    --header: 70px;
  }
  .header {
    padding: 0 16px;
    gap: 18px;
  }
  .brand {
    min-width: 174px;
  }
  .brand-mark {
    font-size: 28px;
  }
  .brand h1 {
    font-size: 16px;
  }
  .brand small {
    font-size: 8px;
    letter-spacing: 1.2px;
  }
  .quiet {
    font-size: 12px;
    padding: 6px;
  }
  .workspace {
    display: block;
  }
  .sidebar {
    display: none;
  }
  .main {
    padding: 0 16px 20px;
  }
  .browsebar {
    min-height: 62px;
  }
  .tabs {
    flex: 1;
    gap: 0;
  }
  .tabs button {
    padding: 20px 9px 17px;
    font-size: 12px;
  }
  .mobile-lane {
    display: block;
  }
  .mobile-lane select {
    font-size: 11px;
    max-width: 112px;
    padding: 7px 3px;
  }
  .era-bar {
    padding: 13px 0;
  }
  .era-bar button {
    font-size: 11px;
    min-height: 47px;
  }
  .era-bar small {
    font-size: 9px;
  }
  .map-scroll {
    display: none;
  }
  .mobile-map {
    display: block;
  }
  .era-section {
    margin-bottom: 21px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    overflow: hidden;
  }
  .era-section > h3 {
    padding: 14px 15px;
    background: #e9ede2;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .era-section h3 small {
    font-size: 10px;
    color: var(--muted);
    font-weight: 400;
  }
  .mobile-group {
    border-top: 1px solid var(--line);
    padding: 0 13px 0 15px;
  }
  .mobile-group > summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    font-size: 13px;
    color: var(--c);
    font-weight: 550;
  }
  .mobile-group > summary span {
    font-size: 11px;
    font-weight: 400;
    color: var(--muted);
  }
  .mobile-group .map-pictures {
    height: 110px;
    margin-top: 2px;
  }
  .mobile-group .map-pictures button {
    padding: 6px;
  }
  .mobile-group[open] {
    padding-bottom: 10px;
  }
  .map-node {
    font-size: 14px;
    padding: 10px 4px;
  }
  .more-nodes summary {
    font-size: 12px;
    padding: 10px 4px;
  }
  .art-stage {
    height: 220px;
  }
  .resultbar h2 {
    font-size: 18px;
  }
  .resultbar span {
    font-size: 11px;
  }
  .route-cover {
    height: 120px;
  }
  .route-copy p {
    min-height: 0;
  }
  .entry-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .entry-open {
    gap: 12px;
    padding: 13px;
  }
  .entry-thumb {
    width: 60px;
    height: 85px;
  }
  .entry-copy h3 {
    font-size: 14px;
  }
  .entry-copy p {
    font-size: 11px;
  }
  .entry-tags {
    font-size: 9px;
  }
}
@media (max-width: 560px) {
  :root {
    --header: 112px;
  }
  .header {
    height: 112px;
    flex-wrap: wrap;
    gap: 0;
    padding: 11px 14px 12px;
  }
  .brand {
    min-width: 0;
    width: auto;
    gap: 8px;
  }
  .brand-mark {
    font-size: 27px;
  }
  .brand h1 {
    font-size: 16px;
  }
  .brand small {
    font-size: 7px;
    margin-top: 2px;
  }
  .quiet {
    margin-left: auto;
    align-self: flex-start;
    margin-top: 4px;
    font-size: 11px;
  }
  .searchbox {
    order: 3;
    height: 37px;
    max-width: none;
    margin-top: 9px;
    padding: 0 9px;
    flex-basis: 100%;
  }
  .searchbox input {
    font-size: 13px;
  }
  .searchbox kbd {
    display: none;
  }
  .main {
    padding: 0 12px 20px;
  }
  .browsebar {
    display: block;
    position: relative;
    padding-bottom: 43px;
  }
  .tabs {
    width: 100%;
    justify-content: space-between;
  }
  .tabs button {
    font-size: 12px;
    padding: 17px 5px 14px;
  }
  .tabs button.on:after {
    left: 4px;
    right: 4px;
  }
  .mobile-lane {
    position: absolute;
    bottom: 6px;
    left: 0;
  }
  .mobile-lane select {
    max-width: none;
    font-size: 12px;
    padding: 5px 9px;
  }
  .era-bar {
    gap: 5px;
    margin-top: 0;
    padding: 10px 0;
  }
  .era-bar button {
    padding: 6px 10px;
    min-height: 42px;
  }
  .resultbar {
    margin: 5px 0 12px;
  }
  .resultbar h2 {
    font-size: 17px;
  }
  .resultbar > div {
    gap: 7px;
  }
  .result-actions {
    gap: 5px !important;
  }
  .result-actions button {
    font-size: 10px;
    padding: 5px;
  }
  .result-actions select {
    font-size: 10px;
    max-width: 81px;
  }
  .resultbar span {
    font-size: 10px;
  }
  .entry-list {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .entry-thumb {
    width: 75px;
    height: 96px;
  }
  .entry-open {
    min-height: 124px;
    padding: 14px;
  }
  .entry-copy h3 {
    font-size: 16px;
  }
  .entry-copy p {
    font-size: 12px;
  }
  .entry-copy h3 span {
    font-size: 10px;
  }
  .entry-copy {
    padding-right: 13px;
  }
  .art-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 11px;
  }
  .art-stage {
    height: 190px;
    padding: 10px;
  }
  .art-info {
    padding: 9px 1px;
  }
  .art-info h3 {
    font-size: 12px;
  }
  .art-info p {
    font-size: 10px;
  }
  .art-info small {
    font-size: 9px;
  }
  .route-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .route-cover {
    height: 125px;
  }
  .route-copy {
    padding: 18px;
  }
  .route-copy h3 {
    font-size: 21px;
  }
  .route-copy p {
    font-size: 12px;
  }
  .route-stops button {
    font-size: 11px;
  }
  .drawer-top {
    padding: 11px 15px;
    min-height: 58px;
  }
  .drawer-top #crumb {
    font-size: 10px;
  }
  .drawer-top button {
    padding: 6px 8px;
  }
  .detail-heading {
    padding: 23px 22px 19px;
  }
  .detail-heading h2 {
    font-size: 28px;
  }
  .detail-hook {
    font-size: 16px;
  }
  .detail-en {
    font-size: 12px;
  }
  .detail-gallery {
    padding: 0 22px;
  }
  .detail-art {
    padding: 12px;
  }
  .detail-art img {
    height: 260px;
  }
  .detail-reading {
    padding: 0 22px 20px;
  }
  .detail-section p {
    font-size: 14px;
  }
  .detail-bottom {
    padding: 10px 13px;
    gap: 6px;
  }
  .detail-bottom button {
    padding: 7px 9px;
    font-size: 11px;
  }
  .detail-bottom > span {
    font-size: 10px;
  }
  .related {
    grid-template-columns: 1fr;
  }
  .source-list {
    grid-template-columns: 1fr;
  }
  .modal {
    padding: 18px;
  }
  .modal-head h2 {
    font-size: 21px;
  }
  .compare-table th,
  .compare-table td {
    font-size: 11px;
    padding: 10px 6px;
  }
  .compare-table th:first-child {
    width: 38px;
    font-size: 10px;
  }
  .compare-table thead th {
    font-size: 15px;
  }
  .compare-table img {
    height: 120px;
  }
  .light-head {
    padding: 13px;
  }
  .light-head b {
    font-size: 14px;
  }
  .light-stage {
    padding: 0 12px;
  }
  .light-stage img {
    height: 59dvh;
  }
  .light-credit {
    padding: 0 14px 15px;
  }
  .light-controls {
    gap: 15px;
  }
  #comparebar {
    width: 94vw;
    padding: 10px;
    font-size: 11px;
    gap: 7px;
  }
  #comparebar button {
    font-size: 11px;
    padding: 6px;
  }
  footer {
    flex-wrap: wrap;
    gap: 8px;
    font-size: 10px;
  }
  footer > span {
    width: 100%;
  }
  .text-button {
    font-size: 10px;
  }
  .empty {
    padding: 50px 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.light-stage.zoomed { display:block; height:65dvh; overflow:auto; padding:12px; }
.light-stage.zoomed img { display:block; width:auto; min-width:100%; max-width:none; height:auto; max-height:none; }
.explore-intro { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:24px 0 16px; }
.eyebrow { color:var(--green); font-size:18px; font-weight:600; }
.explore-intro p { margin:8px 0 0; color:var(--muted); font-size:13px; }
.explore-links { display:flex; gap:8px; flex-wrap:wrap; }
.explore-links button { font-size:12px; }
.search-topics { display:flex; flex-wrap:wrap; gap:8px; align-items:center; padding-bottom:18px; }
.search-topics > span { font-size:11px; color:var(--muted); margin-right:5px; }
.search-topics button { border-radius:20px; padding:5px 13px; font-size:12px; background:var(--white); }
.image-filter { display:flex; align-items:center; gap:5px; font-size:12px; white-space:nowrap; }
.image-filter input { accent-color:var(--green); width:16px; height:16px; }
.visual-dictionary .entry-thumb { width:120px; height:140px; }
.entry-preview { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; padding:0 17px 17px; }
.entry-preview button { min-width:0; background:#f2f0e9; padding:7px; border-color:transparent; }
.entry-preview img { width:100%; height:90px; object-fit:contain; }
.entry-preview span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:10px; margin-top:5px; color:var(--muted); }
.gallery-heading { display:flex; gap:12px; align-items:baseline; justify-content:space-between; margin-bottom:12px; }
.gallery-heading h3 { font-size:15px; margin:0; }
.gallery-heading span { color:var(--muted); font-size:11px; }
.looking-guide { background:#edf1e8; border-left:3px solid var(--green); padding:14px 17px; margin:8px 0 18px; border-radius:0 6px 6px 0; }
.looking-guide strong { font-size:12px; color:var(--green); }
.looking-guide p { font-size:13px; line-height:1.85; margin:5px 0 0; }
.thumbnails { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); overflow:visible; }
.thumbnails button { width:100%; height:auto; min-width:0; padding:8px; text-align:left; }
.thumbnails img { height:112px; }
.thumbnails span { display:block; font-size:11px; line-height:1.5; margin-top:7px; }
.thumbnails small { display:block; color:var(--muted); font-size:10px; margin-top:4px; }
.related .related-card { display:flex; gap:12px; align-items:center; }
.related-card img { width:64px; height:76px; flex:none; object-fit:contain; background:#f0eee7; border-radius:3px; }
.related-card > div { min-width:0; }
.tabs { overflow-x:auto; }
.tabs button { flex-shrink:0; }
@media(max-width:800px) {
  .explore-intro { align-items:flex-start; flex-direction:column; gap:12px; padding-top:17px; }
  .explore-links { display:none; }
  .search-topics { flex-wrap:nowrap; overflow-x:auto; padding-bottom:10px; }
  .search-topics > span, .search-topics button { flex-shrink:0; }
  .eyebrow { font-size:16px; }
  .visual-dictionary .entry-thumb { width:90px; height:112px; }
  .entry-preview img { height:75px; }
  .thumbnails img { height:85px; }
  .result-actions { flex-wrap:wrap; justify-content:flex-end; }
  .gallery-heading { align-items:flex-start; flex-direction:column; gap:4px; }
}
/* A centered reading spread uses the available screen for both art and context. */
.detail-actions { flex-wrap: wrap; }
.image-provenance { font-size: 11px; line-height: 1.8; color: var(--muted); margin: 2px 0 18px; overflow-wrap: anywhere; }
.image-provenance summary { cursor: pointer; }
.image-provenance p, .light-credit p { margin: 7px 0; }
.gallery-controls { display: flex; align-items: center; justify-content: space-between; margin: 0 0 10px; gap: 12px; }
.gallery-controls button { font-size: 12px; padding: 7px 12px; }
.gallery-controls span { font-size: 11px; color: var(--muted); }
@media (min-width: 1000px) {
  #detailBody {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    align-items: start;
    gap: 0 44px;
    padding: 0 40px 36px;
  }
  .detail-heading { grid-column: 1 / -1; padding: 27px 0 26px; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; }
  .detail-heading > :not(.detail-actions) { grid-column: 1; }
  .detail-heading .detail-actions { grid-column: 2; grid-row: 2 / 5; align-self: center; max-width: 340px; justify-content: flex-end; }
  .detail-hook { margin: 10px 0 0; }
  .detail-heading h2 { font-size: 36px; }
  .detail-gallery, .detail-reading { padding: 0; min-width: 0; }
  .detail-art img { height: auto; max-height: min(58dvh, 700px); }
  .detail-reading { border-left: 1px solid var(--line); padding-left: 36px; }
  .detail-reading > .detail-section:first-child { margin-top: 0; }
  .detail-reading .related { grid-template-columns: 1fr; }
  .drawer-top, .detail-bottom { padding-left: 40px; padding-right: 40px; }
}
@media (max-width: 999px) {
  #detail { width: min(880px, calc(100vw - 24px)); height: calc(100dvh - 24px); }
  .detail-art img { height: auto; max-height: 60dvh; }
}
@media (max-width: 560px) {
  #detail { width: 100vw; height: 100dvh; border-radius: 0; scrollbar-gutter: auto; }
}
@media print {
  .header,
  .sidebar,
  .browsebar,
  .era-bar,
  .resultbar,
  .detail-actions,
  .drawer-top,
  .detail-bottom,
  footer {
    display: none !important;
  }
  .workspace {
    display: block;
  }
  .main {
    padding: 0;
  }
  .map-scroll {
    max-height: none;
    overflow: visible;
  }
  .map-table {
    min-width: 0;
  }
  .map-node {
    font-size: 8px;
  }
  .map-pictures {
    height: 40px;
  }
}
:root { --learning-green: #285847; }
.learning-filter { margin: 20px 0; padding: 20px 24px; border: 1px solid #ccd8cb; border-radius: 12px; background: #eef2e9; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.learning-filter strong { font-size: 17px; }
.learning-filter p { margin: 6px 0 0; font-size: 13px; line-height: 1.6; }
.learning-scopes { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.learning-scopes button { border: 1px solid #bcc9bc; border-radius: 8px; padding: 10px 14px; background: #fff; }
.learning-scopes button.on { background: var(--learning-green); border-color: var(--learning-green); color: white; }
.learning-scopes small { margin-left: 8px; font-variant-numeric: tabular-nums; }
.learning-hint { flex-basis: 100%; color: #526451; }
.level-badge { display: inline-block; flex-shrink: 0; width: fit-content; font-size: 11px; font-weight: 650; line-height: 1.6; padding: 2px 7px; border: 1px solid transparent; border-radius: 4px; white-space: nowrap; letter-spacing: 0; }
.level-core { background: #e4eddf; color: #294e35; border-color: #b5c9a9; }
.level-focus { background: #f4ecdb; color: #73501d; border-color: #ddcbab; }
.level-extended { background: #f0eeea; color: #62635d; border-color: #d8d6cf; }
.map-node.node-core { font-weight: 700; }
.map-node .level-badge { font-size: 10px; margin-top: 3px; }
.map-node { flex-wrap: wrap; }
.map-node > span:first-child { flex-basis: 100%; }
.entry-card.entry-core { border-left: 3px solid #688659; }
.meta .level-badge { margin: 0 7px 5px 0; }
.scope-search-hint { padding: 14px 18px; margin: 12px 0; background: #f4ecdb; border-radius: 8px; font-size: 14px; }
.scope-search-hint button { margin-left: 12px; text-decoration: underline; font-weight: 650; }
.study-guide { padding: 22px; margin-bottom: 28px; background: #eef2e9; border: 1px solid #ccd8cb; border-radius: 10px; }
.study-eyebrow { font-size: 12px; color: #42633f; font-weight: 700; }
.study-guide h3 { margin: 14px 0 8px; font-size: 17px; }
.study-guide p, .study-guide li { font-size: 15px; line-height: 1.9; }
.study-guide ul { margin: 0; padding-left: 20px; }
.study-guide li + li { margin-top: 8px; }
.study-check details { border: 1px solid #d6dbd0; border-radius: 8px; padding: 14px 18px; }
.study-check summary { cursor: pointer; color: var(--learning-green); font-weight: 650; }
.study-next { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.study-next button { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px; border: 1px solid #d6dbd0; border-radius: 8px; text-align: left; }
.study-next button:hover { background: #eef2e9; }
.study-next small { line-height: 1.7; color: #5a6659; }
@media (max-width: 650px) {
  .learning-filter { padding: 16px; }
  .learning-scopes { margin-left: 0; width: 100%; gap: 6px; }
  .learning-scopes button { padding: 9px 8px; flex: 1; font-size: 12px; }
  .learning-scopes small { display: block; margin-left: 0; }
  .study-next { grid-template-columns: 1fr; }
}
.detail-gallery .thumbnails { display: flex; gap: 8px; overflow-x: auto; margin: 0 0 12px; padding: 3px 2px 8px; scrollbar-width: thin; }
.detail-gallery .thumbnails button { flex: 0 0 76px; width: 76px; height: 68px; padding: 4px; position: relative; }
.detail-gallery .thumbnails img { width: 100%; height: 100%; object-fit: contain; }
.detail-gallery .thumbnails span, .detail-gallery .thumbnails small { display: none; }
.detail-gallery .detail-art { width: 100%; }
.detail-gallery .detail-art img { width: 100%; height: clamp(180px, 38dvh, 440px); max-height: none; object-fit: contain; }
@media (max-width: 560px) {
  .detail-gallery .detail-art img { height: clamp(160px, 30dvh, 320px); }
}
.art-note { font-size: 13px; line-height: 1.8; margin-bottom: 18px; }
.art-note summary { color: var(--muted); cursor: pointer; }
.gallery-controls { position: sticky; top: 62px; z-index: 2; background: var(--white); padding: 6px 0; }
@media (min-width: 1000px) {
  .detail-gallery { position: sticky; top: 76px; }
}

.term-link { color: var(--green); text-decoration: underline; text-decoration-color: #a8b7a2; text-underline-offset: 4px; }
.term-link:hover { background: var(--pale); text-decoration-color: var(--green); }
.featured-label { color: var(--green); font-size: 11px; }
.art-compare-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.art-compare-actions button, .art-pick { font-size: 12px; }
.art-pick[aria-pressed="true"] { background: var(--pale); border-color: var(--green); }
.gallery-item { min-width: 0; }
.gallery-item .art-card { width: 100%; }
.gallery-item > .art-pick { margin-top: 8px; }
#artComparebar { position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 35; max-width: calc(100vw - 24px); width: max-content; background: var(--white); border: 1px solid var(--green); box-shadow: 0 4px 24px #26352f26; border-radius: 10px; padding: 10px 14px; display: flex; align-items: center; gap: 12px; }
#artComparebar[hidden] { display: none; }
#artComparebar > span { max-width: 350px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
#artComparebar button { font-size: 12px; white-space: nowrap; }
body:has(#artComparebar:not([hidden])) #comparebar { bottom: 85px; }
#artComparison { width: min(1500px, calc(100vw - 32px)); max-width: none; height: min(1000px, calc(100dvh - 32px)); max-height: none; padding: 0 24px 24px; margin: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); overflow: auto; }
#artComparison::backdrop { background: #14251caa; }
#artComparison .modal-head { position: sticky; top: 0; background: var(--white); z-index: 2; }
.art-compare-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 20px; }
.art-compare-panel { min-width: 0; }
.art-compare-panel label { display: block; font-size: 12px; color: var(--muted); }
.art-compare-panel select { display: block; width: 100%; margin-top: 6px; padding: 10px; }
.art-compare-tools { display: flex; gap: 8px; align-items: center; margin: 10px 0; }
.art-compare-tools button { padding: 7px 12px; font-size: 12px; }
.art-compare-tools output { min-width: 44px; text-align: center; font-size: 12px; font-variant-numeric: tabular-nums; }
.art-compare-stage { height: clamp(240px, 52dvh, 580px); overflow: auto; background: #e9e6df; border-radius: 8px; overscroll-behavior: contain; cursor: grab; }
.art-compare-stage:active { cursor: grabbing; }
.art-compare-canvas { width: 100%; height: 100%; }
.art-compare-canvas img { width: 100%; height: 100%; max-width: none; object-fit: contain; display: block; user-select: none; -webkit-user-drag: none; }
.art-compare-caption { display: flex; flex-direction: column; gap: 6px; padding: 14px 0; font-size: 12px; line-height: 1.6; }
.art-compare-caption strong { font-size: 16px; }
.art-compare-caption small { color: var(--muted); }
.search-groups { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 24px; }
.search-groups a { padding: 8px 16px; background: var(--pale); border-radius: 6px; color: var(--green); font-size: 13px; text-decoration: none; }
.search-section { scroll-margin-top: 140px; margin: 26px 0 36px; }
.search-section > h3 { font-size: 20px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.search-section > h3 small { font-size: 12px; color: var(--muted); margin-left: 8px; }
.author-results { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,310px),1fr)); gap: 16px; }
.author-results article { padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.author-results h4 { font-size: 22px; margin: 0; }
.author-results p { color: var(--muted); font-size: 12px; }
.author-entries { display: flex; flex-wrap: wrap; gap: 6px; }
.author-entries button { font-size: 12px; padding: 6px 9px; }
.author-previews { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; margin-top: 14px; }
.author-previews button { padding: 3px; }
.author-previews img { width: 100%; height: 90px; object-fit: contain; }
.search-work-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,220px),1fr)); gap: 20px; }
.search-work-grid article { min-width: 0; }
.search-work-open { display: flex; flex-direction: column; text-align: left; gap: 8px; width: 100%; padding: 12px; }
.search-work-open img { width: 100%; height: 220px; object-fit: contain; background: #ece9e2; }
.search-work-open span { font-size: 12px; color: var(--muted); }
.search-work-grid .art-pick { margin-top: 8px; }
.search-suggestions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 20px; }
@media (max-width: 600px) {
  #artComparison { width: 100vw; height: 100dvh; border-radius: 0; padding: 0 10px 12px; }
  .art-compare-grid { gap: 8px; }
  .art-compare-stage { height: 35dvh; min-height: 210px; }
  .art-compare-tools { flex-wrap: wrap; gap: 5px; }
  .art-compare-tools button { padding: 6px 9px; }
  .art-compare-panel select { font-size: 12px; padding: 8px 3px; }
  .art-compare-caption strong { font-size: 13px; }
  #artComparebar { padding: 8px; gap: 6px; }
  #artComparebar > span { max-width: 90px; }
  .search-work-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .search-work-open img { height: 150px; }
}

/* A compact core filter; ordinary entries need no level label. */
.learning-filter { margin: 14px 0; padding: 0; border: 0; background: transparent; }
.learning-scopes { margin-left: 0; width: auto; }
.learning-scopes button { padding: 7px 13px; }

/* Route controls remain visible while the reader scrolls or visits a related entry. */
.drawer-top { flex-wrap: wrap; }
#routeNav { flex-basis: 100%; display: flex; align-items: center; gap: 16px; padding-top: 8px; border-top: 1px solid var(--line); }
.route-status { min-width: 0; flex: 1; display: grid; gap: 5px; }
.route-status strong { font-size: 14px; }
.route-status span { font-size: 12px; color: var(--muted); }
.route-status select { width: 100%; min-width: 0; max-width: 430px; padding: 6px; border: 1px solid var(--line); border-radius: 5px; background: var(--white); }
.route-controls { display: flex; align-items: stretch; gap: 8px; }
.route-controls button, .detail-bottom button { white-space: normal; text-align: left; max-width: 280px; }
.route-controls strong, .detail-bottom button strong { display: block; font-size: 14px; margin-top: 3px; }
#detail:has(#routeNav:not([hidden])) .gallery-controls { position: static; }
#detail:has(#routeNav:not([hidden])) .detail-gallery { position: static; }
@media (max-width: 600px) {
  #routeNav { display: block; }
  .route-status { grid-template-columns: 1fr auto; }
  .route-status strong { grid-column: 1 / -1; font-size: 12px; }
  .route-status select { grid-column: 1 / -1; }
  .route-controls { margin-top: 7px; }
  .route-controls button { flex: 1; }
  .route-controls strong, .detail-bottom button strong { font-size: 12px; }
}

.art-association { font-size: 13px; line-height: 1.8; color: var(--muted); margin: 8px 0 14px; }
