/* ==========================================================================
   NDIS Portal — modern, accessible design system
   ========================================================================== */
:root {
  --teal-900:#16373f; --teal-800:#1d4853; --teal-700:#235a68;
  --teal-600:#2c6e7f; --teal-500:#3e7184; --teal-100:#dbe9ed; --teal-50:#eef6f8;
  --accent:#e07a3f; --accent-dark:#c5642d; --accent-50:#fdf1e9;
  --ink:#16252b; --body:#3a4d55; --muted:#6b7d85;
  --line:#e2e9eb; --bg:#f6f9fa; --white:#fff;
  --ok:#2f8f6b; --warn:#b4690e;
  --radius:14px; --radius-sm:9px; --radius-lg:22px;
  --shadow-sm:0 1px 2px rgba(22,55,63,.06), 0 2px 6px rgba(22,55,63,.05);
  --shadow:0 6px 22px rgba(22,55,63,.09);
  --shadow-lg:0 18px 48px rgba(22,55,63,.16);
  --wrap:1160px; --gap:clamp(1rem,3vw,2rem);
  --font:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  --serif:'Fraunces',Georgia,'Times New Roman',serif;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--font);color:var(--body);background:var(--bg);
  line-height:1.65;font-size:17px;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
img{max-width:100%;height:auto;display:block}
a{color:var(--teal-700);text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3,h4{color:var(--ink);line-height:1.18;font-weight:700;letter-spacing:-.015em;margin:0 0 .5em}
h1{font-size:clamp(2rem,4.5vw,3.1rem)}
h2{font-size:clamp(1.5rem,3vw,2.1rem)}
h3{font-size:1.25rem}
p{margin:0 0 1.1em}
ul,ol{margin:0 0 1.1em;padding-left:1.3em}
li{margin:.35em 0}
.wrap{max-width:var(--wrap);margin-inline:auto;padding-inline:clamp(1rem,4vw,2rem)}
.narrow{max-width:760px}
.skip-link{position:absolute;left:-999px;top:0;background:var(--ink);color:#fff;
  padding:.7rem 1.1rem;border-radius:0 0 8px 0;z-index:200}
.skip-link:focus{left:0}
:focus-visible{outline:3px solid var(--accent);outline-offset:2px;border-radius:4px}

/* ---------- buttons ---------- */
.btn{display:inline-flex;align-items:center;gap:.55rem;font-weight:600;font-size:1rem;
  padding:.85rem 1.5rem;border-radius:999px;border:2px solid transparent;cursor:pointer;
  transition:transform .15s,box-shadow .15s,background .15s;text-decoration:none;line-height:1}
.btn:hover{text-decoration:none;transform:translateY(-2px)}
.btn svg{width:1.15em;height:1.15em;flex-shrink:0}
.hero-search svg{width:21px;height:21px;color:var(--muted);flex-shrink:0}
.cat-card .more svg,.eyebrow-text svg{width:15px;height:15px;flex-shrink:0}
.search-box svg{flex-shrink:0}
.btn-primary{background:var(--accent);color:#fff;box-shadow:var(--shadow-sm)}
.btn-primary:hover{background:var(--accent-dark);color:#fff;box-shadow:var(--shadow)}
.btn-ghost{background:transparent;color:var(--white);border-color:rgba(255,255,255,.6)}
.btn-ghost:hover{background:rgba(255,255,255,.12);color:#fff}
.btn-teal{background:var(--teal-600);color:#fff}
.btn-teal:hover{background:var(--teal-700);color:#fff}
.btn-block{display:flex;width:100%;justify-content:center}

/* ---------- header / nav ---------- */
.site-header{position:sticky;top:0;z-index:100;background:rgba(255,255,255,.92);
  backdrop-filter:saturate(140%) blur(10px);border-bottom:1px solid var(--line)}
.nav{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:72px}
.brand{display:flex;align-items:center;gap:.6rem;font-weight:800;font-size:1.22rem;
  color:var(--ink);letter-spacing:-.02em}
.brand:hover{text-decoration:none}
.brand .mark{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;
  background:linear-gradient(135deg,var(--teal-600),var(--teal-800));color:#fff;font-weight:800;font-size:1.05rem}
.brand .mark svg{width:22px;height:22px}
.nav-links{display:flex;align-items:center;gap:.35rem;list-style:none;margin:0;padding:0}
.nav-links a{color:var(--ink);font-weight:600;font-size:.97rem;padding:.55rem .8rem;border-radius:9px;display:block}
.nav-links a:hover{background:var(--teal-50);text-decoration:none;color:var(--teal-700)}
.nav-cta{margin-left:.4rem}
.has-menu{position:relative}
.has-menu>button{font:inherit;font-weight:600;font-size:.97rem;color:var(--ink);background:none;
  border:0;cursor:pointer;padding:.55rem .8rem;border-radius:9px;display:flex;align-items:center;gap:.3rem}
.has-menu>button:hover{background:var(--teal-50);color:var(--teal-700)}
.has-menu>button svg{width:14px;height:14px;transition:transform .2s}
.has-menu[aria-expanded="true"]>button svg{transform:rotate(180deg)}
.dropdown{position:absolute;top:calc(100% + 8px);left:0;min-width:280px;background:#fff;
  border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-lg);
  padding:.5rem;list-style:none;margin:0;opacity:0;visibility:hidden;transform:translateY(8px);
  transition:opacity .18s,transform .18s,visibility .18s}
.has-menu[aria-expanded="true"] .dropdown{opacity:1;visibility:visible;transform:translateY(0)}
.dropdown a{display:flex;flex-direction:column;gap:.1rem;padding:.6rem .8rem;border-radius:9px}
.dropdown a:hover{background:var(--teal-50)}
.dropdown a strong{color:var(--ink);font-size:.97rem}
.dropdown a span{color:var(--muted);font-size:.82rem;font-weight:500}
.nav-toggle{display:none;background:none;border:0;cursor:pointer;padding:.5rem;border-radius:9px;color:var(--ink)}
.nav-toggle svg{width:28px;height:28px}

/* ---------- hero ---------- */
.hero{position:relative;background:radial-gradient(120% 120% at 15% 0%,var(--teal-700) 0%,var(--teal-900) 60%);
  color:#fff;overflow:hidden}
.hero::after{content:"";position:absolute;inset:0;background:
  radial-gradient(40% 60% at 85% 20%,rgba(224,122,63,.22),transparent 70%);pointer-events:none}
.hero-inner{position:relative;display:grid;grid-template-columns:1.15fr .85fr;gap:var(--gap);
  align-items:center;padding-block:clamp(3rem,7vw,5.5rem)}
.hero h1{color:#fff;max-width:14ch}
.hero p.lead{font-size:clamp(1.05rem,2vw,1.25rem);color:rgba(255,255,255,.86);max-width:48ch;margin-bottom:1.6rem}
.hero .eyebrow{display:inline-flex;align-items:center;gap:.5rem;background:rgba(255,255,255,.12);
  color:#fff;padding:.4rem .9rem;border-radius:999px;font-size:.83rem;font-weight:600;
  letter-spacing:.02em;margin-bottom:1.2rem}
.hero .eyebrow .dot{width:8px;height:8px;border-radius:50%;background:var(--accent)}
.hero-cta{display:flex;flex-wrap:wrap;gap:.8rem}
.hero-search{margin-top:1.6rem;background:#fff;border-radius:999px;padding:.4rem .4rem .4rem 1.2rem;
  display:flex;align-items:center;gap:.5rem;box-shadow:var(--shadow-lg);max-width:430px}
.hero-search input{flex:1;border:0;font:inherit;font-size:1rem;color:var(--ink);background:none;outline:none;min-width:0}
.hero-search input::placeholder{color:var(--muted)}
.hero-art{position:relative}
.hero-card{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);border-radius:var(--radius-lg);
  padding:1.6rem;backdrop-filter:blur(6px);box-shadow:var(--shadow-lg)}
.hero-card h3{color:#fff;margin-bottom:1rem;font-size:1.05rem}
.hero-stats{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.hero-stat{background:rgba(255,255,255,.08);border-radius:var(--radius);padding:1rem}
.hero-stat b{display:block;font-size:1.7rem;color:#fff;font-weight:800;line-height:1}
.hero-stat span{font-size:.82rem;color:rgba(255,255,255,.78)}

/* ---------- sections ---------- */
section{padding-block:clamp(2.5rem,6vw,4.5rem)}
.section-head{max-width:640px;margin-bottom:2rem}
.section-head.center{margin-inline:auto;text-align:center}
.eyebrow-text{color:var(--accent-dark);font-weight:700;font-size:.82rem;letter-spacing:.08em;
  text-transform:uppercase;margin-bottom:.6rem;display:block}
.section-head p{color:var(--muted);font-size:1.05rem;margin:0}

/* ---------- category grid ---------- */
.cat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1.1rem}
.cat-card{position:relative;background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  padding:1.5rem;transition:transform .18s,box-shadow .18s,border-color .18s;overflow:hidden}
.cat-card:hover{transform:translateY(-4px);box-shadow:var(--shadow);border-color:var(--teal-100);text-decoration:none}
.cat-card .ic{width:48px;height:48px;border-radius:13px;display:grid;place-items:center;
  background:var(--teal-50);color:var(--teal-600);margin-bottom:1rem}
.cat-card .ic svg{width:26px;height:26px}
.cat-card h3{margin-bottom:.35rem}
.cat-card p{color:var(--muted);font-size:.93rem;margin:0 0 1rem}
.cat-card .more{color:var(--teal-700);font-weight:600;font-size:.9rem;display:inline-flex;gap:.35rem;align-items:center}
.cat-card .count{position:absolute;top:1.3rem;right:1.4rem;font-size:.8rem;color:var(--muted);
  background:var(--bg);padding:.2rem .6rem;border-radius:999px}

/* ---------- article cards ---------- */
.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1.4rem}
.post-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);
  border-radius:var(--radius);overflow:hidden;transition:transform .18s,box-shadow .18s}
.post-card:hover{transform:translateY(-4px);box-shadow:var(--shadow);text-decoration:none}
.post-card .thumb{aspect-ratio:16/10;overflow:hidden;background:var(--teal-50)}
.post-card .thumb img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.post-card:hover .thumb img{transform:scale(1.05)}
.post-card .body{padding:1.2rem 1.3rem 1.4rem;display:flex;flex-direction:column;flex:1}
.post-card h3{font-size:1.08rem;margin-bottom:.5rem;color:var(--ink)}
.post-card p{color:var(--muted);font-size:.92rem;margin:0 0 1rem}
.post-card .meta{margin-top:auto;display:flex;align-items:center;gap:.7rem;font-size:.8rem;color:var(--muted)}
.badge{display:inline-block;background:var(--teal-50);color:var(--teal-700);font-weight:600;
  font-size:.74rem;letter-spacing:.02em;padding:.3rem .7rem;border-radius:999px;margin-bottom:.8rem;align-self:flex-start}
.badge.accent{background:var(--accent-50);color:var(--accent-dark)}

/* ---------- breadcrumb ---------- */
.crumb{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;font-size:.85rem;color:var(--muted);padding-block:1.2rem}
.crumb a{color:var(--muted)}
.crumb a:hover{color:var(--teal-700)}
.crumb svg{width:13px;height:13px;opacity:.6}
.crumb span[aria-current]{color:var(--ink);font-weight:600}

/* ---------- article page ---------- */
.article-hero{background:var(--teal-900);color:#fff}
.article-hero .wrap{padding-block:0}
.article-hero-grid{display:grid;gap:0}
.article-head{padding-block:1rem 2.4rem}
.article-head .badge{background:rgba(255,255,255,.14);color:#fff}
.article-head h1{color:#fff;max-width:20ch}
.article-meta{display:flex;flex-wrap:wrap;gap:1.1rem;color:rgba(255,255,255,.8);font-size:.9rem;margin-top:1rem}
.article-meta span{display:inline-flex;align-items:center;gap:.4rem}
.article-meta svg{width:15px;height:15px;opacity:.8}
.feature-img{width:100%;aspect-ratio:21/9;object-fit:cover;border-radius:var(--radius-lg);
  margin-top:-2rem;box-shadow:var(--shadow-lg);background:var(--teal-700)}
.article-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:clamp(2rem,5vw,4rem);
  align-items:start;padding-block:3rem}
.prose{font-size:1.08rem;color:var(--body)}
.prose h2{margin-top:2.2rem;padding-top:.4rem}
.prose h3{margin-top:1.8rem}
.prose>p:first-of-type{font-size:1.2rem;color:var(--ink)}
.prose a{text-decoration:underline;text-underline-offset:2px}
.prose img{border-radius:var(--radius);margin:1.8rem 0}
.prose ul li::marker{color:var(--accent)}
.prose blockquote{margin:1.8rem 0;padding:.6rem 0 .6rem 1.4rem;border-left:4px solid var(--teal-100);
  color:var(--muted);font-style:italic}
aside.sidebar{position:sticky;top:90px;display:flex;flex-direction:column;gap:1.4rem}
.side-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:1.4rem}
.side-card.cta{background:linear-gradient(160deg,var(--teal-700),var(--teal-900));color:#fff;border:0}
.side-card.cta h3{color:#fff}.side-card.cta p{color:rgba(255,255,255,.82);font-size:.92rem}
.side-card h3{font-size:1rem;margin-bottom:1rem}
.side-list{list-style:none;margin:0;padding:0}
.side-list li{margin:0;border-bottom:1px solid var(--line)}
.side-list li:last-child{border-bottom:0}
.side-list a{display:block;padding:.7rem 0;font-size:.92rem;color:var(--ink);font-weight:500}
.side-list a:hover{color:var(--teal-700);text-decoration:none}
.share-row{display:flex;gap:.5rem;margin-top:1.4rem;flex-wrap:wrap}
.share-row a{width:40px;height:40px;border-radius:10px;display:grid;place-items:center;
  background:var(--teal-50);color:var(--teal-700)}
.share-row a:hover{background:var(--teal-600);color:#fff}
.share-row svg{width:18px;height:18px}

/* ---------- forms ---------- */
.form-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius-lg);
  padding:clamp(1.4rem,4vw,2.4rem);box-shadow:var(--shadow)}
.field{margin-bottom:1.1rem}
.field label{display:block;font-weight:600;color:var(--ink);font-size:.92rem;margin-bottom:.4rem}
.field .req{color:var(--accent-dark)}
.field input,.field select,.field textarea{width:100%;font:inherit;font-size:1rem;color:var(--ink);
  padding:.8rem 1rem;border:1.5px solid var(--line);border-radius:var(--radius-sm);background:#fff;transition:border-color .15s,box-shadow .15s}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:var(--teal-500);
  box-shadow:0 0 0 4px var(--teal-50)}
.field textarea{min-height:140px;resize:vertical}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:1.1rem}
.form-note{font-size:.82rem;color:var(--muted);margin-top:.4rem}
.form-status{display:none;padding:.9rem 1.1rem;border-radius:var(--radius-sm);margin-bottom:1.1rem;font-weight:500;font-size:.95rem}
.form-status.ok{display:block;background:#e9f6f0;color:#1c6c4f;border:1px solid #b9e2d2}
.form-status.err{display:block;background:#fdecec;color:#a32525;border:1px solid #f3c9c9}
.newsletter{display:flex;gap:.5rem;flex-wrap:wrap}
.newsletter input{flex:1;min-width:180px;padding:.75rem 1rem;border-radius:999px;border:1.5px solid rgba(255,255,255,.25);
  background:rgba(255,255,255,.1);color:#fff;font:inherit}
.newsletter input::placeholder{color:rgba(255,255,255,.6)}
.newsletter input:focus{outline:none;border-color:#fff;background:rgba(255,255,255,.16)}

/* ---------- CTA band ---------- */
.cta-band{background:linear-gradient(135deg,var(--teal-700),var(--teal-900));color:#fff;border-radius:var(--radius-lg);
  padding:clamp(2rem,5vw,3.4rem);text-align:center;position:relative;overflow:hidden}
.cta-band::after{content:"";position:absolute;inset:0;background:radial-gradient(50% 80% at 80% 10%,rgba(224,122,63,.25),transparent)}
.cta-band>*{position:relative}
.cta-band h2{color:#fff}
.cta-band p{color:rgba(255,255,255,.85);max-width:52ch;margin-inline:auto;margin-bottom:1.6rem}

/* ---------- hub page ---------- */
.hub-hero{background:linear-gradient(135deg,var(--teal-600),var(--teal-900));color:#fff;padding-block:clamp(2.5rem,6vw,4rem)}
.hub-hero h1{color:#fff}.hub-hero p{color:rgba(255,255,255,.85);max-width:60ch;font-size:1.1rem;margin:0}
.subcat-chips{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:1.6rem}
.subcat-chips a{background:rgba(255,255,255,.12);color:#fff;padding:.5rem 1rem;border-radius:999px;
  font-size:.88rem;font-weight:500}
.subcat-chips a:hover{background:rgba(255,255,255,.22);text-decoration:none}
.subcat-block{margin-bottom:3rem}
.subcat-block h2{display:flex;align-items:center;gap:.7rem}
.subcat-block h2::before{content:"";width:6px;height:1.4em;background:var(--accent);border-radius:3px;display:inline-block}

/* ---------- search ---------- */
.search-box{display:flex;align-items:center;gap:.6rem;background:#fff;border:1.5px solid var(--line);
  border-radius:999px;padding:.5rem .5rem .5rem 1.3rem;max-width:560px;box-shadow:var(--shadow-sm)}
.search-box input{flex:1;border:0;font:inherit;font-size:1.05rem;outline:none;color:var(--ink);background:none}
.search-box svg{width:20px;height:20px;color:var(--muted)}
#search-results{margin-top:2rem}
.result-count{color:var(--muted);font-size:.92rem;margin-bottom:1.2rem}

/* ---------- footer ---------- */
.site-footer{background:var(--teal-900);color:rgba(255,255,255,.72);margin-top:3rem}
.footer-top{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.3fr;gap:2rem;padding-block:3.2rem 2.4rem}
.footer-top h4{color:#fff;font-size:.95rem;letter-spacing:.04em;text-transform:uppercase;margin-bottom:1.1rem}
.footer-brand .brand{color:#fff;margin-bottom:1rem}
.footer-brand p{font-size:.92rem;max-width:34ch}
.footer-links{list-style:none;margin:0;padding:0}
.footer-links li{margin:.5rem 0}
.footer-links a{color:rgba(255,255,255,.72);font-size:.92rem}
.footer-links a:hover{color:#fff}
.footer-news p{font-size:.9rem;margin-bottom:.9rem}
.footer-bottom{border-top:1px solid rgba(255,255,255,.12);padding-block:1.6rem;
  display:flex;flex-wrap:wrap;gap:1rem;justify-content:space-between;align-items:center;font-size:.83rem}
.footer-bottom a{color:rgba(255,255,255,.72)}
.disclaimer{background:rgba(0,0,0,.18);font-size:.8rem;color:rgba(255,255,255,.55);padding-block:1rem;line-height:1.5}

/* ---------- responsive ---------- */
@media (max-width:980px){
  .hero-inner{grid-template-columns:1fr}
  .hero-art{display:none}
  .article-layout{grid-template-columns:1fr}
  aside.sidebar{position:static}
  .footer-top{grid-template-columns:1fr 1fr}
}
@media (max-width:760px){
  body{font-size:16px}
  .nav-toggle{display:block}
  .nav-links{position:fixed;inset:72px 0 auto 0;flex-direction:column;align-items:stretch;
    background:#fff;border-bottom:1px solid var(--line);padding:1rem;gap:.2rem;
    box-shadow:var(--shadow-lg);display:none;max-height:calc(100vh - 72px);overflow:auto}
  .nav-links.open{display:flex}
  .nav-links a,.has-menu>button{width:100%;padding:.8rem 1rem;font-size:1.02rem}
  .nav-cta{margin:.4rem 0 0}
  .has-menu{position:static}
  .dropdown{position:static;opacity:1;visibility:visible;transform:none;box-shadow:none;
    border:0;border-left:2px solid var(--teal-100);border-radius:0;margin:.2rem 0 .2rem .8rem;
    padding:.2rem 0;display:none}
  .has-menu[aria-expanded="true"] .dropdown{display:block}
  .field-row{grid-template-columns:1fr}
  .footer-top{grid-template-columns:1fr}
  .feature-img{margin-top:1rem;aspect-ratio:16/10}
}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto}}
