/* Tuotu Astro-projektista: src/styles/service-bands.css (bin/sync-astro.py). */
/* Service pages in bands (2026-10-06, /hakukoneoptimointi/ first; Tapio: "Sivusto on nyt todella hankala lukea.
   Liikaa elementtejä sekaisin."). A page opts in with body class `svc-bands` and wraps its chapters in
   src/components/Band.astro (navy for the hero, the offer, Tapio and the close; white for the rest). The light
   theme's tones come from theme-light-bands.css, which reads data-band; these rules add what a band of several
   blocks needs: one rule where two bands meet in dark, space instead of rules in white, the steps, the side row,
   the FAQ's measure and the closed type set. Every rule is scoped to body.svc-bands, so no other page moves.
   Loaded after theme-light-bands.css (src/layouts/Site.astro). */

/* --- 1. Seams ------------------------------------------------------------------------------------------------ */

/* Dark: one 1 px rule edge to edge where two bands meet, drawn by the band; the blocks at the seam draw none. */
body.svc-bands main.site-main > .band + .band {
  border-top: 1px solid var(--gh-border);
}

body.svc-bands main.site-main > .band > :first-child:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  border-top-width: 0 !important;
}

body.svc-bands main.site-main > .band:not(:last-child) > :last-child:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)),
body.svc-bands main.site-main > .band:not(:last-child) > :last-child > .logo-wall:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  border-bottom-width: 0 !important;
}

/* Light: the colour change is the edge. */
html.theme-light body.svc-bands main.site-main > .band + .band {
  border-top-color: transparent;
}

/* The rule between hero and logos (wp.css matched main > div > .logo-wall--rails; the div now sits in a band). */
body.svc-bands main.site-main > .band > div > .logo-wall--rails:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  border-top: 1px solid var(--gh-border, var(--border));
}

/* Inside a band: one line where a ruled block meets the next intro (the FAQ's script stands between the two). */
body.svc-bands :is(.icon-cards--rails, .feature-row--rails, .faq-accordion--rails) + .rails-intro,
body.svc-bands :is(.icon-cards--rails, .feature-row--rails, .faq-accordion--rails) + script + .rails-intro {
  border-top: 0;
}

/* --- 2. Type: the closed set (final-spec §5) ------------------------------------------------------------------ */

body.page-service.svc-bands main :is(.svc-cells, .svc-steps) h3:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  margin: 0 0 0.6rem;
  color: var(--gh-text);
  font-family: 'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif !important;
  font-size: 22px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
}

/* Every chapter's lede, the close's (ContactBand) too. */
body.page-service.svc-bands main :is(.rails-intro, .contact-band) .section-intro p.lede:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  max-width: 42rem;
  font-size: 22px !important;
  line-height: 1.45 !important;
}

/* A chapter's heading on one line where it fits (the intro's column was 44 rem); the lede keeps its measure. */
body.svc-bands main :is(.rails-intro, .contact-band) .section-intro:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  max-width: 60rem;
}

body.svc-bands main .svc-faq h2:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  max-width: none;
}

/* A chapter's top in dark and navy: 6 rem to its heading (the intros' 6.5 rem, a step tighter on a long page). */
@media (min-width: 961px) {
  body.svc-bands main :is(.rails-intro, .contact-band).is-header-tone .section-intro:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
    padding-top: 6rem;
  }

  body.svc-bands .faq-accordion.faq-accordion--rails.svc-faq {
    padding-top: 6rem;
  }

  /* A band's second chapter: its rule is the line, a little less air than a band's top. */
  body.svc-bands main.site-main > .band > .rails-intro:not(:first-child) .section-intro.section-intro--rails:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
    padding-top: 5rem;
  }
}

body.page-service.svc-bands main .rails-intro .section-intro-link:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  margin-top: 1rem;
}

body.page-service.svc-bands main .svc-faq summary:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  font-family: 'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif !important;
  font-size: 19px !important;
  font-weight: 600 !important;
}

body.page-service.svc-bands main .case-card-label:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  font-size: 19px;
}

/* The rest of the closed set: the shared blocks' in-between sizes (14.08-16.8 px, 20-21.6 px) take the nearest
   size of the set, and Mona Sans stays in the buttons, the offer and the case figures. */
body.page-service.svc-bands main .btn:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  font-size: 0.95rem !important;
}

body.page-service.svc-bands main :is(.service-offer-price, .offer-price) span:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  font-size: 19px;
}

body.page-service.svc-bands main :is(.service-hero, .service-section) .service-offer .service-offer-pitch:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)),
body.page-service.svc-bands main :is(.service-hero, .service-section) .service-offer .service-offer-list li:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  font-size: 17px !important;
}

