/* ============================================================
   Weight Loss Calorie Calculator — Main Stylesheet
   Mobile-first, wlcc- prefixed semantic classes
   ============================================================ */

/* -------------------------------------------------------
   1. Custom Properties
   ------------------------------------------------------- */
:root {
  --wlcc-bg: #f4f5f7;
  --wlcc-surface: #ffffff;
  --wlcc-text: #111111;
  --wlcc-text-muted: #5c6370;
  --wlcc-border: #e2e5ea;
  --wlcc-accent: #1a73e8;
  --wlcc-accent-hover: #1558b0;
  --wlcc-accent-soft: rgba(26, 115, 232, 0.12);
  --wlcc-hero: #1558b0;
  --wlcc-error: #d93025;
  --wlcc-error-soft: rgba(217, 48, 37, 0.10);
  --wlcc-error-border: rgba(217, 48, 37, 0.30);
  --wlcc-success: #188038;
  --wlcc-success-soft: rgba(24, 128, 56, 0.08);
  --wlcc-success-border: rgba(24, 128, 56, 0.30);
  --wlcc-font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --wlcc-radius: 8px;
  --wlcc-radius-lg: 16px;
  --wlcc-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
}

/* -------------------------------------------------------
   2. Base / Reset
   ------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--wlcc-bg);
  color: var(--wlcc-text);
  font-family: var(--wlcc-font);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  margin: 0;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--wlcc-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--wlcc-accent-hover);
}

img {
  max-width: 100%;
  height: auto;
}

ul, ol {
  margin: 0 0 1rem;
}

/* -------------------------------------------------------
   3. Body Lock (mobile nav open)
   ------------------------------------------------------- */
.wlcc-body--locked {
  overflow: hidden;
}


/* -------------------------------------------------------
   6. Reduced Motion
   ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* -------------------------------------------------------
   7. Header / Navigation
   ------------------------------------------------------- */
.wlcc-header {
  background: var(--wlcc-surface);
  border-bottom: 1px solid var(--wlcc-border);
}

.wlcc-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 16px;
}

.wlcc-nav__brand {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--wlcc-accent);
  text-decoration: none;
}

.wlcc-nav__toggle {
  position: relative;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--wlcc-text-muted);
  cursor: pointer;
  flex-shrink: 0;
}

.wlcc-nav__toggle:hover {
  background: var(--wlcc-accent-soft);
}

.wlcc-nav__toggle:focus {
  outline: 2px solid var(--wlcc-accent);
  outline-offset: 2px;
}

.wlcc-nav__toggle-bar {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s, opacity 0.3s, top 0.3s;
}

.wlcc-nav__toggle-bar:nth-child(1) {
  top: 10px;
}

.wlcc-nav__toggle-bar:nth-child(2) {
  top: 19px;
}

.wlcc-nav__toggle-bar:nth-child(3) {
  top: 28px;
}

.wlcc-nav__toggle--open .wlcc-nav__toggle-bar:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}

.wlcc-nav__toggle--open .wlcc-nav__toggle-bar:nth-child(2) {
  opacity: 0;
}

.wlcc-nav__toggle--open .wlcc-nav__toggle-bar:nth-child(3) {
  top: 19px;
  transform: rotate(-45deg);
}

.wlcc-nav__overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.wlcc-nav__overlay--visible {
  opacity: 1;
  pointer-events: auto;
}

.wlcc-nav__menu {
  position: fixed;
  left: 0;
  top: 57px;
  z-index: 50;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  border-bottom: 1px solid var(--wlcc-border);
  background: var(--wlcc-surface);
  padding: 16px 16px 32px;
  list-style: none;
  margin: 0;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease-out, opacity 0.3s;
}

