/* End HIV Online — page layouts (article / FAQ / about / contact / cards) */

:root {
  --header-h: 72px;
  --accent-soft: #fff0f2;
  --border: #e8ecf1;
  --paper: #fff;
  --font-display: "Prompt", sans-serif;
}

/* ---------- Skip already in main.css ---------- */

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.3rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-signal { background: #fbbf24; color: #111; border-color: #fbbf24; }
.btn-signal:hover { background: #f59e0b; color: #111; }
.btn-ghost {
  background: transparent;
  color: var(--black);
  border-color: #ddd;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e0e0e0;
  color: var(--black);
  text-decoration: none;
  font-weight: 600;
}
.btn-secondary:hover { border-color: var(--red); color: var(--red); }
.text-link {
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Articles listing ---------- */
.articles-header {
  padding: 60px 0 40px;
  background: linear-gradient(135deg, var(--red) 0%, var(--purple) 100%);
  color: #fff;
}
.articles-header .page-title {
  font-family: "Prompt", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
}
.articles-header .page-subtitle {
  font-size: 18px;
  text-align: center;
  opacity: 0.92;
  margin-bottom: 40px;
}
.articles-filter { max-width: 1200px; margin: 0 auto; }
.search-form { display: flex; gap: 12px; margin-bottom: 24px; }
.search-input {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 30px;
  font-size: 16px;
}
.search-btn {
  padding: 12px 32px;
  background: var(--black);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-family: "Prompt", sans-serif;
  font-weight: 600;
  cursor: pointer;
}
.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.category-tag {
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
}
.category-tag:hover,
.category-tag.active {
  background: #fff;
  color: var(--red);
}
.articles-listing { padding: 60px 0; }
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}
.articles-listing .article-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.articles-listing .article-card:hover { transform: translateY(-6px); }
.article-image {
  display: block;
  height: 220px;
  background: var(--gray-light) center / cover no-repeat;
  overflow: hidden;
}
.article-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.articles-listing .article-content { padding: 24px; }
.articles-listing .article-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--gray-medium);
  margin-bottom: 12px;
}
.articles-listing .meta-category { color: var(--red); font-weight: 600; }
.articles-listing .article-title {
  font-family: "Prompt", sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.4;
}
.articles-listing .article-title a {
  color: var(--black);
  text-decoration: none;
}
.articles-listing .article-title a:hover { color: var(--red); }
.articles-listing .article-excerpt {
  font-size: 14px;
  color: var(--gray-dark);
  line-height: 1.6;
  margin-bottom: 16px;
}
.articles-listing .article-link {
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}
.articles-listing .pagination,
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.no-results { text-align: center; padding: 80px 20px; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  padding: 1rem 0 0.25rem;
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  color: var(--gray-dark);
}
.breadcrumbs li {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.breadcrumbs li:not(:last-child)::after {
  content: "/";
  color: #bbb;
}
.breadcrumbs a {
  color: var(--gray-dark);
  text-decoration: none;
}
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs [aria-current="page"] {
  color: var(--black);
  font-weight: 600;
}

/* ---------- Byline / author ---------- */
.byline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
}
.byline-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #eee;
  flex-shrink: 0;
}
.byline-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  font-weight: 700;
}
.byline-text { min-width: 0; }
.byline-line {
  margin: 0;
  font-size: 0.95rem;
  color: var(--gray-dark);
}
.byline-name,
.byline-cat {
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
}
a.byline-name:hover,
a.byline-cat:hover { text-decoration: underline; }
.byline-in { color: var(--gray-medium); margin: 0 0.25rem; }
.byline-date {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.85rem;
  color: var(--gray-medium);
}

/* ---------- Article detail ---------- */
.article-detail { padding: 0.5rem 0 3rem; }
.breadcrumbs + .article-detail { padding-top: 0.25rem; }
.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2rem;
  align-items: start;
}
.article-main { min-width: 0; }
.article-header { margin-bottom: 1.25rem; }
.article-header h1 {
  font-family: "Prompt", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.3;
  margin: 0.35rem 0 0.75rem;
  color: var(--black);
}
.article-header .meta,
.article-meta {
  margin: 0;
  color: var(--gray-dark);
  font-size: 0.92rem;
}
.eeat-byline {
  margin: 0.85rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  color: var(--gray-dark);
  font-size: 0.9rem;
}
.eeat-byline p { margin: 0 0 0.35rem; }
.eeat-cred { color: var(--gray-medium); }
.eeat-trust-notice {
  margin: 0.85rem 0 0;
  padding: 0.7rem 0.9rem;
  background: #faf5f5;
  border-left: 3px solid var(--red);
  border-radius: 0 10px 10px 0;
  font-size: 0.88rem;
  color: var(--gray-dark);
}
.eeat-trust-notice a {
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
}

