/* SyllabusCalc: "the student planner" (redesign of 2026-10-07).
   A registrar's worksheet: Crimson Pro for headings and figures, Nunito Sans
   for everything a student reads or types. Navy ink on white paper, hairline
   rules instead of boxes, a highlighter-pink wash for the one figure that
   matters, and red pen for annotations, used sparingly.
   Class prefix .sc- : the calculators' JavaScript writes several of these
   class names (sc-result, sc-result--ok/--warn/--bad, sc-result-sub,
   sc-result-head, sc-fields, sc-field, sc-row, sc-hint, sc-num, sc-btn,
   sc-btn--ghost, sc-warn), so restyle them here and never rename one. */

:root {
  --sc-ground: #ffffff;
  --sc-ink: #1b2a4a;      /* navy ink: text, rules that carry structure */
  --sc-muted: #4a5674;    /* secondary text, 7.3:1 on white */
  --sc-rule: #e6e8ef;     /* hairlines between rows */
  --sc-pink: #f06595;     /* highlighter: link underlines and the current page */
  --sc-wash: #ffdeeb;     /* highlighter wash behind a key figure */
  --sc-hover: #a61e4d;    /* link hover, 7.2:1 on white */
  --sc-pen: #c92a2a;      /* red pen: annotations and out-of-reach results, 5.5:1 */
  --sc-code: #f3f4f8;
  --sc-serif: "Crimson Pro", Georgia, "Times New Roman", serif;
  --sc-sans: "Nunito Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --sc-mono: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --sc-gutter: clamp(16px, 4vw, 40px);
  --sc-max: 1200px;
  --sc-measure: 760px;
  --sc-wide: 860px;
}

/* ------------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--sc-ground);
  color: var(--sc-ink);
  font-family: var(--sc-sans);
  font-size: 1.125rem;            /* 18px */
  line-height: 1.6;
  font-variant-numeric: lining-nums;
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; height: auto; }

a {
  color: var(--sc-ink);
  text-decoration: underline;
  text-decoration-color: var(--sc-pink);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover { color: var(--sc-hover); }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--sc-ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--sc-wash);
}

h1, h2, h3 {
  font-family: var(--sc-serif);
  font-weight: 600;
  color: var(--sc-ink);
  margin: 0;
}
h1 { font-size: clamp(2.25rem, 4.6vw, 3.25rem); line-height: 1.06; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.125rem); line-height: 1.2; margin: 2.75rem 0 0.5rem; }
h3 { font-size: 1.5rem; line-height: 1.2; margin: 1.75rem 0 0.4rem; }

p, ul, ol, dl { margin: 0 0 1em; }

strong { font-weight: 800; }

sub, sup { position: relative; font-size: 0.7em; line-height: 0; vertical-align: baseline; }
sub { bottom: -0.25em; }
sup { top: -0.45em; }

code {
  font-family: var(--sc-mono);
  font-size: 0.86em;
  background: var(--sc-code);
  border-radius: 3px;
  padding: 0.08em 0.3em;
}

.sc-wrap {
  max-width: var(--sc-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--sc-gutter);
  padding-right: var(--sc-gutter);
}

/* ------------------------------------------------------- masthead */

.sc-header { background: var(--sc-ground); }

.sc-header-in {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 32px;
  padding-top: 22px;
  padding-bottom: 23px;           /* 18px of air above the double rule */
}

/* the double rule under the masthead, inside the text column */
.sc-header-in::after {
  content: "";
  position: absolute;
  left: var(--sc-gutter);
  right: var(--sc-gutter);
  bottom: 0;
  height: 5px;
  border-top: 1px solid var(--sc-ink);
  border-bottom: 1px solid var(--sc-ink);
}

.sc-brand {
  font-family: var(--sc-serif);
  font-size: 1.9375rem;           /* 31px */
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--sc-ink);
  text-decoration: none;
}
.sc-brand span { font-style: italic; font-weight: 400; }
.sc-brand:hover { color: var(--sc-ink); }

