/* The Mindfulness Place, programme page layout.
   ONE file for every programme page on every vertical site. The source is
   brand/programme.css at the repo root. tools/apply-brand.py copies it into
   each vertical site as sport.css. Never edit the copies: edit this, run the
   script, and every vertical changes together.
   Layout only. Every brand decision (type, colour, weight, buttons, labels)
   lives in brand/tmp.css, which loads after this file. */


:root{
  /* PER PAGE: the programme's hero photograph. The only line that changes. */
  --hero:url('assets/sport-mindfulness-for-football-soccer-hero.webp');
  --cream:#f2f0eb;
  --shell:#e8e4da;
  --paper:#fbfaf7;
  --ink:#33302c;
  --mid:#6b6b62;
  --faint:#a8a296;
  --rule:#d4d0c8;
  --sport:#4C9487;   /* the accent. Overridden per vertical by the body class below. */
  --sport-soft:#c3dfda;
  --tint:rgba(76,148,135,.06);
  --serif:Gabarito,'Times New Roman',serif;
  --sans:Gabarito,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --mono:Gabarito,ui-monospace,'SF Mono',Menlo,monospace;
  --frame:1180px;
}

*{box-sizing:border-box}
body{
  margin:0;background:var(--cream);color:var(--ink);
  font-family:var(--sans);font-size:16px;line-height:1.7;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block}
a{color:inherit}
h1,h2,h3{margin:0;font-family:var(--serif);font-weight:800;text-wrap:balance;line-height:1.08}
p{margin:0;text-wrap:pretty}

.wrap{max-width:var(--frame);margin:0 auto;padding:0 40px}
.eyebrow{font-family:var(--mono);font-size:16px;letter-spacing:.16em;text-transform:uppercase;color:var(--faint)}
.lede{color:var(--mid);font-size:17px;max-width:62ch;text-wrap:pretty}
.btn{
  display:inline-block;font-family:var(--mono);font-size:10px;
  letter-spacing:.13em;text-transform:uppercase;
  background:var(--sport);color:#fff;border-radius:3px;
  padding:14px 24px;text-decoration:none;border:0;
}
.btn:focus-visible,.quiet:focus-visible{outline:2px solid var(--sport);outline-offset:3px}
.quiet{
  font-family:var(--mono);font-size:10px;letter-spacing:.13em;
  text-transform:uppercase;color:var(--mid);text-decoration:none;
  border-bottom:1px solid var(--rule);padding-bottom:3px;
}
.quiet:hover{color:var(--ink);border-color:var(--ink)}
.sec{padding:104px 0;border-top:1px solid var(--rule)}
.sec__head{display:flex;flex-direction:column;gap:18px;margin-bottom:44px}
.sec h2{font-size:clamp(30px,3.4vw,42px)}
.it{font-style:italic;color:var(--mid)}

.shot{background:var(--shell);border:1px solid var(--rule)}
.shot--place{
  display:flex;flex-direction:column;gap:8px;align-items:center;
  justify-content:center;text-align:center;padding:32px;color:var(--faint);
}
.shot--place b{
  display:block;font-family:var(--mono);font-size:10px;letter-spacing:.16em;
  text-transform:uppercase;color:var(--sport);font-weight:600;
}
.shot--place span{font-size:13px;max-width:34ch;line-height:1.6}

/* ---------- header ---------- */
.top{position:sticky;top:0;z-index:30;background:rgba(242,240,235,.94);backdrop-filter:blur(8px);border-bottom:1px solid var(--rule)}
.top__in{display:flex;align-items:center;justify-content:space-between;gap:20px;height:68px}
.brand{display:flex;align-items:center;gap:13px;text-decoration:none}
.brand img{width:30px;height:auto;flex:none}
.brand__txt{font-family:var(--mono);font-size:11px;letter-spacing:.14em;text-transform:uppercase;line-height:1.5}
.brand__txt i{font-style:normal;color:var(--faint);display:block;letter-spacing:.2em}

