:root {
  --navy: #12324a;
  --teal: #0f7c7a;
  --teal-light: #e3f2f1;
  --sand: #f7f4ee;
  --text: #1f2a37;
  --muted: #5b6776;
  --border: #dde3e8;
  --white: #ffffff;
  --radius: 10px;
  --max: 1100px;
}

* { box-sizing: border-box; }

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

a { color: var(--teal); }
a:hover { color: var(--navy); }

img { max-width: 100%; display: block; }

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

/* Header */
.site-header {
  background: var(--navy);
  color: var(--white);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.3px;
}
.logo span { color: #7fd6cf; }
.site-nav a {
  color: #d7e3ec;
  text-decoration: none;
  margin-left: 18px;
  font-weight: 500;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a.active { color: var(--white); border-bottom: 2px solid #7fd6cf; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: var(--white);
  padding: 64px 0 56px;
}
.hero h1 { font-size: 2.4rem; margin: 0 0 10px; line-height: 1.2; }
.hero p { font-size: 1.15rem; max-width: 640px; margin: 0 0 24px; color: #e2eef3; }
.hero-search {
  display: flex;
  gap: 8px;
  max-width: 560px;
}
.hero-search input {
  flex: 1;
  padding: 12px 14px;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  border: none;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: #0b6462; color: var(--white); }
.hero .btn { background: #7fd6cf; color: var(--navy); }
.hero .btn:hover { background: var(--white); }

/* Sections */
section { padding: 48px 0; }
.section-alt { background: var(--sand); }
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
}
.section-title h2 { margin: 0; color: var(--navy); }

.page-header {
  background: var(--sand);
  padding: 40px 0 28px;
  border-bottom: 1px solid var(--border);
}
.page-header h1 { margin: 0 0 6px; color: var(--navy); }
.page-header p { margin: 0; color: var(--muted); }

/* Grids and cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.card h3 { margin: 4px 0 8px; font-size: 1.1rem; }
.card h3 a { color: var(--navy); text-decoration: none; }
.card h3 a:hover { color: var(--teal); }
.card p { margin: 0 0 12px; color: var(--muted); }
.card .meta { font-size: 0.85rem; color: var(--muted); margin-top: auto; }

.tag {
  display: inline-block;
  background: var(--teal-light);
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
  margin-right: 6px;
}
.tag-sample { background: #fdecc8; color: #8a5a00; }

.specialty-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.specialty-list a {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 500;
}
.specialty-list a:hover { border-color: var(--teal); color: var(--teal); }

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.filters input,
.filters select {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  background: var(--white);
}
.filters input { flex: 1; min-width: 220px; }
.result-count { color: var(--muted); margin-bottom: 14px; }
.empty { color: var(--muted); padding: 30px 0; }

/* Profile and article */
.profile {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}
.info-box {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 20px;
}
.info-box dl { margin: 0; }
.info-box dt { font-weight: 600; color: var(--navy); margin-top: 10px; }
.info-box dt:first-child { margin-top: 0; }
.info-box dd { margin: 0; color: var(--text); }

.article { max-width: 760px; }
.article h1 { color: var(--navy); line-height: 1.25; margin-bottom: 6px; }
.article .meta { color: var(--muted); margin-bottom: 24px; }
.article p { font-size: 1.08rem; }

.back-link { display: inline-block; margin-bottom: 18px; }

.notice {
  background: #fff8e6;
  border: 1px solid #f1d58a;
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #c4d3de;
  padding: 32px 0;
  font-size: 0.9rem;
}
.site-footer a { color: #e2eef3; }
.site-footer .disclaimer { max-width: 760px; }

@media (max-width: 760px) {
  .hero h1 { font-size: 1.8rem; }
  .profile { grid-template-columns: 1fr; }
  .site-nav a { margin: 0 14px 0 0; }
  .hero-search { flex-direction: column; }
}
