/* Helix GTM design layer (run 7, 26 September 2026): the approved design sample applied to every page of the 7 sites.
   Loaded LAST on every page, after each site's own styles, brand.css and app.css, so it restyles the shared classes
   without touching content, forms or field names. Helix colours only: oxblood #641220, signal #C1121F,
   paper #FAF8F6, ink #1A0E10, clay #EAD9D5. Type: Archivo (display and text) and IBM Plex Mono (labels). */

:root {
  --h7-ox: #641220; --h7-signal: #C1121F; --h7-paper: #FAF8F6; --h7-ink: #1A0E10; --h7-clay: #EAD9D5;
  --h7-ink-70: rgba(26, 14, 16, .72); --h7-ink-12: rgba(26, 14, 16, .12); --h7-paper-70: rgba(250, 248, 246, .78);
  --h7-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --h7-display: "Archivo", Arial, sans-serif;
}

/* ---------- base ---------- */
body { font-size: 17px; line-height: 1.55; overflow-wrap: anywhere; }
h1, h2, h3 { letter-spacing: -.025em; }
img, svg { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--h7-signal) !important; outline-offset: 3px; }
.hx7-label, .hx-eyebrow, .hx-card-kicker, .hx-foot-h { font-family: var(--h7-mono) !important; font-size: 12px !important; font-weight: 600 !important; letter-spacing: .12em !important; text-transform: uppercase; }

/* ---------- header ---------- */
header.hx-header { border-bottom: 1.5px solid var(--h7-ink-12) !important; }
.hx-header-row { min-height: 64px; padding-top: 10px !important; padding-bottom: 10px !important; }
nav.hx-nav a { font-size: 12px; letter-spacing: .1em; border-bottom: 0 !important; }
nav.hx-nav a:hover { background: var(--h7-clay); color: var(--h7-ink) !important; }
nav.hx-nav a.is-active { color: var(--h7-ox) !important; box-shadow: inset 0 -2px 0 var(--h7-signal); }
nav.hx-nav a.hx-cta { background: var(--h7-ox); }
nav.hx-nav a.hx-cta:hover { background: var(--h7-signal); color: var(--h7-paper) !important; }

/* ---------- hero: sized so the whole first screen fits (G2) ---------- */
.hx-hero { padding: clamp(24px, 4.5vh, 64px) 0 clamp(28px, 5vh, 64px) !important; border-bottom: 1.5px solid var(--h7-ink-12) !important; }
.hx-hero .hx-hero-inner, .hx-hero .hero-content, .hx-hero .section-header { max-width: 980px; }
.hx-hero h1 {
  font-weight: 800 !important; letter-spacing: -.035em !important; line-height: .98 !important;
  font-size: clamp(34px, min(6.4vw, 8.2vh), 88px) !important; margin: 10px 0 14px !important; max-width: 18ch;
}
.hx-hero .hx-eyebrow, .hx-hero .hero-badge, .hx-hero .section-badge { color: var(--h7-ox) !important; display: inline-flex !important; align-items: baseline; gap: 10px; }
.hx-hero .hx-eyebrow::after { content: ""; width: 72px; border-bottom: 2px dotted var(--h7-signal); transform: translateY(-4px); }
.hx-hero p, .hx-hero .hx-lead, .hx-hero .hero-subtitle { font-size: clamp(16px, 1.25vw + 8px, 20px) !important; line-height: 1.5; }
.hx-hero .hx-byline { font-family: var(--h7-mono); font-size: 12.5px !important; }
.hx-cta-row, .hx-hero .hero-cta { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; margin-top: 18px !important; }

