/* The client portal. Site mode: sand ground, cream cards, square edges, editorial spacing. */
:root { --hdr: var(--header-h); }
@media (min-width: 1024px) { :root { --hdr: var(--header-h-lg); } }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
body.tsg-site { background: var(--sand); }
#app { min-height: calc(100vh - var(--hdr)); }
main.page { padding: 36px 0 100px; }
@media (min-width: 1024px) { main.page { padding: 56px 0 120px; } }
.hidden { display: none !important; }
button { font: inherit; }
.linkish { background: none; border: 0; padding: 0; color: var(--gold); cursor: pointer; font: inherit; }
.linkish:hover { text-decoration: underline; text-underline-offset: 2px; }

/* Selected pills are gold outlined on white with a check, never a black box. */
.tsg-site .pill { border-color: rgba(139,131,113,.5); background: #fff; color: var(--ink); font-size: 14.5px; padding: 8px 14px; }
.tsg-site .pill.on { background: #fff; border: 1.5px solid var(--gold); color: var(--ink); padding: 7.5px 13.5px; box-shadow: inset 0 0 0 1px rgba(165,121,63,.15); }
.tsg-site .pill.on::before { content: "✓"; color: var(--gold); font-weight: 700; margin-right: 2px; }
.site-header { z-index: 50; }

/* header */
.site-header nav { gap: 44px; }
.site-header nav a { letter-spacing: .22em; }
.site-header .logo { top: 3px; }
.site-header .row { justify-content: space-between; }
.site-header .who { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.site-header .who .name { font-family: var(--font-label); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.7); display: none; }
@media (min-width: 640px) { .site-header .who .name { display: inline; } }
.site-header .signout { background: none; border: 1px solid rgba(255,255,255,.35); color: #fff; padding: 9px 14px; font-family: var(--font-label); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; transition: border-color var(--dur-fast), background-color var(--dur-fast); }
.site-header .signout:hover { border-color: var(--champagne); color: var(--champagne); }
.subnav { display: flex; gap: 0; background: var(--espresso); border-top: 1px solid rgba(255,255,255,.08); }
.subnav a { flex: 1; text-align: center; padding: 12px 8px; font-family: var(--font-label); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.subnav a.on { color: var(--champagne); box-shadow: inset 0 -2px 0 var(--gold); }
.subnav a:hover { text-decoration: none; color: #fff; }
@media (min-width: 1024px) { .subnav { display: none; } }
.conn-bar { background: var(--warn-soft); color: #7A5410; font-size: 13.5px; padding: 10px 20px; text-align: center; }
.conn-bar.waiting { background: var(--champagne); color: var(--espresso); }
@media (min-width: 640px) { .conn-bar { padding: 10px 28px; } }
.take .status .pending { color: #7A5410; }

.preview-bar { background: var(--warn-soft); color: #7A5410; font-size: 13.5px; padding: 10px 0; text-align: center; }

/* page title */
.page-title h1 { font-size: 36px; }
@media (min-width: 1024px) { .page-title h1 { font-size: 48px; } }
.page-title p { font-size: 16px; }
.page-title { margin-bottom: 32px; }

/* stat tiles in site mode: cream, square */
.tsg-site .stat { background: var(--cream); border-color: rgba(139,131,113,.25); border-radius: 0; }
.tsg-site .stat .v { font-size: 40px; }
.tiles { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(3, 1fr); } }

/* showing days on the home page */
.days { display: grid; gap: 40px; margin-top: 48px; }
.day-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid rgba(32,27,19,.14); padding-bottom: 12px; margin-bottom: 20px; }
.day-head h2 { font-size: 30px; }
@media (min-width: 1024px) { .day-head h2 { font-size: 34px; } }
.day-head .meta { font-family: var(--font-label); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--khaki); }
.day-note { margin: -8px 0 20px; color: var(--charcoal); max-width: 66ch; font-size: 15.5px; }
.stops { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.stop-card { display: block; background: var(--cream); border: 1px solid rgba(139,131,113,.25); color: inherit; text-decoration: none; transition: transform var(--dur) var(--ease), box-shadow var(--dur); }
.stop-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.stop-card .ph { position: relative; aspect-ratio: 3 / 2; background: var(--espresso); overflow: hidden; }
.stop-card .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stop-card .n { position: absolute; top: 12px; left: 12px; width: 32px; height: 32px; border-radius: 50%; background: rgba(22,18,12,.78); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.stop-card .t { position: absolute; top: 12px; right: 12px; background: rgba(22,18,12,.78); color: #fff; padding: 5px 10px; font-family: var(--font-label); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; }
.stop-card .body { padding: 16px 18px 18px; }
.stop-card .addr { font-family: var(--font-display); font-size: 22px; line-height: 1.15; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stop-card .price { margin-top: 4px; font-family: var(--font-display); font-size: 20px; color: var(--ink); }
.stop-card .specs { margin-top: 6px; font-size: 13.5px; color: var(--khaki); }
.stop-card .fit { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.fitbadge { display: inline-block; font-family: var(--font-label); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; padding: 4px 8px; background: var(--sand); color: var(--khaki); }
.fitbadge.f4, .fitbadge.f5 { background: rgba(165,121,63,.16); color: #7D5C31; }
.fitbadge.f1 { background: var(--bad-soft); color: #7A331A; }
.fitbadge.f3 { background: #E7EDE6; color: #3F5F45; }
.fitbadge.f2 { background: #E8EBEF; color: #44546A; }

/* the day view: stops rail, the property, the take */
.dayview { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .dayview { grid-template-columns: minmax(0, 1fr) 340px; } }
@media (min-width: 1360px) { .dayview { grid-template-columns: 290px minmax(0, 1fr) 360px; } .rail { order: -1; } }
.rail { display: none; }
@media (min-width: 1360px) { .rail { display: block; position: sticky; top: calc(var(--hdr) + 24px); align-self: start; } }
.rail .kicker { margin-bottom: 10px; }
.rail a { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 12px 12px 10px; color: var(--ink); border-left: 2px solid transparent; border-bottom: 1px solid rgba(32,27,19,.06); }
.rail a:hover { text-decoration: none; background: var(--cream); }
.rail a.on { border-left-color: var(--gold); background: var(--cream); }
.rail a > span:last-child { display: block; min-width: 0; }
.rail a .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--ink); }
.rail a.on .n { background: var(--gold); color: #fff; }
.rail a .a { display: block; font-family: var(--font-display); font-size: 18px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail a .s { display: block; margin-top: 3px; font-size: 12.5px; color: var(--khaki); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: lining-nums tabular-nums; }
.rail .rail-day { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(32,27,19,.1); font-size: 13px; color: var(--khaki); line-height: 1.6; }
.rail .rail-day a { display: inline; padding: 0; border: 0; white-space: nowrap; color: var(--gold); }
.rail .rail-day a:hover { background: none; text-decoration: underline; }
.strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 20px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border: 1px solid rgba(139,131,113,.45); background: #fff; color: var(--ink); font-family: var(--font-label); font-size: 13px; }
.strip a.on { background: #fff; border: 1.5px solid var(--gold); color: var(--ink); }
.strip a:hover { text-decoration: none; }
.strip a .n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 13px; }
.strip a.on .n { background: var(--gold); color: #fff; }
.strip a.on .muted { color: var(--khaki); }
@media (min-width: 1360px) { .strip { display: none; } }
/* On a phone the take comes first, above the property. On a desktop it sits beside it and sticks. */
.aside { display: block; order: -1; }
@media (min-width: 1024px) { .aside { order: 0; align-self: start; } }
.take-fab { display: none; }
.take-sheet .sheet { max-height: 88vh; overflow: auto; padding: 0; }
.take-sheet .take { border: 0; }

/* the property */
.prop { background: var(--cream); border: 1px solid rgba(139,131,113,.25); }
.hero { position: relative; background: var(--espresso); aspect-ratio: 16 / 10; max-height: 640px; overflow: hidden; }
@media (min-width: 1024px) { .hero { aspect-ratio: 16 / 9; } }
.hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero .hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,18,12,.18) 0%, rgba(22,18,12,0) 30%, rgba(22,18,12,.2) 55%, rgba(22,18,12,.86) 100%); }
.hero .over { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 20px 22px; color: #fff; }
@media (min-width: 640px) { .hero .over { padding: 28px 32px 30px; } }
.hero .status { display: inline-block; font-family: var(--font-label); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--champagne); margin-bottom: 8px; }
.hero .addr { font-family: var(--font-display); font-weight: 500; font-size: 40px; line-height: 1.02; white-space: nowrap; overflow: hidden; color: #fff; letter-spacing: .005em; }
@media (min-width: 640px) { .hero .addr { font-size: 52px; } }
.hero .city { margin-top: 6px; font-family: var(--font-label); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.82); }
.hero .price { margin-top: 12px; font-family: var(--font-display); font-size: 30px; color: #fff; }
@media (min-width: 640px) { .hero .price { font-size: 36px; } }
.hero .price .was { font-size: 16px; color: rgba(255,255,255,.7); margin-left: 12px; text-decoration: line-through; }
.hero .n { position: absolute; top: 16px; left: 16px; width: 40px; height: 40px; border-radius: 50%; background: rgba(22,18,12,.7); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.hero .cnt { position: absolute; top: 16px; right: 16px; background: rgba(22,18,12,.7); color: #fff; padding: 7px 12px; font-family: var(--font-label); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; border: 0; cursor: pointer; }
.statstrip { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 8px; border-bottom: 1px solid rgba(139,131,113,.25); padding: 12px 12px 8px; }
@media (max-width: 480px) { .statstrip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.statstrip div { padding: 16px 6px 18px; text-align: center; min-width: 0; }
.statstrip .v { font-family: var(--font-display); font-weight: 500; font-size: clamp(26px, 2.4vw, 38px); color: var(--ink); line-height: 1; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.statstrip .k { margin-top: 8px; font-family: var(--font-label); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--khaki); white-space: nowrap; }
.sec { padding: 36px 20px; border-bottom: 1px solid rgba(139,131,113,.18); }
@media (min-width: 640px) { .sec { padding: 48px 32px; } }
.sec:last-child { border-bottom: 0; }
.sec .kicker { margin-bottom: 10px; }
.sec h2 { font-size: 28px; margin-bottom: 18px; max-width: 24ch; }
@media (min-width: 1024px) { .sec h2 { font-size: 34px; } }
.story { max-width: 720px; }
.story h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.08; letter-spacing: -0.01em; margin: 12px 0 20px; max-width: none; }
.story p { font-size: 17px; line-height: 1.7; color: var(--charcoal); }
.story p + p { margin-top: 18px; }
.pull { font-family: var(--font-display); font-style: italic; font-size: 24px; line-height: 1.3; color: var(--ink); margin: 0 0 24px; padding-left: 18px; border-left: 2px solid var(--gold); }
.features { columns: 1; gap: 48px; list-style: none; padding: 0; margin: 0; max-width: 720px; }
@media (min-width: 640px) { .features { columns: 2; } }
.features li { break-inside: avoid; padding: 9px 0 9px 20px; position: relative; border-bottom: 1px solid rgba(139,131,113,.18); font-size: 15px; color: var(--charcoal); }
.features li::before { content: "·"; position: absolute; left: 2px; top: 5px; color: var(--gold); font-size: 22px; line-height: 1; }
.gallery { display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(4, 1fr); } .gallery button:first-child { grid-column: span 2; grid-row: span 2; } }
.gallery button { border: 0; padding: 0; background: var(--espresso); aspect-ratio: 4 / 3; overflow: hidden; cursor: pointer; }
.gallery button img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--dur) var(--ease); }
.gallery button:hover img { transform: scale(1.03); }
.gallery-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; gap: 16px; }
.gallery-foot .bar { max-width: 240px; }
.dl { display: grid; gap: 28px; }
@media (min-width: 900px) { .dl { grid-template-columns: repeat(2, 1fr); gap: 28px 48px; } }
.dl h3 { font-family: var(--font-label); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 8px; }
.dl dl { margin: 0; }
.dl .r { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(139,131,113,.18); font-size: 14px; }
.dl dt { color: var(--khaki); } .dl dd { margin: 0; color: var(--ink); }
.pricehist { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 8px; }
.pricehist th { text-align: left; font-family: var(--font-label); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--khaki); padding: 8px 0; border-bottom: 1px solid rgba(32,27,19,.14); font-weight: 600; }
.pricehist td { padding: 10px 0; border-bottom: 1px solid rgba(139,131,113,.18); }
.pricehist .num, .pricehist th.num { text-align: right; font-variant-numeric: lining-nums tabular-nums; }
.mapbox { height: 360px; border: 1px solid rgba(139,131,113,.25); background: var(--sand); position: relative; z-index: 0; isolation: isolate; }
.map-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; font-size: 14px; }
.tour { aspect-ratio: 16 / 9; background: var(--espresso); border: 0; width: 100%; }
.agents { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.agent { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 18px; align-items: center; background: #fff; border: 1px solid rgba(139,131,113,.25); padding: 18px 20px; }
.agent img { width: 84px; height: 84px; object-fit: cover; border-radius: 50%; }
.agent .nm { font-family: var(--font-display); font-size: 24px; color: var(--ink); line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent .tt { font-size: 13px; color: var(--khaki); margin-top: 2px; }
.agent .ct { font-size: 14.5px; margin-top: 8px; line-height: 1.6; overflow-wrap: anywhere; }
.agent .ct a { display: block; }
@media (max-width: 640px) { .agents { grid-template-columns: 1fr; } }
.docs a { display: inline-flex; gap: 8px; align-items: center; margin-right: 16px; font-size: 14px; }
.disclaimer { font-size: 12.5px; color: var(--khaki); line-height: 1.6; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 1300; background: rgba(12,10,6,.94); display: grid; grid-template-rows: auto 1fr; }
.lb .top { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; color: #fff; font-family: var(--font-label); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.lb .stage { position: relative; display: grid; place-items: center; padding: 0 56px 24px; }
.lb .stage img { max-width: 100%; max-height: calc(100vh - 100px); object-fit: contain; }
.lb button { background: none; border: 1px solid rgba(255,255,255,.35); color: #fff; width: 44px; height: 44px; cursor: pointer; display: grid; place-items: center; font-size: 20px; }
.lb .prev, .lb .next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb .prev { left: 8px; } .lb .next { right: 8px; }

/* your take */
.take { background: var(--cream); border: 1px solid rgba(139,131,113,.25); padding: 22px 20px 24px; }
.take .kicker { margin-bottom: 4px; }
.take h3 { font-family: var(--font-display); font-weight: 500; font-size: 24px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 18px; }
.take .grp { margin-top: 18px; }
.take .grp .label { margin-bottom: 8px; }
.take .lblrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.take .lblrow .label { margin-bottom: 0; }
.dictate { display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(139,131,113,.5); background: #fff; color: var(--ink); padding: 7px 12px; min-height: 36px; font-family: var(--font-label); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast); }
.dictate i { width: 10px; height: 10px; border-radius: 50%; background: var(--khaki); }
.dictate:hover { border-color: var(--ink); }
.dictate.on { background: var(--bad); border-color: var(--bad); color: #fff; }
.dictate.on i { background: #fff; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .dictate.on i { animation: none; } }
.take .chip-row .pill { font-size: 13px; padding: 7px 12px; }
.take textarea { min-height: 96px; font-size: 15px; }
.take .status { margin-top: 10px; font-size: 12.5px; color: var(--khaki); display: flex; justify-content: space-between; }
.take .seen { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(139,131,113,.18); font-size: 13px; color: var(--khaki); }
.fitrow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.fitrow button { border: 1px solid rgba(139,131,113,.45); background: #fff; padding: 9px 4px; font-family: var(--font-label); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); cursor: pointer; transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast); }
.fitrow button:hover { border-color: var(--ink); }
.fitrow button.on { background: var(--gold); border-color: var(--gold); color: #fff; }
.fitrow button.on.f1 { background: var(--bad); border-color: var(--bad); }

/* compare */
.cmp-pick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 20px; }
.cmp-pick .lead { font-family: var(--font-label); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--khaki); margin-right: 6px; }
.cmp-wrap { overflow-x: auto; overflow-y: visible; background: var(--cream); border: 1px solid rgba(139,131,113,.3); }
table.cmp { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; font-size: 15.5px; line-height: 1.45; color: var(--ink); }
table.cmp th, table.cmp td { padding: 14px 18px; border-bottom: 1px solid rgba(139,131,113,.22); border-right: 1px solid rgba(139,131,113,.22); vertical-align: top; text-align: left; width: 300px; min-width: 300px; max-width: 300px; background: var(--cream); }
table.cmp th:last-child, table.cmp td:last-child { border-right: 0; }
table.cmp tbody tr:nth-child(even) td { background: #FDFBF6; }
table.cmp th:first-child, table.cmp td:first-child { position: sticky; left: 0; z-index: 2; width: 220px; min-width: 220px; max-width: 220px; font-family: var(--font-sans); font-weight: 600; font-size: 14px; color: var(--ink); background: var(--sand); border-right: 1px solid rgba(139,131,113,.35); }
table.cmp tbody tr:nth-child(even) td:first-child { background: var(--sand); }
table.cmp thead th { position: static; padding: 0; vertical-align: top; background: var(--cream); border-bottom: 2px solid rgba(32,27,19,.25); font-size: 0; line-height: 0; }
table.cmp thead th .hd { font-size: 15.5px; line-height: 1.45; }
table.cmp thead th:first-child { font-size: 14px; line-height: 1.45; }
table.cmp thead th:first-child { position: sticky; left: 0; z-index: 4; padding: 18px; vertical-align: bottom; background: var(--sand); }
table.cmp thead th:first-child .lead { font-family: var(--font-display); font-size: 22px; font-weight: 500; line-height: 1.15; color: var(--ink); }
table.cmp thead th:first-child .sub { display: block; margin-top: 6px; font-family: var(--font-sans); font-weight: 400; font-size: 12.5px; color: var(--khaki); }
table.cmp thead th .ph { aspect-ratio: 16 / 9; background: var(--espresso); overflow: hidden; }
table.cmp thead th .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
table.cmp thead th .hd { padding: 14px 18px 16px; }
table.cmp thead th .a { font-family: var(--font-display); font-size: 21px; line-height: 1.15; color: var(--ink); white-space: nowrap; overflow: hidden; display: block; font-weight: 500; }
table.cmp thead th .p { font-family: var(--font-display); font-size: 20px; color: var(--ink); margin-top: 4px; }
table.cmp thead th .s { font-size: 13px; color: var(--khaki); margin-top: 4px; font-family: var(--font-sans); font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
table.cmp tr.sec td { background: var(--sand); font-family: var(--font-display); font-size: 20px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink); padding: 22px 18px 10px; border-bottom: 1px solid rgba(139,131,113,.35); border-right: 0; }
table.cmp tr.sec td:first-child { background: var(--sand); font-family: var(--font-display); font-size: 20px; font-weight: 500; }
table.cmp td.num { text-align: left; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
table.cmp td.big { font-family: var(--font-display); font-size: 26px; line-height: 1.1; }
table.cmp td.neg { color: var(--bad); }
table.cmp td.pos { color: var(--good); }
table.cmp td .sub { display: block; margin-top: 2px; font-size: 12.5px; color: var(--khaki); font-family: var(--font-sans); font-variant-numeric: normal; }
table.cmp td.txt { font-size: 15px; line-height: 1.5; color: var(--charcoal); white-space: normal; }
table.cmp td .muted { color: rgba(139,131,113,.6); }
table.cmp .fin { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
table.cmp .fin label { font-family: var(--font-label); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--khaki); display: block; margin-bottom: 3px; }
table.cmp .fin input { width: 100%; box-sizing: border-box; border: 1px solid rgba(139,131,113,.45); padding: 8px 10px; font: inherit; font-size: 15px; background: #fff; }
table.cmp .fin input:disabled { color: var(--khaki); background: var(--sand); }
table.cmp .fin input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 1px rgba(165,121,63,.4); }
table.cmp .fin .pt { grid-column: span 2; display: flex; gap: 6px; }
table.cmp .fin .pt button { flex: 1; border: 1px solid rgba(139,131,113,.5); background: #fff; padding: 8px; font-family: var(--font-label); font-size: 12px; cursor: pointer; color: var(--ink); }
table.cmp .fin .pt button.on { border: 1.5px solid var(--gold); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(165,121,63,.15); }
table.cmp .fin .pt button.on::before { content: "✓ "; color: var(--gold); font-weight: 700; }
.cmp-note { font-size: 13px; color: var(--khaki); margin-top: 14px; max-width: 80ch; line-height: 1.6; }
.cmp-mapsec { margin-top: 48px; }
.cmp-mapsec h2 { font-size: 28px; margin: 6px 0 16px; }
.cmp-map { height: 420px; border: 1px solid rgba(139,131,113,.3); background: var(--sand); position: relative; z-index: 0; isolation: isolate; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 14px 0 0; font-size: 14.5px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; font-style: normal; font-family: var(--font-display); font-weight: 600; font-size: 14px; }
.pin { width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: #fff; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.3); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.pin.dim { background: var(--khaki); }
.leaflet-container { font-family: var(--font-sans); background: var(--sand); }
.quiet-tiles { filter: grayscale(.9) sepia(.18) saturate(.9) contrast(.92) brightness(1.03); }
.leaflet-popup-content-wrapper { border-radius: 0; box-shadow: var(--shadow-lift); }
.leaflet-popup-content { margin: 12px 14px; font-size: 13.5px; }
.leaflet-popup-content .a { font-family: var(--font-display); font-size: 17px; color: var(--ink); display: block; }

/* rank */
.rank { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.rank li { display: grid; grid-template-columns: 40px 96px 1fr auto; gap: 14px; align-items: center; background: var(--cream); border: 1px solid rgba(139,131,113,.25); padding: 10px 14px 10px 10px; cursor: grab; }
.rank li:active { cursor: grabbing; }
.rank li .n { font-family: var(--font-display); font-size: 28px; color: var(--gold); text-align: center; }
.rank li .ph { aspect-ratio: 3 / 2; background: var(--espresso); overflow: hidden; }
.rank li .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rank li .a { font-family: var(--font-display); font-size: 21px; color: var(--ink); line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank li .s { font-size: 13px; color: var(--khaki); margin-top: 2px; }
.rank li .r { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.rank li .h { color: var(--khaki); font-size: 22px; padding: 0 6px; user-select: none; }
.rank li.sortable-ghost { opacity: .4; }
.rank li.sortable-chosen { box-shadow: var(--shadow-lift); }
.rank .mv { display: flex; flex-direction: column; border-left: 1px solid rgba(139,131,113,.22); padding-left: 10px; margin-left: 4px; }
.rank .mv button { border: 0; background: none; width: 40px; height: 36px; padding: 0; cursor: pointer; color: var(--khaki); display: grid; place-items: center; transition: color var(--dur-fast); }
.rank .mv button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rank .mv button:hover { color: var(--gold); }
.rank .mv button:focus-visible { outline-offset: -2px; }
@media (max-width: 640px) { .rank li { grid-template-columns: 30px 72px 1fr auto; gap: 10px; } .rank li .n { font-size: 22px; } }

/* sign in */
.signin { min-height: 100vh; display: grid; place-items: center; background: var(--espresso); padding: 24px; }
.signin .sheet { max-width: 520px; }
.signin .kicker { color: var(--gold); margin-bottom: 6px; }
.signin h1 { font-size: 30px; margin-bottom: 20px; }
.signin .logo { height: 56px; margin-bottom: 28px; }
.signin .code { font-family: var(--font-display); font-size: 28px; letter-spacing: .18em; }

/* footer */
.foot { margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(32,27,19,.12); font-size: 12.5px; color: var(--khaki); line-height: 1.7; }
.foot img { height: 44px; margin-bottom: 12px; display: block; }

@media print {
  .site-header, .subnav, .take-fab, .cmp-pick, .btn, .preview-bar, .foot img { display: none !important; }
  body.tsg-site { background: #fff; }
  .cmp-wrap { max-height: none; overflow: visible; border: 0; }
  table.cmp th, table.cmp td { min-width: 0; max-width: none; font-size: 11px; padding: 6px 8px; }
  table.cmp thead th .ph { display: none; }
}