.wlcc-nav__menu--open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.wlcc-nav__link {
  display: block;
  padding: 10px 8px;
  border-radius: 6px;
  color: var(--wlcc-text-muted);
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.wlcc-nav__link:hover,
.wlcc-nav__link:focus {
  background: var(--wlcc-accent-soft);
  color: var(--wlcc-accent);
}

/* -------------------------------------------------------
   8. Footer
   ------------------------------------------------------- */
.wlcc-footer {
  background: var(--wlcc-surface);
  border-top: 1px solid var(--wlcc-border);
  padding: 32px 16px;
}

.wlcc-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-bottom: 16px;
}

.wlcc-footer__links a {
  font-size: 0.875rem;
  color: var(--wlcc-text-muted);
  text-decoration: none;
}

.wlcc-footer__links a:hover {
  color: var(--wlcc-accent);
  text-decoration: underline;
}

.wlcc-footer__copy {
  text-align: center;
  font-size: 0.875rem;
  color: var(--wlcc-text-muted);
  margin: 0;
}

/* -------------------------------------------------------
   9. Container & Layout
   ------------------------------------------------------- */
.wlcc-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}

.wlcc-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}

/* -------------------------------------------------------
   10. Page Title & Tagline
   ------------------------------------------------------- */
.wlcc-page-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--wlcc-text);
  text-align: center;
  margin-bottom: 8px;
}

.wlcc-tagline {
  text-align: center;
  color: var(--wlcc-text-muted);
  font-size: 1rem;
  margin-bottom: 32px;
}

/* -------------------------------------------------------
   11. Calculator Form
   ------------------------------------------------------- */
.wlcc-form {
  background: var(--wlcc-surface);
  border: 1px solid var(--wlcc-border);
  border-radius: var(--wlcc-radius-lg);
  padding: 24px 16px;
  box-shadow: var(--wlcc-shadow);
}

.wlcc-form__group {
  margin-bottom: 24px;
}

.wlcc-form__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--wlcc-text);
  margin-bottom: 6px;
}

.wlcc-form__input {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.875rem;
  font-family: var(--wlcc-font);
  border: 1px solid var(--wlcc-border);
  border-radius: var(--wlcc-radius);
  background: var(--wlcc-bg);
  color: var(--wlcc-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.wlcc-form__input:focus {
  border-color: var(--wlcc-accent);
  box-shadow: 0 0 0 3px var(--wlcc-accent-soft);
  outline: none;
}

.wlcc-form__input::placeholder {
  color: var(--wlcc-text-muted);
  opacity: 0.5;
  font-size: 0.8rem;
}

.wlcc-form__input--error {
  border-color: var(--wlcc-error);
}

.wlcc-form__input--error:focus {
  box-shadow: 0 0 0 3px var(--wlcc-error-soft);
}

.wlcc-form__select {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.875rem;
  font-family: var(--wlcc-font);
  border: 1px solid var(--wlcc-border);
  border-radius: var(--wlcc-radius);
  background: var(--wlcc-bg);
  color: var(--wlcc-text);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235c6370' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.wlcc-form__select:focus {
  border-color: var(--wlcc-accent);
  box-shadow: 0 0 0 3px var(--wlcc-accent-soft);
  outline: none;
}

.wlcc-form__hint {
  display: block;
  font-size: 0.75rem;
  color: var(--wlcc-text-muted);
  margin-top: 4px;
}

.wlcc-form__hint--warning {
  color: var(--wlcc-error);
}

.wlcc-form__error {
  display: none;
  font-size: 0.75rem;
  color: var(--wlcc-error);
  margin-top: 4px;
}

.wlcc-form__error--visible {
  display: block;
}

/* ---- Pill Toggle Groups ---- */
.wlcc-pill-group {
  display: flex;
  gap: 0;
  border-radius: var(--wlcc-radius);
  border: 1px solid var(--wlcc-border);
  background: var(--wlcc-bg);
  padding: 3px;
  margin-bottom: 8px;
}

.wlcc-pill {
  flex: 1;
  padding: 6px 8px;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: var(--wlcc-font);
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--wlcc-text-muted);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.wlcc-pill--active {
  background: var(--wlcc-accent);
  color: #fff;
}

/* ---- Two Column Grid ---- */
.wlcc-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* ---- Buttons ---- */
.wlcc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--wlcc-font);
  border-radius: var(--wlcc-radius);
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
}

