/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #1a365d;
  --navy-light: #2c5282;
  --blue-accent: #3182ce;
  --blue-pale: #ebf4ff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --green-bg: #ecfdf5; --green-text: #065f46; --green-border: #a7f3d0;
  --yellow-bg: #fffbeb; --yellow-text: #92400e; --yellow-border: #fde68a;
  --red-bg: #fef2f2; --red-text: #991b1b; --red-border: #fecaca;
  --purple-bg: #f5f3ff; --purple-text: #5b21b6; --purple-border: #ddd6fe;
  --orange-bg: #fff7ed; --orange-text: #9a3412; --orange-border: #fed7aa;
  --teal-bg: #f0fdfa; --teal-text: #115e59; --teal-border: #99f6e4;
  --max-width: 960px;
  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* === Layout === */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }

/* === Header === */
.site-header {
  background: var(--navy);
  color: #fff;
  padding: 1.5rem 0;
  border-bottom: 3px solid var(--blue-accent);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.site-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}
.site-title a { color: #fff; }
.site-title a:hover { text-decoration: none; opacity: 0.9; }
.site-logo {
  height: 72px;
  width: auto;
  display: block;
}
.site-nav { display: flex; gap: 1.5rem; }
.site-nav a {
  color: #e2e8f0;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}
.site-nav a:hover { color: #fff; text-decoration: none; }
.site-nav a.active { color: #fff; border-bottom: 2px solid var(--blue-accent); padding-bottom: 2px; }

/* === Newsletter === */
.newsletter-section {
  background: var(--navy);
  color: #fff;
  padding: 2.5rem 2rem;
  margin-top: 2rem;
  border-radius: 10px;
  text-align: center;
}
.newsletter-section h2 {
  color: #fff;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}
.newsletter-section p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.5rem;
}
.btn-newsletter {
  background: #fff;
  color: var(--navy);
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}
.btn-newsletter:hover {
  background: var(--gray-200);
}

/* === Footer === */
.site-footer {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  padding: 2rem 0;
  margin-top: 3rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* === Homepage === */
.hero {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--gray-200);
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.hero p {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 680px;
  line-height: 1.7;
}

/* === About / Committee / Journals sections === */
.about-section {
  margin: 2rem 0;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}
.about-section h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.about-section p {
  font-size: 0.98rem;
  color: var(--gray-700);
  line-height: 1.7;
  max-width: 720px;
  margin-bottom: 0.75rem;
}
.about-section p:last-child { margin-bottom: 0; }
.journal-list {
  columns: 2;
  column-gap: 2rem;
  list-style: none;
  padding: 0;
}
.journal-list li {
  font-size: 0.9rem;
  color: var(--gray-700);
  padding: 0.25rem 0;
  break-inside: avoid;
}
@media (max-width: 640px) {
  .journal-list { columns: 1; }
}

/* === Podcast Section === */
.podcast-section {
  background: var(--blue-pale);
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.podcast-section h2 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}
.podcast-section p {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 0.75rem;
}
.btn-podcast {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s;
}
.btn-podcast:hover { background: var(--navy-light); text-decoration: none; }

.latest-issue {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--blue-pale);
  border: 1px solid #bfdbfe;
  border-radius: 8px;
}
.latest-issue h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.latest-issue .meta {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 0.75rem;
}
.latest-issue .btn {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s;
}
.latest-issue .btn:hover { background: var(--navy-light); text-decoration: none; }

.issue-list-section { margin: 2.5rem 0; }
.issue-list-section h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gray-200);
}
.issue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.issue-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 1.25rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.issue-card:hover {
  border-color: var(--blue-accent);
  box-shadow: 0 2px 8px rgba(26, 54, 93, 0.08);
}
.issue-card h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}
.issue-card .count {
  font-size: 0.85rem;
  color: var(--gray-500);
}
.issue-card a { color: inherit; display: block; }
.issue-card a:hover { text-decoration: none; }

/* === Page Header === */
.page-header {
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 1.5rem;
}
.page-header h1 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}
.page-header p {
  color: var(--gray-600);
  font-size: 0.95rem;
}
.btn-download {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.45rem 1rem;
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.15s, border-color 0.15s;
}
.btn-download:hover {
  background: var(--gray-200);
  border-color: var(--gray-400);
  text-decoration: none;
}

/* === Filter Bar (Archive) === */
.filter-bar {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.filter-bar label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}
.filter-group { flex: 1; min-width: 200px; }
.filter-group input,
.filter-group select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  background: #fff;
  color: var(--gray-800);
}
.filter-group input:focus,
.filter-group select:focus {
  outline: none;
  border-color: var(--blue-accent);
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.15);
}
.filter-results {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 1rem;
}

/* === Article Cards === */
.article-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }

.article-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.15s;
}
.article-card:hover { border-color: var(--gray-300); }

.article-card-header {
  padding: 1.25rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.article-card-header:hover { background: var(--gray-50); }

.article-card-body { flex: 1; }

.article-card-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 0.75rem;
  border-bottom: 2px solid var(--blue-accent);
  padding-bottom: 0.6rem;
}

.article-edition {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
}

.article-bottom-line {
  font-size: 0.92rem;
  color: var(--gray-700);
  line-height: 1.55;
  margin-bottom: 0.5rem;
}
.article-bottom-line strong {
  color: var(--navy);
  font-weight: 600;
}

.article-caveat {
  font-size: 0.85rem;
  color: var(--gray-600);
  background: var(--yellow-bg);
  border-left: 3px solid var(--yellow-border);
  padding: 0.4rem 0.75rem;
  margin-bottom: 0.5rem;
  border-radius: 0 4px 4px 0;
}

.article-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.5rem; }

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid;
  white-space: nowrap;
}
.tag-subspecialty {
  background: var(--teal-bg);
  color: var(--teal-text);
  border-color: var(--teal-border);
}
.tag-evidence {
  background: var(--purple-bg);
  color: var(--purple-text);
  border-color: var(--purple-border);
}

.expand-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 1.1rem;
  transition: transform 0.2s;
  margin-top: 0.15rem;
}
.article-card.expanded .expand-icon { transform: rotate(180deg); }

.article-card-detail {
  display: none;
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--gray-200);
}
.article-card.expanded .article-card-detail { display: block; }

.article-abstract {
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin: 1rem 0;
  white-space: pre-line;
}

.article-citation {
  font-size: 0.82rem;
  color: var(--gray-500);
  line-height: 1.5;
  padding: 0.75rem;
  background: var(--gray-50);
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.pubmed-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--blue-accent);
}
.pubmed-link:hover { text-decoration: underline; }

.ai-badge {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--gray-400);
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
  margin-top: 0.75rem;
  letter-spacing: 0.02em;
}

/* === Issue Page === */
.issue-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.9rem;
}
.issue-nav a { font-weight: 500; }
.issue-nav .disabled { color: var(--gray-400); pointer-events: none; }

/* === No results === */
.no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--gray-500);
  font-size: 1rem;
}

/* === Responsive === */
@media (max-width: 640px) {
  .site-header .container { flex-direction: column; align-items: flex-start; }
  .site-nav { gap: 1rem; }
  .hero h1 { font-size: 1.5rem; }
  .filter-row { flex-direction: column; }
  .filter-group { min-width: 100%; }
  .issue-grid { grid-template-columns: 1fr; }
  .article-card-title { font-size: 0.95rem; }
}