body.page-service.svc-bands main .service-offer :is(.service-offer-unit, .service-offer-terms, .service-offer-custom):where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  font-size: 0.95rem !important;
}

body.page-service.svc-bands main .service-hero .service-hero-fine:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  font-size: 0.95rem;
}

/* One text-link style on the page: the intros' links, the price cell's and Tapio's (Cta), the hero offer's and
   the close's. The body face at 19 px (17 on phones), 600, the link colour, and the arrow after it that the hero
   offer, the close and the footer's links draw (the Cta's chevron gives way to it). */
body.page-service.svc-bands main :is(.service-offer .service-offer-link, .rails-intro .section-intro-link a, :is(.svc-side, .svc-cells) .feature-row-link a, .contact-band-link a):where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  color: var(--gh-link);
  font-family: 'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif;
  font-size: 19px;
  font-weight: 600;
  text-decoration: none;
}

body.page-service.svc-bands main :is(.service-offer .service-offer-link, .rails-intro .section-intro-link a, :is(.svc-side, .svc-cells) .feature-row-link a, .contact-band-link a):hover:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  color: var(--gh-link);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

body.page-service.svc-bands main :is(.svc-side, .svc-cells) .feature-row-link a:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  display: inline;
}

body.page-service.svc-bands main :is(.svc-side, .svc-cells) .feature-row-link .feature-row-chevron:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  display: none;
}

/* The intros' labels end at the text (a no-break space keeps the arrow with the last word); Cta's label ends in
   the space before its chevron, so the arrow follows that space. */
body.page-service.svc-bands main .rails-intro .section-intro-link a:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *))::after {
  content: '\00a0→';
  content: '\00a0→' / '';
}

body.page-service.svc-bands main :is(.svc-side, .svc-cells) .feature-row-link a:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *))::after {
  content: '→';
  content: '→' / '';
}

@media (max-width: 640px) {
  body.page-service.svc-bands main :is(.service-offer .service-offer-link, .rails-intro .section-intro-link a, :is(.svc-side, .svc-cells) .feature-row-link a, .contact-band-link a):where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
    font-size: 17px;
  }
}

/* Card titles in the body face (they read Mona Sans from the cards' own font). */
body.page-service.svc-bands main .wp-cards .icon-card :is(.wp-card-title, .wp-card-link):where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  font-family: 'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}

/* The guides' titles across the card: global.css holds a card title to 18ch, which in this face is about 200 px
   of a 384 px card and broke "Tekoälyoptimoinnin / opas" with room to spare. */
body.page-service.svc-bands main .wp-cards:not(.case-cards) .icon-card .wp-card-title:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  max-width: none;
}

/* Card labels as the offer's labels: one label style on the page (the close's labels below too). */
body.page-service.svc-bands main .icon-cards--rails .icon-card p.icon-card-label:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  padding: 0;
  background: transparent;
  color: var(--gh-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.04em;
  line-height: 1.4 !important;
  text-transform: uppercase;
}

/* The close's cell labels as the offer's (OfferColumns .offer-label) over the same kind of cells. */
body.page-service.svc-bands main .contact-band-grid .contact-band-label:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
  font-weight: 400 !important;
  letter-spacing: 0.04em;
  line-height: 1.4 !important;
}

body.page-service.svc-bands main .contact-band-grid .contact-band-value:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  font-family: 'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif;
  font-size: 22px;
  font-weight: 600;
}

/* Phones: body text 17 px (wp.css's phone rule makes it 16). `html` and :where() give exactly one type selector
   more than that rule, so every block that already outranked it still does. */
@media (max-width: 640px) {
  html body.page-service:where(.svc-bands) main :is(p:not(.eyebrow, .pricing-price, .pricing-badge, .icon-card-label, .pricing-footnote, .pricing-tier-footnote), li, td):not(.ai-demo *, .logo-wall *, .ref-show *, .opt *, .aic *, .est-ui *, .quiz *, .gd *):where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
    font-size: 17px !important;
  }

  body.page-service.svc-bands main :is(.svc-cells, .svc-steps) h3:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
    font-size: 20px !important;
  }

  body.page-service.svc-bands main :is(.rails-intro, .contact-band) .section-intro p.lede:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
    font-size: 19px !important;
  }

  body.page-service.svc-bands main .svc-faq summary:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
    font-size: 17px !important;
  }

  body.page-service.svc-bands main .wp-cards .icon-card .wp-card-title:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
    font-size: 20px !important;
  }

  body.page-service.svc-bands main .case-card-label:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
    font-size: 17px;
  }

  body.page-service.svc-bands main .service-offer .service-offer-price:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
    font-size: 2.5rem !important;
  }

  body.page-service.svc-bands main .contact-band-grid .contact-band-value:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
    font-size: 20px;
  }
}