/* ---------- hero ---------- */
.hero{padding:96px 0 104px}
.hero__grid{display:grid;grid-template-columns:1.22fr .78fr;gap:56px;align-items:center}
.hero h1{font-size:clamp(42px,5.1vw,68px)}
.hero h1 em{display:block;font-style:italic;color:var(--sport)}
.hero__sub{margin-top:26px;color:var(--mid);font-size:17px}
.hero__act{margin-top:36px;display:flex;align-items:center;gap:26px;flex-wrap:wrap}
.hero__note{margin-top:22px;font-size:13.5px;color:var(--faint)}
.hero .shot{aspect-ratio:4/5}

/* ---------- pattern ---------- */
.pattern{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--rule)}
.pattern div{padding:34px 32px 34px 0;border-right:1px solid var(--rule);color:var(--mid);font-size:15.5px;text-wrap:pretty}
.pattern div:last-child{border-right:0}
.pattern div:not(:first-child){padding-left:32px}
.pattern__no{font-family:var(--mono);font-size:12px;letter-spacing:.16em;color:var(--sport);display:block;margin-bottom:14px}
.claim{margin-top:56px;font-family:var(--serif);font-size:clamp(26px,3vw,36px);line-height:1.2}

/* ---------- produces ---------- */
.produces{display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:start}
.plist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.plist li{padding:18px 0;border-bottom:1px solid var(--rule);color:var(--mid);font-size:15.5px;display:flex;gap:16px;text-wrap:pretty}
.plist li::before{content:'';flex:none;width:5px;height:5px;margin-top:11px;background:var(--sport)}

/* ---------- the one dark band ---------- */
.dark{background:var(--ink);color:var(--cream);padding:120px 0;text-align:center}
.dark p{font-family:var(--serif);font-size:clamp(28px,4vw,50px);line-height:1.16;max-width:20ch;margin:0 auto}
.dark em{font-style:italic;color:var(--sport-soft)}

/* ---------- portal preview ---------- */
.portal{background:var(--shell)}
.portal .sec{border-top:0}
.portal__grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:56px;align-items:center}
.steps{list-style:none;margin:26px 0 0;padding:0;display:flex;flex-direction:column;gap:20px}
.steps li{display:grid;grid-template-columns:26px 1fr;gap:14px;color:var(--mid);font-size:15.5px;text-wrap:pretty}
.steps b{font-family:var(--mono);font-size:12px;letter-spacing:.1em;color:var(--sport);font-weight:600;padding-top:5px}


/* ---------- sessions, built like the portal ---------- */
.sess{display:flex;flex-direction:column}
.sess a{
  display:grid;grid-template-columns:44px 1fr;gap:20px;align-items:baseline;
  background:var(--paper);border:1px solid var(--rule);border-bottom:0;
  padding:20px 24px;text-decoration:none;
}
.sess a:last-child{border-bottom:1px solid var(--rule)}
.sess a:hover{border-color:var(--ink);position:relative;z-index:1}
.sess a:not(:last-child):hover{border-bottom:1px solid var(--ink);margin-bottom:-1px}
.sess__no{font-family:var(--mono);font-size:13px;color:var(--faint)}
.sess__nm{font-family:var(--serif);font-size:23px}

/* ---------- price ---------- */
.price{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--rule);background:var(--paper)}
.price__l{padding:48px;border-right:1px solid var(--rule)}
.price__r{padding:48px;background:var(--tint)}
.price__fig{display:flex;align-items:baseline;gap:10px;margin:22px 0 6px}
.price__fig strong{font-family:var(--serif);font-size:62px;font-weight:800;line-height:1}
.price__fig span{font-family:var(--mono);font-size:12px;letter-spacing:.16em;color:var(--faint)}
.price__ask{font-family:var(--serif);font-size:31px;line-height:1.15;margin:22px 0 12px;max-width:17ch;text-wrap:balance}
.price__terms{font-family:var(--mono);font-size:12px;letter-spacing:.13em;text-transform:uppercase;color:var(--sport)}
.price__note{margin-top:26px;font-size:13px;color:var(--faint);text-wrap:pretty}