.article-body.prose,
.prose {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--black);
}
.article-body.prose h2,
.article-body.prose h3,
.prose h2,
.prose h3 {
  font-family: "Prompt", sans-serif;
  margin: 1.75rem 0 0.75rem;
  line-height: 1.35;
}
.article-body.prose p,
.article-body.prose ul,
.article-body.prose ol,
.prose p,
.prose ul,
.prose ol { margin: 0 0 1rem; }
.article-body.prose ul,
.prose ul { padding-left: 1.25rem; }
.article-body.prose ol,
.prose ol { padding-left: 1.35rem; }
.article-body.prose a:not(.btn),
.prose a:not(.btn) {
  color: var(--red);
  text-decoration: underline;
}
.article-body.prose img,
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}
.article-body.prose figure,
.prose figure { margin: 1.25rem 0; }
.article-body.prose table,
.prose table {
  width: 100%;
  border-collapse: collapse;
}
.article-body.prose th,
.article-body.prose td,
.prose th,
.prose td {
  border: 1px solid #e5e5e5;
  padding: 0.65rem 0.75rem;
  vertical-align: top;
}
.article-body.prose th,
.prose th { background: #faf5f5; }
.article-body.prose blockquote,
.prose blockquote {
  margin: 1.25rem 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--red);
  background: #faf5f5;
  color: var(--gray-dark);
}
.table-scroll {
  overflow-x: auto;
  margin: 1.25rem 0;
  -webkit-overflow-scrolling: touch;
}
.table-scroll table { min-width: 520px; }

/* TOC */
.article-toc,
#ez-toc-container.article-toc,
#ez-toc-container {
  margin: 1.5rem 0 2rem;
  padding: 1.1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.article-toc .toc-title,
#ez-toc-container .toc-title {
  font-family: "Prompt", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}
.article-toc nav ul,
#ez-toc-container nav ul {
  margin: 0;
  padding-left: 1.1rem;
}
.article-toc a,
#ez-toc-container a {
  color: var(--gray-dark);
  text-decoration: none;
}
.article-toc a:hover,
#ez-toc-container a:hover { color: var(--red); }

/* Ads */
.article-ad {
  margin: 1.75rem auto;
  text-align: center;
  max-width: 720px;
}
.article-ad a { display: block; line-height: 0; }
.article-ad img {
  width: 100%;
  max-width: 100%;
  height: auto !important;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  object-fit: contain;
}

.eeat-box {
  margin-top: 2rem;
  padding: 1.25rem 1.35rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
}
.eeat-box-title {
  margin: 0 0 0.65rem;
  font-family: "Prompt", sans-serif;
  font-size: 1.1rem;
}
.eeat-box-sub {
  margin: 1rem 0 0.45rem;
  font-size: 0.98rem;
}
.eeat-box p { margin: 0 0 0.65rem; color: var(--gray-dark); }
.eeat-sources {
  margin: 0;
  padding-left: 1.1rem;
}
.eeat-sources a {
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
}
.eeat-sources a:hover { text-decoration: underline; }

.article-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.article-share {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  font-size: 0.92rem;
}
.article-share span { color: var(--gray-dark); font-weight: 600; }
.article-share a {
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
}

