/* mybeecommunity.com — shared stylesheet for the generated tool pages.
   The first block is copied verbatim from legal/index.html so the pages match
   the landing page; everything after "Site additions" is shared classes. */

:root {
  --paper: #f9f3e4;
  --paper-raised: #fffdf8;
  --text: #241c12;
  --text-secondary: #6f6047;
  --border: #e4d5b0;
  --accent: #b5791f;
  --accent-strong: #8f5e15;
  --link: #96650f;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #17120c;
    --paper-raised: #201810;
    --text: #f1e6cf;
    --text-secondary: #b8a785;
    --border: #3a2f1f;
    --accent: #e0a742;
    --accent-strong: #f0bd63;
    --link: #e0a742;
  }
}
:root[data-theme="dark"] {
  --paper: #17120c;
  --paper-raised: #201810;
  --text: #f1e6cf;
  --text-secondary: #b8a785;
  --border: #3a2f1f;
  --accent: #e0a742;
  --accent-strong: #f0bd63;
  --link: #e0a742;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 620px; margin: 0 auto; padding: 72px 24px 96px; }
.eyebrow {
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.08;
  margin: 10px 0 16px;
  text-wrap: balance;
}
p { margin: 0 0 16px; }
p.lede { color: var(--text-secondary); font-size: 17px; }
ul.features { margin: 0 0 28px; padding-left: 22px; }
li { margin-bottom: 6px; }
a { color: var(--link); }
.docs {
  display: grid;
  gap: 12px;
  margin: 32px 0;
}
.docs a {
  display: block;
  background: var(--paper-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  text-decoration: none;
  color: var(--text);
}
.docs a:hover, .docs a:focus-visible { border-color: var(--accent); }
.docs strong { display: block; font-weight: 600; }
.docs span { color: var(--text-secondary); font-size: 14.5px; }
footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text-secondary);
}

/* ==========================================================================
   Site additions (mobile-first; nothing below needs body overflow-x hidden)
   ========================================================================== */

/* Result tones: the word is always the signal, the color only underlines it. */
:root {
  --tone-good: #4f7f2e;
  --tone-caution: #9a6412;
  --tone-urgent: #a93a26;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --tone-good: #9ccb74;
    --tone-caution: #e0a742;
    --tone-urgent: #f0917c;
  }
}
:root[data-theme="dark"] {
  --tone-good: #9ccb74;
  --tone-caution: #e0a742;
  --tone-urgent: #f0917c;
}

/* Native form chrome (select popups, number spinners, focus rings) follows the palette. */
:root { color-scheme: light dark; }
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

html { -webkit-text-size-adjust: 100%; }
main { display: block; }
[hidden] { display: none !important; }
img, svg { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
p.eyebrow { margin: 0; }
.wrap--wide { max-width: 900px; }
.site-nav + .wrap { padding-top: 36px; }

h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.45rem, 3.5vw, 1.8rem);
  line-height: 1.2;
  margin: 40px 0 12px;
  text-wrap: balance;
}
h3 {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 28px 0 8px;
}
h2 + h3, h2 + p, h3 + p { margin-top: 0; }
main ol, main ul { margin: 0 0 16px; padding-left: 22px; }
main li { overflow-wrap: anywhere; }
main a { overflow-wrap: anywhere; }
hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }
small, .muted { color: var(--text-secondary); font-size: 14px; }
code { font-size: 0.95em; }
pre, code { white-space: pre-wrap; overflow-wrap: anywhere; }
dl { margin: 0 0 16px; }
dt { font-weight: 600; font-size: 13.5px; letter-spacing: 0.02em; color: var(--text-secondary); margin-top: 10px; }
dd { margin: 2px 0 0; }

/* Site nav */
.site-nav { border-bottom: 1px solid var(--border); background: var(--paper); }
.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0 14px;
  margin: 0 auto;
  padding: 4px 24px;
  max-width: 900px;
  font-size: 14px;
}
.site-nav li { margin: 0; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--accent-strong); }
.site-nav a[aria-current="page"] { color: var(--accent-strong); box-shadow: inset 0 -2px 0 var(--accent); }

/* Breadcrumbs */
.breadcrumbs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
  margin: 0 0 14px;
  padding: 0;
  font-size: 13.5px;
  color: var(--text-secondary);
}
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "/"; padding: 0 6px 0 2px; color: var(--border); }
.breadcrumbs a { color: var(--text-secondary); }

/* Cards */
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 16px 0 24px; }
.cards > * { min-width: 0; }
.card {
  background: var(--paper-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 0 0 16px;
}
.cards .card { margin: 0; }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.card h2, .card h3 { margin-top: 0; }
@media (min-width: 640px) {
  .cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Badges */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--paper-raised);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.6;
  max-width: 100%;
  overflow-wrap: anywhere;
  vertical-align: middle;
}
.badge--high { border-color: var(--accent); color: var(--accent-strong); }
.badge--medium { border-color: var(--text-secondary); color: var(--text); }
.badge--low { border-style: dashed; color: var(--text-secondary); }

