
/* =========================================================
   CareKorea.com
   케어코리아 공통 스타일시트
   Light theme / Mobile first / Accessible design
   ========================================================= */

/* 01. 자체 호스팅 글꼴
   Pretendard Variable WOFF2 파일을 준비한 뒤 주석 해제

@font-face {
  font-family: "Pretendard";
  src: url("/fonts/PretendardVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
*/

/* 02. 디자인 변수 */

:root {
  color-scheme: light;

  --font-family: "Pretendard Variable", "Pretendard", "Malgun Gothic",
                 "Apple SD Gothic Neo", sans-serif;

  --bg: #f8f6f0;
  --surface: #ffffff;
  --text: #25352d;
  --muted: #526159;

  --primary: #285b49;
  --primary-dark: #1b4435;
  --primary-light: #edf2e9;

  --warm: #94532e;
  --warm-light: #faf0e4;

  --line: #d7dfd5;
  --line-strong: #a7b5a8;

  --blue-light: #eff5f8;
  --blue-dark: #31566a;

  --focus: #94532e;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow: 0 3px 12px rgba(37, 53, 45, 0.045);
  --shadow-hover: 0 6px 20px rgba(37, 53, 45, 0.09);

  --page-width: 1200px;
  --article-width: 740px;
  --gutter: 18px;

  --body-size: 18px;
  --body-leading: 1.8;
  --touch-size: 44px;

  --ad-height: 280px;
}


/* 03. 기본 초기화 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  font-size: 100%;
  scroll-padding-top: 24px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-family);
  font-size: var(--body-size);
  line-height: var(--body-leading);
  word-break: keep-all;
  overflow-wrap: anywhere;
  font-weight: 400;
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-family);
}

h1,
h2,
h3,
h4,
p,
ul,
ol {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--text);
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: -0.035em;
}

p {
  margin-bottom: 1em;
}

a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--primary-dark);
}

button {
  font-size: inherit;
  line-height: 1.5;
  cursor: pointer;
}

button,
input,
select,
textarea {
  max-width: 100%;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

strong {
  font-weight: 700;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

::selection {
  color: var(--primary-dark);
  background: #dce9d9;
}


/* 04. 공통 레이아웃 */

.wrap {
  width: 100%;
  max-width: var(--page-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-width: 0;
}

main.wrap {
  padding-top: 24px;
  padding-bottom: 60px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -200px;
  z-index: 1000;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  background: var(--primary-dark);
  color: #fff;
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}


/* 05. 사이트 머리글 */

.site-header {
  position: relative;
  background: var(--surface);
  border-top: 4px solid var(--primary);
  border-bottom: 1px solid var(--line);
}

.site-header > .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 17px;
  padding-bottom: 17px;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 44px;
  color: var(--primary);
  font-size: 27px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.065em;
  text-decoration: none;
}

.logo:hover {
  color: var(--primary-dark);
}

.logo-sub {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0;
  font-weight: 500;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: var(--touch-size);
  min-width: 86px;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--primary);
  font-size: 16px;
  font-weight: 700;
}

.menu-toggle::before {
  content: "";
  display: block;
  width: 17px;
  height: 13px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  background:
    linear-gradient(currentColor, currentColor)
    center / 100% 2px no-repeat;
}

.menu-toggle:hover,
.menu-toggle[aria-expanded="true"] {
  background: var(--primary-light);
}

.menu-toggle[aria-expanded="true"]::before {
  content: "×";
  height: auto;
  border: 0;
  background: none;
  font-size: 25px;
  line-height: 1;
}


/* 06. 주 메뉴
   JS가 없어도 메뉴 전체를 볼 수 있음 */

