/* ArcReady — shared stylesheet for standalone content pages
   (study-guide.html, glossary.html, safety.html, theory.html,
   lab.html, reference.html, about.html)
   Not used by index.html — the SPA has its own css/main.css. */

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

body {
  font-family: Inter, Roboto, -apple-system, sans-serif;
  background: #F5F5F5;
  color: #1A1A1A;
  line-height: 1.7;
}

/* Nav */
.top-bar {
  background: #1A1A1A;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.top-bar a { color: #fff; text-decoration: none; font-size: 13px; opacity: 0.7; transition: opacity 0.15s; }
.top-bar a:hover { opacity: 1; }
.top-bar .brand { font-size: 18px; font-weight: 800; color: #CC0000; opacity: 1; letter-spacing: 0.5px; }
.top-bar .sep { color: rgba(255,255,255,0.3); }

/* Hero */
.hero { background: #1A1A1A; color: #fff; padding: 48px 24px 40px; text-align: center; }
.hero h1 { font-size: clamp(24px, 4vw, 36px); font-weight: 800; margin-bottom: 10px; }
.hero p { color: rgba(255,255,255,0.6); font-size: 14px; }
.hero .meta { margin-top: 14px; color: rgba(255,255,255,0.45); font-size: 12.5px; letter-spacing: 0.3px; }

/* Content */
.content { max-width: 820px; margin: 40px auto 60px; padding: 0 24px; }
.card { background: #fff; border-radius: 12px; padding: 36px 40px; box-shadow: 0 2px 12px rgba(0,0,0,0.07); }
.intro { font-size: 15.5px; color: #333; margin-bottom: 24px; }

/* Table of contents (study guide, long topic pages) */
.toc-box { background: #FAFAFA; border: 1px solid #EEE; border-radius: 8px; padding: 20px 24px; margin-bottom: 32px; }
.toc-box-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px; color: #888; margin-bottom: 10px; }
.toc ul { list-style: none; margin: 0; padding-left: 0; font-size: 14px; }
.toc > ul > li { margin-bottom: 10px; }
.toc > ul > li > a { font-weight: 700; color: #1A1A1A; }
.toc ul ul { padding-left: 16px; margin-top: 6px; }
.toc ul ul li { margin-bottom: 5px; }
.toc a { color: #444; text-decoration: none; }
.toc a:hover { color: #CC0000; text-decoration: underline; }

/* Typography */
h1.part-divider {
  font-size: 22px;
  font-weight: 800;
  color: #CC0000;
  margin: 48px 0 18px;
  padding-top: 28px;
  border-top: 3px solid #1A1A1A;
}
h1.part-divider:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }

h2 { font-size: 18px; font-weight: 700; color: #1A1A1A; margin: 32px 0 10px; padding-bottom: 8px; border-bottom: 2px solid #F0F0F0; scroll-margin-top: 16px; }
h2:first-child { margin-top: 0; }
h3 { font-size: 15.5px; font-weight: 700; color: #1A1A1A; margin: 20px 0 8px; }

p { margin-bottom: 14px; color: #333; font-size: 15px; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 8px 0 16px 22px; color: #333; font-size: 15px; }
li { margin-bottom: 6px; }
strong { color: #1A1A1A; }

.highlight {
  background: #FFF8E1;
  border-left: 4px solid #F57C00;
  border-radius: 0 6px 6px 0;
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 14px;
  color: #5a3e00;
}

table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0 20px; }
th { background: #F5F5F5; text-align: left; padding: 10px 14px; font-weight: 700; color: #555; font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; }
td { padding: 10px 14px; border-bottom: 1px solid #eee; vertical-align: top; }
tr:last-child td { border-bottom: none; }

a { color: #CC0000; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Glossary-style definition lists */
.glossary-entry { padding: 16px 0; border-bottom: 1px solid #F0F0F0; scroll-margin-top: 16px; }
.glossary-entry:last-child { border-bottom: none; }
dt { font-weight: 800; font-size: 15.5px; color: #1A1A1A; margin-bottom: 4px; }
dd { font-size: 14.5px; color: #444; margin-left: 0; }

/* Callout / CTA box linking back into the interactive app */
.cta-box { margin-top: 40px; padding: 24px; background: #FFF8F8; border: 1px solid #FCD8D8; border-radius: 10px; text-align: center; }
.cta-box p { margin-bottom: 14px; color: #5a1a1a; }
.cta-buttons { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; padding: 10px 18px; border-radius: 6px; font-size: 13.5px; font-weight: 700; text-decoration: none; }
.btn-primary { background: #CC0000; color: #fff; }
.btn-secondary { background: #1A1A1A; color: #fff; }
.btn:hover { opacity: 0.9; text-decoration: none; }

.back-to-top { display: inline-block; margin-top: 30px; font-size: 13px; color: #888; }

.effective-date { font-size: 13px; color: #888; margin-bottom: 24px; }

/* Footer */
.footer { background: #1A1A1A; color: rgba(255,255,255,0.5); text-align: center; padding: 24px; font-size: 13px; }
.footer a { color: rgba(255,255,255,0.7); }
.footer a:hover { color: #fff; }

@media print {
  .top-bar, .footer, .cta-box, .toc-box { display: none; }
  body { background: #fff; }
  .content { max-width: 100%; margin: 0; }
  .card { box-shadow: none; padding: 0; }
}
