/*
Theme Name: 오션스토리 (Oceanstory)
Theme URI: https://oceans-tory.com
Description: Twenty Twenty-Five 기반 차일드 테마 — 오션스토리(사랑스러운 딸을 둔 아빠의 육아템 실사용 리뷰) 전용 디자인. 원본 테마 파일은 수정하지 않는다.
Author: 오션
Template: twentytwentyfive
Version: 1.1.0
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: oceanstory
*/

/* =========================================================
   디자인 토큰 (theme.json 과 동기화)
   ========================================================= */
:root {
  --os-bg: #FAFAF7;
  --os-text: #1F2937;
  --os-muted: #6B7280;
  --os-primary: #123A5C;
  --os-accent: #0E7C7B;
  --os-card: #FFFFFF;
  --os-border: #E5E7EB;
  --os-radius: 12px;
  --os-radius-sm: 8px;
  --os-shadow: 0 1px 2px rgba(18, 58, 92, .04), 0 8px 24px rgba(18, 58, 92, .06);
  --os-shadow-hover: 0 2px 6px rgba(18, 58, 92, .08), 0 14px 34px rgba(18, 58, 92, .12);
  --os-content: 720px;
  --os-wide: 1120px;
  --os-gradient: linear-gradient(135deg, #123A5C 0%, #0E7C7B 100%);
  --os-font: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", system-ui, sans-serif;
}

/* =========================================================
   기본 타이포 / 레이아웃
   ========================================================= */
body {
  background-color: var(--os-bg);
  color: var(--os-text);
  font-family: var(--os-font);
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* "맑은 바다" 전역 배경 — 고정 레이어(뷰포트 고정, GPU 친화)로
   아주 옅은 하늘·바다 톤 그라데이션을 깐다. 래스터 이미지 없이 CSS 만 사용.
   카드/본문 영역은 흰색을 유지하므로 텍스트 대비는 그대로. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 480px at 86% -8%, rgba(14, 124, 123, .07), transparent 60%),
    radial-gradient(760px 420px at 6% 3%, rgba(18, 58, 92, .05), transparent 60%),
    linear-gradient(180deg, #E9F3F6 0%, #F4FAFA 28%, var(--os-bg) 68%);
}

a { color: var(--os-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--os-primary); line-height: 1.35; font-weight: 700; letter-spacing: -0.01em; }

.os-main { padding-bottom: clamp(56px, 8vw, 96px); }
.os-main > * + * { margin-top: clamp(44px, 7vw, 84px); }

/* 공통 섹션 타이틀 */
.os-section__title {
  font-size: clamp(22px, 3.4vw, 28px);
  margin: 0 0 24px;
  text-align: center;
}

/* =========================================================
   헤더
   ========================================================= */
.site-header {
  background: rgba(250, 250, 247, .88);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--os-border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 24px;
}
.site-header__inner {
  gap: 16px 28px;
  align-items: center;
}
.site-header .site-brand,
.site-header .wp-block-site-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.site-header .wp-block-site-title a { color: var(--os-primary); text-decoration: none; }
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
  margin: 0;
}
.site-nav a {
  color: var(--os-text);
  font-size: 15.5px;
  font-weight: 600;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.site-nav a:hover { color: var(--os-accent); border-bottom-color: var(--os-accent); text-decoration: none; }

/* =========================================================
   히어로
   ========================================================= */
.os-hero { padding: clamp(20px, 4vw, 40px) 24px 0; }
.os-hero__inner {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(680px 340px at 82% 16%, rgba(255, 255, 255, .16), transparent 55%),
    radial-gradient(560px 320px at 12% 92%, rgba(23, 196, 168, .30), transparent 58%),
    var(--os-gradient);
  color: #fff;
  border-radius: 20px;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 56px) clamp(66px, 8vw, 98px);
  text-align: center;
  box-shadow: 0 20px 50px rgba(18, 58, 92, .18);
}
/* 히어로 하단을 부드러운 물결로 마무리 (SVG, 반투명 흰색 리플) */
.os-hero__inner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 74px;
  background-image: url('assets/hero-wave.svg');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: bottom center;
  pointer-events: none;
  z-index: 0;
}
/* 히어로 텍스트/버튼은 물결 위로 */
.os-hero__inner > * {
  position: relative;
  z-index: 1;
}
.os-hero__title {
  color: #fff;
  font-size: clamp(28px, 5.2vw, 44px);
  line-height: 1.28;
  margin: 0 0 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.os-hero__sub {
  color: rgba(255, 255, 255, .92);
  font-size: clamp(16px, 2.2vw, 18px);
  line-height: 1.75;
  max-width: 620px;
  margin: 0 auto 30px;
}
.os-hero__cta { justify-content: center; gap: 12px; }
.os-hero__cta .wp-block-button__link {
  border-radius: 999px;
  padding: 13px 26px;
  font-weight: 700;
  font-size: 16px;
  border: 2px solid transparent;
}
.os-hero__cta .wp-block-button:first-child .wp-block-button__link {
  background: #fff;
  color: var(--os-primary);
}
.os-hero__cta .wp-block-button:first-child .wp-block-button__link:hover {
  background: #f1f5f9; text-decoration: none;
}
.os-hero__cta .is-style-outline .wp-block-button__link,
.os-hero__cta .wp-block-button:last-child .wp-block-button__link {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .7);
}
.os-hero__cta .wp-block-button:last-child .wp-block-button__link:hover {
  background: rgba(255, 255, 255, .12); text-decoration: none;
}

