@charset "UTF-8";

:root {
  --ink: #213b34;
  --green: #235a48;
  --muted: #798079;
  --line: #e6e9e3;
  --paper: #fbfcf9;
  --soft: #edf3eb;
  --orange: #d58762;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.65;
  letter-spacing: -.35px;
}

button,
input,
select {
  font: inherit;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

button,
select,
label:has(input[type="radio"]),
label:has(input[type="checkbox"]) {
  cursor: pointer;
}

button {
  color: inherit;
}

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

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: none;
}

.container {
  max-width: 1232px;
  margin: 0 auto;
  padding: 0 40px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 100;
  padding: 12px;
  background: white;
}

.skip-link:focus {
  top: 10px;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.header-inner {
  max-width: 1232px;
  height: 90px;
  margin: auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -1.3px;
  white-space: nowrap;
}

.brand-icon {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: white;
  margin-right: 8px;
}

.brand-icon svg {
  width: 21px;
}

.brand-dot {
  color: var(--orange);
}

nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-header nav {
  height: 100%;
  font-size: 14px;
}

.site-header nav a,
.site-header nav button {
  height: 100%;
  display: flex;
  align-items: center;
  border: 0;
  background: none;
  padding: 0 2px;
}

.site-header nav .nav-active {
  border-bottom: 3px solid var(--green);
  font-weight: 700;
}

.site-header nav button {
  color: #757e77;
  gap: 10px;
}

.header-note {
  margin-left: auto;
  color: #8b918a;
  font-size: 12px;
}

.hero {
  display: flex;
  justify-content: space-between;
  min-height: 315px;
  margin: 36px 0 40px;
  background: #eef2e9;
  border-radius: 16px;
  padding: 38px 48px;
  overflow: hidden;
  position: relative;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  letter-spacing: .4px;
  color: #61715d;
  margin: 0 0 15px;
}

.eyebrow span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #668767;
}

h1 {
  font-size: 38px;
  font-weight: 750;
  line-height: 1.43;
  letter-spacing: -1.8px;
  margin: 0;
}

h1 em {
  font-style: normal;
  color: #3b6b4f;
}

.hero-description {
  color: #7c8577;
  font-size: 13px;
  line-height: 1.9;
  margin: 17px 0 0;
}

.hero-art {
  width: 335px;
  position: relative;
  flex-shrink: 0;
}

.art-orbit {
  position: absolute;
  border: 1px solid #cfdcc9;
  border-radius: 50%;
  width: 245px;
  height: 245px;
  left: 42px;
  top: -2px;
}

.orbit-two {
  width: 320px;
  height: 320px;
  left: 5px;
  top: -40px;
  opacity: .6;
}

.art-card {
  position: absolute;
  width: 205px;
  height: 200px;
  top: 18px;
  left: 69px;
  transform: rotate(-9deg);
  background: #fffef6;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 20px 35px #48613a15;
  border: 1px solid #fff;
}

.art-card>span:not(.art-icon):not(.art-check) {
  display: block;
  font-size: 10px;
  color: #949c85;
  margin-top: 13px;
}

.art-card strong {
  display: block;
  font-size: 16px;
  letter-spacing: -.7px;
  margin-top: 3px;
}

.art-icon {
  background: #edf1e5;
  border-radius: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #4d7653;
}

.art-icon svg {
  width: 27px;
  height: 27px;
}

.art-line {
  background: #e9eddf;
  height: 5px;
  margin-top: 14px;
  width: 95px;
  border-radius: 10px;
}

.art-line.short {
  width: 65px;
  margin-top: 7px;
}

.art-check {
  position: absolute;
  bottom: -14px;
  right: -18px;
  width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #2e6046;
  color: white;
  border: 5px solid #eef2e9;
}

.art-check svg {
  width: 25px;
  height: 25px;
}

.art-star {
  position: absolute;
  right: 28px;
  top: 5px;
  font-size: 52px;
  color: #c58b5c;
  transform: rotate(12deg);
}

.art-label {
  position: absolute;
  bottom: -2px;
  left: 57px;
  font-size: 10px;
  color: #8d9a81;
  letter-spacing: 1px;
}

