/* ==========================================================================
   SEO cost guide (single-guide-seo-cost.php)
   Everything is scoped under .sg so no other page is affected.
   Colours and fonts come from brand.css (--navy, --orange, --link, Red Hat).
   ========================================================================== */

.sg {
  --sg-ink: #16223f;
  --sg-muted: #4a5470;
  --sg-rule: #d5dbe7;
  --sg-tint: #f4f6fa;
  --sg-measure: 720px;
  background: #fff;
  color: var(--sg-ink);
  font-family: var(--font-body);
}
.sg *, .sg *::before, .sg *::after { box-sizing: border-box; }
.sg-wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.sg a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.sg a:hover { color: var(--navy); }
.sg :focus-visible { outline: 2px solid var(--orange-dark); outline-offset: 3px; border-radius: 2px; }
.sg [hidden] { display: none !important; }
.sg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sg [id] { scroll-margin-top: 104px; }

/* The guide has its own calls to action in context, so the floating desktop button is not shown here. */
.twl-guide .sticky-cta { display: none !important; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.sg-hero { padding: 28px 0 28px; border-bottom: 1px solid var(--sg-rule); }
.sg-hero .page-breadcrumbs { margin: 0 0 22px; padding: 0; background: none; }
.sg-hero .breadcrumb-list { display: flex; flex-wrap: wrap; gap: 4px 8px; list-style: none; margin: 0; padding: 0; font-size: .8125rem; color: var(--sg-muted); }
.sg-hero .breadcrumb-list li { display: inline-flex; gap: 8px; align-items: center; min-width: 0; }
.sg-hero .breadcrumb-list a { color: var(--sg-muted); text-decoration: none; }
.sg-hero .breadcrumb-list a:hover { color: var(--link); text-decoration: underline; }
.sg-hero .breadcrumb-list [aria-current] { color: var(--sg-ink); display: inline-block; max-width: 34ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.sg-hero__label { margin: 0 0 14px; color: var(--navy); }
.sg-hero__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.875rem, 1.2rem + 2.6vw, 2.875rem); line-height: 1.08; letter-spacing: -.02em; color: var(--navy); margin: 0; max-width: 24ch; text-wrap: balance; }
.sg-hero__dek { font-size: clamp(1rem, .95rem + .3vw, 1.1875rem); line-height: 1.5; color: var(--sg-muted); margin: 14px 0 0; max-width: 68ch; }
.sg-byline { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px 40px; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--sg-rule); font-size: .875rem; line-height: 1.5; }
.sg-byline__who { margin: 0; font-weight: 700; color: var(--navy); }
.sg-byline__who span { font-weight: 400; color: var(--sg-muted); margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--sg-rule); }
.sg-byline__meta { display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 0; }
.sg-byline__meta div { display: flex; gap: 6px; align-items: baseline; }
.sg-byline__meta dt { color: var(--sg-muted); }
.sg-byline__meta dt::after { content: ":"; }
.sg-byline__meta dd { margin: 0; font-weight: 600; color: var(--navy); }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.sg-layout { display: grid; grid-template-columns: 228px minmax(0, 1fr); gap: 72px; align-items: start; padding-block: 36px 96px; }
.sg-main { min-width: 0; }
.sg-side { position: sticky; top: 92px; max-height: calc(100vh - 112px); display: flex; flex-direction: column; gap: 20px; }
.sg-toc--desktop { overflow-y: auto; min-height: 0; padding-right: 8px; scrollbar-width: thin; }
.sg-toc__head { font-family: var(--font-display); font-size: .6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sg-muted); margin: 0 0 8px; }
.sg-toc__list + .sg-toc__head, .sg-toc__tools + .sg-toc__head { margin-top: 22px; }
.sg-toc ol, .sg-toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--sg-rule); }
.sg-toc li { margin: 0; }
.sg-toc li a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent; font-size: .8125rem; line-height: 1.35; color: var(--sg-muted); text-decoration: none; }
.sg-toc li a:hover { color: var(--navy); border-left-color: var(--sg-muted); }
.sg-toc li a[aria-current] { color: var(--navy); font-weight: 700; border-left-color: var(--orange-dark); }
.sg-toc__tools li a { color: var(--navy); font-weight: 600; }
.sg-side__cta { flex: none; border-top: 2px solid var(--navy); padding-top: 12px; font-size: .8125rem; }
.sg-side__cta p { margin: 0 0 4px; color: var(--sg-muted); }
.sg-side__cta a { font-family: var(--font-display); font-weight: 700; font-size: .9375rem; }
.sg-toc--mobile { display: none; }

