/* Shared styles for DMAR blog pages. Matches the landing page palette. */
:root {
    --black: #0a0a0a;
    --dark: #111111;
    --gray: #1a1a1a;
    --line: rgba(55, 65, 81, 0.5);
    --orange: #ff6b35;
    --orange-dark: #e55a2b;
    --cream: #fafafa;
    --muted: #9ca3af;
    --dim: #6b7280;
    --stage-h: 40vh;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--black);
    color: var(--cream);
    font-family: 'Source Sans 3', system-ui, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.65;
}
a { color: var(--orange); }
h1, h2, h3, .display { font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.1; }
h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); margin: 0 0 1rem; text-wrap: balance; }
h2 { font-size: clamp(1.5rem, 4.5vw, 2rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.05rem; letter-spacing: 0.04em; color: var(--orange); margin: 1.4rem 0 0.4rem; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }
li { margin-bottom: 0.35rem; }
strong { color: #fff; }

.wrap { max-width: 44rem; margin: 0 auto; padding: 0 1.25rem; }
.wide { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }

.site-head { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.25rem; max-width: 72rem; margin: 0 auto; }
.brand { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 1.4rem; color: var(--orange); text-decoration: none; letter-spacing: 0.04em; }
.brand small { display: block; font-family: 'Source Sans 3', sans-serif; font-weight: 400; font-size: 0.65rem; letter-spacing: 0.18em; color: var(--dim); text-transform: uppercase; }
.site-head nav a { color: var(--muted); text-decoration: none; margin-left: 1.25rem; font-size: 0.95rem; }
.site-head nav a:hover { color: var(--orange); }

.crumbs { font-size: 0.85rem; color: var(--dim); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.lede { font-size: 1.2rem; color: #d1d5db; }
.meta { font-size: 0.85rem; color: var(--dim); margin-bottom: 1.5rem; }

.answer {
    background: rgba(255, 107, 53, 0.08);
    border: 1px solid rgba(255, 107, 53, 0.22);
    border-radius: 0.6rem;
    padding: 1.1rem 1.25rem;
    margin: 1.5rem 0 2.5rem;
}
.answer .display { color: var(--orange); font-size: 0.9rem; letter-spacing: 0.08em; margin-bottom: 0.4rem; }
.answer p:last-child { margin-bottom: 0; }

/* ---- 3D walkthrough ---- */
.wt { display: block; margin: 0 auto; max-width: 72rem; }
.wt-stage {
    position: sticky;
    top: 0;
    z-index: 5;
    height: var(--stage-h);
    min-height: 240px;
    background: radial-gradient(ellipse at 50% 55%, #1c1c1c 0%, #0b0b0b 75%);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}
.wt-stage canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.wt-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.wt-labels span {
    position: absolute;
    left: 0;
    top: 0;
    white-space: nowrap;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    color: #fff;
    background: rgba(10, 10, 10, 0.72);
    border: 1px solid rgba(255, 107, 53, 0.5);
    border-radius: 999px;
    padding: 0.05rem 0.5rem;
    transition: opacity 0.2s;
}
.wt-caption {
    position: absolute;
    top: 0.6rem;
    left: 0.75rem;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #d1d5db;
    pointer-events: none;
}
.wt-controls { position: absolute; left: 0.6rem; right: 0.6rem; bottom: 0.6rem; display: flex; justify-content: space-between; gap: 0.5rem; }
.wt-controls button {
    font: inherit;
    font-size: 0.85rem;
    color: #e5e7eb;
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}
.wt-controls button:hover { border-color: rgba(255, 107, 53, 0.5); }
.wt-controls button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.wt-controls .wt-hold { background: var(--orange); border-color: var(--orange); color: var(--black); font-weight: 600; touch-action: none; }
.wt-controls .wt-hold.is-held { background: #fff; border-color: #fff; }
.wt-fallback { display: none; }
.wt-no3d { position: static; height: auto; min-height: 0; padding: 1rem 1.25rem; }
.wt-no3d canvas, .wt-no3d .wt-labels, .wt-no3d .wt-caption, .wt-no3d .wt-controls { display: none; }
.wt-no3d .wt-fallback { display: block; color: var(--muted); font-size: 0.9rem; }

.wt-steps { padding: 0 1.25rem; }
.wt-steps section {
    padding: 2.25rem 0 2.25rem 1rem;
    border-left: 2px solid rgba(55, 65, 81, 0.4);
    scroll-margin-top: calc(var(--stage-h) + 0.75rem);
    transition: border-color 0.2s;
}
.wt-steps section.is-active { border-left-color: var(--orange); }
.wt-steps section:last-child { min-height: 55vh; }

@media (min-width: 900px) {
    .wt { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2.5rem; padding: 0 1.25rem; align-items: start; }
    .wt-stage { top: 1rem; height: min(78vh, 620px); border: 1px solid var(--line); border-radius: 0.75rem; }
    .wt-steps { padding: 0; }
    .wt-steps section { scroll-margin-top: 1rem; padding-left: 1.5rem; }
    .wt-steps section:last-child { min-height: 70vh; }
}

.signs { background: var(--dark); border: 1px solid var(--line); border-radius: 0.5rem; padding: 0.9rem 1.1rem 0.6rem; margin-top: 1rem; }
.signs h3 { margin-top: 0; }
.signs ul { margin-bottom: 0.4rem; }

.table-scroll { overflow-x: auto; margin: 1rem 0 2rem; border: 1px solid var(--line); border-radius: 0.5rem; }
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid rgba(55, 65, 81, 0.35); vertical-align: top; }
th { font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.8rem; color: var(--orange); background: var(--dark); }
tr:last-child td { border-bottom: 0; }

.after { padding: 3rem 0 1rem; }
.after h2 { margin-top: 2.5rem; }
.faq h3 { color: #fff; font-size: 1.1rem; letter-spacing: 0; text-transform: none; font-family: 'Source Sans 3', sans-serif; font-weight: 600; }

.cta {
    background: var(--dark);
    border: 1px solid rgba(255, 107, 53, 0.25);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 2.5rem 0;
    text-align: center;
}
.cta p { color: var(--muted); }
.btn {
    display: inline-block;
    background: var(--orange);
    color: var(--black);
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    padding: 0.85rem 1.6rem;
    border-radius: 0.5rem;
}
.btn:hover { background: var(--orange-dark); }

.post-list { list-style: none; padding: 0; margin: 2rem 0; }
.post-list li { background: var(--dark); border: 1px solid var(--line); border-radius: 0.6rem; padding: 1.25rem; margin-bottom: 1rem; }
.post-list a { text-decoration: none; }
.post-list h2 { font-size: 1.4rem; color: #fff; margin-bottom: 0.4rem; }
.post-list p { color: var(--muted); margin: 0; }

.site-foot { border-top: 1px solid rgba(55, 65, 81, 0.4); margin-top: 3rem; padding: 2rem 1.25rem; text-align: center; color: var(--dim); font-size: 0.85rem; }
.note { color: var(--dim); font-size: 0.9rem; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