/* =========================================================
   신뢰 바
   ========================================================= */
.os-trust { padding: 0 24px; }
.os-trust__cols { gap: 18px; }
.os-trust__item {
  background: var(--os-card);
  border: 1px solid var(--os-border);
  border-radius: var(--os-radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--os-shadow);
}
.os-trust__title {
  font-size: 19px;
  margin: 0 0 8px;
  color: var(--os-primary);
}
.os-trust__title::before {
  content: "";
  display: block;
  width: 40px; height: 3px;
  margin: 0 auto 14px;
  border-radius: 3px;
  background: var(--os-gradient);
}
.os-trust__desc { color: var(--os-muted); font-size: 15.5px; margin: 0; line-height: 1.7; }

/* =========================================================
   카테고리 카드 (홈)
   ========================================================= */
.os-catcards { padding: 0 24px; }
.os-catcards__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.os-catcard {
  display: flex;
  flex-direction: column;
  background: var(--os-card);
  border: 1px solid var(--os-border);
  border-radius: var(--os-radius);
  padding: 26px 24px 22px;
  color: var(--os-text);
  box-shadow: var(--os-shadow);
  transition: transform .16s, box-shadow .16s, border-color .16s;
  position: relative;
  overflow: hidden;
}
.os-catcard::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--os-gradient);
}
.os-catcard:hover {
  transform: translateY(-3px);
  box-shadow: var(--os-shadow-hover);
  border-color: #cdd7de;
  text-decoration: none;
}
.os-catcard__badge {
  align-self: flex-start;
  font-size: 17px;
  font-weight: 800;
  color: var(--os-primary);
  margin-bottom: 10px;
}
.os-catcard__desc { color: var(--os-muted); font-size: 15px; line-height: 1.65; margin: 0 0 18px; flex: 1; }
.os-catcard__more { color: var(--os-accent); font-weight: 700; font-size: 14.5px; }

/* =========================================================
   글 카드 그리드 (Query Loop 공통)
   ========================================================= */
.os-latest, .os-archive__list-wrap { padding: 0 24px; }
.os-posts__grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.os-posts__grid > li { margin: 0; }

.os-card {
  background: var(--os-card);
  border: 1px solid var(--os-border);
  border-radius: var(--os-radius);
  overflow: hidden;
  box-shadow: var(--os-shadow);
  height: 100%;
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.os-card:hover { transform: translateY(-3px); box-shadow: var(--os-shadow-hover); border-color: #cdd7de; }

.os-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--os-gradient);
  overflow: hidden;
}
.os-card__media::after {
  /* 썸네일 없을 때 은은한 로고 워터마크 */
  content: "오션스토리";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .28);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .04em;
  z-index: 0;
}
.os-card__media .wp-block-post-featured-image { position: relative; z-index: 1; margin: 0; height: 100%; }
.os-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.os-card__badge {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  margin: 0;
}
.os-card__badge a, .os-card__badge {
  display: inline-block;
  background: rgba(255, 255, 255, .95);
  color: var(--os-primary);
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  text-decoration: none;
  line-height: 1.4;
}
.os-card__badge a:hover { text-decoration: none; color: var(--os-accent); }

