/* ==========================================================================
   Career Inside — Design Renewal Themes (A / B / C)
   Activated only when <html data-theme="a|b|c"> is present.
   Default design (no data-theme) remains untouched.
   ========================================================================== */

/* ==========================================================================
   THEME A: "Midnight Tech"
   Deep Navy (#0b1020) hero with restrained indigo/violet glow & micro-grid,
   crisp white cards, electric blue (#4f7cff) point accent, high trust & tech.
   ========================================================================== */
html[data-theme="a"] {
  --color-paper: #f3f6fc;
  --color-paper-2: #e8eef8;
  --color-paper-3: #dbe4f3;
  --color-card: #ffffff;

  --color-ink: #0b1020;
  --color-ink-2: #334155;
  --color-muted: #55657d;
  --color-rule: #d8e1f0;
  --color-rule-strong: #b4c3dc;

  /* Electric blue point (#4f7cff) + AA-compliant deep electric blue for white-text fills */
  --color-electric: #4f7cff;
  --color-accent: #2454e0;
  --color-accent-hover: #1b44c2;
  --color-accent-ink: #ffffff;
  --color-accent-soft: #e6eeff;
  --color-focus: #4f7cff;

  --color-error: #dc2626;
  --color-error-soft: #fef2f2;
  --color-success: #0d9488;
  --color-success-soft: #f0fdfa;

  /* Deterministic 6-tone company avatar palette (AA contrast >= 4.5:1) */
  --avatar-1-bg: #162447;
  --avatar-1-fg: #e8f0fe;
  --avatar-2-bg: #1e3a8a;
  --avatar-2-fg: #eff6ff;
  --avatar-3-bg: #0f4c5c;
  --avatar-3-fg: #e6fffa;
  --avatar-4-bg: #312e81;
  --avatar-4-fg: #eef2ff;
  --avatar-5-bg: #1e293b;
  --avatar-5-fg: #93c5fd;
  --avatar-6-bg: #155e75;
  --avatar-6-fg: #ecfeff;

  --font-display: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", system-ui, sans-serif;
  --radius-card: 12px;
  --radius-input: 8px;
  --shadow-card: 0 2px 10px rgba(11, 16, 32, 0.05), 0 1px 2px rgba(11, 16, 32, 0.04);
  --shadow-float: 0 14px 32px rgba(11, 16, 32, 0.14);
  --tracking-display: -0.025em;
}

/* --- A: Topbar (Deep Navy command bar + brightened logo) --- */
html[data-theme="a"] .topbar {
  background: rgba(11, 16, 32, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(79, 124, 255, 0.24);
  box-shadow: 0 4px 20px rgba(11, 16, 32, 0.25);
}

html[data-theme="a"] .brand {
  color: #f8fafc;
}

html[data-theme="a"] .brand-logo {
  border-radius: 9px;
  border: 1px solid rgba(79, 124, 255, 0.55);
  box-shadow: 0 0 0 2px rgba(79, 124, 255, 0.18), 0 2px 8px rgba(79, 124, 255, 0.28);
  filter: invert(1) hue-rotate(195deg) saturate(1.35) brightness(1.06);
}

html[data-theme="a"] .nav-link {
  color: #cbd5e1;
  font-weight: 500;
}

html[data-theme="a"] .nav-link:hover {
  background: rgba(79, 124, 255, 0.14);
  color: #ffffff;
}

html[data-theme="a"] .nav-link.is-active {
  background: rgba(79, 124, 255, 0.22);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(79, 124, 255, 0.45);
}

html[data-theme="a"] .nav-count {
  background: #4f7cff;
  color: #0b1020;
}

html[data-theme="a"] .header-search-input {
  background: #141d35;
  border-color: rgba(148, 163, 184, 0.32);
  color: #f8fafc;
}

html[data-theme="a"] .header-search-input::placeholder {
  color: #94a3b8;
}

html[data-theme="a"] .header-search-input:focus-visible {
  background: #182340;
  border-color: #4f7cff;
  outline-color: #4f7cff;
}

html[data-theme="a"] .header-search-btn {
  color: #94a3b8;
}

html[data-theme="a"] .header-search-btn:hover {
  color: #ffffff;
}

html[data-theme="a"] .topbar .btn-quiet {
  border-color: rgba(148, 163, 184, 0.38);
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.04);
}

html[data-theme="a"] .topbar .btn-quiet:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  border-color: #94a3b8;
}

html[data-theme="a"] .topbar .btn-primary {
  background: #4f7cff;
  border-color: #4f7cff;
  color: #0b1020;
  font-weight: 800;
}

