/* The published liability methodology (landing #289). Loaded by methodology.html only, and inlined
   into the print document the PDF is made from (scripts/build-methodology.mjs) — so every rule here
   must read well on screen AND on an A4 page. Kept out of styles.css so adding the page did not mean
   a ?v= bump on the stylesheet every page loads. */

/* ---- Header ------------------------------------------------------------- */
.mhero h1 { font-size: clamp(30px, 5vw, 48px); }
.mver { font-size: 15px !important; color: #cbd5e1; margin-top: 16px !important; }
.mver a { color: #22d3ee; font-weight: 600; text-decoration: none; }
.mver a:hover { text-decoration: underline; }
.mqual {
  margin: 18px auto 0 !important; max-width: 640px; padding: 12px 16px; border-radius: 10px;
  border: 1px solid rgba(245, 158, 11, 0.45); background: rgba(245, 158, 11, 0.1);
  color: #fde68a !important; font-size: 15px !important; line-height: 1.5;
}
.mact { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---- Layout: contents list beside the article on a wide screen ------------- */
.mbody { padding-top: 56px; }
.mlayout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; }
.mtoc { position: sticky; top: 150px; font-size: 14px; }
.mtoc__h { font-weight: 700; color: #0a1424; margin: 0 0 8px; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.mtoc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid #e2e8f0; }
.mtoc li { margin: 0; }
.mtoc a { display: block; padding: 5px 0 5px 12px; color: #475569; text-decoration: none; line-height: 1.35; }
.mtoc a:hover { color: #1d4ed8; }
.mtoc__hist a { font-weight: 600; color: #0a1424; }
.marticle { max-width: none; margin: 0; min-width: 0; }

@media (max-width: 960px) {
  .mlayout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .mtoc { position: static; }
  .mtoc ol { columns: 2; column-gap: 20px; }
}
@media (max-width: 560px) { .mtoc ol { columns: 1; } }

/* ---- The document ------------------------------------------------------- */
.mprov { font-size: .95rem; color: #475569; background: #f8fafc; border-left: 3px solid #22d3ee; padding: 12px 16px; border-radius: 0 8px 8px 0; }
.msec h2, .msec h3, .mhist { scroll-margin-top: 150px; }
.msec h2 { margin-top: 44px; }
.msec h3 { margin: 28px 0 10px; font-size: 1.1rem; color: #0a1424; }
.mdoc code { font-size: .88em; background: #f1f5f9; padding: 1px 5px; border-radius: 4px; }
.mdoc a { overflow-wrap: anywhere; }

/* Tables scroll inside their own box on a phone, never the page. */
.blogtable { overflow-x: auto; margin: 16px 0 24px; -webkit-overflow-scrolling: touch; }
.blogtable table { border-collapse: collapse; width: 100%; font-size: .88rem; line-height: 1.45; }
.blogtable th, .blogtable td { border: 1px solid #e2e8f0; padding: 8px 10px; text-align: left; vertical-align: top; }
.blogtable th { background: #f8fafc; font-weight: 700; color: #0a1424; }
.blogtable td:first-child { font-weight: 600; color: #0a1424; }
@media (max-width: 640px) { .blogtable table { min-width: 560px; } }

/* ---- Version history (#294) -------------------------------------------- */
.mhist__list { list-style: none; padding: 0 !important; margin: 0; }
.mhist__item { scroll-margin-top: 150px; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px 18px; margin: 0 0 14px !important; }
.mhist__item:target { border-color: #22d3ee; box-shadow: 0 0 0 3px rgba(34, 211, 238, .2); }
.mhist__head { margin: 0 0 6px !important; font-size: 1.05rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.mhist__head a { color: #0a1424 !important; }
.mhist__head time { font-weight: 500; font-size: .92rem; color: #64748b; }
.mhist__now { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #047857; background: #ecfdf5; border-radius: 99px; padding: 2px 9px; }
.mhist__item p { margin: 0 !important; }
.mnote { margin-top: 32px; }

/* ---- The print document (the PDF) ---------------------------------------- */
.mprint h1 { font-size: 20pt; }
.mprint .mver { color: #475569; font-size: 10pt !important; margin: 0 0 8pt !important; }
.mprint .mver a { color: #1d4ed8; }
.mprint .mqual { color: #78350f !important; background: #fffbeb; font-size: 9.5pt !important; margin: 0 0 12pt !important; max-width: none; }
.mprint .mprov { font-size: 9.5pt; padding: 8pt 10pt; }
.mprint .msec h2 { margin-top: 18pt; font-size: 13pt; break-after: avoid; }
.mprint .msec h3 { margin-top: 12pt; font-size: 10.5pt; break-after: avoid; }
.mprint .blogtable { overflow: visible; }
.mprint .blogtable table { font-size: 8pt; min-width: 0; }
.mprint .blogtable th, .mprint .blogtable td { padding: 3pt 5pt; }
.mprint tr, .mprint .mhist__item { break-inside: avoid; }
.mprint .mhist__item { padding: 8pt 10pt; }