/* ---------- buttons: a solid oxblood block and an underlined text link ---------- */
.hx-btn, .hx-hero .btn-primary, .btn-primary {
  background: var(--h7-ox) !important; color: var(--h7-paper) !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  font-family: var(--h7-mono) !important; font-weight: 600 !important; font-size: 13px !important; letter-spacing: .08em; text-transform: uppercase;
  padding: 13px 18px !important; text-decoration: none !important; display: inline-block;
}
.hx-btn:hover, .hx-btn:focus-visible, .btn-primary:hover { background: var(--h7-signal) !important; color: var(--h7-paper) !important; }
.hx-btn-ghost, .hx-hero .btn-secondary, .btn-secondary {
  background: transparent !important; color: var(--h7-ink) !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  font-family: var(--h7-display) !important; font-weight: 700 !important; font-size: 18px !important; letter-spacing: -.01em; text-transform: none;
  padding: 6px 0 !important; text-decoration: underline !important; text-decoration-thickness: 3px !important; text-underline-offset: 7px; text-decoration-color: var(--h7-signal) !important;
}
.hx-btn-ghost:hover, .btn-secondary:hover { color: var(--h7-ox) !important; background: transparent !important; }

/* ---------- sections: a signal square and a rule open each one ---------- */
.hx-section { padding-top: clamp(40px, 6vw, 72px) !important; }
.hx-section + .hx-section { border-top: 1.5px solid var(--h7-ink-12); }
.hx-section > h2, .hx-qa > h2, .section-title {
  font-weight: 800 !important; letter-spacing: -.035em !important; line-height: 1 !important;
  font-size: clamp(30px, 4.6vw, 56px) !important; max-width: 20ch; color: var(--h7-ink);
}
.hx-section > h2::before, .hx-qa > h2::before { content: ""; display: block; width: 10px; height: 10px; background: var(--h7-signal); margin: 0 0 18px; }
.hx-sub, .hx-prose { color: var(--h7-ink-70); }

/* ---------- cards: a ruled grid, not floating boxes ---------- */
.hx-cards { gap: 0 !important; border-top: 1.5px solid var(--h7-ink); border-left: 1.5px solid var(--h7-ink); }
.hx-card, .hx-card-static { border: 0 !important; border-right: 1.5px solid var(--h7-ink) !important; border-bottom: 1.5px solid var(--h7-ink) !important; border-radius: 0 !important; box-shadow: none !important; background: var(--h7-paper) !important; }
.hx-card h3, .hx-card-static h3 { font-size: 22px !important; letter-spacing: -.02em; }
.hx-card a:hover { background: var(--h7-clay) !important; }
.feature-card, .pricing-card, .tool-card { border-radius: 0 !important; box-shadow: none !important; border: 1.5px solid var(--h7-ink) !important; }