.os-card__body { padding: 18px 18px 20px; }
.os-card__title { font-size: 17.5px; line-height: 1.45; margin: 0 0 10px; }
.os-card__title a { color: var(--os-primary); text-decoration: none; }
.os-card__title a:hover { color: var(--os-accent); }
.os-card__excerpt { color: var(--os-muted); font-size: 14.5px; line-height: 1.7; margin: 0 0 14px; }
.os-card__date { color: #9aa3af; font-size: 13px; margin: 0; }

/* 전체 글 보기 링크 */
.os-latest__more { text-align: center; margin-top: 30px; }
.os-textlink {
  display: inline-block;
  color: var(--os-accent);
  font-weight: 700;
  font-size: 15.5px;
  border: 1.5px solid var(--os-accent);
  padding: 10px 22px;
  border-radius: 999px;
  transition: background .15s, color .15s;
}
.os-textlink:hover { background: var(--os-accent); color: #fff; text-decoration: none; }

/* =========================================================
   소개 배너
   ========================================================= */
.os-about { padding: 0 24px; }
.os-about__inner {
  background: #F0F5F4;
  border: 1px solid #dce7e5;
  border-radius: 16px;
  padding: clamp(32px, 5vw, 48px);
  text-align: center;
}
.os-about__text {
  font-size: clamp(17px, 2.4vw, 20px);
  color: var(--os-primary);
  font-weight: 600;
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto 22px;
}
.os-about .wp-block-buttons { justify-content: center; }
.os-about .wp-block-button__link {
  background: var(--os-primary);
  color: #fff;
  border-radius: 999px;
  padding: 12px 28px;
  font-weight: 700;
}
.os-about .wp-block-button__link:hover { background: #0d2c46; text-decoration: none; }

/* =========================================================
   아카이브 / 블로그 목록 헤더
   ========================================================= */
.os-archive-header {
  text-align: center;
  padding: clamp(32px, 5vw, 52px) 24px clamp(4px, 2vw, 12px);
  max-width: var(--os-wide);
  margin: 0 auto;
}
.os-archive-header .os-archive__title,
.os-archive-header h1 {
  font-size: clamp(26px, 4vw, 36px);
  margin: 0 0 12px;
}
.os-archive-header .os-archive__desc,
.os-archive-header p {
  color: var(--os-muted);
  font-size: 16.5px;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* 페이지네이션 */
.wp-block-query-pagination {
  justify-content: center;
  gap: 8px;
  margin-top: 44px;
}
.wp-block-query-pagination a,
.wp-block-query-pagination .wp-block-query-pagination-numbers .current {
  color: var(--os-primary);
  font-weight: 600;
}
.wp-block-query-pagination a:hover { color: var(--os-accent); }

/* =========================================================
   글 상세 (single) / 일반 페이지 (page)
   ========================================================= */
.os-single__inner, .os-page__inner {
  max-width: var(--os-content);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 56px) 24px 0;
}
.os-single__cat { margin: 0 0 16px; }
.os-single__cat a, .os-single__cat {
  display: inline-block;
  background: #E7F1F0;
  color: var(--os-accent);
  font-size: 13px;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 999px;
  text-decoration: none;
}
.os-single__title, .os-page__title {
  font-size: clamp(26px, 4.4vw, 38px);
  line-height: 1.3;
  margin: 0 0 14px;
}
.os-single__date { color: var(--os-muted); font-size: 14.5px; margin: 0 0 28px; }

/* 대표 이미지 히어로 — 대표 이미지가 있을 때만 렌더된다(없으면 블록 자체가
   출력되지 않아 빈 공간이 생기지 않는다). 사용자가 나중에 실사진/쿠팡 이미지를
   대표 이미지로 지정하면 제목 아래 큰 히어로로 부각된다. */
.os-single__featured { margin: 4px 0 36px; }
.os-single__featured img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--os-radius);
  box-shadow: var(--os-shadow);
  display: block;
}
.os-single__featured:empty { display: none; margin: 0; }

/* =========================================================
   자동 목차 (TOC) — assets/toc.js 가 본문 상단에 삽입
   본문 h2 소제목을 스캔해 번호형 목차 박스 생성. 항목<3 이면 미생성.
   ========================================================= */
.os-single__content h2, .os-single__content h3 { scroll-margin-top: 92px; }
.os-single__content .os-toc {
  margin: .4em 0 2.4em;
  padding: 20px 24px;
  background: linear-gradient(180deg, #F4F8F8 0%, #EEF5F5 100%);
  border: 1px solid #d9e6e5;
  border-radius: var(--os-radius);
  box-shadow: var(--os-shadow);
}
.os-toc__title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 800;
  color: var(--os-primary);
  letter-spacing: -0.01em;
}
.os-toc__title::before {
  content: "";
  width: 22px; height: 3px;
  border-radius: 3px;
  background: var(--os-gradient);
}
.os-toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: os-toc;
}
.os-toc__item { margin: 0; }
.os-toc__item--h2 { counter-increment: os-toc; }
.os-toc__link {
  display: block;
  position: relative;
  padding: 6px 0 6px 30px;
  color: var(--os-text);
  font-size: 15px;
  line-height: 1.55;
  text-decoration: none;
  transition: color .12s;
}
.os-toc__item--h2 > .os-toc__link::before {
  content: counter(os-toc);
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 21px; height: 21px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--os-accent);
  background: #E1EFEE;
  border-radius: 6px;
}
.os-toc__item--h3 > .os-toc__link { padding-left: 46px; font-size: 14.5px; color: var(--os-muted); }
.os-toc__link:hover { color: var(--os-accent); text-decoration: none; }
@media (max-width: 640px) {
  .os-single__content .os-toc { padding: 16px 18px; }
}

