/* PlanbookEdu Help Center
   Extracted from the "Help Center.dc.html" Claude Design prototype.
   Color values match docs tokens in the PlanbookEdu Design System. */

:root {
  --brand-blue-deep: #192FA3;
  --brand-blue: #0066CC;
  --brand-blue-light: #7DB5EE;
  --brand-blue-pale: #CFE4FF;
  --brand-blue-paler: #EFFAFF;
  --cta-orange-top: #FF8500;
  --cta-orange-bottom: #E05E00;
  --cta-orange-border: #CB5200;

  --ink: #1c2333;
  --ink-body: #2b3547;
  --ink-muted: #45506b;
  --ink-faint: #7a86a0;
  --line: #e3eaf2;
  --line-soft: #f0f4f9;
  --line-accent: #d9edf7;

  --font-display: 'Lexend', Arial, sans-serif;
  --font-body: 'Source Sans 3', Arial, sans-serif;
  --wrap: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; background: #fff; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--brand-blue); }
a:hover { color: var(--brand-blue-deep); }

.material-symbols-outlined {
  font-variation-settings: 'opsz' 20, 'wght' 500;
  user-select: none;
}

/* ---------- Header ---------- */

.kb-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}
.kb-header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.kb-brand { display: flex; align-items: center; gap: 14px; }
.kb-brand-link { display: flex; align-items: center; text-decoration: none; }
.kb-brand-link img { height: 32px; display: block; }
.kb-brand-label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  color: var(--ink-muted);
  border-left: 1px solid var(--line);
  padding-left: 14px;
}
.kb-header-nav { display: flex; align-items: center; gap: 22px; }
.kb-header-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.kb-header-nav a:hover { color: var(--brand-blue-deep); }

/* ---------- Hero + search ---------- */

.kb-hero {
  background: linear-gradient(180deg, var(--brand-blue-paler) 0%, #fff 100%);
  border-bottom: 1px solid #e9f3fb;
}
.kb-hero-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 66px 24px 54px;
  text-align: center;
}
.kb-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 42px;
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--ink);
  text-wrap: balance;
}
.kb-hero p { font-size: 18px; color: var(--ink-muted); margin: 0 0 28px; }
.kb-search { max-width: 560px; margin: 0 auto; text-align: left; }

/* Pagefind UI, themed to match the design's search field. */
.kb-search {
  --pagefind-ui-primary: var(--brand-blue-deep);
  --pagefind-ui-text: var(--ink);
  --pagefind-ui-background: #fff;
  --pagefind-ui-border: #cfe0f0;
  --pagefind-ui-border-width: 1px;
  --pagefind-ui-border-radius: 12px;
  --pagefind-ui-font: var(--font-body);
}

/* ---------- Section cards (home) ---------- */

.kb-sections {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 56px 24px 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.kb-section-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.kb-section-card:hover { border-color: var(--brand-blue-light); }
.kb-section-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.kb-section-card-head a {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.kb-section-card-head a:hover { color: var(--brand-blue-deep); }
.kb-section-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--brand-blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.kb-section-icon .material-symbols-outlined {
  font-size: 21px;
  color: var(--brand-blue-deep);
}
.kb-section-card-blurb {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-faint);
  margin: 0 0 16px;
  text-wrap: pretty;
}
.kb-section-card-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 16px;
}
.kb-section-card-links a {
  font-size: 15px;
  color: var(--brand-blue);
  text-decoration: none;
  line-height: 1.35;
}
.kb-section-card-links a:hover { color: var(--brand-blue-deep); text-decoration: underline; }
.kb-section-card-more {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-blue-deep);
  text-decoration: none;
}

/* ---------- Two-column shell (section + article) ---------- */

.kb-two-col {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 30px 24px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 48px;
  align-items: start;
  width: 100%;
}
.kb-sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 16px; }
.kb-card { border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.kb-card-accent { border-color: var(--line-accent); background: var(--brand-blue-paler); }
.kb-card-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.kb-card-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.kb-card-accent p { font-size: 14px; line-height: 1.5; color: var(--ink-muted); margin: 0 0 14px; }
.kb-navlist { display: flex; flex-direction: column; gap: 2px; }
.kb-navlist a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-muted);
  padding: 8px 10px;
  border-radius: 8px;
}
.kb-navlist a:hover { background: var(--brand-blue-paler); }
.kb-navlist a.is-current {
  color: var(--brand-blue-deep);
  background: var(--brand-blue-paler);
  font-weight: 600;
}
.kb-navcount { font-size: 12px; color: var(--ink-faint); }

