/* DateFrom theme. One stylesheet, no framework. */

:root {
  --ink: #12332b;
  --ink-soft: #2c4a42;
  --muted: #536a62;
  --green: #1e7a5a;
  --green-dark: #155c43;
  --green-tint: #e3f0ea;
  --red: #c8323c;
  --mist: #eef3ef;
  --paper: #ffffff;
  --rule: #d3ddd7;
  --rule-soft: #e5ece8;
  --hl: #fff2b3;
  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 10px;
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body);
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--green-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.3rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.7rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
code { font: 600 .9em/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--mist); border: 1px solid var(--rule-soft); border-radius: 6px; padding: .1em .45em; white-space: normal; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.small { font-size: .9rem; color: var(--muted); }

/* Header -------------------------------------------------------------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 40; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand .logo-mark { color: var(--ink); flex: none; }
.logo-img { display: block; flex: none; border-radius: 10px; }
.brand-footer .logo-img { border-radius: 0; margin: -10px -6px -10px -12px; }
.brand-name { font: 800 1.35rem/1 var(--display); letter-spacing: -0.02em; }
.brand-name span { color: var(--green); }
@media (max-width: 420px) { .brand-name { font-size: 1.08rem; } .brand { gap: 8px; } }
.custom-logo { max-height: 44px; width: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; flex-wrap: wrap; }
.nav-list a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink-soft); font-weight: 600; font-size: .95rem; text-decoration: none; }
.nav-list a:hover { background: var(--mist); color: var(--ink); }
.nav-list a[aria-current="page"], .nav-list .current-menu-item > a { color: var(--green-dark); box-shadow: inset 0 -3px 0 var(--green); border-radius: 8px 8px 0 0; }
.nav-toggle { display: none; background: none; border: 1px solid var(--rule); border-radius: 8px; width: 44px; height: 40px; cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; background: var(--ink); margin: 0 auto; position: relative; transition: transform .2s; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 8px 20px 16px; }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; }
  .nav-list a { padding: 12px 8px; border-bottom: 1px solid var(--rule-soft); border-radius: 0; }
}

/* Breadcrumbs --------------------------------------------------------- */
.crumbs ol { list-style: none; margin: 0; padding: 18px 0 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 6px 0 2px; color: var(--rule); }
.crumbs a { color: var(--muted); }

/* Page shells --------------------------------------------------------- */
.page { padding-bottom: 64px; }
.hero { padding: 28px 0 8px; }
.hero-plain { max-width: 760px; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }

