/* uwee-u-learn.css: Learn Jinn's own sheet (/uwee-u/learn only; build six part two UU2, Sarah P2SZLKhXiwBP, Dan's Q27,
   plan KTD13). Linked after uwee-u-shelf.css through the shelf template's `sheet` field, so no other shelf loads it.
   It styles the modules band the page prints between the hero and the shelf: the dictionary open and large over the
   card-drawer still, the templates open beside it with the three templates by name, and the two lessons greyed under
   the templates (their title and "Coming soon", never a link). Every rule is keyed on a learn- class; nothing here
   names a shared part's class. */

.band.learn-mods { padding-block: clamp(40px, 5.5vw, 72px); }
.learn-mods h2 { margin: 0 0 clamp(20px, 2.6vw, 32px); max-width: 22ch; }

/* The grid: the dictionary on the left (7 of 12) across both rows; the templates, then the two greyed lessons, on the right */
.learn-mods__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto 1fr; grid-template-areas: "dict tpl" "dict soon"; gap: clamp(16px, 2vw, 24px); }

.learn-mod { position: relative; display: grid; align-content: start; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--card); color: var(--fg); }
.learn-mod h3 { margin: 0; }
.learn-mod p { margin: 0; color: var(--muted); }

/* The dictionary: the picture full width over the name and the line; the whole card is the link's target */
.learn-mod--dict { grid-area: dict; grid-template-rows: auto 1fr; overflow: clip; transition: box-shadow .3s cubic-bezier(0.16, 1, 0.3, 1), transform .3s cubic-bezier(0.16, 1, 0.3, 1); }
.learn-mod__pic { aspect-ratio: 3 / 2; overflow: clip; background: var(--navy); }
.learn-mod__pic img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.learn-mod__body { display: grid; align-content: start; gap: 10px; padding: clamp(20px, 2.4vw, 30px); }
.learn-mod--dict h3 { font-size: clamp(1.45rem, 1.1rem + 1.1vw, 2rem); line-height: 1.15; max-width: 24ch; text-wrap: balance; }
.learn-mod--dict p { max-width: 52ch; font-size: 1.02rem; line-height: 1.5; }
.learn-mod__link { color: inherit; text-decoration: none; }
.learn-mod__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* the whole card is the link */
.learn-mod--dict:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.learn-mod--dict:hover .learn-mod__link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.learn-mod__link:focus-visible { outline: none; }
.learn-mod--dict:has(.learn-mod__link:focus-visible) { outline: 2px solid var(--ink); outline-offset: 4px; }

