/* ============================================================
   Guess the Suburb: the game page, the archive and the puzzle pages (copied from Guess the Town's style.css; the gtt- classes are shared in spirit, the gts- ones at the end are new).
   Builds on the tokens in assets/sw.css (honey & sage, light + dark) and the shared chrome.css.
   Original layout: a "postcard" card with an airmail stripe, clue slots that unlock one by one, and a row of result tiles.
   Every class here starts with gtt- (copied) or gts- (suburb additions, at the end of the file).
   ============================================================ */

.gtt-sr {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
    overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.gtt-main { padding-bottom: 8px; }

/* ---------------- headings ---------------- */
.gtt-hero { text-align: center; padding: 44px 0 4px; }
.gtt-hero .gtt-lead { margin-left: auto; margin-right: auto; }
.gtt-eyebrow {
    font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; line-height: 1.3;
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px;
}
.gtt-title {
    font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; line-height: 1.04;
    font-size: clamp(2.2rem, 7vw, 3.9rem); color: var(--text); margin: 0 0 14px;
}
.gtt-title span { color: var(--accent-head); }
.gtt-lead { max-width: 36em; font-size: 1.08rem; line-height: 1.65; color: var(--text-muted); margin: 0 0 6px; }
.gtt-h2 {
    font-family: var(--font-display); font-weight: 800; letter-spacing: -0.025em; line-height: 1.12;
    font-size: clamp(1.45rem, 3.4vw, 2rem); color: var(--text); margin: 0 0 16px;
}
.gtt-h2-sm { font-size: 1.3rem; }
.gtt-section { margin: 0 0 44px; }

/* ---------------- article / archive column ---------------- */
.gtt-article { max-width: 860px; margin: 0 auto; padding-top: 28px; }
.gtt-head { margin-bottom: 30px; }
.gtt-head-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.gtt-head-actions .btn { min-height: 48px; }

/* ---------------- the game card ---------------- */
.gtt-game { max-width: 720px; margin: 26px auto 0; }
.gtt-card {
    position: relative; overflow: hidden;
    background: var(--bg2); border: 1px solid var(--border); border-radius: 26px; box-shadow: var(--shadow-md);
}
.gtt-card::before { /* airmail stripe */
    content: ""; display: block; height: 10px;
    background: repeating-linear-gradient(-45deg, var(--accent) 0 14px, var(--bg) 14px 24px, var(--blue) 24px 38px, var(--bg) 38px 48px);
}
.gtt-card-inner { padding: 20px 22px 24px; }
.gtt-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.gtt-no { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1.1; }
.gtt-date { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.86rem; letter-spacing: 0; color: var(--text-dim); margin-top: 2px; }
.gtt-bar-actions { display: flex; gap: 8px; }

.gtt-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; min-width: 44px; padding: 0 20px; border-radius: 999px; cursor: pointer;
    font-family: var(--font-body); font-size: 1rem; font-weight: 600; line-height: 1.1; text-decoration: none;
    border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.gtt-btn[disabled] { opacity: .55; cursor: wait; }
.gtt-btn-primary { background: var(--accent-fill); color: var(--on-accent); border-color: var(--accent-fill); box-shadow: 0 4px 0 var(--btn-edge); }
.gtt-btn-primary:hover:not([disabled]) { transform: translateY(-2px); background: var(--accent-hover); border-color: var(--accent-hover); box-shadow: 0 6px 0 var(--btn-edge); }
.gtt-btn-primary:active:not([disabled]) { transform: translateY(2px); box-shadow: 0 2px 0 var(--btn-edge); }
.gtt-btn-ghost { background: var(--bg2); color: var(--text); border-color: var(--line-strong); }
.gtt-btn-ghost:hover:not([disabled]) { border-color: var(--text); }
.gtt-btn-small { padding: 0 14px; font-size: 0.92rem; }

/* result tiles: colour AND a glyph, so colour is never the only signal */
.gtt-squares { display: flex; gap: 8px; list-style: none; margin: 18px 0 16px; padding: 0; }
.gtt-sq {
    width: 40px; height: 40px; border-radius: 10px; flex: none;
    display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; line-height: 1;
    border: 2px dashed var(--line-strong); background: var(--bg); color: transparent;
}
.gtt-sq-cur { border: 2px solid var(--text); }
.gtt-sq-g { background: var(--green); border: 2px solid var(--green); color: #fff; }   /* result tiles keep the same colours in light and dark */
.gtt-sq-y { background: #EAC668; border: 2px solid #EAC668; color: #29261D; }
.gtt-sq-r { background: var(--bad); border: 2px solid var(--bad); color: #fff; }
.gtt-sq-s { background: var(--night); border: 2px solid var(--night); color: #fff; box-shadow: 0 0 0 1px var(--line-strong); }

/* clue slots */
.gtt-clues { list-style: none; display: grid; gap: 10px; margin: 0 0 20px; padding: 0; }
.gtt-clue {
    display: flex; gap: 14px; align-items: flex-start; min-width: 0;
    padding: 13px 15px; border-radius: 16px; background: var(--bg2); border: 1px solid var(--border);
}
.gtt-clue-n {
    flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
    background: var(--accent-fill); color: var(--on-accent); font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; line-height: 1;
}
.gtt-clue-body { min-width: 0; }
.gtt-clue-tag { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 2px; }
.gtt-clue-text { font-size: 1.06rem; line-height: 1.45; color: var(--text); overflow-wrap: anywhere; }

/* single clue card while the game is in progress: previous / label / next on one line, the clue below */
.gtt-clue-card {
    min-width: 0; margin: 0 0 18px; padding: 8px 14px 14px; border-radius: 16px;
    background: var(--bg2); border: 1px solid var(--border); scroll-margin-top: 8px;
}
.gtt-clue-card.is-new { border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus-glow); animation: gtt-pop .4s ease; }
.gtt-clue-head { display: flex; align-items: center; gap: 8px; }
.gtt-clue-title { flex: 1 1 auto; min-width: 0; text-align: center; }
.gtt-clue-label { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; line-height: 1.2; letter-spacing: -0.01em; }
.gtt-clue-card .gtt-clue-tag { margin: 0; }
.gtt-clue-card .gtt-clue-text { margin-top: 2px; }
.gtt-step {
    flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; min-width: 44px; padding: 0; cursor: pointer;
    border-radius: 50%; background: var(--bg); color: var(--text); border: 1.5px solid var(--line-strong);
    transition: border-color .15s ease, opacity .15s ease;
}
.gtt-step:hover:not([disabled]) { border-color: var(--text); }
.gtt-step:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.gtt-step[disabled] { opacity: .35; cursor: default; }
.gtt-step svg { display: block; }
@keyframes gtt-pop { from { transform: translateY(8px); opacity: 0.2; } to { transform: none; opacity: 1; } }

/* guess form + combobox */
.gtt-form { margin: 0; }
.gtt-label { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 8px; }
.gtt-combo { position: relative; }
.gtt-input {
    display: block; width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px;
    font-family: var(--font-body); font-size: 1.05rem; color: var(--text);
    background: var(--bg2); border: 2px solid var(--line-strong);
}
.gtt-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--focus-glow); }
.gtt-input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.gtt-list {
    position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; margin: 0; padding: 6px; list-style: none;
    max-height: 288px; overflow-y: auto; overscroll-behavior: contain;
    background: var(--bg2); border: 1px solid var(--border-hover); border-radius: 14px; box-shadow: var(--shadow-md);
}
.gtt-list[hidden] { display: none; }
.gtt-opt {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    min-height: 44px; padding: 8px 12px; border-radius: 10px; cursor: pointer; font-size: 1rem; line-height: 1.25;
}
.gtt-opt-state { color: var(--text-dim); font-size: 0.86rem; font-weight: 600; flex: none; }
.gtt-opt-name { overflow-wrap: anywhere; }
.gtt-opt[aria-selected="true"] { background: var(--accent-fill); color: var(--on-accent); }
.gtt-opt[aria-selected="true"] .gtt-opt-state { color: var(--on-accent); }
.gtt-opt[aria-disabled="true"] { color: var(--text-dim); cursor: not-allowed; text-decoration: line-through; }
.gtt-opt[aria-disabled="true"][aria-selected="true"] { background: var(--bg3); color: var(--text-dim); }
.gtt-empty { padding: 12px; color: var(--text-muted); font-size: 0.95rem; }
.gtt-hint { font-size: 0.86rem; color: var(--text-dim); margin: 8px 2px 0; }
.gtt-actions { display: flex; gap: 10px; margin-top: 14px; }
.gtt-actions .gtt-btn { flex: 1 1 0; min-width: 0; }
.gtt-msg { min-height: 1.5em; margin: 10px 2px 0; font-size: 0.95rem; font-weight: 600; color: var(--text-muted); }
.gtt-msg.is-error { color: var(--bad-fg); }

.gtt-guesses { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.gtt-guesses li { display: flex; align-items: center; gap: 10px; font-size: 0.98rem; color: var(--text-muted); }
.gtt-guesses .gtt-mini { flex: none; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 0.78rem; font-weight: 800; line-height: 1; }
.gtt-guesses .gtt-mini.gtt-sq-g, .gtt-guesses .gtt-mini.gtt-sq-y, .gtt-guesses .gtt-mini.gtt-sq-r, .gtt-guesses .gtt-mini.gtt-sq-s { border-width: 0; }
.gtt-guess-note { font-size: 0.8rem; color: var(--text-dim); }

.gtt-yesterday { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 18px 0 0; font-size: 0.92rem; color: var(--text-muted); }
.gtt-chip {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
    border: 1.5px solid var(--line-strong); background: var(--bg2); color: var(--accent); font-weight: 600; text-decoration: none;
}
.gtt-chip:hover { border-color: var(--accent); }

/* reveal card */
.gtt-reveal { margin-top: 4px; border-radius: 20px; overflow: hidden; border: 1px solid var(--border); background: var(--bg); }
.gtt-reveal:focus { outline: none; }
.gtt-reveal-art { display: block; width: 100%; height: auto; aspect-ratio: 1024 / 688; object-fit: cover; background: var(--night); }
.gtt-reveal-body { padding: 18px 18px 22px; }
.gtt-result { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ok-fg); margin: 0 0 4px; }
.gtt-result.is-miss { color: var(--bad-fg); }
.gtt-reveal h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 6vw, 2.3rem); line-height: 1.05; letter-spacing: -0.03em; margin: 0; }
.gtt-reveal-state { color: var(--text-dim); font-weight: 600; margin: 4px 0 12px; }
.gtt-reveal p.gtt-reveal-about { color: var(--text-muted); line-height: 1.65; margin: 0 0 18px; }
.gtt-reveal h4 { font-family: var(--font-display); font-size: 1.05rem; margin: 0 0 8px; }
.gtt-facts { margin: 0 0 20px; display: grid; gap: 10px; }
.gtt-fact { background: var(--bg2); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
.gtt-fact dt { font-weight: 700; font-size: 0.94rem; line-height: 1.4; margin-bottom: 4px; }
.gtt-fact dd { margin: 0; font-size: 0.96rem; line-height: 1.55; color: var(--text-muted); }
.gtt-fact dd strong { color: var(--text); }
.gtt-reveal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.gtt-reveal-actions .gtt-btn { flex: 1 1 140px; }
.gtt-next { margin: 0 0 18px; font-size: 0.95rem; color: var(--text-muted); }
.gtt-next time { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--text); font-variant-numeric: tabular-nums; }
.gtt-reveal-links { border-top: 1px solid var(--border); padding-top: 16px; display: grid; gap: 10px; }
.gtt-reveal-links p { margin: 0; font-size: 0.94rem; color: var(--text-muted); }
.gtt-link-row { display: flex; flex-wrap: wrap; gap: 10px; }
.gtt-link-row .gtt-btn { flex: 1 1 140px; }