html[data-theme="a"] .topbar .btn-primary:hover:not(:disabled) {
  background: #6b91ff;
  border-color: #6b91ff;
}

html[data-theme="a"] .topbar .user-info {
  color: #f8fafc;
}

html[data-theme="a"] .topbar .user-info:hover {
  background: rgba(255, 255, 255, 0.08);
}

html[data-theme="a"] .topbar .badge-plan {
  background: rgba(79, 124, 255, 0.2);
  border-color: rgba(79, 124, 255, 0.45);
  color: #bfdbfe;
}

/* --- A: Hero (#0b1020 Deep Navy + restrained indigo/violet gradient + micro grid) --- */
html[data-theme="a"] .home-hero {
  position: relative;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
  padding: var(--space-2xl) var(--gutter) var(--space-xl);
  border-radius: 18px;
  background-color: #0b1020;
  background-image:
    radial-gradient(circle at 16% 18%, rgba(79, 124, 255, 0.22) 0%, transparent 46%),
    radial-gradient(circle at 86% 24%, rgba(99, 102, 241, 0.16) 0%, transparent 42%),
    linear-gradient(to right, rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    linear-gradient(165deg, #0b1020 0%, #101830 60%, #0d1326 100%);
  background-size: 100% 100%, 100% 100%, 28px 28px, 28px 28px, 100% 100%;
  box-shadow: 0 20px 44px -12px rgba(11, 16, 32, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  overflow: hidden;
}

html[data-theme="a"] .home-hero-grid {
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  padding-bottom: var(--space-xl);
}

html[data-theme="a"] .hero-title {
  color: #f8fafc;
  font-size: clamp(2rem, 3.2vw, 2.65rem);
  letter-spacing: -0.03em;
}

html[data-theme="a"] .hero-lead {
  color: #cbd5e1;
}

html[data-theme="a"] .hero-search-form {
  background: rgba(15, 23, 42, 0.85);
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(79, 124, 255, 0.38);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

html[data-theme="a"] .hero-search-input {
  background: transparent;
  border-color: transparent;
  color: #ffffff;
}

html[data-theme="a"] .hero-search-input::placeholder {
  color: #94a3b8;
}

html[data-theme="a"] .hero-search-input:hover,
html[data-theme="a"] .hero-search-input:focus-visible {
  background: rgba(255, 255, 255, 0.04);
  border-color: transparent;
  outline-color: #4f7cff;
}

html[data-theme="a"] .hero-search-form .btn-primary {
  background: #4f7cff;
  border-color: #4f7cff;
  color: #0b1020;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(79, 124, 255, 0.35);
}

html[data-theme="a"] .hero-search-form .btn-primary:hover:not(:disabled) {
  background: #6b91ff;
  border-color: #6b91ff;
}

html[data-theme="a"] .home-hero-ledger {
  background: rgba(20, 29, 53, 0.82);
  border: 1px solid rgba(79, 124, 255, 0.28);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-theme="a"] .hero-stat-item {
  border-left-color: rgba(148, 163, 184, 0.2);
}

html[data-theme="a"] .hero-stat-item dt {
  color: #94a3b8;
  font-weight: 600;
}

html[data-theme="a"] .hero-stat-item dd {
  color: #7da0ff;
  font-family: var(--font-outlier);
  font-size: 1.55rem;
}

/* --- A: Category Chips --- */
html[data-theme="a"] .home-hero .category-chip {
  background: rgba(22, 32, 58, 0.9);
  border-color: rgba(148, 163, 184, 0.28);
  color: #dbeafe;
  font-weight: 500;
}

html[data-theme="a"] .home-hero .category-chip:hover {
  background: rgba(79, 124, 255, 0.2);
  border-color: #4f7cff;
  color: #ffffff;
}

html[data-theme="a"] .home-hero .category-chip.is-active {
  background: #4f7cff;
  border-color: #4f7cff;
  color: #0b1020;
  font-weight: 800;
  box-shadow: 0 0 14px rgba(79, 124, 255, 0.4);
}

html[data-theme="a"] .jobs-page .category-chip {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #334155;
  font-weight: 500;
}

html[data-theme="a"] .jobs-page .category-chip:hover {
  border-color: #4f7cff;
  color: #0b1020;
  background: #eef4ff;
}

html[data-theme="a"] .jobs-page .category-chip.is-active {
  background: #0b1020;
  border-color: #4f7cff;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(11, 16, 32, 0.16);
}

/* --- A: Filter Bar & Inputs --- */
html[data-theme="a"] .filter-bar {
  background: #ffffff;
  border: 1px solid #d0dcf0;
  box-shadow: var(--shadow-card);
  padding: var(--space-lg);
}

html[data-theme="a"] .form-input,
html[data-theme="a"] .form-select,
html[data-theme="a"] .remote-check-label {
  border-color: #c5d2e8;
  background: #f8faff;
}

html[data-theme="a"] .form-input:focus-visible,
html[data-theme="a"] .form-select:focus-visible {
  background: #ffffff;
  border-color: #2454e0;
  outline-color: #4f7cff;
}

/* --- A: Job Cards, Company Tiles & Platform Cards --- */
html[data-theme="a"] .job-card,
html[data-theme="a"] .platform-link-card,
html[data-theme="a"] .package-list-card {
  background: #ffffff;
  border: 1px solid #dbe4f2;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out);
}

html[data-theme="a"] .job-card:hover,
html[data-theme="a"] .package-list-card:hover {
  border-color: #4f7cff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -6px rgba(11, 16, 32, 0.12), 0 0 0 1px rgba(79, 124, 255, 0.25);
}

html[data-theme="a"] .company-avatar {
  border-radius: 10px;
  font-family: var(--font-outlier);
  letter-spacing: -0.02em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

html[data-theme="a"] .meta-tag {
  background: #eef3fb;
  color: #2c3e58;
  border: 1px solid #dce5f4;
  font-weight: 500;
}

html[data-theme="a"] .meta-tag.tag-remote {
  background: #e6eeff;
  border-color: #b8cfff;
  color: #193cb8;
}

html[data-theme="a"] .company-tile {
  background: #ffffff;
  border: 1px solid #dbe4f2;
  box-shadow: var(--shadow-card);
}

html[data-theme="a"] .company-tile:hover {
  border-color: #4f7cff;
  background: #f8faff;
}

/* --- A: Detail Page & Sticky Apply Card --- */
html[data-theme="a"] .detail-header {
  border-bottom: 2px solid #0b1020;
}

html[data-theme="a"] .detail-summary-section {
  background: #ffffff;
  border: 1px solid #dbe4f2;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

html[data-theme="a"] .sticky-apply-card {
  background: #ffffff;
  border: 1px solid #c8d6ec;
  border-top: 4px solid #4f7cff;
  box-shadow: 0 12px 30px rgba(11, 16, 32, 0.08);
}

html[data-theme="a"] .ai-package-box {
  background: #0b1020;
  color: #f8fafc;
  border-top: 3px solid #4f7cff;
  border-bottom: 0;
  border-radius: 10px;
}

html[data-theme="a"] .ai-box-title {
  color: #ffffff;
}

html[data-theme="a"] .ai-quota-badge {
  background: rgba(79, 124, 255, 0.22);
  color: #93c5fd;
  border: 1px solid rgba(79, 124, 255, 0.45);
}

html[data-theme="a"] .fit-preview-row {
  background: #151f38;
  border-color: rgba(148, 163, 184, 0.24);
}

html[data-theme="a"] .fit-summary-text,
html[data-theme="a"] .ai-quota-sub {
  color: #cbd5e1;
}

html[data-theme="a"] .fit-preview-btn {
  color: #7da0ff;
}

html[data-theme="a"] .ai-package-box .btn-primary {
  background: #4f7cff;
  border-color: #4f7cff;
  color: #0b1020;
  font-weight: 800;
}

html[data-theme="a"] .ai-package-box .btn-primary:hover:not(:disabled) {
  background: #6b91ff;
  border-color: #6b91ff;
}

/* --- A: Footer --- */
html[data-theme="a"] .site-footer {
  background: #0b1020;
  border-top: 1px solid rgba(79, 124, 255, 0.24);
  color: #cbd5e1;
}

html[data-theme="a"] .footer-title {
  color: #ffffff;
}

html[data-theme="a"] .footer-desc,
html[data-theme="a"] .footer-link {
  color: #cbd5e1;
}

html[data-theme="a"] .footer-link:hover {
  color: #7da0ff;
}

html[data-theme="a"] .footer-copy,
html[data-theme="a"] .footer-copy-inline {
  color: #94a3b8;
}


/* ==========================================================================
   THEME B: "Warm Editorial Color"
   Warm Ivory base enriched with Sage Green, Terracotta, and Mustard Gold
   secondary colors on category chips & section bands, large editorial serif
   hero headline + CSS color-block geometric illustration, warm company avatars.
   ========================================================================== */
html[data-theme="b"] {
  --color-paper: #f7f3eb;
  --color-paper-2: #ede6d8;
  --color-paper-3: #e2d8c5;
  --color-card: #fdfbf7;

  --color-ink: #1e1b18;
  --color-ink-2: #3d3730;
  --color-muted: #635a4f;
  --color-rule: #d5cbb8;
  --color-rule-strong: #b2a48d;

  /* Editorial Trio: Terracotta + Sage Green + Mustard */
  --editorial-terracotta: #b54422;
  --editorial-terracotta-soft: #f7e3dc;
  --editorial-sage: #2b5942;
  --editorial-sage-soft: #e2efe7;
  --editorial-mustard: #7a5200;
  --editorial-mustard-fill: #e0b13b;
  --editorial-mustard-soft: #f7edd0;

  --color-accent: #b54422;
  --color-accent-hover: #963618;
  --color-accent-ink: #fdfbf7;
  --color-accent-soft: #f7e3dc;
  --color-focus: #2b5942;

  --color-error: #b91c1c;
  --color-error-soft: #fde8e8;
  --color-success: #2b5942;
  --color-success-soft: #e2efe7;

  /* Deterministic 6-tone warm pigment company avatars (AA contrast >= 4.5:1) */
  --avatar-1-bg: #a83f20; /* Terracotta */
  --avatar-1-fg: #fff8f5;
  --avatar-2-bg: #26543d; /* Sage Forest */
  --avatar-2-fg: #f2fbf6;
  --avatar-3-bg: #785004; /* Deep Mustard Ochre */
  --avatar-3-fg: #fffbeb;
  --avatar-4-bg: #264653; /* Editorial Petrol */
  --avatar-4-fg: #f0f9ff;
  --avatar-5-bg: #6b2d46; /* Warm Bordeaux */
  --avatar-5-fg: #fdf2f7;
  --avatar-6-bg: #465326; /* Olive Moss */
  --avatar-6-fg: #f7fee7;

  --font-display: "Iowan Old Style", "Nanum Myeongjo", "AppleMyungjo", "Batang", Georgia, serif;
  --radius-card: 8px;
  --radius-input: 5px;
  --shadow-card: 0 3px 0 rgba(30, 27, 24, 0.06);
  --shadow-float: 0 12px 28px rgba(30, 27, 24, 0.12);
}

/* --- B: Topbar --- */
html[data-theme="b"] .topbar {
  background: #f7f3eb;
  border-bottom: 2px solid #1e1b18;
}

html[data-theme="b"] .brand-logo {
  border-radius: 6px;
  box-shadow: 2px 2px 0 #b54422;
}

html[data-theme="b"] .brand-title {
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

html[data-theme="b"] .nav-link {
  font-weight: 500;
}

html[data-theme="b"] .nav-link:hover {
  background: var(--editorial-sage-soft);
  color: var(--editorial-sage);
}

html[data-theme="b"] .nav-link.is-active {
  background: var(--editorial-sage);
  color: #fdfbf7;
}

html[data-theme="b"] .nav-count {
  background: var(--editorial-mustard-soft);
  color: var(--editorial-mustard);
  border: 1px solid #d4b459;
}

html[data-theme="b"] .header-search-input {
  background: #fdfbf7;
  border-color: #9e907a;
}

/* --- B: Hero (Large serif headline + CSS geometric color-block illustration) --- */
html[data-theme="b"] .home-hero {
  position: relative;
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-xl);
}

html[data-theme="b"] .home-hero-grid {
  position: relative;
  border-bottom: 2px solid #1e1b18;
  padding-bottom: var(--space-xl);
  align-items: stretch;
}

html[data-theme="b"] .home-hero-copy {
  position: relative;
  padding-right: var(--space-md);
}

html[data-theme="b"] .home-hero-copy::before {
  content: "OFFICIAL CAREER INDEX · ARCHIVE";
  display: inline-block;
  margin-bottom: var(--space-sm);
  padding: 3px 10px;
  background: var(--editorial-sage-soft);
  border: 1px solid #8eb59f;
  border-radius: 999px;
  color: var(--editorial-sage);
  font-family: var(--font-outlier);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

html[data-theme="b"] .hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 3.6vw, 3.05rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: #1e1b18;
}

html[data-theme="b"] .hero-lead {
  color: #3d3730;
  font-size: 1.08rem;
}

html[data-theme="b"] .hero-search-form {
  background: #fdfbf7;
  padding: 6px;
  border: 2px solid #1e1b18;
  border-radius: 8px;
  box-shadow: 4px 4px 0 #2b5942;
}

html[data-theme="b"] .hero-search-input {
  border-color: transparent;
  background: transparent;
}

html[data-theme="b"] .hero-search-input:hover,
html[data-theme="b"] .hero-search-input:focus-visible {
  background: #f7f3eb;
  border-color: transparent;
}

/* CSS Color-Block Geometric Illustration on the Hero Ledger */
html[data-theme="b"] .home-hero-ledger {
  position: relative;
  overflow: hidden;
  background: #fdfbf7;
  border: 2px solid #1e1b18;
  border-radius: 10px;
  padding: 108px var(--space-lg) var(--space-lg);
  box-shadow: 6px 6px 0 #e0b13b;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Geometric color-block art band (Sage arch + Terracotta sun + Mustard block) */
html[data-theme="b"] .home-hero-ledger::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 86px;
  background:
    radial-gradient(circle at 78% 46%, #b54422 0 24px, transparent 25px),
    radial-gradient(circle at 26% 100%, #2b5942 0 48px, transparent 49px),
    linear-gradient(90deg, #e2efe7 0% 52%, #f7edd0 52% 80%, #f7e3dc 80% 100%);
  border-bottom: 2px solid #1e1b18;
}

html[data-theme="b"] .home-hero-ledger::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 52%;
  width: 38px;
  height: 50px;
  background: #e0b13b;
  border: 2px solid #1e1b18;
  border-radius: 4px;
  transform: translateX(-50%);
}

html[data-theme="b"] .hero-stats {
  position: relative;
  z-index: 1;
}

html[data-theme="b"] .hero-stat-item dd {
  color: #1e1b18;
  font-size: 1.55rem;
}

html[data-theme="b"] .hero-stat-item:nth-child(1) dd {
  color: var(--editorial-terracotta);
}

html[data-theme="b"] .hero-stat-item:nth-child(2) dd {
  color: var(--editorial-sage);
}

html[data-theme="b"] .hero-stat-item:nth-child(3) dd {
  color: var(--editorial-mustard);
}

/* --- B: Category Chips (Sage / Terracotta / Mustard rotation) --- */
html[data-theme="b"] .category-chip {
  font-weight: 600;
  border-width: 1.5px;
}

html[data-theme="b"] .category-chip:nth-child(3n + 1) {
  background: var(--editorial-sage-soft);
  border-color: #87b39b;
  color: #1d4430;
}

html[data-theme="b"] .category-chip:nth-child(3n + 2) {
  background: var(--editorial-terracotta-soft);
  border-color: #d89880;
  color: #7c2b12;
}

html[data-theme="b"] .category-chip:nth-child(3n + 3) {
  background: var(--editorial-mustard-soft);
  border-color: #d4b257;
  color: #593b00;
}

html[data-theme="b"] .category-chip:hover {
  transform: translateY(-1px);
  border-color: #1e1b18;
  color: #1e1b18;
}

html[data-theme="b"] .category-chip.is-active {
  background: #1e1b18;
  border-color: #1e1b18;
  color: #fdfbf7;
  box-shadow: 2px 2px 0 #b54422;
}

/* --- B: Section Backgrounds (Sage, Mustard, Terracotta-ivory bands) --- */
html[data-theme="b"] #home-recommend-section.band-tinted {
  background: #e5efe9;
  border-block: 1.5px solid #b5cebf;
}

html[data-theme="b"] .band-ruled {
  background: #f3ead4;
  border-top: 1.5px solid #d5c295;
  border-bottom: 1.5px solid #d5c295;
  border-radius: 12px;
  margin-block: var(--space-lg);
}

html[data-theme="b"] .band-tinted:not(#home-recommend-section) {
  background: #f4e6de;
  border-block: 1.5px solid #dcbfb0;
}

html[data-theme="b"] .callout-bar {
  background: #fdfbf7;
  border: 1.5px solid #1e1b18;
  border-left: 6px solid var(--editorial-sage);
  border-radius: var(--radius-card);
}

/* --- B: Filter Bar --- */
html[data-theme="b"] .filter-bar {
  background: #efe7d6;
  border: 1.5px solid #1e1b18;
  box-shadow: 4px 4px 0 rgba(43, 89, 66, 0.18);
}

/* --- B: Job Cards & Company Avatars --- */
html[data-theme="b"] .job-card {
  background: #fdfbf7;
  border: 1.5px solid #cfc3ae;
  border-top: 3px solid #1e1b18;
  box-shadow: var(--shadow-card);
}

html[data-theme="b"] .job-card:nth-child(3n + 1) {
  border-top-color: var(--editorial-sage);
}

html[data-theme="b"] .job-card:nth-child(3n + 2) {
  border-top-color: var(--editorial-terracotta);
}

html[data-theme="b"] .job-card:nth-child(3n + 3) {
  border-top-color: #b88400;
}

html[data-theme="b"] .job-card:hover {
  border-color: #1e1b18;
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 #1e1b18;
}

html[data-theme="b"] .company-avatar {
  border-radius: 8px;
  border: 1.5px solid rgba(30, 27, 24, 0.2);
  box-shadow: 2px 2px 0 rgba(30, 27, 24, 0.14);
}

html[data-theme="b"] .meta-tag {
  background: #efe8da;
  color: #3d3730;
  border: 1px solid #d6cbb8;
}

html[data-theme="b"] .meta-tag.tag-remote {
  background: var(--editorial-sage-soft);
  border-color: #8cb59e;
  color: #1d4430;
}

html[data-theme="b"] .company-tile {
  background: #fdfbf7;
  border: 1.5px solid #cabd9f;
}

html[data-theme="b"] .company-tile:hover {
  background: var(--editorial-sage-soft);
  border-color: var(--editorial-sage);
}

html[data-theme="b"] .company-tile-count {
  color: var(--editorial-sage);
}

/* --- B: Detail Sticky Apply Card & Footer --- */
html[data-theme="b"] .detail-summary-section {
  background: #fdfbf7;
  border: 1.5px solid #cfc3ae;
  border-left: 5px solid var(--editorial-sage);
}

html[data-theme="b"] .sticky-apply-card {
  background: #fdfbf7;
  border: 2px solid #1e1b18;
  box-shadow: 6px 6px 0 var(--editorial-sage);
}

html[data-theme="b"] .ai-package-box {
  background: #f5ecda;
  border-top: 3px solid var(--editorial-terracotta);
  border-bottom: 1px solid #d4c3a3;
}

html[data-theme="b"] .ai-quota-badge {
  background: var(--editorial-sage-soft);
  color: var(--editorial-sage);
  border: 1px solid #8cb59e;
}

html[data-theme="b"] .site-footer {
  background: #e9e0ce;
  border-top: 2px solid #1e1b18;
}


/* ==========================================================================
   THEME C: "Bright Product"
   Pure white background, vibrant Deep Indigo (#4338ca) + Mint (#10b981)
   brand system, soft elevation shadows, rounded cards, color-coded tags,
   and soft color-blur circular orbs in the hero.
   ========================================================================== */
html[data-theme="c"] {
  --color-paper: #ffffff;
  --color-paper-2: #f8fafc;
  --color-paper-3: #f1f5f9;
  --color-card: #ffffff;

  --color-ink: #0f172a;
  --color-ink-2: #334155;
  --color-muted: #58677d;
  --color-rule: #e2e8f0;
  --color-rule-strong: #cbd5e1;

  /* Deep Indigo (#4338ca) primary + Mint (#10b981 / AA text #047857) secondary */
  --color-accent: #4338ca;
  --color-accent-hover: #3730a3;
  --color-accent-ink: #ffffff;
  --color-accent-soft: #eef2ff;
  --color-focus: #4338ca;

  --color-mint: #10b981;
  --color-mint-ink: #065f46;
  --color-mint-soft: #ecfdf5;
  --color-mint-border: #a7f3d0;

  --color-error: #e11d48;
  --color-error-soft: #fff1f2;
  --color-success: #047857;
  --color-success-soft: #ecfdf5;

  /* Deterministic 6-tone lively product avatars (AA contrast >= 4.5:1) */
  --avatar-1-bg: #4338ca; /* Deep Indigo */
  --avatar-1-fg: #ffffff;
  --avatar-2-bg: #047857; /* Rich Mint Emerald */
  --avatar-2-fg: #ecfdf5;
  --avatar-3-bg: #0369a1; /* Ocean Sky */
  --avatar-3-fg: #f0f9ff;
  --avatar-4-bg: #b45309; /* Warm Amber */
  --avatar-4-fg: #fffbeb;
  --avatar-5-bg: #be123c; /* Vibrant Rose */
  --avatar-5-fg: #fff1f2;
  --avatar-6-bg: #0f766e; /* Teal Cyan */
  --avatar-6-fg: #f0fdfa;

  --font-display: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", system-ui, sans-serif;
  --radius-card: 18px;
  --radius-input: 12px;
  --radius-pill: 999px;
  --shadow-card: 0 8px 24px -4px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(67, 56, 202, 0.04);
  --shadow-float: 0 20px 38px -10px rgba(67, 56, 202, 0.16);
  --tracking-display: -0.025em;
}

/* --- C: Topbar --- */
html[data-theme="c"] .topbar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 12px rgba(15, 23, 42, 0.04);
}

html[data-theme="c"] .brand-logo {
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(67, 56, 202, 0.22);
  filter: hue-rotate(215deg) saturate(1.3) brightness(1.08);
}

html[data-theme="c"] .brand-title {
  color: #0f172a;
  font-weight: 800;
}

html[data-theme="c"] .nav-link {
  border-radius: var(--radius-pill);
  padding-inline: var(--space-md);
  font-weight: 600;
  color: #475569;
}

html[data-theme="c"] .nav-link:hover {
  background: #f1f5f9;
  color: #4338ca;
}

html[data-theme="c"] .nav-link.is-active {
  background: #eef2ff;
  color: #4338ca;
}

html[data-theme="c"] .nav-count {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

html[data-theme="c"] .header-search-input {
  border-radius: var(--radius-pill);
  background: #f8fafc;
  border-color: #cbd5e1;
  padding-left: var(--space-md);
}

html[data-theme="c"] .header-search-input:focus-visible {
  background: #ffffff;
  border-color: #4338ca;
  box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.14);
}

html[data-theme="c"] .btn {
  border-radius: var(--radius-input);
}

html[data-theme="c"] .btn-primary {
  background: #4338ca;
  border-color: #4338ca;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(67, 56, 202, 0.24);
}

html[data-theme="c"] .btn-primary:hover:not(:disabled) {
  background: #3730a3;
  border-color: #3730a3;
  box-shadow: 0 6px 16px rgba(67, 56, 202, 0.32);
}

html[data-theme="c"] .btn-quiet {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #1e293b;
}

html[data-theme="c"] .btn-quiet:hover:not(:disabled) {
  border-color: #4338ca;
  color: #4338ca;
  background: #f5f7ff;
}

/* --- C: Hero with Soft Color Blur Circular Orbs --- */
html[data-theme="c"] .home-hero {
  position: relative;
  overflow: hidden;
  margin-top: var(--space-md);
  padding: var(--space-2xl) var(--gutter) var(--space-xl);
  border-radius: 24px;
  background: linear-gradient(180deg, #fafbff 0%, #ffffff 100%);
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-card);
  isolation: isolate;
}

/* Subtle blurred circular orbs (Indigo #4338ca + Mint #10b981) */
html[data-theme="c"] .home-hero::before,
html[data-theme="c"] .home-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(42px);
}

html[data-theme="c"] .home-hero::before {
  width: 340px;
  height: 340px;
  top: -110px;
  left: -60px;
  background: radial-gradient(circle, rgba(67, 56, 202, 0.16) 0%, rgba(67, 56, 202, 0) 72%);
}

html[data-theme="c"] .home-hero::after {
  width: 360px;
  height: 360px;
  bottom: -120px;
  right: 4%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0) 72%);
}

html[data-theme="c"] .home-hero-grid {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: var(--space-xl);
}

html[data-theme="c"] .hero-title {
  color: #0f172a;
  font-weight: 800;
  letter-spacing: -0.03em;
}

html[data-theme="c"] .hero-search-form {
  background: #ffffff;
  padding: 6px;
  border-radius: var(--radius-pill);
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 10px 26px -6px rgba(67, 56, 202, 0.12);
}

html[data-theme="c"] .hero-search-input {
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  padding-left: var(--space-md);
}

html[data-theme="c"] .hero-search-input:hover,
html[data-theme="c"] .hero-search-input:focus-visible {
  background: transparent;
  outline: none;
}

html[data-theme="c"] .hero-search-form:focus-within {
  border-color: #4338ca;
  box-shadow: 0 0 0 4px rgba(67, 56, 202, 0.12), 0 12px 28px -6px rgba(67, 56, 202, 0.16);
}

html[data-theme="c"] .hero-search-form .btn-primary {
  border-radius: var(--radius-pill);
  padding-inline: var(--space-xl);
}

html[data-theme="c"] .home-hero-ledger {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid #dbe4f0;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

html[data-theme="c"] .hero-stat-item dd {
  color: #4338ca;
  font-weight: 800;
}

html[data-theme="c"] .hero-stat-item:nth-child(2) dd {
  color: #047857;
}

/* --- C: Category Chips --- */
html[data-theme="c"] .category-chip {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

html[data-theme="c"] .category-chip:hover {
  border-color: #4338ca;
  color: #4338ca;
  background: #eef2ff;
}

html[data-theme="c"] .category-chip.is-active {
  background: #4338ca;
  border-color: #4338ca;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(67, 56, 202, 0.25);
}

html[data-theme="c"] .category-chip.is-active .chip-facet-count {
  background: rgba(255, 255, 255, 0.2);
  padding: 1px 6px;
  border-radius: var(--radius-pill);
}

/* --- C: Filter Bar --- */
html[data-theme="c"] .filter-bar {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--space-lg);
}

/* --- C: Rounded Job Cards & Color Tags --- */
html[data-theme="c"] .job-card,
html[data-theme="c"] .platform-link-card,
html[data-theme="c"] .package-list-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out);
}

html[data-theme="c"] .job-card:hover,
html[data-theme="c"] .package-list-card:hover {
  border-color: #a5b4fc;
  transform: translateY(-3px);
  box-shadow: var(--shadow-float);
}

html[data-theme="c"] .company-avatar {
  border-radius: 12px;
}

html[data-theme="c"] .bookmark-icon-btn {
  border-radius: 10px;
  background: #f8fafc;
}

html[data-theme="c"] .bookmark-icon-btn.is-bookmarked {
  background: #ecfdf5;
  border-color: #10b981;
  color: #047857;
}

/* Color-coded meta tags */
html[data-theme="c"] .meta-tag {
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  font-weight: 600;
  background: #eef2ff;
  color: #3730a3;
}

html[data-theme="c"] .meta-tag:nth-child(2):not(.tag-remote) {
  background: #f0f9ff;
  color: #0369a1;
}

html[data-theme="c"] .meta-tag:nth-child(3):not(.tag-remote),
html[data-theme="c"] .meta-tag:nth-child(4):not(.tag-remote) {
  background: #fef3c7;
  color: #92400e;
}

html[data-theme="c"] .meta-tag.tag-remote {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

html[data-theme="c"] .company-tile {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: var(--shadow-card);
}

html[data-theme="c"] .company-tile:hover {
  border-color: #10b981;
  background: #f0fdf4;
}

html[data-theme="c"] .company-tile-count {
  color: #047857;
  background: #ecfdf5;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

/* --- C: Detail Sticky Apply Card & Footer --- */
html[data-theme="c"] .detail-header {
  border-bottom: 1px solid #e2e8f0;
}

html[data-theme="c"] .detail-summary-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-card);
}

html[data-theme="c"] .sticky-apply-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-float);
}

