/* ==========================================================================
   unified.css - the ONE Universe layout system (rules: D:/MARCOS/MARCOS3-UI/UNIFIED.md)
   Copy this file unchanged into each platform folder and link it AFTER
   tokens.css, the kit (mat-ui.min.css) and the platform shell css.
   It only arranges library parts: library tokens only, no new colour,
   no new shadow, no new radius. Every class starts with "u-".
   ========================================================================== */

/* 1. Scale ---------------------------------------------------------------- */
:root{
  --u-max:var(--mat-content-max);        /* 1200px: one container width      */
  --u-gutter:var(--mat-gutter);          /* 16px page gutter (mobile)        */
  --u-gap:var(--mat-space-4);            /* 16px grid gap (mobile)           */
  --u-pad:var(--mat-space-4);            /* 16px card padding (mobile)       */
  --u-stack:var(--mat-space-3);          /* 12px stack inside head and card  */
  --u-head:var(--mat-space-8);           /* 32px head -> content (mobile)    */
  --u-cta:var(--mat-space-6);            /* 24px content -> CTA row          */
  --u-sec:var(--mat-space-16);           /* 64px section -> section (mobile) */
  --u-strip:var(--mat-space-6);          /* 24px strip under its section     */
  --u-split-gap:var(--mat-space-16);     /* 64px between split columns       */
}
@media (min-width:768px){
  :root{--u-gutter:var(--mat-space-6);--u-gap:var(--mat-space-6);--u-pad:var(--mat-space-6);--u-strip:var(--mat-space-8)}
}
@media (min-width:1024px){
  :root{--u-head:var(--mat-space-10);--u-sec:var(--mat-space-24)}
}

/* 2. Container: the nav bar box, every section and the footer inner share one edge */
.u-main,.u-wrap{box-sizing:border-box;inline-size:100%;max-inline-size:calc(var(--u-max) + 2 * var(--u-gutter));margin-inline:auto;padding-inline:var(--u-gutter)}
.u-main{display:block;padding-block:var(--mat-space-4) var(--u-sec);min-block-size:100vh;min-block-size:100svh}
.u-main [hidden],.u-wrap [hidden]{display:none!important}
.u-main :where(h1,h2,h3,h4){overflow-wrap:break-word;text-wrap:balance}
.u-main :where(p,li){overflow-wrap:break-word;text-wrap:pretty}
.u-main :where([id]){scroll-margin-block-start:96px}   /* any jump target clears the fixed nav */
/* the library footer and the nav bar keep their own 1200px inner; only the gutter is made the same */
.mat-footer{padding-inline:var(--u-gutter)}

/* 3. Section rhythm --------------------------------------------------------- */
.u-sec{box-sizing:border-box;inline-size:100%;max-inline-size:var(--u-max);margin:var(--u-sec) auto 0;scroll-margin-block-start:96px}
.u-main>.u-sec:first-child,.u-wrap>.u-sec:first-child{margin-block-start:0}
.u-sec--strip{margin-block-start:var(--u-strip)}

/* 3a. Head: eyebrow -> heading -> lead (-> note). Left aligned, 640px max ---- */
.u-head{display:grid;justify-items:start;gap:var(--u-stack);max-inline-size:640px;margin:0 0 var(--u-head);text-align:start}
.u-head>*{margin:0;min-inline-size:0;max-inline-size:100%}
.u-head :where(h2){color:var(--mat-text-100)}
.u-head .mat-overline{color:var(--mat-text-300)}
.u-head .mat-overline b{margin-inline-end:var(--mat-space-2);color:var(--mat-text-100);font-weight:inherit}
.u-head .mat-body-lg{color:var(--mat-text-200)}
.u-head__note{color:var(--mat-text-300)}
/* buttons that jump to or filter the content below sit in the head, as its last slot */
.u-head>.u-actions{justify-self:stretch;margin-block-start:var(--mat-space-3)}

