/* ==========================================================================
   具身内推站 · styles
   ========================================================================== */

:root {
  --bg: #f4f1e9;
  --bg-soft: #efece3;
  --bg-alt: #eae6db;
  --surface: #fffdf8;
  --surface-2: #f8f5ee;
  --ink: #16181c;
  --ink-2: #3d424a;
  --muted: #666b73;
  --line: rgba(22, 24, 28, 0.13);
  --line-soft: rgba(22, 24, 28, 0.06);
  --line-strong: rgba(22, 24, 28, 0.26);
  --accent: #c93a1f;
  --accent-strong: #b3321a;
  --accent-soft: rgba(201, 58, 31, 0.1);
  --accent-ink: #fff8f2;
  --green: #166e52;
  --green-soft: rgba(22, 110, 82, 0.1);
  --amber: #8a5a10;
  --amber-soft: rgba(138, 90, 16, 0.11);
  --blue: #2b5fa8;
  --blue-soft: rgba(43, 95, 168, 0.1);
  --danger: #b3261e;
  --danger-soft: rgba(179, 38, 30, 0.08);
  --code-bg: #17191e;
  --code-ink: #f7f2e7;
  --header-bg: rgba(244, 241, 233, 0.82);
  --footer-bg: #16181c;
  --footer-ink: #f4f1e9;
  --footer-muted: #a9a79f;
  --footer-line: rgba(244, 241, 233, 0.14);
  --shadow-sm: 0 1px 2px rgba(22, 24, 28, 0.05);
  --shadow-md: 0 16px 40px -26px rgba(22, 24, 28, 0.4);
  --shadow-lg: 0 36px 80px -42px rgba(22, 24, 28, 0.5);
  --radius: 18px;
  --radius-sm: 12px;
  --shell: 1180px;
  --gutter: 28px;
  --font-sans: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", "Cascadia Code", "Cascadia Mono",
    "JetBrains Mono", Consolas, "Liberation Mono", monospace;
}

[data-theme="dark"] {
  --bg: #0e1013;
  --bg-soft: #12151a;
  --bg-alt: #101318;
  --surface: #171a20;
  --surface-2: #1b1f26;
  --ink: #f1ede4;
  --ink-2: #c9c8c2;
  --muted: #8e949e;
  --line: rgba(241, 237, 228, 0.13);
  --line-soft: rgba(241, 237, 228, 0.055);
  --line-strong: rgba(241, 237, 228, 0.3);
  --accent: #ff6a49;
  --accent-strong: #ff8163;
  --accent-soft: rgba(255, 106, 73, 0.13);
  --accent-ink: #1b0d08;
  --green: #6ad9b8;
  --green-soft: rgba(106, 217, 184, 0.12);
  --amber: #f0b45a;
  --amber-soft: rgba(240, 180, 90, 0.13);
  --blue: #8db4f5;
  --blue-soft: rgba(141, 180, 245, 0.12);
  --danger: #ff9d92;
  --danger-soft: rgba(255, 157, 146, 0.1);
  --code-bg: #f6f1e7;
  --code-ink: #17191e;
  --header-bg: rgba(14, 16, 19, 0.84);
  --footer-bg: #07090b;
  --footer-ink: #f4f1e9;
  --footer-muted: #9fa09b;
  --footer-line: rgba(244, 241, 233, 0.13);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 18px 46px -28px rgba(0, 0, 0, 0.8);
  --shadow-lg: 0 40px 90px -46px rgba(0, 0, 0, 0.9);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.25s ease, color 0.25s ease;
}

body::selection,
body *::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

h1,
h2,
h3,
p,
dl,
dd,
ol,
ul {
  margin-top: 0;
}

a {
  color: inherit;
}

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

button {
  -webkit-tap-highlight-color: transparent;
}

img,
svg {
  display: block;
}

[hidden] {
  display: none !important;
}

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