html[data-theme="c"] .ai-package-box {
  background: linear-gradient(180deg, #eef2ff 0%, #ecfdf5 100%);
  border: 1px solid #c7d2fe;
  border-top: 3px solid #4338ca;
  border-radius: 14px;
}

html[data-theme="c"] .ai-quota-badge {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

html[data-theme="c"] .site-footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}


/* ==========================================================================
   Responsive Adjustments for Themes A / B / C
   ========================================================================== */
@media (max-width: 68rem) {
  html[data-theme="a"] .home-hero,
  html[data-theme="c"] .home-hero {
    margin-top: var(--space-sm);
    padding: var(--space-xl) var(--gutter);
    border-radius: 14px;
  }

  html[data-theme="b"] .home-hero-ledger {
    padding-top: 96px;
  }
}

@media (max-width: 40rem) {
  html[data-theme="a"] .home-hero,
  html[data-theme="c"] .home-hero {
    border-radius: 12px;
    padding: var(--space-lg) var(--gutter);
  }

  html[data-theme="a"] .hero-search-form,
  html[data-theme="b"] .hero-search-form,
  html[data-theme="c"] .hero-search-form {
    border-radius: 12px;
    padding: var(--space-xs);
  }

  html[data-theme="c"] .hero-search-form .btn-primary {
    border-radius: 10px;
    width: 100%;
  }

  html[data-theme="a"] .hero-stats,
  html[data-theme="b"] .hero-stats,
  html[data-theme="c"] .hero-stats {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-sm);
  }

  html[data-theme="a"] .hero-stat-item,
  html[data-theme="b"] .hero-stat-item,
  html[data-theme="c"] .hero-stat-item {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--color-rule);
    padding-top: var(--space-xs);
  }

  html[data-theme="a"] .hero-stat-item:first-child,
  html[data-theme="b"] .hero-stat-item:first-child,
  html[data-theme="c"] .hero-stat-item:first-child {
    border-top: 0;
    padding-top: 0;
  }

  html[data-theme="a"] .hero-stat-item {
    border-top-color: rgba(148, 163, 184, 0.2);
  }
}
