.os-open {
  --ink: #24362b;
  --green: #294f40;
  --paper: #faf9f3;
  --sage: #eaf0e7;
  --line: #ced8cc;
  --button: #8c3827;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 1.125rem/1.6 Inter, system-ui, sans-serif;
}

.os-open *, .os-open *::before, .os-open *::after { box-sizing: border-box; }
.os-open [id] { scroll-margin-top: 1rem; }
.os-open a { color: var(--green); text-underline-offset: .2em; overflow-wrap: anywhere; }
.os-open :focus-visible { outline: 3px solid var(--button); outline-offset: 4px; }
.os-wrap { width: min(100% - 2.5rem, 70rem); margin-inline: auto; }
.os-masthead { background: var(--paper); border-bottom: 1px solid var(--line); }
.os-masthead .os-wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 4rem; }
.os-masthead a { font-size: .95rem; }
.os-masthead .os-brand { font: 1.75rem/1 "Instrument Serif", Georgia, serif; text-decoration: none; color: var(--ink); }
.os-skip { position: absolute; left: 1rem; top: 1rem; background: white; padding: .5rem; transform: translateY(-200%); }
.os-skip:focus { transform: none; }
.os-hero { border-bottom: 1px solid var(--line); background: var(--sage); padding-block: clamp(2rem, 7vw, 4.5rem); }
.os-open h1, .os-open h2 { font-family: "Instrument Serif", Georgia, serif; line-height: 1.1; font-weight: 400; }
.os-open h1 { font-size: clamp(2.65rem, 7vw, 5rem); margin: .45rem 0 1rem; }
.os-open h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin: 1.5rem 0 .55rem; }
.os-open p { margin: 0 0 1rem; }
.os-open .os-lead { font-size: clamp(1.21rem, 2.4vw, 1.42rem); line-height: 1.5; max-width: 54ch; }
.os-open .os-meta { color: var(--green); font-size: .95rem; font-weight: 650; margin: 0; }
.os-main { padding-block: 1.5rem 3rem; }
.os-frax-card, .os-action { border-radius: .85rem; border: 1px solid var(--line); background: var(--sage); padding: clamp(1.1rem, 4vw, 1.6rem); }
.os-frax-card { max-width: 46rem; margin-bottom: 2rem; }
.os-frax-card h2, .os-action h2 { margin-top: 0; }
.os-frax-card p { max-width: 58ch; }
.os-action { margin: 1.65rem 0; }
.os-action p:last-child { margin-bottom: 0; }
.os-buttons, .os-pager { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.4rem; }
.os-open .os-button { background: var(--button); color: white; text-decoration: none; border-radius: 2rem; min-height: 3rem; display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1.05rem; font-weight: 650; }
.os-button span { font-size: 1.45em; line-height: 1; }
.os-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; list-style: none; padding: 0; }
.os-list a { display: block; height: 100%; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: .75rem; background: #fffdf7; text-decoration: none; }
.os-list a:hover strong, .os-list a:focus-visible strong { text-decoration: underline; text-underline-offset: .2em; }
.os-list span, .os-list strong, .os-list small { display: block; }
.os-list span { font-size: .92rem; font-weight: 650; margin-bottom: .2rem; }
.os-list strong { font-size: 1.16rem; text-decoration: underline; text-underline-offset: .2em; }
.os-list small { font-size: 1rem; margin-top: .2rem; color: var(--ink); }
.os-article { max-width: 46rem; padding-block: 1.55rem 3rem; }
.os-article > header { margin-top: 1.4rem; }
.os-article h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); }
.os-article ul, .os-article ol { padding-left: 1.4em; }
.os-article li { margin-bottom: .45rem; }
.os-points dd { margin: .15rem 0 .9rem; }
.os-points dt { font-weight: 700; }
.os-detail { padding: .8rem 1rem; border: 1px solid var(--line); border-radius: .65rem; margin-block: 1.3rem; background: #fffdf7; }
.os-detail summary { font-weight: 650; cursor: pointer; color: var(--green); }
.os-detail[open] summary { margin-bottom: .65rem; }
.os-detail > :last-child { margin-bottom: 0; }
.os-example { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .7rem; margin-bottom: 1rem; }
.os-example div { border: 1px solid var(--line); padding: .9rem; border-radius: .75rem; background: #fffdf7; }
.os-example strong { color: var(--green); display: block; font-size: 1.25rem; margin-bottom: .3rem; }
.os-example p { margin: 0; }
.os-pager { padding-top: .3rem; }
.os-sources { margin-top: 2rem; font-size: 1rem; }
.os-footer { border-top: 1px solid var(--line); padding-block: 1.25rem; }
.os-footer p { margin: 0 0 .2rem; font-size: 1rem; }
@media (max-width: 39rem) {
  .os-wrap { width: calc(100% - 2rem); }
  .os-list, .os-example { grid-template-columns: 1fr; }
}

.os-hero .os-wrap > p:not(.os-meta) { max-width: 54ch; }
.os-check { background: var(--sage); }
.os-open { overflow-wrap: anywhere; }
@media (max-width: 39rem) { .os-list, .os-example { grid-template-columns: minmax(0, 1fr); } }

.os-report { margin: 1rem 0 .7rem; max-width: 32rem; }
.os-report img { display: block; width: 100%; height: auto; }
.os-report figcaption { margin-top: .65rem; }

#calcium-form fieldset { min-width: 0; padding: .75rem .9rem; margin: 0 0 1rem; border: 1px solid var(--line); border-radius: .75rem; }
#calcium-form legend { padding-inline: .35rem; font-weight: 700; }
.calcium-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .45rem 1rem; padding-block: .7rem; }
.calcium-item + .calcium-item { border-top: 1px solid var(--line); }
.calcium-item label { flex: 1 1 12rem; }
.calcium-item span { display: block; }
.calcium-item select, .calcium-item input { max-width: 100%; width: 6rem; min-height: 2.75rem; font: inherit; border: 1px solid var(--green); border-radius: .4rem; padding: .25rem .5rem; color: var(--ink); background: white; }
.calcium-total { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1rem; padding: .6rem .9rem; border-radius: .6rem; background: var(--sage); }
.calcium-total output { font-size: 1.3em; }
#calcium-form button { border: 0; cursor: pointer; font-family: inherit; font-size: 1em; }
#calcium-form button[type=reset] { color: var(--green); background: transparent; text-decoration: underline; }

.os-tools { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,19rem),1fr)); gap:1rem; margin:2rem 0; }
.os-tools .os-frax-card { margin:0; }
.os-continue { margin:2.5rem 0 1rem; }
.os-continue a { display:block; max-width:44rem; border:1px solid var(--line); border-left:.35rem solid var(--green); border-radius:.85rem; padding:clamp(1.25rem,4vw,2rem); text-decoration:none; background:#fffdf7; }
.os-continue h3 { margin:.4rem 0; font:400 clamp(1.75rem,4vw,2.35rem)/1.18 "Instrument Serif",Georgia,serif; }
.os-continue p { color:var(--ink); }
.os-continue strong { text-decoration:underline; text-underline-offset:.22em; }
.os-continue a:hover { background:var(--sage); }
.os-detail summary { padding-block:.4rem; }
.os-article h2 { max-width:32ch; }
