

@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('https://support.calcoach.com/assets/fonts/sora-v17-latin-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('https://support.calcoach.com/assets/fonts/sora-v17-latin-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('https://support.calcoach.com/assets/fonts/sora-v17-latin-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('https://support.calcoach.com/assets/fonts/sora-v17-latin-700.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --font: Sora, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  --space-1: 4px; --space-2: 8px; --space-3: 12px;
  --space-4: 16px; --space-5: 20px; --space-6: 24px;
  --space-7: 28px; --space-8: 32px; --space-9: 36px;
  --space-10: 40px; --space-12: 48px; --space-14: 56px;
  --space-16: 64px; --space-20: 80px;
  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px;
  --radius-xl: 20px; --radius-full: 9999px;
  --text-xs: 13px; --text-sm: 14px; --text-base: 15px;
  --text-lg: 16px; --text-xl: 18px; --text-2xl: 20px;
  --text-3xl: 24px; --text-5xl: 32px;
  --leading-tight: 1.25; --leading-normal: 1.5;
  --leading-relaxed: 1.75;
  --header-height: 64px;
  
  --text: rgb(255, 255, 255);
  --text-bold: rgba(255, 255, 255, 0.90);
  --text-muted: rgba(255, 255, 255, 0.50);
  --bg: rgb(0, 0, 0);
  --bg-component: rgba(255, 255, 255, 0.06);
  --bg-elevated: rgb(21, 21, 21);
  --bg-hover: rgba(255, 255, 255, 0.10);
  --border: rgba(255, 255, 255, 0.15);
  --border-light: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.20);
  --brand: rgb(194, 245, 55);
  --brand-fg: rgb(194, 245, 55);
  --brand-80: rgba(194, 245, 55, 0.8);

}

@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) {
    color-scheme: light;
    
  --text: rgb(34, 40, 39);
  --text-bold: rgba(47, 54, 53, 0.90);
  --text-muted: rgba(47, 54, 53, 0.50);
  --bg: rgb(255, 255, 255);
  --bg-component: rgba(47, 54, 53, 0.06);
  --bg-elevated: rgb(242, 242, 242);
  --bg-hover: rgba(47, 54, 53, 0.12);
  --border: rgba(47, 54, 53, 0.15);
  --border-light: rgba(47, 54, 53, 0.06);
  --border-medium: rgba(47, 54, 53, 0.20);
  --brand: rgb(194, 245, 55);
  --brand-fg: rgb(42, 116, 84);
  --brand-80: rgba(115, 175, 10, 0.8);

  }
}
:root[data-theme='light'] {
  color-scheme: light;
  
  --text: rgb(34, 40, 39);
  --text-bold: rgba(47, 54, 53, 0.90);
  --text-muted: rgba(47, 54, 53, 0.50);
  --bg: rgb(255, 255, 255);
  --bg-component: rgba(47, 54, 53, 0.06);
  --bg-elevated: rgb(242, 242, 242);
  --bg-hover: rgba(47, 54, 53, 0.12);
  --border: rgba(47, 54, 53, 0.15);
  --border-light: rgba(47, 54, 53, 0.06);
  --border-medium: rgba(47, 54, 53, 0.20);
  --brand: rgb(194, 245, 55);
  --brand-fg: rgb(42, 116, 84);
  --brand-80: rgba(115, 175, 10, 0.8);

}

/* Theme toggle shows the scheme you would switch to. */
.when-light { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) .when-dark { display: none; }
  :root:not([data-theme='dark']) .when-light { display: inline; }
}
:root[data-theme='light'] .when-dark { display: none; }
:root[data-theme='light'] .when-light { display: inline; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-height) + var(--space-6)); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--font); font-size: var(--text-base); line-height: var(--leading-normal);
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
:where(button, a, input):focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: var(--text-5xl); line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
.lead { color: var(--text-muted); text-wrap: pretty; }
.muted { color: var(--text-muted); font-size: var(--text-xs); }
.eyebrow {
  display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-muted);
}
.spacer { flex: 1; }
.badge {
  display: inline-flex; align-items: center; height: 20px; padding: 0 var(--space-2);
  border-radius: var(--radius-full); background: var(--bg-component); border: 1px solid var(--border-light);
  font-size: var(--text-xs); font-weight: 500; color: var(--text-muted); white-space: nowrap;
}

.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 50;
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); background: var(--bg-elevated);
}
.skip-link:focus { top: var(--space-4); }

.container { width: 100%; max-width: 880px; margin: 0 auto; padding: var(--space-8) var(--space-5) var(--space-20); }
.container.wide { max-width: 1120px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg); border-bottom: 1px solid var(--border-light);
}
.header-row { display: flex; align-items: center; gap: var(--space-3); height: var(--header-height); padding-top: 0; padding-bottom: 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.brand-divider { width: 1px; height: 18px; background: var(--border-medium); }
.brand-suffix { font-size: var(--text-base); font-weight: 500; color: var(--text-muted); }
.icon-button {
  width: 36px; height: 36px; border-radius: var(--radius-full); border: 0; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--text); cursor: pointer; transition: background 150ms;
}
.icon-button:hover { background: var(--bg-hover); }
.search-link { display: none; }

