/* Navy first section on every public v3 page (owner, 2026-11-12): "all pages the first initial section is navy,
   not too many shapes, not too wordy, not that orange text, needs to be clear".
   It follows the homepage hero (home-hero-dark.css, the owner's own design): navy #0C1D60, white headings with the
   yellow swash, light text, green ticks, blue buttons, and at most one soft blue shape. The slab kickers (the
   orange text) become the same display face as the big words, in pale blue. Stickers and extra blobs are hidden.
   Loaded after the page stylesheets by includes/site/v3/layout.php, so it wins over them. The homepage keeps its
   own hero (body.v3-home). To undo, remove the link in layout.php. */

body:not(.v3-home) main > :is(.v-sub, .v-ahero, .v-hero, .v-auth):first-of-type {
  --hn-bg: #0C1D60; --hn-blue: #144682; --hn-soft: #D9E1F2; --hn-yellow: #F8D169; --hn-tick: #54A696;
  padding-bottom: clamp(56px, 6vw, 96px);
  color: #FFFFFF; background: var(--hn-bg);
}
body:not(.v3-home) main > .v-auth:first-of-type { padding-bottom: 0; }

/* 1. Shapes: one soft blue blob at most */
body:not(.v3-home) main > :is(.v-sub, .v-ahero, .v-hero, .v-auth):first-of-type :is(.v-splat, .v-badge, .v-stripe, .v-ahero__oval) { display: none; }
body:not(.v3-home) main > :is(.v-sub, .v-hero):first-of-type > :is(.v-sub__blob, .v-hero__splat) { display: block; --tone: var(--hn-blue); }
body:not(.v3-home) main > .v-hero:first-of-type .v-hero__splat { display: block; --tone: var(--hn-blue); }

