/* Content block styles, shared by the reader app, the editors and product-site pages.
   Base tokens here are overridden by reader.css (themes) when it is loaded after this file. */
:root {
  --sec: var(--accent, #EE6A24);
  --surface: #fff; --surface-2: #f7f8fa; --text: #17202a; --muted: #5d6976; --line: #dbe1e8; --ink-mix: black; --tint: 14%;
  --t-red: #E31E24; --t-orange: #F5821F; --t-yellow: #FFDD00; --t-green: #8DBF3F; --t-teal: #00A99D;
  --t-blue: #0072BC; --t-navy: #003A5C; --t-purple: #8E3192; --t-grey: #8A949E;
  --shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
}
.page, .site-blocks { --sec-ink: color-mix(in oklab, var(--sec), var(--ink-mix) 28%); }

/* ===== Blocks ===== */
.block { margin: 0 0 1rem; }
.b-h { font-size: 1.22rem; line-height: 1.25; margin: 1.6rem 0 .6rem; padding-left: .6rem; border-left: 4px solid var(--sec); }
h3.b-h { font-size: 1.05rem; border-left-width: 3px; }
.b-text p { margin: 0 0 .6rem; } .b-text p:last-child { margin-bottom: 0; }
.b-text .c-accent, .b-list .c-accent, .b-table .c-accent, .callout-body .c-accent { color: var(--sec-ink); font-weight: 700; }
.c-red { color: var(--t-red); } .c-orange { color: var(--t-orange); } .c-green { color: color-mix(in oklab, var(--t-green), var(--ink-mix) 30%); }
.c-blue { color: var(--t-blue); } .c-purple { color: var(--t-purple); } .c-muted { color: var(--muted); }
.b-list { padding-left: 1.4rem; } .b-list li { margin: .3rem 0; } .b-list li::marker { color: var(--sec-ink); font-weight: 700; }
.b-check { list-style: none; padding: 0; }
.b-check li { display: flex; gap: .7rem; align-items: flex-start; padding: .55rem .7rem; background: var(--surface); border-radius: 10px; margin: .35rem 0; cursor: pointer; box-shadow: var(--shadow); }
.b-check .box { flex: none; width: 1.3rem; height: 1.3rem; border: 2px solid var(--sec-ink); border-radius: 6px; margin-top: .1rem; }
.b-check li[aria-checked="true"] .box { background: var(--sec-ink); box-shadow: inset 0 0 0 3px var(--surface); }
.b-check li[aria-checked="true"] > span:last-child { text-decoration: line-through; color: var(--muted); }

.b-acr { display: grid; gap: .25rem; }
.acr-word { font-size: 1.35rem; font-weight: 500; }
.acr-key { color: var(--sec-ink); font-weight: 800; font-size: 1.15em; }
.acr-desc { color: var(--muted); font-size: .9rem; margin: -.1rem 0 .4rem; }
.b-acr-cards { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.acr-card { display: flex; gap: .75rem; background: color-mix(in srgb, var(--sec) var(--tint), var(--surface)); border-radius: 12px; padding: .7rem .8rem; }
.acr-card-key { font-size: 1.7rem; font-weight: 800; color: var(--sec-ink); line-height: 1; min-width: 1.4ch; }
.acr-card-title { font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: var(--sec-ink); font-size: .88rem; }
.acr-card-desc { font-size: .92rem; }

.b-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 10px; box-shadow: var(--shadow); background: var(--surface); }
.b-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.b-table caption { caption-side: top; text-align: left; font-weight: 700; padding: .55rem .75rem; background: var(--surface); }
.b-table th, .b-table td { padding: .5rem .65rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.b-table thead th { background: color-mix(in srgb, var(--sec) var(--tint), var(--surface)); font-weight: 700; }
.b-table.has-hcol tbody th { background: var(--surface-2); font-weight: 700; }
.b-table p { margin: 0 0 .3rem; } .b-table p:last-child { margin: 0; }
.b-table ul, .b-table ol { margin: 0; padding-left: 1.1rem; }
.b-table [class^="cell-"] { font-weight: 700; }
.cell-accent { background: var(--sec); color: #fff; }
.cell-red { background: var(--t-red); color: #fff; } .cell-orange { background: var(--t-orange); color: #1b1b1b; }
.cell-yellow { background: var(--t-yellow); color: #1b1b1b; } .cell-green { background: var(--t-green); color: #1b1b1b; }
.cell-teal { background: var(--t-teal); color: #fff; } .cell-blue { background: var(--t-blue); color: #fff; }
.cell-navy { background: var(--t-navy); color: #fff; } .cell-purple { background: var(--t-purple); color: #fff; } .cell-grey { background: var(--t-grey); color: #fff; }

/* Tone helper for callouts, flow steps, outcomes */
.tone-accent { --tc: var(--sec); } .tone-red { --tc: var(--t-red); } .tone-orange { --tc: var(--t-orange); } .tone-yellow { --tc: #e0b800; }
.tone-green { --tc: var(--t-green); } .tone-teal { --tc: var(--t-teal); } .tone-blue { --tc: var(--t-blue); } .tone-navy { --tc: var(--t-navy); }
.tone-purple { --tc: var(--t-purple); } .tone-grey { --tc: var(--t-grey); } .tone-none { --tc: var(--line); }
.b-callout { border-left: 6px solid var(--tc); background: color-mix(in srgb, var(--tc) var(--tint), var(--surface)); border-radius: 10px; padding: .75rem .9rem; }
.callout-title { font-weight: 800; margin-bottom: .2rem; color: color-mix(in oklab, var(--tc), var(--ink-mix) 35%); }
.callout-body p { margin: 0 0 .4rem; } .callout-body p:last-child { margin: 0; }
.b-flow { display: grid; gap: 1.1rem; }
.flow-step { position: relative; background: color-mix(in srgb, var(--tc) var(--tint), var(--surface)); border-radius: 12px; padding: .7rem .9rem; }
.flow-step + .flow-step::before { content: ""; position: absolute; top: -1.05rem; left: 1.45rem; width: 2px; height: 1rem; background: var(--tc); }
.flow-step + .flow-step::after { content: ""; position: absolute; top: -.35rem; left: calc(1.45rem - 4px); border: 5px solid transparent; border-top-color: var(--tc); }
.flow-head { display: flex; align-items: center; gap: .55rem; font-weight: 800; }
.flow-n { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--tc); color: #fff; font-size: .8rem; flex: none; }
.flow-title { color: color-mix(in oklab, var(--tc), var(--ink-mix) 35%); text-transform: uppercase; letter-spacing: .02em; }
.flow-body { margin-top: .3rem; font-size: .95rem; }
.flow-body p, .step-body p { margin: 0 0 .3rem; } .flow-body p:last-child, .step-body p:last-child { margin-bottom: 0; } .flow-body ul { margin: .2rem 0; padding-left: 1.2rem; }
.b-steps { padding-left: 1.4rem; } .b-steps li { margin: .5rem 0; } .step-title { font-weight: 700; } .b-steps li::marker { color: var(--sec-ink); font-weight: 800; }

.b-img { margin-left: 0; margin-right: 0; position: relative; text-align: center; }
.b-img img { display: block; margin: 0 auto; border-radius: 10px; background: #fff; cursor: zoom-in; box-shadow: var(--shadow); }
.b-img.size-medium img { max-width: min(100%, 460px); } .b-img.size-small img { max-width: min(100%, 280px); }
.b-img figcaption { font-size: .82rem; color: var(--muted); margin-top: .4rem; }
.zoom-hint { position: absolute; top: .4rem; right: .4rem; width: 36px; height: 36px; border-radius: 10px; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 1.1rem; cursor: pointer; }
.b-img-empty { padding: 2rem; text-align: center; border: 2px dashed var(--line); border-radius: 10px; color: var(--muted); }

.b-contacts { display: grid; gap: .5rem; }
.contact { background: var(--surface); border-radius: 12px; padding: .7rem .8rem; box-shadow: var(--shadow); border-left: 5px solid var(--sec); }
.contact-name { font-weight: 800; }
.contact-role { display: block; font-weight: 500; font-size: .85rem; color: var(--muted); }
.contact-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .45rem; }
.contact-btn { display: inline-flex; flex-direction: column; text-decoration: none; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: .35rem .7rem; min-height: 44px; justify-content: center; }
.contact-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.contact-num { font-weight: 700; color: var(--sec-ink); font-variant-numeric: tabular-nums; word-break: break-all; }
.contact-note { font-size: .82rem; color: var(--muted); margin-top: .35rem; }

.b-decision { background: var(--surface); border-radius: 14px; padding: 1rem; box-shadow: var(--shadow); }
.dec-title { font-weight: 800; margin-bottom: .6rem; }
.dec-trail { list-style: none; padding: 0; margin: 0 0 .7rem; font-size: .85rem; }
.dec-trail li { display: flex; justify-content: space-between; gap: .5rem; padding: .3rem 0; border-bottom: 1px dashed var(--line); color: var(--muted); }
.yes { color: #2f8a3a; } .no { color: var(--t-red); }
.dec-q-text { font-size: 1.25rem; font-weight: 800; text-align: center; padding: .6rem 0; }
.dec-note { font-size: .88rem; color: var(--muted); text-align: center; }
.dec-btns { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .6rem; }
.dec-btns button { min-height: 64px; border-radius: 12px; border: 0; font-size: 1.25rem; font-weight: 800; color: #fff; cursor: pointer; }
.dec-yes { background: #2f8a3a; } .dec-no { background: #c62828; }
.dec-btns button:disabled { opacity: .35; }
.dec-outcome { text-align: center; border-radius: 12px; padding: 1.1rem; background: var(--tc); color: #fff; }
.dec-outcome.tone-yellow, .dec-outcome.tone-green, .dec-outcome.tone-orange { color: #1b1b1b; }
.dec-outcome-label { font-size: 1.6rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.dec-outcome .dec-note { color: inherit; opacity: .9; margin-top: .2rem; }
.dec-actions { display: flex; justify-content: space-between; margin-top: .4rem; }
.dec-all { margin-top: .5rem; font-size: .9rem; } .dec-all summary { cursor: pointer; color: var(--muted); font-weight: 600; padding: .3rem 0; }
.b-decision-static ol { padding-left: 1.4rem; margin: .3rem 0; }
.b-decision-static li { margin: .45rem 0; } .b-decision-static .dec-q-text { font-size: 1rem; text-align: left; padding: 0; }
.b-decision-static .dec-note { text-align: left; }
.dec-branches { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; font-size: .9rem; }
.dec-chip { display: inline-block; padding: 0 .45rem; border-radius: 6px; background: var(--tc); color: #fff; font-weight: 800; font-size: .82rem; text-transform: uppercase; }
.dec-chip.tone-yellow, .dec-chip.tone-green, .dec-chip.tone-orange { color: #1b1b1b; }
.b-hr { border: 0; border-top: 2px solid var(--line); margin: 1.5rem 0; }
.b-pagebreak { display: none; }
.b-pagebreak.visible { display: block; border-top: 2px dashed var(--line); text-align: center; height: 0; }
.b-pagebreak.visible::after { content: "page break (PDF)"; position: relative; top: -.7em; background: var(--bg); padding: 0 .5rem; font-size: .7rem; color: var(--muted); }

/* ===== Image viewer ===== */
.zoom { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.94); display: flex; flex-direction: column; }
.zoom-stage { flex: 1; overflow: auto; display: flex; align-items: center; justify-content: center; padding: env(safe-area-inset-top) 0 0; touch-action: pan-x pan-y pinch-zoom; }
.zoom-stage img { background: #fff; max-height: 100%; object-fit: contain; margin: auto; }
.zoom-bar { display: flex; justify-content: center; gap: .5rem; padding: .6rem .6rem calc(.6rem + env(safe-area-inset-bottom)); }
.zoom-bar button { min-width: 52px; min-height: 46px; border-radius: 12px; border: 0; background: #2a333d; color: #fff; font-size: 1.2rem; font-weight: 700; cursor: pointer; }
.zoom-bar .zoom-close { font-size: 1rem; padding: 0 1.2rem; background: #fff; color: #111; }


/* ===== Button / call to action ===== */
.b-button { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; }
.b-button.align-center { align-items: center; text-align: center; }
.b-cta { background: color-mix(in srgb, var(--tc) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--tc) 30%, transparent);
  border-radius: 14px; padding: 1.1rem 1.25rem; }
.cta-title { font-weight: 800; font-size: 1.15rem; line-height: 1.3; }
.cta-text { margin: 0; color: var(--muted); }
.b-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .6rem 1.4rem; border-radius: 12px;
  border: 2px solid var(--sec-ink, var(--sec)); background: var(--sec-ink, var(--sec)); color: #fff; font-weight: 700; text-decoration: none; }
.b-btn:hover { filter: brightness(1.08); }
.b-btn.secondary { background: transparent; color: var(--sec-ink, var(--sec)); }

/* Document (PDF) block */
.b-doc { display: flex; align-items: center; gap: .8rem; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: inherit; text-decoration: none; }
a.b-doc:active { background: var(--surface-2); }
.b-doc-ic { flex: none; display: grid; place-items: center; width: 44px; height: 52px; border-radius: 6px; background: #c62828; color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .04em; }
.b-doc-txt { flex: 1; min-width: 0; display: grid; gap: .1rem; }
.b-doc-txt b { overflow-wrap: anywhere; }
.b-doc-txt small { color: var(--muted); }
.b-doc-note { font-size: .88rem; }
.b-doc-open { flex: none; font-weight: 700; color: var(--link, var(--brand)); }
.b-doc.print { display: block; border: 1px solid #c9d0d8; padding: .5em .7em; }

/* Lists inside rich text, including sub-lists (a, b, c with i, ii, iii under them) */
.b-text ul, .b-text ol, .callout-body ul, .callout-body ol { margin: 0 0 .6rem; padding-left: 1.6rem; }
.b-text li > ul, .b-text li > ol, .callout-body li > ul, .callout-body li > ol { margin: .25rem 0 .3rem; padding-left: 1.5rem; }
.b-text li + li, .callout-body li + li { margin-top: .2rem; }

/* Outline numbering: 1, 1.1, 1.1.1 (num-outline) or 1.0, 1.1, 1.2 (num-outline0), from the text editor's Numbering menu */
ol.num-outline, ol.num-outline0 { list-style: none; counter-reset: fqr-outline; padding-left: 0; }
ol.num-outline > li, ol.num-outline0 > li { counter-increment: fqr-outline; position: relative; padding-left: 2.4em; }
ol.num-outline > li::before, ol.num-outline0 > li::before { content: var(--fqr-prefix, "") counters(fqr-outline, ".") " "; position: absolute; left: 0; font-variant-numeric: tabular-nums; }
ol.num-outline0 > li::before { content: counter(fqr-outline) ".0 "; }
li > ol.num-outline > li { padding-left: 3em; }
li > ol.num-outline ol.num-outline > li { padding-left: 3.6em; }
/* A list carrying on under a section (1.3, 1.4… after a heading): room for the longer numbers */
ol.num-outline[style*="--fqr-prefix"] > li { padding-left: 3em; }
