:root {
  --accent: 99 102 241;       /* Indigo 500 (YM default) */
  --accent-600: 79 70 229;    /* Indigo 600 */
  --accent-400: 129 140 248;  /* Indigo 400 */
}

body.mode-yw {
  --accent: 244 114 182;      /* Pink (YW) */
  --accent-600: 219 39 119;   /* Pink 600 */
  --accent-400: 249 168 212;  /* Pink 300 */
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
}

.check-item input:checked + label {
  text-decoration: line-through;
  opacity: .75;
}

.btn-accent {
  background-color: rgb(var(--accent-600));
}

.btn-accent:hover {
  background-color: rgb(var(--accent));
}

.link-accent {
  color: rgb(var(--accent-400));
  text-decoration: underline;
}

.link-accent:hover {
  color: rgb(var(--accent));
}

.accent-grad {
  background: linear-gradient(180deg, rgba(var(--accent),.18), rgba(var(--accent),.08) 40%, transparent);
}

.only-yw {
  display: none !important;
}

.mode-yw .only-yw {
  display: list-item !important;
}

.mode-yw .only-yw.block,
.mode-yw .only-yw[class*="block"] {
  display: block !important;
}

.mode-yw .only-yw.flex,
.mode-yw .only-yw[class*="flex"] {
  display: flex !important;
}

.only-ym {
  display: list-item;
}

.only-ym.flex,
.only-ym[class*="flex"] {
  display: flex;
}

.mode-yw .only-ym {
  display: none !important;
}

/* Button active states for gender toggle */
#btnYM[aria-pressed="true"],
#btnYW[aria-pressed="true"] {
  background-color: rgb(var(--accent-600)) !important;
  color: white !important;
}

#btnYM[aria-pressed="false"],
#btnYW[aria-pressed="false"] {
  background-color: rgba(255, 255, 255, .1) !important;
  color: rgba(255, 255, 255, .9) !important;
}

/* Card hover effects (for missionprep and other pages) */
.card {
  transition: transform .12s ease, box-shadow .12s ease;
}

.card:hover {
  transform: translateY(-2px);
}

/* Details/Summary styling (for collapsible sections) */
details > summary {
  list-style: none;
}

details > summary::-webkit-details-marker {
  display: none;
}

.chev::before {
  content: "▸";
  display: inline-block;
  margin-right: .5rem;
  transition: transform .12s ease;
}

details[open] .chev::before {
  transform: rotate(90deg);
}

/* Resources page specific styles */
.pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .25rem .6rem;
  border-radius: 9999px;
  font-size: .75rem;
  line-height: 1;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
  color: #cbd5e1;
}

.res-check {
  accent-color: rgb(var(--accent));
}

.toolbar-btn {
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .06);
}

.toolbar-btn:hover {
  background: rgba(255, 255, 255, .10);
}

.section-anchor a {
  opacity: .9;
}

.section-anchor a:hover {
  opacity: 1;
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: .75rem;
}

.tight li {
  margin: .25rem 0;
}

.muted {
  color: #94a3b8;
}

/* Resources page gradient variant */
.resources-grad {
  background: radial-gradient(1000px 400px at 10% -10%, rgba(var(--accent), .16), transparent 60%),
              radial-gradient(800px 300px at 110% -20%, rgba(var(--accent), .10), transparent 60%);
}

/* Print tweaks */
@media print {
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 10px;
    color: #64748b;
  }

  .no-print {
    display: none !important;
  }

  body {
    background: white;
    color: #0f172a;
  }

  .check-item input {
    accent-color: #4f46e5;
  }

  .accent-grad {
    background: none;
  }
}
