/* V64: selected exhibition UI, responsive comparison, and legacy-panel cleanup. */

body[data-title-key="exhibitionsTitle"] .v63-exhibition-timeline {
  max-width: var(--content);
  margin: 0 auto;
  padding: clamp(46px, 6vw, 78px) var(--page-pad) clamp(40px, 6vw, 80px);
}

body[data-title-key="exhibitionsTitle"] .v63-exhibition-timeline ol {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

body[data-title-key="exhibitionsTitle"] .v63-exhibition-timeline ol::before {
  content: "";
  position: absolute;
  top: 18px;
  inset-inline: 0;
  height: 1px;
  background: rgba(119, 115, 109, 0.18);
}

body[data-title-key="exhibitionsTitle"] .v63-exhibition-timeline a {
  position: relative;
  display: grid;
  gap: 3px;
  padding-top: 36px;
  color: var(--ink-soft);
  text-decoration: none;
}

body[data-title-key="exhibitionsTitle"] .v63-exhibition-timeline a::before {
  content: "";
  position: absolute;
  top: 14px;
  inset-inline-start: 0;
  width: 9px;
  height: 9px;
  border: 1px solid var(--ink-soft);
  border-radius: 50%;
  background: var(--paper);
}

body[data-title-key="exhibitionsTitle"] .v63-exhibition-timeline :where(span, time) {
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

body[data-title-key="exhibitionsTitle"] .v63-exhibition-timeline strong {
  font-size: 12px;
  font-weight: 300;
}

body[data-title-key="exhibitionsTitle"] .v63-exhibition-timeline a:hover,
body[data-title-key="exhibitionsTitle"] .v63-exhibition-timeline a:focus-visible {
  color: var(--ink);
}

body[data-title-key="exhibitionsTitle"] .v63-exhibition-timeline-target {
  scroll-margin-top: calc(var(--header-height) + 18px);
}

.first-exhibition-title-strip {
  display: none;
}

.v63-bussot-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.v63-bussot-facts > div {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 24px clamp(8px, 2vw, 30px);
  border-inline-end: 1px solid var(--line-soft);
}

.v63-bussot-facts > div:last-child {
  border-inline-end: 0;
}

.v63-bussot-facts dt {
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.5;
}

.v63-bussot-facts dd {
  order: -1;
  margin: 0;
  color: var(--ink);
  font-size: clamp(24px, 3.6vw, 50px);
  font-weight: 200;
  line-height: 1;
}

.v63-bussot-comparison {
  width: min(880px, 100%);
  margin: clamp(72px, 9vw, 132px) auto 0;
  padding: 0;
}

.v63-bussot-comparison > header {
  max-width: 760px;
  margin-bottom: clamp(28px, 4vw, 46px);
}

.v63-bussot-comparison > header h2 {
  margin-bottom: 0;
}

.v63-comparison-board {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: transparent;
}

.v63-comparison-head,
.v63-comparison-board li {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.v63-comparison-head {
  color: var(--ink-soft);
  background: rgba(213, 194, 161, 0.06);
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.v63-comparison-head > span {
  display: flex;
  min-width: 0;
  align-items: center;
  padding: 14px clamp(14px, 2vw, 24px);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.v63-comparison-head > span + span {
  border-inline-start: 1px solid var(--line-soft);
}

.v63-comparison-board ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.v63-comparison-board li {
  position: relative;
  border-bottom: 1px solid var(--line-soft);
}

.v63-comparison-board li:last-child {
  border-bottom: 0;
}

.v63-comparison-event {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: 4px;
  min-width: 0;
  padding: clamp(16px, 2vw, 22px) clamp(14px, 2.2vw, 24px);
}

.v63-comparison-event.is-2013 {
  border-inline-start: 1px solid var(--line-soft);
  text-align: start;
}

.v63-comparison-event.is-empty {
  color: rgba(119, 115, 109, 0.58);
}

.v63-comparison-date {
  color: var(--ink);
  direction: ltr;
  font-size: clamp(13px, 1.35vw, 16px);
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  unicode-bidi: isolate;
  white-space: normal;
}

.v63-comparison-label {
  color: var(--ink-soft);
  font-size: 11px;
  hyphens: auto;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.v63-comparison-bridge {
  position: absolute;
  z-index: 1;
  left: calc(50% - 4px);
  top: calc(50% - 4px);
  width: 8px;
  height: 8px;
  border: 1px solid rgba(213, 194, 161, 0.86);
  border-radius: 50%;
  background: var(--paper);
  pointer-events: none;
}

.v63-comparison-bridge::before,
.v63-comparison-bridge::after {
  content: none;
}

.v63-record-category {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  margin-bottom: 12px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  background: rgba(251, 250, 247, 0.66);
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.045em;
  line-height: 1.45;
}

.video-frame > .v63-record-category {
  margin-bottom: 14px;
}

.v63-mcdonalds-country-index {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px clamp(18px, 3vw, 44px);
}

.v63-mcdonalds-country h3 {
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
}

.v63-mcdonalds-country ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.v63-mcdonalds-country button {
  display: grid;
  width: 100%;
  min-height: 40px;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  color: var(--ink-soft);
  text-align: start;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.v63-mcdonalds-country button:hover,
.v63-mcdonalds-country button:focus-visible {
  color: var(--ink);
  background: rgba(213, 194, 161, 0.09);
}

.v63-mcdonalds-country button span {
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.v63-mcdonalds-country button strong {
  overflow: hidden;
  font-size: 11px;
  font-weight: 300;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1060px) {
  body[data-title-key="bussotTitle"] .first-exhibition-title-strip {
    position: fixed;
    z-index: 90;
    top: var(--header-height);
    inset-inline: 0;
    height: 38px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 0 var(--page-pad);
    border-bottom: 1px solid var(--line-soft);
    background: rgba(251, 250, 247, 0.95);
    color: var(--ink-soft);
    pointer-events: none;
  }

  body[data-title-key="bussotTitle"] .first-exhibition-title-strip-text {
    overflow: hidden;
    font-size: 11px;
    line-height: 38px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body[data-title-key="bussotTitle"] .first-exhibition-title-strip-number {
    min-width: 44px;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
    text-align: end;
  }

  .v63-mcdonalds-country-index {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body[data-title-key="exhibitionsTitle"] .v63-exhibition-timeline {
    padding: 42px 18px clamp(36px, 8vw, 58px);
  }

  .v63-bussot-facts {
    grid-template-columns: 1fr 1fr;
    padding-inline: 18px;
  }

  .v63-bussot-facts > div:nth-child(2) {
    border-inline-end: 0;
  }

  .v63-bussot-facts > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-soft);
  }

  .v63-comparison-head > span {
    padding: 12px;
  }

  .v63-comparison-event {
    padding: 16px 12px;
  }

  .v63-mcdonalds-country-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 520px) {
  .v63-comparison-head > span {
    padding-inline: 10px;
  }

  .v63-comparison-event {
    padding: 15px 10px;
  }

  .v63-comparison-date {
    font-size: 12px;
  }

  .v63-mcdonalds-country-index {
    grid-template-columns: 1fr;
    gap-block: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v63-mcdonalds-country button {
    transition: none;
  }
}

@media print {
  .first-exhibition-title-strip {
    display: none !important;
  }
}