/* --- 3. Light, white bands: space instead of rules (the front page's .fl-white values) -------------------------- */

html.theme-light body.svc-bands main.site-main > .band[data-band='white'] .rails-intro:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  padding-block: 2.5rem 0;
}

/* The H2 about 64 px from the band's top. */
html.theme-light body.svc-bands main.site-main > .band[data-band='white'] .rails-intro .section-intro:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  padding-top: 1.5rem;
}

html.theme-light body.svc-bands main.site-main > .band[data-band='white'] .faq-accordion--rails:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  padding-top: 4rem;
  padding-bottom: 2.5rem;
}

html.theme-light body.svc-bands main.site-main > .band[data-band='white'] .svc-side > .wrap:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  gap: 3rem;
  padding-block: 0.5rem 3rem;
}

/* The copy and the screenshot sit on the heading's edge, with no inset of their own. */
html.theme-light body.svc-bands main.site-main > .band[data-band='white'] .svc-side :is(.feature-row-copy, .feature-row-media):where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  padding: 0 !important;
}

@media (max-width: 799px) {
  /* About 56 px from the band's top to the H2. */
  html.theme-light body.svc-bands main.site-main > .band[data-band='white'] .rails-intro:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
    padding-block: 2rem 0;
  }

  html.theme-light body.svc-bands main.site-main > .band[data-band='white'] .faq-accordion--rails:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
    padding-top: 3.5rem;
  }

  html.theme-light body.svc-bands main.site-main > .band[data-band='white'] .svc-side > .wrap:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
    gap: 1.5rem;
    padding-block: 0 2rem;
  }
}

/* Phones: the cells are tiles with a little air inside (white) or text between rules (dark and navy), a step
   tighter than on a wide screen, since the page is long on a phone (final-spec §12: the tasks' tiles are the first
   lever). The offer pair's cells as the other cells, not RailsColumns' 2.5 rem. */
@media (max-width: 640px) {
  body.svc-bands :is(.svc-cells, .offer-cols) > .rails-cols > .rails-cell {
    padding-block: 1.25rem;
  }
}

/* --- 4. Steps and plain lists ---------------------------------------------------------------------------------- */

body.svc-bands .svc-steps {
  margin: 0;
  padding: 0;
  width: 100%;
  list-style: none;
}

body.svc-bands .svc-steps > li {
  position: relative;
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  padding: 1.75rem 0;
}

body.svc-bands .svc-steps > li:first-child {
  padding-top: 0;
  border-top: 0;
}

body.svc-bands .svc-steps > li:last-child {
  padding-bottom: 0;
}

/* No rules between the steps: the steps are a timeline whose line runs from circle to circle (sections.css). */
body.page-service.svc-bands main .svc-step-no:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  color: var(--gh-muted);
  font: 400 19px/1.25 'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}

body.svc-bands .svc-step-body > :is(p, ul) {
  max-width: 40rem;
  margin: 0.75rem 0 0;
  color: var(--gh-subtle);
}

body.svc-bands .svc-step-body > h3 + :is(p, ul) {
  margin-top: 0;
}

body.svc-bands .svc-step-body a {
  color: var(--gh-link);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* The price cell's links in its text (week 41's, FACTORS.links) as the prose's (.wp-prose a): the link colour and an
   underline, or in dark they read as the text around them. The Cta's link (.feature-row-link) keeps the page's
   text-link style (2.). */
