/*
Theme Name: IT Risk Guide
Theme URI: https://www.itriskguide.com
Author: IT Risk Guide
Description: Block theme for IT Risk Guide. Paper-and-ink editorial register, a four-step risk scale, an original contour-terrain risk landscape and a risk-to-evidence governance diagram.
Version: 2.3.6
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: itriskguide
*/

/* ---------------------------------------------------------------------------
 * Tokens. Hex values mirror theme.json; repeated so the SVG figures and the
 * tool never depend on generated custom properties.
 * Steel is #555b6e: it keeps 4.5:1 on the near-white canvas for small text.
 * ------------------------------------------------------------------------- */
:root {
	--irg-canvas: #fafafa;
	--irg-paper: #ffffff;
	--irg-wash: #f0f1f4;
	--irg-navy: #141c43;
	--irg-ink: #0e1535;
	--irg-slate: #40455a;
	--irg-steel: #555b6e;
	--irg-hair: #d3d6dd;
	--irg-low: #3f8f63;
	--irg-med: #d8a521;
	--irg-high: #d9663a;
	--irg-crit: #b2342c;
	--irg-t-low: #e3f1e9;
	--irg-t-med: #f8ecc7;
	--irg-t-high: #f9dccf;
	--irg-t-crit: #f2d1ce;
	--irg-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, ui-serif, serif;
	--irg-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--irg-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
	--irg-gutter: clamp(1.25rem, 4vw, 3rem);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-wrap: break-word; overflow-x: clip; }
