/* GENERATED by tools/build-tool-shell.js from style.css — do not edit.
   Shared site chrome (skip link, header, nav, mobile menu, footer) for the
   self-contained calculator pages, which keep their own page CSS. */
:root {
/* Palette - warm "morning paper" cream + terracotta accent. Forced light. */
  --bg:        #fbf7ef;   /* warmer cream, slight peach */
  --bg-soft:   #f3ece0;   /* a touch warmer than before */
  --ink:       #1c1a16;   /* near-black with warm tint */
  --ink-soft:  #534f47;
  --muted:     #8e887d;
  --rule:      #e6dfd0;
  --accent:    #b56a3f;   /* warm terracotta -- feels editorial + inviting */
  --accent-2:  #5b7f6b;   /* muted sage, used sparingly */

  /* Type */
  --serif: "Newsreader", "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --maxw-prose: 38rem;   /* ~640px reading width */
  --maxw-wide:  64rem;   /* project grid pages */
  --gutter:     1.25rem;

  /* Motion */
  --ease: cubic-bezier(.2,.7,.3,1);
}
html { color-scheme: light; }
.skip-link {
  position: absolute; left: -9999px; top: .5rem; z-index: 2000;
  background: var(--accent); color: #fff; padding: .55rem 1rem;
  border-radius: 4px; font-family: var(--sans); font-size: .9rem; text-decoration: none;
}
.skip-link:focus { left: .5rem; }
.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding: 1.6rem var(--gutter) 1rem;
  border-bottom: 1px solid var(--rule);
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
  flex-shrink: 0;
}
.brand img {
  height: 38px;
  width: auto;
  display: block;
}
.brand:hover { text-decoration: none; opacity: .85; }
@media (max-width: 560px) {
  .brand img { height: 30px; }
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem 1.4rem;
  font-size: .95rem;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  position: relative;
}
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] {
  color: var(--ink);
}
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -.35em;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 4rem;
}
.footer-inner {
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding: 1.5rem var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .9rem;
  color: var(--muted);
}
.copy { margin: 0; }
.social {
  list-style: none;
  display: flex;
  flex-wrap: wrap;   /* 10 links: must wrap on phones or the page overflows */
  gap: .6rem 1.25rem;
  padding: 0;
  margin: 0;
}
.social a { color: var(--ink-soft); text-decoration: none; }
.social a:hover { color: var(--accent); }
@media (max-width: 560px) {
  .site-header { padding-top: 1.1rem; }
  .site-nav { gap: .6rem .9rem; font-size: .88rem; justify-content: flex-start; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media print {
  .site-header, .site-footer, .skip-link, .site-nav { display: none !important; }
}
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--rule);
  backdrop-filter: saturate(1.2) blur(6px); }
.nav-toggle { display:none; margin-left:auto; width:40px; height:40px; border:1px solid var(--rule); border-radius:8px;
  background:transparent; cursor:pointer; padding:9px 8px; flex-direction:column; justify-content:space-between; }
.nav-toggle span { display:block; height:2px; background:var(--ink); border-radius:2px; }
.nav-subscribe { border:1px solid var(--accent); color:var(--accent) !important; border-radius:999px; padding:.3rem .8rem !important; }
.nav-subscribe:hover { background:var(--accent); color:#fff !important; }
.site-nav a[aria-current="page"] { color:var(--ink); border-bottom:2px solid var(--accent); }
@media (max-width: 760px) {
  .nav-toggle { display:flex; }
  .site-nav { display:none; position:absolute; left:0; right:0; top:100%; flex-direction:column; gap:0;
      background:var(--bg); border-bottom:1px solid var(--rule); padding:.5rem 1rem 1rem; }
  .site-nav.is-open { display:flex; }
  .site-nav a { padding:.65rem 0; border-bottom:1px solid var(--rule); }
  .site-nav a.nav-subscribe { margin-top:.5rem; text-align:center; }
}

/* Calculator pages: the shell owns the page edges; the tool body keeps its
   own gutters inside <main class="tool-main">. */
body.tool-page { padding: 0; }
.tool-main { padding: 36px 40px 100px; }
@media (max-width: 900px) { .tool-main { padding: 24px 20px 80px; } }
/* The calculators' fixed "Share this" button and its toast used to sit in the
   top-right corner above the old inline header; the shared header is sticky,
   so they move below it. */
.tool-page .share-btn { top: 112px; }
.tool-page .share-toast { top: 158px; }