body.svc-bands .svc-cells .rails-cell > p:not(.feature-row-link) a {
  color: var(--gh-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

body.svc-bands .svc-cells .rails-cell > p:not(.feature-row-link) a:hover {
  color: color-mix(in srgb, var(--gh-link) 75%, #fff);
}

body.svc-bands .svc-step-body strong {
  color: var(--gh-text);
  font-weight: 600;
}

body.svc-bands :is(.svc-checks, .svc-plain) {
  padding: 0;
  list-style: none;
}

body.svc-bands :is(.svc-checks, .svc-plain) > li {
  padding-left: 0;
}

body.svc-bands :is(.svc-checks, .svc-plain) > li::before {
  content: none !important;
  display: none !important;
}

body.svc-bands :is(.svc-checks, .svc-plain) > li + li {
  margin-top: 0.75rem;
}

@media (max-width: 640px) {
  body.svc-bands .svc-steps > li {
    grid-template-columns: 2.5rem minmax(0, 1fr);
    padding: 1.25rem 0;
  }

  body.page-service.svc-bands main .svc-step-no:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
    font-size: 17px;
  }

  body.svc-bands .svc-steps > li:first-child {
    padding-top: 0;
  }

  body.svc-bands .svc-steps > li:last-child {
    padding-bottom: 0;
  }
}

/* The cells' own lists and paragraphs (the price chapter's cells). */
body.svc-bands .svc-cells .rails-cell > :is(p, ul) {
  max-width: 40rem;
  margin: 0.9rem 0 0;
  color: var(--gh-subtle);
}

body.svc-bands .svc-cells .rails-cell > h3 + :is(p, ul) {
  margin-top: 0;
}

body.svc-bands .svc-cells .rails-cell .wp-prose > p {
  margin: 0;
  color: var(--gh-subtle);
}

body.svc-bands .svc-cells .rails-cell .wp-prose > p + p {
  margin-top: 0.9rem;
}

@media (max-width: 640px) {
  body.svc-bands .svc-cells .rails-cell .wp-prose > p + p {
    margin-top: 0.6rem;
  }
}

body.svc-bands .svc-cells .rails-cell .wp-prose strong {
  color: var(--gh-text);
  font-weight: 600;
}

/* WHY's lede: the cell opens with its point, in the heading's colour (global.css's 400 !important for every
   paragraph is (0,3,3); the cells' paragraph colour above is (0,3,2)). */
html body.page-service.svc-bands main .svc-cells .rails-cell > p.svc-cell-lede:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  color: var(--gh-text);
  font-weight: 600 !important;
}

body.svc-bands .svc-cells .rails-cell .feature-row-link {
  margin: 1.5rem 0 0;
}

/* --- 5. Grids: three columns go two per row at 800-1099 px (the site's rule for compact grids) ------------------ */

@media (min-width: 800px) and (max-width: 1099px) {
  body.svc-bands .svc-cells > .rails-cols.is-cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.svc-bands .svc-cells > .rails-cols.is-cols-3 > .rails-cell:nth-child(n) {
    border-top: 0;
    border-left: 0;
  }

  body.svc-bands .svc-cells > .rails-cols.is-cols-3 > .rails-cell:nth-child(even) {
    border-left: 1px solid var(--gh-border);
  }

  body.svc-bands .svc-cells > .rails-cols.is-cols-3 > .rails-cell:nth-child(n + 3) {
    border-top: 1px solid var(--gh-border);
  }
}

/* Compact cards (the results, the guides): a little less air inside, the picture and the text are the card. */
@media (min-width: 641px) {
  body.svc-bands main .icon-cards--rails.is-compact > .wrap > .icon-card:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
    padding: 2rem 1.75rem 2.25rem !important;
  }
}

/* --- 6. The side row (src/components/SideRow.astro): text left, screenshot or portrait right ---------------- */

body.svc-bands .svc-side > .wrap {
  display: grid;
  align-items: stretch;
}

body.svc-bands .svc-side .feature-row-copy {
  justify-content: flex-start;
  padding: 2.5rem 2rem;
}

body.svc-bands .svc-side .feature-row-copy :is(p, .feature-row-extra, .wp-feature .feature-row-extra) {
  max-width: 40rem;
}

body.svc-bands .svc-side .feature-row-media {
  min-height: 0;
  margin: 0;
  padding: 3rem 2rem;
  overflow: visible;
  background: none;
}

body.svc-bands .svc-side .is-shot :is(a, picture) {
  display: block;
}

body.svc-bands .svc-side .is-shot img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  background: none;
}

html.theme-light body.svc-bands .svc-side .is-shot img {
  border-radius: var(--tile-radius, 14px);
}

/* The portrait at the top of its column, not held at the bottom of the screen (global.css makes it sticky).
   Relative, not static: the teal square (its ::before) is placed against the portrait itself. */
body.svc-bands .svc-side .feature-row-media.is-portrait {
  align-content: start;
  justify-items: start;
}

body.svc-bands .svc-side .feature-row-media.is-portrait > .teal-portrait:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  position: relative;
  bottom: auto;
}

@media (min-width: 961px) {
  body.svc-bands .svc-side > .wrap {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  /* The rails: the copy draws the left one, the picture the line between and the right one. */
  body.svc-bands .svc-side .feature-row-media {
    border-right: 1px solid var(--gh-border);
    border-left: 1px solid var(--gh-border);
  }

  body.svc-bands .svc-side.is-sticky .feature-row-media > :first-child {
    position: sticky;
    top: calc(var(--topbar, 7rem) + 1.5rem);
  }
}

@media (max-width: 960px) {
  body.svc-bands .svc-side > .wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  body.svc-bands .svc-side .feature-row-media {
    padding-inline: 0;
    border-top: 1px solid var(--gh-border);
    border-right: 0;
    border-left: 0;
  }

  body.svc-bands .svc-side .feature-row-media.is-portrait .teal-portrait:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
    width: min(100%, 16rem);
    margin-inline: 0;
  }
}

