/* Tuotu Astro-projektista: src/styles/theme-light-bands.css (bin/sync-astro.py). */
/* The light theme's navy and white bands on every page but the front page (Tapio, 2026-10-06: "joka toisen
   elementin tulisi olla sinisellä kuten etusivukin ja joka toinen valkoisella; sininen sisältää borderit ja
   valkoinen vaaleat laatikot, kuten etusivullakin. Tämä koko sivuston laajuisesti").
   src/lib/bands.ts marks each top-level block of <main> data-band="navy" or "white" (a block with a heading starts
   a band, the hero's band is navy); the front page has its own groups (.fl-blue / .fl-white, theme-light.css)
   and these rules copy their look:
   - navy: the header's #000024 with the site's rails and rules in a faint white, white text, teal accents;
   - white: no lines at all; cards, columns, figures and price boxes are soft #f7f7f5 tiles on a 1 rem gap;
     tables, the FAQ, the contents and form fields keep a soft grey rule, which is what holds them together, and
     a framed picture keeps its frame in the same grey.
   The blocks read the --gh-* tokens, so redeclaring them on a band recolours everything inside it. Dark theme:
   nothing here applies. `body.product-home` (every page has it) lifts these rules over theme-light.css's
   main.site-main rules for the same blocks. */

/* --- The two tones ------------------------------------------------------------------------------------- */

html.theme-light body.product-home main.site-main > [data-band='navy'],
html.theme-light body.product-home main.site-main > [data-band='navy'] .is-header-tone {
  --gh-bg: #000024;
  --bg: #000024;
  --header-bg: #000024;
  --gh-text: #ffffff;
  --gh-subtle: #d6daee;
  --gh-muted: #b4b9d6;
  --gh-border: rgba(255, 255, 255, 0.14);
  --border: rgba(255, 255, 255, 0.14);
  --est-rule: color-mix(in srgb, #ffffff 14%, #000024);
  --gh-link: #4cc8bf;
  --gh-accent: #4cc8bf;
  --gh-green: #4cc8bf;
  --gh-green-hover: #7ad9d1;
  --accent: #4cc8bf;
  --accent-hover: #7ad9d1;
  --tile: color-mix(in srgb, #ffffff 7%, #000024);
  --text: var(--gh-subtle);
  --heading: var(--gh-text);
  --muted: var(--gh-muted);
  --wire: color-mix(in srgb, #ffffff 9%, #000024);
  --alt: color-mix(in srgb, #ffffff 6%, #000024);
  --panel: color-mix(in srgb, #ffffff 7%, #000024);
  --input-bg: color-mix(in srgb, #ffffff 10%, #000024);
  --row-hover: color-mix(in srgb, #ffffff 6%, #000024);
  --track: color-mix(in srgb, #ffffff 14%, #000024);
  --fill: #aab0cf;
  background-color: #000024;
  color: var(--gh-subtle);
}

html.theme-light body.product-home main.site-main > [data-band='white'],
html.theme-light body.product-home main.site-main > [data-band='white'] .is-header-tone,
html.theme-light body.product-home main.site-main > [data-band='white']:is(.split-hero.split-hero--rails, .contact-band, .contact-band-grid) {
  --gh-bg: #ffffff;
  --bg: #ffffff;
  --header-bg: #ffffff;
  --gh-text: #000024;
  --gh-subtle: #3d3d3d;
  --gh-muted: #5b5f6e;
  /* The rails' rules all read this token: transparent, the lines are gone. */
  --gh-border: transparent;
  --border: transparent;
  --est-rule: transparent;
  /* Teal is too pale for text on white: a darker teal of the same hue. */
  --gh-link: #0a7a72;
  --gh-accent: #0a7a72;
  --gh-green: #000024;
  --gh-green-hover: #1d1d4a;
  --accent: #0a7a72;
  --accent-hover: #000024;
  --tile: #f7f7f5;
  --text: var(--gh-subtle);
  --heading: var(--gh-text);
  --muted: var(--gh-muted);
  --wire: var(--tile);
  --alt: var(--tile);
  --panel: #f7f7f5;
  --input-bg: #f3f3f3;
  --row-hover: #ececec;
  --track: #e4e4e4;
  --fill: #555555;
  background-color: #ffffff;
  color: var(--gh-subtle);
}

/* Lines drawn out of the token's reach, in a white band: gone too. */
html.theme-light main.site-main > [data-band='white'],
html.theme-light main.site-main > [data-band='white'] :is(.wrap, section, .rails-cols, .rails-cell, .icon-card, .feature-row-copy, .feature-row-media, .feature-trio-cell, .case-figure, .pricing-tier):where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  border-color: transparent;
  box-shadow: none;
}

/* What needs its rules on white: tables, the FAQ (the UKK page's too), the contents, form fields. A soft grey.
   `body.product-home` as in the tones above: without it the white tone outranks this rule where the FAQ, the
   estimator or a table is the band itself, or carries .is-header-tone, and their rows lost their lines. */
html.theme-light body.product-home main.site-main > [data-band='white'] :is(table, .compare-table--rails, .faq-accordion--rails, .svc-steps, .wp-toc, .est, form, .wp-form, .kncc-category, .ukk-list),
html.theme-light body.product-home main.site-main > [data-band='white'] .ukk-toc ol,
html.theme-light body.product-home main.site-main > [data-band='white']:is(.compare-table--rails, .faq-accordion--rails, .wp-toc, .est) {
  --gh-border: #dfe1ea;
  --border: #dfe1ea;
  --est-rule: #dfe1ea;
}

/* --- Buttons: navy on white, teal on navy ---------------------------------------------------------------- */

html.theme-light main.site-main > [data-band='navy'] .btn-primary:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)),
html.theme-light main.site-main > [data-band='navy'] .split-hero-actions > .btn-primary:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  border-color: #4cc8bf;
  background: #4cc8bf;
  color: #000024;
}

html.theme-light main.site-main > [data-band='navy'] .btn-primary:hover:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)),
html.theme-light main.site-main > [data-band='navy'] .split-hero-actions > .btn-primary:hover:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  border-color: #7ad9d1;
  background: #7ad9d1;
  color: #000024;
}

html.theme-light main.site-main > [data-band='navy'] .btn:not(.btn-primary):where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  border-color: #ffffff;
  color: #ffffff;
}

