/* ===================================================
   SOTAI — banff.css
   Banff Classification page. Uses vars from main.css.
   =================================================== */

:root {
  --banff-accent-l: #eef4ff;
  --banff-accent-b: #c8ddf7;
}

[data-theme="dark"] {
  --banff-accent-l: #1c2e58;
  --banff-accent-b: #2a4478;
}

/* ===== PAGE ===== */
.banff-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 20px 56px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ===== EYEBROW ===== */
.banff-eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  transition: color .3s;
}

.banff-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  transition: background .3s;
}

/* ===== HERO ===== */
.banff-hero {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 36px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: background .3s, border-color .3s;
}

.banff-hero::before {
  content: '';
  position: absolute;
  right: -50px;
  top: -50px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--banff-accent-l);
  opacity: 0.6;
  pointer-events: none;
  transition: background .3s;
}

@media (max-width: 600px) {
  .banff-hero { padding: 22px 18px; }
}

.banff-hero__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.banff-badge {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-secondary);
  transition: all .3s;
}

.banff-badge--blue {
  background: var(--banff-accent-l);
  border-color: var(--banff-accent-b);
  color: var(--accent);
}

.banff-h1 {
  font-size: 22px;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  margin: 0 0 12px;
  line-height: 1.3;
  position: relative;
  z-index: 1;
  transition: color .3s;
}

.banff-lead {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 700px;
  position: relative;
  z-index: 1;
  transition: color .3s;
}

/* ===== SOURCE BANNER ===== */
.banff-source {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--banff-accent-l);
  border: 1px solid var(--banff-accent-b);
  border-radius: 14px;
  padding: 14px 18px;
  flex-wrap: wrap;
  transition: all .3s;
}

.banff-source__info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.banff-source__icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .3s;
}

.banff-source__icon svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
}

.banff-source__label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 2px;
  transition: color .3s;
}

.banff-source__name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  transition: color .3s;
}

.banff-btn-source {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .15s, background .3s;
}

.banff-btn-source:hover { opacity: 0.9; color: #fff; }

.banff-btn-source svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
}

/* ===== SECTION TITLE ===== */
.banff-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.banff-section-title::before {
  content: '';
  width: 3px;
  height: 20px;
  border-radius: 2px;
  background: var(--accent);
  flex-shrink: 0;
  transition: background .3s;
}

.banff-section-title h2 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  transition: color .3s;
}

/* ===== DIAGNOSTIC CATEGORIES ===== */
.banff-cats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 620px) {
  .banff-cats { grid-template-columns: 1fr; }
}

.banff-cat {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
  transition: background .3s, border-color .3s, transform .15s, box-shadow .15s;
}

.banff-cat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.banff-cat__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--banff-accent-l);
  border: 1px solid var(--banff-accent-b);
  font-size: 13px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 10px;
  transition: all .3s;
}

.banff-cat__title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.3;
  transition: color .3s;
}

.banff-cat__text {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  transition: color .3s;
}

/* ===== LESION SCORES ===== */
.banff-scores {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: background .3s, border-color .3s;
}

.banff-scores__head {
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: border-color .3s;
}

.banff-scores__head::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
  transition: background .3s;
}

.banff-scores__head h3 {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 3px;
  transition: color .3s;
}

.banff-scores__head p {
  font-size: 12px;
  color: var(--text-muted);
  transition: color .3s;
}

.banff-scores__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 700px) {
  .banff-scores__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 400px) {
  .banff-scores__grid { grid-template-columns: 1fr; }
}

.banff-score {
  padding: 14px 16px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: border-color .3s, background .2s;
}

.banff-score:hover { background: var(--bg-toolbar); }

/* Remove right border on last in each row */
.banff-score:nth-child(4n) { border-right: none; }

/* Remove bottom border on last row */
.banff-score:nth-last-child(-n+4) { border-bottom: none; }

@media (max-width: 700px) {
  .banff-score:nth-child(4n) { border-right: 1px solid var(--border); }
  .banff-score:nth-child(2n) { border-right: none; }
  .banff-score:nth-last-child(-n+2) { border-bottom: none; }
}

.banff-score__abbr {
  font-size: 20px;
  font-weight: 900;
  color: var(--accent);
  font-family: 'SFMono-Regular', Consolas, monospace;
  margin-bottom: 5px;
  transition: color .3s;
}

.banff-score__name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 5px;
  transition: color .3s;
}

.banff-score__desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
  transition: color .3s;
}

/* ===== DISCLAIMER ===== */
.banff-disclaimer {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--bg-toolbar);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  transition: all .3s;
}

.banff-disclaimer svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-muted);
  fill: none;
  flex-shrink: 0;
  margin-top: 1px;
  transition: stroke .3s;
}

.banff-disclaimer p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  transition: color .3s;
}

.banff-disclaimer a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  transition: color .3s;
}

.banff-disclaimer a:hover { text-decoration: underline; }
