/* extras-location.css: minimal additions for families 09-13 and 15 (industry hub, /business industry,
   state, city, ZIP, location index). Tokens only; to be merged into rbo-ds.css later.
   Each rule lists its purpose. */

/* 1. Two-column checklist (benefit lists of 4-8 short items: church "why outsource", cleanup "why us").
      One column on phones, two from 640px. */
.checklist--2 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .checklist--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-7); } }
ul.checklist.card { margin: 0; }

/* 2. .platforms grid with an even item count (church "who we serve", 10 items): stop the last cell
      spanning both columns on phones, which .platforms does for its 5-item default. */
@media (max-width: 759px) { .platforms--even li:last-child { grid-column: auto; } }
@media (min-width: 760px) { .platforms--even li { min-height: 72px; } }

/* 3. Integration grid: tool name + one-line description (restaurant POS/accounting software).
      Hairline cells like .platforms, but left-aligned text. 1 / 2 / 3 columns. */
.sw-grid { list-style: none; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); background: var(--white); }
@media (min-width: 640px) { .sw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .sw-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sw-grid li { padding: var(--s-5) var(--s-6); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.sw-name { display: flex; align-items: center; gap: 4px; font-weight: var(--fw-bold); font-size: 1.125rem; color: var(--navy); margin-bottom: var(--s-2); }
.sw-grid p { margin: 0; color: var(--ink-2); font-size: var(--fs-sm); }

/* 4. Ledger rows that hold a heading + paragraph next to an icon well (restaurant accounting tasks,
      kept at their original H4 level). */
.task-list > li { align-items: flex-start; padding-block: var(--s-5); }
.task-list h4 { margin: 2px 0 var(--s-1); color: var(--navy); }
.task-list p { margin: 0; color: var(--ink-2); font-size: var(--fs-sm); }
.band-navy .card h4 { color: #fff; margin-bottom: var(--s-2); }

/* 5. Numbered link groups (state page "paths": behind / ongoing / oversight / team): small step
      number inline with the group label. */
.path-groups .label { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-bottom: var(--s-2); }
.path-groups .step-no { width: 28px; height: 28px; flex: none; margin: 0; font-size: var(--fs-meta); }

/* 6. Q&A blocks laid out in a row inside one card (industry-guide questions): the first rule sits
      under the card title, not between columns. */
.qa-row { margin-top: var(--s-2); }
@media (min-width: 640px) { .qa-row { column-gap: var(--s-7); } }

/* 7. A-Z state directory (location index): letter jump bar + letter-grouped columns.
      Every link stays in the HTML; 2 columns on phones, 3 from 760px. */
.az-jump ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 var(--s-6); padding: 0; }
.az-jump a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: 1px solid var(--rule-2); border-radius: var(--r-sm); background: var(--white); color: var(--navy); font-weight: var(--fw-bold); font-size: var(--fs-sm); text-decoration: none; }
.az-jump a:hover { border-color: var(--blue); color: var(--blue); }
.az-dir { columns: 2; column-gap: var(--s-5); }
@media (min-width: 760px) { .az-dir { columns: 3; column-gap: var(--s-7); } }
.az-group { break-inside: avoid; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--s-2); padding: var(--s-3) 0 var(--s-4); border-top: 1px solid var(--rule); scroll-margin-top: 112px; }
@media (min-width: 640px) { .az-group { grid-template-columns: 32px minmax(0, 1fr); gap: var(--s-3); } }
.az-letter { margin: 0; font-size: 1.25rem; font-weight: var(--fw-bold); line-height: 44px; color: var(--blue); }
.az-group ul { list-style: none; margin: 0; padding: 0; }
.az-group a { display: flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: var(--fw-medium); text-decoration: none; }
@media (min-width: 960px) { .az-group a { min-height: 36px; } .az-letter { line-height: 36px; } }
.az-group a:hover { color: var(--blue); text-decoration: underline; }
/* Directories whose links read "<Service> in <State>": one column on phones, two from 640 px, three from 1200 px, so each link stays on one or two lines. */
.az-dir--long { columns: 1; }
@media (min-width: 640px) { .az-dir--long { columns: 2; } }
@media (min-width: 1200px) { .az-dir--long { columns: 3; } }

/* 8. Section-head lead paragraph inside the navy band (church and ZIP "why" bands carry an intro
      paragraph; the base sheet only colours .sec-head p on light surfaces). */
.band-navy .sec-head p { color: var(--on-navy-2); }

/* 9. Plain-text label inside .inline-links ("Related services:", the "trusted by 5,000+" line):
      vertically centred with the 44px link targets next to it. */
.inline-links > span { display: inline-flex; align-items: center; min-height: 44px; }

/* 10. Plan cards whose page copy is a single scope line and no checklist (restaurant price list):
       no hairline under the scope, so the card does not show an empty ruled area above the button. */
.plans--compact .plan-scope { border-bottom: 0; padding-bottom: 0; }

/* 11. Facts panel values that are phrases ("Instant online or callback within 1 hour",
       "QuickBooks, Xero, Wave, NetSuite"): the value wraps on the right instead of running under
       the label on phones (.glance-row dd is nowrap in the base sheet). */
.facts-panel .glance-row { grid-template-columns: auto minmax(0, 1fr); }
.facts-panel .glance-row dd { white-space: normal; }