.sc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  font-size: 1rem;
  font-weight: 700;
}
.sc-nav a {
  display: inline-block;
  padding: 4px 0;
  color: var(--sc-ink);
  text-decoration: none;
  text-underline-offset: 6px;
}
.sc-nav a:hover,
.sc-nav a[aria-current] {
  color: var(--sc-ink);
  text-decoration: underline;
  text-decoration-color: var(--sc-pink);
  text-decoration-thickness: 2px;
}

main.sc-wrap { padding-bottom: 56px; }

/* -------------------------------------------------- title blocks */

.sc-hero { max-width: var(--sc-wide); padding: 40px 0 8px; }
.sc-hero h1 { margin: 0; }
.sc-h1-aside { font-weight: 400; font-style: italic; }

.sc-hero p { margin: 14px 0 0; }

/* the deck under a tool's title, and on the hubs, tests and glossary */
main > .sc-hero > p.sc-meta:first-of-type,
.sc-hero-card > p:first-of-type,
.sc-hero p.sc-deck,
.sc-deck {
  margin-top: 18px;
  max-width: var(--sc-measure);
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--sc-ink);
}

.sc-meta,
.review-line {
  font-size: 0.97rem;
  line-height: 1.5;
  color: var(--sc-muted);
}
.sc-meta a,
.review-line a { color: var(--sc-ink); }

.sc-hero .review-line { margin-top: 14px; }
.sc-hero .sc-updated { margin-top: 6px; }

.sc-hero-card { max-width: var(--sc-wide); }

/* ---------------------------------------------- the worksheet panel */

.sc-tool {
  max-width: var(--sc-measure);
  margin: 32px 0 0;
  padding: 26px 0 30px;
  border-top: 1.5px solid var(--sc-ink);
  border-bottom: 1.5px solid var(--sc-ink);
  counter-reset: sc-line;
}
.sc-tool + .sc-tool { margin-top: 24px; }
.sc-tool > :first-child { margin-top: 0; }

.sc-tool h2 {
  margin: 0 0 6px;
  font-size: 1.875rem;            /* 30px */
  line-height: 1.2;
}

.sc-tool > p:not(.sc-hint) {
  max-width: var(--sc-measure);
  margin: 0 0 14px;
  font-size: 1rem;
  color: var(--sc-muted);
}
.sc-tool > p.sc-hint:first-child,
.sc-tool > h2 + p.sc-hint {
  max-width: var(--sc-measure);
  margin: 0 0 6px;
  font-size: 1rem;
}

.sc-hint {
  margin: 2px 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--sc-muted);
}

/* one worksheet line per field: number, label, the box you fill in */
.sc-fields {
  max-width: var(--sc-measure);
  margin: 14px 0 0;
  border-top: 1px solid var(--sc-rule);
}

.sc-field {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  column-gap: 16px;
  row-gap: 2px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--sc-rule);
}
.sc-fields:not(.sc-row) > .sc-field { counter-increment: sc-line; }
.sc-fields:not(.sc-row) > .sc-field::before {
  content: counter(sc-line);
  content: counter(sc-line) / "";
  grid-column: 1;
  grid-row: 1;
  font-family: var(--sc-serif);
  font-size: 1.3125rem;           /* 21px */
  line-height: 1;
  color: var(--sc-muted);
  font-variant-numeric: lining-nums tabular-nums;
}
.sc-field > * { grid-column: 2 / 4; }
.sc-field > label,
.sc-field > .sc-label { grid-column: 2; grid-row: 1; font-size: 1.0625rem; line-height: 1.4; }
.sc-field > input:not([type="radio"]):not([type="checkbox"]),
.sc-field > select {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}
.sc-field > input[type="checkbox"] { grid-column: 3; grid-row: 1; justify-self: end; width: 22px; height: 22px; }
.sc-field > textarea { margin-top: 6px; }
.sc-field > .sc-hint { margin-top: 0; }
.sc-field > label ~ label,
.sc-field > .sc-label ~ label { grid-column: 2 / 4; grid-row: auto; }
.sc-field > label > input[type="radio"],
.sc-field > label > input[type="checkbox"] { margin-right: 8px; }