/* ---------- tables, panels, code ---------- */
.hx-table th { font-family: var(--h7-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; background: var(--h7-ink) !important; color: var(--h7-paper) !important; }
.hx-table td, .hx-table th { border-color: var(--h7-ink-12) !important; }
.hx-panel { border: 1.5px solid var(--h7-ink) !important; border-top: 6px solid var(--h7-ox) !important; border-radius: 0 !important; box-shadow: none !important; }
.hx-addr, .hx-code-block, pre { border-radius: 0 !important; }

/* ---------- forms ---------- */
.hx-field input[type=text], .hx-field input[type=number], .hx-field select, .hx-field textarea { border: 1.5px solid var(--h7-ink) !important; border-radius: 0 !important; background: #fff; }

/* ---------- questions: square plus and minus toggles ---------- */
.hx-qa details { border-top: 1.5px solid var(--h7-ink-12) !important; }
.hx-qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 6px 0; font-family: var(--h7-mono); font-size: 15px; font-weight: 600; }
.hx-qa summary::-webkit-details-marker { display: none; }
.hx-qa summary::after { content: "+"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border: 1.5px solid var(--h7-ink); font-size: 18px; line-height: 1; }
.hx-qa details[open] summary::after { content: "\2212"; background: var(--h7-signal); border-color: var(--h7-signal); color: var(--h7-paper); }
.hx-qa details p { padding-left: 14px; border-left: 2px solid var(--h7-signal); }

/* ---------- credentials band (D2b): straight after the hero on home pages ---------- */
.hx7-cred { background: var(--h7-clay); padding: clamp(32px, 5vw, 56px) 0; border-bottom: 1.5px solid var(--h7-ink-12); }
.hx7-cred-grid { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.hx7-cred-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; box-shadow: 8px 8px 0 var(--h7-ox); }
.hx7-cred h2 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 800; letter-spacing: -.035em; line-height: 1; margin: 6px 0 6px; }
.hx7-label { color: var(--h7-ox); margin: 0; }
.hx7-role { margin: 0 0 16px; font-size: 18px; color: var(--h7-ink-70); }
.hx7-facts, .hx7-results, .hx7-awards { list-style: none; margin: 0; padding: 0; }
.hx7-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-bottom: 16px; }
.hx7-facts b { display: block; font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--h7-ox); }
.hx7-facts span { font-size: 14px; color: var(--h7-ink-70); }
.hx7-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1.5px solid var(--h7-ink); margin-bottom: 14px; }
.hx7-results li { padding: 12px 14px 12px 0; }
.hx7-results li + li { border-left: 1.5px solid rgba(26, 14, 16, .25); padding-left: 14px; }
.hx7-results b { display: block; font-size: 20px; letter-spacing: -.02em; }
.hx7-results span { display: block; font-size: 14px; color: var(--h7-ink-70); }
.hx7-awards li { font-size: 14.5px; padding: 4px 0 4px 16px; position: relative; }
.hx7-awards li::before { content: ""; position: absolute; left: 0; top: .75em; width: 7px; height: 7px; background: var(--h7-signal); }
.hx7-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 14px 0 0; }
.hx7-links a, .hx7-built-links a, .hx7-strip a { color: var(--h7-ink) !important; font-weight: 700; text-decoration: underline; text-decoration-color: var(--h7-signal); text-underline-offset: 4px; }
@media (max-width: 760px) { .hx7-cred-grid { grid-template-columns: 1fr; } .hx7-cred-photo { max-width: 160px; } .hx7-results { grid-template-columns: 1fr; } .hx7-results li + li { border-left: 0; padding-left: 0; border-top: 1px solid rgba(26, 14, 16, .2); } }