/* ── Article text ───────────────────────────────────────────────────────── */
.sg-body { font-size: 1.0625rem; line-height: 1.72; }
.sg-body > * { max-width: var(--sg-measure); }
.sg-body > .sg-wide, .sg-body > .sg-table, .sg-body > .sg-cta { max-width: none; }
.sg-body p { margin: 0 0 1.15em; }
.sg-body h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); line-height: 1.18; letter-spacing: -.015em; color: var(--navy); margin: 72px 0 20px; padding-top: 28px; border-top: 1px solid var(--navy); max-width: none; text-wrap: balance; }
.sg-body h2::before { content: ""; display: block; width: 26px; height: 10px; background: var(--orange); transform: skewX(-20deg); margin: 0 0 16px 2px; }
.sg-body h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1.3; color: var(--navy); margin: 40px 0 12px; }
.sg-body h4 { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--navy); margin: 24px 0 8px; }
.sg-body ul, .sg-body ol { margin: 0 0 1.25em; padding-left: 1.3em; }
.sg-body li { margin-bottom: .45em; }
.sg-body li::marker { color: var(--sg-muted); }
.sg-body strong { font-weight: 700; color: var(--navy); }
.sg-note { font-size: .875rem; line-height: 1.55; color: var(--sg-muted); margin-top: -4px !important; }

/* Direct answer */
.sg-answer { border-top: 4px solid var(--navy); border-bottom: 1px solid var(--sg-rule); padding: 22px 0 6px; margin: 0 0 8px; max-width: none !important; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); column-gap: 48px; }
.sg-answer__label { grid-column: 1 / -1; font-family: var(--font-display); font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sg-muted); margin: 0 0 6px !important; }
.sg-answer__figure { grid-column: 1; font-family: var(--font-display); font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.75rem); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 12px !important; }
.sg-answer__figure strong { font-weight: 800; }
.sg-answer__text { grid-column: 1; font-size: 1rem; line-height: 1.6; }
.sg-answer__note { grid-column: 2; grid-row: 2 / span 2; align-self: start; font-size: .9375rem; line-height: 1.6; color: var(--sg-muted); border-left: 1px solid var(--sg-rule); padding-left: 24px; }

/* Key takeaways: first H2 sits directly under the answer */
.sg-body h2#key-takeaways { margin-top: 36px; padding-top: 0; border-top: 0; font-size: 1.25rem; }
.sg-body h2#key-takeaways::before { display: none; }
.sg-body h2#key-takeaways + ul { list-style: none; padding: 0; }
.sg-body h2#key-takeaways + ul li { position: relative; padding: 10px 0 10px 30px; margin: 0; border-top: 1px solid var(--sg-rule); }
.sg-body h2#key-takeaways + ul li::before { content: ""; position: absolute; left: 4px; top: 1.15em; width: 14px; height: 8px; background: var(--orange); transform: skewX(-20deg); }

/* Jump links */
.sg-jump { margin: 28px 0 40px; padding: 14px 0; border-block: 1px solid var(--sg-rule); max-width: none !important; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 24px; }
.sg-jump__label { margin: 0 !important; font-family: var(--font-display); font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sg-muted); }
.sg-jump ul { display: flex; flex-wrap: wrap; gap: 4px 24px; list-style: none; margin: 0; padding: 0; }
.sg-jump li { margin: 0; }
.sg-jump a { display: inline-block; padding: 6px 0; font-family: var(--font-display); font-weight: 700; font-size: .9375rem; }