/* 2. Headings: white big words with the yellow swash; the small words in the same face, pale blue (no orange slab) */
body:not(.v3-home) main > :is(.v-sub, .v-ahero, .v-hero, .v-auth):first-of-type :is(.v-lk__xl, .v-h1) { color: #FFFFFF; }
body:not(.v3-home) main > :is(.v-sub, .v-ahero, .v-hero, .v-auth):first-of-type .v-lk__xl--under::after { background: var(--hn-yellow); }
body:not(.v3-home) main > :is(.v-sub, .v-ahero, .v-hero, .v-auth):first-of-type :is(.v-lk__sm, .v-kick) {
  font-family: var(--display); font-size: clamp(28px, 3vw, 42px); font-weight: 400; line-height: .95; letter-spacing: .02em;
  color: var(--hn-soft); -webkit-text-stroke: .02em currentColor;
}
body:not(.v3-home) main > :is(.v-sub, .v-ahero, .v-hero, .v-auth):first-of-type .v-kick { margin-bottom: 6px; }

/* 3. Text, crumbs, ticks and links */
body:not(.v3-home) main > :is(.v-sub, .v-ahero, .v-hero, .v-auth):first-of-type :is(.v-lede, .byline, .tp-hero__job, .sk-salary) { color: var(--hn-soft); }
body:not(.v3-home) main > :is(.v-sub, .v-ahero, .v-hero, .v-auth):first-of-type :is(.byline-who, .sk-salary b) { color: #FFFFFF; }
body:not(.v3-home) main > :is(.v-sub, .v-ahero, .v-hero, .v-auth):first-of-type .v-crumbs a { color: var(--hn-soft); }
body:not(.v3-home) main > :is(.v-sub, .v-ahero, .v-hero, .v-auth):first-of-type .v-crumbs a:hover { text-decoration-color: var(--hn-yellow); }
body:not(.v3-home) main > :is(.v-sub, .v-ahero, .v-hero, .v-auth):first-of-type :is(.v-crumbs li + li::before, .v-crumbs [aria-current]) { color: #FFFFFF; }
body:not(.v3-home) main > :is(.v-sub, .v-ahero, .v-hero, .v-auth):first-of-type :is(.v-ticks li, .checklist) { color: #FFFFFF; }
body:not(.v3-home) main > :is(.v-sub, .v-ahero, .v-hero, .v-auth):first-of-type .v-ticks .v-ic { color: #FFFFFF; background: var(--hn-tick); }
body:not(.v3-home) main > :is(.v-sub, .v-ahero, .v-hero, .v-auth):first-of-type .v-textlink { color: #FFFFFF; text-decoration-color: var(--hn-yellow); }

/* 4. Buttons on the navy itself (not inside white cards) turn the homepage blue; focus rings go yellow */
body:not(.v3-home) main > :is(.v-sub, .v-ahero, .v-hero, .v-auth):first-of-type .v-actions :is(.v-btn--navy, .btn--primary) { --btn: #255C9D; color: #FFF6E0; }
body:not(.v3-home) main > :is(.v-sub, .v-ahero, .v-hero, .v-auth):first-of-type .v-actions :is(.v-btn--navy, .btn--primary):hover { --btn: #1F4F88; }
body:not(.v3-home) main > :is(.v-sub, .v-ahero, .v-hero, .v-auth):first-of-type :is(a, button, input, select, textarea):focus-visible { outline-color: var(--hn-yellow); }

/* 5. CV example and skills pages: the four number tiles become plain rounded squares */
body:not(.v3-home) main > .v-sub:first-of-type .tile { transform: none; background: rgba(217, 225, 242, .08); border-radius: 22px; box-shadow: inset 0 0 0 1px rgba(217, 225, 242, .16); }
body:not(.v3-home) main > .v-sub:first-of-type .tile::before { display: none; }
body:not(.v3-home) main > .v-sub:first-of-type .glance-num { color: #FFFFFF; }
body:not(.v3-home) main > .v-sub:first-of-type .tile-label { color: var(--hn-soft); }

/* 6. Sign-in pages: one navy section, the form card on the left and the copy on the right */
body:not(.v3-home) main > .v-auth:first-of-type .v-auth__panel { --panel: transparent; background: transparent; }
body:not(.v3-home) main > .v-auth:first-of-type .v-auth__panel :is(.v-lede, .checklist) { color: var(--hn-soft); }

/* 7. Pricing: the pass card is navy elsewhere, so here it takes the homepage blue to stand apart */
body:not(.v3-home) main > .v-sub--plans:first-of-type .v-plan { box-shadow: 0 18px 40px rgba(4, 10, 40, .38); }
body:not(.v3-home) main > .v-sub--plans:first-of-type .v-plan--pass { background: var(--hn-blue); box-shadow: 0 26px 54px rgba(4, 10, 40, .5); }

/* ══ The header takes the first section's blue (owner, 2026-11-13: "make the header the same color as the first banner
   hero section e.g. blue, if it doesn't have a blue hero section then leave as is"). Only on a page whose first section
   is one of the blue ones above (and the homepage's hero), and only in the new look (html.v4s): a page that starts
   with anything else keeps the white header. The bar stays blue as you scroll. On phones only the bar is blue: the
   menu that drops down stays white with dark words. ══ */
html.v4s body:has(main > :is(.v-sub, .v-ahero, .v-hero):first-of-type) .site-header,
html.v4s body:has(main > :is(.v-sub, .v-ahero, .v-hero):first-of-type) .site-header.is-scrolled {
  background: #053AA0; border-bottom-color: transparent; box-shadow: none;
}
html.v4s body:has(main > :is(.v-sub, .v-ahero, .v-hero):first-of-type) .site-header.is-scrolled { box-shadow: 0 1px 0 rgba(255, 255, 255, .1); }
html.v4s body:has(main > :is(.v-sub, .v-ahero, .v-hero):first-of-type) .site-header .v4s-logo__name { color: #FFFFFF; }
@media (min-width: 981px) {
  html.v4s body:has(main > :is(.v-sub, .v-ahero, .v-hero):first-of-type) .site-header .nav-links a:not([aria-current="page"]):not(:hover) { color: #FFFFFF; }
  html.v4s body:has(main > :is(.v-sub, .v-ahero, .v-hero):first-of-type) .site-header .nav-signin { color: #FFFFFF; }
  html.v4s body:has(main > :is(.v-sub, .v-ahero, .v-hero):first-of-type) .site-header .nav-signin:hover { color: #FFFFFF; background: rgba(255, 255, 255, .14); }
}
@media (max-width: 980px) {
  html.v4s body:has(main > :is(.v-sub, .v-ahero, .v-hero):first-of-type) .site-header .nav-toggle { color: #FFFFFF; border-color: rgba(255, 255, 255, .45); background: transparent; }
  html.v4s body:has(main > :is(.v-sub, .v-ahero, .v-hero):first-of-type) .site-header .nav-toggle .ic { color: #FFFFFF; }
}
html.v4s body:has(main > :is(.v-sub, .v-ahero, .v-hero):first-of-type) .site-header :is(.nav-signin, .nav-toggle, .v4s-logo):focus-visible { outline: 2px solid #FFFFFF; outline-offset: 3px; }

/* A blue first section with real content in it fills the screen below the header (owner, 2026-11-13: "make this
   section 100vh" on Pricing, then the homepage, then "every blue hero section of each page should be 100vh ... unless
   there isn't much content in that hero", "terms is only a title so no need for 100vh"). "Real content" = a form (the
   free checks, search boxes, contact), pictures, the plan cards, or a list. A hero
   with just a title and a line (Terms, Privacy, FAQ, the blog, articles) keeps its own height. Content is centred in
   the space; on a screen too short for it the section grows as before. Decorative shapes and the bottom stripe are
   absolutely placed, so they stay put. svh where supported, so phone browser bars don't cut it short. New look only. */
html.v4s main > :is(.v-sub, .v-ahero, .v-hero):first-of-type:has(form, img, picture, ul, .v-plans__grid) {
  display: flex; flex-direction: column; justify-content: center;
  min-height: calc(100vh - var(--header-h, 69px));
  min-height: calc(100svh - var(--header-h, 69px));
  box-sizing: border-box;
}
html.v4s main > :is(.v-sub, .v-ahero, .v-hero):first-of-type:has(form, img, picture, ul, .v-plans__grid) > .v-wrap { width: 100%; }

/* 5b. The new look (v4 skin): the four number tiles are stickers, not glass (owner, 2026-11-13: "these look boring").
   Flat sticker colours with dark words, leaning a little each way like the app's sticker tags, straightening when
   pointed at. Neighbours never share a colour: yellow and blue on top, mint and violet below. CV examples, skills
   pages and shared CVs all use them. */
html.v4s body:not(.v3-home) main > .v-sub:first-of-type .tile { --tb: #FFD666; --tt: #3D2C00; background: var(--tb); border-radius: 24px; box-shadow: 0 10px 24px -14px rgba(5, 20, 70, .55);
  transform: rotate(-2.5deg); transition: transform .3s cubic-bezier(.2, .7, .2, 1); will-change: transform; }
html.v4s body:not(.v3-home) main > .v-sub:first-of-type .tile:nth-child(even) { transform: rotate(2deg); }
html.v4s body:not(.v3-home) main > .v-sub:first-of-type .tile:nth-child(3) { transform: rotate(1.5deg); }
html.v4s body:not(.v3-home) main > .v-sub:first-of-type .tile:nth-child(4) { transform: rotate(-2deg); }
html.v4s body:not(.v3-home) main > .v-sub:first-of-type .tile:hover { transform: rotate(0deg) translate3d(0, -3px, 0); }
html.v4s body:not(.v3-home) main > .v-sub:first-of-type .tile--cyan { --tb: #A9CCFF; --tt: #062C66; }
html.v4s body:not(.v3-home) main > .v-sub:first-of-type .tile--channel { --tb: #BBFBE3; --tt: #005D43; }
html.v4s body:not(.v3-home) main > .v-sub:first-of-type .tile--indigo { --tb: #D9CCFF; --tt: #2E1A87; }
html.v4s body:not(.v3-home) main > .v-sub:first-of-type .glance-num { color: var(--tt); }
html.v4s body:not(.v3-home) main > .v-sub:first-of-type .tile-label { color: var(--tt); opacity: .85; }
@media (prefers-reduced-motion: reduce) {
  html.v4s body:not(.v3-home) main > .v-sub:first-of-type .tile, html.v4s body:not(.v3-home) main > .v-sub:first-of-type .tile:nth-child(n) { transform: none; transition: none; }
}

/* Pricing: the line under the plans that links to Our promises (2026-11-13). White on the blue, the link in the
   sticker yellow, no underline. */
.v-plans__promise { margin: 28px auto 0; max-width: 760px; font-size: 15.5px; line-height: 1.6; text-align: center; color: var(--hn-soft, #D9E1F2); }
.v-plans__promise a { margin-left: 4px; font-weight: 700; color: #FFD666; text-decoration: none; white-space: nowrap; }
.v-plans__promise a:hover { color: #FFFFFF; }