.shell {
  width: min(var(--shell), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 16px;
  height: 16px;
  flex: none;
}

.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: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  transform: translateY(-160%);
  opacity: 0;
  pointer-events: none;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

body.dialog-open {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Buttons & controls
   -------------------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.button .icon {
  width: 15px;
  height: 15px;
}

.button:active {
  transform: translateY(1px);
}

.button--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 12px 26px -18px var(--accent);
}

.button--primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  transform: translateY(-1px);
}

.button--outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.button--outline:hover {
  background: var(--surface);
  border-color: var(--ink);
}

.button--sm {
  padding: 8px 14px;
  font-size: 12.5px;
}

.button--lg {
  padding: 13px 23px;
  font-size: 14.5px;
}

.button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.icon-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    transform 0.18s ease;
}

.icon-button:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.icon-button .icon {
  width: 17px;
  height: 17px;
}

.theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

/* --------------------------------------------------------------------------
   Member gate
   -------------------------------------------------------------------------- */

body.member-gate-active:not(.member-verified) > .site-header,
body.member-gate-active:not(.member-verified) > main,
body.member-gate-active:not(.member-verified) > .site-footer,
body.member-gate-active:not(.member-verified) > .skip-link {
  display: none !important;
}

body.member-verified .member-gate {
  display: none;
}

body.preview-mode [data-open-submit],
body.preview-mode .report-button {
  display: none !important;
}

/* GitHub Pages 静态只读模式：没有 API，隐藏提交、反馈与管理入口 */
body.static-mode [data-open-submit],
body.static-mode .report-button,
body.static-mode .footer-links a[href="admin/"],
body.static-mode .footer-links a[href="../admin/"] {
  display: none !important;
}

.member-gate {
  position: fixed;
  inset: 0;
  z-index: 250;
  overflow-y: auto;
  background: var(--bg);
  color: var(--ink);
}

.member-gate__bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 65% 35%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 80% at 65% 35%, #000 0%, transparent 75%);
}

.member-gate__bg::after {
  content: "";
  position: absolute;
  top: -220px;
  right: -160px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 68%);
}

.gate-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(1120px, calc(100% - var(--gutter) * 2));
  min-height: 100%;
  margin-inline: auto;
  padding-block: clamp(24px, 4vw, 44px) 28px;
}

.gate-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(28px, 5vw, 64px);
}

.gate-brand .brand-mark {
  width: 36px;
  height: 36px;
}

.gate-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
  flex: 1;
}

.gate-copy h1 {
  max-width: 12em;
  margin: 0 0 22px;
  font-size: clamp(40px, 5.4vw, 70px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.gate-lede {
  max-width: 36em;
  margin: 0 0 24px;
  color: var(--ink-2);
  font-size: clamp(14px, 1.4vw, 15.5px);
  line-height: 1.85;
}

.gate-points {
  display: grid;
  gap: 10px;
  max-width: 36em;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gate-points li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.gate-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.58em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.gate-hint {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 10.5px;
}

.gate-card {
  width: 100%;
  max-width: 460px;
  justify-self: end;
  padding: clamp(22px, 3vw, 30px);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
}

.gate-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}

.gate-card h2 {
  margin: 14px 0 8px;
  font-size: clamp(24px, 2.5vw, 30px);
  font-weight: 750;
  letter-spacing: -0.025em;
}

.gate-card__intro {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.gate-form {
  display: grid;
  gap: 13px;
  margin-top: 2px;
}

.gate-submit {
  width: 100%;
  margin-top: 2px;
}

.gate-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 28px 0;
  color: var(--muted);
  font-size: 11.5px;
}

.gate-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: gateSpin 0.8s linear infinite;
}

.gate-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}

.gate-admin {
  margin: 7px 0 0;
  text-align: center;
}

.gate-admin a {
  color: var(--muted);
  font-size: 10px;
  text-underline-offset: 3px;
}

.gate-admin a:hover {
  color: var(--accent);
}

.gate-foot {
  margin: clamp(24px, 4vw, 44px) 0 0;
  padding-bottom: 6px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.02em;
  text-align: center;
}