/* ---------- Breadcrumbs ---------- */

.kb-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-faint);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.kb-crumbs a { color: var(--brand-blue); text-decoration: none; }

/* ---------- Section index ---------- */

.kb-section-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.kb-section-head .kb-section-icon { width: 44px; height: 44px; border-radius: 11px; }
.kb-section-head .kb-section-icon .material-symbols-outlined { font-size: 24px; }
.kb-section-head h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  margin: 0;
  color: var(--ink);
}
.kb-section-blurb {
  font-size: 17px;
  color: var(--ink-muted);
  margin: 0 0 8px;
  max-width: 620px;
  text-wrap: pretty;
}
.kb-section-count { font-size: 13px; color: var(--ink-faint); margin: 0 0 24px; }
.kb-empty { font-size: 15px; color: var(--ink-faint); }

.kb-list { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.kb-list a {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none;
  color: var(--ink);
}
.kb-list a:last-child { border-bottom: none; }
.kb-list a:hover { background: var(--brand-blue-paler); }
.kb-list .material-symbols-outlined {
  font-size: 20px;
  color: var(--brand-blue-light);
  margin-top: 1px;
}
.kb-list-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  margin-bottom: 3px;
}
.kb-list-summary { display: block; font-size: 14px; color: var(--ink-faint); line-height: 1.45; }

/* ---------- Article ---------- */

.kb-article { max-width: 700px; }
.kb-article h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  line-height: 1.2;
  margin: 0 0 10px;
  color: var(--ink);
  text-wrap: balance;
}
.kb-article-meta {
  font-size: 13px;
  color: var(--ink-faint);
  margin: 0 0 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

/* Bare-element styling: everything Markdown emits lands here. */
.kb-article-body p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-body);
  margin: 0 0 20px;
  text-wrap: pretty;
}
.kb-article-body h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--ink);
  margin: 34px 0 12px;
}
.kb-article-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  margin: 28px 0 10px;
}
.kb-article-body ul,
.kb-article-body ol { font-size: 17px; line-height: 1.65; color: var(--ink-body); margin: 0 0 20px; padding-left: 24px; }
.kb-article-body li { margin-bottom: 8px; }
/* Screenshots are captured at deviceScaleFactor 2, so the intrinsic PNG is
   twice its intended display size. Halving it here means an image never
   renders larger than it was shot — a narrow form stays narrow instead of
   being stretched to the column width — while staying crisp on retina. */
.kb-article-body img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7fafd;
  margin: 0 0 8px;
}

.kb-shot {
  display: block;
  margin: 0 0 24px;
  cursor: zoom-in;
  border: 0;
  padding: 0;
  background: none;
  max-width: 100%;
}
.kb-shot img {
  margin: 0;
  width: var(--shot-w, auto);
  max-width: 100%;
}
.kb-shot figcaption {
  font-size: 13px;
  color: var(--ink-faint);
  margin-top: 8px;
  cursor: default;
}
.kb-shot:hover img { border-color: var(--brand-blue-light); }

