/* ==========================================================================
   TideReady — Coastal Analytical Design System
   Inspired by The Economist's information density, tuned for marine data.
   ========================================================================== */

:root {
    --bg:           #fcfcfc;
    --bg-elev:     #ffffff;
    --bg-warm:     #f7f3eb;
    --bg-deep:     #efe9d9;
    --ink:         #0a192f;
    --ink-soft:    rgba(10, 25, 47, 0.72);
    --ink-muted:   rgba(10, 25, 47, 0.55);
    --rule:        rgba(10, 25, 47, 0.12);
    --rule-strong: rgba(10, 25, 47, 0.24);

    --tide:    #0077b6;
    --tide-deep: #034676;
    --tide-soft: rgba(0, 119, 182, 0.10);
    --wind:    #2a9d8f;
    --wind-soft: rgba(42, 157, 143, 0.12);
    --sand:    #e9c46a;
    --sand-soft: rgba(233, 196, 106, 0.22);
    --sand-deep: #c79e3b;
    --high:    #0077b6;
    --low:     #6c8eaf;

    --serif: "Playfair Display", Georgia, "Times New Roman", serif;
    --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    --shell-max: 1240px;
    --gap:       28px;
    --radius:    4px;
    --shadow-sm: 0 1px 2px rgba(10, 25, 47, 0.06);
    --shadow-md: 0 4px 14px rgba(10, 25, 47, 0.08);
}

/* -------------------- Reset & base -------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55;
    font-feature-settings: "ss01", "cv11";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, canvas { max-width: 100%; }
a { color: var(--tide); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); margin: 0 0 .4em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4vw, 2.85rem); line-height: 1.1; font-weight: 700; }
h2 { font-size: 1.5rem; font-weight: 600; }
h3 { font-size: 1.125rem; font-weight: 600; }

dl, ul, ol, p { margin: 0 0 1em; }

/* -------------------- Layout shell -------------------- */
.tr-shell {
    max-width: var(--shell-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* -------------------- Masthead -------------------- */
.tr-header,
.tr-masthead {
    background: var(--bg-elev);
    padding: 14px 0 0;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: saturate(140%) blur(6px);
}
.tr-header .tr-shell,
.tr-masthead__inner {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 12px;
}
.tr-masthead__rule {
    height: 4px;
    background: var(--ink);
    border-bottom: 1px solid var(--rule);
}
.tr-brand {
    font-family: var(--serif);
    font-weight: 900;
    font-size: 1.55rem;
    color: var(--ink);
    letter-spacing: -0.025em;
    line-height: 1;
}
.tr-brand:hover { text-decoration: none; color: var(--tide); }
.tr-nav {
    display: flex;
    gap: 22px;
    font-size: 0.78rem;
    font-weight: 600;
}
.tr-nav a {
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
}
.tr-nav a:hover {
    color: var(--ink);
    text-decoration: none;
    border-bottom-color: var(--sand);
}

/* -------------------- Strict 70/30 grid -------------------- */
.tr-fold {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(300px, 3fr);
    grid-template-areas:
        "ad   ad"
        "main side";
    column-gap: var(--gap);
    row-gap: 16px;
    padding-top: 24px;
    padding-bottom: 48px;
}
.tr-fold > .tr-ad--leaderboard { grid-area: ad; }
.tr-fold__main { grid-area: main; min-width: 0; }
.tr-fold__side { grid-area: side; min-width: 0;
    display: flex; flex-direction: column; gap: 18px;
}
/* Vertical column rule between left and right (Economist-like) */
@media (min-width: 961px) {
    .tr-fold__side {
        border-left: 1px solid var(--rule);
        padding-left: var(--gap);
        margin-left: calc(var(--gap) * -1);
    }
}

/* Legacy fallback for any non-fold pages still using two-column grid */
.tr-shell > .tr-main,
.tr-shell > .tr-side { margin-top: 28px; }
body > .tr-shell:not(.tr-fold):has(> .tr-main):has(> .tr-side) {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(280px, 3fr);
    gap: var(--gap);
    padding-top: 8px;
    padding-bottom: 56px;
}
.tr-main { min-width: 0; }

@media (max-width: 960px) {
    .tr-fold {
        grid-template-columns: 1fr;
        grid-template-areas:
            "ad"
            "main"
            "side";
    }
    body > .tr-shell:not(.tr-fold) { grid-template-columns: 1fr; }
}

/* -------------------- Ads -------------------- */
.tr-ad {
    margin: 8px 0 24px;
    text-align: center;
}
.tr-ad__slot {
    background: #f1f3f5;
    border: 1px dashed var(--rule-strong);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 auto;
    overflow: hidden;
}
.tr-ad--leaderboard .tr-ad__slot { width: 728px; height: 90px; max-width: 100%; }
.tr-ad--mrec        .tr-ad__slot { width: 300px; height: 250px; }
.tr-ad__label { opacity: 0.7; }

@media (max-width: 768px) {
    .tr-ad--leaderboard .tr-ad__slot { width: 320px; height: 50px; }
}

/* -------------------- Article -------------------- */
.tr-eyebrow {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--tide);
    font-weight: 700;
    margin: 0 0 10px;
}
.tr-title {
    font-size: clamp(2rem, 4.2vw, 3rem);
    line-height: 1.04;
    font-weight: 700;
    margin: 0 0 14px;
    padding-top: 6px;
    border-top: 1px solid var(--rule);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--rule);
}
.tr-deck {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    font-size: 1.125rem;
    line-height: 1.45;
    color: var(--ink-soft);
    max-width: 60ch;
    margin-bottom: 14px;
}

