/* Shared editorial style. Loaded after page CSS so every workflow uses it. */
:root {
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Source Serif 4", Georgia, serif;
  --radius-lg: 10px;
  --radius-md: 8px;
  --radius-sm: 6px;
  --shadow: none;
}
body { font-family: var(--font-body); background: var(--bg) !important; color: var(--ink); line-height: 1.6; }
h1, h2, h3, h4, h5, h6, .brand-link, .brand-name, .section-title {
  font-family: var(--font-heading);
}
button, input, textarea, select { font-family: var(--font-body); }
.site-header { background: rgba(244, 245, 241, .96); backdrop-filter: blur(10px); }
.site-header-inner, .site-footer-inner, .app-main { width: min(1180px, 92%); }
.brand-link { font-size: 18px; font-weight: 600; }
.brand-link img { width: 36px; height: 36px; border-radius: 7px; box-shadow: none; }
.desktop-nav .nav-link, button.nav-dropdown-toggle {
  border-radius: 6px;
  font: 500 14px/1 var(--font-body) !important;
}
.header-cta { display: none; }
.menu-toggle { border-radius: 7px; }
.site-footer { background: var(--bg); }
.app-main { padding: 40px 0; }
.app-main:has(.editorial-home) { padding-top: 0; }
.app-main :is(.hero-section, .ev-header, .tb-header-centered, .exam-hero, .image-hero, .rx-hero) {
  text-align: left;
  padding: 0;
  margin: 0 0 28px;
}
.app-main :is(.hero-section, .ev-header, .tb-header-centered, .exam-hero, .image-hero, .rx-hero) h1 {
  font-family: var(--font-heading);
  font-size: clamp(30px, 4vw, 42px) !important;
  font-weight: 600;
  line-height: 1.18;
  margin: 0 0 12px;
}
.app-main :is(.hero-section .lead, .ev-header p, .tb-header-centered p, .exam-hero p, .image-hero p, .rx-hero p) {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  margin: 0;
  max-width: 65ch;
}
.app-main :is(.ev-app, .tb-app-centered, .exam-page, .image-page, .rx-page) {
  width: min(980px, 100%);
  margin: 0 auto;
}
.app-main .hero-section { max-width: 800px; margin-inline: auto; }
.app-main .hero-section { text-align: left !important; max-width: 980px; }
.app-main .hero-section h1 { font-weight: 600 !important; }
.app-main .hero-section :is(.lead, p) { margin-left: 0 !important; margin-right: 0 !important; }
.app-main :is(.content-card, .tips-section) { max-width: 980px !important; box-shadow: none !important; }
.app-main :is(.btn-primary, button[type="submit"]) { box-shadow: none !important; }
.app-main :is(.content-card, .exam-tool, .image-tool, .image-guide, .rx-tool, .rx-guide,
  .tb-search-box, .tb-answer-card, .ev-search-box, .ev-answer-card, .result-card) {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: none;
}
.app-main :is(.tb-search-box, .ev-search-box):focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 111, 92, .12);
}
.app-main :is(.tb-example, .ev-example, .exam-kicker, .image-kicker, .rx-kicker) {
  border-radius: 6px;
  background: var(--surface-soft);
  border-color: var(--border);
  color: var(--blue);
  font-family: var(--font-body);
}
.app-main :is(.exam-kicker, .image-kicker, .rx-kicker) { margin-left: 0; }
.app-main :is(.tb-examples-title, .tb-examples, .ev-examples) { text-align: left; justify-content: flex-start; }
.app-main :is(.btn-primary, .exam-btn-primary, .image-submit, .rx-submit, .tb-submit, .ev-submit) {
  background: var(--blue);
  color: white;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 600;
}
.app-main :is(.tb-share, .ev-icon-btn) { border-radius: 6px; }
.app-main :is(.btn-primary, .exam-btn-primary, .image-submit, .rx-submit, .tb-submit, .ev-submit):hover:not(:disabled) {
  background: var(--blue-dark);
  transform: none;
}
.app-main :is(.tb-card-title, .ev-card-title, .exam-tool-title, .image-tool-title) {
  font-family: var(--font-body);
  font-weight: 600;
}
.app-main .page-header {
  background: transparent !important;
  color: var(--ink) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.app-main .page-header :is(h1, h2, p) { color: var(--ink) !important; }
.app-main .page-header h1 { font-family: var(--font-heading); font-weight: 600; }
@media (max-width: 640px) {
  .site-header-inner, .site-footer-inner, .app-main { width: calc(100% - 24px); }
  .app-main { padding-top: 28px; }
  .brand-link { font-size: 16px; }
  .app-main .content-card { padding: 20px; }
}