img, svg { max-width: 100%; height: auto; }
a { text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--irg-navy); outline-offset: 2px; box-shadow: 0 0 0 4px #fff; }
::selection { background: var(--irg-navy); color: #fff; }
code, pre, kbd { font-family: var(--irg-mono); }
p code, li code, td code { background: var(--irg-wash); padding: 0.1em 0.35em; border-radius: 0; font-size: 0.9em; color: var(--irg-navy); }
.wp-block-code { overflow-x: auto; max-width: 100%; }
.wp-block-code code { background: none; padding: 0; font-size: inherit; white-space: pre; }
h1, h2, h3, h4 { font-family: var(--irg-serif); }

.irg-skip { position: absolute; left: 0.75rem; top: -4rem; z-index: 100; background: var(--irg-navy); color: #fff; padding: 0.75rem 1.1rem; border-radius: 0; text-decoration: none; font-weight: 500; }
.irg-skip:focus { top: 0; outline-color: #fff; outline-offset: -4px; }

.irg-wrap { max-width: 82rem; margin: 0 auto; padding-left: var(--irg-gutter); padding-right: var(--irg-gutter); }

/* ---------------------------------------------------------------------------
 * Header and footer
 * ------------------------------------------------------------------------- */
.irg-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 250, 250, 0.94); border-bottom: 1px solid var(--irg-hair); }
@supports (backdrop-filter: blur(8px)) { .irg-header { background: rgba(250, 250, 250, 0.95); backdrop-filter: blur(12px); } }
.irg-header__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1.5rem; max-width: 82rem; margin: 0 auto; padding: 0.35rem var(--irg-gutter); }
.irg-logo { display: inline-flex; align-items: center; min-height: 52px; }
.irg-logo img { display: block; }
.irg-nav { display: flex; align-items: center; gap: 0 0.1rem; margin: 0; padding: 0; list-style: none; }
.irg-nav li { margin: 0; }
.irg-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.7rem; font-size: 0.9rem; font-weight: 500; color: var(--irg-slate); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.irg-nav a:hover { color: var(--irg-navy); border-bottom-color: var(--irg-navy); }
.irg-nav .irg-nav__tool a { color: #fff; background: var(--irg-navy); border: 1px solid var(--irg-navy); border-radius: 0; margin-left: 0.5rem; padding: 0 1rem; }
.irg-nav .irg-nav__tool a:hover { background: var(--irg-ink); color: #fff; }

.irg-footer { background: var(--irg-ink); color: #d9dcea; font-size: 0.9375rem; }
.irg-footer__in { max-width: 82rem; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem) var(--irg-gutter) 2rem; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2rem clamp(2rem, 5vw, 4.5rem); }
.irg-footer h2 { font-family: var(--irg-mono); font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: #c3c8dc; font-weight: 600; margin: 0 0 0.6rem; }
.irg-footer ul { list-style: none; margin: 0; padding: 0; }
.irg-footer li { margin: 0; }
.irg-footer li a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; text-decoration: none; }
.irg-footer li a:hover { text-decoration: underline; }
.irg-footer p { margin: 0.9rem 0 0; color: #d9dcea; }
.irg-footer img { display: block; }
.irg-footer__bound { border-left: 2px solid #8b93b5; padding-left: 1rem; font-size: 0.9rem; line-height: 1.6; max-width: 34rem; }
.irg-footer__bound strong { color: #fff; }
.irg-footer :focus-visible, .irg-trace :focus-visible { outline-color: #fff; box-shadow: 0 0 0 4px var(--irg-ink); }
.irg-footer__base { max-width: 82rem; margin: 0 auto; padding: 1.1rem var(--irg-gutter) 2rem; border-top: 1px solid rgba(255, 255, 255, 0.14); color: #c3c8dc; font-size: 0.8125rem; }
@media (max-width: 860px) { .irg-footer__in { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------------
 * Shared components
 * ------------------------------------------------------------------------- */
.irg-eyebrow { font-family: var(--irg-serif); font-variant: small-caps; font-size: 1rem; letter-spacing: 0.06em; color: var(--irg-steel); margin: 0 0 0.9rem; font-weight: 600; }
.irg-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 1.6rem; background: var(--irg-navy); color: #fff; border: 1px solid var(--irg-navy); border-radius: 0; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; font-family: inherit; line-height: 1.2; letter-spacing: 0.01em; transition: background 0.2s, color 0.2s; }
.irg-btn:hover { background: var(--irg-ink); color: #fff; }
.irg-btn--quiet { background: transparent; color: var(--irg-navy); }
.irg-btn--quiet:hover { background: var(--irg-navy); color: #fff; }
.irg-btn--small { min-height: 44px; padding: 0 1rem; font-size: 0.9375rem; }
.irg-btn--inv { background: #fff; color: var(--irg-navy); border-color: #fff; }
.irg-btn--inv:hover { background: transparent; color: #fff; }

.irg-note, .wp-block-group.irg-note { background: none; border: 0; border-top: 1px solid var(--irg-hair); border-left: 4px solid var(--irg-navy); border-radius: 0; padding: 1rem 0 1rem 1.25rem; }
.irg-note > :first-child { margin-top: 0; }
.irg-note > :last-child { margin-bottom: 0; }
.irg-note p { font-size: 0.9688rem; }

.wp-block-table { overflow-x: auto; max-width: 100%; margin-top: 1.5rem; margin-bottom: 1.5rem; }
.wp-block-table table { border-collapse: collapse; width: 100%; background: var(--irg-paper); border: 1px solid var(--irg-hair); font-size: 0.9375rem; line-height: 1.5; }
.wp-block-table th, .wp-block-table td { text-align: left; vertical-align: top; padding: 0.7rem 0.9rem; border: 1px solid var(--irg-hair); }
.wp-block-table thead th { background: var(--irg-wash); color: var(--irg-navy); font-weight: 600; border-bottom: 2px solid var(--irg-navy); }
.wp-block-table figcaption { font-size: 0.8125rem; color: var(--irg-steel); }

.irg-crumbs { font-family: var(--irg-mono); font-size: 0.8125rem; letter-spacing: 0.02em; color: var(--irg-steel); margin: 0 0 1.5rem; }
.irg-crumbs ol { display: flex; flex-wrap: wrap; gap: 0.15rem 0.5rem; list-style: none; margin: 0; padding: 0; }
.irg-crumbs li { margin: 0; }
.irg-crumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--irg-steel); }
.irg-crumbs a { color: var(--irg-steel); display: inline-flex; align-items: center; min-height: 32px; }

/* band chips (text always carries the meaning; colour is the second channel) */
.irg-band { display: inline-block; font-family: var(--irg-mono); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; padding: 0.15rem 0.55rem; border-radius: 0; color: var(--irg-navy); border: 1px solid var(--irg-navy); }
.irg-band--low { background: var(--irg-t-low); }
.irg-band--medium { background: var(--irg-t-med); }
.irg-band--high { background: var(--irg-t-high); }
.irg-band--critical { background: var(--irg-t-crit); }

/* ---------------------------------------------------------------------------
 * Inner pages: page head, reading body, closing strip
 * ------------------------------------------------------------------------- */
.irg-main { padding: 0; }
.irg-pagehead { position: relative; background: linear-gradient(90deg, #fafafa 0%, #fafafa 45%, rgba(250, 250, 250, 0) 78%), url("assets/img/contours.svg") no-repeat right center / cover, #fafafa; border-bottom: 1px solid var(--irg-hair); padding: clamp(2rem, 5vw, 4rem) var(--irg-gutter) clamp(1.75rem, 4vw, 3rem); }
.irg-pagehead::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 4px; background: linear-gradient(90deg, var(--irg-low) 0 25%, var(--irg-med) 25% 50%, var(--irg-high) 50% 75%, var(--irg-crit) 75% 100%); opacity: 0.85; }
.irg-pagehead > * { max-width: 50rem; }
.irg-pagehead h1 { font-size: clamp(2.2rem, 5vw, 3.9rem); line-height: 1.04; letter-spacing: -0.025em; font-weight: 500; color: var(--irg-navy); margin: 0 0 1rem; text-wrap: balance; }
.irg-standfirst { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--irg-slate); margin: 0 0 1.1rem; max-width: 40rem; }
.irg-article-meta { font-family: var(--irg-mono); font-size: 0.8125rem; letter-spacing: 0.04em; color: var(--irg-steel); margin: 0; text-transform: uppercase; }
.irg-body { padding: clamp(2rem, 5vw, 3.75rem) var(--irg-gutter) clamp(2.5rem, 6vw, 4.5rem); }
.entry-content { font-size: 1.0625rem; line-height: 1.72; }
.entry-content > p:first-child { font-size: 1.1875rem; }
.entry-content h2, .irg-prose h2 { margin-top: 3rem; padding-top: 1.35rem; border-top: 1px solid var(--irg-hair); font-size: clamp(1.6rem, 2.6vw, 2.15rem); line-height: 1.15; font-weight: 500; }
.entry-content h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.entry-content h3, .irg-prose h3 { margin-top: 2.1rem; font-size: 1.35rem; font-weight: 600; }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; }
.entry-content li { margin-bottom: 0.45rem; }
.entry-content li::marker { color: var(--irg-steel); }
.entry-content a { color: var(--irg-navy); text-decoration-thickness: 2px; text-decoration-color: rgba(20, 28, 67, 0.35); }
.entry-content a:hover { text-decoration-color: var(--irg-navy); }
.entry-content blockquote { border-left: 3px solid var(--irg-navy); margin-left: 0; padding-left: 1.25rem; font-family: var(--irg-serif); font-size: 1.25rem; }
.entry-content img { border-radius: 0; }

/* ---------------------------------------------------------------------------
 * Home: hero (stark editorial: rules, square edges, ink on near-white)
 * ------------------------------------------------------------------------- */
.irg-hero { display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.4fr); grid-template-areas: "copy fig" "note fig"; gap: 1.25rem clamp(1.75rem, 3.4vw, 3.5rem); align-items: center; padding: clamp(1.5rem, 3vw, 2.5rem) max(var(--irg-gutter), calc((100% - 82rem) / 2 + var(--irg-gutter))) clamp(1.75rem, 3vw, 2.5rem); background: var(--irg-canvas); border-bottom: 1px solid var(--irg-hair); }
.irg-hero__copy { grid-area: copy; align-self: end; min-width: 0; }
.irg-hero__h1 { font-size: clamp(2.3rem, 3.5vw, 3.7rem); line-height: 1.05; letter-spacing: -0.028em; font-weight: 500; color: var(--irg-navy); margin: 0 0 1.25rem; text-wrap: balance; }
.irg-hero__sub { font-size: clamp(1.0625rem, 1.25vw, 1.15rem); line-height: 1.6; margin: 0 0 1.5rem; }
.irg-hero__cta { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; }
.irg-hero__note { grid-area: note; align-self: start; font-size: 0.875rem; line-height: 1.55; color: var(--irg-steel); border-top: 1px solid var(--irg-navy); padding-top: 0.75rem; margin: 0.5rem 0 0; }
.irg-hero__figure { grid-area: fig; margin: 0; min-width: 0; border-top: 4px solid var(--irg-navy); padding-top: 0.5rem; }
.rl { display: block; width: 100%; height: auto; font-family: var(--irg-sans); overflow: visible; }
.irg-rl-key { list-style: none; margin: 0.35rem 0 0; padding: 0.6rem 0 0; border-top: 1px solid var(--irg-hair); display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.2rem 1.5rem; font-size: 0.8125rem; line-height: 1.4; color: var(--irg-slate); }
.irg-rl-key li { margin: 0; }
.irg-rl-key b { font-family: var(--irg-mono); font-size: 0.8125rem; color: var(--irg-navy); }
.irg-rl-cap { display: flex; gap: 0.75rem 1.5rem; align-items: flex-start; justify-content: space-between; font-size: 0.8125rem; line-height: 1.5; color: var(--irg-steel); margin: 0.6rem 0 0; padding-top: 0.6rem; border-top: 1px solid var(--irg-hair); }
.irg-rl-cap span { max-width: 52rem; }
.irg-replay { flex: none; font: inherit; font-family: var(--irg-mono); font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--irg-navy); background: transparent; border: 1px solid var(--irg-navy); border-radius: 0; min-height: 44px; padding: 0 1rem; cursor: pointer; }
.irg-replay:hover { background: var(--irg-navy); color: #fff; }

/* landscape: static rules are the finished state; the resting (inherent) state comes from the first keyframes of each animation */
.rl-b { fill: #141c43; fill-opacity: 0.04; }
.rl-b1 { fill-opacity: 0.02; } .rl-b2 { fill-opacity: 0.04; } .rl-b3 { fill-opacity: 0.06; } .rl-b4 { fill-opacity: 0.08; }
.rl-b5 { fill: #b2342c; fill-opacity: 0.05; } .rl-b6 { fill: #b2342c; fill-opacity: 0.09; } .rl-b7 { fill: #b2342c; fill-opacity: 0.14; } .rl-b8 { fill: #b2342c; fill-opacity: 0.2; } .rl-b9 { fill: #b2342c; fill-opacity: 0.27; } .rl-b10 { fill: #b2342c; fill-opacity: 0.34; }
.rl-c { stroke: #141c43; stroke-opacity: 0.3; stroke-width: 1; }
.rl-ci { stroke-opacity: 0.55; stroke-width: 1.4; }
.rl-app { stroke: #141c43; stroke-width: 3; stroke-dasharray: 12 8; }
.rl-tl { font: 600 20px var(--irg-mono); letter-spacing: 0.1em; fill: #141c43; paint-order: stroke; stroke: #fafafa; stroke-width: 6px; stroke-linejoin: round; }
.rl-axes path { stroke: #141c43; stroke-width: 1.8; fill: none; }
.rl-ax { font: 600 20px var(--irg-mono); letter-spacing: 0.14em; fill: #40455a; }
.rl-axa { stroke: #40455a; stroke-width: 1.8; fill: none; }
.rl-zone { font: 600 20px var(--irg-mono); letter-spacing: 0.12em; paint-order: stroke; stroke: #fafafa; stroke-width: 6px; stroke-linejoin: round; }
.rl-zone-hi { fill: #7f221c; }
.rl-zone-lo { fill: #141c43; }
.rl-chip { font: 600 21px var(--irg-mono); letter-spacing: 0.06em; fill: #141c43; }
.rl-chip-a { opacity: 0; }
.rl-rel { opacity: 0; }
.rl-rel path { stroke: #b2342c; stroke-width: 1.8; stroke-opacity: 0.7; }
.rl-ghost { fill: none; stroke: #141c43; stroke-width: 2.2; stroke-dasharray: 3 5; stroke-opacity: 0.75; }
.rl-arr { stroke: #141c43; stroke-width: 2.6; fill: none; }
.rl-arh { stroke: #141c43; stroke-width: 2.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.rl-ctl rect { fill: #fff; stroke: #141c43; stroke-width: 2.4; }
.rl-ctl text { font: 700 20px var(--irg-mono); fill: #141c43; }
.rl-rk { transform: translate(var(--dx), var(--dy)); }
.rl-ra { fill: #fff; stroke: #b2342c; stroke-width: 3.6; opacity: 0; }
.rl-rb { fill: #141c43; stroke: #141c43; stroke-width: 3.6; }
.rl-id { font: 700 20px var(--irg-mono); fill: #fff; }
.rl-name { font: 600 22px var(--irg-sans); fill: #141c43; paint-order: stroke; stroke: #fafafa; stroke-width: 8px; stroke-linejoin: round; }
.rl-la { opacity: 0; }
.rl-leg text { font: 500 20px var(--irg-sans); fill: #40455a; }
.rl-lga { fill: #fff; stroke: #b2342c; stroke-width: 3.2; }
.rl-lgb { fill: #141c43; }
.rl-lgd { fill: none; stroke: #b2342c; stroke-width: 2.4; }
.rl-lgc { fill: #fff; stroke: #141c43; stroke-width: 2.4; }

@media (prefers-reduced-motion: no-preference) {
	.rl.play .rl-app { animation: rl-march 40s linear infinite; }
	.rl.play .rl-rel { animation: rl-relgrp 0.9s ease-in-out 0.7s both; }
	.rl.play .rl-ctl { animation: rl-pop 0.45s cubic-bezier(0.3, 1.5, 0.5, 1) calc(1.4s + var(--i) * 1.5s) both; transform-box: fill-box; transform-origin: center; }
	.rl.play .rl-arr { stroke-dasharray: 1; animation: rl-draw 0.6s ease-out calc(1.6s + var(--i) * 1.5s) both; }
	.rl.play .rl-arh { animation: rl-fade 0.2s ease-out calc(2.95s + var(--i) * 1.5s) both; }
	.rl.play .rl-ghost { animation: rl-fade 0.3s ease-out calc(2.1s + var(--i) * 1.5s) both; }
	.rl.play .rl-la { animation: rl-fadeout 0.2s ease-in calc(1.85s + var(--i) * 1.5s) both; }
	.rl.play .rl-lb { animation: rl-fade 0.3s ease-out calc(3.2s + var(--i) * 1.5s) both; }
	.rl.play .rl-rk { animation: rl-move 1.1s cubic-bezier(0.55, 0, 0.25, 1) calc(2.1s + var(--i) * 1.5s) both; }
	.rl.play .rl-ra { animation: rl-ring 1.1s ease-in-out calc(2.1s + var(--i) * 1.5s) both; }
	.rl.play .rl-rb { animation: rl-ringb 1.1s ease-in-out calc(2.1s + var(--i) * 1.5s) both; }
	.rl.play .rl-id { animation: rl-idc 1.1s ease-in-out calc(2.1s + var(--i) * 1.5s) both; }
	.rl.play .rl-chip-a { animation: rl-chipa 9s linear 0s both; }
	.rl.play .rl-chip-b { animation: rl-fade 0.5s ease-out 9.1s both; }
}
@keyframes rl-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rl-fadeout { from { opacity: 1; } to { opacity: 0; } }
@keyframes rl-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes rl-march { to { stroke-dashoffset: -200; } }
@keyframes rl-move { from { transform: translate(0, 0); } to { transform: translate(var(--dx), var(--dy)); } }
@keyframes rl-ring { 0%, 48% { opacity: 1; } 52%, 100% { opacity: 0; } }
@keyframes rl-ringb { 0%, 48% { opacity: 0; } 52%, 100% { opacity: 1; } }
@keyframes rl-idc { 0%, 48% { fill: #141c43; } 52%, 100% { fill: #fff; } }
@keyframes rl-relgrp { from { opacity: 1; } to { opacity: 0; } }
@keyframes rl-pop { from { opacity: 0; transform: scale(0.2); } to { opacity: 1; transform: scale(1); } }
@keyframes rl-chipa { 0% { opacity: 1; } 96% { opacity: 1; } 100% { opacity: 0; } }

@media (max-width: 1000px) {
	.irg-hero { display: block; padding-top: 1.5rem; }
	.irg-hero__figure { margin-top: 1.75rem; }
	.irg-hero__note { margin-top: 1.25rem; }
	.irg-hero__copy { max-width: 42rem; }
}
@media (max-width: 600px) {
	.irg-hero { display: flex; flex-direction: column; padding-top: 1.1rem; padding-bottom: 1.5rem; }
	.irg-hero__copy { display: contents; }
	.irg-hero__copy > * { order: 1; }
	.irg-hero .irg-eyebrow { margin-bottom: 0.5rem; }
	.irg-hero__h1 { font-size: clamp(2.05rem, 9vw, 2.5rem); margin-bottom: 0.75rem; }
	.irg-hero__sub { margin-bottom: 1rem; }
	.irg-hero__sub .s2 { display: none; }
	.irg-hero__cta { margin-bottom: 1.25rem; }
	.irg-hero__cta .irg-btn { min-height: 48px; flex: 1 1 100%; }
	.irg-hero__figure { order: 2; margin-top: 0; overflow: hidden; }
	.irg-hero__note { display: none; }
	.rl { width: 100%; max-width: 100%; margin-left: 0; }
	.rl-name, .rl-zone, .rl-tl, .rl-leg { display: none; }

	.rl-id { font-size: 40px; }
	.rl-ra, .rl-rb, .rl-ghost { r: 30px; }
	.rl-ctl rect { width: 62px; height: 62px; x: -31px; y: -31px; }
	.rl-ctl text { font-size: 40px; }
	.rl-ctl text { transform: translateY(4px); }
	.rl-chip { font-size: 40px; }
	.rl-ax { font-size: 40px; }
	.rl-axa { display: none; }
	.rl-leg text { font-size: 24px; }
	.irg-rl-cap { flex-direction: column; }
}

/* ---------------------------------------------------------------------------
 * Home: sections
 * ------------------------------------------------------------------------- */
.irg-section { padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(3rem, 7vw, 6rem); }
.irg-section h2, .irg-trace h2, .irg-toolsec h2 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.06; letter-spacing: -0.025em; font-weight: 500; margin: 0 0 1.1rem; text-wrap: balance; }
.irg-lede { max-width: 40rem; font-size: clamp(1.0625rem, 1.5vw, 1.2rem); line-height: 1.6; margin: 0 0 1.5rem; }
.irg-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
@media (max-width: 900px) { .irg-split { grid-template-columns: 1fr; } }

.irg-scale { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--irg-paper); border: 1px solid var(--irg-hair); font-size: 0.9375rem; }
.irg-scale caption { text-align: left; font-family: var(--irg-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--irg-steel); padding: 0 0 0.75rem; caption-side: top; }
.irg-scale th, .irg-scale td { padding: 1rem 1rem; border-bottom: 1px solid var(--irg-hair); text-align: left; vertical-align: middle; }
.irg-scale tbody tr:last-child td { border-bottom: 0; }
.irg-scale thead th { background: var(--irg-wash); color: var(--irg-navy); font-family: var(--irg-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.irg-scale td:first-child { font-family: var(--irg-serif); font-size: 1.7rem; font-weight: 500; color: var(--irg-navy); white-space: nowrap; border-left: 6px solid var(--irg-hair); }
.irg-scale .b-low td:first-child { border-left-color: var(--irg-low); }
.irg-scale .b-med td:first-child { border-left-color: var(--irg-med); }
.irg-scale .b-high td:first-child { border-left-color: var(--irg-high); }
.irg-scale .b-crit td:first-child { border-left-color: var(--irg-crit); }
.irg-scale td:last-child { font-family: var(--irg-mono); font-size: 0.8125rem; color: var(--irg-slate); }

/* governance architecture: risk -> control -> evidence -> decision */
.irg-trace { position: relative; background: var(--irg-ink); color: #d9dcea; padding: clamp(3.5rem, 8vw, 7rem) 0; overflow: hidden; }
.irg-trace::before { content: ""; position: absolute; inset: 0; background: url("assets/img/contours.svg") no-repeat left center / cover; opacity: 0.55; filter: invert(1); pointer-events: none; }
.irg-trace .irg-wrap { position: relative; }
.irg-trace .irg-eyebrow { color: #c3c8dc; }
.irg-trace h2 { color: #fff; max-width: 46rem; }
.irg-trace .irg-lede { color: #d9dcea; }
.irg-trace a { color: #fff; }
.irg-trace__head { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.irg-chain__cols, .irg-threads li { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 3.4rem; }
.irg-chain__cols { font-family: var(--irg-mono); font-size: 0.8125rem; letter-spacing: 0.16em; text-transform: uppercase; color: #c3c8dc; padding: 0 0 0.9rem; border-bottom: 1px solid rgba(255, 255, 255, 0.2); margin-bottom: 1.6rem; font-weight: 600; }
.irg-threads { list-style: none; margin: 0; padding: 0; }
.irg-threads li { margin: 0 0 1.5rem; position: relative; }
.nd { position: relative; display: flex; flex-direction: column; gap: 0.3rem; border: 0; border-top: 2px solid rgba(255, 255, 255, 0.7); background: none; border-radius: 0; padding: 1rem 0.25rem 0.5rem 0; min-height: 11rem; }
.nd .gl { width: 34px; height: 34px; margin-bottom: 0.6rem; fill: none; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.nd--risk .gl { stroke: #f4a49a; } .nd--risk .gl .f { fill: #f4a49a; stroke: none; }
.nd--ctl .gl { stroke: #fff; } .nd--ctl .gl .t { stroke: #fff; stroke-width: 2.4; }
.nd--evd .gl { stroke: #9fd8b6; }
.nd--dec .gl { stroke: #ecd083; }
.nd .k { display: none; font-family: var(--irg-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: #c3c8dc; }
.nd .id { position: absolute; top: 1.2rem; left: 3.1rem; font-family: var(--irg-mono); font-size: 0.875rem; font-weight: 600; color: #c3c8dc; }
.nd b { font-family: var(--irg-serif); font-weight: 500; font-size: 1.2rem; line-height: 1.2; color: #fff; }
.nd .s { font-size: 0.9375rem; line-height: 1.5; color: #e1e4f0; }
.nd + .nd::before { content: ""; position: absolute; right: 100%; top: 2.1rem; width: 3.4rem; height: 2px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.25), #fff); transform-origin: left center; }
.nd + .nd::after { content: ""; position: absolute; right: 100%; top: calc(2.1rem - 4px); width: 9px; height: 9px; border-top: 2px solid #fff; border-right: 2px solid #fff; transform: rotate(45deg); transform-origin: center; margin-right: 1px; }
.nd--gap { border-top: 2px dashed #f4a49a; background: none; }
.nd--gap .gl { stroke: #f4a49a; stroke-dasharray: 3 3; }
.nd--gap b { color: #ffd6d0; }
.nd--void { border-top: 2px dashed #f4a49a; background: none; }
.nd--gap::before, .nd--void::before { background: repeating-linear-gradient(90deg, #f4a49a 0 5px, transparent 5px 9px) !important; }
.nd--void::after, .nd--gap::after { border-color: #f4a49a !important; }
.irg-trace__cap { margin: 1.75rem 0 0; font-size: 0.9375rem; color: #d9dcea; max-width: 52rem; }
.irg-trace__cap a { color: #fff; }

@media (max-width: 1000px) {
	.irg-chain__cols { display: none; }
	.irg-threads li { grid-template-columns: 1fr; gap: 2.4rem 0; padding: 0 0 2.2rem; margin: 0 0 2.2rem; border-bottom: 1px solid rgba(255, 255, 255, 0.16); max-width: 34rem; }
	.irg-threads li:last-child { border-bottom: 0; }
	.nd { min-height: 0; padding-right: 0.25rem; }
	.nd .k { display: block; }
	.nd + .nd::before { right: auto; left: 2.1rem; top: auto; bottom: 100%; width: 2px; height: 2.4rem; background: linear-gradient(0deg, #fff, rgba(255, 255, 255, 0.25)); transform-origin: top center; }
	.nd + .nd::after { right: auto; left: calc(2.1rem - 4px); top: auto; bottom: calc(100% - 3px); transform: rotate(135deg); margin: 0; }
	.nd--gap::before, .nd--void::before { background: repeating-linear-gradient(180deg, #f4a49a 0 5px, transparent 5px 9px) !important; }
}

/* reveal: armed by JS only (so no-JS and reduced motion see the finished diagram) */
@media (prefers-reduced-motion: no-preference) {
	.irg-armed .th .nd:not(.nd--gap):not(.nd--void) { border-top-color: rgba(255, 255, 255, 0.16); }
	.irg-armed .th .nd + .nd::before { transform: scaleX(0); }
	.irg-armed .th .nd + .nd::after { opacity: 0; }
	.irg-armed.is-in .th .nd:not(.nd--gap):not(.nd--void) { border-top-color: rgba(255, 255, 255, 0.7); transition: border-top-color 0.6s ease; transition-delay: calc(var(--r) * 0.85s + var(--c) * 0.34s); }
	.irg-armed.is-in .th .nd + .nd::before { transform: scaleX(1); transition: transform 0.5s ease; transition-delay: calc(var(--r) * 0.85s + var(--c) * 0.34s - 0.24s); }
	.irg-armed.is-in .th .nd + .nd::after { opacity: 1; transition: opacity 0.3s ease; transition-delay: calc(var(--r) * 0.85s + var(--c) * 0.34s + 0.2s); }
	.irg-trace.is-in .nd--gap { animation: irg-gap 2.6s ease-in-out calc(2 * 0.85s + 2 * 0.34s + 0.8s) infinite; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 1000px) {
	.irg-armed .th .nd + .nd::before { transform: scaleY(0); }
	.irg-armed.is-in .th .nd + .nd::before { transform: scaleY(1); }
}
@keyframes irg-gap { 0%, 100% { box-shadow: 0 0 0 0 rgba(244, 164, 154, 0); } 50% { box-shadow: 0 0 0 6px rgba(244, 164, 154, 0.22); } }

/* guides index */
.irg-guides { background: var(--irg-canvas); }
.irg-ledger { list-style: none; margin: 2.25rem 0 0; padding: 0; border-top: 2px solid var(--irg-navy); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 6vw, 5rem); }
.irg-ledger li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 0.1rem 1rem; align-items: baseline; padding: 1.35rem 0 1.5rem; border-bottom: 1px solid var(--irg-hair); margin: 0; }
.irg-ledger .lead { grid-column: 1 / -1; padding: 2rem 0 2.25rem; }
.irg-ledger .n { font-family: var(--irg-mono); font-weight: 600; color: var(--irg-steel); font-size: 0.875rem; grid-row: span 2; }
.irg-ledger a { font-family: var(--irg-serif); font-weight: 500; color: var(--irg-navy); font-size: clamp(1.3rem, 2vw, 1.65rem); line-height: 1.2; letter-spacing: -0.01em; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; gap: 0.5rem; }
.irg-ledger a::after { content: "\2192"; font-family: var(--irg-sans); opacity: 0.35; transition: transform 0.25s, opacity 0.25s; }
.irg-ledger a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.irg-ledger a:hover::after { opacity: 1; transform: translateX(4px); }
.irg-ledger .d { color: var(--irg-slate); font-size: 0.9688rem; line-height: 1.55; max-width: 36rem; grid-column: 2; }
.irg-ledger .lead a { font-size: clamp(1.9rem, 4vw, 3.2rem); letter-spacing: -0.02em; }
.irg-ledger .lead .d { font-size: 1.15rem; max-width: 40rem; }
@media (max-width: 760px) { .irg-ledger { grid-template-columns: 1fr; } .irg-ledger li { grid-template-columns: 2.4rem minmax(0, 1fr); } }

/* tool entry */
.irg-toolsec { background: var(--irg-wash) url("assets/img/contours.svg") no-repeat right center / cover; border-top: 1px solid var(--irg-hair); padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.irg-toolband { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem 3rem; align-items: end; }
.irg-toolband h2 { margin: 0 0 1rem; }
.irg-toolband p { margin: 0; max-width: 44rem; }
.irg-toolband .irg-eyebrow { margin-bottom: 1rem; }
@media (max-width: 760px) { .irg-toolband { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------------
 * Lists (archive / index / search)
 * ------------------------------------------------------------------------- */
.irg-list .wp-block-post-template { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--irg-navy); }
.irg-list .wp-block-post-template > li { margin: 0; padding: 1.35rem 0; border-bottom: 1px solid var(--irg-hair); }
.irg-list .wp-block-post-title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 500; line-height: 1.15; margin: 0 0 0.35rem; }
.irg-list .wp-block-post-title a { text-decoration: none; }
.irg-list .wp-block-post-title a:hover { text-decoration: underline; }
.irg-list .wp-block-post-excerpt { margin: 0; font-size: 1rem; }
.irg-list .wp-block-post-excerpt__excerpt { margin: 0; }
.irg-list .wp-block-query-pagination { margin-top: 1.5rem; gap: 1rem; }
.irg-list .wp-block-query-pagination a { display: inline-flex; align-items: center; min-height: 44px; }
.irg-notfound { font-family: var(--irg-mono); font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--irg-crit); font-weight: 600; margin: 0 0 1rem; }
.wp-block-search__inside-wrapper { gap: 0.5rem; }
.wp-block-search__input { min-height: 48px; border: 1px solid #8a8fa3; border-radius: 0; padding: 0 0.8rem; }
.wp-block-search__button { min-height: 48px; background: var(--irg-navy); color: #fff; border: 1px solid var(--irg-navy); border-radius: 0; padding: 0 1.2rem; font: inherit; font-weight: 600; cursor: pointer; }

/* ---------------------------------------------------------------------------
 * Risk matrix tool
 * ------------------------------------------------------------------------- */
.rm { margin: 1.5rem 0; }
.rm-panel { background: var(--irg-paper); border: 1px solid var(--irg-hair); border-radius: 0; padding: clamp(1rem, 3vw, 1.75rem); margin-bottom: 1.5rem; }
.rm-panel h2, .rm-panel h3 { margin-top: 0; }
.rm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.rm-field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.rm-field--wide { grid-column: 1 / -1; }
.rm label, .rm legend { font-weight: 600; color: var(--irg-navy); font-size: 0.9688rem; }
.rm .rm-hint { font-size: 0.875rem; color: var(--irg-steel); margin: 0; }
.rm input[type="text"], .rm select { font: inherit; color: var(--irg-navy); background: #fff; border: 1px solid #8a8fa3; border-radius: 0; min-height: 44px; padding: 0.4rem 0.7rem; width: 100%; box-sizing: border-box; }
.rm fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.rm-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem; align-items: center; }
.rm-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 1.1rem; border-radius: 0; border: 1px solid var(--irg-navy); background: var(--irg-navy); color: #fff; font: inherit; font-weight: 500; cursor: pointer; }
.rm-btn:hover { background: #0c1130; }
.rm-btn--quiet { background: #fff; color: var(--irg-navy); }
.rm-btn--quiet:hover { background: var(--irg-navy); color: #fff; }
.rm-err { color: #8f1f19; font-weight: 600; margin: 0.75rem 0 0; min-height: 1.4em; }
.rm-boundary { background: var(--irg-t-med); border: 1px solid var(--irg-navy); border-radius: 0; padding: 0.75rem 1rem; color: var(--irg-navy); font-size: 0.9375rem; margin: 0 0 1.25rem; }
.rm-results { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 1.5rem 2rem; align-items: start; }
@media (max-width: 900px) { .rm-results { grid-template-columns: 1fr; } .rm-grid { grid-template-columns: 1fr; } }
.rm-matrix svg { display: block; width: 100%; max-width: 360px; height: auto; font-family: var(--irg-sans); }
.rm-matrix .m-mk { fill: #fff; stroke: var(--irg-navy); stroke-width: 1.5; }
.rm-matrix .m-t { font: 700 14px var(--irg-mono); fill: var(--irg-navy); }
.rm-matrix .m-sc { font: 500 14px var(--irg-mono); fill: var(--irg-slate); }
.rm-matrix .m-ax { font: 600 14px var(--irg-sans); fill: var(--irg-steel); letter-spacing: 0.06em; }
.rm-tablewrap { overflow-x: auto; max-width: 100%; }
.rm table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; background: #fff; }
.rm th, .rm td { border: 1px solid var(--irg-hair); padding: 0.55rem 0.7rem; text-align: left; vertical-align: top; }
.rm thead th { background: var(--irg-wash); color: var(--irg-navy); }
.rm td.num, .rm th.num { font-family: var(--irg-mono); font-weight: 600; white-space: nowrap; }
.rm .rm-flag { font-size: 0.8125rem; font-family: var(--irg-mono); font-weight: 600; color: var(--irg-navy); }
.rm textarea { width: 100%; box-sizing: border-box; min-height: 12rem; font-family: var(--irg-mono); font-size: 0.8125rem; line-height: 1.5; color: var(--irg-navy); background: #fff; border: 1px solid #8a8fa3; border-radius: 0; padding: 0.75rem; }
.rm-empty { color: var(--irg-steel); margin: 0; }
.rm-treat { margin: 0.2rem 0 0; padding-left: 1.1rem; font-size: 0.875rem; }
.rm-treat li { margin: 0; }

@media (max-width: 600px) {
}

@media print {
	.irg-header, .irg-footer, .irg-skip, .rm-form-panel, .rm-actions, .irg-crumbs { display: none !important; }
	body { background: #fff; }
	.rm-panel { border: 0; padding: 0; }
}

/* ---------------------------------------------------------------------------
 * Inner-page layout: reading column plus a sticky rail
 * ------------------------------------------------------------------------- */
.irg-pagehead, .irg-body { padding-left: max(var(--irg-gutter), calc((100% - 82rem) / 2 + var(--irg-gutter))); padding-right: max(var(--irg-gutter), calc((100% - 82rem) / 2 + var(--irg-gutter))); }
.irg-body--rail { display: grid; grid-template-columns: minmax(0, 44rem) minmax(15rem, 19rem); gap: 2rem clamp(2.5rem, 7vw, 6rem); align-items: start; }
.irg-body--wide > * { max-width: 74rem; }
.irg-body > .wp-block-post-content { margin: 0; }
.irg-rail { position: sticky; top: 5.5rem; background: none; border: 0; border-top: 4px solid var(--irg-navy); border-radius: 0; padding: 1rem 0 0; font-size: 0.9375rem; line-height: 1.55; }
.irg-rail p { margin: 0 0 0.85rem; }
.irg-rail .irg-eyebrow { margin-bottom: 0.6rem; }
.irg-rail__t { font-family: var(--irg-serif); font-size: 1.4rem; line-height: 1.15; color: var(--irg-navy); }
.irg-rail__n { font-size: 0.8125rem; color: var(--irg-steel); border-top: 1px solid var(--irg-hair); padding-top: 0.85rem; margin: 0.25rem 0 0 !important; }
@media (max-width: 1000px) { .irg-body--rail { grid-template-columns: minmax(0, 1fr); } .irg-rail { position: static; max-width: 44rem; } }

.irg-wrap, .irg-header__in, .irg-footer__in, .irg-footer__base { box-sizing: border-box; }

/* in-page contents (built by nav.js from the article's own h2 headings) */
.irg-toc { margin: 0 0 1.5rem; padding: 0 0 1.25rem; border-bottom: 1px solid var(--irg-hair); }
.irg-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.irg-toc li { counter-increment: toc; margin: 0; border-top: 1px solid var(--irg-hair); }
.irg-toc li:first-child { border-top: 0; }
.irg-toc a { display: flex; gap: 0.7rem; align-items: baseline; min-height: 44px; padding: 0.5rem 0; color: var(--irg-navy); text-decoration: none; font-size: 0.9375rem; line-height: 1.35; }
.irg-toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--irg-mono); font-size: 0.8125rem; color: var(--irg-steel); }
.irg-toc a:hover { text-decoration: underline; }
.irg-rail__cta > :last-child { margin-bottom: 0.85rem; }

/* header: mobile menu (details/summary: works without JS) */
.irg-menu { display: none; }
.irg-header { border-top: 4px solid var(--irg-navy); }
@media (max-width: 1000px) {
	.irg-header__in { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; padding: 0 var(--irg-gutter); }
	.irg-nav-d { display: none; }
	.irg-menu { display: block; }
	.irg-menu > summary { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; padding: 0 0.9rem; border: 1px solid var(--irg-navy); color: var(--irg-navy); font-weight: 600; font-size: 0.9375rem; cursor: pointer; list-style: none; user-select: none; }
	.irg-menu > summary::-webkit-details-marker { display: none; }
	.irg-menu > summary::after { content: ""; width: 14px; height: 10px; background: linear-gradient(var(--irg-navy) 0 2px, transparent 2px 4px, var(--irg-navy) 4px 6px, transparent 6px 8px, var(--irg-navy) 8px 10px); }
	.irg-menu[open] > summary { background: var(--irg-navy); color: #fff; }
	.irg-menu[open] > summary::after { background: linear-gradient(#fff 0 2px, transparent 2px 4px, #fff 4px 6px, transparent 6px 8px, #fff 8px 10px); }
	.irg-menu__list { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 4px solid var(--irg-navy); box-shadow: 0 18px 30px rgba(14, 21, 53, 0.18); max-height: calc(100svh - 70px); overflow-y: auto; }
	.irg-menu__list ul { list-style: none; margin: 0 auto; padding: 0 var(--irg-gutter); max-width: 82rem; }
	.irg-menu__list li { margin: 0; border-top: 1px solid var(--irg-hair); }
	.irg-menu__list li:first-child { border-top: 0; }
	.irg-menu__list a { display: flex; align-items: center; min-height: 52px; color: var(--irg-navy); font-size: 1.0625rem; font-weight: 500; text-decoration: none; }
	.irg-menu__list .irg-menu__tool a { font-weight: 700; }
	.irg-menu__list .irg-menu__tool a::after { content: "\2192"; margin-left: auto; }
}

@media (max-width: 1000px) {
	.irg-threads li { gap: 1.2rem 0; padding: 0 0 1.4rem; margin: 0 0 1.4rem; }
	.nd { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); column-gap: 0.75rem; row-gap: 0.1rem; align-content: start; padding: 0.8rem 0.25rem 0.2rem 0; }
	.nd .gl { grid-row: 1 / span 4; grid-column: 1; width: 32px; height: 32px; margin: 0; }
	.nd > :not(.gl) { grid-column: 2; }
	.nd .id { left: auto; right: 0.25rem; top: 0.8rem; }
	.nd + .nd::before { height: 1.2rem; left: calc(1.3rem - 1px); }
	.nd + .nd::after { left: calc(1.3rem - 5px); }
	.nd b { font-size: 1.1rem; }
	.nd .s { font-size: 0.9rem; }
	.irg-trace__head { margin-bottom: 1.5rem; }
	.irg-section { padding-top: 2.5rem; padding-bottom: 2.5rem; }
}

/* ---------------------------------------------------------------------------
 * Tool page: wide layout whatever template the page uses, and a results table
 * with real column widths (wide) or labelled rows (narrow). CSS only.
 * ------------------------------------------------------------------------- */
.irg-tool-page .irg-body--rail { grid-template-columns: minmax(0, 1fr); }
.irg-tool-page .irg-rail { display: none; }
.irg-tool-page .entry-content, .irg-tool-page .entry-content > * { max-width: 74rem; margin-left: 0 !important; margin-right: 0 !important; }
.rm-tablewrap { container-type: inline-size; overflow-x: visible; }
.rm table.rm-stack { table-layout: fixed; width: 100%; font-size: 0.875rem; line-height: 1.45; }
.rm table.rm-stack th, .rm table.rm-stack td { padding: 0.55rem 0.55rem; overflow-wrap: anywhere; hyphens: auto; box-sizing: border-box; }
.rm table.rm-stack th:nth-child(1) { width: 3rem; }
.rm table.rm-stack th:nth-child(2) { width: 3rem; }
.rm table.rm-stack th:nth-child(3) { width: 15%; }
.rm table.rm-stack th:nth-child(4) { width: 4.6rem; }
.rm table.rm-stack th:nth-child(5) { width: 3.4rem; }
.rm table.rm-stack th:nth-child(6) { width: 6.8rem; }
.rm table.rm-stack th:nth-child(7) { width: 7rem; }
.rm table.rm-stack th:nth-child(9) { width: 5.6rem; }
.rm table.rm-stack td .rm-btn { display: flex; width: 100%; min-height: 40px; padding: 0 0.3rem; margin: 0 0 0.4rem; font-size: 0.8125rem; }
.rm table.rm-stack td .rm-hint, .rm table.rm-stack .rm-treat { font-size: 0.8125rem; }
.rm table.rm-stack .rm-treat { margin-top: 0.3rem; padding-left: 1rem; }
.rm table.rm-stack td strong { color: var(--irg-navy); }
@container (max-width: 940px) {
	.rm table.rm-stack, .rm table.rm-stack tbody, .rm table.rm-stack caption { display: block; width: 100%; box-sizing: border-box; }
	.rm table.rm-stack thead { display: none; }
	.rm table.rm-stack tr { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.25rem, 1fr)); gap: 0; border: 1px solid var(--irg-navy); border-top-width: 3px; margin-bottom: 0.9rem; background: #fff; }
	.rm table.rm-stack td { display: block; background: #fff; border: 0; box-shadow: 0 0 0 0.5px var(--irg-hair); padding: 0.5rem 0.75rem 0.6rem; min-width: 0; width: auto; }
	.rm table.rm-stack td:nth-child(3), .rm table.rm-stack td:nth-child(8), .rm table.rm-stack td:nth-child(9) { grid-column: 1 / -1; }
	.rm table.rm-stack td::before { content: attr(data-label); display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--irg-steel); margin-bottom: 0.15rem; }
	.rm table.rm-stack td .rm-btn { display: inline-flex; width: auto; margin: 0 0.4rem 0 0; padding: 0 0.9rem; }
}
/* the theme provides one skip link; hide core's duplicate */
.skip-link:not(.irg-skip) { display: none !important; }

/* MISSION-012: 404 wayfinding */
.irg-lost { max-width: calc(82rem - 2 * var(--irg-gutter)); }
.irg-lost-intro { margin: 0 0 1.25rem; }
.irg-lost { display: grid; grid-template-columns: minmax(0, 26rem) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: stretch; }
.irg-lost__fig { display: flex; flex-direction: column; }
.irg-lost__go { display: flex; flex-direction: column; }
.irg-lost__go ul { flex: 1; display: flex; flex-direction: column; }
.irg-lost__go li { flex: 1; display: flex; }
.irg-lost__go li a { flex: 1; align-content: center; }
.irg-lost__svg { margin-top: auto; box-sizing: border-box; display: block; width: 100%; height: auto; border: 1px solid var(--irg-hair); background: var(--irg-paper); padding: 0.75rem; }
.irg-lost__k { font-family: var(--irg-serif); font-variant: small-caps; letter-spacing: 0.06em; color: var(--irg-steel); margin: 0 0 0.5rem; }
.irg-lost ul { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--irg-navy); }
.irg-lost li { margin: 0; border-bottom: 1px solid var(--irg-hair); }
.irg-lost li a { display: grid; gap: 0.15rem; padding: 0.9rem 0; text-decoration: none; color: var(--irg-navy); min-height: 44px; }
.irg-lost li b { font-family: var(--irg-serif); font-size: 1.25rem; font-weight: 500; }
.irg-lost li span { color: var(--irg-slate); font-size: 0.9375rem; }
.irg-lost li a:hover b { text-decoration: underline; text-decoration-thickness: 2px; }
@media (max-width: 760px) { .irg-lost { grid-template-columns: minmax(0, 1fr); } }
/* MISSION-012: single-column tablet - keep the reading column on the page gutter instead of centred (it sat 25px inside the headline) */
.irg-body--rail .entry-content > :where(:not(.alignfull):not(.alignwide)) { margin-left: 0 !important; margin-right: 0 !important; }

/* MISSION-012: symbol key as HTML for the phone layout (the in-SVG legend is too small there) */
.irg-rl-sym { display: none; flex-wrap: wrap; gap: 0.3rem 1.1rem; margin: 0.6rem 0 0; font-family: var(--irg-mono); font-size: 0.8125rem; color: var(--irg-slate); }
.irg-rl-sym span { display: inline-flex; align-items: center; gap: 0.4rem; }
.irg-rl-sym i { display: inline-block; width: 0.8rem; height: 0.8rem; box-sizing: border-box; }
.irg-rl-sym .s-before { border: 2px solid var(--irg-crit); border-radius: 50%; }
.irg-rl-sym .s-after { background: var(--irg-navy); border-radius: 50%; }
.irg-rl-sym .s-ctl { border: 2px solid var(--irg-navy); background: #fff; }
.irg-rl-sym .s-dep { width: 1.1rem; height: 0; border-top: 2px solid var(--irg-crit); }
@media (max-width: 600px) { .irg-rl-sym { display: flex; } }
