/* Dialmark: blueprint-and-datasheet look. Prefix dm-. Hand-written, no framework. */

:root {
    --dm-ink: #0C1A2E;
    --dm-blue: #17407B;
    --dm-deep: #0F2D5A;
    --dm-cyan: #5FE3F0;
    --dm-teal: #0B7285;
    --dm-amber: #96470A;
    --dm-paper: #F3F6FA;
    --dm-card: #FFFFFF;
    --dm-tint: #EAF5F9;
    --dm-line: #D3DDEA;
    --dm-grid: #E5EBF3;
    --dm-mute: #4A5B73;
    --dm-r: 10px;
    --dm-r-lg: 14px;
    --dm-head: 'Bricolage Grotesque', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --dm-serif: 'Literata', Georgia, 'Times New Roman', serif;
    --dm-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body.dm-body {
    margin: 0;
    font-family: var(--dm-serif);
    font-size: 1.0625rem;
    line-height: 1.72;
    color: var(--dm-ink);
    background-color: var(--dm-paper);
    background-image:
        linear-gradient(var(--dm-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--dm-grid) 1px, transparent 1px);
    background-size: 32px 32px;
}

img, svg { max-width: 100%; }
img { height: auto; display: block; }

a { color: var(--dm-blue); text-underline-offset: 3px; }
a:hover { color: var(--dm-teal); }

:focus-visible { outline: 3px solid var(--dm-teal); outline-offset: 2px; border-radius: 4px; }

.dm-skip {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    background: var(--dm-deep); color: #fff; padding: 10px 16px; border-radius: 8px;
    font-family: var(--dm-head); font-weight: 600; text-decoration: none;
}
.dm-skip:focus { top: 12px; }

.dm-wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ----- top bar ----------------------------------------------------------- */

.dm-top { background: #fff; border-bottom: 1px solid var(--dm-line); }
.dm-top__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }

.dm-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.dm-logo__mark { flex: none; display: block; }
.dm-logo__word { font-family: var(--dm-head); font-size: 1.45rem; letter-spacing: -.01em; line-height: 1; }
.dm-logo__a { font-weight: 800; color: var(--dm-blue); }
.dm-logo__b { font-weight: 600; color: var(--dm-teal); }
.dm-logo--foot .dm-logo__a { color: #fff; }
.dm-logo--foot .dm-logo__b { color: var(--dm-cyan); }

.dm-nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.dm-nav a {
    font-family: var(--dm-head); font-weight: 600; font-size: .95rem;
    color: var(--dm-ink); text-decoration: none;
    padding: 10px 12px; border-radius: 8px; min-height: 44px; display: inline-flex; align-items: center;
}
.dm-nav a:hover { background: var(--dm-tint); color: var(--dm-blue); }
.dm-nav a[aria-current="page"] { color: var(--dm-blue); box-shadow: inset 0 -3px 0 var(--dm-cyan); border-radius: 8px 8px 0 0; }

/* ----- first screen ------------------------------------------------------ */

.dm-stage {
    color: #fff;
    background-color: var(--dm-blue);
    background-image:
        linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 40px 40px;
    border-bottom: 4px solid var(--dm-cyan);
}
.dm-stage__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(0, .72fr);
    gap: 44px;
    align-items: center;
    padding: 30px 0 34px;
}

.dm-adlabel {
    display: inline-block; margin: 0 0 12px;
    font-family: var(--dm-mono); font-weight: 500; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase;
    color: #fff; border: 1px solid rgba(255,255,255,.55); border-radius: 6px; padding: 3px 9px; line-height: 1.5;
}
.dm-adlabel b { font-weight: 500; color: var(--dm-cyan); }

.dm-stage h1 {
    margin: 0 0 10px;
    font-family: var(--dm-head); font-weight: 800;
    font-size: clamp(1.75rem, 3.6vw, 2.6rem); line-height: 1.1; letter-spacing: -.012em;
    text-wrap: balance;
}
.dm-flag {
    margin: 0 0 14px;
    font-family: var(--dm-mono); font-weight: 500; font-size: .76rem; letter-spacing: .05em; text-transform: uppercase;
    color: var(--dm-cyan);
}
.dm-lead { margin: 0 0 16px; font-size: 1.08rem; line-height: 1.62; color: #E3ECF8; max-width: 62ch; }

.dm-chips { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dm-chips li {
    background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.24); border-radius: 8px;
    padding: 6px 12px 7px; font-family: var(--dm-head); font-weight: 600; font-size: .93rem; line-height: 1.3; color: #fff;
}
.dm-chips span { display: block; font-family: var(--dm-mono); font-weight: 500; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dm-cyan); }

.dm-stage__cta .dm-fine { color: #C3D3EB; margin: 10px 0 0; max-width: 60ch; }
.dm-stage__cta .dm-fine a { color: #fff; }

.dm-fig1 {
    margin: 0; padding: 14px 14px 10px;
    background: rgba(15, 45, 90, .55); border: 1px solid rgba(255,255,255,.22); border-radius: var(--dm-r-lg);
}
.dm-fig1 svg { display: block; width: 100%; height: auto; color: #fff; }
.dm-fig1 figcaption { margin-top: 6px; font-family: var(--dm-mono); font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; color: #BFD0EA; }
.dm-schem__k text, .dm-schem__t text { letter-spacing: .02em; }

/* ----- buttons ----------------------------------------------------------- */

.dm-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-align: center;
    min-height: 50px; padding: 12px 20px;
    font-family: var(--dm-head); font-weight: 700; font-size: 1rem; line-height: 1.25; letter-spacing: .005em;
    text-decoration: none; border-radius: var(--dm-r);
    background: #fff; color: var(--dm-deep); border: 2px solid #fff;
    transition: background-color .15s, color .15s, border-color .15s;
}
.dm-btn:hover { background: var(--dm-cyan); border-color: var(--dm-cyan); color: var(--dm-deep); }
.dm-btn--solid { background: var(--dm-blue); border-color: var(--dm-blue); color: #fff; }
.dm-btn--solid:hover { background: var(--dm-deep); border-color: var(--dm-deep); color: #fff; }
.dm-btn--block { display: flex; width: 100%; }

.dm-fine--after { margin: -10px 0 22px !important; }
.dm-fine { margin: 8px 0 0; font-family: var(--dm-head); font-size: .82rem; line-height: 1.5; color: var(--dm-mute); }

/* ----- article layout ---------------------------------------------------- */

.dm-cols {
    display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px;
    align-items: start; padding: 32px 0 56px;
}
.dm-sheet {
    background: var(--dm-card); border: 1px solid var(--dm-line); border-radius: var(--dm-r-lg);
    padding: 8px 40px 20px;
}

.dm-blk { padding: 30px 0 8px; border-top: 1px dashed var(--dm-line); }
.dm-blk:first-child { border-top: 0; }

.dm-tag {
    display: inline-flex; align-items: center; gap: 8px; margin: 0 0 8px;
    font-family: var(--dm-mono); font-weight: 500; font-size: .74rem; letter-spacing: .09em; text-transform: uppercase;
    color: var(--dm-teal);
}
.dm-tag i {
    font-style: normal; display: inline-block; min-width: 30px; text-align: center;
    padding: 2px 6px; border: 1.5px solid var(--dm-teal); border-radius: 6px; color: var(--dm-teal);
}

.dm-sheet h2, .dm-page h2 {
    margin: 0 0 .55em;
    font-family: var(--dm-head); font-weight: 700; font-size: clamp(1.4rem, 2.4vw, 1.75rem); line-height: 1.2; letter-spacing: -.008em;
    color: var(--dm-ink); text-wrap: balance;
}
.dm-sheet h3, .dm-page h3 { margin: 1.4em 0 .4em; font-family: var(--dm-head); font-weight: 700; font-size: 1.15rem; }
.dm-sheet p, .dm-page p { margin: 0 0 1.05em; max-width: 68ch; }
.dm-sheet ul, .dm-sheet ol, .dm-page ul, .dm-page ol { max-width: 68ch; padding-left: 1.2em; margin: 0 0 1.1em; }
.dm-sheet li, .dm-page li { margin-bottom: .45em; }

.dm-ref { font-family: var(--dm-mono); font-size: .68rem; line-height: 0; margin-left: 1px; }
.dm-ref a { color: var(--dm-teal); text-decoration: none; font-weight: 500; padding: 2px 1px; }
.dm-ref a:hover { text-decoration: underline; }

.dm-pic { margin: 6px 0 22px; }
.dm-pic img { width: 100%; border-radius: var(--dm-r); border: 1px solid var(--dm-line); background: var(--dm-tint); }
.dm-pic figcaption { margin-top: 8px; font-family: var(--dm-head); font-size: .84rem; line-height: 1.45; color: var(--dm-mute); }

.dm-more { font-family: var(--dm-head); font-weight: 600; font-size: .98rem; }

/* digit windows */
.dm-dials { list-style: none; padding: 0 !important; margin: 4px 0 22px !important; max-width: none !important; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dm-dials li { margin: 0; padding: 14px 16px 12px; border: 1px solid var(--dm-line); border-radius: var(--dm-r); background: #F8FAFD; }
.dm-dials b {
    display: inline-block; margin-bottom: 8px; padding: 3px 12px 4px;
    font-family: var(--dm-mono); font-weight: 500; font-size: 1.55rem; line-height: 1.25; letter-spacing: .02em;
    color: var(--dm-cyan); background: var(--dm-deep); border-radius: 7px;
    font-variant-numeric: tabular-nums;
}
.dm-dials span { display: block; font-family: var(--dm-head); font-size: .9rem; line-height: 1.45; color: var(--dm-mute); }

/* stops / does not stop */
.dm-vs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 4px 0 22px; }
.dm-vs > div { border: 1px solid var(--dm-line); border-left-width: 5px; border-radius: var(--dm-r); padding: 14px 16px 6px; background: #FBFCFE; }
.dm-vs > div:first-child { border-left-color: var(--dm-teal); }
.dm-vs > div:last-child { border-left-color: var(--dm-amber); }
.dm-vs h3 { margin: 0 0 8px !important; font-size: 1rem !important; text-transform: uppercase; letter-spacing: .06em; font-family: var(--dm-mono) !important; font-weight: 500 !important; }
.dm-vs > div:first-child h3 { color: var(--dm-teal); }
.dm-vs > div:last-child h3 { color: var(--dm-amber); }
.dm-vs ul { list-style: none; padding: 0 !important; margin: 0 0 8px !important; }
.dm-vs li { position: relative; padding-left: 22px; font-size: .98rem; line-height: 1.55; }
.dm-vs > div:first-child li::before { content: '+'; position: absolute; left: 0; top: 0; font-family: var(--dm-mono); font-weight: 500; color: var(--dm-teal); }
.dm-vs > div:last-child li::before { content: '\2212'; position: absolute; left: 0; top: 0; font-family: var(--dm-mono); font-weight: 500; color: var(--dm-amber); }

/* spec sheet table */
.dm-specs-wrap { margin: 4px 0 20px; border: 1px solid var(--dm-line); border-radius: var(--dm-r); overflow: hidden; }
.dm-specs { width: 100%; border-collapse: collapse; font-size: .98rem; line-height: 1.55; }
.dm-specs th, .dm-specs td { text-align: left; vertical-align: top; padding: 12px 16px; border-top: 1px solid var(--dm-line); }
.dm-specs tr:first-child th, .dm-specs tr:first-child td { border-top: 0; }
.dm-specs th { width: 31%; font-family: var(--dm-head); font-weight: 700; font-size: .96rem; background: #F6F9FC; }
.dm-specs td p { margin: 0 0 .5em; }
.dm-specs td p:last-child { margin-bottom: 0; }
.dm-n {
    display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-right: 8px;
    font-family: var(--dm-mono); font-weight: 500; font-size: .78rem; color: var(--dm-deep); background: var(--dm-cyan); border-radius: 50%;
    vertical-align: 1px;
}

.dm-note {
    margin: 4px 0 22px; padding: 14px 18px; background: var(--dm-tint);
    border: 1px solid #BFE1EA; border-left: 5px solid var(--dm-teal); border-radius: var(--dm-r);
}
.dm-note p { margin: 0 0 .6em; max-width: none; }
.dm-note p:last-child { margin-bottom: 0; }

/* checklist */
.dm-checks { list-style: none; padding: 0 !important; margin: 4px 0 22px !important; max-width: none !important; counter-reset: chk; }
.dm-checks li {
    counter-increment: chk; position: relative; margin: 0 0 12px; padding: 12px 16px 12px 62px;
    border: 1px solid var(--dm-line); border-radius: var(--dm-r); background: #FBFCFE;
}
.dm-checks li::before {
    content: counter(chk, decimal-leading-zero); position: absolute; left: 14px; top: 12px;
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    font-family: var(--dm-mono); font-weight: 500; font-size: .86rem; color: var(--dm-cyan); background: var(--dm-deep); border-radius: 8px;
}

/* mid-page pick card: why this case, proof, button */
.dm-pick { margin: 6px 0 24px; padding: 20px 22px 18px; background: #F4F9FF; border: 1px solid #C9DAF0; border-radius: var(--dm-r-lg); }
.dm-sheet .dm-pick__tag { margin: 0 0 4px; font-family: var(--dm-mono); font-weight: 500; font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; color: var(--dm-teal); }
.dm-sheet .dm-pick h3 { margin: 0 0 12px; font-size: 1.2rem; line-height: 1.3; }
.dm-sheet .dm-pick__list { list-style: none; padding: 0; margin: 0 0 12px; max-width: none; }
.dm-pick__list li { position: relative; margin: 0 0 9px; padding-left: 28px; line-height: 1.55; }
.dm-pick__list li::before {
    content: ''; position: absolute; left: 3px; top: .42em; width: 13px; height: 7px;
    border-left: 3px solid var(--dm-teal); border-bottom: 3px solid var(--dm-teal); transform: rotate(-45deg);
}
.dm-sheet .dm-pick__proof { margin: 0 0 14px; padding: 9px 13px; max-width: none; background: #fff; border: 1px dashed #AFC4E2; border-radius: var(--dm-r); font-family: var(--dm-head); font-size: .95rem; line-height: 1.5; }
.dm-pick .dm-fine { margin-top: 10px; }

/* closing card */
.dm-close {
    margin: 12px 0 22px; padding: 26px 28px 22px; color: #fff; border-radius: var(--dm-r-lg);
    background-color: var(--dm-blue);
    background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 32px 32px;
}
.dm-sheet .dm-close h2 { color: #fff; }
.dm-close p { color: #E3ECF8; }
.dm-close .dm-fine { color: #C3D3EB; }
.dm-about { padding: 14px 0 6px; font-family: var(--dm-head); font-size: .93rem; line-height: 1.6; color: var(--dm-mute); border-top: 1px dashed var(--dm-line); }
.dm-sheet .dm-about { max-width: none; margin-top: 8px; }

/* sources */
.dm-srcs { font-family: var(--dm-head); font-size: .9rem; line-height: 1.55; }
.dm-srcs ol { padding-left: 1.5em; }
.dm-srcs li { margin-bottom: .6em; }
.dm-srcs li::marker { font-family: var(--dm-mono); color: var(--dm-teal); }

/* sticky spec sheet */
.dm-aside { position: sticky; top: 16px; }
.dm-spec {
    background: #fff; border: 1px solid var(--dm-line); border-radius: var(--dm-r-lg); overflow: hidden;
    box-shadow: 0 8px 24px rgba(12, 26, 46, .07);
}
.dm-spec__head {
    margin: 0; padding: 9px 16px; background: var(--dm-deep); color: var(--dm-cyan);
    font-family: var(--dm-mono); font-weight: 500; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
}
.dm-spec__body { padding: 16px 16px 18px; }
.dm-spec h2 { margin: 0 0 10px; font-family: var(--dm-head); font-weight: 700; font-size: 1.12rem; line-height: 1.25; }
.dm-spec dl { margin: 0 0 14px; }
.dm-spec dl > div { padding: 8px 0; border-top: 1px solid var(--dm-line); }
.dm-spec dt { font-family: var(--dm-mono); font-weight: 500; font-size: .66rem; letter-spacing: .09em; text-transform: uppercase; color: var(--dm-teal); }
.dm-spec dd { margin: 2px 0 0; font-family: var(--dm-head); font-weight: 600; font-size: .94rem; line-height: 1.4; }

/* ----- secondary pages --------------------------------------------------- */

.dm-pagehead {
    color: #fff; background-color: var(--dm-blue);
    background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 40px 40px; border-bottom: 4px solid var(--dm-cyan); padding: 34px 0 32px;
}
.dm-pagehead h1 {
    margin: 0 0 8px; font-family: var(--dm-head); font-weight: 800;
    font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.12; letter-spacing: -.01em; text-wrap: balance;
}
.dm-pagehead .dm-lead { margin: 0; }

.dm-page { padding: 30px 0 56px; }
.dm-card {
    background: var(--dm-card); border: 1px solid var(--dm-line); border-radius: var(--dm-r-lg);
    padding: 12px 40px 22px; margin-bottom: 20px;
}
.dm-card h2:first-child { margin-top: 18px; }
.dm-card h2 { margin-top: 1.4em; }
.dm-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.dm-pair .dm-card { padding: 12px 28px 20px; }

.dm-rows { margin: 0 0 1.2em; max-width: 72ch; }
.dm-rows > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--dm-line); }
.dm-rows dt { font-family: var(--dm-mono); font-weight: 500; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--dm-teal); padding-top: 3px; }
.dm-rows dd { margin: 0; }

.dm-steps { list-style: none; padding: 0 !important; counter-reset: stp; max-width: none !important; }
.dm-steps li { counter-increment: stp; position: relative; margin: 0 0 12px; padding: 12px 16px 12px 62px; border: 1px solid var(--dm-line); border-radius: var(--dm-r); background: #FBFCFE; }
.dm-steps li::before {
    content: counter(stp); position: absolute; left: 14px; top: 12px; width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--dm-mono); font-weight: 500; font-size: .95rem; color: var(--dm-cyan); background: var(--dm-deep); border-radius: 8px;
}
.dm-steps p { margin: 0 0 .5em; }
.dm-steps p:last-child { margin: 0; }

.dm-linkbtn {
    background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: left;
    font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px;
}
.dm-linkbtn:hover { color: var(--dm-cyan); }
.dm-linkbtn--text { color: var(--dm-blue); }
.dm-linkbtn--text:hover { color: var(--dm-teal); }

code { font-family: var(--dm-mono); font-size: .88em; background: #EEF3F9; padding: 1px 6px; border-radius: 5px; }

/* ----- footer ------------------------------------------------------------ */

.dm-foot { background: var(--dm-ink); color: #C6D3E7; font-family: var(--dm-head); font-size: .94rem; line-height: 1.6; }
.dm-foot a { color: #E8EFFA; }
.dm-foot a:hover { color: var(--dm-cyan); }
.dm-foot__grid { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); gap: 32px; padding: 40px 0 28px; }
.dm-foot__brand p { margin: 12px 0 0; max-width: 40ch; }
.dm-foot__col h2 { margin: 0 0 10px; font-family: var(--dm-mono); font-weight: 500; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dm-cyan); }
.dm-foot__col ul { list-style: none; margin: 0; padding: 0; }
.dm-foot__col li { margin: 0 0 8px; }
.dm-foot__legal { border-top: 1px solid rgba(255,255,255,.14); padding: 18px 0 30px; font-size: .86rem; color: #AEBFD8; }
.dm-foot__legal p { margin: 0 0 8px; max-width: 110ch; }
.dm-foot__line { color: #AEBFD8; }

/* ----- storage choice box ------------------------------------------------ */

.dm-cc {
    position: fixed; left: 16px; bottom: 16px; z-index: 60;
    width: min(440px, calc(100% - 32px));
    background: #fff; color: var(--dm-ink);
    border: 1px solid var(--dm-line); border-radius: var(--dm-r-lg);
    padding: 18px 18px 16px;
    box-shadow: 0 14px 44px rgba(12, 26, 46, .3);
    font-family: var(--dm-head);
}
.dm-cc[hidden] { display: none; }
.dm-cc__title { margin: 0 0 6px; font-weight: 800; font-size: 1.08rem; line-height: 1.25; }
.dm-cc__txt { margin: 0 0 12px; font-size: .9rem; line-height: 1.5; color: var(--dm-mute); }
.dm-cc__panel { margin: 0 0 12px; }
.dm-cc__panel[hidden] { display: none; }
.dm-cc__row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--dm-line); font-size: .88rem; line-height: 1.45; cursor: pointer; }
.dm-cc__row input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--dm-blue); }
.dm-cc__row b { display: block; font-weight: 700; }
.dm-cc__btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dm-cc__btn {
    min-height: 46px; padding: 8px 6px;
    font: 700 .9rem/1.2 var(--dm-head); color: var(--dm-blue); background: #fff;
    border: 2px solid var(--dm-blue); border-radius: var(--dm-r); cursor: pointer;
}
.dm-cc__btn:hover { background: var(--dm-blue); color: #fff; }

/* ----- responsive -------------------------------------------------------- */

@media (max-width: 1020px) {
    .dm-cols { grid-template-columns: minmax(0, 1fr); }
    .dm-aside { display: none; }
    .dm-stage__grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .dm-fig1 { max-width: 420px; }
    .dm-foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .dm-sheet { padding: 4px 20px 14px; }
    .dm-card, .dm-pair .dm-card { padding: 8px 20px 16px; }
    .dm-pair { grid-template-columns: minmax(0, 1fr); }
    .dm-vs { grid-template-columns: minmax(0, 1fr); }
    .dm-dials { grid-template-columns: minmax(0, 1fr); }
    .dm-dials li { display: flex; align-items: center; gap: 14px; padding: 10px 14px; }
    .dm-dials b { margin: 0; flex: none; }
    .dm-specs, .dm-specs tbody, .dm-specs tr, .dm-specs th, .dm-specs td { display: block; width: 100%; }
    .dm-specs th { border-top: 1px solid var(--dm-line); padding-bottom: 4px; }
    .dm-specs tr:first-child th { border-top: 0; }
    .dm-specs td { border-top: 0; padding-top: 4px; }
    .dm-rows > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .dm-close { padding: 20px 18px 18px; }
}

@media (max-width: 520px) {
    .dm-wrap { padding: 0 16px; }
    .dm-top__row { min-height: 58px; }
    .dm-nav a { padding: 10px 8px; font-size: .9rem; }
    .dm-stage__grid { padding: 22px 0 26px; }
    /* phone: button straight after the lead, the facts strip follows it */
    .dm-stage__grid > div:first-child { display: flex; flex-direction: column; }
    .dm-stage__grid .dm-adlabel { align-self: flex-start; }
    .dm-stage__grid .dm-lead { margin-bottom: 14px; }
    .dm-stage__grid .dm-stage__cta { order: 4; margin-bottom: 16px; }
    .dm-stage__grid .dm-chips { order: 5; margin-bottom: 0; }
    .dm-pick { padding: 16px 14px 14px; }
    .dm-btn { width: 100%; }
    .dm-foot__grid { grid-template-columns: minmax(0, 1fr); }
    .dm-cc { left: 10px; right: 10px; bottom: 10px; width: auto; padding: 10px 12px 10px; }
    .dm-cc__title { font-size: .95rem; margin-bottom: 2px; }
    .dm-cc__txt { font-size: .78rem; line-height: 1.35; margin-bottom: 8px; }
    .dm-cc__btns { gap: 6px; }
    .dm-cc__btn { min-height: 46px; padding: 8px 4px; font-size: .84rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .dm-btn { transition: none; }
}

/* ---------- Collapsible sources (closed by default, full text stays in the HTML) ---------- */
.dm-srcbox > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; min-height: 44px; padding: 6px 0; cursor: pointer; list-style: none; }
.dm-srcbox > summary::-webkit-details-marker { display: none; }
.dm-srcbox.dm-srcbox > summary > h2 { margin: 0; }
.dm-srcbox__hint { font-size: .85em; opacity: .75; }
.dm-srcbox__hint::after { content: " \00b7  open"; }
.dm-srcbox[open] .dm-srcbox__hint::after { content: " \00b7  close"; }
.dm-srcbox > summary:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 6px; }
.dm-srcbox[open] > summary { margin-bottom: 10px; }
