#historical-offers {
  padding: clamp(26px, 3.6vw, 54px) 0;
  background: white;
  color: #193448;
  font-family: "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}
#historical-offers [hidden] { display: none; }
.of-heading, .of-bottom, .of-controls, .of-filters { display: flex; align-items: center; }
.of-heading, .of-bottom { justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.of-heading { margin-bottom: 18px; }
#historical-offers h2 { margin: 0; font-size: clamp(22px, 2.3vw, 34px); line-height: 1.25; letter-spacing: -.025em; }
.of-filters { padding: 3px; gap: 2px; border: 1px solid #dce4e6; border-radius: 26px; }
#historical-offers button { font: inherit; cursor: pointer; color: inherit; }
#historical-offers .of-filters button {
  height: 34px; padding: 0 17px; border: 0; border-radius: 22px;
  background: transparent; font-size: 14px; line-height: 1;
}
#historical-offers .of-filters button[aria-pressed=true] { background: #193e50; color: white; font-weight: bold; }
.of-track {
  position: relative; display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain; scrollbar-width: thin; border-radius: 16px;
}
.of-ready .of-track { scrollbar-width: none; }
.of-ready .of-track::-webkit-scrollbar { display: none; }
.of-track:focus-visible, #historical-offers :is(button,a):focus-visible {
  outline: 3px solid #a24c16; outline-offset: 2px;
}
.of-card {
  --paper: #f2f4eb; --ink: #163c30; --muted: #505d52; --rule:#cdd5c8;
  --gutter: clamp(25px, 3.5vw, 52px);
  display: grid; box-sizing: border-box; flex: 0 0 100%; min-width: 0;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  grid-template-areas: "copy art" "details art";
  background: var(--paper); color: var(--ink); scroll-snap-align: start;
}
.of-card[data-palette=ochre] { --paper: #f7f1e5; --ink: #4c3823; --muted: #685f50; --rule: #d8cfbd; }
.of-card[data-palette=blue] { --paper: #edf2f4; --ink: #193b52; --muted: #50616c; --rule: #c8d5db; }
.of-card[data-palette=clay] { --paper: #f7efe7; --ink: #553522; --muted: #69594e; --rule: #dacdbf; }
.of-card[data-palette=plum] { --paper: #f4eef2; --ink: #503347; --muted: #695963; --rule: #d9cdd5; }
.of-copy {
  grid-area: copy; min-width: 0; box-sizing: border-box; display: flex; flex-direction: column;
  justify-content: space-between; gap: 26px;
  padding: clamp(24px, 2.7vw, 38px) var(--gutter) 20px;
}
.of-mast {
  display: grid; grid-template-columns: minmax(0, 1fr) max-content; align-items: center;
  gap: 10px; min-height: 66px; width: 100%;
}
.of-region {
  margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; font-weight: 550;
  white-space: nowrap; text-align: right;
}
.of-school-logo {
  --mark-width: 178px; --mark-height: 64px;
  display: block; width: var(--mark-width); height: var(--mark-height);
  max-width: 100%; object-fit: contain; object-position: left center;
}
.of-card[data-logo-format=long] .of-school-logo { --mark-width: 220px; --mark-height: 53px; }
.of-card[data-logo-format=shield] .of-school-logo { --mark-width: 76px; --mark-height: 65px; }
.of-card[data-logo-format=block] .of-school-logo { --mark-width: 82px; --mark-height: 58px; }
.of-identity { min-height: clamp(96px, 8.2vw, 119px); }
.of-card h3 {
  margin: 0; color: var(--ink); font: 700 clamp(32px, 3.3vw, 52px)/1.2 "Noto Serif SC", "Source Han Serif SC", SimSun, serif;
  letter-spacing: -.025em; text-wrap: balance; overflow-wrap: anywhere;
}
.of-program {
  color: var(--ink); margin: .42em 0 0; font-size: clamp(17px, 1.45vw, 23px);
  font-weight: 600; line-height: 1.4;
}
.of-english { margin: .18em 0 0; color: var(--muted); font: italic clamp(14px, 1.1vw, 17px)/1.35 Georgia, serif; }
.of-facts {
  grid-area: details; margin: 0 var(--gutter); padding: 15px 0 clamp(21px, 2.3vw, 34px);
  border-top: 1px solid var(--rule); display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px 16px;
}
.of-details { display: flex; align-items: start; flex-wrap: wrap; gap: 8px clamp(16px, 2.2vw, 34px); margin: 0; }
.of-details dt { margin: 0 0 2px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.of-details dd { margin: 0; font-weight: 650; font-size: 15px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.of-facts a {
  color: var(--ink); display: inline-flex; align-items: center; gap: 5px; min-height: 32px;
  font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.of-facts a:hover { text-decoration: underline; text-underline-offset: 4px; }
.of-facts a svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.of-illustration { grid-area: art; position: relative; min-width: 0; min-height: clamp(316px, 26vw, 370px); }
.of-art { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.of-bottom { margin-top: 10px; }
.of-rank-source { font-size: 13px; color: #4d6372; text-decoration: none; }
.of-rank-source:hover { text-decoration: underline; }
.of-controls { gap: 6px; }
.of-position { margin-right: 7px; color: #435c69; font-size: 13px; font-variant-numeric: tabular-nums; }
.of-controls button {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: white; border: 1px solid #c4d1d5;
}
.of-controls button:hover { background: #f0f4f5; }
.of-controls svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.of-controls [data-playing=true] .of-start, .of-controls [data-playing=false] .of-stop { display: none; }
#historical-offers:not(.of-ready) :is(.of-filters,.of-controls) { display: none; }
@media (min-width: 661px) and (max-width: 920px) {
  .of-card { --gutter: 22px; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .of-copy { gap: 21px; }
  .of-facts { gap: 3px 9px; }
  .of-details { gap: 8px 14px; }
  .of-details dd { font-size: 14px; }
}
@media (max-width: 660px) {
  .of-heading { gap: 8px; margin-bottom: 11px; }
  #historical-offers .of-filters button { height: 32px; padding: 0 10px; font-size: 13px; }
  .of-card {
    --gutter: clamp(16px, 5vw, 27px); grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 1fr auto auto; grid-template-areas: "copy" "art" "details";
  }
  .of-copy { padding: 16px var(--gutter) 15px; justify-content: start; gap: 13px; }
  .of-mast { min-height: 52px; }
  .of-region { font-size: 12px; }
  .of-school-logo { --mark-width: 145px; --mark-height: 51px; }
  .of-card[data-logo-format=long] .of-school-logo { --mark-width: 171px; --mark-height: 43px; }
  .of-card[data-logo-format=shield] .of-school-logo { --mark-width: 61px; --mark-height: 52px; }
  .of-card[data-logo-format=block] .of-school-logo { --mark-width: 65px; --mark-height: 47px; }
  .of-identity { min-height: 77px; }
  .of-card h3 { font-size: clamp(26px, 7vw, 36px); }
  .of-program { margin-top: 5px; font-size: 17px; }
  .of-english { font-size: 14px; }
  .of-illustration { height: clamp(112px, 35vw, 195px); min-height: 0; }
  .of-facts { border-top: 0; padding: 11px 0 13px; gap: 4px 8px; }
  .of-details { gap: 4px 14px; }
  .of-details dt { font-size: 11px; }
  .of-details dd { font-size: 13px; }
  .of-facts a { font-size: 12px; gap: 3px; }
  .of-facts a svg { width: 14px; }
  .of-rank-source { font-size: 12px; }
  .of-bottom { gap: 5px; }
  .of-controls { gap: 4px; }
  .of-controls button { width: 37px; height: 37px; }
}
@media (max-width: 360px) {
  .of-facts { flex-direction: column; align-items: flex-start; gap: 2px; padding-bottom: 9px; }
  .of-facts a { min-height: 28px; }
}
