:root {
  color-scheme: light;
  --ink: #172521;
  --muted: #687872;
  --line: #dfe7e3;
  --paper: #ffffff;
  --canvas: #f5f7f5;
  --forest: #163c35;
  --forest-2: #245e51;
  --mint: #d9f0e6;
  --lime: #d6ef78;
  --warm: #f1e9dc;
  --shadow: 0 18px 55px rgba(22, 60, 53, 0.1);
  --radius-lg: 24px;
  --radius-md: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

button, input, select { font: inherit; }

button { cursor: pointer; }

.shell {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 54px 0 92px;
  color: #fff;
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 36px),
    linear-gradient(135deg, #102d28, #1c4d42 68%, #245e51);
}

.hero__content { position: relative; z-index: 1; }

.hero__glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.38;
}

.hero__glow--one {
  width: 420px;
  height: 420px;
  right: -130px;
  top: -210px;
  background: radial-gradient(circle, var(--lime), transparent 70%);
}

.hero__glow--two {
  width: 300px;
  height: 300px;
  left: 14%;
  bottom: -250px;
  background: radial-gradient(circle, #8fdcc6, transparent 70%);
}

.brand-row { display: flex; align-items: center; gap: 16px; }

.brand-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: var(--forest);
  background: var(--lime);
  border-radius: 16px 16px 16px 5px;
  font: 800 25px/1 Georgia, serif;
  box-shadow: 0 12px 30px rgba(3, 20, 17, 0.25);
}

.eyebrow, .section-kicker {
  margin: 0 0 3px;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 750;
}

