/*
Theme Name: fdm
Description: Foundations for Divergent Minds. Templates in PHP, styling in CSS, no page builder.
Version: 1.0
Text Domain: fdm
*/

/* ============================================================
   TOKENS
   ============================================================ */
:root{
  /* logo palette — section colours */
  --safety:#cc0000;
  --edu:#cc8600;
  --gold:#b8a900;
  --health:#1dcc00;
  --blue:#00a3cc;
  --purple:#8036b8;
  --navy:#0e3c54;

  /* framework palette — the six domains */
  --d-sensory:#fe0000;
  --d-exec:#ffa800;
  --d-motor:#efdc00;
  --d-comm:#18ff01;
  --d-social:#00aeff;
  --d-emo:#a700fe;

  /* surfaces */
  --ink:#000;
  --muted:#3a3a3a;
  --sidebar:#f4f2ef;
  --line:#eae7e2;
  --navline:#dcd8d2;

  /* generic pages default; body class overrides below */
  --section:var(--blue);

  --display:"PT Sans",-apple-system,"Helvetica Neue",Arial,sans-serif;
  --heading:"Open Sans",-apple-system,"Helvetica Neue",Arial,sans-serif;

  --gutter:clamp(1.25rem,4vw,2.5rem);
  --measure:66ch;
}

/* section colourways — one line each */
.section-learning  { --section:var(--edu); }
.section-work      { --section:var(--purple); }
.section-services  { --section:var(--gold); }
.section-framework { --section:var(--navy); }
.section-general   { --section:var(--blue); }
/* inside an initiative, Our Work takes the area colour */
.area-education    { --section:var(--edu); }
.area-health       { --section:var(--health); }
.area-safety       { --section:var(--safety); }

/* ============================================================
   RESET + BASE
   ============================================================ */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;background:#fff;color:var(--ink);
  font:var(--base,16px)/1.65 var(--display);
  -webkit-font-smoothing:antialiased;
}

/* top bar slots */
.utility .slot{display:flex;align-items:center;gap:1rem}
.utility .slot-right{margin-left:auto}
.utility .widget{margin:0}
.acct-link{display:inline-flex;align-items:center;color:#fff}
.acct-link svg{width:18px;height:18px;display:block}
img{max-width:100%;height:auto;display:block}
a{color:var(--ink)}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{
  outline:3px solid var(--navy);outline-offset:2px;
}
.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}
.skip-link{
  position:absolute;left:-9999px;top:0;z-index:100;
  background:var(--navy);color:#fff;padding:12px 18px;
  font-family:var(--heading);font-weight:700;
}
.skip-link:focus{left:0}

/* ============================================================
   TYPE
   ============================================================ */
h1,h2,h3,h4{margin:0;color:var(--navy)}
h1{font-family:var(--display);font-size:clamp(2rem,4.4vw,2.75rem);line-height:1.15;font-weight:700}
h2{font-family:var(--heading);font-size:clamp(1.25rem,2.4vw,1.45rem);font-weight:700}
h3{font-family:var(--heading);font-size:1.0625rem;font-weight:700}
p{margin:0 0 1rem;max-width:var(--measure)}
ul,ol{max-width:var(--measure)}

/* the section rule under a heading */
.rule::after{
  content:"";display:block;width:64px;height:5px;
  background:var(--section);margin-top:.75rem;
}
h2.rule::after{width:56px;margin-top:.625rem}
h3.rule::after{width:44px;height:4px;margin-top:.5rem}

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap{max-width:1280px;margin:0 auto;padding-inline:var(--gutter)}

/* The side panel sits flush with the right edge of the window and runs the
   full height of the page. Main content lines up with the header's wrap. */
.layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 280px;
  align-items:stretch;
}
.layout.no-aside{grid-template-columns:minmax(0,1fr);max-width:1280px;margin:0 auto}
main{padding:2.75rem var(--gutter) 5rem;min-width:0}
.layout:not(.no-aside) > main{
  padding-left:max(var(--gutter), calc((100vw - 1280px) / 2 + var(--gutter)));
  max-width:calc(1280px + (100vw - 1280px) / 2 - 280px);
}

/* interior page: narrow metadata column + wide content */
.cols{
  display:grid;grid-template-columns:290px minmax(0,1fr);
  gap:2.5rem;margin-top:2.125rem;align-items:start;
}
.cols.single{grid-template-columns:minmax(0,1fr)}
.page-body{min-width:0}

/* left column */
.page-aside{min-width:0;font-size:.9375rem}
.page-aside .widget{margin-bottom:2rem}
.page-aside .widget:last-child{margin-bottom:0}
.page-aside .widget-title,
.page-aside .region h2{
  font-family:var(--heading);font-size:.9375rem;font-weight:700;
  margin:0 0 .875rem;color:var(--navy);
}
.page-aside .widget-title::after,
.page-aside .region h2::after{
  content:"";display:block;width:44px;height:4px;
  background:var(--section);margin-top:.5rem;
}
.page-aside .region{margin-bottom:2rem}
.page-aside ul{list-style:none;margin:0;padding:0;max-width:none}
.page-aside li + li{margin-top:2px}
.page-aside li a{
  display:block;padding:.5rem .5rem .5rem 0;text-decoration:none;color:var(--ink);line-height:1.4;
}
.page-aside li a:hover,.page-aside li a:focus-visible{text-decoration:underline;text-underline-offset:3px}
.page-aside p{margin:0 0 .625rem;line-height:1.55;max-width:none}

