/* Hebrew Classic guides hub — original stylesheet matching Henesys.gg visual tokens */

:root {
  --bg: #0d1117;
  --bg-secondary: #161b22;
  --bg-tertiary: #21262d;
  --bg-overlay: #0d1117f2;
  --text: #e6edf3;
  --text-secondary: #b1bac4;
  --text-muted: #8b949e;
  --border: #30363d;
  --border-secondary: #21262d;
  --accent: #ffab40;
  --accent-hover: #ffb74d;
  --accent-bg: #ffab4026;
  --accent-border: #ffab4066;
  --accent-gradient: linear-gradient(180deg, #ffd180 0%, #ffab40 50%, #ff8f00 100%);
  --accent-gradient-hover: linear-gradient(180deg, #ffe0a3 0%, #ffb74d 50%, #ff9f1a 100%);
  --cyan: #00e5ff;
  --success: #3fb950;
  --success-text: #0d1117;
  --panel-w: 745px;
  --sidebar-w: 165px;
  --radius: 8px;
  --font-ui: "Titillium Web", "Heebo", system-ui, sans-serif;
  --font-he: "Heebo", "Titillium Web", system-ui, sans-serif;
  /* PNG cursors (hotspot from original .cur); system fallbacks so pointer never disappears */
  --cursor-default: url("assets/point.png") 0 0, default;
  --cursor-pointer: url("assets/point_click-0.png") 3 6, pointer;
  --cursor-clicking: url("assets/point_click-1.png") 4 4, pointer;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  cursor: var(--cursor-default);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-he);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, #0d1117cc 0%, #0d1117e6 40%, #0d1117f2 100%),
    url("assets/henesys.webp");
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  cursor: var(--cursor-default);
}

a,
button,
.nav-item,
.btn-primary,
.icon-btn,
.side-foot-btn,
.cell-link,
.soon,
.my-char-stub,
.brand,
.char-class-opt,
.btn-ghost,
.char-modal-close,
.job-card-toggle,
.search-box {
  cursor: var(--cursor-pointer);
}

a.is-clicking,
button.is-clicking,
.nav-item.is-clicking,
.btn-primary.is-clicking,
.char-class-opt.is-clicking {
  cursor: var(--cursor-clicking);
}

/* Never let a broken custom cursor hide the mouse */
@media (pointer: fine) {
  html {
    cursor: var(--cursor-default);
  }
}

a {
  color: var(--text-secondary);
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--text);
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -3rem;
  background: var(--accent);
  color: #0d1117;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  z-index: 200;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

img {
  image-rendering: pixelated;
  display: block;
}

/* —— Mobile bar —— */
.mobile-bar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 60;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 0.75rem;
  background: var(--bg-overlay);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  padding: 0;
}

.hamburger {
  width: 16px;
  height: 2px;
  background: var(--text);
  position: relative;
  display: block;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  width: 16px;
  height: 2px;
  background: var(--text);
}

.hamburger::before { top: -5px; }
.hamburger::after { top: 5px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

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

.brand-leaf {
  image-rendering: pixelated;
}

/* —— Shell / sidebar —— */
.shell {
  display: flex;
  align-items: flex-start;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  flex: 0 0 var(--sidebar-w);
  width: var(--sidebar-w);
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.85rem 0.65rem 0.75rem;
  background: var(--bg-secondary);
  border-inline-end: 1px solid var(--border);
  z-index: 40;
  overflow-y: auto;
}

.sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.search-stub {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: var(--cursor-pointer);
}

.search-stub kbd {
  margin-inline-start: auto;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  padding: 0.1rem 0.3rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
}

.my-char-stub {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-tertiary);
  text-decoration: none;
  color: var(--text);
}

.my-char-stub:hover {
  border-color: var(--accent-border);
  color: var(--text);
}

.avatar {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--bg);
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
}

.my-char-label {
  font-size: 0.78rem;
  font-weight: 600;
  flex: 1;
}

.badge-new {
  display: inline-block;
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
  background: linear-gradient(180deg, #7ee787 0%, #3fb950 50%, #2ea043 100%);
  color: var(--success-text);
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.badge-new.lg {
  font-size: 0.7rem;
  padding: 0.12rem 0.45rem;
  margin-bottom: 0.65rem;
}

.nav-section {
  margin: 0.85rem 0 0.35rem;
  padding: 0 0.35rem;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
}

.nav-item img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.nav-item:hover {
  color: var(--text);
  background: var(--bg-tertiary);
}

.nav-item.active {
  color: var(--text);
  background: var(--accent-bg);
  border-color: var(--accent-border);
  box-shadow: inset 0 0 0 1px var(--accent-border);
}

.sidebar-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-secondary);
}

.side-foot-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.4rem 0.45rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-he);
  font-size: 0.78rem;
  text-align: start;
}

.side-foot-btn:hover:not(:disabled) {
  color: var(--text);
  background: var(--bg-tertiary);
}