/* -------------------- Last-updated stamp -------------------- */
.tr-updated {
    margin: 0 0 22px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink-muted);
    border-bottom: 1px solid var(--rule);
    padding-bottom: 14px;
    display: flex;
    gap: 8px;
    align-items: baseline;
}
.tr-updated__label {
    font-weight: 600;
}
.tr-updated__label::after {
    content: '·';
    margin-left: 8px;
    color: var(--sand);
    font-weight: 700;
}
.tr-updated__value {
    font-family: var(--sans);
    font-variant-numeric: tabular-nums;
    color: var(--ink-soft);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
}

/* -------------------- Meta strip -------------------- */
.tr-meta {
    background: var(--bg-elev);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}
.tr-meta__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin: 0;
}
.tr-meta__list > div {
    border-left: 2px solid var(--sand);
    padding-left: 12px;
}
.tr-meta dt {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-muted);
    margin-bottom: 2px;
}
.tr-meta dd {
    margin: 0;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: var(--ink);
    font-size: 0.95rem;
}

/* -------------------- Chart card -------------------- */
.tr-chart-card {
    background: var(--bg-elev);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 22px 22px 18px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-md);
}
.tr-chart-card__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 10px;
}
.tr-chart-card__head h2 { margin: 0; }
.tr-legend {
    display: flex;
    gap: 18px;
    font-size: 0.8125rem;
    color: var(--ink-soft);
}
.tr-legend span { display: inline-flex; align-items: center; gap: 6px; }
.tr-swatch {
    display: inline-block;
    width: 14px;
    height: 4px;
    border-radius: 2px;
    background: var(--ink);
}
.tr-swatch--tide { background: var(--tide); height: 3px; }
.tr-swatch--wind { background: var(--wind); height: 10px; width: 10px; border-radius: 1px; }
.tr-swatch--now  {
    background: transparent;
    border-left: 2px dashed var(--sand);
    height: 12px; width: 6px;
    border-radius: 0;
}

.tr-chart-wrap {
    position: relative;
    height: 420px;
}
.tr-chart-wrap--main { height: 420px; }
.tr-chart-wrap--dir  { height: 110px; }

.tr-chart-card--secondary {
    margin-top: -8px;
    padding-top: 18px;
    padding-bottom: 14px;
}
.tr-chart-card__sub {
    margin: 4px 0 0;
    font-size: 0.78rem;
    color: var(--ink-muted);
}
.tr-chart-hint {
    margin: 10px 0 0;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-muted);
    text-align: center;
}
.tr-chart-status {
    margin: 12px 0 0;
    font-size: 0.85rem;
    color: var(--ink-muted);
    text-align: center;
}

@media (max-width: 600px) {
    .tr-chart-wrap { height: 320px; }
}

