@font-face {
  font-family: Archivo;
  src: url("/assets/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f7f4ed;
  --sheet: #fffdf8;
  --ink: #282821;
  --muted: #65645a;
  --line: #d5cec1;
  --accent: #a73b1b;
  --pale: #eee6d8;
  --result: #e8edde;
  --result-ink: #303b26;
  --error: #ac251c;
  --scale: 1;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #1e211e;
  --sheet: #262a25;
  --ink: #f5f1e6;
  --muted: #c0c2b5;
  --line: #555c4f;
  --accent: #ffa786;
  --pale: #34392f;
  --result: #303c2a;
  --result-ink: #eef3dc;
  --error: #ffaaa3;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
  font-size: calc(16px * var(--scale));
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    400 1rem/1.55 Archivo,
    Arial,
    sans-serif;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
a:hover {
  color: var(--accent);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
button {
  border: 1px solid var(--line);
  background: var(--sheet);
  color: var(--ink);
  padding: 0.55rem 0.8rem;
  border-radius: 2px;
  line-height: 1.3;
}
button:hover {
  border-color: var(--accent);
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button.primary {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
  font-weight: 650;
}
button.primary:hover {
  filter: brightness(0.92);
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
input,
select,
textarea {
  width: 100%;
  color: var(--ink);
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.53rem 0.6rem;
  min-height: 42px;
}
input[type="checkbox"] {
  width: 17px;
  height: 17px;
  min-height: 17px;
  flex: 0 0 auto;
  accent-color: var(--accent);
  margin: 3px 0 0;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}
[hidden] {
  display: none !important;
}
p {
  margin: 0.7rem 0;
}
h1,
h2,
h3 {
  font-family: Archivo, Arial, sans-serif;
  font-weight: 550;
  line-height: 1.07;
  margin: 0 0 0.55rem;
  letter-spacing: -0.025em;
}
h1 {
  font-size: clamp(2.2rem, 4vw, 3.65rem);
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.7rem;
}
em {
  font-style: normal;
  color: var(--accent);
}
.eyebrow {
  font-size: 0.69rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.45rem;
}
.micro {
  font-size: 0.77rem;
  color: var(--muted);
  line-height: 1.45;
}
.lede {
  font-size: 1.06rem;
  line-height: 1.5;
  max-width: 68ch;
  color: var(--muted);
}
.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  padding: 12px;
  background: var(--sheet);
  z-index: 10;
}
.skip:focus {
  top: 8px;
}
.site-header {
  max-width: 1180px;
  padding: 18px 24px 14px;
  margin: auto;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  text-decoration: none;
  font-size: 1.12rem;
  font-weight: 650;
  letter-spacing: -0.035em;
}
.brand img {
  flex: 0 0 auto;
}
.brand-chile {
  color: var(--accent);
  font-weight: 450;
}
.site-header nav {
  display: flex;
  gap: 22px;
  font-size: 0.85rem;
  margin-left: auto;
}
.site-header nav a {
  text-decoration: none;
}
.preferences {
  display: flex;
  gap: 5px;
}
.preferences button {
  font-size: 0.75rem;
  min-height: 34px;
  padding: 6px 9px;
}
.preferences #install {
  display: none;
}
main {
  max-width: 1180px;
  margin: auto;
  padding: 24px;
}
.home-intro {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 20px;
}
.home-intro h1 {
  font-size: clamp(2.25rem, 3.5vw, 3.3rem);
  margin-bottom: 8px;
}
.home-intro .lede {
  max-width: 52ch;
  font-size: 1rem;
  margin: 0;
}
.port-photo {
  margin: 0;
  align-self: stretch;
}
.port-photo picture {
  display: block;
  height: 156px;
}
.port-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}
.port-photo figcaption {
  font-size: 0.62rem;
  color: var(--muted);
  margin-top: 3px;
}
.calculator {
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
  background: var(--sheet);
  padding: 20px 24px;
  margin-bottom: 32px;
}
.tool-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}
.tool-heading h2 {
  font-size: 1.8rem;
}
.tool-heading .eyebrow {
  margin-bottom: 3px;
}
.tool-note {
  font-size: 0.75rem;
  color: var(--muted);
}
.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}
.field {
  display: block;
  margin-bottom: 9px;
  font-size: 0.82rem;
  font-weight: 550;
}
.field > span {
  display: block;
  margin-bottom: 4px;
}
.field small {
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  font-weight: 450;
  color: var(--muted);
  margin-left: 5px;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}