/* 12. Card titles that are not headings (.card-title on a span, because the live page has no
       heading there) inside the navy band: white like the band's h3 titles. */
.band-navy .card .card-title { color: #fff; }

/* ---------------------------------------------------------------------------------------------
   Location group (shared state / city / ZIP / index templates, design/impl/location.md).
   ------------------------------------------------------------------------------------------- */

/* 13. Stacked spacing inside converted prose and cards: the templates keep their own paragraphs
       and lists, so give them the shared rhythm instead of per-element margins. */
.prose > * + *, .card.prose > * + *, .faq-a > * + *, .ig-stack > * + * { margin-top: var(--stack); }
.prose ul:not([class]), .prose ol:not([class]), .faq-a ul:not([class]) { padding-left: 1.25em; color: var(--ink-2); }
.prose--intro { max-width: 820px; }
.card > h3 + p, .card > p + ul, .card > p + ol { margin-top: var(--s-3); }
.card > .checklist, .card > .ledger, .card > .path { margin-top: var(--s-3); }
.card > * + p { margin-top: var(--s-3); }

/* 14. Hero: a second sub line may be a <div> (template wrappers); .hero-sub keeps its look. */
.hero--short .hero-sub + .hero-sub { margin-top: var(--s-3); }
div.hero-sub > p { margin: 0; }
.hero-main .loc-chip { margin-bottom: var(--s-3); }

/* 15. CTA rows: heading + an optional line of text on the left, the button on the right. */
.cta-inline > div > p, .cta-band > div > p { margin: var(--s-2) 0 0; color: var(--ink-2); max-width: 60ch; }
.cta-band > div > p { color: var(--on-navy-2); }

/* 16. Text after the FAQ list ("If your QuickBooks file is still behind ..."), and after a card grid. */
.faq-after { margin-top: var(--s-7); color: var(--ink-2); max-width: var(--measure); }
.grid + p, .grid ~ p, .split + p { margin-top: var(--s-6); color: var(--ink-2); max-width: var(--measure); }

/* 17. Breadcrumb trail on its own (template breadcrumb bar): no extra band. */
.loc-trail-wrap { padding-block: 0 var(--s-6); }
.loc-trail .near { margin-left: auto; color: var(--ink-2); }
.loc-trail .here { color: var(--ink-2); }

/* 18. Database-driven city / ZIP list on state pages: four calm columns of rows; the template's
       "show more" script toggles .hidden on .extra-zip items (Bootstrap .hidden still loaded). */
.loc-zip-list { list-style: none; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--rule); }
@media (min-width: 640px) { .loc-zip-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-7); } }
@media (min-width: 960px) { .loc-zip-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.loc-zip-list > li { border-bottom: 1px solid var(--rule); }
.loc-zip-list a { display: flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: var(--fw-medium); font-size: var(--fs-sm); }
.loc-zip-list a:hover { color: var(--blue); text-decoration: underline; }
.loc-more { margin-top: var(--s-5); }
.loc-more + p { margin-top: var(--s-5); color: var(--ink-2); }

/* 19. Industry guide column: statements and question cards stacked. */
.ig-stack .statement-body li { padding-block: var(--s-3); }
.ig-stack .support { color: var(--ink-2); }

/* 20. Link groups from templates/location-links in a 2-column grid: the related ledger and chips
       start right under the summary on desktop. */
.rbo-lf-ds .btn { margin-top: var(--s-6); }
.card > .ledger:first-child, .card > .ledger--links:first-child { border-top: 0; }
.card > .ledger:last-child > li:last-child { border-bottom: 0; }
.faq-after { margin-top: var(--s-6); }
.loc-zip-list + p { margin-top: var(--s-5); color: var(--ink-2); }
.path li > span { min-width: 0; }
.fit-grid .label + .checklist, .fit-grid .label + ul { margin-top: var(--s-3); }
.fit-grid .checklist + .label { margin-top: var(--s-5); }
.loc-zip-list + p { margin-top: var(--s-5); color: var(--ink-2); }
.path li > span { min-width: 0; }
.fit-grid .label + .checklist, .fit-grid .label + ul { margin-top: var(--s-3); }
.fit-grid .checklist + .label { margin-top: var(--s-5); }

/* 21. Row of accounting-software logos (template "platforms you trust" sections). */
.logo-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-5) var(--s-8); }
.logo-row img { height: 40px; width: auto; max-width: 140px; object-fit: contain; }
.card--wide > p:first-child { color: var(--ink); font-weight: var(--fw-ui); }
.card--wide > .checklist { margin-top: var(--s-4); }

/* 22. Design-system location blocks keep the legacy hook classes (rbo-ll-*, rbo-lf-faq, rbo-ig-faq;
       tests and tooling read them), styled here like .ledger.related / .inline-links / .qa. */
/* (the city / ZIP lists rbo-ll-cities, -othercities, -zips, -nearzips are drawn by the shared location navigation, rbo-ds.css 17b) */
.rbo-lf-faq, .ig-stack .rbo-ig-faq { border-top: 1px solid var(--rule); padding-top: var(--s-5); margin-top: var(--s-5); }
.rbo-lf-faq h4, .ig-stack .rbo-ig-faq h4 { margin-bottom: var(--s-2); color: var(--navy); }
.rbo-lf-faq p, .ig-stack .rbo-ig-faq p { color: var(--ink-2); }
.ig-links .text-link::after { content: "\2192"; margin-left: 2px; }