/* The templates: the page's name as the link, its line, then the three templates as rows */
.learn-mod--tpl { grid-area: tpl; gap: 8px; padding: clamp(20px, 2.2vw, 28px); }
.learn-mod--tpl h3 { font-size: clamp(1.2rem, 1rem + .6vw, 1.45rem); line-height: 1.2; }
.learn-mod--tpl h3 a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.learn-mod--tpl h3 a:hover { text-decoration-thickness: 2px; }
.learn-mod--tpl > p { font-size: .95rem; line-height: 1.45; }
.learn-mod__list { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.learn-mod__list li { position: relative; display: grid; gap: 2px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.learn-mod__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.learn-mod__list a { font-family: var(--ui); font-size: .98rem; font-weight: 700; color: var(--fg); text-decoration: none; }
.learn-mod__list a::after { content: ""; position: absolute; inset: 0; } /* the whole row is the link */
.learn-mod__list li:hover a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.learn-mod__list a:focus-visible { outline: none; }
.learn-mod__list li:has(a:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: var(--radius-sm); }
.learn-mod__list span { font-size: .9rem; line-height: 1.4; color: var(--muted); }

/* The two lessons, greyed: a dashed outline, the title alone and centered in its card (build eight P3: Sarah
   asked for the Coming soon pill to go), the default cursor, no link. Go-live (Sarah eo-wP2YdXtrl, 2026-11-17): the
   templates card's surface color (.learn-mod, var(--card)) instead of no fill; the outline and the grey title stay. */
.learn-mods__soon { grid-area: soon; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 18px); margin: 0; padding: 0; list-style: none; } /* the two fill what the dictionary leaves beside them */
.learn-soon { display: grid; align-content: center; gap: 10px; min-height: 120px; padding: clamp(16px, 1.8vw, 20px); border: 1px dashed color-mix(in srgb, var(--ink-3) 55%, transparent); border-radius: var(--radius); background: var(--card); color: var(--ink-3); cursor: default; }
.learn-soon h3 { margin: 0; font-size: clamp(1.05rem, .95rem + .35vw, 1.2rem); line-height: 1.25; color: var(--ink-2); text-wrap: balance; }
/* Build six part two A3: Biscuit's building site (square) leads the greyed row, the two lessons beside it, three across,
   so the row keeps its height and the dictionary still ends near it. The picture reserves its square before it loads. */
.learn-mods__soon:has(.learn-soon-pic) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.learn-soon-pic { aspect-ratio: 1 / 1; overflow: clip; border-radius: var(--radius); background: var(--paper-2); }
.learn-soon-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.learn-mods__soon:has(.learn-soon-pic) .learn-soon { min-height: 0; }

@media (prefers-reduced-motion: reduce) {
  .learn-mod--dict { transition: none; }
  .learn-mod--dict:hover { transform: none; }
}

/* On a wide screen the dictionary's picture is a wider band, so its card ends near the bottom of the right column */
@media (min-width: 1200px) { .learn-mod__pic { aspect-ratio: 2 / 1; } }

/* Under 900px the three stack: the dictionary, the templates, then the two lessons side by side (one above the other on a phone) */
@media (max-width: 899px) {
  .learn-mods__grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "dict" "tpl" "soon"; }
}
@media (max-width: 540px) {
  .learn-mods__soon { grid-template-columns: minmax(0, 1fr); }
  .learn-soon { min-height: 0; }
  .learn-mods__soon:has(.learn-soon-pic) { grid-template-columns: minmax(0, 1fr); }
  .learn-soon-pic { aspect-ratio: 3 / 2; }
  .learn-soon-pic img { object-position: 50% 35%; }
}

/* Build six part two FIX-11 (walk: the modules band at 1024). From 900 to 1099 wide the right column is too narrow for
   the greyed row: three across, each lesson tile was 103 to 117px wide, so its 101px "Coming soon" tag ran into the
   dashed edge, and the dictionary, spanning both rows, stretched to the templates plus that row with 125 to 160px of
   empty card under its words. Here the greyed row runs the full width under both cards (Biscuit's square, then the two
   lessons, the tag and title centred in each), so the dictionary and the templates share one row and end together;
   the dictionary's picture is a 16:9 band so its card matches the templates' height. */
/* FIX-13a (look2 item 4): from 1100 to 1199 the row stood under the templates, three across, and the two lessons were
   squeezed (their titles wrapped to three lines beside Biscuit's picture), so the arrangement above runs up to 1199. */
@media (min-width: 900px) and (max-width: 1199.98px) {
  .learn-mods__grid { grid-template-rows: auto auto; grid-template-areas: "dict tpl" "soon soon"; }
  .learn-mod__pic { aspect-ratio: 16 / 9; }
  .learn-mods__soon:has(.learn-soon-pic) { grid-template-columns: clamp(120px, 14vw, 156px) repeat(2, minmax(0, 1fr)); }
  .learn-mods__soon:has(.learn-soon-pic) .learn-soon { align-content: center; }
}
/* From 1100 the templates' lines wrap less and its card grows shorter than a 16:9 picture over the dictionary's words
   (about 200px of empty card at 1199), so here the picture fills what the templates card leaves: the two still end together. */
@media (min-width: 1100px) and (max-width: 1199.98px) {
  .learn-mod--dict { grid-template-rows: minmax(180px, 1fr) auto; }
  .learn-mod__pic { position: relative; aspect-ratio: auto; }
  .learn-mod__pic img { position: absolute; inset: 0; }
}
