/* ============================================================
 * BLOG ARTICLE — page styling (design system v2)
 * Shared full-photo hero (shorter cut) · readable prose column ·
 * navy pull quote · callout card · author + share row · reading
 * progress bar · "Read more" tiles reuse the home blogcards.
 * ============================================================ */

/* ---------- reading progress bar ---------- */
.art-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 4px;
  z-index: 70;
  background: transparent;
  pointer-events: none;
}
.art-progress__fill {
  height: 100%;
  width: 0;
  background: var(--ge-sky, #2FB7F1);
}

/* ---------- hero: shorter article cut ---------- */
/* ARTICLE HERO — photo tile with a floating white card, matching the home
   "Your data's in safe hands" section (Rebecca, 23 Jul). Reuses the shared
   .trust2__frame/__photo/__card pattern from home-v2.css; only the card's
   article-specific type is styled here. */
.arthero { padding-top: clamp(10px, 1.4vw, 18px); }
/* full-bleed like the home hero tile — same side margins and radius */
.arthero .container { max-width: none; padding: 0 clamp(10px, 1.6vw, 22px); }
.arthero .trust2__frame {
  border-radius: clamp(20px, 2.5vw, 34px);
  /* HALF the shared hero height (Rebecca, 4 Aug: "for the individual blog pages
     lets make the heros half the height that they are"). Written as a division
     of the token, not a fresh number, so it stays exactly half if --hero-h ever
     moves — the same approach the Parent Help Centre's header uses.
     min-height, so a long headline can still push the tile taller rather than
     overflowing the card. */
  min-height: calc(var(--hero-h) / 2);
  /* capped + centred like every other hero — .arthero .container already
     supplies the gutter, so max-width does the job margin-inline: auto does
     on the .hero2/.pv3g frames. See --hero-* in home-v2.css. */
  max-width: var(--hero-cap);
  margin-inline: auto;
}
.arthero .trust2__photo { object-position: center; }
/* the card's margin comes down with the tile — at the old 24-72px it filled a
   half-height tile edge to edge and the photo stopped reading as a photo */
.arthero .trust2__card { width: min(620px, 52%); margin: clamp(18px, 2.4vw, 40px); }
.arthero__card h1 {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ge-navy, #0F1438);
}
.arthero__card .art-tag { display: inline-block; }
.arthero__card .art-meta { color: #4A5876; }
.art-tag {
  align-self: flex-start;
  margin-bottom: 16px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--ge-sky, #2FB7F1);
  color: var(--ge-navy, #0F1438);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.art-meta { margin: 14px 0 0; color: rgba(255, 255, 255, 0.85); font-size: 15px; }

/* ---------- article body ---------- */
.art { background: #fff; padding: clamp(64px, 8vw, 110px) 0 clamp(24px, 3vw, 48px); }

/* two-column layout: prose left, sticky rail right */
.art__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(260px, 24vw, 340px);
  gap: clamp(40px, 6vw, 110px);
  align-items: start;
}
.art__col { max-width: 72ch; }

/* ---------- sticky rail ---------- */
.art__rail-inner { position: sticky; top: 100px; display: flex; flex-direction: column; gap: clamp(24px, 2.5vw, 36px); }
.art__rail-label {
  margin: 0 0 12px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6B7689;
}
/* rail demo card */
.art__railcta {
  background: var(--ge-navy, #0F1438);
  border-radius: 20px;
  padding: 22px;
}
.art__railcta p { margin: 0 0 16px; font-size: 14.5px; line-height: 1.5; color: rgba(255, 255, 255, 0.85); }

@media (max-width: 960px) {
  .art__layout { grid-template-columns: 1fr; }
  .art__rail-inner { position: static; }
  .art__col { margin: 0 auto; }
}
.art__col p.art__lede {
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ge-navy, #0F1438);
  margin: 0 0 clamp(32px, 3.5vw, 52px);
}
.art__col h2 {
  font-size: clamp(24px, 2.2vw, 32px);
  color: var(--ge-navy, #0F1438);
  margin: clamp(36px, 4vw, 56px) 0 14px;
}
.art__col > .container p, .art__col p { font-size: 17px; line-height: 1.7; color: #2A3352; margin: 0 0 18px; }
.art__col a { color: var(--ge-blue, #1B367E); }
.art__col a:hover { color: var(--ge-navy, #0F1438); }

/* pull quote — navy card, echoes the testimonial language */
.art__quote {
  margin: clamp(32px, 4vw, 52px) 0;
  background: var(--ge-navy, #0F1438);
  border-radius: 24px;
  padding: clamp(28px, 3vw, 44px);
}
.art__quote blockquote {
  margin: 0;
  font-size: clamp(19px, 1.8vw, 25px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: #fff;
}
.art__quote figcaption { margin-top: 14px; font-size: 14.5px; color: rgba(255, 255, 255, 0.72); }

/* callout card */
.art__callout {
  background: var(--ge-blue-3, #D9F4FF);
  border-radius: 24px;
  padding: clamp(24px, 2.6vw, 36px);
  margin: clamp(32px, 4vw, 52px) 0 0;
}
.art__callout h3 { margin: 0 0 10px; font-size: 19px; color: var(--ge-navy, #0F1438); }
/* ---------- body lists ----------
   This sheet had no list styling at all: the template article contains only
   paragraphs, so the gap only showed up when the first real post (Martyn's Law,
   4 Aug 2026) needed a numbered sequence and a set of bullets.
   Ordered lists keep numerals — in that post the ORDER is the content. Bullets
   follow the site rule (navy disc, white tick). */
.art__col ol,
.art__col ul { margin: 0 0 24px; padding: 0; list-style: none; }
.art__col ol { counter-reset: artstep; }
.art__col li {
  position: relative;
  padding-left: 40px;
  margin-bottom: 14px;
  font-size: 17px;
  line-height: 1.7;
  color: #2A3352;
}
.art__col li:last-child { margin-bottom: 0; }
.art__col ol > li { counter-increment: artstep; }
.art__col ol > li::before {
  content: counter(artstep);
  position: absolute;
  left: 0;
  top: 0.16em;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--ge-navy, #0F1438);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.art__col ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: var(--ge-navy, #0F1438) center / 11px 11px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
.art__col li strong { color: var(--ge-navy, #0F1438); }
.art__callout p { margin: 0; }

/* ---------- author (rail) + share ---------- */
.art__author { display: flex; align-items: center; gap: 14px; }
.art__avatar {
  width: 52px; height: 52px; border-radius: 999px; flex: none;
  display: grid; place-items: center;
  background: var(--ge-navy, #0F1438); color: #fff;
  font-size: 16px; font-weight: 800; letter-spacing: 0.02em;
}
.art__author-name { display: block; font-weight: 700; font-size: 15.5px; color: var(--ge-navy, #0F1438); }
.art__author-role { display: block; font-size: 13.5px; color: #4A5876; }

/* position:relative anchors .art__copy-done, which is a SIBLING of the buttons
   now rather than a child of the copy button — see the note in the markup. */
.art__share { display: flex; align-items: center; gap: 10px; position: relative; }
.art__share-label { display: none; } /* the rail supplies its own label */
.art__share-btn {
  position: relative;
  width: 46px; height: 46px;
  border-radius: 999px;
  border: 1.5px solid #E6ECF4;
  background: #fff;
  color: var(--ge-navy, #0F1438);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background 200ms var(--hv2-ease), color 200ms var(--hv2-ease), border-color 200ms var(--hv2-ease);
}
.art__share-btn svg { width: 20px; height: 20px; }
.art__share-btn:hover { background: var(--ge-navy, #0F1438); border-color: var(--ge-navy, #0F1438); color: #fff; }
.art__share-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(47, 183, 241, 0.45); }

/* copy-link confirmation bubble */
.art__copy-done {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--ge-navy, #0F1438);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  /* ⚠ visibility, not opacity alone — 6 Aug 2026, accessibility audit (SC 2.5.3).
     opacity:0 still RENDERS the text, so "Link copied" counted as the button's
     visible text while its accessible name was "Copy link" — a mismatch that
     breaks voice control ("click Copy link" matched nothing a user could see).
     visibility:hidden takes it out of both the render and the a11y tree until it
     is actually shown, and still animates because visibility is transitionable
     when paired with a duration. */
  visibility: hidden;
  transition: opacity 200ms var(--hv2-ease), transform 200ms var(--hv2-ease),
              visibility 0s linear 200ms;
}
.art__share.is-copied .art__copy-done {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0s, 0s, 0s;
}

/* ---------- read-more band ---------- */
/* padding-bottom was clamp(200px,18vw,300px) — reserved room for the footer's
   contact-form card, which used to straddle up into this band. That form was
   removed from this page (Rebecca, 29 Jul: "we dont need the form on each
   articles page"), so this band now curves straight into the footer like
   every other contact-band-free page instead — back to a normal band bottom. */
.band--readmore { padding-top: clamp(64px, 8vw, 110px); padding-bottom: clamp(80px, 9vw, 140px); }
/* home-v2 gives .band--blog .bandhead a huge top padding to clear the pricing
   straddle on the home page — no straddle here, so flatten it */
.band--readmore .bandhead { padding-top: 0; display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.art-all {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15.5px; font-weight: 700;
  color: var(--ge-blue, #1B367E); text-decoration: none;
}
.art-all:hover { color: var(--ge-navy, #0F1438); }
.art-all svg { width: 16px; height: 16px; transition: transform 200ms var(--hv2-ease); }
.art-all:hover svg { transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
  .art__copy-done { transition: none; }
}