.workspace {
  display: grid;
  grid-template-columns: 276px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.filter-panel {
  position: sticky;
  top: 20px;
  max-height: calc(100dvh - 40px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow-y: auto;
  scrollbar-width: thin;
}

#filter-form {
  padding: 24px 20px 20px;
}

.filter-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-heading h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 16px;
  margin: 0;
}

.filter-heading svg {
  width: 17px;
  height: 17px;
}

.text-button {
  border: 0;
  background: transparent;
  color: #8b918b;
  font-size: 11px;
  padding: 4px 0;
}

.filter-intro {
  color: #92988e;
  font-size: 11px;
  margin: 5px 0 22px;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 19px;
  min-width: 0;
}

legend,
.field-label {
  display: flex;
  gap: 6px;
  align-items: center;
  width: 100%;
  color: #4e5b50;
  font-size: 12px;
  font-weight: 650;
  margin-bottom: 9px;
  padding: 0;
}

.field-label span {
  font-weight: 400;
  font-size: 10px;
  color: #9ca195;
}

.audience-options,
.gender-options {
  display: flex;
  gap: 5px;
}

.audience-options label,
.gender-options label {
  flex: 1;
  position: relative;
  min-width: 0;
}

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

.audience-options span,
.gender-options span {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 36px;
  border: 1px solid #e8eae5;
  border-radius: 5px;
  font-size: 11px;
  color: #8a9087;
  transition: .15s ease;
}

.audience-options input:checked+span,
.gender-options input:checked+span {
  background: #f0f5ee;
  color: #315f40;
  border-color: #72936d;
  font-weight: 700;
}

.age-input {
  display: flex;
  align-items: center;
  border: 1px solid #e3e7df;
  border-radius: 5px;
  padding-right: 12px;
  margin-bottom: 17px;
}

.age-input input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 10px;
  color: var(--ink);
  font-size: 12px;
}

.age-input>span {
  color: #9ba192;
  font-size: 12px;
}

input::placeholder {
  color: #a5aa9f;
}

select {
  border: 1px solid #e3e7df;
  padding: 9px 10px;
  border-radius: 5px;
  color: #687361;
  background: #fff;
  max-width: 100%;
}

#income {
  width: 100%;
  font-size: 12px;
}

.field-help {
  margin: 5px 0 19px;
  font-size: 10px;
  color: #a2a699;
}

.condition-group {
  border-top: 1px solid #eef0e9;
  padding: 14px 0;
}

.condition-group summary {
  font-size: 12px;
  font-weight: 650;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.condition-group summary::after {
  content: '+';
  color: #8a9a82;
  font-size: 16px;
  font-weight: 400;
}

.condition-group[open] summary::after {
  content: '−';
}

.condition-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.condition-options label {
  position: relative;
}

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

.condition-options span {
  display: block;
  padding: 5px 8px;
  border: 1px solid #e7eae2;
  border-radius: 5px;
  color: #8c9386;
  font-size: 11px;
  line-height: 1.6;
}

.condition-options input:checked+span {
  background: #edf3e8;
  border-color: #75996a;
  color: #3d663b;
}

.unknown-option {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding-top: 15px;
  margin-top: 3px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: #737f6e;
}

input[type="checkbox"] {
  accent-color: var(--green);
}

.unknown-option input {
  margin-top: 4px;
}

.unknown-option small {
  display: block;
  font-size: 10px;
  color: #a0a696;
  margin-top: 3px;
}

.filter-rule {
  font-size: 10px;
  color: #9da591;
  line-height: 1.8;
  margin: 15px 0;
}

.primary-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  background: var(--green);
  color: white;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

.primary-button:hover {
  background: #164633;
}

.filter-submit {
  width: 100%;
}

.section-kicker {
  color: #879a78;
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 700;
}

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

.dataset-count {
  color: #a0a797;
  font-size: 10px;
}

.dataset-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 3px 12px;
}

.detail-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  margin: 0 22px 16px 0;
}

.detail-breadcrumb a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.results-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.kakao-share-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  border-radius: 6px;
  padding: 3px 8px;
  height: 26px;
  align-self: center;
  line-height: 1.3;
  color: #302600;
  background: #fee500;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.kakao-share-button:hover:not(:disabled) { background: #f4d900; }
.kakao-share-button:disabled { opacity: .45; cursor: not-allowed; }
.share-status { color: var(--muted); font-size: 11px; margin: 0 0 15px; }