/* status cards (loading / not started / out of puzzles / error) */
.gtt-status { text-align: center; padding: 30px 10px 26px; }
.gtt-status h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; margin: 0 0 8px; }
.gtt-status p { color: var(--text-muted); max-width: 30em; margin: 0 auto 16px; }
.gtt-nojs { padding: 24px 22px; color: var(--text-muted); }
.gtt-nojs strong { color: var(--text); }
.gtt-skeleton { padding: 30px 0; text-align: center; color: var(--text-dim); }

/* stats dialog */
.gtt-dialog {
    width: min(440px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto; padding: 0;
    border: 0; border-radius: 22px; background: var(--bg2); color: var(--text); box-shadow: 0 30px 80px rgba(10,14,16,0.4);
    margin: auto;
}
.gtt-dialog::backdrop { background: rgba(10,14,16,0.6); }
.gtt-dialog-inner { padding: 22px 22px 24px; }
.gtt-dialog h2 { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; margin: 0 0 16px; }
.gtt-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 22px; text-align: center; }
.gtt-stat b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; line-height: 1.1; }
.gtt-stat span { display: block; font-size: 0.74rem; line-height: 1.25; color: var(--text-dim); font-weight: 600; }
.gtt-dist { display: grid; gap: 6px; margin: 0 0 20px; list-style: none; padding: 0; }
.gtt-dist li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: center; font-size: 0.9rem; }
.gtt-dist-bar { display: block; min-width: 26px; background: var(--bg3); border-radius: 6px; padding: 3px 8px; font-weight: 700; text-align: right; color: var(--text-muted); font-size: 0.82rem; }
.gtt-dist-bar.is-today { background: var(--green); color: #fff; }
.gtt-dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.gtt-dialog-actions .gtt-btn { flex: 1 1 130px; }

/* ---------------- text sections on the game page ---------------- */
.gtt-info { max-width: 820px; margin: 56px auto 0; }
.gtt-info .prose { max-width: none; }
.gtt-howto { display: grid; gap: 10px; list-style: none; counter-reset: gtt; margin: 0 0 22px; padding: 0; }
.gtt-howto li {
    counter-increment: gtt; display: flex; gap: 14px; align-items: flex-start;
    background: var(--bg2); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; color: var(--text-muted); line-height: 1.55;
}
.gtt-howto li::before {
    content: counter(gtt); flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
    background: var(--accent-fill); color: var(--on-accent); font-family: var(--font-display); font-weight: 800; font-size: 0.95rem;
}
.gtt-howto strong { color: var(--text); }
.gtt-legend { list-style: none; display: grid; gap: 10px; margin: 0 0 8px; padding: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gtt-legend li { display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: 0.97rem; line-height: 1.35; }
.gtt-legend .gtt-sq { width: 34px; height: 34px; flex: none; font-size: 0.95rem; }
.gtt-info .faq { max-width: none; }
.gtt-info .faq summary { min-height: 52px; }

/* ---------------- article + archive ---------------- */
.gtt-answer-card {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0; align-items: stretch; margin-bottom: 40px;
    background: var(--bg2); border: 1px solid var(--border); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-md);
}
.gtt-answer-art { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1024 / 688; background: var(--night); }
.gtt-answer-body { padding: 22px; display: flex; flex-direction: column; justify-content: center; }
.gtt-answer-kicker { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.gtt-answer-body h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1.04; letter-spacing: -0.03em; margin: 4px 0 6px; overflow-wrap: anywhere; }
.gtt-answer-state { color: var(--text-dim); font-weight: 600; margin: 0; }
.gtt-clue-list { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; }
.gtt-clue-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--bg2); border: 1px solid var(--border); }
.gtt-clue-row .gtt-clue-n { margin-top: 2px; }
.gtt-clue-row p { margin: 0; font-size: 1.05rem; line-height: 1.5; color: var(--text); }
.gtt-clue-row .gtt-clue-tag { margin-bottom: 2px; }
.gtt-about { font-size: 1.05rem; line-height: 1.75; color: var(--text-muted); max-width: 44em; margin: 0; }
.gtt-section .gtt-facts { max-width: 44em; }
.gtt-pager { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 44px; }
.gtt-pager a {
    display: flex; flex-direction: column; justify-content: center; min-height: 56px; padding: 10px 16px; border-radius: 16px; max-width: 48%;
    background: var(--bg2); border: 1px solid var(--border); text-decoration: none; color: var(--text); font-weight: 700; line-height: 1.3; box-shadow: var(--shadow-sm);
}
.gtt-pager a:hover { border-color: var(--accent); }
.gtt-pager small { font-size: 0.74rem; color: var(--text-dim); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.gtt-pager-next { margin-left: auto; text-align: right; }

.gtt-arch-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gtt-arch-row {
    display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 52px; padding: 8px 16px;
    background: var(--bg2); border: 1px solid var(--border); border-radius: 14px; text-decoration: none; color: var(--text);
}
.gtt-arch-row:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.gtt-arch-n { font-family: var(--font-display); font-weight: 800; color: var(--accent); }
.gtt-arch-town { overflow-wrap: anywhere; line-height: 1.3; }
.gtt-arch-date { font-size: 0.86rem; color: var(--text-dim); white-space: nowrap; }

.gtt-cta { margin: 0 0 24px; }
.gtt-cta-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gtt-cta-card { display: flex; flex-direction: column; background: var(--bg2); border: 1px solid var(--border); border-radius: 20px; padding: 20px; box-shadow: var(--shadow-sm); }
.gtt-cta-card h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; margin: 0 0 8px; }
.gtt-cta-lead { color: var(--text-muted); font-size: 0.97rem; line-height: 1.6; margin: 0 0 16px; flex: 1; }
.gtt-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.gtt-cta-actions .btn { padding: 12px 18px; font-size: 0.95rem; min-height: 46px; }

