/* Ausgeology · Inside the Earth: this lesson's own blocks. Loaded after lesson.css. */
:root {
  --role-man: #1d5f8a; --role-rec: #a5481a; --role-pre: #3e6b2a; --role-ref: #6c4fa8;
  --crust: #8a6a44; --mantle-u: #d98a3a; --mantle-l: #c0612b; --outer: #e3b341; --inner: #f1d98a; --mantle: #d27a35;
  --wv-dot: #1d5f8a; --wv-bg: #eef3f6; --wv-liq: #dbe8f3; --hs: #b8501a;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --role-man: #6aaedc; --role-rec: #ec8a52; --role-pre: #8cc56f; --role-ref: #b49ae8;
    --crust: #7a5e3e; --mantle-u: #a8682b; --mantle-l: #8f4a22; --outer: #b38a2c; --inner: #c9b06a; --mantle: #9c5a28;
    --wv-dot: #6aaedc; --wv-bg: #1b2a33; --wv-liq: #1a3346; --hs: #ec8a52;
  }
}
:root[data-theme="dark"] {
  --role-man: #6aaedc; --role-rec: #ec8a52; --role-pre: #8cc56f; --role-ref: #b49ae8;
  --crust: #7a5e3e; --mantle-u: #a8682b; --mantle-l: #8f4a22; --outer: #b38a2c; --inner: #c9b06a; --mantle: #9c5a28;
  --wv-dot: #6aaedc; --wv-bg: #1b2a33; --wv-liq: #1a3346; --hs: #ec8a52;
}

