/* Restaurant Operator Referral Desk — dependency-free styling */
:root {
  --ink: #1d2520;
  --ink-soft: #465049;
  --cream: #f7f3ea;
  --paper: #fffdf8;
  --line: #d9d4c9;
  --paprika: #b8462f;
  --paprika-dark: #8e321f;
  --sage: #486554;
  --sage-light: #e4ece5;
  --gold: #d7a53d;
  --charcoal: #202823;
  --white: #ffffff;
  --danger-soft: #fff0eb;
  --shadow: 0 1px 2px rgba(25, 31, 27, .04), 0 12px 32px rgba(25, 31, 27, .07);
  --radius: 16px;
  --shell: 1180px;
}

* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: clip; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--paprika-dark); text-underline-offset: .2em; }
a:hover { color: var(--paprika); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex="0"]:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px #005fcc;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
code {
  padding: .08rem .3rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--cream);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: .7rem 1rem;
  border-radius: 8px;
  color: var(--white);
  background: var(--charcoal);
}
.skip-link:focus { transform: translateY(0); }
.shell { width: min(calc(100% - 40px), var(--shell)); min-width: 0; max-width: 100%; margin-inline: auto; }
.header-inner, .hero-grid, .hero-grid > *, main, .section { min-width: 0; }
.narrow { max-width: 900px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(29, 37, 32, .12);
  background: rgba(255, 253, 248, .96);
  backdrop-filter: blur(12px);
}
.header-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -.02em;
}
.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px 10px 10px 2px;
  color: var(--white);
  background: var(--paprika);
  font-size: .74rem;
  letter-spacing: .06em;
}
nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
nav a {
  color: var(--ink-soft);
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
}
nav a:hover { color: var(--paprika-dark); }

.hero {
  overflow: hidden;
  position: relative;
  padding: clamp(72px, 10vw, 128px) 0 88px;
  background:
    radial-gradient(circle at 90% 12%, rgba(215, 165, 61, .18), transparent 24rem),
    linear-gradient(180deg, var(--paper), #fbf7ef);
}
.hero::after {
  content: "";
  position: absolute;
  right: -110px;
  bottom: -150px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(184, 70, 47, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(184, 70, 47, .03), 0 0 0 92px rgba(184, 70, 47, .025);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, .75fr);
  align-items: center;
  gap: clamp(40px, 7vw, 92px);
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--paprika-dark);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 850px;
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: .98;
  letter-spacing: -.055em;
  text-wrap: balance;
}
h2 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 4.6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -.045em;
  text-wrap: balance;
}
h3 { line-height: 1.25; letter-spacing: -.02em; }
.hero-copy {
  max-width: 740px;
  margin-bottom: 28px;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: .72rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 750;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { color: var(--white); background: var(--paprika); }
.button-primary:hover { color: var(--white); background: var(--paprika-dark); }
.button-secondary { color: var(--ink); border-color: var(--line); background: var(--paper); }
.button-secondary:hover { color: var(--ink); border-color: #b9b2a4; background: var(--cream); }
.microcopy { max-width: 780px; margin-bottom: 0; color: var(--ink-soft); font-size: .84rem; }
.principles-card {
  position: relative;
  z-index: 1;
  padding: clamp(26px, 4vw, 38px);
  border: 1px solid rgba(29, 37, 32, .1);
  border-radius: 24px 24px 24px 5px;
  background: rgba(255, 255, 255, .84);
  box-shadow: var(--shadow);
}
.card-kicker { margin-bottom: 10px; color: var(--sage); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.principles-card h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
.check-list { padding: 0; margin: 0; list-style: none; }
.check-list li { position: relative; padding-left: 30px; margin: 12px 0; }
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: .05rem;
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--sage);
  background: var(--sage-light);
  font-size: .76rem;
  font-weight: 900;
}
.compact { font-size: .94rem; color: var(--ink-soft); }

.trust-strip { border-block: 1px solid var(--line); background: var(--white); }
.status-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.status-grid > div { padding: 23px 26px; border-right: 1px solid var(--line); }
.status-grid > div:first-child { border-left: 1px solid var(--line); }
.status-grid strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; }
.status-grid span { color: var(--ink-soft); font-size: .8rem; }