/* ---------------- narrow screens ---------------- */
@media (max-width: 860px) {
    .gtt-cta-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .gtt-hero { padding-top: 28px; }
    .gtt-card-inner { padding: 16px 16px 20px; }
    .gtt-answer-card { grid-template-columns: 1fr; }
    .gtt-answer-body { padding: 18px; }
    .gtt-legend { grid-template-columns: 1fr; }
    .gtt-arch-row { grid-template-columns: 46px minmax(0, 1fr); }
    .gtt-arch-date { grid-column: 2; }
    .gtt-head-actions .btn { flex: 1 1 100%; }
}
/* Phone: keep the clue and the typing box above the fold (game page only; the other Guess the Town pages are untouched) */
@media (max-width: 640px) {
    body.gtt-play .crumb-bar { display: none; }
    body.gtt-play .gtt-hero-compact { padding-top: 10px; }
    body.gtt-play .gtt-hero-compact .gtt-lead { display: none; }
    body.gtt-play .gtt-hero-compact .gtt-eyebrow { margin-bottom: 2px; }
    body.gtt-play .gtt-hero-compact .gtt-title { margin-bottom: 4px; }
    body.gtt-play .gtt-game { margin-top: 6px; }
    body.gtt-play .gtt-toolbar { margin-bottom: 6px; }
    body.gtt-play .gtt-card-inner { padding: 6px 14px 14px; }
    body.gtt-play .gtt-squares { margin: 6px 0 8px; }
    body.gtt-play .gtt-clue-card { margin-bottom: 8px; padding: 4px 12px 12px; }
    body.gtt-play .gtt-label { margin-bottom: 6px; }
}
@media (max-width: 400px) {
    .gtt-toolbar-mid .gtt-date { display: none; }
    .gtt-squares { gap: 6px; }
    .gtt-sq { width: 38px; height: 38px; }
    .gtt-clue { padding: 12px; gap: 12px; }
    .gtt-stat b { font-size: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
    .gtt-clue-card.is-new { animation: none !important; }
    .gtt-step { transition: none !important; }
    .gtt-btn, .gtt-btn-primary { transition: none !important; }
    .gtt-btn-primary:hover:not([disabled]), .gtt-btn-primary:active:not([disabled]) { transform: none; }
}

/* Typography polish: balanced headings, tidy paragraph ends, steady-width counters */
.gtt-title, .gtt-h2, .gtt-status h3, .gtt-reveal h3, .gtt-head h1 { text-wrap: balance; }
.gtt-lead, .gtt-clue-text, .gtt-status p, .gtt-section p { text-wrap: pretty; }
.gtt-no, .gtt-date, .gtt-stat b, .gtt-stat span, .gtt-dist li, .gtt-dist-bar, .gtt-clue-n, .gtt-sq { font-variant-numeric: tabular-nums; }

/* ---------------- open-beta notice + feedback box ---------------- */
.gtt-beta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 14px; padding: 10px 16px;
    border-radius: 18px; background: var(--bg2); border: 1px solid var(--border); border-left: 4px solid var(--accent2);
    font-size: 0.92rem; line-height: 1.45; color: var(--text-muted);
}
.gtt-beta-tag {
    flex: none; padding: 2px 10px; border-radius: 999px; background: #EAC668; color: #29261D;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.gtt-beta a { color: var(--accent); font-weight: 600; }
.gtt-beta-page { max-width: 860px; margin: 0 0 18px; }

.gtt-feedback { max-width: 720px; margin: 30px auto 0; scroll-margin-top: 20px; }
.gtt-fb-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow-sm); padding: 22px; }
.gtt-fb-card .gtt-h2 { margin-bottom: 8px; }
.gtt-fb-lead { color: var(--text-muted); line-height: 1.6; margin: 0 0 16px; }
.gtt-fb-form .gtt-label { margin-top: 12px; }
.gtt-fb-form .gtt-label:first-of-type { margin-top: 0; }
.gtt-fb-opt { font-weight: 500; color: var(--text-dim); }
.gtt-fb-text { min-height: 120px; resize: vertical; line-height: 1.5; }
.gtt-fb-count { text-align: right; margin-top: 4px; }
.gtt-input[aria-invalid="true"] { border-color: var(--bad-fg); }
.gtt-fb-status { min-height: 1.5em; margin: 10px 2px 0; font-size: 0.95rem; font-weight: 600; color: var(--text-muted); overflow-wrap: anywhere; }
.gtt-fb-status.is-ok { color: var(--ok-fg); }
.gtt-fb-status.is-error { color: var(--bad-fg); }
.gtt-fb-status a { color: inherit; text-decoration: underline; }
.gtt-fb-email { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.gtt-fb-or { margin: 0 0 10px; font-size: 0.94rem; color: var(--text-muted); }
.gtt-fb-email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.gtt-fb-addr { font-weight: 600; user-select: all; -webkit-user-select: all; overflow-wrap: anywhere; min-width: 0; }
@media (max-width: 400px) {
    .gtt-fb-card { padding: 18px 16px; }
    .gtt-fb-email-row .gtt-btn { flex: 1 1 100%; }
}

/* ============================================================
   GB-46: game-first page, toolbar, dialogs, sub-pages, "Hungry for more?" panel
   ============================================================ */
.gtt-hero-compact { padding: 22px 0 0; }
.gtt-hero-compact .gtt-title { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 8px; }
.gtt-hero-compact .gtt-lead { font-size: 1rem; line-height: 1.5; }
.gtt-hero-compact .gtt-eyebrow { margin-bottom: 8px; }
.gtt-game { margin-top: 16px; }
.gtt-beta-compact { padding: 6px 14px; font-size: 0.86rem; margin: 14px 0 0; }

/* top bar: Help, Stats on the left; Settings, Menu on the right. 44px targets. */
.gtt-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 10px; }
.gtt-toolbar[hidden] { display: none; }
.gtt-toolbar-group { display: flex; gap: 8px; }
.gtt-toolbar-mid { flex: 1 1 auto; min-width: 0; text-align: center; line-height: 1.15; }
.gtt-toolbar-mid .gtt-no, .gtt-toolbar-mid .gtt-date { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gtt-toolbar-mid .gtt-date { margin-top: 1px; }
.gtt-icon-btn {
    display: inline-grid; place-items: center; width: 44px; height: 44px; min-width: 44px; padding: 0; cursor: pointer;
    border-radius: 50%; background: var(--bg2); color: var(--text); border: 1.5px solid var(--line-strong);
    transition: border-color .15s ease, background .15s ease;
}
.gtt-icon-btn:hover { border-color: var(--text); }
.gtt-icon-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.gtt-icon-btn svg { display: block; }

/* town picture directly under the tiles once the puzzle is over */
.gtt-card-inner > .gtt-reveal-art { border-radius: 16px; margin: 0 0 16px; border: 1px solid var(--border); }
.gtt-reveal { margin-top: 0; }
.gtt-yesterday { justify-content: center; }

/* "Hungry for more?" panel (game reveal, archive, puzzle pages, /trivia/) */
.gtt-hungry { border-top: 0; }
.gtt-reveal-links.gtt-hungry { border-top: 1px solid var(--border); }
section.gtt-hungry, .gtt-hungry.gtt-panel {
    margin: 0 0 28px; padding: 22px; border-radius: 22px; background: var(--bg2); border: 1px solid var(--border);
    border-left: 5px solid var(--accent2); box-shadow: var(--shadow-sm);
}
section.gtt-hungry p { color: var(--text-muted); line-height: 1.6; margin: 0 0 16px; max-width: 40em; }
section.gtt-hungry .gtt-h2 { margin-bottom: 8px; }
.gtt-reveal-links.gtt-hungry h4 { margin: 0; }

/* sub-page nav chips */
.gtt-subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.gtt-subnav a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; text-decoration: none;
    border: 1.5px solid var(--line-strong); background: var(--bg2); color: var(--text); font-weight: 600; font-size: 0.95rem;
}
.gtt-subnav a:hover { border-color: var(--accent); color: var(--accent); }
.gtt-subnav a[aria-current="page"] { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--on-accent); }
.gtt-subnav-main { justify-content: center; margin-top: 8px; }
.gtt-info { margin-top: 32px; }
.gtt-info .gtt-about { max-width: none; }
.gtt-feedback-page { margin: 0 0 30px; max-width: none; }