.main-nav {
  display: flex;
  flex-direction: column;
  flex-basis: 100%;
  min-width: 0;
  gap: 2px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.js .menu-toggle {
  display: inline-flex;
}

.js .main-nav:not(.is-open) {
  display: none;
}

.main-nav a {
  display: flex;
  align-items: center;
  min-height: var(--touch-size);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 600;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a[aria-current="page"],
.main-nav a[aria-current="location"] {
  background: var(--primary-light);
  color: var(--primary-dark);
}


/* 07. 홈 화면 소개 영역 */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 32px 22px;
  border: 1px solid #dce4d7;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(
      120deg,
      #edf2e9 0%,
      #f1f3e9 60%,
      #f6eee1 100%
    );
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
}

.hero::before {
  width: 240px;
  height: 240px;
  right: -150px;
  top: -115px;
  background: rgba(91, 129, 91, 0.08);
}

.hero::after {
  width: 220px;
  height: 220px;
  bottom: -165px;
  right: -30px;
  background: rgba(148, 83, 46, 0.07);
}

.hero-kicker {
  display: block;
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.015em;
}

.hero h1 {
  max-width: 850px;
  margin: 0 0 16px;
  color: var(--primary-dark);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.055em;
}

.hero-lead {
  max-width: 680px;
  margin: 0;
  color: #43564b;
  font-size: 18px;
  line-height: 1.8;
}


/* 08. 홈 화면 섹션 공통 */

.situations,
.latest,
.trust {
  margin-top: 38px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 20px;
  font-size: 24px;
  line-height: 1.45;
  font-weight: 750;
}

.section-title::before {
  content: "";
  flex: 0 0 5px;
  width: 5px;
  height: 23px;
  border-radius: 4px;
  background: var(--primary);
}


/* 09. 상황별 카드 */

.situation-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 13px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.situation-list > li {
  min-width: 0;
}

.situation-card {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 9px;
  align-items: center;
  gap: 13px;
  width: 100%;
  height: 100%;
  min-height: 116px;
  padding: 19px 16px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.situation-card::after {
  content: "";
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--primary);
  border-right: 2px solid var(--primary);
  transform: rotate(45deg);
}

.situation-card:hover {
  color: var(--text);
  background: #fbfdf9;
  border-color: #73947c;
  box-shadow: var(--shadow-hover);
}

.situation-card:hover strong {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.sit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: var(--primary-light);
  font-size: 28px;
  line-height: 1;
  font-family: "Apple Color Emoji",
               "Segoe UI Emoji",
               "Noto Color Emoji",
               sans-serif;
}

.situation-list li:nth-child(3n + 2) .sit-icon {
  background: #f5eee0;
}

.situation-list li:nth-child(3n + 3) .sit-icon {
  background: #eaf1f3;
}

.sit-text {
  display: block;
  min-width: 0;
}

.sit-text strong {
  display: block;
  margin: 0 0 7px;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.035em;
}

.sit-text > span {
  display: block;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.015em;
}


/* 10. 새로 올라온 글 */

