:root{
  --bg:#f4f7fb;--surface:#fff;--surface-soft:#eef3f9;--text:#10203a;--muted:#607089;--line:#dce5f0;
  --brand:#265dda;--brand-strong:#1848bb;--brand-soft:#e9f0ff;--success:#16865f;
  --shadow:0 20px 55px rgba(32,54,88,.12);--shadow-soft:0 10px 30px rgba(32,54,88,.08);--radius:22px
}
[data-theme="dark"]{
  --bg:#09111f;--surface:#111c2f;--surface-soft:#17253b;--text:#f4f7fc;--muted:#a7b5ca;--line:#263853;
  --brand:#7da2ff;--brand-strong:#9ab7ff;--brand-soft:#1d3154;--success:#55d2a2;
  --shadow:0 20px 60px rgba(0,0,0,.32);--shadow-soft:0 10px 30px rgba(0,0,0,.2)
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:var(--text);background:var(--bg);line-height:1.6;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
button,input{font:inherit}
button{cursor:pointer}
.section,section[id]{scroll-margin-top:86px}
:where(a,button,input):focus-visible{outline:3px solid color-mix(in srgb,var(--brand) 44%,transparent);outline-offset:3px}
.container{width:min(1120px,calc(100% - 40px));margin-inline:auto}
.skip-link{position:absolute;left:-9999px;top:0}
.skip-link:focus{left:16px;top:16px;background:var(--surface);padding:10px 14px;border-radius:10px;z-index:99}
.site-header{position:sticky;top:0;z-index:30;background:color-mix(in srgb,var(--bg) 90%,transparent);border-bottom:1px solid color-mix(in srgb,var(--line) 76%,transparent);backdrop-filter:saturate(150%) blur(16px)}
.nav{height:70px;display:flex;align-items:center;gap:28px}
.brand{display:flex;align-items:center;gap:10px;font-weight:800;letter-spacing:-.03em}
.brand-mark{display:grid;place-items:center;width:35px;height:35px;border-radius:11px;background:linear-gradient(135deg,var(--brand),#4d7df2);color:#fff;font-weight:800;box-shadow:0 8px 20px rgba(38,93,218,.25)}
.brand-mark img{display:block;width:43px;height:43px;object-fit:contain}
.brand-text{font-size:18px}.brand-text span{color:var(--brand)}
.nav-links{display:flex;align-items:center;gap:24px;margin-left:auto}
.nav-links a{font-size:14px;color:var(--muted);font-weight:650}
.nav-links a:hover{color:var(--text)}
.icon-btn{width:40px;height:40px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text)}
.hero{position:relative;isolation:isolate;overflow:hidden;min-height:640px;display:flex;align-items:center;border-bottom:1px solid var(--line)}
.hero-backdrop{position:absolute;z-index:-2;inset:0;background:url("./assets/hero-manitoba.webp") center right/cover no-repeat}
.hero::before{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(90deg,rgba(244,247,251,.99) 0%,rgba(244,247,251,.95) 43%,rgba(244,247,251,.72) 64%,rgba(244,247,251,.26) 100%),linear-gradient(0deg,rgba(244,247,251,.8) 0%,transparent 40%)}
[data-theme="dark"] .hero::before{background:linear-gradient(90deg,rgba(9,17,31,.99) 0%,rgba(9,17,31,.95) 43%,rgba(9,17,31,.76) 64%,rgba(9,17,31,.34) 100%),linear-gradient(0deg,rgba(9,17,31,.86) 0%,transparent 42%)}
.hero-content{position:relative;padding-block:92px;display:flex;flex-direction:column;align-items:flex-start}
.eyebrow{display:inline-flex;align-items:center;gap:9px;padding:8px 12px;border-radius:999px;background:color-mix(in srgb,var(--surface) 86%,transparent);border:1px solid color-mix(in srgb,var(--brand) 24%,var(--line));color:var(--brand);font-size:13px;font-weight:750;box-shadow:var(--shadow-soft)}
.dot{width:8px;height:8px;border-radius:50%;background:var(--success);box-shadow:0 0 0 4px color-mix(in srgb,var(--success) 16%,transparent)}
h1{max-width:790px;margin:22px 0 18px;font-size:clamp(43px,6.2vw,72px);line-height:1.03;letter-spacing:-.058em}
h1 span{color:var(--brand)}
.hero-copy{max-width:660px;margin:0;color:var(--muted);font-size:19px;line-height:1.7}
.search-shell{width:min(760px,100%);margin-top:34px;padding:9px 10px;display:flex;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--line);border-radius:19px;box-shadow:var(--shadow)}
.search-shell:focus-within{border-color:color-mix(in srgb,var(--brand) 62%,var(--line));box-shadow:0 0 0 4px color-mix(in srgb,var(--brand) 13%,transparent),var(--shadow)}
.search-icon{color:var(--muted);padding-left:7px}
.search-icon svg,.search-submit svg{width:20px;height:20px;display:block;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.search-shell input{flex:1;min-width:0;padding:13px 4px;border:0;outline:0;background:transparent;color:var(--text);font-size:16px}
.search-shell input::placeholder{color:color-mix(in srgb,var(--muted) 82%,transparent)}
.search-shell input::-webkit-search-cancel-button{display:none}
.search-submit{min-height:46px;padding:10px 19px;display:inline-flex;align-items:center;justify-content:center;gap:7px;border:0;border-radius:12px;background:var(--brand);color:#fff;font-weight:800}
.search-submit:hover{background:var(--brand-strong)}
.search-clear{width:36px;height:36px;display:grid;place-items:center;border:0;border-radius:10px;background:var(--surface-soft);color:var(--muted);font-size:22px;line-height:1}
.search-clear:hover{color:var(--text)}
.search-clear[hidden]{display:none}
.search-help{margin:9px 4px 0;color:var(--muted);font-size:12px}
.search-hints{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:18px;font-size:13px;color:var(--muted)}
.search-hints button{padding:7px 11px;border:1px solid color-mix(in srgb,var(--line) 82%,transparent);border-radius:999px;background:color-mix(in srgb,var(--surface) 82%,transparent);color:var(--text)}
.search-hints button:hover{border-color:var(--brand);color:var(--brand);background:var(--surface)}
.confidence-line{display:flex;gap:22px;flex-wrap:wrap;margin-top:30px;padding-top:20px;border-top:1px solid color-mix(in srgb,var(--line) 76%,transparent);color:var(--muted);font-size:13px;font-weight:650}
.section{padding:80px 0}
.section-kicker{margin:0 0 8px;color:var(--brand);font-size:11px;font-weight:800;letter-spacing:.13em;text-transform:uppercase}
.knowledge-layout{display:grid;grid-template-columns:270px minmax(0,1fr);gap:26px;align-items:start}
.filter-panel{position:sticky;top:96px;padding:23px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow-soft)}
.panel-heading h2,.results-head h2,.section-intro h2,.about h2{margin:0;line-height:1.15;letter-spacing:-.035em}
.panel-heading h2{font-size:28px}
.panel-heading>p:last-child{margin:9px 0 20px;color:var(--muted);font-size:13px}
.category-grid{display:grid;gap:6px}
.category-card{width:100%;padding:10px 11px;display:flex;align-items:center;gap:10px;border:1px solid transparent;border-radius:12px;background:transparent;color:var(--text);text-align:left}
.category-card:hover{background:var(--surface-soft)}
.category-card.active{background:var(--brand-soft);border-color:color-mix(in srgb,var(--brand) 28%,transparent);color:var(--brand)}
.category-icon{width:25px;text-align:center;font-size:18px;line-height:1}
.category-card h3{margin:0;font-size:13px;font-weight:700}
.category-card p{display:none}
.results-panel{min-width:0;padding:30px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow-soft);scroll-margin-top:96px}
.results-head{display:flex;justify-content:space-between;gap:24px;align-items:flex-end}
.results-head h2{font-size:clamp(28px,4vw,40px)}
.text-btn{padding:7px 0;border:0;background:transparent;color:var(--brand);font-weight:750;white-space:nowrap}
.results-meta{margin:12px 0 20px;color:var(--muted);font-size:13px}
.faq-list{display:grid;gap:10px}
.faq-item{overflow:hidden;border:1px solid var(--line);border-radius:15px;background:var(--surface)}
.faq-q{width:100%;padding:19px 20px;display:grid;grid-template-columns:1fr auto;gap:18px;border:0;background:transparent;color:var(--text);text-align:left;font-weight:720}
.faq-q:hover{background:var(--surface-soft)}
.faq-a{display:none;padding:4px 20px 20px;overflow-wrap:anywhere}
.faq-item.open{border-color:color-mix(in srgb,var(--brand) 34%,var(--line))}
.faq-item.open .faq-a{display:block}
.faq-a p{margin:0 0 14px;color:var(--muted)}
.answer-summary{margin:0 0 18px;padding:19px 20px;border-radius:15px;background:color-mix(in srgb,var(--brand-soft) 68%,var(--surface));border:1px solid color-mix(in srgb,var(--brand) 24%,var(--line))}
.answer-summary>span{display:block;margin-bottom:7px;color:var(--brand);font-size:11px;font-weight:850;text-transform:uppercase;letter-spacing:.1em}
.answer-summary p{margin:0;color:var(--text);font-size:15px;line-height:1.75}
.community-notice{margin:0 0 12px;padding:12px 14px;display:grid;gap:2px;border-radius:12px;background:rgba(117,76,184,.1);color:var(--muted);font-size:12px}
.community-notice strong{color:#6f42b8;font-size:11px;text-transform:uppercase;letter-spacing:.07em}
.status-guide{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 18px}
.status-card{padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.status-card h4{display:inline-flex;margin:0 0 8px;padding:5px 8px;border-radius:8px;background:var(--brand-soft);color:var(--brand);font-size:12px}
.status-card p{margin:0 0 9px;color:var(--text);font-size:13px;font-weight:720}
.status-card div{padding-top:9px;border-top:1px solid var(--line);color:var(--muted);font-size:12px;line-height:1.6}
.status-card div strong{color:var(--text)}
.action-plan{margin:0 0 18px}
.action-plan h3{margin:0 0 10px;font-size:16px}
.action-plan ol{margin:0;padding:0;list-style:none;counter-reset:action;display:grid;gap:8px}
.action-plan li{counter-increment:action;display:grid;grid-template-columns:30px 1fr;gap:11px;align-items:start;padding:12px 14px;border:1px solid color-mix(in srgb,var(--brand) 25%,var(--line));border-radius:12px;background:color-mix(in srgb,var(--brand-soft) 46%,var(--surface));color:var(--text);font-size:13px}
.action-plan li::before{content:counter(action);width:28px;height:28px;display:grid;place-items:center;border-radius:9px;background:var(--brand);color:#fff;font-size:12px;font-weight:850}
.action-plan li span{padding-top:3px}
.answer-more{margin:0 0 16px;border:1px solid var(--line);border-radius:13px;background:var(--surface)}
.answer-more summary{padding:13px 15px;color:var(--text);font-size:13px;font-weight:780;cursor:pointer;list-style:none}
.answer-more summary::-webkit-details-marker{display:none}
.answer-more summary::after{content:"＋";float:right;color:var(--brand)}
.answer-more[open] summary{border-bottom:1px solid var(--line)}
.answer-more[open] summary::after{content:"−"}
.answer-more-body{padding:4px 15px 14px}
.answer-detail{padding:12px 0;border-bottom:1px solid var(--line)}
.answer-detail:last-child{border-bottom:0}
.answer-detail h4{margin:0 0 8px;font-size:13px}
.answer-detail ul{margin:0;padding-left:19px;display:grid;gap:6px;color:var(--muted);font-size:12px}
.answer-detail li::marker{color:var(--brand)}
.answer-detail.important-notes h4{color:#a46100}
.answer-detail.mistake-notes h4{color:#c13c3c}
.faq-meta{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:14px}
.badge{display:inline-flex;padding:6px 8px;border-radius:999px;background:var(--surface-soft);font-size:10px;font-weight:800;letter-spacing:.04em}
.badge.current{background:rgba(22,134,95,.12);color:var(--success)}
.badge.case{background:rgba(230,151,31,.14);color:#a46100}
.badge.community{background:rgba(117,76,184,.13);color:#6f42b8}
.badge.old{background:rgba(216,69,69,.12);color:#c13c3c}
.sources-label{color:var(--muted);font-size:11px;font-weight:750}
.source-link{color:var(--brand);font-size:12px;font-weight:750;overflow-wrap:anywhere}
.report-btn{margin-left:auto;border:0;background:transparent;color:var(--muted);font-size:12px;font-weight:700}
.report-btn:hover{color:#c13c3c}
.empty{padding:48px 26px;border:1px dashed var(--line);border-radius:16px;background:var(--surface-soft);color:var(--muted);text-align:center}
.empty strong{color:var(--text);font-size:17px}
.search-start{padding:58px 30px;line-height:1.8}
.search-start .empty-icon{width:54px;height:54px;margin:0 auto 16px;display:grid;place-items:center;border-radius:17px;background:var(--brand-soft);color:var(--brand);font-size:30px;font-weight:800}
.search-start span{display:inline-block;margin-top:5px;font-size:13px}
.process{background:#102957;color:#f7faff}
.process .section-kicker{color:#91b0ff}
.section-intro{max-width:620px;margin-bottom:34px}
.section-intro h2{font-size:clamp(31px,4vw,46px)}
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.steps article{min-height:190px;padding:24px;display:flex;gap:17px;border:1px solid rgba(255,255,255,.14);border-radius:18px;background:rgba(255,255,255,.07)}
.steps article>span{color:#91b0ff;font-size:13px;font-weight:800}
.steps h3{margin:1px 0 8px;font-size:17px}
.steps p{margin:0;color:#c2cee1;font-size:14px}
.compact{padding:66px 0}
.about-intro{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center}
.about-intro h2{margin:0;font-size:clamp(28px,3.5vw,40px);line-height:1.15;letter-spacing:-.035em}
.about-intro>p{margin:0;color:var(--muted);font-size:16px}
.about-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:30px}
.about-grid article{padding:20px;border:1px solid var(--line);border-radius:18px;background:var(--surface)}
.about-grid article>span{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:11px;background:var(--brand-soft);color:var(--brand);font-size:12px;font-weight:800}
.about-grid h3{margin:14px 0 6px;font-size:16px}.about-grid p{margin:0;color:var(--muted);font-size:13px}
.about-notice{margin-top:14px;padding:16px 18px;border-radius:14px;background:var(--surface-soft);color:var(--muted);font-size:13px}
.search-dialog{width:min(720px,calc(100% - 28px));max-height:min(82vh,760px);border:1px solid var(--line);border-radius:24px;background:var(--surface);color:var(--text);padding:0;box-shadow:0 28px 90px rgba(8,15,28,.35);overflow:hidden}
.search-dialog::backdrop{background:rgba(8,15,28,.64);backdrop-filter:blur(6px)}
.search-dialog-head{padding:24px 24px 18px;display:flex;justify-content:space-between;gap:22px;align-items:flex-start;border-bottom:1px solid var(--line);background:var(--surface)}
.search-dialog-head h2{margin:2px 0 0;font-size:clamp(25px,4vw,32px);line-height:1.15;letter-spacing:-.035em}
.search-dialog-head p{margin:7px 0 0;color:var(--muted);font-size:13px;overflow-wrap:anywhere}
.search-dialog-meta{padding:14px 24px 8px;color:var(--muted);font-size:13px}
.search-dialog-list{max-height:calc(min(82vh,760px) - 150px);padding:8px 14px 18px;display:grid;gap:8px;overflow-y:auto;overscroll-behavior:contain}
.search-result-option{width:100%;padding:16px 17px;display:grid;grid-template-columns:1fr auto;gap:16px;align-items:center;border:1px solid var(--line);border-radius:15px;background:var(--surface);color:var(--text);text-align:left}
.search-result-option:hover{border-color:color-mix(in srgb,var(--brand) 46%,var(--line));background:var(--brand-soft)}
.search-result-main{min-width:0;display:grid;gap:7px}
.search-result-main strong{font-size:15px;line-height:1.4}
.search-result-category{color:var(--brand);font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase}
.search-result-arrow{width:32px;height:32px;display:grid;place-items:center;border-radius:10px;background:var(--brand-soft);color:var(--brand);font-size:19px;font-weight:800}
.search-dialog-empty{margin:6px 10px 10px;padding:36px 22px;border:1px dashed var(--line);border-radius:15px;background:var(--surface-soft);color:var(--muted);text-align:center}
.search-dialog-empty strong{display:block;margin-bottom:4px;color:var(--text)}
.report-dialog{width:min(600px,calc(100% - 28px));border:1px solid var(--line);border-radius:22px;background:var(--surface);color:var(--text);padding:0;box-shadow:var(--shadow)}
.report-dialog::backdrop{background:rgba(8,15,28,.62);backdrop-filter:blur(5px)}
.report-dialog form{padding:24px;display:grid;gap:10px}
.report-head{display:flex;justify-content:space-between;gap:20px;align-items:start}
.report-head h2{font-size:24px;margin:3px 0 0}
.report-question{font-weight:700;color:var(--text)!important;padding:10px 12px;background:var(--surface-soft);border-radius:10px}
.report-dialog label{font-size:13px;font-weight:800;margin-top:4px}
.report-dialog select,.report-dialog textarea{width:100%;border:1px solid var(--line);border-radius:12px;padding:12px;background:var(--bg);color:var(--text);font:inherit}
.report-dialog textarea{resize:vertical}
.form-note{font-size:12px!important;margin:2px 0!important}
.report-actions{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-top:8px}
.report-actions span{font-size:12px;color:var(--muted)}
.primary-btn{border:0;border-radius:12px;padding:11px 16px;background:var(--brand);color:#fff;font-weight:800}
.site-footer{padding:27px 0;border-top:1px solid var(--line);background:var(--surface)}
.footer-row{display:flex;align-items:center;justify-content:space-between;gap:30px}
.footer-row p{margin:0;color:var(--muted);font-size:12px}
.footer-brand .brand-mark{width:30px;height:30px}
@media (max-width:900px){
  .hero{min-height:600px}
  .hero::before{background:linear-gradient(180deg,rgba(244,247,251,.94) 0%,rgba(244,247,251,.78) 58%,rgba(244,247,251,.42) 100%),linear-gradient(90deg,rgba(244,247,251,.9) 0%,rgba(244,247,251,.34) 100%)}
  [data-theme="dark"] .hero::before{background:linear-gradient(180deg,rgba(9,17,31,.94) 0%,rgba(9,17,31,.8) 58%,rgba(9,17,31,.5) 100%),linear-gradient(90deg,rgba(9,17,31,.9) 0%,rgba(9,17,31,.4) 100%)}
  .knowledge-layout{grid-template-columns:1fr}.filter-panel{position:static}.category-grid{grid-template-columns:repeat(3,1fr)}
  .steps{grid-template-columns:1fr}.steps article{min-height:0}.about-intro{grid-template-columns:1fr;gap:22px}.about-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:680px){
  .container{width:min(100% - 28px,1120px)}.nav{height:64px}.nav-links{display:none}.hero{min-height:auto}.hero-backdrop{background-position:70% center;background-size:auto 100%}
  .hero::before{background:linear-gradient(180deg,rgba(244,247,251,.93) 0%,rgba(244,247,251,.74) 58%,rgba(244,247,251,.3) 100%)}
  [data-theme="dark"] .hero::before{background:linear-gradient(180deg,rgba(9,17,31,.94) 0%,rgba(9,17,31,.76) 58%,rgba(9,17,31,.38) 100%)}
  .hero-content{padding-block:58px 64px}h1{font-size:clamp(37px,12vw,50px);letter-spacing:-.052em}.hero-copy{font-size:16px}
  .search-shell{flex-wrap:wrap;padding:8px}.search-icon{display:none}.search-shell input{width:calc(100% - 48px);padding:12px 7px}.search-submit{width:100%}
  .search-help{margin-left:2px}.confidence-line{gap:10px 18px}.section{padding:56px 0}.filter-panel,.results-panel{padding:20px}
  .category-grid{grid-template-columns:repeat(2,1fr)}.category-card{padding:10px 8px}.results-head{display:block}.results-head .text-btn{margin-top:8px}
  .faq-q{padding:17px}.faq-a{padding:4px 14px 15px}.answer-summary{padding:16px}.answer-summary p{font-size:14px}.status-guide{grid-template-columns:1fr}.status-card{padding:14px}.action-plan li{padding:11px 12px}.steps article{padding:20px}.footer-row{display:block}.footer-row p{margin-top:12px}
  .about-grid{grid-template-columns:1fr}.report-btn{margin-left:0}
  .search-dialog{width:calc(100% - 20px);max-height:88vh;border-radius:20px}.search-dialog-head{padding:20px 18px 15px}.search-dialog-meta{padding:12px 18px 7px}.search-dialog-list{max-height:calc(88vh - 144px);padding:7px 10px 14px}.search-result-option{padding:14px;gap:10px}.search-result-main strong{font-size:14px}
}
@media (max-width:390px){.category-grid{grid-template-columns:1fr}}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