/* Search box */
.search { position: relative; display: flex; align-items: center; width: 100%; }
.search-icon { position: absolute; left: 14px; color: var(--text-muted); pointer-events: none; }
.search input {
  width: 100%; font: inherit; color: var(--text); background: var(--bg-component);
  border: 1px solid var(--border); border-radius: var(--radius-md);
}
.search input::placeholder { color: var(--text-muted); }
.search input:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: transparent; }
.search input::-webkit-search-decoration, .search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-sm { width: 300px; max-width: 40vw; }
.search-sm input { height: 32px; padding: 0 var(--space-3) 0 36px; font-size: var(--text-sm); }
.search-lg input { height: 48px; padding: 0 var(--space-4) 0 44px; font-size: var(--text-lg); }
.header-row .search-sm { display: none; }

/* Audience filter */
.audience { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; font-size: var(--text-xs); color: var(--text-muted); }
.segmented {
  display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--radius-md);
  background: var(--bg-component); border: 1px solid var(--border-light);
}
.segmented a {
  padding: 0 var(--space-3); height: 28px; display: inline-flex; align-items: center;
  border-radius: 6px; font-size: var(--text-xs); font-weight: 500; color: var(--text-muted); transition: background 150ms;
}
.segmented a:hover { color: var(--text); }
.segmented a.on { background: var(--bg-elevated); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.25); }

/* Home */
.hero {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-5);
  padding: clamp(40px, 8vw, 88px) 0 clamp(32px, 5vw, 56px);
}
.hero h1 { font-size: clamp(30px, 5.4vw, 48px); line-height: 1.1; letter-spacing: -0.02em; }
.hero .search-lg { max-width: 640px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }

.card-grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card {
  display: flex; flex-direction: column; gap: 14px; min-height: 150px; padding: var(--space-5);
  border-radius: var(--radius-lg); background: var(--bg-component); border: 1px solid var(--border-light);
  transition: background 150ms, border-color 150ms;
}
.card:hover { background: var(--bg-hover); border-color: var(--border); }
.card-top { display: flex; align-items: center; justify-content: space-between; }
.card-icon {
  width: 40px; height: 40px; border-radius: var(--radius-md); display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-component); border: 1px solid var(--border-light); color: var(--brand-80);
}
.card-text { display: flex; flex-direction: column; gap: 6px; }
.card-title { font-size: 17px; font-weight: 600; letter-spacing: -0.005em; }
.card-summary { font-size: var(--text-xs); line-height: var(--leading-normal); color: var(--text-muted); text-wrap: pretty; }

/* Category and search pages */
.breadcrumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: var(--space-5); font-size: var(--text-xs); color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--text); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-5); flex-wrap: wrap; margin-bottom: var(--space-7); }
.page-head > div { display: flex; flex-direction: column; gap: var(--space-2); flex: 1 1 360px; }
.page-head.compact { align-items: center; margin: var(--space-5) 0; }
.search-heading { font-size: var(--text-2xl); font-weight: 600; letter-spacing: 0; }

.panel { border-radius: var(--radius-lg); border: 1px solid var(--border-light); background: var(--bg-component); overflow: hidden; }
.row {
  display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border-light); transition: background 150ms;
}
.row:last-child { border-bottom: 0; }
.row:hover { background: var(--bg-hover); }
.row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--space-1); }
.row-title { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; font-weight: 600; }
.row-summary { font-size: var(--text-sm); line-height: var(--leading-normal); color: var(--text-muted); text-wrap: pretty; }
.row-chevron { color: var(--text-muted); flex: none; }
.empty { padding: var(--space-8) var(--space-5); display: flex; flex-direction: column; gap: var(--space-1); align-items: center; text-align: center; }
.empty-title { font-weight: 600; }
.results { display: flex; flex-direction: column; margin-bottom: var(--space-8); }
.result { display: flex; flex-direction: column; gap: 6px; padding: 18px var(--space-1); border-bottom: 1px solid var(--border-light); }
.result:hover { opacity: .8; }
.result-title { font-size: 17px; font-weight: 600; }
.results + .card-grid, .empty + .card-grid { margin-top: var(--space-6); }

/* Article */
.article-layout { display: flex; gap: var(--space-14); align-items: flex-start; flex-wrap: wrap; }
.article-layout article { flex: 1 1 560px; min-width: 0; max-width: 720px; }
.article-layout h1 { font-size: clamp(28px, 4.4vw, 36px); letter-spacing: -0.015em; margin-bottom: var(--space-3); }
.article-layout .lead { font-size: 17px; line-height: 1.55; margin-bottom: var(--space-5); }
.article-meta {
  display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap;
  padding-bottom: var(--space-6); margin-bottom: var(--space-2); border-bottom: 1px solid var(--border-light);
}
.article-meta .muted { margin-left: var(--space-1); }

