/* ============================================================
   TBH Guides — base.css
   Dark gaming vibe + clean comfortable typography
   Apple-style glass navbar, centered content, generous whitespace
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
  --bg: #0f0f0f;
  --bg-card: #1a1a1a;
  --bg-card-hover: #222222;
  --text: #d6dae2;
  --text-muted: #888;
  --text-bright: #f0f0f0;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);

  /* Dual accent — amber + green */
  --accent: #00e5ff;
  --accent-2: #ff2d95;
  --accent-soft: rgba(0, 229, 255, 0.1);
  --accent-glow: rgba(0, 229, 255, 0.3);
  --accent2-glow: rgba(255, 45, 149, 0.25);

  --radius: 6px;
  --radius-sm: 3px;
  --content-width: 1080px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans JP', sans-serif;
  --font-display: swap;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  /* Rarity color system (10 tiers) */
  --r-common:    #9d9d9d;  --r-common-bg:    rgba(157,157,157,0.12);
  --r-uncommon:  #22C55E;  --r-uncommon-bg:  rgba(34,197,94,0.12);
  --r-rare:      #3b82f6;  --r-rare-bg:      rgba(59,130,246,0.12);
  --r-beyond:    #a855f7;  --r-beyond-bg:    rgba(168,85,247,0.12);
  --r-legendary: #f59e0b;  --r-legendary-bg: rgba(245,158,11,0.15);
  --r-divine:    #ef4444;  --r-divine-bg:    rgba(239,68,68,0.12);
  --r-immortal:  #ec4899;  --r-immortal-bg:  rgba(236,72,153,0.12);
  --r-celestial: #06b6d4;  --r-celestial-bg: rgba(6,182,212,0.12);
  --r-arcana:    #f97316;  --r-arcana-bg:    rgba(249,115,22,0.12);
  --r-cosmic:    #8b5cf6;  --r-cosmic-bg:    rgba(139,92,246,0.15);

  /* Element / damage type colors */
  --el-physical:  #9d9d9d;
  --el-fire:      #ef4444;
  --el-cold:      #3b82f6;
  --el-lightning: #f59e0b;
  --el-chaos:     #a855f7;

  /* Pixel-flavored decorative */
  --pixel-border: 2px solid rgba(255,255,255,0.12);
  --glow-cyan: 0 0 8px rgba(0,229,255,0.3);
  --glow-green: 0 0 8px rgba(34,197,94,0.3);
  --glow-gold:  0 0 10px rgba(245,158,11,0.35);
}



/* ---- Reset ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 18px;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-sans);
  background: #08080c;
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(0,229,255,0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(59,130,246,0.03) 0%, transparent 50%);
  color: var(--text);
  line-height: 1.8;
  min-height: 100vh;
  padding-top: 72px;
  overflow-x: clip;
}

/* Comfortable reading width for article text */
.guide-article p,
.guide-article li {
  max-width: 72ch;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  color: var(--text-bright);
  font-weight: 600;
  line-height: 1.35;
}

h1 { font-size: 2.2rem; margin-bottom: 1.5rem; }
h2 { font-size: 1.5rem; margin-top: 3.2rem; margin-bottom: 1rem; }
h3 { font-size: 1.15rem; margin-top: 2.4rem; margin-bottom: 0.7rem; }

