/* Exam zone page (uses ../hub.css for the hero, bar and tones) */
.ex-hero { min-height: 0; }
.ex-hero .hero-text { padding-bottom: 2.2rem; }
.ex-back { text-decoration: none; }
.ex { max-width: 1180px; margin: 0 auto; padding: 1rem 1.25rem 2rem; display: grid; gap: 1.6rem; }
.ex-sec { display: grid; gap: .8rem; scroll-margin-top: 4.5rem; }
.ex-sec h2 { display: flex; align-items: center; gap: .6rem; font-size: 1.45rem; }
.ex-sec h2 span { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 9px; background: var(--u); color: var(--u-ink); font-size: 1rem; }
.ex-lead { max-width: 52rem; }
.ex-tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.ex-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.15rem; box-shadow: var(--shadow); min-width: 0; }
.ex-card.mine { border-color: var(--u); box-shadow: 0 0 0 2px color-mix(in srgb, var(--u) 40%, transparent); }
.ex-card h3 { margin-bottom: .5rem; }
.ex-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.ex-facts b { display: inline-block; min-width: 6rem; color: var(--u-text); }
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: .8rem; }
.fx { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--u); border-radius: 12px; padding: .8rem 1rem; display: grid; gap: .3rem; align-content: start; min-width: 0; }
.fx h3 { font-size: 1rem; }
.fx p { overflow-x: auto; overflow-y: hidden; }
.fx .katex-display { margin: .35rem 0; }
.fx > svg { width: 100%; max-width: 13rem; height: auto; justify-self: center; }
.fx > svg .sh { fill: color-mix(in srgb, var(--u) 22%, var(--surface)); stroke: var(--ink); stroke-width: 1.6; }
.fx > svg .sh2 { fill: color-mix(in srgb, var(--u) 12%, var(--surface)); stroke: var(--ink); stroke-width: 1.6; }
.fx > svg .dim { fill: none; stroke: var(--u-text); stroke-width: 1.4; stroke-dasharray: 4 3; }
.fx > svg text { font: italic 700 11px system-ui, sans-serif; fill: var(--ink); text-anchor: middle; }
.tips .fx p { overflow: visible; }
body[data-tier="F"] .h-only, body[data-tier="F"] .h-row { display: none; }
.ex-tbl { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ex-tbl td { padding: .55rem .8rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ex-tbl td:nth-child(odd) { width: 9rem; font-size: 1.1rem; text-align: center; background: var(--surface-2); }
.ex-link { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.ex-link > div { min-width: 0; flex: 1 1 22rem; }
.ex-steps { margin: 0; padding-left: 1.3rem; display: grid; gap: .35rem; max-width: 52rem; }
.small { font-size: .88rem; }
.muted { color: var(--muted); }
@media (max-width: 800px) { .ex-tiers { grid-template-columns: 1fr; } .ex-tbl td:nth-child(odd) { width: auto; } }