/* Lightbox */
.kb-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(16, 24, 40, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  cursor: zoom-out;
}
.kb-lightbox[hidden] { display: none; }
.kb-lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
}
.kb-lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
}
.kb-lightbox-close:hover { background: rgba(255, 255, 255, 0.24); }
.kb-article-body figure { margin: 0 0 24px; }
.kb-article-body figcaption { font-size: 13px; color: var(--ink-faint); margin-top: 8px; }
.kb-article-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: #f4f7fb;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
}
.kb-article-body table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 15px; }
.kb-article-body th,
.kb-article-body td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.kb-article-body th { background: #f7fafd; font-family: var(--font-display); font-weight: 600; }

/* Blockquote doubles as the design's "note" callout. */
.kb-article-body blockquote {
  display: flex;
  gap: 12px;
  background: var(--brand-blue-paler);
  border: 1px solid var(--line-accent);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 0 0 24px;
}
.kb-article-body blockquote p { margin: 0; font-size: 15px; line-height: 1.6; }
.kb-article-body blockquote p + p { margin-top: 10px; }

/* Search synonyms: visually hidden but still in the DOM, so Pagefind indexes
   them. Do NOT use display:none — Pagefind skips hidden elements. */
.kb-keywords {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Video lesson link ---------- */

.kb-lesson-link {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line-accent);
  background: var(--brand-blue-paler);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 28px 0 0;
  text-decoration: none;
  color: var(--ink);
}
.kb-lesson-link:hover { border-color: var(--brand-blue-light); }
.kb-lesson-link .material-symbols-outlined { font-size: 26px; color: var(--brand-blue-deep); flex: none; }
.kb-lesson-link strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
}
.kb-lesson-link em { display: block; font-style: normal; font-size: 13px; color: var(--ink-faint); }

/* ---------- Feedback ---------- */

.kb-feedback {
  margin-top: 44px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 15px;
  color: var(--ink-muted);
}
.kb-feedback-buttons { display: flex; gap: 10px; }
.kb-feedback button {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-blue-deep);
  background: #fff;
  border: 1px solid var(--brand-blue-light);
  border-radius: 8px;
  padding: 8px 18px;
  cursor: pointer;
}
.kb-feedback button:hover { background: var(--brand-blue-paler); }
.kb-feedback button[data-vote="no"] { color: var(--ink-muted); border-color: #d5dfeb; }
.kb-feedback button:disabled { opacity: 0.55; cursor: default; }
.kb-feedback-thanks { font-size: 14px; color: #008000; }

/* ---------- CTA ---------- */

.kb-cta-wrap { max-width: var(--wrap); margin: 0 auto; padding: 34px 24px 72px; }
.kb-cta {
  border: 1px solid var(--line-accent);
  background: var(--brand-blue-paler);
  border-radius: 14px;
  padding: 28px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.kb-cta h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--ink);
}
.kb-cta p { margin: 0; font-size: 15px; color: var(--ink-muted); }
.kb-cta-buttons { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.kb-btn-primary,
.kb-btn-secondary {
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 10px;
  display: inline-block;
}
.kb-btn-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--cta-orange-top), var(--cta-orange-bottom));
  border: 1px solid var(--cta-orange-border);
}
.kb-btn-primary:hover { filter: brightness(1.07); color: #fff; }
.kb-btn-secondary {
  color: var(--brand-blue-deep);
  background: #fff;
  border: 1px solid var(--brand-blue-light);
}
.kb-card-accent .kb-btn-primary { font-size: 14px; padding: 10px 18px; border-radius: 9px; }

/* ---------- Footer ---------- */

.kb-footer { border-top: 1px solid var(--line); background: #fafcfe; margin-top: auto; }
.kb-footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 26px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--ink-faint);
}
.kb-footer-links { display: flex; gap: 20px; }
.kb-footer-links a { color: var(--ink-muted); text-decoration: none; }
.kb-footer-links a:hover { color: var(--brand-blue-deep); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .kb-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kb-two-col { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .kb-sidebar { position: static; }
}

@media (max-width: 640px) {
  .kb-sections { grid-template-columns: minmax(0, 1fr); padding-top: 36px; }
  .kb-hero-inner { padding: 44px 20px 36px; }
  .kb-hero h1 { font-size: 32px; }
  .kb-header-inner { flex-wrap: wrap; gap: 12px; padding: 12px 20px; }
  .kb-header-nav { gap: 16px; font-size: 14px; }
  .kb-brand-label { font-size: 15px; }
  .kb-article h1 { font-size: 27px; }
  .kb-section-head h1 { font-size: 25px; }
  .kb-cta { padding: 22px; }
}

/* ---------- Print ---------- */

@media print {
  .kb-header, .kb-sidebar, .kb-feedback, .kb-footer,
  .kb-crumbs, .kb-cta-wrap, .kb-lesson-link { display: none !important; }
  .kb-two-col { display: block; padding: 0; max-width: none; }
  .kb-article { max-width: none; }
  body { color: #000; }
  .kb-article-body a::after { content: " (" attr(href) ")"; font-size: 12px; color: #555; }
}