p { margin-bottom: 1.5rem; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: #00b8d4; }

ul, ol {
  padding-left: 1.8rem;
  margin-bottom: 1.5rem;
}
li { margin-bottom: 0.6rem; line-height: 1.7; }

blockquote {
  border-left: 3px solid var(--accent);
  padding: 1.2rem 1.5rem;
  margin: 2rem 0;
  color: #b0b8c0;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.95rem;
  line-height: 1.75;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  background: rgba(255,255,255,0.06);
  padding: 0.2em 0.5em;
  border-radius: 4px;
}

pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}
pre code {
  background: none;
  padding: 0;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

img {
  max-width: 100%;
  border-radius: var(--radius);
}

/* ---- Tables ---- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0 2rem;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 600px;
}
thead tr {
  border-bottom: 2px solid rgba(0,229,255,0.2);
  text-align: left;
}
th {
  padding: 0.75rem 0.9rem;
  font-weight: 600;
  color: var(--accent);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  word-break: normal;
  overflow-wrap: break-word;
}
/* Force cell content to stay on one line — use on short columns (IDs, numbers, rarity badges) */
td.nowrap, th.nowrap { white-space: nowrap; }
tr:last-child td {
  border-bottom: none;
}
tr:hover td {
  background: rgba(255,255,255,0.015);
}

/* Compact summary table (materials page, etc.) */
.summary-table {
  max-width: 600px;
}
.summary-table td,
.summary-table th {
  padding: 0.5rem 0.8rem;
  font-size: 0.82rem;
}
.summary-table .num-col {
  text-align: center;
  font-weight: 600;
  color: var(--accent);
  width: 60px;
}
/* Materials sub-tables */
.mat-table {
  font-size: 0.8rem;
}
.mat-table th {
  font-size: 0.72rem;
  padding: 0.5rem 0.6rem;
}
.mat-table td {
  padding: 0.45rem 0.6rem;
}
.mat-table .name-col {
  font-weight: 600;
  color: var(--text-bright);
}
.mat-table .en-col {
  font-size: 0.7rem;
  color: var(--text-muted);
}
.mat-table .img-col {
  width: 36px;
  padding: 0.3rem 0 0.3rem 0.4rem;
  text-align: center;
}
.mat-table .img-col img {
  vertical-align: middle;
}
.mat-table .num-col {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

/* ---- Layout ---- */
.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero section on homepage */
.hero {
  text-align: center;
  padding: 5rem 0 4rem;
  position: relative;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 200px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4;
}
.hero h1 {
  font-size: 2.6rem;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  text-shadow: 0 0 40px var(--accent-glow);
}
.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
}
.hero .cta {
  display: inline-block;
  background: var(--accent);
  color: #1a1a1e;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 2rem;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.25s;
}
.hero .cta:hover {
  background: #00b8d4;
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--accent-glow);
}
.hero-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---- Cards ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
  margin: 2rem 0;
}

.card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  color: var(--text);
}
.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 4px 24px var(--accent-glow);
}
.card h3 {
  margin-top: 0;
  font-size: 1.1rem;
  color: var(--text-bright);
}
.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.55;
}

/* ---- Category cards (homepage) ---- */
.category-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin: 2.5rem 0;
}
@media (max-width: 600px) {
  .category-cards { grid-template-columns: repeat(2, 1fr); }
}
.category-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-left: 2px solid rgba(0,229,255,0.25);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 3rem 2rem;
  text-align: center;
  transition: all 0.3s;
  color: var(--text);
  display: block;
  position: relative;
  overflow: hidden;
}
.category-card::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.category-card:hover {
  background: rgba(0,229,255,0.04);
  border-color: var(--accent);
  border-left-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,229,255,0.15), 0 0 60px var(--accent-glow);
}
.category-card:hover::before {
  opacity: 1;
}
.category-card .icon {
  display: block;
  margin-bottom: 1.2rem;
}
.category-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
}
.category-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---- Guide article ---- */
.guide-article {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 2.5rem 0 5rem;
  background: rgba(255,255,255,0.015);
  border: 1px solid rgba(255,255,255,0.06);
  border-top: 1px solid rgba(0,229,255,0.1);
  border-radius: var(--radius);
  box-shadow: 0 0 60px rgba(0,0,0,0.3);
}

/* Section divider: h2 gets a subtle top-border to visually break up long articles */
.guide-article h2 {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 2.8rem;
  margin-top: 1rem;
  position: relative;
}
.guide-article h2::after {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 60px; height: 2px;
  background: var(--accent);
  opacity: 0.6;
}
.guide-article h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 2rem;
}
.guide-article h2:first-of-type::after { display: none; }

.guide-article .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.2rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.7;
  margin-top: -0.3rem;
  margin-bottom: 1.8rem;
}

/* Tags */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 3rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.tag {
  display: inline-block;
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(212,168,84,0.15);
}

/* Table of contents — sticky left sidebar */
/* Only applies to pages that actually have a .toc */
.guide-article .container:has(.toc) {
  display: grid;
  grid-template-columns: 260px minmax(0, var(--content-width));
  gap: 0 2.5rem;
  align-items: start;
  justify-content: center;
}
.guide-article .container:has(.toc) > * {
  grid-column: 2;
}
/* Breadcrumb spans full width */
.guide-article .container:has(.toc) > .breadcrumb {
  grid-column: 1 / -1;
}
.toc {
  grid-column: 1 !important;
  grid-row: 2 / 100;
  position: sticky;
  top: 70px;
  align-self: start;
  background: rgba(255,255,255,0.015);
  border: 1px solid rgba(255,255,255,0.06);
  border-left: 2px solid rgba(0,229,255,0.2);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.2rem 1.2rem;
  margin: 0;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}