html.theme-light main.site-main > [data-band='white'] .btn-primary:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)),
html.theme-light main.site-main > [data-band='white'] .split-hero-actions > .btn-primary:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  border-color: #000024;
  background: #000024;
  color: #ffffff;
}

html.theme-light main.site-main > [data-band='white'] .btn-primary:hover:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)),
html.theme-light main.site-main > [data-band='white'] .split-hero-actions > .btn-primary:hover:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  border-color: #1d1d4a;
  background: #1d1d4a;
  color: #ffffff;
}

html.theme-light main.site-main > [data-band='white'] .btn:not(.btn-primary):where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  border-color: #000024;
  color: #000024;
}

/* Buttons with colours of their own that outrank the rules above, in a navy band: /hakukoneoptimointikoulutus/'s
   (kou.css) and /ilmainen-seo-testi/'s result (seot.css .seot-next-primary, not a .btn) paint the band's accent,
   teal, under a white text; /hakukoneoptimoinnin-auditointi/'s two (aud.css) are navy for a white page, so on navy
   they were navy on navy. Here, as every primary button on navy: teal with navy text. */
html.theme-light body.product-home main.site-main > [data-band='navy'] :is(.aud-actions > .btn-primary, .aud-compare-link.is-primary):where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  background: #4cc8bf;
}

html.theme-light body.product-home main.site-main > [data-band='navy'] :is(.aud-actions > .btn-primary, .aud-compare-link.is-primary):hover:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  background: #7ad9d1;
}

html.theme-light body.product-home main.site-main > [data-band='navy'] :is(.kou-actions a.btn-primary, a.seot-next-primary, .aud-actions > .btn-primary, .aud-compare-link.is-primary):where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)),
html.theme-light body.product-home main.site-main > [data-band='navy'] :is(.kou-actions a.btn-primary, a.seot-next-primary, .aud-actions > .btn-primary, .aud-compare-link.is-primary):hover:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  color: #000024;
}

/* --- Navy bands: the customers' logos white as on the dark page ----------------------------------------- */

html.theme-light main.site-main > [data-band='navy'] .logo-wall :is(img, svg):where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  filter: grayscale(1) brightness(0) invert(1);
  opacity: 0.78;
}

/* --- White bands: the tiles -------------------------------------------------------------------------------- */

/* Card grids. */
html.theme-light main.site-main > [data-band='white']:is(.icon-cards--rails) > .wrap:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)),
html.theme-light main.site-main > [data-band='white'] .icon-cards--rails > .wrap:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  gap: var(--gap);
  padding-block: 0 3rem;
  border: 0;
}

/* A card grid that opens its white band itself, with no intro above it in the band (an archive's cards under the
   hero and the filter, the beginner's guide's two examples): air above the tiles too, not the navy edge. */
html.theme-light main.site-main > [data-band='navy'] + [data-band='white'].icon-cards--rails > .wrap:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)),
html.theme-light main.site-main > [data-band='navy'] + :not([data-band]) + [data-band='white'].icon-cards--rails > .wrap:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  padding-top: 3rem;
}

