/* 随轩 · 导览 — a corridor with windows.
   轩 is "a corridor or small room with windows", so the guide is one plastered wall (the house's own plaster) with
   eight garden windows cut into it: moon, octagon, hexagon, square with cut corners, begonia, scroll, fan, and Windows 95.
   Each window frames a view into one part of the house. The type stays quiet; the windows carry the page.
   wall #E9EBE5 · stone #8C938C / #B7BDB4 · ink #1F1B17 · muted #57534D · paper #F6F7F3 · seal #C23A2E */

.k-guide {
  --tr-ink: #1F1B17; --tr-muted: #57534D; --tr-paper: #F6F7F3; --tr-seal: #C23A2E;
  --tr-stone: #8C938C; --tr-stone-hi: #B7BDB4; --tr-bar: 64px;
}
.tr { position: relative; }
.tr-hero, .tr-ch, .tr-end { scroll-margin-top: var(--tr-bar); }
.tr-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- shared: tag line, hotspots, buttons ---------- */
.tr-tag { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 20px; font-size: 13px; line-height: 1.4; color: var(--tr-muted); }
.tr-tag b { font-family: "EB Garamond", var(--f-serif); font-size: 28px; font-weight: 500; line-height: 1; color: var(--acc, var(--tr-seal)); font-variant-numeric: lining-nums; margin-right: 2px; }
.tr-tag .bdg { height: 24px; }