@media (max-width: 740px) {
  .results-toolbar { flex-wrap: wrap; }
  .results-actions { flex-wrap: wrap; gap: 8px; }
}

@media (max-width: 740px) {
  .dataset-meta {
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
  }
}

.results-panel h2 {
  margin: 7px 0 21px;
  font-size: 25px;
  letter-spacing: -1px;
  font-weight: 750;
}

.results-panel {
  outline: none;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 11px;
  background: white;
  border: 1px solid #d8e1d1;
  border-radius: 8px;
  padding: 6px 7px 6px 16px;
}

.search-box>svg {
  color: #76906c;
  width: 19px;
}

.search-box input {
  flex: 1;
  min-width: 0;
  padding: 9px 0;
  border: 0;
  background: transparent;
  font-size: 12px;
  color: var(--ink);
}

.search-box input:focus {
  outline: 0;
}

.search-box:focus-within {
  outline: 2px solid #87a179;
  outline-offset: 2px;
}

.search-box button {
  border: 0;
  background: #f0f4eb;
  color: #5c7750;
  border-radius: 5px;
  padding: 8px 17px;
  font-size: 12px;
  font-weight: 600;
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.category-list button {
  background: transparent;
  border: 1px solid #e2e7dc;
  color: #929b88;
  border-radius: 20px;
  padding: 5px 13px;
  font-size: 11px;
}

.category-list button[aria-pressed="true"] {
  background: #355740;
  color: white;
  border-color: #355740;
}

.applied-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.applied-filters:not(:empty) {
  padding: 14px 0 0;
}

.applied-filters span {
  font-size: 10px;
  background: #e9f0e4;
  color: #5d7c50;
  padding: 3px 8px;
  border-radius: 4px;
}

.results-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 20px 0 17px;
}

.results-toolbar p {
  margin: 0;
  font-size: 13px;
  color: #829076;
}

.results-toolbar strong {
  color: #315f40;
  font-size: 16px;
  font-weight: 750;
}

.sort-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0;
}

.sort-label select {
  border: 0;
  background: transparent;
  font-size: 11px;
  color: #909987;
  padding: 3px;
}

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

.benefit-card {
  position: relative;
  background: #fff;
  border: 1px solid #e4e8df;
  border-radius: 10px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  min-height: 265px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}

.benefit-card:hover {
  border-color: #a6b798;
  transform: translateY(-2px);
  box-shadow: 0 7px 20px #31582c08;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding-right: 25px;
  min-height: 22px;
}

.card-tag {
  color: #779067;
  background: #f0f5e9;
  border-radius: 3px;
  padding: 2px 7px;
  font-size: 10px;
}

.card-tag.warm {
  color: #b68c6d;
  background: #faf1e6;
}

.card-icon {
  position: absolute;
  top: 20px;
  right: 19px;
  color: #abb79e;
  font-size: 20px;
  line-height: 1.4;
}

.benefit-card h3 {
  margin: 13px 0 9px;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -.65px;
  font-weight: 700;
}

.card-link::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
}

.card-link:focus-visible {
  outline: none;
}