/* dialogs */
.gtt-dialog-lead { margin: -6px 0 14px; color: var(--text-muted); line-height: 1.55; }
.gtt-help-steps { margin: 0 0 12px; padding-left: 20px; color: var(--text-muted); line-height: 1.55; display: grid; gap: 6px; }
.gtt-legend-1 { grid-template-columns: 1fr; margin-bottom: 12px; }
.gtt-dialog .gtt-legend .gtt-sq { width: 30px; height: 30px; }
.gtt-set-row, .gtt-set-group { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.gtt-set-group legend { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; margin-bottom: 8px; padding: 0; }
.gtt-set-check { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding: 8px 4px; cursor: pointer; line-height: 1.35; }
.gtt-set-check input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); }
.gtt-set-check strong { display: block; }
.gtt-set-note { display: block; font-size: 0.86rem; color: var(--text-dim); font-weight: 400; margin-top: 2px; }
p.gtt-set-note { margin: 4px 4px 0; }
.gtt-set-check.is-soon { color: var(--text-dim); cursor: not-allowed; }
.gtt-menu-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; }
.gtt-menu-list a {
    display: flex; align-items: center; min-height: 48px; padding: 0 16px; border-radius: 14px; text-decoration: none; font-weight: 600;
    background: var(--bg); border: 1px solid var(--border); color: var(--text);
}
.gtt-menu-list a:hover, .gtt-menu-list a:focus-visible { border-color: var(--accent); color: var(--accent); }

