:root {
  --bg: #F7F5F0;
  --bg-tinted: #EFECE5;
  --surface: #FFFFFF;
  --surface-subtle: #FAF8F4;
  --ink: #17202A;
  --ink-muted: #526071;
  --ink-soft: #6C7989;
  --brand: #1E3A5F;
  --brand-hover: #162C49;
  --brand-soft: rgba(30, 58, 95, 0.08);
  --accent: #C24D2C;
  --accent-soft: rgba(194, 77, 44, 0.11);
  --success: #1F6F54;
  --success-soft: rgba(31, 111, 84, 0.11);
  --border: rgba(23, 32, 42, 0.09);
  --border-strong: rgba(23, 32, 42, 0.16);
  --shadow-card: 0 1px 2px rgba(23, 32, 42, 0.04), 0 6px 18px rgba(23, 32, 42, 0.035);
  --shadow-modal: 0 20px 50px rgba(23, 32, 42, 0.18), 0 1px 3px rgba(23, 32, 42, 0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
  background-color: var(--bg);
}

body {
  margin: 0;
  font-family: "Pretendard Variable", "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background-color: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  touch-action: manipulation;
  user-select: none;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: rgba(23, 32, 42, 0.06);
  padding: 0.1em 0.35em;
  border-radius: 5px;
}

.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;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 1000;
}
.skip-link:focus {
  left: 0;
}

.container {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 245, 240, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top);
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 15px;
  letter-spacing: -0.02em;
}

.brand-text small {
  font-size: 12px;
  color: var(--ink-muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out);
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover {
    background: var(--brand-soft);
    color: var(--brand);
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 140ms var(--ease-out), background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), color 160ms var(--ease-out);
}

.btn:active {
  transform: scale(0.97);
}

.btn:focus-visible,
.tab-btn:focus-visible,
.stat-card:focus-visible,
.icon-close:focus-visible,
.link-btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: var(--brand-hover);
  }
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--ink);
}

@media (hover: hover) and (pointer: fine) {
  .btn-secondary:hover {
    background: var(--surface-subtle);
    border-color: rgba(23, 32, 42, 0.28);
  }
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--ink-muted);
}

@media (hover: hover) and (pointer: fine) {
  .btn-ghost:hover {
    background: var(--brand-soft);
    color: var(--brand);
    border-color: transparent;
  }
}

.btn-sm {
  padding: 8px 13px;
  font-size: 13px;
}

.btn-xs {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 7px;
}

.btn-bookmark.is-saved {
  background: var(--accent-soft);
  border-color: rgba(194, 77, 44, 0.25);
  color: var(--accent);
}

/* Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
}

.pill-indigo {
  background: var(--brand-soft);
  color: var(--brand);
}

.pill-accent {
  background: var(--accent-soft);
  color: var(--accent);
}

.pill-success {
  background: var(--success-soft);
  color: var(--success);
}

.pill-neutral {
  background: rgba(23, 32, 42, 0.06);
  color: var(--ink-muted);
}

.pill-sponsored {
  background: #FFF3D6;
  color: #8A5300;
}

/* Hero */
.hero {
  padding: 36px 0 20px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 24px;
  align-items: end;
}

.eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.24;
  letter-spacing: -0.025em;
  word-break: keep-all;
}

.hero-lead {
  margin: 0;
  max-width: 58ch;
  color: var(--ink-muted);
  font-size: 15px;
  word-break: keep-all;
}

.stats-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.stat-card {
  text-align: left;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 140ms var(--ease-out), border-color 160ms var(--ease-out);
}

.stat-card:active {
  transform: scale(0.98);
}

@media (hover: hover) and (pointer: fine) {
  .stat-card:hover {
    border-color: var(--brand);
  }
}

.stat-label {
  font-size: 12px;
  color: var(--ink-muted);
  font-weight: 500;
}

.stat-value {
  font-size: 26px;
  line-height: 1.1;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.stat-urgent .stat-value {
  color: var(--accent);
}

.notice-bar {
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: #FFFDF8;
  border: 1px solid rgba(194, 77, 44, 0.22);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-muted);
}

.notice-bar p {
  margin: 0;
  min-width: 0;
  word-break: keep-all;
}

.notice-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 7px;
  flex-shrink: 0;
}

/* Sections */
.section {
  padding: 36px 0 44px;
}

