:root {
  --paper: #f7f6f0;
  --white: #fff;
  --ink: #243d34;
  --muted: #627067;
  --green: #154f40;
  --lime: #d8e9bb;
  --line: #e7e9df;
  --shell: #eeefe7;
  --radius: 24px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Trebuchet MS", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #6c8a38;
  outline-offset: 5px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
[hidden] {
  display: none !important;
}
.wrap {
  width: min(1200px, calc(100% - 96px));
  margin-inline: auto;
}
.header {
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  font-size: 32px;
  font-weight: 750;
  letter-spacing: -1.7px;
}
.brand-dot {
  color: #6d8654;
}
.brand-mark {
  display: inline-flex;
  background: var(--green);
  color: white;
  width: 39px;
  height: 39px;
  margin-right: 11px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  font: italic 35px Georgia;
}
.brand-mark span {
  color: var(--lime);
  font-size: 30px;
}
.header nav {
  display: flex;
  gap: 36px;
  align-items: center;
  font-size: 14px;
}
.header nav a:hover {
  color: #38785b;
}
.saved-link {
  background: #eaece2;
  padding: 10px 20px;
  border-radius: 30px;
}
.saved-link span {
  margin-left: 15px;
}
.hero {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
  gap: 64px;
  padding-block: 64px 88px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow i {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(42px, 4.5vw, 65px);
  line-height: 1.1;
  letter-spacing: -3px;
  font-weight: 500;
  margin-block: 24px;
}
em {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  color: #43735c;
}
h2 {
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -1.4px;
  font-weight: 500;
}
h3 {
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.4px;
}
.hero-copy > p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
  margin-block: 26px 32px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: var(--green);
  color: white;
  padding: 10px 11px 10px 23px;
  border: 0;
  border-radius: 40px;
  font-size: 14px;
  min-height: 50px;
  font-weight: 600;
  transition:
    transform 0.3s var(--ease),
    background 0.3s var(--ease);
}
.button span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff1c;
  transition: transform 0.3s var(--ease);
}
.button:hover {
  background: #23634f;
}
.button:hover span {
  transform: translate(2px, -2px);
}
.button:active {
  transform: scale(0.98);
}
.hero-note {
  font-size: 11px;
  margin-top: 22px;
  color: var(--muted);
}
.hero-note b {
  padding-inline: 8px;
}
.hero-demo {
  position: relative;
  background: #e9eddf;
  padding: 25px 30px;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px #243d3409;
  transform: rotate(-1deg);
}
.demo-top {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 1.4px;
  color: #63715d;
  border-bottom: 1px solid #d9dfce;
  padding-bottom: 20px;
}
.demo-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 25px;
  font-weight: 600;
}
.tool-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: #edf1e5;
  border-radius: 12px;
  color: var(--green);
  font: 24px Georgia;
}
.hero-demo .tool-icon {
  background: #dae3cd;
}
.hero-demo > p {
  font-size: 13px;
  color: var(--muted);
  margin: 14px 0;
}
.demo-values {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 20px;
}
.demo-values small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.demo-values strong {
  font-size: 32px;
  font-weight: 500;
}
.demo-values strong span {
  font-size: 16px;
  padding-left: 4px;
}
.demo-result {
  background: var(--green);
  color: #fff;
  padding: 24px 26px;
  border-radius: 16px;
}
.demo-result small {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #d2e0d3;
}
.demo-result strong {
  display: block;
  font-size: 65px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -3px;
}
.demo-result strong span {
  font-size: 28px;
}
.demo-bar {
  height: 5px;
  background: #ffffff26;
  border-radius: 10px;
  margin: 12px 0;
}
.demo-bar span {
  display: block;
  width: 80.5%;
  height: 5px;
  background: var(--lime);
  border-radius: 10px;
}
.demo-result p {
  font-size: 11px;
  color: #d3dfd4;
  margin: 12px 0 0;
}
.hero-demo > a {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-top: 20px;
}
.orbit {
  position: absolute;
  right: -30px;
  top: -26px;
  font-size: 88px;
  color: #94a96b;
  line-height: 1;
}
.trust-strip {
  background: #eeefe7;
  border-block: 1px solid #e8eadd;
}
.trust-strip .wrap {
  display: flex;
  justify-content: space-between;
  padding-block: 22px;
  color: #677161;
  font-size: 12px;
}
.trust-strip b {
  color: var(--green);
  font-size: 18px;
  margin-right: 5px;
}
.directory {
  padding-block: 90px;
}
.section-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}
.section-top h2 {
  margin: 14px 0 0;
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  padding: 10px 15px;
  border-radius: 12px;
  box-shadow: 0 0 0 1px #243d340a;
}
.search > span {
  font-size: 24px;
}
.search input {
  width: 210px;
  border: 0;
  outline: none;
  font-size: 13px;
  padding: 5px;
  background: transparent;
  color: var(--ink);
}
kbd {
  background: #f0f1eb;
  padding: 0 6px;
  font-size: 11px;
  border-radius: 4px;
  color: var(--muted);
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-block: 30px 42px;
}
.filters button {
  border: 0;
  background: transparent;
  border-radius: 30px;
  padding: 10px 17px;
  color: var(--muted);
  font-size: 13px;
  min-height: 44px;
}
.filters .active {
  background: var(--green);
  color: white;
}
.filters span {
  font-size: 10px;
  background: #ffffff20;
  padding: 2px 6px;
  margin-left: 6px;
  border-radius: 10px;
}
.group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
}
.group-heading h3 {
  margin: 0;
  font-size: 15px;
}
.group-heading > span {
  font-size: 11px;
  color: var(--muted);
}
.tool-group {
  margin-bottom: 36px;
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.tool-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 0 #243d3408;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px #243d340b;
}
.tool-card h3 {
  margin: 1px 0 7px;
  font-size: 15px;
  font-weight: 650;
}
.tool-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}
.tool-card > span:last-child {
  margin-left: auto;
  font-size: 18px;
  color: #7c897b;
}
.approach {
  padding-block: 70px 110px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  border-top: 1px solid var(--line);
}
.approach h2 {
  font-size: 48px;
  margin-block: 20px 30px;
}
.text-link {
  font-size: 13px;
  border-bottom: 1px solid #9cae94;
  padding-bottom: 7px;
}
.approach-list article {
  display: flex;
  gap: 25px;
  padding: 0 0 22px;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--line);
}
.approach-list article > span {
  font-size: 11px;
  color: #779064;
  padding-top: 4px;
}
.approach-list h3 {
  margin-bottom: 8px;
}
.approach-list p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-block: 50px 25px;
  border-top: 1px solid #dde2d4;
}
.footer .brand {
  font-size: 27px;
}
.footer p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}
.footer > div:nth-child(2) {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  align-items: center;
  font-size: 11px;
}
.copyright {
  grid-column: 1/-1;
  padding-top: 28px;
}
.skip {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--green);
  color: white;
  padding: 10px;
  z-index: 5;
}
.skip:focus {
  top: 10px;
}
.tool-intro {
  padding-block: 20px 35px;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 38px;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.tool-intro h1 {
  font-size: 48px;
  margin: 17px 0;
}
.tool-intro > p {
  color: var(--muted);
  font-size: 16px;
}
.calculator-section {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 90px;
}
.calculator-shell {
  background: var(--shell);
  padding: 7px;
  border-radius: var(--radius);
}
.calculator-inner {
  background: white;
  padding: 30px;
  border-radius: 18px;
}
.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 12px;
}
.panel-top h2 {
  font-size: 19px;
  letter-spacing: -0.4px;
  margin: 0;
}
.panel-top > span {
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--muted);
}
.field {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  font-weight: 600;
  gap: 8px;
  margin-bottom: 18px;
  min-width: 0;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 0;
  box-shadow: inset 0 0 0 1px #dce2d7;
  border-radius: 10px;
  background: #fafbf7;
  color: var(--ink);
  min-height: 48px;
  padding: 12px 14px;
  font-size: 16px;
  font-weight: 400;
  min-width: 0;
}
.field textarea {
  resize: vertical;
}
.field input[type="range"] {
  padding: 0;
  accent-color: var(--green);
  box-shadow: none;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.form-actions {
  display: flex;
  gap: 20px;
  align-items: center;
  padding-top: 12px;
}
.quiet {
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 13px;
  min-height: 44px;
  padding: 8px 10px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.input-note {
  font-size: 10px;
  color: var(--muted);
  margin: 24px 0 0;
}
.result-shell {
  padding-top: 7px;
}
.result-panel {
  background: var(--green);
  padding: 36px;
  border-radius: 18px;
  color: white;
  min-height: 335px;
}
.result-panel .eyebrow {
  color: #cadcc3;
  font-size: 9px;
}
.result-panel h2 {
  color: #e5edda;
  margin: 30px 0 20px;
  font-size: 35px;
}
.result-panel #result > p {
  font-size: 13px;
  color: #d8e5d9;
}
.result-actions {
  display: flex;
  gap: 18px;
  margin-top: 32px;
  border-top: 1px solid #ffffff20;
  padding-top: 20px;
}
.result-actions button {
  color: white;
  background: transparent;
  border: 0;
  font-size: 11px;
  min-height: 36px;
  padding: 5px;
}
.result-note {
  font-size: 10px;
  color: var(--muted);
  padding: 16px 10px;
}
.result-label {
  margin: 28px 0 10px;
}
.result-value {
  font-size: clamp(30px, 4vw, 60px);
  font-weight: 500;
  letter-spacing: -2px;
  line-height: 1.2;
  display: block;
  overflow-wrap: anywhere;
  color: #f0f5de;
}
.result-detail {
  margin-top: 20px;
}
.result-working {
  padding-top: 12px;
  border-top: 1px solid #ffffff20;
}
.explanation {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 100px;
  padding-block: 60px;
  border-top: 1px solid var(--line);
}
.explanation h2 {
  margin-top: 20px;
}
.explanation p {
  font-size: 14px;
  color: var(--muted);
}
.explanation-body h3 {
  font-size: 17px;
  margin-bottom: 12px;
}
.explanation-body p {
  margin-bottom: 28px;
}
.explanation-body a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.formula {
  background: #e9ede1;
  padding: 22px;
  border-radius: 12px;
  font-family: Georgia;
  line-height: 1.8;
  margin-bottom: 28px;
  overflow-wrap: anywhere;
}
.faq {
  max-width: 800px;
  padding-block: 45px 70px;
}
.faq h2 {
  margin-block: 17px 30px;
}
details {
  border-bottom: 1px solid #dce2d5;
  padding: 20px 0;
}
summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 15px;
  font-weight: 600;
}
summary::-webkit-details-marker {
  display: none;
}
summary span {
  font-size: 22px;
  font-weight: 400;
}
details[open] summary span {
  transform: rotate(45deg);
}
details p {
  font-size: 14px;
  color: var(--muted);
  margin: 15px 30px 0 0;
}
.related {
  padding-block: 25px 90px;
}
.related h2 {
  font-size: 27px;
}
.related .section-top > a {
  font-size: 12px;
}
.prose {
  max-width: 850px;
  padding-block: 65px 110px;
  min-height: 65vh;
}
.prose h1 {
  font-size: 52px;
}
.prose .lead {
  font-size: 20px;
  line-height: 1.8;
}
.prose h2 {
  font-size: 27px;
  margin-top: 40px;
}
.prose p {
  color: var(--muted);
}
.prose .button {
  margin-top: 20px;
}
.data-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 28px;
  gap: 10px;
}
.data-row .field {
  font-size: 10px;
}
.data-row input {
  padding: 10px;
  font-size: 14px;
}
.remove {
  border: 0;
  background: none;
  align-self: center;
  color: #7c463a;
  font-size: 23px;
  min-height: 44px;
}
.field-help {
  font-size: 12px;
  color: var(--muted);
}
.check {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  margin-block: 12px 20px;
  min-height: 32px;
}
.check input {
  accent-color: var(--green);
  width: 18px;
  height: 18px;
}
.error {
  background: #fff0e8;
  color: #863a24;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #213e33;
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.3s var(--ease),
    opacity 0.3s var(--ease);
  z-index: 10;
  max-width: 90vw;
}
.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}
.empty {
  background: #edf0e4;
  padding: 35px;
  border-radius: 20px;
  margin-top: 30px;
}
.empty > span {
  font-size: 35px;
}
.empty h2 {
  margin-top: 15px;
}
.saved-item {
  background: white;
  padding: 25px;
  border-radius: 16px;
  margin-block: 20px;
  overflow-wrap: anywhere;
}
.saved-item h2 {
  margin-top: 0;
  font-size: 20px;
}
.saved-item small {
  display: block;
  color: var(--muted);
}
.saved-item a {
  display: inline-block;
  font-size: 13px;
  margin: 15px 20px 0 0;
  text-decoration: underline;
}
@media (min-width: 769px) {
  .hero-copy {
    animation: enter 0.8s var(--ease);
  }
  .hero-demo {
    animation: enter 1s var(--ease);
  }
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
  }
}
@media (max-width: 1024px) {
  .wrap {
    width: calc(100% - 64px);
  }
  .hero {
    gap: 35px;
  }
  .tool-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero h1 {
    font-size: 49px;
  }
  .hero-demo {
    padding: 22px;
  }
  .hero-note {
    font-size: 10px;
  }
  .approach,
  .explanation {
    gap: 50px;
  }
  .footer > div:nth-child(2) {
    flex-wrap: wrap;
    gap: 14px;
  }
  .calculator-inner {
    padding: 22px;
  }
  .result-panel {
    padding: 28px;
  }
  .data-row {
    gap: 6px;
  }
  .tool-intro h1 {
    font-size: 43px;
  }
}
@media (max-width: 767px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .header {
    height: 88px;
  }
  .header nav {
    gap: 17px;
    font-size: 11px;
  }
  .header nav > a:nth-child(2) {
    display: none;
  }
  .brand {
    font-size: 28px;
  }
  .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 28px;
    border-radius: 9px;
    margin-right: 8px;
  }
  .saved-link {
    padding: 8px 13px;
  }
  .saved-link span {
    margin-left: 4px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-block: 35px 55px;
    gap: 45px;
  }
  .hero h1 {
    font-size: clamp(42px, 8.5vw, 60px);
    letter-spacing: -2px;
  }
  .hero-copy > p {
    font-size: 15px;
  }
  .hero-note {
    font-size: 10px;
  }
  .hero-demo {
    max-width: 460px;
    width: 100%;
    margin-inline: auto;
    transform: none;
    padding: 25px;
  }
  .orbit {
    right: 0;
    top: -20px;
    font-size: 65px;
  }
  .trust-strip .wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    font-size: 10px;
  }
  .directory {
    padding-block: 55px;
  }
  .section-top {
    align-items: start;
    flex-direction: column;
    gap: 22px;
  }
  h2 {
    font-size: 29px;
  }
  .search {
    width: 100%;
  }
  .search input {
    width: 100%;
  }
  .filters {
    gap: 3px;
    margin-block: 25px;
  }
  .filters button {
    padding: 9px 12px;
    font-size: 11px;
  }
  .tool-grid {
    grid-template-columns: 1fr;
  }
  .tool-card {
    padding: 22px;
  }
  .tool-card h3 {
    font-size: 16px;
  }
  .tool-card p {
    font-size: 13px;
  }
  .approach {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-block: 45px 55px;
  }
  .approach h2 {
    font-size: 40px;
  }
  .footer {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 35px;
  }
  .footer > div:nth-child(2) {
    justify-content: flex-start;
    gap: 17px;
  }
  .copyright {
    padding-top: 5px;
  }
  .tool-intro {
    padding-block: 15px 25px;
  }
  .breadcrumb {
    font-size: 10px;
    margin-bottom: 28px;
  }
  .tool-intro h1 {
    font-size: 38px;
    letter-spacing: -1.8px;
  }
  .tool-intro > p {
    font-size: 14px;
  }
  .calculator-section {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 45px;
  }
  .calculator-inner {
    padding: 22px 18px;
  }
  .result-panel {
    padding: 28px;
    min-height: 300px;
  }
  .result-value {
    font-size: 49px;
  }
  .explanation {
    grid-template-columns: 1fr;
    gap: 25px;
    padding-block: 40px;
  }
  .explanation h2 br {
    display: none;
  }
  .faq {
    padding-block: 30px 45px;
  }
  .related {
    padding-bottom: 50px;
  }
  .prose {
    padding-block: 35px 65px;
  }
  .prose h1 {
    font-size: 39px;
    letter-spacing: -1.8px;
  }
  .prose .lead {
    font-size: 17px;
  }
  .data-row {
    grid-template-columns: 1fr 1fr 25px;
    gap: 8px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--line);
  }
  .data-row > .field:first-child {
    grid-column: 1/-1;
    margin-bottom: 0;
  }
  .data-row > .field {
    margin-bottom: 0;
  }
  .three-col {
    gap: 8px;
  }
  .three-col input {
    padding: 10px;
  }
  .panel-top > span {
    font-size: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  .header,
  .footer,
  .form-actions,
  .result-actions,
  .related,
  .toast,
  .skip,
  .input-note {
    display: none !important;
  }
  body {
    background: white;
    color: black;
  }
  .wrap {
    width: 100%;
  }
  .calculator-section {
    display: block;
  }
  .calculator-inner,
  .result-panel {
    padding: 15px;
  }
  .result-panel {
    background: #f1f4e9;
    color: black;
    min-height: 0;
    margin-top: 15px;
  }
  .result-panel #result > p,
  .result-panel .eyebrow,
  .result-value {
    color: black;
  }
  .explanation {
    gap: 30px;
  }
  details {
    break-inside: avoid;
  }
  input,
  select,
  textarea {
    box-shadow: none !important;
  }
  .tool-intro {
    padding: 0;
  }
  .breadcrumb {
    display: none;
  }
}
.search:focus-within {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.insights {
  margin-top: 20px;
  background: #eef1e7;
  border-radius: 16px;
  padding: 24px;
  min-width: 0;
}
.insights:empty {
  display: none;
}
.insights h3 {
  font-size: 18px;
}
.insight-note {
  font-size: 13px;
  margin: 0;
  color: var(--muted);
}
.metric-list {
  margin: 0;
}
.metric-list > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #dce3d2;
  font-size: 12px;
}
.metric-list dt {
  color: var(--muted);
}
.metric-list dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
}
.schedule-scroll {
  overflow-x: auto;
  max-height: 400px;
  margin-top: 20px;
}
.schedule {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.schedule th,
.schedule td {
  padding: 10px;
  text-align: right;
  white-space: nowrap;
  border-bottom: 1px solid #dce3d2;
}
.schedule thead {
  background: #e4eadb;
}
.schedule caption {
  text-align: left;
  padding: 10px;
  font-weight: 600;
}
.schedule-details summary {
  font-size: 13px;
}
@media print {
  .schedule-details:not([open]) {
    display: none;
  }
  .schedule-scroll {
    max-height: none;
    overflow: visible;
  }
  .insights {
    break-inside: auto;
  }
}
.growth-chart {
  margin: 18px 0 24px;
}
.growth-chart svg {
  display: block;
  width: 100%;
  height: auto;
}
.growth-chart figcaption {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
}
.category-nav {
  display: flex;
  gap: 28px;
  border-block: 1px solid var(--line);
  padding-block: 12px;
  font-size: 12px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.category-nav a {
  white-space: nowrap;
  padding: 5px 0;
  min-height: 32px;
  color: var(--muted);
}
.category-nav a:hover,
.category-nav a[aria-current] {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 7px;
}
.category-hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 90px;
  align-items: center;
  padding-block: 44px 65px;
}
.category-hero h1 {
  font-size: 60px;
  margin-block: 20px;
}
.category-hero > div > p {
  max-width: 590px;
  font-size: 14px;
  color: var(--muted);
}
.category-hero .category-lead {
  font-size: 20px;
  color: var(--ink);
}
.category-start {
  padding: 30px;
  background: #e9eddf;
  border-radius: 20px;
}
.category-start h2 {
  font-size: 26px;
  margin-block: 18px 25px;
}
.category-start a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 0;
  border-top: 1px solid #d4ddc8;
  font-size: 13px;
}
.category-start a:hover {
  text-decoration: underline;
}
.category-count {
  font-size: 11px;
  color: var(--muted);
}
.category-tools {
  padding-bottom: 60px;
}
.category-context {
  padding-block: 45px 65px;
  border-top: 1px solid var(--line);
}
.category-context h2 {
  max-width: 600px;
  margin-top: 20px;
}
.category-context p {
  max-width: 760px;
  color: var(--muted);
  font-size: 14px;
}
.category-explore {
  padding-bottom: 70px;
}
.category-explore h2 {
  font-size: 27px;
}
.category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.category-links a {
  background: #e9eddf;
  padding: 12px 20px;
  border-radius: 30px;
  font-size: 13px;
  min-height: 44px;
}
.group-heading h3 a:hover {
  text-decoration: underline;
}
.group-heading h3 a > span {
  font-size: 12px;
  margin-left: 5px;
}
@media (max-width: 767px) {
  .category-nav {
    gap: 24px;
    font-size: 11px;
  }
  .category-hero {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-block: 25px 40px;
  }
  .category-hero h1 {
    font-size: 44px;
  }
  .category-hero .breadcrumb {
    margin-bottom: 28px;
  }
  .category-hero .category-lead {
    font-size: 18px;
  }
  .category-start {
    padding: 25px;
  }
  .category-tools {
    padding-bottom: 40px;
  }
  .category-context {
    padding-block: 35px 45px;
  }
}
@media print {
  .category-nav {
    display: none;
  }
}
/* Result graphics share the paper, ink and warm accent palette. */
.result-charts {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
}
.result-chart {
  margin: 0;
  padding: 22px 18px;
  background: #fffefa;
  border-radius: 12px;
  box-shadow: 0 0 0 1px #dce3d24d;
  min-width: 0;
}
.chart-heading .eyebrow {
  font-size: 8px;
  color: var(--muted);
}
.chart-heading h3 {
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -0.4px;
  margin: 9px 0 6px;
}
.chart-heading p {
  font-size: 10px;
  color: var(--muted);
  margin: 0 0 14px;
}
.result-chart svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.chart-grid {
  stroke: #dce3d2;
  stroke-width: 1;
}
.chart-axis {
  font-size: 12px;
  fill: #526258;
  font-variant-numeric: tabular-nums;
}
.chart-guide {
  stroke: #79887e;
  stroke-width: 1;
  stroke-dasharray: 3 4;
}
.chart-legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  padding: 0;
  margin: 16px 0 6px;
  font-size: 10px;
}
.chart-legend li {
  display: flex;
  align-items: center;
  gap: 7px;
}
.chart-key {
  display: inline-block;
  width: 18px;
  border-top: 3px solid var(--series);
}
.chart-key.dashed {
  border-top-style: dashed;
}
.chart-scrubber {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 10px;
  color: var(--muted);
}
.chart-scrubber input {
  width: 100%;
  min-height: 32px;
  margin: 0;
  accent-color: var(--green);
  cursor: pointer;
}
.chart-readout {
  display: block;
  font-size: 11px;
  line-height: 1.7;
  min-height: 38px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  padding: 8px 10px;
  background: #eff2e8;
  border-radius: 6px;
}
.result-chart figcaption {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 14px;
}
.chart-data {
  padding: 14px 0 0;
  border-bottom: 0;
}
.chart-data summary {
  font-size: 11px;
  align-items: center;
  min-height: 32px;
}
.chart-data .schedule-scroll {
  max-height: 260px;
}
.chart-parts {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) 1.1fr;
  gap: 10px;
  align-items: center;
}
.chart-total {
  font-size: 25px;
  font-weight: 600;
  fill: var(--ink);
  letter-spacing: -1px;
}
.chart-part-labels {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 11px;
}
.chart-part-labels li {
  display: flex;
  gap: 9px;
  margin: 16px 0;
  line-height: 1.5;
}
.chart-swatch {
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 2px;
  background: var(--series);
  flex-shrink: 0;
}
.chart-part-labels strong {
  display: block;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.chart-part-labels small {
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 5px;
}
.chart-bar-label {
  font-size: 13px;
  fill: var(--ink);
}
@media (max-width: 767px) {
  .insights {
    padding: 16px;
  }
  .result-chart {
    padding: 18px 12px;
  }
  .chart-parts {
    grid-template-columns: 1fr 1fr;
  }
  .chart-heading h3 {
    font-size: 18px;
  }
  .chart-axis {
    font-size: 14px;
  }
  .chart-bar-label {
    font-size: 15px;
  }
}
@media print {
  .chart-scrubber {
    display: none;
  }
  .result-chart {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
  .result-chart svg {
    max-height: 220px;
  }
  .chart-readout {
    background: none;
  }
  .chart-data:not([open]) {
    display: none;
  }
}
.chart-bars {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}
.chart-bars li {
  margin: 18px 0;
}
.chart-bars li > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 7px;
}
.chart-bars strong {
  font-variant-numeric: tabular-nums;
}
.chart-track {
  height: 18px;
  position: relative;
  background: #eff2e8;
  border-radius: 4px;
}
.chart-fill {
  position: absolute;
  height: 100%;
  border-radius: 4px;
}
.chart-zero {
  position: absolute;
  top: -3px;
  bottom: -3px;
  border-left: 1px dashed #627067;
  z-index: 1;
}
.direct-answer {
  max-width: 840px;
  line-height: 1.8;
}
.tool-intro > .direct-answer {
  font-size: 14px;
  color: var(--ink);
  margin-top: 20px;
}
.tool-contents {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 25px;
  font-size: 12px;
}
.tool-contents a {
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--green);
  padding-block: 7px;
}
.topic-guide {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 100px;
  padding-block: 55px;
  border-top: 1px solid var(--line);
}
.guide-heading h2 {
  font-size: 34px;
  margin-top: 20px;
  line-height: 1.15;
}
.guide-sections > section + section {
  margin-top: 30px;
}
.guide-sections h3 {
  font-size: 18px;
  line-height: 1.4;
  margin: 0 0 12px;
}
.guide-sections p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
  margin: 0;
}
.context-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.context-links li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.context-links a {
  font-size: 14px;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.context-links span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 5px;
}
.worked-table .schedule caption {
  white-space: normal;
  line-height: 1.7;
}
.worked-table .schedule th,
.worked-table .schedule td {
  white-space: normal;
  text-align: left;
  min-width: 100px;
}
.worked-table .schedule-scroll {
  max-height: none;
}
@media (max-width: 1024px) {
  .topic-guide {
    gap: 50px;
  }
}
@media (max-width: 767px) {
  .topic-guide {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 40px;
  }
  .guide-heading h2 {
    font-size: 30px;
  }
  .tool-contents {
    gap: 8px 18px;
  }
  .tool-intro > .direct-answer {
    font-size: 13px;
  }
}
@media print {
  .tool-contents {
    display: none;
  }
  .topic-guide {
    display: block;
  }
  .guide-heading {
    margin-bottom: 24px;
  }
}
.guide-sections p a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* Question library: readable articles and a browsable topic hierarchy. */
.reading-intro {
  padding-block: 48px 32px;
}
.reading-intro h1 {
  max-width: 860px;
}
.reading-intro > p {
  max-width: 760px;
  color: var(--muted);
}
.reading-filters {
  display: flex;
  gap: 24px;
  align-items: end;
  margin-top: 32px;
}
.reading-filters label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  flex: 1;
}
.reading-filters label:first-child {
  flex: 2;
}
.reading-filters input,
.reading-filters select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  padding: 12px 16px;
}
.reading-intro #guide-count {
  font-size: 12px;
  margin-top: 16px;
}
.reading-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.reading-categories a {
  font-size: 12px;
  border: 1px solid #cbd6c4;
  border-radius: 8px;
  padding: 10px 16px;
  min-height: 44px;
}
.reading-categories a:hover {
  background: #e9eddf;
}
.reading-directory {
  padding-bottom: 64px;
}
.reading-cluster {
  border-top: 1px solid var(--line);
  padding-block: 32px;
}
.reading-cluster-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.reading-cluster-head h2 {
  font-size: 28px;
  margin: 0;
}
.reading-cluster-head > a {
  font-size: 12px;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.reading-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.reading-list li {
  border-bottom: 1px solid var(--line);
  padding-block: 16px;
}
.reading-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 16px;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.reading-list a span {
  flex-shrink: 0;
  font-size: 14px;
}
.reading-list p {
  color: var(--muted);
  font-size: 12px;
  margin: 8px 32px 0 0;
}
.reading-article {
  padding-block: 32px 48px;
}
.reading-header {
  max-width: 920px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.reading-header h1 {
  font-size: clamp(34px, 4vw, 56px);
  letter-spacing: -1.6px;
  line-height: 1.16;
  overflow-wrap: anywhere;
}
.reading-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.reading-answer {
  font-size: 19px;
  line-height: 1.8;
  color: var(--ink);
}
.reading-answer p:last-child {
  margin-bottom: 0;
}
.reading-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 720px);
  gap: 64px;
  padding-top: 40px;
  align-items: start;
}
.reading-toc {
  position: sticky;
  top: 24px;
}
.reading-toc ol {
  padding-left: 20px;
  font-size: 12px;
  color: var(--muted);
  margin: 16px 0 24px;
}
.reading-toc li {
  padding: 8px 0;
}
.reading-toc a:hover {
  text-decoration: underline;
}
.reading-tool {
  display: block;
  background: #e9eddf;
  border-radius: 12px;
  padding: 20px;
  font-size: 15px;
  color: var(--green);
}
.reading-tool span {
  display: block;
  font-size: 11px;
  margin-top: 8px;
}
.reading-body {
  min-width: 0;
}
.reading-body > section {
  padding-block: 0 32px;
  scroll-margin-top: 24px;
}
.reading-body h2 {
  font-size: 27px;
  letter-spacing: -0.6px;
  line-height: 1.3;
}
.reading-body p {
  font-size: 16px;
  line-height: 1.9;
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.reading-body p a,
.reading-answer p a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--green);
}
.reading-questions details {
  border-bottom: 1px solid var(--line);
  padding-block: 16px;
}
.reading-questions summary {
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  min-height: 44px;
  align-items: center;
}
.reading-questions p {
  font-size: 14px;
  color: var(--muted);
  margin: 16px 0 0;
}
.reading-calculator {
  padding: 24px !important;
  margin-bottom: 32px;
  border-radius: 12px;
  background: #e9eddf;
}
.reading-calculator p {
  font-size: 14px;
}
.reading-calculator .button {
  font-size: 12px;
  gap: 16px;
}
.reading-references ul {
  padding-left: 20px;
}
.reading-references li {
  margin-block: 12px;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.reading-references a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.reading-more {
  padding-bottom: 64px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.reading-more h2 {
  font-size: 28px;
}
.reading-more h3 {
  margin-top: 32px;
}
.calculator-reading {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 100px;
  padding-block: 48px;
  border-top: 1px solid var(--line);
}
.calculator-reading h2 {
  font-size: 30px;
  line-height: 1.2;
  margin-top: 20px;
}
.calculator-reading p {
  font-size: 14px;
  color: var(--muted);
}
.calculator-reading .reading-list {
  margin: 0;
}
.sitemap-guides {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.sitemap-guides summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  min-height: 44px;
  align-items: center;
}
.sitemap-guides li {
  margin-block: 12px;
}
.sitemap-guides a {
  text-decoration: underline;
}
.wrap > .breadcrumb {
  margin-top: 24px;
  flex-wrap: wrap;
  overflow-wrap: anywhere;
}
@media (max-width: 1024px) {
  .reading-layout {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 40px;
  }
  .calculator-reading {
    gap: 50px;
  }
}
@media (max-width: 767px) {
  .header nav > a[href="/about/"] {
    display: none;
  }
  .header nav > a[href="/guides/"] {
    display: inline;
  }
  .header nav {
    font-size: 10px;
    gap: 12px;
  }
  .reading-intro {
    padding-top: 32px;
  }
  .reading-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .reading-cluster-head {
    flex-direction: column;
    align-items: start;
    gap: 12px;
  }
  .reading-cluster-head h2 {
    font-size: 25px;
  }
  .reading-header h1 {
    font-size: 36px;
    letter-spacing: -1px;
  }
  .reading-answer {
    font-size: 17px;
  }
  .reading-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .reading-toc {
    position: static;
  }
  .reading-toc ol {
    columns: 2;
    column-gap: 24px;
  }
  .reading-toc li {
    break-inside: avoid;
  }
  .reading-body h2 {
    font-size: 25px;
  }
  .reading-body p {
    font-size: 15px;
  }
  .reading-list a {
    font-size: 15px;
    gap: 16px;
  }
  .calculator-reading {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .reading-calculator .button {
    max-width: 100%;
    white-space: normal;
  }
  .reading-article {
    padding-top: 16px;
  }
}
@media (max-width: 360px) {
  .header .brand {
    font-size: 24px;
  }
  .header nav {
    gap: 8px;
  }
  .header .saved-link {
    padding: 8px;
  }
  .reading-toc ol {
    columns: 1;
  }
  .reading-header h1 {
    font-size: 32px;
  }
}
@media print {
  .reading-toc,
  .reading-more,
  .reading-filters,
  .reading-categories,
  .reading-calculator,
  .calculator-reading {
    display: none;
  }
  .reading-layout {
    display: block;
  }
  .reading-body h2 {
    break-after: avoid;
  }
  .reading-article {
    width: 100%;
  }
  .reading-header h1 {
    font-size: 30px;
  }
}
@media (max-width: 360px) {
  .header {
    gap: 12px;
  }
  .header > .brand {
    flex-shrink: 0;
    font-size: 22px;
  }
  .header .brand-mark {
    width: 28px;
    height: 28px;
    font-size: 25px;
    margin-right: 6px;
  }
  .header nav {
    flex-shrink: 0;
    gap: 8px;
    font-size: 10px;
  }
  .header nav .saved-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 6px;
    white-space: nowrap;
  }
  .header .saved-link span {
    margin-left: 0;
  }
}

.calculation-details {
  margin-top: 2rem;
  border-top: 1px solid var(--line, #d5dfd8);
  padding-top: 1.5rem;
  min-width: 0;
}
.calculation-details h3 {
  line-height: 1.35;
}
.calculation-steps {
  padding-left: 1.25rem;
  line-height: 1.7;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.calculation-steps li + li {
  margin-top: 0.65rem;
}
.result-working-table,
.result-inputs {
  border-top: 1px solid #cbd9d0;
  margin-top: 1rem;
}
.calculation-details summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  font-weight: 600;
  line-height: 1.5;
}
.calculation-details .metric-list dd {
  overflow-wrap: anywhere;
  min-width: 0;
}
.calculation-details .schedule th:first-child {
  white-space: normal;
  min-width: 7rem;
  max-width: 16rem;
  overflow-wrap: anywhere;
}
.calculation-details .schedule caption {
  text-align: left;
  padding: 0.7rem 0;
  font-weight: 600;
}
.result-inputs dd {
  white-space: pre-wrap;
}
.calculation-details .schedule-scroll:focus-visible {
  outline: 2px solid #154f40;
  outline-offset: 3px;
}
@media print {
  .calculation-details details:not([open]) {
    display: none;
  }
  .calculation-details .schedule-scroll {
    max-height: none;
  }
}
.calculator-shell,
.result-shell,
.insights {
  min-width: 0;
}
.calculation-details .result-working-table,
.calculation-details .result-inputs {
  min-width: 0;
  max-width: 100%;
}
.calculation-details .schedule-scroll {
  max-width: 100%;
}
.topic-guide > *,
.guide-sections > section {
  min-width: 0;
}
.worked-table .schedule-scroll {
  max-width: 100%;
}
/* The desk buddy stays in the form flow and never covers a control. */
.fox-companion {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 26px;
  padding: 12px 8px 12px 0;
  border-bottom: 1px solid var(--line);
  --fox-rust: #cf692f;
}
.fox-scene {
  display: block;
  width: 146px;
  height: 112px;
  flex: 0 0 146px;
  overflow: visible;
}
.fox-copy {
  min-width: 0;
}
.fox-kicker {
  font-size: 8px;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--muted);
}
.fox-message {
  font-size: 12px;
  line-height: 1.6;
  margin: 6px 0 8px;
  min-height: 39px;
  max-width: 240px;
  color: var(--ink);
}
.fox-toggle {
  background: none;
  border: 0;
  border-bottom: 1px dotted #879884;
  padding: 3px 0;
  font-size: 10px;
  color: var(--muted);
  min-height: 32px;
}
.fox-writing-arm {
  transform-origin: 140px 104px;
}
.fox-head {
  transform-origin: 110px 91px;
}
.fox-tail {
  transform-origin: 80px 123px;
}
.fox-scribble {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
}
.fox-spark {
  opacity: 0;
}
.fox-companion[data-mood="writing"] .fox-writing-arm {
  animation: fox-write 0.22s ease-in-out infinite alternate;
}
.fox-companion[data-mood="writing"] .fox-head {
  animation: fox-nod 0.6s ease-in-out infinite alternate;
}
.fox-companion[data-mood="writing"] .fox-tail {
  animation: fox-wag 0.5s ease-in-out infinite alternate;
}
.fox-companion[data-mood="writing"] .fox-scribble {
  animation: fox-ink 0.8s linear infinite;
}
.fox-companion[data-mood="ready"] .fox-scribble,
.fox-companion[data-mood="done"] .fox-scribble {
  stroke-dashoffset: 0;
}
.fox-companion[data-mood="done"] .fox-spark {
  opacity: 1;
}
.fox-companion[data-mood="done"] .fox-head {
  animation: fox-happy 0.6s ease-in-out 2;
}
.fox-companion[data-mood="oops"] .fox-head {
  transform: rotate(-7deg);
}
.fox-paused *,
.fox-reduced * {
  animation: none !important;
}
.fox-paused .fox-scribble,
.fox-reduced .fox-scribble {
  stroke-dashoffset: 0;
}
@keyframes fox-write {
  from {
    transform: rotate(-5deg) translateX(-2px);
  }
  to {
    transform: rotate(5deg) translateX(2px);
  }
}
@keyframes fox-nod {
  to {
    transform: rotate(3deg) translateY(2px);
  }
}
@keyframes fox-wag {
  to {
    transform: rotate(9deg);
  }
}
@keyframes fox-ink {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes fox-happy {
  50% {
    transform: translateY(-5px) rotate(-3deg);
  }
}
@media (max-width: 420px) {
  .fox-companion {
    gap: 6px;
  }
  .fox-scene {
    width: 108px;
    height: 90px;
    flex-basis: 108px;
  }
  .fox-kicker {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .fox-message {
    font-size: 11px;
    min-height: 54px;
  }
  .fox-toggle {
    min-height: 36px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fox-companion * {
    animation: none !important;
  }
  .fox-scribble {
    stroke-dashoffset: 0;
  }
}
@media print {
  .fox-companion {
    display: none;
  }
}

.percentage-modes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.percentage-modes button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  padding: 10px 12px;
  min-height: 44px;
}
.percentage-modes button[aria-pressed="true"] {
  background: var(--green);
  color: white;
}
.data-row:has([name^="semester"]) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 32px;
}
.data-row:has([name^="semester"]) .field {
  min-width: 0;
}
.data-row:has([name^="semester"]) .remove {
  grid-column: 3;
  grid-row: 1 / span 2;
}
@media (max-width: 420px) {
  .data-row:has([name^="semester"]) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 28px;
  }
}

.calculator-depth {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 100px;
  padding-block: 48px;
  border-top: 1px solid var(--line);
}
.calculator-depth > div {
  min-width: 0;
}
.calculator-depth h2 {
  font-size: 30px;
  margin-top: 16px;
}
.calculator-depth p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}
.calculator-depth section + section {
  margin-top: 28px;
}
@media (max-width: 767px) {
  .calculator-depth {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-block: 36px;
  }
}

.data-row:has([name^="semester"]) > .field:first-child {
  grid-column: 1 / span 2;
}
.data-row:has([name^="semester"]) > .field:has([name^="semester"]) {
  grid-column: 1 / span 2;
}
.data-row:has([name^="semester"]) > .field input {
  width: 100%;
  min-width: 0;
}

.calculator-reading .reading-list h3 {
  font-size: 15px;
  margin: 0;
}
.calculator-reading .reading-preview {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  margin: 10px 0 0;
  max-width: 740px;
}

/* First-screen calculator finder */
.hero-copy {
  min-width: 0;
}
.hero-finder {
  max-width: 560px;
  position: relative;
}
.hero-finder form > label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 10px;
}
.hero-search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 16px;
  background: var(--white);
  border: 1px solid #b7c6b4;
  border-radius: 16px;
  box-shadow: 0 8px 24px #243d3408;
}
.hero-search-box:focus-within {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.hero-search-box > span {
  font-size: 28px;
  line-height: 1;
}
.hero-search-box input {
  width: 100%;
  min-width: 0;
  padding: 10px 0;
  border: 0;
  background: transparent;
  font-size: 14px;
  color: var(--ink);
  outline: none;
}
.hero-search-box input:focus {
  outline: none;
}
.hero-search-box button {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 0;
  border-radius: 10px;
  background: var(--green);
  color: white;
  min-height: 46px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 650;
}
.hero-search-box button:hover {
  background: #23634f;
}
.hero-popular {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  font-size: 12px;
}
.hero-popular > span {
  color: var(--muted);
  margin-right: 2px;
}
.hero-popular a {
  padding: 4px 12px;
  border: 1px solid #d7dfcf;
  border-radius: 24px;
}
.hero-popular a:hover {
  background: var(--lime);
}
.hero-search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: 100px;
  z-index: 5;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 16px;
  box-shadow: 0 16px 40px #243d3420;
}
.hero-search-results p {
  margin: 4px 0 8px;
  font-size: 12px;
  color: var(--muted);
}
.hero-search-results ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hero-search-results a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  min-height: 44px;
  border-top: 1px solid var(--line);
}
.hero-search-results a:hover {
  color: var(--green);
  text-decoration: underline;
}
@media (max-width: 600px) {
  .hero {
    padding-top: 24px;
    gap: 36px;
  }
  .hero-copy > p {
    margin-block: 20px 24px;
  }
  .hero-search-box {
    gap: 8px;
    padding-left: 12px;
  }
  .hero-search-box input {
    font-size: 16px;
  }
  .hero-search-box button {
    padding-inline: 12px;
  }
  .hero-search-box button span {
    display: none;
  }
  .hero-search-results {
    top: 100px;
  }
  .hero-note {
    margin-top: 16px;
  }
}

