/* Beela Focus website. Tokens come from beela-brand-guide.html (v0.1). Light theme only. */
:root {
  --bg: #FAF6ED;
  --surface: #FFFCF5;
  --ink: #302D27;
  --muted: #68635A;
  --line: #DCD6CA;
  --yes: #F3D98B;
  --yes-pressed: #E6C774;
  --link: #78601E;
  --focus: #78601E;
  --th: #EEE9DE;
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-wrap: break-word;
}

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  background: var(--surface);
  color: var(--ink);
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  z-index: 10;
}
.skip:focus { top: 12px; }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  max-width: 44rem;
  margin: 0 auto;
  padding: 12px 16px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--ink);
  font-size: 32px;
  font-weight: 750;
  letter-spacing: -2px;
  line-height: 1;
  text-decoration: none;
}
.wordmark:hover { color: var(--ink); }
.site-header nav { display: flex; gap: 4px; }
.site-header nav a,
.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
}
.site-header nav a:hover,
.site-footer nav a:hover { background: var(--yes); }
.site-header nav a[aria-current="page"] {
  background: var(--yes);
  font-weight: 650;
}

/* Page */
main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 16px 16px 48px;
}

h1 {
  margin: 16px 0 8px;
  font-size: clamp(32px, 8.5vw, 44px);
  line-height: 1.1;
  font-weight: 750;
  letter-spacing: -1.5px;
}
.updated {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 15px;
}
h2 {
  margin: 44px 0 12px;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -0.3px;
  scroll-margin-top: 16px;
}
h2:target { box-shadow: inset 0 -0.45em 0 var(--yes); }
p { margin: 0 0 16px; }
ul { margin: 0 0 16px; padding-left: 1.25rem; }
li { margin-bottom: 8px; }
strong { font-weight: 650; }

.lede { font-size: 19px; color: var(--muted); }

.card {
  margin: 24px 0 8px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.card h2 { margin-top: 0; }
.card ul { margin-bottom: 0; }
.card li:last-child { margin-bottom: 0; }

/* On this page */
.toc {
  margin: 24px 0 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.toc summary {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  cursor: pointer;
  font-weight: 650;
}
.toc ol {
  margin: 0;
  padding: 0 20px 12px 44px;
  list-style: decimal;
}
.toc li { margin: 0; }
.toc li a {
  display: flex;
  align-items: center;
  min-height: 44px;
}

/* Provider table */
.table-wrap { margin: 16px 0 24px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td {
  padding: 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
th { background: var(--th); font-weight: 650; }
td:first-child { font-weight: 650; }

address { font-style: normal; margin-top: 24px; }

/* Footer */
.site-footer {
  max-width: 44rem;
  margin: 0 auto;
  padding: 24px 16px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 -12px 8px; }
.site-footer p { margin: 0; }

/* Home */
.home { padding-top: 48px; }
.home h1 { font-size: clamp(40px, 12vw, 64px); letter-spacing: -2.5px; }
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  background: var(--yes);
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}
.btn:hover { background: var(--yes-pressed); color: var(--ink); }

/* Phones: stack the table rows instead of scrolling sideways */
@media (max-width: 640px) {
  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  table, tbody, tr, td { display: block; width: 100%; }
  tr {
    margin-bottom: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
  }
  td { border-bottom: 0; padding: 8px 16px; }
  td:first-child { padding-top: 14px; font-size: 17px; }
  td:last-child { padding-bottom: 14px; }
  td[data-label]::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 1px;
    text-transform: uppercase;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  .site-header nav, .toc, .skip { display: none; }
  body { background: #fff; }
  a { color: inherit; }
}