/* ---------- team roles ---------- */
.role-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 960px) { .role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .role-grid { grid-template-columns: minmax(0, 1fr); } }
.role-card { display: grid; gap: 6px; align-content: start; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.role-card b { font-size: 1.05rem; }
.role-card span { font-size: 0.93rem; line-height: 1.4; }
.role-card i { font-style: normal; font-weight: 700; }
.role-card.is-on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.role-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.role-tag { display: inline-block; justify-self: start; font: 700 0.72rem var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; color: #fff; vertical-align: 1px; }
.role-man { background: #1d5f8a; } .role-rec { background: #a5481a; } .role-pre { background: #3e6b2a; } .role-ref { background: #6c4fa8; }
.role-line { font-size: 0.95rem; margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }

/* ---------- POGIL activity parts ---------- */
.model-box { border: 1.5px solid var(--line); border-radius: 16px; padding: 14px 16px; background: var(--surface); display: grid; gap: 12px; }
.model-box > .label { color: var(--accent); }
.ctq-list { display: grid; gap: 14px; }
.ctq { display: grid; gap: 8px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.ctq-q { margin: 0; font-weight: 700; line-height: 1.4; }
.ctq-type { display: inline-block; font: 700 0.7rem var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line); color: var(--ink-2); margin-left: 6px; vertical-align: 2px; }
.ctq textarea { width: 100%; min-height: 4.5em; font: inherit; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.ctq-btn { justify-self: start; }
.ctq-model { padding: 10px 12px; border-left: 4px solid var(--accent); border-radius: 0 10px 10px 0; background: var(--accent-soft); }
.ctq-model p { margin: 0; }
.ctq .check { margin: 0; }
.st-how.st-how-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .st-how.st-how-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .st-how.st-how-4 { grid-template-columns: minmax(0, 1fr); } }
.p-c i { background: #8a5a12; } .p-d i { background: #2f7a4a; }
.halo { fill: none !important; stroke: var(--surface); stroke-width: 4.5; stroke-linejoin: round; opacity: 0.9; }

/* ---------- wave model ---------- */
.wv-ctrl { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.wv-bg { fill: var(--wv-bg); }
.is-liquid .wv-bg { fill: var(--wv-liq); }
.wv-dot { fill: var(--wv-dot); }
.wv-arrow { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.wv-lab { font: 600 14px var(--font-body); fill: var(--ink); }

/* ---------- shadow zones ---------- */
.sz-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: center; }
@media (max-width: 760px) { .sz-grid { grid-template-columns: minmax(0, 1fr); } }
.sz-key p { margin: 0 0 6px; display: flex; align-items: center; gap: 8px; font-size: 0.95rem; }
.sz-sw { display: inline-block; width: 16px; height: 16px; border-radius: 4px; border: 1px solid var(--ink); flex: none; }
.sz-mantle { fill: var(--mantle); }
.sz-outer { fill: var(--outer); }
.sz-inner { fill: var(--inner); stroke: var(--ink); stroke-width: 1; stroke-dasharray: 4 3; }
.sz-shade { fill: var(--ink); opacity: 0.12; }
.sz-st { stroke: var(--ink); stroke-width: 1.2; }
.sz-ps, .sz-st.sz-ps { fill: #2f7a4a; background: #2f7a4a; }
.sz-p, .sz-st.sz-p { fill: #1d5f8a; background: #1d5f8a; }
.sz-pw, .sz-st.sz-pw { fill: #9fc3dd; background: #9fc3dd; }
.sz-none, .sz-st.sz-none { fill: var(--surface); background: var(--surface); }
.sz-quake { fill: #d4541c; stroke: var(--ink); stroke-width: 1; }
.sz-lab { font: 700 16px var(--font-body); fill: var(--ink); }
.sz-lab-sm { font-size: 13px; }

/* ---------- layer cut-away ---------- */
.lc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 760px) { .lc-grid { grid-template-columns: minmax(0, 1fr); } }
.lc-pick button.is-seen::after { content: " ✓"; }
.lc-l { stroke: var(--ink); stroke-width: 1; opacity: 0.55; }
.lc-l.is-on { opacity: 1; stroke-width: 2.5; }
.lc-crust { fill: var(--crust); } .lc-um { fill: var(--mantle-u); } .lc-lm { fill: var(--mantle-l); } .lc-oc { fill: var(--outer); } .lc-ic { fill: var(--inner); }
.lc-lab { font: 800 17px var(--font-body); fill: var(--ink); }
.lc-facts h4 { margin: 0 0 8px; font-size: 1.1rem; }
.lc-facts dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; font-size: 0.95rem; }
.lc-facts dt { font-weight: 700; }
.lc-facts dd { margin: 0; }

/* ---------- hot-spot chain ---------- */
.hs-axis { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.hs-grid { fill: none; stroke: var(--line); stroke-width: 1; }
.hs-tick { font: 500 13px var(--font-mono); fill: var(--ink-2); }
.hs-line { fill: none; stroke: var(--hs); stroke-width: 2.5; stroke-dasharray: 6 5; }
.hs-pt { fill: var(--surface); stroke: var(--hs); stroke-width: 2.5; }
.hs-pt.is-on { fill: var(--hs); }

/* ---------- depth profiles ---------- */
.pf-key { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.92rem; margin: 4px 0 6px; }
.pf-key span { display: inline-flex; align-items: center; gap: 6px; }
.pf-sw { display: inline-block; width: 22px; height: 4px; border-radius: 2px; }
.pf-axis { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.pf-grid { fill: none; stroke: var(--line); stroke-width: 1; }
.pf-tick { font: 500 13px var(--font-mono); fill: var(--ink-2); }
.pf-band { fill: var(--accent-soft); opacity: 0.55; } .pf-band-2 { opacity: 0.25; }
.pf-bandlab { font: 700 12px var(--font-body); fill: var(--ink-2); }
.pf-line { fill: none; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.pf-a { stroke: #1d5f8a; background: #1d5f8a; } .pf-b { stroke: #b8501a; background: #b8501a; } .pf-c { stroke: #2f7a4a; background: #2f7a4a; }
:root[data-theme="dark"] .pf-a { stroke: #6aaedc; background: #6aaedc; } :root[data-theme="dark"] .pf-b { stroke: #ec8a52; background: #ec8a52; } :root[data-theme="dark"] .pf-c { stroke: #8cc56f; background: #8cc56f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pf-a { stroke: #6aaedc; background: #6aaedc; } :root:not([data-theme="light"]) .pf-b { stroke: #ec8a52; background: #ec8a52; } :root:not([data-theme="light"]) .pf-c { stroke: #8cc56f; background: #8cc56f; } }

/* ---------- plate forces section ---------- */
.pfz-sky { fill: var(--wv-bg); }
.pfz-water { fill: #9cc3de; opacity: 0.5; }
.pfz-mantle { fill: var(--mantle-u); opacity: 0.75; }
.pfz-ocean { fill: #4f5b63; } .pfz-cont { fill: #a08a62; }
.pfz-sea { stroke: #3d7fb0; stroke-width: 2; stroke-dasharray: 8 5; fill: none; }
.pfz-lab { font: 700 16px var(--font-body); fill: var(--ink); paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.pfz-sm { font-size: 14px; } .pfz-key { font-size: 18px; fill: #b8501a; }
.pfz-arrow { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; }
.pfz-headp { fill: var(--ink); }
.pfz-hot { stroke: #d4541c; }
.pfz-conv { fill: none; stroke: var(--ink); stroke-width: 3; stroke-dasharray: 10 7; }
.pfz-plume { fill: none; stroke: #d4541c; stroke-width: 14; stroke-linecap: round; opacity: 0.8; }
.pfz-volc { fill: #6b3a1f; }
.sz-out { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); font-size: 0.95rem; line-height: 1.45; }