/* Goal planner: the result becomes an editable target. */
.goal-playground {
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
  color: var(--ink, #173d32);
}
.goal-invite {
  border: 1px solid #bdcec3;
  border-left: 4px solid #b55832;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: #f0f4ed;
}
.goal-invite h2 {
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  margin: 0.5rem 0;
}
.goal-invite p {
  margin: 0;
}
.goal-open {
  background: #174d3d;
  color: white;
  border: 0;
  padding: 1rem 1.5rem;
  white-space: nowrap;
  cursor: pointer;
}
.goal-open span {
  margin-left: 1rem;
}
.goal-workspace {
  border: 1px solid #bdcec3;
  border-top: 0;
  padding: 2rem;
  background: #fffdf7;
}
.goal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.goal-tag {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: #6e4934;
}
.goal-close {
  background: none;
  border: 1px solid #bdcec3;
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-size: 1.5rem;
}
.goal-layout {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 3rem;
}
.goal-controls h3 {
  font-family: Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0 0 1.5rem;
}
.goal-controls .field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.goal-controls input,
.goal-controls select {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem;
  border: 1px solid #b5c5b9;
  border-radius: 0;
  background: white;
  color: inherit;
  font: inherit;
}
.goal-chart-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid #d7dfd5;
  padding: 0 0 1rem;
}
.goal-number {
  overflow-wrap: anywhere;
  min-width: 0;
  font-family: Georgia, serif;
  font-size: 2.5rem;
  font-weight: 400;
}
.goal-chart {
  width: 100%;
  display: block;
  color: #174d3d;
  touch-action: none;
  cursor: ns-resize;
  margin-top: 1rem;
}
.goal-chart text {
  font: 12px system-ui;
  fill: #4b5d52;
}
.goal-slider-label {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.85rem;
}
.goal-slider {
  width: 100%;
  accent-color: #b55832;
  min-height: 44px;
}
.goal-baseline {
  font-size: 0.85rem;
  color: #4b5d52;
}
.goal-paths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #c8d4c7;
  border: 1px solid #c8d4c7;
  margin-top: 2rem;
}
.goal-path {
  padding: 1.5rem;
  background: #f3f5ed;
  min-width: 0;
}
.goal-path > span {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}
.goal-path h3 {
  font-family: Georgia, serif;
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.2;
  margin: 1rem 0;
  overflow-wrap: anywhere;
}
.goal-path p {
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
}
.goal-foot {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
.goal-foot > span {
  font-size: 2rem;
  color: #b55832;
}
.goal-note {
  margin: 0;
}
.goal-assumptions {
  font-size: 0.75rem;
  line-height: 1.7;
  color: #4b5d52;
  margin: 1rem 0 0;
}
.goal-error {
  padding: 1rem;
  border-left: 3px solid #a23f23;
  color: #862d1b;
}
.goal-playground :focus-visible {
  outline: 3px solid #b55832;
}
@media (max-width: 767px) {
  .goal-playground {
    padding: 0 1rem;
  }
  .goal-invite {
    padding: 1.25rem;
    align-items: flex-start;
    flex-direction: column;
  }
  .goal-workspace {
    padding: 1.25rem;
  }
  .goal-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .goal-paths {
    grid-template-columns: 1fr;
  }
  .goal-number {
    font-size: 2rem;
  }
  .goal-chart-heading {
    gap: 0.5rem;
  }
  .goal-open {
    width: 100%;
  }
  .goal-path {
    padding: 1.25rem;
  }
}
@media print {
  .goal-playground {
    display: none;
  }
}

/* Calculator ForEver wordmark, sized independently from navigation. */
.brand {
  gap: 10px;
  letter-spacing: -0.7px;
  line-height: 1.08;
  flex-shrink: 0;
}
.brand-icon {
  width: 44px;
  height: 44px;
  display: block;
  flex: none;
}
.brand-name {
  display: flex;
  flex-direction: column;
  font-size: 20px;
  font-weight: 750;
}
.brand-name > span {
  font-size: 17px;
  letter-spacing: 0.2px;
  color: #466748;
}
.header nav {
  gap: 28px;
}
.footer .brand {
  margin-bottom: 12px;
}
@media (max-width: 760px) {
  .header {
    height: auto;
    min-height: 100px;
    gap: 16px;
    flex-wrap: wrap;
    padding-block: 20px;
  }
  .header nav {
    gap: 20px;
    flex-wrap: wrap;
  }
  .brand-icon {
    width: 40px;
    height: 40px;
  }
  .brand-name {
    font-size: 18px;
  }
  .brand-name > span {
    font-size: 16px;
  }
}
@media (max-width: 420px) {
  .header nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
  }
  .saved-link {
    padding: 6px 10px;
  }
  .saved-link span {
    margin-left: 4px;
  }
}

/* Result navigation for phones and tablets; values remain in the form. */
.result-navigation {
  display: none;
  margin: 0 0 12px;
}
.result-navigation[hidden] {
  display: none !important;
}
.result-navigation button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--green);
  font-size: 14px;
  font-weight: 650;
}
.result-panel,
.result-shell,
#calculator-form {
  scroll-margin-top: 16px;
}
.result-panel:focus-visible {
  outline: 3px solid #81975d;
  outline-offset: 4px;
}
@media (max-width: 1024px) {
  .result-navigation {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: wrap;
  }
  .result-navigation button:first-child {
    background: var(--green);
    border-color: var(--green);
    color: white;
  }
}
@media print {
  .result-navigation {
    display: none !important;
  }
}
