/* ---- H4 · learn: Discover, true to the app (E7) ----------------------------- */
/* G24: the user's title and line are longer than E7's, so the head takes their
   width, two lines and one, as before (a third line pushed step 4 down).
   G37: "macOS" made it longer again */
.learn .head{max-width:1120px}
.learn .head .h2{max-width:17.5em}
.learn .head .line{max-width:45em}
.glyphs{position:absolute;width:0;height:0;overflow:hidden}

/* E18b: each step gets about 45% of a screen of scroll, half what §9 gave
   ("the scroll length is very large"), so the next step's words are on
   screen below the one shown, grey until its picture comes; one already
   seen settles to a softer grey, darker than those to come. F4: the steps
   start right under the heading, not a sixth of a screen down. */
@media (min-width:901px){
  html.motion #learn .chapter.pin[data-step] .steps{grid-auto-rows:minmax(45vh,auto)}
  /* every step's words one height, so each sits where the last did: Q7b's line
     is one line, and centred shorter it put step 4's title under the screen */
  html.motion #learn .chapter.pin[data-step] .txt p{min-height:2lh}
  html.motion #learn .chapter.pin[data-step] .step:has(~ .step .txt.on) .txt{opacity:.55}
}

/* stacked (a phone, a tablet, a still), the four steps sit a little closer,
   and each step's title and line come before its picture (E18a, the user:
   "they should be on top of the images") */
#learn .chapter .steps{gap:clamp(32px,3.6vw,44px)}
#learn .chapter .step>.txt{order:-1}

