/* Shared styles for raids.html + quests.html */

.rq-intro {
  color: var(--text-dim);
  font-size: 0.92rem;
  max-width: 42em;
  margin-bottom: 1.75rem;
}

.raid-grid {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
}
@media (min-width: 800px) {
  .raid-grid { grid-template-columns: 1fr 1fr; }
}

.raid-card {
  padding: 1.4rem 1.35rem;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 5rem;
}
@media (min-width: 800px) {
  .raid-card:nth-child(odd) { border-right: 1px solid var(--line); }
  .raid-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

.raid-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  margin-bottom: 0.65rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fog);
}
.raid-meta .tag { color: var(--signal); }
.raid-card h2 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}
.raid-card .lead {
  font-size: 0.85rem;
  color: var(--sand);
  margin-bottom: 1rem;
}

.raid-block {
  margin-bottom: 0.9rem;
}
.raid-block:last-child { margin-bottom: 0; }
.raid-block h3 {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 0.4rem;
}
.raid-block ol,
.raid-block ul {
  list-style: none;
  font-size: 0.84rem;
  color: var(--text-dim);
}
.raid-block li {
  position: relative;
  padding: 0.35rem 0 0.35rem 0.9rem;
  border-bottom: 1px solid var(--line);
}
.raid-block li:last-child { border-bottom: none; }
.raid-block ol li::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  left: 0;
  color: var(--signal);
  font-family: var(--font-display);
  font-size: 0.75rem;
}
.raid-block ol { counter-reset: step; }
.raid-block ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--olive);
}

/* Quests */
.quest-tabs {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  margin-bottom: 0;
}
.quest-tab {
  flex: 1;
  min-width: 5.5rem;
  padding: 0.75rem 0.65rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fog);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.quest-tab:last-child { border-right: none; }
.quest-tab.active {
  background: rgba(107, 124, 58, 0.15);
  color: var(--signal-bright);
}

.quest-panel {
  border: 1px solid var(--line);
  border-top: none;
  padding: 1.35rem 1.4rem;
  background: var(--bg-elev);
}
.quest-panel[hidden] { display: none; }
.quest-panel h2 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}
.quest-panel .lead {
  color: var(--sand);
  font-size: 0.88rem;
  margin-bottom: 1.1rem;
}
.quest-cols {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 700px) {
  .quest-cols { grid-template-columns: 1.4fr 1fr; }
}
.quest-cols h3 {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 0.5rem;
}
.quest-cols ol,
.quest-cols ul {
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.quest-cols li {
  position: relative;
  padding: 0.4rem 0 0.4rem 0.95rem;
  border-bottom: 1px solid var(--line);
}
.quest-cols li:last-child { border-bottom: none; }
.quest-cols ol { counter-reset: q; }
.quest-cols ol li::before {
  content: counter(q);
  counter-increment: q;
  position: absolute;
  left: 0;
  color: var(--signal);
  font-family: var(--font-display);
  font-size: 0.75rem;
}
.quest-cols ul li::before {
  content: "!";
  position: absolute;
  left: 0;
  color: var(--danger);
  font-family: var(--font-display);
  font-weight: 700;
}

.route-cards {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  margin-top: 2rem;
}
@media (min-width: 800px) {
  .route-cards { grid-template-columns: repeat(3, 1fr); }
}
.route-card {
  padding: 1.25rem 1.2rem;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 800px) {
  .route-card {
    border-bottom: none;
    border-right: 1px solid var(--line);
  }
  .route-card:last-child { border-right: none; }
}
.route-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}
.route-card > p {
  font-size: 0.84rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}
.route-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}
.route-picks span {
  font-size: 0.7rem;
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--line);
  color: var(--sand);
}
.route-card ul {
  list-style: none;
  font-size: 0.82rem;
  color: var(--text-dim);
}
.route-card li {
  position: relative;
  padding: 0.3rem 0 0.3rem 0.85rem;
}
.route-card li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--olive);
}

.quest-check {
  margin-top: 2rem;
  border: 1px solid var(--line);
  background: var(--bg-elev);
}
.quest-check h2 {
  font-size: 1.05rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.quest-check table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.quest-check th,
.quest-check td {
  text-align: left;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.quest-check th {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fog);
  font-weight: 600;
}
.quest-check td:first-child { color: var(--text); font-weight: 500; }
.quest-check td:last-child { color: var(--text-dim); }
.quest-check tr:last-child td { border-bottom: none; }

.rq-note {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--fog);
}