/* Notices (disclaimers, verification lines) */
.notice {
  background: var(--paper-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 24px 0;
  font-size: 14.5px;
  color: var(--text-secondary);
}
.notice > :first-child { margin-top: 0; }
.notice > :last-child { margin-bottom: 0; }
.notice strong { color: var(--text); }

/* Tables — always inside .table-scroll so the page body never scrolls sideways */
.table-scroll { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; margin: 16px 0 24px; }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--border); }
th {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-bottom-color: var(--text-secondary);
  min-width: 5.5em;
}
th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
th.num { min-width: 0; }
td { overflow-wrap: break-word; }
caption { caption-side: bottom; text-align: left; padding: 8px 0 0; font-size: 13.5px; color: var(--text-secondary); }
/* site.js adds .is-overflowing when a table is wider than its box: a right-edge fade plus a one-line hint. */
.table-scroll.is-overflowing::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 28px;
  pointer-events: none;
  background: linear-gradient(to right, transparent, var(--paper));
}
.table-hint { display: none; margin: -16px 0 24px; font-size: 13.5px; color: var(--text-secondary); }
.table-scroll.is-overflowing + .table-hint { display: block; }

/* The registration index: each state row becomes a card below 640px (the h2 names the requirement). */
@media (max-width: 639px) {
  .table--cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .table--cards, .table--cards tbody { display: block; }
  .table--cards tr {
    display: block;
    background: var(--paper-raised);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px 12px;
    margin: 0 0 10px;
  }
  .table--cards th, .table--cards td { display: block; border: 0; padding: 2px 0; min-width: 0; }
  .table--cards th[scope="row"] { font-size: 16px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--text); padding-bottom: 4px; }
  .table--cards td::before {
    content: attr(data-label) ": ";
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
  }
}

/* FAQ */
.faq { margin: 40px 0 0; }
.faq details { border-top: 1px solid var(--border); }
.faq details:last-of-type { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; font-weight: 600; padding: 12px 0; min-height: 44px; line-height: 1.4; }
.faq summary:hover { color: var(--accent-strong); }
.faq details[open] summary { color: var(--accent-strong); }
.faq details > div { padding: 0 0 12px; }
.faq details > div > :last-child { margin-bottom: 0; }

/* Calculator forms */
.calc {
  display: grid;
  gap: 14px;
  background: var(--paper-raised);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 20px 0 28px;
}
.calc__row { display: grid; gap: 14px; }
@media (min-width: 560px) {
  .calc__row { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}
.calc__field { display: grid; gap: 6px; }
.calc__field label { font-weight: 600; font-size: 14.5px; }
.calc__field small, .calc__hint { color: var(--text-secondary); font-size: 13.5px; }
input[type="number"], input[type="text"], select, textarea, button, .button {
  font: inherit;
  color: var(--text);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-height: 44px;
  padding: 8px 12px;
  width: 100%;
  max-width: 100%;
}
select { appearance: auto; }
/* Calculator controls are glove-sized: taller and larger type than the 44px minimum elsewhere. */
.calc input, .calc select { min-height: 52px; font-size: 18px; }
button, .button { cursor: pointer; font-weight: 600; width: auto; }
button:hover, .button:hover { border-color: var(--accent); }
output { display: block; }
.calc__result {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--paper);
}
.calc__result .big {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 500;
}
.calc__result p { margin: 8px 0 0; }
output.calc__result { display: block; }
.calc__pct { display: block; font-family: var(--font-display); font-weight: 500; font-size: 2.2rem; line-height: 1.1; }
.calc__meta { display: block; color: var(--text-secondary); margin: 2px 0 8px; }
.calc__pill { display: inline-block; }
.calc__next { display: block; margin-top: 10px; }
.calc__help, .calc__note { color: var(--text-secondary); font-size: 14px; margin: 6px 0 0; }
.pill {
  display: inline-block;
  padding: 3px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}
.tone-good { --tone: var(--tone-good); }
.tone-caution { --tone: var(--tone-caution); }
.tone-urgent { --tone: var(--tone-urgent); }
.tone-good, .tone-caution, .tone-urgent { border-color: var(--tone); }
.calc__result.tone-good, .calc__result.tone-caution, .calc__result.tone-urgent { border-left: 4px solid var(--tone); }
.pill.tone-good, .pill.tone-caution, .pill.tone-urgent, .badge.tone-good, .badge.tone-caution, .badge.tone-urgent { color: var(--tone); }

/* Sources: the host is the link text; the full URL prints only on paper. */
.sources { font-size: 14px; color: var(--text-secondary); }
.sources li { margin-bottom: 4px; overflow-wrap: anywhere; }
.host { font-size: 13px; color: var(--text-secondary); }
.url { display: none; }
.agency-links, .cadence-lines, .call-list { padding-left: 18px; }
.cadence-text { margin: 4px 0 0; font-size: 14.5px; }
.state-summary dd { margin-bottom: 4px; }
.confidence__notes { font-size: 14px; color: var(--text-secondary); }

/* Call to action */
.cta {
  margin: 48px 0 0;
  padding: 22px 24px;
  background: var(--paper-raised);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.cta h2 { margin: 4px 0 12px; }
.cta__button {
  display: block;
  min-height: 44px;
  margin: 18px 0;
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--accent-strong);
  color: var(--paper);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
.cta__button:hover, .cta__button:focus-visible { filter: brightness(1.08); }
.cta__footnote { font-size: 13.5px; color: var(--text-secondary); margin-bottom: 8px; }

/* Site-wide line + footer */
.site-line { margin-top: 24px; font-size: 13.5px; color: var(--text-secondary); }
.site-footer p { margin: 0 0 8px; }
.site-footer p:last-child { margin-bottom: 0; }
.site-footer a { color: var(--text-secondary); }

/* Landing-page helper (unused inside index.html, which relies on .docs only) */
.free-tools { margin: 24px 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media print {
  .site-nav, .cta, .site-footer { display: none; }
  .wrap { padding: 0; }
  .url { display: inline; }
}