.post-list {
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

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

.post-item > a {
  display: block;
  min-height: var(--touch-size);
  padding: 23px 21px;
  color: var(--text);
  text-decoration: none;
}

.post-item > a:hover {
  background: #fbfcf9;
}

.post-cat {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  padding: 4px 11px;
  border-radius: 6px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.65;
}

.post-title {
  display: block;
  margin-top: 11px;
  color: var(--text);
  font-size: 21px;
  line-height: 1.55;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.post-item a:hover .post-title {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.post-excerpt {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.post-meta {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}


/* 11. 사이트 신뢰 안내 영역 */

.trust {
  padding: 25px 22px;
  background: var(--primary-light);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.trust .section-title {
  margin-bottom: 22px;
  font-size: 23px;
}

.trust-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-list li {
  position: relative;
  min-width: 0;
  padding-left: 33px;
  color: #43564b;
  font-size: 18px;
  line-height: 1.75;
}

.trust-list li::before {
  content: "✓";
  position: absolute;
  top: 1px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.trust-list strong {
  display: block;
  margin-bottom: 5px;
  color: var(--primary-dark);
  font-size: 18px;
}


/* 12. 사이트 바닥글 */

.site-footer {
  padding: 30px 0 32px;
  border-top: 1px solid #d9dfd5;
  background: #eeeee6;
  color: var(--muted);
}

.footer-about {
  max-width: 780px;
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.8;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 20px;
  row-gap: 0;
  margin-bottom: 15px;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-size);
  color: #3c5044;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.copyright {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}


/* =========================================================
   글 페이지
   ========================================================= */


/* 13. 글 페이지 레이아웃 */

main.article-layout {
  max-width: 920px;
  padding-top: 13px;
  padding-bottom: 60px;
}

.article {
  width: 100%;
  max-width: var(--article-width);
  min-width: 0;
  margin: 0 auto;
  padding: 6px 0 0;
  font-size: var(--body-size);
  line-height: var(--body-leading);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  max-width: var(--article-width);
  margin: 0 auto 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-size);
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--primary);
  text-decoration: underline;
}


/* 14. 글 제목 및 작성 정보 */

.article-header {
  margin-bottom: 27px;
  padding-bottom: 23px;
  border-bottom: 1px solid var(--line);
}

.article-header h1 {
  margin: 14px 0 17px;
  font-size: clamp(28px, 5.2vw, 38px);
  line-height: 1.42;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.byline {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.byline a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-size);
  color: var(--primary);
  font-weight: 600;
}


/* 15. 글 본문 */

.article p {
  margin-bottom: 1.2em;
}

.article .byline {
  margin-bottom: 0;
}

.article h2 {
  margin: 46px 0 20px;
  padding-left: 13px;
  border-left: 4px solid var(--primary);
  font-size: 25px;
  font-weight: 750;
  line-height: 1.5;
  letter-spacing: -0.035em;
  scroll-margin-top: 24px;
}

.article h3 {
  margin: 30px 0 15px;
  font-size: 21px;
  line-height: 1.5;
  font-weight: 700;
}

.article > ul,
.article > ol {
  margin: 18px 0 24px;
  padding-left: 1.4em;
}

.article > ul li,
.article > ol li {
  margin-bottom: 10px;
  padding-left: 3px;
}

.article > ul li::marker {
  color: var(--primary);
}

.article > ol li::marker {
  color: var(--primary);
  font-weight: 700;
}

.article hr {
  height: 1px;
  margin: 36px 0;
  border: 0;
  background: var(--line);
}

.article section[id] {
  scroll-margin-top: 24px;
}


/* 16. 핵심 요약 */

.summary-box {
  margin: 24px 0 28px;
  padding: 23px 21px;
  border: 1px solid #c7d7c6;
  border-left: 5px solid var(--primary);
  border-radius: var(--radius);
  background: var(--primary-light);
  color: var(--text);
}

.summary-box .summary-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  color: var(--primary-dark);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.5;
}

.summary-title::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  line-height: 1;
}

.summary-box p:last-child {
  margin-bottom: 0;
}


/* 17. 알아 두세요 / 예시 상자 */

.note-box,
.example-box {
  margin: 25px 0;
  padding: 19px 20px;
  border-radius: var(--radius);
}

.note-box {
  border: 1px solid #e1cfb3;
  border-left: 4px solid var(--warm);
  background: var(--warm-light);
}

.example-box {
  border: 1px solid #d0dee5;
  border-left: 4px solid var(--blue-dark);
  background: var(--blue-light);
}

.note-box p,
.example-box p {
  margin: 0;
}

.note-box strong,
.example-box strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 750;
}

.note-box strong {
  color: #80451f;
}

.example-box strong {
  color: var(--blue-dark);
}


/* 18. 광고 영역
   광고 크기에 맞춰 --ad-height를 조정할 수 있음 */

.ad-slot {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: var(--ad-height);
  margin: 36px 0;
  padding: 26px 0 0;
  border-top: 1px solid #e1e3dc;
  border-bottom: 1px solid #e1e3dc;
  background: #f5f4ef;
  text-align: center;
  isolation: isolate;
}

.ad-label {
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 400;
  text-align: center;
}

.ad-slot .adsbygoogle {
  display: block;
  max-width: 100%;
  min-width: 0;
}


/* 19. 글 목차 */

.toc {
  margin: 28px 0 36px;
  padding: 21px 21px 17px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.toc .toc-title {
  margin: 0 0 11px;
  font-size: 21px;
  color: var(--text);
  font-weight: 750;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
}

.toc li + li {
  border-top: 1px solid #edf0eb;
}

.toc a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--touch-size);
  padding: 9px 0;
  color: var(--primary);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: #a3b5a6;
}