.section-tinted {
  background: var(--bg-tinted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.section-head h2 {
  margin: 0 0 4px;
  font-size: clamp(20px, 2.4vw, 25px);
  letter-spacing: -0.02em;
}

.section-sub {
  margin: 0;
  font-size: 14px;
  color: var(--ink-muted);
  word-break: keep-all;
}

.result-meta {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

/* Category Tabs */
.category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tab-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 140ms var(--ease-out), background-color 160ms var(--ease-out), color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}

.tab-btn:active {
  transform: scale(0.97);
}

.tab-btn.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

@media (hover: hover) and (pointer: fine) {
  .tab-btn:not(.is-active):hover {
    border-color: var(--brand);
    color: var(--brand);
  }
}

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 18px;
}

.search-field {
  flex: 1 1 240px;
  min-width: 0;
}

.search-field input,
.filter-controls select,
.newsletter-inputs input,
.newsletter-inputs select,
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface-subtle);
  font-size: 14px;
  transition: border-color 150ms var(--ease-out), background-color 150ms var(--ease-out);
}

.search-field input:focus,
.filter-controls select:focus,
.newsletter-inputs input:focus,
.newsletter-inputs select:focus,
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  background: #fff;
  border-color: var(--brand);
}

.filter-controls {
  display: flex;
  gap: 8px;
  flex: 0 1 auto;
}

.filter-controls select {
  width: auto;
  min-width: 118px;
}

.toggle-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
  cursor: pointer;
  user-select: none;
}

.chip-toggle input {
  accent-color: var(--brand);
  width: 15px;
  height: 15px;
  margin: 0;
}

/* Job Cards */
.job-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.job-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  transition: border-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.job-card.is-sponsored {
  border-color: rgba(186, 132, 34, 0.35);
  background: linear-gradient(180deg, #FFFCF5 0%, #FFFFFF 36%);
}

.job-card.is-expired {
  opacity: 0.68;
}

@media (hover: hover) and (pointer: fine) {
  .job-card:hover {
    border-color: rgba(30, 58, 95, 0.32);
  }
}

.job-main {
  min-width: 0;
}

.job-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.job-title {
  margin: 0 0 4px;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -0.015em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.job-org {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--ink-muted);
  font-weight: 500;
  overflow-wrap: anywhere;
}

.job-summary {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--ink);
  max-width: 68ch;
  word-break: keep-all;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.job-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.job-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.dday-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: var(--brand-soft);
  color: var(--brand);
  white-space: nowrap;
}

.dday-badge.is-urgent {
  background: var(--accent-soft);
  color: var(--accent);
}

.dday-badge.is-expired {
  background: rgba(23, 32, 42, 0.08);
  color: var(--ink-soft);
}

.job-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 44px 20px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}

.empty-state h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.empty-state p {
  margin: 0 0 16px;
  color: var(--ink-muted);
  font-size: 14px;
}

/* Newsletter */
.newsletter-card {
  margin-top: 28px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(30, 58, 95, 0.18);
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.newsletter-copy h3 {
  margin: 10px 0 6px;
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.newsletter-copy p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-muted);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-inputs {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 8px;
}

.form-feedback {
  margin: 0;
  min-height: 18px;
  font-size: 13px;
  font-weight: 500;
}

.form-feedback.is-success {
  color: var(--success);
}

.form-feedback.is-error {
  color: var(--accent);
}

/* Portals Grid */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 12px;
}

.portal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 150ms var(--ease-out), border-color 160ms var(--ease-out);
}

.portal-card:active {
  transform: scale(0.985);
}

@media (hover: hover) and (pointer: fine) {
  .portal-card:hover {
    border-color: var(--brand);
  }
}

.portal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.portal-card h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.015em;
}

.portal-card p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
  flex: 1;
}

.portal-link-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand);
}

/* Guides Grid */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.guide-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guide-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.guide-read-time {
  font-size: 12px;
  color: var(--ink-soft);
}

.guide-card h3 {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.38;
  letter-spacing: -0.015em;
  word-break: keep-all;
}

.guide-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-muted);
  flex: 1;
}

/* Prompts Grid */
.prompt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.prompt-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prompt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.prompt-card h3 {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.35;
}

.prompt-usecase {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
}

.prompt-code {
  margin: 0;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink);
  white-space: pre-wrap;
  max-height: 150px;
  overflow-y: auto;
  overflow-wrap: anywhere;
}

/* Roadmap */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
}

.roadmap-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.roadmap-card h3 {
  margin: 0;
  font-size: 16.5px;
  letter-spacing: -0.015em;
}

.roadmap-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-muted);
  flex: 1;
}

.roadmap-meta {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 calc(28px + env(safe-area-inset-bottom));
  background: var(--surface);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-note {
  margin: 6px 0 0;
  max-width: 62ch;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--brand);
  font-weight: 600;
  cursor: pointer;
}

