/* Copied from design/ab/calculators.html (page CSS of the AB mockup). Tokens and the site chrome are in site.css. */
/* ---------- /calculators/ index ---------- */
h1 { font: 700 clamp(30px, 7vw, 42px)/1.15 var(--serif); letter-spacing: -.01em; margin-top: 4px; }
.lede { margin-top: 8px; font-size: 18px; color: var(--ink2); max-width: 60ch; }
.cnt { margin-top: 6px; font-size: 16px; color: var(--ink2); }
.views { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: 10px; }
.views a { display: inline-flex; align-items: center; min-height: 44px; font-size: 17px; }
/* two-way switch (JS); without JS both views are shown one after the other */
.switch { display: inline-flex; margin-top: 12px; }
.switch button { min-height: 44px; min-width: 44px; padding: 0 16px; background: var(--bg); border: 1px solid var(--border); margin-left: -1px; cursor: pointer; font: 600 16px var(--nums); }
.switch button:first-child { margin-left: 0; }
.switch button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); position: relative; }
.filter { margin-top: 12px; max-width: 560px; }
.filter label { display: block; font-weight: 700; margin-bottom: 4px; }
.filter input { width: 100%; height: 48px; border: 1px solid var(--border); border-radius: 0; background: var(--bg); padding: 0 12px; font: 17px var(--nums); }
.filter .status { margin-top: 6px; font-size: 16px; color: var(--ink2); min-height: 1.5em; }
main > .view { margin-top: 28px; padding-top: 10px; border-top: 1px solid var(--ink); }
main > .view > h2 { font: 700 24px/1.3 var(--serif); scroll-margin-top: 12px; }
.letters ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; }
.letters a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 6px; border: 1px solid var(--hair); margin: 0 -1px -1px 0; font: 600 17px var(--nums); text-decoration: none; }
.letters a:hover { border-color: var(--accent); position: relative; }
.lsec, .tsec { scroll-margin-top: 12px; }
.lsec h3, .tsec h3 { font: 700 21px/1.3 var(--serif); margin-top: 20px; border-bottom: 1px solid var(--hair); padding-bottom: 4px; }
.dsec h4 { font: 700 18px/1.3 var(--serif); margin-top: 14px; }
.dsec h4 a { display: inline-flex; align-items: center; min-height: 44px; }
.dsec h5 { font: 700 17px/1.3 var(--serif); margin-top: 12px; color: var(--ink2); }
.tlist { list-style: none; margin: 4px 0 0; padding: 0; font-size: 17px; }
@media (min-width: 720px) { .tlist:not([data-n="1"]) { columns: 2 260px; column-gap: 32px; } }
@media (min-width: 960px) { .tlist { font-size: 16px; } .tlist[data-n="3"] { columns: 3 260px; } }
.tlist li { break-inside: avoid; border-top: 1px solid var(--hair); }
.tlist a { display: inline-flex; align-items: center; min-height: 44px; }
.tlist .catalog-featured {
  background: color-mix(in srgb, var(--accent) 24%, var(--bg));
  border: 1px solid var(--accent);
  border-inline-start-width: 4px;
  border-radius: 6px;
  padding-inline: 7px 10px;
}
.catalog-featured a { font-weight: 700; text-decoration-color: var(--accent); }
.catalog-featured .catalog-description { margin: 0 0 8px; color: var(--ink2); }
.totop { margin-top: 2px; }
.totop a { display: inline-flex; align-items: center; min-height: 44px; font: var(--small) var(--nums); color: var(--ink2); }
@media print { .letters, .views, .filter, .switch, .totop { display: none; } .tlist { columns: 2; } }