.toc a::before {
  content: counter(toc, decimal-leading-zero);
  flex-shrink: 0;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.toc a:hover {
  color: var(--primary-dark);
  text-decoration-color: currentColor;
}


/* 20. 표
   모바일에서는 표 내부만 가로 스크롤 */

.table-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 23px 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  scrollbar-color: #879d8d #edf1eb;
  scrollbar-width: auto;
}

.table-wrap table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  border-spacing: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.65;
  text-align: left;
}

.table-wrap th,
.table-wrap td {
  padding: 16px;
  vertical-align: top;
  text-align: left;
  overflow-wrap: anywhere;
}

.table-wrap thead th {
  background: #e7eee4;
  color: var(--primary-dark);
  font-weight: 700;
  border-bottom: 1px solid var(--line-strong);
}

.table-wrap tbody td {
  border-bottom: 1px solid var(--line);
}

.table-wrap th + th,
.table-wrap td + td {
  border-left: 1px solid var(--line);
}

.table-wrap tbody tr:nth-child(even) {
  background: #f7f9f5;
}

.table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

.table-wrap caption {
  padding: 12px 16px;
  font-size: 15px;
  color: var(--muted);
  text-align: left;
  caption-side: bottom;
}


/* 21. 체크리스트 */

.checklist {
  margin: 38px 0;
  padding: 23px 21px;
  border: 1px solid #bdcdbd;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.article .checklist h2 {
  margin: 0 0 19px;
  padding: 0;
  border: 0;
  color: var(--primary-dark);
  font-size: 23px;
  line-height: 1.5;
}

.check-list {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.check-list li {
  border-bottom: 1px solid var(--line);
}

.check-list label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 52px;
  padding: 12px 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.6;
  cursor: pointer;
}

.check-list input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  display: grid;
  place-content: center;
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  margin: 3px 0 0;
  border: 1.5px solid #7d9482;
  border-radius: 4px;
  background: var(--surface);
  color: var(--primary);
  cursor: pointer;
}

.check-list input[type="checkbox"]:checked {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.check-list input[type="checkbox"]:checked::before {
  content: "";
  width: 7px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
}


/* 22. 공통 버튼 */

.btn-print,
.btn-share,
.btn-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  min-width: var(--touch-size);
  max-width: 100%;
  padding: 12px 19px;
  border: 1px solid var(--primary);
  border-radius: 9px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  white-space: normal;
  transition:
    background-color 150ms ease,
    border-color 150ms ease;
}

.btn-print {
  width: 100%;
  background: var(--primary);
  color: #fff;
}

.btn-print:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-print::before {
  content: "";
  display: block;
  width: 19px;
  height: 15px;
  flex-shrink: 0;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  background:
    linear-gradient(currentColor, currentColor)
    center 3px / 10px 1px no-repeat,
    linear-gradient(currentColor, currentColor)
    center 6px / 10px 1px no-repeat,
    linear-gradient(currentColor, currentColor)
    center 9px / 10px 1px no-repeat;
}


/* 23. FAQ */

.faq {
  margin: 42px 0;
}

.faq details {
  margin-bottom: 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}

.faq details[open] {
  border-color: #a4b9a6;
}

