/* =====================================================================
   Super Cover Check · brand.css
   One design system for the whole site. Loaded by every page:
     app pages:  app.css  → brand.css   (brand.css wins)
     blog pages: brand.css → blog.css
   Owns: tokens, page chrome (masthead, section bar, footer),
   type scale, buttons, cards and callouts. Change it here, once.
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* colour */
  --paper: #fff7ee;        /* page background */
  --surface: #ffffff;      /* cards, panels, bars */
  --surface-2: #fbeadb;    /* quiet fills: table heads, chips */
  --ink: #3b1f4a;          /* headings, body */
  --ink-2: #5d4569;        /* secondary text */
  --ink-3: #6f5a7a;        /* captions, labels */
  --rule: #ecd9c6;         /* borders, dividers */
  --accent: #a63d23;       /* the one action colour: buttons, links */
  --accent-hover: #8c311b;
  --accent-ink: #ffffff;
  --accent-soft: #ffe3cf;  /* selected nav, soft highlights */
  --brand: #ff8a3d;        /* sun orange: logo + primary action on plum only */
  --brand-ink: #3b1f4a;
  --plum: #3b1f4a;         /* masthead */
  --on-plum: #fff1e4;
  --on-plum-2: #d8c0d2;
  --peach: #ffd3b0;
  --mark: #9a3f14;
  --mark-soft: #ffe8d2;
  --good: #1f7a4a;
  --warn: #9a5a00;
  --bad: #b3261e;
  --heat: 232, 110, 40;

  /* type */
  --f-display: "Outfit", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-data: "Outfit", "Segoe UI", system-ui, sans-serif;
  --fs-title: clamp(1.75rem, 1.15rem + 1.6vw, 2.25rem);   /* every page title */
  --fs-section: clamp(1.3rem, 1.05rem + .8vw, 1.6rem);    /* section headings */
  --fs-card: 1.12rem;                                     /* card titles */
  --fs-eyebrow: .74rem;

  /* shape + depth */
  --r-sm: 6px;             /* inputs, chips, small tags */
  --r: 10px;               /* cards, panels, callouts */
  --r-pill: 999px;         /* every button, nav item, tab */
  --shadow: 0 1px 2px rgba(59, 31, 74, .06), 0 4px 16px rgba(59, 31, 74, .05);
  --shadow-hover: 0 1px 2px rgba(59, 31, 74, .08), 0 8px 24px rgba(59, 31, 74, .09);

  /* layout */
  --wrap: 1240px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1f1027; --surface: #2a1735; --surface-2: #35203f; --ink: #fff1e4; --ink-2: #dcc6d6;
    --ink-3: #b098ad; --rule: #4b3158; --accent: #ff9a55; --accent-hover: #ffb27a; --accent-ink: #2a1230; --accent-soft: #4a2a3a;
    --plum: #2a1230; --mark: #ffb27a; --mark-soft: #4a2e26; --good: #6fd39b; --warn: #f6bb55; --bad: #ff8f86;
    --heat: 255, 150, 80; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
    --shadow-hover: 0 1px 2px rgba(0,0,0,.35), 0 8px 24px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1f1027; --surface: #2a1735; --surface-2: #35203f; --ink: #fff1e4; --ink-2: #dcc6d6;
  --ink-3: #b098ad; --rule: #4b3158; --accent: #ff9a55; --accent-hover: #ffb27a; --accent-ink: #2a1230; --accent-soft: #4a2a3a;
  --plum: #2a1230; --mark: #ffb27a; --mark-soft: #4a2e26; --good: #6fd39b; --warn: #f6bb55; --bad: #ff8f86;
  --heat: 255, 150, 80; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
  --shadow-hover: 0 1px 2px rgba(0,0,0,.35), 0 8px 24px rgba(0,0,0,.35);
  color-scheme: dark;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gutter); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }

/* ---------- 3. Page chrome ---------- */
/* 3a. Masthead (compact bar on every page except the home hero) */
.masthead { background: var(--plum); color: var(--on-plum); border-bottom: 0; position: relative; overflow: hidden; }
.masthead.mini .wrap { padding-block: 10px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; min-height: 56px; }
.masthead.mini .sunart { display: none; }
.brandbar { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--on-plum); }
.brandbar svg { flex: none; display: block; }
.brandname { font-family: var(--f-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em; color: var(--on-plum); }
.brandname b { color: var(--brand); font-weight: 800; }
.crumbs { font-size: .88rem; color: var(--on-plum-2); }
.crumbs a { color: var(--on-plum); text-decoration: none; border-bottom: 1px solid rgba(255, 241, 228, .35); }
.crumbs a:hover { border-bottom-color: var(--peach); }
.crumbs span[aria-hidden] { margin-inline: 6px; opacity: .7; }
.masthead :focus-visible { outline-color: var(--peach); }

/* 3b. Section bar (sticky nav under the masthead) */
.secbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--surface); border-bottom: 1px solid var(--rule); }
.secbar .wrap { display: flex; align-items: center; gap: 10px; }
.secbar nav { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; padding-block: 6px; flex: 1 1 auto; min-width: 0; }
.secbar nav::-webkit-scrollbar { display: none; }
.secbar a { flex: none; padding: 7px 12px; border-radius: var(--r-pill); color: var(--ink-2); text-decoration: none; font-family: var(--f-body); font-weight: 500; font-size: .9rem; line-height: 1.4; }
.secbar a:hover { background: var(--surface-2); color: var(--ink); }
.secbar a.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.secbar a.home { font-weight: 600; }
.secbar a i { font-style: normal; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 7px; border-radius: 50%; background: var(--surface-2); color: var(--ink-2); font-size: .72rem; font-weight: 700; }
.secbar a.on i { background: var(--accent); color: var(--accent-ink); }
.secbar .sep { flex: none; width: 1px; height: 20px; background: var(--rule); margin: 0 8px; }
.secbar a[hidden] { display: none !important; }
@media (max-width: 640px) {
  .secbar nav { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent); }
  .secbar a { padding: 7px 10px; font-size: .86rem; }
}

/* 3c. Footer (identical on every page) */
footer { margin-top: 48px; border-top: 1px solid var(--rule); background: var(--surface); }
footer .wrap { padding-block: 24px 30px; display: grid; gap: 8px; font-family: var(--f-body); font-size: .82rem; line-height: 1.55; color: var(--ink-2); }
footer .lic { font-family: var(--f-data); font-size: .76rem; color: var(--ink-3); }
footer .fine { color: var(--ink-3); max-width: 110ch; }
footer a { color: var(--accent); }

/* ---------- 4. Type ---------- */
.eyebrow { font-family: var(--f-data); font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; line-height: 1.3; color: var(--ink-3); }
/* page-level eyebrow is always the action colour; card kickers stay quiet */
.block-head > .eyebrow, .page-head > .eyebrow { color: var(--accent); }
.masthead .eyebrow { color: var(--peach); }

/* ---------- 5. Buttons ----------
   Three kinds, all pills, one size:
   .btn-primary   filled action colour (on plum: sun orange)
   .btn-secondary white with a rule border
   .btn-small     modifier for in-card/in-table buttons             */
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--f-body); font-size: .92rem; font-weight: 600; line-height: 1.2;
  padding: 10px 18px; border-radius: var(--r-pill); border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.btn-secondary { background: var(--surface); border-color: var(--rule); color: var(--ink); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-small { font-size: .84rem; padding: 7px 13px; }

/* ---------- 6. Buttons: map the existing app markup onto the 3 kinds ---------- */
/* primary */
button.refbtn:not(.linkish):not(.reset), .refsend,
.pgnav a.fwd, .band .pgbtn, .start a.primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--f-body); font-size: .92rem; font-weight: 600; line-height: 1.2;
  padding: 10px 18px; border-radius: var(--r-pill); border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-ink); text-decoration: none; filter: none;
}
button.refbtn:not(.linkish):not(.reset):hover, .refsend:hover,
.pgnav a.fwd:hover, .band .pgbtn:hover, .start a.primary:hover {
  background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); filter: none;
}
.refsend:disabled { opacity: .45; cursor: not-allowed; background: var(--accent); border-color: var(--accent); }

