/* Federal Register page */

.reg-hero {
  padding: clamp(100px, 14vw, 160px) 0 64px;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(109, 145, 199, 0.12), transparent 60%),
    var(--bg-0);
  border-bottom: 1px solid var(--rule);
}

.reg-hero h1 {
  margin: 12px 0 24px;
  max-width: 22ch;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
}

.reg-lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-2);
  max-width: 720px;
  margin-bottom: 48px;
  line-height: 1.55;
}

.reg-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.reg-stat {
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 24px 28px;
}

.reg-loading {
  display: inline-block;
  color: var(--ink-3);
  letter-spacing: 0.2em;
  animation: regpulse 1.4s ease-in-out infinite;
}
@keyframes regpulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.85; }
}
@media (prefers-reduced-motion: reduce) {
  .reg-loading { animation: none; opacity: 0.6; }
}

.reg-stat-num {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 500;
  font-variation-settings: "opsz" 144;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.04em;
}

.reg-stat-label {
  font-size: 0.92rem;
  color: var(--ink-2);
  font-weight: 500;
}

.reg-meta {
  font-size: 0.82rem;
  color: var(--ink-3);
  font-style: italic;
}

/* Body layout */

.reg-body { padding-top: 48px; padding-bottom: 96px; }

.reg-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: start;
}

@media (max-width: 880px) {
  .reg-layout { grid-template-columns: 1fr; }
}

/* Sidebar */

.reg-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 88px;
}

@media (max-width: 880px) {
  .reg-side { position: static; }
}

.reg-card {
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 18px 20px;
}

.reg-card-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  font-weight: 600;
  margin: 0 0 12px;
}

.reg-card-text {
  font-size: 0.92rem;
  color: var(--ink-2);
  margin: 0 0 10px;
  line-height: 1.55;
}

.reg-card-text a { color: var(--accent); }
.reg-card-text a:hover { color: var(--accent-hot); }

.reg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.reg-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--rule);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  font-family: inherit;
}

.reg-chip:hover { color: var(--ink-0); border-color: var(--rule-strong); }

.reg-chip.is-active {
  background: rgba(109, 145, 199, 0.18);
  border-color: rgba(109, 145, 199, 0.55);
  color: var(--accent-hot);
}

.reg-chip-count {
  font-size: 0.72rem;
  color: var(--ink-3);
  font-weight: 600;
}

.reg-chip.is-active .reg-chip-count { color: var(--accent-hot); }

/* Main list */

.reg-status, .reg-list, .reg-empty {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.reg-status[hidden], .reg-list[hidden], .reg-empty[hidden] {
  display: none;
}

.reg-skeleton {
  background: linear-gradient(110deg, var(--bg-2) 8%, var(--bg-3) 18%, var(--bg-2) 33%);
  background-size: 200% 100%;
  border-radius: 14px;
  height: 120px;
  border: 1px solid var(--rule);
  animation: regskel 1.4s ease-in-out infinite;
}

@keyframes regskel {
  to { background-position-x: -200%; }
}

@media (prefers-reduced-motion: reduce) {
  .reg-skeleton { animation: none; }
}

.reg-empty {
  border: 1px dashed var(--rule-strong);
  border-radius: 14px;
  padding: 32px;
  color: var(--ink-2);
  text-align: center;
}

.reg-item {
  display: block;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 22px 24px;
  text-decoration: none;
  color: inherit;
  transition: transform .12s ease, border-color .15s ease, background .15s ease;
}

.reg-item:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--bg-3);
  text-decoration: none;
}

.reg-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  font-weight: 600;
  margin-bottom: 12px;
}

.reg-type-chip {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--rule-strong);
  background: rgba(255,255,255,0.03);
  letter-spacing: 0.10em;
  font-size: 0.68rem;
}

.reg-type-chip.t-Final-Rule    { color: var(--accent-hot); border-color: rgba(109,145,199,0.45); background: rgba(109,145,199,0.1); }
.reg-type-chip.t-Proposed-Rule { color: #f5b958; border-color: rgba(245,185,88,0.4); background: rgba(245,185,88,0.08); }
.reg-type-chip.t-Notice        { color: var(--ink-1); }
.reg-type-chip.t-Presidential-Doc { color: #e63946; border-color: rgba(230,57,70,0.4); background: rgba(230,57,70,0.08); }

.reg-item-title {
  font-family: var(--serif);
  font-weight: 500;
  font-variation-settings: "opsz" 100;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  line-height: 1.3;
  color: var(--ink-0);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.reg-item:hover .reg-item-title { color: var(--accent-hot); }

.reg-item-abstract {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.reg-item-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  font-size: 0.82rem;
  color: var(--ink-3);
}

.reg-comment-tag {
  background: rgba(245, 185, 88, 0.12);
  border: 1px solid rgba(245, 185, 88, 0.4);
  color: #f5b958;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.74rem;
}

.reg-comment-tag.urgent {
  background: rgba(230, 57, 70, 0.12);
  border-color: rgba(230, 57, 70, 0.5);
  color: #e63946;
}

.reg-link-out {
  margin-left: auto;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
}

/* PubMed homepage band */

.pubmed-band {
  padding: 48px 0;
  background: var(--bg-1);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.pubmed-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.pubmed-eyebrow {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin: 0 0 8px;
}

.pubmed-title {
  font-family: var(--serif);
  font-weight: 500;
  font-variation-settings: "opsz" 100;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  margin: 0;
  color: var(--ink-0);
  letter-spacing: -0.01em;
}

.pubmed-source {
  font-size: 0.82rem;
  color: var(--ink-3);
}

.pubmed-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.pubmed-paper {
  display: block;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
  transition: transform .12s ease, border-color .15s ease, background .15s ease;
}

.pubmed-paper:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--bg-3);
  text-decoration: none;
}

.pubmed-paper-meta {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.pubmed-paper-journal { color: var(--accent); }

.pubmed-paper-title {
  font-family: var(--serif);
  font-weight: 500;
  font-variation-settings: "opsz" 100;
  font-size: 1.02rem;
  line-height: 1.35;
  color: var(--ink-0);
  margin: 0 0 8px;
  letter-spacing: -0.005em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pubmed-paper:hover .pubmed-paper-title { color: var(--accent-hot); }

.pubmed-paper-authors {
  font-size: 0.85rem;
  color: var(--ink-2);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pubmed-skeleton {
  background: linear-gradient(110deg, var(--bg-2) 8%, var(--bg-3) 18%, var(--bg-2) 33%);
  background-size: 200% 100%;
  border-radius: 12px;
  height: 110px;
  border: 1px solid var(--rule);
  animation: regskel 1.4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .pubmed-skeleton { animation: none; }
}