.sc-label { font-size: 1.0625rem; font-weight: 700; }

/* form controls */
.sc-tool input[type="number"],
.sc-tool input[type="text"],
.sc-tool input:not([type]),
.sc-tool select,
.sc-tool textarea,
.sc-table input,
.sc-table select {
  font-family: inherit;
  color: var(--sc-ink);
  background: #ffffff;
  border: 1.5px solid var(--sc-ink);
  border-radius: 4px;
}
.sc-field > input[type="number"] {
  width: 7rem;
  height: 48px;
  padding: 0 12px;
  font-size: 1.3125rem;           /* 21px */
  font-weight: 700;
  text-align: right;
  font-variant-numeric: lining-nums tabular-nums;
}
.sc-field > input[type="text"],
.sc-field > input:not([type]) {
  width: 14rem;
  max-width: 100%;
  height: 48px;
  padding: 0 12px;
  font-size: 1.0625rem;
}
.sc-field > select {
  height: 48px;
  max-width: 100%;
  padding: 0 10px;
  font-size: 1.0625rem;
}
.sc-tool textarea {
  width: 100%;
  min-height: 9rem;
  padding: 10px 12px;
  font-size: 1.0625rem;
  line-height: 1.5;
}
.sc-table input,
.sc-table select {
  height: 40px;
  padding: 0 8px;
  font-size: 1rem;
  max-width: 100%;
}
.sc-table input[type="number"] {
  width: 6.5rem;
  text-align: right;
  font-weight: 700;
  font-variant-numeric: lining-nums tabular-nums;
}
.sc-table input[type="text"] { width: 100%; min-width: 9rem; }
input[type="radio"],
input[type="checkbox"] {
  accent-color: var(--sc-ink);
  width: 18px;
  height: 18px;
  margin: 0;
  vertical-align: -3px;
}
::placeholder { color: var(--sc-muted); opacity: 1; font-weight: 400; }

/* rows the calculators add and remove (categories, assignments, scores) */
.sc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 16px;
  margin: 0;
  padding: 12px 0;
  border-top: 0;
  border-bottom: 1px solid var(--sc-rule);
}
.sc-row:first-child { border-top: 1px solid var(--sc-rule); }
.sc-row > .sc-field {
  display: block;
  flex: 1 1 9rem;
  min-width: 0;
  padding: 0;
  border: 0;
}
.sc-row > .sc-field > label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--sc-muted);
}
.sc-row > .sc-field > input {
  width: 100%;
  height: 44px;
  padding: 0 10px;
  font-size: 1.125rem;
}
.sc-row > .sc-field > input[type="number"] {
  font-weight: 700;
  text-align: right;
  font-variant-numeric: lining-nums tabular-nums;
}
.sc-row > .sc-field > .sc-hint {
  margin: 0;
  padding: 10px 0;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--sc-ink);
  font-variant-numeric: lining-nums tabular-nums;
}
.sc-row > .sc-btn { margin: 0; }

/* modes: two ways the same question can be asked */
.sc-modes {
  max-width: var(--sc-measure);
  margin: 0 0 6px;
  padding: 0;
  border: 0;
}
.sc-modes legend {
  padding: 0;
  margin-bottom: 8px;
  font-size: 0.9375rem;
  font-weight: 800;
}
.sc-modes label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 22px 6px 0;
  font-size: 1.0625rem;
}

/* the total line of the worksheet */
.sc-result {
  max-width: var(--sc-measure);
  margin: 0;
  padding: 16px 0 14px;
  border-bottom: 3px double var(--sc-ink);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.5;
}
.sc-result:empty { display: none; }
.sc-result strong {
  display: inline-block;
  margin: 2px 0;
  padding: 2px 10px;
  background: var(--sc-wash);
  font-size: 1.75rem;             /* 28px */
  line-height: 1.2;
  font-weight: 800;
  font-variant-numeric: lining-nums tabular-nums;
}
.sc-result p { margin: 0; }
.sc-result .sc-result-sub,
.sc-result-sub {
  margin: 8px 0 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--sc-muted);
}
.sc-result-sub strong {
  display: inline;
  margin: 0;
  padding: 0 3px;
  font-size: 1em;
  font-weight: 800;
  color: var(--sc-ink);
}
.sc-result-head { margin: 0; }
.sc-result--warn { font-weight: 600; }
.sc-result--warn strong { background: none; padding: 0; }
.sc-result--bad strong {
  background: none;
  padding: 0;
  color: var(--sc-pen);
}
.sc-warn { color: var(--sc-pen); font-weight: 800; }