/* ---------- "Built by" strip (D2c): tool and plugin pages ---------- */
.hx7-strip { background: var(--h7-clay); border-bottom: 1.5px solid var(--h7-ink-12); }
.hx7-strip-row { display: flex; align-items: center; gap: 14px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.hx7-strip-photo img { width: 44px; height: 44px; display: block; }
.hx7-strip p { margin: 0; flex: 1 1 260px; font-size: 15px; }

/* ---------- footer (D2d): ink band with the Built by block and a large wordmark ---------- */
footer.hx-footer { background: var(--h7-ink) !important; color: var(--h7-paper-70) !important; border-top: 0 !important; margin-top: 64px !important; padding-top: 40px !important; }
footer.hx-footer p, footer.hx-footer a { color: var(--h7-paper-70) !important; }
footer.hx-footer a:hover { color: var(--h7-paper) !important; text-decoration: underline; text-decoration-color: var(--h7-signal); }
footer.hx-footer .hx-foot-h, footer.hx-footer h4 { color: var(--h7-clay) !important; }
footer.hx-footer .hx-wordmark { color: var(--h7-paper) !important; }
footer.hx-footer .hx-footer-bottom { border-top-color: rgba(250, 248, 246, .2) !important; color: var(--h7-paper-70) !important; }
.hx7-built { display: flex; gap: 16px; align-items: flex-start; padding: 0 0 28px; margin: 0 0 28px; border-bottom: 1.5px solid rgba(250, 248, 246, .2); }
.hx7-built-photo img { width: 72px; height: 72px; display: block; }
.hx7-built p { margin: 0 0 6px !important; }
.hx7-built-h { color: var(--h7-paper) !important; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.hx7-built-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer.hx-footer .hx7-built-links a { display: inline; margin: 0; color: var(--h7-paper) !important; }
.hx7-giant { font-family: var(--h7-display); font-weight: 800; letter-spacing: -.05em; line-height: .85; font-size: clamp(52px, 14vw, 200px); color: var(--h7-clay) !important; margin: 28px 0 8px !important; white-space: nowrap; overflow: hidden; }

/* ---------- About page (D2a) ---------- */
.hx7-about-grid { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.hx7-about-grid .hx7-cred-photo img { box-shadow: 10px 10px 0 var(--h7-clay); }
.hx7-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--h7-ink); }
.hx7-list li { padding: 12px 0; border-bottom: 1.5px solid var(--h7-ink-12); }
.hx7-list b { font-weight: 800; }
@media (max-width: 760px) { .hx7-about-grid { grid-template-columns: 1fr; } .hx7-about-grid .hx7-cred-photo { max-width: 200px; } }

/* ---------- hub home (the approved sample) ---------- */
.h7-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.h7-hero-grid h1 .h7-not { color: var(--h7-signal); }
@media (max-width: 900px) { .h7-hero-grid { grid-template-columns: 1fr; } }
.h7-demo { margin: 0; width: 100%; max-width: 560px; justify-self: end; }
.h7-demo svg { display: block; width: 100%; height: auto; background: var(--h7-ink); box-shadow: 8px 8px 0 var(--h7-clay); }
.h7-demo text { font-family: var(--h7-mono); white-space: pre; }
.h7-demo figcaption { font-family: var(--h7-mono); font-size: 12.5px; color: var(--h7-ink-70); margin-top: 12px; }
@media (max-width: 900px) { .h7-demo { justify-self: start; } }
.t-line { animation: t-in .5s steps(24, end) both; clip-path: inset(0 100% 0 0); }
.t1 { animation-delay: .2s; } .t2 { animation-delay: .6s; } .t3 { animation-delay: 1.1s; } .t4 { animation-delay: 1.7s; } .t5 { animation-delay: 2.2s; }
.t6 { animation-delay: 2.7s; } .t7 { animation-delay: 3.2s; } .t8 { animation-delay: 3.7s; } .t9 { animation-delay: 4.2s; }
.t-cursor { animation: blink 1s steps(1) 4.8s infinite both; opacity: 0; }
@keyframes t-in { to { clip-path: inset(0 0 0 0); } }
@keyframes blink { 0% { opacity: 1; } 50% { opacity: 0; } }
.h7-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: 28px; }
.h7-col { border-left: 2px solid var(--h7-ox); padding: 2px 0 2px 18px; }
.h7-col h3 { font-size: 21px; margin: 8px 0 6px; }
.h7-col p { margin: 0; color: var(--h7-ink-70); }
@media (max-width: 820px) { .h7-cols { grid-template-columns: 1fr; } }
.h7-proof { background: var(--h7-clay); padding: clamp(40px, 6vw, 72px) 0; margin-top: clamp(40px, 6vw, 72px); }
.h7-proof h2 { font-size: clamp(38px, 7vw, 96px); font-weight: 800; letter-spacing: -.04em; line-height: .95; margin: 0; max-width: 14ch; }
.h7-note { font-family: var(--h7-mono); font-size: 13px; color: var(--h7-ink-70); margin: 18px 0 0; max-width: 72ch; }
.h7-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--h7-ink); margin-top: 32px; }
.h7-stat { padding: 18px 16px 4px 0; }
.h7-stat + .h7-stat { border-left: 1.5px solid rgba(26, 14, 16, .25); padding-left: 16px; }
.h7-stat b { display: block; font-size: clamp(40px, 5.5vw, 72px); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--h7-ox); }
.h7-stat span { display: block; margin-top: 8px; font-size: 15px; color: var(--h7-ink-70); }
@media (max-width: 820px) { .h7-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .h7-stat:nth-child(3) { border-left: 0; padding-left: 0; } }
.h7-fit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; margin-top: 28px; }
.h7-diagram { width: 100%; max-width: 480px; }
.h7-diagram text { font-family: var(--h7-mono); }
.flow { stroke-dasharray: 5 7; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -24; } }
@media (max-width: 900px) { .h7-fit { grid-template-columns: 1fr; } .h7-diagram { margin: 0 auto; } }
.h7-panel dl { margin: 0; display: grid; grid-template-columns: 8em minmax(0, 1fr); gap: 8px 14px; font-size: 16px; }
.h7-panel dt { font-family: var(--h7-mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--h7-ox); padding-top: 3px; }
.h7-panel dd { margin: 0; }
.h7-panel .tag { display: inline-block; background: var(--h7-ink); color: var(--h7-paper); padding: 3px 8px; }
@media (max-width: 420px) { .h7-panel dl { grid-template-columns: 1fr; gap: 2px; } }
.h7-icon { width: 36px; height: 36px; flex: none; }
.h7-icon .st { fill: none; stroke: var(--h7-ox); stroke-width: 2; stroke-linecap: square; }
.h7-icon .fl { fill: var(--h7-signal); }
.h7-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.h7-dev { display: inline-block; background: var(--h7-signal); color: var(--h7-paper); font-family: var(--h7-mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; }

/* ---------- reduced motion: every animated item shows its final state and nothing moves ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .t-line { clip-path: none !important; }
  .t-cursor { opacity: 1 !important; }
}

/* ---------- addendum 1+3 (owner, 11:49 IST) ---------- */
/* Footer: five groups now (brand, site, connectors, Writing, contact) */
.hx-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr !important; }
@media (max-width: 980px) { .hx-footer-grid { grid-template-columns: 1fr 1fr 1fr !important; } }
@media (max-width: 620px) { .hx-footer-grid { grid-template-columns: 1fr 1fr !important; } }
/* Credentials band results: each line word for word */
.hx7-results li { font-size: 15px; line-height: 1.45; }
/* Hub home: the approved draft's headline size, with less empty space above and below */
.hx-hero.h7-home { padding-top: clamp(14px, 2.5vh, 32px) !important; padding-bottom: clamp(20px, 3vh, 36px) !important; }
.hx-hero.h7-home h1 { font-size: clamp(48px, 9.2vw, 136px) !important; line-height: .92 !important; max-width: none; margin: 8px 0 12px !important; }
.hx-hero.h7-home .hx-eyebrow { margin-top: 0 !important; }
.hx7-cred { padding: clamp(24px, 3.5vw, 44px) 0; }
.hx-body > .hx-section:first-child { padding-top: clamp(28px, 4vw, 48px) !important; }
.h7-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .h7-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .h7-cols-4 { grid-template-columns: 1fr; } }