/* secondary */
button.reset, button.reset.refbtn, .pgnav a:not(.fwd), .next a {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--f-body); font-size: .92rem; font-weight: 600; line-height: 1.2;
  padding: 10px 18px; border-radius: var(--r-pill); border: 1px solid var(--rule);
  background: var(--surface); color: var(--ink); text-decoration: none; filter: none; cursor: pointer;
}
button.reset { font-size: .86rem; padding: 8px 15px; }  /* in-form utility buttons sit a step smaller */
button.reset:hover, button.reset.refbtn:hover, .pgnav a:not(.fwd):hover, .next a:hover {
  border-color: var(--accent); color: var(--accent); background: var(--surface); filter: none;
}
button.reset.danger { color: var(--bad); }
button.reset.danger:hover { border-color: var(--bad); color: var(--bad); }

/* small (inside cards and notes) */
.card button.more, button.use {
  font-family: var(--f-body); font-size: .84rem; font-weight: 600; line-height: 1.2;
  padding: 7px 13px; border-radius: var(--r-pill); border: 1px solid var(--rule);
  background: var(--surface); color: var(--accent); cursor: pointer;
}
.card button.more:hover, button.use:hover { border-color: var(--accent); }

/* on the plum hero the primary action is sun orange; the rest are ghost pills */
.masthead .start a { padding: 10px 18px; font-size: .92rem; border-radius: var(--r-pill); }
.masthead .start a.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.masthead .start a.primary:hover { background: #ff9f5e; border-color: #ff9f5e; color: var(--brand-ink); }

/* saved-quote tray: both actions are secondary (id selector in app.css) */
#qtray .qt-share button.refbtn:not(.linkish) { background: var(--surface); color: var(--ink); border: 1px solid var(--rule); border-radius: var(--r-pill); padding: 10px 18px; font-size: .92rem; }
#qtray .qt-share button.refbtn:not(.linkish):hover { border-color: var(--accent); color: var(--accent); background: var(--surface); }

/* nav utility pill (Save my results / Compare costs on guides) */
.savebtn { flex: none; display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-body); font-size: .86rem; font-weight: 600; line-height: 1.4; color: var(--accent); background: var(--accent-soft); border: 1px solid transparent; border-radius: var(--r-pill); padding: 7px 13px; cursor: pointer; text-decoration: none; }
.savebtn:hover { border-color: var(--accent); }

/* tabs (table switchers) – same pill geometry as everything else */
.tabs button, [role=tablist] button { border-radius: var(--r-pill); }

/* ---------- 7. Type in the app ---------- */
.block-head h1, .page-head h1 { font-size: var(--fs-title); line-height: 1.12; }
.block-head h2 { font-size: var(--fs-section); line-height: 1.2; }
.home-block h2 { font-size: var(--fs-section); line-height: 1.2; }
.feat b, h3 { font-family: var(--f-display); }
.feat b { font-size: var(--fs-card); }

/* ---------- 8. Cards and callouts: one surface ---------- */
.panel, .feat a, .band, .contact-box { border-radius: var(--r); box-shadow: var(--shadow); }
.feat a, .feat.ref a { background: var(--surface); border: 1px solid var(--rule); transition: border-color .15s, box-shadow .15s; }
.feat a:hover { border-color: var(--accent); box-shadow: var(--shadow-hover); }
.feat em { color: var(--accent); }
.qtray, .mixpanel { border-radius: var(--r); }

/* ---------- 9. Layout fixes ---------- */
/* each tool now lives on its own page: no divider above the first visible section */
main > section.block:not(.off):not(section.block:not(.off) ~ section.block) { border-top: 0; margin-top: 0; }
/* page-to-page navigation replaces the in-section "Next" link (it was shown twice) */
body[data-page] .next { display: none; }
/* divider above prev/next lines up with the content, not the gutter */
.pgnav.wrap { border-top: 0; background: linear-gradient(var(--rule), var(--rule)) no-repeat center top / calc(100% - 32px) 1px; }
/* short pages: the canvas below the footer matches the footer */
html { background: var(--surface); }
/* one primary action per card: on Contact, "Write the email" leads */
.contact-box button.refbtn:not(.linkish):not(.reset) { background: var(--surface); color: var(--ink); border-color: var(--rule); }
.contact-box button.refbtn:not(.linkish):not(.reset):hover { border-color: var(--accent); color: var(--accent); background: var(--surface); }