.gate-copy > * {
  animation: riseIn 0.58s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.gate-copy > :nth-child(2) {
  animation-delay: 0.05s;
}

.gate-copy > :nth-child(3) {
  animation-delay: 0.1s;
}

.gate-copy > :nth-child(4) {
  animation-delay: 0.16s;
}

.gate-card {
  animation: riseIn 0.68s 0.08s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes gateSpin {
  to {
    transform: rotate(360deg);
  }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding-block: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 37px;
  height: 37px;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.brand:hover .brand-mark {
  transform: rotate(-6deg) scale(1.04);
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 15.5px;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.brand-copy span {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.13em;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-left: auto;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.16s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="location"] {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a[aria-current="location"]::after {
  transform: scaleX(1);
}

.nav-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 17px;
  padding-inline: 5px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
}

.nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 var(--green-soft);
  animation: pulseDot 2.4s ease-out infinite;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.member-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 200px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
  transition:
    color 0.16s ease,
    border-color 0.16s ease,
    background-color 0.16s ease;
}

.member-chip:hover {
  color: var(--green);
  border-color: var(--green);
  background: var(--green-soft);
}

.member-chip__dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}

.member-chip__name {
  max-width: 6em;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.member-chip__org {
  max-width: 9em;
  overflow: hidden;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 62% 30%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 80% 75% at 62% 30%, #000 0%, transparent 72%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: -260px;
  right: -140px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 68%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  padding-block: clamp(64px, 8vw, 108px) clamp(56px, 7vw, 92px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulseDot 2.8s ease-out infinite;
}

.hero h1 {
  max-width: 12em;
  margin-bottom: 24px;
  font-size: clamp(42px, 6.1vw, 78px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.hero-accent {
  color: var(--accent);
  background-image: linear-gradient(transparent 79%, var(--accent-soft) 79%);
  background-repeat: no-repeat;
}

.hero-lede {
  max-width: 37em;
  margin-bottom: 30px;
  color: var(--ink-2);
  font-size: clamp(15px, 1.5vw, 16.5px);
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 40px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.hero-stats dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hero-stats dd {
  margin: 4px 0 0;
  font-size: clamp(24px, 2.6vw, 31px);
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}

.dot-sep {
  color: var(--line-strong);
}

/* Hero pass ------------------------------------------------------------- */

.pass-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: end;
  width: 100%;
  max-width: 370px;
}

.pass {
  position: relative;
  width: 100%;
  padding: 23px 24px 20px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-2.2deg);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.pass-wrap:hover .pass {
  transform: rotate(0deg) translateY(-2px);
}

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

.pass-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.pass-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.pass-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.pass-company {
  margin-top: 16px;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.015em;
}

.pass-code {
  margin: 12px 0 14px;
  padding: 16px 14px;
  border-radius: 12px;
  background: var(--code-bg);
  color: var(--code-ink);
  font-family: var(--font-mono);
  font-size: clamp(28px, 3.2vw, 36px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-align: center;
  word-break: break-all;
}

.pass-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.pass-divider {
  position: relative;
  height: 1px;
  margin: 19px -24px 17px;
  border-top: 1px dashed var(--line-strong);
}

.pass-divider::before,
.pass-divider::after {
  content: "";
  position: absolute;
  top: -13px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg);
}

.pass-divider::before {
  left: -12px;
}

.pass-divider::after {
  right: -12px;
}

.pass-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.pass-copy:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

.pass-copy:active {
  transform: scale(0.985);
}

.pass-copy .icon {
  width: 15px;
  height: 15px;
}

.pass-barcode {
  height: 25px;
  margin-top: 17px;
  border-radius: 2px;
  background-image:
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 9px);
  background-blend-mode: multiply;
  opacity: 0.22;
}

[data-theme="dark"] .pass-barcode {
  opacity: 0.35;
}

.pass-caption {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding-block: clamp(62px, 7.5vw, 100px);
  border-bottom: 1px solid var(--line);
}

.section--alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: var(--shell);
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.17em;
  color: var(--muted);
}

.section-kicker span {
  color: var(--accent);
  font-weight: 700;
}

.section-kicker::after {
  content: "";
  width: 38px;
  height: 1px;
  background: var(--line-strong);
}

.section-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.section-title-row h2 {
  margin: 0;
  font-size: clamp(29px, 3.4vw, 42px);
  font-weight: 780;
  line-height: 1.16;
  letter-spacing: -0.028em;
}

.section-title-row p {
  max-width: 64ch;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
}

.section-footnote {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 11.5px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 286px;
  max-width: 100%;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.search-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  color: var(--accent);
}

.search-field .icon {
  width: 15px;
  height: 15px;
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
}

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

.search-field--compact {
  width: 236px;
}

.empty-state {
  margin: 34px 0 0;
  padding: 28px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Referral code cards
   -------------------------------------------------------------------------- */

.code-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.code-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 20px 20px 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.code-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.code-card--community {
  border-left: 3px solid var(--green);
}

.code-card--expired {
  border-left: 3px solid var(--amber);
}

.code-card__watermark {
  position: absolute;
  right: 8px;
  bottom: 22px;
  font-size: 96px;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
}

.code-card__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.code-card__company {
  margin: 0;
  font-size: 15.5px;
  font-weight: 750;
  line-height: 1.45;
  letter-spacing: -0.012em;
}

.code-card__tag {
  flex: none;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.code-card__code {
  position: relative;
  z-index: 1;
  margin: 18px 0 13px;
  font-family: var(--font-mono);
  font-size: clamp(22px, 2.3vw, 27px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.035em;
  word-break: break-all;
}

.code-card__badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  margin: -4px 0 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 10px;
  font-weight: 650;
}

.code-card__badge--update {
  background: var(--blue-soft);
  color: var(--blue);
}

.code-card__original {
  position: relative;
  z-index: 1;
  margin: -6px 0 10px;
  color: var(--muted);
  font-size: 10.5px;
}

.code-card__original code {
  font-family: var(--font-mono);
  text-decoration: line-through;
}

.code-card__note {
  position: relative;
  z-index: 1;
  flex: 1;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.code-card__alert {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 6px;
  margin: 0 0 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 11px;
  line-height: 1.55;
}

.code-card__alert--update {
  background: var(--blue-soft);
  color: var(--blue);
}

.code-card__alert .icon {
  width: 13px;
  height: 13px;
  margin-top: 1px;
}

.code-card__alert span {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.code-card__foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.copy-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition:
    color 0.16s ease,
    border-color 0.16s ease,
    background-color 0.16s ease;
}

.copy-button .icon {
  width: 13px;
  height: 13px;
}

.copy-button:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.copy-button.is-copied {
  color: var(--green);
  border-color: var(--green);
  background: var(--green-soft);
}

.report-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 10.5px;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  cursor: pointer;
}

.report-button:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* --------------------------------------------------------------------------
   Jobs
   -------------------------------------------------------------------------- */

.job-filters {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.select-field {
  position: relative;
}

.select-field::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 15px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.select-field select {
  appearance: none;
  -webkit-appearance: none;
  min-width: 118px;
  padding: 10px 34px 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: 0;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13px;
  cursor: pointer;
}

.select-field select:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition:
    color 0.16s ease,
    border-color 0.16s ease,
    background-color 0.16s ease;
}

.filter-toggle .icon {
  width: 14px;
  height: 14px;
  fill: transparent;
}

.filter-toggle:hover {
  border-color: var(--line-strong);
  color: var(--accent);
}

.filter-toggle[aria-pressed="true"] {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.filter-toggle[aria-pressed="true"] .icon {
  fill: currentColor;
}

.filter-count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 16px;
  padding-inline: 4px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
}

.tabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  margin-top: 30px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease;
}

.tab:hover {
  border-color: var(--line-strong);
  background: var(--surface);
}

.tab[aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.tab__count {
  font-family: var(--font-mono);
  font-size: 10px;
  opacity: 0.65;
}

.results-line {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

.job-list {
  margin-top: 6px;
}

.job-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 20px 10px;
  border-bottom: 1px solid var(--line);
  border-radius: 12px;
  transition: background-color 0.16s ease;
  scroll-margin-top: 140px;
}

.job-row:hover {
  background: var(--surface);
}

.job-index {
  padding-top: 5px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}

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

.job-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.008em;
}

.related-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 7px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  vertical-align: 2px;
  white-space: nowrap;
}

.related-badge:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink-2);
  font-size: 10.5px;
  line-height: 1.4;
  white-space: nowrap;
}

.tag--team {
  border-color: transparent;
  background: var(--blue-soft);
  color: var(--blue);
}

.tag--type {
  border-color: transparent;
  background: var(--green-soft);
  color: var(--green);
}

.tag--id {
  padding: 3px 8px;
  border-style: dashed;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  cursor: pointer;
}

.tag--id:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.job-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
  padding-top: 1px;
}

.star-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition:
    color 0.16s ease,
    border-color 0.16s ease,
    background-color 0.16s ease;
}

