:root {
  color-scheme: light;
  --ink: #17213a;
  --muted: #6d7890;
  --line: #e3e8f1;
  --soft: #f5f7fb;
  --white: #ffffff;
  --blue: #1668e8;
  --blue-dark: #0d51bd;
  --blue-pale: #edf4ff;
  --violet: #7c4dff;
  --green: #16865e;
  --shadow: 0 14px 40px rgba(31, 55, 91, 0.09);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue-dark);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(227, 232, 241, 0.88);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1400px, calc(100% - 48px));
  min-height: 72px;
  margin: 0 auto;
}

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

.brand-copy {
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 7px 16px rgba(22, 104, 232, 0.24);
}

.brand-mark svg {
  width: 23px;
  fill: currentColor;
}

.brand-title {
  display: flex;
  align-items: baseline;
  gap: 7px;
  white-space: nowrap;
}

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

.brand small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.brand-operator {
  display: block;
  margin-top: 2px;
  color: #929caf;
  font-size: 8px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.aident-wordmark {
  color: #17213a;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.aident-ai {
  color: transparent;
  background: linear-gradient(90deg, #3b8af5 0%, #775cff 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  color: #536079;
  font-size: 14px;
  font-weight: 650;
}

.global-nav a {
  position: relative;
  padding: 26px 0;
}

.global-nav a::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  content: "";
  background: transparent;
}

.global-nav a:hover,
.global-nav .is-current {
  color: var(--blue);
}

.global-nav a:focus-visible,
.mobile-menu:focus-visible {
  border-radius: 6px;
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.global-nav .is-current::after {
  background: var(--blue);
}

.mobile-menu {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
}

.mobile-menu span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 160ms ease, opacity 160ms ease;
}

.mobile-menu[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.mobile-menu[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 85% 30%, rgba(77, 148, 255, 0.35), transparent 24%),
    linear-gradient(125deg, #0b3a91 0%, #115bc7 55%, #1977e6 100%);
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1400px, calc(100% - 48px));
  min-height: 272px;
  margin: 0 auto;
  padding: 44px 0 48px;
}

.eyebrow {
  margin: 0 0 13px;
  color: #bcd9ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(32px, 3.1vw, 48px);
  line-height: 1.28;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero-description {
  max-width: 570px;
  margin: 18px 0 0;
  color: #dbeaff;
  font-size: 14px;
  line-height: 1.9;
}

.archive-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(115px, 1fr));
  width: min(460px, 42%);
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}

.archive-stats div {
  padding: 26px 24px;
  text-align: center;
}

.archive-stats div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.17);
}

.archive-stats dt {
  margin-bottom: 7px;
  color: #cfe3ff;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.archive-stats dd {
  margin: 0;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.archive-stats small {
  margin-left: 3px;
  font-size: 12px;
}

.page-shell {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr) 236px;
  gap: 26px;
  width: min(1400px, calc(100% - 48px));
  margin: 34px auto 80px;
}

.filter-panel,
.search-card,
.ad-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.filter-panel {
  align-self: start;
  padding: 22px;
}

.filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.filter-heading h2 {
  margin: 0;
  font-size: 15px;
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-filter-toggle {
  display: none;
}

.reset-button,
.text-button {
  padding: 0;
  border: 0;
  color: var(--blue);
  background: none;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}

.text-button {
  margin-top: 11px;
  color: #8b95a8;
  cursor: default;
}

.filter-group {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 20px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.filter-group:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.filter-group legend {
  width: 100%;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 750;
}

.filter-group > label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #4e5a71;
  font-size: 13px;
  cursor: pointer;
}

.multi-select {
  width: 100%;
}

.multi-select > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #48546b;
  background: var(--white);
  font-size: 12px;
  cursor: pointer;
  list-style: none;
}

.multi-select > summary::-webkit-details-marker {
  display: none;
}

.multi-select[open] > summary {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(22, 104, 232, 0.1);
}

.multi-select > summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.multi-select-panel {
  max-height: 310px;
  margin-top: 8px;
  padding: 10px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
}