/* Reduced motion chosen in Settings (the OS setting is handled by the media query above) */
.gtt-reduce-motion .gtt-clue-card.is-new { animation: none !important; }
.gtt-reduce-motion .gtt-step { transition: none !important; }
.gtt-reduce-motion .gtt-btn, .gtt-reduce-motion .gtt-btn-primary, .gtt-reduce-motion .gtt-icon-btn { transition: none !important; }
.gtt-reduce-motion .gtt-btn-primary:hover:not([disabled]), .gtt-reduce-motion .gtt-btn-primary:active:not([disabled]) { transform: none; }
.gtt-reduce-motion { scroll-behavior: auto; }
@media (prefers-reduced-motion: reduce) { .gtt-icon-btn { transition: none !important; } }

/* result card: Share is the main action, then one game set in the town */
.gtt-share-wrap { margin: 4px 0 18px; }
.gtt-share-btn { display: flex; width: 100%; min-height: 52px; font-size: 1.08rem; white-space: nowrap; }
.gtt-share-fallback:empty { display: none; }
.gtt-share-fallback { margin-top: 10px; }
.gtt-share-text { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--bg2); color: var(--text); font: inherit; font-size: 0.95rem; resize: none; }
.gtt-suggest { margin: 0 0 18px; padding: 14px 16px 12px; border-radius: 16px; background: var(--bg2); border: 1px solid var(--border); display: grid; gap: 6px; justify-items: start; }
.gtt-suggest p { margin: 0; }
.gtt-suggest-kicker { font-size: 0.86rem; font-weight: 600; color: var(--text-dim); }
.gtt-suggest-line { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; line-height: 1.25; letter-spacing: -0.01em; }
.gtt-game-btn { margin: 6px 0 2px; width: 100%; }
.gtt-suggest-more { font-size: 0.84rem; color: var(--text-muted); }
.gtt-suggest-more a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.gtt-suggest-more a:hover { color: var(--text); }
.gtt-share-btn:focus-visible, .gtt-game-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.gtt-share-btn:active:not([disabled]), .gtt-game-btn:active:not([disabled]) { transform: scale(0.97); transition-duration: .08s; }
.gtt-share-btn:active:not([disabled]) { box-shadow: 0 2px 0 var(--btn-edge); }
@media (min-width: 560px) { .gtt-game-btn { width: auto; } }
@media (prefers-reduced-motion: reduce) {
    .gtt-share-btn:active:not([disabled]), .gtt-game-btn:active:not([disabled]) { transform: none; }
}
.gtt-reduce-motion .gtt-share-btn:active:not([disabled]), .gtt-reduce-motion .gtt-game-btn:active:not([disabled]) { transform: none; }