/* 3b. CTA row: primary first, at most one primary -------------------------- */
.u-actions{display:flex;flex-wrap:wrap;align-items:center;gap:var(--mat-space-3);margin:var(--u-cta) 0 0;padding:0}

/* 3c. Split section: copy left, content right (same columns as mat-faq) ----- */
.u-split__body{min-inline-size:0}
@media (min-width:1024px){
  .u-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.6fr);grid-template-rows:auto 1fr;column-gap:var(--u-split-gap);align-items:start}
  .u-split>.u-head,.u-split>.u-part__head{grid-column:1;grid-row:1;margin-block-end:0}
  .u-split>.u-split__body{grid-column:2;grid-row:1 / span 2}
  .u-split>.u-actions{grid-column:1;grid-row:2}
}

/* 3d. Hero: the library split hero as it ships - copy left, visual right, two
       columns from 1024px (the same step as every split), 64px apart */
.u-main>.u-hero{margin:0 auto}          /* nav -> hero is the 16px top padding of .u-main, on every platform */
.u-hero .mat-hero__inner{grid-template-columns:minmax(0,1fr);gap:var(--mat-space-10);align-items:center}
@media (min-width:1024px){
  .u-hero .mat-hero__inner{grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:var(--u-split-gap)}
}

/* 4. Card grid: one gap, equal widths, equal heights ------------------------ */
.u-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--u-gap);margin:0;padding:0;list-style:none}
@media (min-width:640px){
  .u-grid--2,.u-grid--3,.u-grid--4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .u-grid>.u-span{grid-column:1 / -1}                 /* the odd card fills the 2-up row */
}
@media (min-width:1024px){
  .u-grid--3{grid-template-columns:repeat(3,minmax(0,1fr))}
  .u-grid--3>.u-span{grid-column:auto}
}
@media (min-width:1280px){
  .u-grid--4{grid-template-columns:repeat(4,minmax(0,1fr))}
  .u-grid--4>.u-span{grid-column:auto}
}
.u-grid>.u-wide{grid-column:1 / -1}                   /* always a full row */

/* 4a. Card = the Box shell itself is the grid item -------------------------- */
/* .mat-box.u-card: as strong as the kit's own phone padding rule, and later, so --u-pad always decides */
.mat-box.u-card,.mat-box.u-panel{--mat-box-pad:var(--u-pad)}
.u-card,.u-panel{box-sizing:border-box;min-inline-size:0;max-inline-size:none;margin:0}
.u-card{display:flex;flex-direction:column;block-size:100%}
.u-card>.mat-box__content{flex:1 1 auto;display:flex;flex-direction:column;gap:var(--u-stack)}
.u-card>.mat-box__content>*{margin:0;min-inline-size:0}
.u-card>.mat-box__content>:where(span,a:not(.u-hit)){align-self:flex-start;justify-self:start}
.u-card>.mat-box__content>.u-foot,
.u-card>.mat-box__content>.u-card__actions,
.u-card>.mat-box__content>.mat-features__link{margin-block-start:auto}
.u-card.mat-box20{margin-block-start:12px;block-size:calc(100% - 12px)}     /* Box20: its chip sits 12px above the frame */
.u-card.mat-box20>.mat-box__content{padding-block-start:calc(var(--u-pad) + var(--mat-space-2))}  /* clear of the chip */
.u-card :where(h3){color:var(--mat-text-100)}
.u-card .mat-features__text,.u-card__text{color:var(--mat-text-300)}

/* 4b. Row alignment: the same slot sits on the same line in every card of a row.
       Put data-u-rows="N" on the grid; every card then holds exactly N slots. */