.multi-select-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.multi-select-actions button {
  padding: 4px 0;
  border: 0;
  color: var(--blue);
  background: transparent;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.subject-section-title {
  margin: 11px 0 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.subject-options {
  display: grid;
  gap: 7px;
}

.subject-options label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  color: #4e5a71;
  font-size: 11px;
  cursor: pointer;
}

input[type="checkbox"],
input[type="radio"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--blue);
}

.segmented-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.segmented-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.segmented-options span {
  display: grid;
  min-height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #5c687f;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.segmented-options input:checked + span {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-pale);
}

.search-card {
  padding: 22px;
  box-shadow: 0 8px 24px rgba(43, 65, 101, 0.04);
}

.search-card > label {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 750;
}

.search-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 52px;
  padding-left: 16px;
  border: 1px solid #cfd6e2;
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.search-row:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(22, 104, 232, 0.1);
}

.search-icon svg {
  width: 20px;
  fill: none;
  stroke: #8490a4;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.search-row input {
  min-width: 0;
  height: 50px;
  padding: 0 10px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
}

.search-row input::placeholder {
  color: #9aa4b6;
}

.search-row button {
  align-self: stretch;
  min-width: 88px;
  margin: 5px;
  border: 0;
  border-radius: 9px;
  color: var(--white);
  background: var(--blue);
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.search-row button:hover {
  background: var(--blue-dark);
}

.search-card > p {
  margin: 9px 0 0;
  color: #8a95a8;
  font-size: 11px;
}

.result-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 28px 2px 16px;
}