/* ------------------------------------------------------------ buttons */

.sc-btn {
  display: inline-block;
  margin: 12px 8px 0 0;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--sc-ink);
  background: #ffffff;
  border: 1.5px solid var(--sc-ink);
  border-radius: 4px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.sc-btn:hover {
  color: var(--sc-ink);
  background: var(--sc-wash);
}
.sc-btn--ghost {
  padding: 8px 12px;
  font-weight: 600;
  border-width: 1px;
  border-color: var(--sc-muted);
}
.sc-btn--ghost:hover { border-color: var(--sc-ink); }
.sc-btn[id$="-copy"] {
  margin-top: 18px;
  padding: 10px 16px;
  font-weight: 700;
  border: 1.5px solid var(--sc-ink);
}

/* ------------------------------------------------------------- tables */

.sc-tablewrap {
  overflow-x: auto;
  margin: 14px 0 0;
  -webkit-overflow-scrolling: touch;
}
.sc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.0625rem;           /* 17px */
  line-height: 1.45;
  font-variant-numeric: lining-nums tabular-nums;
}
.sc-table caption {
  caption-side: bottom;
  padding-top: 10px;
  text-align: left;
  font-size: 0.9rem;
  color: var(--sc-muted);
}
.sc-table th {
  padding: 10px 14px 10px 0;
  border-bottom: 1.5px solid var(--sc-ink);
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: left;
  vertical-align: bottom;
}
.sc-table td {
  padding: 11px 14px 11px 0;
  border-bottom: 1px solid var(--sc-rule);
  text-align: left;
  vertical-align: top;
}
.sc-table th:first-child,
.sc-table td:first-child { padding-left: 10px; }
.sc-table th:last-child,
.sc-table td:last-child { padding-right: 10px; }
.sc-table .sc-num { text-align: right; }
.sc-table td.sc-num { white-space: nowrap; }
.sc-table td.sc-num strong { font-size: 1.375rem; font-weight: 800; }
.sc-table code { overflow-wrap: break-word; background: none; padding: 0; }
/* a two-column table (a label and its value) stays at reading width */
.sc-table:not(:has(tr > :nth-child(3))) { max-width: var(--sc-measure); }
/* the reader's own row, or a total: the highlighter goes across it */
.sc-table tbody tr:has(> td:first-child > strong:only-child) { background: var(--sc-wash); }
.sc-table tbody tr:has(> td:first-child > strong:only-child) td { font-weight: 800; }

/* ---------------------------------------------- notes and annotations */

.sc-note {
  max-width: var(--sc-wide);
  margin: 24px 0;
  padding: 16px 0;
  border-top: 1px solid var(--sc-rule);
  border-bottom: 1px solid var(--sc-rule);
  font-size: 1.03rem;
  line-height: 1.65;
}
.sc-note--info {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--sc-muted);
}
.sc-note--info strong { color: var(--sc-ink); }

.sc-formula {
  max-width: var(--sc-measure);
  margin: 14px 0;
  padding: 12px 0;
  border-top: 1px solid var(--sc-rule);
  border-bottom: 1px solid var(--sc-rule);
  font-family: var(--sc-serif);
  font-size: 1.375rem;
  line-height: 1.35;
  text-align: center;
  font-variant-numeric: lining-nums tabular-nums;
}
.sc-formula code {
  font-family: inherit;
  font-size: inherit;
  background: none;
  padding: 0;
}

/* ------------------------------------------------------- questions */