.u-grid[data-u-rows]{--u-rows:2}
.u-grid[data-u-rows="3"]{--u-rows:3}.u-grid[data-u-rows="4"]{--u-rows:4}
.u-grid[data-u-rows="5"]{--u-rows:5}.u-grid[data-u-rows="6"]{--u-rows:6}
.u-grid[data-u-rows="7"]{--u-rows:7}.u-grid[data-u-rows="8"]{--u-rows:8}
@supports (grid-template-rows:subgrid){
  @media (min-width:640px){
    .u-grid[data-u-rows]>.u-card{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:subgrid;grid-row:span var(--u-rows);row-gap:var(--u-stack);block-size:auto}
    .u-grid[data-u-rows]>.u-card>.mat-box__content{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:subgrid;grid-row:1 / -1;row-gap:var(--u-stack);align-items:start}
    .u-grid[data-u-rows]>.u-card>.mat-box__content>.u-foot,
    .u-grid[data-u-rows]>.u-card>.mat-box__content>.u-card__actions,
    .u-grid[data-u-rows]>.u-card>.mat-box__content>.mat-features__link{margin-block-start:0;align-self:end}
    /* the closing link is always in the last slot, also in a card that leaves a slot out */
    .u-grid[data-u-rows]>.u-card>.mat-box__content>.u-foot,
    .u-grid[data-u-rows]>.u-card>.mat-box__content>.mat-features__link{grid-row:-2 / -1}
    /* product anatomy: fixed slot lines, so a card may leave a slot out */
    .u-grid[data-u-rows="8"] .u-card__media{grid-row:1}
    .u-grid[data-u-rows="8"] .u-card__kicker{grid-row:2}
    .u-grid[data-u-rows="8"] .u-card__title{grid-row:3}
    .u-grid[data-u-rows="8"] .u-card__tagline{grid-row:4}
    .u-grid[data-u-rows="8"] .u-card__text{grid-row:5}
    .u-grid[data-u-rows="8"] .u-card__text--tall{grid-row:4 / span 2}
    .u-grid[data-u-rows="8"] .u-card__access{grid-row:6}
    .u-grid[data-u-rows="8"] .u-card__actions{grid-row:7;align-self:end}
    .u-grid[data-u-rows="8"] .u-card__src{grid-row:8}
  }
}

/* 4c. Product card slots: media, kicker, title, tagline, text, access, actions, source */
.u-card__media{aspect-ratio:16 / 9;overflow:hidden;border:1px solid var(--mat-line-100);border-radius:var(--mat-radius-md);background:var(--mat-bg-000)}
.u-card__media img{display:block;inline-size:100%;block-size:100%;object-fit:cover}
.u-card__media--fit img{object-fit:contain}
.u-card__media--mark{display:grid;place-items:center;align-self:stretch;aspect-ratio:auto;min-block-size:120px;border:0;background:none}  /* an emblem, no picture frame */
.u-card__media--mark img{inline-size:96px;block-size:96px;object-fit:contain}
.u-card__kicker{display:flex;align-items:center;justify-content:space-between;gap:var(--mat-space-2);min-block-size:26px}
.u-card__kicker .mat-overline{color:var(--mat-text-300)}
.u-card__tagline{color:var(--mat-text-200)}
.u-card__access{display:grid;gap:var(--u-stack);padding-block-start:var(--u-stack);border-block-start:1px solid var(--mat-line-100);color:var(--mat-text-200)}
.u-card__access>*{margin:0}
.u-card .u-actions{margin:0;gap:var(--mat-space-2)}
.u-card__src{color:var(--mat-text-400)}

/* 4d. Whole-card link: the hit area sits under the buttons */
.u-hit{position:absolute;inset:0;z-index:1;border-radius:var(--mat-box-radius,var(--mat-radius-xl))}
.u-hit:focus-visible{outline:2px solid var(--mat-accent);outline-offset:-2px}
.u-card .u-actions,.u-card .u-raise{position:relative;z-index:2}

