/* ==========================================================================
   Lantana Digital — Local SEO page (/local-seo-austin/)
   Extends site.css: the same world, plates and bands. This file adds the
   page's own plates (map pack, results anatomy, grid rank, service area,
   clocks, report, ledger) and their compositions.
   ========================================================================== */

:root {
  /* Grid rank scale: a data scale used only on Plate 3 and its key. */
  --rank-top: #2F7A4B;
  --rank-mid: #D69A2D;
  --rank-low: var(--bloom-deep);
  --rank-out: #B9B7AD;
}

/* --- Hero ------------------------------------------------------------------ */
.ls-hero { padding-bottom: calc(var(--bay) * 0.7); }
.crumbs { margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem); color: var(--t-note); }
.crumbs a { color: var(--t-ink); text-decoration: underline; text-decoration-color: var(--bloom); text-underline-offset: 0.2em; }
.ls-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 4vw, 3rem); align-items: end; }
@media (min-width: 62rem) { .ls-hero__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); column-gap: clamp(3rem, 6vw, 6rem); } }
.ls-hero h1 { font-size: clamp(2.2rem, 1.25rem + 3.6vw, 4.1rem); letter-spacing: -0.04em; line-height: 1; max-width: 18ch; }
.trust.trust--stack { margin-top: 0; grid-template-columns: minmax(0, 1fr); border-top: 0; }
.trust--stack li { border-top: 1px solid var(--t-hair); }

.plate--pack { margin-top: clamp(2.5rem, 5vw, 3.75rem); background: var(--paper); display: grid; }
.plate--pack .pack__shot, .plate--pack .pack__drawn { display: block; width: 100%; height: auto; }
.plate--pack.has-shot .pack__drawn { display: none; }
.plate--pack .tick--bl, .plate--pack .tick--br { bottom: calc(2.25rem + 10px); }

.pk-ground { fill: var(--paper); }
.pk-name { fill: var(--ink); opacity: 0.82; }
.pk-line { fill: var(--hair); }
.pk-line--soft { opacity: 0.6; }
.pk-rating { font: 600 14px Overpass, system-ui, sans-serif; fill: var(--body); }
.pk-star { fill: var(--rank-mid); }
.pk-act { fill: var(--paper); stroke: var(--hair); stroke-width: 1.2; }
.pk-act-ico { fill: none; stroke: var(--note); stroke-width: 1.5; stroke-linejoin: round; }
.pk-map-bg { fill: var(--shade); }
.pk-road { fill: none; stroke: var(--paper); stroke-width: 7; stroke-linecap: round; }
.pk-road--minor { stroke-width: 4; }
.pk-water { fill: none; stroke: #B9C6C1; stroke-width: 5; stroke-linecap: round; }
.pk-pin path { fill: var(--bloom-deep); }
.pk-pin-dot { fill: var(--paper); }
.pk-dot { fill: var(--bloom); opacity: 0.75; }

/* --- Split compositions ------------------------------------------------------ */
.ls-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 62rem) {
  .ls-split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); column-gap: clamp(3rem, 6vw, 5.5rem); }
  .ls-split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.ls-fig { margin: 0; }
.plate--paper { background: var(--paper); padding: clamp(1rem, 2.5vw, 1.6rem); }
.plate--paper svg { display: block; width: 100%; height: auto; }

