/* ID Partners brand: orange #FC6401 as accent only, black text on white or grey. */
:root {
  --orange: #FC6401; --black: #000; --white: #fff; --grey: #F1F1F1; --tint1: #FFC39D; --tint2: #FFE1CE;
  --ink: #111; --muted: #555; --line: #DDD; --ok: #0B6B3A; --bad: #A4000F;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.6 var(--font); color: var(--ink); background: var(--white); }
a { color: var(--black); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { background: var(--tint2); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; font-weight: 800; }
h1 { font-size: 2.1rem; margin: .2em 0 .4em; }
h2 { font-size: 1.4rem; margin: 1.8em 0 .5em; }
h3 { font-size: 1.1rem; margin: 1.4em 0 .4em; }
code { font-size: .9em; background: var(--grey); padding: .1em .3em; border-radius: 3px; overflow-wrap: anywhere; }
.muted { color: var(--muted); font-size: .92em; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--muted); margin: 0; }
.eyebrow::before { content: ""; display: inline-block; width: 10px; height: 10px; background: var(--orange); margin-right: 8px; vertical-align: -1px; }
.lead { font-size: 1.15rem; color: #222; max-width: 46em; }

.top { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding: 14px 24px; border-bottom: 1px solid var(--line); }
.brand { display: flex; gap: 14px; align-items: center; text-decoration: none; font-weight: 700; font-size: .95rem; }
.brand:hover { background: none; }
.brand img { height: 20px; width: auto; }
.brand span { border-left: 1px solid var(--line); padding-left: 14px; }
.top-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; font-size: .95rem; }
.top-nav form { display: inline; margin: 0; }
.dev-banner { margin: 0; padding: 6px 24px; background: var(--tint1); font-size: .9rem; }

.layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; max-width: 1240px; margin: 0 auto; padding: 24px; }
.layout.single { grid-template-columns: minmax(0, 1fr); max-width: 1100px; }
.side summary { display: none; }
.side nav { position: sticky; top: 16px; font-size: .94rem; }
.side ul { list-style: none; margin: 0 0 8px; padding: 0; }
.side li a { display: block; padding: 5px 10px; text-decoration: none; border-left: 3px solid transparent; }
.side li a[aria-current] { border-left-color: var(--orange); background: var(--grey); font-weight: 700; }
.nav-group { margin: 18px 0 4px 10px; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
main { min-width: 0; }
.foot { border-top: 1px solid var(--line); padding: 18px 24px; font-size: .85rem; color: var(--muted); max-width: 1240px; margin: 40px auto 0; }

.hero { padding: 12px 0 8px; }
.narrow { max-width: 720px; }
.btn { display: inline-block; background: var(--orange); color: var(--black); border: 0; padding: 11px 20px; font: inherit; font-weight: 700; text-decoration: none; border-radius: 4px; cursor: pointer; }
.btn:hover { background: var(--black); color: var(--white); }
.btn.secondary { background: var(--white); border: 1px solid var(--black); }
.btn.secondary:hover { background: var(--tint2); color: var(--black); }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--black); text-decoration: underline; text-decoration-color: var(--orange); cursor: pointer; }
button.link[disabled] { color: var(--muted); text-decoration: none; cursor: not-allowed; }
.card { border: 1px solid var(--line); border-radius: 6px; padding: 18px 20px; margin: 18px 0; background: var(--white); }
.card h2 { margin-top: 0; }
.card.soft { background: var(--grey); border-color: var(--grey); }
.card.ok { border-color: var(--ok); }
.card.danger { border-color: var(--bad); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.link-card { display: block; margin: 0; text-decoration: none; border-top: 4px solid var(--orange); }
.link-card:hover { background: var(--tint2); }
.link-card h3 { margin: 0 0 .4em; }
.link-card p { margin: 0; color: #333; font-size: .95rem; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; background: var(--tint1); padding: 1px 6px; border-radius: 3px; vertical-align: 2px; }
label { display: block; margin: 0 0 14px; font-weight: 600; font-size: .95rem; }
input:not([type=checkbox]), textarea { display: block; width: 100%; margin-top: 4px; padding: 9px 11px; font: inherit; font-weight: 400; border: 1px solid #999; border-radius: 4px; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
label.check input { margin-top: 5px; flex: none; }
.flash { padding: 10px 14px; border-radius: 4px; border-left: 4px solid; }
.flash.ok { border-color: var(--ok); background: #EAF6EF; }
.flash.bad { border-color: var(--bad); background: #FBEAEA; }
.flash.warn { border-color: var(--orange); background: var(--tint2); }
ul.plain { list-style: none; padding: 0; }
ul.plain li { padding: 6px 0; border-bottom: 1px solid var(--grey); }

/* Articles */
.doc { max-width: 820px; }
.toc { background: var(--grey); padding: 12px 18px; border-radius: 6px; margin: 18px 0 8px; font-size: .95rem; }
.toc p { margin: 0 0 4px; font-weight: 700; }
.toc ol { margin: 0; padding-left: 1.3em; }
.prose img { max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 4px; }
.prose figure { margin: 22px 0; }
.prose a.zoom { display: block; text-decoration: none; }
.prose a.zoom:hover { background: none; }
.prose a.zoom:hover img { border-color: var(--orange); }
.prose figcaption { font-size: .88rem; color: var(--muted); margin-top: 6px; }
.prose table, main table { border-collapse: collapse; width: 100%; font-size: .93rem; margin: 16px 0; display: block; overflow-x: auto; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--grey); font-weight: 700; }
td.num, th.num { text-align: right; white-space: nowrap; }
tr.off td { color: var(--muted); }
.prose blockquote { margin: 18px 0; padding: 4px 18px; border-left: 4px solid var(--orange); background: var(--grey); }
.prose details { border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 4px; padding: 0 16px; margin: 16px 0; }
.prose details > summary { cursor: pointer; font-weight: 700; padding: 10px 0; }
.prose details[open] { padding-bottom: 8px; }
.ext { font-size: .75em; margin-left: 2px; }
mark.confirm { background: var(--tint1); padding: 0 3px; border-radius: 2px; font-size: .9em; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin: 40px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.pager a { display: block; max-width: 48%; text-decoration: none; }
.pager a span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pager .next { text-align: right; margin-left: auto; }
.video video { width: 100%; background: #000; border-radius: 6px; }
.video-soon { padding: 40px 20px; text-align: center; background: var(--grey); border-radius: 6px; color: var(--muted); }
.chapters { columns: 2; font-size: .9rem; padding-left: 1.4em; }
.chapters button { background: none; border: 0; padding: 2px 0; font: inherit; text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: var(--orange); }

/* Partner view */
.tabs { display: flex; flex-wrap: wrap; gap: 4px 18px; border-bottom: 1px solid var(--line); margin: 0 0 20px; padding-bottom: 8px; }
.tabs a { text-decoration: none; padding: 2px 0; }
.tabs a[aria-current] { font-weight: 800; border-bottom: 3px solid var(--orange); }
.tabs .scope { margin-left: auto; font-size: .88rem; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 10px 0 20px; }
.tile { background: var(--grey); padding: 14px 16px; border-radius: 6px; }
.tile b { display: block; font-size: 1.9rem; line-height: 1.1; }
.tile span { font-size: .88rem; color: var(--muted); }
.chart svg { width: 100%; height: auto; }
.chart .bar { fill: var(--orange); }
.chart .bar:hover { fill: var(--black); }
.chart .axis { stroke: #999; }
.chart .tick { font-size: 11px; fill: var(--muted); }
.chart figcaption { font-size: .85rem; color: var(--muted); }
.two { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; }
.feed { list-style: none; padding: 0; font-size: .92rem; }
.feed li { padding: 7px 0; border-bottom: 1px solid var(--grey); }
.tree, .tree ul { list-style: none; padding-left: 18px; }
.tree li { padding: 3px 0; border-left: 1px solid var(--line); padding-left: 10px; }

@media (max-width: 860px) {
  body { font-size: 16px; }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px; }
  .side { border: 1px solid var(--line); border-radius: 6px; padding: 6px 12px; }
  .side summary { display: list-item; cursor: pointer; font-weight: 700; padding: 6px 0; }
  .side nav { position: static; }
  .top { padding: 12px 16px; }
  .brand span { display: none; }
  h1 { font-size: 1.7rem; }
  .two { grid-template-columns: minmax(0, 1fr); }
  .chapters { columns: 1; }
  .tabs .scope { margin-left: 0; }
}
@media print {
  .top-nav, .side, .pager, .foot form, .dev-banner, .video, .tabs { display: none !important; }
  .layout { display: block; padding: 0; }
  .prose details { border: 0; padding: 0; }
  a { text-decoration: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; color: var(--muted); }
}
