/* =========================================================================
   WE Consult IT v2: Practice design system (Round 3, Direction 2).
   Light ground, ink and copper, Instrument Sans for reading, IBM Plex Mono
   only for technical labels. Derived from round-3/d2-practice/css/style.css
   and extended for WordPress output (blocks, forms, lists, pagination).
   ========================================================================= */

@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ink: #15222b;
  --ink-2: #23333e;
  --copper: #9c4724;      /* 6.3:1 on white, 5.7:1 on mist; links, rules, small marks */
  --copper-bright: #d27a50; /* on ink only: 5.1:1 */
  --copper-tint: #f7ece5;
  --white: #ffffff;
  --mist: #f3f5f4;
  --line: #d8dddc;
  --text: #1d2a33;
  --muted: #52606a;       /* 6.5:1 on white */
  --on-ink: #c3ccd1;      /* 9.9:1 on ink */

  --sans: "Instrument Sans", "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --wrap: 1180px;
  --gutter: clamp(1rem, 3vw, 2rem);
  --section: clamp(3rem, 5vw, 4.75rem);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--text); font: 400 1.0625rem/1.62 var(--sans); overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 600; line-height: 1.15; letter-spacing: -0.012em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; padding: .75rem 1rem; background: var(--ink); color: var(--white); }
.skip:focus { left: 1rem; top: 1rem; }

.mono { font-family: var(--mono); font-size: .8125rem; letter-spacing: 0; }
.eyebrow { margin: 0 0 .9rem; font: 500 .75rem/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--copper); }
.on-ink .eyebrow { color: var(--copper-bright); }
.illus { display: inline-block; padding: 1px 7px; border: 1px dashed var(--muted); border-radius: 2px; font: 500 .6875rem/1.5 var(--mono); text-transform: uppercase; color: var(--muted); }

.btn { display: inline-flex; align-items: center; gap: .5rem; min-height: 46px; padding: 0 1.2rem; border: 0; border-radius: var(--radius); background: var(--ink); color: var(--white); font: 600 .9688rem var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--ink-2); }
.btn--copper { background: var(--copper); }
.btn--copper:hover { background: #87391b; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:hover { background: var(--mist); }
.link { color: var(--copper); font-weight: 600; text-decoration: none; }
.link::after { content: " \2192"; }
.link:hover { text-decoration: underline; }

/* ---------- utility bar + header ---------- */
.utility { background: var(--ink); color: var(--on-ink); font-size: .8125rem; }
.utility .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1.5rem; padding-top: .45rem; padding-bottom: .45rem; }
.utility a { color: var(--white); }
.utility .urgent { color: var(--white); font-weight: 600; text-decoration: none; }
.utility .urgent::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: .5rem; border-radius: 50%; background: var(--copper-bright); }
.utility .urgent:hover { text-decoration: underline; }
.utility nav { display: flex; gap: 1.25rem; }