/* 본문 타이포 */
.os-single__content, .os-page__content { font-size: 17px; line-height: 1.85; }
.os-single__content > * + *, .os-page__content > * + * { margin-top: 1.35em; }
.os-single__content h2, .os-page__content h2 {
  font-size: 24px; margin-top: 2em; padding-bottom: .3em;
  border-bottom: 2px solid var(--os-border);
}
.os-single__content h3, .os-page__content h3 { font-size: 20px; margin-top: 1.6em; }
.os-single__content p, .os-page__content p { margin-top: 1.2em; }
.os-single__content a, .os-page__content a { color: var(--os-accent); text-decoration: underline; text-underline-offset: 3px; }

.os-single__content ul, .os-single__content ol,
.os-page__content ul, .os-page__content ol { padding-left: 1.4em; }
.os-single__content li, .os-page__content li { margin: .5em 0; }

.os-single__content blockquote, .os-page__content blockquote {
  border-left: 4px solid var(--os-accent);
  background: #F4F8F8;
  margin: 1.8em 0;
  padding: 16px 22px;
  border-radius: 0 var(--os-radius-sm) var(--os-radius-sm) 0;
  color: #374151;
}
.os-single__content blockquote p, .os-page__content blockquote p { margin: 0; }

.os-single__content img, .os-page__content img { max-width: 100%; height: auto; border-radius: var(--os-radius-sm); }

/* =========================================================
   비교표 — "제대로 된 스캔용 비교표"
   래핑(.wp-block-table)으로 라운드 프레임 + 모바일 가로 스크롤,
   bare <table>(마크다운 업로드본) 도 스타일 적용.
   ========================================================= */