/* -------------------- Extremes list -------------------- */
.tr-extremes {
    margin-bottom: 36px;
}
.tr-extremes h2 {
    border-bottom: 2px solid var(--ink);
    padding-bottom: 6px;
    display: inline-block;
    margin-bottom: 14px;
}
.tr-extremes__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}
.tr-extremes__item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg-elev);
    border: 1px solid var(--rule);
    border-left-width: 4px;
    border-radius: var(--radius);
    font-size: 0.9rem;
}
.tr-extremes__item--high { border-left-color: var(--high); }
.tr-extremes__item--low  { border-left-color: var(--sand); }
.tr-extremes__type {
    font-family: var(--serif);
    font-weight: 700;
    color: var(--ink);
    font-size: 1rem;
}
.tr-extremes__time {
    color: var(--ink-soft);
    font-variant-numeric: tabular-nums;
}
.tr-extremes__level {
    font-weight: 600;
    color: var(--tide);
    font-variant-numeric: tabular-nums;
}
.tr-extremes__placeholder {
    color: var(--ink-muted);
    font-style: italic;
    list-style: none;
}

/* -------------------- Sidebar -------------------- */
.tr-side {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.tr-card {
    background: var(--bg-elev);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 18px 18px 14px;
    box-shadow: var(--shadow-sm);
}
.tr-card h3 {
    margin: 0 0 8px;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 6px;
}
.tr-card p {
    font-size: 0.9rem;
    color: var(--ink-soft);
    margin-bottom: 10px;
}
.tr-card p:last-child { margin-bottom: 0; }
.tr-linklist {
    list-style: none;
    margin: 0;
    padding: 0;
}
.tr-linklist li { border-bottom: 1px dashed var(--rule); }
.tr-linklist li:last-child { border-bottom: none; }
.tr-linklist a {
    display: block;
    padding: 9px 0;
    font-size: 0.92rem;
    color: var(--ink);
    font-weight: 500;
}
.tr-linklist a::before {
    content: "→ ";
    color: var(--sand);
    margin-right: 4px;
}
.tr-linklist a:hover { color: var(--tide); text-decoration: none; }

/* -------------------- Footer -------------------- */
.tr-footer {
    border-top: 1px solid var(--rule);
    padding: 22px 0 28px;
    background: var(--bg-elev);
    color: var(--ink-muted);
    font-size: 0.8125rem;
}
.tr-footer p { margin: 0; }

/* -------------------- Hero image -------------------- */
.tr-hero {
    margin: 0 0 24px;
    grid-column: 1 / -1;
}
.tr-hero img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--rule);
}
.tr-hero figcaption {
    font-size: 0.75rem;
    color: var(--ink-muted);
    text-align: right;
    margin-top: 6px;
    letter-spacing: 0.04em;
}

/* -------------------- Local-content section -------------------- */
.tr-local {
    background: var(--bg-elev);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 44px 0 56px;
    margin-top: 8px;
}
.tr-local__head {
    margin-bottom: 28px;
    text-align: center;
    border-bottom: 2px solid var(--ink);
    padding-bottom: 14px;
}
.tr-local__head h2 {
    margin: 0;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
}
.tr-local__grid {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 3fr);
    gap: 36px;
    align-items: start;
}
.tr-local__col h3 {
    margin: 0 0 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--rule);
    font-size: 1.0625rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: var(--sans);
    font-weight: 600;
    color: var(--ink);
}
.tr-local__col--history p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ink-soft);
    column-rule: 1px solid var(--rule);
}
.tr-local__col--history p::first-letter {
    font-family: var(--serif);
    font-size: 3rem;
    float: left;
    line-height: 0.9;
    padding: 4px 8px 0 0;
    color: var(--tide);
}

@media (max-width: 960px) {
    .tr-local__grid { grid-template-columns: 1fr; gap: 28px; }
}

/* -------------------- Points of interest (attractions / restaurants) -------------------- */
.tr-poi {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.tr-poi__item {
    background: var(--bg);
    border: 1px solid var(--rule);
    border-left: 3px solid var(--sand);
    border-radius: var(--radius);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
}
.tr-poi__img {
    display: block;
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-bottom: 1px solid var(--rule);
}
.tr-poi__body { padding: 12px 14px 14px; }
.tr-poi__name {
    font-family: var(--serif);
    font-size: 1.0625rem;
    margin: 0 0 2px;
    font-weight: 700;
    color: var(--ink);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}
.tr-poi__name a { color: var(--ink); }
.tr-poi__name a:hover { color: var(--tide); text-decoration: none; }
.tr-poi__price {
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--wind);
    letter-spacing: 0.04em;
}
.tr-poi__type {
    margin: 0 0 6px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--tide);
    font-weight: 600;
}
.tr-poi__desc {
    margin: 0;
    font-size: 0.9rem;
    color: var(--ink-soft);
    line-height: 1.5;
}

