/* =====================================================================
   TechSentials website - design refresh  (ts-refresh.css)  v1.0
   2026-11-24. Each improvement is switched on by one class on <html>.
   Remove a class from <html> and that improvement is gone. Nothing else
   in the page is edited.

   r-align    Left-aligned paragraphs (no stretched word gaps)
   r-balance  Even headline line breaks (no single word left alone)
   r-logo     Logo per brand rules (no drop shadow, a little larger)
   r-icons    Clean line icons instead of emoji
   r-marks    TechSentials shapes as section markers
   r-motion   Calmer motion, real numbers shown right away
   r-tiles    Flatter, calmer blue tiles
   r-spacing  Spacing and layout fixes
   r-copy     Wording polish (handled in ts-site.js)
   ===================================================================== */

/* r-align */
html.r-align p, html.r-align .lead, html.r-align .hero p.sub { text-align: left; }
html.r-align .center .lead, html.r-align .cta-final p { text-align: center; }
html.r-align .lead, html.r-align .hero p.sub { max-width: 62ch; }

/* r-balance */
html.r-balance h1, html.r-balance h2, html.r-balance h3, html.r-balance .h2 { text-wrap: balance; }
html.r-balance p { text-wrap: pretty; }

/* r-logo: brand standard says no drop shadow; give it room */
html.r-logo .logo img { filter: none; }
html.r-logo header .logo img { height: 60px; }
@media (max-width: 960px) { html.r-logo.tsm header .logo img { height: 48px; } }

/* r-icons (SVGs are inserted by ts-site.js) */
html.r-icons .chip svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
html.r-icons .chip { font-size: 0; }

/* r-marks: the logo's triangle, square and circle replace the amber dot */
html.r-marks .eyebrow, html.r-marks .kicker { display: inline-flex; align-items: center; gap: 10px; }
html.r-marks .eyebrow::before, html.r-marks .kicker::before {
  content: ""; flex: 0 0 auto; width: 30px; height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 12'%3E%3Cpolygon points='5,0.5 10,10 0,10' fill='%23FF0000'/%3E%3Crect x='12' y='1' width='9' height='9' fill='%23FFFF00'/%3E%3Ccircle cx='26' cy='6' r='4.5' fill='%230000FF'/%3E%3C/svg%3E") no-repeat center / contain;
}
html.r-marks .kicker .dot { display: none; }
html.r-marks .eyebrow, html.r-marks .kicker { color: #14161D; }
html.r-marks .center .eyebrow { justify-content: center; }

/* r-motion: one moving thing (the map pulse); everything else holds still */
html.r-motion .bggrid { animation: none; }
html.r-motion .reveal { opacity: 1; transform: none; transition: none; }
html.r-motion .ticker .dot { animation: none; }
html.r-motion .card:hover, html.r-motion .seal:hover, html.r-motion .btn-primary:hover { transform: none; }
html.r-motion .dash { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .bggrid, .dot, .dash, .mk-pulse, .blip::after { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* r-tiles: solid blue, one shadow, quieter hover */
html.r-tiles .card, html.r-tiles .kpi, html.r-tiles .proof, html.r-tiles .credpanel, html.r-tiles .band {
  background: #2557d6; border-color: #1f4bbd;
}
html.r-tiles .card { box-shadow: 0 1px 2px rgba(20, 40, 90, .18); border-radius: 14px; }
html.r-tiles .card:hover { background: #2150c7; box-shadow: 0 10px 26px rgba(20, 40, 90, .22); }
html.r-tiles .chip { border-radius: 10px; background: rgba(255, 255, 255, .14); }
html.r-tiles .cta-final { background: #1f4bbd; }
html.r-tiles .cta-final::before { display: none; }
html.r-tiles .card .card-cue::after { content: "Read more"; }
html.r-tiles .card.open .card-cue::after { content: "Show less"; }

/* r-spacing */
html.r-spacing .reveal + .credpanel { margin-top: 28px; }                /* Contracts: NAICS table touched its heading */
@media (min-width: 961px) {
  html.r-spacing .svcs:has(> .card:nth-child(4):last-child) { grid-template-columns: repeat(4, 1fr); } /* no lone 4th card */
}
html.r-spacing .hero-tagline { margin: 2px 0 22px; }
html.r-spacing .eyebrow + .h2, html.r-spacing .eyebrow + h2 { margin-top: 12px; }
html.r-spacing footer .wrap { row-gap: 8px; }