.os-single__content .wp-block-table,
.os-page__content .wp-block-table {
  margin: 1.9em 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--os-border);
  border-radius: var(--os-radius);
  background: var(--os-card);
  box-shadow: var(--os-shadow);
}
.os-single__content .wp-block-table table,
.os-page__content .wp-block-table table,
.os-single__content table,
.os-page__content table {
  border-collapse: collapse;      /* 이중선 방지 */
  width: 100%;
  min-width: 640px;               /* 좁은 화면에서 열 뭉개짐 방지 → 가로 스크롤 */
  margin: 0;
  font-size: 15px;
  background: var(--os-card);
}
/* 헤더 행: 브랜드 네이비 + 흰 글씨 + 가운데 정렬 */
.os-single__content thead th,
.os-page__content thead th {
  background: var(--os-primary);
  color: #fff;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
/* 셀: 얇은 보더 전체, 넉넉한 패딩, 세로 가운데 */
.os-single__content th, .os-single__content td,
.os-page__content th, .os-page__content td {
  border: 1px solid var(--os-border);
  padding: 13px 14px;
  vertical-align: middle;
  line-height: 1.6;
  text-align: center;
}
/* 첫 열(제품명): 왼쪽 정렬 + 굵게 = 비교 기준축 */
.os-single__content tbody td:first-child,
.os-page__content tbody td:first-child {
  text-align: left;
  font-weight: 700;
  color: var(--os-primary);
  background: #EFF4F7;
}
/* 짝수 행 zebra 로 행 구분 */
.os-single__content tbody tr:nth-child(even) td,
.os-page__content tbody tr:nth-child(even) td { background: #F7FAFB; }
.os-single__content tbody tr:nth-child(even) td:first-child,
.os-page__content tbody tr:nth-child(even) td:first-child { background: #E7EFF3; }
/* bare <table> (figure 래핑 없는 경우) 도 라운드/스크롤 프레임 부여 */
.os-single__content > table,
.os-page__content > table {
  display: block;
  overflow-x: auto;
  border: 1px solid var(--os-border);
  border-radius: var(--os-radius);
}

.os-single__content pre, .os-page__content pre {
  background: #0f172a; color: #e2e8f0; padding: 16px;
  border-radius: var(--os-radius-sm); overflow-x: auto; font-size: 14px;
}
.os-single__content code, .os-page__content code {
  background: #eef2f4; padding: 2px 6px; border-radius: 4px; font-size: .92em;
}
.os-single__content pre code, .os-page__content pre code { background: transparent; padding: 0; }

/* =========================================================
   제품 카드 (쿠팡 파트너스 '상품 이미지 링크' + 구매 버튼 자리)
   저작권: 제조사 사진 스크랩 금지. media 에는 사용자가 쿠팡 파트너스
   '상품 이미지 링크(HTML)' 또는 본인 실사용 사진을 붙여넣는다.
   ========================================================= */
.product-card {
  background: var(--os-card);
  border: 1px solid var(--os-border);
  border-radius: var(--os-radius);
  box-shadow: var(--os-shadow);
  padding: 18px;
  margin: 1.6em auto;
  max-width: 560px;
  text-align: center;
}
.product-card__media {
  position: relative;
  border-radius: var(--os-radius-sm);
  overflow: hidden;
}
/* 빈 상태(사진 미입력) 회색 자리표시 — draft 에서 자리 인지되도록 항상 표시,
   실제 이미지/링크가 채워지면 :has() 로 자리표시 제거 */
.product-card__media::before {
  content: "📷 제품 사진 자리 — 쿠팡 상품 이미지 링크 또는 실사용 사진을 넣어주세요";
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 180px;
  padding: 16px;
  border: 1.5px dashed #c3cdd6;
  border-radius: var(--os-radius-sm);
  background: #F3F6F8;
  color: #8a97a4;
  font-size: 14px;
  line-height: 1.6;
}
.product-card__media:has(img)::before,
.product-card__media:has(a)::before,
.product-card__media:has(iframe)::before,
.product-card__media:has(picture)::before { content: none; }
.product-card__media img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: var(--os-radius-sm);
}
.product-card__media a { display: inline-block; }
.product-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  background: var(--os-accent);
  color: #fff;
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.2;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  transition: background .15s, transform .12s;
}
.product-card__btn:hover { background: #0a5f5e; color: #fff; text-decoration: none; transform: translateY(-1px); }
.product-card__btn:active { transform: translateY(0); }
@media (max-width: 640px) {
  .product-card { padding: 14px; }
  .product-card__btn { display: flex; justify-content: center; width: 100%; padding: 14px 20px; }
}

/* 같은 카테고리 관련 글 */
.os-related {
  max-width: var(--os-wide);
  margin: clamp(48px, 7vw, 80px) auto 0;
  padding: clamp(36px, 5vw, 52px) 24px 0;
  border-top: 1px solid var(--os-border);
}
.os-related__title { font-size: 22px; text-align: center; margin: 0 0 26px; }

/* =========================================================
   푸터
   ========================================================= */
.site-footer {
  background: var(--os-primary);
  color: rgba(255, 255, 255, .82);
  margin-top: clamp(56px, 8vw, 96px);
  padding: clamp(40px, 6vw, 56px) 24px;
}
.site-footer__inner { max-width: var(--os-wide); margin: 0 auto; text-align: center; }
.site-footer__brand { font-size: 17px; font-weight: 700; color: #fff; margin: 0 0 18px; }
.site-footer__links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; margin: 0 0 20px;
}
.site-footer__links a { color: rgba(255, 255, 255, .9); font-size: 14.5px; font-weight: 600; }
.site-footer__links a:hover { color: #fff; }
.site-footer__notice {
  color: rgba(255, 255, 255, .62);
  font-size: 13px;
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.site-footer__copy { color: rgba(255, 255, 255, .5); font-size: 13px; margin: 0; }

/* =========================================================
   반응형
   ========================================================= */
@media (max-width: 900px) {
  .os-posts__grid { grid-template-columns: repeat(2, 1fr); }
  .os-catcards__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header { padding: 12px 16px; }
  .site-header__inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .site-nav { gap: 6px 16px; }
  .site-nav a { font-size: 14.5px; }
  .os-hero, .os-trust, .os-catcards, .os-latest, .os-about, .os-archive__list-wrap { padding-left: 16px; padding-right: 16px; }
  .os-posts__grid { grid-template-columns: 1fr; }
  .os-single__inner, .os-page__inner { padding-left: 16px; padding-right: 16px; }
}

/* WP Super Cache/브라우저 다크모드에서도 배경 유지 */
@media (prefers-color-scheme: dark) {
  body { background: var(--os-bg); color: var(--os-text); }
}