.star-button .icon {
  width: 15px;
  height: 15px;
  fill: transparent;
  transition: fill 0.16s ease;
}

.star-button:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.star-button[aria-pressed="true"] {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.star-button[aria-pressed="true"] .icon {
  fill: currentColor;
}

.job-empty {
  margin-top: 28px;
}

/* Program table ---------------------------------------------------------- */

.programs {
  margin-top: 38px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.programs summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.programs summary::-webkit-details-marker {
  display: none;
}

.programs summary::after {
  content: "+";
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
}

.programs[open] summary::after {
  content: "−";
}

.programs summary:hover {
  background: var(--surface-2);
}

.table-wrap {
  overflow-x: auto;
  padding: 0 20px;
}

.programs table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  font-size: 12.5px;
}

.programs th,
.programs td {
  padding: 11px 9px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.65;
}

.programs th {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.programs td:first-child {
  font-weight: 650;
  white-space: nowrap;
}

.programs-note {
  margin: 0;
  padding: 10px 20px 18px;
  color: var(--muted);
  font-size: 11.5px;
}

.programs-note a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.inline-code {
  display: inline;
  padding: 2px 6px;
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  background: var(--bg);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.95em;
  font-weight: 600;
  cursor: pointer;
}

.inline-code:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* --------------------------------------------------------------------------
   Community
   -------------------------------------------------------------------------- */

.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.community-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 19px 20px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.community-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.community-card__company {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
}

.community-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}

.community-badge--new {
  background: var(--green-soft);
  color: var(--green);
}

.community-badge--update {
  background: var(--blue-soft);
  color: var(--blue);
}

.community-badge--expired {
  background: var(--amber-soft);
  color: var(--amber);
}

.community-card__code {
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.035em;
  word-break: break-all;
}

.community-card__context {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.community-card__note {
  margin: 0;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.7;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.community-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 12px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10.5px;
}

.community-card__meta a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.community-empty {
  margin-top: 32px;
  padding: 44px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}

.community-empty-mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.community-empty-mark .icon {
  width: 20px;
  height: 20px;
}

.community-empty h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.community-empty p {
  max-width: 46ch;
  margin: 0 auto 20px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   Advice
   -------------------------------------------------------------------------- */

.advice-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 13px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: advice;
}

.advice-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  padding: 19px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.75;
  counter-increment: advice;
}

.advice-list li::before {
  content: counter(advice, decimal-leading-zero);
  padding-top: 1px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}

.advice-list li:last-child {
  grid-column: 1 / -1;
}

.notice-card {
  display: flex;
  gap: 14px;
  margin-top: 22px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
}

.notice-card > .icon {
  width: 19px;
  height: 19px;
  margin-top: 2px;
  color: var(--accent);
}

.notice-card h3 {
  margin: 0 0 6px;
  font-size: 14px;
}

.notice-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
  padding: 52px 0 28px;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--footer-line);
}