.wlcc-btn:active {
  transform: scale(0.98);
}

.wlcc-btn--primary {
  background: var(--wlcc-accent);
  color: #fff;
  flex: 1;
}

.wlcc-btn--primary:hover {
  background: var(--wlcc-accent-hover);
}

.wlcc-btn--primary:focus {
  outline: 2px solid var(--wlcc-accent);
  outline-offset: 2px;
}

.wlcc-btn--reset {
  background: var(--wlcc-surface);
  color: var(--wlcc-text-muted);
  border: 1px solid var(--wlcc-border);
}

.wlcc-btn--reset:hover {
  border-color: var(--wlcc-error-border);
  color: var(--wlcc-error);
}

.wlcc-btn--reset:focus {
  outline: 2px solid var(--wlcc-border);
  outline-offset: 2px;
}

.wlcc-form__actions {
  display: flex;
  gap: 12px;
}

/* -------------------------------------------------------
   12. Results Display
   ------------------------------------------------------- */
.wlcc-results {
  margin-top: 32px;
  display: none;
}

.wlcc-results--visible {
  display: block;
}

.wlcc-results__card {
  background: var(--wlcc-surface);
  border: 1px solid var(--wlcc-border);
  border-radius: var(--wlcc-radius-lg);
  padding: 24px 16px;
  box-shadow: var(--wlcc-shadow);
}

.wlcc-results__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.wlcc-results__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--wlcc-text);
}

.wlcc-results__badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 999px;
  background: var(--wlcc-accent-soft);
  color: var(--wlcc-accent);
}

/* ---- Hero Calorie Target ---- */
.wlcc-results__hero {
  background: var(--wlcc-accent-soft);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin-bottom: 24px;
}

.wlcc-results__hero-label {
  margin: 0 0 2px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--wlcc-text-muted);
}

.wlcc-results__hero-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--wlcc-accent);
  margin: 0;
}

.wlcc-results__hero-desc {
  margin: 6px 0 0;
  font-size: 0.875rem;
  color: var(--wlcc-text-muted);
}

/* ---- Macro Bars ---- */
.wlcc-macro-section {
  margin-bottom: 24px;
}

.wlcc-macro-section__label {
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--wlcc-text-muted);
}

.wlcc-macro {
  margin-bottom: 12px;
}

.wlcc-macro:last-child {
  margin-bottom: 4px;
}

.wlcc-macro__header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 0.875rem;
}

.wlcc-macro__name {
  font-weight: 500;
  color: var(--wlcc-text);
}

.wlcc-macro__value {
  color: var(--wlcc-text-muted);
}

.wlcc-macro__bar {
  height: 8px;
  background: var(--wlcc-border);
  border-radius: 999px;
  overflow: hidden;
}

.wlcc-macro__fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.5s;
  width: 0;
}

.wlcc-macro__fill--protein {
  background: var(--wlcc-accent);
}

.wlcc-macro__fill--carbs {
  background: rgba(26, 115, 232, 0.6);
}

.wlcc-macro__fill--fat {
  background: rgba(26, 115, 232, 0.3);
}

.wlcc-macro-section__note {
  margin: 8px 0 0;
  font-size: 0.75rem;
  color: var(--wlcc-text-muted);
}

/* ---- BMR / TDEE Stat Cards ---- */
.wlcc-stat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.wlcc-stat-card {
  background: var(--wlcc-bg);
  border: 1px solid var(--wlcc-border);
  border-radius: var(--wlcc-radius);
  padding: 16px;
}

.wlcc-stat-card__label {
  margin: 0 0 2px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--wlcc-text-muted);
}

.wlcc-stat-card__value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--wlcc-text);
  margin: 0;
}

.wlcc-stat-card__desc {
  margin: 0;
  font-size: 0.75rem;
  color: var(--wlcc-text-muted);
}