@media (max-width: 640px) {
  body.svc-bands .svc-side .feature-row-copy {
    padding: 2rem 0 2.5rem;
  }

  body.svc-bands .svc-side .feature-row-media {
    padding-block: 2rem 2.5rem;
  }
}

/* --- 7. FAQ: held to the measure, so the chevron stays next to the question ------------------------------------ */

body.svc-bands .svc-faq .faq-accordion-body {
  max-width: 48rem;
  margin-inline: 0;
}

body.svc-bands .svc-faq details > p {
  max-width: 44rem;
}

/* Light, white band: the rows keep their soft grey rules. The white band's tokens reach the FAQ through its
   .is-header-tone and outrank theme-light-bands.css's hairline rule, so the rows' token is set on the list itself;
   the section's own rules stay off, as everywhere on white. */
html.theme-light body.svc-bands main.site-main > .band[data-band='white'] .svc-faq .faq-accordion-body {
  --gh-border: #dfe1ea;
  --border: #dfe1ea;
}

/* Dark: the section's rule edge to edge closes the list, so the last row draws none (two rules 40 px apart read
   as a doubled line). Light keeps the last hairline: on white the section draws no rule. */
html:not(.theme-light) body.svc-bands .svc-faq .faq-panel > details:last-of-type {
  border-bottom: 0;
}

/* Rows a little tighter: the questions are short and the page long. */
body.svc-bands .svc-faq .faq-panel summary {
  padding-block: 1rem;
}

/* Under the last question, the intro of the next chapter follows: its own 6.5 rem are the air. */
body.svc-bands .faq-accordion.faq-accordion--rails.svc-faq {
  padding-bottom: 2.5rem;
}

/* The band's top in dark and navy: as far from the heading as an intro's (RailsIntro, 4 rem under 961 px). */
@media (max-width: 960px) {
  body.svc-bands .faq-accordion.faq-accordion--rails.svc-faq {
    padding-top: 4rem;
  }
}

/* --- 8. Buttons on phones: full width ------------------------------------------------------------------------- */

@media (max-width: 479px) {
  body.svc-bands main :is(.split-hero-actions, .offer-actions, .contact-band-action) .btn:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
    justify-content: center;
    width: 100%;
    min-height: 48px;
  }

  body.svc-bands main .split-hero-actions:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
    flex-direction: column;
    align-items: stretch;
  }
}

/* --- 8b. A card that leaves the site (CardGrid `external`, the audit template) ------------------------------- */

/* Base.astro marks links off the site in an <article> (is-external) and global.css gives their ::after the
   external-link mark; on a card that ::after is the overlay that makes the whole card the link. Keep the overlay,
   and put the mark after the title instead. */
body.svc-bands .wp-cards .wp-card-link.is-external::after {
  display: block;
  width: auto;
  height: auto;
  margin: 0;
  background: none;
  -webkit-mask: none;
  mask: none;
}

body.svc-bands .wp-cards .wp-card-title:has(> a[target='_blank'])::after {
  content: '';
  display: inline-block;
  width: 0.72em;
  height: 0.72em;
  margin-left: 0.28em;
  vertical-align: -0.05em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3.2H3.8A1.3 1.3 0 0 0 2.5 4.5v7.7A1.3 1.3 0 0 0 3.8 13.5h7.7a1.3 1.3 0 0 0 1.3-1.3V10'/%3E%3Cpath d='M8.2 7.8 13.5 2.5'/%3E%3Cpath d='M9.6 2.5h3.9V6.4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3.2H3.8A1.3 1.3 0 0 0 2.5 4.5v7.7A1.3 1.3 0 0 0 3.8 13.5h7.7a1.3 1.3 0 0 0 1.3-1.3V10'/%3E%3Cpath d='M8.2 7.8 13.5 2.5'/%3E%3Cpath d='M9.6 2.5h3.9V6.4'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* --- 9. The closing band's text link (ContactBand `link`); its type is the page's one text-link style (2.) ------ */

body.page-service.svc-bands main .contact-band-link:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  margin: 1rem 0 0;
}

body.svc-bands main .contact-band-grid .contact-band-cell:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  padding-bottom: 2.25rem;
}