.toc h4 {
  margin-top: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.7rem;
}
.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.toc li { margin: 0.3rem 0; }
.toc a {
  font-size: 0.88rem;
  display: block;
  padding: 0.3rem 0;
  color: #b0b8c0;
  border-left: 2px solid transparent;
  padding-left: 0.6rem;
  transition: all 0.15s;
  line-height: 1.45;
}
.toc a:hover,
.toc a:focus {
  color: var(--accent);
  border-left-color: var(--accent);
}

.toc-back-top {
  display: block;
  margin-top: 1rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--accent);
  text-align: center;
  transition: color 0.15s;
}
.toc-back-top:hover { color: var(--text-bright); }
/* Mobile: collapse sidebar TOC back to inline */
@media (max-width: 900px) {
  .guide-article .container:has(.toc) {
    display: block;
  }
  .guide-article .container:has(.toc) > * {
    grid-column: unset;
  }
  .toc {
    position: static;
    grid-column: unset !important;
    grid-row: unset;
    width: 100%;
    max-height: none;
    margin-bottom: 2rem;
    border-left: 3px solid var(--accent);
  }
}

/* ---- Callout boxes ---- */
.callout {
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.4rem 1.6rem;
  margin: 2rem 0;
  font-size: 0.92rem;
  line-height: 1.7;
  border: 1px solid;
  border-left: 4px solid;
}
.callout strong:first-child {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.callout-tip {
  background: rgba(0,229,255,0.05);
  border-color: rgba(0,229,255,0.12);
  border-left-color: #00e5ff;
  color: #b0f0ff;
}
.callout-warn {
  background: rgba(255,45,149,0.05);
  border-color: rgba(255,45,149,0.12);
  border-left-color: #ff2d95;
  color: #ffb0d0;
}
.callout-info {
  background: rgba(59,130,246,0.05);
  border-color: rgba(59,130,246,0.12);
  border-left-color: #3b82f6;
  color: #b0d0ff;
}

/* ---- Zebra table rows ---- */
tr:nth-child(even) td {
  background: rgba(255,255,255,0.015);
}
/* Breadcrumb navigation */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  padding: 0;
  list-style: none;
}
.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: rgba(255,255,255,0.2); user-select: none; }
.breadcrumb .current { color: #aaa; }

tr:hover td {
  background: rgba(255,255,255,0.04) !important;
}

/* ---- Guide list page ---- */
.guide-list-header {
  text-align: center;
  padding: 3rem 0 2rem;
  max-width: var(--content-width);
  margin: 0 auto;
}
.guide-list-header h1 { margin-bottom: 0.3rem; }
.guide-list-header p { color: var(--text-muted); }

/* ---- Navbar (cyber-glass) ---- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 52px;
  background: rgba(10, 10, 14, 0.92);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

.nav-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  gap: 2.5rem;
}

.nav-logo {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-bright);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.nav-logo:hover { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-size: 0.78rem;
  font-weight: 500;
  color: #999;
  padding: 0.4rem 0.55rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  position: relative;
  white-space: nowrap;
}
.nav-link:hover {
  color: #e8e8f0;
  background: rgba(255,255,255,0.04);
}
.nav-link.active {
  color: #e8e8f0;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

/* Strategy articles nav link — accent color */
.nav-articles {
  color: var(--accent) !important;
  font-weight: 600;
}
.nav-articles:hover {
  color: #00e5ff !important;
  background: rgba(255, 170, 50, 0.08);
}
.nav-articles.active {
  color: #00e5ff !important;
}
.nav-articles.active::after {
  background: var(--accent);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  white-space: nowrap;
}
.nav-all {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
}

/* Theme toggle button */
.theme-toggle {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
  padding: 0;
}
.theme-toggle:hover {
  border-color: rgba(255, 255, 255, 0.2);
}
.theme-indicator {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #aaa;
  background: transparent;
  transition: border-color 0.2s, background 0.2s;
}
.theme-toggle:hover .theme-indicator {
  border-color: var(--accent);
}
/* Dark theme: filled circle (moon) */
:root .theme-indicator,
[data-theme="dark"] .theme-indicator {
  background: #aaa;
  border-color: #aaa;
}
[data-theme="dark"] .theme-toggle:hover .theme-indicator {
  background: var(--accent);
  border-color: var(--accent);
}
/* Light theme: outlined circle (sun) */

/* Language switch dropdown */
.lang-switch {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #aaa;
  font-size: 0.78rem;
  padding: 0.3rem 1.8rem 0.3rem 0.7rem;
  cursor: pointer;
  font-family: var(--font-sans);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  transition: border-color 0.2s;
}
.lang-switch:hover { border-color: rgba(255, 255, 255, 0.18); }
.lang-switch:focus { outline: none; border-color: var(--accent); }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 6rem;
  padding: 3rem 0;
}
.footer-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 1.5rem;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-note {
  font-size: 0.78rem;
  color: #666;
  margin-bottom: 0.4rem;
}

