/* Shared identity and edition navigation; the lightweight palette stays local. */
.original-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #89967a;
  border-radius: 24px;
  color: #244838;
  background: #fffdf5;
  font: 500 12px/1.4 var(--sans, sans-serif);
  white-space: nowrap;
  text-decoration: none;
}
.original-switch:hover { background: #e9eddc; border-color: #244838; }
.original-switch:focus-visible { outline: 2px solid #244838; outline-offset: 4px; }
.header { gap: 20px; }
.header .brand { gap: 10px; }
.header .brand img { width: 38px; height: 38px; flex-shrink: 0; }
.header .brand-name { font-size: 20px; letter-spacing: 1px; line-height: 1.35; }
.header .brand-name > span { font-size: 8px; letter-spacing: 1.6px; margin-top: 3px; }
.header .brand-city { font-size: 11px; white-space: nowrap; }
.header nav { margin-left: auto; gap: 24px; }
.header .collection-button { min-height: 44px; }
.route-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.detail-location { margin: 14px 0; font-size: 12px; line-height: 1.8; color: #64735c; }
.detail-discover p { white-space: pre-line; }
.detail-history { margin: 16px 0; padding: 14px 16px; border: 1px solid #d5dbc8; border-radius: 10px; background: #eef0df; }
.detail-history summary { cursor: pointer; min-height: 44px; padding: 10px 0; color: #244838; font-size: 13px; font-weight: 600; line-height: 1.7; }
.detail-history p { margin: 10px 0; font-size: 13px; line-height: 1.9; color: #435b48; }
.detail-history small { display: block; color: #64735c; font-size: 11px; line-height: 1.8; }
.history-sources { display: grid; gap: 8px; margin-top: 12px; }
.history-sources a { font-size: 11px; line-height: 1.7; color: #4c654d; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.detail-history summary:focus-visible { outline: 2px solid #244838; outline-offset: 4px; }
.route-period { display: block; margin: 0 0 8px; color: #68775d; font-size: 11px; letter-spacing: .6px; }
#history-facts > p, .history-source-card p { color: #64735c; font-size: 13px; line-height: 1.9; }
.history-source-card { margin: 18px 0; padding: 20px; border: 1px solid #d5dbc8; border-radius: 10px; background: #f5f3e7; }
.history-source-card h3 { margin: 0 0 10px; font-size: 15px; line-height: 1.8; }
.history-source-card > a { font-size: 12px; }
.history-source-card a { overflow-wrap: anywhere; }
.detail-art strong { max-width: 140px; font-size: 24px; letter-spacing: 0; text-wrap: balance; }
.detail-art > .icon { flex-shrink: 0; }
.source-header, .notes-header { flex-wrap: wrap; }
.edition-brand { display: inline-flex; align-items: center; gap: 10px; }
.edition-brand img { width: 36px; height: 36px; flex-shrink: 0; }
.source-header > .original-switch, .notes-header > .original-switch { margin-left: auto; }
@media (max-width: 1180px) {
  .header { gap: 14px; }
  .header nav { gap: 16px; }
}
@media (max-width: 960px) {
  .header { height: auto; min-height: 92px; padding-block: 16px; flex-wrap: wrap; }
  .header .brand { margin-right: auto; }
  .header .original-switch { order: 1; }
  .header nav { order: 2; width: calc(100% - 160px); margin-left: 0; }
  .header .collection-button { order: 3; margin-left: auto; }
  .route-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .header { gap: 12px; padding: 16px; }
  .header .brand img { width: 30px; height: 30px; }
  .header .brand { gap: 7px; }
  .header .brand-name { font-size: 15px; letter-spacing: 0; }
  .header .brand-name > span { font-size: 6px; letter-spacing: 1px; }
  .header .original-switch { padding-inline: 12px; font-size: 11px; }
  .header nav { width: auto; gap: 18px; }
  .header nav a:first-child { display: inline-flex; }
  .header nav a { min-height: 44px; display: inline-flex; align-items: center; font-size: 12px; }
  .source-header, .notes-header { gap: 14px; }
  .source-header > .original-switch, .notes-header > .original-switch { order: 1; }
  .source-header > a:not(.edition-brand):not(.original-switch),
  .notes-header > a:not(.edition-brand):not(.original-switch) { order: 2; flex-basis: 100%; }
  .source-header strong { font-size: 18px; }
  .notes-header > a:first-child { font-size: 18px; letter-spacing: 0; }
}
@media (max-width: 460px) {
  .intro h1 { font-size: clamp(28px, 8vw, 32px); }
}