.tr-hot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tr-hs {
  display: inline-flex; align-items: stretch; min-height: 40px; max-width: 100%;
  border: 1px solid rgba(31, 27, 23, .26); background: rgba(246, 247, 243, .7);
  color: var(--tr-ink); font-size: 14px; line-height: 1.45; text-align: left; text-decoration: none;
  transition: border-color .2s, background-color .2s, transform .2s;
}
.tr-hs > i {
  flex: none; display: grid; place-items: center; width: 40px;
  background: var(--acc, var(--tr-seal)); color: var(--acc-ink, #FFFFFF);
  font-style: normal; font-family: var(--f-ui); font-size: 19px; font-weight: 700; line-height: 1;
}
.tr-hs > span { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; padding: 7px 14px; min-width: 0; }
.tr-hs > span em { font-style: normal; font-size: 12px; color: var(--tr-muted); }
.tr-hs--go > i { background: transparent; color: var(--acc, var(--tr-seal)); border-right: 1px solid rgba(31, 27, 23, .16); font-size: 17px; }
.tr-hs--q > i { background: var(--tr-ink); color: var(--tr-paper); }
.tr-hs--q > span { font-family: var(--f-serif); font-weight: 700; font-size: 14.5px; }
.tr-hs:hover, .tr-hs:focus-visible { border-color: var(--tr-ink); background: var(--tr-paper); }
.tr-hs:active { transform: translateY(1px); }
.tr-hs:focus-visible { outline: 2px solid var(--acc, var(--tr-seal)); outline-offset: 2px; }

/* ---------- 00 · the entrance ---------- */
.tr-hero { min-height: calc(100svh - var(--tr-bar)); display: grid; align-items: center; padding: clamp(36px, 6vh, 72px) 0 clamp(48px, 8vh, 88px); }
.tr-hero__in {
  width: min(1280px, calc(100% - 64px)); margin-inline: auto; padding-right: 64px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 80px); align-items: center;
}
.tr-hero .tr-tag span:first-child::after { content: ""; display: inline-block; width: 28px; height: 1px; margin-left: 12px; vertical-align: middle; background: currentColor; opacity: .6; }
.tr-hero__mark { width: min(400px, 78%); height: auto; margin: 0 0 12px -8px; mix-blend-mode: multiply; }
.tr-hero__tx { container-type: inline-size; }
.tr-hero__h { font-family: var(--f-serif); font-weight: 900; font-size: clamp(24px, calc(100cqi / var(--n, 12)), 44px); line-height: 1.32; letter-spacing: .02em; color: var(--tr-ink); text-wrap: balance; }
.tr-hero__h > span:not(.vh) { display: block; }
.yh:lang(en) .tr-hero__h { letter-spacing: 0; font-size: clamp(24px, calc(100cqi / var(--n, 18)), 38px); }
.tr-card {
  margin-top: 28px; max-width: 35em; padding: 24px 28px 22px;
  background: rgba(246, 247, 243, .88) url("../img/tex-paper.png"); border: 1px solid rgba(31, 27, 23, .14);
  box-shadow: 0 26px 50px -34px rgba(31, 27, 23, .5);
}
.tr-card h2 { font-family: var(--f-serif); font-weight: 900; font-size: 21px; letter-spacing: .04em; }
.tr-card p { margin-top: 8px; font-size: 15px; line-height: 1.9; color: #3A3631; }
.tr-card__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tr-card__acts .btn { min-height: 42px; padding: 0 18px; font-size: 14.5px; }
.tr-card .tr-hot { margin-top: 14px; --acc: var(--tr-seal); }
.btn i { font-style: normal; }

/* the plan of the house, painted on the wall: a covered walk past the eight windows */
.tr-map {
  position: relative; justify-self: center; aspect-ratio: 560 / 600;
  width: min(100%, 560px, calc((100svh - var(--tr-bar) - 96px) * 560 / 600));
}
.tr-map__t {
  position: absolute; z-index: 1; top: 0; left: 0; padding: 10px 6px; writing-mode: vertical-rl;
  font-family: var(--f-serif); font-weight: 700; font-size: 15px; letter-spacing: .3em; color: var(--tr-ink);
  border: 1px solid rgba(31, 27, 23, .5); outline: 1px solid rgba(31, 27, 23, .25); outline-offset: 3px; background: rgba(246, 247, 243, .7);
}
.yh:lang(en) .tr-map__t { writing-mode: horizontal-tb; letter-spacing: .04em; padding: 6px 12px; font-size: 14px; }
.tr-map__plan { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tr-map__walk { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.tr-map__walk--out { stroke: var(--tr-stone); stroke-width: 18; }
.tr-map__walk--in { stroke: #E2E5DE; stroke-width: 12; }
.tr-map__route { fill: none; stroke: var(--tr-seal); stroke-width: 2; stroke-dasharray: 3 7; stroke-linecap: round; opacity: .85; }
.tr-map__here { fill: var(--tr-seal); stroke: #E9EBE5; stroke-width: 3; }
.tr-map ol { position: absolute; inset: 0; }
.tr-map__st { position: absolute; transform: translate(-50%, -50%); }
.tr-map__st a { display: flex; align-items: center; gap: 7px; color: var(--tr-ink); text-decoration: none; }
.tr-map__st.is-l a { flex-direction: row-reverse; }
.tr-map__st span { padding: 1px 6px; font-size: 13.5px; line-height: 1.5; white-space: nowrap; background: rgba(233, 235, 229, .92); }
.tr-map__st span b { margin-right: 5px; font-family: "EB Garamond", var(--f-serif); font-size: 14px; font-weight: 500; color: var(--acc); }
.tr-ico { display: block; width: 40px; height: auto; color: #5E655F; overflow: visible; transition: color .2s; }
.tr-ico path, .tr-ico rect { fill: var(--tr-paper); transition: fill .2s; }
.tr-ico.is-w95 { width: 38px; }
.tr-map__st a:hover .tr-ico, .tr-map__st a:focus-visible .tr-ico { color: var(--tr-ink); }
.tr-map__st a:hover .tr-ico path, .tr-map__st a:hover .tr-ico rect, .tr-map__st a:focus-visible .tr-ico path { fill: var(--acc); }
.tr-map__st a:hover span, .tr-map__st a:focus-visible span { text-decoration: underline; text-underline-offset: 3px; }
.tr-map__in { position: absolute; transform: translate(-50%, 16px); font-size: 12.5px; font-weight: 700; color: var(--tr-seal); white-space: nowrap; }
.tr-map__out { position: absolute; display: inline-flex; align-items: center; gap: 6px; transform: translate(-80%, -50%); font-size: 13px; color: var(--tr-ink); text-decoration: none; white-space: nowrap; }
.tr-map__out::before {
  content: "签"; display: grid; place-items: center; width: 22px; height: 28px; border-radius: 1px 1px 5px 5px;
  background: #7A2E22; color: #E9CF95; font-family: var(--f-brush); font-size: 15px; box-shadow: inset 0 3px 0 #3A1810;
}
.tr-map__out span { padding: 1px 6px; background: rgba(233, 235, 229, .92); }
.tr-map__out:hover span { text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .tr-map__walk { stroke-dasharray: 1; stroke-dashoffset: 1; animation: tr-walk 2.4s cubic-bezier(.45, .05, .3, 1) .2s forwards; }
  .tr-map__route, .tr-map__out, .tr-map__in { opacity: 0; animation: tr-fade .6s ease 2.3s forwards; }
  .tr-map__st { opacity: 0; animation: tr-st .45s ease-out forwards; animation-delay: calc(.3s + var(--i) * .24s); }
}
@keyframes tr-walk { to { stroke-dashoffset: 0; } }
@keyframes tr-fade { to { opacity: 1; } }
@keyframes tr-st { from { opacity: 0; transform: translate(-50%, -50%) scale(.8); } to { opacity: 1; transform: translate(-50%, -50%); } }

/* ---------- 01–08 · the windows ---------- */
.tr-ch { position: relative; min-height: calc(100svh - var(--tr-bar)); display: grid; align-items: center; padding: clamp(48px, 8vh, 96px) 0; }
.tr-ch__in {
  width: min(1280px, calc(100% - 64px)); margin-inline: auto; padding-right: 64px;
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); grid-template-areas: "hd view" "bd view";
  grid-template-rows: auto 1fr; column-gap: clamp(36px, 5vw, 88px); align-items: center;
}
.tr-ch__hd { grid-area: hd; align-self: end; container-type: inline-size; }
.tr-ch__bd { grid-area: bd; align-self: start; }
.tr-ch__view { grid-area: view; position: relative; display: grid; justify-items: center; }
.tr-ch__h { font-family: var(--f-serif); font-weight: 900; font-size: clamp(32px, calc(100cqi / var(--n, 7)), 66px); line-height: 1.16; letter-spacing: .02em; color: var(--tr-ink); text-wrap: balance; }
.tr-ch__h span { display: block; }
.yh:lang(en) .tr-ch__h { font-size: clamp(32px, calc(100cqi / var(--n, 9)), 58px); letter-spacing: -.005em; line-height: 1.12; }
.tr-ch__lead { margin-top: 22px; max-width: 31em; font-family: var(--f-serif); font-size: 17px; line-height: 1.95; color: #36322D; text-wrap: pretty; }
.yh:lang(en) .tr-ch__lead { font-size: 17.5px; line-height: 1.75; }

/* a window: the view clipped to its opening, the moulded stone frame drawn over the edge */
.tr-win { margin: 0; width: 100%; display: grid; justify-items: center; gap: 16px; }
.tr-win__box {
  position: relative; aspect-ratio: var(--w) / var(--h);
  width: min(100%, calc(min(64svh, 620px) * var(--w) / var(--h)));
}
.tr-win--scroll .tr-win__box, .tr-win--fan .tr-win__box { width: min(100%, calc(min(56svh, 520px) * var(--w) / var(--h))); }
.tr-win__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #C5CBC1; }
.tr-win__frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.tr-win__depth { fill: none; stroke: rgba(24, 22, 18, .5); stroke-width: 30; }
.tr-win__lift { fill: none; stroke: rgba(40, 44, 38, .2); stroke-width: 30; }
.tr-win__edge { fill: none; stroke: var(--tr-stone); stroke-width: 27; stroke-linejoin: round; }
.tr-win__face { fill: none; stroke: var(--tr-stone-hi); stroke-width: 20; stroke-linejoin: round; }
.tr-win__hi { fill: none; stroke: #D4D8D0; stroke-width: 4; opacity: .75; stroke-linejoin: round; }
.tr-win__cap { font-size: 13px; line-height: 1.5; color: var(--tr-muted); text-align: center; }
.tr-win__cap b { margin-right: 8px; font-family: var(--f-serif); font-weight: 700; color: var(--tr-ink); }

/* a note tucked into the frame: a line from a post */
.tr-slip {
  position: absolute; z-index: 2; left: -2%; bottom: 13%; width: min(290px, 48%);
  display: grid; gap: 10px; padding: 18px 18px 14px; text-align: left; cursor: pointer;
  background: var(--tr-paper) url("../img/tex-paper.png"); color: var(--tr-ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 20px 34px -18px rgba(31, 27, 23, .5);
  transform: rotate(-2.4deg); transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s;
}
.tr-slip::before {
  content: ""; position: absolute; top: -10px; left: 50%; width: 74px; height: 20px; margin-left: -37px; transform: rotate(2deg);
  background: color-mix(in srgb, var(--acc) 26%, rgba(236, 232, 214, .9)); box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}
.tr-slip__q { font-family: var(--f-serif); font-size: 15.5px; font-weight: 600; line-height: 1.75; }
.tr-slip__by { font-size: 12px; line-height: 1.5; color: var(--tr-muted); }
.tr-slip:hover, .tr-slip:focus-visible { transform: rotate(-1deg) translateY(-3px); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 26px 40px -18px rgba(31, 27, 23, .55); }
.tr-slip:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
.tr-ch--oct .tr-slip { left: -6%; bottom: 12%; }
.tr-ch--begonia .tr-slip { left: -8%; bottom: 13%; }
.tr-ch--scroll .tr-slip { left: -5%; top: -15%; bottom: auto; transform: rotate(-3deg); }
.tr-ch--scroll .tr-slip::before { top: auto; bottom: -10px; }
.tr-ch--fan .tr-slip { left: -8%; bottom: 5%; width: min(250px, 38%); }

/* the eighth window is a window of another kind */
.tr-xp {
  width: min(100%, 560px); background: #C0C0C0; color: #000000;
  border: 2px solid; border-color: #FFFFFF #000000 #000000 #FFFFFF;
  box-shadow: inset -1px -1px 0 #808080, inset 1px 1px 0 #DFDFDF, 10px 12px 0 rgba(31, 27, 23, .14);
}
.tr-xp__tb { display: flex; align-items: center; gap: 3px; height: 26px; margin: 3px 3px 0; padding: 0 3px 0 8px; background: linear-gradient(90deg, #000080, #1084D0); color: #FFFFFF; font-family: var(--f-pixel); font-size: 13px; }
.tr-xp__tb span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tr-xp__tb i { width: 18px; height: 16px; background: #C0C0C0; border: 1px solid; border-color: #FFFFFF #000000 #000000 #FFFFFF; }
.tr-xp__mb { display: flex; gap: 16px; padding: 4px 10px 3px; font-size: 13px; }
.tr-xp__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0 4px 4px; padding: 18px 12px; background: #FFFFFF; border: 2px solid; border-color: #808080 #FFFFFF #FFFFFF #808080; }
.tr-xp__grid a { display: grid; justify-items: center; gap: 4px; padding: 10px 4px; color: #000000; text-decoration: none; text-align: center; border: 1px dotted transparent; }
.tr-xp__ico { width: 48px; height: 48px; shape-rendering: crispEdges; }
.tr-xp__grid b { font-weight: 400; font-size: 14px; padding: 1px 4px; }
.tr-xp__grid small { font-size: 12px; color: #404040; }
.tr-xp__grid a:hover b, .tr-xp__grid a:focus-visible b { background: #000080; color: #FFFFFF; }
.tr-xp__grid a:focus-visible { outline: none; border-color: #000000; }
.tr-xp__sb { margin: 0 4px 4px; padding: 3px 8px; font-size: 12px; border: 1px solid; border-color: #808080 #FFFFFF #FFFFFF #808080; }

/* ---------- ▸ · the way out: a moon gate ---------- */
.tr-end { padding: clamp(56px, 10vh, 120px) 0 0; display: grid; justify-items: center; }
.tr-end__gate {
  position: relative; width: min(640px, calc(100% - 48px)); aspect-ratio: 1; border-radius: 50%; container-type: inline-size;
  display: grid; align-content: center; justify-items: center; padding: 0 24px; text-align: center;
  background: radial-gradient(circle at 50% 30%, #F1F3ED 0%, #DDE2D8 62%, #CBD1C6 100%);
  box-shadow: inset 0 16px 34px -12px rgba(24, 22, 18, .45), 0 0 0 10px var(--tr-stone-hi), 0 0 0 13px var(--tr-stone), 0 6px 14px 13px rgba(40, 44, 38, .14);
}
.tr-end__gate > * { max-width: min(430px, 72cqi); }
.tr-end__h { font-family: var(--f-serif); font-weight: 900; font-size: clamp(30px, calc(64cqi / var(--n, 7)), 54px); line-height: 1.18; letter-spacing: .03em; }
.tr-end__h span { display: block; }
.yh:lang(en) .tr-end__h { letter-spacing: 0; font-size: clamp(28px, calc(64cqi / var(--n, 9)), 46px); }
.tr-end__lead { margin-top: 16px; font-family: var(--f-serif); font-size: 16px; line-height: 1.9; color: #36322D; }
.tr-end .draw { justify-content: center; margin-top: 24px; min-height: 0; max-width: none; }
.tr-end .draw__out { text-align: left; }
.tr-end__acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 48px; width: min(900px, calc(100% - 48px)); }
.tr-end__acts .btn { min-height: 42px; padding: 0 18px; font-size: 14.5px; }
.tr-end__note { margin-top: 28px; width: min(44em, calc(100% - 48px)); font-size: 12.5px; line-height: 1.8; color: var(--tr-muted); text-align: center; }

/* ---------- the route on the right ---------- */
.tr-rail {
  position: fixed; z-index: 30; right: 16px; top: 50%; transform: translateY(-50%); display: none;
  padding: 10px 8px 12px; background: rgba(233, 235, 229, .84); border: 1px solid rgba(31, 27, 23, .1); border-radius: 16px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: opacity .25s;
}
.tr-rail ol { display: grid; gap: 1px; }
.tr-rail a { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 7px; height: 25px; padding: 0 2px; color: var(--tr-muted); text-decoration: none; font-family: "EB Garamond", var(--f-serif); font-size: 13.5px; }
.tr-rail a::after { content: ""; width: 9px; height: 2px; background: currentColor; transition: width .2s; }
.tr-rail a b { font-weight: 500; min-width: 18px; text-align: right; font-variant-numeric: lining-nums tabular-nums; }
.tr-rail a span {
  position: absolute; right: calc(100% + 10px); padding: 3px 10px; border-radius: 12px; white-space: nowrap;
  background: var(--tr-ink); color: var(--tr-paper); font-family: var(--f-ui); font-size: 12.5px;
  opacity: 0; transform: translateX(6px); pointer-events: none; transition: opacity .18s, transform .18s;
}
.tr-rail a:hover, .tr-rail a[aria-current="true"] { color: var(--tr-ink); }
.tr-rail a[aria-current="true"] b { color: var(--tr-seal); font-weight: 700; }
.tr-rail a[aria-current="true"]::after { width: 20px; background: var(--tr-seal); }
.tr-rail a:hover span, .tr-rail a:focus-visible span { opacity: 1; transform: none; }
.tr-rail__meter { display: block; width: 2px; height: 44px; margin: 8px 6px 0 auto; background: rgba(31, 27, 23, .14); position: relative; }
.tr-rail__meter i { position: absolute; left: 0; right: 0; top: 0; height: 0; background: var(--tr-seal); }
.tr-rail.is-away { opacity: 0; pointer-events: none; }

/* ---------- the notes panel ---------- */
.trdz[hidden] { display: none; }
.trdz { position: fixed; inset: 0; z-index: 90; }
.trdz__scrim { position: absolute; inset: 0; background: rgba(31, 27, 23, .34); opacity: 0; transition: opacity .25s; }
.trdz__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(580px, 100%); display: flex; flex-direction: column;
  background: var(--tr-paper) url("../img/tex-paper.png"); color: var(--tr-ink);
  border-top: 5px solid var(--dz-acc, var(--tr-seal)); box-shadow: -30px 0 60px -36px rgba(31, 27, 23, .6);
  transform: translateX(104%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); outline: none;
}
.trdz.is-open .trdz__scrim { opacity: 1; }
.trdz.is-open .trdz__panel { transform: none; }
.trdz__head { display: flex; align-items: center; gap: 10px; padding: 12px 14px 12px 32px; border-bottom: 1px solid rgba(31, 27, 23, .12); }
.trdz__code { font-family: "EB Garamond", var(--f-serif); font-size: 16px; color: var(--tr-muted); }
.trdz__room:empty { display: none; }
.trdz__x { margin-left: auto; width: 42px; height: 42px; border-radius: 50%; font-size: 28px; line-height: 1; color: var(--tr-ink); }
.trdz__x:hover { background: rgba(31, 27, 23, .08); }
.trdz__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 28px 32px 44px; }
.trdz__doc > * + * { margin-top: 16px; }
.trdz__t { font-family: var(--f-serif); font-weight: 900; font-size: 28px; line-height: 1.3; letter-spacing: .02em; }
.trdz__lead { font-family: var(--f-serif); font-size: 17px; font-weight: 600; line-height: 1.85; color: #3A3631; }
.trdz__doc p { font-family: var(--f-serif); font-size: 16px; line-height: 1.95; }
.yh:lang(en) .trdz__doc p { line-height: 1.75; }
.trdz__q { margin: 26px 0 0; padding: 2px 0 2px 18px; border-left: 3px solid var(--dz-acc, var(--tr-seal)); }
.trdz__q p { font-weight: 700; font-size: 17px; line-height: 1.8; }
.trdz__q cite { display: block; margin-top: 8px; font-style: normal; font-size: 13px; color: var(--tr-muted); }
.trdz__h3 { margin-top: 30px !important; font-size: 13px; font-weight: 500; letter-spacing: .12em; color: var(--tr-muted); }
.trdz__path li { display: grid; grid-template-columns: 50px minmax(0, 1fr); column-gap: 12px; padding: 11px 0; border-top: 1px solid rgba(31, 27, 23, .1); }
.trdz__path li:last-child { border-bottom: 1px solid rgba(31, 27, 23, .1); }
.trdz__path time { grid-row: span 2; font-family: "EB Garamond", var(--f-serif); font-size: 18px; line-height: 1.4; color: var(--dz-acc, var(--tr-seal)); }
.trdz__path a { font-family: var(--f-serif); font-weight: 700; font-size: 16px; line-height: 1.5; text-decoration: none; }
.trdz__path a:hover, .trdz__path a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.trdz__path span { font-size: 13.5px; line-height: 1.6; color: var(--tr-muted); }
.trdz__go { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px !important; }
.trdz__dl { margin-top: 20px; }
.trdz__dl div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-top: 1px solid rgba(31, 27, 23, .1); }
.trdz__dl dt { font-family: var(--f-serif); font-weight: 900; }
.trdz__dl dd { margin: 0; font-size: 15px; line-height: 1.8; }
.trdz__foot { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid rgba(31, 27, 23, .12); }
.trdz__foot .btn { min-height: 38px; padding: 0 16px; font-size: 14px; }
.trdz__foot .btn[disabled] { opacity: .35; pointer-events: none; }
.trdz__count { margin: 0 auto; font-family: "EB Garamond", var(--f-serif); font-size: 15px; color: var(--tr-muted); }
html.trdz-open { overflow: hidden; }

/* ---------- widths ---------- */
@container yh (min-width: 1100px) {
  .tr-rail { display: block; }
}
@container yh (max-width: 1099px) {
  .tr-hero__in, .tr-ch__in { padding-right: 0; }
}
@container yh (max-width: 980px) {
  .tr-hero { min-height: 0; padding: 40px 0 56px; }
  .tr-hero__in { grid-template-columns: minmax(0, 1fr); width: calc(100% - 40px); gap: 44px; }
  .tr-map { width: min(100%, 520px); }
  .tr-ch { min-height: 0; padding: 64px 0; }
  .tr-ch + .tr-ch { border-top: 1px solid rgba(31, 27, 23, .08); }
  .tr-ch__in { width: calc(100% - 40px); grid-template-columns: minmax(0, 1fr); grid-template-areas: "hd" "view" "bd"; grid-template-rows: auto; row-gap: 30px; }
  .tr-ch__hd, .tr-ch__bd { align-self: auto; }
  .tr-ch__lead { margin-top: 0; }
  .tr-win__box, .tr-win--scroll .tr-win__box, .tr-win--fan .tr-win__box { width: min(100%, calc(min(58svh, 520px) * var(--w) / var(--h))); }
  .tr-slip, .tr-ch--oct .tr-slip, .tr-ch--begonia .tr-slip, .tr-ch--scroll .tr-slip, .tr-ch--fan .tr-slip {
    position: relative; left: auto; bottom: auto; width: min(100%, 440px); margin-top: 18px; transform: rotate(-1deg);
  }
  .tr-end__acts { margin-top: 40px; }
}
@container yh (max-width: 560px) {
  .tr-hero__mark { width: 72%; }
  .tr-card { padding: 20px 18px 18px; }
  .tr-ch__h { font-size: clamp(31px, 9vw, 40px); }
  .yh:lang(en) .tr-ch__h { font-size: clamp(28px, 8vw, 36px); }
  .tr-ch__lead { font-size: 16px; line-height: 1.9; }
  .tr-hs > span { padding: 7px 12px; }
  .tr-map__st span { font-size: 12px; padding: 0 4px; }
  .tr-map__st span b { font-size: 12.5px; margin-right: 3px; }
  .tr-ico { width: 30px; }
  .tr-ico.is-w95 { width: 28px; }
  .tr-map__t { font-size: 13px; padding: 8px 4px; }
  .tr-map__out, .tr-map__in { font-size: 12px; }
  .tr-xp__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 12px 6px; }
  .tr-xp__ico { width: 40px; height: 40px; }
  .tr-xp__grid small { display: none; }
  .tr-end__gate { aspect-ratio: auto; border-radius: 50% 50% 18px 18px / 30% 30% 18px 18px; padding: 84px 22px 44px; }
  .tr-end__gate > * { max-width: 100%; }
  .trdz__body { padding: 22px 20px 36px; }
  .trdz__head { padding-left: 20px; }
  .trdz__t { font-size: 24px; }
}

@media (prefers-reduced-motion: no-preference) {
  html:has(.tr) { scroll-behavior: smooth; }
}
@media print {
  .tr-rail, .trdz, .tr-map, .tr-slip, .tr-hot { display: none !important; }
  .tr-ch, .tr-hero { min-height: 0; break-inside: avoid; }
}