/* ---- Section icons ---- */
.section-icon {
  vertical-align: middle;
  margin-right: 0.35rem;
  image-rendering: pixelated;
  position: relative;
  top: -2px;
}

.category-card .icon img {
  image-rendering: pixelated;
  
}

/* ---- Hero portrait (class guide header) ---- */
.hero-portrait {
  image-rendering: pixelated;
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  max-width: 120px;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

/* ---- Pet portrait ---- */
.pet-portrait {
  image-rendering: pixelated;
  width: 48px;
  height: 48px;
  object-fit: contain;
  vertical-align: middle;
}

/* ---- Skill icon inline ---- */
.skill-icon {
  image-rendering: pixelated;
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 4px;
}

/* ---- Inline item name with icon (item-decorator.js) ---- */
.item-icon-inline {
  image-rendering: pixelated;
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 2px;
  position: relative;
  top: -1px;
  flex-shrink: 0;
}
.item-name {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-weight: 600;
  padding: 0 2px;
  border-radius: 3px;
}
/* Grade colors for inline item names */
.item-grade-common    { color: var(--r-common);    background: var(--r-common-bg); }
.item-grade-uncommon  { color: var(--r-uncommon);  background: var(--r-uncommon-bg); }
.item-grade-rare      { color: var(--r-rare);      background: var(--r-rare-bg); }
.item-grade-legendary { color: var(--r-legendary); background: var(--r-legendary-bg); }
.item-grade-immortal  { color: var(--r-immortal);  background: var(--r-immortal-bg); }
.item-grade-arcana    { color: var(--r-arcana);    background: var(--r-arcana-bg); }
.item-grade-beyond    { color: var(--r-beyond);    background: var(--r-beyond-bg); }
.item-grade-divine    { color: var(--r-divine);    background: var(--r-divine-bg); }
.item-grade-celestial { color: var(--r-celestial); background: var(--r-celestial-bg); }
.item-grade-cosmic    { color: var(--r-cosmic);    background: var(--r-cosmic-bg); }

/* ---- Tag icon ---- */
.tag-icon {
  image-rendering: pixelated;
  vertical-align: middle;
  margin-right: 3px;
}

/* ---- Hero card thumbnail ---- */
.hero-card-thumb {
  image-rendering: pixelated;
  display: block;
  margin: 0 auto 0.5rem;
  max-height: 64px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}


/* ---- Cyberpunk-modern enhancements ---- */

/* Screen-reader only */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Neon glow card */
.card-neon {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.card-neon::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.card-neon:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow), inset 0 0 20px rgba(0,229,255,0.04);
  transform: translateY(-2px);
}
.card-neon:hover::before { opacity: 1; }

/* Cyberpunk diagonal-cut panel */
.panel-cyber {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  padding: 1.5rem;
  position: relative;
  transition: border-color 0.25s, box-shadow 0.25s;
}

/* Neon button */
.btn-neon {
  display: inline-block;
  padding: 0.6rem 1.6rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
  cursor: pointer;
  transition: all 0.25s;
}
.btn-neon:hover {
  background: var(--accent-soft);
  box-shadow: 0 0 20px var(--accent-glow), inset 0 0 12px rgba(0,229,255,0.08);
  color: #fff;
}

