/* iGaming Marketing Solutions (IMS) — main stylesheet
   Structure: tokens > base > layout > header/nav > buttons > hero > sections > components > footer > utilities */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope Fallback";
  src: local("Arial");
  size-adjust: 104%;
  ascent-override: 97%;
  descent-override: 27%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */
:root {
  --navy: #0B1F3A;
  --navy-2: #102a4c;
  --blue: #174EA6;
  --electric: #3185F5;
  --white: #FFFFFF;
  --slate: #64748B;
  --slate-d: #475569;
  --bg: #F4F7FB;
  --line: #DCE4EF;
  --line-d: rgba(255, 255, 255, .14);
  --ink: #0B1F3A;
  --text: #2B3A50;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(11, 31, 58, .06), 0 6px 18px rgba(11, 31, 58, .06);
  --font: "Manrope", "Manrope Fallback", Arial, "Helvetica Neue", sans-serif;
  --container: 1180px;
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.015em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.35rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem); }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }
ul, ol { padding-left: 1.25rem; margin: 0 0 1.2em; }
li { margin-bottom: .4em; }
:focus-visible { outline: 3px solid var(--electric); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 6px; z-index: 200; text-decoration: none; font-weight: 700; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section--tint { background: var(--bg); }
.section--navy { background: var(--navy); color: #C9D6E8; position: relative; overflow: hidden; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy a { color: #8DBBFF; }
.section--navy a:hover { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p { color: var(--slate-d); font-size: 1.1rem; }
.section--navy .section-head p { color: #B4C4DB; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.section--navy .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: #7DB2FF; }

/* ---------- Header & navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); max-width: 1320px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { display: block; width: 219px; height: 34px; }
.nav-toggle { display: none; align-items: center; gap: 8px; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 9px 14px; font: inherit; font-weight: 700; font-size: .92rem; color: var(--navy); cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-menu { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }
.site-nav { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; margin: 0; display: flex; align-items: center; }
.nav-link { display: inline-block; padding: 10px 7px; font-size: .88rem; font-weight: 700; color: var(--navy); text-decoration: none; border-radius: 6px; white-space: nowrap; }
.nav-link:hover, .nav-item.current > .nav-link { color: var(--blue); }
.nav-item.current > .nav-link { box-shadow: inset 0 -2px 0 var(--electric); border-radius: 0; }
.nav-home svg { width: 18px; height: 18px; display: block; }
.nav-home .nav-link { padding: 10px 8px; }
.sub-toggle { background: none; border: 0; padding: 8px 6px 8px 0; margin-left: -6px; cursor: pointer; color: var(--slate); display: flex; align-items: center; border-radius: 6px; }
.sub-toggle svg { width: 14px; height: 14px; transition: transform .15s ease; }
.sub-toggle:hover { color: var(--blue); }
.sub { position: absolute; top: 100%; left: -12px; min-width: 262px; margin: 0; padding: 8px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(11, 31, 58, .14); display: none; z-index: 20; }
.sub li { margin: 0; }
.sub a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--navy); text-decoration: none; font-size: .92rem; font-weight: 600; line-height: 1.35; }
.sub a:hover, .sub a:focus-visible { background: var(--bg); color: var(--blue); }
.sub a[aria-current="page"] { color: var(--blue); background: var(--bg); }
.sub .sub-all a { font-weight: 800; color: var(--blue); border-bottom: 1px solid var(--line); border-radius: 8px 8px 0 0; margin-bottom: 4px; }
.has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.open > .sub { display: block; }
.has-sub:hover .sub-toggle svg, .has-sub.open .sub-toggle svg { transform: rotate(180deg); }
.nav-item--end .sub { left: auto; right: -12px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 8px; font: inherit; font-size: .95rem; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.2; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--navy); color: #fff; }
.btn--secondary { background: transparent; color: var(--navy); border-color: #B7C5DA; }
.btn--secondary:hover { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: #E4EEFF; color: var(--navy); }
.btn--ghost-light { color: #fff; border-color: rgba(255, 255, 255, .4); background: transparent; }
.btn--ghost-light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }
.btn--sm { padding: 10px 16px; font-size: .875rem; }
.nav-cta { flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Home hero ---------- */
.hero { background: linear-gradient(180deg, var(--bg) 0%, #fff 100%); padding: clamp(48px, 6vw, 88px) 0 clamp(40px, 5vw, 72px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 48px; align-items: center; }
.hero .eyebrow { color: var(--blue); }
.hero h1 { margin-bottom: 20px; }
.hero .lede { font-size: 1.15rem; color: var(--text); max-width: 600px; }
.hero .lede-2 { font-size: 1rem; color: var(--slate-d); max-width: 600px; }
.hero-visual { display: block; width: 100%; max-width: 540px; margin-left: auto; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 22px 0 0; margin: 28px 0 0; border-top: 1px solid var(--line); max-width: 600px; }
.hero-tags li { margin: 0; font-size: .85rem; font-weight: 700; color: var(--slate-d); display: flex; align-items: center; gap: 8px; }
.hero-tags li::before { content: ""; width: 7px; height: 7px; background: var(--electric); border-radius: 2px; }

/* ---------- Inner page hero ---------- */
.page-hero { background: var(--navy) url("../images/network.svg") no-repeat right -80px center / auto 130%; color: #C9D6E8; padding: clamp(40px, 5vw, 72px) 0 clamp(44px, 5vw, 76px); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: linear-gradient(90deg, var(--electric), var(--blue) 60%, transparent); }
.page-hero h1 { color: #fff; max-width: 860px; margin-bottom: 18px; }
.page-hero .lede { font-size: 1.15rem; max-width: 720px; color: #C9D6E8; margin: 0; }
.page-hero .btn-row { margin-top: 28px; }
.page-hero .hero-meta { margin-top: 18px; font-size: .9rem; color: #9FB3CE; }
.breadcrumbs { margin-bottom: 26px; font-size: .85rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; padding: 0; margin: 0; }
.breadcrumbs li { margin: 0; display: flex; align-items: center; color: #9FB3CE; }
.breadcrumbs li + li::before { content: "/"; margin: 0 9px; color: #5F7799; }
.breadcrumbs a { color: #C9D6E8; text-decoration: none; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }
.breadcrumbs [aria-current] { color: #fff; font-weight: 600; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; position: relative; }
.section--tint .card { border-color: #DCE4EF; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--slate-d); font-size: .98rem; margin-bottom: 0; }
a.card { text-decoration: none; color: inherit; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
a.card:hover { border-color: var(--electric); box-shadow: var(--shadow); transform: translateY(-2px); }
a.card .more { margin-top: auto; padding-top: 18px; font-weight: 800; font-size: .9rem; color: var(--blue); display: inline-flex; align-items: center; gap: 6px; }
a.card .more svg { width: 15px; height: 15px; transition: transform .15s ease; }
a.card:hover .more svg { transform: translateX(3px); }
.icon-badge { width: 46px; height: 46px; border-radius: 12px; background: #E6EFFD; color: var(--blue); display: grid; place-items: center; margin-bottom: 20px; }
.icon-badge svg { width: 24px; height: 24px; }

/* Home: six divisions (bento) */
.divisions { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; }
.division { grid-column: span 2; min-height: 260px; }
.division:nth-child(1), .division:nth-child(4) { grid-column: span 4; }
.division:nth-child(5), .division:nth-child(6) { grid-column: span 3; }
.division .num { font-size: .8rem; font-weight: 800; letter-spacing: .1em; color: var(--slate); margin-bottom: 18px; display: flex; justify-content: space-between; align-items: center; }
.division--navy { background: var(--navy); border-color: var(--navy); }
.division--navy h3 { color: #fff; }
.division--navy p { color: #B4C4DB; }
.division--navy .num { color: #7DB2FF; }
.division--navy .icon-badge { background: rgba(255, 255, 255, .1); color: #7DB2FF; }
a.division--navy .more { color: #8DBBFF; }
a.division--navy:hover { border-color: var(--electric); }
.division--blue { background: #EAF2FF; border-color: #CFE0FB; }
.division--blue .icon-badge { background: #fff; }
.division--line { border-top: 4px solid var(--electric); }

/* Audience rows */
.audience-list { border-top: 1px solid var(--line); }
.audience { display: grid; grid-template-columns: 56px minmax(0, 300px) minmax(0, 1fr); gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: start; }
.audience .icon-badge { margin: 0; }
.audience h3 { margin: 0; padding-top: 8px; }
.audience p { margin: 0 0 8px; color: var(--slate-d); }
.audience p:last-child { margin-bottom: 0; }

/* Integrated capabilities */
.integrate { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.pillars { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border: 1px solid var(--line-d); border-radius: var(--radius-lg); overflow: hidden; }
.pillars li { margin: 0; padding: 22px 24px; border-bottom: 1px solid var(--line-d); display: grid; grid-template-columns: 40px 1fr; gap: 16px; background: rgba(255, 255, 255, .03); }
.pillars li:last-child { border-bottom: 0; }
.pillars .icon-badge { margin: 0; width: 40px; height: 40px; background: rgba(125, 178, 255, .15); color: #7DB2FF; }
.pillars h3 { font-size: 1.05rem; margin-bottom: 4px; }
.pillars p { margin: 0; font-size: .95rem; color: #B4C4DB; }

/* Split feature (technology, brokerage) */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split--rev .split-media { order: -1; }
.split-media { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; }
.chips li { margin: 0; padding: 7px 14px; border: 1px solid #C3D3EA; border-radius: 999px; font-size: .85rem; font-weight: 700; color: var(--blue); background: #fff; }
.mock { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.mock-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #F9FBFE; }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: #CBD7E7; }
.mock-body { padding: 18px; display: grid; gap: 10px; font-size: .85rem; }
.mock-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.mock-row b { color: var(--navy); font-weight: 700; }
.mock-row span { color: var(--slate); }
.mock-row em { font-style: normal; font-size: .75rem; font-weight: 800; color: var(--blue); background: #E6EFFD; padding: 3px 9px; border-radius: 999px; }
.mock-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--electric); }

/* Brokerage two-sided */
.sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.side { padding: 32px; }
.side + .side { border-left: 1px solid var(--line); background: var(--bg); }
.side h3 { display: flex; align-items: center; gap: 10px; }
.side h3 small { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); background: #E6EFFD; padding: 3px 9px; border-radius: 999px; font-weight: 800; }

/* ---------- Content blocks (inner pages) ---------- */
.block { padding: clamp(44px, 5vw, 72px) 0; }
.block:nth-of-type(even) { background: var(--bg); }
.block-head { max-width: 760px; margin-bottom: 32px; }
.block-head p { color: var(--slate-d); font-size: 1.08rem; margin: 0; }
.prose { max-width: 760px; }
.prose p { font-size: 1.06rem; }
.prose-wrap { display: grid; grid-template-columns: minmax(0, 760px) minmax(0, 1fr); gap: 56px; align-items: start; }
.aside { border-left: 4px solid var(--electric); background: #fff; padding: 20px 22px; border-radius: 0 var(--radius) var(--radius) 0; font-size: .95rem; box-shadow: var(--shadow); }
.block:nth-of-type(even) .aside { background: #fff; }
.aside strong { display: block; color: var(--navy); margin-bottom: 6px; }
.aside p { margin: 0; color: var(--slate-d); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 40px; }
.checklist li { margin: 0; padding: 14px 0 14px 34px; border-bottom: 1px solid var(--line); position: relative; font-weight: 600; color: var(--navy); font-size: 1rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 19px; width: 20px; height: 20px; border-radius: 6px; background: #E6EFFD url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23174EA6' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.checklist--plain { grid-template-columns: 1fr; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.steps li { counter-increment: step; margin: 0; padding: 24px 0 24px 72px; border-bottom: 1px solid var(--line); position: relative; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 22px; font-size: 1.5rem; font-weight: 800; color: var(--electric); letter-spacing: -0.02em; }
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; color: var(--slate-d); max-width: 720px; }
.rows { margin: 0; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 32px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.row dt { font-weight: 800; color: var(--navy); font-size: 1.05rem; line-height: 1.35; }
.row dd { margin: 0; color: var(--slate-d); }
.compare { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.compare-col { padding: 28px; }
.compare-col + .compare-col { border-left: 1px solid var(--line); }
.compare-col h3 { padding-bottom: 12px; margin-bottom: 14px; border-bottom: 3px solid var(--electric); display: inline-block; }
.compare-col p { color: var(--slate-d); font-size: .98rem; }
.compare-col ul { font-size: .96rem; color: var(--slate-d); padding-left: 1.1rem; margin: 0; }
.notice { border: 1px solid #C3D3EA; background: #F0F6FF; border-radius: var(--radius-lg); padding: 24px 28px; display: grid; grid-template-columns: 28px 1fr; gap: 16px; }
.notice svg { width: 26px; height: 26px; color: var(--blue); margin-top: 2px; }
.notice h2, .notice h3 { font-size: 1.05rem; margin-bottom: 6px; }
.notice p { margin: 0; font-size: .97rem; color: var(--text); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 40px 20px 0; font-weight: 700; color: var(--navy); font-size: 1.05rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 1.6rem; font-weight: 400; color: var(--blue); line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq .faq-a { padding: 0 0 22px; max-width: 760px; color: var(--slate-d); }
.faq .faq-a p:last-child { margin-bottom: 0; }

/* Related links */
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.related a { display: block; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; color: inherit; transition: border-color .15s ease; }
.related a:hover { border-color: var(--electric); }
.related strong { display: block; color: var(--navy); font-size: 1rem; margin-bottom: 4px; }
.related span { font-size: .9rem; color: var(--slate-d); line-height: 1.5; display: block; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy) url("../images/network.svg") no-repeat right -120px center / auto 150%; padding: clamp(52px, 6vw, 84px) 0; color: #C9D6E8; position: relative; overflow: hidden; }
.cta-band .inner { max-width: 760px; }
.cta-band h2 { color: #fff; }
.cta-band p { font-size: 1.1rem; margin-bottom: 0; }
.cta-band .compliance { font-size: .85rem; color: #9FB3CE; margin-top: 20px; }

/* ---------- Articles & insights ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) 280px; gap: 64px; justify-content: space-between; padding: clamp(40px, 5vw, 64px) 0; }
.article-body h2 { margin-top: 1.7em; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem); }
.article-body h2:first-child { margin-top: 0; }
.article-body p, .article-body li { font-size: 1.08rem; }
.article-body ul, .article-body ol { margin-bottom: 1.3em; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; border-left: 1px solid var(--line); padding-left: 22px; font-size: .92rem; }
.toc h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); margin-bottom: 12px; }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li { margin-bottom: 10px; line-height: 1.4; }
.toc a { text-decoration: none; color: var(--slate-d); font-weight: 600; }
.toc a:hover { color: var(--blue); }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 20px; font-size: .88rem; color: #9FB3CE; }
.tag { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); background: #E6EFFD; padding: 4px 10px; border-radius: 999px; }
.page-hero .tag { background: rgba(125, 178, 255, .16); color: #A9CBFF; }
.post-card { padding: 26px; }
.post-card .tag { align-self: flex-start; margin-bottom: 16px; }
.post-card h3 { font-size: 1.12rem; }
.post-card .meta { margin-top: auto; padding-top: 16px; font-size: .82rem; color: var(--slate); }
.post-card--lead { grid-column: span 2; background: var(--navy); border-color: var(--navy); }
.post-card--lead h3 { color: #fff; font-size: 1.5rem; }
.post-card--lead p { color: #B4C4DB; }
.post-card--lead .tag { background: rgba(125, 178, 255, .16); color: #A9CBFF; }
.post-card--lead .meta { color: #9FB3CE; }

/* ---------- Contact ---------- */
.enquiry-types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.enquiry-types .card { padding: 22px; }
.enquiry-types h3 { font-size: 1rem; }
.enquiry-types p { font-size: .9rem; }
.form-shell { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); min-height: 1012px; }
.form-shell iframe { display: block; min-height: 980px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 48px; align-items: start; }
.contact-side h2 { font-size: 1.5rem; }
.contact-side ul { list-style: none; padding: 0; }
.contact-side li { padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; font-size: .97rem; }

/* ---------- Legal ---------- */
.legal-body h2 { font-size: 1.45rem; margin-top: 2em; }
.legal-body h2:first-child { margin-top: 0; }
.placeholder { background: #FFF6D6; border-bottom: 1px dashed #B58900; padding: 0 4px; border-radius: 3px; font-weight: 600; color: #6B5200; }

/* ---------- HTML sitemap ---------- */
.sitemap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.sitemap-grid h2 { font-size: 1.15rem; padding-bottom: 10px; border-bottom: 2px solid var(--electric); }
.sitemap-grid ul { list-style: none; padding: 0; margin: 0; }
.sitemap-grid li { margin-bottom: 10px; line-height: 1.4; }
.sitemap-grid li ul { margin: 8px 0 4px 16px; padding-left: 14px; border-left: 1px solid var(--line); }
.sitemap-grid li li { font-size: .95rem; }
.sitemap-grid span { display: block; font-size: .85rem; color: var(--slate); }

/* ---------- 404 ---------- */
.nf-code { font-size: clamp(5rem, 14vw, 9rem); font-weight: 800; color: var(--electric); line-height: 1; letter-spacing: -0.05em; margin: 0 0 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #AFC0D8; padding: 64px 0 28px; font-size: .93rem; }
.site-footer a { color: #D4E0F2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(5, minmax(0, 1fr)); gap: 32px; padding-bottom: 44px; border-bottom: 1px solid var(--line-d); }
.footer-brand img { display: block; background: #fff; padding: 10px 14px; border-radius: 10px; width: 232px; height: auto; margin-bottom: 18px; }
.footer-brand p { margin: 0 0 14px; line-height: 1.6; }
.footer-col h2 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 16px; font-weight: 800; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; line-height: 1.4; }
.footer-col + .footer-col--stack { margin-top: 0; }
.footer-mid { padding: 24px 0; border-bottom: 1px solid var(--line-d); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.footer-mid ul { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0; }
.footer-mid li { margin: 0; }
.footer-legal { padding-top: 24px; font-size: .84rem; color: #8FA3C0; max-width: 900px; }
.footer-legal p { margin-bottom: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 1340px) {
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(11, 31, 58, .12); padding: 12px 24px 24px; flex-direction: column; align-items: stretch; gap: 12px; max-height: calc(100vh - var(--header-h)); overflow-y: auto; margin-left: 0; }
  .nav-open .site-nav { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-link { flex: 1; padding: 15px 4px; font-size: 1rem; }
  .nav-item.current > .nav-link { box-shadow: none; }
  .nav-home .nav-link { padding: 15px 4px; }
  .nav-home svg { display: none; }
  .nav-home .nav-link::after { content: "Home"; font-size: 1rem; }
  .sub-toggle { padding: 14px 10px; margin: 0; border-left: 1px solid var(--line); }
  .sub-toggle svg { width: 18px; height: 18px; }
  .sub { position: static; display: none; width: 100%; box-shadow: none; border: 0; border-radius: 0; padding: 0 0 12px 12px; min-width: 0; background: transparent; }
  .has-sub:hover > .sub, .has-sub:focus-within > .sub { display: none; }
  .has-sub.open > .sub { display: block; }
  .has-sub:hover .sub-toggle svg { transform: none; }
  .has-sub.open .sub-toggle svg { transform: rotate(180deg); }
  .sub a { padding: 11px 12px; }
  .nav-cta { align-self: flex-start; }
  .no-js .site-nav { display: flex; position: static; box-shadow: none; padding: 0; max-height: none; }
  .no-js .nav-toggle { display: none; }
  .no-js .site-header .container { flex-wrap: wrap; padding-bottom: 12px; }
  .no-js .sub { display: block; }
  .no-js .sub-toggle { display: none; }
}
@media (max-width: 1000px) {
  .hero-grid, .integrate, .split, .contact-grid, .article-layout, .prose-wrap { grid-template-columns: 1fr; gap: 36px; }
  .split--rev .split-media { order: 0; }
  .hero-visual { max-width: 460px; margin: 0 auto; }
  .grid--3, .related, .sitemap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4, .enquiry-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .divisions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .division, .division:nth-child(n) { grid-column: span 1; min-height: 0; }
  .audience { grid-template-columns: 56px 1fr; }
  .audience > div:last-child { grid-column: 2; }
  .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .toc { position: static; border-left: 0; padding: 0 0 8px; order: -1; }
  .page-hero { background-size: auto 100%; background-position: right -200px center; }
}
@media (max-width: 680px) {
  body { font-size: 1rem; }
  .container { padding: 0 20px; }
  .brand img { width: 196px; height: 30px; }
  .grid--2, .grid--3, .grid--4, .related, .sitemap-grid, .enquiry-types, .checklist, .divisions, .sides, .compare { grid-template-columns: 1fr; }
  .compare-col + .compare-col, .side + .side { border-left: 0; border-top: 1px solid var(--line); }
  .row { grid-template-columns: 1fr; gap: 6px; }
  .post-card--lead { grid-column: span 1; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .btn-row .btn { width: 100%; }
  .audience { grid-template-columns: 1fr; gap: 12px; }
  .audience > div:last-child { grid-column: 1; }
  .steps li { padding-left: 52px; }
  .page-hero, .cta-band { background-image: none; }
  .form-shell { padding: 8px; }
  .nav-cta { align-self: stretch; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  a.card:hover { transform: none; }
}
@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle { display: none; }
}
