/* Freeman Medical Staff Hub - shared stylesheet
   Branding: teal #00707F headers and accents, red #C41E3A emphasis only,
   Arial throughout, white background, mobile-friendly.
   This is the only stylesheet. Every page across every section links to it. */

:root {
  --teal: #00707F;
  --teal-dark: #005863;
  --teal-tint: #e6f1f2;
  --red: #C41E3A;
  --ink: #1f2933;
  --muted: #5b6770;
  --line: #d9e0e2;
  --bg: #ffffff;
  --maxwidth: 960px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

/* ---------- Top navigation bar ---------- */
.site-header {
  background: var(--teal);
  color: #ffffff;
}
.site-header .bar {
  max-width: var(--maxwidth);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}
.site-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.2px;
}
.site-title:hover { text-decoration: none; }
.site-tagline {
  font-size: 0.85rem;
  color: #cfe6e9;
}

/* ---------- Layout containers ---------- */
.container {
  max-width: var(--maxwidth);
  margin: 0 auto;
  padding: 28px 20px 60px;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 18px;
}
.breadcrumb a { color: var(--teal); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Headings and text ---------- */
h1 {
  color: var(--teal);
  font-size: 1.9rem;
  margin: 0 0 6px;
}
h2 {
  color: var(--teal);
  font-size: 1.3rem;
  margin: 34px 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--teal-tint);
}
h3 { color: var(--teal-dark); font-size: 1.05rem; margin: 22px 0 8px; }
.lead { font-size: 1.05rem; color: var(--muted); margin: 0 0 8px; }
a { color: var(--teal); }
p { margin: 0 0 14px; }
.emphasis { color: var(--red); font-weight: bold; }

/* ---------- Card grid (landing and section pages) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 20px;
}
.card {
  display: block;
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: 8px;
  padding: 20px;
  background: #ffffff;
  color: var(--ink);
  text-decoration: none;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
a.card:hover {
  box-shadow: 0 4px 14px rgba(0, 112, 127, 0.15);
  transform: translateY(-2px);
}
.card h3 { margin: 0 0 6px; color: var(--teal); }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card.disabled {
  border-top-color: var(--line);
  background: #fafbfb;
  cursor: default;
}
.card.disabled h3 { color: var(--muted); }
.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  background: #eef1f2;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
  margin-top: 12px;
}

/* ---------- Step list (section overview) ---------- */
.step-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}
.step-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 12px;
}
.step-num {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--teal);
  color: #ffffff;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-list li.disabled { background: #fafbfb; }
.step-list li.disabled .step-num { background: var(--line); color: #ffffff; }
.step-body { flex: 1; }
.step-body a { font-weight: bold; text-decoration: none; }
.step-body a:hover { text-decoration: underline; }
.step-title { font-weight: bold; }
.step-desc { color: var(--muted); font-size: 0.95rem; margin-top: 2px; }

/* ---------- Numbered content steps (guide pages) ---------- */
.step-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 34px 0 10px;
}
.step-heading .num {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--teal);
  color: #ffffff;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.step-heading h2 {
  margin: 0;
  border: 0;
  padding: 0;
}

/* ---------- Callout note ---------- */
.callout {
  border-left: 4px solid var(--teal);
  background: var(--teal-tint);
  padding: 14px 18px;
  border-radius: 4px;
  margin: 18px 0;
}
.callout p { margin: 0; }

/* ---------- Panel (supporting information block) ---------- */
.panel {
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  background: #fafcfc;
  padding: 16px 20px;
  margin: 18px 0;
}
.panel p:last-child { margin-bottom: 0; }
.panel h3 { margin-top: 0; }

/* ---------- Link list (resources, including off-site links) ---------- */
.link-list {
  list-style: none;
  margin: 16px 0;
  padding: 0;
}
.link-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.link-list li:last-child { border-bottom: 0; }
.link-list > li > a {
  font-weight: bold;
  text-decoration: none;
}
.link-list > li > a:hover { text-decoration: underline; }
.link-note {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 2px;
}

/* Off-site links carry a small arrow so the destination is obvious. */
a.external::after {
  content: "\2197";
  font-size: 0.8em;
  margin-left: 3px;
}

/* ---------- Contact details ---------- */
.contact-line { font-size: 1.05rem; }
a.tel {
  font-weight: bold;
  color: var(--teal-dark);
  text-decoration: none;
  white-space: nowrap;
}
a.tel:hover { text-decoration: underline; }

/* ---------- Content lists ---------- */
.content ul { padding-left: 22px; }
.content li { margin-bottom: 8px; }

/* ---------- Reference table ---------- */
.table-wrap { overflow-x: auto; }
table.ref {
  border-collapse: collapse;
  width: 100%;
  margin: 16px 0;
  font-size: 0.95rem;
}
table.ref th, table.ref td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
table.ref th {
  background: var(--teal);
  color: #ffffff;
  font-weight: bold;
}
table.ref tr:nth-child(even) td { background: #f7fafa; }

/* Microphone status icons inside the table */
.mic-states {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.mic-state {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}
.mic-state img {
  display: block;
  height: 56px;
  width: auto;
  margin: 0 auto 4px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}
.site-footer .bar {
  max-width: var(--maxwidth);
  margin: 0 auto;
  padding: 18px 20px;
}

/* ---------- Small screens ---------- */
@media (max-width: 520px) {
  h1 { font-size: 1.55rem; }
  .site-title { font-size: 1.1rem; }
  .container { padding: 20px 16px 48px; }
}