html.theme-light main.site-main > [data-band='white'] .icon-card:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  border-radius: var(--tile-radius);
  background: var(--tile);
  overflow: hidden;
}

/* Columns (RailsColumns: story cards, topics, tasks, booking paths). */
html.theme-light main.site-main > [data-band='white'] .rails-cols:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  gap: var(--gap);
  padding-block: 0 3rem;
  border: 0;
}

html.theme-light main.site-main > [data-band='white'] .rails-cols > .rails-cell:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  border-radius: var(--tile-radius);
  background: var(--tile);
}

/* Three callouts in a row. */
html.theme-light main.site-main > [data-band='white']:is(.feature-trio--rails) > .wrap:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)),
html.theme-light main.site-main > [data-band='white'] .feature-trio--rails > .wrap:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  gap: var(--gap);
  padding-block: 0 3rem;
}

html.theme-light main.site-main > [data-band='white'] .feature-trio-cell:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  border-radius: var(--tile-radius);
  background: var(--tile);
}

/* A case's figures. */
html.theme-light main.site-main > [data-band='white'] .case-figures-list:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  gap: var(--gap);
}

html.theme-light main.site-main > [data-band='white'] .case-figure:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  border-radius: var(--tile-radius);
  background: var(--tile);
}

/* Price boxes. */
html.theme-light main.site-main > [data-band='white'] .pricing-grid:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  gap: var(--gap);
}

html.theme-light main.site-main > [data-band='white'] .pricing-tier:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  border-radius: var(--tile-radius);
  background: var(--tile);
}

/* A feature row's picture side, framed: a tile. */
html.theme-light main.site-main > [data-band='white'] .feature-row-media.wp-media:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  border-radius: var(--tile-radius);
}

/* A framed picture keeps its frame on white, in the soft grey: without it a screenshot with white edges runs into
   the page. The frames are drawn with the token (wp.css body.media-frames .is-framed img, and the pages' own rules
   on /google-mainonta/ and /tapio-kauranen/, which an id outranks), so the token is set on the picture itself. */
html.theme-light main.site-main > [data-band='white'] :is(.wp-media, .wp-section-image).is-framed img {
  --gh-border: #dfe1ea;
  --border: #dfe1ea;
}

/* The pages' own grids (/tapio-kauranen/, /google-mainonta/, the English SEO page) and the
   contact band's two cells. */
html.theme-light main.site-main > [data-band='white']:is(.seo-grid) > .wrap:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)),
html.theme-light main.site-main > [data-band='white'] :is(.tk-cols, .gm-cols, .contact-band-cols):where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  gap: var(--gap);
}

html.theme-light main.site-main > [data-band='white'] :is(.seo-cell, .tk-cell, .gm-cell, .contact-band-cell):where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  border-radius: var(--tile-radius);
  background: var(--tile);
}

/* Air under the contact band's two tiles, as under the other grids (the navy footer follows them on most pages). */
html.theme-light main.site-main > [data-band='white'] .contact-band-cols:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  padding-bottom: 3rem;
}

/* Phones: the phone rules zero a cell's side padding so its text sits on the page's gutter between the rules;
   as a tile it needs air inside (as on the front page). */
@media (max-width: 799px) {
  html.theme-light main.site-main > [data-band='white'] :is(.icon-card, .rails-cell, .feature-trio-cell, .case-figure, .seo-cell, .tk-cell, .gm-cell, .contact-band-cell, .pricing-tier):where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
    padding-inline: 1.25rem;
  }

  html.theme-light main.site-main > [data-band='white'] .icon-card:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
    padding-block: 1.5rem;
  }

  html.theme-light main.site-main > [data-band='white'] .icon-card .wp-card-image:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
    margin-bottom: 1rem;
  }
}

/* The service tabs on /hinnasto/ (ServiceFeatures): the active tab is the band's accent, teal in a navy band, so
   its text is navy, not white. */
html.theme-light main.site-main > [data-band='navy'] .svc-tab.is-active:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  color: #000024;
}

/* The line drawings above the titles (the concerns of /wordpress-kotisivut/, the cards' art) are white strokes on a clear
   ground, drawn for the navy bands: on a white band's light tile they vanish (Tapio, 2026-10-30: the light theme of
   /wordpress-kotisivut/). There they are drawn dark, in the text colour's place. */
html.theme-light main.site-main > [data-band='white'] :is(.feature-trio-art, .icon-card-art) img:where(:not(.tk-sec, .tk-sec *, .tk-results, .tk-results *, .tk-fp-hero, .tk-fp-hero *)) {
  filter: invert(1);
  opacity: 0.8;
}