/* 5. Panel = ONE shell around a table, list, window or readout -------------- */
.u-panel{display:block}
.u-panel>.mat-box__content{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--mat-space-4)}
.u-panel>.mat-box__content>*{margin:0;min-inline-size:0}
.u-panel__head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--mat-space-2) var(--mat-space-4)}
.u-panel__head>*{margin:0}
/* a text link in a panel is only itself: the kit's stretched card-link layer would cover every row link */
.u-panel .mat-features__link::after{content:none}
.u-panel :where(h3){color:var(--mat-text-100)}
.u-panel .mat-table__scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
/* a row header (th scope="row") is the first cell of its row like a td: same hairline, same text colour */
.u-main .mat-table__table tbody th{border-block-end:1px solid var(--mat-line-100);color:var(--mat-text-100);font-weight:600}
.u-main .mat-table__table tbody tr:last-child th{border-block-end:0}
.u-panel+.mat-alert,.mat-alert+.u-panel,.u-grid+.mat-alert,.u-panel+.mat-accordion{margin-block-start:var(--u-gap)}
/* never a bordered card inside a shell: a notice inside a panel goes flat */
.u-panel .mat-alert{padding:0;border:0;border-radius:0;background:none;box-shadow:none}
.u-panel .mat-alert::before,.u-panel .mat-alert::after{display:none}
/* a table inside a panel or an accordion on a narrow screen: the table plate stays (one surface, as on the desktop) and the
   rows are plain with a hairline between them, not one bordered card per row and not rows straight on the shell's grid.
   Low weight on purpose (:where): a page that lays its phone rows out itself keeps its own rule. */
@container (max-width:560px){
  :where(.u-panel,.mat-accordion) .mat-table:not([data-mat-mobile="scroll"]) .mat-table__scroll{border:1px solid var(--mat-line-200);background:var(--mat-bg-100);box-shadow:var(--mat-bevel)}
  :where(.u-panel,.mat-accordion) .mat-table[data-mat-sortable]:not([data-mat-mobile="scroll"]) thead tr{padding:var(--mat-space-3) var(--mat-space-4);border-block-end:1px solid var(--mat-line-100)}
  :where(.u-panel,.mat-accordion) .mat-table:not([data-mat-mobile="scroll"]) tbody{gap:0}
  :where(.u-panel,.mat-accordion) .mat-table:not([data-mat-mobile="scroll"]) tbody tr{padding:var(--mat-space-2) var(--mat-space-4);border:0;border-block-end:1px solid var(--mat-line-100);border-radius:0;background:none;box-shadow:none}
  :where(.u-panel,.mat-accordion) .mat-table:not([data-mat-mobile="scroll"]) tbody tr:last-child{border-block-end:0}
  :where(.u-panel,.mat-accordion) .mat-table:not([data-mat-mobile="scroll"]) tbody td:first-child{padding-block:8px;margin-block-end:0;border-block-end:0}
  /* the library's phone layout knows td only: a row header starts on the same edge as the labels under it */
  .u-main .mat-table:not([data-mat-mobile="scroll"]) tbody th{display:block;padding:8px 0;border-block-end:0;text-align:start;white-space:normal}
}
.u-empty{display:grid;justify-items:start;gap:var(--u-stack);max-inline-size:var(--mat-measure)}
.u-empty>*{margin:0}
.u-empty .mat-body-sm,.u-empty .mat-body{color:var(--mat-text-300)}
.u-note{color:var(--mat-text-200)}

