/*
 * Service pages on sunrise.layout (track 014, docs/redesign/014-service-product-pages/PLAN.md,
 * session 10 "Decisions this session made"): the Agencies & partners pages (/agency,
 * /agency-partners, /partners) and the service pages after them. Loaded only by the views under
 * resources/views/sunrise/services/ (through partials/stylesheet), with a ?v={filemtime} query.
 *
 * Colours are var(--sr-*) tokens only (resources/css/sunrise.css defines them and redefines them for
 * dark), so every rule holds in both themes. No hex / rgb() / hsl() literals, no !important, no :is()
 * (ServicePagesStylesheetTest checks these and that every token used is defined). Every selector
 * starts with an .svp- class. public/css/sunrise.css and resources/css/sunrise.css are NOT touched by
 * this track (session 10 rule), and the Sunrise sheet is not rebuilt by it: markup that uses this
 * sheet uses only classes already defined in the built public/css/sunrise.css or in this file, never
 * a new Tailwind utility (tests/Support/ChecksServicePageClasses checks the rendered markup).
 *
 * sunrise.css's element rules (`.sunrise h2`, `.sunrise p`, `.sunrise ul` set margin 0 at 0,1,1)
 * outrank a lone .svp- class (0,1,0), so a margin on one of those elements is set through two
 * classes, the same class written twice where it stands alone (`.svp-note.svp-note`, 0,2,0).
 */

/* ------------------------------------------------------------------ note line under a table */

.svp-note.svp-note{margin:12px 0 0;color:var(--sr-muted);font-size:13px;line-height:1.6}

/* ------------------------------------------------------------------ two-column table (x-gpn.pair-table) */
/*
 * The look of the Sunrise content table (.sunrise .sunrise-table in resources/css/sunrise.css), so the
 * two read as one family, with two differences: the second column is 38% wide (the first takes the
 * rest) and its body cells are ink and bold. The built Sunrise sheet sets no box rule on table, th,
 * td or caption under .sunrise (only `.sunrise table{font-variant-numeric:tabular-nums}`, which this
 * keeps), so these rules meet only the browser's own defaults (th centred and bold, cells
 * middle-aligned), which every class rule here outranks.
 */

.svp-pair-table{width:100%;margin:0;border-collapse:collapse;table-layout:fixed;background:transparent;font-family:var(--sr-font-body);font-size:14px;line-height:1.55;color:var(--sr-body)}
.svp-pair-table caption{padding:4px 0 18px;color:var(--sr-muted);font-size:13px;text-align:left}
.svp-pair-table th,.svp-pair-table td{padding:14px 10px;border-bottom:1px solid var(--sr-line);text-align:left;vertical-align:top;overflow-wrap:anywhere}
.svp-pair-table th{background:var(--sr-soft);color:var(--sr-ink);font-weight:700}
/* Row headers sit on the same ground as the data cells (transparent), whatever band or theme holds the table. */
.svp-pair-table th[scope="row"]{background:transparent;font-weight:600}
.svp-pair-table th[scope="col"]:last-child{width:38%}
.svp-pair-table td{color:var(--sr-ink);font-weight:700}
.svp-pair-table .svp-pair-figure{display:block;font-family:var(--sr-font-display);font-size:26px;font-weight:500;line-height:1.2;color:var(--sr-ink)}
/* The words under a figure: not bold like the cell, in body colour. */
.svp-pair-table .svp-pair-sub{display:block;margin-top:2px;font-size:13px;font-weight:400;line-height:1.5;color:var(--sr-body)}
/* A table whose row headers carry their own <strong>: the rest of the header is regular weight. */
.svp-pair-table.svp-pair-table-plain th[scope="row"]{font-weight:400}

/* Phones: the text stays 14px; the cells tighten. */
@media (max-width: 767px){.svp-pair-table th,.svp-pair-table td{padding:12px 8px}}