/* ---------- Sidebar ---------- */
.article-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.sidebar-search {
  display: flex;
  border: 1px solid #ecd6d6;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 14px rgba(229, 57, 53, 0.06);
}
.sidebar-search input {
  flex: 1;
  border: 0;
  padding: 0.7rem 0.85rem;
  font: inherit;
  min-width: 0;
}
.sidebar-search input:focus { outline: none; }
.sidebar-search button {
  width: 44px;
  border: 0;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sidebar-search button:hover { background: var(--red-dark); }
.sidebar-ad {
  display: block;
  line-height: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(33, 33, 33, 0.06);
}
.sidebar-ad img {
  width: 100%;
  height: auto !important;
  display: block;
  object-fit: contain;
}
.sidebar-widget {
  background: #fff;
  border: 1px solid #f0e0e0;
  border-radius: 14px;
  padding: 1.05rem 1.1rem 1.15rem;
  box-shadow: 0 8px 22px rgba(33, 33, 33, 0.05);
}
.sidebar-widget h2 {
  margin: 0 0 0.85rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid #fdecea;
  font-family: "Prompt", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
}
.sidebar-list,
.sidebar-chips,
.sidebar-widget ul {
  list-style: none !important;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.sidebar-list li,
.sidebar-chips li {
  list-style: none !important;
  margin: 0;
  padding: 0;
}
.sidebar-list a {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  color: var(--gray-dark) !important;
  text-decoration: none !important;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.45;
}
.sidebar-list a:hover {
  background: #fdecea;
  color: var(--red) !important;
}
.sidebar-chips {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.sidebar-chips a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: #faf5f5;
  border: 1px solid #f0dede;
  color: var(--black) !important;
  text-decoration: none !important;
  font-size: 0.84rem;
  font-weight: 500;
}
.sidebar-chips a:hover {
  background: #fdecea;
  border-color: #f5b7b5;
  color: var(--red) !important;
}
.sidebar-chips .chip-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 11rem;
}
.sidebar-chips .chip-count {
  flex-shrink: 0;
  min-width: 1.35rem;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #efd0d0;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

/* ---------- Static pages ---------- */
.page-hero {
  padding: 2.5rem 0 1.25rem;
}
.page-hero h1 {
  font-family: "Prompt", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 0.75rem;
}
.lead {
  font-size: 1.1rem;
  color: var(--gray-dark);
  line-height: 1.7;
  margin: 0;
}
.lead-sm {
  font-size: 1rem;
  color: var(--gray-dark);
  line-height: 1.65;
}
.section { padding: 1.5rem 0 2.5rem; }
.section-muted { background: #faf7f7; }
.section-header { margin-bottom: 1.25rem; }
.section-header h2 {
  font-family: "Prompt", sans-serif;
  margin: 0 0 0.4rem;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
}
.value-list {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
}
.value-list li { margin-bottom: 0.45rem; }
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.pillar-link,
.eeat-pillar {
  display: block;
  padding: 1.1rem 1.15rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}
.eeat-pillar:hover { border-color: #f5b7b5; }
.eeat-editorial {
  margin-top: 1rem;
  color: var(--gray-dark);
  line-height: 1.65;
}
.privacy-updated {
  color: var(--gray-dark);
  font-size: 0.9rem;
  margin-top: 0.75rem;
}
.privacy-body h2 {
  font-size: 1.15rem;
  margin-top: 1.75em;
}

/* FAQ sheet */
.sheet-hero {
  padding: 2.5rem 0 1.25rem;
  background: linear-gradient(180deg, #fff 0%, #faf5f5 100%);
}
.sheet-eyebrow {
  margin: 0 0 0.5rem;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.sheet-hero h1 {
  font-family: "Prompt", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 0.75rem;
}
.sheet-lead {
  margin: 0;
  max-width: 42rem;
  color: var(--gray-dark);
  font-size: 1.05rem;
  line-height: 1.7;
}
.sheet-body { padding: 1.5rem 0 3rem; }
.sheet-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}
.sheet-index {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
}
.sheet-index-title {
  margin: 0 0 0.75rem;
  font-weight: 700;
  font-family: "Prompt", sans-serif;
}
.sheet-index ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.sheet-index a {
  display: flex;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--gray-dark);
  font-size: 0.92rem;
  line-height: 1.4;
}
.sheet-index a:hover { color: var(--red); }
.sheet-num {
  color: var(--red);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.sheet-answers {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.sheet-qa {
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
}
.sheet-qa:first-child { border-top: 0; padding-top: 0; }
.sheet-qa-head {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.75rem;
  align-items: start;
  margin-bottom: 0.65rem;
}
.sheet-qa-head h2 {
  margin: 0;
  font-family: "Prompt", sans-serif;
  font-size: 1.15rem;
  line-height: 1.35;
}
.sheet-qa > p {
  margin: 0 0 0 2.5rem;
  color: var(--gray-dark);
  line-height: 1.7;
}

/* Contact hotline */
.hotline {
  position: relative;
  overflow: hidden;
  padding: 3rem 0 3.5rem;
  background: linear-gradient(135deg, #1a0505 0%, #4a0d0d 45%, #8e24aa 100%);
  color: #fff;
}
.hotline-wash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.12), transparent 45%);
  pointer-events: none;
}
.hotline-stage { position: relative; z-index: 1; max-width: 720px; }
.hotline-mark {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  font-size: 0.82rem;
  font-weight: 700;
}
.hotline-brand {
  font-family: "Prompt", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 0.75rem;
}
.hotline-line {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: 0.92;
}
.hotline-mail {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  text-decoration: none;
}
.hotline-mail:hover { background: rgba(255,255,255,0.16); }
.hotline-mail-label {
  display: block;
  font-size: 0.8rem;
  opacity: 0.8;
  margin-bottom: 0.2rem;
}
.hotline-mail-addr {
  font-size: 1.1rem;
  font-weight: 700;
}
.hotline-note {
  margin: 0 0 1.25rem;
  opacity: 0.85;
  font-size: 0.92rem;
}
.hotline-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hotline-quiet {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
}
.hotline-quiet:hover { color: #fff; }

.empty-state {
  padding: 2rem;
  text-align: center;
  color: var(--gray-dark);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .article-shell { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .sheet-layout { grid-template-columns: 1fr; }
  .sheet-index { position: static; }
  .about-grid { grid-template-columns: 1fr; }
  .pillar-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .articles-grid { grid-template-columns: 1fr; }
  .search-form { flex-direction: column; }
  .search-btn { width: 100%; }
  .sheet-qa > p { margin-left: 0; }
  .sheet-qa-head { grid-template-columns: 2rem 1fr; }
}