/* Photos keep their square size inside flex rows (the footer photo was squeezed to 25 x 72 px) */
.hx7-built-photo, .hx7-strip-photo, .hx7-cred-photo { flex: none; display: block; }
.hx7-built-photo { width: 72px; height: 72px; }
.hx7-strip-photo { width: 44px; height: 44px; }

/* ---------- independent verifier fixes (run 7, 14:50 IST) ---------- */
/* Tables: words wrap between words, never inside one; the tool name column keeps a readable width (the table box scrolls on its own if needed). */
.hx-table td, .hx-table th { overflow-wrap: break-word; word-break: normal; }
.hx-table td:first-child, .hx-table th:first-child { min-width: 9rem; }
/* GTM Alpha: centred section headings are centred as boxes too; stat labels never split a word. */
.section-header .section-title { margin-left: auto; margin-right: auto; }
.stat-label, .stat-number { overflow-wrap: normal; word-break: normal; }
@media (max-width: 480px) {
  .stats-grid { gap: 8px !important; }
  .stat-item { padding: 16px 6px !important; }
  .stat-label { font-size: 10px !important; letter-spacing: 0 !important; }
}
/* Verifier re-check (15:04 IST): every table (not only .hx-table) keeps whole words and scrolls in its own box on phones; the wordmark never splits a word. */
main table td, main table th { overflow-wrap: break-word; word-break: normal; }
@media (max-width: 600px) { main table { display: block; max-width: 100%; overflow-x: auto; } }
.hx-wordmark { overflow-wrap: normal; word-break: normal; }
/* Re-check 2 (15:15 IST): in auto-width tables Chrome treats break-word as a break point, so cells use normal wrapping
   (the table box scrolls instead) and only links may break; badges never split. */
main table td, main table th, .hx-table td, .hx-table th { overflow-wrap: normal; }
main table td a, .hx-table td a { overflow-wrap: anywhere; }
.free-badge { white-space: nowrap; }
