/* STOX6 module site — standalone stylesheet (can be deployed on its own domain) */
:root{
  --blue-900:#0a2f5c; --blue-800:#0d3d78; --blue-700:#12539b; --blue-600:#1566c0;
  --blue-100:#e8f1fc; --blue-050:#f4f8fe;
  --soil:#c8792f; --soil-light:#f7ead9;
  --ink:#152235; --ink-2:#33445c; --muted:#63748c; --muted-2:#8b9bb0;
  --line:#dde5ef; --line-2:#eaf0f7; --paper:#ffffff; --bg:#f7f9fc;
  --shadow:0 1px 2px rgba(16,42,76,.05),0 8px 24px rgba(16,42,76,.06);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);
  font-family:"Inter","Segoe UI","PingFang SC","Microsoft YaHei",system-ui,-apple-system,sans-serif;
  font-size:15px;line-height:1.7;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
img{max-width:100%}
.wrap{max-width:1180px;margin:0 auto;padding:0 26px}

/* ---------- header ---------- */
.s6-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.96);
  border-bottom:1px solid var(--line);backdrop-filter:blur(8px)}
.s6-nav-inner{max-width:1180px;margin:0 auto;padding:0 26px;height:66px;display:flex;align-items:center;gap:26px}
.s6-brand{display:flex;align-items:center;gap:10px;flex-shrink:0}
.s6-brand-mark{width:34px;height:34px;border-radius:9px;background:linear-gradient(145deg,var(--blue-700),var(--blue-900));
  display:grid;place-items:center;color:#fff;font-weight:800;font-size:13px;letter-spacing:-.04em}
.s6-brand-txt{display:flex;flex-direction:column;line-height:1.15}
.s6-brand-name{font-size:18px;font-weight:800;letter-spacing:-.03em;color:var(--blue-900)}
.s6-brand-name em{font-style:normal;color:var(--soil)}
.s6-brand-sub{font-size:9.5px;color:var(--muted);letter-spacing:.09em;white-space:nowrap}
.s6-navlinks{display:flex;align-items:center;gap:2px;margin-left:auto;height:100%}
.s6-navitem{position:relative;height:100%;display:flex;align-items:center}
.s6-navitem>a{padding:8px 13px;border-radius:8px;font-size:12.5px;font-weight:700;
  letter-spacing:.05em;color:var(--ink-2);white-space:nowrap;display:flex;align-items:center;gap:6px;transition:.18s}
.s6-navitem>a:hover{background:var(--blue-050);color:var(--blue-700)}
.s6-navitem.is-active>a{color:var(--blue-700);background:var(--blue-100)}
.s6-homeicon{width:19px;height:19px;display:block}
.s6-caret{font-size:9px;opacity:.55;margin-left:2px}
.s6-dropdown{position:absolute;top:58px;left:6px;min-width:186px;background:#fff;
  border:1px solid var(--line);border-radius:11px;box-shadow:var(--shadow);padding:7px;
  opacity:0;visibility:hidden;transform:translateY(-6px);transition:.18s}
.s6-navitem:hover .s6-dropdown,.s6-navitem:focus-within .s6-dropdown{opacity:1;visibility:visible;transform:translateY(0)}
.s6-dropdown a{display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:8px 11px;border-radius:7px;font-size:12.5px;font-weight:650;color:var(--ink-2);white-space:nowrap}
.s6-dropdown a:hover{background:var(--blue-050);color:var(--blue-700)}
.s6-dropdown a span{font-size:10px;color:var(--muted-2);font-weight:500}
.s6-dropdown .s6-dd-title{padding:6px 11px 7px;font-size:10px;letter-spacing:.1em;
  color:var(--muted-2);text-transform:uppercase;border-bottom:1px solid var(--line-2);margin-bottom:4px}
/* ---------- reserved content slots (main figure / framework / team) ---------- */
.s6-slot{border:1.5px dashed #c8d7e9;border-radius:12px;background:var(--blue-050);
  display:grid;place-items:center;text-align:center;padding:36px 26px}
.s6-slot-lg{min-height:340px}
.s6-slot-icon{width:46px;height:46px;border-radius:12px;background:#fff;border:1px solid var(--line);
  display:grid;place-items:center;margin:0 auto 14px;color:var(--blue-600);font-size:20px}
.s6-slot b{display:block;font-size:15px;color:var(--ink-2);margin-bottom:6px}
.s6-slot small{display:block;font-size:12.5px;color:var(--muted);max-width:560px}

/* ---------- reserved slots: filled state and file placeholders ---------- */
.s6-slot-img{display:none;max-width:100%;height:auto;border:1px solid var(--line);
  border-radius:10px;background:#fff}
.s6-slot.is-filled{min-height:340px;border:1px solid var(--line);background:#fff;
  display:grid;place-items:center;padding:18px}
.s6-slot.is-filled>div{display:none}
.s6-slot.is-filled .s6-slot-img{display:block;width:auto;max-height:860px}
.s6-ph.is-filled{display:block;padding:0;min-height:0;
  border:1px solid var(--line);background:#fff;text-align:left}
.s6-ph.is-filled>div{display:none}
.s6-ph.is-filled .s6-slot-img{display:block;width:100%;max-height:none}

/* ---------- Team and License & Attribution ---------- */
.s6-info p{margin:0 0 10px;font-size:14px;line-height:1.8;color:var(--ink-2)}
.s6-info b{color:var(--ink);font-weight:700}
.s6-license{max-width:900px}
.s6-license p{font-size:14px;line-height:1.9;color:var(--ink-2);margin:0 0 14px}
.s6-contact{list-style:none;padding:0;margin:0}
.s6-contact li{font-size:13.5px;line-height:1.9;color:var(--ink-2);
  padding:9px 0;border-top:1px solid var(--line-2)}
.s6-contact b{color:var(--ink);font-weight:700}
.s6-contact a{color:var(--blue-700);font-weight:650;text-decoration:none}
.s6-contact a:hover{text-decoration:underline}
.s6-license a{color:var(--blue-700);font-weight:650;text-decoration:none}
.s6-license a:hover{text-decoration:underline}

/* ---------- Framework Overview prose and wide figure ----------
   The prose and the figure share exactly the same horizontal edges:
   both span the full .wrap content width, with no padding or border
   on the filled figure slot. */
.s6-prose{width:100%;max-width:none;text-align:justify;text-justify:inter-word}
.s6-prose p{font-size:14.5px;line-height:1.95;color:var(--ink-2);margin:0 0 18px}
.s6-prose a{color:var(--blue-700);font-weight:650;text-decoration:none}
.s6-prose a:hover{text-decoration:underline}
.s6-slot-wide{margin-top:22px}
.s6-slot-wide.is-filled{padding:0;border:0;border-radius:0;background:transparent;min-height:0}
.s6-slot-wide.is-filled .s6-slot-img{width:100%;max-height:none;border:0;border-radius:0}
.s6-fileph{display:flex;align-items:center;justify-content:space-between;gap:12px;
  flex-wrap:wrap;margin-top:14px;padding:11px 14px;border:1px dashed #c8d7e9;
  border-radius:9px;background:var(--blue-050);font-size:12.5px;color:var(--muted)}
.s6-fileph-name{font-family:Consolas,"Liberation Mono",monospace;
  color:var(--ink-2);font-weight:700;font-size:12px}
.s6-fileph-state{font-size:11px;letter-spacing:.06em;text-transform:uppercase;
  color:var(--muted-2)}
.s6-fileph.is-ready{background:#fff;border-style:solid}
.s6-file-link{display:inline-flex;align-items:center;gap:6px;padding:8px 15px;
  border-radius:8px;background:var(--blue-700);color:#fff;font-size:12.5px;
  font-weight:700;text-decoration:none}
.s6-file-link:hover{background:var(--blue-600)}
.s6-team-card{border:1.5px dashed #c8d7e9;border-radius:12px;background:#fff;
  padding:26px 20px;text-align:center}
.s6-team-card .s6-avatar{width:52px;height:52px;border-radius:50%;background:var(--blue-050);
  border:1px solid var(--line);display:grid;place-items:center;margin:0 auto 12px;
  color:var(--blue-600);font-size:20px}
.s6-team-card b{display:block;font-size:14px;color:var(--ink-2);margin-bottom:4px}
.s6-team-card small{display:block;font-size:12px;color:var(--muted-2)}
.s6-toggle{display:none;margin-left:auto;background:none;border:1px solid var(--line);
  border-radius:8px;padding:6px 10px;font-size:16px;color:var(--ink-2);cursor:pointer}

/* ---------- hero ---------- */
.s6-hero{background:linear-gradient(125deg,#082a55 0%,#0e4788 58%,#1a63ae 100%);color:#fff;position:relative;overflow:hidden}
.s6-hero:after{content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(900px 380px at 82% 12%,rgba(255,255,255,.10),transparent 65%)}
.s6-hero .wrap{position:relative;padding-top:62px;padding-bottom:0}
.s6-eyebrow{display:inline-flex;align-items:center;gap:9px;font-size:11px;letter-spacing:.13em;
  text-transform:uppercase;border:1px solid rgba(255,255,255,.26);border-radius:999px;padding:6px 14px;color:#cfe1f7}
.s6-eyebrow .dot{width:6px;height:6px;border-radius:50%;background:#f0b26b;display:inline-block}
.s6-hero h1{font-size:clamp(34px,4.6vw,54px);line-height:1.14;letter-spacing:-.035em;margin:22px 0 14px;font-weight:800}
.s6-hero h1 em{font-style:normal;color:#f3b872}
.s6-lead{max-width:690px;color:#d5e4f7;font-size:15.5px;line-height:1.85;margin:0 0 26px}
.s6-actions{display:flex;gap:12px;flex-wrap:wrap;padding-bottom:44px}
.s6-btn{display:inline-flex;align-items:center;gap:8px;padding:10px 18px;border-radius:9px;
  font-size:13.5px;font-weight:700;transition:.18s}
.s6-btn-primary{background:#fff;color:var(--blue-800)}
.s6-btn-primary:hover{background:var(--blue-100)}
.s6-btn-ghost{border:1px solid rgba(255,255,255,.36);color:#fff}
.s6-btn-ghost:hover{background:rgba(255,255,255,.12)}
.s6-btn-blue{background:var(--blue-700);color:#fff}
.s6-btn-blue:hover{background:var(--blue-800)}
.s6-btn-sm{padding:8px 14px;font-size:12.5px}
.s6-hero-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;
  border-top:1px solid rgba(255,255,255,.16);padding:22px 0 28px}
.s6-hero-stats .num{font-size:26px;font-weight:800;letter-spacing:-.03em}
.s6-hero-stats .num small{font-size:12px;font-weight:600;margin-left:3px;color:#b8d2f0}
.s6-hero-stats .lab{font-size:11.5px;color:#b9d0ea;letter-spacing:.02em}

/* ---------- page head ---------- */
.s6-pagehead{background:#fff;border-bottom:1px solid var(--line);padding:34px 0 30px}
.s6-crumb{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:9px;margin-bottom:12px}
.s6-crumb a{color:var(--blue-700);font-weight:650}
.s6-crumb a:hover{text-decoration:underline}
.s6-pagehead h1{font-size:34px;letter-spacing:-.03em;margin:0 0 8px;color:var(--blue-900);font-weight:800}
.s6-pagehead h1 small{font-size:.42em;font-weight:500;color:var(--muted-2);vertical-align:middle;margin-left:8px}
.s6-pagehead p{margin:0;color:var(--muted);max-width:820px;font-size:14px}
/* Long module description: full content width, justified, same typography as OVERVIEW prose */
.s6-pagehead p.s6-page-desc{max-width:none;font-size:14.5px;line-height:1.9;
  color:var(--ink-2);text-align:justify;text-justify:inter-word}
.s6-pagehead p.s6-page-desc a{color:var(--blue-700);font-weight:650;text-decoration:none}
.s6-pagehead p.s6-page-desc a:hover{text-decoration:underline}
.s6-badges{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.s6-badge{font-size:11px;font-weight:700;padding:4px 10px;border-radius:6px;letter-spacing:.02em}
.s6-badge-blue{background:var(--blue-100);color:var(--blue-700)}
.s6-badge-amber{background:var(--soil-light);color:#9a5a1d}

/* ---------- sections ---------- */
.s6-section{padding:44px 0}
.s6-section.alt{background:#fff;border-top:1px solid var(--line-2);border-bottom:1px solid var(--line-2)}
.s6-section-head{margin-bottom:24px}
.s6-section-head .eyebrow{font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;
  color:var(--blue-600);font-weight:700;margin-bottom:7px}
.s6-section-head h2{font-size:25px;letter-spacing:-.025em;margin:0 0 8px;color:var(--blue-900)}
.s6-section-head p{margin:0;color:var(--muted);font-size:14px;max-width:790px}
.s6-grid{display:grid;gap:18px}
.s6-grid-2{grid-template-columns:repeat(2,1fr)}
.s6-grid-3{grid-template-columns:repeat(3,1fr)}
.s6-grid-4{grid-template-columns:repeat(4,1fr)}
.s6-grid-5{grid-template-columns:repeat(5,1fr)}
.s6-grid-5 .s6-card{padding:18px}
.s6-card{background:#fff;border:1px solid var(--line);border-radius:13px;padding:22px;box-shadow:var(--shadow)}
.s6-card h3{margin:0 0 8px;font-size:17px;letter-spacing:-.02em;color:var(--blue-900)}
.s6-card p{margin:0;color:var(--muted);font-size:13px}
.s6-card .s6-code{font-size:10.5px;letter-spacing:.1em;color:var(--blue-600);font-weight:700}
.s6-card.is-live{border-color:#b9d4f2}
.s6-card.is-soon{border-style:dashed;background:var(--blue-050);box-shadow:none}
.s6-card.is-soon h3{color:var(--muted-2)}
.s6-card-foot{margin-top:16px;padding-top:13px;border-top:1px solid var(--line-2);
  display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px}
.s6-card-foot a{color:var(--blue-700);font-weight:700}
.s6-tag{font-size:10.5px;color:var(--muted-2);font-weight:650}

/* ---------- submodule tabs ---------- */
.s6-subnav{display:flex;gap:6px;flex-wrap:wrap;background:#fff;border:1px solid var(--line);
  border-radius:11px;padding:7px;margin-bottom:22px;box-shadow:var(--shadow)}
.s6-tab{padding:9px 18px;border-radius:8px;font-size:13px;font-weight:700;color:var(--muted);
  display:flex;align-items:center;gap:8px;transition:.18s}
.s6-tab:hover{background:var(--blue-050);color:var(--blue-700)}
.s6-tab.is-active{background:var(--blue-700);color:#fff}
.s6-tab .s6-tab-sub{font-size:10.5px;font-weight:500;opacity:.72}
.s6-tab-no{font-size:10px;opacity:.6;font-weight:600}
.s6-panel{display:none}
.s6-panel.is-active{display:block;animation:s6fade .28s ease}
@keyframes s6fade{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}
.s6-panel-head{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.s6-panel-head h3{margin:0;font-size:19px;letter-spacing:-.02em;color:var(--blue-900)}
.s6-panel-head .s6-panel-code{font-size:10.5px;letter-spacing:.12em;color:var(--blue-600);font-weight:700}
.s6-panel-desc{margin:0 0 18px;color:var(--muted);font-size:13.5px;max-width:820px}
.s6-ph{border:1.5px dashed #c8d7e9;border-radius:12px;background:var(--blue-050);
  min-height:180px;display:grid;place-items:center;text-align:center;padding:28px}
.s6-ph .s6-ph-icon{width:42px;height:42px;border-radius:11px;background:#fff;border:1px solid var(--line);
  display:grid;place-items:center;margin:0 auto 12px;color:var(--blue-600);font-size:19px}
.s6-ph b{display:block;font-size:14px;color:var(--ink-2);margin-bottom:5px}
.s6-ph small{display:block;font-size:12px;color:var(--muted)}
.s6-table{width:100%;border-collapse:collapse;background:#fff;border:1px solid var(--line);
  border-radius:11px;overflow:hidden;font-size:13px}
.s6-table th{background:var(--blue-050);text-align:left;padding:11px 14px;font-size:11px;
  letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-weight:700;border-bottom:1px solid var(--line)}
.s6-table td{padding:12px 14px;border-bottom:1px solid var(--line-2);color:var(--ink-2)}
.s6-table tr:last-child td{border-bottom:none}
.s6-table .s6-empty-row{text-align:center;color:var(--muted-2);padding:26px 14px}
.s6-matrix td:first-child{font-weight:750;color:var(--blue-900)}
.s6-matrix a{display:inline-block;font-size:11px;font-weight:650;color:var(--blue-700);
  background:var(--blue-050);border:1px solid var(--line);border-radius:6px;padding:3px 9px}
.s6-matrix a:hover{background:var(--blue-100)}
.s6-codeph{background:#0d2440;color:#9fb8d6;border-radius:11px;padding:22px 24px;
  font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace;font-size:12.5px;line-height:1.9;overflow-x:auto}
.s6-codeph .dim{color:#5d7a9c}
.s6-note{background:var(--soil-light);border:1px solid #ecd6b7;border-radius:11px;padding:16px 18px;
  font-size:13px;color:#7d4d1c}
.s6-note b{color:#6b3f13}

/* ---------- footer ---------- */
.s6-footer{background:var(--blue-900);color:#bcd2ec;padding:36px 0 22px;margin-top:12px}
.s6-footer-inner{display:flex;justify-content:space-between;gap:26px;flex-wrap:wrap}
.s6-footer h4{margin:0 0 8px;color:#fff;font-size:16px}
.s6-footer p{margin:0;font-size:12.5px;max-width:520px}
.s6-footer a{color:#fff;font-size:12.5px;font-weight:700}
.s6-footer a:hover{text-decoration:underline}
.s6-footer-bottom{border-top:1px solid rgba(255,255,255,.14);margin-top:26px;padding-top:16px;
  display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:11.5px;color:#8fb0d4}

@media(max-width:1000px){
  .s6-grid-4{grid-template-columns:repeat(2,1fr)}
  .s6-grid-5{grid-template-columns:repeat(3,1fr)}
  .s6-grid-3{grid-template-columns:repeat(2,1fr)}
  .s6-navlinks{gap:0}
  .s6-navitem>a{padding:8px 9px;font-size:11.5px}
}
@media(max-width:760px){
  .s6-nav-inner{height:auto;min-height:62px;flex-wrap:wrap;padding:10px 20px;gap:10px}
  .s6-toggle{display:block}
  .s6-navlinks{display:none;width:100%;flex-direction:column;align-items:stretch;
    height:auto;margin-left:0;order:3;padding-top:8px;border-top:1px solid var(--line-2)}
  .s6-navlinks.is-open{display:flex}
  .s6-navitem{height:auto;flex-direction:column;align-items:stretch}
  .s6-navitem>a{justify-content:space-between;padding:10px 12px}
  .s6-dropdown{position:static;opacity:1;visibility:visible;transform:none;box-shadow:none;
    border:none;background:var(--blue-050);margin:0 0 6px;display:none}
  .s6-navitem.is-open .s6-dropdown{display:block}
  .s6-grid-2,.s6-grid-3,.s6-grid-4,.s6-grid-5{grid-template-columns:1fr}
  .s6-hero-stats{grid-template-columns:repeat(2,1fr);row-gap:20px}
  .wrap,.s6-nav-inner{padding-left:20px;padding-right:20px}
}

/* ---------- STOX6 figure gallery and data download ---------- */
/* picker and legend share one row: buttons left, colour scale right */
.s6-fig-toolbar{display:flex;align-items:center;justify-content:space-between;
  flex-wrap:wrap;gap:14px 22px;margin-bottom:18px}
.s6-fig-picker{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:0}
.s6-fig-group-label{display:flex;align-items:center;margin-right:4px;
  font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;
  color:var(--muted);white-space:nowrap}
.s6-fig-group{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;min-width:0}
.s6-fig-divider{flex:0 0 auto;width:1px;height:22px;background:var(--line);margin:0 2px}
.s6-fig-select-wrap{position:relative;display:inline-flex;align-items:center;flex:0 0 auto}
.s6-fig-select-wrap::after{content:"";position:absolute;right:14px;top:50%;
  width:7px;height:7px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);
  transform:translateY(-70%) rotate(45deg);pointer-events:none}
.s6-fig-select{font:inherit;appearance:none;-webkit-appearance:none;cursor:pointer;
  min-width:172px;height:38px;line-height:18px;padding:9px 34px 9px 14px;
  border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink-2);
  font-size:13px;font-weight:700;letter-spacing:.02em;transition:.18s}
.s6-fig-select:hover{background:var(--blue-050);border-color:#b9d4f2;color:var(--blue-700)}
.s6-fig-select:focus{outline:2px solid #b9d4f2;outline-offset:1px}
/* VRP keeps the dropdown, pollutant buttons and legend on a single row */
.s6-fig-toolbar--vrp .s6-fig-picker{flex-wrap:nowrap}
.s6-fig-toolbar--vrp .s6-fig-btn{height:38px;line-height:18px;padding:9px 14px}
.s6-fig-btn{font:inherit;cursor:pointer;padding:9px 20px;border-radius:8px;
  border:1px solid var(--line);background:#fff;color:var(--ink-2);
  font-size:13px;font-weight:700;letter-spacing:.02em;transition:.18s}
.s6-fig-btn:hover{background:var(--blue-050);border-color:#b9d4f2;color:var(--blue-700)}
.s6-fig-btn.is-active{background:var(--blue-700);border-color:var(--blue-700);color:#fff}
/* All three modules use the same legend width; tick labels are HTML text at
   body-copy size instead of tiny baked-in bitmap numbers. */
.s6-fig-legend{display:flex;align-items:flex-start;gap:12px;margin-left:auto;min-width:0}
.s6-fig-legend-name{font-size:14.5px;font-weight:700;color:var(--ink-2);white-space:nowrap;margin-top:1px}
.s6-legend-scale{display:block;width:260px;max-width:100%;flex:none}
.s6-legend-scale img{display:block;width:100%;height:auto}
.s6-legend-ticks{display:block;position:relative;height:22px;margin-top:2px;
  font-size:14.5px;line-height:1.4;color:var(--ink-2)}
.s6-legend-ticks>span{position:absolute;top:0;transform:translateX(-50%);white-space:nowrap}
.s6-legend-ticks>span:first-child{transform:none}
.s6-legend-ticks>span:last-child{transform:translateX(-100%)}
.s6-fig-stage{margin:0;border:1px solid var(--line);border-radius:12px;
  background:#fff;padding:14px;text-align:center}
.s6-fig-stage img{display:block;width:100%;height:auto;border-radius:6px}
/* The overview framework spans the same width as the body text. DRS trends contain
   baked-in labels, so their display width is capped to keep the text close to body size. */
body[data-page="overview"] .s6-slot-wide.is-filled .s6-slot-img{max-width:100%;margin-left:0;margin-right:0}
body[data-page="overview"] .s6-framework-caption{max-width:none;margin:10px 0 0;font-size:13px;line-height:1.65;color:var(--muted);text-align:left}
body[data-page="drs"] .s6-fig-stage img{max-width:700px;margin-left:auto;margin-right:auto}
/* The STOX6 / VRP / DRP maps are drawn in an equidistant cylindrical projection,
   which renders China noticeably wide and flat. Display them at a less flat ratio
   (~1.6:1 instead of 1.89:1) so the map reads closer to a standard China map.
   Only the on-page display ratio changes; the source PNGs are untouched. */
body[data-page="stox6"] .s6-fig-stage img,
body[data-page="vrp"] .s6-fig-stage img,
body[data-page="drp"] .s6-fig-stage img{aspect-ratio:1.6 / 1;height:auto;object-fit:fill}
/* HOME main figure: fill the content width so the whole wide image is visible
   without vertical cropping. Shown at 100% of the .wrap content width. */
.s6-slot-home-figure.is-filled{padding:0;border:0;border-radius:0;background:transparent;min-height:0}
.s6-slot-home-figure.is-filled .s6-slot-img{display:block;width:100%;max-width:100%;max-height:none;
  height:auto;margin:0;border:1px solid var(--line);border-radius:10px}
.s6-fig-stage figcaption{margin-top:12px;font-size:13px;font-weight:650;color:var(--ink-2)}
.s6-map-approval{margin-top:7px;font-size:11.5px;color:var(--muted-2)}
.s6-fig-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.s6-btn-outline{border:1px solid var(--blue-700);color:var(--blue-700);background:#fff}
.s6-btn-outline:hover{background:var(--blue-050)}
.s6-table-link{display:inline-flex;align-items:center;padding:6px 13px;border-radius:7px;
  background:var(--blue-700);color:#fff;font-size:12px;font-weight:700;white-space:nowrap}
.s6-table-link:hover{background:var(--blue-600)}
.s6-data-meta{margin-top:16px;padding:14px 16px;border:1px dashed #c8d7e9;
  border-radius:9px;background:var(--blue-050);font-size:13px;color:var(--ink-2)}
.s6-data-meta b{color:var(--blue-800);font-weight:700}
.s6-data-meta-sub{margin-top:6px;font-size:12px;color:var(--muted)}
/* ---------- DRS data browser ---------- */
.s6-data-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:12px 18px;margin-bottom:16px}
.s6-data-toolbar .s6-fig-group-label{margin-right:0}
.s6-search{font:inherit;height:38px;min-width:250px;padding:9px 14px;
  border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink-2);
  font-size:13px;transition:.18s}
.s6-search::placeholder{color:var(--muted-2)}
.s6-search:hover{border-color:#b9d4f2}
.s6-search:focus{outline:2px solid #b9d4f2;outline-offset:1px}
.s6-data-count{margin-left:auto;font-size:12px;color:var(--muted)}
.s6-download-row{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:18px}
@media(max-width:760px){
  .s6-search{min-width:0;width:100%}
  .s6-data-count{margin-left:0}
}
/* narrow screens: the legend wraps to its own line instead of squeezing the buttons */
@media(max-width:1100px){
  .s6-fig-toolbar--vrp .s6-fig-legend{margin-left:0;width:100%}
}
@media(max-width:900px){
  .s6-fig-legend{margin-left:0;width:100%}
  .s6-legend-scale{width:100%;max-width:420px}
  .s6-fig-toolbar--vrp .s6-fig-picker{flex-wrap:wrap}
}
@media(max-width:760px){
  .s6-fig-btn{padding:8px 14px;font-size:12px}
  .s6-fig-stage{padding:10px}
  .s6-fig-toolbar--vrp .s6-fig-divider{display:none}
  .s6-fig-toolbar--vrp .s6-fig-btn,
  .s6-fig-toolbar--vrp .s6-fig-select{height:34px;line-height:16px;font-size:12px}
  .s6-fig-toolbar--vrp .s6-fig-btn{padding:8px 11px}
  .s6-fig-toolbar--vrp .s6-fig-select{min-width:150px;padding:8px 30px 8px 12px}
}
@media(max-width:480px){
  .s6-fig-group[data-group="pol"]{flex-wrap:wrap}
}

/* ---------- STOX6 Code package ---------- */
.s6-code-hero{display:flex;align-items:center;justify-content:space-between;gap:22px;
  padding:20px 22px;margin-bottom:20px;border:1px solid #c8d7e9;border-radius:12px;
  background:var(--blue-050)}
.s6-code-hero-text{min-width:0}
.s6-code-hero-kicker{font-size:10.5px;letter-spacing:.12em;font-weight:700;
  color:var(--blue-700);text-transform:uppercase}
.s6-code-hero h4{margin:7px 0 6px;font-size:18px;color:var(--blue-800)}
.s6-code-hero p{margin:0;font-size:13px;line-height:1.75;color:var(--ink-2)}
.s6-code-hero-meta{margin-top:9px;font-size:11.5px;color:var(--muted)}
.s6-code-hero .s6-btn{white-space:nowrap;flex-shrink:0}
.s6-table-muted{font-size:12px;color:var(--muted);white-space:nowrap}
.s6-code-run{margin-top:20px;padding:16px 18px;border:1px solid var(--line);
  border-radius:10px;background:#fff}
.s6-code-run h4{margin:0 0 10px;font-size:14px;color:var(--blue-800)}
.s6-code-run pre{margin:0 0 10px;padding:12px 14px;border-radius:8px;
  background:#f4f7fb;border:1px solid var(--line-2);overflow-x:auto;
  font-size:12.5px;line-height:1.6;color:var(--ink-2)}
.s6-code-run p{margin:0;font-size:12.5px;line-height:1.8;color:var(--ink-2)}
.s6-code-run code{font-size:12px;background:var(--blue-050);padding:1px 5px;
  border-radius:4px;color:var(--blue-800)}
@media(max-width:760px){
  .s6-code-hero{flex-direction:column;align-items:flex-start;padding:16px}
  .s6-table-muted{white-space:normal}
}

/* ---------- Code: run steps ---------- */
.s6-code-steps{margin:0 0 12px;padding-left:20px;font-size:12.5px;
  line-height:1.85;color:var(--ink-2)}
.s6-code-steps li{margin-bottom:4px}
.s6-code-steps b{color:var(--blue-800)}
.s6-code-steps a{color:var(--blue-700);font-weight:650;text-decoration:none}
.s6-code-steps a:hover{text-decoration:underline}