.eyebrow { color: #abd5c9; }

h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero__copy {
  max-width: 610px;
  margin: 24px 0 30px;
  color: #d8e9e4;
  font-size: clamp(16px, 2vw, 19px);
}

.search-panel {
  padding: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 55px rgba(2, 23, 19, 0.28);
}

.search-box {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 5px 8px 13px;
  border-bottom: 1px solid var(--line);
}

.search-box svg {
  width: 24px;
  fill: none;
  stroke: var(--forest-2);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.search-box input {
  width: 100%;
  min-width: 0;
  padding: 7px 0;
  color: var(--ink);
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 17px;
}

.search-box input::placeholder { color: #9aa6a2; }

kbd {
  padding: 2px 9px;
  color: #788681;
  background: #eff3f1;
  border: 1px solid #d9e2de;
  border-radius: 8px;
  font-size: 12px;
  box-shadow: inset 0 -1px 0 #cfd9d5;
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
  padding-top: 12px;
}

.filter-row label { position: relative; }

.filter-row label span {
  position: absolute;
  z-index: 1;
  top: 7px;
  left: 13px;
  color: #84908c;
  font-size: 10px;
  font-weight: 700;
}

.filter-row select {
  width: 100%;
  height: 55px;
  padding: 19px 35px 5px 12px;
  color: var(--ink);
  background: #f7f9f8;
  border: 1px solid transparent;
  border-radius: 12px;
  outline: none;
}

.filter-row select:focus { border-color: #6ba796; box-shadow: 0 0 0 3px rgba(83, 151, 132, 0.14); }

.clear-button {
  align-self: stretch;
  padding-inline: 18px;
  color: var(--forest-2);
  background: var(--mint);
  border: 0;
  border-radius: 12px;
  font-weight: 700;
}

.main-content { min-height: 50vh; padding: 38px 0 76px; }

.overview { display: flex; align-items: end; justify-content: space-between; gap: 20px; }

.section-kicker { color: #6f8e84; }

.overview h2 { margin: 0; font-size: clamp(23px, 3vw, 31px); letter-spacing: -0.025em; }

.updated-at { margin: 0 0 4px; color: var(--muted); font-size: 13px; }

.position-tabs { display: flex; gap: 8px; margin: 22px 0 24px; overflow-x: auto; padding-bottom: 2px; }

.position-tab {
  flex: 0 0 auto;
  padding: 8px 14px;
  color: #486059;
  background: #e9efec;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.position-tab.is-active { color: #fff; background: var(--forest); box-shadow: 0 7px 18px rgba(22, 60, 53, 0.16); }

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

.question-card {
  position: relative;
  display: flex;
  min-height: 245px;
  flex-direction: column;
  padding: 22px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(19, 49, 42, 0.035);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.question-card::before {
  position: absolute;
  width: 86px;
  height: 86px;
  right: -43px;
  top: -43px;
  content: "";
  background: var(--mint);
  border-radius: 999px;
  transition: transform 180ms ease;
}

.question-card:hover { transform: translateY(-3px); border-color: #b9cec7; box-shadow: var(--shadow); }
.question-card:hover::before { transform: scale(1.2); }

.card-top { display: flex; position: relative; gap: 8px; align-items: center; flex-wrap: wrap; }

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 2px 9px;
  color: #35534a;
  background: #edf3f0;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
}

.badge--position { color: #173e35; background: var(--lime); }

.question-card h3 {
  position: relative;
  margin: 19px 0 13px;
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.card-competency { margin: auto 0 17px; color: var(--muted); font-size: 13px; }

.card-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid #e8eeeb; }

.answer-signal { color: #7d8b86; font-size: 12px; }

.view-button {
  padding: 7px 12px;
  color: var(--forest-2);
  background: transparent;
  border: 1px solid #bcd0c9;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 750;
}

.view-button:hover { color: #fff; background: var(--forest-2); border-color: var(--forest-2); }

.empty-state { padding: 74px 20px; text-align: center; }
.empty-icon { color: #8ba89e; font: 54px/1 Georgia, serif; }
.empty-state h2 { margin: 12px 0 4px; }
.empty-state p { margin: 0 0 18px; color: var(--muted); }
.empty-state button { padding: 10px 16px; color: #fff; background: var(--forest); border: 0; border-radius: 10px; }

.detail-dialog {
  width: min(780px, calc(100% - 28px));
  max-height: min(820px, calc(100vh - 40px));
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(10, 34, 28, 0.32);
}

.detail-dialog::backdrop { background: rgba(9, 28, 23, 0.6); backdrop-filter: blur(4px); }
.detail-dialog article { position: relative; padding: 34px; overflow-y: auto; background: #fff; }
.dialog-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; color: #55655f; background: #eef2f0; border: 0; border-radius: 50%; font-size: 25px; line-height: 1; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 7px; padding-right: 42px; }
.detail-dialog h2 { margin: 22px 0 25px; padding-bottom: 23px; border-bottom: 1px solid var(--line); font-size: clamp(21px, 3vw, 28px); line-height: 1.55; }
.detail-section + .detail-section { margin-top: 22px; }
.detail-section h3 { margin: 0 0 8px; color: var(--forest-2); font-size: 14px; }
.detail-section p { margin: 0; white-space: pre-wrap; color: #34463f; }
.detail-empty { color: #87938f !important; font-style: italic; }

.site-footer { padding: 24px 0; color: #85928d; background: #ecf1ee; border-top: 1px solid #dfe7e3; font-size: 12px; }

@media (max-width: 760px) {
  .shell { width: min(100% - 24px, 1160px); }
  .hero { padding: 32px 0 76px; }
  .hero__copy { margin: 18px 0 22px; }
  .search-panel { padding: 10px; border-radius: 18px; }
  .filter-row { grid-template-columns: 1fr 1fr; }
  .clear-button { min-height: 51px; }
  .question-grid { grid-template-columns: 1fr; }
  .overview { align-items: start; flex-direction: column; gap: 5px; }
  .question-card { min-height: 225px; }
  .detail-dialog article { padding: 26px 20px; }
  kbd { display: none; }
}

@media (max-width: 440px) {
  .filter-row { grid-template-columns: 1fr; }
  .brand-mark { width: 48px; height: 48px; }
  .question-card { padding: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

