:root {
  --pharm-blue: #0B5FAE;
  --pharm-blue-dark: #084A8A;
  --pharm-blue-light: #E8F1FB;
  --accent: #FF6B47;
  --accent-warm: #FFB845;
  --ink: #0F1B2D;
  --ink-soft: #4A5A70;
  --line: #E2E8F0;
  --bg: #FFFFFF;
  --cream: #FBF7EE;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 27, 45, 0.08);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--pharm-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; margin-top: 1.5em; }
h3 { font-size: 1.18rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }
p { margin: 0 0 1em; }

.muted { color: var(--ink-soft); }
.small { font-size: 0.92rem; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--pharm-blue);
  margin: 0 0 0.5em;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.1rem;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: inline-grid; place-items: center;
  background: var(--pharm-blue);
  color: white;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
}
.brand-text { letter-spacing: -0.01em; }
.primary-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.primary-nav a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
}
.primary-nav a:hover { color: var(--pharm-blue); text-decoration: none; }

/* Hero */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -20%, rgba(255, 184, 69, 0.18), transparent 60%),
    radial-gradient(1000px 400px at -10% 110%, rgba(11, 95, 174, 0.15), transparent 55%),
    linear-gradient(180deg, #F4F8FE 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  padding: 72px 24px 64px;
  max-width: 880px;
  text-align: left;
}
.hero h1 { margin-bottom: 0.4em; }
.lede {
  font-size: 1.18rem;
  color: var(--ink-soft);
  margin-bottom: 1.5em;
  max-width: 60ch;
}
.hero-meta {
  margin-top: 18px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* Search bar */
.searchbar {
  display: flex;
  gap: 8px;
  background: white;
  padding: 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  max-width: 620px;
}
.searchbar input[type=search] {
  flex: 1;
  border: 0;
  background: transparent;
  font: inherit;
  padding: 12px 18px;
  outline: none;
}
.searchbar button {
  border: 0;
  background: var(--pharm-blue);
  color: white;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.15s;
}
.searchbar button:hover { background: var(--pharm-blue-dark); }

/* Page hero */
.page-hero {
  background: linear-gradient(180deg, var(--pharm-blue-light) 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 40px;
}
.chain-hero {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent, var(--pharm-blue)) 8%, white) 0%, white 60%);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 40px;
}

/* Sections and grids */
.section { padding: 48px 0; }
.section + .section { border-top: 1px solid var(--line); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.card-grid.compact { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card {
  display: block;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--accent, var(--pharm-blue)) 35%, var(--line));
  text-decoration: none;
}
.card h3 { margin-bottom: 6px; }
.card .cta {
  display: inline-block;
  margin-top: 10px;
  color: var(--pharm-blue);
  font-weight: 600;
  font-size: 0.95rem;
}
.card.mini { padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.card.mini strong { font-size: 1rem; }
.chain-card { position: relative; }
.card-mark {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: inline-grid; place-items: center;
  color: white;
  font-weight: 800;
  margin-bottom: 12px;
}

.three-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 18px;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 6px 14px;
  margin: 12px 0;
}
.link-grid a {
  padding: 6px 0;
  font-size: 0.95rem;
  border-bottom: 1px dashed transparent;
}
.link-grid a:hover { border-bottom-color: var(--pharm-blue); text-decoration: none; }

.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li { padding: 4px 0; }

/* Hours table */
.hours-table {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
  margin: 8px 0 18px;
}
.hours-table > div {
  display: grid;
  grid-template-columns: 200px 1fr;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  gap: 14px;
}
.hours-table > div:last-child { border-bottom: 0; }
.hours-table span { color: var(--ink-soft); font-weight: 500; }
.hours-table strong { color: var(--ink); font-weight: 600; }

/* Comparison table */
.comparison {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 12px;
}
.comparison th, .comparison td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 0.95rem;
}
.comparison th { background: var(--pharm-blue-light); font-weight: 600; color: var(--ink); }
.comparison tr:last-child td { border-bottom: 0; }

/* Lists */
.check-list, .numbered { padding-left: 0; margin: 12px 0; }
.check-list { list-style: none; }
.check-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 18px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--pharm-blue-light);
  border: 2px solid var(--pharm-blue);
}
.numbered { padding-left: 24px; }
.numbered li { padding: 6px 0; }

/* Layout with sidebar */
.layout-with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 48px;
  padding: 8px 24px;
}
.layout-with-sidebar > main { min-width: 0; }
.related {
  position: sticky;
  top: 80px;
  align-self: start;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 20px 22px;
  border: 1px solid var(--line);
}
.related h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin: 0 0 12px;
}
.related ul { list-style: none; margin: 0; padding: 0; }
.related li { padding: 6px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink-soft) 18%, transparent); }
.related li:last-child { border-bottom: 0; }

/* Breadcrumbs */
.breadcrumbs { padding: 16px 0 8px; font-size: 0.88rem; color: var(--ink-soft); }
.breadcrumbs ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.breadcrumbs li + li::before { content: "/"; padding-right: 8px; color: var(--line); }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #C8D2E0;
  padding: 56px 0 32px;
  margin-top: 48px;
}
.site-footer .brand-text { color: white; }
.site-footer h4 { color: white; margin-bottom: 12px; letter-spacing: 0.08em; }
.site-footer .muted { color: #97A6BC; }
.site-footer a { color: #C8D2E0; }
.site-footer a:hover { color: white; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 42px;
}

/* Responsive */
@media (max-width: 880px) {
  .layout-with-sidebar { grid-template-columns: 1fr; gap: 24px; }
  .related { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { padding: 48px 24px 40px; }
  .hours-table > div { grid-template-columns: 1fr; gap: 4px; }
  .hours-table span { font-size: 0.85rem; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .primary-nav { display: none; }
  .searchbar { flex-direction: column; border-radius: 14px; padding: 10px; }
  .searchbar button { width: 100%; }
}
