/* Morgsbrew lite components, version 2 (15 November 2026).
   AI-packaged (Claude, visit v009) from the panel Morgan chose on ../04-map-lite-options.html (option 2).
   For tools and maps: screens people tap through. Needs tokens.css and fonts.css.
   Use these classes, or copy their values. Do not add sizes, corner radii or button kinds beyond these. */

.mb{font-family:var(--sans);font-size:var(--t-read);line-height:1.45;color:var(--ink);background:var(--ground);-webkit-font-smoothing:antialiased}

/* --- the six sizes --- */
.mb-number{font-size:var(--t-number);font-weight:800;letter-spacing:-.025em;line-height:1.05}
.mb-number small{font-size:var(--t-read);font-weight:600;letter-spacing:0;color:var(--muted);margin-left:6px}
.mb-title{font-size:var(--t-title);font-weight:800;letter-spacing:-.022em;line-height:1.15}   /* one per screen */
.mb-header{font-size:var(--t-header);font-weight:700;letter-spacing:-.012em;line-height:1.25}
.mb-read{font-size:var(--t-read);line-height:1.45}
.mb-sub{font-size:var(--t-sub);line-height:1.4;color:var(--muted)}
.mb-small{font-size:var(--t-small);line-height:1.45;color:var(--muted)}
.mb a,.mb-link{color:var(--green);text-decoration:none}

/* --- buttons: two kinds only, rounded not round --- */
.mb-btn{display:flex;align-items:center;justify-content:center;min-height:var(--tap);padding:0 18px;border:0;border-radius:var(--r-btn);font:600 var(--t-read)/1.2 var(--sans);text-align:center;cursor:pointer}
.mb-btn--main{background:var(--coral);color:var(--on-coral)}   /* the one main thing to do; once on a screen */
.mb-btn--tint{background:var(--tint);color:var(--green)}       /* everything else */
.mb-btn:focus-visible{outline:2px solid var(--green);outline-offset:3px}

/* --- a switch: tabs, map views --- */
.mb-seg{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:2px;padding:3px;background:var(--panel);border-radius:var(--r-btn)}
.mb-seg > *{display:flex;align-items:center;justify-content:center;min-height:44px;border:0;border-radius:9px;background:none;font:600 var(--t-sub)/1.2 var(--sans);color:var(--muted);text-align:center;cursor:pointer}
.mb-seg > [aria-selected="true"],.mb-seg > .is-on{background:var(--lift);color:var(--ink)}

/* --- chips: a small set of choices, three across --- */
.mb-chips{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.mb-chips > *{display:flex;align-items:center;justify-content:center;min-height:44px;border:0;border-radius:var(--r-btn);background:var(--panel);font:600 var(--t-sub)/1.2 var(--sans);color:var(--ink);cursor:pointer}
.mb-chips > [aria-pressed="true"],.mb-chips > .is-on{background:var(--tint);color:var(--green)}

/* --- cards, not lines: things that belong together sit on one soft card --- */
.mb-card{background:var(--panel);border-radius:var(--r-card);padding:16px}
.mb-card + .mb-card{margin-top:14px}

/* --- a list of rows. A row with a chevron opens its own page; nothing folds open and shut. --- */
.mb-rows{background:var(--panel);border-radius:var(--r-card);padding-left:16px}
.mb-rows > *{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:54px;padding-right:14px;font-size:var(--t-read);line-height:1.3;color:var(--ink);text-decoration:none}
.mb-rows > * + *{border-top:1px solid var(--line)}
.mb-rows > *::after{content:"›";font-size:22px;line-height:1;color:var(--muted)}

/* --- page gutters and gaps --- */
.mb-gutter{padding-left:16px;padding-right:16px}
.mb-gap{margin-top:14px}
.mb-gap-lg{margin-top:24px}