/* ============================================================
   Catch-up play: missed puzzles are playable, and their answers stay hidden on this device until played or chosen.
   Only tokens from sw.css, so light and dark both work.
   ============================================================ */
/* game page, catch-up mode */
.gtt-mid-sub { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 2px; min-width: 0; }
.gtt-mid-sub .gtt-date { margin-top: 0; }
.gtt-chip-tag { min-height: 0; padding: 2px 10px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; white-space: nowrap; flex: none; color: var(--accent); }
.gtt-note { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--border); color: var(--text-muted); font-size: 0.94rem; line-height: 1.45; }
.gtt-catchup-links, .gtt-status-links { margin-top: 4px; justify-content: center; }
.gtt-catchup-links { justify-content: flex-start; }
.gtt-catchup-links .gtt-btn, .gtt-status-links .gtt-btn { min-height: 44px; }
.gtt-yesterday .gtt-chip { text-align: center; }

/* spoiler guard (archive and past puzzle pages). The head script adds html.gtt-guard; with JavaScript off none of this applies. */
.gtt-arch-note, .gtt-cover { display: none; }
html.gtt-guard .gtt-arch-note { display: block; margin: 14px 0 0; max-width: 36em; color: var(--text-muted); line-height: 1.55; }
.gtt-arch-item { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.gtt-arch-item .gtt-arch-row { flex: 1 1 260px; min-width: 0; }
.gtt-arch-nospoil, .gtt-arch-go, .gtt-arch-show { display: none; }
.gtt-arch-show { align-self: center; min-height: 44px; padding: 0 14px; font-size: 0.92rem; flex: none; }
html.gtt-guard .gtt-arch-item:not(.is-known) .gtt-arch-name { display: none; }
html.gtt-guard .gtt-arch-item.is-unplayed .gtt-arch-nospoil { display: inline; color: var(--text-muted); }
html.gtt-guard .gtt-arch-item.is-unplayed .gtt-arch-go { display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--bg); color: var(--accent); font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
html.gtt-guard .gtt-arch-item.is-unplayed .gtt-arch-show { display: inline-flex; }
html.gtt-guard .gtt-arch-item.is-unplayed .gtt-arch-row:hover .gtt-arch-go { border-color: var(--accent); }
html.gtt-guard .gtt-spoil-n:not(.is-known) { display: none; }
html.gtt-guard:not(.gtt-known) .gtt-spoil { display: none !important; }
html.gtt-guard:not(.gtt-known) .gtt-cover { display: block; margin: 0 0 40px; padding: 24px 22px; border-radius: 24px; background: var(--bg2); border: 1px solid var(--border); border-left: 5px solid var(--accent2); box-shadow: var(--shadow-md); }
.gtt-cover:focus { outline: none; }
.gtt-cover h2 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.025em; line-height: 1.12; font-size: clamp(1.45rem, 3.4vw, 2rem); margin: 0 0 8px; }
.gtt-cover p { margin: 0 0 16px; color: var(--text-muted); line-height: 1.6; max-width: 36em; }
.gtt-cover-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.gtt-cover-actions .btn { min-height: 48px; }
@media (max-width: 640px) {
    .gtt-arch-item .gtt-arch-row { flex-basis: 100%; }
    .gtt-arch-show { margin-left: auto; }
    .gtt-cover-actions .btn { flex: 1 1 100%; }
}

