/* A spot's page (Pages/Spots/Show.cshtml, js/spot-page.js): the picture with the name and the actions, the reading in
   tiles over the picture's foot, the week hour by hour, the tide, the beach's calls and photos, the profile with its
   compass, the locals' band, the spots nearby, and the surf check sheet. Rating colours come from spots-map.css. */

.sp-tone--danger, .sp-dot--danger { --tone: #E5484D; }

/* ---- the picture */
.spx-hero { position: relative; display: flex; min-height: clamp(440px, 64vh, 700px); overflow: hidden; background: var(--ag-deepest); color: #FFFFFF; }
.spx-hero__pic { position: absolute; inset: 0; }
.spx-hero__pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.spx-hero__pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 30, 37, 0.45) 0%, rgba(4, 30, 37, 0.05) 28%, rgba(4, 30, 37, 0.5) 62%, rgba(4, 30, 37, 0.95) 100%); }
.spx-hero__pic--none { background: radial-gradient(120% 90% at 72% 18%, #0E5A6A 0%, #083E4A 50%, #042630 100%); }
.spx-hero__pic--none::before { content: ""; position: absolute; inset: auto -10% 22% -10%; height: 46%; background:
    radial-gradient(60% 100% at 50% 100%, rgba(127, 211, 227, 0.16), transparent 70%); }
.spx-hero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; width: 100%; padding-top: 24px; padding-bottom: 116px; }
.spx-back { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; min-height: 38px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 999px;
    background: rgba(4, 30, 37, 0.45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #FFFFFF; font-size: 14px; font-weight: 700; text-decoration: none; }
.spx-back:hover { background: rgba(4, 30, 37, 0.7); }
.spx-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; color: var(--ag-sky-2); }
.spx-title { margin: 12px 0 0; font-family: var(--ag-font-display); font-size: clamp(40px, 6.4vw, 88px); font-weight: 700; line-height: 1; letter-spacing: -0.035em; text-shadow: 0 6px 30px rgba(0, 0, 0, 0.35); overflow-wrap: anywhere; }
.spx-where { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 14px 0 0; font-size: 17px; font-weight: 600; color: var(--ag-on-deep-2); }
.spx-where .sp-lock { color: #FFFFFF; }
.spx-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.spx-actions .ag-btn { gap: 8px; }
.spx-credit { position: absolute; right: var(--ag-gutter); bottom: 98px; margin: 0; font-size: 11.5px; color: rgba(255, 255, 255, 0.7); }
.spx-credit a { color: inherit; }

/* ---- right now: tiles over the picture's foot */
.spx-now { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.55fr) repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: -84px; }
.spx-tile { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 18px 18px 16px; border: 1px solid var(--ag-line-2); border-radius: 20px; background: #FFFFFF; box-shadow: 0 18px 44px rgba(11, 79, 94, 0.13); }
.spx-tile__label { font-size: 11.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ag-muted); }
.spx-tile__big { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-family: var(--ag-font-display); font-size: 26px; font-weight: 600; line-height: 1.05; color: var(--ag-ink); font-variant-numeric: tabular-nums; }
.spx-tile__big small { font-family: var(--ag-font-body); font-size: 13px; font-weight: 700; color: var(--ag-muted); }
.spx-tile__per { display: inline-flex; align-items: baseline; gap: 2px; margin-left: 4px; color: var(--ag-text); font-size: 20px; }
.spx-tile__sub { margin-top: 4px; font-size: 13.5px; line-height: 1.4; color: var(--ag-text); }
.spx-tile__foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--ag-line-2); font-size: 12.5px; font-weight: 600; line-height: 1.4; color: var(--ag-muted); }
.spx-tile__sub + .spx-tile__foot { margin-top: auto; }
.spx-tile > .spx-tile__sub:last-child { margin-bottom: 0; }
.spx-tile__spark { display: block; width: 100%; height: 36px; margin-top: auto; padding-top: 8px; }
.spx-spark__fill { fill: rgba(8, 145, 178, 0.12); }
.spx-spark__line { fill: none; stroke: var(--ag-cyan); stroke-width: 2; }
.spx-spark__now { stroke: #E5484D; stroke-width: 1.5; stroke-dasharray: 3 3; }
.spx-sizerow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.spx-sizerow .spx-pill { margin-top: 6px; }
.spx-tile--surf { border: 0; background: linear-gradient(160deg, #0C5463 0%, #062F38 100%); color: #FFFFFF; box-shadow: 0 24px 50px rgba(4, 38, 48, 0.3); }
.spx-tile--surf .spx-tile__label { color: var(--ag-sky-2); }
.spx-tile--surf .spx-tile__sub { margin-top: 6px; padding-top: 0; color: var(--ag-on-deep); }
.spx-size { margin-top: 6px; font-family: var(--ag-font-display); font-size: clamp(34px, 3.4vw, 48px); font-weight: 700; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.spx-pill { align-self: flex-start; margin-top: 8px; padding: 3px 11px; border: 1px solid color-mix(in srgb, var(--tone) 42%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--tone) 16%, transparent);
    color: var(--tone); font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.spx-beach { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 14px; background: rgba(255, 255, 255, 0.07);
    color: #FFFFFF; font: inherit; font-size: 13.5px; line-height: 1.35; text-align: left; text-decoration: none; cursor: pointer; }
.spx-beach:hover { background: rgba(255, 255, 255, 0.12); }
.spx-beach b { font-weight: 800; }
.spx-beach--ask { border-style: dashed; border-color: rgba(127, 211, 227, 0.45); }
.spx-beach--ask .ag-icon { flex-shrink: 0; color: var(--ag-sky); }
.spx-dir { display: inline-grid; flex-shrink: 0; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ag-tint); color: var(--ag-cyan-ink); }
.spx-arrow { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.spx-dir--tide.is-down { transform: rotate(180deg); }
.spx-side { font-weight: 800; }
.spx-side--offshore { color: #11694A; }
.spx-side--crossshore { color: #8A5A00; }
.spx-side--onshore { color: #B42318; }

/* ---- the sections */
.spx-body { padding-top: 40px; padding-bottom: 80px; }
.spx-ok { margin: 0 0 24px; }
.spx-sec { margin-top: 56px; }
.spx-body > .spx-sec:first-child, .spx-body > .spx-ok + .spx-sec { margin-top: 24px; }
.spx-sec__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; }
.spx-sec__head h2 { margin: 0; font-family: var(--ag-font-display); font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; letter-spacing: -0.02em; color: var(--ag-ink); }
.spx-sec__head p { max-width: 64ch; margin: 0; font-size: 15px; color: var(--ag-muted); }
.spx-sub { margin: 32px 0 12px; font-family: var(--ag-font-display); font-size: 18px; font-weight: 600; color: var(--ag-ink); }

/* the days and the hours */
.spx-days { display: flex; gap: 8px; margin: 18px 0 12px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: none; }
.spx-days::-webkit-scrollbar { display: none; }
.spx-day { display: grid; flex: 0 0 auto; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; min-width: 104px; padding: 10px 14px; border: 1px solid var(--ag-line); border-radius: 14px;
    background: #FFFFFF; color: var(--ag-ink); font: inherit; text-align: left; cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.spx-day:hover { border-color: var(--ag-arc); }
.spx-day__name { grid-column: 1 / -1; font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ag-muted); }
.spx-day b { font-family: var(--ag-font-display); font-size: 16px; font-weight: 600; white-space: nowrap; }
.spx-day[aria-selected="true"] { border-color: var(--ag-deep); background: var(--ag-deep); color: #FFFFFF; }
.spx-day[aria-selected="true"] .spx-day__name { color: var(--ag-sky-2); }
.spx-hours { padding: 14px 8px 8px; border: 1px solid var(--ag-line); border-radius: 22px; background: #FFFFFF; }
.spx-hours[hidden] { display: none; }
.spx-hours__scroll { overflow-x: auto; scrollbar-width: thin; }
.spx-hours__grid { display: grid; grid-template-columns: repeat(var(--n), minmax(54px, 1fr)); min-width: calc(var(--n) * 54px); margin: 0; padding: 0; list-style: none; }
.spx-hr { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 2px 8px; border-radius: 14px; }
.spx-hr.is-now { background: var(--ag-tint); }
.spx-hr__now { position: absolute; top: 4px; font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ag-cyan-ink); }
.spx-hr__size { font-size: 12.5px; font-weight: 800; color: var(--ag-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.spx-hr__col { display: flex; align-items: flex-end; justify-content: center; width: 100%; height: 112px; }
.spx-hr__bar { width: 62%; max-width: 30px; height: calc(var(--f) * 100%); min-height: 6px; border-radius: 9px 9px 4px 4px; background: linear-gradient(180deg, var(--tone), color-mix(in srgb, var(--tone) 55%, #0B4F5E)); }
.spx-hr.sp-tone--small .spx-hr__bar, .spx-hr.sp-tone--flat .spx-hr__bar { background: linear-gradient(180deg, #B9CCD1, #8FA9B0); }
.spx-hr__time { font-size: 12px; color: var(--ag-muted); white-space: nowrap; }
.spx-hr__wind { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.spx-hr__wind .spx-dir { width: 18px; height: 18px; background: none; color: inherit; }
.spx-hr__wind .spx-arrow { width: 14px; height: 14px; }
.spx-hours__tide { position: relative; grid-column: 1 / -1; height: 40px; margin-top: 4px; border-top: 1px dashed var(--ag-line); }
.spx-hours__tide svg { position: absolute; inset: 6px 0 0; width: 100%; height: 30px; }
.spx-hours__tide polyline { fill: none; stroke: var(--ag-cyan); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.spx-hours__tide span { position: absolute; top: 4px; left: 6px; font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ag-cyan-ink); }
.spx-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 0; font-size: 13px; color: var(--ag-muted); }
.spx-legend span { display: inline-flex; align-items: center; gap: 7px; }
.spx-key { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.spx-legend .spx-side--offshore { color: #11694A; } .spx-legend .spx-side--crossshore { color: #8A5A00; } .spx-legend .spx-side--onshore { color: #B42318; }
.spx-legend__sep { color: var(--ag-muted); }

/* the beach's calls */
.spx-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.spx-checkitem { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border: 1px solid var(--ag-line); border-radius: 18px; background: #FFFFFF; }
.spx-checkitem img, .spx-checkitem__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 13px; background: color-mix(in srgb, var(--tone) 18%, #FFFFFF); object-fit: cover; }
.spx-checkitem__icon .sp-dot { width: 14px; height: 14px; }
.spx-checkitem__words b { display: block; font-size: 15px; font-weight: 800; color: var(--ag-ink); }
.spx-checkitem__words small { display: block; font-size: 12.5px; color: var(--ag-muted); }
.spx-checkitem time { font-size: 12.5px; color: var(--ag-muted); white-space: nowrap; }
.spx-empty { display: flex; align-items: center; gap: 16px; margin-top: 18px; padding: 18px 20px; border: 1.5px dashed var(--ag-line); border-radius: 20px; background: var(--ag-tint); }
.spx-empty__icon { display: grid; flex-shrink: 0; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #FFFFFF; color: var(--ag-cyan-ink); }
.spx-empty b { display: block; font-size: 16px; color: var(--ag-ink); }
.spx-empty span:not(.spx-empty__icon) { display: block; font-size: 14.5px; color: var(--ag-text); }
.spx-checks__acts { margin-top: 16px; }
.spx-checks__acts .ag-btn { gap: 8px; }

/* the profile */
.spx-profile { display: grid; grid-template-columns: 240px minmax(0, 1fr); align-items: center; gap: 36px; margin-top: 20px; }
.spx-compass { margin: 0; text-align: center; }
.spx-compass svg { width: 100%; max-width: 240px; }
.spx-compass__ring { fill: none; stroke: var(--ag-line); stroke-width: 1.5; }
.spx-compass__ring--in { stroke-dasharray: 3 5; }
.spx-compass__window { fill: rgba(8, 145, 178, 0.16); stroke: var(--ag-cyan); stroke-width: 1.5; stroke-linejoin: round; }
.spx-compass__beach { stroke: #D9B77A; stroke-width: 8; stroke-linecap: round; }
.spx-compass__face { stroke: var(--ag-deep); stroke-width: 3; stroke-linecap: round; }
.spx-compass__tip { fill: var(--ag-deep); }
.spx-compass__nesw { font-family: var(--ag-font-body); font-size: 12px; font-weight: 800; fill: var(--ag-muted); }
.spx-compass figcaption { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin-top: 8px; font-size: 13px; color: var(--ag-muted); }
.spx-compass figcaption span { display: inline-flex; align-items: center; gap: 6px; }
.spx-key--window { border-radius: 3px; background: rgba(8, 145, 178, 0.35); }
.spx-key--face { background: var(--ag-deep); }
.spx-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.spx-facts div { padding: 14px 16px; border: 1px solid var(--ag-line); border-radius: 16px; background: #FFFFFF; }
.spx-facts dt { font-size: 11.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ag-muted); }
.spx-facts dd { margin: 5px 0 0; font-family: var(--ag-font-display); font-size: 16px; font-weight: 600; color: var(--ag-ink); }
.spx-facts dd small { display: block; margin-top: 3px; font-family: var(--ag-font-body); font-size: 12.5px; font-weight: 500; color: var(--ag-muted); }
.spx-callout { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0 0; padding: 14px 16px; border-radius: 16px; background: var(--ag-tint); color: var(--ag-text); font-size: 15px; }
.spx-callout .ag-icon { flex-shrink: 0; margin-top: 1px; color: var(--ag-cyan-ink); }
.spx-callout--care { background: var(--ag-attn-bg); color: var(--ag-attn); }
.spx-callout--care .ag-icon { color: var(--ag-attn-edge); }

/* the locals' band */
.spx-know { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; align-items: center; gap: 28px; margin-top: 64px; padding: 32px 36px; overflow: hidden; border-radius: 28px;
    background: radial-gradient(120% 160% at 0% 0%, #0E5A6A 0%, #083E4A 45%, #042630 100%); color: #FFFFFF; box-shadow: 0 30px 60px rgba(4, 38, 48, 0.22); }
.spx-know__art svg { display: block; width: 112px; height: 112px; }
.spx-know__halo { fill: rgba(127, 211, 227, 0.12); }
.spx-know__wave { fill: none; stroke: var(--ag-sky); stroke-width: 4; stroke-linecap: round; }
.spx-know__wave--2 { opacity: 0.5; }
.spx-know__pen { fill: #F6C66B; stroke: #062F38; stroke-width: 2; stroke-linejoin: round; }
.spx-know__eyebrow { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ag-sky-2); }
.spx-know h2 { margin: 6px 0 0; font-family: var(--ag-font-display); font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; letter-spacing: -0.02em; }
.spx-know p:not(.spx-know__eyebrow) { max-width: 58ch; margin: 10px 0 0; font-size: 15.5px; color: var(--ag-on-deep); }
.spx-know__acts { display: flex; flex-direction: column; gap: 10px; }
.spx-know__acts .ag-btn { gap: 8px; justify-content: center; white-space: nowrap; }

/* nearby */
.spx-near { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 18px 0 0; padding: 0; list-style: none; }
.spx-nearcard { display: block; height: 100%; overflow: hidden; border: 1px solid var(--ag-line); border-radius: 18px; background: #FFFFFF; color: inherit; text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
.spx-nearcard:hover { border-color: var(--ag-arc); transform: translateY(-2px); }
.spx-nearcard__pic { display: block; aspect-ratio: 16 / 10; background: var(--ag-tint); }
.spx-nearcard__pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.spx-nearcard__body { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 14px; }
.spx-nearcard__body b { font-family: var(--ag-font-display); font-size: 16px; font-weight: 600; color: var(--ag-ink); }
.spx-nearcard__body small { font-size: 13px; color: var(--ag-muted); }
.spx-nearcard__now { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 15px; font-weight: 800; color: var(--ag-ink); }
.spx-nearcard__now em { font-size: 11px; font-style: normal; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ag-muted); }
.spx-nearcard__tide { font-size: 13px; color: var(--ag-text); }

/* ---- the surf check sheet */
html.spx-locked { overflow: hidden; }
.spx-sheet { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: flex-end; justify-content: center; }
.spx-sheet[hidden] { display: none; }
.spx-sheet__backdrop { position: absolute; inset: 0; background: rgba(4, 30, 37, 0.58); opacity: 0; transition: opacity 0.2s; }
.spx-sheet.is-open .spx-sheet__backdrop { opacity: 1; }
.spx-sheet__panel { position: relative; width: min(580px, 100%); max-height: calc(100dvh - 20px); overflow-y: auto; padding: 18px 20px calc(20px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0;
    background: #FFFFFF; box-shadow: 0 -20px 60px rgba(4, 30, 37, 0.3); opacity: 0; transform: translateY(28px); transition: transform 0.22s ease, opacity 0.22s ease; }
.spx-sheet.is-open .spx-sheet__panel { opacity: 1; transform: none; }
.spx-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.spx-sheet__head h2 { margin: 0; font-family: var(--ag-font-display); font-size: 22px; font-weight: 600; color: var(--ag-ink); }
.spx-sheet__x { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--ag-tint); color: var(--ag-ink); cursor: pointer; }
.spx-field { min-width: 0; margin: 18px 0 0; padding: 0; border: 0; }
.spx-field legend { margin-bottom: 10px; padding: 0; font-size: 12.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ag-muted); }
.spx-field legend small { font-weight: 600; letter-spacing: 0; text-transform: none; }
.spx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.spx-chip { position: relative; cursor: pointer; }
.spx-chip input, .spx-call input { position: absolute; opacity: 0; pointer-events: none; }
.spx-chip > span { display: block; padding: 9px 14px; border: 1.5px solid var(--ag-line); border-radius: 14px; font-size: 14.5px; font-weight: 700; color: var(--ag-ink); transition: border-color 0.12s, background 0.12s; }
.spx-chip small { display: block; margin-top: 1px; font-size: 11.5px; font-weight: 600; color: var(--ag-muted); }
.spx-chip input:checked + span { border-color: var(--ag-deep); background: var(--ag-tint-2); }
.spx-chip input:focus-visible + span, .spx-call input:focus-visible ~ b { outline: 2px solid var(--ag-cyan); outline-offset: 3px; }
.spx-hint { margin: 8px 0 0; font-size: 13.5px; color: var(--ag-cyan-ink); }
.spx-calls { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.spx-call { position: relative; display: grid; grid-template-columns: 14px minmax(0, 1fr); align-items: center; gap: 2px 10px; padding: 12px 14px; border: 1.5px solid var(--ag-line); border-radius: 16px; cursor: pointer; transition: border-color 0.12s, background 0.12s; }
.spx-call__dot { grid-row: 1 / 3; width: 14px; height: 14px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tone) 22%, transparent); }
.spx-call b { font-size: 15.5px; font-weight: 800; color: var(--ag-ink); }
.spx-call small { font-size: 12.5px; color: var(--ag-muted); }
.spx-call:has(input:checked) { border-color: color-mix(in srgb, var(--tone) 70%, #0B2730); background: color-mix(in srgb, var(--tone) 14%, #FFFFFF); }
.spx-snap { position: relative; display: grid; place-items: center; min-height: 128px; overflow: hidden; border: 2px dashed var(--ag-line); border-radius: 18px; background: var(--ag-tint); cursor: pointer; }
.spx-snap input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.spx-snap__empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px; text-align: center; color: var(--ag-cyan-ink); pointer-events: none; }
.spx-snap__empty b { font-size: 15px; color: var(--ag-ink); }
.spx-snap__empty small { font-size: 12.5px; color: var(--ag-muted); }
.spx-snap__preview { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.spx-snap__preview.show { display: block; }
.spx-field__two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.spx-mini { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.spx-mini span { font-size: 12.5px; font-weight: 700; color: var(--ag-text); }
.spx-mini select, .spx-mini input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--ag-line); border-radius: 12px; background: #FFFFFF; color: var(--ag-ink); font: inherit; font-size: 15px; }
.spx-sheet__send { width: 100%; min-height: 52px; margin-top: 20px; justify-content: center; }

/* ---- widths */
@media (max-width: 1100px) {
    .spx-now { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .spx-tile--surf { grid-column: 1 / -1; }
    .spx-near { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .spx-know { grid-template-columns: 88px minmax(0, 1fr); }
    .spx-know__art svg { width: 88px; height: 88px; }
    .spx-know__acts { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 767px) {
    .spx-hero { min-height: clamp(420px, 78vw, 560px); }
    .spx-hero__inner { gap: 20px; padding-bottom: 96px; }
    .spx-where { font-size: 15px; }
    .spx-actions { gap: 8px; margin-top: 18px; }
    .spx-actions { flex-wrap: nowrap; }
    .spx-actions .ag-btn { flex: 1 1 0; min-width: 0; justify-content: center; padding-left: 12px; padding-right: 12px; white-space: nowrap; }
    /* Share as a round icon beside the two actions; the photo's credit up by the back button */
    .spx-actions [data-share] { flex: 0 0 52px; width: 52px; padding: 0; }
    .spx-actions [data-share] [data-share-words] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    /* with Follow (Community): a grid, the three actions in a row and Follow under them, the whole width */
    .spx-actions:has(.cm-followf) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 52px; }
    .spx-actions:has(.cm-followf) [data-share] { order: 1; width: auto; }
    .spx-actions .cm-followf { order: 2; grid-column: 1 / -1; display: flex !important; }
    .spx-actions .cm-followf .ag-btn { flex: 1 1 auto; }
    .spx-credit { top: 30px; right: 14px; bottom: auto; max-width: 46%; text-align: right; }
    .spx-now { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: -68px; }
    .spx-tile { padding: 14px 14px 13px; border-radius: 18px; }
    .spx-tile__big { font-size: 22px; }
    .spx-sec { margin-top: 44px; }
    .spx-profile { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .spx-compass svg { max-width: 220px; }
    .spx-facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .spx-know { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 26px 22px; }
    .spx-know__art svg { width: 72px; height: 72px; }
    .spx-know__acts .ag-btn { flex: 1 1 auto; }
    .spx-near { grid-auto-columns: 74%; grid-auto-flow: column; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
    .spx-near > li { scroll-snap-align: start; }
}
@media (max-width: 380px) {
    .spx-actions .ag-btn { gap: 6px; padding-left: 8px; padding-right: 8px; font-size: 14px; }
    .spx-actions .ag-btn .ag-icon { width: 16px; height: 16px; }
    .spx-facts { grid-template-columns: minmax(0, 1fr); }
    .spx-field__two { grid-template-columns: minmax(0, 1fr); }
    .spx-calls { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .spx-call { padding: 10px 12px; }
}
@media (min-width: 768px) {
    .spx-sheet { align-items: center; padding: 20px; }
    .spx-sheet__panel { border-radius: 26px; }
}
@media (prefers-reduced-motion: reduce) {
    .spx-sheet__panel, .spx-sheet__backdrop, .spx-nearcard, .spx-day { transition: none; }
}

#check-title:focus { outline: none; }
.spx-more { margin: 10px 0 0; font-size: 13px; color: var(--ag-muted); }
.spx-more a { color: var(--ag-cyan-ink); font-weight: 700; }
.spx-credit--beach { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(4, 30, 37, 0.6); color: #FFFFFF; font-size: 12px; font-weight: 700; }
.spx-credit--beach .ag-badge__dot { width: 7px; height: 7px; background: var(--ag-green); }