/* ==========================================================================
   Homepage
   ========================================================================== */
.tr-body--home main.tr-shell--home {
    display: block;
    padding-top: 0;
    padding-bottom: 64px;
}

.tr-hero-band {
    background: linear-gradient(180deg, #fcfcfc 0%, #f0f4f8 100%);
    border-bottom: 1px solid var(--rule);
    padding: 56px 0 48px;
    margin-bottom: 40px;
}
.tr-hero-band .tr-eyebrow { margin-bottom: 12px; }
.tr-home-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    line-height: 1.05;
    margin: 0 0 18px;
    max-width: 18ch;
    letter-spacing: -0.02em;
}
.tr-home-deck {
    font-size: 1.0625rem;
    color: var(--ink-soft);
    max-width: 60ch;
    margin: 0;
}

.tr-home-section {
    margin-bottom: 56px;
}
.tr-home-section__head {
    margin-bottom: 22px;
    border-bottom: 2px solid var(--ink);
    padding-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
}
.tr-home-section__head h2 { margin: 0; font-size: 1.5rem; }
.tr-home-section__sub {
    margin: 0;
    color: var(--ink-muted);
    font-size: 0.9rem;
}

/* Beach grid */
.tr-beach-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}
.tr-beach-card {
    background: var(--bg-elev);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    box-shadow: var(--shadow-sm);
}
.tr-beach-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--tide);
}
.tr-beach-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
}
.tr-beach-card__link:hover { text-decoration: none; }

.tr-beach-card__img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid var(--rule);
}
.tr-beach-card__img--placeholder { padding: 0; }
.tr-beach-card__img--placeholder svg { display: block; width: 100%; height: 180px; }

.tr-beach-card__body { padding: 18px 18px 16px; }
.tr-beach-card__name {
    margin: 0 0 4px;
    font-size: 1.25rem;
    font-family: var(--serif);
    color: var(--ink);
    letter-spacing: -0.01em;
}
.tr-beach-card__sub {
    margin: 0 0 12px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--tide);
    font-weight: 600;
}
.tr-beach-card__meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 0 0 14px;
    padding: 10px 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}
.tr-beach-card__meta > div {
    border-left: 2px solid var(--sand);
    padding-left: 8px;
    min-width: 0;
}
.tr-beach-card__meta dt {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-muted);
    margin: 0 0 2px;
}
.tr-beach-card__meta dd {
    margin: 0;
    font-variant-numeric: tabular-nums;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
}
.tr-beach-card__cta {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tide);
    letter-spacing: 0.02em;
}
.tr-beach-card:hover .tr-beach-card__cta { color: var(--ink); }

/* "How it works" steps */
.tr-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: step;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}
.tr-steps li {
    background: var(--bg-elev);
    border: 1px solid var(--rule);
    border-top: 3px solid var(--tide);
    border-radius: var(--radius);
    padding: 20px;
    counter-increment: step;
    position: relative;
}
.tr-steps li::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    top: 14px;
    right: 18px;
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--sand);
    line-height: 1;
}
.tr-steps li h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-family: var(--serif);
}
.tr-steps li p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--ink-soft);
    line-height: 1.55;
}

/* Empty state */
.tr-empty {
    color: var(--ink-muted);
    font-style: italic;
    padding: 24px;
    border: 1px dashed var(--rule-strong);
    border-radius: var(--radius);
    text-align: center;
}

/* ==========================================================================
   Current Conditions panel (right column)
   Editorial-style KPI table with bold serif numbers and italic tide accent.
   ========================================================================== */