.faq summary {
  position: relative;
  display: block;
  min-height: 56px;
  padding: 18px 48px 18px 19px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  border-radius: 10px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::marker {
  content: "";
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 17px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 27px;
  font-weight: 400;
  line-height: 1;
}

.faq details[open] summary {
  color: var(--primary-dark);
  background: var(--primary-light);
  border-bottom: 1px solid var(--line);
  border-radius: 10px 10px 0 0;
}

.faq details[open] summary::after {
  content: "−";
}

.faq summary:hover {
  background: var(--primary-light);
}

.faq details p {
  margin: 0;
  padding: 18px 20px 22px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.8;
}

.faq details p + p {
  padding-top: 0;
}


/* 24. 함께 읽으면 좋은 글 */

.series-box {
  margin: 38px 0 28px;
  padding: 22px 21px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.series-box .series-title {
  margin: 0 0 12px;
  font-size: 21px;
  font-weight: 750;
  color: var(--primary-dark);
}

.series-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.series-box li + li {
  border-top: 1px solid #e4e9e2;
}

.series-box a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 10px;
  align-items: center;
  gap: 14px;
  min-height: var(--touch-size);
  padding: 12px 0;
  color: var(--primary);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
  text-decoration: none;
}

.series-box a::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.series-box a:hover {
  text-decoration: underline;
}


/* 25. 공유 버튼 */

.share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  margin: 28px 0 34px;
}

.btn-share {
  flex: 1 1 260px;
  background: #f9e573;
  border-color: #dfcb62;
  color: #40331c;
}

.btn-share:hover {
  background: #f1dc64;
}

.btn-copy {
  flex: 1 1 140px;
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--primary-dark);
}

.btn-copy:hover {
  background: var(--primary-light);
}