/* ------------------------------------------------------------------ chooser (x-gpn.chooser, x-gpn.chooser-panel) */
/*
 * A native radio group that shows one of several panels. No approved drawing: built from the system's
 * vocabulary (the enquiry form's 48px controls, .sunrise-pr-card's line, surface and card radius).
 * Without script every panel shows in plain flow; the chooser's inline script puts .svp-chooser-js on
 * the root and .svp-panel-on on the chosen panel, and only then are the others hidden.
 * The chosen option is ink on --sr-accent-wash: 17.3:1 light (#111111 on #f1f7e8), 13.6:1 dark
 * (#eff3f7 on #1c291e). The Sunrise sheet pairs the wash with --sr-protected on the sent block; ink
 * is kept here because it passes in both themes with more room.
 * `.sunrise p{margin:0}` is 0,1,1, so paragraph spacing inside a panel is set at 0,2,2 (doubled class,
 * two elements), and only on a panel's own paragraphs (`>`), so the enquiry form in a plain panel keeps
 * its own spacing. One focus ring: where :has() works, the option draws the ink outline and the
 * radio's own ring (.sunrise :focus-visible) is switched off; a browser without :has() drops both
 * rules and keeps the native ring on the radio.
 */

.svp-chooser{max-width:820px;margin:0 auto}
.svp-choices{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.svp-choice{display:flex;gap:10px;align-items:flex-start;box-sizing:border-box;min-height:48px;padding:16px;border:1px solid var(--sr-line-strong);border-radius:var(--sr-radius);background:var(--sr-surface);color:var(--sr-ink);font-family:var(--sr-font-body);font-size:15px;line-height:1.45;font-weight:600;cursor:pointer}
.svp-choice input{flex:0 0 auto;width:18px;height:18px;margin:2px 0 0;accent-color:var(--sr-accent)}
.svp-choice:hover{border-color:var(--sr-ink)}
.svp-choice:has(input:checked){border-color:var(--sr-accent);background:var(--sr-accent-wash)}
.svp-choice:has(input:focus-visible){outline:2px solid var(--sr-ink);outline-offset:2px}
.svp-choice:has(input:focus-visible) input{outline:none}

.svp-panel{margin-top:14px;padding:20px 24px;border:1px solid var(--sr-line);border-radius:var(--sr-radius-card);background:var(--sr-surface);color:var(--sr-body);font-size:15px;line-height:1.6}
.svp-panel.svp-panel > p + p{margin-top:10px}
.svp-panel > a{display:inline-block;min-height:24px;margin-top:8px;padding:2px 0;color:var(--sr-accent);font-weight:700;text-decoration:underline;text-underline-offset:3px}
.svp-panel > a:hover{text-decoration:none}
.svp-panel.svp-panel-plain{padding:0;border:0;background:transparent}
/* An untitled enquiry form in a plain panel: Sunrise's `.sunrise .sunrise-enquiry-fields{margin-top:24px}`
   (0,2,0) assumes a title above the fields; this ties it and wins by load order (this sheet loads later),
   so the first label sits at the card's top padding. No page puts a titled form in a plain panel. */
.svp-panel-plain .sunrise-enquiry-fields{margin-top:0}

/* Script state: only with the script's class on the root is any panel hidden. */
.svp-chooser-js .svp-panel{display:none}
.svp-chooser-js .svp-panel.svp-panel-on{display:block}

/* Phones: one column of options; panels tighten. */
@media (max-width: 767px){.svp-choices{grid-template-columns:1fr}.svp-panel{padding:18px 16px}}

/* ------------------------------------------------------------------ radio field (x-gpn.enquiry-form type 'radio') */
/*
 * 014 session 13. The form's radio group: <fieldset class="sunrise-enquiry-field ... svp-radio-field">,
 * <legend class="svp-radio-legend">, then the chooser's own option markup above (svp-choices,
 * svp-choice), so the track keeps one radio look. The fieldset takes the field wrapper's column and
 * gap from `.sunrise .sunrise-enquiry-field`; a rendered legend is not a flex item, so the 7px gap the
 * other fields' label has to its control is the legend's margin here. The legend is the label's look:
 * ink, 14px, 600. Three options (svp-choices-3) go three across from 768px; one column under it, as
 * every chooser. A failed group (each radio aria-invalid) draws the danger border at 2px like a
 * failed text control, as an inset shadow so the boxes do not move; a chosen option keeps its accent.
 */

.svp-radio-field.svp-radio-field{min-width:0;margin:0;padding:0;border:0}
.svp-radio-legend{display:block;float:none;width:100%;margin:0 0 7px;padding:0;color:var(--sr-ink);font-size:14px;font-weight:600}
@media (min-width: 768px){.svp-choices-3{grid-template-columns:repeat(3,minmax(0,1fr))}}
.svp-radio-field .svp-choice:has(input[aria-invalid="true"]){border-color:var(--sr-danger);box-shadow:inset 0 0 0 1px var(--sr-danger)}
.svp-radio-field .svp-choice:has(input:checked){border-color:var(--sr-accent);box-shadow:none}

/* ------------------------------------------------------------------ card grid (svp-cards) */
/*
 * Task A5. /agency "What you get" (four numbered cards, svp-cards-4) and /agency-partners "What
 * partners get" (three, no number, svp-cards-3). Built from .sunrise-pr-card (line, surface, card
 * radius) and .sunrise-pr-include-text (muted 14px / 1.65). The title carries sunrise-sp-heading in
 * the markup (display font, ink); this sheet sets only its size and margin, at 0,2,0 after the
 * Sunrise sheet, so it beats `.sunrise .sunrise-sp-heading` (0,2,0, earlier) at every width.
 * Card number on the surface (measured): accent #496b18 on #ffffff 6.18:1 light, #c2ff6b on #141b22 14.72:1 dark.
 */

.svp-cards{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
.svp-cards.svp-cards{margin:0;padding:0;list-style:none}
.svp-card{min-width:0;padding:22px;border:1px solid var(--sr-line);border-radius:var(--sr-radius-card);background:var(--sr-surface);color:var(--sr-body)}
.svp-card-num{display:block;color:var(--sr-accent);font-size:13px;font-weight:700;line-height:1.4;letter-spacing:.04em}
.svp-card .svp-card-title{margin:6px 0 8px;font-size:17px;line-height:1.3;letter-spacing:-0.02em}
.svp-card .svp-card-title:first-child{margin:0 0 8px}
.svp-card .svp-card-text{margin:0;color:var(--sr-muted);font-size:14px;line-height:1.65}

/* The price line under a card's text (/managed-campaigns: "From $500 / month"): small, bold, accent.
   0,2,0 beats `.sunrise p{margin:0}` (0,1,1). Accent on the card surface: #496b18 on #ffffff
   6.18:1 light, #c2ff6b on #141b22 14.72:1 dark (the card number's pair). */
.svp-card .svp-card-price{margin:10px 0 0;color:var(--sr-accent);font-size:13px;font-weight:700;line-height:1.4}

@media (min-width: 768px){.svp-cards-4{grid-template-columns:repeat(2,minmax(0,1fr))}.svp-cards-3{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (min-width: 1024px){.svp-cards-4{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* ------------------------------------------------------------------ comparison pair (svp-compare) */
/*
 * /agency-partners "Refer buyers or resell to your clients?": two cards side by side. The label is
 * .sunrise-tier-flag's pill (accent on accent-wash, measured: 5.65:1 light, 12.86:1 dark). The list keeps real
 * bullets: `.sunrise ul{list-style:none;margin:0;padding:0}` is 0,1,1, so the list is set at 0,2,0.
 */

.svp-compare{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}
.svp-compare-card{min-width:0;padding:24px;border:1px solid var(--sr-line);border-radius:var(--sr-radius-card);background:var(--sr-surface);color:var(--sr-body)}
.svp-compare-label{display:inline-block;padding:4px 10px;border-radius:var(--sr-radius-pill);background:var(--sr-accent-wash);color:var(--sr-accent);font-size:12px;font-weight:700;line-height:20px}
.svp-compare-card .svp-compare-title{margin:10px 0 12px;font-size:20px;line-height:1.25;letter-spacing:-0.02em}
.svp-compare-card .svp-compare-list{margin:0 0 14px;padding-left:20px;list-style:disc;color:var(--sr-body);font-size:14px;line-height:1.65}
.svp-compare-list li + li{margin-top:6px}
.svp-compare-list li::marker{color:var(--sr-accent)}
.svp-compare-card .svp-compare-more{margin:0;font-size:14px}
.svp-compare-link{display:inline-flex;align-items:center;min-height:24px;color:var(--sr-accent);font-weight:700;text-decoration:underline;text-underline-offset:3px}
.svp-compare-link:hover{color:var(--sr-accent);text-decoration:none}

@media (max-width: 767px){.svp-compare{grid-template-columns:minmax(0,1fr)}.svp-compare-card{padding:20px 18px}}

/* ------------------------------------------------------------------ figure row (svp-figures) */
/*
 * /partners "Why GuestPostNow converts": four figures, the Resources stat tiles' look
 * (public/css/gpn-resources.css .rp-tool-stat*). Four columns from 1024px, 2 x 2 below, phones too.
 * Label (measured): muted on soft, #525252 on #f6f6f6 7.23:1 light, #a6b3c1 on #1c252e 7.27:1 dark.
 */

.svp-figures{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.svp-figures.svp-figures{margin:0;padding:0;list-style:none}
.svp-figure{min-width:0;padding:20px;border:1px solid var(--sr-line);border-radius:var(--sr-radius);background:var(--sr-soft)}
.svp-figure-n{display:block;margin:0 0 6px;color:var(--sr-ink);font-family:var(--sr-font-display);font-size:30px;font-weight:500;line-height:1.2;overflow-wrap:anywhere}
.svp-figure-t{display:block;color:var(--sr-muted);font-size:13px;line-height:1.5}

@media (min-width: 1024px){.svp-figures{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width: 767px){.svp-figure{padding:16px 12px}.svp-figure-n{font-size:27px}}

/* ------------------------------------------------------------------ link chips (svp-chips) */
/*
 * /agency's niche links: 44px targets in a wrapping row. Ink on surface at rest; on hover the
 * accent border and the wash, the text stays ink (at rest, measured: 18.88:1 light, 15.57:1 dark;
 * on the wash 17.3:1 light, 13.6:1 dark).
 */

.svp-chips.svp-chips{display:flex;flex-wrap:wrap;gap:10px;margin:0;padding:0;list-style:none}
.svp-chip{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:44px;padding:10px 16px;border:1px solid var(--sr-line-strong);border-radius:var(--sr-radius);background:var(--sr-surface);color:var(--sr-ink);font-size:14px;font-weight:600;line-height:1.4;text-decoration:none}
.svp-chip:hover{border-color:var(--sr-accent);background:var(--sr-accent-wash);color:var(--sr-ink);text-decoration:none}

/* ------------------------------------------------------------------ intro pill (svp-pill) */
/* /agency's "No membership fee" line under the intro paragraph: the label pill at intro size. */

.svp-pill.svp-pill{display:inline-block;margin:18px 0 0;padding:7px 18px;border-radius:var(--sr-radius-pill);background:var(--sr-accent-wash);color:var(--sr-accent);font-size:14px;font-weight:700;line-height:1.4}

/* ------------------------------------------------------------------ closing band with a heading (svp-closing-*) */
/*
 * The Press Release closing band unchanged (<section class="sunrise-closing sunrise-pr-closing">,
 * <div class="sunrise-sp-wrap sunrise-pr-closing-inner">, the .sunrise-action button), with a text
 * column in place of its one line: svp-closing-copy holds the h2 (svp-closing-title) and the
 * paragraph (svp-closing-text); svp-closing-actions holds the button and, when there is one, the
 * small line (svp-closing-aside). The band is --sr-deep in both themes, so every text colour is the
 * band's own --sr-teal-text (.sunrise-pr-closing-line's token), measured: #dfe8da on #142019 13.35:1
 * light, #c7d0da on #142019 10.77:1 dark. The h2 does not carry sunrise-sp-heading (that would make it ink).
 * .sunrise-pr-closing-inner is a row (space-between, centred) from 768px and a column below, so the
 * copy and the actions sit side by side at 1440 and stack at 390.
 */

.svp-closing-copy{flex:1 1 auto;min-width:0;max-width:720px}
.svp-closing-copy .svp-closing-title{margin:0 0 10px;color:var(--sr-teal-text);font-family:var(--sr-font-display);font-size:30px;font-weight:500;line-height:1.2;letter-spacing:-0.03em}
.svp-closing-copy .svp-closing-text{margin:0;color:var(--sr-teal-text);font-size:15px;line-height:1.65}
.svp-closing-actions{display:flex;flex:0 0 auto;flex-direction:column;align-items:flex-start;gap:12px}
.svp-closing-aside.svp-closing-aside{margin:0;color:var(--sr-teal-text);font-size:13px;line-height:1.5}
.svp-closing-aside a{display:inline-flex;align-items:center;min-height:24px;color:var(--sr-teal-text);font-weight:600;text-decoration:underline;text-underline-offset:3px}
.svp-closing-aside a:hover{color:var(--sr-teal-text);text-decoration:none}

@media (max-width: 767px){.svp-closing-copy .svp-closing-title{font-size:27px}.svp-closing-copy .svp-closing-text{font-size:14px}}

/* ------------------------------------------------------------------ measure and prose (svp-measure, svp-prose) */
/*
 * svp-measure: a left-aligned 760px column for a table or text. svp-prose: a run of plain
 * paragraphs (.sunrise-pr-section-intro's size), 12px apart; links inside use .sunrise-pr-link.
 * The built `.sunrise .sunrise-pr-link{display:inline-flex;min-height:44px}` makes a link a 44px box,
 * which makes its line taller than the lines around it; inside running text (svp-prose, svp-list)
 * the link is set back to inline at 0,2,0, which this sheet wins on a tie because it loads later.
 */

.svp-measure{max-width:760px}
.svp-prose{max-width:880px}
.svp-prose.svp-prose p{margin:0;color:var(--sr-body);font-size:15px;line-height:1.7}
.svp-prose.svp-prose p + p{margin-top:12px}
.svp-prose strong{color:var(--sr-ink)}
.svp-prose .sunrise-pr-link{display:inline;min-height:0}

/* ------------------------------------------------------------------ bulleted list (svp-list) */
/*
 * A plain bulleted list for running rules (/partners "The rules, in plain English"): <ul class="svp-list">
 * of plain <li>. .sunrise-pr-list prints no markers (`.sunrise ul{list-style:none;margin:0;padding:0}`
 * is 0,1,1), so this list is set at 0,2,0. Body colour, 14px / 1.7, items 12px apart, accent bullets.
 */

.svp-list.svp-list{max-width:880px;margin:0;padding-left:20px;list-style:disc;color:var(--sr-body);font-size:14px;line-height:1.7}
.svp-list li + li{margin-top:12px}
.svp-list li::marker{color:var(--sr-accent)}
.svp-list .sunrise-pr-link{display:inline;min-height:0}

/* ------------------------------------------------------------------ FAQ answer links (svp-faq-a) */
/*
 * On the answer element beside .sunrise-faq-a (<div class="sunrise-faq-a svp-faq-a">): a link in an
 * answer is set back to inline, as in svp-prose and svp-list above, so it keeps the answer's line.
 */

.svp-faq-a .sunrise-pr-link{display:inline;min-height:0}

/* ------------------------------------------------------------------ hero with no breadcrumb (svp-hero-top) */
/*
 * On the hero section beside .sunrise-pr-hero (<section class="sunrise-pr-hero svp-hero-top">).
 * `.sunrise .sunrise-pr-hero` (0,2,0) sets padding 18px on top, 4px under 768px, because the live
 * service pages put a 44px breadcrumb above the hero. A page with no breadcrumb takes that room back
 * here: the doubled class is 0,2,0 too and wins the tie because this sheet loads after Sunrise's.
 */

.svp-hero-top.svp-hero-top{padding-top:44px}
@media (max-width: 767px){.svp-hero-top.svp-hero-top{padding-top:24px}}

/*
 * Two intro paragraphs in a row in that hero (the managed campaign thanks page): `.sunrise p`
 * (0,1,1) sets every paragraph's margin to 0, so they touch. The second takes a 14px gap, about
 * half a line at 16px / 1.65 and two thirds at the phone's 14px / 1.55. 0,3,0 outranks the reset
 * and `.sunrise .sunrise-pr-intro` (0,2,0); a lone intro paragraph is not reached.
 */

.svp-hero-top .sunrise-pr-intro + .sunrise-pr-intro{margin-top:14px}

/* ------------------------------------------------------------------ failed-post summary (svp-alert) */
/*
 * Above the chooser after a failed post: <div class="svp-alert" role="alert"><strong
 * class="svp-alert-title">We couldn't send that:</strong><ul class="svp-alert-list"><li>...</li></ul></div>.
 * The enquiry form's error vocabulary (.sunrise-enquiry-error, [aria-invalid]): the danger token
 * on the border and the title. Title on the surface (computed): #8a2f5a on #ffffff 7.97:1 light,
 * #e9b8cc on #141b22 10.08:1 dark. 820px centred, the chooser's width. The list keeps real bullets
 * at 0,2,0 (the Sunrise ul reset is 0,1,1).
 */

.svp-alert{box-sizing:border-box;max-width:820px;margin:0 auto 18px;padding:14px 16px;border:1px solid var(--sr-danger);border-radius:var(--sr-radius);background:var(--sr-surface);color:var(--sr-ink);font-size:14px;line-height:1.55}
.svp-alert .svp-alert-title{display:block;margin-bottom:4px;color:var(--sr-danger);font-weight:700}
.svp-alert .svp-alert-list{margin:0;padding-left:20px;list-style:disc}

/* ------------------------------------------------------------------ specimen page only */

.svp-specimen + .svp-specimen{margin-top:32px}
