* {
  box-sizing: border-box;
}
body,
h1,
h2,
h3,
p {
  margin: 0;
}
img,
svg {
  max-width: 100%;
}
button,
input,
select,
textarea {
  font: inherit;
}
:root {
  --paper: #f6f3eb;
  --ink: #243e44;
  --muted: #506367;
  --red: #a83f30;
  --line: #c8cec5;
}
html {
  scroll-padding-top: 2rem;
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
a:hover {
  color: var(--red);
}
h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.1;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.6rem, 5.5vw, 5.6rem);
  letter-spacing: -0.045em;
}
h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  letter-spacing: -0.03em;
}
h3 {
  font-size: 1.7rem;
  letter-spacing: -0.02em;
}
p + p {
  margin-top: 1em;
}
button,
.button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  padding: 0.85rem 1.25rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 1.6rem;
  font-weight: bold;
  border-radius: 3px;
  line-height: 1.4;
}
button:hover,
.button:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 5px;
}
input,
select,
textarea {
  padding: 0.7rem;
  border: 1px solid #7b8b87;
  background: #fffdf7;
  color: var(--ink);
  border-radius: 3px;
  max-width: 100%;
}
input[type="checkbox"] {
  accent-color: var(--ink);
  width: 1.1rem;
  height: 1.1rem;
}
label {
  font-weight: bold;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.94rem;
}
th,
td {
  border-bottom: 1px solid var(--line);
  padding: 0.9rem;
  text-align: left;
  vertical-align: top;
}
th {
  background: #e7eadd;
}
ul,
ol {
  padding-left: 1.5rem;
}
li + li {
  margin-top: 0.45rem;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -8rem;
  background: #fff;
  padding: 1rem;
  z-index: 5;
}
.skip-link:focus {
  top: 1rem;
}
.site-header {
  min-height: 112px;
  max-width: 1440px;
  margin: auto;
  padding: 1.8rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  gap: 2rem;
}
.brand {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  text-decoration: none;
  font-size: 0.86rem;
  line-height: 1.25;
  letter-spacing: 0.02em;
}
.brand b {
  font-size: 1.25rem;
  font-family: Georgia, serif;
  font-weight: 400;
}
.brand-mark {
  flex-shrink: 0;
}
.site-header nav {
  display: flex;
  gap: 2rem;
  font-size: 0.88rem;
}
.site-header nav a {
  text-decoration: none;
}
.site-header nav a[aria-current] {
  text-decoration: underline;
}
.hero {
  max-width: 1440px;
  margin: auto;
  padding: 4.5rem 5% 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4%;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 1.3rem;
}
.hero h1 {
  max-width: 660px;
}
.hero .intro {
  font-size: 1.1rem;
  max-width: 480px;
  color: var(--muted);
  margin: 1.8rem 0 2rem;
}
.hero-art {
  padding: 1.5rem 0 0;
}
.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 44% 44% 4px 4px;
}
.image-caption {
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  margin-top: 0.8rem;
  text-align: right;
  color: var(--muted);
}
.hero-footnote {
  margin-top: 1.4rem;
  font-size: 0.76rem;
  color: var(--muted);
}
.status-dot {
  display: inline-block;
  background: var(--red);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 0.4rem;
}
.bench-strip {
  border-block: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 1.3rem 5%;
  gap: 2rem;
  max-width: 1440px;
  margin: auto;
  font-size: 0.8rem;
}
.bench-strip strong {
  display: block;
  font-size: 0.84rem;
}
.bench-strip span {
  color: var(--muted);
}
.section {
  max-width: 1440px;
  margin: auto;
  padding: 4.5rem 5%;
}
.section-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 2rem;
}
.section-top h2 {
  max-width: 650px;
}
.section-top > a {
  white-space: nowrap;
  font-size: 0.86rem;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}
