/* Time to the Gulf: page styles layered on the v3 site.css palette */
.ttg-intro { padding: clamp(2.5rem, 6vw, 4.5rem) 0 1.75rem; background: var(--paper); }
.ttg-intro .display { margin: 0 0 1rem; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.02; }
.ttg-lede { max-width: 46rem; color: var(--ink-soft); font-size: 1.125rem; margin: 0 0 1rem; }
.ttg-badge { display: inline-block; margin: 0; padding: 0.35rem 0.8rem; border: 1px solid var(--bronze); color: var(--bronze-dark);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }

.ttg-tool { background: var(--paper); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.ttg-grid { width: min(1360px, calc(100% - 2.75rem)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.ttg-panel, .ttg-map-wrap, .ttg-search, .ttg-search-row, .ttg-controls { min-width: 0; max-width: 100%; }
.ttg-panel { background: var(--paper-2); border: 1px solid var(--line); padding: 1.5rem; box-shadow: var(--shadow); box-sizing: border-box; }
.ttg-search label, .ttg-controls label { display: block; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bronze-dark); margin-bottom: 0.5rem; }
.ttg-search-row { display: flex; gap: 0.5rem; }
.ttg-search input { flex: 1; min-width: 0; padding: 0.75rem 0.85rem; border: 1px solid var(--line-strong); background: #fff; font-size: 1rem; }
.ttg-search input:focus { outline: 2px solid var(--bronze); outline-offset: 0; }
.ttg-search .btn { padding: 0.75rem 1.1rem; white-space: nowrap; }
.ttg-hint { margin: 0.5rem 0 0; font-size: 0.9rem; color: var(--ink-soft); min-height: 1.5em; }
.ttg-hint.is-error { color: #8a2d1c; }
.ttg-controls { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.ttg-controls output { float: right; letter-spacing: 0.04em; color: var(--ink); text-transform: none; font-size: 0.95rem; }
.ttg-controls input[type=range] { width: 100%; accent-color: var(--bronze); }
.ttg-season { display: flex; justify-content: space-between; align-items: center; margin-top: 0.75rem; font-size: 0.95rem; }
.ttg-season select { padding: 0.35rem 0.5rem; border: 1px solid var(--line-strong); background: #fff; }
.ttg-note { font-size: 0.85rem; color: var(--ink-soft); margin: 0.75rem 0 0; line-height: 1.5; }

.ttg-results { margin-top: 1.25rem; display: grid; gap: 0.75rem; }
.ttg-stat { border-top: 1px solid var(--line); padding-top: 0.75rem; display: grid; }
.ttg-stat-label { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.ttg-stat-value { font-family: "Cormorant Garamond", Georgia, serif; font-size: 2rem; line-height: 1.15; }
.ttg-stat-value b { font-weight: 600; }
.ttg-stat--lead .ttg-stat-value { font-size: 3rem; color: var(--bronze-dark); }
.ttg-stat-sub { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.45; }
.ttg-legs { margin: 0.25rem 0 0; padding: 0.75rem 0 0 1.1rem; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--ink-soft); line-height: 1.5; }
.ttg-details { font-size: 0.92rem; }
.ttg-details summary { cursor: pointer; color: var(--bronze-dark); font-weight: 600; }
.ttg-details ul { padding-left: 1.1rem; margin: 0.5rem 0 0; color: var(--ink-soft); }
.ttg-alert { margin-top: 1.25rem; padding: 1rem; background: #f3e9df; border-left: 3px solid var(--bronze); font-size: 0.98rem; line-height: 1.55; }
.ttg-disclaimer { margin: 1.25rem 0 0; font-size: 0.8rem; line-height: 1.55; color: var(--ink-soft); }
.ttg-disclaimer strong { color: var(--ink); font-weight: 600; }
.ttg-disclaimer a { text-decoration: underline; }

.ttg-map-wrap { position: sticky; top: calc(var(--banner-h) + var(--header-h) + 1rem); }
.ttg-map { height: min(78vh, 820px); min-height: 520px; border: 1px solid var(--line); background: #dfe7ea; }
.ttg-legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; padding: 0.6rem 0.1rem 0; font-size: 0.85rem; color: var(--ink-soft); }
.lg { display: inline-block; width: 22px; height: 4px; margin-right: 0.45rem; vertical-align: middle; border-radius: 2px; }
.lg-canal { background: #c0392b; } .lg-slow { background: #e39b2d; } .lg-open { background: #1d4e89; }
.lg-bridge { width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); }
.ttg-dock { width: 16px; height: 16px; border-radius: 50%; background: var(--bronze); border: 3px solid #fff; box-shadow: 0 1px 6px rgba(0,0,0,.45); }
.ttg-end { width: 14px; height: 14px; border-radius: 50%; background: #1d4e89; border: 3px solid #fff; box-shadow: 0 1px 6px rgba(0,0,0,.45); }
.ttg-pin-label { background: var(--night); color: var(--foam); border: 0; font-family: "Source Sans 3", sans-serif; font-size: 15px; padding: 3px 7px; }
.ttg-pin-label::before { display: none; }

.ttg-how-copy p { color: var(--ink-soft); }
.ttg-sources span { display: block; font-size: 0.85rem; line-height: 1.5; }
.ttg-sources a { text-decoration: underline; }

@media (min-width: 961px) {
  .ttg-grid { grid-template-columns: minmax(280px, 400px) minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .ttg-map-wrap { position: static; order: -1; }
  .ttg-map { height: 56vh; min-height: 360px; }
  .ttg-panel { padding: 1.15rem; box-shadow: none; }
  .ttg-stat--lead .ttg-stat-value { font-size: 2.6rem; }
}