.check {
  font-size: 0.76rem;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 0;
  flex-wrap: wrap;
}
.check input + span {
  flex: 1;
}
.check a {
  font-size: 0.73rem;
}
.error {
  color: var(--error);
  font-size: 0.83rem;
  margin: 8px 0;
}
.error:empty {
  display: none;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.form-actions button {
  font-size: 0.8rem;
}
.result,
.plan-result {
  background: var(--result);
  color: var(--result-ink);
  border-left: 3px solid var(--accent);
  padding: 20px 22px;
  min-width: 0;
}
.result output {
  display: block;
  font-size: 2.6rem;
  line-height: 1.12;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  margin: 7px 0 12px;
  overflow-wrap: anywhere;
}
.result > p {
  font-size: 0.81rem;
}
.result .micro {
  color: var(--result-ink);
  opacity: 0.88;
}
.result dl {
  margin: 16px 0;
}
.result dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
  font-size: 0.8rem;
}
.result dt {
  max-width: 65%;
}
.result dd {
  margin: 0;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.result-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.result-actions button,
.result-actions a {
  background: transparent;
  border: 1px solid var(--line);
  padding: 7px 9px;
  font-size: 0.73rem;
  text-decoration: none;
  color: var(--result-ink);
}
.comparison {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 18px;
}
.comparison p {
  font-size: 0.79rem;
}
.method {
  margin-top: 15px;
  font-size: 0.8rem;
  color: var(--muted);
}
summary {
  cursor: pointer;
  font-weight: 550;
}
details p {
  margin: 12px 0;
}
.method summary {
  color: var(--ink);
}
.sources {
  font-size: 0.85rem;
  line-height: 1.7;
  padding-left: 20px;
}
.sources a {
  overflow-wrap: anywhere;
}
.editorial-section {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 38px;
  padding: 25px 0 36px;
  border-bottom: 1px solid var(--line);
}
.section-title {
  padding-top: 20px;
}
.section-title h2 {
  font-size: 2.25rem;
}
.section-title > p:last-child {
  font-size: 0.88rem;
  color: var(--muted);
}
.guide-list article {
  display: flex;
  align-items: start;
  gap: 22px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.guide-list article:first-child {
  border-top: none;
}
.index {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 650;
  min-width: 22px;
  font-variant-numeric: tabular-nums;
}
.guide-list h3 {
  font-size: 1.65rem;
}
.guide-list h3 a {
  text-decoration: none;
}
.guide-list p:not(.eyebrow) {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
  max-width: 67ch;
}
.arrow {
  margin-left: auto;
  font-size: 1.6rem;
  color: var(--accent);
  line-height: 1;
}
.tools-strip {
  padding: 32px 0 15px;
}
.tools-strip p {
  font-size: 0.95rem;
}
.page-head {
  margin: 0 0 24px;
  max-width: 940px;
}
.page-head h1 {
  max-width: 22ch;
}
.page-head .lede {
  margin-bottom: 0;
}
.article-head {
  max-width: 960px;
}
.article-head h1 {
  max-width: 24ch;
  font-size: clamp(2.25rem, 4vw, 3.5rem);
}
.answer {
  border-left: 3px solid var(--accent);
  padding-left: 18px;
  font-size: 1.1rem;
  line-height: 1.5;
  max-width: 72ch;
  margin: 14px 0;
}
.byline {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 15px 0 24px;
}
.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(0, 260px);
  gap: 56px;
}
.article-body {
  min-width: 0;
}
.article-body > .lede {
  color: var(--ink);
  font-size: 1.05rem;
}
.contents {
  background: var(--pale);
  padding: 18px 24px;
  margin: 24px 0;
  font-size: 0.85rem;
}
.contents ol {
  margin-bottom: 0;
  padding-left: 20px;
}
.contents li {
  margin: 7px 0;
}
.article-body section {
  margin: 30px 0;
}
.article-body h2 {
  font-size: 1.8rem;
  line-height: 1.15;
  margin-bottom: 14px;
}
.article-body p,
.prose p {
  font-size: 1rem;
  line-height: 1.7;
}
.article-body ul,
.prose li {
  line-height: 1.75;
}
.section-no {
  font-family: Archivo, sans-serif;
  font-size: 0.75rem;
  color: var(--accent);
  margin-right: 12px;
  vertical-align: middle;
  font-weight: 600;
  letter-spacing: 0;
}
.article-aside {
  border-left: 1px solid var(--line);
  padding: 5px 0 20px 22px;
  align-self: start;
  margin-top: 7px;
}
.article-aside h2 {
  font-size: 1.5rem;
  line-height: 1.15;
}
.article-aside p,
.article-aside li {
  font-size: 0.86rem;
}
.article-aside ul {
  padding-left: 18px;
}
.article-aside li {
  margin: 12px 0;
}
.article-aside hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 25px 0;
}
.diagram {
  margin: 32px 0;
}
.diagram img {
  width: 100%;
  height: auto;
  display: block;
}
.diagram figcaption {
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 5px;
}
.prompt-block {
  border-top: 2px solid var(--accent);
  background: var(--pale);
  padding: 22px;
}
.prompt-block p {
  font-size: 0.9rem;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font:
    400 0.88rem/1.65 Archivo,
    Arial,
    sans-serif;
  border-left: 2px solid var(--line);
  padding: 0 0 0 16px;
  margin: 20px 0;
}
.plan-result pre {
  max-height: 540px;
  overflow: auto;
}
.plan-result > div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.plan-result .micro {
  color: var(--result-ink);
}
.table-scroll {
  overflow: auto;
  max-width: 100%;
  margin: 18px 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  text-align: left;
}
td,
th {
  border-bottom: 1px solid var(--line);
  padding: 13px 12px;
  vertical-align: top;
}
th {
  font-weight: 550;
  background: var(--pale);
}
.faq {
  border-top: 1px solid var(--line);
  padding: 14px 0;
  font-size: 0.9rem;
}
.faq:last-child {
  border-bottom: 1px solid var(--line);
}
.faq p {
  font-size: 0.9rem;
}
.prose {
  max-width: 780px;
}
.prose h2 {
  margin-top: 30px;
  font-size: 1.8rem;
}
.tools-list section {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.tools-list h2 {
  font-size: 1.9rem;
  margin-top: 8px;
}
.tools-list p {
  color: var(--muted);
}
.site-footer {
  max-width: 1132px;
  margin: 30px auto 0;
  border-top: 2px solid var(--ink);
  padding: 28px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.footer-brand {
  font-weight: 650;
  text-decoration: none;
}
.site-footer p {
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 50ch;
}
.site-footer nav {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8rem;
}
.site-footer > .micro {
  grid-column: 1/-1;
  font-size: 0.73rem;
  margin: 0;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  max-width: 90vw;
  width: max-content;
  font-size: 0.82rem;
  border-radius: 2px;
  z-index: 5;
}
.toast:empty {
  display: none;
}
.noscript {
  max-width: 1132px;
  margin: 10px auto;
  padding: 20px;
  border: 1px solid var(--line);
}
@media (min-width: 900px) {
  .result {
    position: sticky;
    top: 16px;
  }
}
@media (max-width: 980px) {
  .site-header {
    gap: 16px;
  }
  .site-header nav {
    gap: 14px;
  }
  .brand {
    font-size: 1rem;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  .home-intro {
    gap: 24px;
  }
  .article-grid {
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 28px;
  }
  .editorial-section {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 24px;
  }
}
@media (max-width: 700px) {
  .site-header {
    padding: 12px 16px 10px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .brand {
    font-size: 1.04rem;
  }
  .preferences {
    margin-left: auto;
  }
  .site-header nav {
    order: 3;
    width: 100%;
    margin: 2px 0 0;
    justify-content: space-between;
    font-size: 0.79rem;
    gap: 10px;
  }
  .preferences button {
    font-size: 0.7rem;
    min-height: 32px;
    padding: 5px 7px;
  }
  main {
    padding: 20px 16px;
  }
  .home-intro {
    display: block;
    margin-bottom: 18px;
  }
  .home-intro h1 {
    font-size: 2.3rem;
  }
  .home-intro .lede {
    font-size: 0.87rem;
    line-height: 1.45;
  }
  .home-intro .port-photo {
    display: none;
  }
  .calculator {
    padding: 16px 14px;
    margin-left: -1px;
    margin-right: -1px;
  }
  .tool-heading {
    margin-bottom: 10px;
  }
  .tool-heading h2 {
    font-size: 1.55rem;
  }
  .tool-note {
    display: none;
  }
  .calc-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .field {
    font-size: 0.8rem;
  }
  .field-grid {
    gap: 0 10px;
  }
  .result {
    padding: 16px 18px;
  }
  .result output {
    font-size: 2.3rem;
  }
  .check {
    font-size: 0.77rem;
  }
  .editorial-section {
    display: block;
    padding: 15px 0 22px;
  }
  .section-title {
    padding: 8px 0 14px;
  }
  .section-title h2 {
    font-size: 2rem;
  }
  .guide-list article {
    gap: 13px;
    padding: 18px 0;
  }
  .guide-list h3 {
    font-size: 1.5rem;
  }
  .guide-list p:not(.eyebrow) {
    font-size: 0.82rem;
  }
  .arrow {
    font-size: 1.25rem;
  }
  .page-head {
    margin-bottom: 20px;
  }
  .page-head h1 {
    font-size: 2.4rem;
  }
  .page-head .lede {
    font-size: 0.95rem;
  }
  .article-head h1 {
    font-size: 2.4rem;
  }
  .answer {
    font-size: 1rem;
    padding-left: 14px;
  }
  .article-grid {
    display: block;
  }
  .article-aside {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 22px 0;
    margin-top: 28px;
  }
  .article-body h2 {
    font-size: 1.75rem;
  }
  .contents {
    padding: 15px 18px;
  }
  .prompt-block {
    padding: 18px;
  }
  .article-body p,
  .prose p {
    font-size: 0.96rem;
  }
  .site-footer {
    margin: 20px 16px 0;
    padding: 24px 0;
    display: block;
  }
  .site-footer nav {
    justify-content: flex-start;
    gap: 14px;
    margin: 20px 0;
  }
  .table-scroll td,
  .table-scroll th {
    padding: 10px 9px;
    font-size: 0.82rem;
  }
  .tools-strip h2 {
    font-size: 1.7rem;
  }
  pre {
    font-size: 0.84rem;
  }
  .byline {
    font-size: 0.74rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
@page {
  size: A4;
  margin: 16mm;
}
@media print {
  html {
    font-size: 11pt !important;
    color-scheme: light !important;
    background: white !important;
    color: black !important;
  }
  body {
    background: white !important;
    color: black !important;
  }
  body > * {
    display: none !important;
  }
  #print-report:not([hidden]) {
    display: block !important;
    color: black;
    background: white;
    font-family: Arial, sans-serif;
  }
  #print-report h1 {
    font-size: 24pt;
    color: black;
  }
  #print-report h2 {
    font-size: 16pt;
    color: black;
  }
  #print-report p {
    font-size: 10pt;
    line-height: 1.5;
  }
  #print-report table {
    font-size: 10pt;
  }
  #print-report th {
    background: #f0f0f0;
  }
  #print-report td,
  #print-report th {
    border-color: #bbb;
    color: black;
  }
  #print-report .report-foot {
    border-top: 1px solid #bbb;
    margin-top: 18px;
    padding-top: 10px;
  }
  body:not(.printing) > main {
    display: block !important;
    max-width: none;
    padding: 0;
  }
  body:not(.printing) .article-aside,
  body:not(.printing) .contents,
  body:not(.printing) button {
    display: none !important;
  }
}

.mobile-summary {
  display: none;
}
@media (max-width: 700px) {
  .mobile-summary {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--result);
    color: var(--result-ink);
    padding: 10px 12px;
    border-left: 3px solid var(--accent);
    font-size: 0.78rem;
  }
  .mobile-summary output {
    font-size: 1.05rem;
    font-weight: 650;
    white-space: nowrap;
  }
  .calc-grid:has(.mobile-summary) {
    gap: 15px;
  }
  .home-intro h1 {
    font-size: 2.15rem;
  }
}

.mobile-photo {
  display: none;
}
@media (max-width: 700px) {
  .mobile-photo {
    display: block;
    margin-bottom: 20px;
  }
  .mobile-photo picture {
    height: 190px;
  }
  .mobile-photo figcaption {
    font-size: 0.7rem;
  }
}
#print-report {
  display: none;
}
@media print {
  #print-report:not([hidden]) {
    display: block !important;
  }
}
input,
select,
textarea {
  border-color: #8b897d;
}
:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea {
  border-color: #92998b;
}