.sc-faq { max-width: var(--sc-wide); }
.sc-faq h2 { margin-bottom: 12px; }
.sc-faq h2 + details { border-top: 1.5px solid var(--sc-ink); }
.sc-faq details { border-bottom: 1px solid var(--sc-rule); }
.sc-faq summary {
  position: relative;
  padding: 14px 40px 14px 0;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
}
.sc-faq summary::-webkit-details-marker { display: none; }
.sc-faq summary::after {
  content: "+";
  content: "+" / "";
  position: absolute;
  right: 6px;
  top: 9px;
  font-family: var(--sc-serif);
  font-size: 1.625rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--sc-muted);
}
.sc-faq details[open] > summary::after {
  content: "\2212";
  content: "\2212" / "";
}
.sc-faq details p {
  max-width: var(--sc-measure);
  margin: 0 0 16px;
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* ------------------------------------------------------ keep going */

.sc-related { max-width: var(--sc-measure); margin-top: 44px; }
.sc-related h2 { margin: 0 0 10px; font-size: clamp(1.625rem, 2.8vw, 1.875rem); }
.sc-related ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--sc-rule);
  font-size: 1.0625rem;
  line-height: 1.45;
}
.sc-related li { padding: 10px 0; border-bottom: 1px solid var(--sc-rule); }
.sc-related li a { text-decoration: none; }
.sc-related li a:hover { text-decoration: underline; text-decoration-color: var(--sc-pink); }
.sc-related li:first-child a { font-weight: 700; }

/* ------------------------------------------------- tool page sections */

main > section:not(.sc-tool):not(.sc-faq) > p,
main > section:not(.sc-tool):not(.sc-faq) > ul:not([class]),
main > section:not(.sc-tool):not(.sc-faq) > ol:not([class]) { max-width: var(--sc-measure); }
main > section > .sc-tablewrap { max-width: 960px; }
h2 + .sc-note { margin-top: 12px; }
main > section > h2:first-child { margin-top: 44px; }
main > .sc-note { margin-top: 32px; }

/* ------------------------------------------------- guides and pages */

.sc-prose { max-width: var(--sc-measure); }
.sc-prose > p,
.sc-prose > ul,
.sc-prose > ol { font-size: 1.125rem; line-height: 1.65; }
.sc-prose ul,
.sc-prose ol { padding-left: 1.3em; }
.sc-prose li { margin: 0 0 0.55em; }
.sc-prose li::marker { color: var(--sc-muted); }
.sc-prose h2 { margin-top: 2.5rem; }
.sc-prose .sc-tablewrap { margin-bottom: 1.25em; }
.sc-prose > .sc-hero { padding-bottom: 20px; }

/* the editor section on About and How this site is made */
.editor-box {
  margin: 32px 0;
  padding: 18px 0 4px;
  border-top: 1.5px solid var(--sc-ink);
  border-bottom: 1px solid var(--sc-rule);
}
.editor-box h2 { margin: 0 0 8px; font-size: 1.625rem; }
.editor-box p { font-size: 1.0625rem; }

/* glossary */
.sc-gloss {
  max-width: var(--sc-measure);
  margin: 28px 0 0;
  border-top: 1.5px solid var(--sc-ink);
}
.sc-gloss dt {
  padding-top: 18px;
  font-family: var(--sc-serif);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
}
.sc-gloss dd {
  margin: 4px 0 0;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--sc-rule);
}

/* ------------------------------------------------------------ the home */

.sc-home-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px 80px;
  max-width: none;
  padding: 48px 0 36px;
}
.sc-home-lead { flex: 1 1 520px; min-width: 0; }
.sc-home-lead h1 { font-size: clamp(2.5rem, 5.2vw, 3.75rem); line-height: 1.04; }
.sc-home-lead .sc-deck { margin-top: 22px; max-width: 600px; font-size: 1.1875rem; line-height: 1.6; }
.sc-home-counts { margin: 16px 0 0; font-size: 1rem; line-height: 1.5; color: var(--sc-muted); }