.section { padding: clamp(72px, 9vw, 116px) 0; }
.section.alt { background: var(--cream); }
.section-heading { max-width: 820px; margin-bottom: 42px; }
.section-heading > p:last-child { color: var(--ink-soft); font-size: 1.05rem; }
.split-heading { max-width: none; display: grid; grid-template-columns: 1.3fr .7fr; gap: 64px; align-items: end; }
.split-heading > p { margin-bottom: 12px; }
.disclosure {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 26px;
  padding: 26px;
  margin-bottom: 28px;
  border: 1px solid #dfb39f;
  border-radius: var(--radius);
  background: var(--danger-soft);
}
.disclosure-label {
  align-self: start;
  width: fit-content;
  padding: .32rem .55rem;
  border-radius: 999px;
  color: #762717;
  background: #f7cdbf;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.disclosure h3 { margin-bottom: 8px; }
.disclosure p { margin: 0; color: #51382f; }
.table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 26px rgba(29, 37, 32, .04);
}
table { width: 100%; min-width: 980px; border-collapse: collapse; font-size: .88rem; }
caption { padding: 18px 20px; color: var(--ink-soft); text-align: left; font-size: .82rem; }
th, td { padding: 18px 17px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { color: var(--white); border-color: var(--charcoal); background: var(--charcoal); font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; }
tbody th { min-width: 145px; font-size: .95rem; }
tbody tr:nth-child(even) { background: #fbfaf6; }
td:nth-child(2) { min-width: 240px; }
td:nth-child(3) { min-width: 240px; }
td:nth-child(4) { min-width: 170px; }
.note { margin: 18px 0 0; color: var(--ink-soft); font-size: .83rem; }

.comparison-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.compare-card {
  min-height: 390px;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.compare-card .number { display: block; margin-bottom: 34px; color: var(--paprika); font-family: Georgia, serif; font-size: 1.2rem; }
.compare-card h3 { font-size: 1.3rem; }
.compare-card .examples { min-height: 48px; color: var(--sage); font-size: .82rem; font-weight: 700; }
.compare-card ul { padding-left: 20px; color: var(--ink-soft); }
.compare-card li { margin-bottom: 10px; }
.emphasis-card { color: var(--white); border-color: var(--sage); background: var(--sage); }
.emphasis-card .number { color: #cfe0d2; }
.emphasis-card p { color: #eef6ef; }
.big-rule { margin: 35px 0 22px; font-family: Georgia, serif; font-size: 1.8rem; line-height: 1.2; }

.calculator-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(42px, 7vw, 84px); align-items: start; }
.calculator-intro { position: sticky; top: 110px; }
.formula-box { padding: 20px; margin-top: 28px; border-left: 4px solid var(--gold); background: var(--cream); }
.formula-box h3 { margin-bottom: 8px; }
.formula-box p { margin-bottom: 8px; color: var(--ink-soft); font-size: .88rem; }
.calculator-card { padding: clamp(22px, 4vw, 38px); border: 1px solid var(--line); border-radius: 22px; background: var(--white); box-shadow: var(--shadow); }
fieldset { min-width: 0; padding: 0; margin: 0 0 28px; border: 0; }
legend { width: 100%; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--line); font-size: .82rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { position: relative; display: grid; gap: 7px; color: var(--ink-soft); font-size: .84rem; font-weight: 700; }
input, select, textarea {
  width: 100%;
  min-height: 46px;
  padding: .68rem .75rem;
  border: 1px solid #bbb4a7;
  border-radius: 9px;
  color: var(--ink);
  background: var(--paper);
}
textarea { resize: vertical; }
.input-prefix, .input-suffix { position: absolute; bottom: 12px; z-index: 1; color: #777167; font-weight: 600; pointer-events: none; }
.input-prefix { left: 12px; }
.input-suffix { right: 12px; }
label:has(.input-prefix) input { padding-left: 27px; }
label:has(.input-suffix) input { padding-right: 62px; }
.calculator-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.results { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 30px; }
.result-card { padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: var(--cream); }
.result-card span { display: block; margin-bottom: 5px; color: var(--ink-soft); font-size: .75rem; }
.result-card strong { display: block; font-family: Georgia, serif; font-size: 1.45rem; }
.featured-result { color: var(--white); border-color: var(--paprika); background: var(--paprika); }
.featured-result span { color: #fff0eb; }
.result-card.negative strong { color: #983221; }
.featured-result.negative { background: #762717; }
.featured-result.negative strong { color: var(--white); }

.dark { color: var(--white); background: var(--charcoal); }
.light-heading .eyebrow { color: #f0bd55; }
.light-heading > p:last-child { color: #c6d0c8; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; border: 1px solid #4e5951; border-radius: var(--radius); background: #4e5951; }
.steps-grid article { min-height: 290px; padding: 28px; background: var(--charcoal); }
.steps-grid article > span { display: grid; width: 38px; height: 38px; place-items: center; margin-bottom: 34px; border: 1px solid #69766c; border-radius: 50%; color: #f0bd55; font-family: Georgia, serif; }
.steps-grid h3 { font-size: 1.25rem; }
.steps-grid ul { padding-left: 18px; color: #c6d0c8; }
.steps-grid li { margin: 8px 0; }

.interest-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(42px, 8vw, 96px); align-items: start; }
.privacy-card { padding: 23px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); }
.privacy-card h3 { margin-bottom: 12px; }
.privacy-card ol { padding-left: 20px; margin-bottom: 0; color: var(--ink-soft); }
.privacy-card li { margin-bottom: 8px; }
.interest-card { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--white); box-shadow: var(--shadow); }
.not-live-banner { padding: 12px 22px; color: #294b36; border-bottom: 1px solid #bfd3c3; background: #e5f1e7; font-size: .79rem; font-weight: 800; }
.not-live-banner span { margin-right: 7px; color: #3d8654; }
.interest-card form { display: grid; gap: 20px; padding: clamp(22px, 4vw, 36px); }
.optional { color: #777167; font-weight: 500; }
.consent-fieldset { margin: 0; }
.consent-fieldset legend { border: 0; margin-bottom: 8px; padding: 0; }
.checkbox-label { grid-template-columns: 22px 1fr; align-items: start; gap: 11px; font-weight: 600; }
.checkbox-label input { width: 20px; min-height: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--paprika); }
.full-width { width: 100%; }
.form-result { padding: 20px 36px 24px; border-top: 1px solid var(--line); color: var(--ink); background: var(--cream); }
.form-result.error { color: #762717; background: var(--danger-soft); }

.policy-layout { display: grid; grid-template-columns: .65fr 1.35fr; gap: 70px; align-items: start; }
.policy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.policy-grid article { padding: 22px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); }
.policy-grid h3 { margin-bottom: 8px; font-size: 1rem; }
.policy-grid p { margin: 0; color: var(--ink-soft); font-size: .87rem; }
.sources-section { border-top: 1px solid var(--line); }
.sources-list { padding-left: 24px; }
.sources-list li { padding: 10px 0 10px 8px; border-bottom: 1px solid var(--line); }
.sources-list a { overflow-wrap: anywhere; }

footer { padding: 42px 0; color: #d6ddd7; background: #171d19; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; }
.footer-inner p { margin: 6px 0 0; color: #9eaaa1; font-size: .82rem; }
.footer-links { display: flex; flex-wrap: wrap; align-items: start; justify-content: flex-end; gap: 16px; }
.footer-links a { color: #d6ddd7; font-size: .84rem; }

@media (max-width: 980px) {
  .header-inner { align-items: flex-start; flex-direction: column; padding: 14px 0; gap: 12px; }
  .site-header { position: relative; }
  .hero-grid, .calculator-layout, .interest-layout, .policy-layout { grid-template-columns: 1fr; }
  .calculator-intro { position: static; }
  .comparison-grid, .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .split-heading { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 700px) {
  .shell { width: auto; max-width: none; margin-inline: 14px; }
  .hero { padding-top: 58px; }
  nav { display: grid; width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; }
  nav a { min-width: 0; font-size: .8rem; overflow-wrap: anywhere; }
  .eyebrow { font-size: .69rem; line-height: 1.4; letter-spacing: .14em; overflow-wrap: anywhere; }
  h1 { max-width: 100%; font-size: clamp(2.65rem, 12vw, 3.25rem); }
  .hero-copy, .microcopy { max-width: 100%; overflow-wrap: anywhere; }
  .status-grid { grid-template-columns: 1fr 1fr; }
  .status-grid > div, .status-grid > div:first-child { border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .disclosure { grid-template-columns: 1fr; gap: 14px; }
  .comparison-grid, .steps-grid, .policy-grid, .field-grid, .results { grid-template-columns: 1fr; }
  .compare-card { min-height: 0; }
  .compare-card .examples { min-height: 0; }
  .footer-inner { flex-direction: column; }
  .footer-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media print {
  .site-header, .hero-actions, .calculator-actions, .interest-card, footer { display: none !important; }
  body { color: #000; background: #fff; font-size: 11pt; }
  .section, .hero { padding: 24px 0; }
  .comparison-grid, .steps-grid, .policy-grid { display: block; }
  .compare-card, .steps-grid article, .policy-grid article { min-height: 0; margin-bottom: 10px; break-inside: avoid; color: #000; background: #fff; }
  a { color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; }
}