/* Modern stat bar */
.stat-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  margin: 0.4rem 0;
}
.stat-bar .stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  width: 32px;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.stat-bar .stat-track {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.04);
  border-radius: 4px;
  overflow: hidden;
}
.stat-bar .stat-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
  position: relative;
}
.stat-bar .stat-fill::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 35%;
  background: rgba(255,255,255,0.18);
  border-radius: 4px 4px 0 0;
}
.stat-bar .stat-val {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-bright);
  width: 56px;
  text-align: right;
  flex-shrink: 0;
}
.stat-fill-hp  { background: linear-gradient(90deg, #22C55E, #4ade80); box-shadow: 0 0 8px rgba(34,197,94,0.3); }
.stat-fill-mp  { background: linear-gradient(90deg, #3b82f6, #60a5fa); box-shadow: 0 0 8px rgba(59,130,246,0.3); }
.stat-fill-exp { background: linear-gradient(90deg, #f59e0b, #fbbf24); box-shadow: 0 0 8px rgba(245,158,11,0.3); }

/* Terminal panel */
.panel-terminal {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.06);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.3rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.panel-terminal .prompt { color: var(--accent); }

/* Text glow */
.text-glow {
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent-glow), 0 0 20px var(--accent-glow);
}

/* Portal — game cards */
.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 2rem 0 1rem;
}
.game-cards {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0 2rem;
}
.game-card {
  display: block;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: all 0.25s;
  max-width: 520px;
}
.game-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 24px var(--accent-glow);
  transform: translateY(-2px);
}
.game-banner {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.game-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}
.game-info {
  padding: 1.2rem 1.5rem 1.5rem;
}
.game-info h3 {
  margin: 0 0 0.3rem;
  font-size: 1.15rem;
  color: var(--text-bright);
}
.game-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

/* ---- Responsive ---- */
@media (max-width: 820px) {

  :root { --content-width: 100%; }
  html { font-size: 16px; }
  .container { padding: 0 1.2rem; }
  .category-cards { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0 2.5rem; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .guide-article { padding: 1.5rem 1rem 3rem; }
  table { font-size: 0.82rem; }
  th, td { padding: 0.5rem; }
  .hero-portrait {
    float: none;
    display: block;
    margin: 0 auto 1.5rem;
    max-width: 90px;
  }
  .nav-inner { gap: 0.6rem; padding: 0 0.6rem; }
  .nav-logo { font-size: 0.85rem; flex-shrink: 0; }
  .nav-links {
    gap: 0;
    flex: 1;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    mask-image: linear-gradient(to right, black 85%, transparent 98%);
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 98%);
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-link { font-size: 0.75rem; padding: 0.3rem 0.5rem; flex-shrink: 0; }
  .nav-right { flex-shrink: 0; }
}

/* ============================================================
   Pixel-flavored enhancements — rarity colors, glow, badges
   ============================================================ */

/* Rarity grade badges */
.rarity-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  text-shadow: 0 0 4px currentColor;
}
.rarity-common    { color: var(--r-common);    background: var(--r-common-bg); }
.rarity-uncommon  { color: var(--r-uncommon);  background: var(--r-uncommon-bg); }
.rarity-rare      { color: var(--r-rare);      background: var(--r-rare-bg); }
.rarity-beyond    { color: var(--r-beyond);    background: var(--r-beyond-bg); }
.rarity-legendary { color: var(--r-legendary); background: var(--r-legendary-bg); text-shadow: var(--glow-gold); }
.rarity-divine    { color: var(--r-divine);    background: var(--r-divine-bg); }
.rarity-immortal  { color: var(--r-immortal);  background: var(--r-immortal-bg); }
.rarity-celestial { color: var(--r-celestial); background: var(--r-celestial-bg); }
.rarity-arcana    { color: var(--r-arcana);    background: var(--r-arcana-bg); text-shadow: 0 0 6px rgba(249,115,22,0.4); }
.rarity-cosmic    { color: var(--r-cosmic);    background: var(--r-cosmic-bg); text-shadow: 0 0 8px rgba(139,92,246,0.5); }

/* Pixel border for cards */
.pixel-card {
  border: var(--pixel-border);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.02);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pixel-card:hover {
  border-color: var(--accent);
  box-shadow: var(--glow-cyan);
}

/* Glow text */
.glow-amber  { text-shadow: var(--glow-cyan); }
.glow-green  { text-shadow: var(--glow-green); }
.glow-gold   { text-shadow: var(--glow-gold); }

/* Pixel-divider */
.pixel-divider {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  margin: 2rem 0;
  user-select: none;
}

/* Stat strip (QUICK STATS numbers) */
.stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin: 2rem 0 0;
}
.stat-item {
  text-align: center;
  padding: 0.8rem 1.2rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
}
.stat-item b {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  text-shadow: var(--glow-cyan);
  line-height: 1.2;
}
.stat-item span {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Slot card (gear overview) */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.6rem;
  margin: 1.5rem 0;
}
.slot-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.8rem 0.5rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.slot-card:hover {
  border-color: var(--accent);
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}
.slot-card img {
  width: 36px;
  height: 36px;
  image-rendering: pixelated;
}
.slot-card .slot-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #ddd;
  text-align: center;
}
.slot-card .slot-name small {
  display: block;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.68rem;
}
.slot-card .slot-meta {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: center;
}

/* Type group header */
.type-group {
  margin: 2rem 0 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.type-group h2 {
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  margin: 0;
}

/* Gear card in listing */
.gear-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  transition: border-color 0.15s, background 0.15s;
}
.gear-card:hover {
  border-color: var(--accent);
  background: rgba(212,168,84,0.04);
}
.gear-card img {
  flex-shrink: 0;
  image-rendering: pixelated;
}

/* Rarity legend dots */
.rarity-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  align-items: center;
  margin: 1rem 0;
  font-size: 0.75rem;
}
.rarity-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 0.3rem;
  vertical-align: middle;
}