.footer-brand {
  margin: 0;
  font-size: 24px;
  font-weight: 780;
  letter-spacing: -0.025em;
}

.footer-tagline {
  margin: 6px 0 0;
  color: var(--footer-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 22px;
  max-width: 480px;
}

.footer-links a {
  color: var(--footer-muted);
  font-size: 12px;
  text-decoration: none;
  transition: color 0.16s ease;
}

.footer-links a:hover {
  color: var(--footer-ink);
}

.footer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 28px;
  flex-wrap: wrap;
  padding-top: 22px;
}

.footer-bottom p {
  margin: 0;
  color: var(--footer-muted);
  font-size: 10.5px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Dialog & form
   -------------------------------------------------------------------------- */

.dialog {
  width: min(660px, calc(100% - 28px));
  max-height: min(88vh, 900px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  overflow: auto;
  overscroll-behavior: contain;
}

.dialog::backdrop {
  background: rgba(8, 9, 12, 0.58);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.dialog[open] {
  animation: dialogIn 0.22s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.dialog-inner {
  padding: clamp(22px, 4vw, 32px);
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.dialog-kicker {
  margin: 0 0 5px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.11em;
}

.dialog-head h2 {
  margin: 0;
  font-size: clamp(21px, 2.6vw, 26px);
  font-weight: 750;
  letter-spacing: -0.02em;
}

.dialog-close {
  flex: none;
  width: 34px;
  height: 34px;
}

.dialog-intro {
  margin: 14px 0 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.dialog-identity {
  margin: -6px 0 16px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 10.5px;
  line-height: 1.55;
}

.dialog-identity strong {
  font-weight: 700;
}

.dialog-notice {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 12px;
  line-height: 1.65;
}

.dialog-notice a {
  color: inherit;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.field > span {
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 600;
}

.field b {
  color: var(--accent);
  font-weight: 700;
}

.field em {
  margin-left: 3px;
  color: var(--muted);
  font-size: 10.5px;
  font-style: normal;
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background-color 0.16s ease;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) calc(50% + 1px),
    calc(100% - 11px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 30px;
}

.field textarea {
  min-height: 86px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field--full {
  grid-column: 1 / -1;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
  cursor: pointer;
}

.checkbox-field input {
  flex: none;
  width: 15px;
  height: 15px;
  margin: 1px 0 0;
  accent-color: var(--accent);
}

.form-error {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 12px;
  line-height: 1.6;
}

.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
}

.dialog-actions--end {
  justify-content: flex-end;
}

.dialog-hint {
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
}

.submit-success {
  padding: 16px 0 4px;
  text-align: center;
}

.success-mark {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
}

.success-mark .icon {
  width: 24px;
  height: 24px;
}

.submit-success h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.submit-success p {
  max-width: 42ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   Toast & misc
   -------------------------------------------------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 200;
  max-width: calc(100% - 32px);
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow-lg);
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

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

.data-error {
  margin: 18px 0 0;
  padding: 14px 18px;
  border: 1px solid var(--danger);
  border-radius: var(--radius-sm);
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 13px;
  line-height: 1.7;
}

.noscript-warning {
  position: fixed;
  inset: auto 0 0;
  z-index: 300;
  padding: 14px 20px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */

@keyframes pulseDot {
  0% {
    box-shadow: 0 0 0 0 var(--green-soft);
  }
  60% {
    box-shadow: 0 0 0 6px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dialogIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-copy > * {
  animation: riseIn 0.62s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-copy > :nth-child(1) {
  animation-delay: 0.02s;
}

.hero-copy > :nth-child(2) {
  animation-delay: 0.06s;
}

.hero-copy > :nth-child(3) {
  animation-delay: 0.12s;
}

.hero-copy > :nth-child(4) {
  animation-delay: 0.18s;
}

.hero-copy > :nth-child(5) {
  animation-delay: 0.24s;
}

.hero-copy > :nth-child(6) {
  animation-delay: 0.3s;
}

.pass-wrap {
  animation: riseIn 0.75s 0.16s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1060px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 36px;
  }

  .pass-wrap {
    max-width: 340px;
  }
}

@media (max-width: 920px) {
  html {
    scroll-padding-top: 138px;
  }

  .gate-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: start;
  }

  .gate-card {
    justify-self: start;
    max-width: 560px;
  }

  .gate-copy h1 {
    font-size: clamp(38px, 7vw, 56px);
  }

  .gate-brand {
    margin-bottom: 28px;
  }

  .site-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    margin-top: 2px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
    gap: 22px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .pass-wrap {
    justify-self: start;
    max-width: 360px;
  }

  .hero h1 {
    max-width: 11em;
  }

  .section-title-row {
    align-items: flex-start;
  }

  .job-filters {
    width: 100%;
  }

  .search-field--compact {
    flex: 1;
    width: auto;
    min-width: 200px;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 18px;
  }

  html {
    scroll-padding-top: 132px;
  }

  .member-chip {
    max-width: 120px;
  }

  .member-chip__org {
    display: none;
  }

  .gate-shell {
    padding-top: 20px;
  }

  .gate-copy h1 {
    font-size: 38px;
  }

  .gate-lede {
    font-size: 13.5px;
  }

  .gate-points li {
    font-size: 11.5px;
  }

  .gate-card {
    padding: 20px 16px;
    border-radius: 18px;
  }

  .gate-foot {
    margin-top: 22px;
  }

  .gate-copy h1 {
    margin-bottom: 14px;
  }

  .gate-lede {
    margin-bottom: 0;
  }

  .gate-grid {
    gap: 22px;
  }

  .gate-points,
  .gate-hint {
    display: none;
  }

  .header-inner {
    gap: 8px 14px;
  }

  .brand-copy span {
    display: none;
  }

  .site-nav {
    gap: 18px;
  }

  .theme-toggle {
    width: 34px;
    height: 34px;
  }

  .header-actions .button {
    padding-inline: 12px;
  }

  .hero-grid {
    padding-block: 46px 58px;
  }

  .hero h1 {
    font-size: clamp(38px, 10.6vw, 54px);
    letter-spacing: -0.03em;
  }

  .hero-lede {
    font-size: 14.5px;
    line-height: 1.8;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 20px;
  }

  .hero-stats dd {
    font-size: 27px;
  }

  .pass-wrap {
    max-width: 100%;
  }

  .pass {
    transform: none;
  }

  .section {
    padding-block: 52px;
  }

  .section-title-row {
    gap: 16px;
  }

  .section-title-row p {
    font-size: 12.5px;
  }

  .search-field {
    width: 100%;
  }

  .job-filters {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
  }

  .search-field--compact {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
  }

  .select-field select {
    width: 100%;
  }

  .tabs {
    margin-top: 22px;
  }

  .job-row {
    grid-template-columns: 1fr;
    gap: 11px;
    padding: 18px 6px;
  }

  .job-index {
    display: none;
  }

  .job-title {
    font-size: 15px;
  }

  .job-actions {
    justify-content: flex-start;
  }

  .code-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 24px;
  }

  .community-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 24px;
  }

  .advice-list {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 24px;
  }

  .advice-list li:last-child {
    grid-column: auto;
  }

  .footer-top {
    gap: 22px;
  }

  .footer-links {
    gap: 9px 18px;
  }

  .dialog {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 24px);
    border-radius: 18px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .field--full {
    grid-column: auto;
  }

  .dialog-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .dialog-actions .button {
    width: 100%;
  }

  .dialog-hint {
    text-align: center;
  }

  .toast {
    bottom: 18px;
  }
}

@media (max-width: 640px) {
  .header-actions .button span {
    display: none;
  }

  .header-actions .button {
    padding: 8px 10px;
  }

  .header-actions .button .icon {
    margin: 0;
  }
}

@media (max-width: 420px) {
  .gate-copy h1 {
    font-size: 34px;
  }

  .gate-card {
    padding: 18px 14px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    width: 100%;
  }

  .pass-code {
    font-size: 28px;
  }

  .code-card__watermark {
    font-size: 80px;
  }

  .job-actions {
    gap: 6px;
  }

  .job-actions .button {
    padding-inline: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