/* ── Tables ─────────────────────────────────────────────────────────────── */
.sg-table { overflow-x: auto; margin: 28px 0 14px; -webkit-overflow-scrolling: touch; }
.sg-table table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.45; font-variant-numeric: tabular-nums; }
.sg-table caption { caption-side: top; text-align: left; font-family: var(--font-display); font-weight: 700; color: var(--navy); padding-bottom: 10px; }
.sg-table th, .sg-table td { padding: 12px 16px 12px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--sg-rule); }
.sg-table th:last-child, .sg-table td:last-child { padding-right: 0; }
.sg-table thead th { font-family: var(--font-display); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sg-muted); border-bottom: 2px solid var(--navy); vertical-align: bottom; }
.sg-table tbody td:first-child, .sg-table tbody th { font-weight: 600; color: var(--navy); }
.sg-table .num { text-align: right; white-space: nowrap; }
.sg-table[data-framework] tbody { counter-reset: fw; }
.sg-table[data-framework] tbody td:first-child { font-family: var(--font-display); font-weight: 800; font-size: 1.0625rem; white-space: nowrap; padding-right: 28px; }
.sg-table[data-framework] tbody td:first-child::before { counter-increment: fw; content: counter(fw); display: inline-block; width: 1.6em; color: var(--orange-dark); }

/* ── Figures and charts ─────────────────────────────────────────────────── */
.sg-fig { margin: 32px 0; padding: 20px 0 0; border-top: 2px solid var(--navy); }
.sg-fig__cap { font-size: .9375rem; line-height: 1.5; color: var(--sg-muted); margin-bottom: 20px; max-width: 70ch; }
.sg-fig__cap strong { display: block; font-family: var(--font-display); font-size: 1.0625rem; color: var(--navy); margin-bottom: 2px; }
.sg-fig__src { font-size: .8125rem; line-height: 1.5; color: var(--sg-muted); margin: 16px 0 0 !important; padding-top: 10px; border-top: 1px solid var(--sg-rule); }

