/* SCM Live blocks and pages. Uses scm-coast's tokens when the new theme is active. Without it (the early
   production launch of Lake Conditions + Sunset Times under the old theme) the fallbacks are the old site's own
   fonts (Montserrat, Noto Sans), so the blocks look native there. Designer review 2026-10-10. */
.scm-live {
	--l-ink: var(--scm-ink, #1c2b31);
	--l-muted: var(--scm-muted, #5d6b70);
	--l-line: var(--scm-line, #e6dccb);
	--l-sand: var(--scm-sand, #f3e6cc);
	--l-navy: var(--scm-navy, #17475a);
	--l-link: var(--scm-sunset-text, #ad4317);
	--l-display: var(--scm-display, "Montserrat", Helvetica, Arial, sans-serif);
	--l-body: var(--scm-body, "Noto Sans", Helvetica, Arial, sans-serif);
	--l-mono: var(--scm-mono, ui-monospace, Menlo, monospace);
	color: var(--l-ink);
	font-family: var(--l-body);
	margin-bottom: 24px;
}
.scm-live .scm-live { margin-bottom: 0; }
.scm-live p { padding-bottom: 0; } /* don't rely on Divi's paragraph padding */
.scm-live b, .scm-live time, .scm-table { font-variant-numeric: lining-nums tabular-nums; }
.scm-live a { color: var(--l-link); text-decoration: underline; text-underline-offset: 2px; }
.scm-live [hidden] { display: none !important; }
.scm-live time { white-space: nowrap; }
.scm-live__src { font-size: 13px; line-height: 1.45; color: var(--l-muted); }
.scm-live__none { color: var(--l-muted); font-style: italic; }

/* Sunset */
.scm-sunset__line { font-size: 1.15em; margin: 0; }
.scm-sunset__line time { font-family: var(--l-display); font-weight: 700; font-size: 1.3em; }
.scm-sunset__count { margin: .25em 0 .5em; color: var(--l-muted); font-size: 15px; }
.scm-sunset__q { margin: 0 0 .5em; }

/* Readings: plain lines anywhere; C-style tiles on the pages */
.scm-lake__line, .scm-temp__now { margin: 0 0 .6em; }
.scm-lake__line b, .scm-temp__now b { font-family: var(--l-display); font-size: 1.25em; }
.scm-temp__label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--l-muted); }
.scm-page .scm-lake { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-bottom: 12px; }
.scm-page .scm-lake__line, .scm-page .scm-temp > div { margin: 0; background: #fff; border: 1px solid var(--l-line); border-radius: 14px; padding: 14px 16px; line-height: 1.45; }
.scm-page .scm-lake__line b { display: block; font-size: 2em; line-height: 1.1; margin: 2px 0 4px; }
.scm-page .scm-temp__now b { font-size: 1.5em; }
.scm-page .scm-temp { max-width: 420px; }
.scm-lake__out { grid-column: 1 / -1; background: var(--l-sand); border-radius: 10px; padding: 14px 18px; line-height: 1.5; margin: 0 0 24px; }

/* Season */
.scm-season { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; }
.scm-season__num { font-family: var(--l-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--l-link); }
.scm-season b { font-family: var(--l-display); font-size: 1.35em; }
.scm-season__dates { font-size: 13px; color: var(--l-muted); }

/* Coast map + town list */
.scm-coast__map { display: block; width: 100%; height: auto; background: #f6efe2; border-radius: 14px; } /* a ground off the sky (Designer P2) */
[data-scm-sky] .scm-coast__map { background: transparent; border-radius: 0; }
.scm-coast__map text { font: 700 13px var(--l-body); fill: #10303d; }
.scm-coast__map .inland text { font-weight: 600; font-size: 12px; opacity: .85; }
.scm-coast__map .scm-coast__lake { font-weight: 600; fill: #fff; }
.scm-coast__map .scm-coast__badge { font: 600 11px var(--l-mono); fill: #10303d; }
.scm-coast__map .scm-coast__badge[style] { paint-order: stroke; stroke: #2f6f86; stroke-width: 4px; stroke-linejoin: round; }
.scm-coast__map text[style*="fill:#fff"] { paint-order: stroke; stroke: #2f6f86; stroke-width: 4px; stroke-linejoin: round; }
.scm-coast__towns { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0 0; }
.scm-coast__towns a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--l-navy); background: rgba(255, 255, 255, .75); border: 1px solid var(--l-navy); border-radius: 999px; padding: 5px 13px; }
.scm-coast__towns span:not(.scm-coast__h) { font-size: 13px; color: var(--l-muted); padding: 5px 4px; }
.scm-coast__h { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-right: 6px; }
@media (max-width: 1000px) { .scm-coast__map text { font-size: 20px; } .scm-coast__map .inland text { font-size: 18px; } }
/* Phones: the wide map is unreadable; the town list is the navigation. Phase 3: C's vertical map behind a toggle. */
@media (max-width: 760px) { .scm-coast__map { display: none; } }

/* Pages */
.scm-page h2 { font-family: var(--l-display); margin: 1.6em 0 .5em; }
.scm-page__lead { font-size: 1.1em; margin: 0 0 1em; }
.scm-page__intro { margin: 0 0 1em; }
.scm-page__list li { margin-bottom: .4em; }
.scm-page__also { margin-top: 2em; font-weight: 600; }

/* Tables: beat Divi's .entry-content table rules (one of them uses !important) */
.scm-table-wrap { overflow-x: auto; margin: 0 0 .75em; }
.scm-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.scm-table caption { text-align: left; font-size: 13px; line-height: 1.45; color: var(--l-muted); padding-bottom: 6px; }
.scm-live .scm-table tr > th, .scm-live .scm-table tr > td { text-align: left; padding: 8px 10px !important; line-height: 1.4; vertical-align: baseline; color: var(--l-ink); border-top: 0; border-bottom: 1px solid var(--l-line); }
.scm-live .scm-table thead th { font-size: 13px; background: var(--l-sand); }
.scm-table small { color: var(--l-muted); font-size: 12px; }
.scm-table thead small { color: #46545a; }
.scm-live .scm-table .scm-table__na { color: var(--l-muted); font-style: italic; }
.scm-table tr.is-now { background: #fdf0dc; }
.scm-badge { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--l-navy); color: #fff; border-radius: 4px; padding: 2px 6px; margin-left: 6px; white-space: nowrap; }

/* Sunset table: on phones drop the repeated " pm EST" (the row label carries the zone) */
.scm-table--sunset tbody th small { margin-left: 4px; }
@media (max-width: 760px) {
	.scm-table--sunset .scm-z { display: none; }
	.scm-live .scm-table--sunset tr > th, .scm-live .scm-table--sunset tr > td { white-space: nowrap; padding: 8px 5px !important; font-size: 14px; }
	.scm-live .scm-table--sunset thead th { white-space: normal; font-size: 12px; }
	.scm-table--sunset tbody th small { display: block; margin-left: 0; }
}

/* Seasons table: the names lead; stacked rows on phones */
.scm-live .scm-table--seasons tbody th { font-family: var(--l-display); font-size: 18px; }
.scm-table--seasons td:nth-child(3) { white-space: nowrap; }
.scm-live .scm-table--seasons td:first-child { font-family: var(--l-mono); font-size: 12px; color: var(--l-link); }
@media (max-width: 760px) {
	.scm-table--seasons thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.scm-table--seasons tr { display: grid; grid-template-columns: 2.5em 1fr; column-gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--l-line); }
	.scm-live .scm-table--seasons tr > * { display: block; border: 0 !important; padding: 0 !important; grid-column: 2; }
	.scm-live .scm-table--seasons tr > td:first-child { grid-column: 1; grid-row: 1 / span 3; }
}

/* Inside the live sky (homepage hero): text and links follow the sky's own ink, so links stay readable on the
   after-sunset palette (#3b3f66 / #8e4562 with #fff4e8 text; the orange link color would fail there). Designer P2. */
[data-scm-sky] { color: var(--scm-sky-ink, #10303d); }
[data-scm-sky] .scm-live, [data-scm-sky] .scm-live__src, [data-scm-sky] .scm-season__dates { color: inherit; }
[data-scm-sky] a, [data-scm-sky] .scm-live a, [data-scm-sky] .scm-season__num { color: inherit; }

/* Seasons (Designer phase 4 S12): on phones, name and dates share a line (~90px a row, was ~160); on desktop
   "Strawberry U-Pick" no longer breaks at its hyphen. */
@media (max-width: 760px) {
	.scm-live .scm-table--seasons tr { grid-template-columns: 2.5em 1fr auto; row-gap: 4px; padding: 10px 0; }
	.scm-live .scm-table--seasons tbody th { line-height: 1.2; margin: 0 !important; }
	.scm-live .scm-table--seasons tr > td:last-child { line-height: 1.45; }
	.scm-live .scm-table--seasons tr > th { grid-column: 2; grid-row: 1; }
	.scm-live .scm-table--seasons tr > td:nth-child(3) { grid-column: 3; grid-row: 1; align-self: baseline; font-size: 14px; }
	.scm-live .scm-table--seasons tr > td:last-child { grid-column: 2 / -1; grid-row: 2; }
	.scm-live .scm-table--seasons tr > td:first-child { grid-row: 1 / span 2; }
}
@media (min-width: 761px) { .scm-live .scm-table--seasons tbody th { min-width: 11em; hyphens: manual; } }
.scm-table--seasons tr:target { outline: 2px solid var(--l-link); outline-offset: -2px; }