.tr-conditions {
    background: var(--bg-elev);
    border: 1px solid var(--rule);
    border-top: 4px solid var(--ink);
    padding: 22px 24px 18px;
    box-shadow: var(--shadow-sm);
    position: relative;
}
.tr-conditions::after {
    content: '';
    position: absolute;
    top: -4px;
    right: 24px;
    width: 60px;
    height: 4px;
    background: var(--sand);
}
.tr-conditions__head {
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--rule);
}
.tr-conditions__head h2 {
    font-family: var(--serif);
    font-size: 1.35rem;
    margin: 0 0 4px;
    letter-spacing: -0.01em;
    font-weight: 600;
}
.tr-conditions__time {
    margin: 0;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--ink-muted);
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}
.tr-conditions__list {
    margin: 0;
    padding: 0;
}
.tr-conditions__row {
    display: grid;
    grid-template-columns: minmax(78px, auto) 1fr;
    align-items: baseline;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--rule);
    font-variant-numeric: tabular-nums;
}
.tr-conditions__row:last-child { border-bottom: none; }
.tr-conditions__row dt {
    margin: 0;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--ink-muted);
    font-weight: 700;
}
.tr-conditions__row dd {
    margin: 0;
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--ink);
    text-align: right;
    line-height: 1.1;
    letter-spacing: -0.01em;
}
.tr-conditions__row--accent dt {
    color: var(--tide);
}
.tr-conditions__row--accent dd {
    font-style: italic;
    color: var(--tide);
    font-weight: 600;
}
.tr-conditions__next {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 2px solid var(--ink);
}
.tr-conditions__source {
    margin: 14px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--rule);
    font-size: 0.72rem;
    color: var(--ink-muted);
    line-height: 1.5;
}
.tr-conditions__source strong {
    color: var(--ink-soft);
    font-weight: 700;
    background: linear-gradient(180deg, transparent 60%, var(--sand-soft) 60%);
    padding: 0 2px;
}

.tr-card--locations {
    background: transparent;
    box-shadow: none;
    padding: 4px 0 0;
    border: 0;
}
.tr-card--locations h3 {
    border: 0;
    border-bottom: 2px solid var(--ink);
    padding: 0 0 4px;
    margin-bottom: 6px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-family: var(--sans);
    font-weight: 700;
}

/* ==========================================================================
   EDITORIAL VISUAL LAYER
   Punches up the existing structure with magazine-style devices:
   atmosphere, italic accent type, drop caps, KPI cards, circled section
   numbers, stat strips, numbered method steps, highlighter strong, etc.
   ========================================================================== */

/* Atmosphere: subtle radial color blobs in the body background */
body {
    background-image:
        radial-gradient(circle at 12% 6%,  rgba(0, 119, 182, 0.045) 0%, transparent 38%),
        radial-gradient(circle at 88% 78%, rgba(233, 196, 106, 0.075) 0%, transparent 42%),
        radial-gradient(circle at 50% 100%, rgba(42, 157, 143, 0.04) 0%, transparent 35%);
    background-attachment: fixed;
}

/* Display-italic accent — single device used across every title */
h1.tr-title em,
h1.tr-home-title em,
.tr-section-title em,
.tr-display em {
    font-style: italic;
    color: var(--tide);
    font-weight: 600;
}

/* Highlighter on inline strong (sand-yellow underline wash) */
.tr-prose strong,
.tr-deck strong,
.tr-conditions__source strong,
.tr-poi__desc strong {
    background: linear-gradient(180deg, transparent 60%, var(--sand-soft) 60%);
    padding: 0 2px;
    color: var(--ink);
    font-weight: 600;
}

/* Drop cap (refined, larger, in tide blue) */
.tr-dropcap::first-letter,
.tr-local__col--history p::first-letter {
    font-family: var(--serif);
    font-size: 4rem;
    font-weight: 700;
    float: left;
    line-height: 0.84;
    margin: 6px 12px 2px -2px;
    color: var(--tide);
    font-style: normal;
}

/* -------------------- Section label with circled number -------------------- */
.tr-section-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--tide);
    margin: 0 0 18px;
}
.tr-section-num {
    width: 26px; height: 26px;
    border: 1px solid var(--tide);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    letter-spacing: 0;
    font-feature-settings: "tnum";
    font-weight: 700;
}

/* -------------------- Bigger title treatment (overrides earlier .tr-title) -------------------- */
h1.tr-title {
    font-size: clamp(2.1rem, 4.5vw, 3.4rem);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.025em;
    border-top: 4px solid var(--ink);
    padding-top: 20px;
    margin: 0 0 14px;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 16px;
}

