.content-page {
  background:
    radial-gradient(circle at 9% 0%, rgb(28 102 145 / 24%), transparent 31rem),
    radial-gradient(circle at 96% 10%, rgb(255 216 74 / 8%), transparent 24rem),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}


.content-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 11px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgb(70 103 136 / 42%);
  background: rgb(5 14 25 / 90%);
  backdrop-filter: blur(18px);
}

.content-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
}

.content-brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgb(255 216 74 / 48%);
  border-radius: 13px;
  color: var(--accent);
  background: linear-gradient(145deg, rgb(255 216 74 / 14%), rgb(104 221 247 / 8%));
  font-size: .72rem;
  font-weight: 900;
}

.content-brand strong,
.content-brand small { display: block; }
.content-brand strong { font-size: 1rem; }
.content-brand small { color: var(--muted); font-size: .72rem; }

.content-header nav,
.content-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.content-header nav a,
.content-footer nav a {
  color: #b6c8d8;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
}

.content-header nav a:hover,
.content-footer nav a:hover { color: var(--accent); }

.content-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 70px;
}

.content-shell.narrow { width: min(850px, calc(100% - 40px)); }

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted-2);
  font-size: .76rem;
}

.breadcrumbs a { color: #a9c3d8; text-underline-offset: 3px; }

.article-hero {
  position: relative;
  padding: clamp(25px, 5vw, 54px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(135deg, rgb(20 47 73 / 96%), rgb(8 25 42 / 96%));
  box-shadow: var(--shadow);
}

.article-hero::after {
  position: absolute;
  right: -80px;
  bottom: -150px;
  width: 300px;
  height: 300px;
  border: 55px solid rgb(255 216 74 / 6%);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.article-hero.compact { margin-bottom: 25px; }
.article-hero h1 { max-width: 790px; margin-bottom: 17px; }
.article-hero > p:not(.eyebrow) { position: relative; z-index: 1; max-width: 800px; margin-bottom: 0; color: #b8c8d6; line-height: 1.9; }

.article-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
  color: var(--muted);
  font-size: .8rem;
}

.article-meta strong { color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.4rem; }

.primary-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  margin-top: 22px;
  padding: 0 18px;
  border-radius: 11px;
  color: var(--accent-ink);
  background: var(--accent);
  font-size: .86rem;
  font-weight: 900;
  text-decoration: none;
}

.article-section {
  margin-top: 22px;
  padding: clamp(21px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgb(12 29 47 / 82%);
}

.article-section h2 { margin-bottom: 14px; font-size: 1.18rem; }
.article-section p { color: #bdcbd7; line-height: 1.9; }
.article-section p:last-child { margin-bottom: 0; }
.article-section a { color: var(--cyan); }

.metric-grid,
.decision-grid,
.breakdown-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.metric-card,
.decision-grid > div,
.breakdown {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgb(5 17 29 / 58%);
}

.metric-card span,
.metric-card small { display: block; }
.metric-card span { color: #b9c9d6; font-size: .78rem; font-weight: 750; }
.metric-card strong { display: block; margin: 5px 0; color: var(--accent); font-size: 1.55rem; }
.metric-card small { color: var(--muted); font-size: .73rem; line-height: 1.55; }
.decision-grid > div h3,
.breakdown h3 { margin: 0 0 8px; color: #edf5fa; font-size: .92rem; }
.decision-grid > div p { margin: 0; font-size: .8rem; line-height: 1.75; }
.breakdown-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.breakdown-row { display: grid; grid-template-columns: minmax(70px, auto) 1fr auto; gap: 9px; align-items: center; margin-top: 10px; color: #c7d5df; font-size: .75rem; }
.breakdown-row i { height: 7px; border-radius: 999px; background: linear-gradient(90deg, var(--cyan) var(--bar), rgb(37 61 82) var(--bar)); }
.breakdown-row strong { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .7rem; }
.source-section > p { margin-bottom: 18px; }
.text-link { display: inline-flex; margin-top: 14px; font-size: .8rem; font-weight: 800; text-decoration: none; }
.accuracy-note.standalone { margin: 22px 0 0; padding: 15px 18px; border: 1px solid var(--line); border-left: 3px solid var(--cyan); border-radius: 10px; }
.featured-guides { margin: 24px 0; }
.guide-list-heading { margin-top: 28px; }
.guide-index-card.featured { min-height: 270px; border-color: rgb(255 216 74 / 32%); background: linear-gradient(145deg, rgb(26 51 73 / 96%), rgb(9 25 42 / 96%)); }
.guide-index-card.featured h2 { font-size: 1.12rem; }
.featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.role-shortlists { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.role-shortlists > section { padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: rgb(5 17 29 / 58%); }
.role-shortlists h3 { margin: 0 0 5px; color: #edf5fa; font-size: .92rem; }
.role-shortlists > section > p { margin: 0 0 12px; color: var(--muted); font-size: .72rem; line-height: 1.5; }
.role-shortlists > section > div { display: grid; gap: 7px; }
.role-shortlists a { display: grid; gap: 2px; padding: 9px 10px; border: 1px solid rgb(38 60 85 / 72%); border-radius: 9px; color: #edf5fa; background: rgb(11 31 49 / 70%); text-decoration: none; }
.role-shortlists a:hover { border-color: var(--cyan); }
.role-shortlists a strong { font-size: .79rem; }
.role-shortlists a small { color: var(--muted); font-size: .68rem; line-height: 1.45; }
.role-shortlists a.type-tinted-card {
  border-color: color-mix(in srgb, var(--type-color), transparent 55%);
  border-left: 4px solid var(--type-color);
  background: linear-gradient(100deg, color-mix(in srgb, var(--type-color), #07111f 78%), rgb(8 25 42 / 92%) 70%);
}
.role-shortlists a.type-tinted-card:hover { border-color: var(--type-color); }
.role-shortlists a.type-tinted-card small b { color: var(--type-color); }
.guide-table tbody .type-tinted-row > th,
.guide-table tbody .type-tinted-row > td { background: color-mix(in srgb, var(--type-color), #07111f 91%); }
.guide-table tbody .type-tinted-row > th { box-shadow: inset 4px 0 0 var(--type-color); }
.guide-table tbody .type-tinted-row:hover > th,
.guide-table tbody .type-tinted-row:hover > td { background: color-mix(in srgb, var(--type-color), #07111f 84%); }
.type-chip { display: inline-flex; align-items: center; gap: 6px; margin: 3px 6px 3px 0; padding: 5px 8px; border: 1px solid color-mix(in srgb, var(--type-color), transparent 45%); border-radius: 8px; color: #edf5fa !important; background: color-mix(in srgb, var(--type-color), #07111f 82%); text-decoration: none; }
.type-chip small { color: var(--type-color); font-size: .68rem; font-weight: 850; }
.synergy-table td:nth-child(2) { min-width: 250px; white-space: normal; line-height: 1.8; }
.synergy-table td:nth-child(2) a { color: var(--cyan); text-underline-offset: 3px; }

.check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 13px 15px 13px 43px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #dce7ef;
  background: rgb(5 17 29 / 52%);
}

.check-list li::before {
  position: absolute;
  top: 13px;
  left: 14px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  color: var(--accent-ink);
  background: var(--accent);
  content: "✓";
  font-size: .68rem;
  font-weight: 900;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
}
.section-heading h2,
.section-heading .eyebrow { margin-bottom: 0; }
.section-heading > span { color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 800; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; }
.guide-table { width: 100%; border-collapse: collapse; background: rgb(4 14 25 / 45%); font-size: .82rem; }
.guide-table th,
.guide-table td { padding: 12px 13px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.guide-table .effect-cell { min-width: 300px; white-space: normal; line-height: 1.65; }
.guide-table thead th { color: var(--muted); background: #10233a; font-size: .72rem; }
.guide-table tbody tr:last-child th,
.guide-table tbody tr:last-child td { border-bottom: 0; }
.guide-table tbody th a { color: #eef5fa; text-underline-offset: 3px; }
.guide-table tbody tr:hover { background: rgb(104 221 247 / 5%); }
.table-note,
.accuracy-note { margin-top: 13px; color: var(--muted) !important; font-size: .78rem; }
.accuracy-note { padding: 12px 14px; border-left: 3px solid var(--cyan); background: rgb(104 221 247 / 5%); }

.related-guides {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.related-guides strong { width: 100%; margin-bottom: 3px; color: var(--muted); font-size: .75rem; letter-spacing: .08em; }
.related-guides a { padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; color: #c4d5e3; background: rgb(14 33 52 / 72%); font-size: .76rem; text-decoration: none; }
.related-guides a:hover { border-color: var(--cyan); color: white; }

.guide-index-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.guide-index-card {
  display: flex;
  min-height: 245px;
  flex-direction: column;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgb(17 39 61 / 92%), rgb(8 23 39 / 92%));
}
.guide-index-card h2 { margin-bottom: 10px; font-size: 1.03rem; }
.guide-index-card h2 a { color: var(--text); text-decoration: none; }
.guide-index-card > p:not(.eyebrow) { color: var(--muted); font-size: .82rem; line-height: 1.75; }
.guide-index-card > div { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 15px; border-top: 1px solid var(--line); }
.guide-index-card > div span { color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; font-weight: 800; }
.guide-index-card > div a { color: var(--cyan); font-size: .78rem; font-weight: 800; text-decoration: none; }

.legal-article .article-section { margin-top: 14px; }
.legal-article .article-section h2 { color: var(--cyan); font-size: 1rem; }

.card-page-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid color-mix(in srgb, var(--card-color), transparent 55%);
  border-radius: 25px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--card-color), #122840 78%), #071626 75%);
  box-shadow: var(--shadow);
}

.card-page-symbol {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--card-color), white 22%);
  border-radius: 22px;
  color: #07111f;
  background: var(--card-color);
  font-size: 1.45rem;
  font-weight: 950;
}

.card-page-heading h1 { margin: 3px 0 10px; font-size: clamp(1.8rem, 4vw, 3.3rem); }
.card-page-heading > p:last-child { max-width: 720px; margin: 0; color: #c7d5df; font-size: 1rem; line-height: 1.75; }
.card-page-hp { min-width: 88px; text-align: right; }
.card-page-hp span,
.card-page-hp strong { display: block; }
.card-page-hp span { color: var(--muted); font-size: .78rem; font-weight: 800; }
.card-page-hp strong { color: var(--card-color); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 2rem; }
.card-page-hp.trainer strong { font-family: inherit; font-size: 1rem; }

.card-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  align-items: start;
  margin-top: 20px;
}

.card-page-main { min-width: 0; }
.card-fact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgb(10 27 44 / 85%);
}
.card-fact-grid > div { min-width: 0; padding: 12px; border-radius: 11px; background: rgb(4 14 25 / 55%); }
.card-fact-grid span,
.card-fact-grid strong { display: block; }
.card-fact-grid span { margin-bottom: 5px; color: var(--muted); font-size: .75rem; }
.card-fact-grid strong { color: #edf5fa; font-size: .9rem; overflow-wrap: anywhere; }
.card-fact-grid a { color: var(--cyan); }

.card-effect-section { border-color: color-mix(in srgb, var(--card-color), transparent 68%); }
.effect-title > span { color: var(--card-color); font-size: .75rem; font-weight: 900; letter-spacing: .08em; }
.effect-title h2 { margin: 5px 0 12px; }
.card-effect-section > p,
.content-attack-list p { color: #e0e9f0; font-size: 1rem; line-height: 1.85; }
.content-attack-list { display: grid; gap: 12px; }
.content-attack-list article { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgb(5 17 29 / 58%); }
.content-attack-list article > div:first-child { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.content-attack-list h3 { margin: 0; font-size: 1rem; }
.content-attack-list article > div:first-child > strong { color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.1rem; }
.content-attack-list .muted-copy { color: var(--muted); }
.energy-line { display: inline-flex; gap: 4px; }
.content-energy { display: inline-grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; color: #06101d; background: var(--energy-color); font-size: .7rem; font-weight: 950; }
.content-energy.free { color: #d9e6ef; background: #324a60; }
.content-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.content-tags span { padding: 6px 9px; border: 1px solid color-mix(in srgb, var(--card-color, var(--cyan)), transparent 60%); border-radius: 8px; color: #cfe0eb; background: rgb(10 32 50 / 75%); font-size: .76rem; font-weight: 750; }

.card-page-side { position: sticky; top: 92px; display: grid; gap: 12px; }
.card-action-panel,
.side-panel { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: rgb(10 27 44 / 92%); }
.card-action-panel > strong,
.side-panel > strong { display: block; margin-bottom: 7px; color: #edf5fa; font-size: .92rem; }
.card-action-panel p,
.side-panel p { margin: 0 0 14px; color: var(--muted); font-size: .8rem; line-height: 1.6; }
.card-action-panel button,
.card-action-panel a { display: grid; width: 100%; min-height: 44px; place-items: center; margin-top: 8px; border: 1px solid color-mix(in srgb, var(--card-color), transparent 45%); border-radius: 10px; color: #06101d; background: var(--card-color); font-size: .82rem; font-weight: 900; text-decoration: none; }
.card-action-panel button:disabled { cursor: not-allowed; opacity: .52; }
.card-action-panel a { color: var(--cyan); background: rgb(104 221 247 / 8%); }
.card-action-panel a.secondary { color: #c9d7e2; border-color: var(--line); background: transparent; }

.related-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.related-card { display: flex; min-width: 0; min-height: 145px; flex-direction: column; padding: 16px; border: 1px solid var(--line); border-top: 3px solid var(--card-color); border-radius: 13px; color: inherit; background: rgb(5 17 29 / 58%); text-decoration: none; }
.related-card > span { color: var(--card-color); font-size: .72rem; font-weight: 850; }
.related-card > strong { margin: 7px 0; color: #f0f6fa; font-size: .94rem; }
.related-card > small { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: .76rem; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.related-card:hover { border-color: var(--card-color); transform: translateY(-1px); }

.set-index-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.set-index-card { display: flex; min-height: 135px; flex-direction: column; padding: 19px; border: 1px solid var(--line); border-radius: 15px; color: inherit; background: linear-gradient(145deg, rgb(17 39 61 / 92%), rgb(8 23 39 / 92%)); text-decoration: none; }
.set-index-card > span { align-self: flex-start; padding: 4px 8px; border-radius: 7px; color: var(--accent); background: rgb(255 216 74 / 8%); font-size: .72rem; font-weight: 850; }
.set-index-card > strong { margin: 13px 0 7px; color: #eef5fa; font-size: 1rem; }
.set-index-card > small { margin-top: auto; color: var(--muted); font-size: .76rem; }
.set-index-card:hover { border-color: var(--cyan); }

.set-card-list { display: grid; gap: 8px; margin-top: 20px; }
.set-card-row { display: grid; grid-template-columns: 76px minmax(150px, .7fr) 90px 85px minmax(260px, 1.5fr); gap: 12px; align-items: center; padding: 13px 15px; border: 1px solid var(--line); border-left: 3px solid var(--card-color); border-radius: 11px; color: inherit; background: rgb(8 24 40 / 82%); text-decoration: none; }
.set-card-row:hover { border-color: var(--card-color); background: rgb(15 36 56 / 92%); }
.set-card-row > strong { color: #eef5fa; font-size: .9rem; }
.set-card-row > span { color: #b9cad7; font-size: .78rem; }
.set-card-row > small { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: .75rem; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.set-card-kind { color: var(--card-color) !important; font-weight: 850; }

.content-footer {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 20px 40px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0 40px;
  border-top: 1px solid rgb(38 60 85 / 72%);
  color: var(--muted-2);
  font-size: .74rem;
}
.content-footer strong { color: #dce7ef; }
.content-footer p { margin: 4px 0 0; }
.content-footer .rights-note { grid-column: 1 / -1; max-width: 760px; }

@media (max-width: 850px) {
  .guide-index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-page-layout { grid-template-columns: 1fr; }
  .card-page-side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-action-panel { grid-row: span 2; }
  .card-fact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .set-index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .set-card-row { grid-template-columns: 70px minmax(150px, .8fr) 80px minmax(230px, 1.4fr); }
  .set-card-row > span:nth-of-type(3) { display: none; }
  .metric-grid,
  .decision-grid,
  .role-shortlists { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .content-header { position: static; align-items: flex-start; min-height: auto; flex-direction: column; gap: 12px; padding-block: 14px; }
  .content-header nav { width: 100%; padding-top: 10px; border-top: 1px solid var(--line); }
  .content-header nav a { font-size: .76rem; }
  .content-shell,
  .content-shell.narrow { width: min(100% - 24px, 1120px); padding-top: 22px; }
  .breadcrumbs { overflow-x: auto; white-space: nowrap; }
  .article-hero { border-radius: 19px; }
  .article-hero h1 { font-size: clamp(1.6rem, 8vw, 2.15rem); }
  .card-page-hero { grid-template-columns: 58px minmax(0, 1fr); gap: 14px; padding: 20px; border-radius: 19px; }
  .card-page-symbol { width: 58px; height: 58px; border-radius: 17px; font-size: 1.1rem; }
  .card-page-heading h1 { font-size: clamp(1.65rem, 8vw, 2.2rem); }
  .card-page-heading > p:last-child { font-size: .9rem; }
  .card-page-hp { grid-column: 2; min-width: 0; text-align: left; }
  .card-page-hp span,
  .card-page-hp strong { display: inline; }
  .card-page-hp strong { margin-left: 5px; font-size: 1.2rem; }
  .card-page-side { grid-template-columns: 1fr; }
  .card-action-panel { grid-row: auto; }
  .card-fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; }
  .related-card-grid,
  .set-index-grid { grid-template-columns: 1fr; }
  .related-card { min-height: 128px; }
  .set-card-row { grid-template-columns: 62px minmax(0, 1fr) auto; gap: 8px; padding: 12px; }
  .set-card-row > span:nth-of-type(2),
  .set-card-row > span:nth-of-type(3) { display: none; }
  .set-card-row > small { grid-column: 1 / -1; }
  .content-attack-list article > div:first-child { grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; }
  .guide-index-grid { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: 1fr; }
  .breakdown-grid { grid-template-columns: 1fr; }
  .guide-index-card { min-height: 215px; }
  .content-footer { grid-template-columns: 1fr; width: min(100% - 24px, 1120px); }
  .content-footer .rights-note { grid-column: auto; }
}