.page-aside li a.ext::after{content:" \2197";font-size:.85em;color:#5a5450}
.page-aside li .note{
  display:block;font-size:.8125rem;color:#5a5450;line-height:1.45;
  padding:0 0 .375rem;
}
.page-aside .facts li{display:flex;justify-content:space-between;gap:1rem;padding:.375rem 0}
.page-aside .facts li + li{margin-top:0;border-top:1px solid var(--line)}
.page-aside .facts span{
  font-family:var(--heading);font-size:.75rem;letter-spacing:.05em;
  text-transform:uppercase;color:#5a5450;
}
.postmeta{font-family:var(--heading);font-size:.9375rem;color:#5a5450;margin:1rem 0 0}

/* ============================================================
   UTILITY BAR  (socials left, account right)
   ============================================================ */
.utility{background:var(--navy);color:#fff}
.utility .wrap{
  display:flex;align-items:center;justify-content:space-between;
  gap:1rem;min-height:2.5rem;padding-block:0;
}
.utility a{color:#fff;text-decoration:none;display:inline-flex;align-items:center}
.socials{display:flex;gap:.85rem;align-items:center}
.socials a{opacity:.9}
.socials a:hover,.socials a:focus-visible{opacity:1}
.socials svg{width:19px;height:19px;display:block}
.account{display:flex;gap:1.1rem;align-items:center;font-family:var(--heading);font-size:.875rem}
.account svg{width:18px;height:18px}
.searchtoggle{
  background:none;border:0;padding:0;cursor:pointer;color:#fff;
  display:inline-flex;align-items:center;
}
.searchtoggle[aria-expanded="true"]{opacity:.7}

.sitesearch{display:flex;align-items:center;gap:.375rem}
.sitesearch[hidden]{display:none}
.sitesearch input{
  width:clamp(8rem,20vw,15rem);font:inherit;font-size:.8125rem;
  padding:.1875rem .5rem;border:1px solid #2c5568;
  background:#fff;color:var(--ink);line-height:1.4;
}
.sitesearch button{
  display:grid;place-items:center;width:1.5rem;height:1.5rem;
  border:0;background:none;color:#fff;padding:0;cursor:pointer;
}
.sitesearch button svg{width:16px;height:16px;display:block}
.sitesearch button:hover,.sitesearch button:focus-visible{opacity:.7}

/* ============================================================
   BANNER + NAV
   ============================================================ */
.banner{background:#fff}
.banner .wrap{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;padding-block:1.1rem}
.wordmark{
  font-family:var(--heading);font-weight:700;font-size:1.3rem;
  letter-spacing:.14em;text-transform:uppercase;line-height:1.25;
  color:var(--navy);text-decoration:none;
}

.mainnav{border-bottom:5px solid var(--section);background:#fff}
.mainnav ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;max-width:none;width:100%}
.mainnav li{margin:0}
.mainnav .give{margin-left:auto}
.mainnav a{
  display:block;font-family:var(--heading);font-size:1rem;
  padding:1rem 1.25rem;text-decoration:none;background:#fff;
  border-right:1px solid var(--navline);
}
.mainnav li:first-child a{border-left:1px solid var(--navline)}
.mainnav a:hover,.mainnav a:focus-visible{background:var(--sidebar)}
.mainnav .current-menu-item > a{font-weight:700}
.mainnav .give a{background:var(--health);color:#000;font-weight:700;border-right:0}
.mainnav .give a:hover{background:#19b000}

/* mobile bar: house left, hamburger right */
.mbar{display:none;background:var(--sidebar);border-bottom:1px solid var(--navline)}
.mbar button{
  flex:1;display:flex;align-items:center;justify-content:center;
  background:none;border:0;padding:.8rem 1rem;cursor:pointer;color:var(--ink);
}
.mbar button + button{border-left:1px solid var(--navline)}
.mbar svg{width:24px;height:24px}
.mbar .burger{display:grid;gap:4px}
.mbar .burger i{display:block;width:22px;height:2.5px;background:currentColor}
.mbar [aria-expanded="true"]{background:#e6e2dc}
/* phone site menu, opened by the house button */
.sitemenu{background:var(--sidebar);border-bottom:1px solid var(--navline)}
.sitemenu ul{list-style:none;margin:0;padding:.5rem 0}
.sitemenu li{margin:0}
.sitemenu a{display:block;min-height:44px;box-sizing:border-box;padding:.7rem 1.25rem;color:var(--ink);text-decoration:none;font-weight:600}
.sitemenu a:hover,.sitemenu a:focus-visible{background:#e6e2dc}
.sitemenu .current-menu-item>a,.sitemenu .current-menu-ancestor>a{border-left:5px solid var(--section);padding-left:calc(1.25rem - 5px)}

/* home intro: centred and justified; 680px keeps the word gaps even. Phones stay left-aligned. */
body .hero .wrap{max-width:1280px;margin-inline:auto}
@media (min-width:761px){body .hero .hero-text p{max-width:680px;margin-inline:auto;text-align:justify;-webkit-hyphens:manual;hyphens:manual}}

/* Our Work: initiative boxes on the same three columns as "How we work" */
.landing-section .routes{grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem;margin-top:1.5rem}
@media (max-width:960px){.landing-section .routes{grid-template-columns:minmax(0,1fr)}}

/* the parent link above a page title reads as a label, not body text */
.crumb{font-family:var(--heading);font-size:.8125rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;margin:0 0 .625rem}
.crumb a{color:var(--navy);text-decoration:none;border-bottom:2px solid var(--section)}
.crumb a:hover,.crumb a:focus-visible{border-bottom-color:var(--navy)}

/* project Details: one fact per line */
.page-aside .facts{display:block;margin:0}

/* merch tiles that link out */
.tile.item.ext h3::after{content:" \2197";font-size:.85em;color:#4a4a4a}

/* Learning Portal: line under the Courses heading, and the introduction */
body .portal-note{margin:1.5rem 0 1.25rem}
body .portal-intro{max-width:46rem;margin-bottom:2rem}

/* Board: photo beside each person */
.entry .wp-block-media-text.person{margin:0 0 3rem;align-items:start}
.entry .wp-block-media-text.person .wp-block-media-text__content{padding:0 0 0 1.75rem}
.entry .wp-block-media-text.person h2{margin-top:0}
.entry .wp-block-media-text.person p{margin:0 0 .875rem}
@media (max-width:600px){
  .entry .wp-block-media-text.person .wp-block-media-text__content{padding:1rem 0 0}
  .entry .wp-block-media-text.person .wp-block-media-text__media img{max-width:200px}
}

/* ============================================================
   HERO
   ============================================================ */
/* ============================================================
   HERO — CSS split, curved boundary. No image.
   ============================================================ */
.hero{position:relative;background:#fff;overflow:hidden}
.hero .wrap{
  position:relative;z-index:2;max-width:none;
  display:grid;grid-template-columns:1.25fr 1fr;
  align-items:center;min-height:17rem;
}
/* navy panel on the right */
.hero::after{
  content:"";position:absolute;inset:0 0 0 auto;z-index:0;
  width:64%;background:var(--navy);
}
/* white ellipse, exactly hero-height, so its tips meet the panel edge cleanly */
.hero::before{
  content:"";position:absolute;z-index:1;
  top:0;bottom:0;left:28%;width:15.5%;
  background:#fff;border-radius:50%;
}
.hero-text{max-width:52ch;padding-block:1.75rem;padding-right:2rem}
.hero-text p{font-size:1.0625rem;line-height:1.5;margin-bottom:.75rem;max-width:none}
.hero-text p:last-child{margin-bottom:0}

/* ============================================================
   HOME — route blocks
   ============================================================ */
.home-main{padding:3.25rem 0 1rem}
.home-main .wrap{max-width:1280px}
.routes{
  margin-top:1.75rem;display:grid;gap:1.375rem;
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.route{
  display:flex;flex-direction:column;text-decoration:none;color:var(--ink);
  border:1px solid var(--line);background:#fff;
}
.route .swatch{aspect-ratio:3/1;width:100%;display:block;background:var(--swatch,var(--navy))}
.route .label{padding:1.125rem 1.25rem 1.375rem}
.route b{display:block;font-family:var(--heading);font-size:1rem;line-height:1.3;margin-bottom:.5rem}
.route .label > span{display:block;font-size:.9375rem;line-height:1.5;color:#2b2b2b}
.route:hover,.route:focus-visible{background:var(--sidebar)}
.route:hover b,.route:focus-visible b{text-decoration:underline;text-underline-offset:3px}

/* hero with a spotlight image on the right */
.hero.has-image::before{display:none}
.hero.has-image::after{width:52%}
.hero.has-image .wrap{grid-template-columns:1fr 1fr;gap:2.5rem}
.hero-media{position:relative;z-index:2;padding-block:1.5rem}
.hero-media img{width:100%;height:auto;display:block}
@media (max-width:1100px){
  .hero.has-image .wrap{grid-template-columns:minmax(0,1fr)}
  .hero.has-image::after{inset:auto 0 0 0;width:100%;height:6rem}
  .hero-media{padding-block:0 2rem}
}

@media (max-width:1100px){
  .routes{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:560px){
  .routes{grid-template-columns:minmax(0,1fr)}
}

/* ============================================================
   HOME — partner carousel
   ============================================================ */
.partners{margin-top:4rem}
.partners-head{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.carousel-controls{display:flex;gap:.5rem;flex:0 0 auto}
.pause,.step{
  display:grid;place-items:center;width:2.25rem;height:2.25rem;
  background:#fff;border:1px solid var(--navy);color:var(--navy);
  padding:0;cursor:pointer;flex:0 0 auto;
}
.step[hidden]{display:none}
.pause svg,.step svg{width:18px;height:18px;display:block}
.pause:hover,.step:hover{background:var(--navy);color:#fff}

.marquee{margin-top:1.625rem;overflow:hidden;padding:1.25rem 0}
.track{display:flex;gap:.875rem;width:max-content;animation:fdm-roll 44s linear infinite}
.marquee:hover .track,
.marquee:focus-within .track,
.marquee[data-paused="true"] .track{animation-play-state:paused}
@keyframes fdm-roll{from{transform:translateX(0)}to{transform:translateX(-50%)}}
/* Paused: an ordinary scrolling row (swipe, trackpad, shift + wheel, arrow keys). Scrollbar hidden; the arrows show where to go. */
.marquee[data-paused="true"]{overflow-x:auto;scrollbar-width:none;overscroll-behavior-x:contain}
.marquee[data-paused="true"]::-webkit-scrollbar{display:none}
.marquee:focus-visible{outline:3px solid var(--navy);outline-offset:2px}

.partner{
  flex:0 0 auto;display:block;text-decoration:none;color:var(--ink);
  background:#fff;border:1px solid var(--line);border-left:5px solid var(--section);
  padding:.875rem 1.25rem;min-width:14rem;max-width:16rem;
  font-size:.9375rem;line-height:1.35;
}
.partner:hover,.partner:focus-visible{border-left-color:var(--navy)}
.partner em{display:block;font-style:normal;font-size:.8125rem;color:#4a4a4a;margin-top:.3125rem}
.partner.ext strong::after{content:" \2197";font-size:.85em;color:#4a4a4a}
.partner.ext em::after{content:" \00b7 external"}

@media (prefers-reduced-motion:reduce){
  .track{animation:none;flex-wrap:wrap;width:auto}
  .marquee,.marquee[data-paused="true"]{overflow:visible}
  .pause,.step,.step[hidden]{display:none}
}

/* ============================================================
   LEARNING PORTAL
   ============================================================ */
.portal .wrap{max-width:1280px;padding-inline:0}

/* framework in the hero position */
.portal-hero{
  display:grid;grid-template-columns:1.15fr 1fr;gap:2.5rem;
  align-items:center;margin-bottom:3.25rem;
}
.portal-hero-media img{width:100%;height:auto;display:block}
.portal-hero-media .ph{
  aspect-ratio:4/3;background:var(--sidebar);border:1px solid var(--line);
  display:grid;place-items:center;font-family:var(--heading);
  font-size:.75rem;letter-spacing:.1em;text-transform:uppercase;color:#8a8480;
}
.portal-hero-text p{font-size:1.0625rem;line-height:1.6}

/* two-column body */
.portal-split{display:grid;grid-template-columns:320px minmax(0,1fr);gap:2.5rem;align-items:start}
.portal-split.reverse{grid-template-columns:320px minmax(0,1fr)}
.portal-side{min-width:0}
.portal-main{min-width:0}
.portal-side .region{margin-bottom:2.25rem}
.portal-side .region h2{font-size:1rem}

/* resume row */
.resume{display:grid;gap:1.25rem;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));margin-bottom:2.5rem}
.resume-card{
  display:block;text-decoration:none;color:var(--ink);
  border:1px solid var(--line);border-left:5px solid var(--edu);
  padding:1.25rem 1.5rem;background:#fff;
}
.resume-card:hover,.resume-card:focus-visible{background:var(--sidebar)}
.resume-card .cue{
  display:block;font-family:var(--heading);font-size:.75rem;letter-spacing:.08em;
  text-transform:uppercase;color:#5a5450;margin-bottom:.4375rem;
}
.resume-card b{display:block;font-family:var(--heading);font-size:1.125rem;line-height:1.3}

.bar{display:block;height:6px;background:var(--line);margin:.75rem 0 .375rem}
.bar i{display:block;height:100%;background:var(--edu)}
.pct{font-family:var(--heading);font-size:.8125rem;color:#5a5450}

/* Tutor's own course cards, given room to sit in our layout */
.tutor-cards{margin-top:1.5rem}
.tutor-cards .tutor-course-listing,
.tutor-cards .tutor-grid{gap:1.25rem}

/* newest resources */
.reslist{list-style:none;margin:0;padding:0;max-width:none}
.reslist li + li{border-top:1px solid var(--line)}
.reslist a{display:block;padding:.75rem 0;text-decoration:none;color:var(--ink)}
.reslist a:hover b,.reslist a:focus-visible b{text-decoration:underline;text-underline-offset:3px}
.reslist b{display:block;font-family:var(--heading);font-size:.9375rem;line-height:1.35}
.reslist .meta{display:block;font-size:.8125rem;color:#5a5450;margin-top:.25rem}
.reslist .gated{color:var(--purple);font-weight:600}

.mycourses{list-style:none;margin:0;padding:0;max-width:none}
.mycourses li + li{margin-top:1rem}
.mycourses a{display:block;text-decoration:none;color:var(--ink)}
.mycourses b{display:block;font-family:var(--heading);font-size:.9375rem;line-height:1.35}

/* community */
.join{
  margin-top:3.5rem;padding:2rem 2.25rem;
  background:var(--sidebar);border-left:5px solid var(--purple);
}
.join .lede{font-size:1.0625rem;line-height:1.6;max-width:58ch}
.grouplist{
  list-style:none;margin:1.25rem 0;padding:0;max-width:none;
  display:flex;gap:.5rem;flex-wrap:wrap;
}
.grouplist li{
  font-family:var(--heading);font-size:.8125rem;
  background:#fff;border:1px solid var(--navline);border-radius:999px;padding:.3125rem .875rem;
}
.join .terms{font-size:.9375rem;color:#3a3a3a;max-width:58ch}
.join .price{font-family:var(--heading);font-size:.875rem;color:#5a5450;margin-left:.875rem}

.join.compact{margin:0 0 2.25rem;padding:1.5rem}
.join.compact .lede{font-size:.9375rem}
.join.compact .terms{display:none}
.join.compact .price{display:block;margin:.625rem 0 0}

@media (max-width:1000px){
  .portal-hero{grid-template-columns:minmax(0,1fr);gap:1.75rem}
  .portal-split,.portal-split.reverse{grid-template-columns:minmax(0,1fr)}
}

/* ============================================================
   MEMBER PROFILE
   ============================================================ */
.profile-tabs{margin:1.75rem 0 0;border-bottom:1px solid var(--line)}
.profile-tabs ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;max-width:none}
.profile-tabs a{
  display:block;font-family:var(--heading);font-size:.9375rem;
  padding:.875rem 1.25rem;text-decoration:none;color:var(--ink);
  border-bottom:4px solid transparent;margin-bottom:-1px;
}
.profile-tabs a:hover{background:var(--sidebar)}
.profile-tabs .current a{font-weight:700;border-bottom-color:var(--section)}

.profile-body{margin-top:2.25rem;max-width:44rem}

.pf-block{margin-bottom:2.75rem}
.pf-block h2{font-size:1.0625rem;margin-bottom:1rem}
.pf-block .help{font-size:.9375rem;color:#3a3a3a;line-height:1.55}

.profile-form .field{display:block;margin-bottom:1.375rem;max-width:26rem}
.profile-form label,
.profile-form .label-ish{
  display:block;font-family:var(--heading);font-size:.8125rem;font-weight:700;
  letter-spacing:.03em;margin-bottom:.375rem;
}
.profile-form input[type=text],
.profile-form input[type=email],
.profile-form input[type=password]{
  width:100%;font:inherit;font-size:1rem;padding:.5625rem .75rem;
  border:1px solid var(--navline);background:#fff;
}
.profile-form .help{display:block;font-size:.8125rem;color:#5a5450;margin-top:.375rem}
.profile-form .help a{color:var(--navy)}

.grouppicker{list-style:none;margin:1.25rem 0 0;padding:0;max-width:none}
.grouppicker li{border:1px solid var(--line);margin-bottom:.5rem;background:#fff}
.grouppicker label{
  display:flex;gap:.875rem;align-items:flex-start;
  padding:1rem 1.125rem;cursor:pointer;margin:0;font-weight:400;
  font-family:var(--display);font-size:1rem;letter-spacing:0;
}
.grouppicker label:hover{background:var(--sidebar)}
.grouppicker input{margin-top:.25rem;flex:0 0 auto;width:1.125rem;height:1.125rem}
.grouppicker b{display:block;font-family:var(--heading);font-size:.9375rem;line-height:1.3}
.grouppicker .desc{display:block;font-size:.875rem;color:#3a3a3a;line-height:1.5;margin-top:.25rem}

.pf-actions{display:flex;gap:1.25rem;align-items:center;flex-wrap:wrap;margin-top:1.25rem}
.pf-actions .quiet{font-family:var(--heading);font-size:.875rem;color:#5a5450}

.pf-danger{border-top:1px solid var(--line);padding-top:1.75rem}
.pf-danger a{color:var(--safety)}

.orderlist{list-style:none;margin:0;padding:0;max-width:none}
.orderlist li + li{border-top:1px solid var(--line)}
.orderlist a{display:block;padding:.875rem 0;text-decoration:none;color:var(--ink)}
.orderlist a:hover b{text-decoration:underline;text-underline-offset:3px}
.orderlist b{display:block;font-family:var(--heading);font-size:.9375rem;line-height:1.35}
.orderlist .meta{display:block;font-size:.8125rem;color:#5a5450;margin-top:.25rem}

.notice-line{
  margin:1.25rem 0 0;padding:.75rem 1rem;background:var(--sidebar);
  border-left:5px solid var(--section);font-size:.9375rem;max-width:44rem;
}

/* ============================================================
   SEARCH, ARCHIVE, SINGLE
   ============================================================ */
.lede{font-size:1.1875rem;line-height:1.6;margin:1.5rem 0 0;max-width:64ch}

.page-search{display:flex;gap:.5rem;flex-wrap:wrap;margin:1.75rem 0 0;max-width:34rem}
.page-search input{
  flex:1;min-width:200px;font:inherit;padding:.625rem .75rem;
  border:1px solid var(--navline);background:#fff;
}
.page-search button{
  font-family:var(--heading);font-weight:700;font-size:.9375rem;border:0;
  background:var(--navy);color:#fff;padding:.625rem 1.25rem;cursor:pointer;
}
.page-search button:hover{background:#0a2c3e}

.result-count{margin:1.5rem 0 0;font-family:var(--heading);font-size:.9375rem;color:#3a3a3a}

.results{list-style:none;margin:1.75rem 0 0;padding:0;max-width:60rem}
.results li + li{border-top:1px solid var(--line)}
.results a{display:block;padding:1.125rem .5rem;margin-left:-.5rem;text-decoration:none;color:var(--ink)}
.results a:hover,.results a:focus-visible{background:var(--sidebar)}
.results b{display:block;font-family:var(--heading);font-size:1.0625rem;line-height:1.35}
.results a:hover b{text-decoration:underline;text-underline-offset:3px}
.results span{display:block;font-size:.9375rem;color:#3a3a3a;margin-top:.3125rem;line-height:1.5}
.results .where{font-family:var(--heading);font-size:.75rem;color:#5a5450;margin-top:.5rem;letter-spacing:.04em}

.empty{margin:2rem 0 0;font-size:1.0625rem;color:#3a3a3a}
.plainlinks{margin:1.25rem 0 0}
.plainlinks ul{list-style:none;margin:0;padding:0}
.plainlinks li{margin-bottom:.5rem}
.plainlinks a{color:var(--ink)}

.postmeta{font-family:var(--heading);font-size:.875rem;color:#5a5450;margin:1.25rem 0 0}
.postmeta a{color:#5a5450}
.postimage{margin:1.75rem 0 0}
.entry{margin-top:1.5rem}
.entry h2{margin-top:2.5rem}
.entry h3{margin-top:2rem}
.entry img{margin-block:1.25rem}
.entry blockquote{
  margin:1.75rem 0;padding:.125rem 0 .125rem 1.25rem;
  border-left:5px solid var(--section);font-size:1.125rem;
}

.postnav{
  display:grid;gap:1rem;grid-template-columns:repeat(2,minmax(0,1fr));
  margin-top:3.5rem;padding-top:1.75rem;border-top:1px solid var(--line);
}
.postnav a{
  display:block;padding:1rem 1.125rem;border:1px solid var(--line);
  text-decoration:none;color:var(--ink);
}
.postnav a:hover,.postnav a:focus-visible{background:var(--sidebar)}
.postnav .next{text-align:right}
.postnav span{
  display:block;font-family:var(--heading);font-size:.75rem;letter-spacing:.1em;
  text-transform:uppercase;color:#5a5450;margin-bottom:.375rem;
}
.postnav b{font-family:var(--heading);font-size:.9375rem;line-height:1.35}

.pagination{margin-top:2.5rem;font-family:var(--heading);font-size:.9375rem}
.pagination .page-numbers{
  display:inline-block;padding:.5rem .75rem;text-decoration:none;color:var(--ink);
  border:1px solid var(--line);margin-right:.25rem;
}
.pagination .current{background:var(--navy);color:#fff;border-color:var(--navy)}
.pagination a:hover{background:var(--sidebar)}

@media (max-width:640px){
  .postnav{grid-template-columns:minmax(0,1fr)}
  .postnav .next{text-align:left}
}

/* ============================================================
   SIDEBAR / SECTION NAVIGATOR
   ============================================================ */
.section-nav{background:var(--sidebar);padding:2.25rem 1.25rem 5rem;font-size:.9375rem}
.section-nav .widget{margin-bottom:2rem}
.section-nav .widget:last-child{margin-bottom:0}
.section-nav .widget-title{
  font-family:var(--heading);font-size:.9375rem;color:#2b2b2b;margin:0 0 .625rem;font-weight:700;
}
.section-nav ul{list-style:none;margin:0;padding:0;max-width:none}
.section-nav li + li{margin-top:2px}
.section-nav a{
  display:block;text-decoration:none;color:var(--ink);
  padding:.5625rem .75rem;border-left:3px solid transparent;
}
.section-nav a:hover,.section-nav a:focus-visible{border-left-color:var(--section);background:#ece9e4}
.section-nav .current-menu-item > a,
.section-nav .current_page_item > a{font-weight:700;border-left-color:var(--section)}
.section-nav .sub-menu,
.section-nav .children{margin:2px 0 .25rem}
.section-nav .sub-menu a,
.section-nav .children a{padding-left:1.5rem;font-size:.875rem}
/* automatic panel: section name on top, only the current branch open */
.section-nav .nav-root{
  font-family:var(--heading);font-size:.8125rem;font-weight:700;letter-spacing:.06em;
  text-transform:uppercase;color:#4a5a63;border-left:0;padding:0 0 .75rem;background:none;
}
.section-nav .nav-label{display:block;padding:.5rem .75rem;font-weight:700;color:var(--ink)}
.section-nav .auto-nav > ul > li > .children{display:none}
.section-nav .auto-nav > ul > li.current_page_item > .children,
.section-nav .auto-nav > ul > li.current_page_ancestor > .children{display:block}

/* landing sections and side-bordered tiles (home partner-strip pattern) */
.landing-section{margin-top:3rem}
.area-intro{margin-top:1.5rem;max-width:46rem}
.tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem;margin-top:1.5rem}
.tiles.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.tile{
  display:flex;flex-direction:column;gap:.5rem;background:#fff;
  border:1px solid #dfe5e8;border-left:5px solid var(--section);
  padding:1.25rem 1.375rem;color:var(--ink);text-decoration:none;
}
a.tile:hover,a.tile:focus-visible{background:#f8f7f5}
.tile h3{margin:0;font-size:1.1875rem;color:var(--navy)}
.tile p{margin:0;line-height:1.55}
.tile-meta{font-size:.9375rem;color:#4a5a63}
@media (max-width:960px){.tiles,.tiles.two{grid-template-columns:minmax(0,1fr)}}

/* tabbed landing pages: Engage, Ways to Give, Our Framework */
.landing-intro{max-width:46rem;margin-top:1.25rem;font-size:1.125rem;line-height:1.6}
.tabs{border:1px solid #d5dde2;margin-top:2.5rem}
/* tabs run down the left; on phones the same titles open their sections in place (assets/tabs.js) */
.tablist{display:flex;flex-direction:column;background:#f3f6f7}
.tablist [data-key]{
  position:relative;min-height:56px;padding:.875rem 1.125rem;text-align:left;font:inherit;cursor:pointer;
  background:transparent;color:#33454f;border:0;border-left:4px solid transparent;border-bottom:1px solid #e3e9ec;
}
.tablist [data-key] b{display:block;font-size:1.0625rem}
.tablist [data-key] span{display:block;font-size:.875rem;margin-top:2px}
.tablist [aria-selected="true"],.tablist [aria-expanded="true"]{background:#fff;color:var(--navy);border-left-color:var(--section)}
.tablist [data-key]:focus-visible{outline:3px solid var(--navy);outline-offset:-3px}
@media (min-width:768px){
  .tabs{display:grid;grid-template-columns:15rem minmax(0,1fr);align-items:start}
  .tabs>.tablist{grid-column:1;grid-row:1;align-self:stretch;border-right:1px solid #d5dde2}
  .tabs>.tabpanel{grid-column:2;grid-row:1}
}
@media (max-width:767px){
  .tabs.is-acc .tablist [data-key]{padding-right:3rem}
  .tabs.is-acc .tablist [data-key]::after{
    content:"";position:absolute;right:1.25rem;top:1.375rem;width:.6rem;height:.6rem;
    border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);
  }
  .tabs.is-acc .tablist [aria-expanded="true"]::after{transform:rotate(-135deg);top:1.625rem}
  .tabs.is-acc .tablist>.tabpanel{background:#fff;border-bottom:1px solid #e3e9ec}
}
.tabpanel{display:flex;flex-wrap:wrap;gap:2.5rem;padding:2.25rem 2rem 2.5rem}
.tabpanel[hidden]{display:none}
.tab-details{flex:1 1 380px;min-width:0;display:flex;flex-direction:column;gap:.5rem}
.tab-details h2{margin:0;font-size:1.875rem;color:var(--navy)}
.tab-details h3{margin:1rem 0 0;font-size:1.125rem;color:var(--navy)}
.tab-details p,.tab-details ul,.tab-details ol{margin:0;line-height:1.55}
.tab-summary{font-size:1.125rem}
.facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;margin:1rem 0 0}
.facts div{background:#f3f6f7;padding:.875rem 1rem}
.facts dt{font-size:.8125rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#4a5a63}
.facts dd{margin:.25rem 0 0;font-weight:700;color:var(--navy)}
.tab-side{flex:1 1 420px;min-width:0;display:flex;flex-direction:column;gap:.75rem}
.calendly-inline-widget{min-width:320px;height:700px}
.tab-fallback{font-size:.9375rem}
.btn-outline{
  align-self:flex-start;display:inline-block;min-height:44px;box-sizing:border-box;margin-top:.75rem;
  padding:.625rem 1.125rem;border:2px solid var(--navy);background:#fff;color:var(--navy);
  font:inherit;font-weight:700;text-decoration:none;cursor:pointer;
}
.tile.item{flex-direction:row;align-items:center;gap:1.125rem}
.tile.item img{width:120px;height:120px;object-fit:contain;flex:none}
@media (max-width:960px){.facts{grid-template-columns:minmax(0,1fr)}.tabpanel{padding:1.5rem 1.25rem}}

/* ============================================================
   FOOTER
   ============================================================ */
.sitefoot{background:var(--sidebar);margin-top:4.5rem;padding:3.25rem 0 2rem;color:#2b2b2b;font-size:.9375rem}
.foot-grid{display:grid;gap:2.5rem 3rem}
.foot-grid.cols-1{grid-template-columns:minmax(0,34rem)}
.foot-grid.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.foot-grid.cols-3{grid-template-columns:1.1fr 1.3fr .8fr}
.sitefoot .widget{margin-bottom:2rem}
.sitefoot .widget:last-child{margin-bottom:0}
.sitefoot .widget-title,
.sitefoot h2{
  font-family:var(--heading);font-size:.75rem;letter-spacing:.11em;
  text-transform:uppercase;color:#5a5450;margin:0 0 .875rem;
}
.sitefoot p{margin:0 0 .625rem;line-height:1.6;max-width:none}
.sitefoot a{color:var(--ink);text-decoration:none;border-bottom:1px solid var(--navline)}
.sitefoot a:hover,.sitefoot a:focus-visible{border-bottom-color:var(--navy)}
.sitefoot ul{list-style:none;margin:0;padding:0;max-width:none}
.sitefoot li{margin-bottom:.375rem}
/* footer forms: search and newsletter share the same proportions */
.sitefoot form{max-width:26rem;margin:0}
.sitefoot form p{margin:0}
.sitefoot label{display:block;width:100%}
.sitefoot .sitesearch{display:block}
.sitefoot input[type=text],
.sitefoot input[type=email],
.sitefoot input[type=search],
.sitefoot .search-field{
  width:100%;max-width:100%;box-sizing:border-box;
  font:inherit;font-size:1rem;font-weight:400;line-height:1.5;
  padding:.5625rem .75rem;border:1px solid var(--navline);
  background:#fff;margin:0 0 .5rem;
}
.sitefoot input::placeholder{font-weight:400;color:#6a645f;opacity:1}
.sitefoot input[type=submit],
.sitefoot button[type=submit],
.sitefoot .search-submit{
  font-family:var(--heading);font-weight:700;font-size:.9375rem;border:0;
  background:var(--navy);color:#fff;padding:.5625rem 1.125rem;cursor:pointer;
}
.sitefoot input[type=submit]:hover,
.sitefoot button[type=submit]:hover,
.sitefoot .search-submit:hover{background:#0a2c3e}
.sitefoot input[type=submit],
.sitefoot button[type=submit]{
  font-family:var(--heading);font-weight:700;font-size:.9375rem;border:0;
  background:var(--navy);color:#fff;padding:.5625rem 1.125rem;cursor:pointer;
}
.sitefoot input[type=submit]:hover,
.sitefoot button[type=submit]:hover{background:#0a2c3e}
.foot-base{
  margin-top:3rem;padding-top:1.25rem;border-top:1px solid var(--navline);
  display:flex;gap:1.5rem;flex-wrap:wrap;font-size:.8125rem;color:#5a5450;
}
.foot-base a{color:#5a5450;border-bottom-color:transparent}

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* Home intro: full width with the gentle curve at every screen size, as on
   phones (Oswin, 2026-10-05). Was max-width:1100px only. */
@media all{
  .hero .wrap{grid-template-columns:minmax(0,1fr);min-height:0}
  .hero::after{inset:auto 0 0 0;width:100%;height:9rem}
  .hero::before{
    top:auto;bottom:5rem;left:-25%;width:150%;height:14rem;
    border-radius:50%;
  }
  .hero-text{max-width:none;padding-right:0;padding-block:2.5rem 11rem}
}
@media (max-width:960px){
  .layout{grid-template-columns:minmax(0,1fr)}
  .cols{grid-template-columns:minmax(0,1fr);gap:2rem}
  .page-aside{order:2}
  .mainnav ul{display:none}
  .mbar{display:flex}
  .section-nav{order:-1;display:none;padding:1.25rem}
  .section-nav.open{display:block}
  main{padding:2rem var(--gutter) 3.5rem}
  .layout:not(.no-aside) > main{padding-left:var(--gutter);max-width:none}
}
@media (max-width:781px){
  .foot-grid{grid-template-columns:minmax(0,1fr)}
  .utility .wrap{flex-direction:column;gap:.5rem;padding-block:.6rem}
}

@media (prefers-reduced-motion:reduce){
  *{animation:none !important;transition:none !important}
}

/* ============================================================
   PRINT
   ============================================================ */
@media print{
  .utility,.mainnav,.mbar,.section-nav,.sitefoot,.hero,.skip-link{display:none !important}
  body{font-size:11pt;line-height:1.45;color:#000}
  .layout,.cols{display:block !important}
  main{padding:0 !important}
  h1{font-size:22pt}
  h1,h2,h3{page-break-after:avoid}
  .rule::after{background:#000 !important;height:2px}
  main a[href^="http"]::after{content:" (" attr(href) ")";font-size:9pt;color:#333}
  .printfoot{
    display:block;position:fixed;bottom:0;left:0;right:0;
    font-size:8.5pt;line-height:1.4;border-top:1px solid #000;padding-top:5pt;
  }
  @page{margin:16mm 14mm 24mm}
}
.printfoot{display:none}

/* ============================================================
   COURSES AND LESSONS  (single-courses.php, single-lesson.php)
   ============================================================ */
/* the Learning Portal course-card button */
.start-btn{
  display:flex;align-items:center;justify-content:center;width:100%;min-height:36px;
  margin-top:.875rem;padding:6px 12px;border:1px solid var(--tutor-color-primary,#cc0000);border-radius:6px;
  background:transparent;color:var(--tutor-color-primary,#cc0000);font:inherit;font-size:1rem;line-height:22px;text-decoration:none;
}
.start-btn:hover,.start-btn:focus-visible{color:#fff;background:var(--tutor-color-primary-hover,#ec1409);border-color:var(--tutor-color-primary-hover,#ec1409)}

.page-aside .learn ul{list-style:disc;padding-left:1.25rem}
.page-aside .learn li{padding:.25rem 0;line-height:1.5}
.page-aside .learn li + li{margin-top:0}

.page-body .entry > h2:first-child{margin-top:0}
.course-content{margin-top:2.5rem}
.page-body > .course-content:first-child{margin-top:0}

/* topics: the theme accordion, closed to start */
.curriculum{border:1px solid #d5dde2;margin-top:1rem}
.curriculum details + details{border-top:1px solid #e3e9ec}
.curriculum summary{
  list-style:none;position:relative;min-height:56px;padding:.875rem 3rem .875rem 1.125rem;cursor:pointer;
  background:#f3f6f7;color:#33454f;border-left:4px solid transparent;
}
.curriculum summary::-webkit-details-marker{display:none}
.curriculum summary b{display:block;font-size:1.0625rem}
.curriculum summary span{display:block;font-size:.875rem;margin-top:2px}
.curriculum summary::after{
  content:"";position:absolute;right:1.25rem;top:1.375rem;width:.6rem;height:.6rem;
  border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);
}
.curriculum details[open] > summary{background:#fff;color:var(--navy);border-left-color:var(--section)}
.curriculum details[open] > summary::after{transform:rotate(-135deg);top:1.625rem}
.curriculum summary:focus-visible{outline:3px solid var(--navy);outline-offset:-3px}
.curriculum .topic-body{padding:1.25rem 1.5rem 1.5rem;background:#fff;border-top:1px solid #e3e9ec}
.curriculum .topic-body p{font-size:.9375rem;color:#3a3a3a}
.curriculum ol{margin:0;padding-left:1.5rem}
.curriculum ol li{padding:.25rem 0}
.curriculum ol a{text-decoration:none}
.curriculum ol a:hover,.curriculum ol a:focus-visible{text-decoration:underline;text-underline-offset:3px}

/* lesson video */
.video{position:relative;aspect-ratio:16/9;margin:0 0 1.5rem;background:#111;overflow:hidden}
.video > iframe,.video > video,.video > .wp-video,.video > div{position:absolute;inset:0;width:100% !important;height:100% !important;border:0}

/* lesson: left column beside the body; previous/next under the body */
.lesson-cols{grid-template-areas:"aside body" "aside nav";grid-template-rows:auto 1fr}
.lesson-cols > .page-aside{grid-area:aside}
.lesson-cols > .page-body{grid-area:body}
.lesson-cols > .postnav{grid-area:nav;align-self:start}

/* quiz in a public course (course-quiz.php): case, question, choices, reveal */
.quiz-q{margin:0 0 2.5rem}
.quiz-q + .quiz-q{padding-top:2rem;border-top:1px solid rgba(0,0,0,.12)}
.quiz-choices{border:0;padding:0;margin:1.5rem 0 1.25rem;min-width:0}
.quiz-ask{font-family:var(--heading);font-weight:700;font-size:1.125rem;margin:0 0 .75rem;padding:0}
.quiz-choice{display:flex;gap:.75rem;align-items:flex-start;padding:.65rem .85rem;margin:.4rem 0;border:1px solid rgba(0,0,0,.15);cursor:pointer}
.quiz-choice input{margin-top:.3rem;flex:none}
.quiz-choice span{flex:1}
.quiz-letter{flex:none;min-width:1.5rem;font-style:normal;font-weight:700}
.quiz-show:disabled{opacity:.45;cursor:not-allowed}
.quiz-hint{font-size:.875rem;margin:.5rem 0 0;opacity:.75}
.quiz-tag{display:none;flex:none;font-family:var(--heading);font-size:.75rem;text-transform:uppercase;letter-spacing:.05em;align-self:center}
.quiz-q.is-shown .quiz-choice[data-correct]{background:#e3f2f8;border-color:#1a8bb9}
.quiz-q.is-shown .quiz-tag{display:inline}
.quiz-show{font-family:var(--heading);font-weight:700;padding:.6rem 1.1rem;border:2px solid currentColor;background:transparent;cursor:pointer}
.quiz-answer{margin-top:1.5rem}
.quiz-explain iframe{display:block;width:100%;height:auto;aspect-ratio:16/9;border:0;margin:0 0 1.5rem}

/* side panel inside a course: topics as labels, lessons beneath, Courses folded */
.section-nav .lessons .topic{
  padding:.75rem .75rem .25rem 1.5rem;font-family:var(--heading);font-size:.75rem;font-weight:700;
  letter-spacing:.04em;text-transform:uppercase;color:#4a5a63;
}
.section-nav .lessons a{padding-left:2.25rem}
.section-nav .secnav-toggle{
  display:flex;justify-content:space-between;align-items:center;width:100%;padding:.5625rem .75rem;
  border:0;border-left:3px solid transparent;background:none;font:inherit;color:var(--ink);text-align:left;cursor:pointer;
}
.section-nav .secnav-toggle:hover,.section-nav .secnav-toggle:focus-visible{border-left-color:var(--section);background:#ece9e4}
.section-nav .secnav-toggle::after{
  content:"";width:.45rem;height:.45rem;margin-right:.25rem;
  border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);
}
.section-nav .secnav-toggle[aria-expanded="true"]::after{transform:rotate(-135deg)}
.section-nav .auto-nav > ul > li > .secnav-toggle[aria-expanded="true"] + .children{display:block}

@media (max-width:960px){
  /* phones: content, then files, then this lesson, then previous/next */
  .lesson-cols{grid-template-areas:"body" "aside" "nav";grid-template-rows:auto}
  .lesson-cols .page-aside{display:flex;flex-direction:column}
  .lesson-cols .page-aside .files{order:-1}
}
@media (max-width:640px){
  .lesson-cols .postnav{grid-template-columns:repeat(2,minmax(0,1fr))}
  .lesson-cols .postnav .next{text-align:right}
}