.card-description {
  font-size: 12px;
  color: #929b88;
  line-height: 1.85;
  margin: 0 0 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-bottom {
  margin-top: auto;
  border-top: 1px solid #edf0e8;
  padding-top: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.card-agency {
  font-size: 10px;
  color: #99a18e;
  display: block;
}

.card-deadline {
  font-size: 11px;
  color: #829171;
  margin-top: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-bottom>svg {
  width: 16px;
  color: #8da17b;
  margin-bottom: 2px;
}

.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 28px;
}

.pagination button {
  border: 0;
  min-width: 32px;
  height: 32px;
  border-radius: 5px;
  background: transparent;
  color: #939f88;
  font-size: 12px;
}

.pagination button[aria-current="page"] {
  background: #31563c;
  color: #fff;
}

.pagination button:disabled {
  opacity: .3;
  cursor: default;
}

.pagination button:hover:not(:disabled) {
  background: #e6eddf;
  color: #30513a;
}

.results-note {
  color: #a4ac9a;
  font-size: 10px;
  line-height: 1.9;
  margin: 27px 0 0;
  padding: 17px 0;
  border-top: 1px solid var(--line);
}

.results-note>span {
  margin-right: 4px;
}

.site-footer {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-top: 30px;
  padding-bottom: 35px;
  margin-top: 60px;
  border-top: 1px solid var(--line);
  color: #a1a895;
  font-size: 10px;
}

.footer-brand {
  font-size: 18px;
  opacity: .7;
}

.site-footer>span {
  margin-left: auto;
  font-size: 9px;
}

.site-footer p {
  margin: 0;
}

.empty-state {
  grid-column: 1/-1;
  text-align: center;
  padding: 65px 20px;
  border: 1px dashed #dce3d4;
  border-radius: 10px;
  background: #f7f9f3;
}

.empty-state h3 {
  font-size: 18px;
  margin: 12px 0 8px;
}

.empty-state p {
  color: #8a9780;
  font-size: 12px;
}

.empty-state button {
  margin: 17px auto 0;
}

.empty-icon {
  font-size: 34px;
  color: #a3b291;
}

.skeleton {
  min-height: 265px;
  border-radius: 10px;
  background: linear-gradient(100deg, #edf0e7 25%, #f8faf4 40%, #edf0e7 60%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

dialog {
  border: 1px solid #dfe6d8;
  border-radius: 16px;
  color: var(--ink);
  background: #fdfefb;
  padding: 38px;
  width: min(760px, calc(100vw - 30px));
  max-height: calc(100dvh - 50px);
  box-shadow: 0 35px 120px #102c3030;
}

dialog::backdrop {
  background: #132d2b80;
  backdrop-filter: blur(4px);
}

.dialog-close {
  position: absolute;
  right: 15px;
  top: 15px;
  padding: 6px;
  border: 0;
  border-radius: 50%;
  background: #eff3e9;
  color: #75886a;
  display: grid;
  place-items: center;
  z-index: 1;
}

.detail-dialog h2 {
  font-size: 27px;
  margin: 15px 25px 12px 0;
  line-height: 1.5;
  letter-spacing: -1px;
}

.detail-summary {
  font-size: 14px;
  color: #7c8b71;
  line-height: 1.9;
}

.detail-meta {
  font-size: 11px;
  color: #9aa58f;
  margin: 15px 0 22px;
}

.detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 22px 0 28px;
}

.detail-actions a {
  justify-content: center;
  font-size: 12px;
  padding: 10px 16px;
}

.detail-actions a+a {
  background: #edf2e6;
  color: #526f44;
}

.detail-section {
  border-top: 1px solid #e6ebdf;
  padding: 22px 0;
}

.detail-section h3 {
  font-size: 15px;
  margin: 0 0 12px;
}

.detail-section p {
  font-size: 12px;
  line-height: 1.95;
  color: #7b8871;
  white-space: pre-line;
  overflow-wrap: anywhere;
  margin: 0;
}

.detail-conditions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.detail-conditions span {
  font-size: 10px;
  padding: 4px 8px;
  background: #edf3e5;
  border-radius: 4px;
  color: #708a5d;
}

.guide-dialog {
  width: min(560px, calc(100vw - 30px));
}

.guide-dialog h2 {
  margin-bottom: 25px;
  font-size: 25px;
}

.guide-dialog ol {
  padding-left: 20px;
}

.guide-dialog li {
  margin: 20px 0;
  padding-left: 5px;
}

.guide-dialog p {
  font-size: 12px;
  color: #8a977f;
}

.guide-note {
  background: #eff4e8;
  padding: 16px;
  border-radius: 6px;
  line-height: 1.9;
}

[hidden] {
  display: none !important;
}

.noscript {
  padding: 20px;
  text-align: center;
}

@media (min-width: 1600px) {

  .container,
  .header-inner {
    max-width: 1380px;
  }

  .workspace {
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 42px;
  }

  .hero {
    padding-left: 55px;
  }

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

  .benefit-card {
    padding: 20px;
  }
}

@media (max-width: 1000px) {
  .container {
    padding: 0 25px;
  }

  .header-inner {
    padding: 0 25px;
    gap: 40px;
  }

  .hero {
    padding: 32px;
  }

  h1 {
    font-size: 32px;
  }

  .hero-art {
    width: 255px;
    transform: scale(.85);
    transform-origin: center;
  }

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

  .workspace {
    grid-template-columns: 245px minmax(0, 1fr);
    gap: 23px;
  }

  .benefit-card {
    padding: 17px;
  }

  .header-note {
    display: none;
  }

  .results-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .result-grid {
    gap: 12px;
  }

  .card-icon {
    display: none;
  }

  .card-tags {
    padding-right: 0;
  }

  .site-footer>span {
    max-width: 150px;
    text-align: right;
  }
}

@media (max-width: 740px) {
  .container {
    padding: 0 18px;
  }

  .header-inner {
    height: 72px;
    padding: 0 18px;
    gap: 20px;
    justify-content: space-between;
  }

  .brand {
    font-size: 22px;
  }

  .brand-icon {
    width: 29px;
    height: 29px;
  }

  nav {
    gap: 18px;
  }

  .site-header nav {
    font-size: 12px;
  }

  .hero {
    margin: 22px 0 25px;
    min-height: 260px;
    padding: 27px;
  }

  h1 {
    font-size: 29px;
  }

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

  .hero-art {
    display: none;
  }

  .workspace {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .filter-panel {
    position: static;
    max-height: none;
    overflow-y: visible;
  }

  #filter-form {
    padding: 20px;
  }

  .filter-intro {
    margin-bottom: 18px;
  }

  .audience-options,
  .gender-options {
    max-width: none;
  }

  #personal-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
  }

  #personal-fields fieldset {
    grid-column: 1/-1;
  }

  #personal-fields .field-label {
    grid-column: 1/-1;
  }

  #personal-fields .age-input,
  #personal-fields select,
  #personal-fields .field-help {
    grid-column: 1/-1;
  }

  #condition-groups {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
    align-items: start;
  }

  .filter-rule {
    font-size: 10px;
  }

  .results-panel h2 {
    font-size: 25px;
  }

  .results-topline {
    flex-direction: row;
    align-items: center;
  }

  .result-grid {
    gap: 12px;
  }

  .benefit-card {
    padding: 17px;
    min-height: 265px;
  }

  .benefit-card h3 {
    font-size: 16px;
  }

  .card-description {
    font-size: 11px;
  }

  .site-footer {
    flex-wrap: wrap;
    gap: 7px 15px;
    margin-top: 35px;
    padding-top: 24px;
    padding-bottom: 26px;
  }

  .site-footer>span {
    margin: 0;
    max-width: none;
    width: 100%;
    text-align: left;
  }

  dialog {
    padding: 30px 23px;
  }

  .detail-dialog h2 {
    font-size: 23px;
  }
}

