/* ============================================================
   ATLAS GUIDE  ·  TRAVEL TOGETHER  v2.0
   travel-together.css  ·  Requires global.css + header-footer.css
   ------------------------------------------------------------
   Prefix: tt-. Borrows the home page ("The Journey" v3.0)
   vocabulary: atlas plate hero, postmark, pill search field,
   italic serif leg labels, ticket stubs on the dark band,
   dotted-leader ledger. Tokens come from global.css with
   fallbacks so the page never renders unstyled.
   ============================================================ */

.tt {
  --tt-green-900: var(--ag-green-900, #1A3A2B);
  --tt-green-800: var(--ag-green-800, #24503B);
  --tt-green-50:  var(--ag-green-50, #EEF3EF);
  --tt-gold-400:  var(--ag-gold-400, #D9BE7C);
  --tt-gold-500:  var(--ag-gold-500, #C9A85C);
  --tt-gold-700:  var(--ag-gold-700, #8F7434);
  --tt-parch:     var(--ag-parchment, #F5EFE0);
  --tt-white:     var(--ag-white, #FFFFFF);
  --tt-ink:       var(--ag-ink, #1A2420);
  --tt-ink-mid:   var(--ag-ink-mid, #46524C);
  --tt-ink-light: var(--ag-ink-light, #6B7670);
  --tt-display:   var(--font-display, 'Playfair Display', Georgia, serif);
  --tt-body:      var(--font-body, 'DM Sans', system-ui, sans-serif);
  --tt-ease:      var(--ease-out, cubic-bezier(.22, 1, .36, 1));
  --tt-ivory:     #f3ecdc;
  --tt-hair:        rgba(26, 58, 43, 0.10);
  --tt-hair-strong: rgba(26, 58, 43, 0.18);
  --tt-pill: 999px;

  font-family: var(--tt-body);
  color: var(--tt-ink);
  background: var(--tt-parch);
}
.tt *, .tt *::before, .tt *::after { box-sizing: border-box; }
.tt-body { background: var(--ag-green-900, #1A3A2B); }

.tt-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.tt-container { max-width: 1320px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }

/* ---------- shared section heads (same as .hm-sec-head) ---------- */
.tt-sec-head { margin-bottom: 40px; padding-top: 22px; border-top: 2px solid var(--tt-green-900); }
.tt-sec-head-light { border-top-color: var(--tt-gold-500); }
.tt-sec-label {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--tt-display); font-style: italic; font-size: 1rem; font-weight: 400;
  color: var(--tt-gold-700); margin-bottom: 12px;
}
.tt-sec-label::before { content: ''; width: 28px; height: 1px; background: var(--tt-gold-500); }
.tt-sec-title {
  font-family: var(--tt-display); font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.04; color: var(--tt-ink); margin: 0;
}
.tt-sec-head-light .tt-sec-label { color: var(--tt-gold-400); }
.tt-sec-head-light .tt-sec-title { color: #fff; }

/* ============================================================
   1 · HERO  ·  the atlas plate
   ============================================================ */
.tt-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 80% 40%, rgba(201, 168, 92, 0.10), transparent 70%),
    repeating-linear-gradient(0deg, transparent 0 63px, rgba(255,255,255,0.018) 63px 64px),
    var(--tt-green-900);
  color: var(--tt-parch);
  padding: clamp(96px, 13vh, 140px) 0 clamp(96px, 13vh, 130px);
}
.tt-plate {
  --inset: clamp(14px, 2.4vw, 34px);
  position: absolute;
  inset: var(--inset);
  z-index: 0;
  pointer-events: none;
  border: 1px solid rgba(201, 168, 92, 0.34);
}
.tt-plate::before,
.tt-plate::after {
  content: ''; position: absolute; left: 0; right: 0; height: 7px;
  background:
    repeating-linear-gradient(90deg, rgba(201,168,92,0.55) 0 1px, transparent 1px 60px),
    repeating-linear-gradient(90deg, rgba(201,168,92,0.28) 0 1px, transparent 1px 12px);
  background-size: 100% 7px, 100% 4px;
  background-repeat: no-repeat;
}
.tt-plate::before { top: 0; }
.tt-plate::after  { bottom: 0; transform: scaleY(-1); }
.tt-plate-c { position: absolute; width: 20px; height: 20px; border: 0 solid var(--tt-gold-500); }
.tt-plate-tl { top: -3px; left: -3px;     border-top-width: 2px; border-left-width: 2px; }
.tt-plate-tr { top: -3px; right: -3px;    border-top-width: 2px; border-right-width: 2px; }
.tt-plate-bl { bottom: -3px; left: -3px;  border-bottom-width: 2px; border-left-width: 2px; }
.tt-plate-br { bottom: -3px; right: -3px; border-bottom-width: 2px; border-right-width: 2px; }
.tt-plate-label {
  position: absolute; padding: 0 8px;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em;
  color: rgba(243, 236, 220, 0.72); font-variant-numeric: tabular-nums;
}
.tt-plate-label-tl { top: 16px; left: 18px; font-family: var(--tt-display); font-style: italic; font-weight: 400; font-size: 0.86rem; letter-spacing: 0; }
.tt-plate-label-bl { bottom: 16px; left: 18px; }
.tt-plate-label-br { bottom: 16px; right: 18px; }
.tt-plate-codes { color: var(--tt-gold-400); letter-spacing: 0.08em; }

.tt-hero-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.tt-kicker {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--tt-gold-400); margin-bottom: 24px;
}
.tt-kicker-line { width: 34px; height: 1px; background: var(--tt-gold-500); }
.tt-h1 {
  font-family: var(--tt-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
  margin: 0 0 22px;
  max-width: 16ch;
  text-wrap: balance;
}
.tt-lede { max-width: 54ch; margin: 0 0 32px; font-size: clamp(0.98rem, 1.2vw, 1.1rem); line-height: 1.75; color: rgba(255, 255, 255, 0.74); }

/* ---------- picker: passports + pill field ---------- */
.tt-picker { max-width: 620px; }
.tt-chips { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tt-chips:empty { display: none; }
/* each chip is a little passport cover */
.tt-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 6px 7px 12px;
  border-radius: 4px 10px 10px 4px;
  border: 1px solid rgba(201, 168, 92, 0.35);
  border-left: 4px solid var(--tt-gold-500);
  background: linear-gradient(160deg, var(--tt-green-800), #183327);
  color: #fff; font-weight: 600; font-size: 0.92rem;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}
.tt-chip-code { font-weight: 800; font-size: 0.74rem; letter-spacing: 0.12em; color: var(--tt-gold-400); }
.tt-chip-x {
  appearance: none; border: 0; cursor: pointer;
  width: 26px; height: 26px; border-radius: 50%;
  background: transparent; color: rgba(243, 236, 220, 0.6); font-size: 1.15rem; line-height: 1;
  transition: background .25s, color .25s;
}
.tt-chip-x:hover { background: rgba(201, 168, 92, 0.2); color: #fff; }
.tt-chip-x:focus-visible { outline: 2px solid var(--tt-gold-400); outline-offset: 1px; }

.tt-combo { position: relative; z-index: 6; }
.tt-field {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 7px 7px 20px;
  background: rgba(247, 242, 230, 0.97);
  border: 1px solid rgba(201, 168, 92, 0.55);
  border-radius: var(--tt-pill);
  box-shadow: 0 0 0 6px rgba(201, 168, 92, 0.12), 0 24px 50px rgba(13, 33, 24, 0.45);
  transition: box-shadow .3s var(--tt-ease), border-color .3s;
}
.tt-field:focus-within { border-color: var(--tt-gold-500); box-shadow: 0 0 0 6px rgba(201, 168, 92, 0.28), 0 24px 50px rgba(13, 33, 24, 0.45); }
.tt-field-icon { flex: none; color: var(--tt-gold-700); }
.tt-input {
  flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent;
  font-family: var(--tt-body); font-size: 1.02rem; font-weight: 500; color: var(--tt-ink); padding: 12px 0;
}
.tt-input::placeholder { color: rgba(26, 36, 32, 0.45); }
.tt-input:disabled { cursor: not-allowed; }
.tt-add {
  flex: none; border: 0; cursor: pointer;
  padding: 13px 24px; border-radius: var(--tt-pill);
  background: var(--tt-green-900); color: var(--tt-gold-400);
  font-family: var(--tt-body); font-size: 0.9rem; font-weight: 700;
  transition: background .25s, color .25s;
}
.tt-add:hover { background: var(--tt-green-800); color: #fff; }
.tt-add:disabled { opacity: .5; cursor: not-allowed; }
.tt-add:focus-visible { outline: 2px solid var(--tt-gold-500); outline-offset: 2px; }

.tt-options {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 10;
  list-style: none; margin: 0; padding: 8px; max-height: 330px; overflow-y: auto;
  background: var(--tt-parch); border: 1px solid rgba(201, 168, 92, 0.30); border-radius: 18px;
  box-shadow: 0 30px 60px rgba(13, 33, 24, 0.4); color: var(--tt-ink);
}
.tt-options[hidden] { display: none; }
.tt-options [role="option"] {
  position: relative; display: flex; align-items: baseline; gap: 14px;
  padding: 11px 14px; border-radius: 10px; cursor: pointer;
  font-family: var(--tt-display); font-size: 1.08rem; font-weight: 700;
}
.tt-options [role="option"] .tt-chip-code { font-family: var(--tt-body); color: var(--tt-gold-700); min-width: 2.2em; }
.tt-options [role="option"]:hover,
.tt-options [role="option"][aria-selected="true"] { background: var(--tt-green-50); }
.tt-options [role="option"][aria-selected="true"]::before {
  content: ''; position: absolute; left: 3px; top: 10px; bottom: 10px; width: 2px; background: var(--tt-gold-500);
}
.tt-options .tt-opt-none { padding: 12px 14px; font-size: 0.88rem; color: var(--tt-ink-mid); }
.tt-hint { margin: 16px 0 0 20px; font-size: 0.86rem; color: rgba(243, 236, 220, 0.62); }

/* ---------- the postmark: the one bold element ---------- */
.tt-post {
  position: relative;
  width: 250px; height: 250px; flex: none;
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 30px;
  color: var(--tt-gold-400);
  border: 2px solid var(--tt-gold-500);
  outline: 1px solid rgba(201, 168, 92, 0.55);
  outline-offset: -12px;
  --rot: -9deg;
  transform: rotate(var(--rot));
}
.tt-post::before {
  /* scalloped perforation ring, like a cancellation mark */
  content: ''; position: absolute; inset: -12px; border-radius: 50%;
  border: 2px dotted rgba(201, 168, 92, 0.35);
}
.tt-post-num {
  font-family: var(--tt-display); font-weight: 700;
  font-size: 5.4rem; line-height: .92; letter-spacing: -0.03em; font-variant-numeric: lining-nums;
}
.tt-post-label { font-family: var(--tt-display); font-style: italic; font-size: 1rem; line-height: 1.25; max-width: 12ch; margin-top: 6px; color: rgba(243, 236, 220, 0.8); }
.tt-share {
  margin-top: 14px; transform: rotate(9deg);
  border: 0; cursor: pointer; padding: 8px 16px; border-radius: var(--tt-pill);
  background: var(--tt-gold-500); color: var(--tt-green-900);
  font-family: var(--tt-body); font-size: 0.82rem; font-weight: 700;
  transition: background .25s;
}
.tt-share:hover { background: var(--tt-gold-400); }
.tt-share:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.tt-post.is-pulse { animation: tt-stamp .5s var(--tt-ease); }
@keyframes tt-stamp {
  0%   { transform: rotate(var(--rot)) scale(1.14); opacity: .6; }
  100% { transform: rotate(var(--rot)) scale(1);    opacity: 1; }
}

/* ============================================================
   2 · FILTERS  ·  tag pills (as .hm-q-tag)
   ============================================================ */
.tt-filters { background: var(--tt-parch); border-bottom: 1px solid var(--tt-hair); padding: 34px 0 30px; }
.tt-filters-grid { display: flex; flex-wrap: wrap; gap: 22px 44px; align-items: flex-start; }
.tt-seg { border: 0; margin: 0; padding: 0; min-width: 0; }
.tt-seg legend {
  display: inline-flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 10px;
  font-family: var(--tt-display); font-style: italic; font-size: 0.98rem; color: var(--tt-gold-700);
}
.tt-seg legend::before { content: ''; width: 20px; height: 1px; background: var(--tt-gold-500); }
.tt-seg label { display: inline-block; margin: 0 5px 6px 0; }
.tt-seg input { position: absolute; opacity: 0; pointer-events: none; }
.tt-seg span {
  display: inline-block; cursor: pointer; white-space: nowrap;
  padding: 6px 13px; border-radius: var(--tt-pill);
  font-size: 0.82rem; font-weight: 700; color: var(--tt-green-800);
  border: 1px solid var(--tt-hair-strong); background: var(--tt-white);
  transition: background .3s, color .3s, border-color .3s;
}
.tt-seg span:hover { border-color: var(--tt-green-800); }
.tt-seg input:checked + span { background: var(--tt-green-900); border-color: var(--tt-green-900); color: var(--tt-gold-400); }
.tt-seg input:focus-visible + span { outline: 2px solid var(--tt-gold-500); outline-offset: 2px; }
.tt-toggle { display: flex; gap: 10px; align-items: flex-start; max-width: 40ch; padding-top: 34px; font-size: 0.9rem; color: var(--tt-ink-mid); cursor: pointer; }
.tt-toggle input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--tt-green-900); }

/* ============================================================
   3 · LEG 1  ·  tickets on the dark band (as .hm-dispatch)
   ============================================================ */
.tt-results {
  background:
    repeating-linear-gradient(0deg, transparent 0 47px, rgba(255,255,255,0.015) 47px 48px),
    var(--tt-green-900);
  padding: clamp(80px, 12vh, 130px) 0;
}
.tt-sort-note { margin: 14px 0 0; font-size: 0.95rem; color: rgba(243, 236, 220, 0.62); max-width: 60ch; }
.tt-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 18px;
}

.tt-ticket {
  --notch: 11px;
  --stub-w: 74px;
  position: relative;
  display: grid;
  grid-template-columns: var(--stub-w) 1fr;
  border-radius: 12px;
  background: var(--tt-parch);
  color: var(--tt-ink);
  -webkit-mask:
    radial-gradient(circle var(--notch) at var(--stub-w) 0, transparent 98%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle var(--notch) at var(--stub-w) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
          mask:
    radial-gradient(circle var(--notch) at var(--stub-w) 0, transparent 98%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle var(--notch) at var(--stub-w) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
  transition: transform .4s var(--tt-ease), background .3s;
}
.tt-ticket:hover { transform: translateY(-4px) rotate(-0.3deg); background: #fbf6e9; }
.tt-ticket-stub {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: var(--tt-gold-500); color: var(--tt-green-900);
  border-radius: 12px 0 0 12px;
}
.tt-ticket-stub::after {
  content: ''; position: absolute; right: 0;
  top: calc(var(--notch) + 4px); bottom: calc(var(--notch) + 4px);
  border-right: 2px dashed rgba(26, 58, 43, 0.35);
}
.tt-ticket-stub b { font-weight: 800; font-size: 1.15rem; letter-spacing: 0.12em; writing-mode: vertical-rl; transform: rotate(180deg); }
.tt-ticket-stub small {
  font-family: var(--tt-display); font-weight: 700; font-size: 0.95rem;
  padding: 3px 6px; border-radius: 4px; background: var(--tt-green-900); color: var(--tt-gold-400);
}
.tt-ticket-body { display: flex; flex-direction: column; gap: 10px; padding: 24px 24px 22px 26px; min-width: 0; }
.tt-ticket-name { font-family: var(--tt-display); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.1; margin: 0; color: var(--tt-ink); }
.tt-ticket-tag { margin: -4px 0 0; font-size: 0.9rem; line-height: 1.55; color: var(--tt-ink-mid); }

/* entry rows as a ledger with dotted leaders */
.tt-ticket-entry { margin: 4px 0 0; padding: 0; display: grid; gap: 4px; font-size: 0.88rem; }
.tt-ticket-entry div { display: flex; align-items: baseline; gap: 8px; }
.tt-ticket-entry dt { order: 1; font-weight: 600; color: var(--tt-ink); }
.tt-ticket-entry div::before {
  content: ''; order: 2; flex: 1; min-width: 12px; height: 7px;
  background: radial-gradient(circle, rgba(26,58,43,0.3) 1px, transparent 1.2px) 0 70% / 7px 7px repeat-x;
}
.tt-ticket-entry dd { order: 3; margin: 0; white-space: nowrap; color: var(--tt-ink-mid); }
.tt-ticket-entry dd::before {
  content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  margin-right: 7px; vertical-align: 1px; background: #3F8F5F;
}
.tt-st-A dd::before { background: var(--tt-gold-500); }
.tt-st-T dd::before, .tt-st-E dd::before { background: #B7791F; }
.tt-st-S dd::before { background: var(--tt-green-900); }

.tt-ticket-stay { margin: 0; font-family: var(--tt-display); font-style: italic; font-size: 0.95rem; color: var(--tt-green-800); }
.tt-ticket-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tt-ticket-tags li {
  font-size: 0.74rem; font-weight: 700; color: var(--tt-green-800);
  padding: 3px 10px; border: 1px solid var(--tt-hair-strong); border-radius: var(--tt-pill); background: var(--tt-white);
}

.tt-ticket-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
  margin-top: auto; padding-top: 12px; border-top: 1px dashed rgba(26, 58, 43, 0.2);
}
.tt .tt-book {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--tt-pill);
  background: var(--tt-green-900); color: var(--tt-gold-400);
  font-size: 0.86rem; font-weight: 700; text-decoration: none;
  transition: background .25s, color .25s, transform .25s var(--tt-ease);
}
.tt .tt-book:hover { background: var(--tt-green-800); color: #fff; transform: translateY(-1px); }
.tt .tt-guide {
  font-size: 0.85rem; font-weight: 700; text-decoration: none;
  color: var(--tt-green-800); padding-bottom: 2px; border-bottom: 1px solid var(--tt-gold-500);
  transition: color .25s;
}
.tt .tt-guide:hover { color: var(--tt-gold-700); }
.tt .tt-book:focus-visible, .tt .tt-guide:focus-visible { outline: 2px solid var(--tt-gold-500); outline-offset: 3px; }

.tt-empty {
  margin: 0; max-width: 60ch; padding: 24px 26px;
  border: 1px dashed rgba(201, 168, 92, 0.45); border-radius: 12px;
  font-family: var(--tt-display); font-style: italic; font-size: 1.1rem; line-height: 1.6;
  color: rgba(243, 236, 220, 0.85);
}

/* ============================================================
   4 · LEG 2  ·  near misses as a ledger (as .hm-brief)
   ============================================================ */
.tt-near { background: var(--tt-parch); padding: clamp(80px, 12vh, 130px) 0; border-bottom: 1px solid var(--tt-hair); }
.tt-near[hidden] { display: none; }
.tt-near-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.tt-near-grid .tt-sec-head { position: sticky; top: 110px; margin-bottom: 0; }
.tt-near-lede { margin: 20px 0 0; max-width: 42ch; font-size: 1rem; line-height: 1.75; color: var(--tt-ink-mid); }
.tt-ledger { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--tt-green-900); }
.tt-ledger li { display: flex; align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--tt-hair); }
.tt-ledger li::after {
  content: ''; order: 2; flex: 1; min-width: 16px; height: 7px;
  background: radial-gradient(circle, rgba(26,58,43,0.28) 1px, transparent 1.2px) 0 70% / 7px 7px repeat-x;
}
.tt-ledger-name { order: 1; flex: none; font-family: var(--tt-display); font-size: 1.2rem; font-weight: 700; color: var(--tt-ink); }
.tt-ledger-who { order: 3; flex: 0 1 auto; max-width: 60%; text-align: end; font-family: var(--tt-display); font-style: italic; font-size: 0.95rem; color: var(--tt-ink-mid); }

/* ============================================================
   5 · LEG 3  ·  FAQ, related, source
   ============================================================ */
.tt-faq { background: var(--tt-parch); padding: clamp(80px, 12vh, 120px) 0 clamp(40px, 6vh, 60px); }
.tt-faq-inner { max-width: 920px; }
.tt-faq-item { border-bottom: 1px solid var(--tt-hair-strong); }
.tt-faq-item:first-of-type { border-top: 1px solid var(--tt-hair-strong); }
.tt-faq-item summary {
  list-style: none; cursor: pointer; padding: 22px 36px 22px 0; position: relative;
  font-family: var(--tt-display); font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 700; line-height: 1.3; color: var(--tt-ink);
}
.tt-faq-item summary::-webkit-details-marker { display: none; }
.tt-faq-item summary::after {
  content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--tt-body); font-weight: 400; font-size: 1.5rem; color: var(--tt-gold-700);
  transition: transform .3s var(--tt-ease);
}
.tt-faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.tt-faq-item summary:focus-visible { outline: 2px solid var(--tt-gold-500); outline-offset: 4px; border-radius: 4px; }
.tt-faq-item p { margin: 0 0 22px; max-width: 68ch; font-size: 0.98rem; line-height: 1.75; color: var(--tt-ink-mid); }

.tt-related { background: var(--tt-parch); padding: clamp(40px, 6vh, 60px) 0 clamp(80px, 12vh, 120px); }
.tt-related-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 32px; border-top: 2px solid var(--tt-green-900); }
.tt-related-list li { border-bottom: 1px solid var(--tt-hair-strong); }
.tt-related-list a {
  display: flex; align-items: baseline; gap: 14px; padding: 16px 0;
  text-decoration: none; font-family: var(--tt-display); font-size: 1.1rem; font-weight: 700; color: var(--tt-ink);
  transition: color .25s;
}
.tt-related-list a:hover { color: var(--tt-gold-700); }
.tt-related-list a:focus-visible { outline: 2px solid var(--tt-gold-500); outline-offset: 3px; }
.tt-related-codes {
  flex: none; font-family: var(--tt-body); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em;
  color: var(--tt-green-800); padding: 3px 9px; border: 1px solid var(--tt-hair-strong); border-radius: var(--tt-pill); background: var(--tt-white);
  transition: background .25s, color .25s, border-color .25s;
}
.tt-related-list a:hover .tt-related-codes { background: var(--tt-green-900); border-color: var(--tt-green-900); color: var(--tt-gold-400); }
.tt-source { margin: 40px 0 0; max-width: 70ch; font-size: 0.84rem; line-height: 1.7; color: var(--tt-ink-light); }

/* ============================================================
   6 · RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .tt-hero-grid { grid-template-columns: 1fr; }
  .tt-post { width: 210px; height: 210px; padding: 24px; justify-self: center; }
  .tt-post-num { font-size: 4.4rem; }
  .tt-near-grid { grid-template-columns: 1fr; }
  .tt-near-grid .tt-sec-head { position: static; }
  .tt-toggle { padding-top: 0; }
}
@media (max-width: 640px) {
  .tt-plate { inset: 10px; }
  .tt-plate-label-tl { display: none; }
  .tt-plate-label { font-size: 0.66rem; }
  .tt-plate-label-bl { left: 10px; bottom: 12px; }
  .tt-plate-label-br { right: 10px; bottom: 12px; }
  .tt-hero { padding: 64px 0 76px; }
  .tt-kicker { font-size: 0.58rem; gap: 10px; margin-bottom: 18px; }
  .tt-kicker-line { width: 22px; }
  .tt-h1 { font-size: clamp(2.2rem, 10vw, 3.2rem); }
  .tt-lede { font-size: 0.92rem; margin-bottom: 26px; }
  .tt-field { padding: 6px 6px 6px 16px; }
  .tt-input { font-size: 16px; }
  .tt-add { padding: 12px 16px; font-size: 0.84rem; }
  .tt-hint { margin-left: 16px; }
  .tt-post { width: 190px; height: 190px; }
  .tt-post-num { font-size: 3.8rem; }
  .tt-post-label { font-size: 0.9rem; }
  .tt-ticket { --stub-w: 58px; }
  .tt-ticket-body { padding: 20px 18px 18px 20px; }
  .tt-ticket-name { font-size: 1.3rem; }
  .tt-ledger li { flex-wrap: wrap; gap: 2px 12px; }
  .tt-ledger li::after { display: none; }
  .tt-ledger-who { order: 3; flex-basis: 100%; max-width: none; text-align: start; }
}
@media (max-width: 420px) {
  .tt-add { padding: 12px 14px; }
  .tt-field-icon { display: none; }
}

/* ============================================================
   7 · RIGHT-TO-LEFT (Arabic)
   ============================================================ */
[dir="rtl"] .tt-chip { border-left-width: 1px; border-right: 4px solid var(--tt-gold-500); border-radius: 10px 4px 4px 10px; padding: 7px 12px 7px 6px; }
[dir="rtl"] .tt-field { padding: 7px 20px 7px 7px; }
[dir="rtl"] .tt-hint { margin: 16px 20px 0 0; }
[dir="rtl"] .tt-options [role="option"][aria-selected="true"]::before { left: auto; right: 3px; }
[dir="rtl"] .tt-faq-item summary { padding: 22px 0 22px 36px; }
[dir="rtl"] .tt-faq-item summary::after { right: auto; left: 4px; }
[dir="rtl"] .tt-ticket {
  -webkit-mask:
    radial-gradient(circle var(--notch) at calc(100% - var(--stub-w)) 0, transparent 98%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle var(--notch) at calc(100% - var(--stub-w)) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
          mask:
    radial-gradient(circle var(--notch) at calc(100% - var(--stub-w)) 0, transparent 98%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle var(--notch) at calc(100% - var(--stub-w)) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
}
[dir="rtl"] .tt-ticket:hover { transform: translateY(-4px) rotate(0.3deg); }
[dir="rtl"] .tt-ticket-stub { border-radius: 0 12px 12px 0; }
[dir="rtl"] .tt-ticket-stub::after { right: auto; left: 0; border-right: 0; border-left: 2px dashed rgba(26, 58, 43, 0.35); }
[dir="rtl"] .tt-ticket-body { padding: 24px 26px 22px 24px; }
[dir="rtl"] .tt-ticket-entry dd::before { margin-right: 0; margin-left: 7px; }
[dir="rtl"] .tt-post { --rot: 9deg; }
[dir="rtl"] .tt-share { transform: rotate(-9deg); }
[dir="rtl"] .tt-sec-label, [dir="rtl"] .tt-seg legend, [dir="rtl"] .tt-ticket-stay,
[dir="rtl"] .tt-ledger-who, [dir="rtl"] .tt-post-label, [dir="rtl"] .tt-plate-label-tl, [dir="rtl"] .tt-empty { font-style: normal; }

/* CJK: no faux italics, a little more line height */
:lang(zh) .tt-sec-label, :lang(ja) .tt-sec-label, :lang(ko) .tt-sec-label,
:lang(zh) .tt-ticket-stay, :lang(ja) .tt-ticket-stay, :lang(ko) .tt-ticket-stay,
:lang(zh) .tt-ledger-who, :lang(ja) .tt-ledger-who, :lang(ko) .tt-ledger-who,
:lang(zh) .tt-post-label, :lang(ja) .tt-post-label, :lang(ko) .tt-post-label,
:lang(zh) .tt-empty, :lang(ja) .tt-empty, :lang(ko) .tt-empty { font-style: normal; }
:lang(zh) .tt-h1, :lang(ja) .tt-h1, :lang(ko) .tt-h1 { letter-spacing: -0.01em; line-height: 1.2; }

@media (prefers-reduced-motion: reduce) {
  .tt-post.is-pulse { animation: none; }
  .tt-ticket, .tt-ticket:hover { transition: none; transform: none; }
  .tt-faq-item summary::after { transition: none; }
}