/* 5a. Rows inside a panel: name left, value right, meta below --------------- */
.u-rows{display:grid;grid-template-columns:minmax(0,1fr);column-gap:var(--mat-space-12);margin:0;padding:0;list-style:none;overflow:hidden}
@media (min-width:768px){.u-rows--2,.u-rows--3{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:1280px){.u-rows--3{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* hairline ABOVE each row, pulled up 1px: the first line of every column is cut off by the list edge,
   so there is a line between rows and none above the first or under the last, in 1, 2 or 3 columns */
.u-rows>li{min-inline-size:0;margin-block-start:-1px;border-block-start:1px solid var(--mat-line-100)}
.u-rows>.u-rows__lead{grid-column:1 / -1}        /* a lead row spans all columns, same anatomy */
.u-rows>li>a{box-sizing:border-box;display:grid;grid-template-columns:minmax(min-content,1fr) auto;align-items:center;gap:2px var(--mat-space-4);min-block-size:var(--mat-control-lg);padding-block:var(--mat-space-3);color:var(--mat-text-100);text-decoration:none}
.u-rows>li>a>:nth-child(1){min-inline-size:0;font:600 14px/20px var(--font-mat-text)}
.u-rows>li>a>:nth-child(1) i{margin-inline-start:var(--mat-space-2);color:var(--mat-text-400);font:500 11px/16px var(--font-mat-mono);letter-spacing:.08em}
.u-rows>li>a>:nth-child(2){display:flex;flex-wrap:wrap;justify-content:flex-end;gap:var(--mat-space-1);font:500 14px/20px var(--font-mat-mono);font-variant-numeric:tabular-nums;text-align:end}
.u-rows>li>a>:nth-child(3){grid-column:1 / -1;color:var(--mat-text-300);font:400 12px/16px var(--font-mat-text)}
.u-rows .is-up{color:var(--mat-positive)}
.u-rows .is-dn{color:var(--mat-negative)}
.u-rows>li>a:focus-visible{outline:2px solid var(--mat-accent);outline-offset:-2px;box-shadow:none;border-radius:var(--mat-radius-xs)}  /* inside the row: the list clips */
@media (hover:hover) and (pointer:fine){.u-rows>li>a:hover>:nth-child(1){color:var(--mat-accent-hover)}}

/* 6. Stats strip: ONE Box07, flat figures, hairline dividers ----------------
   Phone: one figure per row, number left, label and source right; the number
   column is as wide as the widest number (subgrid), so every label starts on
   one line. From 1024px: one row, equal columns. A hidden figure leaves no gap. */
.u-stats{display:grid;grid-template-columns:auto minmax(0,1fr);gap:0 var(--mat-space-4);margin:0;padding:0}
.u-stats>.mat-stat{grid-column:1 / -1;display:grid;grid-template-columns:minmax(0,1fr);gap:var(--mat-space-1) var(--mat-space-4);align-items:start;overflow:visible;min-inline-size:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;transform:none}
.u-stats>.mat-stat::before,.u-stats>.mat-stat::after{display:none}
.u-stats>.mat-stat:not([hidden])~.mat-stat{margin-block-start:var(--mat-space-4);padding-block-start:var(--mat-space-4);border-block-start:1px solid var(--mat-line-100)}
.u-stats .mat-stat__value{order:-1;margin:0}
.u-stats .mat-stat__head{display:block;min-block-size:0}
.u-stats .mat-stat__label{margin:0;color:var(--mat-text-200);font:400 13px/20px var(--font-mat-text);letter-spacing:0;text-transform:none}
.u-stats .mat-stat__row{margin:0}
.u-stats .mat-stat__foot{color:var(--mat-text-400)}
@supports (grid-template-columns:subgrid){
  @media (max-width:1023.98px){
    .u-stats>.mat-stat{grid-template-columns:subgrid}
    .u-stats .mat-stat__value{grid-column:1;grid-row:1 / span 2}
    .u-stats .mat-stat__head{grid-column:2;grid-row:1;padding-block-start:var(--mat-space-2)}
    .u-stats .mat-stat__row{grid-column:2;grid-row:2}
  }
}
@media (min-width:1024px){
  .u-stats{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:0 var(--mat-space-6)}
  .u-stats>.mat-stat{grid-column:auto;display:flex;flex-direction:column;gap:var(--mat-space-1)}
  .u-stats>.mat-stat:not([hidden])~.mat-stat{margin-block-start:0;padding-block-start:0;border-block-start:0;padding-inline-start:var(--mat-space-6);border-inline-start:1px solid var(--mat-line-100)}
  .u-stats .mat-stat__row{margin-block-start:auto;padding-block-start:var(--mat-space-1)}
}
.u-strip__meta{margin-block-start:var(--mat-space-2);padding-block-start:var(--mat-space-5);border-block-start:1px solid var(--mat-line-100)}

/* 7. Small parts ------------------------------------------------------------ */
.u-tags{display:flex;flex-wrap:wrap;align-items:center;gap:var(--mat-space-2);margin:0;padding-inline:0;list-style:none}   /* block padding stays free for the slot it sits in */
.u-tags>li{display:flex;min-inline-size:0}
.u-sec.mat-cta{margin-inline:auto}
.u-main .mat-hero__actions,.u-main .mat-cta__actions{gap:var(--u-stack)}   /* every button row: one gap */

/* 7a. Grouped blocks: related parts under ONE head ---------------------------
   u-stack = 2-3 related blocks as the one content of a section, split body or tab panel.
   u-part  = a former section that now lives in a tab panel: small head (h3 + one line) + ONE block.
   u-split__wide = a row under both columns of a split. Two u-stats groups in one Box07 = two rows. */
.u-stack{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--u-gap)}
.u-stack>*{margin:0;min-inline-size:0}
.u-stack>.u-panel+.mat-alert,.u-stack>.mat-alert+.u-panel,.u-stack>.u-grid+.mat-alert,.u-stack>.u-panel+.mat-accordion{margin-block-start:0}   /* the stack gap is the only gap */
.u-part{min-inline-size:0}
.u-part__head{display:grid;justify-items:start;gap:var(--mat-space-2);max-inline-size:640px;margin:0 0 var(--mat-space-6)}
.u-part__head>*{margin:0}
.u-part__head :where(h3){color:var(--mat-text-100)}
.u-part__head :where(p){color:var(--mat-text-200)}
.u-part__head .mat-overline{color:var(--mat-text-300)}
.u-part__head .mat-overline b{margin-inline-end:var(--mat-space-2);color:var(--mat-text-100);font-weight:inherit}
.u-split__wide{min-inline-size:0;margin-block-start:var(--u-gap)}
@media (min-width:1024px){.u-split>.u-split__wide{grid-column:1 / -1}}
.u-stats+.u-stats{padding-block-start:var(--mat-space-4);border-block-start:1px solid var(--mat-line-100)}

/* 7b. Opt-in parts and library corrections -----------------------------------
   u-lead = the full-row card (u-wide) with two inner columns from 1024px: u-lead__main (kicker, title,
            text, access) left, u-lead__side (rows, figures, list, actions) right; one column below.
   u-stats--stack = a strip whose values are words: value on its own line, label and source below (under 1024px).
   u-table--even  = a compare table: every column the same width. */
.u-lead__main,.u-lead__side{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--u-stack);align-content:start;min-inline-size:0}
.u-lead__main>*,.u-lead__side>*{margin:0;min-inline-size:0}
.u-grid>.u-card.u-lead,.u-grid[data-u-rows]>.u-card.u-lead{display:flex;grid-row:auto;block-size:auto}
.u-grid>.u-card.u-lead>.mat-box__content,.u-grid[data-u-rows]>.u-card.u-lead>.mat-box__content{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:none;grid-row:auto;gap:var(--u-stack);align-items:start}
.u-grid .u-card.u-lead :is(.u-card__media,.u-card__kicker,.u-card__title,.u-card__tagline,.u-card__text,.u-card__access,.u-card__actions,.u-card__src){grid-row:auto}
@media (min-width:1024px){
  .u-grid>.u-card.u-lead>.mat-box__content,.u-grid[data-u-rows]>.u-card.u-lead>.mat-box__content{grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:var(--u-split-gap)}
}
@media (max-width:1023.98px){
  .u-stats.u-stats--stack>.mat-stat{grid-template-columns:minmax(0,1fr)}
  .u-stats.u-stats--stack :is(.mat-stat__value,.mat-stat__head,.mat-stat__row){grid-column:1;grid-row:auto}
  .u-stats.u-stats--stack .mat-stat__head{padding-block-start:0}
  /* stacked split: the button row keeps clear of the wide row under it */
  .u-split>.u-actions+.u-split__wide{margin-block-start:var(--u-head)}
}
.u-table--even .mat-table__table{table-layout:fixed}
/* library card titles off the scale (course 19px, lessons 17px) sit on the card title size */
.u-main :is(.mat-course__title,.mat-lessons__title){font-size:18px;line-height:24px}
/* plans stretched to one height: the list rows keep the library gap, the free space goes under the list */
.u-main .mat-pricing__list{align-content:start}
/* list rows in a panel start on the panel's own edge, like its head */
.u-panel .mat-list--divided .mat-list__row{padding-inline:0}
/* a note under a panel's content or under a section never runs wider than the reading measure */
.u-panel>.mat-box__content>.u-note,.u-sec>.u-note,.u-stack>.u-note{max-inline-size:var(--mat-measure)}
/* a list as a stack carries no bullet indent; a notice inside an accordion answer is flat like in a panel */
ul.u-stack,ol.u-stack{padding:0;list-style:none}
.u-main .mat-accordion__content .mat-alert{padding:0;border:0;border-radius:0;background:none;box-shadow:none}
.u-main .mat-accordion__content .mat-alert::before,.u-main .mat-accordion__content .mat-alert::after{display:none}
/* course cards of one row end on one line */
.u-main .u-grid>li:has(>.mat-course:only-child){display:grid;min-inline-size:0}
@media (min-width:1024px){
  /* opt-in u-split--sticky: column 1 holds the head only (its buttons inside the head); it stays in view beside a tall body */
  .u-split.u-split--sticky>.u-head{grid-row:1 / span 2;position:sticky;inset-block-start:96px}
}
@media (pointer:coarse){
  .u-main .mat-tabs--pill .mat-tabs__tab{min-block-size:var(--mat-hit)}
  .u-main .mat-tabs--pill .mat-tabs__ind{block-size:var(--mat-hit)}
}

/* 7c. Library parts inside the unified layout ---------------------------------
   Plain feature card (li.mat-features__item.u-card, the card kind for 5 to 8 cards in one grid): same padding step
   and the same slot lines as a Box card. Box14 as a panel keeps the library's own pane grid. The library FAQ as a
   split takes the split's columns and breakpoint (no second sticky rule, one column below 1024px). */
.u-grid>.mat-features__item.u-card{padding:var(--u-pad)}
.u-grid>.mat-features__item.u-card>*{margin:0;min-inline-size:0}
.u-grid>.mat-features__item.u-card>:where(span,a:not(.u-hit)){align-self:flex-start;justify-self:start}
.u-grid>.mat-features__item.u-card>.mat-features__link{margin-block-start:auto;padding-block-start:0}
@supports (grid-template-rows:subgrid){
  @media (min-width:640px){
    /* not the full-row lead card (u-wide): it has its own two-column layout */
    .u-grid[data-u-rows]>.mat-features__item.u-card:not(.u-wide){align-items:start}
    .u-grid[data-u-rows]>.mat-features__item.u-card:not(.u-wide)>.mat-features__link{margin-block-start:0;align-self:end;grid-row:-2 / -1}
  }
}
.u-panel.mat-box14>.mat-box14__panes{gap:0}
.u-split.mat-faq .mat-faq__intro{position:static}
@media (max-width:1023.98px){.u-split.mat-faq{display:block}}

/* 7d. Shared fixes asked by the page workers (11-18 13:15) -------------------
   A strip note keeps the strip's full-width hairline (the reading-measure cap and the flat-alert reset do not reach
   it). A panel head link sits on its title's centre line. One stats group with six figures = two rows of three from
   1024px. A nav action the page hides stays hidden. */
.u-panel>.mat-box__content>.u-note.u-strip__meta{max-inline-size:none}
.u-panel .mat-alert.u-strip__meta{padding-block-start:var(--mat-space-5);border-block-start:1px solid var(--mat-line-100)}
.u-panel__head>.mat-features__link{padding-block:0}
.mat-top-nav__action[hidden]{display:none}
@media (min-width:1024px){
  .u-stats:has(>.mat-stat:nth-child(6):last-child){grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-flow:row;row-gap:var(--mat-space-5)}
  .u-stats:has(>.mat-stat:nth-child(6):last-child)>.mat-stat:nth-child(3n+1){padding-inline-start:0;border-inline-start:0}
  .u-stats:has(>.mat-stat:nth-child(6):last-child)>.mat-stat:nth-child(n+4){padding-block-start:var(--mat-space-5);border-block-start:1px solid var(--mat-line-100)}
}

/* 8. Mobile ----------------------------------------------------------------- */
@media (max-width:1023.98px){
  .u-split>.u-split__body+.u-actions{margin-block-start:var(--u-cta)}
}
@media (max-width:479.98px){
  .u-sec>.u-actions>.mat-button,.u-split>.u-actions>.mat-button,.u-head>.u-actions>.mat-button,.mat-tabs__panel>.u-actions>.mat-button,.u-part>.u-actions>.mat-button,.u-stack>.u-actions>.mat-button,.u-split__wide>.u-actions>.mat-button,.u-sec.mat-cta .mat-cta__actions>.mat-button,.u-sec.mat-cta .mat-cta__actions>.mat-cta__btn{flex:1 1 100%;justify-content:center}
  /* the hero buttons stack the same way: one full-width button per line */
  .u-hero .mat-hero__actions>:is(.mat-hero__btn,.mat-button){flex:1 1 100%;justify-content:center}
  /* the row itself fills the column, or two short labels would leave both buttons as wide as their sum only */
  .u-hero .mat-hero__actions,.u-sec.mat-cta .mat-cta__actions{inline-size:100%;justify-self:stretch}
}
@media (pointer:coarse){
  .u-main .mat-features__link,.u-main .u-panel__head a{min-block-size:var(--mat-hit);display:inline-flex;align-items:center}
}
@media (max-width:767.98px){
  /* Box18: its three registration marks need 32px of free edge, the phone padding is 16px, so text ran over them.
     No marks on the phone; grid and rulers stay */
  .mat-box18:is(.u-panel,.u-card) .mat-box18__mark{display:none}
}
/* a tab row that scrolls sideways fades out at the edge it continues behind - only while it can still scroll
   (scroll timeline: no overflow = no fade; a browser without scroll timelines keeps the plain row) */
@property --u-fade{syntax:'<length>';inherits:false;initial-value:0px}
@supports (animation-timeline:scroll()){
  @media (max-width:1023.98px){
    .u-main .mat-tabs__list{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - var(--u-fade)),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - var(--u-fade)),transparent);animation:u-tabfade linear both;animation-timeline:scroll(self inline)}
  }
  @keyframes u-tabfade{from{--u-fade:56px}to{--u-fade:0px}}
}
/* no overflow rule on html here: together with a body overflow-x it stops the sticky nav from sticking */
/* 7e. Final review fixes (11-18 18:40). Box04 in a panel or card: the corner brackets sit ON the frame corners,
   not 6px past the container line (the reviewers saw them break the 1200 edge on 35 pages); hover still steps out.
   Box18 in a panel or card: the drafting grid at half strength, it ran through small text lines; rulers stay */
.mat-box04:is(.u-panel,.u-card){--mat-box04-out:0px}
.mat-box04:is(.u-panel,.u-card) :is(.mat-box04__tick--tl,.mat-box04__tick--br){transform:none}
.mat-box18:is(.u-panel,.u-card) .mat-box18__grid{opacity:.5}