/* ---------------- archive: one-week view (archive.js builds it; with JavaScript off the full list shows instead) ---------------- */
.gtt-week { display: none; }
html.gtt-guard .gtt-week { display: block; margin: 0 0 40px; min-height: 320px; }
html.gtt-guard .gtt-arch-all { display: none; }
.gtt-week-load { color: var(--text-muted); margin: 0; }
.gtt-wk-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin: 0 0 18px; padding: 14px 16px; border-radius: 16px; background: var(--bg2); border: 1px solid var(--border); border-left: 5px solid var(--accent2); }
.gtt-wk-sum { margin: 0; font-weight: 700; font-size: 1.05rem; color: var(--text); }
.gtt-wk-top .btn { min-height: 46px; }
.gtt-wk-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 8px; }
.gtt-wk-range { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; font-size: clamp(1.15rem, 3.4vw, 1.5rem); color: var(--text); margin: 0; text-align: center; }
.gtt-wk-arrow { font-size: 1.6rem; padding: 0; width: 48px; height: 48px; flex: none; }
.gtt-wk-arrow[aria-disabled="true"] { opacity: .4; cursor: default; }
.gtt-wk-arrow[aria-disabled="true"]:hover { border-color: var(--line-strong); }
.gtt-wk-jump { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 14px; font-size: 0.92rem; color: var(--text-muted); }
.gtt-wk-select { min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--bg2); color: var(--text); font: inherit; font-size: 0.92rem; max-width: 100%; }
.gtt-wk-select:focus-visible, .gtt-wk-link:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.gtt-wk-days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.gtt-wk-day { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 4px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--border); }
.gtt-wk-link { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 8px 6px; border-radius: 10px; text-decoration: none; color: var(--text); }
a.gtt-wk-link:hover { background: var(--bg); }
.gtt-wk-when { display: flex; flex-direction: column; line-height: 1.2; }
.gtt-wk-dow { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.gtt-wk-date { font-size: 0.86rem; color: var(--text-dim); white-space: nowrap; }
.gtt-wk-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; line-height: 1.3; }
.gtt-wk-name { font-weight: 700; font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow-wrap: break-word; }
.gtt-wk-tag { font-size: 0.78rem; font-weight: 600; color: var(--text-dim); }
.gtt-wk-go { align-self: flex-start; padding: 2px 10px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--bg); color: var(--accent); font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
a.gtt-wk-link:hover .gtt-wk-go { border-color: var(--accent); }
.gtt-wk-day.is-missed .gtt-wk-name { font-weight: 600; color: var(--text-muted); }
.gtt-wk-day.is-today { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.gtt-wk-day.is-off { background: transparent; border-style: dashed; }
.gtt-wk-day.is-off .gtt-wk-link { color: var(--text-dim); }
.gtt-wk-day.is-off .gtt-wk-name { font-weight: 500; color: var(--text-dim); }
.gtt-wk-show { min-height: 40px; padding: 0 8px; font-size: 0.82rem; width: 100%; }

@media (max-width: 860px) {
    .gtt-wk-days { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .gtt-wk-day { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 6px; }
    .gtt-wk-link { flex-direction: row; align-items: center; gap: 12px; padding: 6px 8px; }
    .gtt-wk-when { flex: none; width: 58px; }
    .gtt-wk-body { flex: 1; }
    .gtt-wk-name { -webkit-line-clamp: 2; font-size: 0.92rem; }
    .gtt-wk-show { width: auto; padding: 0 10px; }
}
@media (max-width: 640px) {
    .gtt-wk-top .btn { flex: 1 1 100%; }
    .gtt-wk-jump { justify-content: flex-start; }
}

/* hints page and the "Stuck? Today's hints" link */
.gtt-hints-link { margin: 12px 0 0; text-align: center; font-size: 0.95rem; }
.gtt-hints-link a { font-weight: 600; }
.gtt-hint-more { border: 1px solid var(--border); border-radius: 16px; background: var(--bg2); padding: 12px 16px; }
.gtt-hint-more summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; }
.gtt-hint-more[open] summary { margin-bottom: 4px; }

/* "Guess the Town only" extra towns have square 301 px paintings: square frame, never upscaled past 360 px */
.gtt-reveal-art.gtt-art-square { aspect-ratio: 1 / 1; max-width: 360px; margin-left: auto; margin-right: auto; }
.gtt-card-inner > .gtt-reveal-art.gtt-art-square { margin: 0 auto 16px; }
.gtt-answer-art.gtt-art-square { aspect-ratio: 1 / 1; height: auto; max-width: 360px; align-self: center; justify-self: center; }


/* ============================================================
   Guess the Suburb additions (everything above is Guess the Town's stylesheet, copied)
   ============================================================ */

/* a wrong guess shows its distance and arrow beside the name */
.gtt-guesses .gts-guess-text { min-width: 0; overflow-wrap: anywhere; }
.gts-dist { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--text); white-space: nowrap; }
.gtt-guesses li:has(.gtt-sq-g) .gts-dist { color: var(--ok-fg); }

