
* { box-sizing: border-box; }
body { margin: 0; color: #23334a; background: #fbfaf7; font: 16px/1.5 system-ui, sans-serif; }
header { display: flex; justify-content: space-between; gap: 12px; padding: 14px max(16px, calc((100% - 960px) / 2)); background: #fff; border-bottom: 1px solid #e8e2d9; }
main { max-width: 992px; margin: auto; padding: 16px; }
h1 { margin: 0; font-size: 26px; }
main > p { margin: 4px 0 18px; }
.service-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tile { display: block; overflow: hidden; color: inherit; text-decoration: none; border: 1px solid #dbe1e8; border-radius: 14px; background: #fff; }
a.tile:hover { border-color: #567da5; }
a.tile:focus-visible { outline: 3px solid #214d81; outline-offset: 2px; }
.preview { position: relative; aspect-ratio: 2 / 1; background: #eaf1f7; }
.preview img { display: block; width: 100%; height: 100%; object-fit: contain; }
.preview span { position: absolute; left: 6px; bottom: 6px; padding: 3px 6px; border-radius: 6px; background: #fff; font-size: 12px; }
.label { min-height: 50px; display: flex; align-items: center; gap: 6px; padding: 8px; font-size: 14px; }
.label > span:last-child { margin-left: auto; color: #214d81; white-space: nowrap; font-size: 12px; }
@media (max-width: 680px) {
  .service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .label { flex-wrap: wrap; }
}

body.service-directory {
  --directory-accent: #006885;
  --directory-tint: #eaf8fc;
  background: #fff;
  color: #142630;
  font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
}
.service-directory header { border-bottom-color: #d7f2fb; }
.service-directory h1,
.service-directory .label strong,
.service-directory .label > span:last-child { color: var(--directory-accent); }
.service-directory .tile { border-color: transparent; }
.service-directory .tile:hover { border-color: var(--directory-accent); }
.service-directory :is(.preview, .label, .service-home-link) { background: var(--directory-tint); }
.service-directory .service-home-link { border-color: transparent; color: var(--directory-accent); }
.service-directory .service-home-link:hover { background: #d7f2fb; }
.service-directory :is(.tile, .service-home-link):focus-visible { outline-color: var(--directory-accent); }