.sg-range__row { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 4px 24px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--sg-rule); }
.sg-range__name { margin: 0 !important; font-size: .875rem; line-height: 1.4; color: var(--sg-muted); grid-row: span 2; }
.sg-range__name b { display: block; font-family: var(--font-display); font-size: 1rem; color: var(--navy); }
.sg-range__track { position: relative; height: 22px; background: linear-gradient(var(--sg-rule), var(--sg-rule)) 0 50% / 100% 1px no-repeat; }
.sg-range__band { position: absolute; top: 6px; height: 10px; background: #c5cde0; }
.sg-range__dot { position: absolute; top: 1px; width: 6px; height: 20px; margin-left: -3px; background: var(--orange-dark); }
.sg-range__val { margin: 0 !important; font-size: .8125rem; line-height: 1.45; color: var(--sg-muted); }
.sg-range__val b { color: var(--navy); font-size: .9375rem; }
.sg-range__axis { display: grid; grid-template-columns: repeat(3, 2fr) 1fr; margin: 6px 0 0 244px; font-size: .75rem; color: var(--sg-muted); font-variant-numeric: tabular-nums; }

.sg-bars__row { display: grid; grid-template-columns: 170px minmax(0, 1fr) 84px; gap: 14px; align-items: center; padding: 7px 0; font-size: .9375rem; }
.sg-bars__label { color: var(--navy); font-weight: 600; line-height: 1.3; }
.sg-bars__track { height: 18px; background: var(--sg-tint); }
.sg-bars__bar { display: block; height: 100%; background: var(--navy); }
.sg-bars__val { font-family: var(--font-display); font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; text-align: right; }
.sg-bars--count .sg-bars__row { grid-template-columns: 170px minmax(0, 1fr) 40px; }

.sg-stack__row { padding: 12px 0; border-bottom: 1px solid var(--sg-rule); }
.sg-stack__name { margin: 0 0 6px !important; font-size: .9375rem; color: var(--sg-muted); }
.sg-stack__name b { font-family: var(--font-display); color: var(--navy); }
.sg-stack__track { display: flex; height: 20px; gap: 2px; }
.sg-stack__seg { display: block; height: 100%; }
.sg-stack__seg--0 { background: var(--orange-dark); }
.sg-stack__seg--1 { background: var(--navy); }
.sg-stack__seg--2 { background: #51628c; }
.sg-stack__seg--3 { background: #a9b4cc; }
.sg-stack__val { margin: 6px 0 0 !important; font-size: .8125rem; color: var(--sg-muted); }
.sg-stack__val b { font-family: var(--font-display); font-size: 1rem; color: var(--navy); }
.sg-stack__key { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; margin: 14px 0 0 !important; padding: 0 !important; font-size: .8125rem; color: var(--sg-muted); }
.sg-stack__key li { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.sg-stack__key i { width: 14px; height: 10px; }

/* ── Calls to action ────────────────────────────────────────────────────── */
.sg-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 40px; align-items: center; margin: 36px 0; padding: 28px 32px; background: var(--navy); color: #fff; border-radius: 4px; }
.sg-cta__title { font-family: var(--font-display); font-weight: 800; font-size: 1.3125rem; line-height: 1.25; margin: 0 0 6px !important; color: #fff; }
.sg-cta__text { margin: 0 !important; font-size: .9375rem; line-height: 1.6; color: #d4daea; max-width: 60ch; }
.sg-cta__carry { margin: 10px 0 0 !important; font-size: .8125rem; color: #d4daea; }
.sg .sg-cta__btn { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; font-size: 1rem; box-shadow: none; white-space: normal; text-align: left; line-height: 1.25; max-width: 320px; }
.sg .sg-cta__btn:hover { color: #fff; }
.sg-cta-line { margin: 28px 0 !important; padding: 14px 0; border-block: 1px solid var(--sg-rule); font-size: 1rem; color: var(--sg-muted); max-width: none !important; }
.sg-cta-line a { font-family: var(--font-display); font-weight: 700; white-space: nowrap; }
.sg-cta-line a svg { vertical-align: -2px; margin-left: 6px; }

/* ── Tools ──────────────────────────────────────────────────────────────── */
.sg-tool { margin: 20px 0 32px; border: 1px solid var(--navy); border-radius: 4px; background: var(--sg-tint); font-size: .9375rem; line-height: 1.5; }
.sg-tool form { padding: 28px; }
.sg-tool fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.sg-tool legend, .sg-field > label { display: block; padding: 0; font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--navy); margin-bottom: 8px; }
.sg-q { list-style: none; margin: 0 0 24px !important; padding: 0 !important; counter-reset: q; display: grid; gap: 26px; }
.sg-q > li { margin: 0; counter-increment: q; padding-left: 40px; position: relative; }
.sg-q > li::before { content: counter(q); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: .8125rem; color: var(--navy); border: 1.5px solid var(--navy); border-radius: 50%; }
.sg-q__hint { margin: -4px 0 8px !important; font-size: .8125rem; color: var(--sg-muted); }
.sg-q__opt { font-family: var(--font-body); font-weight: 400; font-size: .8125rem; color: var(--sg-muted); }
.sg-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; }
.sg-opt { display: flex; gap: 10px; align-items: flex-start; min-height: 48px; padding: 12px 14px; background: #fff; border: 1px solid #aab3c8; border-radius: 4px; cursor: pointer; line-height: 1.35; }
.sg-opt:hover { border-color: var(--navy); }
.sg-opt input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--navy); }
.sg-opt:has(input:checked) { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); font-weight: 600; }
.sg-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 0; border-radius: 4px; background: var(--navy); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1rem; cursor: pointer; }
.sg-btn:hover { background: var(--navy-light); }
.sg a.sg-btn--link { color: #fff; text-decoration: none; background: var(--orange-dark); }
.sg a.sg-btn--link:hover { background: var(--orange-hover); color: #fff; }
.sg-tool__error, .sg-field__err { margin: 0 0 14px !important; color: #a3210f; font-weight: 600; font-size: .875rem; }
.sg-field__err { margin: 6px 0 0 !important; }
.sg-tool__noscript { margin: 16px 0 0 !important; padding: 12px 14px; background: #fff; border: 1px solid var(--sg-rule); font-size: .875rem; }

.sg-result { background: #fff; border-top: 1px solid var(--navy); padding: 28px; }
.sg-result:focus { outline: none; }
.sg-result__kicker { font-family: var(--font-display); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sg-muted); margin: 0 0 6px !important; }
.sg-result h4.sg-result__title { font-size: 1.5rem; font-weight: 800; line-height: 1.2; margin: 0 0 16px; }
.sg-result__figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 32px; margin: 0 0 8px; border-top: 2px solid var(--navy); }
.sg-result__figures > div { padding: 14px 0; border-bottom: 1px solid var(--sg-rule); }
.sg-result__figures dt { font-size: .8125rem; color: var(--sg-muted); }
.sg-result__figures dd { margin: 2px 0 0; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; line-height: 1.25; color: var(--navy); }
.sg-result__figures dd.sg-result__sub, .sg-result__sub { font-family: var(--font-body); font-weight: 400; font-size: .8125rem; line-height: 1.5; color: var(--sg-muted); }
.sg-result__flag { padding: 10px 14px; border-left: 3px solid var(--orange-dark); background: #fff6ee; font-size: .875rem; }
.sg-result__plain { font-size: .875rem; color: var(--sg-muted); }
.sg-result__list { padding-left: 1.2em !important; margin-bottom: 14px !important; }
.sg-result p { margin: 0 0 12px; }
.sg-result .sg-btn { margin-right: 12px; }

/* Number fields with sliders */
.sg-field { margin: 0 0 20px; }
.sg-field__row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: center; }
.sg-field__hint { margin: 6px 0 0 !important; font-size: .8125rem; line-height: 1.45; color: var(--sg-muted); }
.sg-num { display: flex; align-items: center; background: #fff; border: 1px solid #8791a8; border-radius: 4px; min-height: 48px; }
.sg-num > span { flex: none; padding: 0 0 0 12px; color: var(--sg-muted); font-weight: 600; }
.sg-num--suf > span:last-child { padding: 0 12px 0 0; }
.sg-num input, .sg-field > input[type="text"] { width: 100%; min-width: 0; min-height: 46px; padding: 0 12px; border: 0; background: transparent; font: inherit; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
.sg-field > input[type="text"] { background: #fff; border: 1px solid #8791a8; border-radius: 4px; min-height: 48px; }
.sg-num:focus-within, .sg-field > input[type="text"]:focus-visible { outline: 2px solid var(--orange-dark); outline-offset: 2px; }
.sg-num input:focus-visible { outline: none; }
.sg-num:has([aria-invalid]) { border-color: #a3210f; box-shadow: inset 0 0 0 1px #a3210f; }
.sg-slider { width: 100%; height: 44px; margin: 0; accent-color: var(--navy); cursor: pointer; }

/* ROI */
.sg-roi { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.sg-roi__out { background: #fff; border-left: 1px solid var(--navy); padding: 28px; border-radius: 0 4px 4px 0; }
.sg-roi__head { font-family: var(--font-display); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sg-muted); margin: 0 0 8px !important; }
.sg-dl { margin: 0 0 20px; border-top: 2px solid var(--navy); }
.sg-dl__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--sg-rule); }
.sg-dl dt { color: var(--sg-muted); font-size: .875rem; }
.sg-dl dd { margin: 0; font-family: var(--font-display); font-weight: 700; color: var(--navy); text-align: right; font-variant-numeric: tabular-nums; }
.sg-dl__row[data-row="after"] dd, .sg-dl__row[data-row="roi"] dd { font-size: 1.1875rem; font-weight: 800; }
.sg-dl__row.is-neg dd { color: #a3210f; }
.sg-viz__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; margin-bottom: 10px; }
.sg-viz__label { font-size: .8125rem; color: var(--sg-muted); }
.sg-viz__track { height: 14px; background: var(--sg-tint); }
.sg-viz__bar { display: block; height: 100%; min-width: 2px; }
.sg-viz__bar--rev { background: #a9b4cc; }
.sg-viz__bar--con { background: #51628c; }
.sg-viz__bar--seo { background: var(--orange-dark); }
.sg-viz__bar--net { background: var(--navy); }
.sg-viz__bar--neg { background: repeating-linear-gradient(135deg, #a3210f 0 6px, #c9543f 6px 12px); }
.sg-roi__verdict { margin: 16px 0 !important; padding: 12px 0; border-block: 1px solid var(--sg-rule); font-weight: 600; color: var(--navy); }
.sg-fine { margin: 0 !important; padding-left: 1.1em !important; font-size: .8125rem; line-height: 1.5; color: var(--sg-muted); }
.sg-fine li { margin-bottom: 4px; }

/* Proposal comparison */
.sg-cmp__in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
.sg-cmp__in > .sg-tool__error, .sg-cmp__in > noscript { grid-column: 1 / -1; }
.sg-cmp__col > legend { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sg-muted); padding-bottom: 8px; margin-bottom: 14px; border-bottom: 2px solid var(--navy); width: 100%; }
.sg-cmp__col .sg-field { margin-bottom: 14px; }
.sg-cmp__col .sg-field > label { font-family: var(--font-body); font-weight: 600; font-size: .875rem; margin-bottom: 4px; }
.sg-cmp__crit { margin-top: 4px; border-top: 1px solid var(--sg-rule); }
.sg-cmp__crit summary { cursor: pointer; padding: 12px 0; min-height: 44px; font-weight: 600; color: var(--navy); }
.sg-cmp__crit summary span { font-weight: 400; color: var(--sg-muted); }
.sg-check { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; min-height: 32px; font-size: .875rem; line-height: 1.35; cursor: pointer; }
.sg-check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--navy); }
.sg-cmp__out { background: #fff; border-top: 1px solid var(--navy); padding: 20px 28px 28px; border-radius: 0 0 4px 4px; }
.sg-cmp__out .sg-table { margin-top: 0; }
.sg-cmp__out td { font-family: var(--font-display); font-weight: 700; color: var(--navy); }
.sg-cmp__note { margin: 14px 0 !important; font-weight: 600; color: var(--navy); }

/* Readiness */
.sg-rdy__list { list-style: none; margin: 0 0 20px !important; padding: 0 !important; }
.sg-rdy__list > li { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--sg-rule); }
.sg-rdy__list fieldset { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 24px; align-items: center; }
.sg-rdy__list legend { float: left; width: 100%; font-family: var(--font-body); font-weight: 600; margin: 0; }
.sg-rdy__list legend + * { clear: none; }
.sg-seg { display: inline-flex; border: 1px solid #8791a8; border-radius: 4px; overflow: hidden; background: #fff; }
.sg-seg label { position: relative; margin: 0; cursor: pointer; }
.sg-seg label + label { border-left: 1px solid #8791a8; }
.sg-seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.sg-seg span { display: grid; place-items: center; min-width: 68px; min-height: 44px; padding: 0 12px; font-weight: 600; color: var(--navy); }
.sg-seg input:checked + span { background: var(--navy); color: #fff; }
.sg-seg input:checked + span::before { content: "\2713\00a0"; }
.sg-seg input:focus-visible + span { outline: 2px solid var(--orange-dark); outline-offset: -3px; }

/* ── Footer of the article ──────────────────────────────────────────────── */
.sg-foot { margin-top: 72px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px 56px; padding-top: 28px; border-top: 1px solid var(--navy); font-size: .9375rem; line-height: 1.65; }
.sg-foot h2 { font-family: var(--font-display); font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sg-muted); margin: 0 0 12px; }
.sg-foot p { margin: 0 0 12px; }
.sg-related ul { list-style: none; margin: 0; padding: 0; }
.sg-related li { padding: 9px 0; border-bottom: 1px solid var(--sg-rule); }
.sg-related li a { font-weight: 600; }

/* ── Smaller screens ────────────────────────────────────────────────────── */
@media (max-width: 1099px) {
  .sg-layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 28px; }
  .sg-side { display: none; }
  .sg-toc--mobile { display: block; margin: 0 0 28px; border: 1px solid var(--navy); border-radius: 4px; }
  .sg-toc--mobile summary { cursor: pointer; padding: 14px 16px; min-height: 48px; font-family: var(--font-display); font-weight: 700; color: var(--navy); }
  .sg-toc--mobile nav { padding: 4px 16px 16px; }
  .sg-toc--mobile li a { padding: 10px 0 10px 14px; font-size: .9375rem; }
  .sg-body > *, .sg-foot { max-width: none; }
  .sg-body > p, .sg-body > ul, .sg-body > ol, .sg-body > h3 { max-width: var(--sg-measure); }
}
@media (max-width: 860px) {
  .sg-roi { grid-template-columns: minmax(0, 1fr); }
  .sg-roi__out { border-left: 0; border-top: 1px solid var(--navy); border-radius: 0 0 4px 4px; }
  .sg-cmp__in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .sg-answer { grid-template-columns: minmax(0, 1fr); }
  .sg-answer__note { grid-column: 1; grid-row: auto; border-left: 0; padding-left: 0; padding-top: 14px; border-top: 1px solid var(--sg-rule); }
  .sg-cta { grid-template-columns: minmax(0, 1fr); padding: 24px; }
  .sg-foot { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .sg-wrap { width: min(1200px, 100% - 32px); }
  .sg-hero { padding: 18px 0 20px; }
  .sg-hero__dek { display: none; }
  .sg-hero .page-breadcrumbs { margin-bottom: 16px; }
  .sg-byline__who span { display: block; margin: 0; padding: 0; border: 0; }
  .sg-layout { padding-top: 20px; }
  .sg-toc--mobile { margin-bottom: 20px; }
  .sg-layout { padding-bottom: 64px; }
  .sg-body { font-size: 1rem; }
  .sg-body h2 { margin-top: 56px; }
  .sg-tool form, .sg-result, .sg-roi__out, .sg-cmp__out { padding: 20px 16px; }
  .sg-q > li { padding-left: 0; padding-top: 34px; }
  .sg-opts { grid-template-columns: minmax(0, 1fr); }
  .sg-field__row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .sg-rdy__list fieldset { grid-template-columns: minmax(0, 1fr); }
  .sg-seg { display: flex; }
  .sg-seg label { flex: 1; }
  .sg-seg span { min-width: 0; }
  .sg-range__row { grid-template-columns: minmax(0, 1fr); }
  .sg-range__name { grid-row: auto; }
  .sg-range__axis { margin-left: 0; }
  .sg-bars__row, .sg-bars--count .sg-bars__row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .sg-bars__track { grid-column: 1 / -1; grid-row: 2; }
  .sg-table table { min-width: 520px; }
  .sg-table table:has(thead th:nth-child(5)) { min-width: 780px; }
  /* Comparison results: one block per cost, each proposal on its own line, so nothing scrolls sideways. */
  .sg-cmp__out .sg-table { margin-inline: 0; padding-inline: 0; overflow: visible; }
  .sg-cmp__out table { min-width: 0; display: block; }
  .sg-cmp__out thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .sg-cmp__out tbody, .sg-cmp__out tr { display: block; }
  .sg-cmp__out caption { display: block; }
  .sg-cmp__out tr { padding: 10px 0; border-bottom: 1px solid var(--sg-rule); }
  .sg-cmp__out tbody th, .sg-cmp__out td { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; border: 0; text-align: right; }
  .sg-cmp__out tbody th { text-align: left; padding-bottom: 6px; }
  .sg-cmp__out td::before { content: attr(data-label); font-family: var(--font-body); font-weight: 400; color: var(--sg-muted); text-align: left; }
  .sg-table { margin-inline: -16px; padding-inline: 16px; }
  .sg-cta-line a { white-space: normal; }
  .sg .sg-cta__btn { max-width: none; width: 100%; justify-content: center; text-align: center; }
  .sg-jump ul { gap: 0 20px; }
  .sg-jump a { padding: 10px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sg * { transition: none !important; animation: none !important; }
}
@media print {
  .sg-side, .sg-toc--mobile, .sg-jump, .sg-cta, .sg-cta-line, .sg-tool form { display: none !important; }
  .sg-layout { display: block; }
}