/* -------------------- Stat strip (4-up, used near hero) -------------------- */
.tr-stat-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
    margin: 24px 0 36px;
}
.tr-stat-cell {
    background: var(--bg-elev);
    padding: 22px 18px;
    text-align: center;
}
.tr-stat-val {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.05;
    letter-spacing: -0.02em;
}
.tr-stat-val em {
    font-style: italic;
    color: var(--tide);
    font-weight: 500;
}
.tr-stat-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--ink-muted);
    margin-top: 6px;
    font-weight: 600;
}
@media (max-width: 600px) {
    .tr-stat-strip { grid-template-columns: 1fr 1fr; }
}

/* -------------------- KPI cards (Current Conditions, hero KPIs) -------------------- */
.tr-kpi-stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.tr-kpi-card {
    background: var(--bg-warm);
    border: 1px solid var(--rule);
    padding: 22px 24px;
    transition: background 0.25s ease, border-color 0.25s ease;
}
.tr-kpi-card:hover {
    background: var(--ink);
    border-color: var(--ink);
}
.tr-kpi-card:hover .tr-kpi-label,
.tr-kpi-card:hover .tr-kpi-value,
.tr-kpi-card:hover .tr-kpi-note { color: var(--bg); }
.tr-kpi-card:hover .tr-kpi-value em { color: var(--sand); }
.tr-kpi-card:hover .tr-kpi-label { color: rgba(252,252,252,0.6); }
.tr-kpi-card:hover .tr-kpi-note  { color: rgba(252,252,252,0.75); }

.tr-kpi-label {
    font-family: var(--sans);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ink-muted);
    margin: 0 0 10px;
    transition: color 0.25s;
}
.tr-kpi-value {
    font-family: var(--serif);
    font-size: 2.4rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0 0 8px;
    font-variant-numeric: tabular-nums;
    transition: color 0.25s;
}
.tr-kpi-value em {
    font-style: italic;
    color: var(--tide);
    font-weight: 500;
    transition: color 0.25s;
}
.tr-kpi-value .tr-kpi-unit {
    font-family: var(--sans);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink-muted);
    margin-left: 4px;
    letter-spacing: 0;
}
.tr-kpi-note {
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--ink-soft);
    transition: color 0.25s;
    margin: 0;
}

/* Severity tag chips (tide direction, etc.) */
.tr-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--sans);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 4px 10px;
    border: 1px solid;
    line-height: 1.2;
}
.tr-tag--rising  { color: var(--tide); border-color: var(--tide); background: var(--tide-soft); }
.tr-tag--falling { color: var(--sand-deep); border-color: var(--sand-deep); background: var(--sand-soft); }
.tr-tag--slack   { color: var(--ink-soft); border-color: var(--rule-strong); background: transparent; }
.tr-tag-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: currentColor;
}

/* -------------------- Numbered method-step list -------------------- */
.tr-method-list {
    list-style: none;
    counter-reset: tr-step;
    padding: 0;
    margin: 0;
}
.tr-method-list > li {
    counter-increment: tr-step;
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 24px;
    padding: 28px 0;
    border-top: 1px solid var(--rule);
    align-items: start;
}
.tr-method-list > li:last-child {
    border-bottom: 1px solid var(--rule);
}
.tr-method-list > li::before {
    content: counter(tr-step, decimal-leading-zero);
    font-family: var(--serif);
    font-size: 2.2rem;
    color: var(--tide);
    font-weight: 400;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}
.tr-method-list h3 {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0 0 6px;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.tr-method-list p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* -------------------- Pull quote / callout -------------------- */
.tr-callout {
    background: var(--bg-warm);
    border-left: 4px solid var(--sand);
    padding: 22px 28px;
    margin: 32px 0;
    font-family: var(--serif);
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.55;
    color: var(--ink-soft);
}
.tr-callout::before {
    content: '\201C';
    font-size: 2.5rem;
    color: var(--sand-deep);
    line-height: 0;
    margin-right: 4px;
    vertical-align: -0.45em;
}

/* -------------------- Beach card upgrade (homepage) -------------------- */
.tr-beach-card {
    position: relative;
    isolation: isolate;
}
.tr-beach-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--tide) 0%, var(--wind) 50%, var(--sand) 100%);
    z-index: 2;
}
.tr-beach-card__num {
    position: absolute;
    top: 14px;
    right: 18px;
    z-index: 3;
    font-family: var(--serif);
    font-size: 1.8rem;
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 6px rgba(10,25,47,0.4);
    pointer-events: none;
}
.tr-beach-card__img--placeholder + .tr-beach-card__body { background: var(--bg-elev); }
.tr-beach-card__cta::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 1px;
    background: currentColor;
    margin-left: 6px;
    vertical-align: middle;
    transition: width 0.2s;
}
.tr-beach-card:hover .tr-beach-card__cta::after { width: 36px; }