.article-body { font-size: var(--text-lg); padding-top: var(--space-2); }
.article-body h2 { font-size: 21px; font-weight: 600; letter-spacing: -0.005em; line-height: 1.3; margin: var(--space-9) 0 var(--space-3); }
.article-body h3 { font-size: 17px; font-weight: 600; margin: var(--space-6) 0 var(--space-2); }
.article-body p { margin: 0 0 var(--space-4); line-height: var(--leading-relaxed); color: var(--text-bold); text-wrap: pretty; }
.article-body ul, .article-body ol { margin: 0 0 18px; padding-left: 22px; line-height: 1.7; color: var(--text-bold); }
.article-body li { margin: 6px 0; padding-left: var(--space-1); }
.article-body strong { font-weight: 600; color: var(--text); }
.article-body a {
  color: var(--text); text-decoration: underline; text-decoration-color: var(--brand-80);
  text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.article-body a:hover { text-decoration-color: var(--brand); }
.article-body code { font-family: var(--mono); font-size: 0.88em; padding: 2px 6px; border-radius: 4px; background: var(--bg-component); }
.article-body img { max-width: 100%; height: auto; border-radius: var(--radius-md); }
.article-body blockquote { margin: 0 0 var(--space-4); padding: var(--space-2) var(--space-4); border-left: 3px solid var(--brand); color: var(--text-muted); }
.table-wrap { overflow-x: auto; margin: 0 0 var(--space-5); border: 1px solid var(--border-light); border-radius: var(--radius-md); }
.article-body table { border-collapse: collapse; width: 100%; font-size: var(--text-sm); }
.article-body th, .article-body td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.article-body th { font-weight: 600; font-size: var(--text-xs); color: var(--text-muted); }
.article-body td { font-variant-numeric: tabular-nums; }
.article-body tr:last-child td { border-bottom: 0; }

.helpful {
  display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap;
  margin-top: var(--space-10); padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg); background: var(--bg-component); font-size: var(--text-sm);
}
.helpful-question, .helpful-thanks { font-weight: 600; }
.helpful-buttons { display: flex; gap: var(--space-2); margin-left: auto; }
.helpful button {
  height: 32px; padding: 0 var(--space-4); border-radius: var(--radius-md); cursor: pointer;
  border: 1px solid var(--border-medium); background: transparent; color: var(--text);
  font: inherit; font-size: var(--text-xs); font-weight: 500; transition: background 150ms;
}
.helpful button:hover { background: var(--bg-hover); }

.related { margin-top: var(--space-12); padding-top: var(--space-7); border-top: 1px solid var(--border-light); }
.related .eyebrow { margin-bottom: 14px; }
.related-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.related-card {
  display: flex; flex-direction: column; gap: 6px; padding: var(--space-4);
  border-radius: var(--radius-md); background: var(--bg-component); border: 1px solid var(--border-light); transition: background 150ms;
}
.related-card:hover { background: var(--bg-hover); }
.related-title { font-size: var(--text-sm); font-weight: 600; }

.toc { display: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--border-light); font-size: var(--text-sm); }
.site-footer .container { display: flex; flex-direction: column; gap: var(--space-7); padding: var(--space-8) var(--space-5) var(--space-6); }
.footer-columns { display: flex; gap: var(--space-8) var(--space-12); flex-wrap: wrap; justify-content: space-between; }
.footer-about { flex: 1 1 260px; max-width: 320px; display: flex; flex-direction: column; gap: 14px; }
.footer-about .brand-name { font-size: var(--text-lg); }
.footer-about p { font-size: var(--text-xs); color: var(--text-muted); }
.store-links { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.store-links a {
  display: inline-flex; align-items: center; gap: var(--space-2); height: 40px; padding: 0 14px;
  border-radius: 10px; border: 1px solid var(--border-medium); font-size: var(--text-xs); font-weight: 500; transition: background 150ms;
}
.store-links a:hover { background: var(--bg-hover); }
.footer-links { display: flex; gap: var(--space-8) var(--space-14); flex-wrap: wrap; }
.footer-links > div { display: flex; flex-direction: column; gap: 10px; min-width: 130px; }
.footer-links a:hover { opacity: .8; }
.footer-legal {
  display: flex; gap: var(--space-2) var(--space-5); flex-wrap: wrap; align-items: center;
  padding-top: var(--space-5); border-top: 1px solid var(--border-light); font-size: 12px; color: var(--text-muted);
}
.footer-legal > div { display: flex; gap: var(--space-4); flex-wrap: wrap; margin-left: auto; }
.footer-legal a:hover { color: var(--text); }

@media (max-width: 639px) {
  .search-link { display: inline-flex; }
  .brand-divider, .brand-suffix { display: none; }
}
@media (min-width: 640px) {
  .header-row .search-sm { display: flex; }
}
@media (min-width: 960px) {
  .toc { display: flex; flex: 0 0 220px; position: sticky; top: calc(var(--header-height) + var(--space-8)); flex-direction: column; gap: var(--space-3); }
  .toc-links { display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--border); }
  .toc-links a {
    padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent;
    font-size: var(--text-xs); line-height: 1.4; color: var(--text-muted);
  }
  .toc-links a:hover { color: var(--text); border-left-color: var(--brand); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