/* Plate 2: anatomy of a local results page. */
.anatomy .an-bar { fill: var(--field-input, #F7F6F2); stroke: var(--hair); }
.anatomy .an-glass { fill: none; stroke: var(--note); stroke-width: 1.6; }
.anatomy .an-query { font: 400 14px Overpass, system-ui, sans-serif; fill: var(--ink); }
.anatomy .an-box--pack { fill: none; stroke: var(--bloom-deep); stroke-width: 1.5; }
.anatomy .an-map { fill: var(--shade); }
.anatomy .an-road { fill: none; stroke: var(--paper); stroke-width: 4; stroke-linecap: round; }
.anatomy .an-pin { fill: var(--bloom-deep); }
.anatomy .an-line { fill: var(--hair); }
.anatomy .an-line--head { fill: var(--ink); opacity: 0.8; }
.anatomy .an-line--link { fill: var(--body); }
.anatomy .an-line--url { fill: var(--note); opacity: 0.6; }
.anatomy .an-brace path { fill: none; stroke: var(--bloom-deep); stroke-width: 1.5; }
.anatomy .an-brace text { font: 500 12px "Overpass Mono", ui-monospace, monospace; letter-spacing: 0.08em; text-transform: uppercase; fill: var(--bloom-ink); }
.anatomy .an-brace--quiet path { stroke: var(--note); }
.anatomy .an-brace--quiet text { fill: var(--note); }

/* --- Workstreams: six even cells ------------------------------------------- */
@media (min-width: 74rem) { .services.tiles.ls-work { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ls-work .service p a { color: var(--t-ink); text-decoration: underline; text-decoration-color: var(--bloom); text-underline-offset: 0.2em; }

/* --- Plate 3: the grid ----------------------------------------------------- */
.ls-grid-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 62rem) { .ls-grid-split { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); column-gap: clamp(3rem, 6vw, 5.5rem); } }
.ls-fig--grid { max-width: 36rem; width: 100%; margin-inline: auto; }
.rankgrid .rg-grat { fill: none; stroke: var(--hair); stroke-width: 0.6; opacity: 0.5; }
.rankgrid .rg-routes path { fill: none; stroke: var(--ink); stroke-width: 1.1; opacity: 0.22; stroke-linecap: round; }
.rankgrid .rg-town { font: 400 10px "Overpass Mono", ui-monospace, monospace; letter-spacing: 0.04em; fill: var(--note); }
.rankgrid .rg-shape { stroke: var(--paper); stroke-width: 1.2; }
.rankgrid .rg-num { font: 700 10px Overpass, system-ui, sans-serif; text-anchor: middle; dominant-baseline: central; letter-spacing: -0.02em; }
.rankgrid .rg-pin--top .rg-shape { fill: var(--rank-top); }
.rankgrid .rg-pin--top .rg-num { fill: #FFFFFF; }
.rankgrid .rg-pin--mid .rg-shape { fill: var(--rank-mid); }
.rankgrid .rg-pin--mid .rg-num { fill: var(--ink); }
.rankgrid .rg-pin--low .rg-shape { fill: var(--rank-low); }
.rankgrid .rg-pin--low .rg-num { fill: #FFFFFF; }
.rankgrid .rg-pin--out .rg-shape { fill: var(--rank-out); }
.rankgrid .rg-pin--out .rg-num { fill: var(--ink); font-size: 8.5px; }
.rankgrid .rg-ring { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.rankgrid .rg-core { fill: var(--ink); }
.rankgrid .rg-shop-label { font: 800 13px Overpass, system-ui, sans-serif; text-anchor: middle; fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
.rank-key { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; margin: 1rem 0 0; padding: 0; list-style: none; color: var(--t-body); }
.rank-key li { display: inline-flex; align-items: center; gap: 0.45rem; }
.rk { display: inline-block; width: 0.8rem; height: 0.8rem; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.rk--top { background: var(--rank-top); }
.rk--mid { background: var(--rank-mid); }
.rk--low { background: var(--rank-low); }
.rk--out { background: var(--rank-out); }
.ls-pull { font-weight: 800; font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); line-height: 1.4; letter-spacing: -0.02em; color: var(--t-ink); }
.prose .ls-pull { margin-top: 1.4em; }
.prose a { color: var(--t-ink); }

/* Plate 4: storefront against a service-area business. */
.sab .sab-title { font: 800 14px Overpass, system-ui, sans-serif; fill: var(--ink); }
.sab .sab-map { fill: var(--shade); }
.sab .sab-road { fill: none; stroke: var(--paper); stroke-width: 5; stroke-linecap: round; }
.sab .sab-reach { fill: var(--bloom); fill-opacity: 0.12; stroke: var(--bloom); stroke-width: 1.2; }
.sab .sab-pin { fill: var(--bloom-deep); }
.sab .sab-area { fill: var(--bloom); fill-opacity: 0.12; stroke: var(--bloom-deep); stroke-width: 1.4; stroke-dasharray: 5 4; }
.sab .sab-town { fill: var(--ink); }
.sab .sab-row { font: 400 11.5px "Overpass Mono", ui-monospace, monospace; fill: var(--body); }

/* --- Cost ------------------------------------------------------------------ */
#cost .table-scroll { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.drivers tbody th { width: 30%; }

/* --- Three clocks ---------------------------------------------------------- */
.clocks { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2.25rem, 4vw, 3rem) clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 52rem) { .clocks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.clock svg { display: block; width: clamp(6.5rem, 10vw, 8.5rem); height: auto; overflow: visible; }
.clock .ck-face { fill: none; stroke: var(--hair-up); stroke-width: 1.5; }
.clock .ck-ticks path { stroke: var(--note-up); stroke-width: 1.5; stroke-linecap: round; }
.clock .ck-sweep { fill: none; stroke: var(--bloom); stroke-width: 3; stroke-dasharray: 1; transform: rotate(-90deg); }
.clock--profile .ck-sweep { stroke-dashoffset: 0; }
.clock--organic .ck-sweep { stroke-dashoffset: 0.45; }
.clock--lead .ck-sweep { stroke-dashoffset: 0.8; }
.clock .ck-hand { stroke: var(--ink-up); stroke-width: 2.5; stroke-linecap: round; }
.clock .ck-hub { fill: var(--bloom); }
.clock__name { margin-top: 1.25rem; font-family: "Overpass Mono", ui-monospace, monospace; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--t-red); }
.clock p { margin-top: 0.6rem; font-size: clamp(1.03rem, 0.98rem + 0.25vw, 1.13rem); line-height: 1.68; color: var(--t-body); }

/* --- Report ----------------------------------------------------------------- */
.bysource--local { font-size: 0.92rem; }
.bysource--local thead th { white-space: nowrap; }
.report__verify { margin-top: 0.85rem; font-family: "Overpass Mono", ui-monospace, monospace; font-size: 0.76rem; line-height: 1.55; color: var(--note); }
@media (max-width: 40rem) {
  .report--local { overflow-x: auto; }
  .bysource--local { min-width: 30rem; }
}

/* --- Ownership ledger ------------------------------------------------------- */
.ledger { width: 100%; border-collapse: collapse; }
.ledger caption { caption-side: top; text-align: left; padding-bottom: 0.75rem; }
.ledger th, .ledger td { padding: 0.9rem 0; border-top: 1px solid var(--t-hair); text-align: left; vertical-align: middle; }
.ledger thead th { border-top: 0; padding-top: 0; font-family: "Overpass Mono", ui-monospace, monospace; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--t-note); }
.ledger tbody th { font-weight: 700; color: var(--t-ink); }
.ledger tbody tr:last-child th, .ledger tbody tr:last-child td { border-bottom: 1px solid var(--t-hair); }
.ledger td, .ledger thead th:last-child { text-align: right; }
.stamp { display: inline-block; padding: 0.2em 0.65em; border: 1.5px solid var(--bloom-deep); border-radius: 2px; font-family: "Overpass Mono", ui-monospace, monospace; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bloom-ink); transform: rotate(-3deg); }

/* --- Wrong for: four conditions --------------------------------------------- */
.prose.wrong { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 clamp(2.5rem, 5vw, 4.5rem); max-width: 68rem; margin-inline: auto; }
.prose.wrong > p { max-width: none; padding-block: 1.35rem; border-top: 1px solid var(--t-hair); }
.prose.wrong > p + p { margin-top: 0; }
@media (min-width: 52rem) {
  .prose.wrong { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prose.wrong > p:nth-last-child(-n+2) { border-bottom: 1px solid var(--t-hair); }
}
#wrong-for .coda { margin-top: clamp(1.75rem, 3.5vw, 2.5rem); }

/* --- Batch fixes after the first inspection -------------------------------- */
.plate--pack .pack__shot[hidden] { display: none; }
.services.tiles.ls-work { grid-auto-rows: auto; }
@media (min-width: 40rem) { .services.tiles.ls-work { grid-auto-rows: auto auto auto; } .ls-work .service { grid-row: span 3; } }
.rankgrid .rg-town-dot { fill: var(--ink); }
.rankgrid .rg-town { font: 600 11px "Overpass Mono", ui-monospace, monospace; letter-spacing: 0.06em; text-anchor: middle; fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
.narrow-only { display: none; }
@media (max-width: 40rem) {
  .wide-only { display: none; }
  .narrow-only { display: inline; }
  .report--local { overflow-x: visible; }
  .bysource--local { min-width: 0; font-size: 0.84rem; }
  .bysource--local th, .bysource--local td { padding-inline: 0.2rem; }
}
.ledger td { padding-right: 0.35rem; }

.rankgrid .rg-town--start { text-anchor: start; }
.rankgrid .rg-town--end { text-anchor: end; }

/* Paper plates set their own ink, whatever band they sit in. */
.plate--paper { color: var(--ink); }
.sab .sab-row { font-size: 12px; }

/* --- Finish review fixes --------------------------------------------------- */
@media (min-width: 62rem) { .ls-hero__grid { align-items: center; } }

/* Plate 1: readable at any width; small screens scroll it sideways. */
.pack__scroll { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pack__scroll:focus-visible { outline: 2px solid var(--bloom-deep); outline-offset: -2px; }
.pack__scroll .pack__shot, .pack__scroll .pack__drawn { display: block; width: 100%; height: auto; }
.pack__scroll .pack__shot[hidden] { display: none; }
.plate--pack.has-shot .pack__drawn { display: none; }
@media (max-width: 44rem) {
  .pack__scroll .pack__shot, .pack__scroll .pack__drawn { width: 44rem; max-width: none; }
  .plate--pack .tick--tr, .plate--pack .tick--br { display: none; }
}

/* Plate 3 on small screens: bigger pins and labels so every rank reads. */
.rankgrid .rg-scale { transform-box: fill-box; transform-origin: 50% 100%; }
.rankgrid .rg-town { stroke-width: 5px; }
@media (max-width: 40rem) {
  .rankgrid .rg-scale { transform: scale(1.5); }
  .rankgrid .rg-pin--out .rg-num { font-size: 9.5px; }
  .rankgrid .rg-town { font-size: 15px; }
  .rankgrid .rg-shop-label { font-size: 17px; }
}

/* Clock names are headings, not eyebrow labels. */
.clock__name { font-family: Overpass, system-ui, sans-serif; font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.42rem); font-weight: 800; letter-spacing: -0.03em; text-transform: none; color: var(--t-ink); }

/* The report sits on paper here, so it lies flat like every other paper plate. */
.report--local { box-shadow: none; border: 1px solid var(--hair); }

/* Plate 1's title block sits below the drawing rather than over it, so a
   wrapped caption on a phone never hides a listing. */
.plate--pack { display: block; }
.pack__frame { position: relative; }
.plate--pack .plate__title { position: static; }
.plate--pack .pack__frame .tick--bl, .plate--pack .pack__frame .tick--br { bottom: 10px; }

/* Overpass's middle dot has no advance width at this weight; the mono face does. */
.report__title .sep { font-family: "Overpass Mono", ui-monospace, monospace; font-weight: 500; }

/* Plate 1 on small screens: say that it scrolls. */
.pack__hint { display: none; }
@media (max-width: 44rem) {
  .pack__hint { display: inline; color: var(--bloom-ink); }
  .pack__frame::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 3.5rem;
    pointer-events: none;
    background: linear-gradient(to right, rgb(239 238 234 / 0), var(--paper));
    transition: opacity 240ms var(--ease);
  }
  .plate--pack.is-scrolled-end .pack__frame::after { opacity: 0; }
}

/* The owner's screenshot carries real text, so small screens scroll it wider. */
@media (max-width: 44rem) { .has-shot .pack__scroll .pack__shot { width: 52rem; } }

/* A little paper around the screenshot, so the registration ticks sit on the plate, not on its text. */
.plate--pack.has-shot .pack__scroll { padding: clamp(1rem, 2vw, 1.5rem); }