.side-foot-btn:disabled {
  opacity: 0.7;
}

.sidebar-backdrop {
  display: none;
}

/* —— Main panel —— */
.main-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
  padding: 1.25rem 1rem 2.5rem;
}

.panel {
  width: min(100%, var(--panel-w));
  background: color-mix(in srgb, var(--bg-secondary) 92%, transparent);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 16px 48px rgba(0, 0, 0, 0.35);
  padding: 1.35rem 1.5rem 1.75rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.bc-sep { opacity: 0.6; }

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-he);
  font-size: clamp(1.75rem, 3.5vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
}

.lede {
  margin: 0 0 1.35rem;
  color: var(--text-secondary);
  max-width: 38rem;
  font-size: 0.98rem;
}

/* My Character card */
.my-char-card {
  position: relative;
  margin-bottom: 1.75rem;
  padding: 1.15rem 1.15rem 1.25rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.my-char-card h2 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.my-char-intro {
  margin: 0 0 1rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.feat-row {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.feat-row li {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.feat-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.15rem;
}

.feat-row strong {
  font-size: 0.85rem;
  color: var(--text);
}

.feat-row span:last-child {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  border: 1px solid #00000047;
  background: var(--accent-gradient);
  color: #0d1117;
  font-family: var(--font-he);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: inset 0 1px #ffffff73, 0 1px 2px #00000040;
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-gradient-hover);
}

.btn-primary:disabled {
  opacity: 0.85;
}

/* Compare table */
.compare {
  margin-bottom: 2rem;
}

.compare-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.compare-head h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.job-count {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.section-note {
  margin: 0 0 0.9rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.table-box {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-secondary);
}

.jobs-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.88rem;
}

.jobs-table th,
.jobs-table td {
  padding: 0.7rem 0.85rem;
  text-align: right;
  border-bottom: 1px solid var(--border-secondary);
  vertical-align: middle;
}

.jobs-table th {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  white-space: nowrap;
}

.jobs-table tbody tr:last-child td {
  border-bottom: 0;
}

.jobs-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.cell-link {
  color: var(--text);
  font-weight: 600;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

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

.diff {
  color: var(--text-muted);
}

/* Class sections + job cards */
.class-sec {
  padding-top: 1.5rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.class-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.35rem;
}

.class-head h2 {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1.35rem;
  font-weight: 700;
}

.class-meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.class-meta .soon {
  color: var(--text-secondary);
}

.class-blurb {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.job-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.job-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.9rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.job-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.job-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.job-body h3 {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.path {
  margin: 0.2rem 0 0.45rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.job-body > p:last-child {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.data-note {
  margin: 1.75rem 0 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.site-footer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  max-width: 40rem;
}



/* My character actions */
.my-char-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.my-char-summary {
  margin: 0;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
}

.class-sec.is-mine {
  outline: 1px solid var(--accent-border);
  outline-offset: 4px;
  border-radius: var(--radius);
}

.job-card.is-mine {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 1px var(--accent-bg);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text);
  font-family: var(--font-he);
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-ghost:hover {
  border-color: var(--text-muted);
  background: var(--bg-tertiary);
}

/* Character modal */
body.modal-open {
  overflow: hidden;
}

.char-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.62);
}

.char-modal-backdrop[hidden],
.char-modal[hidden] {
  display: none !important;
}

.char-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1rem;
  pointer-events: none;
}

.char-modal-panel {
  pointer-events: auto;
  width: min(420px, 100%);
  max-height: min(90vh, 640px);
  overflow: auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.15rem 1.2rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.char-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.char-modal-head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.char-modal-close {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
}

.char-modal-close:hover {
  color: var(--text);
  background: var(--bg-tertiary);
}

.char-modal-lede {
  margin: 0 0 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.char-field {
  margin: 0 0 0.95rem;
  padding: 0;
  border: 0;
  min-inline-size: 0;
}

.char-field legend {
  padding: 0;
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: none;
}

.char-class-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.char-class-opt {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-tertiary);
  color: var(--text);
  font-family: var(--font-he);
  font-weight: 600;
  font-size: 0.88rem;
  text-align: start;
}

.char-class-opt img {
  image-rendering: pixelated;
}

.char-class-opt:hover {
  border-color: var(--text-muted);
}

.char-class-opt.is-selected,
.char-class-opt[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-bg);
  box-shadow: inset 0 0 0 1px var(--accent-border);
}

.char-select,
.char-level {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-tertiary);
  color: var(--text);
  font-family: var(--font-he);
  font-size: 0.92rem;
}

.char-select:disabled {
  opacity: 0.65;
}

.char-level-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.char-level {
  width: 6.5rem;
  flex: 0 0 auto;
}

.char-level-hint {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.char-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-top: 1.1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

/* Toast */
#soon-toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--accent-gradient);
  color: #0d1117;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

#soon-toast[hidden] {
  display: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* —— Responsive —— */
@media (max-width: 960px) {
  .job-grid {
    grid-template-columns: 1fr;
  }

  .feat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .mobile-bar {
    display: flex;
  }

  .shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    inset-block: 0;
    /* dock to inline-start (right in RTL) */
    inset-inline-start: 0;
    inset-inline-end: auto;
    width: min(280px, 82vw);
    flex: none;
    /* slide off past the start edge */
    transform: translateX(110%);
    transition: transform 0.2s ease;
    border-inline-end: 1px solid var(--border);
    border-inline-start: 0;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.45);
  }

  html[dir="rtl"] .sidebar {
    transform: translateX(110%);
  }

  .sidebar.open,
  html[dir="rtl"] .sidebar.open {
    transform: translateX(0) !important;
  }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 35;
  }

  .sidebar-backdrop[hidden] {
    display: none;
  }

  .main-wrap {
    padding: 0.75rem 0.65rem 2rem;
  }

  .panel {
    width: 100%;
    padding: 1.1rem 1rem 1.4rem;
  }

  .feat-row {
    grid-template-columns: 1fr;
  }
}


/* —— Light theme —— */
html[data-theme="light"] {
  --bg: #f4f1ea;
  --bg-secondary: #fffdf8;
  --bg-tertiary: #f0ebe3;
  --bg-overlay: #f4f1eaf2;
  --text: #1f2328;
  --text-secondary: #424a53;
  --text-muted: #656d76;
  --border: #d0cbc2;
  --border-secondary: #e6e1d8;
  --accent: #c77700;
  --accent-hover: #a35f00;
  --accent-bg: #ffab4033;
  --accent-border: #c7770080;
  --success-text: #0d1117;
}

html[data-theme="light"] body {
  background-image:
    linear-gradient(180deg, #f4f1eacc 0%, #f4f1eae6 40%, #f4f1eaf2 100%),
    url("assets/henesys.webp");
}

html[data-theme="light"] .panel {
  background: color-mix(in srgb, var(--bg-secondary) 94%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 16px 48px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .jobs-table tbody tr:hover td {
  background: rgba(0, 0, 0, 0.03);
}

/* —— Real search —— */
.search-box {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.75rem;
}

.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-he);
  font-size: 0.78rem;
  outline: none;
  cursor: text;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-box kbd {
  margin-inline-start: auto;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  padding: 0.1rem 0.3rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-empty {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px dashed var(--border);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.is-filtered-out {
  display: none !important;
}

/* —— Guide blocks —— */
.guide-block {
  margin: 0 0 1.75rem;
  padding: 1.15rem 1.15rem 1.25rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.guide-block.guide-deep {
  background: var(--bg-secondary);
  border-color: var(--accent-border);
  box-shadow: inset 0 0 0 1px var(--accent-bg);
}

.guide-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  margin-bottom: 0.85rem;
}

.guide-head h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.guide-tag {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.guide-h3 {
  margin: 1.15rem 0 0.45rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
}

.guide-list {
  margin: 0 0 0.35rem;
  padding: 0 1.1rem 0 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.guide-list li {
  margin-bottom: 0.35rem;
}

.guide-steps {
  margin: 0 0 0.75rem;
  padding: 0 1.15rem 0 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.guide-steps li {
  margin-bottom: 0.55rem;
}

.guide-steps li strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.guide-steps.tight li {
  margin-bottom: 0.3rem;
}

.guide-steps.tight li strong {
  display: inline;
}

.guide-note {
  margin: 0.35rem 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.guide-cta {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.guide-cta a {
  color: var(--accent);
  font-weight: 600;
}

/* —— Job expand —— */
.job-card-toggle {
  align-self: flex-start;
  margin-top: 0.55rem;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-secondary);
  font-family: var(--font-he);
  font-size: 0.78rem;
  font-weight: 600;
}

.job-card-toggle:hover {
  color: var(--text);
  border-color: var(--accent-border);
}

.job-card.is-open {
  border-color: var(--accent-border);
}

.job-detail {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border-secondary);
}

.job-detail ul {
  margin: 0;
  padding: 0 1rem 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.job-detail li {
  margin-bottom: 0.3rem;
}

.job-detail a {
  color: var(--accent);
  font-weight: 600;
}

/* —— Character advice —— */
.char-advice {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.advice-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
}

.advice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.advice-card {
  padding: 0.7rem 0.8rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.advice-card strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.8rem;
  color: var(--text);
}

.advice-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.advice-link {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
}

.advice-link a {
  color: var(--accent);
  font-weight: 700;
}

.grind-row.is-active-level td {
  background: var(--accent-bg);
  color: var(--text);
}

.side-foot-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 960px) {
  .advice-grid {
    grid-template-columns: 1fr;
  }
}

.advice-card p .tip-line{display:block;margin-bottom:6px}
.advice-card p .tip-line:last-child{margin-bottom:0}
.advice-card p bdi{unicode-bidi:isolate}