.share-status {
  flex-basis: 100%;
  min-width: 0;
  margin: 0 !important;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.share-status:empty {
  display: none;
}


/* 26. 출처 및 면책 안내 */

.sources {
  margin-top: 38px;
  padding: 23px 0 0;
  border-top: 2px solid var(--line-strong);
}

.article .sources h2 {
  margin: 0 0 15px;
  padding: 0;
  border: 0;
  color: var(--text);
  font-size: 21px;
}

.sources ul {
  margin: 0 0 23px;
  padding-left: 1.25em;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.sources li {
  margin-bottom: 10px;
}

.sources a {
  color: var(--primary);
}

.sources .source-date {
  color: var(--muted);
  font-size: 15px;
}

.sources .disclaimer {
  margin: 22px 0 0;
  padding: 17px 18px;
  background: #eeeee7;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}


/* =========================================================
   반응형 디자인
   ========================================================= */


/* 27. 아주 작은 휴대폰 */

@media (max-width: 374px) {
  :root {
    --gutter: 15px;
  }

  .logo {
    font-size: 25px;
  }

  .hero {
    padding: 27px 19px;
  }

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

  .situation-card {
    grid-template-columns: 42px minmax(0, 1fr) 8px;
    padding: 18px 13px;
    gap: 11px;
  }

  .sit-icon {
    width: 42px;
    height: 42px;
    font-size: 25px;
  }

  .sit-text > span {
    font-size: 16px;
  }

  .summary-box,
  .note-box,
  .example-box,
  .toc,
  .checklist,
  .series-box {
    padding-inline: 17px;
  }
}


/* 28. 큰 휴대폰 및 태블릿 */

@media (min-width: 640px) {
  :root {
    --gutter: 26px;
  }

  main.wrap {
    padding-top: 30px;
  }

  .hero {
    padding: 40px 34px;
  }

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

  .situation-card {
    min-height: 140px;
    padding: 22px 19px;
  }

  .sit-text strong {
    font-size: 19px;
  }

  .trust {
    padding: 28px;
  }

  .btn-print {
    width: auto;
  }

  .article-header {
    margin-bottom: 32px;
  }

  .summary-box,
  .toc,
  .checklist,
  .series-box {
    padding: 26px 29px;
  }

  .note-box,
  .example-box {
    padding: 23px 27px;
  }
}


/* 29. 데스크톱 */

@media (min-width: 960px) {
  :root {
    --body-size: 19px;
    --gutter: 32px;
    --ad-height: 300px;
  }

  .site-header > .wrap {
    flex-wrap: nowrap;
    gap: 24px;
    min-height: 98px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .logo {
    flex-shrink: 0;
    font-size: 30px;
  }

  .logo-sub {
    font-size: 14px;
  }

  .menu-toggle,
  .js .menu-toggle {
    display: none;
  }

  .main-nav,
  .js .main-nav:not(.is-open) {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    flex-basis: auto;
    justify-content: flex-end;
    gap: 2px;
    padding: 0;
    border: 0;
  }

  .main-nav a {
    justify-content: center;
    padding: 10px 11px;
    font-size: 17px;
    white-space: nowrap;
  }

  main.wrap {
    padding-top: 36px;
    padding-bottom: 78px;
  }

  .hero {
    padding: 47px 43px;
  }

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

  .hero-lead {
    font-size: 20px;
  }

  .hero::before {
    width: 390px;
    height: 390px;
    right: -120px;
    top: -220px;
  }

  .hero::after {
    width: 300px;
    height: 300px;
    bottom: -220px;
    right: 70px;
  }

  .situations,
  .latest,
  .trust {
    margin-top: 47px;
  }

  .section-title {
    margin-bottom: 24px;
    font-size: 27px;
  }

  .situation-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .situation-card {
    grid-template-columns: 52px minmax(0, 1fr) 10px;
    min-height: 146px;
    padding: 24px 20px;
    gap: 14px;
  }

  .sit-icon {
    width: 52px;
    height: 52px;
    font-size: 29px;
  }

  .sit-text > span {
    font-size: 16px;
  }

  .post-item > a {
    padding: 28px 30px;
  }

  .post-title {
    font-size: 23px;
  }

  .trust {
    padding: 32px 34px;
  }

  .trust-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
  }

  .trust-list li {
    font-size: 17px;
  }

  .site-footer {
    padding-top: 39px;
    padding-bottom: 39px;
  }

  main.article-layout {
    padding-top: 22px;
  }

  .article-header h1 {
    font-size: 38px;
  }

  .article h2 {
    font-size: 27px;
  }

  .article h3 {
    font-size: 23px;
  }

  .article > p {
    margin-bottom: 1.3em;
  }

  .toc a,
  .check-list label,
  .faq summary,
  .faq details p,
  .series-box a {
    font-size: 19px;
  }
}


/* 30. 큰 데스크톱 */

@media (min-width: 1280px) {
  .main-nav {
    gap: 5px;
  }

  .main-nav a {
    padding-inline: 13px;
  }

  .situation-card {
    padding: 25px 22px;
  }
}


/* 31. 애니메이션 감소 설정 존중 */

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


/* =========================================================
   32. 인쇄 전용
   체크리스트만 A4 용지에 인쇄
   ========================================================= */

@page {
  size: A4;
  margin: 18mm;
}

@media print {
  html,
  body {
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    color: #000 !important;
    font-size: 12pt;
    line-height: 1.6;
  }

  body:has(.checklist) > :not(main),
  body:has(.checklist) main > :not(.article),
  body:has(.checklist) .article > :not(.checklist) {
    display: none !important;
  }

  .site-header,
  .site-footer,
  .skip-link,
  .ad-slot,
  .share-row,
  .btn-print,
  .btn-share,
  .btn-copy,
  .share-status {
    display: none !important;
  }

  .wrap,
  main.wrap,
  main.article-layout,
  .article {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  .checklist {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    color: #000 !important;
  }

  .checklist::before {
    content: "케어코리아 · 부모님 돌봄 안내";
    display: block;
    margin-bottom: 18px;
    font-size: 12pt;
    font-weight: 700;
  }

  .checklist li,
  .checklist label {
    break-inside: avoid;
    color: #000 !important;
  }

  a[href^="http"]::after {
    content: "";
  }
}

/* 문의 메일 링크: 손가락으로 누르기 쉽게 44px */
.contact-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-size, 44px);
  padding: 0 4px;
}