.sc-example { flex: 1 1 380px; min-width: 0; max-width: 480px; margin: 0; }
.sc-example figcaption {
  margin: 0 0 6px;
  font-family: var(--sc-serif);
  font-size: 1.3125rem;
  font-style: italic;
  line-height: 1.3;
}
.sc-example table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1.5px solid var(--sc-ink);
}
.sc-example th {
  padding: 11px 0;
  border-bottom: 1px solid var(--sc-rule);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
}
.sc-example td {
  padding: 11px 0 11px 16px;
  border-bottom: 1px solid var(--sc-rule);
  font-size: 1.1875rem;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: lining-nums tabular-nums;
}
.sc-example .sc-example-total th,
.sc-example .sc-example-total td {
  border-top: 1.5px solid var(--sc-ink);
  border-bottom: 0;
}
.sc-example .sc-example-total th { padding: 14px 0 10px; font-size: 1.125rem; font-weight: 800; }
.sc-example .sc-example-total td { padding: 12px 0 10px 16px; }
.sc-mark {
  display: inline-block;
  padding: 2px 10px;
  background: var(--sc-wash);
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 800;
}
.sc-mark--pen { background: none; padding: 0; color: var(--sc-pen); }
.sc-pen {
  margin: 6px 0 0;
  font-family: var(--sc-serif);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.4;
  text-align: right;
  color: var(--sc-pen);
  font-variant-numeric: lining-nums tabular-nums;
}

.sc-home section { scroll-margin-top: 16px; }

.sc-sechead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
  padding-top: 28px;
  border-top: 1px solid var(--sc-rule);
}
.sc-sechead h2 {
  margin: 0;
  font-size: clamp(1.875rem, 3.4vw, 2.375rem);
  line-height: 1.15;
}
.sc-sechead p { margin: 0; font-size: 1rem; line-height: 1.5; color: var(--sc-muted); }
.sc-sechead p a { color: var(--sc-ink); font-weight: 700; }

.sc-home-tools { padding-bottom: 24px; }
.sc-home-guides { padding-top: 32px; }

/* calculators grouped by the task they do: the home and the /tools/ hub */
.sc-tasks { columns: 3 300px; column-gap: 48px; }
.sc-task { break-inside: avoid; padding-top: 26px; }
.sc-task h3 { margin: 0; font-size: 1.6875rem; line-height: 1.15; }
.sc-task-meta { margin: 4px 0 10px; font-size: 0.9375rem; color: var(--sc-muted); }
.sc-task h3 + .sc-toollist { margin-top: 10px; }
.sc-toollist {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1.5px solid var(--sc-ink);
}
.sc-toollist li { padding: 9px 0 10px; border-bottom: 1px solid var(--sc-rule); }
.sc-toolline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.sc-toolname {
  font-size: 1.0625rem;
  line-height: 1.35;
  font-weight: 700;
  text-decoration: none;
}
.sc-toolname:hover { text-decoration: underline; text-decoration-color: var(--sc-pink); }
.sc-guidelink {
  flex: 0 0 auto;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sc-muted);
}
.sc-toollist p { margin: 2px 0 0; font-size: 0.9375rem; line-height: 1.45; color: var(--sc-muted); }
.sc-toollist .sc-guideline { margin-top: 4px; font-weight: 600; }
.sc-toollist .sc-guideline a { color: var(--sc-ink); }
.sc-added { font-size: 0.875rem; white-space: nowrap; }

/* guide lists: the home and the /guides/ hub */
.sc-guidelist {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  column-gap: 48px;
}
.sc-guidelist li { min-width: 0; padding: 14px 0; border-bottom: 1px solid var(--sc-rule); }
.sc-guidelist li > a:first-child {
  font-family: var(--sc-serif);
  font-size: 1.375rem;
  line-height: 1.25;
  font-weight: 600;
  text-decoration: none;
}
.sc-guidelist li > a:first-child:hover { text-decoration: underline; text-decoration-color: var(--sc-pink); }
.sc-guidelist p { margin: 4px 0 0; font-size: 0.9375rem; line-height: 1.5; color: var(--sc-muted); }
.sc-guidelist .sc-guidemeta { margin-top: 6px; font-weight: 600; }
.sc-guidemeta span + a { margin-left: 4px; }
.sc-guidemeta span:not(:last-child)::after { content: " \00b7"; content: " \00b7" / ""; }
.sc-guidemeta a { color: var(--sc-ink); }