/* city banner placeholder on the reveal, until the owner's art arrives */
.gts-banner {
    display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; box-sizing: border-box;
    width: 100%; aspect-ratio: 1024 / 688; max-height: 260px; border-radius: 16px; margin: 0 0 16px; padding: 16px 18px;
    border: 1px solid var(--border); color: #F8F1E7; position: relative; overflow: hidden;
    background: linear-gradient(180deg, #2B3A4A 0%, #3D5A5E 55%, #6C8A6B 100%);
}
.gts-banner::before { /* a soft skyline of blocks */
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 48%;
    background:
        linear-gradient(#1D2633, #1D2633) 4% 100% / 9% 70% no-repeat,
        linear-gradient(#1D2633, #1D2633) 15% 100% / 7% 95% no-repeat,
        linear-gradient(#1D2633, #1D2633) 25% 100% / 10% 55% no-repeat,
        linear-gradient(#1D2633, #1D2633) 38% 100% / 8% 80% no-repeat,
        linear-gradient(#1D2633, #1D2633) 50% 100% / 11% 100% no-repeat,
        linear-gradient(#1D2633, #1D2633) 64% 100% / 8% 60% no-repeat,
        linear-gradient(#1D2633, #1D2633) 75% 100% / 10% 85% no-repeat,
        linear-gradient(#1D2633, #1D2633) 88% 100% / 8% 50% no-repeat;
    opacity: 0.55;
}
.gts-banner-melbourne { background: linear-gradient(180deg, #34364F 0%, #5A5878 55%, #A07C6B 100%); }
.gts-banner-brisbane { background: linear-gradient(180deg, #2B4A55 0%, #3F7A78 55%, #C9A25A 100%); }
.gts-banner-city, .gts-banner-sub { position: relative; z-index: 1; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45); }
.gts-banner-city { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 5vw, 2rem); letter-spacing: -0.02em; line-height: 1.05; }
.gts-banner-sub { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.9; }
.gtt-card-inner > .gts-banner { margin-bottom: 16px; }

/* "Did you know?" as a plain list of checked sentences (no question/answer pair) */
.gts-facts { list-style: none; padding: 0; }
.gts-facts .gtt-fact { font-size: 0.96rem; line-height: 1.55; color: var(--text-muted); }

/* hub: one card per city */
.gts-city-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 18px; }
.gts-city-card {
    display: flex; flex-direction: column; gap: 6px; padding: 20px 20px 18px; border-radius: 20px; text-decoration: none; color: var(--text);
    background: var(--bg2); border: 1px solid var(--border); border-top: 5px solid var(--accent2); box-shadow: var(--shadow-sm);
    transition: transform .15s ease, box-shadow .15s ease;
}
.gts-city-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-hover); }
.gts-city-name { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.1; }
.gts-city-sub { color: var(--text-muted); line-height: 1.45; }
.gts-city-go { margin-top: 6px; font-weight: 700; color: var(--accent); }
.gts-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gts-cta-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gtt-reveal-links .gtt-link-row + p { margin-top: 2px; }

@media (max-width: 640px) {
    .gts-city-grid, .gts-cta-4 { grid-template-columns: 1fr; }
    .gts-banner { max-height: 180px; }
}
@media (prefers-reduced-motion: reduce) { .gts-city-card { transition: none; } .gts-city-card:hover { transform: none; } }
html.gtt-reduce-motion .gts-city-card { transition: none; } html.gtt-reduce-motion .gts-city-card:hover { transform: none; }
.gts-family { margin-left: 6px; padding: 1px 7px; border-radius: 999px; border: 1px solid currentColor; font-size: 0.74rem; font-weight: 700; white-space: nowrap; color: var(--text-dim); }