/* ---- Projection ---- */
.wlcc-results__projection {
  display: none;
  background: var(--wlcc-success-soft);
  border: 1px solid var(--wlcc-success-border);
  border-radius: var(--wlcc-radius);
  padding: 16px;
  text-align: center;
}

.wlcc-results__projection--visible {
  display: block;
}

.wlcc-results__projection-label {
  margin: 0 0 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--wlcc-success);
}

.wlcc-results__projection-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--wlcc-success);
  margin: 0;
}

.wlcc-results__projection-desc {
  margin: 4px 0 0;
  font-size: 0.75rem;
  color: rgba(24, 128, 56, 0.7);
}

/* -------------------------------------------------------
   13. Global Error Message
   ------------------------------------------------------- */
.wlcc-error-msg {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  font-size: 0.875rem;
  color: var(--wlcc-error);
  background: var(--wlcc-error-soft);
  border: 1px solid var(--wlcc-error-border);
  border-radius: var(--wlcc-radius);
}

.wlcc-error-msg--visible {
  display: block;
}

/* -------------------------------------------------------
   14. Legal / Content Pages
   ------------------------------------------------------- */
.wlcc-legal {
  padding: 0 0 48px;
}

.wlcc-legal__meta {
  font-size: 0.875rem;
  color: var(--wlcc-text-muted);
  margin-bottom: 32px;
}

.wlcc-legal h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--wlcc-hero);
  margin-top: 32px;
  margin-bottom: 16px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--wlcc-accent-soft);
}

.wlcc-legal h2:first-of-type {
  margin-top: 0;
}

.wlcc-legal h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--wlcc-text);
  margin-top: 24px;
  margin-bottom: 10px;
}

.wlcc-legal p {
  line-height: 1.75;
  color: var(--wlcc-text);
}

.wlcc-legal ul,
.wlcc-legal ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.wlcc-legal ul {
  list-style-type: disc;
}

.wlcc-legal ol {
  list-style-type: decimal;
}

.wlcc-legal li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.wlcc-legal a {
  color: var(--wlcc-accent);
  text-decoration: underline;
}

/* -------------------------------------------------------
   15. 404 Page
   ------------------------------------------------------- */
.wlcc-notfound {
  text-align: center;
  padding: 64px 16px;
}

.wlcc-notfound__code {
  font-size: 4rem;
  font-weight: 800;
  color: var(--wlcc-accent);
  margin: 0 0 8px;
  line-height: 1;
}

.wlcc-notfound__text {
  font-size: 1.125rem;
  color: var(--wlcc-text-muted);
  margin-bottom: 24px;
}

.wlcc-notfound__action {
  margin-top: 8px;
}

/* -------------------------------------------------------
   16. Responsive — Tablet (≥640px)
   ------------------------------------------------------- */
@media (min-width: 640px) {
  .wlcc-nav {
    padding: 12px 16px;
  }

  .wlcc-form {
    padding: 32px;
  }

  .wlcc-results__card {
    padding: 32px;
  }

  .wlcc-results__hero-value {
    font-size: 2.75rem;
  }

  .wlcc-stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .wlcc-page-title {
    font-size: 2.25rem;
  }

  .wlcc-container {
    padding-top: 48px;
  }
}

/* -------------------------------------------------------
   17. Responsive — Desktop (≥1024px)
   ------------------------------------------------------- */
@media (min-width: 1024px) {
  .wlcc-nav__toggle {
    display: none;
  }

  .wlcc-nav__overlay {
    display: none;
  }

  .wlcc-nav__menu {
    position: static;
    flex-direction: row;
    gap: 24px;
    width: auto;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    padding: 0;
    border: none;
    background: transparent;
    overflow: visible;
  }

  .wlcc-nav__link {
    padding: 8px 0;
    color: var(--wlcc-text-muted);
  }

  .wlcc-nav__link:hover,
  .wlcc-nav__link:focus {
    background: transparent;
    color: var(--wlcc-accent);
  }

  .wlcc-page-title {
    font-size: 2.5rem;
  }
}

/* -------------------------------------------------------
   SEO Content
   ------------------------------------------------------- */