.site-header { position: sticky; top: 0; z-index: 30; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; gap: 1.5rem; height: 70px; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; }
.brand .logo { height: 34px; width: auto; max-width: none; }
.brand-name { padding-left: .7rem; border-left: 1px solid var(--line); font-size: .9375rem; font-weight: 600; line-height: 1.2; }
.brand-name small { display: block; font-weight: 400; font-size: .75rem; color: var(--muted); }
.nav { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.nav > a, .nav-item > a { display: inline-flex; align-items: center; height: 70px; padding: 0 .85rem; color: var(--ink); font: 500 .9688rem var(--sans); text-decoration: none; }
.nav-item { display: inline-flex; align-items: center; }
.nav-item > a { padding-right: .2rem; }
.nav-toggle { position: relative; width: 32px; height: 44px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
.nav-toggle::after { content: ""; position: absolute; left: 11px; top: 17px; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"]::after { top: 21px; transform: rotate(-135deg); }
.nav > a:hover, .nav-item > a:hover, .nav-toggle:hover { color: var(--copper); }
.nav [aria-current="page"] { box-shadow: inset 0 -3px 0 var(--copper); }
.nav-item:has(.nav-toggle[aria-expanded="true"]) > a { box-shadow: inset 0 -3px 0 var(--copper); }
.header-cta { margin-left: .5rem; white-space: nowrap; }
.nav > a, .nav-item > a { white-space: nowrap; }
.menu-btn { display: none; margin-left: auto; min-height: 44px; padding: 0 1rem; border: 1.5px solid var(--ink); border-radius: var(--radius); background: none; color: var(--ink); font: 600 .9375rem var(--sans); cursor: pointer; }

/* mega panel: both axes side by side */
.mega { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -24px rgba(21, 34, 43, .35); }
.mega.is-open { display: block; }
.mega .wrap { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 2.5rem; padding-top: 1.75rem; padding-bottom: 2rem; }
.mega h2 { margin-bottom: .75rem; font: 500 .75rem var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.mega-caps { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem 2rem; }
.mega-caps a, .mega-eng a { display: block; padding: .55rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.mega-caps a b, .mega-eng a b { display: block; font-weight: 600; color: var(--ink); }
.mega-caps a span, .mega-eng a span { font-size: .8438rem; color: var(--muted); }
.mega-caps a:hover b, .mega-eng a:hover b { color: var(--copper); }
.mega-eng { padding-left: 2rem; border-left: 1px solid var(--line); }

.menu-panel { display: none; }
@media (max-width: 1180px) { .brand-name { display: none; } }
@media (max-width: 860px) {
  .nav, .header-cta, .utility nav { display: none; }
  .menu-btn { display: block; }
  .site-header .bar { height: 60px; }
  .menu-panel { position: fixed; inset: 60px 0 0 0; z-index: 40; overflow-y: auto; padding: 1rem var(--gutter) 2rem; background: var(--white); }
  .menu-panel.is-open { display: block; }
  .menu-panel h2 { margin: 1.25rem 0 .25rem; font: 500 .75rem var(--mono); text-transform: uppercase; color: var(--muted); }
  .menu-panel a { display: block; padding: .7rem 0; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink); text-decoration: none; }
  .menu-panel .btn { display: flex; justify-content: center; margin-top: 1.25rem; color: var(--white); border: 0; }
}

/* ---------- hero ---------- */
.hero { border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4.5rem); padding-top: clamp(2.5rem, 5vw, 4.25rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.hero h1 { margin-bottom: 1.1rem; font-size: clamp(2rem, 1.4rem + 1.9vw, 2.875rem); font-weight: 600; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--copper); }
.lead { max-width: 34em; margin-bottom: 1.75rem; font-size: 1.1875rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.reasons { align-self: center; padding: 1.5rem; border-radius: var(--radius); background: var(--mist); }
.reasons h2 { margin-bottom: .5rem; font-size: 1rem; }
.reasons a { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: baseline; padding: .75rem 0; border-top: 1px solid var(--line); text-decoration: none; }
.reasons a::after { content: "\2192"; color: var(--copper); }
.reasons a:hover span { color: var(--copper); }
.reasons small { display: block; font: 500 .6875rem var(--mono); text-transform: uppercase; color: var(--muted); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }

.facts-band { background: var(--ink); color: var(--on-ink); }
.facts-band ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts-band li { padding: 1.1rem 1.25rem 1.1rem 0; font-size: .9063rem; line-height: 1.4; }
.facts-band li + li { padding-left: 1.25rem; border-left: 1px solid #34454f; }
.facts-band b { display: block; color: var(--white); font-size: 1rem; }
@media (max-width: 860px) { .facts-band ul { grid-template-columns: 1fr 1fr; } .facts-band li:nth-child(3) { border-left: 0; padding-left: 0; } }
@media (max-width: 480px) { .facts-band ul { grid-template-columns: 1fr; } .facts-band li + li { border-left: 0; padding-left: 0; border-top: 1px solid #34454f; } }

/* ---------- sections ---------- */
.section { padding: var(--section) 0; }
.section--mist { background: var(--mist); }
.section--ink { background: var(--ink); color: var(--on-ink); }
.section--ink h2, .section--ink h3 { color: var(--white); }
.sh { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 3rem; margin-bottom: 2rem; }
.sh h2 { font-size: clamp(1.625rem, 1.25rem + 1.1vw, 2.25rem); }
.sh p { max-width: 36em; margin: .6rem 0 0; color: var(--muted); }
.section--ink .sh p { color: var(--on-ink); }

/* ---------- capability explorer (tabs) ---------- */
.explorer { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.explorer [role="tablist"] { display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--mist); }
.explorer [role="tab"] { display: grid; grid-template-columns: 2.25rem 1fr; align-items: baseline; padding: 1rem 1.25rem; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); font: 600 1rem var(--sans); text-align: left; cursor: pointer; }
.explorer [role="tab"] span { font: 500 .75rem var(--mono); color: var(--muted); }
.explorer [role="tab"][aria-selected="true"] { background: var(--white); box-shadow: inset 3px 0 0 var(--copper); margin-right: -1px; }
.explorer [role="tab"]:hover { color: var(--copper); }
.explorer [role="tabpanel"] { padding: clamp(1.25rem, 3vw, 2.25rem); }
.explorer [role="tabpanel"][hidden] { display: none; }
.explorer h3 { margin-bottom: .6rem; font-size: 1.5rem; }
.explorer .summary { color: var(--muted); max-width: 38em; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; margin: 1.25rem 0; }
.two-col li { padding: .45rem 0 .45rem 1rem; border-bottom: 1px solid var(--line); position: relative; font-size: .9688rem; }
.two-col li::before { content: ""; position: absolute; left: 0; top: 1rem; width: 5px; height: 5px; background: var(--copper); }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: .4rem 0 1.25rem; }
.tags li { padding: .2rem .55rem; border: 1px solid var(--line); border-radius: 3px; background: var(--mist); font: 400 .8125rem var(--mono); color: var(--ink); }
.kv { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: baseline; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .9375rem; }
.kv .mono { color: var(--muted); }
@media (max-width: 860px) {
  .explorer { grid-template-columns: minmax(0, 1fr); }
  .explorer [role="tablist"] { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .explorer [role="tab"] { flex: 0 0 auto; display: block; border-bottom: 0; border-right: 1px solid var(--line); white-space: nowrap; }
  .explorer [role="tab"] span { display: none; }
  .explorer [role="tab"][aria-selected="true"] { box-shadow: inset 0 -3px 0 var(--copper); margin: 0; }
  .two-col { grid-template-columns: 1fr; }
}

/* ---------- engagement lanes ---------- */
.lanes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid #34454f; }
.lanes li { padding: 1.25rem 1.1rem 0 0; }
.lanes li + li { padding-left: 1.1rem; border-left: 1px solid #34454f; }
.lanes .n { font: 500 .75rem var(--mono); color: var(--copper-bright); }
.lanes h3 { margin: .35rem 0 .5rem; font-size: 1.125rem; }
.lanes p { margin: 0 0 .75rem; font-size: .9063rem; }
.lanes a { color: var(--white); font-weight: 600; font-size: .9063rem; }
.lanes .quiet h3 { color: var(--on-ink); }
@media (max-width: 960px) { .lanes { grid-template-columns: 1fr 1fr; } .lanes li { padding-bottom: 1.25rem; } .lanes li:nth-child(odd) { border-left: 0; padding-left: 0; } }
@media (max-width: 560px) { .lanes { grid-template-columns: 1fr; } .lanes li + li { border-left: 0; padding-left: 0; border-top: 1px solid #34454f; } }

/* ---------- starting points (fixed scope) ---------- */
.table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.table th, .table td { padding: .85rem 1rem .85rem 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table thead th { border-bottom: 1.5px solid var(--ink); font: 500 .75rem var(--mono); letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.table tbody th { font-weight: 600; color: var(--ink); }
.table td.mono { white-space: nowrap; }
.table-wrap { overflow-x: auto; }

/* ---------- posts ---------- */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.post-card { display: block; padding-top: 1rem; border-top: 2px solid var(--ink); text-decoration: none; }
.post-card .mono { color: var(--muted); }
.post-card h3 { margin: .5rem 0 .4rem; font-size: 1.1875rem; }
.post-card:hover h3 { color: var(--copper); }
.post-card p { margin: 0; font-size: .9375rem; color: var(--muted); }
@media (max-width: 860px) { .posts { grid-template-columns: 1fr; gap: 1.25rem; } }

/* ---------- contact band ---------- */
.cta-band { padding: var(--section) 0; background: var(--copper-tint); }
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.cta-band h2 { margin-bottom: .75rem; font-size: clamp(1.75rem, 1.3rem + 1.3vw, 2.375rem); }
.routes a { display: grid; grid-template-columns: 1fr auto; gap: .1rem 1rem; padding: 1rem 1.25rem; margin-bottom: .5rem; border-radius: var(--radius); background: var(--white); text-decoration: none; box-shadow: 0 0 0 1px var(--line); }
.routes a:hover { box-shadow: 0 0 0 2px var(--copper); }
.routes b { color: var(--ink); }
.routes span { grid-column: 1; font-size: .9063rem; color: var(--muted); }
.routes a::after { content: "\2192"; grid-row: 1 / span 2; grid-column: 2; align-self: center; color: var(--copper); font-weight: 700; }
@media (max-width: 860px) { .cta-band .wrap { grid-template-columns: minmax(0, 1fr); } }

/* ---------- inner pages ---------- */
.page-hero { background: var(--mist); border-bottom: 1px solid var(--line); }
.page-hero .wrap { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(2rem, 5vw, 4rem); padding-top: clamp(1.75rem, 4vw, 2.75rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.crumbs { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1.25rem; font: 400 .8125rem var(--mono); color: var(--muted); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: .35rem; }
.page-hero h1 { margin-bottom: .8rem; font-size: clamp(1.875rem, 1.35rem + 1.6vw, 2.625rem); letter-spacing: -0.02em; }
.page-hero .lead { margin-bottom: 0; }
.glance { align-self: end; padding: 1.25rem; border-radius: var(--radius); background: var(--white); box-shadow: 0 0 0 1px var(--line); font-size: .9063rem; }
.glance h2 { margin-bottom: .5rem; font: 500 .75rem var(--mono); text-transform: uppercase; color: var(--muted); }
.glance dl { margin: 0; }
.glance dt { margin-top: .6rem; font-weight: 600; color: var(--ink); }
.glance dd { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .page-hero .wrap { grid-template-columns: minmax(0, 1fr); } }

.subnav { position: sticky; top: 70px; z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 1.5rem; overflow-x: auto; scrollbar-width: none; }
.subnav a { flex: 0 0 auto; padding: .85rem 0; font-size: .9063rem; font-weight: 500; color: var(--muted); text-decoration: none; }
.subnav a:hover { color: var(--copper); box-shadow: inset 0 -2px 0 var(--copper); }
@media (max-width: 860px) { .subnav { top: 60px; } }

.body { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(2rem, 5vw, 4rem); padding-top: var(--section); padding-bottom: var(--section); }
.defs { margin: 1rem 0 0; }
.defs div { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 1.5rem; padding: .8rem 0; border-top: 1px solid var(--line); }
.defs dt { font-weight: 600; color: var(--ink); }
.defs dd { margin: 0; color: var(--muted); }
@media (max-width: 600px) { .defs div { grid-template-columns: 1fr; gap: .15rem; } }
.side { position: sticky; top: 140px; align-self: start; }
.side .box { padding: 1.25rem; margin-bottom: 1rem; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); font-size: .9375rem; }
.side .box h2 { margin-bottom: .6rem; font-size: 1rem; }
.side .box a { display: block; padding: .3rem 0; }
.side .box--ink { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.side .box--ink h2 { color: var(--white); }
@media (max-width: 860px) { .body { grid-template-columns: minmax(0, 1fr); } .side { position: static; } }

.case { margin: 1.25rem 0; padding: 1.25rem 1.4rem; border-radius: var(--radius); background: var(--mist); }
.case h3 { margin: .6rem 0 .5rem; }
.case dl { display: grid; grid-template-columns: 7.5rem 1fr; gap: .35rem 1rem; margin: 0; font-size: .9375rem; }
.case dt { font: 500 .75rem/1.9 var(--mono); text-transform: uppercase; color: var(--muted); }
.case dd { margin: 0; }
@media (max-width: 520px) { .case dl { grid-template-columns: 1fr; } }

.eng-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.eng-links a { display: block; padding: 1rem; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); text-decoration: none; }
.eng-links a:hover { box-shadow: 0 0 0 2px var(--copper); }
.eng-links b { display: block; color: var(--ink); }
.eng-links span { font-size: .875rem; color: var(--muted); }
@media (max-width: 700px) { .eng-links { grid-template-columns: 1fr; } }

/* engagement sheet (consultancy page) */
.sheet { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.5rem, 4vw, 3rem); padding: 2.25rem 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.sheet .n { font: 500 .8125rem var(--mono); color: var(--copper); }
.sheet h2 { margin: .3rem 0 .6rem; font-size: clamp(1.375rem, 1.15rem + .7vw, 1.75rem); }
.sheet .summary { color: var(--muted); }
@media (max-width: 800px) { .sheet { grid-template-columns: minmax(0, 1fr); } }
.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 1.5rem 0; counter-reset: f; }
.flow li { position: relative; padding: 2.1rem .75rem 0 0; font-size: .875rem; }
.flow li::before { counter-increment: f; content: counter(f, decimal-leading-zero); position: absolute; top: 0; left: 0; font: 500 .75rem var(--mono); color: var(--copper); }
.flow li::after { content: ""; position: absolute; top: 1.35rem; left: 0; right: 0; height: 2px; background: var(--line); }
.flow li:first-child::after { background: var(--copper); }
.flow b { display: block; color: var(--ink); }
@media (max-width: 700px) { .flow { grid-template-columns: 1fr; } .flow li { padding: 0 0 .75rem 2.5rem; } .flow li::after { display: none; } }

/* ---------- insights ---------- */
.ins { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(2rem, 4vw, 3.5rem); }
.filters { position: sticky; top: 100px; align-self: start; }
.filters h2 { margin-bottom: .5rem; font: 500 .75rem var(--mono); text-transform: uppercase; color: var(--muted); }
.filters button { display: block; width: 100%; padding: .5rem .75rem; margin-bottom: 2px; border: 0; border-radius: 3px; background: none; color: var(--ink); font: 500 .9375rem var(--sans); text-align: left; cursor: pointer; }
.filters button:hover { background: var(--mist); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.filter-status { margin: 0 0 .75rem; font: 400 .8125rem var(--mono); color: var(--muted); }
.list li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) 12rem; gap: 1rem; align-items: baseline; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.list time, .list .topic { font: 400 .8125rem var(--mono); color: var(--muted); }
.list a { font-weight: 600; color: var(--ink); text-decoration: none; }
.list a:hover { color: var(--copper); }
@media (max-width: 860px) {
  .ins { grid-template-columns: minmax(0, 1fr); }
  .filters { position: static; display: flex; gap: .35rem; overflow-x: auto; }
  .filters h2 { display: none; }
  .filters button { flex: 0 0 auto; width: auto; box-shadow: inset 0 0 0 1px var(--line); }
  .list li { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
}
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2.5rem; }
.pair article { padding: 1.5rem; border-radius: var(--radius); background: var(--mist); }
.pair h2 { margin: .5rem 0; font-size: 1.375rem; }
.pair h2 a { text-decoration: none; }
.pair h2 a:hover { color: var(--copper); }
.pair p { color: var(--muted); font-size: .9375rem; }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; } }

/* ---------- article ---------- */
.article-head { padding: clamp(2rem, 4vw, 3rem) 0 1.5rem; border-bottom: 1px solid var(--line); }
.article-head .wrap { max-width: 860px; }
.article-head h1 { margin-bottom: 1rem; font-size: clamp(1.875rem, 1.35rem + 1.6vw, 2.75rem); letter-spacing: -0.02em; }
.meta-row { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; font: 400 .8125rem var(--mono); color: var(--muted); }
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 15rem; gap: 3rem; max-width: 1080px; margin: 0 auto; padding: 2.5rem var(--gutter) var(--section); }
.article p { font-size: 1.125rem; line-height: 1.72; }
.article h2 { margin: 2.25rem 0 .75rem; font-size: 1.5rem; scroll-margin-top: 100px; }
.article .standfirst { font-size: 1.3125rem; line-height: 1.55; color: var(--ink); }
.article-side { position: sticky; top: 100px; align-self: start; font-size: .9063rem; }
.article-side h2 { margin: 0 0 .5rem; font: 500 .75rem var(--mono); text-transform: uppercase; color: var(--muted); }
.article-side a { display: block; padding: .3rem 0 .3rem .75rem; border-left: 2px solid var(--line); color: var(--muted); text-decoration: none; }
.article-side a:hover { border-color: var(--copper); color: var(--ink); }
.article-side .box { margin-top: 2rem; }
.article-side .box a { border: 0; padding-left: 0; color: var(--copper); font-weight: 600; }
@media (max-width: 860px) { .article-wrap { grid-template-columns: minmax(0, 1fr); } .article-side { position: static; order: -1; } .article-side nav { display: none; } }

/* ---------- forms ---------- */
.form-wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4rem); }
.chooser { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: 1.5rem; }
.chooser label { display: grid; grid-template-columns: auto 1fr; gap: .1rem .75rem; padding: .9rem 1rem; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.chooser input { grid-row: 1 / span 2; margin-top: .3rem; accent-color: var(--copper); }
.chooser b { color: var(--ink); }
.chooser span { font-size: .8438rem; color: var(--muted); }
.chooser label:has(input:checked) { box-shadow: 0 0 0 2px var(--copper); background: var(--copper-tint); }
@media (max-width: 560px) { .chooser { grid-template-columns: 1fr; } }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.field { margin-bottom: 1rem; }
.field label, legend { display: block; margin-bottom: .3rem; font-size: .9063rem; font-weight: 600; color: var(--ink); }
legend { margin-bottom: .6rem; }
fieldset { margin: 0; padding: 0; border: 0; }
.hint { display: block; margin: -.15rem 0 .35rem; font-size: .8438rem; color: var(--muted); }
input, select, textarea { width: 100%; min-height: 46px; padding: .6rem .75rem; border: 1px solid #8f9aa0; border-radius: var(--radius); background: var(--white); color: var(--text); font: inherit; font-size: 1rem; }
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--copper); outline-offset: 1px; border-color: var(--copper); }
[aria-invalid="true"] { border-color: #b3261e; }
.form-status { margin: 1rem 0 0; padding: .75rem 1rem; border-radius: var(--radius); background: var(--ink); color: var(--white); font-size: .9375rem; }
.form-note { margin: .75rem 0 0; font-size: .8125rem; color: var(--muted); }
@media (max-width: 860px) { .form-wrap { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { padding: 3rem 0 1.5rem; background: var(--ink); color: var(--on-ink); font-size: .9375rem; }
.foot { display: grid; grid-template-columns: minmax(0, 3fr) repeat(3, minmax(0, 2fr)) minmax(0, 3fr); gap: 2rem; }
.foot h2 { margin-bottom: .75rem; font: 500 .75rem var(--mono); text-transform: uppercase; color: var(--white); }
.foot li { padding: .2rem 0; }
.foot a { color: var(--white); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot .logo--footer { width: 120px; height: auto; margin-bottom: 1rem; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid #34454f; font-size: .8125rem; }
.foot-legal a { color: var(--white); }
@media (max-width: 960px) { .foot { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* =========================================================================
   WordPress additions
   ========================================================================= */

.wrap.section { padding-left: var(--gutter); padding-right: var(--gutter); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.admin-bar .site-header { top: 32px; }
.admin-bar .subnav { top: 102px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } .admin-bar .subnav { top: 106px; } }
.muted { color: var(--muted); }
.label { margin: 1.25rem 0 .5rem; color: var(--muted); }
.link { display: inline-block; }

/* no JavaScript: everything is reachable without the toggles */
.no-js .nav-toggle, .no-js .menu-btn { display: none; }
.no-js .explorer { grid-template-columns: minmax(0, 1fr); }
.no-js .explorer [role="tablist"] { display: none; }
.no-js .explorer [role="tabpanel"] + [role="tabpanel"] { border-top: 1px solid var(--line); }
@media (max-width: 860px) { .no-js .menu-panel { display: block; position: static; padding-top: 0; } }
.menu-open { overflow: hidden; }

/* ---------- homepage ---------- */
.hero .lead { max-width: 36em; }
.audiences { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.audiences li { padding-top: 1rem; border-top: 2px solid var(--ink); }
.audiences h3 { margin-bottom: .5rem; font-size: 1.25rem; }
.audiences p { font-size: .9688rem; color: var(--muted); }
@media (max-width: 960px) { .audiences { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .audiences { grid-template-columns: 1fr; gap: 1.5rem; } }
.lanes .gloss { padding-left: .75rem; border-left: 2px solid var(--copper-bright); font-size: .8438rem; color: var(--on-ink); }
.exp { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.exp h2 { margin-bottom: 1rem; font-size: clamp(1.625rem, 1.25rem + 1.1vw, 2.25rem); }
.exp .lead { margin-bottom: 1.25rem; }
@media (max-width: 860px) { .exp { grid-template-columns: minmax(0, 1fr); } }
.ruled { margin: 0; }
.ruled li { padding: .7rem 0; border-top: 1px solid var(--line); }
.ruled li:last-child { border-bottom: 1px solid var(--line); }
.muted.mono { margin: 0; }
.post-card__img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: .75rem; border-radius: var(--radius); background: var(--mist); }

/* ---------- inner pages ---------- */
.page-hero .wrap--single { grid-template-columns: minmax(0, 1fr); }
.page-hero .search { margin-top: 1.25rem; max-width: 30rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--copper); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }
.entry-content > :first-child { margin-top: 0; }
.entry-content h2 { margin: 2.75rem 0 .8rem; padding-top: 2rem; border-top: 1px solid var(--line); font-size: clamp(1.5rem, 1.2rem + .9vw, 1.875rem); scroll-margin-top: 130px; }
.entry-content > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.entry-content h3 { margin: 1.75rem 0 .4rem; font-size: 1.1875rem; }
.entry-content h4 { margin: 1.25rem 0 .3rem; font-size: 1.0625rem; }
.entry-content p, .entry-content li { max-width: 42em; }
.entry-content a { color: var(--copper); text-underline-offset: 3px; }
.entry-content a:hover { color: #87391b; }
.entry-content ul, .entry-content ol { margin: 0 0 1.25em; padding-left: 1.4rem; }
.entry-content ul { list-style: none; padding-left: 0; }
.entry-content ul li { position: relative; padding: .3rem 0 .3rem 1.1rem; }
.entry-content ul li::before { content: ""; position: absolute; left: 0; top: .95rem; width: 5px; height: 5px; background: var(--copper); }
.entry-content ol { list-style: decimal; }
.entry-content ol li { padding: .2rem 0 .2rem .25rem; }
.entry-content table { width: 100%; margin: 1.5rem 0; border-collapse: collapse; font-size: .9375rem; }
.entry-content th, .entry-content td { padding: .75rem 1rem .75rem 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content thead th { border-bottom: 1.5px solid var(--ink); font: 500 .75rem var(--mono); letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
/* Article tables are wrapped in .table-wrap: a word is never split to squeeze a column, and a table that needs more room than the
   text column scrolls inside its wrapper (--cols, set per table, gives the width a table of that many columns needs). */
.entry-content .table-wrap table { min-width: calc(var(--cols, 3) * 6.5rem); overflow-wrap: normal; word-break: normal; hyphens: manual; }
.entry-content .table-wrap td code, .entry-content .table-wrap .nb { white-space: nowrap; }
.article-wrap > * { min-width: 0; }
.entry-content figure { margin: 1.75rem 0; }
.entry-content img { height: auto; border-radius: var(--radius); }
.entry-content figcaption, .article-figure figcaption { margin-top: .5rem; font-size: .8438rem; color: var(--muted); }
.entry-content blockquote { margin: 1.75rem 0; padding: .25rem 0 .25rem 1.25rem; border-left: 3px solid var(--copper); color: var(--ink); }
.entry-content blockquote p { font-size: 1.1875rem; }
.entry-content code { padding: .1em .35em; border-radius: 3px; background: var(--mist); font: 400 .875em var(--mono); }
.entry-content pre { margin: 1.5rem 0; padding: 1rem 1.25rem; overflow-x: auto; border-radius: var(--radius); background: var(--ink); color: #e6ebee; font: 400 .875rem/1.6 var(--mono); }
.entry-content pre code { padding: 0; background: none; color: inherit; font-size: inherit; }
.entry-content .alignwide { max-width: none; }
.entry-content .wp-block-button__link { display: inline-flex; align-items: center; min-height: 46px; padding: 0 1.2rem; border-radius: var(--radius); background: var(--ink); color: var(--white); font-weight: 600; text-decoration: none; }
.entry-content .wp-block-button__link:hover { background: var(--ink-2); color: var(--white); }
.entry-content--narrow { max-width: 46em; }

/* plain-English margin note, illustrative scenario, project write-up, call to action */
.wci-note { margin: 1.5rem 0; padding: .9rem 1.1rem; border-left: 3px solid var(--copper); background: var(--copper-tint); font-size: .9375rem; }
.wci-note p { margin: 0 0 .5em; }
.wci-note > :last-child { margin-bottom: 0; }
.wci-note__tag { font: 500 .6875rem/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--copper); }
.wci-note__term { font-size: 1rem; color: var(--ink); }
.wci-case { margin: 1.5rem 0; padding: 1.25rem 1.4rem; border-radius: var(--radius); background: var(--mist); }
.wci-case--illustrative { border: 1px dashed var(--muted); }
.wci-case--project { border-left: 3px solid var(--ink); }
.wci-case h3 { margin: .6rem 0 .5rem; }
.wci-case__label { display: inline-block; margin: 0; padding: 1px 7px; border: 1px dashed var(--muted); border-radius: 2px; font: 500 .6875rem/1.5 var(--mono); text-transform: uppercase; color: var(--muted); }
.wci-case--project .wci-case__label { border: 1px solid var(--ink); color: var(--ink); }
.wci-case__list { margin-bottom: 0; }
.wci-case__fine { margin: .75rem 0 0; font-size: .8438rem; color: var(--muted); }
.wci-cta { margin: 2rem 0; padding: 1.5rem; border-radius: var(--radius); background: var(--ink); color: var(--on-ink); }
.wci-cta h3 { margin-top: 0; color: var(--white); }
.wci-cta .wp-block-button__link { background: var(--copper); }

/* ---------- article lists ---------- */
.filters h2 { margin-top: 1.25rem; }
.filters h2:first-child { margin-top: 0; }
.filters ul { margin-bottom: .5rem; }
.filters a { display: block; padding: .5rem .75rem; margin-bottom: 2px; border-radius: 3px; color: var(--ink); font: 500 .9375rem var(--sans); text-decoration: none; }
.filters a:hover { background: var(--mist); }
.filters a[aria-current="true"] { background: var(--ink); color: var(--white); }
.row-item, .list .row-item { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) 10rem; gap: 1rem; align-items: baseline; padding: .95rem 0; border-bottom: 1px solid var(--line); }
.row-item__meta, .row-item__level { font: 400 .8125rem var(--mono); color: var(--muted); }
.row-item__body p { margin: .25rem 0 0; font-size: .9375rem; color: var(--muted); }
.row-item__level { text-align: right; }
@media (max-width: 860px) {
    .filters { display: block; }
    .filters ul { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 .75rem; }
    .filters h2 { display: block; margin: .5rem 0 .35rem; }
    .filters a { margin: 0; box-shadow: inset 0 0 0 1px var(--line); }
    .filters a[aria-current="true"] { box-shadow: none; }
    .row-item, .list .row-item { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
    .row-item__level { text-align: left; }
}
.pagination { margin-top: 2rem; }
.pagination ul { display: flex; flex-wrap: wrap; gap: .35rem; }
.pagination a, .pagination span { display: inline-block; min-width: 2.5rem; padding: .55rem .8rem; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-align: center; text-decoration: none; }
.pagination a:hover { box-shadow: inset 0 0 0 2px var(--copper); }
.pagination .current { background: var(--ink); box-shadow: none; color: var(--white); }
.pagination .dots { box-shadow: none; }

/* ---------- article ---------- */
.article-head .crumbs { margin-bottom: 1rem; }
.meta-row a { color: var(--muted); }
.meta-row a:hover { color: var(--copper); }
.article-note { max-width: 42em; margin: 1rem 0 0; padding: .6rem .9rem; border-left: 3px solid var(--line); background: var(--mist); font-size: .9063rem; color: var(--muted); }
.article-note--update { border-left-color: var(--copper); }
.article-figure { margin: 0 0 2rem; }
.article-figure img { width: 100%; height: auto; border-radius: var(--radius); }
.article .entry-content p, .article .entry-content li { max-width: none; font-size: 1.125rem; line-height: 1.72; }
.article .entry-content h2 { margin-top: 2.5rem; padding-top: 0; border-top: 0; }

/* ---------- forms ---------- */
.search label { display: block; margin-bottom: .3rem; font-size: .9063rem; font-weight: 600; color: var(--ink); }
.search__row { display: flex; gap: .5rem; }
.search__row input { flex: 1 1 auto; }
fieldset.chooser { min-width: 0; grid-template-columns: 1fr; }
.chooser input { align-self: start; }
fieldset.chooser legend { grid-column: 1 / -1; float: none; width: 100%; }
.req { color: #b3261e; }
.opt { font-weight: 400; color: var(--muted); }
input[type="radio"], input[type="checkbox"] { width: auto; min-height: 0; }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-error { display: block; margin-top: .3rem; font-size: .875rem; color: #b3261e; }
.form-status { margin: 0 0 1.5rem; padding: .85rem 1.1rem; border-radius: var(--radius); font-size: .9688rem; }
.form-status ul { margin: .4rem 0 0; padding-left: 1.1rem; list-style: disc; }
.form-status--ok { background: #e7f1ea; color: #14361f; box-shadow: inset 3px 0 0 #1f6b3a; }
.form-status--error { background: #fbeceb; color: #5a1410; box-shadow: inset 3px 0 0 #b3261e; }
.form-status--error a { color: inherit; }
.form-note--admin { padding: .5rem .75rem; border: 1px dashed var(--muted); border-radius: var(--radius); }
.contact-aside .entry-content h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.contact-aside .entry-content h2 { font-size: 1.25rem; }
button.btn { font-family: var(--sans); }
.side .box a.btn { display: inline-flex; padding: 0 1.2rem; }

/* ---------- footer ---------- */
.foot ul { margin: 0; }
.foot-brand p { max-width: 20em; }
.foot-legal .inline { display: flex; gap: 1rem; }

@media print {
    .utility, .site-header, .menu-panel, .site-footer, .subnav, .side, .article-side, .cta-band { display: none; }
    body { color: #000; }
}

/* ---------- services overview ---------- */
.services-intro { margin-bottom: 3rem; }
.index-heading { margin: 0 0 1.25rem; font-size: clamp(1.625rem, 1.25rem + 1.1vw, 2.25rem); }
.index-lead { max-width: 40em; margin: -.5rem 0 1.5rem; color: var(--muted); }
.svc-list { margin-bottom: 4rem; }
.svc { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.5rem, 4vw, 3rem); padding: 2rem 0; border-top: 2px solid var(--ink); }
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc__n { margin: 0 0 .4rem; color: var(--copper); }
.svc h3 { margin-bottom: .6rem; font-size: 1.5rem; }
.svc h3 a { color: var(--ink); text-decoration: none; }
.svc h3 a:hover { color: var(--copper); }
.svc .summary { margin: 0; color: var(--muted); }
.svc .two-col { margin-top: 0; }
@media (max-width: 800px) { .svc { grid-template-columns: minmax(0, 1fr); gap: 1rem; } }
.eng-links--wide { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.eng-links--wide span { display: block; margin-top: .35rem; }

/* A link to a page that is not published yet is shown to visitors as plain text (inc/unpublished-links.php). */
.wci-unlinked { color: inherit; cursor: default; text-decoration: none; }
.wci-unlinked::after { content: none; }
.btn.wci-unlinked { display: none; }

/* ---------- service layout (approved Overview-first direction; see inc/service-layout.php) ---------- */
/* hero: facts as a summary strip, optional diagram beside the text */
.page-hero--svc .wrap { grid-template-columns: minmax(0, 1fr); }
.page-hero--svc .wrap--diagram { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
.page-hero__text, .page-hero__visual { min-width: 0; }
.glance-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 1.75rem 0 0; padding: 0; background: var(--white); border-top: 2px solid var(--copper); box-shadow: 0 0 0 1px var(--line); }
.glance-strip > div { padding: .9rem 1.1rem 1.05rem; border-left: 1px solid var(--line); }
.glance-strip > div:first-child { border-left: 0; }
.glance-strip dt { font: 500 .6875rem/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.glance-strip dd { margin: .3rem 0 0; font-weight: 600; line-height: 1.35; color: var(--ink); }
.hero-cta { display: none; margin: 1.25rem 0 0; }

/* body: main column and the sticky sidebar (call to action, jump list, related pages) */
.body__main { min-width: 0; }
.side { top: 96px; max-height: calc(100vh - 116px); overflow-y: auto; scrollbar-width: thin; }
.admin-bar .side { top: 128px; max-height: calc(100vh - 148px); }
.side .box--jump ol { margin: 0; padding: 0; list-style: none; }
.side .box--jump a { padding: .28rem 0; font-size: .9063rem; color: var(--muted); text-decoration: none; }
.side .box--jump a:hover { color: var(--copper); text-decoration: underline; }
.jump-m { display: none; margin-bottom: 1.5rem; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); }
.jump-m summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 1rem; font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; }
.jump-m summary::-webkit-details-marker { display: none; }
.jump-m summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--copper); border-bottom: 2px solid var(--copper); transform: rotate(45deg) translate(-2px, -2px); }
.jump-m[open] summary::after { transform: rotate(225deg); }
.jump-m ol { margin: 0; padding: 0 1rem .75rem; list-style: none; }
.jump-m a { display: block; padding: .55rem 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }

/* sections: definition rows for prose, stacked for cards, steps and situations */
.entry-content--svc .svc-sec { display: grid; grid-template-columns: minmax(0, 10rem) minmax(0, 1fr); gap: 0 2rem; padding: 2.25rem 0; border-top: 1px solid var(--line); }
.entry-content--svc .svc-sec:first-child { padding-top: 0; border-top: 0; }
.entry-content--svc .svc-sec > h2 { margin: 0; padding: 0; border: 0; font-size: 1.1875rem; line-height: 1.25; letter-spacing: -.01em; scroll-margin-top: 110px; }
.entry-content--svc .svc-sec--cards, .entry-content--svc .svc-sec--steps, .entry-content--svc .svc-sec--situations, .entry-content--svc .svc-sec--related { display: block; }
.entry-content--svc .svc-sec--cards > h2, .entry-content--svc .svc-sec--steps > h2, .entry-content--svc .svc-sec--situations > h2, .entry-content--svc .svc-sec--related > h2 { margin-bottom: .9rem; font-size: clamp(1.5rem, 1.2rem + .9vw, 1.875rem); }
.svc-sec__body { min-width: 0; }
.svc-sec__body > :first-child { margin-top: 0; }
.svc-sec__body > :last-child { margin-bottom: 0; }
.svc-sec__body h3 { margin-top: 1.5rem; }

/* cards (every item starts with a bold lead-in) */
.entry-content .svc-cards { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 1.25rem 0 0; padding: 0; }
.entry-content .svc-cards li { display: flex; flex-direction: column; gap: .4rem; max-width: none; padding: 1.1rem 1.1rem 1.2rem; border-top: 2px solid var(--ink); background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.entry-content .svc-cards li::before { display: none; }
.svc-card__t { display: block; font-size: 1.0625rem; line-height: 1.3; color: var(--ink); }
.svc-card__d { display: block; font-size: .9375rem; line-height: 1.55; color: var(--muted); }
.entry-content .svc-cards--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.entry-content .svc-cards--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.entry-content .svc-cards li.svc-card--inline { display: block; font-size: .9375rem; line-height: 1.55; color: var(--muted); }
.entry-content .svc-cards li.svc-card--inline strong { color: var(--ink); }
.entry-content .svc-cards--compact li { padding: .9rem 1rem 1rem; border-top-width: 1px; }
.entry-content .svc-cards--steps { counter-reset: step; }
.entry-content .svc-cards--steps li { counter-increment: step; border-top-color: var(--copper); }
.entry-content .svc-cards--steps li::before { content: counter(step, decimal-leading-zero); display: block; position: static; width: auto; height: auto; background: none; font: 500 .75rem/1.2 var(--mono); letter-spacing: .04em; color: var(--copper); }

/* situations (problem led): numbered rows */
.entry-content .svc-situations { list-style: none; counter-reset: sit; display: grid; gap: .6rem; margin: 1rem 0 0; padding: 0; }
.entry-content .svc-situations li { counter-increment: sit; position: relative; max-width: none; padding: .95rem 1.1rem .95rem 3.4rem; border-left: 3px solid var(--copper); background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.entry-content .svc-situations li::before { content: counter(sit, decimal-leading-zero); position: absolute; left: 1.1rem; top: 1.02rem; width: auto; height: auto; background: none; font: 500 .75rem/1.6 var(--mono); color: var(--copper); }
.entry-content .svc-cols { list-style: none; columns: 2; column-gap: 2.25rem; }
.entry-content .svc-cols li { break-inside: avoid; max-width: none; }

/* glossary notes side by side; illustrative scenario as a strip */
.svc-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)); gap: .75rem; margin: 1.25rem 0; }
.svc-notes .wci-note { margin: 0; }
.entry-content--svc .wci-case--illustrative .wci-case__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; padding: 0; }
.entry-content--svc .wci-case--illustrative .wci-case__list li { max-width: none; padding: .6rem 0 0; border-top: 2px solid var(--copper); }
.entry-content--svc .wci-case--illustrative .wci-case__list li::before { display: none; }
.entry-content--svc .wci-case--illustrative .wci-case__list strong { display: block; margin-bottom: .2rem; font: 500 .6875rem/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--copper); }

/* parallel alternatives as one grid of tiles (Consultancy) */
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding: 2.25rem 0; border-top: 1px solid var(--line); }
.entry-content--svc .svc-sec--tile { display: block; padding: 1.25rem 1.35rem 1.4rem; border-top: 2px solid var(--ink); box-shadow: 0 0 0 1px var(--line); }
.entry-content--svc .svc-sec--tile > h2 { margin-bottom: .6rem; font-size: 1.3125rem; }
.svc-grid > .svc-sec--tile:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* closing call to action: always visible, never inside a collapsed section */
.entry-content--svc > .wci-cta { margin-top: 2.25rem; }

/* phones: sections become disclosure panels (script-enhanced; without it everything is open) */
.svc-sec__toggle { display: none; }
.svc-expand { display: none; }
@media (max-width: 1100px) { .entry-content .svc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .page-hero--svc .wrap--diagram { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) {
    .jump-m { display: block; }
    .side .box--jump { display: none; }
    .body--svc .side .box--ink { display: none; } /* the page already has a call to action under its introduction and another at the end */
    .side { position: static; max-height: none; overflow: visible; }
    .glance-strip { grid-template-columns: minmax(0, 1fr); }
    .glance-strip > div { padding: .75rem 1rem; border-left: 0; border-top: 1px solid var(--line); }
    .glance-strip > div:first-child { border-top: 0; }
    .hero-cta { display: block; }
    .entry-content--svc .svc-sec { display: block; padding: 1.25rem 0; }
    .entry-content--svc .svc-sec--cards > h2, .entry-content--svc .svc-sec--steps > h2, .entry-content--svc .svc-sec--situations > h2, .entry-content--svc .svc-sec--related > h2, .entry-content--svc .svc-sec > h2 { margin-bottom: .6rem; font-size: 1.3125rem; }
    .entry-content .svc-cards, .entry-content .svc-cards--compact, .entry-content .svc-cards--four { grid-template-columns: minmax(0, 1fr); }
    .entry-content .svc-cols { columns: 1; }
    .entry-content--svc .wci-case--illustrative .wci-case__list { grid-template-columns: minmax(0, 1fr); }
    .svc-grid { grid-template-columns: minmax(0, 1fr); }
    .svc-sec__toggle { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; min-height: 48px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
    .svc-sec__toggle::after { content: ""; flex: 0 0 auto; width: 9px; height: 9px; border-right: 2px solid var(--copper); border-bottom: 2px solid var(--copper); transform: rotate(45deg) translate(-2px, -2px); }
    .svc-sec__toggle[aria-expanded="true"]::after { transform: rotate(225deg); }
    .svc-sec__body[hidden] { display: none; }
    .svc-expand { display: inline-flex; align-items: center; min-height: 44px; margin: 0 0 .75rem; padding: 0; border: 0; background: none; font: 600 .9375rem var(--sans); color: var(--copper); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
    .svc-dg { margin-top: 1rem; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); background: var(--white); }
    .svc-dg > summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 1rem; font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; }
    .svc-dg > summary::-webkit-details-marker { display: none; }
    .svc-dg > summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--copper); border-bottom: 2px solid var(--copper); transform: rotate(45deg) translate(-2px, -2px); }
    .svc-dg[open] > summary::after { transform: rotate(225deg); }
}
@media print { .svc-sec__body[hidden] { display: block !important; } .svc-sec__toggle::after, .svc-expand, .jump-m, .hero-cta { display: none !important; } .side { position: static; max-height: none; } }

/* phone menu: no skip link while it is open, two columns in landscape */
html.menu-open .skip { display: none; }
@media (max-width: 860px) and (orientation: landscape) and (max-height: 520px) {
    .menu-panel.is-open { column-count: 2; column-gap: 1.5rem; }
    .menu-panel h2, .menu-panel a { break-inside: avoid; }
}

/* long documents (privacy notice): contents beside the text on desktop, "Back to contents" on phones */
.back-link { display: none; margin: 2rem 0 0; font-size: .875rem; }
@media (max-width: 860px) { .back-link { display: block; } }
@media print { .back-link { display: none !important; } }

/* ---------- Insights search and filter counts ---------- */
.page-hero .search--insights { max-width: 34rem; }
.search--insights input[type="search"] { min-height: 46px; }
.filters a { display: flex; justify-content: space-between; gap: .75rem; }
.filters__n { font: 400 .75rem var(--mono); color: var(--muted); align-self: center; }
.filters a[aria-current="true"] .filters__n { color: var(--on-ink); }
.link-plain { color: var(--copper); font-weight: 600; text-decoration: underline; }
@media (max-width: 860px) { .filters a { display: block; } .filters__n { margin-left: .35rem; } }

/* Target size (WCAG 2.2, 2.5.8): breadcrumb and footer legal links were 16 to 17px high. */
.crumbs a, .foot-legal a { display: inline-block; padding-block: .3rem; }

/* Footer "Cookie settings" (reopens the consent preferences). Looks like the other footer links. */
.foot-legal .wci-cookie-settings { padding: .3rem 0; border: 0; background: none; color: var(--white); font: inherit; text-decoration: underline; cursor: pointer; }
.foot-legal .wci-cookie-settings[hidden] { display: none; }
@media print { .wci-cookie-settings { display: none !important; } }