/* how the math is checked */
.sc-home-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 72px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--sc-rule);
}
.sc-checks-lead { flex: 1 1 300px; min-width: 0; }
.sc-checks-lead h2 { margin: 0; font-size: clamp(1.875rem, 3.4vw, 2.375rem); line-height: 1.15; }
.sc-keyfig { margin: 20px 0 0; }
.sc-keyfig-n {
  display: inline-block;
  padding: 0 10px;
  background: var(--sc-wash);
  font-family: var(--sc-serif);
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
}
.sc-checks-lead p:last-child { margin: 12px 0 0; font-size: 1.0625rem; line-height: 1.6; }
.sc-principles {
  flex: 2 1 480px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1.5px solid var(--sc-ink);
}
.sc-principles li {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 32px;
  padding: 14px 0;
  border-bottom: 1px solid var(--sc-rule);
}
.sc-principles li > strong { flex: 0 0 250px; font-size: 1.0625rem; line-height: 1.45; }
.sc-principles li > span { flex: 1 1 280px; font-size: 1.03rem; line-height: 1.55; color: var(--sc-muted); }

/* ------------------------------------------------------------ footer */

.sc-footer { margin-top: 8px; }
.sc-footer > .sc-wrap {
  position: relative;
  padding-top: 33px;
  padding-bottom: 32px;
}
.sc-footer > .sc-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--sc-gutter);
  right: var(--sc-gutter);
  height: 5px;
  border-top: 1px solid var(--sc-ink);
  border-bottom: 1px solid var(--sc-ink);
}
.sc-foot { display: flex; flex-wrap: wrap; gap: 24px 56px; }
.sc-foot-about { flex: 1 1 320px; min-width: 0; }
.sc-foot-about .sc-brand { font-size: 1.625rem; }
.sc-foot-about p {
  max-width: 420px;
  margin: 12px 0 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--sc-muted);
}
.sc-footer-nav { flex: 0 1 200px; }
.sc-foot-h {
  margin: 0 0 6px;
  font-size: 1.25rem;
  line-height: 1.3;
}
.sc-footer-nav ul { list-style: none; margin: 0; padding: 0; font-size: 1rem; line-height: 1.5; }
.sc-footer-nav li { padding: 3px 0; }
.sc-footer-nav a { text-decoration: none; }
.sc-footer-nav a:hover { text-decoration: underline; text-decoration-color: var(--sc-pink); }
.sc-copy { margin: 24px 0 0; font-size: 0.9375rem; color: var(--sc-muted); }

/* ------------------------------------------------------------ phones */

@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  .sc-hero { padding-top: 28px; }
  main > .sc-hero > p.sc-meta:first-of-type,
  .sc-hero-card > p:first-of-type,
  .sc-hero p.sc-deck,
  .sc-deck { font-size: 1.125rem; }
  .sc-field { grid-template-columns: 22px minmax(0, 1fr) auto; column-gap: 12px; }
  .sc-field > input[type="number"] { width: 6rem; }
  .sc-field > input[type="text"],
  .sc-field > input:not([type]),
  .sc-field > select { grid-column: 2 / 4; grid-row: auto; justify-self: stretch; width: 100%; margin-top: 6px; }
  .sc-result strong { font-size: 1.5rem; }
  .sc-home-hero { padding-top: 32px; gap: 32px; }
  .sc-keyfig-n { font-size: 3.25rem; }
  .sc-principles li > strong { flex-basis: 100%; }
  .sc-table td:has(a) { min-width: 11rem; }
  .sc-footer-nav { flex: 1 1 40%; }
}

@media print {
  .sc-nav, .sc-footer, .sc-btn { display: none; }
  .sc-tool { border-color: #000; }
}