.result-label {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.result-toolbar h2 {
  margin: 0;
  font-size: 19px;
}

.result-toolbar h2 span {
  color: var(--blue);
  font-size: 27px;
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.toolbar-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.sort-control select {
  min-width: 118px;
  height: 38px;
  padding: 0 30px 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #48546b;
  background: var(--white);
  font-size: 12px;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: -3px 0 13px;
}

.active-filter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: var(--blue-pale);
  font-size: 10px;
  font-weight: 700;
}

.question-list {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.question-card {
  width: 100%;
  min-width: 0;
  padding: 21px 24px 17px;
  text-align: left;
  background: var(--white);
  transition: background-color 0.16s;
}

.question-card + .question-card {
  border-top: 1px solid var(--line);
}

.question-card:hover {
  background: #fbfdff;
}

.question-card-header {
  padding: 0;
}

.question-number {
  min-width: max-content;
  padding: 0;
  color: #48546b;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}

a.question-number:hover {
  text-decoration: underline;
}

.question-content h3,
.question-prompt {
  margin: 5px 0 8px;
  color: #48546b;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.inline-choices {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.inline-choices li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-height: 32px;
  color: #48546b;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.choice-label {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.question-answer {
  margin: 10px 0 0;
  color: #48546b;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}

.question-answer summary,
.detail-answer summary {
  display: inline;
  color: var(--blue);
  cursor: pointer;
  list-style: none;
}

.question-answer summary::-webkit-details-marker,
.detail-answer summary::-webkit-details-marker {
  display: none;
}

.question-answer summary:hover,
.detail-answer summary:hover {
  text-decoration: underline;
}

.question-answer p,
.detail-answer p {
  margin: 4px 0 0;
}

.empty-state {
  padding: 70px 20px;
  border: 1px dashed #ccd4e2;
  border-radius: var(--radius);
  text-align: center;
  background: #fff;
}

.empty-state span {
  display: block;
  color: #a8b1c1;
  font-size: 44px;
}

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

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

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 26px;
}

.pagination button {
  min-width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #536079;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
}

.pagination .is-active {
  border-color: var(--blue);
  color: #fff;
  background: var(--blue);
}

.pagination button:disabled {
  color: #b6becb;
  background: #f4f6f9;
}

.pagination span {
  color: #8590a2;
}

.ad-column {
  align-self: start;
}

.ad-card {
  position: sticky;
  top: 105px;
  overflow: hidden;
  padding: 22px;
  text-align: center;
  box-shadow: var(--shadow);
}

.ad-card::before {
  position: absolute;
  top: -65px;
  right: -60px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  content: "";
  background: rgba(124, 77, 255, 0.08);
}

.ad-label {
  position: absolute;
  top: 11px;
  right: 12px;
  color: #a1a9b7;
  font-size: 8px;
}

.app-icon {
  display: block;
  width: 68px;
  height: 68px;
  margin: 8px auto 11px;
  border-radius: 17px;
  box-shadow: 0 12px 28px rgba(18, 23, 35, 0.24);
  object-fit: cover;
}

.ad-brand {
  margin: 0 0 11px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.ad-card h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: -0.03em;
}

.ad-card > p:not(.ad-brand) {
  margin: 12px 0 18px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

.ad-card a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(100deg, #337ff1 0%, #765fe8 56%, #e64d82 100%);
  box-shadow: 0 9px 22px rgba(96, 90, 224, 0.22);
  font-size: 11px;
  font-weight: 750;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.ad-card a:hover {
  filter: brightness(0.96);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(96, 90, 224, 0.28);
}

.ad-note {
  margin: 8px 0 0;
  color: #a0a9b7;
  text-align: center;
  font-size: 8px;
}

.year-strip {
  border-top: 1px solid var(--line);
  background: #fff;
}

.year-strip > div {
  width: min(1400px, calc(100% - 48px));
  margin: 0 auto;
  padding: 40px 0 44px;
}

.year-strip p {
  margin: 0 0 13px;
  font-size: 13px;
  font-weight: 750;
}

.year-links {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.year-links button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #526078;
  background: #fff;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.year-links button:hover:not(:disabled) {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-pale);
}

.year-links button:disabled {
  cursor: default;
}

footer {
  color: #c7cfdd;
  background: #121a2a;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: min(1400px, calc(100% - 48px));
  margin: 0 auto;
  padding: 42px 0 32px;
}

.footer-inner strong {
  color: #fff;
  font-size: 14px;
}

.footer-inner p {
  margin: 9px 0 0;
  color: #8f9aaf;
  font-size: 11px;
}

.footer-links {
  display: flex;
  gap: 25px;
  font-size: 10px;
}

.source-note {
  width: min(1400px, calc(100% - 48px));
  margin: 0 auto;
  padding: 19px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #727e94;
  font-size: 9px;
}

dialog {
  width: min(680px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 0;
  border-radius: 22px;
  color: var(--ink);
  box-shadow: 0 25px 80px rgba(18, 29, 49, 0.24);
}

dialog::backdrop {
  background: rgba(13, 24, 44, 0.5);
  backdrop-filter: blur(4px);
}

.dialog-shell {
  position: relative;
  padding: 34px 38px 30px;
}

.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0 0 2px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #5d687b;
  background: #f0f3f7;
  font-size: 20px;
  cursor: pointer;
}

.dialog-meta {
  display: flex;
  gap: 7px;
  margin-bottom: 22px;
}

.dialog-meta span {
  padding: 5px 8px;
  border-radius: 6px;
  color: #58657c;
  background: #f0f3f7;
  font-size: 9px;
  font-weight: 750;
}

.dialog-kicker {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 11px;
}

.dialog-shell h2 {
  margin: 0 0 22px;
  color: var(--blue);
  font-size: 26px;
}

.dialog-stem {
  margin: 0 0 20px;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.9;
}

.dialog-choices {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: choices;
}

.dialog-choices li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.6;
  counter-increment: choices;
}

.dialog-choices li::before {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  color: #677389;
  background: #f0f3f7;
  content: counter(choices, lower-alpha);
  font-size: 11px;
  font-weight: 800;
}

.answer-area {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 22px;
}

.answer-area > button {
  min-height: 47px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--blue);
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.answer-area > div {
  padding: 15px 18px;
  border: 1px solid #bce3d5;
  border-radius: 10px;
  color: var(--green);
  background: #effaf6;
}

.answer-area small,
.answer-area strong {
  display: block;
}

.answer-area small {
  margin-bottom: 3px;
  font-size: 9px;
  font-weight: 700;
}

.answer-area strong {
  font-size: 20px;
}

.dialog-source {
  margin: 16px 0 0;
  color: #9ba4b4;
  font-size: 9px;
}

.dialog-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.dialog-navigation button {
  padding: 8px 0;
  border: 0;
  color: #5b687e;
  background: none;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.dialog-navigation button:disabled {
  color: #c2c8d2;
}

.mobile-ad {
  display: none;
}

.detail-shell {
  width: min(1120px, calc(100% - 48px));
  min-height: calc(100vh - 210px);
  margin: 0 auto;
  padding: 30px 0 72px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 11px;
}

.breadcrumbs a:hover {
  color: var(--blue);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 236px;
  gap: 28px;
}

.detail-article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 28px rgba(43, 65, 101, 0.05);
}

.detail-heading {
  padding: 24px 34px 0;
}

.detail-heading > p {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 11px;
}

.detail-heading h1 {
  margin: 0;
  color: #48546b;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}

.detail-question {
  padding: 5px 34px 0;
}

.detail-question h2,
.detail-prompt {
  margin: 0 0 8px;
  color: #48546b;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}

.detail-choices {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-choices li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-height: 32px;
  padding: 0;
  color: #48546b;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}

.detail-answer {
  margin: 10px 34px 24px;
  color: #48546b;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}

.problem-navigation {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.problem-navigation > * {
  padding: 18px 10px;
  color: var(--blue);
  text-align: center;
  font-size: 11px;
  font-weight: 700;
}

.problem-navigation > * + * {
  border-left: 1px solid var(--line);
}

.problem-navigation [aria-disabled="true"] {
  color: #b2bac8;
}

.block-navigation {
  margin-bottom: 22px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.block-navigation > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.block-navigation h2 {
  margin: 0;
  font-size: 15px;
}

.block-navigation > div:first-child > a {
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}

.block-link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.block-link-grid a {
  display: grid;
  min-height: 68px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.block-link-grid a:hover,
.block-link-grid a.is-current {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-pale);
}

.block-link-grid a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.block-link-grid strong {
  font-size: 14px;
}

.block-link-grid span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.years-index {
  padding: 32px 34px 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 28px rgba(43, 65, 101, 0.05);
}

.years-index .eyebrow {
  color: var(--blue);
}

.years-index h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
}

.years-index > p:not(.eyebrow) {
  margin: 10px 0 26px;
  color: var(--muted);
  font-size: 13px;
}

.year-index-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.year-index-grid a {
  display: grid;
  min-height: 112px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.year-index-grid a:hover {
  border-color: var(--blue);
  background: var(--blue-pale);
}

.year-index-grid a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.year-index-grid strong {
  font-size: 16px;
}

.year-index-grid span {
  margin-top: 9px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 750;
}

.year-index-grid small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

@media (max-width: 1200px) {
  body {
    padding-bottom: 72px;
  }

  .page-shell {
    display: block;
    width: min(100% - 48px, 960px);
    margin-top: 24px;
  }

  .ad-column {
    display: none;
  }

  .detail-layout {
    display: block;
  }

  .filter-panel {
    margin-bottom: 18px;
    padding: 18px 20px;
  }

  .filter-panel .filter-heading {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .filter-panel .reset-button {
    min-height: 44px;
    padding: 0 8px;
  }

  .mobile-filter-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #cfdcf0;
    border-radius: 8px;
    color: var(--blue);
    background: var(--blue-pale);
    font-size: 11px;
    font-weight: 750;
  }

  .filter-body {
    display: none;
    margin-top: 15px;
    padding-top: 2px;
    border-top: 1px solid var(--line);
  }

  .filter-panel.is-open .filter-body {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 22px;
  }

  .filter-group {
    align-content: start;
  }

  .archive-stats {
    width: min(430px, 48%);
  }

  .archive-stats div {
    padding-right: 10px;
    padding-left: 10px;
  }

  .mobile-ad {
    position: fixed;
    z-index: 18;
    right: auto;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 50%;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    width: calc(100% - 24px);
    max-width: 760px;
    min-height: 58px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    color: #fff;
    background: rgba(17, 20, 29, 0.95);
    box-shadow: 0 12px 30px rgba(12, 18, 31, 0.35);
    backdrop-filter: blur(16px);
    transform: translateX(-50%);
  }

  .mobile-ad-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: cover;
  }

  .mobile-ad small,
  .mobile-ad strong {
    display: block;
  }

  .mobile-ad small {
    color: #9ca7ba;
    font-size: 7px;
  }

  .mobile-ad strong {
    margin-top: 2px;
    font-size: 11px;
  }

  .mobile-ad strong > span {
    display: block;
    white-space: nowrap;
  }

  .mobile-ad .aident-wordmark {
    color: #fff;
  }

  .mobile-ad .aident-ai {
    display: inline;
  }

  .mobile-ad b {
    padding: 8px 12px;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(110deg, #337ff1 0%, #765fe8 56%, #e64d82 100%);
    font-size: 10px;
  }
}

@media (max-width: 820px) {
  .header-inner,
  .hero-inner,
  .page-shell,
  .year-strip > div,
  .footer-inner,
  .source-note {
    width: min(100% - 32px, 680px);
  }

  .header-inner {
    position: relative;
  }

  .global-nav {
    position: absolute;
    top: calc(100% - 1px);
    right: 0;
    left: 0;
    display: none;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
  }

  .global-nav.is-open {
    display: grid;
  }

  .global-nav a {
    min-height: 48px;
    padding: 14px 16px;
  }

  .global-nav a + a {
    border-top: 1px solid var(--line);
  }

  .global-nav a::after {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .hero-inner {
    display: block;
    padding: 36px 0 34px;
  }

  .hero-description {
    margin-top: 13px;
  }

  .archive-stats {
    width: 100%;
    margin-top: 28px;
  }

  .archive-stats div {
    padding: 18px 10px;
  }

  .archive-stats dd {
    font-size: 22px;
  }

  .page-shell {
    display: block;
    margin-top: 22px;
  }

  .filter-panel {
    margin-bottom: 16px;
  }

  .filter-panel .filter-heading {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .filter-panel .reset-button {
    min-height: 44px;
    padding: 0 8px;
  }

  .mobile-filter-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #cfdcf0;
    border-radius: 8px;
    color: var(--blue);
    background: var(--blue-pale);
    font-size: 11px;
    font-weight: 750;
  }

  .filter-body {
    display: none;
    margin-top: 15px;
    padding-top: 2px;
    border-top: 1px solid var(--line);
  }

  .filter-panel.is-open .filter-body {
    display: block;
  }

  .filter-group {
    display: flex;
    flex-wrap: wrap;
  }

  .filter-group legend {
    flex-basis: 100%;
  }

  .filter-group > label {
    min-width: 90px;
  }

  .segmented-options {
    width: min(260px, 100%);
  }

  .year-links {
    grid-template-columns: repeat(3, 1fr);
  }

  .year-index-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .footer-inner {
    display: block;
  }

  .footer-links {
    margin-top: 25px;
  }

  .detail-shell {
    width: min(100% - 32px, 680px);
  }

  .detail-layout {
    display: block;
  }

}

@media (max-width: 520px) {
  .site-header .header-inner {
    min-height: 62px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .hero h1 {
    font-size: 29px;
  }

  .hero-description {
    font-size: 12px;
  }

  .archive-stats dt {
    font-size: 11px;
  }

  .archive-stats dd {
    font-size: 18px;
  }

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

  .archive-stats div:last-child {
    display: none;
  }

  .filter-panel {
    padding: 18px;
  }

  .filter-heading {
    gap: 8px;
  }

  .filter-heading h2 {
    min-width: 0;
    font-size: 14px;
    line-height: 1.3;
    white-space: nowrap;
  }

  .filter-actions {
    flex: 0 0 auto;
    gap: 6px;
  }

  .filter-panel .reset-button,
  .mobile-filter-toggle {
    font-size: 12px;
    white-space: nowrap;
  }

  .mobile-filter-toggle {
    padding-right: 10px;
    padding-left: 10px;
  }

  .search-card {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .search-card > label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .search-card > p {
    display: none;
  }

  .search-row {
    grid-template-columns: 22px minmax(0, 1fr) 72px;
    min-height: 52px;
    padding-left: 12px;
  }

  .search-row input {
    height: 50px;
    padding: 0 8px;
    font-size: 16px;
  }

  .search-row button {
    grid-column: auto;
    min-width: 64px;
    min-height: 44px;
    margin: 4px;
  }

  .result-toolbar {
    display: block;
  }

  .result-toolbar h2 {
    font-size: 16px;
    white-space: nowrap;
  }

  .result-toolbar h2 span {
    font-size: 24px;
  }

  .toolbar-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    margin-top: 12px;
    gap: 7px;
  }

  .sort-control {
    min-width: 0;
  }

  .sort-control span {
    display: none;
  }

  .sort-control select {
    width: 100%;
    min-width: 0;
    height: 44px;
    font-size: 14px;
  }

  .question-card {
    min-height: 0;
    padding: 16px;
  }

  .question-content h3,
  .question-prompt {
    margin-top: 5px;
    font-size: 15px;
    line-height: 1.7;
  }

  .question-number {
    font-size: 14px;
    line-height: 1.7;
  }

  .inline-choices li {
    min-height: 36px;
    font-size: 15px;
    line-height: 1.7;
  }

  .question-answer {
    font-size: 15px;
    line-height: 1.7;
  }

  .question-answer summary,
  .detail-answer summary {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }

  .pagination button:nth-of-type(4),
  .pagination button:nth-of-type(5),
  .pagination span {
    display: none;
  }

  .dialog-shell {
    padding: 28px 20px 24px;
  }

  .dialog-stem {
    font-size: 16px;
    line-height: 1.75;
  }

  .year-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .years-index {
    padding: 24px 20px 28px;
  }

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

  .year-index-grid a {
    min-height: 104px;
    padding: 14px;
  }

  .block-navigation {
    padding: 17px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 14px 20px;
  }

  .detail-heading,
  .detail-question {
    padding-right: 20px;
    padding-left: 20px;
  }

  .detail-question h2,
  .detail-prompt,
  .detail-choices li,
  .detail-answer {
    font-size: 16px;
    line-height: 1.75;
  }

  .detail-choices li {
    min-height: 40px;
  }

  .detail-answer {
    margin-right: 20px;
    margin-left: 20px;
  }

}

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

.search-icon {
  display: grid;
  place-items: center;
  color: #8490a4;
  font-size: 24px;
  line-height: 1;
}

.question-card[hidden] {
  display: none;
}

.question-content h3,
.question-prompt,
.detail-question h2,
.detail-prompt {
  white-space: pre-line;
}

.question-image-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  margin: 12px 0 16px;
}

.question-image-item {
  display: grid;
  width: min(260px, 100%);
  height: 200px;
  margin: 0;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.question-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 198px;
  object-fit: contain;
  background: #fff;
}

.question-image-grid.is-detail .question-image-item {
  width: min(360px, 100%);
  height: 280px;
}

.question-image-grid.is-detail .question-image {
  max-height: 278px;
}

.question-card {
  content-visibility: auto;
  contain-intrinsic-size: auto 360px;
}

.search-status {
  min-height: 18px;
  margin: 12px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 11px;
}

.generated-year-links {
  grid-template-columns: repeat(5, 1fr);
}

.generated-year-links a {
  display: grid;
  min-height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #526078;
  background: #fff;
  font-size: 12px;
  font-weight: 650;
}

.generated-year-links a:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-pale);
}

.subject-strip {
  border-top: 1px solid var(--line);
  background: #f8faff;
}

.subject-strip > div,
.database-guide > div {
  width: min(1400px, calc(100% - 48px));
  margin: 0 auto;
  padding: 40px 0 44px;
}

.directory-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.directory-heading p {
  margin: 0;
  font-size: 13px;
  font-weight: 750;
}

.directory-heading a {
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}

.generated-subject-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.generated-subject-links a {
  display: flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #526078;
  background: #fff;
}

.generated-subject-links a:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-pale);
}

.generated-subject-links strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.generated-subject-links span {
  flex: none;
  color: var(--muted);
  font-size: 9px;
}

.database-guide {
  border-top: 1px solid var(--line);
  background: #fff;
}

.database-guide > div {
  max-width: 900px;
}

.database-guide .eyebrow {
  color: var(--blue);
}

.database-guide h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.database-guide p {
  margin: 8px 0 0;
  color: #59667c;
  font-size: 12px;
  line-height: 1.9;
}

.database-guide a {
  color: var(--blue);
  font-weight: 700;
}

.archive-page-hero {
  color: #fff;
  background: linear-gradient(125deg, #0b3a91 0%, #115bc7 55%, #1977e6 100%);
}

.archive-page-hero > div {
  width: min(1400px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 38px;
}

.archive-page-hero .breadcrumbs {
  margin: 0 0 12px;
  color: #cfe3ff;
}

.archive-page-hero h1 {
  margin: 0;
  font-size: clamp(25px, 3vw, 36px);
}

.archive-page-hero p:last-child {
  margin: 10px 0 0;
  color: #dbeaff;
  font-size: 12px;
}

.archive-list-shell {
  width: min(1400px, calc(100% - 48px));
}

.archive-list-shell .detail-layout {
  grid-template-columns: minmax(0, 1fr) 236px;
}

.static-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 26px;
}

.static-pagination a,
.static-pagination > span:not(.ellipsis) {
  display: grid;
  min-width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #536079;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
}

.static-pagination > .is-active {
  border-color: var(--blue);
  color: #fff;
  background: var(--blue);
}

.static-pagination .ellipsis {
  padding: 8px 3px;
  color: var(--muted);
}

.about-article {
  padding: 30px 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 28px rgba(43, 65, 101, 0.05);
}

.about-article h1 {
  margin: 0 0 28px;
  font-size: 24px;
}

.about-article h2 {
  margin: 28px 0 8px;
  font-size: 15px;
}

.about-article p {
  color: #59667c;
  font-size: 13px;
  line-height: 1.9;
}

.about-article a {
  color: var(--blue);
  font-weight: 700;
}

.subject-index h2 {
  margin: 34px 0 14px;
  font-size: 16px;
}

.subject-index-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.subject-index-grid a {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.subject-index-grid a:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-pale);
}

.subject-index-grid strong {
  font-size: 12px;
}

.subject-index-grid span {
  color: var(--muted);
  font-size: 10px;
}

.subject-archive {
  padding: 30px 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 28px rgba(43, 65, 101, 0.05);
}

.subject-archive > .eyebrow {
  color: var(--blue);
}

.subject-archive > h1 {
  margin: 0 0 10px;
  font-size: 26px;
}

.subject-archive > p {
  color: #59667c;
  font-size: 12px;
  line-height: 1.9;
}

.subject-archive .subject-count {
  color: var(--blue);
  font-weight: 750;
}

.subject-year-group {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.subject-year-group > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.subject-year-group h2 {
  margin: 0;
  font-size: 15px;
}

.subject-year-group h2 a:hover {
  color: var(--blue);
}

.subject-year-group > div > span {
  color: var(--muted);
  font-size: 10px;
}

.subject-question-links {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.subject-question-links a {
  display: grid;
  min-height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #536079;
  background: #fff;
  font-size: 10px;
  font-weight: 700;
}

.subject-question-links a:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-pale);
}

@media (max-width: 820px) {
  .generated-year-links {
    grid-template-columns: repeat(3, 1fr);
  }

  .archive-page-hero > div,
  .archive-list-shell,
  .subject-strip > div,
  .database-guide > div {
    width: min(100% - 32px, 680px);
  }

  .generated-subject-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .subject-question-links {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .generated-year-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .question-image-item {
    width: min(100%, 320px);
    height: 220px;
  }

  .question-image {
    max-height: 218px;
  }

  .question-image-grid.is-detail .question-image-item {
    width: 100%;
    height: min(280px, 70vw);
  }

  .question-image-grid.is-detail .question-image {
    max-height: min(278px, calc(70vw - 2px));
  }

  .about-article {
    padding: 24px 20px;
  }

  .generated-subject-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .generated-subject-links strong {
    white-space: normal;
  }

  .subject-index-grid {
    grid-template-columns: 1fr;
  }

  .subject-archive {
    padding: 24px 20px;
  }

  .subject-question-links {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