/* ---- Gear slot pages — filter bar + variant card grid ---- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.filter-bar button {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: #a0a0b0;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  transition: all 0.2s;
}
.filter-bar button:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--border-hover);
  color: #d0d0e0;
}
.filter-bar button.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.variant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
  margin: 24px 0 40px;
}

.variant-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.variant-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}
.variant-card img {
  width: 48px;
  height: 48px;
  image-rendering: pixelated;
  flex-shrink: 0;
}

/* Left accent strip */
.variant-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
}
.accent-common { background: #9d9d9d; }
.accent-uncommon { background: #22C55E; }
.accent-rare { background: #3b82f6; }
.accent-legendary { background: #f59e0b; }
.accent-immortal { background: #ec4899; }
.accent-arcana { background: #f97316; }
.accent-beyond { background: #a855f7; }
.accent-divine { background: #ef4444; }
.accent-celestial { background: #06b6d4; }
.accent-cosmic { background: #8b5cf6; }

/* Hover border matches rarity */
.variant-card[data-rarity="common"]:hover { border-color: #9d9d9d; }
.variant-card[data-rarity="uncommon"]:hover { border-color: #22C55E; }
.variant-card[data-rarity="rare"]:hover { border-color: #3b82f6; }
.variant-card[data-rarity="legendary"]:hover { border-color: #f59e0b; }
.variant-card[data-rarity="immortal"]:hover { border-color: #ec4899; }
.variant-card[data-rarity="arcana"]:hover { border-color: #f97316; }
.variant-card[data-rarity="beyond"]:hover { border-color: #a855f7; }
.variant-card[data-rarity="divine"]:hover { border-color: #ef4444; }
.variant-card[data-rarity="celestial"]:hover { border-color: #06b6d4; }
.variant-card[data-rarity="cosmic"]:hover { border-color: #8b5cf6; }

.variant-info { min-width: 0; }
.variant-name {
  color: var(--text-bright);
  font-weight: 600;
  font-size: 0.78rem;
  line-height: 1.3;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.variant-meta {
  color: var(--text-muted);
  font-size: 0.61rem;
  margin-top: 3px;
}
.variant-card .rarity-badge {
  font-size: 0.56rem;
  padding: 1px 8px;
  border-radius: 3px;
  font-weight: 500;
  display: inline-block;
}

.variant-card.hidden { display: none; }

@media (max-width: 768px) {
  .variant-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
  }
  .filter-bar { gap: 5px; }
  .filter-bar button { padding: 5px 10px; font-size: 0.61rem; }
}

/* ---- Light theme overrides ---- */

/* ---- Monster database ---- */
.monster-search {
  margin-bottom: 1rem;
}
.monster-search-input {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 0.55rem 0.9rem;
  font-size: 0.82rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s;
}
.monster-search-input:focus { border-color: var(--accent); }
.monster-search-input::placeholder { color: var(--text-muted); }

.monster-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 1.5rem;
}
.monster-filter-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: #a0a0b0;
  padding: 5px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s;
}
.monster-filter-btn:hover { background: rgba(255,255,255,0.08); color: #d0d0e0; }
.monster-filter-btn.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

.monster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}
.monster-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: border-color 0.2s, background 0.2s;
}
.monster-card:hover { border-color: var(--border-hover); background: var(--bg-card-hover); }
.monster-sprite {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.2);
  border-radius: 4px;
}
.monster-sprite img { width: 48px; height: 48px; image-rendering: pixelated; }
.monster-info { min-width: 0; }
.monster-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-bright);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.monster-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.monster-stats {
  display: flex;
  gap: 12px;
  font-size: 0.72rem;
  color: var(--text);
}
.monster-stats span { white-space: nowrap; }
.pet-marker {
  font-size: 0.6rem;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 1px 6px;
  border-radius: 3px;
  white-space: nowrap;
}

/* ---- Skill database ---- */
.skill-table { width: 100%; border-collapse: collapse; }
.skill-table thead { display: none; }
.skill-table td {
  padding: 0.55rem 0.7rem;
  border: none;
  vertical-align: middle;
  background: none;
}
.skill-table tr { border-bottom: 1px solid var(--border); }
.skill-table tr:last-child { border-bottom: none; }
.skill-name {
  font-weight: 600;
  color: var(--text-bright);
  font-size: 0.9rem;
  min-width: 90px;
}
.skill-dmg {
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 500;
}
.skill-priority {
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
  width: 40px;
}

/* Skill type tags */
.skill-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 3px;
  margin: 1px 2px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  background: rgba(255,255,255,0.08);
  color: #b0b0c0;
}
.tag-physical { color: #c9a96e; }
.tag-fire { color: #e8734a; }
.tag-cold { color: #6ec6f8; }
.tag-lightning { color: #f5d65e; }
.tag-melee { color: #f0a070; }
.tag-projectile { color: #98c379; }
.tag-aoe { color: #d4a0f0; }
.tag-summon { color: #f0c060; }
.tag-trap { color: #e06c6c; }

/* Type legend bar */
.type-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.type-legend .skill-tag { font-size: 0.62rem; }

/* Quick nav */
.quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 2rem;
}
.quick-nav a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.75rem;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.quick-nav a:hover { border-color: var(--accent); background: var(--accent-soft); }
.quick-nav img { image-rendering: pixelated; }

/* Class header */
.class-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2.5rem 0 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.class-header h2 {
  font-size: 1.2rem;
  margin: 0;
  padding: 0;
  color: var(--text-bright);
}
.class-header img { image-rendering: pixelated; border-radius: 4px; }

/* Passive icon */
.passive-icon { image-rendering: pixelated; width: 24px; opacity: 0.8; }

/* Passive per-skill table */
.passive-skill-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  margin-bottom: 0.5rem;
}
.passive-skill-table thead { display: none; }
.passive-skill-table td {
  padding: 0.4rem 0.7rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  background: none;
}
.passive-skill-table tr:last-child td { border-bottom: none; }
.passive-skill-table .skill-ref {
  font-weight: 600;
  color: var(--text-bright);
  white-space: nowrap;
  width: 90px;
  font-size: 0.8rem;
}

/* ---- Announcement cards (in articles listing) ---- */
.card-news {
  border-left: 3px solid var(--accent-2);
}
.card-news:hover {
  border-left-color: var(--accent);
  border-color: var(--accent);
}

/* ---- News / Patch Notes list ---- */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.news-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 24px 28px;
  transition: border-color 0.2s;
}
.news-item:hover {
  border-color: var(--accent);
}
.news-item time {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 500;
  display: block;
  margin-bottom: 6px;
}
.news-item h2 {
  font-size: 1.25rem;
  margin: 0 0 10px 0;
  color: var(--text-bright);
  line-height: 1.35;
}
.news-item p {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0 0 8px 0;
}
.news-item a {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}
.news-item a:hover {
  text-decoration: underline;
}
.news-sep {
  color: var(--text-muted);
  margin: 0 6px;
  font-size: 0.85rem;
}

/* Light theme overrides — skill tags */