/* ---------- 10. Stragglers ---------- */
/* guides' nav pill must beat the generic .secbar a rule */
.secbar a.savebtn { color: var(--accent); background: var(--accent-soft); font-weight: 600; font-size: .86rem; padding: 7px 13px; }
.secbar a.savebtn:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
/* inline action inside a note (e.g. "Keep the loan instead") */
.nmsg button[data-act] { font-family: var(--f-body); font-size: .8rem; font-weight: 600; line-height: 1.2; padding: 5px 11px; border-radius: var(--r-pill); border: 1px solid var(--rule); background: var(--surface); color: var(--accent); cursor: pointer; }
.nmsg button[data-act]:hover { border-color: var(--accent); }
/* every heading uses the display face */
.cover-group .head h3, .save-list h3, .ref-card h3, .ref-how-src h3, #ref-how-body h3, .ref-done h3, .lead-col h3 { font-family: var(--f-display); }
/* dialog close: secondary pill like every other utility button */
dialog .dlg-head button { font-family: var(--f-body); font-size: .86rem; font-weight: 600; line-height: 1.2; padding: 8px 15px; border-radius: var(--r-pill); border: 1px solid var(--rule); background: var(--surface); color: var(--ink); cursor: pointer; }
dialog .dlg-head button:hover { border-color: var(--accent); color: var(--accent); }
dialog { border-radius: var(--r); }

/* =====================================================================
   11. Beginner layer (driven by assets/ux.js)
   ===================================================================== */

/* 11a. Section bar: few links + a "More" menu that opens on hover or tap */
.secbar .wrap { position: relative; }
.navmore { flex: none; }
.navmore-btn { display: inline-flex; align-items: center; gap: 5px; font-family: var(--f-body); font-size: .9rem; font-weight: 500; line-height: 1.4; color: var(--ink-2); background: none; border: 0; border-radius: var(--r-pill); padding: 7px 12px; cursor: pointer; }
.navmore-btn:hover, .navmore.open .navmore-btn { background: var(--surface-2); color: var(--ink); }
.navmore.on .navmore-btn { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.navmore-btn .chev { transition: transform .15s; }
.navmore.open .navmore-btn .chev { transform: rotate(180deg); }
.navmore-menu {
  display: none; position: absolute; z-index: 20; top: calc(100% + 1px); right: max(16px, env(safe-area-inset-right, 0px));
  width: min(640px, calc(100vw - 24px)); padding: 16px; gap: 6px 18px; grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); box-shadow: var(--shadow-hover);
}
.navmore.open .navmore-menu { display: grid; }
.nm-group { display: grid; gap: 2px; align-content: start; }
.nm-h { font: 500 var(--fs-eyebrow)/1.3 var(--f-data); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 4px 10px 6px; }
.navmore-menu a { display: grid; gap: 1px; padding: 8px 10px; border-radius: var(--r-sm); text-decoration: none; color: var(--ink); }
.navmore-menu a b { font-family: var(--f-body); font-weight: 600; font-size: .9rem; }
.navmore-menu a span { font-size: .78rem; line-height: 1.35; color: var(--ink-3); }
.navmore-menu a:hover { background: var(--surface-2); }
.navmore-menu a.on { background: var(--accent-soft); }
.navmore-menu a.on b { color: var(--accent); }
.navmore-menu a[hidden] { display: none; }
@media (max-width: 640px) {
  .navmore-menu { grid-template-columns: 1fr; right: 12px; width: calc(100vw - 24px); max-height: calc(100vh - 140px); overflow-y: auto; }
  .navmore-btn { padding: 7px 10px; font-size: .86rem; }
}

/* 11b. Tooltip bubble (shared by app.js and ux.js) */
#tipbox { position: fixed; z-index: 9999; max-width: min(320px, calc(100vw - 16px)); background: var(--ink); color: var(--paper); font-family: var(--f-body); font-size: .82rem; line-height: 1.45; padding: 10px 12px; border-radius: 8px; box-shadow: 0 8px 28px rgba(0,0,0,.28); pointer-events: none; white-space: pre-line; }
#tipbox[hidden] { display: none; }