/* ---------- bio ---------- */
.bio{display:grid;grid-template-columns:280px 1fr;gap:48px;align-items:start}
.bio .shot{aspect-ratio:1/1}
.shot--sq{aspect-ratio:1/1;width:100%}
.bio h3{font-size:30px}
.bio__role{margin-top:8px;font-size:13px;letter-spacing:.13em}
.bio p{margin-top:20px;color:var(--mid);max-width:60ch}

/* ---------- close + footer ---------- */
.close{text-align:center;padding:112px 0}
.close p{font-family:var(--serif);font-size:clamp(26px,3.2vw,38px);line-height:1.18;max-width:26ch;margin:0 auto}
.close .hero__act{justify-content:center;margin-top:40px}
.foot{border-top:1px solid var(--rule);padding:30px 0;font-family:var(--mono);font-size:12px;letter-spacing:.13em;text-transform:uppercase;color:var(--faint)}
.foot__in{display:flex;gap:22px;flex-wrap:wrap;align-items:center;justify-content:space-between}
.foot a{text-decoration:none}
.foot a:hover{color:var(--ink)}


@media (max-width:1000px){
  .portal__grid{grid-template-columns:1fr;gap:40px}
}
@media (max-width:900px){
  .wrap{padding:0 24px}
    .produces,.bio{grid-template-columns:1fr;gap:40px}
  .pattern{grid-template-columns:1fr}
  .pattern div{border-right:0;border-bottom:1px solid var(--rule);padding:26px 0}
  .pattern div:not(:first-child){padding-left:0}
  .price{grid-template-columns:1fr}
  .price__l{border-right:0;border-bottom:1px solid var(--rule)}
  .price__l,.price__r{padding:34px}
  .sec{padding:72px 0}
  .hero{padding:64px 0 72px}
}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}


/* ---------- hero, landscape image ---------- */
.hero__grid{grid-template-columns:1.35fr 1fr}
.hero .shot{aspect-ratio:auto}
.hero__img{width:100%;height:auto;border:1px solid var(--rule)}