.wlcc-seo-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 16px 64px;
}

.wlcc-seo-content section {
  margin-bottom: 48px;
}

.wlcc-seo-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--wlcc-hero);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--wlcc-accent-soft);
}

.wlcc-seo-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--wlcc-text);
  margin-top: 28px;
  margin-bottom: 10px;
}

.wlcc-seo-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--wlcc-text);
  margin-top: 20px;
  margin-bottom: 8px;
}

.wlcc-seo-content p {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--wlcc-text);
  margin-bottom: 14px;
}

.wlcc-seo-content ul,
.wlcc-seo-content ol {
  margin: 0 0 16px 0;
  padding-left: 24px;
}

.wlcc-seo-content li {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--wlcc-text);
  margin-bottom: 8px;
}

/* Tables */
.wlcc-seo-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 24px;
  font-size: 0.875rem;
  background: var(--wlcc-surface);
  border: 1px solid var(--wlcc-border);
  border-radius: var(--wlcc-radius);
  overflow: hidden;
}

.wlcc-seo-content caption {
  font-size: 0.8rem;
  color: var(--wlcc-text-muted);
  font-style: italic;
  margin-bottom: 8px;
  text-align: left;
  caption-side: top;
  padding: 0 0 6px 0;
}

.wlcc-seo-content th {
  background: var(--wlcc-accent-soft);
  color: var(--wlcc-accent);
  font-weight: 600;
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--wlcc-border);
}

.wlcc-seo-content td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--wlcc-border);
  color: var(--wlcc-text);
  vertical-align: top;
}

.wlcc-seo-content tbody tr:last-child td {
  border-bottom: none;
}

.wlcc-seo-content tbody tr:hover {
  background: var(--wlcc-bg);
}

/* FAQ section */
#faq {
  margin-bottom: 48px;
}

#faq article {
  border: 1px solid var(--wlcc-border);
  border-radius: var(--wlcc-radius);
  margin-bottom: 10px;
  background: var(--wlcc-surface);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

#faq article:hover {
  box-shadow: var(--wlcc-shadow);
}

#faq details summary {
  list-style: none;
  padding: 14px 18px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--wlcc-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  user-select: none;
}

#faq details summary::-webkit-details-marker {
  display: none;
}

#faq details summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--wlcc-accent);
  flex-shrink: 0;
  transition: transform 0.25s;
  line-height: 1;
}

#faq details[open] summary::after {
  content: '−';
}

#faq details summary:hover {
  background: var(--wlcc-bg);
  color: var(--wlcc-accent);
}

#faq details > div {
  padding: 4px 18px 16px;
  border-top: 1px solid var(--wlcc-border);
}

#faq details > div p {
  margin: 12px 0 0;
  font-size: 0.9rem;
  color: var(--wlcc-text-muted);
  line-height: 1.75;
}

/* References */
#references ol {
  padding-left: 20px;
}

#references li {
  margin-bottom: 12px;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--wlcc-text-muted);
}

#references cite {
  font-style: italic;
}

#references a {
  font-size: 0.875rem;
  color: var(--wlcc-accent);
  word-break: break-all;
}

/* Medical Disclaimer */
.wlcc-seo-content aside[role="note"] {
  background: var(--wlcc-error-soft);
  border: 1px solid var(--wlcc-error-border);
  border-radius: var(--wlcc-radius-lg);
  padding: 24px 20px;
  margin-top: 8px;
}

.wlcc-seo-content aside[role="note"] h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--wlcc-error);
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 12px;
}

.wlcc-seo-content aside[role="note"] p {
  font-size: 0.875rem;
  color: var(--wlcc-text-muted);
  line-height: 1.75;
  margin-bottom: 10px;
}

.wlcc-seo-content aside[role="note"] p:last-child {
  margin-bottom: 0;
}

@media (min-width: 640px) {
  .wlcc-seo-content h2 {
    font-size: 1.75rem;
  }

  .wlcc-seo-content h3 {
    font-size: 1.2rem;
  }
}