/* 11c. "ⓘ More info" chip that replaces long helper text */
.ux-src { display: none !important; }
.ux-info, .ux-more > summary {
  display: inline-flex; align-items: center; gap: 5px; justify-self: start; width: max-content; max-width: 100%;
  font-family: var(--f-body); font-size: .8rem; font-weight: 600; line-height: 1.2; color: var(--ink-3);
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-pill); padding: 4px 10px 4px 7px; cursor: help;
  transition: color .15s, border-color .15s;
}
.ux-info:hover, .ux-info:focus-visible, .ux-more > summary:hover { color: var(--accent); border-color: var(--accent); }
.ux-info[hidden], .ux-more[hidden] { display: none !important; }
.ux-info svg, .ux-more > summary svg { flex: none; }
.ux-more { display: grid; justify-items: start; gap: 8px; }
.ux-more > summary { cursor: pointer; list-style: none; }
.ux-more > summary::-webkit-details-marker { display: none; }
.ux-more[open] > summary { color: var(--accent); border-color: var(--accent); }
.ux-more > .hint { margin: 0; padding: 10px 12px; background: var(--surface-2); border-radius: var(--r-sm); }

/* 11d. Jargon with a hover definition */
.ux-term { text-decoration: underline dotted; text-decoration-color: color-mix(in srgb, currentColor 55%, transparent); text-underline-offset: 3px; cursor: help; }
.ux-term:hover, .ux-term:focus-visible { color: var(--accent); text-decoration-color: var(--accent); }
th .ux-term { text-underline-offset: 2px; }

/* 11e. Results rows: fine print folded into chips */
.qtable td.fname .tchips { margin: 6px 0 4px; gap: 5px; }
.tchip { font-size: .7rem; padding: 2px 9px; }
.tchip.ux-notes { background: var(--surface); color: var(--ink-2); border-style: dashed; }
.tchip:hover, .tchip:focus-visible { border-color: var(--accent); }
.qtable td.fname a.calc-link { font-size: .78rem; font-weight: 600; }

/* 11f. Fold-away detail */
.ux-fold { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-body); font-size: .86rem; font-weight: 600; color: var(--accent); background: none; border: 0; padding: 4px 0; margin: 2px 0 8px; cursor: pointer; }
.ux-fold:hover { text-decoration: underline; }
.mixgrid.ux-folded { display: none !important; }

/* 11g. Gentle hover feedback on rows and cards */
.qtable tbody tr.q { transition: background-color .12s; }

/* 11h. Home: one path, then a quiet list */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; counter-reset: none; }
.steps a { position: relative; display: grid; gap: 6px; align-content: start; height: 100%; padding: 20px 20px 18px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.steps a:hover { border-color: var(--accent); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.steps .step-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 700 .95rem/1 var(--f-display); margin-bottom: 4px; }
.steps b { font-family: var(--f-display); font-size: 1.2rem; line-height: 1.25; }
.steps .step-d { color: var(--ink-2); font-size: .95rem; line-height: 1.45; }
.steps .step-t { font: 500 .76rem/1.3 var(--f-data); color: var(--ink-3); }
.steps em { font-style: normal; font-weight: 600; color: var(--accent); font-size: .9rem; margin-top: 6px; }
.lookup { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 2px 18px; }
.lookup a { display: grid; gap: 1px; padding: 10px 12px; border-radius: var(--r-sm); text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--rule); }
.lookup a b { font-weight: 600; font-size: .98rem; }
.lookup a b::after { content: " →"; color: var(--accent); opacity: 0; transition: opacity .15s; }
.lookup a span { font-size: .86rem; color: var(--ink-3); }
.lookup a:hover { background: var(--surface); }
.lookup a:hover b { color: var(--accent); }
.lookup a:hover b::after { opacity: 1; }
.band-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 14px; margin-block: 30px 6px; }
.band-pair .band { margin: 0; }
@media (prefers-reduced-motion: reduce) { .steps a, .steps a:hover { transition: none; transform: none; } }
@media (max-width: 640px) { .masthead .start a { display: inline-flex !important; } }
/* bar: More sits right after the main links; the save button stays far right */
.secbar nav { flex: 0 1 auto; }
.secbar .savebtn { margin-left: auto; }
.qtable td.fname .tchips { align-items: center; }
.qtable td.fname .tchips a.calc-link { margin-left: 4px; white-space: nowrap; }
/* 11i. Long intros: three lines on phones */
.ux-readmore { display: none; }
@media (max-width: 640px) {
  .ux-clamp:not(.ux-open) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
  .ux-readmore { display: inline-block; justify-self: start; font-family: var(--f-body); font-size: .88rem; font-weight: 600; color: var(--accent); background: none; border: 0; padding: 2px 0; margin-top: 2px; cursor: pointer; }
}
@media (max-width: 640px) { .secbar a.home, .secbar a.home + .sep { display: none; } }
