/* Homepage and navigation: one responsive layout, with original copy preserved. */
header{height:auto;min-height:82px;display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:12px max(24px,calc((100vw - 1160px)/2));background:#fffdf9;border-bottom:1px solid #e9e2d8}
header .brand{margin-right:auto;flex-shrink:0}header .anandaya-logo{width:160px;height:52px;background-size:440px 440px;background-position:-100px -13px}header nav{display:flex;order:0;width:auto;margin:0;padding:0;border:0;gap:6px;align-items:center}header nav a,header .faq-launch,header>.quiet,header #language{min-height:44px;padding:12px 14px;border-radius:10px;font:600 14px Arial,sans-serif;white-space:nowrap}header nav a[aria-current=page]{background:#fff0df;color:#8b3c10}header .faq-launch{background:#192d49;color:white;border:1px solid #192d49}header .space-nav{background:#feea9e;border-color:#f4df9c;margin-left:0}header .account-nav{background:#fffdf9}header .dte-brand-logo{display:none}
.learning-hero{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);column-gap:36px;row-gap:18px;align-items:center;max-width:none;width:100%;height:auto;min-height:0;padding:44px max(24px,calc((100vw - 1160px)/2)) 38px;background:#fff9ef;text-align:left;overflow:hidden}
.learning-hero::before{content:'';position:absolute;inset:0;z-index:-1;background:url('assets/images/homepage-phonics-frame.png') center/cover no-repeat;opacity:.55;filter:none;pointer-events:none}.learning-hero::after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#fff9ef90,#fff9efde 23%,#fff9efb0 65%,transparent);pointer-events:none}
.learning-hero>.hero-decoration{display:none}.learning-hero>h1{grid-column:1;grid-row:1;max-width:620px;margin:0;padding:0;font-family:'Anandaya',Arial,sans-serif;font-size:clamp(34px,3.8vw,52px);line-height:1.13;letter-spacing:-.7px;color:#192d49;align-self:end}
.learning-hero .approved-description{grid-column:1;grid-row:2;position:relative;z-index:1;max-width:590px;margin:0;font:16px/1.75 Arial,sans-serif;color:#40536b;align-self:start}
.learning-hero .hero-actions{grid-column:1;grid-row:3;display:flex;flex-wrap:wrap;gap:12px;justify-content:flex-start;margin:0;align-self:start}.learning-hero .hero-actions .primary,.learning-hero .hero-actions .secondary{min-height:48px;border-radius:10px;padding:13px 18px;font:600 14px/1.4 Arial,sans-serif;box-shadow:none;gap:8px}.learning-hero .hero-actions .primary{background:#192d49;color:white;border:1px solid #192d49}.learning-hero .hero-actions .secondary{background:#fffdf9;color:#192d49;border:1px solid #c5cdd5}
.learning-hero .path-scene{grid-column:2;grid-row:1 / 4;position:relative;width:100%;max-width:520px;min-height:0;height:auto;aspect-ratio:auto;margin:0;align-self:center;justify-self:end;overflow:visible}.learning-hero .learning-curve{position:static;display:block;width:100%;max-width:100%;height:auto;aspect-ratio:auto;object-fit:contain;transform:none}.learning-hero .path-label,.learning-hero .path-mascot{display:none}
.home-content{width:100%;max-width:1208px;margin:auto;padding:30px 24px 44px;background:#fffcf7}.home-content .dte-intro:empty{display:none}.home-content .home-collections{margin:0}.home-content .home-collections>h2{font-family:'Anandaya',Arial,sans-serif;font-size:30px;line-height:1.25;letter-spacing:-.4px;margin:0 0 20px;color:#192d49}.home-content .collection-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.home-content .collection-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;min-width:0;min-height:235px;padding:26px;gap:16px;border:1px solid #e9d9c7;border-radius:20px;background:#fff4e6;box-shadow:0 4px 14px #192d4905;overflow:hidden;isolation:isolate;transition:border-color .18s,box-shadow .18s}.home-content .collection-card h2{font-family:'Anandaya',Arial,sans-serif;font-size:28px;line-height:1.2;margin:0 0 9px;letter-spacing:-.4px}.home-content .collection-card p{font:16px/1.6 Arial,sans-serif;margin:0;color:#40536b}.home-content .collection-symbol{width:54px;height:54px;border-radius:15px;font:600 25px Arial,sans-serif;display:grid;place-items:center;background:#fdc09d}.home-content .collection-action{margin-top:auto;padding:0;border:0;font:600 15px/1.5 Arial,sans-serif;color:#91400e}.home-content .rtl-card{background:#f5f8fc;border-color:#dde4ed}.home-content .rtl-card .collection-symbol{background:#e0e8f5}.home-content .rtl-card>div{max-width:72%}.home-content .rtl-card::before{background-position:right bottom;background-size:auto 90%;opacity:.65}.home-content .rtl-card::after{background:linear-gradient(90deg,#f5f8fc 0%,#f5f8fcf5 53%,#f5f8fc60 80%,transparent)}.home-content .rtl-card .collection-action{color:#506481}.home-content .collection-card:hover{transform:none;border-color:#587bae;box-shadow:0 6px 18px #192d4910}
header a:focus-visible,header button:focus-visible,.home-content a:focus-visible,.hero-actions a:focus-visible,.hero-actions button:focus-visible{outline:3px solid #587bae;outline-offset:4px}.faq-panel{top:94px;max-height:calc(100dvh - 110px);overflow:auto}
@media(max-width:1000px){header{gap:8px;padding:12px 24px}header nav{order:2;width:100%;justify-content:flex-start;border-top:1px solid #e9e2d8;padding-top:10px}header .space-nav{margin-left:0}.learning-hero{column-gap:24px;padding-top:32px;padding-bottom:30px}.learning-hero>h1{font-size:38px}.faq-panel{top:150px;max-height:calc(100dvh - 166px)}}
@media(max-width:767px){header{padding:10px 18px;gap:8px}header .anandaya-logo{width:132px;height:46px;background-size:370px 370px;background-position:-84px -11px}header .account-nav,header #language{font-size:12px;padding:10px;min-height:44px}header .space-nav{order:3;flex:1;text-align:center;font-size:13px}header nav{display:flex;order:3;flex:3;width:auto;min-width:0;gap:4px;border:0;margin:0;padding:0;justify-content:space-between}header nav>a,header nav #bot-slot{flex:1;min-width:0;text-align:center}header nav a,header .faq-launch{display:flex;align-items:center;justify-content:center;width:100%;padding:10px 7px;font-size:13px}header .faq-launch span{display:none}.learning-hero{display:flex;flex-direction:column;align-items:stretch;gap:16px;padding:28px 20px 18px}.learning-hero>h1{font-size:clamp(32px,7vw,42px);max-width:550px;align-self:auto}.learning-hero .approved-description{font-size:15px;line-height:1.7;max-width:none;align-self:auto}.learning-hero .hero-actions{gap:10px;align-self:stretch}.learning-hero .hero-actions>*{flex:1}.learning-hero .path-scene{align-self:center;width:min(100%,340px);max-width:340px;margin:-6px 0 -8px;justify-self:auto}.learning-hero::before{background-size:auto 100%;opacity:.25}.learning-hero::after{background:#fff9ef70}.home-content{padding:24px 20px 32px}.home-content .home-collections>h2{font-size:26px;margin-bottom:16px}.home-content .collection-grid{grid-template-columns:1fr;gap:16px}.home-content .collection-card{min-height:216px;padding:22px;gap:14px}.home-content .collection-card h2{font-size:26px}.home-content .collection-card p{font-size:15px}.faq-panel{top:132px;right:12px;width:calc(100% - 24px);max-height:calc(100dvh - 148px)}}
@media(max-width:420px){.learning-hero .hero-actions{display:grid;grid-template-columns:1fr}.learning-hero .path-scene{width:230px;max-width:100%}header .space-nav{padding:10px 7px}.home-content .rtl-card>div{max-width:85%}}
@media(prefers-reduced-motion:reduce){.home-content .collection-card{transition:none}}

.campaign-ribbon {
  margin: 0 0 24px;
  padding: 12px 18px;
  border: 1px solid #efc7a5;
  border-radius: 12px;
  background: #fff0df;
}
.campaign-ribbon a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
  color: #192d49;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* DigiLearning handoff */
.handoff-intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(20px,4vw,56px);align-items:center;padding-block:clamp(28px,6vw,72px)}
.handoff-intro h1{margin:0 0 12px}
.handoff-intro p{max-width:65ch;margin:0;line-height:1.65}
.handoff-intro img{display:block;width:100%;max-height:350px;object-fit:contain}
.handoff-programs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding-bottom:40px}
.handoff-programs .collection-card{min-height:125px;padding:20px;justify-content:center}
.handoff-programs h2{margin:0;font-size:clamp(19px,2.1vw,28px)}
.marathon-card{background:#fff0df}
.programme-control{position:relative}
header :is(#programme-toggle,#books-toggle){border:1px solid transparent;background:transparent;color:#192d49;min-height:44px;padding:8px 10px;border-radius:8px;font:inherit;cursor:pointer}
:is(#programme-menu,#books-menu){position:absolute;top:calc(100% + 4px);left:0;z-index:20;min-width:220px;max-width:calc(100vw - 28px);padding:6px;border:1px solid #e4d3c6;border-radius:10px;background:#fffaf5}
header :is(#programme-menu,#books-menu) a{display:block;text-align:left;white-space:normal}
header #language-menu [aria-pressed="true"]{background:#fff0df;color:#192d49}
header nav a,header .books-nav,header .space-nav,header .account-nav,header #language{font-family:Anandaya,Arial,sans-serif}
.handoff-chat.faq-launch{position:fixed;right:max(14px,env(safe-area-inset-right));bottom:max(14px,env(safe-area-inset-bottom));z-index:30;display:flex;align-items:center;gap:9px;min-height:44px;padding:8px 13px;background:#192d49;color:#fff;border:1px solid #192d49;border-radius:10px;cursor:pointer}
.chat-bubble{position:relative;display:block;width:15px;height:11px;border:1.5px solid currentColor;border-radius:4px}
.chat-bubble:after{content:'';position:absolute;bottom:-4px;left:2px;border-width:3px 3px 0 0;border-style:solid;border-color:currentColor transparent transparent transparent}
.faq-panel.handoff-chat-panel{position:fixed;top:auto;right:14px;bottom:68px;z-index:31;width:min(360px,calc(100vw - 28px));max-height:calc(100dvh - 86px);overflow:auto}
.handoff-chat-panel[hidden],:is(#programme-menu,#books-menu)[hidden]{display:none}
body{padding-bottom:60px}
.handoff-programs a:focus-visible,.shelf-layout :focus-visible,.handoff-chat:focus-visible,.handoff-chat-panel :focus-visible{outline:3px solid #587bae;outline-offset:2px}
@media(max-width:767px){
  .handoff-intro{grid-template-columns:1fr}
  .handoff-intro img{max-height:235px}
  .handoff-programs{grid-template-columns:1fr;gap:10px}
  .handoff-programs .collection-card{min-height:70px}
  header nav{flex:1 0 100%;justify-content:flex-start}
  header nav>a{width:auto;flex:0 0 auto}
  header .space-nav{order:0;flex:0 0 auto;margin:0}
  header :is(#programme-toggle,#books-toggle),header nav>a{font-size:13px}
}

/* Watercolour programme and catalogue pages */
body{background:#fff9f0}
.home-dte{
  background:#fff3e2;
  border-bottom:1px solid #f1e2cf;
}
.home-dte-inner{min-height:340px;padding-block:clamp(38px,6vw,84px)}
.home-dte h1{max-width:12ch;font-size:clamp(36px,5.3vw,70px);line-height:1.05;color:#192d49}
.home-dte .actions{gap:12px;margin-top:24px;align-items:center}
.home-about{background:#fff;border-bottom:1px solid #f1e2cf;scroll-margin-top:110px}
.home-about-copy{padding-block:clamp(28px,5vw,58px);max-width:760px}
.home-about-copy h2{margin:0 0 10px;font-size:clamp(25px,3vw,35px)}
.home-about-copy p{line-height:1.65;margin:0;color:#3a4450}
.home-destinations{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding-bottom:44px}
.home-destination{
  display:flex;justify-content:space-between;align-items:end;gap:14px;min-height:150px;
  padding:24px;border-radius:22px;background-color:#fff1df;background-position:center;background-size:cover;color:#192d49;
}
.home-destination h2{margin:0;font-size:clamp(22px,2.7vw,32px)}
.books-destination{background-image:url("assets/images/read-to-learn-bg.png")}
.marathon-destination{background-image:url("assets/images/homepage-phonics-frame.png")}
.home-destination:hover h2,.book-category:hover h2{text-decoration:underline;text-underline-offset:.2em}
header nav>a,header :is(#programme-toggle,#books-toggle),header #language,header>.quiet{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  border:1px solid transparent;border-radius:999px;background:transparent;color:#192d49;box-shadow:none;
}
header nav>a[aria-current],header :is(#programme-toggle,#books-toggle).active,header nav>a:hover,header :is(#programme-toggle,#books-toggle):hover,header #language:hover,header>.quiet:hover{
  background:#ffead4;color:#683310;
}
header .space-nav{background:#f8ecd7}
.nav-chevron{
  display:inline-block;box-sizing:border-box;width:7px;height:7px;margin:0 2px 4px 1px;
  border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);
}
[aria-expanded="true"]>.nav-chevron{transform:rotate(225deg);margin-bottom:0}
header :is(#programme-menu,#books-menu){border-radius:16px}
header :is(#programme-menu,#books-menu) a{border-radius:10px}
.home-dte .primary,.home-dte .secondary,.page-title .primary,.handoff-chat.faq-launch{
  min-height:44px;padding:10px 18px;border-radius:999px;box-shadow:none;
}
.home-dte .primary,.page-title .primary,.handoff-chat.faq-launch{background:#203956;border-color:#203956;color:#fff}
.home-dte .secondary{background:#fff9ef;border-color:#dccbb6;color:#23364b}
.home-dte .primary:hover,.page-title .primary:hover,.handoff-chat.faq-launch:hover{background:#304e70}
.home-dte .secondary:hover{background:#ffecd6}
.home-destination:focus-visible,.book-category:focus-visible,.book-card:focus-visible{outline:3px solid #587bae;outline-offset:3px}
@media(max-width:767px){
  .home-dte-inner{min-height:0}
  .home-dte h1{max-width:none}
  .home-dte-inner img{width:min(100%,470px);justify-self:center}
  .home-destinations{grid-template-columns:1fr;gap:12px}
  .home-destination{min-height:108px;padding:18px}
  .digilearning-header nav{
    position:relative;
    order:0;
    flex-wrap:wrap;
  }
  .digilearning-header .programme-control,
  .digilearning-header .language-control{position:static}
  .digilearning-header :is(#programme-menu,#books-menu){
    left:0;
    right:auto;
    width:min(100%, 300px);
    min-width:0;
  }
  .digilearning-header #language-menu{
    top:calc(100% + 4px);
    right:18px;
    width:min(265px, calc(100% - 36px));
  }
}

