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

:root {
  --navy: #0A3161;
  --blue: #0A3161;
  --accent: #B22234;
  --accent-hover: #8E1B2A;
  --light: #ffffff;
  --card: #ffffff;
  --text: #1e293b;
  --muted: #3d4a5c;
  --border: #d5dde8;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--light);
}

header {
  background: linear-gradient(90deg, #19283f 0%, #1e1629 48%, #35111f 100%);
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  border-bottom: 2px solid #B22234;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo a {
  color: white;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-mark {
  width: auto;
  height: 40px;
  display: block;
  flex-shrink: 0;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.75rem;
  margin-left: auto;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}

nav a:hover {
  color: #F8D0D6;
}

.site-notice {
  margin: 0;
  background: #ffffff;
  color: var(--navy);
  border-bottom: 3px solid var(--accent);
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.35;
  padding: 0.4rem 0.75rem;
}

.hero {
  background: #ffffff;
  color: var(--text);
  padding: 1.35rem 1.5rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.hero-content {
  max-width: 720px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  line-height: 1.25;
  color: var(--navy);
}

.hero p {
  font-size: 1rem;
  margin-bottom: 0.85rem;
  color: var(--text);
}

.cta-button {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s, transform 0.1s;
}

.cta-button:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.cta-button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.disclaimer, .note {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  opacity: 0.85;
}

.section {
  padding: 3.5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section.alt {
  background: white;
  max-width: none;
  padding: 3.5rem 1.5rem;
}

.section.alt > * {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
  text-align: center;
  color: var(--navy);
  font-weight: 700;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--card);
  padding: 1.75rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.card h3 {
  margin-bottom: 0.6rem;
  color: var(--blue);
  font-size: 1.2rem;
}

.card a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.card a:hover,
.specialty-card a:hover,
.lamh-source a:hover,
.lamh-card-note a:hover,
.lamh-section-note a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.specialty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.specialty-card {
  background: white;
  padding: 1.4rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border: 1px solid var(--border);
}

.specialty-card h3 {
  color: var(--blue);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.specialty-card a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.specialty-card a:hover {
  text-decoration: underline;
}

.pricing {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
}

.price-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  width: 100%;
  max-width: 380px;
  border: 2px solid var(--accent);
  text-align: left;
}

.price {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0.75rem 0;
}

.price span {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 500;
}

.price-card ul {
  list-style: none;
  margin: 1.25rem 0;
}

.price-card li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
}

.price-card li:before {
  content: "✓ ";
  color: var(--accent);
  font-weight: bold;
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 420px;
  margin: 1.5rem auto 0;
}

.subscribe-form label {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text);
}

.subscribe-form input,
.subscribe-form select {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  width: 100%;
}

.subscribe-form .check-consent {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.35rem 0.65rem;
  font-weight: 500;
}

.subscribe-form .check-consent label {
  flex: 1 1 12rem;
}

.subscribe-form .check-consent input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.3rem;
  flex: none;
}

.subscribe-form .hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-error {
  color: #9f1239;
}

.subscribe-form button {
  margin-top: 0.5rem;
}

.note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 1rem;
}

footer {
  background: linear-gradient(90deg, #19283f 0%, #1e1629 48%, #35111f 100%);
  color: white;
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.9rem;
}

footer a {
  color: #f3f6fb;
  text-decoration: none;
}

footer a:hover {
  color: #F8D0D6;
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

header :focus-visible,
footer :focus-visible {
  outline-color: #ffffff;
}

footer p + p {
  margin-top: 0.5rem;
  opacity: 0.85;
  font-size: 0.8rem;
}

.social-slot[hidden] {
  display: none;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #f3f6fb;
}

.social-links a:hover {
  color: #F8D0D6;
  border-color: #F8D0D6;
}

.social-links svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

.social-slot--header {
  margin-left: 0.85rem;
  flex: none;
}

.social-slot--header .social-links {
  margin-top: 0;
  gap: 0.28rem;
}

.social-slot--header .social-links a {
  width: 30px;
  height: 30px;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.social-slot--header .social-links svg {
  width: 16px;
  height: 16px;
}

.nav-toggle {
  display: none;
}

.card,
.specialty-card,
.drug-item,
.trial-card,
.price-card,
.subscribe-form,
.legal-content,
footer,
.hero-content {
  overflow-wrap: anywhere;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.legal-content th,
.legal-content td {
  border: 1px solid var(--border);
  padding: 0.55rem 0.6rem;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.legal-content th {
  background: var(--light);
}

.legal-placeholder {
  background: #fff7ed;
  border-left: 4px solid #c2410c;
  padding: 0.75rem 1rem;
}

@media (max-width: 900px) {
  nav {
    flex-wrap: wrap;
  }

  .logo {
    font-size: 0.95rem;
    min-width: 0;
  }

  .social-slot--header {
    margin-left: auto;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.35rem;
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 8px;
    padding: 0.45rem 0.8rem;
    min-height: 44px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
  }

  .nav-toggle:hover,
  .nav-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: white;
  }

  nav ul {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0.35rem 0 0.15rem;
  }

  nav ul.is-open {
    display: flex;
  }

  nav ul a {
    display: block;
    padding: 0.7rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .hero h1 {
    font-size: 1.3rem;
  }

  .hero {
    padding: 1.15rem 1rem 1.25rem;
  }

  .section {
    padding: 2.5rem 1rem;
  }

  .grid,
  .specialty-grid {
    grid-template-columns: 1fr;
  }

  .price-card {
    padding: 1.25rem;
  }

  .legal-content {
    margin: 1rem auto;
    padding: 1.15rem !important;
  }

  .subscribe-form {
    width: 100%;
  }
}

.site-disclaimer {
  margin: 0;
  background: #F8FAFC;
  color: var(--navy);
  border-top: 3px solid var(--accent);
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.45;
  padding: 0.85rem 1.5rem;
  max-width: none;
}

.site-disclaimer a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-disclaimer a:hover {
  color: var(--accent-hover);
}

/* Keep hidden elements hidden (e.g. Load more after all results shown) */
[hidden] { display: none !important; }