.guide-card {
  display: flex;
  flex-direction: column;
  border-top: 2px solid var(--ink);
  padding: 1.4rem 0 1.6rem;
  text-decoration: none;
  min-height: 295px;
}
.guide-card h3 {
  margin: 1.2rem 0 0.8rem;
}
.guide-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.card-number {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
}
.text-link {
  margin-top: auto;
  font-size: 0.8rem;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
}
.tools-section {
  background: #e2e7dd;
  border-block: 1px solid var(--line);
}
.tools-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.tool-feature {
  padding: 2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
}
.tool-icon {
  font-size: 2.7rem;
  line-height: 1;
  color: var(--red);
  font-family: Georgia, serif;
  margin-bottom: 1rem;
}
.tool-feature h3 {
  margin-bottom: 1rem;
}
.tool-feature p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}
.tool-feature a {
  font-size: 0.85rem;
  font-weight: bold;
}
.editor-note {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5%;
  border-bottom: 1px solid var(--line);
}
.editor-note p {
  color: var(--muted);
  max-width: 570px;
}
.editor-note a {
  display: inline-block;
  margin-top: 1.2rem;
  font-size: 0.9rem;
}
.site-footer {
  max-width: 1440px;
  margin: auto;
  padding: 3.5rem 5% 1.2rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  font-size: 0.8rem;
}
.footer-brand {
  font-family: Georgia, serif;
  font-size: 1.6rem;
  line-height: 1.15;
  text-decoration: none;
  display: block;
  margin-bottom: 1rem;
}
.site-footer strong {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.site-footer > div:not(:first-child) a {
  display: block;
  margin: 0.45rem 0;
}
.footer-bottom {
  grid-column: 1/-1;
  border-top: 1px solid var(--line);
  padding-top: 1.3rem;
  color: var(--muted);
  font-size: 0.7rem;
}
.cookie-note {
  margin: auto;
  max-width: 1440px;
  padding: 0.65rem 5%;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.73rem;
}
.cookie-note button {
  padding: 0.35rem 0.8rem;
  font-size: 0.7rem;
}
.article-wrap {
  max-width: 1000px;
  margin: auto;
  padding: 2rem 5% 4rem;
}
.breadcrumbs {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 3.5rem;
}
.article-heading h1 {
  font-size: clamp(2.6rem, 5vw, 4.3rem);
  max-width: 900px;
}
.standfirst {
  font-size: 1.18rem;
  margin-top: 1.6rem;
  color: var(--muted);
  max-width: 750px;
}
.byline {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 1.5rem 0 2.5rem;
}
.prose {
  max-width: 780px;
}
.prose h2 {
  font-size: 2rem;
  margin: 2.5rem 0 1rem;
}
.prose h3 {
  font-size: 1.4rem;
  margin: 1.7rem 0 0.8rem;
}
.prose p {
  margin: 1rem 0;
}
.prose table {
  margin: 1.5rem 0;
}
.notice {
  background: #e5e9df;
  border-left: 3px solid var(--red);
  padding: 1rem 1.3rem;
  margin: 1.8rem 0;
  font-size: 0.9rem;
}
.notice p {
  margin: 0.5rem 0;
}
.fine,
.source-note {
  font-size: 0.78rem;
  color: var(--muted);
}
.sources {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  font-size: 0.85rem;
}
.article-next {
  border-top: 1px solid var(--line);
  padding-top: 2rem;
  margin-top: 3rem;
}
.article-next > a {
  font-family: Georgia, serif;
  font-size: 1.6rem;
}
.table-scroll {
  overflow-x: auto;
  margin: 1.5rem 0;
  max-width: 100%;
}
.table-scroll table {
  min-width: 640px;
}
.tool-panel {
  background: #fffdf6;
  border: 1px solid var(--line);
  padding: 1.6rem;
  margin: 2rem 0;
}
.tool-panel h2 {
  margin-top: 0;
}
.tool-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
}
.tool-fields label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.85rem;
  flex: 1;
  min-width: 180px;
}
.check-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin: 0.6rem 0;
}
.chart-card {
  border-top: 1px solid var(--line);
  padding: 1.3rem 0;
}
.chart-card h3 {
  margin: 0 0 0.8rem;
}
.chart-card p {
  font-size: 0.9rem;
}
fieldset {
  border: 1px solid var(--line);
  padding: 1rem;
  margin: 1rem 0;
}
legend {
  font-weight: bold;
  padding: 0 0.4rem;
}
.form-stack {
  display: grid;
  gap: 1rem;
}
.form-stack label {
  display: grid;
  gap: 0.4rem;
}
.form-stack .check-option {
  display: flex;
}
.offscreen {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-stack textarea {
  min-height: 180px;
}
.empty-state,
.tool-loading {
  padding: 1rem;
  background: #e5e9df;
}
.all-guides {
  padding-top: 3rem;
}
.all-guides > h1 {
  margin-bottom: 1rem;
}
.all-guides > .intro {
  max-width: 600px;
  margin-bottom: 3rem;
  color: var(--muted);
}
@media (max-width: 900px) {
  .site-header {
    align-items: start;
  }
  .site-header nav {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: end;
    max-width: 380px;
  }
  .hero {
    gap: 2rem;
    padding-top: 3rem;
  }
  .hero h1 {
    font-size: 3.8rem;
  }
  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .editor-note {
    gap: 2rem;
  }
}
@media (max-width: 620px) {
  .site-header {
    display: block;
    padding: 1.2rem 6%;
  }
  .site-header nav {
    justify-content: start;
    max-width: none;
    margin-top: 1.3rem;
    gap: 0.7rem 1.2rem;
    font-size: 0.76rem;
  }
  .brand {
    font-size: 0.72rem;
  }
  .brand b {
    font-size: 1.1rem;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 2.5rem 6%;
    gap: 1.5rem;
  }
  .hero h1 {
    font-size: 3.6rem;
    max-width: 450px;
  }
  .hero .intro {
    font-size: 1rem;
    margin: 1.3rem 0 1.5rem;
  }
  .hero-art {
    padding: 0;
    max-width: 480px;
  }
  .hero-art img {
    border-radius: 38% 38% 4px 4px;
  }
  .bench-strip {
    grid-template-columns: 1fr;
    padding: 1.3rem 6%;
    gap: 0.9rem;
  }
  .bench-strip strong {
    display: inline;
    margin-right: 0.5rem;
  }
  .section {
    padding: 3rem 6%;
  }
  .section-top {
    display: block;
  }
  .section-top > a {
    display: inline-block;
    margin-top: 1rem;
  }
  .guide-grid,
  .tools-inner,
  .editor-note {
    grid-template-columns: 1fr;
  }
  .guide-card {
    min-height: 240px;
  }
  .tool-feature {
    padding: 1.5rem;
  }
  .site-footer {
    grid-template-columns: 1fr 1fr;
    padding: 2.5rem 6% 1rem;
  }
  .site-footer > div:first-child {
    grid-column: 1/-1;
  }
  .site-footer p a {
    overflow-wrap: anywhere;
  }
  .cookie-note {
    padding: 0.6rem 6%;
  }
  .article-wrap {
    padding: 1.5rem 6% 3rem;
  }
  .breadcrumbs {
    margin-bottom: 2rem;
  }
  .standfirst {
    font-size: 1.05rem;
  }
  .article-heading h1 {
    font-size: 2.8rem;
  }
  .tool-panel {
    padding: 1rem;
  }
  .table-scroll table {
    font-size: 0.8rem;
  }
  th,
  td {
    padding: 0.6rem;
  }
  .form-stack input,
  .form-stack textarea {
    width: 100%;
  }
}