@media (max-width: 420px) {
  .result-grid {
    grid-template-columns: 1fr;
  }

  .benefit-card {
    min-height: 235px;
  }

  .hero {
    padding: 25px 22px;
  }

  h1 {
    font-size: 27px;
  }

  .dataset-count {
    font-size: 9px;
  }

  .section-kicker {
    font-size: 9px;
  }

  .search-box {
    gap: 8px;
    padding-left: 11px;
  }

  .search-box input {
    font-size: 11px;
  }

  .search-box button {
    padding: 8px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

:root {
  color-scheme: light;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-shrink: 0;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  color: var(--ink);
  font-size: 11px;
}

.theme-toggle:hover {
  border-color: #8da17b;
}

.theme-symbol {
  font-size: 17px;
  line-height: 1;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e0e9df;
  --green: #36694e;
  --muted: #acb8a6;
  --line: #34443a;
  --paper: #17221e;
  --soft: #293d2e;
  --orange: #e4a57b;
}

[data-theme="dark"] .site-header,
[data-theme="dark"] .filter-panel,
[data-theme="dark"] .benefit-card,
[data-theme="dark"] .search-box,
[data-theme="dark"] select,
[data-theme="dark"] dialog,
[data-theme="dark"] .skip-link {
  background: #202e26;
  border-color: var(--line);
}

[data-theme="dark"] .hero {
  background: #26382b;
}

[data-theme="dark"] h1 em {
  color: #b0d1a7;
}

[data-theme="dark"] .hero-description,
[data-theme="dark"] .eyebrow,
[data-theme="dark"] .card-description,
[data-theme="dark"] .card-agency,
[data-theme="dark"] .card-deadline,
[data-theme="dark"] .detail-summary,
[data-theme="dark"] .detail-meta,
[data-theme="dark"] .detail-section p,
[data-theme="dark"] .guide-dialog p,
[data-theme="dark"] .filter-intro,
[data-theme="dark"] .field-help,
[data-theme="dark"] .filter-rule,
[data-theme="dark"] .unknown-option,
[data-theme="dark"] .unknown-option small,
[data-theme="dark"] .dataset-count,
[data-theme="dark"] .header-note,
[data-theme="dark"] .results-note,
[data-theme="dark"] .site-footer,
[data-theme="dark"] .empty-state p,
[data-theme="dark"] .text-button {
  color: #a6b49c;
}

[data-theme="dark"] legend,
[data-theme="dark"] .field-label,
[data-theme="dark"] select,
[data-theme="dark"] .condition-group summary,
[data-theme="dark"] .results-toolbar strong {
  color: #d5e4cc;
}

[data-theme="dark"] .age-input,
[data-theme="dark"] .condition-group,
[data-theme="dark"] .condition-options span,
[data-theme="dark"] .audience-options span,
[data-theme="dark"] .gender-options span,
[data-theme="dark"] .card-bottom,
[data-theme="dark"] .detail-section,
[data-theme="dark"] .category-list,
[data-theme="dark"] .category-list button {
  border-color: #3d4c3e;
}

[data-theme="dark"] .condition-options span,
[data-theme="dark"] .audience-options span,
[data-theme="dark"] .gender-options span,
[data-theme="dark"] .category-list button,
[data-theme="dark"] .results-toolbar p,
[data-theme="dark"] .sort-label select,
[data-theme="dark"] .site-header nav button {
  color: #b5c1aa;
}

[data-theme="dark"] .condition-options input:checked+span,
[data-theme="dark"] .audience-options input:checked+span,
[data-theme="dark"] .gender-options input:checked+span {
  background: #344b32;
  border-color: #86a878;
  color: #d9edcd;
}

[data-theme="dark"] .card-tag,
[data-theme="dark"] .applied-filters span,
[data-theme="dark"] .detail-conditions span,
[data-theme="dark"] .search-box button,
[data-theme="dark"] .dialog-close,
[data-theme="dark"] .guide-note,
[data-theme="dark"] .detail-actions a+a {
  background: #31422f;
  color: #c2d7af;
}

[data-theme="dark"] .card-tag.warm {
  background: #493c2b;
  color: #e3bf92;
}

[data-theme="dark"] .category-list button[aria-pressed="true"],
[data-theme="dark"] .pagination button[aria-current="page"] {
  background: #587b49;
  border-color: #587b49;
  color: #fff;
}

[data-theme="dark"] .pagination button:hover:not(:disabled) {
  background: #3d5335;
  color: #e4efdc;
}

[data-theme="dark"] .empty-state {
  background: #202e24;
  border-color: #41523b;
}

[data-theme="dark"] .benefit-card:hover {
  border-color: #839b6f;
}

[data-theme="dark"] .art-orbit {
  border-color: #4d6046;
}

[data-theme="dark"] .art-card {
  background: #38462e;
  border-color: #4c5d3e;
}

[data-theme="dark"] .art-icon {
  background: #4b5e3d;
  color: #d0e2b7;
}

[data-theme="dark"] .art-line {
  background: #5a6c47;
}

[data-theme="dark"] .art-check {
  border-color: #26382b;
}

[data-theme="dark"] .art-card>span:not(.art-icon):not(.art-check),
[data-theme="dark"] .art-label {
  color: #b7c6a4;
}

[data-theme="dark"] .skeleton {
  background: linear-gradient(100deg, #253529 25%, #354732 40%, #253529 60%);
  background-size: 200% 100%;
}

[data-theme="dark"] .age-input input,
[data-theme="dark"] .search-box input {
  color: var(--ink);
}

[data-theme="dark"] input::placeholder {
  color: #99a58d;
}

[data-theme="dark"] .section-kicker {
  color: #b5c99e;
}

@media (max-width: 1000px) {
  .theme-toggle {
    margin-left: auto;
  }
}

@media (max-width: 740px) {
  .header-inner {
    gap: 12px;
  }

  .site-header nav {
    gap: 12px;
  }

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

  .theme-label {
    display: none;
  }
}