/* -------------------- POI card upgrade (numbered, gradient top rule) -------------------- */
.tr-poi__item {
    position: relative;
    counter-increment: tr-poi;
}
.tr-poi {
    counter-reset: tr-poi;
}
.tr-poi__item::after {
    content: counter(tr-poi, decimal-leading-zero);
    position: absolute;
    top: 14px;
    right: 18px;
    font-family: var(--serif);
    font-size: 1.4rem;
    color: var(--bg-deep);
    font-weight: 700;
    letter-spacing: -0.02em;
    pointer-events: none;
}
.tr-poi__item:hover {
    border-color: var(--tide);
    transition: border-color 0.2s;
}

/* -------------------- Last-updated stamp (refined) -------------------- */
.tr-updated {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-warm);
    border: 1px solid var(--rule);
    padding: 6px 14px 6px 12px;
    margin: 0 0 28px;
    border-bottom: 1px solid var(--rule);
}
.tr-updated::before {
    content: '';
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--wind);
    box-shadow: 0 0 0 3px var(--wind-soft);
    animation: tr-pulse 2.4s ease-in-out infinite;
}
@keyframes tr-pulse {
    0%, 100% { box-shadow: 0 0 0 3px var(--wind-soft); }
    50%      { box-shadow: 0 0 0 6px transparent; }
}

/* -------------------- Local guide head ("About Hull") -------------------- */
.tr-local__head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: end;
    gap: 24px;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 16px;
    margin-bottom: 32px;
}
.tr-local__head .tr-eyebrow,
.tr-local__head .tr-section-label { margin: 0; }
.tr-local__head h2 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1;
    margin: 0;
    letter-spacing: -0.02em;
    text-align: center;
    grid-column: 2;
}
.tr-section-sub {
    margin: 0;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--ink-muted);
    text-align: right;
    font-weight: 600;
    font-family: var(--sans);
}
@media (max-width: 700px) {
    .tr-local__head { grid-template-columns: 1fr; text-align: left; }
    .tr-local__head h2 { text-align: left; }
}

/* -------------------- Footer upgrade -------------------- */
.tr-footer {
    background: var(--bg-warm);
    border-top: 4px solid var(--ink);
    padding: 32px 0 40px;
    color: var(--ink-muted);
    font-size: 0.78rem;
}
.tr-footer p {
    font-family: var(--sans);
    letter-spacing: 0.04em;
}

/* -------------------- Title overrides for homepage -------------------- */
.tr-home-title {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(2.6rem, 6vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin: 0 0 22px;
}
.tr-home-deck {
    font-family: var(--serif);
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    font-style: italic;
    font-weight: 400;
    color: var(--ink-soft);
    line-height: 1.45;
    max-width: 720px;
    margin: 0 0 8px;
}

/* -------------------- "How it works" container restyle (replaces .tr-steps) -------------------- */
.tr-steps {
    list-style: none;
    counter-reset: tr-how;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
}
.tr-steps li {
    counter-increment: tr-how;
    background: var(--bg-elev);
    padding: 28px 24px 26px;
    border-top: 3px solid var(--tide);
    position: relative;
}
.tr-steps li::before {
    content: counter(tr-how, decimal-leading-zero);
    position: absolute;
    top: 14px;
    right: 22px;
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--sand);
    line-height: 1;
}
.tr-steps li h3 {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 500;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}
.tr-steps li p {
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--ink-soft);
    margin: 0;
}

/* -------------------- Print -------------------- */
@media print {
    .tr-header, .tr-footer, .tr-ad, .tr-side { display: none; }
    body > .tr-shell { grid-template-columns: 1fr; }
    .tr-chart-wrap { height: 360px; page-break-inside: avoid; }
}
