/* Te Aka Reo shared site styles
   Centralised global fixes for themes, nav, theme picker, cards and layout.
   Page-specific CSS can remain inline where a page has special tools/content. */

:root,
html[data-theme="pounamu"], body[data-theme="pounamu"] {
  --koura:#2D6E5E; --kowhai:#1A4A3E; --whenua:#F2F7F5; --repo:#E1EDE8;
  --harakeke:#4A6741; --pounamu:#2D6E5E; --mawhero:#8B2E2E; --atea:#1A3530;
  --onepu:#4A7A6A; --onepū:#4A7A6A; --irirangi:#0F2520;
  --shadow:rgba(45,110,94,.15); --card-bg:#fff; --border:rgba(45,110,94,.22);
  --page-bg:#F2F7F5; --input-bg:#fff; --input-border:rgba(45,110,94,.25);
  --soft-accent:rgba(45,110,94,.08); --pattern-bg:rgba(45,110,94,.06);
  --theme-modal-bg:#fbfffd; --theme-modal-text:#173f35; --theme-modal-muted:#526963;
}
html[data-theme="kowhai"], body[data-theme="kowhai"] { --koura:#C8902A; --kowhai:#3D2800; --whenua:#FFFBF0; --repo:#F5EDD5; --harakeke:#4A6741; --pounamu:#2D6E5E; --mawhero:#8B2E2E; --atea:#2A1E00; --onepu:#7A5500; --onepū:#7A5500; --irirangi:#1A1208; --shadow:rgba(200,144,42,.15); --card-bg:#fff; --border:rgba(200,144,42,.25); --page-bg:#FFFBF0; --input-bg:#fff; --input-border:rgba(200,144,42,.3); --soft-accent:rgba(200,144,42,.08); --pattern-bg:rgba(200,144,42,.07); }
html[data-theme="marae"], body[data-theme="marae"] { --koura:#8B2E2E; --kowhai:#1A1208; --whenua:#FAFAF9; --repo:#EDE8E6; --harakeke:#3B6B28; --pounamu:#2D6E5E; --mawhero:#8B2E2E; --atea:#1A1208; --onepu:#5A5450; --onepū:#5A5450; --irirangi:#0A0806; --shadow:rgba(139,46,46,.12); --card-bg:#fff; --border:rgba(139,46,46,.2); --page-bg:#FAFAF9; --input-bg:#fff; --input-border:rgba(26,18,8,.2); --soft-accent:rgba(139,46,46,.07); --pattern-bg:rgba(26,18,8,.04); }
html[data-theme="moana"], body[data-theme="moana"] { --koura:#2E78B7; --kowhai:#0D3558; --whenua:#F3FAFF; --repo:#DDEDF8; --harakeke:#336B62; --pounamu:#2E78B7; --mawhero:#8B2E2E; --atea:#102D42; --onepu:#426F90; --onepū:#426F90; --irirangi:#071B2B; --shadow:rgba(46,120,183,.14); --card-bg:#fff; --border:rgba(46,120,183,.22); --page-bg:#F3FAFF; --input-bg:#fff; --input-border:rgba(46,120,183,.25); --soft-accent:rgba(46,120,183,.08); --pattern-bg:rgba(46,120,183,.06); }
html[data-theme="harakeke"], body[data-theme="harakeke"] { --koura:#557A4B; --kowhai:#243B22; --whenua:#F4F8F0; --repo:#E5EDDE; --harakeke:#557A4B; --pounamu:#2D6E5E; --mawhero:#8B2E2E; --atea:#1D2F1B; --onepu:#5C7253; --onepū:#5C7253; --irirangi:#111D10; --shadow:rgba(85,122,75,.14); --card-bg:#fff; --border:rgba(85,122,75,.23); --page-bg:#F4F8F0; --input-bg:#fff; --input-border:rgba(85,122,75,.28); --soft-accent:rgba(85,122,75,.08); --pattern-bg:rgba(85,122,75,.06); }
html[data-theme="onepu"], body[data-theme="onepu"] { --koura:#A88957; --kowhai:#4C3D26; --whenua:#FBF7EF; --repo:#EFE4D2; --harakeke:#5D6849; --pounamu:#6E7F70; --mawhero:#8B4B3A; --atea:#352B1B; --onepu:#7B684D; --onepū:#7B684D; --irirangi:#1E170F; --shadow:rgba(168,137,87,.15); --card-bg:#fff; --border:rgba(168,137,87,.25); --page-bg:#FBF7EF; --input-bg:#fff; --input-border:rgba(168,137,87,.3); --soft-accent:rgba(168,137,87,.08); --pattern-bg:rgba(168,137,87,.06); }
html[data-theme="rangi"], body[data-theme="rangi"] { --koura:#7AB8D6; --kowhai:#E5F6FF; --whenua:#0B1722; --repo:#12283A; --harakeke:#7AB88A; --pounamu:#7AB8D6; --mawhero:#F0A0A0; --atea:#EAF7FF; --onepu:#B7D5E5; --onepū:#B7D5E5; --irirangi:#F7FCFF; --shadow:rgba(0,0,0,.35); --card-bg:#14283A; --border:rgba(122,184,214,.28); --page-bg:#0B1722; --input-bg:#102233; --input-border:rgba(122,184,214,.34); --soft-accent:rgba(122,184,214,.12); --pattern-bg:rgba(122,184,214,.07); }
html[data-theme="touli"], body[data-theme="touli"] { --koura:#35A383; --kowhai:#DAFFF3; --whenua:#061E19; --repo:#0C3028; --harakeke:#76B66E; --pounamu:#35A383; --mawhero:#E6A0A0; --atea:#E3FFF7; --onepu:#A6D8CA; --onepū:#A6D8CA; --irirangi:#F3FFFC; --shadow:rgba(0,0,0,.35); --card-bg:#0D3028; --border:rgba(53,163,131,.3); --page-bg:#061E19; --input-bg:#0B2A23; --input-border:rgba(53,163,131,.36); --soft-accent:rgba(53,163,131,.13); --pattern-bg:rgba(53,163,131,.07); }
html[data-theme="atea"], body[data-theme="atea"] { --koura:#D8B35A; --kowhai:#FFE9A6; --whenua:#11100C; --repo:#242017; --harakeke:#A6B86E; --pounamu:#8FB8A5; --mawhero:#E0A06A; --atea:#FFF3C9; --onepu:#E0CF9B; --onepū:#E0CF9B; --irirangi:#FFF9E8; --shadow:rgba(0,0,0,.38); --card-bg:#242017; --border:rgba(216,179,90,.32); --page-bg:#11100C; --input-bg:#1D1A13; --input-border:rgba(216,179,90,.38); --soft-accent:rgba(216,179,90,.13); --pattern-bg:rgba(216,179,90,.07); }
html[data-theme="awhio"], body[data-theme="awhio"] { --koura:#9C7CE0; --kowhai:#F0EAFF; --whenua:#151226; --repo:#272040; --harakeke:#8DBE8B; --pounamu:#7FA9C4; --mawhero:#DFA0C8; --atea:#F6F0FF; --onepu:#C8B8F1; --onepū:#C8B8F1; --irirangi:#FEFBFF; --shadow:rgba(0,0,0,.35); --card-bg:#272040; --border:rgba(156,124,224,.32); --page-bg:#151226; --input-bg:#211B36; --input-border:rgba(156,124,224,.38); --soft-accent:rgba(156,124,224,.13); --pattern-bg:rgba(156,124,224,.07); }
html[data-theme="pouri"], body[data-theme="pouri"] { --koura:#B88A2D; --kowhai:#FFE8A8; --whenua:#0D0B07; --repo:#211A0C; --harakeke:#8FA45F; --pounamu:#7B9B83; --mawhero:#C58A65; --atea:#FFF0C6; --onepu:#D2B878; --onepū:#D2B878; --irirangi:#FFF8E6; --shadow:rgba(0,0,0,.42); --card-bg:#211A0C; --border:rgba(184,138,45,.34); --page-bg:#0D0B07; --input-bg:#1A1409; --input-border:rgba(184,138,45,.38); --soft-accent:rgba(184,138,45,.13); --pattern-bg:rgba(184,138,45,.07); }
html[data-theme="tonga"], body[data-theme="tonga"] { --koura:#D26A3E; --kowhai:#FFE2D3; --whenua:#1B100B; --repo:#321E15; --harakeke:#9AB36A; --pounamu:#85A48A; --mawhero:#D26A3E; --atea:#FFF0E7; --onepu:#E7AD8B; --onepū:#E7AD8B; --irirangi:#FFF9F4; --shadow:rgba(0,0,0,.37); --card-bg:#321E15; --border:rgba(210,106,62,.34); --page-bg:#1B100B; --input-bg:#281810; --input-border:rgba(210,106,62,.38); --soft-accent:rgba(210,106,62,.13); --pattern-bg:rgba(210,106,62,.07); }

html { color-scheme: light; }
html[data-theme="rangi"], html[data-theme="touli"], html[data-theme="atea"], html[data-theme="awhio"], html[data-theme="pouri"], html[data-theme="tonga"] { color-scheme: dark; }
body { background:var(--page-bg); color:var(--atea); }

/* Navbar consistency */
.topbar,.site-topbar { background:color-mix(in srgb, var(--page-bg) 88%, transparent); border-bottom:1px solid var(--border); }
.nav,.site-nav { font-size:16px!important; }
.brand,.site-brand { font-size:1.55rem!important; line-height:1.1!important; }
.links a,.site-links a { font-size:.94rem!important; line-height:1.2!important; font-weight:800!important; text-decoration:none!important; background:transparent!important; box-shadow:none!important; border-radius:0!important; padding:.4rem .1rem!important; border-bottom:2px solid transparent!important; }
.links a.active,.links a:hover,.site-links a.active,.site-links a:hover { color:var(--koura)!important; border-bottom-color:var(--koura)!important; }
.site-theme-toggle { font-size:.9rem!important; line-height:1.2!important; }

/* Card consistency */
.tile,.home-tile,.resource-card,.quick-card,.category-card { min-height:118px; }
.tile h3,.home-tile h3,.resource-card h3,.quick-card h3,.category-card h3 { line-height:1.15; }

/* Theme picker modal readability */
.site-theme-overlay { position:fixed; inset:0; z-index:9999; display:none; align-items:center; justify-content:center; padding:1rem; background:rgba(8,16,14,.48); backdrop-filter:blur(2px); }
.site-theme-overlay.open { display:flex; }
.site-theme-panel { width:min(760px,96vw); max-height:92vh; overflow:auto; background:var(--theme-modal-bg,#fbfffd)!important; color:var(--theme-modal-text,#173f35)!important; border:1px solid rgba(23,63,53,.18); border-radius:18px; box-shadow:0 24px 80px rgba(0,0,0,.28); padding:1.25rem; }
.site-theme-head { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:1rem; }
.site-theme-title { color:#173f35!important; font-family:'Playfair Display',Georgia,serif; font-size:1.35rem; font-weight:900; letter-spacing:0; text-shadow:none!important; }
.site-theme-close { width:2.4rem; height:2.4rem; border-radius:999px; border:1px solid rgba(23,63,53,.18); background:#fff; color:#35665a; font-size:1.45rem; line-height:1; cursor:pointer; }
.site-theme-section { margin:.75rem 0 .55rem; color:#2d6e5e!important; font-size:.78rem; font-weight:900; letter-spacing:.26em; text-transform:uppercase; text-align:center; text-shadow:none!important; }
.site-theme-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.75rem; }
.site-theme-card { display:flex; align-items:center; gap:.7rem; min-height:68px; width:100%; border:1px solid rgba(23,63,53,.16); border-radius:11px; background:rgba(255,255,255,.88)!important; color:#173f35!important; text-align:left; padding:.72rem .78rem; cursor:pointer; box-shadow:none; text-shadow:none!important; }
.site-theme-card:hover,.site-theme-card.active { border-color:#2d6e5e; background:#fff!important; }
.site-theme-card.active { box-shadow:inset 0 0 0 1px #2d6e5e; }
.site-theme-card span:last-child { min-width:0; }
.site-theme-swatch { flex:0 0 32px; width:32px; height:32px; border-radius:999px; box-shadow:inset 0 0 0 1px rgba(255,255,255,.55), 0 2px 8px rgba(0,0,0,.18); }
.site-theme-name { display:block; color:#173f35!important; font-family:'Source Serif 4',Georgia,serif; font-size:1rem; font-weight:900; line-height:1.12; letter-spacing:0; white-space:normal; overflow:visible; text-overflow:clip; text-shadow:none!important; }
.site-theme-desc { display:block; margin-top:.18rem; color:#536963!important; font-size:.82rem; font-weight:600; line-height:1.2; letter-spacing:0; text-shadow:none!important; }
.swatch-pounamu{background:linear-gradient(135deg,#dcece8,#2d6e5e)} .swatch-kowhai{background:linear-gradient(135deg,#fff2c2,#c8902a)} .swatch-marae{background:linear-gradient(135deg,#fff,#8b2e2e)} .swatch-moana{background:linear-gradient(135deg,#d9f0ff,#2e78b7)} .swatch-harakeke{background:linear-gradient(135deg,#eef5ea,#557a4b)} .swatch-onepu{background:linear-gradient(135deg,#fbf3e4,#a88957)} .swatch-rangi{background:linear-gradient(135deg,#7ab8d6,#0b1722)} .swatch-touli{background:linear-gradient(135deg,#35a383,#061e19)} .swatch-atea{background:linear-gradient(135deg,#d8b35a,#11100c)} .swatch-awhio{background:linear-gradient(135deg,#9c7ce0,#151226)} .swatch-pouri{background:linear-gradient(135deg,#b88a2d,#0d0b07)} .swatch-tonga{background:linear-gradient(135deg,#d26a3e,#1b100b)}

@media (max-width:760px){ .site-theme-grid{grid-template-columns:1fr;} .site-theme-panel{padding:1rem;} }


/* Homepage theme-aware card fixes */
.word-card[aria-labelledby="wotd-title"] {
  background: var(--wotd-bg, var(--card-bg)) !important;
  border-color: var(--wotd-border, var(--border)) !important;
  border-left-color: var(--koura) !important;
}
.tile::after,
.info-card::after {
  background: repeating-linear-gradient(135deg, transparent 0 12px, var(--soft-accent) 12px 14px) !important;
}

/* ==== DARK THEME READABILITY FIXES - MOBILE + CARDS ==== */
/* Fixes Rangi, Tōuli, Ātea Kōura and Āwhiowhio where cards were turning pale grey with low-contrast text. */

html[data-theme="rangi"], body[data-theme="rangi"]{
  --card-bg:#12263A;
  --card-surface:#172F45;
  --card-text:#F3FBFF;
  --card-muted:#B9D9EA;
  --pattern-bg:rgba(122,184,214,.12);
  --pattern-selected:rgba(122,184,214,.18);
  --soft-accent:rgba(122,184,214,.16);
  --theme-modal-bg:#0D1D2B;
  --theme-modal-text:#F3FBFF;
  --theme-modal-muted:#B9D9EA;
}
html[data-theme="touli"], body[data-theme="touli"]{
  --card-bg:#0D3028;
  --card-surface:#123C33;
  --card-text:#EFFFFA;
  --card-muted:#A7DECF;
  --pattern-bg:rgba(53,163,131,.13);
  --pattern-selected:rgba(53,163,131,.20);
  --soft-accent:rgba(53,163,131,.16);
  --theme-modal-bg:#08251F;
  --theme-modal-text:#EFFFFA;
  --theme-modal-muted:#A7DECF;
}
html[data-theme="atea"], body[data-theme="atea"]{
  --card-bg:#242017;
  --card-surface:#302917;
  --card-text:#FFF5D8;
  --card-muted:#E8D39B;
  --pattern-bg:rgba(216,179,90,.13);
  --pattern-selected:rgba(216,179,90,.20);
  --soft-accent:rgba(216,179,90,.16);
  --theme-modal-bg:#1B170D;
  --theme-modal-text:#FFF5D8;
  --theme-modal-muted:#E8D39B;
}
html[data-theme="awhio"], body[data-theme="awhio"]{
  --card-bg:#272040;
  --card-surface:#332854;
  --card-text:#F7F0FF;
  --card-muted:#CAB9F2;
  --pattern-bg:rgba(156,124,224,.13);
  --pattern-selected:rgba(156,124,224,.20);
  --soft-accent:rgba(156,124,224,.16);
  --theme-modal-bg:#1D1730;
  --theme-modal-text:#F7F0FF;
  --theme-modal-muted:#CAB9F2;
}

/* Apply the correct dark card surface to common cards across all pages. */
html[data-theme="rangi"] :is(.card,.word-card,.phrase-card,.expression-card,.kiwaha-card,.resource-tile,.mini-card,.practice-card,.example-row,.pattern-box,.tile,.home-tile,.resource-card,.quick-card,.category-card,.flashcard,.intro-card,.info-card,.content-card,.builder-card,.dash-card,.pepeha-card,.tae-feature-card,.tau-feature-card,.whakatauki-hero-card,.whakatauki-section-card,.whakatauki-stat-card),
body[data-theme="rangi"] :is(.card,.word-card,.phrase-card,.expression-card,.kiwaha-card,.resource-tile,.mini-card,.practice-card,.example-row,.pattern-box,.tile,.home-tile,.resource-card,.quick-card,.category-card,.flashcard,.intro-card,.info-card,.content-card,.builder-card,.dash-card,.pepeha-card,.tae-feature-card,.tau-feature-card,.whakatauki-hero-card,.whakatauki-section-card,.whakatauki-stat-card),
html[data-theme="touli"] :is(.card,.word-card,.phrase-card,.expression-card,.kiwaha-card,.resource-tile,.mini-card,.practice-card,.example-row,.pattern-box,.tile,.home-tile,.resource-card,.quick-card,.category-card,.flashcard,.intro-card,.info-card,.content-card,.builder-card,.dash-card,.pepeha-card,.tae-feature-card,.tau-feature-card,.whakatauki-hero-card,.whakatauki-section-card,.whakatauki-stat-card),
body[data-theme="touli"] :is(.card,.word-card,.phrase-card,.expression-card,.kiwaha-card,.resource-tile,.mini-card,.practice-card,.example-row,.pattern-box,.tile,.home-tile,.resource-card,.quick-card,.category-card,.flashcard,.intro-card,.info-card,.content-card,.builder-card,.dash-card,.pepeha-card,.tae-feature-card,.tau-feature-card,.whakatauki-hero-card,.whakatauki-section-card,.whakatauki-stat-card),
html[data-theme="atea"] :is(.card,.word-card,.phrase-card,.expression-card,.kiwaha-card,.resource-tile,.mini-card,.practice-card,.example-row,.pattern-box,.tile,.home-tile,.resource-card,.quick-card,.category-card,.flashcard,.intro-card,.info-card,.content-card,.builder-card,.dash-card,.pepeha-card,.tae-feature-card,.tau-feature-card,.whakatauki-hero-card,.whakatauki-section-card,.whakatauki-stat-card),
body[data-theme="atea"] :is(.card,.word-card,.phrase-card,.expression-card,.kiwaha-card,.resource-tile,.mini-card,.practice-card,.example-row,.pattern-box,.tile,.home-tile,.resource-card,.quick-card,.category-card,.flashcard,.intro-card,.info-card,.content-card,.builder-card,.dash-card,.pepeha-card,.tae-feature-card,.tau-feature-card,.whakatauki-hero-card,.whakatauki-section-card,.whakatauki-stat-card),
html[data-theme="awhio"] :is(.card,.word-card,.phrase-card,.expression-card,.kiwaha-card,.resource-tile,.mini-card,.practice-card,.example-row,.pattern-box,.tile,.home-tile,.resource-card,.quick-card,.category-card,.flashcard,.intro-card,.info-card,.content-card,.builder-card,.dash-card,.pepeha-card,.tae-feature-card,.tau-feature-card,.whakatauki-hero-card,.whakatauki-section-card,.whakatauki-stat-card),
body[data-theme="awhio"] :is(.card,.word-card,.phrase-card,.expression-card,.kiwaha-card,.resource-tile,.mini-card,.practice-card,.example-row,.pattern-box,.tile,.home-tile,.resource-card,.quick-card,.category-card,.flashcard,.intro-card,.info-card,.content-card,.builder-card,.dash-card,.pepeha-card,.tae-feature-card,.tau-feature-card,.whakatauki-hero-card,.whakatauki-section-card,.whakatauki-stat-card){
  background:var(--card-surface,var(--card-bg))!important;
  color:var(--card-text,var(--atea))!important;
  border-color:var(--border)!important;
  text-shadow:none!important;
}

/* Headings and Māori words inside dark cards. */
html[data-theme="rangi"] :is(.card,.word-card,.phrase-card,.expression-card,.kiwaha-card) :is(h1,h2,h3,h4,strong),
body[data-theme="rangi"] :is(.card,.word-card,.phrase-card,.expression-card,.kiwaha-card) :is(h1,h2,h3,h4,strong),
html[data-theme="touli"] :is(.card,.word-card,.phrase-card,.expression-card,.kiwaha-card) :is(h1,h2,h3,h4,strong),
body[data-theme="touli"] :is(.card,.word-card,.phrase-card,.expression-card,.kiwaha-card) :is(h1,h2,h3,h4,strong),
html[data-theme="atea"] :is(.card,.word-card,.phrase-card,.expression-card,.kiwaha-card) :is(h1,h2,h3,h4,strong),
body[data-theme="atea"] :is(.card,.word-card,.phrase-card,.expression-card,.kiwaha-card) :is(h1,h2,h3,h4,strong),
html[data-theme="awhio"] :is(.card,.word-card,.phrase-card,.expression-card,.kiwaha-card) :is(h1,h2,h3,h4,strong),
body[data-theme="awhio"] :is(.card,.word-card,.phrase-card,.expression-card,.kiwaha-card) :is(h1,h2,h3,h4,strong){
  color:var(--card-text)!important;
  text-shadow:none!important;
}

/* Translations, examples and helper text inside dark cards. */
html[data-theme="rangi"] :is(.card,.word-card,.phrase-card,.expression-card,.kiwaha-card) :is(p,span,small),
body[data-theme="rangi"] :is(.card,.word-card,.phrase-card,.expression-card,.kiwaha-card) :is(p,span,small),
html[data-theme="touli"] :is(.card,.word-card,.phrase-card,.expression-card,.kiwaha-card) :is(p,span,small),
body[data-theme="touli"] :is(.card,.word-card,.phrase-card,.expression-card,.kiwaha-card) :is(p,span,small),
html[data-theme="atea"] :is(.card,.word-card,.phrase-card,.expression-card,.kiwaha-card) :is(p,span,small),
body[data-theme="atea"] :is(.card,.word-card,.phrase-card,.expression-card,.kiwaha-card) :is(p,span,small),
html[data-theme="awhio"] :is(.card,.word-card,.phrase-card,.expression-card,.kiwaha-card) :is(p,span,small),
body[data-theme="awhio"] :is(.card,.word-card,.phrase-card,.expression-card,.kiwaha-card) :is(p,span,small){
  color:var(--card-muted)!important;
  text-shadow:none!important;
}

/* Pronunciation/accent text stays themed but readable. */
html[data-theme="rangi"] :is(.card,.word-card,.phrase-card,.expression-card,.kiwaha-card) :is(em,.pronunciation),
body[data-theme="rangi"] :is(.card,.word-card,.phrase-card,.expression-card,.kiwaha-card) :is(em,.pronunciation){color:#8FD8F4!important;text-shadow:none!important;}

html[data-theme="touli"] :is(.card,.word-card,.phrase-card,.expression-card,.kiwaha-card) :is(em,.pronunciation),
body[data-theme="touli"] :is(.card,.word-card,.phrase-card,.expression-card,.kiwaha-card) :is(em,.pronunciation){color:#58E2C0!important;text-shadow:none!important;}

html[data-theme="atea"] :is(.card,.word-card,.phrase-card,.expression-card,.kiwaha-card) :is(em,.pronunciation),
body[data-theme="atea"] :is(.card,.word-card,.phrase-card,.expression-card,.kiwaha-card) :is(em,.pronunciation){color:#F0CA67!important;text-shadow:none!important;}

html[data-theme="awhio"] :is(.card,.word-card,.phrase-card,.expression-card,.kiwaha-card) :is(em,.pronunciation),
body[data-theme="awhio"] :is(.card,.word-card,.phrase-card,.expression-card,.kiwaha-card) :is(em,.pronunciation){color:#B99BFF!important;text-shadow:none!important;}

/* Theme picker readability. Keep cards light inside the modal even when a dark theme is active. */
.site-theme-panel{
  background:var(--theme-modal-bg,#fbfffd)!important;
  color:var(--theme-modal-text,#173f35)!important;
}
.site-theme-card{
  background:#F9FCFA!important;
  color:#173f35!important;
}
.site-theme-card:hover{
  background:#fff!important;
}
.site-theme-card.active{
  background:#fff!important;
  color:#173f35!important;
  border-color:#c8902a!important;
  box-shadow:0 0 0 4px rgba(200,144,42,.20),0 12px 28px rgba(0,0,0,.16)!important;
}
.site-theme-name{color:#173f35!important;text-shadow:none!important;}
.site-theme-desc{color:#536963!important;text-shadow:none!important;}

/* Mobile polish for the same problem screens. */
@media (max-width:760px){
  html[data-theme="rangi"] :is(.card,.word-card,.phrase-card,.expression-card,.kiwaha-card),
  body[data-theme="rangi"] :is(.card,.word-card,.phrase-card,.expression-card,.kiwaha-card),
  html[data-theme="touli"] :is(.card,.word-card,.phrase-card,.expression-card,.kiwaha-card),
  body[data-theme="touli"] :is(.card,.word-card,.phrase-card,.expression-card,.kiwaha-card),
  html[data-theme="atea"] :is(.card,.word-card,.phrase-card,.expression-card,.kiwaha-card),
  body[data-theme="atea"] :is(.card,.word-card,.phrase-card,.expression-card,.kiwaha-card),
  html[data-theme="awhio"] :is(.card,.word-card,.phrase-card,.expression-card,.kiwaha-card),
  body[data-theme="awhio"] :is(.card,.word-card,.phrase-card,.expression-card,.kiwaha-card){
    box-shadow:0 16px 34px -28px rgba(0,0,0,.78)!important;
  }
}

/* Dark theme support for buttons */
html[data-theme="rangi"] .btn-primary,body[data-theme="rangi"] .btn-primary{background:#7EC8E3!important;color:#001a24!important;}
html[data-theme="touli"] .btn-primary,body[data-theme="touli"] .btn-primary{background:#4AC9A8!important;color:#001514!important;}
html[data-theme="atea"] .btn-primary,body[data-theme="atea"] .btn-primary{background:#E8B84B!important;color:#1a140f!important;}
html[data-theme="awhio"] .btn-primary,body[data-theme="awhio"] .btn-primary{background:#B896F7!important;color:#1e1928!important;}

html[data-theme="rangi"] .btn,body[data-theme="rangi"] .btn{background:#1a3a4a!important;color:#E0F0F7!important;border-color:rgba(79,188,226,.3)!important;}
html[data-theme="touli"] .btn,body[data-theme="touli"] .btn{background:#0a2823!important;color:#D0F0E8!important;border-color:rgba(74,201,168,.3)!important;}
html[data-theme="atea"] .btn,body[data-theme="atea"] .btn{background:#1a140f!important;color:#F0E8D0!important;border-color:rgba(232,184,75,.3)!important;}
html[data-theme="awhio"] .btn,body[data-theme="awhio"] .btn{background:#1e1928!important;color:#E8D8F8!important;border-color:rgba(155,114,232,.3)!important;}

/* Dark theme support for notice/callout cards */
html[data-theme="rangi"] .notice,html[data-theme="rangi"] .callout,body[data-theme="rangi"] .notice,body[data-theme="rangi"] .callout{background:linear-gradient(135deg,rgba(30,60,90,.4),rgba(30,60,90,.2)),#1a3a4a!important;border-left-color:#7EC8E3!important;color:#E0F0F7!important;}
html[data-theme="rangi"] .notice strong,html[data-theme="rangi"] .callout strong,body[data-theme="rangi"] .notice strong,body[data-theme="rangi"] .callout strong{color:#7EC8E3!important;}

html[data-theme="touli"] .notice,html[data-theme="touli"] .callout,body[data-theme="touli"] .notice,body[data-theme="touli"] .callout{background:linear-gradient(135deg,rgba(10,40,35,.4),rgba(10,40,35,.2)),#0a2823!important;border-left-color:#4AC9A8!important;color:#D0F0E8!important;}
html[data-theme="touli"] .notice strong,html[data-theme="touli"] .callout strong,body[data-theme="touli"] .notice strong,body[data-theme="touli"] .callout strong{color:#4AC9A8!important;}

html[data-theme="atea"] .notice,html[data-theme="atea"] .callout,body[data-theme="atea"] .notice,body[data-theme="atea"] .callout{background:linear-gradient(135deg,rgba(25,20,15,.4),rgba(25,20,15,.2)),#1a140f!important;border-left-color:#E8B84B!important;color:#F0E8D0!important;}
html[data-theme="atea"] .notice strong,html[data-theme="atea"] .callout strong,body[data-theme="atea"] .notice strong,body[data-theme="atea"] .callout strong{color:#E8B84B!important;}

html[data-theme="awhio"] .notice,html[data-theme="awhio"] .callout,body[data-theme="awhio"] .notice,body[data-theme="awhio"] .callout{background:linear-gradient(135deg,rgba(30,25,45,.4),rgba(30,25,45,.2)),#1e1928!important;border-left-color:#B896F7!important;color:#E8D8F8!important;}
html[data-theme="awhio"] .notice strong,html[data-theme="awhio"] .callout strong,body[data-theme="awhio"] .notice strong,body[data-theme="awhio"] .callout strong{color:#B896F7!important;}

/* Dark theme support for pepeha-card */
html[data-theme="rangi"] .pepeha-card,body[data-theme="rangi"] .pepeha-card{background:linear-gradient(135deg,rgba(30,60,90,.3),rgba(30,60,90,.2)),#1a3a4a!important;border-color:rgba(79,188,226,.3)!important;}
html[data-theme="rangi"] .pepeha-card p,body[data-theme="rangi"] .pepeha-card p{color:#E0F0F7!important;}
html[data-theme="rangi"] .pepeha-intro,body[data-theme="rangi"] .pepeha-intro{color:#7EC8E3!important;}

html[data-theme="touli"] .pepeha-card,body[data-theme="touli"] .pepeha-card{background:linear-gradient(135deg,rgba(10,40,35,.3),rgba(10,40,35,.2)),#0a2823!important;border-color:rgba(74,201,168,.3)!important;}
html[data-theme="touli"] .pepeha-card p,body[data-theme="touli"] .pepeha-card p{color:#D0F0E8!important;}
html[data-theme="touli"] .pepeha-intro,body[data-theme="touli"] .pepeha-intro{color:#4AC9A8!important;}

html[data-theme="atea"] .pepeha-card,body[data-theme="atea"] .pepeha-card{background:linear-gradient(135deg,rgba(25,20,15,.3),rgba(25,20,15,.2)),#1a140f!important;border-color:rgba(232,184,75,.3)!important;}
html[data-theme="atea"] .pepeha-card p,body[data-theme="atea"] .pepeha-card p{color:#F0E8D0!important;}
html[data-theme="atea"] .pepeha-intro,body[data-theme="atea"] .pepeha-intro{color:#E8B84B!important;}

html[data-theme="awhio"] .pepeha-card,body[data-theme="awhio"] .pepeha-card{background:linear-gradient(135deg,rgba(30,25,45,.3),rgba(30,25,45,.2)),#1e1928!important;border-color:rgba(155,114,232,.3)!important;}
html[data-theme="awhio"] .pepeha-card p,body[data-theme="awhio"] .pepeha-card p{color:#E8D8F8!important;}
html[data-theme="awhio"] .pepeha-intro,body[data-theme="awhio"] .pepeha-intro{color:#B896F7!important;}

/* Light theme support for buttons */
html[data-theme="pounamu"] .btn-primary,body[data-theme="pounamu"] .btn-primary{background:#2D6E5E!important;color:#fff!important;}
html[data-theme="kowhai"] .btn-primary,body[data-theme="kowhai"] .btn-primary{background:#C8902A!important;color:#fff!important;}
html[data-theme="marae"] .btn-primary,body[data-theme="marae"] .btn-primary{background:#8B2E2E!important;color:#fff!important;}
html[data-theme="moana"] .btn-primary,body[data-theme="moana"] .btn-primary{background:#185FA5!important;color:#fff!important;}
html[data-theme="harakeke"] .btn-primary,body[data-theme="harakeke"] .btn-primary{background:#3B6B28!important;color:#fff!important;}
html[data-theme="onepu"] .btn-primary,body[data-theme="onepu"] .btn-primary{background:#7A6030!important;color:#fff!important;}

html[data-theme="pounamu"] .btn,body[data-theme="pounamu"] .btn{background:#F2F7F5!important;color:#2D6E5E!important;border-color:#2D6E5E!important;}
html[data-theme="kowhai"] .btn,body[data-theme="kowhai"] .btn{background:#FFFBF0!important;color:#C8902A!important;border-color:#C8902A!important;}
html[data-theme="marae"] .btn,body[data-theme="marae"] .btn{background:#FAFAF9!important;color:#8B2E2E!important;border-color:#8B2E2E!important;}
html[data-theme="moana"] .btn,body[data-theme="moana"] .btn{background:#F0F7FF!important;color:#185FA5!important;border-color:#185FA5!important;}
html[data-theme="harakeke"] .btn,body[data-theme="harakeke"] .btn{background:#F3F7EE!important;color:#3B6B28!important;border-color:#3B6B28!important;}
html[data-theme="onepu"] .btn,body[data-theme="onepu"] .btn{background:#FAF6EE!important;color:#7A6030!important;border-color:#7A6030!important;}

/* Light theme support for notice/callout cards */
html[data-theme="pounamu"] .notice,html[data-theme="pounamu"] .callout,body[data-theme="pounamu"] .notice,body[data-theme="pounamu"] .callout{background:linear-gradient(135deg,rgba(45,110,94,.1),rgba(45,110,94,.05)),#ffffff!important;border-left-color:#2D6E5E!important;color:#2a2a2a!important;}
html[data-theme="pounamu"] .notice strong,html[data-theme="pounamu"] .callout strong,body[data-theme="pounamu"] .notice strong,body[data-theme="pounamu"] .callout strong{color:#2D6E5E!important;}

html[data-theme="kowhai"] .notice,html[data-theme="kowhai"] .callout,body[data-theme="kowhai"] .notice,body[data-theme="kowhai"] .callout{background:linear-gradient(135deg,rgba(200,144,42,.1),rgba(200,144,42,.05)),#ffffff!important;border-left-color:#C8902A!important;color:#2a2a2a!important;}
html[data-theme="kowhai"] .notice strong,html[data-theme="kowhai"] .callout strong,body[data-theme="kowhai"] .notice strong,body[data-theme="kowhai"] .callout strong{color:#C8902A!important;}

html[data-theme="marae"] .notice,html[data-theme="marae"] .callout,body[data-theme="marae"] .notice,body[data-theme="marae"] .callout{background:linear-gradient(135deg,rgba(139,46,46,.1),rgba(139,46,46,.05)),#ffffff!important;border-left-color:#8B2E2E!important;color:#2a2a2a!important;}
html[data-theme="marae"] .notice strong,html[data-theme="marae"] .callout strong,body[data-theme="marae"] .notice strong,body[data-theme="marae"] .callout strong{color:#8B2E2E!important;}

html[data-theme="moana"] .notice,html[data-theme="moana"] .callout,body[data-theme="moana"] .notice,body[data-theme="moana"] .callout{background:linear-gradient(135deg,rgba(24,95,165,.1),rgba(24,95,165,.05)),#ffffff!important;border-left-color:#185FA5!important;color:#2a2a2a!important;}
html[data-theme="moana"] .notice strong,html[data-theme="moana"] .callout strong,body[data-theme="moana"] .notice strong,body[data-theme="moana"] .callout strong{color:#185FA5!important;}

html[data-theme="harakeke"] .notice,html[data-theme="harakeke"] .callout,body[data-theme="harakeke"] .notice,body[data-theme="harakeke"] .callout{background:linear-gradient(135deg,rgba(59,107,40,.1),rgba(59,107,40,.05)),#ffffff!important;border-left-color:#3B6B28!important;color:#2a2a2a!important;}
html[data-theme="harakeke"] .notice strong,html[data-theme="harakeke"] .callout strong,body[data-theme="harakeke"] .notice strong,body[data-theme="harakeke"] .callout strong{color:#3B6B28!important;}

html[data-theme="onepu"] .notice,html[data-theme="onepu"] .callout,body[data-theme="onepu"] .notice,body[data-theme="onepu"] .callout{background:linear-gradient(135deg,rgba(122,96,48,.1),rgba(122,96,48,.05)),#ffffff!important;border-left-color:#7A6030!important;color:#2a2a2a!important;}
html[data-theme="onepu"] .notice strong,html[data-theme="onepu"] .callout strong,body[data-theme="onepu"] .notice strong,body[data-theme="onepu"] .callout strong{color:#7A6030!important;}

/* Light theme support for pepeha-card */
html[data-theme="pounamu"] .pepeha-card,body[data-theme="pounamu"] .pepeha-card{background:linear-gradient(135deg,rgba(45,110,94,.05),rgba(45,110,94,.02)),#ffffff!important;border-color:#2D6E5E!important;}
html[data-theme="pounamu"] .pepeha-card p,body[data-theme="pounamu"] .pepeha-card p{color:#2a2a2a!important;}
html[data-theme="pounamu"] .pepeha-intro,body[data-theme="pounamu"] .pepeha-intro{color:#2D6E5E!important;}

html[data-theme="kowhai"] .pepeha-card,body[data-theme="kowhai"] .pepeha-card{background:linear-gradient(135deg,rgba(200,144,42,.05),rgba(200,144,42,.02)),#ffffff!important;border-color:#C8902A!important;}
html[data-theme="kowhai"] .pepeha-card p,body[data-theme="kowhai"] .pepeha-card p{color:#2a2a2a!important;}
html[data-theme="kowhai"] .pepeha-intro,body[data-theme="kowhai"] .pepeha-intro{color:#C8902A!important;}

html[data-theme="marae"] .pepeha-card,body[data-theme="marae"] .pepeha-card{background:linear-gradient(135deg,rgba(139,46,46,.05),rgba(139,46,46,.02)),#ffffff!important;border-color:#8B2E2E!important;}
html[data-theme="marae"] .pepeha-card p,body[data-theme="marae"] .pepeha-card p{color:#2a2a2a!important;}
html[data-theme="marae"] .pepeha-intro,body[data-theme="marae"] .pepeha-intro{color:#8B2E2E!important;}

html[data-theme="moana"] .pepeha-card,body[data-theme="moana"] .pepeha-card{background:linear-gradient(135deg,rgba(24,95,165,.05),rgba(24,95,165,.02)),#ffffff!important;border-color:#185FA5!important;}
html[data-theme="moana"] .pepeha-card p,body[data-theme="moana"] .pepeha-card p{color:#2a2a2a!important;}
html[data-theme="moana"] .pepeha-intro,body[data-theme="moana"] .pepeha-intro{color:#185FA5!important;}

html[data-theme="harakeke"] .pepeha-card,body[data-theme="harakeke"] .pepeha-card{background:linear-gradient(135deg,rgba(59,107,40,.05),rgba(59,107,40,.02)),#ffffff!important;border-color:#3B6B28!important;}
html[data-theme="harakeke"] .pepeha-card p,body[data-theme="harakeke"] .pepeha-card p{color:#2a2a2a!important;}
html[data-theme="harakeke"] .pepeha-intro,body[data-theme="harakeke"] .pepeha-intro{color:#3B6B28!important;}

html[data-theme="onepu"] .pepeha-card,body[data-theme="onepu"] .pepeha-card{background:linear-gradient(135deg,rgba(122,96,48,.05),rgba(122,96,48,.02)),#ffffff!important;border-color:#7A6030!important;}
html[data-theme="onepu"] .pepeha-card p,body[data-theme="onepu"] .pepeha-card p{color:#2a2a2a!important;}
html[data-theme="onepu"] .pepeha-intro,body[data-theme="onepu"] .pepeha-intro{color:#7A6030!important;}


/* ======================================================================
   TE AKA REO UNIFIED DESIGN SYSTEM OVERRIDES
   Loaded after page-level legacy styles on every page.
   ====================================================================== */

*,*::before,*::after{box-sizing:border-box}
html{background:var(--page-bg);scroll-behavior:smooth}
body{
  margin:0!important;
  min-height:100vh;
  background:var(--page-bg)!important;
  color:var(--atea)!important;
  font-family:"Source Serif 4",Georgia,"Times New Roman",serif;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  transition:background-color .2s ease,color .2s ease;
}
img,svg,video{max-width:100%;height:auto}
a{color:var(--koura);text-underline-offset:.18em}
a:hover{color:var(--pounamu)}
button,input,select,textarea{font:inherit}
::selection{background:var(--koura);color:#fff}

/* Shared typography */
h1,h2,h3,h4,h5,h6,.site-brand,.brand{
  color:var(--atea)!important;
  font-family:"Playfair Display",Georgia,serif!important;
  text-wrap:balance;
}
p,li,dd,dt,small,.sub,.subtitle,.lead,.intro{color:var(--onepu)!important}
strong,b{color:var(--atea)}

/* One navigation treatment everywhere */
.site-nav,.topbar,.site-topbar{
  position:sticky!important;
  top:0;
  z-index:1000;
  width:100%;
  background:color-mix(in srgb,var(--page-bg) 92%,transparent)!important;
  color:var(--atea)!important;
  border-bottom:1px solid var(--border)!important;
  box-shadow:0 6px 22px color-mix(in srgb,var(--shadow) 45%,transparent)!important;
  backdrop-filter:blur(16px) saturate(135%);
  -webkit-backdrop-filter:blur(16px) saturate(135%);
}
.site-nav-inner,.nav-inner,.nav{
  width:min(1180px,calc(100% - 2rem))!important;
  min-height:68px;
  margin-inline:auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:1rem!important;
}
.site-brand,.brand{
  color:var(--atea)!important;
  font-weight:900!important;
  text-decoration:none!important;
}
.site-links,.links{display:flex!important;align-items:center!important;gap:1rem!important;flex-wrap:wrap}
.site-links a,.links a{
  color:var(--onepu)!important;
  font-family:inherit!important;
  font-size:.94rem!important;
  font-weight:800!important;
  line-height:1.2!important;
  padding:.55rem .1rem!important;
  border:0!important;
  border-bottom:2px solid transparent!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  text-decoration:none!important;
}
.site-links a:hover,.site-links a.active,.links a:hover,.links a.active{
  color:var(--koura)!important;
  border-bottom-color:var(--koura)!important;
}
.site-theme-toggle,.theme-toggle,[data-theme-toggle]{
  color:var(--atea)!important;
  background:var(--card-bg)!important;
  border:1px solid var(--border)!important;
  border-radius:999px!important;
  padding:.58rem .82rem!important;
  box-shadow:0 5px 16px var(--shadow)!important;
}
.site-theme-toggle:hover,.theme-toggle:hover,[data-theme-toggle]:hover{border-color:var(--koura)!important;transform:translateY(-1px)}

/* Shared page frame */
main,.container,.shell,.page-shell{
  color:var(--atea);
}
.container,.shell,.page-shell,main:not(.full-bleed){
  width:min(1180px,calc(100% - 2rem));
  margin-inline:auto;
}
.page-header,.hero,main>header:first-child{
  color:var(--atea)!important;
}
.page-header h1,.hero h1,main>header:first-child h1{color:var(--atea)!important}
.page-header p,.hero p,main>header:first-child p{color:var(--onepu)!important}

/* Unified surfaces */
.content-card,.hero-card,.word-card,.tile,.home-tile,.resource-card,.quick-card,
.category-card,.cat,.dash-card,.info-card,.info-tile,.card,.panel,.lesson-card,
.search-card,.feature-card,.pepeha-card,.kaupapa-notice,.notice,.callout,
.tool-card,.quiz-card,.flashcard,.builder-card,.results-card,.favourites-panel{
  background:var(--card-bg)!important;
  color:var(--atea)!important;
  border:1px solid var(--border)!important;
  border-radius:18px!important;
  box-shadow:0 12px 34px var(--shadow)!important;
}
.content-card,.hero-card,.card,.panel,.lesson-card,.tool-card,.quiz-card,.builder-card,.results-card{
  padding:clamp(1rem,2.3vw,2rem)!important;
}
.word-card,.tile,.home-tile,.resource-card,.quick-card,.category-card,.cat,.dash-card,.info-card,.info-tile,.feature-card{
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.word-card:hover,.tile:hover,.home-tile:hover,.resource-card:hover,.quick-card:hover,
.category-card:hover,.cat:hover,.dash-card:hover,.info-card:hover,.info-tile:hover,.feature-card:hover{
  transform:translateY(-3px);
  border-color:var(--koura)!important;
  box-shadow:0 16px 40px var(--shadow)!important;
}
.content-card *, .hero-card *, .word-card *, .tile *, .home-tile *, .resource-card *,
.quick-card *, .category-card *, .cat *, .dash-card *, .info-card *, .info-tile *,
.card *, .panel *, .pepeha-card *, .kaupapa-notice *, .notice *, .callout *{
  border-color:var(--border);
}
.content-card p,.hero-card p,.word-card p,.tile p,.home-tile p,.resource-card p,
.quick-card p,.category-card p,.cat p,.dash-card p,.info-card p,.info-tile p,
.card p,.panel p,.pepeha-card p,.kaupapa-notice p,.notice p,.callout p{
  color:var(--onepu)!important;
}

/* Accents and notices */
.kaupapa-notice,.notice,.callout{
  border-left:5px solid var(--koura)!important;
  background:linear-gradient(135deg,var(--soft-accent),var(--card-bg))!important;
}
.pepeha-card{
  background:linear-gradient(145deg,var(--card-bg),var(--repo))!important;
}
.label,.eyebrow,.kicker,.pill,.badge,.tag{
  color:var(--koura)!important;
  background:var(--soft-accent)!important;
  border-color:var(--border)!important;
}
.icon,.tile .icon,.card-icon{color:var(--koura)!important}
.rule,hr{border:0!important;height:1px!important;background:var(--border)!important}

/* Forms and search */
input,select,textarea,.search-input{
  color:var(--atea)!important;
  background:var(--input-bg)!important;
  border:1px solid var(--input-border)!important;
  border-radius:12px!important;
  outline:none;
}
input::placeholder,textarea::placeholder{color:var(--onepu)!important;opacity:.75}
input:focus,select:focus,textarea:focus,.search-input:focus{
  border-color:var(--koura)!important;
  box-shadow:0 0 0 4px var(--soft-accent)!important;
}
button,.button,.btn,.primary-btn,.secondary-btn,.explore,.cta{
  border-radius:12px!important;
  font-weight:800!important;
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;
}
button:hover,.button:hover,.btn:hover,.primary-btn:hover,.secondary-btn:hover,.explore:hover,.cta:hover{transform:translateY(-1px)}
.primary-btn,.btn-primary,.cta,.explore{
  color:#fff!important;
  background:var(--koura)!important;
  border:1px solid var(--koura)!important;
  box-shadow:0 8px 20px var(--shadow)!important;
}
.secondary-btn,.btn-secondary{
  color:var(--atea)!important;
  background:var(--card-bg)!important;
  border:1px solid var(--border)!important;
}

/* Favourites */
.fav-btn,.favourite-btn,.favorite-btn{
  color:var(--onepu)!important;
  background:var(--card-bg)!important;
  border:1px solid var(--border)!important;
  box-shadow:0 5px 14px var(--shadow)!important;
}
.fav-btn.active,.favourite-btn.active,.favorite-btn.active,[aria-pressed="true"].fav-btn{
  color:#fff!important;
  background:var(--mawhero)!important;
  border-color:var(--mawhero)!important;
}

/* Shared footer, including both legacy class names */
footer,.footer,.site-footer{
  color:var(--onepu)!important;
  border-top:1px solid var(--border)!important;
  background:transparent!important;
}
footer h2,footer h3,footer h4,.footer h2,.footer h3,.footer h4,.site-footer h2,.site-footer h3,.site-footer h4{color:var(--atea)!important}
footer p,footer small,.footer p,.footer small,.site-footer p,.site-footer small{color:var(--onepu)!important}
footer a,.footer a,.site-footer a{color:var(--koura)!important}
.footer-links a{color:var(--onepu)!important}
.footer-links a:hover{color:var(--koura)!important}

/* Theme picker remains intentionally light for clear colour comparison */
.site-theme-overlay{background:rgba(4,10,9,.62)!important}
.site-theme-panel{background:#fbfffd!important;color:#173f35!important;border-color:rgba(23,63,53,.18)!important}
.site-theme-panel h1,.site-theme-panel h2,.site-theme-panel h3,.site-theme-panel p,.site-theme-panel span{color:inherit}

/* Tables and interactive data */
table{width:100%;border-collapse:collapse;background:var(--card-bg);color:var(--atea)}
th,td{padding:.8rem;border:1px solid var(--border)}
th{background:var(--soft-accent);color:var(--atea)}

/* Dark themes: browser-native controls and readable media */
html[data-theme="rangi"],html[data-theme="touli"],html[data-theme="atea"],html[data-theme="awhio"],html[data-theme="pouri"],html[data-theme="tonga"]{
  color-scheme:dark;
}
html[data-theme="rangi"] img,html[data-theme="touli"] img,html[data-theme="atea"] img,
html[data-theme="awhio"] img,html[data-theme="pouri"] img,html[data-theme="tonga"] img{
  filter:saturate(.96) brightness(.94);
}

/* Responsive behaviour */
@media(max-width:900px){
  .site-nav-inner,.nav-inner,.nav{align-items:flex-start!important;padding:.8rem 0!important;flex-wrap:wrap}
  .site-links,.links{order:3;width:100%;overflow-x:auto;flex-wrap:nowrap!important;padding-bottom:.2rem}
  .site-links a,.links a{white-space:nowrap}
}
@media(max-width:700px){
  .container,.shell,.page-shell,main:not(.full-bleed){width:min(100% - 1.2rem,1180px)}
  .site-nav-inner,.nav-inner,.nav{width:min(100% - 1.2rem,1180px)!important}
  .content-card,.hero-card,.card,.panel,.lesson-card,.tool-card,.quiz-card,.builder-card,.results-card{padding:1rem!important;border-radius:14px!important}
  .word-card,.tile,.home-tile,.resource-card,.quick-card,.category-card,.cat,.dash-card,.info-card,.info-tile,.feature-card{border-radius:14px!important}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation-duration:.01ms!important;animation-iteration-count:1!important}
}

/* ===== TE AKA REO 2026 MOBILE-FIRST REDESIGN ===== */
:root{
  --mobile-nav-bg:#062f42;
  --mobile-nav-bg-2:#041f2d;
  --mobile-nav-text:#f6fbff;
  --mobile-safe:env(safe-area-inset-bottom,0px);
}
*{box-sizing:border-box}
html{scroll-padding-top:86px}
body{overflow-x:hidden}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

/* Refined desktop navigation */
.site-nav{background:color-mix(in srgb,var(--card-bg) 94%,transparent)!important;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.site-nav-inner{min-height:68px;gap:1.15rem!important}
.site-brand{letter-spacing:-.025em!important}
.site-links{justify-content:center;gap:1.05rem!important}
.site-links a{font-size:.88rem!important}
.site-mobile-actions,.mobile-nav-backdrop,.mobile-nav-drawer{display:none}

/* Homepage hero */
.page-home main.container{max-width:1180px!important;padding-top:1rem!important}
.home-intro-hero{position:relative;isolation:isolate;min-height:360px;overflow:hidden;border-radius:24px;border:1px solid color-mix(in srgb,var(--border) 85%,transparent);box-shadow:0 24px 70px -45px rgba(0,0,0,.65);background:linear-gradient(125deg,#082e3d 0%,#0b4c56 44%,#d88452 100%);color:#fff;margin:.35rem 0 2rem}
.home-intro-hero::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(2,17,26,.84) 0%,rgba(2,20,28,.64) 48%,rgba(2,20,28,.18) 78%,rgba(2,20,28,.08) 100%);z-index:-1}
.home-intro-content{position:relative;z-index:4;width:min(760px,72%);padding:3.25rem 2.7rem 2.55rem}
.home-intro-eyebrow{margin:0 0 .55rem!important;text-transform:uppercase;letter-spacing:.17em;font-size:.74rem;font-weight:900;color:#d6efe8!important}
.home-intro-hero h1{font-family:'Playfair Display',Georgia,serif!important;font-size:clamp(3rem,5.8vw,5.35rem)!important;line-height:.92!important;letter-spacing:-.055em!important;color:#fff!important;text-shadow:0 3px 28px rgba(0,0,0,.35)!important;margin:0!important}
.home-intro-hero h1 span{display:inline-block;font-style:normal}
.home-intro-tagline{font-size:clamp(1rem,2vw,1.35rem)!important;font-weight:900!important;color:#fff!important;margin:.8rem 0 .45rem!important}
.home-intro-copy{max-width:680px;font-size:1rem!important;line-height:1.55!important;color:rgba(255,255,255,.9)!important;margin:0 0 1.1rem!important;font-weight:650}
.home-hero-search{max-width:720px;position:relative}
.home-search-box-hero{grid-template-columns:auto 1fr auto!important;min-height:54px!important;border:0!important;border-radius:999px!important;background:#fff!important;box-shadow:0 12px 30px rgba(0,0,0,.2)!important;padding:.12rem .55rem .12rem .85rem!important}
.home-search-box-hero:focus-within{box-shadow:0 0 0 4px rgba(255,255,255,.24),0 12px 30px rgba(0,0,0,.22)!important}
.home-search-box-hero #homeSearchInput{color:#173f35!important;font-size:1rem!important;padding:.72rem .2rem!important}
.home-search-box-hero #homeSearchInput::placeholder{color:#60746e!important}
.home-search-box-hero .home-search-icon{color:#173f35;font-size:1.45rem;line-height:1}
.home-search-chips{display:flex;flex-wrap:wrap;gap:.45rem;margin-top:.72rem}
.home-search-chips button{border:1px solid rgba(255,255,255,.42)!important;border-radius:999px!important;background:rgba(0,0,0,.28)!important;color:#fff!important;padding:.28rem .65rem!important;font-size:.75rem!important;font-weight:800!important;backdrop-filter:blur(8px)}
.home-search-chips button:hover{background:rgba(255,255,255,.17)!important}
.home-intro-hero .home-search-results{position:relative;margin-top:.7rem;max-height:330px;overflow:auto;border-radius:16px}
.home-intro-hero .home-search-result,.home-intro-hero .home-search-empty{background:rgba(255,255,255,.97)!important;color:#173f35!important;border-color:rgba(255,255,255,.9)!important}
.home-intro-hero .home-search-result strong,.home-intro-hero .home-search-result span{color:#173f35!important}
.home-hero-landscape{position:absolute;inset:0;z-index:-2;overflow:hidden;background:linear-gradient(180deg,#e18a54 0%,#cb7652 27%,#244e57 57%,#062c3c 100%)}
.home-hero-landscape .sun{position:absolute;width:120px;height:120px;border-radius:50%;right:16%;top:12%;background:radial-gradient(circle,#ffd796 0 18%,#f6a85e 38%,rgba(245,138,73,.1) 70%);filter:blur(.1px)}
.home-hero-landscape .mountain{position:absolute;bottom:25%;clip-path:polygon(0 100%,47% 4%,100% 100%);background:linear-gradient(135deg,#203f42,#0b252d);filter:drop-shadow(0 12px 12px rgba(0,0,0,.25))}
.home-hero-landscape .mountain-a{right:0;width:55%;height:62%}
.home-hero-landscape .mountain-b{right:34%;width:38%;height:42%;opacity:.88}
.home-hero-landscape::after{content:"";position:absolute;left:-5%;right:-5%;bottom:-5%;height:36%;background:repeating-radial-gradient(ellipse at 44% 0%,rgba(255,255,255,.23) 0 2px,transparent 3px 16px),linear-gradient(180deg,#174c5d 0%,#082d3e 100%);transform:skewY(-2deg)}
.home-hero-landscape .hero-koru{position:absolute;right:-1.5rem;bottom:-5.5rem;font-family:Georgia,serif;font-size:18rem;line-height:1;color:rgba(255,255,255,.08);transform:rotate(-20deg)}

/* Homepage learning cards */
.page-home #start-title,.page-home #cat-title,.page-home .section-head h2{font-size:clamp(1.65rem,2.4vw,2.15rem)!important;color:var(--atea)!important;letter-spacing:-.02em}
.page-home .tile-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:.78rem!important}
.page-home .learning-tile{display:flex!important;flex-direction:column!important;align-items:center!important;text-align:center!important;min-height:220px!important;padding:1.05rem .8rem!important;border-radius:16px!important;background:linear-gradient(180deg,var(--card-bg),color-mix(in srgb,var(--card-bg) 88%,var(--repo)))!important}
.page-home .learning-tile .icon{display:grid;place-items:center;width:44px;height:44px;margin:.15rem auto .6rem;border-radius:12px;background:var(--soft-accent)!important;color:var(--koura)!important;font-size:1.55rem!important}
.page-home .learning-tile h3{font-size:1rem!important;color:var(--atea)!important}
.page-home .learning-tile p{font-size:.8rem!important;line-height:1.4!important;margin:.3rem 0 .75rem!important;flex:1}
.page-home .learning-tile .explore{width:100%;margin-top:auto;padding:.52rem .55rem!important;border-radius:10px!important;color:#fff!important;background:var(--kowhai)!important;border:0!important;font-size:.75rem!important}

/* Homepage feature row */
.home-feature-row{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(260px,.75fr);gap:1rem;margin:1.45rem 0 2rem}
.home-feature-row .home-word-card{margin:0!important;min-height:250px!important;position:relative;overflow:hidden;background:linear-gradient(120deg,color-mix(in srgb,var(--irirangi) 92%,#183f2a),color-mix(in srgb,var(--harakeke) 72%,#0b2417))!important;border-color:rgba(255,255,255,.13)!important;color:#fff!important;padding:1.65rem!important}
.home-feature-row .home-word-card::after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 80% 14%,rgba(255,255,255,.13),transparent 22%),linear-gradient(135deg,transparent 55%,rgba(255,255,255,.04));pointer-events:none}
.home-feature-row .home-word-card .label,.home-feature-row .home-word-card .word,.home-feature-row .home-word-card .meaning,.home-feature-row .home-word-card .pron,.home-feature-row .home-word-card .example,.home-feature-row .home-word-card .example *{color:#fff!important;position:relative;z-index:1}
.home-feature-row .home-word-card .label{background:transparent!important;padding:0!important;text-transform:none;font-family:'Source Serif 4',Georgia,serif;font-size:1rem!important}
.home-feature-row .home-word-card .word{font-family:'Playfair Display',Georgia,serif;font-size:clamp(2rem,4vw,3.25rem)!important;margin:.35rem 0}
.home-feature-row .home-word-card .meaning{font-size:1.1rem!important;font-weight:800}
.home-feature-row .home-word-card .pron{opacity:.86;margin:.2rem 0 .8rem}
.home-feature-row .home-word-card .example{display:inline-block;background:rgba(0,0,0,.23);border:1px solid rgba(255,255,255,.12);border-radius:12px;padding:.75rem .85rem}
.home-feature-row .home-word-card .actions{position:relative;z-index:2;align-self:end}
.home-feature-row .home-word-card .actions .btn{background:rgba(255,255,255,.1)!important;border:1px solid rgba(255,255,255,.25)!important;color:#fff!important}
.home-te-reo-time-card{display:flex;flex-direction:column;justify-content:center;min-height:250px;padding:1.5rem;border-radius:18px;background:linear-gradient(145deg,#062f42,#041e2a)!important;color:#fff;border:1px solid rgba(255,255,255,.11);box-shadow:0 12px 34px var(--shadow)}
.home-te-reo-time-icon{font-size:2.3rem;color:#ffbd27;line-height:1;margin-bottom:.65rem}
.home-te-reo-time-kicker{margin:0 0 .2rem!important;color:#fff!important;font-weight:900!important}
.home-te-reo-time-card h2{font-family:'Playfair Display',Georgia,serif;font-size:1.6rem!important;line-height:1.1;color:#fff!important;margin:.25rem 0 .6rem}
.home-te-reo-time-card p{color:rgba(255,255,255,.78)!important;line-height:1.45}
.home-te-reo-time-actions{display:flex;gap:.45rem;flex-wrap:wrap;margin-top:1rem}
.home-te-reo-time-actions a{flex:1;min-width:95px;text-align:center;text-decoration:none;background:#0c7d56;color:#fff;padding:.62rem .7rem;border-radius:10px;font-size:.78rem;font-weight:900;border:1px solid rgba(255,255,255,.18)}

/* General page polish */
body:not(.page-home) main>header:first-child{max-width:1180px;margin:0 auto;padding-top:2.3rem!important;padding-bottom:1.1rem!important;text-align:left!important}
body:not(.page-home) main>header:first-child .ornament{font-size:.72rem;letter-spacing:.18em;color:var(--koura)}
body:not(.page-home) main>header:first-child h1{letter-spacing:-.03em!important}

/* Mobile navigation drawer */
.mobile-nav-backdrop{position:fixed;inset:0;z-index:3100;background:rgba(2,12,18,.48);opacity:0;pointer-events:none;transition:opacity .22s ease;backdrop-filter:blur(3px)}
.mobile-nav-drawer{position:fixed;z-index:3200;right:0;top:0;width:min(88vw,360px);height:100dvh;transform:translateX(102%);transition:transform .26s cubic-bezier(.2,.8,.2,1);background:linear-gradient(155deg,var(--mobile-nav-bg),var(--mobile-nav-bg-2));color:var(--mobile-nav-text);box-shadow:-24px 0 80px rgba(0,0,0,.35);padding:max(1rem,env(safe-area-inset-top)) 1rem calc(1rem + var(--mobile-safe));overflow:auto}
.mobile-nav-backdrop.open{opacity:1;pointer-events:auto}
.mobile-nav-drawer.open{transform:translateX(0)}
body.mobile-nav-open{overflow:hidden}
.mobile-nav-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.35rem .2rem 1rem;border-bottom:1px solid rgba(255,255,255,.14)}
.mobile-nav-brand{display:flex;align-items:center;gap:.65rem;font-family:'Playfair Display',Georgia,serif;font-size:1.25rem;font-weight:900;color:#fff;text-decoration:none}
.mobile-nav-mark{display:grid;place-items:center;width:35px;height:35px;border-radius:50%;background:rgba(255,255,255,.08);color:#a4e1ec;font-size:1.2rem}
.mobile-nav-close{display:grid;place-items:center;width:42px;height:42px;border:0!important;background:transparent!important;color:#fff!important;font-size:1.55rem!important}
.mobile-nav-links{display:grid;gap:.25rem;padding:1rem 0}
.mobile-nav-links a,.mobile-nav-action{display:flex;align-items:center;gap:.8rem;min-height:48px;padding:.68rem .75rem;border:0!important;border-radius:11px!important;background:transparent!important;color:#fff!important;text-decoration:none;font-size:.98rem;font-weight:780;text-align:left;width:100%}
.mobile-nav-links a.active,.mobile-nav-links a:hover,.mobile-nav-action:hover{background:#0c5771!important}
.mobile-nav-icon{display:grid;place-items:center;width:25px;flex:0 0 25px;color:#d6f3f7;font-size:1.05rem}
.mobile-nav-extras{padding-top:.8rem;border-top:1px solid rgba(255,255,255,.14)}
.mobile-nav-extras .mobile-nav-action:first-child .mobile-nav-icon{color:#ffc52c}
.mobile-nav-footer{display:flex;gap:1rem;justify-content:center;margin-top:1rem;padding:1rem 0;border-top:1px solid rgba(255,255,255,.12)}
.mobile-nav-footer a{color:rgba(255,255,255,.74);font-size:.75rem;text-decoration:none}

/* Theme picker becomes a phone-friendly sheet */
@media(max-width:760px){
  .site-theme-overlay{align-items:flex-end!important;padding:0!important}
  .site-theme-panel{width:100%!important;max-height:88dvh!important;border-radius:22px 22px 0 0!important;padding:1rem 1rem calc(1rem + var(--mobile-safe))!important}
  .site-theme-grid{grid-template-columns:1fr 1fr!important;gap:.55rem!important}
  .site-theme-card{min-height:64px!important;padding:.65rem!important}
  .site-theme-desc{font-size:.72rem!important}
}

/* Mobile layout, designed around 390px */
@media(max-width:900px){
  .site-nav-inner{min-height:62px!important;padding:.55rem .8rem!important;align-items:center!important;flex-wrap:nowrap!important}
  .site-links{display:none!important}
  .te-reo-time-wrap{display:none!important}
  .site-theme-toggle{margin-left:auto!important;width:42px!important;height:42px!important;display:grid!important;place-items:center!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
  .site-theme-toggle .site-theme-dot{width:22px!important;height:22px!important;background:radial-gradient(circle at 50% 50%,#ffc928 0 22%,transparent 24%),conic-gradient(from 0deg,#ffc928 0 7%,transparent 7% 12%,#ffc928 12% 19%,transparent 19% 25%,#ffc928 25% 32%,transparent 32% 38%,#ffc928 38% 45%,transparent 45% 51%,#ffc928 51% 58%,transparent 58% 64%,#ffc928 64% 71%,transparent 71% 77%,#ffc928 77% 84%,transparent 84% 90%,#ffc928 90% 97%,transparent 97%)!important;border-radius:50%}
  .site-theme-toggle [data-site-theme-name],.site-theme-toggle [aria-hidden="true"]{display:none!important}
  .site-mobile-actions{display:flex;align-items:center;gap:.25rem}
  .site-mobile-menu{display:grid;place-items:center;width:42px;height:42px;border:0!important;border-radius:10px!important;background:transparent!important;color:var(--atea)!important;font-size:1.45rem!important;padding:0!important;box-shadow:none!important}
  .mobile-nav-backdrop,.mobile-nav-drawer{display:block}

  .page-home main.container{width:100%!important;padding:0 0 1.5rem!important}
  .home-intro-hero{margin:0 0 1.25rem!important;border-radius:0!important;border-left:0!important;border-right:0!important;min-height:355px!important}
  .home-intro-content{width:100%!important;padding:3.2rem 1rem 1rem!important}
  .home-intro-eyebrow{display:none}
  .home-intro-hero h1{font-size:clamp(2.7rem,13vw,4rem)!important;max-width:290px}
  .home-intro-hero h1 span{display:block}
  .home-intro-tagline{font-size:.94rem!important;margin:.55rem 0 .35rem!important}
  .home-intro-copy{font-size:.8rem!important;line-height:1.4!important;max-width:310px;margin-bottom:.8rem!important}
  .home-search-box-hero{min-height:48px!important;border-radius:12px!important;padding:.08rem .5rem .08rem .7rem!important}
  .home-search-box-hero #homeSearchInput{font-size:.84rem!important;padding:.65rem .15rem!important}
  .home-search-chips{gap:.35rem;margin-top:.55rem}
  .home-search-chips button{font-size:.67rem!important;padding:.23rem .5rem!important}
  .home-hero-landscape .sun{width:76px;height:76px;right:8%;top:10%}
  .home-hero-landscape .mountain-a{width:82%;height:58%;right:-10%;bottom:22%}
  .home-hero-landscape .mountain-b{width:55%;right:37%;height:37%;bottom:24%}

  .page-home main.container>section:not(.home-intro-hero),.page-home main.container>.home-feature-row{margin-left:.8rem!important;margin-right:.8rem!important}
  .page-home #start-title,.page-home #cat-title,.page-home .section-head h2{font-size:1.42rem!important;margin-bottom:.15rem!important}
  .page-home .tile-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:.55rem!important}
  .page-home .learning-tile{min-height:112px!important;padding:.75rem .55rem!important;border-radius:12px!important;justify-content:center}
  .page-home .learning-tile .icon{width:34px;height:34px;font-size:1.2rem!important;margin:0 auto .35rem}
  .page-home .learning-tile h3{font-size:.78rem!important;margin:.1rem 0!important}
  .page-home .learning-tile p,.page-home .learning-tile .explore{display:none!important}

  .home-feature-row{grid-template-columns:1fr!important;gap:.65rem!important}
  .home-feature-row .home-word-card{min-height:285px!important;padding:1.1rem!important;border-radius:14px!important}
  .home-feature-row .home-word-card .word{font-size:2.45rem!important}
  .home-feature-row .home-word-card .actions{display:grid!important;grid-template-columns:1fr 1fr!important;width:100%;gap:.45rem!important;margin-top:.8rem!important}
  .home-feature-row .home-word-card .actions .btn{min-width:0!important;width:100%!important;font-size:.78rem!important;padding:.65rem .4rem!important}
  .home-te-reo-time-card{min-height:150px!important;padding:1rem!important;border-radius:14px!important;display:grid!important;grid-template-columns:auto 1fr;gap:.2rem .75rem;align-items:start}
  .home-te-reo-time-icon{grid-row:1/3;font-size:1.7rem;margin:.1rem 0}
  .home-te-reo-time-kicker{font-size:.85rem!important}
  .home-te-reo-time-card h2{font-size:1.05rem!important;margin:.1rem 0 .35rem!important}
  .home-te-reo-time-card p{font-size:.76rem!important;margin:0!important}
  .home-te-reo-time-actions{grid-column:1/-1;margin-top:.55rem!important}
  .home-te-reo-time-actions a{padding:.5rem!important}

  .page-home .category-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:.55rem!important}
  .page-home .category-grid .tile{min-height:105px!important;padding:.72rem!important}
  .page-home .category-grid .tile .icon{font-size:1.35rem!important}
  .page-home .category-grid .tile h3{font-size:.85rem!important}
  .page-home .category-grid .tile p{font-size:.72rem!important}
  .page-home .dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:.55rem!important}
  .page-home .dash-card{min-height:135px!important;padding:.8rem!important}
  .page-home .dash-card h3{font-size:.9rem!important}
  .page-home .dash-card p{font-size:.72rem!important}
  .info-grid{grid-template-columns:1fr!important;margin:1rem .8rem!important;width:auto!important}
  .footer-inner{grid-template-columns:1fr 1fr!important;gap:1rem!important;padding:1.25rem 1rem!important}

  /* Categories page */
  body:not(.page-home) .shell,body:not(.page-home) .container{width:min(100% - 1.2rem,1180px)!important}
  body:not(.page-home) main>header:first-child{text-align:left!important;padding-top:1.25rem!important}
  body:not(.page-home) main>header:first-child h1{font-size:clamp(2rem,9vw,3.1rem)!important}
  body:not(.page-home) main>header:first-child .rule{margin-left:0!important}
  body:not(.page-home) .grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:.6rem!important}
  body:not(.page-home) .grid .tile{min-height:125px!important;padding:.8rem!important}

  /* Flash cards */
  .flash-shell{grid-template-columns:1fr!important;gap:.8rem!important}
  .flash-shell aside.panel{order:2!important}
  .flash-shell .study-area{order:1!important}
  .flashcard{min-height:360px!important;border-radius:18px!important}
  .prompt-word{font-size:clamp(2.4rem,13vw,4rem)!important}
  .card-nav{display:grid!important;grid-template-columns:1fr 1fr 1fr!important;gap:.4rem!important}
  .card-nav .btn{font-size:.75rem!important;padding:.65rem .3rem!important}
  .grade-row{display:grid!important;grid-template-columns:1fr 1fr!important;gap:.55rem!important}
  .grade-row .btn{min-height:58px!important}

  /* Sentence builder */
  .builder-grid,.builder-layout,.sentence-builder-grid{grid-template-columns:1fr!important}
  .token-bank,.word-bank{gap:.45rem!important}
  .token,.word-token,.word-chip{min-height:44px!important;padding:.62rem .75rem!important}

  /* Ngā Wāhi */
  .map-layout,.map-shell,.map-content-grid{grid-template-columns:1fr!important}
  .map-sidebar{order:2!important}
  .map-stage,.map-panel,.map-container{min-height:390px!important}
}

@media(max-width:480px){
  .site-brand{font-size:1.17rem!important}
  .site-nav-inner{padding-left:.65rem!important;padding-right:.55rem!important}
  .site-theme-grid{grid-template-columns:1fr!important}
  .page-home .dashboard-grid{grid-template-columns:1fr 1fr!important}
  .footer-inner{grid-template-columns:1fr!important}
}
