/* AIM Coaching app: computer layout.
   Phones and tablets keep the phone look exactly as it is. On a screen 1000px or wider,
   the app becomes a full web page: a charcoal menu down the left (added by desktop.js)
   and wider pages with tools side by side. Everything here sits inside the media query. */

.dnav{display:none}

@media (min-width:1000px){
  :root{--dnav-w:260px}
  html,body{background:var(--mist,#F6F4F3)}
  body{padding-left:var(--dnav-w)}
  body::before{display:none}

  /* ---- Left menu ---- */
  .dnav{display:flex;flex-direction:column;gap:3px;position:fixed;inset:0 auto 0 0;width:var(--dnav-w);z-index:30;
    background:#232428;color:#fff;padding:26px 16px 20px;overflow-y:auto;font-family:'Source Sans 3',system-ui,-apple-system,'Segoe UI',sans-serif}
  .dnav a{color:inherit;text-decoration:none}
  .dnav .dn-brand{display:flex;flex-direction:column;align-items:center;gap:6px;padding:0 4px 20px;margin-bottom:10px;border-bottom:2px solid #D2283C}
  .dnav .dn-brand .dn-w{font-family:'Jost','Futura','Century Gothic',sans-serif;font-size:21px;letter-spacing:.3em;padding-left:.3em}
  .dnav .dn-brand .dn-w b{font-weight:600}.dnav .dn-brand .dn-w span{font-weight:300}
  .dnav .dn-brand .dn-m{display:flex;align-items:center;gap:8px;width:170px}.dnav .dn-brand .dn-m i{flex:1;height:1px;background:#fff;opacity:.6}
  .dnav .dn-brand .dn-t{font-size:9px;letter-spacing:.26em;padding-left:.26em;color:#D3D4D7}
  .dnav .dn-lbl{font-size:11px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:#9A9CA1;padding:14px 12px 4px}
  .dnav .dn-i{display:flex;align-items:center;gap:12px;min-height:44px;padding:0 12px;border-radius:12px;font-size:16px;font-weight:600;color:#E9E8E6;transition:background .12s}
  .dnav .dn-i svg{flex:none;width:22px;height:22px}
  .dnav .dn-i:hover{background:rgba(255,255,255,.08);color:#fff}
  .dnav .dn-i[aria-current="page"]{background:#D2283C;color:#fff}
  .dnav .dn-i.dn-sub{min-height:36px;font-size:14.5px;font-weight:400;padding-left:46px;color:#C9CACD}
  .dnav .dn-i.dn-sub[aria-current="page"]{background:rgba(210,40,60,.22);color:#fff;font-weight:700}
  .dnav .dn-foot{margin-top:auto;display:flex;flex-direction:column;gap:8px;padding:16px 4px 0;border-top:1px solid rgba(255,255,255,.14)}
  .dnav .dn-foot .dn-k{font-size:11px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:#FFB3BC;padding-left:4px}
  .dnav .dn-bk{display:flex;align-items:center;justify-content:center;min-height:42px;border-radius:999px;background:#D2283C;color:#fff;font-weight:700;font-size:14.5px}
  .dnav .dn-bk.dn-ghost{background:transparent;border:1.5px solid rgba(255,255,255,.55)}
  .dnav .dn-bk:hover{filter:brightness(1.08)}
  .dnav .dn-sig{font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:#8A8C91;text-align:center;padding-top:10px}

  /* ---- Top bar on inner pages: the page title, the menu replaces the Home button ---- */
  .bar .back{display:none}
  .bar .in{max-width:1120px;min-height:64px;padding-left:40px;padding-right:40px}
  .bar h1{text-align:left;padding-right:0;font-size:18px}

  /* ---- Wider pages ---- */
  .wrap{max-width:1120px;padding:32px 40px 56px;gap:24px}
  .hero{padding:32px 36px;gap:14px}
  .hero h2{font-size:34px}
  .hero p{font-size:18px;max-width:70ch}
  .hero .ic{width:60px;height:60px}
  .card{padding:24px 28px}
  .choices{flex-direction:row;flex-wrap:wrap}
  .choices>.btn{flex:1 1 260px;width:auto}

  /* ---- AIM Toolbox: tools side by side ---- */
  body.page-skills #skillList{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:stretch}
  body.page-skills #skillList>.group{grid-column:1/-1;margin:10px 0 -6px}
  body.page-skills #skillList>.card{margin:0}
  body.page-skills #skillList>.card>.btn{max-width:none;margin-top:auto}
  body.page-skills #skillList>.bundle{grid-column:1/-1}
  body.page-skills .member{padding:28px 32px}
  body.page-skills .member .btn{max-width:420px}
  .starters{grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px}
  .starter{min-height:118px;padding:18px;transition:border-color .12s,transform .12s}
  .starter:hover{border-color:var(--ink,#232428);transform:translateY(-2px)}
  .sec h3{font-size:24px}
  .btn{cursor:pointer}
  .btn:hover{filter:brightness(1.06)}
  .door:hover{transform:translateY(-2px)}
  .note{text-align:left}

  /* Forms and checkout cards read better at a comfortable line length */
  .card .field,.card .licence,.card .agree,.card .ticks{max-width:760px}
  .card>.btn{max-width:420px}

  /* ---- Home page ---- */
  body.page-home .wrap{max-width:1120px;min-height:0;padding:44px 48px 56px;gap:28px}
  body.page-home header{display:none}
  body.page-home .add{display:none!important}
  body.page-home .quote{background:#232428;color:#fff;border-radius:22px;padding:34px 40px;gap:10px}
  body.page-home .quote .eyebrow{color:#FFB3BC}
  body.page-home .quote blockquote{font-size:40px;max-width:28ch}
  body.page-home .quote figcaption{color:#D3D4D7}
  body.page-home nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
  body.page-home .door{min-height:150px;padding:24px 26px;align-items:center}
  body.page-home .door .t{font-size:27px}
  body.page-home .door .d{font-size:16px}
  body.page-home .door.small{min-height:150px;background:var(--paper,#fff);border-color:var(--ink,#232428)}
  body.page-home .door.small .t{font-size:27px}
  body.page-home .book{padding:20px 26px;background:var(--paper,#fff);border:1.5px solid var(--line,#E4E1DF)}
  body.page-home .book .q{font-size:22px}
  body.page-home footer{margin-top:8px}

  /* ---- Focus 30-20-10 ---- */
  body.page-focus .rhythm{gap:14px}
  body.page-focus .rhythm button{min-height:104px}
  body.page-focus .rhythm b{font-size:30px}
  body.page-focus .tabs{max-width:560px}
  body.page-focus .viz svg{max-width:420px}
  body.page-focus #spokes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
  body.page-focus #plusList{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
  body.page-focus dialog.sheet{margin:auto;max-width:600px;border-radius:22px}
  body.page-focus dialog.sheet .grab{display:none}

  /* ---- Install page ---- */
  body.page-install .hero .in,body.page-install .main{max-width:820px}
}

@media (min-width:1000px) and (prefers-reduced-motion:reduce){
  .starter,.door,.dnav .dn-i{transition:none}
  .starter:hover,.door:hover{transform:none}
}