.inline-link {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Standalone Article / Privacy / Guide Pages */
.article-wrap {
  max-width: 780px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--brand);
  font-weight: 500;
}

.article-title {
  margin: 0 0 12px;
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.26;
  letter-spacing: -0.025em;
  word-break: keep-all;
}

.article-lead {
  margin: 0 0 24px;
  font-size: 15.5px;
  color: var(--ink-muted);
  max-width: 65ch;
  word-break: keep-all;
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3.5vw, 34px);
  box-shadow: var(--shadow-card);
}

.article-card h2 {
  margin: 26px 0 10px;
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--brand);
  word-break: keep-all;
}

.article-card h2:first-child {
  margin-top: 0;
}

.article-card p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.75;
  max-width: 65ch;
  word-break: keep-all;
}

.article-card ul {
  margin: 0 0 16px;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.7;
}

.article-card li {
  margin-bottom: 6px;
  word-break: keep-all;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
  padding: 12px 14px;
}

.faq-item summary {
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  color: var(--ink);
  list-style-position: outside;
}

.faq-item p {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--ink-muted);
}

.article-cta {
  margin-top: 24px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(30, 58, 95, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.article-cta h3 {
  margin: 0 0 4px;
  font-size: 16.5px;
}

.article-cta p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-muted);
}

.related-guides {
  margin-top: 28px;
}

.related-guides h3 {
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--ink);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.related-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 150ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .related-link:hover {
    border-color: var(--brand);
  }
}

.related-link span {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--brand);
}

.related-link strong {
  font-size: 14px;
  line-height: 1.4;
  word-break: keep-all;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(23, 32, 42, 0.45);
  backdrop-filter: blur(3px);
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 180ms var(--ease-out);
}

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

.modal-backdrop.is-open {
  opacity: 1;
}

.modal-dialog {
  width: min(580px, 100%);
  max-height: min(88dvh, 760px);
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-modal);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.96) translateY(6px);
  opacity: 0;
  transition: transform 200ms var(--ease-out), opacity 180ms var(--ease-out);
}

.modal-wide {
  width: min(680px, 100%);
}

.modal-backdrop.is-open .modal-dialog {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal-header {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.modal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.modal-heading {
  margin: 8px 0 0;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.icon-close {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal-body h3.detail-title {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.32;
  letter-spacing: -0.02em;
}

.detail-org {
  margin: 0 0 16px;
  color: var(--ink-muted);
  font-size: 14px;
}

.detail-kv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.detail-kv div {
  min-width: 0;
}

.detail-kv dt {
  font-size: 11.5px;
  color: var(--ink-soft);
}

.detail-kv dd {
  margin: 2px 0 0;
  font-size: 13.5px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.detail-section-title {
  margin: 18px 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
}

.detail-list {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  color: var(--ink);
}

.detail-list li {
  margin-bottom: 6px;
}

.checklist-box {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checklist-box label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  font-size: 13.5px;
  cursor: pointer;
}

.checklist-box input {
  margin-top: 3px;
  accent-color: var(--brand);
  flex-shrink: 0;
}

.affiliate-preview {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(30, 58, 95, 0.28);
  background: rgba(30, 58, 95, 0.04);
  font-size: 12.5px;
  color: var(--ink-muted);
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.modal-footer-inline {
  padding: 16px 0 0;
  margin-top: 14px;
}

/* Submit Form */
.submit-intro {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--ink-muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-span-2 {
  grid-column: 1 / -1;
}

.form-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--ink);
}

.inline-check {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-weight: 500 !important;
  cursor: pointer;
}

.inline-check input {
  width: auto !important;
  accent-color: var(--brand);
}

.json-preview-wrap {
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
  border: 1px solid var(--border);
}

.json-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12.5px;
}

.json-preview-wrap pre {
  margin: 0;
  font-size: 12px;
  overflow-x: auto;
  max-height: 160px;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(10px);
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: var(--shadow-modal);
  z-index: 200;
  opacity: 0;
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
  max-width: min(92vw, 420px);
  text-align: center;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .site-nav {
    display: none;
  }
  .hero-grid,
  .newsletter-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1120px, 100% - 24px);
  }
  .job-card {
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 16px;
  }
  .job-aside {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--border);
  }
  .newsletter-inputs,
  .form-grid,
  .detail-kv {
    grid-template-columns: 1fr;
  }
  .filter-controls {
    width: 100%;
  }
  .filter-controls select {
    flex: 1;
  }
}

/* Prevent iOS Safari input auto-zoom */
@media (pointer: coarse) {
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