/* step 1: the role tabs, buttons that work */
.roletabs{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px}
.roletabs button{font:600 13px/1 var(--ui);padding:10px 14px;min-height:36px;border-radius:var(--r-pill);border:1px solid var(--edge);background:#fff;color:var(--dim);background-clip:padding-box;cursor:pointer;transition:background-color 160ms ease-out,color 160ms ease-out,border-color 160ms ease-out}
.roletabs button:hover{color:var(--ink)}
.roletabs button[aria-selected="true"]{background:var(--ink);border-color:var(--ink);color:#fff}
.roletabs button:focus-visible{outline:2px solid var(--key);outline-offset:2px}
/* the roles' cards share one place and cross-fade (page.js) */
.learn .roles{display:grid}
.learn .rp{grid-area:1/1;opacity:0;transition:opacity 220ms var(--ease-out)}
.learn .rp.on{opacity:1}
html.still .learn .rp{transition:none}

/* the app's window: its sidebar (Glyph, at SidebarCell's sizes), its cards (StruckIcons).
   G38 (the user, 2026-10-14): and its title bar, as macOS draws the app's
   (DashboardWindowController: titled "Axiom Forge"), white over a hairline,
   the title beside the lights, so the pictures read as a Mac app, not a
   phone's. The lights are the kit's, as on the site's Excel windows */
.learn .afbar{grid-column:1/-1;position:relative;height:30px;display:flex;align-items:center;padding-left:74px;background:#fff;border-bottom:1px solid #EAEAEA;font:600 12.5px/1 var(--ui);color:#3C3C3C;white-space:nowrap}
.learn .afbar i{position:absolute;top:9px;width:12px;height:12px;border-radius:50%;box-shadow:inset 0 0 0 .5px rgba(0,0,0,.12)}
.learn .afbar i:nth-child(1){left:12px;background:#DD6B59}
.learn .afbar i:nth-child(2){left:32px;background:#EAC56D}
.learn .afbar i:nth-child(3){left:52px;background:#64C365}
.learn .afw{grid-template-columns:72px minmax(0,1fr)}
.learn .afw .side{display:flex;flex-direction:column;gap:4px;padding:12px 4px}
.learn .afw .side .si{display:grid;justify-items:center;gap:5px;padding:6px 0;border-radius:10px;font:500 10.5px/1 var(--ui);color:var(--dim)}
.learn .afw .side .si svg{width:20px;height:20px;color:#5C6675}
.learn .afw .side .si.on{background:#fff;color:var(--key);font-weight:600;box-shadow:var(--shadow-raised)}
.learn .afw .side .si.on svg{color:var(--key)}
.learn .afw .side .foot{display:flex;flex-direction:column;gap:4px;margin-top:auto;padding:0;background:none;box-shadow:none}
.learn .afw .side .si.pulse svg{animation:si-pulse 420ms var(--ease-out)}
@keyframes si-pulse{40%{transform:scale(1.22)}}
.learn .afw .main{position:relative;min-height:0}
.learn .dcard h6{gap:10px;font-size:15.5px}
.learn .dcard h6 svg.ic{width:28px;height:28px;flex:none}
.learn .dcard h6 .ct{margin-left:auto;font:700 10.5px/1 var(--mono);color:var(--dim);background:#EEEBE1;border-radius:var(--r-pill);padding:4px 7px}
.learn .dcard .ex{margin:8px 0 6px}
.learn .prog{display:flex;align-items:center;gap:10px;margin:2px 0 6px;font:400 11px/1 var(--ui);color:var(--dim)}
.learn .prog i{flex:1;height:6px;border-radius:3px;background:#EEEBE1}
.learn .drow .tx{display:grid;min-width:0}
.learn .drow .dis{font:500 11px/1 var(--ui);color:#8A909B;margin-left:2px}
.learn .drow .star{margin-left:auto;display:inline-block;transform-origin:50% 55%}
.learn .drow .star.on{color:var(--amber)}

/* step 2: the kit's Excel, framed on View's Freeze Panes, over the card */
.learn .clicked .lxl{position:relative;height:200px;border-radius:var(--r-win);overflow:hidden;background:#fff;border:1px solid var(--edge-win);box-shadow:var(--shadow-stage);margin-bottom:14px}
.learn .clicked .afw .main{min-height:0}
.learn .clicked .drow.new{margin:0 -14px;padding:8px 14px}

/* step 3: the Ribbon map, as the app draws it (DiscoverView, RibbonMapCard) */
.learn .mapcard{padding:12px 14px 14px}
.learn .mapcard h6 .hint{margin-left:auto;font:400 10.5px/1.2 var(--ui);color:#8A909B;text-align:right}
.learn .mrows{display:grid;gap:4px;margin-top:12px}
.learn .mrow{display:grid;grid-template-columns:74px 40px minmax(0,1fr);gap:6px;align-items:center}
.learn .mrow .tn{font:600 11.5px/1 var(--ui);color:var(--ink);white-space:nowrap}
.learn .mrow .n{font:600 9.5px/1 var(--mono);color:#8A909B;text-align:right}
.learn .tiles{display:flex;gap:3px}
.learn .tiles i{position:relative;flex:1 1 10px;min-width:10px;height:22px;border-radius:5px;background:#EDEAE0;container-type:inline-size;font:600 9.5px/22px var(--ui);color:var(--ink)}
.learn .tiles i>span{display:block;padding:0 5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@container (max-width:52px){.learn .tiles i>span{display:none}}
.learn .s1{background:#BCD5F3!important}.learn .s2{background:#7FB0EA!important}
.learn .s3{background:#3D86DE!important;color:#fff}.learn .s4{background:#0A66D6!important;color:#fff}
.learn .tiles i.ess::after,.learn .legend .dot,.learn .mlist .dot{content:"";position:absolute;top:3px;right:3px;width:6px;height:6px;border-radius:50%;background:var(--amber)}
.learn .tiles i.pick{box-shadow:0 0 0 2px var(--ink);z-index:1}
.learn .legend{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin-top:10px;font:400 10px/1 var(--ui);color:var(--dim)}
.learn .legend i{width:18px;height:10px;border-radius:3px;background:#EDEAE0}
.learn .legend .dot,.learn .mlist .dot{position:static;margin-left:8px}
.learn .mdetail{margin-top:12px;padding:10px 12px 6px;border:1px solid #E4E0D3;border-radius:10px;background:#F7F5EE}
.learn .mdetail h4{margin:0 0 4px;font:600 12px/1.2 var(--ui);color:var(--ink)}
.learn .mlist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:16px}
.learn .mlist .drow{padding:5px 0;border:0;gap:7px}
.learn .mlist .nm{font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.learn .mlist .dot{margin:0}
/* the click: the pointer comes to Editing, presses, and its list appears */
.learn .mptr{position:absolute;left:46%;top:44%;width:13px;height:18px;z-index:3;opacity:0;pointer-events:none;transform-origin:2px 2px}
html.motion .learn .mapfr .tiles i.pick{animation:map-pick 1ms 780ms both}
html.motion .learn .mapfr .mptr{animation:map-ptr 1.1s 150ms both}
html.motion .learn .mapfr .mdetail{animation:map-list 320ms var(--ease-out) 820ms both}
html.motion .learn .mapfr:not(.on) :is(.tiles i.pick,.mptr,.mdetail){animation:none}
html.motion .learn .chapter.pin[data-step] .mapfr:not(.on) .mdetail{opacity:0}
@keyframes map-ptr{
  0%{opacity:0;transform:translate(64px,46px);animation-timing-function:cubic-bezier(.4,0,.1,1)}
  12%{opacity:1}
  56%{transform:translate(0,0);animation-timing-function:ease-out}
  62%{transform:scale(.86);animation-timing-function:ease-out}
  70%,100%{opacity:1;transform:none}
}
@keyframes map-pick{from{box-shadow:none}to{box-shadow:0 0 0 2px var(--ink)}}
@keyframes map-list{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* step 4: Discover and Favorites share the window; the star's row flies */
.learn .favfr .main{display:grid}
.learn .favfr .view{grid-area:1/1;display:grid;gap:12px;align-content:start;min-width:0}
.learn .favfr .view>h5{margin:0;font:800 22px/1 var(--display);font-stretch:112%}
.learn .favfr .view>p{font-size:12.5px;color:var(--dim);margin-top:-6px}
.learn .favfr[data-view="disc"] .view.fav,.learn .favfr[data-view="fav"] .view.disc{opacity:0;pointer-events:none}
.learn .fcard{padding:10px 14px 4px}
.learn .fcard .grp{margin-top:8px;font:700 9.5px/1 var(--ui);letter-spacing:.08em;text-transform:uppercase;color:#5C6675}
.learn .fcard .drow{padding:6px 0}
.learn .flyrow{position:absolute;left:0;top:0;margin:0;z-index:4;border:0;border-radius:6px;background:#fff;box-shadow:0 0 0 6px #fff,0 12px 26px -8px rgba(16,21,29,.3);will-change:transform}

@media (max-width:600px){
  /* the app's narrow window: no sidebar, as site.css has it */
  .learn .afw{grid-template-columns:minmax(0,1fr)}
  .learn .afw .side{display:none}
  .learn .drow .dis{display:none}
  .roletabs button{min-height:44px}
  .learn .clicked .lxl{height:200px}
  .learn .mrow{grid-template-columns:62px 36px minmax(0,1fr)}
  .learn .mapcard h6 .hint{display:none}
  .learn .mlist{grid-template-columns:minmax(0,1fr)}
}
