:root {
  color: #17212b;
  background: #f5f7f8;
  font-family:
    Pretendard, 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic',
    system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  --navy: #12385b;
  --blue: #064f8c;
  --border: #ccd5dc;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-wrap: anywhere;
}

a {
  color: var(--blue);
  text-underline-offset: 4px;
}

:focus-visible {
  outline: 4px solid #f2a900;
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

header {
  color: #fff;
  background: linear-gradient(135deg, #12385b, #17699e);
  border-bottom: 0;
}

.header-inner,
main,
.footer-inner {
  width: min(100% - 32px, 800px);
  margin-inline: auto;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.home-link {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

nav a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  color: #33424f;
  font-weight: 700;
}

header nav a {
  color: #fff;
}

header nav a[aria-current='page'] {
  text-decoration-thickness: 3px;
  text-underline-offset: 7px;
}

main {
  padding-block: 48px 80px;
}

.eyebrow {
  margin-bottom: 4px;
  color: var(--blue);
  font-weight: 800;
}

h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.35;
  letter-spacing: -0.025em;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 7vw, 3rem);
}

h2 {
  margin: 42px 0 12px;
  font-size: 1.5rem;
}

h3 {
  margin: 26px 0 8px;
  font-size: 1.15rem;
}

p,
ul,
ol,
dl {
  margin-top: 0;
}

.lead {
  color: #4d5c68;
  font-size: 1.1rem;
}

.region-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px 24px;
  padding-left: 24px;
}

.region-list li + li {
  margin-top: 0;
}

.region-list span {
  color: #536573;
  font-size: 0.85rem;
}

.hospital-list {
  padding: 0;
  list-style: none;
}

.hospital-entry h2 {
  margin-top: 0;
  font-size: 1.25rem;
}

.guide-case h3 {
  margin-top: 0;
}

.hospital-entry p {
  margin-bottom: 6px;
}

.notice,
.content-card {
  margin-block: 24px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.notice {
  background: #fff8dc;
  border: 2px solid #d9b743;
}

.notice p:last-child,
.content-card p:last-child {
  margin-bottom: 0;
}

li + li {
  margin-top: 9px;
}

dt {
  margin-top: 14px;
  color: #2d3d4a;
  font-weight: 800;
}

dd {
  margin-left: 0;
}

.ad-section {
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
}

.ad-section[hidden] {
  display: none;
}

.ad-section.is-filled {
  height: auto;
  overflow: visible;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.ad-label {
  display: none;
  margin: 0 0 8px;
  color: #69757e;
  font-size: 0.82rem;
  text-align: center;
}

.ad-section.is-filled .ad-label {
  display: block;
}

.ad-reserved {
  min-height: 0;
  overflow: hidden;
}

.ad-reserved .adsbygoogle {
  width: 100%;
  min-height: 100px;
}

.ad-section.is-filled .ad-reserved {
  min-height: 0;
}

.button-link {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  color: #fff;
  background: #075ca8;
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
}

.metadata {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 14px;
}

.metadata dt {
  margin: 0;
}

.metadata dd {
  margin: 0;
}

.report-form {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}

.report-form label {
  display: grid;
  gap: 6px;
  color: #2d4353;
  font-size: 0.88rem;
  font-weight: 800;
}

.report-form input,
.report-form select,
.report-form textarea {
  width: 100%;
  padding: 10px 12px;
  color: #17212b;
  background: #fff;
  border: 1px solid #a9b8c2;
  border-radius: 9px;
  font: inherit;
  font-weight: 400;
}

.report-form textarea {
  resize: vertical;
}

.report-form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.report-form-actions button {
  min-height: 48px;
  padding: 9px 16px;
  color: #fff;
  background: #075ca8;
  border: 2px solid #075ca8;
  border-radius: 9px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.report-form-actions .secondary-button {
  color: #075ca8;
  background: #fff;
}

.form-status {
  min-height: 1.5em;
  margin: 0;
  color: #435663;
  font-size: 0.82rem;
}

footer {
  padding-block: 30px;
  color: #dfeaf2;
  background: #18354d;
}

footer nav a {
  min-height: 40px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.3;
}

footer nav {
  gap: 0 14px;
}

.visit-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  margin: 2px 0 0;
  color: rgb(255 255 255 / 58%);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.3;
}

.visit-counts[hidden] {
  display: none;
}

.visit-counts strong {
  color: rgb(255 255 255 / 76%);
  font-weight: 700;
}

.footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.store-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 10px;
  color: #fff;
  background: #203c32;
  border: 1px solid #3c5b4b;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
}

.store-link > span:first-child {
  display: grid;
}

.store-link small {
  color: #bdd4c4;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.store-link > span[aria-hidden='true'] {
  color: #bdd4c4;
  font-size: 0.95rem;
}

@media (hover: hover) {
  .store-link:hover {
    background: #2a493b;
    border-color: #577561;
  }
}

@media (max-width: 650px) {
  .header-inner {
    padding-block: 14px;
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  main {
    padding-block: 32px 56px;
  }

  .metadata {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .metadata dd + dt {
    margin-top: 12px;
  }

  .footer-actions {
    justify-content: center;
  }
}