/* The calendar leaf: the one bold element ----------------------------- */
.leaf {
  margin: 0; width: 100%; max-width: 270px; justify-self: end; position: relative;
  background: var(--paper); border-radius: 14px; text-align: center;
  box-shadow: 0 1px 0 var(--rule), 0 14px 30px -18px rgba(18, 51, 43, .55);
  padding-bottom: 18px;
}
.leaf::before, .leaf::after { content: ""; position: absolute; left: 10px; right: 10px; height: 100%; background: var(--paper); border-radius: 14px; z-index: -1; border: 1px solid var(--rule); }
.leaf::before { bottom: -6px; left: 6px; right: 6px; }
.leaf::after { bottom: -11px; left: 12px; right: 12px; opacity: .7; }
.leaf-rings { position: absolute; top: -9px; left: 0; right: 0; display: flex; justify-content: space-around; padding: 0 22%; }
.leaf-rings span { width: 12px; height: 22px; border-radius: 7px; background: var(--ink); box-shadow: inset 0 0 0 3px #3b5a51; }
.leaf-month { background: var(--red); color: #fff; border-radius: 14px 14px 0 0; padding: 20px 12px 10px; font: 600 1.05rem/1 var(--display); letter-spacing: .02em; }
.leaf-day { font: 800 clamp(5.5rem, 4rem + 5vw, 7.5rem)/1 var(--display); letter-spacing: -0.05em; color: var(--ink); padding: 14px 0 2px; font-variant-numeric: lining-nums; }
.leaf-weekday { font-weight: 700; font-size: 1.1rem; color: var(--green-dark); }
.leaf-caption { margin-top: 8px; font-size: .88rem; color: var(--muted); padding: 0 12px; }
.leaf.is-flipping { animation: leaf-flip .42s cubic-bezier(.3, .7, .3, 1); transform-origin: top center; }
@keyframes leaf-flip { 0% { transform: perspective(700px) rotateX(-70deg); opacity: .2; } 100% { transform: none; opacity: 1; } }

/* Answer hero (result and event pages) -------------------------------- */
.answer-hero { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 48px; align-items: center; padding: 26px 0 40px; border-bottom: 1px solid var(--rule); }
.answer { font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); line-height: 1.4; margin-bottom: .6em; }
.answer strong { background: linear-gradient(transparent 58%, var(--hl) 58%); padding: 0 2px; }
.nojs-date { background: var(--hl); border-radius: var(--radius); padding: 12px 16px; margin: 14px 0 0; font-size: .95rem; }
.nojs-date p { margin: 0; }
.notice { background: var(--green-tint); border-left: 4px solid var(--green); padding: 10px 14px; border-radius: 0 8px 8px 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* Buttons ------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: var(--radius); border: 2px solid var(--green); background: var(--green); color: #fff; font: 700 .95rem/1.2 var(--body); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn-quiet { background: transparent; color: var(--green-dark); }
.btn-quiet:hover { background: var(--green-tint); color: var(--ink); }
.btn.is-done { background: var(--ink); border-color: var(--ink); color: #fff; }
.link-btn { background: none; border: 0; color: var(--green-dark); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 4px; }

/* Calculator ---------------------------------------------------------- */
.hero-calc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.hero-tool { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 40px; align-items: center; background: var(--paper); border: 1px solid var(--rule); border-radius: 16px; padding: 30px; margin-top: 8px; }
.calc-sentence { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 14px; font: 600 clamp(1.4rem, 1rem + 1.6vw, 2rem)/1.3 var(--display); }
.calc-sentence input, .calc-sentence select {
  font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 3px solid var(--green);
  border-radius: 0; padding: 2px 4px; min-height: 48px;
}
.calc-sentence select { cursor: pointer; padding-right: 26px; appearance: none; -webkit-appearance: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%231e7a5a' stroke-width='2.5'/%3E%3C/svg%3E") no-repeat right 4px center; }
.calc-n { width: 4.2ch; text-align: center; }
.calc-n::-webkit-outer-spin-button, .calc-n::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-n { -moz-appearance: textfield; }
.calc-start { font-size: .8em !important; max-width: 100%; }
.calc-sentence input:focus, .calc-sentence select:focus { outline: none; background: var(--green-tint); }
.calc-options { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin: 18px 0 6px; font-size: .95rem; color: var(--ink-soft); }
.check { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--green); }
.calc-out { border-top: 1px solid var(--rule-soft); margin-top: 14px; padding-top: 16px; }
.calc-result { font-size: 1.3rem; font-weight: 700; margin: 0 0 4px; }
.calc-sub { color: var(--muted); margin: 0 0 12px; font-size: .95rem; }
.calc-sub:empty { display: none; }

/* Content layout ------------------------------------------------------ */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 56px; padding-top: 36px; }
.layout-single { grid-template-columns: minmax(0, 1fr); }
.content { max-width: 760px; }
.content-wide { max-width: none; }
.content > section, .page > .wrap > section { margin-bottom: 44px; }
.content h2 { padding-top: 6px; }
.rail-box { position: sticky; top: 90px; border-left: 3px solid var(--green); padding: 4px 0 4px 16px; }
.rail-h { font: 700 1rem/1.2 var(--display); margin-bottom: 8px; }
.rail ul { list-style: none; margin: 0; padding: 0; font-size: .93rem; }
.rail li a { display: block; padding: 5px 0; color: var(--ink-soft); text-decoration: none; }
.rail li a:hover { color: var(--green-dark); text-decoration: underline; }
.rail .event-list a { display: grid; grid-template-columns: 58px 1fr; padding: 9px 0; }
.rail .ev-count b { font-size: 1.25rem; }

/* Facts --------------------------------------------------------------- */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 2px solid var(--ink); }
.facts > div { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-size: .85rem; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 700; font-size: 1.05rem; }

/* Tables -------------------------------------------------------------- */
table { border-collapse: collapse; width: 100%; }
.data { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; font-variant-numeric: tabular-nums; margin: 6px 0 16px; }
.data th { text-align: left; font-size: .85rem; font-weight: 700; color: var(--muted); background: #f6f9f7; padding: 10px 14px; border-bottom: 1px solid var(--rule); }
.data td { padding: 10px 14px; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.data tr:last-child td { border-bottom: 0; }
.data tr.is-target td { background: var(--hl); font-weight: 700; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-hub td:first-child a { font-weight: 700; }

/* Month grid ---------------------------------------------------------- */
.month { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); max-width: 460px; text-align: center; font-variant-numeric: tabular-nums; }
.month caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.month th { font-size: .8rem; color: var(--muted); padding: 10px 0 6px; font-weight: 700; }
.month td { padding: 4px; height: 44px; width: 14.28%; }
.month td > span, .month td { font-weight: 600; }
.month .is-weekend { color: var(--muted); }
.month .is-holiday { color: var(--red); }
.month .is-today > span, .month .is-today { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.month .is-target > span { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: #fff; }
.legend { font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.key { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: -8px; vertical-align: middle; }
.key-target { background: var(--red); } .key-holiday { border: 2px solid var(--red); } .key-weekend { background: var(--rule); }

/* Steps, notes, FAQ --------------------------------------------------- */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 16px; }
.steps li { counter-increment: s; position: relative; padding: 0 0 16px 46px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 .9rem/30px var(--body); text-align: center; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 32px; bottom: 4px; width: 2px; background: var(--rule); }
.steps code { display: inline-block; margin-top: 4px; }
.notes { padding-left: 1.2em; } .notes li { margin-bottom: .6em; }
.tip { background: var(--paper); border: 1px solid var(--rule); border-left: 4px solid var(--red); padding: 12px 16px; border-radius: 0 var(--radius) var(--radius) 0; }
.faq details { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 14px 44px 14px 16px; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 10px; height: 10px; border-right: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-a { padding: 0 16px 6px; color: var(--ink-soft); }

/* Chips and link lists ------------------------------------------------ */
.chips { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-block; padding: 8px 14px; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .93rem; }
.chips a:hover { border-color: var(--green); color: var(--green-dark); }

/* Mini calculator ----------------------------------------------------- */
.mini-calc { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; background: var(--green-tint); border-radius: var(--radius); padding: 14px 16px; }
.mini-calc label { font-weight: 700; }
.mini-calc input { font: inherit; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 8px; background: #fff; min-height: 44px; }
.mini-calc output { font-weight: 700; color: var(--green-dark); }

/* Countdown ----------------------------------------------------------- */
.countdown { display: flex; gap: 10px; margin: 18px 0 6px; flex-wrap: wrap; }
.countdown div { background: var(--ink); color: #fff; border-radius: var(--radius); min-width: 78px; padding: 10px 12px 8px; text-align: center; }
.countdown b { display: block; font: 800 1.9rem/1 var(--display); font-variant-numeric: tabular-nums; }
.countdown span { font-size: .78rem; opacity: .8; }

/* Event lists --------------------------------------------------------- */
.event-list { list-style: none; margin: 0; padding: 0; }
.event-list li { border-bottom: 1px solid var(--rule); }
.event-list a { display: grid; grid-template-columns: 74px 1fr; grid-template-rows: auto auto; column-gap: 12px; padding: 10px 0; text-decoration: none; color: var(--ink); }
.ev-count { grid-row: span 2; font-size: .8rem; color: var(--muted); line-height: 1.1; align-self: center; }
.ev-count b { display: block; font: 800 1.45rem/1 var(--display); color: var(--green-dark); }
.ev-name { font-weight: 700; line-height: 1.25; }
.ev-date { font-size: .85rem; color: var(--muted); }
.event-list a:hover .ev-name { text-decoration: underline; }
.up-next { margin: 8px 0 36px; }
.up-next-label { font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.up-next-card { display: grid; grid-template-columns: auto 1fr; gap: 2px 20px; align-items: baseline; background: var(--ink); color: #fff; text-decoration: none; padding: 24px 28px; border-radius: 16px; max-width: 760px; }
.up-next-card:hover { color: #fff; background: var(--ink-soft); }
.up-next-days { grid-row: span 2; font: 800 clamp(2rem, 1.5rem + 2vw, 3rem)/1 var(--display); color: var(--hl); }
.up-next-name { font: 700 1.35rem/1.2 var(--display); }
.up-next-date { opacity: .8; }

/* Home ---------------------------------------------------------------- */
.hero-home { padding-top: 36px; }
.units { padding-top: 48px; }
.unit-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.unit-col { padding: 18px 22px 8px 0; }
.unit-col + .unit-col { padding-left: 22px; border-left: 1px solid var(--rule); }
.unit-col h3 a { color: var(--ink); text-decoration: none; }
.unit-col h3 a:hover { color: var(--green-dark); text-decoration: underline; }
.unit-col p { color: var(--muted); font-size: .95rem; }
.unit-col ul { list-style: none; padding: 0; margin: 0; }
.unit-col li { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-top: 1px solid var(--rule-soft); font-size: .95rem; }
.unit-col li a { font-weight: 700; }
.unit-col li span { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.home-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; padding-top: 48px; }
.more-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font-weight: 600; }
.how { padding-top: 48px; }
.how-grid, .explain-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.how-grid p, .explain-grid p { color: var(--ink-soft); }
.how-grid > div, .explain-grid > div { border-top: 3px solid var(--green); padding-top: 14px; }
.page-home .faq { max-width: 760px; padding-top: 24px; }
.post-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px; }
.post-card h2, .post-card h3 { font-size: 1.15rem; }
.post-card h2 a, .post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover, .post-card h3 a:hover { text-decoration: underline; }
.post-card p { color: var(--ink-soft); font-size: .95rem; }
.post-card time { font-size: .85rem; color: var(--muted); }
.post-thumb img { border-radius: 8px; margin-bottom: 12px; aspect-ratio: 1200 / 630; object-fit: cover; }
.pager { margin-top: 28px; display: flex; gap: 8px; flex-wrap: wrap; }
.pager .page-numbers { padding: 8px 14px; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); text-decoration: none; }
.pager .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Posts and static pages ---------------------------------------------- */
.prose-wrap { max-width: 720px; margin: 0 auto; padding-top: 18px; }
.post-head { margin-bottom: 20px; }
.post-meta { color: var(--muted); font-size: .95rem; }
.post-hero img { border-radius: var(--radius); }
.prose { font-size: 1.1rem; line-height: 1.72; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose img { border-radius: 8px; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--green); color: var(--ink-soft); }
.prose table { background: var(--paper); border: 1px solid var(--rule); }
.prose th, .prose td { padding: 8px 12px; border-bottom: 1px solid var(--rule-soft); text-align: left; }
.post-cta { margin-top: 36px; padding: 16px 20px; background: var(--green-tint); border-radius: var(--radius); }
.search-form { display: flex; gap: 10px; max-width: 480px; }
.search-form input { flex: 1; font: inherit; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 8px; min-height: 44px; }

/* Footer -------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #d6e3dd; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #8fd3b4; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr 1.4fr; gap: 36px; padding-top: 52px; padding-bottom: 44px; }
.footer-h { font: 700 1rem/1.2 var(--display); color: #fff; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 5px 0; }
.footer-about p { color: #c4d6ce; margin-bottom: 18px; }
.brand-footer { color: #fff; margin-bottom: 14px; }
.brand-footer .brand-name span { color: #8fd3b4; }
.contact-icons li { display: flex; gap: 12px; align-items: flex-start; padding: 6px 0; }
.contact-icons svg { flex: none; margin-top: 3px; color: #8fd3b4; }
.footer-bottom-bar { background: #0c241e; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 24px; min-height: 60px; padding-top: 14px; padding-bottom: 14px; font-size: .9rem; }
.footer-bottom p { margin: 0; }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.legal-links li { padding: 0; }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.social li { padding: 0; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.social a:hover { background: var(--green); color: #fff; text-decoration: none; }

/* HTML sitemap --------------------------------------------------------- */
.sitemap-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 28px; list-style: none; padding: 0; margin: 0 0 12px; }
.sitemap-cols li { padding: 3px 0; }
.sitemap-group { margin-bottom: 36px; }


/* Top bar -------------------------------------------------------------- */
.topbar { background: var(--ink); color: #d6e3dd; font-size: .85rem; }
.topbar-row { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 12px; }
.topbar a { color: #d6e3dd; text-decoration: none; }
.topbar a:hover { color: #fff; }
.social-top { gap: 2px; }
.social-top a { width: 30px; height: 30px; background: transparent; border: 0; }
.social-top svg { width: 15px; height: 15px; }
@media (max-width: 480px) { .topbar-mail { font-size: .8rem; } }

/* Contact page --------------------------------------------------------- */
.contact-list { list-style: none; padding: 0; margin: 0 0 1em; }
.contact-list li { padding: 3px 0; }
.cl-label { display: inline-block; min-width: 72px; font-size: .85rem; color: var(--muted); }
.contact-form { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px; margin: 24px 0 32px; }
.contact-form label { display: block; font-weight: 700; margin-bottom: 4px; }
.contact-form .opt { font-weight: 400; color: var(--muted); }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 8px; min-height: 44px; background: #fff; }
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid var(--green-tint); border-color: var(--green); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { padding: 12px 14px; border-radius: 8px; font-weight: 600; }
.form-msg-ok { background: var(--green-tint); color: var(--green-dark); }
.form-msg-err { background: #fde8e9; color: #8e1f27; }
.contact-details h2 { font-size: 1.3rem; }

/* Responsive ---------------------------------------------------------- */
@media (max-width: 980px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .rail { display: none; }
  .unit-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .unit-col:nth-child(3) { padding-left: 0; border-left: 0; }
  .home-split { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .answer-hero, .hero-tool { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero-tool { padding: 20px; }
  .leaf { justify-self: center; max-width: 240px; }
  .answer-hero .leaf { order: -1; }
  .how-grid, .explain-grid, .post-row { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .unit-row { grid-template-columns: minmax(0, 1fr); }
  .unit-col, .unit-col + .unit-col { padding-left: 0; border-left: 0; }
  .data th, .data td { padding: 9px 10px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .countdown div { min-width: 64px; }
  .calc-sentence { font-size: 1.35rem; }
}
@media print {
  .site-header, .site-footer, .rail, .actions, .calc, .nearby, .mini-calc { display: none !important; }
  body { background: #fff; }
}

/* Share buttons */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 18px 0 28px; }
.share-h { font-weight: 700; font-size: 14px; color: var(--muted); }
.share ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.share a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 8px; color: #fff; font-weight: 700; font-size: 14.5px; text-decoration: none; }
.share a:hover { color: #fff; filter: brightness(1.12); }
.share-facebook { background: #3b5998; }
.share-x { background: #000; }
/* Plain numbered steps and the about block */
.steps-plain { padding-left: 1.3em; margin: 0 0 16px; }
.steps-plain li { margin-bottom: 6px; }
.formula-line { background: #f6f9f7; border: 1px solid var(--rule); border-radius: 10px; padding: 12px 16px; }


/* Founder card (About page) and founder strip (calculator pages) */
.founder-card { display: flex; gap: 22px; align-items: flex-start; margin: 22px 0 8px; padding: 22px; background: var(--paper); border: 1px solid var(--rule); border-radius: 16px; }
.founder-card .founder-photo { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; border: 3px solid var(--paper); box-shadow: 0 0 0 2px var(--green); }
.founder-card h3 { margin: 0 0 2px; font-size: 1.3rem; }
.founder-card .founder-role { margin: 0 0 10px; color: var(--green); font-weight: 700; font-size: .95rem; }
.founder-card p { margin: 0 0 12px; }
.founder-li { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .95rem; color: #0a66c2; text-decoration: none; }
.founder-li:hover { text-decoration: underline; color: #004182; }
.founder-strip { padding: 22px 0; border-top: 1px solid var(--rule); background: var(--paper); }
.founder-strip .fs-in { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 6px 16px; }
.founder-li svg { flex: 0 0 auto; }
.founder-strip .founder-li { white-space: nowrap; }
.founder-strip .founder-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.founder-strip .fs-text { flex: 1 1 auto; min-width: 0; }
.founder-strip p { margin: 0; }
.founder-strip .fs-by { font-weight: 700; }
.founder-strip .fs-bio { color: var(--muted); font-size: .95rem; }
@media (max-width: 600px) {
  .founder-card { flex-direction: column; align-items: center; text-align: center; padding: 18px; }
  .founder-strip .fs-in { grid-template-columns: 56px 1fr; align-items: start; }
  .founder-strip .founder-photo { width: 56px; height: 56px; }
  .founder-strip .founder-li { grid-column: 2; }
}

.founder-card-compact { margin: 36px 0 8px; }
.founder-card-compact .founder-photo { width: 96px; height: 96px; }
.founder-card .founder-kicker { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.founder-card .founder-name { margin: 2px 0 0; font-family: var(--display); font-weight: 700; font-size: 1.2rem; line-height: 1.25; }
.founder-card .founder-links { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; margin: 0; }
.founder-more { font-weight: 700; font-size: .95rem; color: var(--green-dark); }
@media (max-width: 600px) { .founder-card .founder-links { justify-content: center; } }
.home-founder { max-width: 760px; margin-bottom: 48px; }
.home-founder .founder-card-compact { margin-top: 28px; }