/* ---------- org: audience cards ---------- */
.who{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.who div{background:var(--paper);border:1px solid var(--rule);border-top:3px solid var(--sport);padding:30px 26px}
.who h3{font-size:24px;margin-bottom:12px}
.who p{color:var(--mid);font-size:15px}

/* ---------- org: walkthrough ---------- */
.walk{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:center}
.walk .shot{aspect-ratio:16/9}

/* ---------- org: trial ---------- */
.trial__cols{display:grid;grid-template-columns:1fr 1fr;gap:0;border-top:1px solid var(--rule);margin-top:34px}
.trial__cols>div{padding:32px 34px 32px 0}
.trial__cols>div+div{border-left:1px solid var(--rule);padding-left:34px}
.guar{margin-top:30px;padding:22px 26px;background:var(--tint);border-left:3px solid var(--sport);color:var(--sport);font-size:14.5px;text-wrap:pretty}
.contact{margin-top:22px;font-family:var(--mono);font-size:15px;letter-spacing:.06em;color:var(--mid);display:flex;flex-direction:column;gap:5px}
.contact a{text-decoration:none;border-bottom:1px solid var(--rule);align-self:flex-start}

@media (max-width:900px){
    .who,.walk,.trial__cols{grid-template-columns:1fr}
  .trial__cols>div{padding:26px 0}
  .trial__cols>div+div{border-left:0;border-top:1px solid var(--rule);padding-left:0}
}

.hero__img{
  width:100%;aspect-ratio:4/5;border:1px solid var(--rule);
  background-image:var(--hero);
  background-size:cover;background-position:center;
}
.brand__mk{
  display:block;flex:none;
  background-image:url('assets/mark.webp');
  background-size:contain;background-repeat:no-repeat;background-position:center;
}
.brand__mk{width:30px;height:33px}

/* ---------- vertical themes ----------
   One template serves all four. Put the vertical's class on <body> and the
   accent changes everywhere it is used. Nothing else in this file changes. */
body.v-edu  { --sport:#688ABB; --sport-soft:#c1cee2; --tint:rgba(104,138,187,.06) }
body.v-pro  { --sport:#9180B4; --sport-soft:#cdc5dd; --tint:rgba(145,128,180,.06) }
body.v-life { --sport:#BE765F; --sport-soft:#e3c8bf; --tint:rgba(190,118,95,.06) }

/* The portal screenshot ships as a rendered PNG, one per programme. */
.dash__img{width:100%;border:1px solid var(--rule);box-shadow:0 26px 64px rgba(51,48,44,.16);display:block}
.dash__cap{margin-top:14px;font-family:var(--mono);font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--faint)}

/* ---------- catalogue (organisation pages) ----------
   The inventory of what a school gets. One group per bucket, one row per
   programme. Rows collapse their shared border the way the portal library does:
   border-bottom on every row except the last, so the group closes cleanly. */
.cat{padding:96px 0;background:var(--cream)}
.cat__grp{margin-top:64px}
.cat__grp:first-of-type{margin-top:44px}
.cat__hd{display:flex;align-items:baseline;gap:16px;padding-bottom:14px;border-bottom:1px solid var(--ink)}
.cat__hd h3{font-family:var(--serif);font-size:29px;font-weight:800;margin:0;letter-spacing:-.01em}
.cat__n{font-family:var(--mono);font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--faint);margin-left:auto}
.cat__note{margin:14px 0 0;max-width:70ch;color:var(--mid);font-size:15px;line-height:1.7;text-wrap:pretty}
.cat__row{display:grid;grid-template-columns:1fr 216px 96px;gap:24px;align-items:baseline;
  padding:19px 0;border-bottom:1px solid var(--rule)}
.cat__row:last-child{border-bottom:1px solid var(--rule)}
.cat__nm{font-family:var(--serif);font-size:21px;color:var(--ink);letter-spacing:-.005em}
.cat__for{font-family:var(--mono);font-size:12px;letter-spacing:.13em;text-transform:uppercase;color:var(--mid)}
.cat__ss{font-family:var(--mono);font-size:12px;letter-spacing:.13em;text-transform:uppercase;color:var(--faint);text-align:right}
.cat__sum{margin-top:56px;padding-top:26px;border-top:1px solid var(--ink);
  display:flex;flex-wrap:wrap;gap:44px}
.cat__stat b{display:block;font-family:var(--serif);font-size:41px;font-weight:800;line-height:1;color:var(--ink)}
.cat__stat span{display:block;margin-top:9px;font-family:var(--mono);font-size:10px;
  letter-spacing:.14em;text-transform:uppercase;color:var(--faint)}

/* ---------- how it runs ---------- */
.runs{padding:92px 0;background:var(--shell)}
.runs__grid{display:grid;grid-template-columns:repeat(2,1fr);gap:52px 64px;margin-top:52px}
.runs__it h4{font-family:var(--mono);font-size:10px;letter-spacing:.14em;text-transform:uppercase;
  color:var(--sport);margin:0 0 12px;font-weight:600}
.runs__it p{margin:0;color:var(--mid);font-size:15.5px;line-height:1.75;text-wrap:pretty}

/* ---------- access ---------- */
.acc{padding:96px 0;background:var(--cream)}
.acc__grid{display:grid;grid-template-columns:1fr 1fr;gap:52px;margin-top:48px}
.acc__card{border:1px solid var(--rule);background:#fff;padding:38px 34px 34px}
.acc__card h4{font-family:var(--serif);font-size:26px;font-weight:800;margin:0 0 6px}
.acc__card .cat__for{display:block;margin-bottom:20px}
.acc__card ul{margin:0;padding:0;list-style:none}
.acc__card li{padding:11px 0;border-bottom:1px solid var(--rule);color:var(--mid);font-size:15px;line-height:1.65}
.acc__card li:last-child{border-bottom:0}
.acc__card .btn{margin-top:26px}


/* Plain single column hero, for pages with no photograph. */
.hero--plain .eyebrow{margin-bottom:18px}
.hero--plain h1{max-width:16ch}
.hero--plain .hero__sub{max-width:60ch}

/* ---------- faq ---------- */
.faq{padding:96px 0;background:var(--cream);border-top:1px solid var(--rule)}
.faq__list{margin-top:46px;border-top:1px solid var(--ink)}
.faq__it{padding:26px 0;border-bottom:1px solid var(--rule);
  display:grid;grid-template-columns:minmax(0,40ch) 1fr;gap:40px;align-items:start}
.faq__it h4{margin:0;font-family:var(--serif);font-size:21px;font-weight:800;color:var(--ink);text-wrap:balance}
.faq__it p{margin:0;color:var(--mid);font-size:15.5px;line-height:1.75;max-width:66ch;text-wrap:pretty}

/* ---------- responsive, and this block must stay last ----------
   There are older component media queries further up the file, which is fine
   because they touch components nothing below them redefines. This block is
   different. It has the same specificity as the .hero__grid and .cat__row rules
   above it, so source order is the only thing deciding which wins. Move it up
   and the stacked layouts silently stop working at every width. */
@media (max-width:1180px){
  .hero__grid{grid-template-columns:1fr;gap:40px}
  .hero__img{max-width:760px}
}
@media (max-width:860px){
  .cat__row{grid-template-columns:1fr;gap:7px}
  .faq__it{grid-template-columns:1fr;gap:12px}
  .cat__ss{text-align:left}
  .runs__grid{grid-template-columns:1fr;gap:38px}
  .acc__grid{grid-template-columns:1fr;gap:32px}
  .cat__sum{gap:30px}
}

/* header contact, per Scott 2026-09-07: the trigger sits in header and footer */
.top__contact{margin-left:auto;font-family:var(--mono);font-size:13px;letter-spacing:.14em;
  text-transform:uppercase;color:var(--mid);text-decoration:none;white-space:nowrap}
.top__contact:hover{color:var(--sport)}
@media (max-width:560px){.top__contact{display:none}}


/* ---------- the page breaks into panels ----------
   Every .sec used to sit on the same cream with a hairline between them, so a
   long page read as one unbroken run. Alternate cream and shell down the
   page. The portal callout is already shell, so the run after it restarts on
   cream regardless of where it falls. */
.sec:nth-of-type(even){background:var(--shell)}
.portal + .sec{background:var(--cream)}
.portal + .sec + .sec{background:var(--shell)}
.portal + .sec + .sec + .sec{background:var(--cream)}
.portal + .sec + .sec + .sec + .sec{background:var(--shell)}

/* ---------- no eyebrow over the headline ----------
   The programme name already sits in the top bar, so the eyebrow above the
   hero headline repeats it. Hidden on every individual and organisation page.
   Section eyebrows further down are untouched. */
.hero .eyebrow:has(+ h1){display:none}

/* back to the garden, beside the main button. Bruce, 2 October 2026 */
.top__garden{margin-left:auto;font-family:var(--mono);font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--mid);text-decoration:none;white-space:nowrap}
.top__garden:hover{color:var(--ink,#33302c)}
@media (max-width:560px){.top__garden span{display:none}}
@media (max-width:480px){.top__garden{font-size:0;letter-spacing:0}.top__garden::before{content:"\2190";font-size:20px;line-height:1;color:var(--mid)}}

/* Sample session player. Shared by every sport page, org and individual. */
.sample{margin:40px 0 8px;padding:28px 0;border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);display:grid;grid-template-columns:64px 1fr;gap:6px 24px;align-items:center}
.sample__play{grid-row:1/3;width:64px;height:64px;border-radius:50%;border:0;background:var(--sport);color:var(--cream);cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;transition:transform .2s ease}
.sample__play:hover{transform:scale(1.05)}
.sample__play:focus-visible{outline:2px solid var(--ink);outline-offset:4px}
.sample__play svg{width:22px;height:22px;fill:currentColor}
.sample__play .i-pause{display:none}
.sample.is-playing .i-play{display:none}
.sample.is-playing .i-pause{display:block}
.sample__top{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap}
.sample__no{font-family:var(--mono);font-size:12px;letter-spacing:.14em;color:var(--mid)}
.sample__nm{font-family:var(--serif);font-size:26px;line-height:1.15}
.sample__who{font-family:var(--mono);font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--mid)}
.sample__row{display:flex;align-items:center;gap:16px}
.sample__bar{flex:1;height:18px;display:flex;align-items:center;cursor:pointer;position:relative}
.sample__bar::before{content:"";position:absolute;left:0;right:0;height:2px;background:var(--rule)}
.sample__bar i{position:relative;display:block;height:2px;width:0;background:var(--sport)}
.sample__bar:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.sample__time{font-family:var(--mono);font-size:12px;letter-spacing:.06em;color:var(--mid);white-space:nowrap;font-variant-numeric:tabular-nums}
.sample__voices{grid-column:1/-1;margin-top:22px}
.sample__voices p{font-family:var(--mono);font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--mid);margin:0 0 12px}
.sample__voices div{display:flex;flex-wrap:wrap;gap:8px}
.sample__voice{font:inherit;font-size:14px;padding:8px 14px;border-radius:999px;border:1px solid var(--rule);background:transparent;color:var(--ink);cursor:pointer}
.sample__voice span{font-family:var(--mono);font-size:11px;letter-spacing:.12em;color:var(--mid);margin-left:6px}
.sample__voice[aria-pressed="true"]{background:var(--sport);border-color:var(--sport);color:var(--cream)}
.sample__voice[aria-pressed="true"] span{color:rgba(242,240,235,.75)}
.sess a.is-sample .sess__nm::after{content:"Listen";font-family:var(--mono);font-size:11px;letter-spacing:.14em;text-transform:uppercase;margin-left:12px;color:var(--mid)}
@media (max-width:560px){.sample{grid-template-columns:52px 1fr;gap:6px 16px}.sample__play{width:52px;height:52px}.sample__nm{font-size:22px}}


/* ---------- the section after Who it is for ----------
   Who it is for is the second section, so the even rule above paints it shell,
   and the portal callout straight after it is shell as well. The two read as
   one block. When the portal follows a shell section it goes cream, and the
   run after it flips to keep the alternation. Scott, 3 October 2026. */
.sec:nth-of-type(even) + .portal{background:var(--cream)}
.sec:nth-of-type(even) + .portal + .sec{background:var(--shell)}
.sec:nth-of-type(even) + .portal + .sec + .sec{background:var(--cream)}
.sec:nth-of-type(even) + .portal + .sec + .sec + .sec{background:var(--shell)}
.sec:nth-of-type(even) + .portal + .sec + .sec + .sec + .sec{background:var(--cream)}

/* ---------- the session list is a list, not links ----------
   The rows used to be href="#" links that went nowhere and jumped the page to
   the top. They are plain rows now. The sample row keeps its link and plays.
   Scott, 3 October 2026. */
.sess a:not([href]){cursor:default}
.sess a:not([href]):hover{border-color:var(--rule);z-index:auto}
.sess a:not([href]):not(:last-child):hover{border-bottom:0;margin-bottom:0}

/* ---------- sample: three minutes, and room above the list ----------
   The sample files are the first three minutes of the session, faded out.
   A line above the player says so. Scott, 3 October 2026. */
.sample__intro{font-size:15px;color:var(--mid);margin:40px 0 0}
.sample__intro + .sample{margin-top:14px}
.sample{margin-bottom:40px}


/* ---------- the closing line is a dark band ----------
   The closing line and the footer were the same cream and ran together, so
   the page trailed off. The close is now an ink band, the one dark moment at
   the foot of the page, and the footer sits on cream below it.
   Scott, 3 October 2026. */
.close{background:var(--ink);color:var(--cream)}
.close p,.close h2{color:var(--cream)}
.close .it{color:rgba(242,240,235,.62)}
.close .quiet{color:rgba(242,240,235,.8);border-bottom-color:rgba(242,240,235,.34)}
.close .quiet:hover{color:var(--cream);border-bottom-color:var(--cream)}
.close + .foot{border-top:0}
