/*
 * AC 건강가이드 home and shared navigation.
 * The theme retains control of content outside these components.
 */
.acg-front,
.acg-header,
.acg-footer {
  --acg-ink: #182c25;
  --acg-forest: #184237;
  --acg-forest-deep: #14382f;
  --acg-paper: #f8f6ee;
  --acg-surface: #fffdf8;
  --acg-line: #dddcd1;
  --acg-muted: #505e55;
  --acg-soft-green: #e6eddf;
  --acg-font: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  color: var(--acg-ink);
  font-family: var(--acg-font);
  -webkit-font-smoothing: antialiased;
}

.acg-front { margin: 0; background-color: var(--acg-paper); }
.acg-front *, .acg-header *, .acg-footer * { box-sizing: border-box; }
.acg-shell { min-height: 100vh; }
.acg-wrap { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.acg-front a, .acg-header a, .acg-footer a { text-decoration: none; }
.acg-front a:focus-visible,
.acg-front summary:focus-visible,
.acg-header a:focus-visible, .acg-header summary:focus-visible,
.acg-header button:focus-visible,
.acg-footer a:focus-visible {
  outline: 3px solid #b66a20;
  outline-offset: 3px;
}

.acg-skip, .acg-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
}
.acg-skip:focus {
  z-index: 100000;
  top: 3rem;
  left: 1rem;
  width: auto;
  height: auto;
  padding: .8rem 1rem;
  color: #14382f;
  background: #fff;
  clip-path: none;
}
.acg-main:focus { outline: none; }

/* Shared masthead */
.acg-header {
  position: relative;
  z-index: 5;
  background: var(--acg-surface);
  border-bottom: 1px solid #e8e5da;
}
.acg-header-inner {
  display: grid;
  grid-template-columns: minmax(155px, 1fr) auto minmax(85px, 1fr);
  align-items: center;
  min-height: 81px;
  column-gap: 24px;
}
.acg-header .acg-brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  color: var(--acg-forest-deep);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1.16;
  white-space: nowrap;
}
.acg-brand-logo { display: block; width: 40px; height: 40px; object-fit: contain; }
.acg-navigation { display: flex; gap: clamp(15px, 2.7vw, 37px); }
.acg-navigation a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--acg-ink);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.acg-navigation a:hover { color: #4b684b; }
.acg-navigation a[aria-current] {
  margin-inline: -9px;
  padding-inline: 9px;
  border-radius: 8px;
  background: #f4eedf;
  color: #59432d;
}
.acg-header-controls { display: flex; justify-self: end; align-items: center; gap: 8px; }
.acg-header details { margin: 0; }
.acg-mobile-menu { display: none; }
.acg-header summary {
  display: inline-flex;
  gap: 6px;
  padding: 0 13px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  list-style: none;
  border: 1px solid var(--acg-line);
  border-radius: 12px;
  color: var(--acg-forest-deep);
  background: var(--acg-surface);
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}
.acg-header summary::-webkit-details-marker { display: none; }
.acg-header summary:hover, .acg-header details[open] > summary { background: var(--acg-soft-green); }
.acg-search-form, .acg-mobile-menu nav {
  position: absolute;
  z-index: 2;
  right: max(40px, calc((100% - 1200px) / 2));
  top: calc(100% + 7px);
  width: min(370px, calc(100vw - 36px));
  margin: 0;
  padding: 17px;
  background: var(--acg-surface);
  border: 1px solid var(--acg-line);
  border-radius: 13px;
  box-shadow: 0 14px 36px #19342b21;
}
.acg-search-form { z-index: 3; }
.acg-search-form label {
  display: block;
  margin: 0 0 8px;
  color: var(--acg-ink);
  font-size: 14px;
  font-weight: 750;
}
.acg-search-fields { display: flex; gap: 8px; }
.acg-search-fields input {
  min-width: 0;
  flex: 1 1 auto;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #9fa498;
  border-radius: 7px;
  background: #fff;
  color: var(--acg-ink);
  font: inherit;
  font-size: 16px;
}
.acg-search-fields input:focus-visible { outline: 2px solid #6c7c55; outline-offset: 1px; }
.acg-search-fields input::placeholder { color: #676d64; }
.acg-search-fields button {
  flex-shrink: 0;
  min-height: 44px;
  padding: 8px 14px;
  color: #fff;
  background: var(--acg-forest);
  border: 0;
  border-radius: 7px;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}
.acg-search-fields button:hover { background: var(--acg-forest-deep); }

/* Introduction */
.acg-main { padding-block: 38px 76px; }
.acg-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  min-height: 426px;
  overflow: hidden;
  border-radius: 22px;
  color: #fffdf2;
  background: var(--acg-forest);
}
.acg-hero-copy {
  position: relative;
  min-width: 0;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 5.3vw, 76px);
}
.acg-hero h1 {
  margin: 0;
  font-size: clamp(28px, 4.4vw, 62px);
  font-size: clamp(28px, 12.9cqi, 66px);
  font-weight: 800;
  letter-spacing: -.072em;
  line-height: 1.18;
  color: #fffdf2;
}
.acg-hero h1 span { display: block; white-space: nowrap; }
.acg-hero-intro {
  max-width: 345px;
  margin: 23px 0 0;
  color: #e0eadc;
  font-size: 16px;
  line-height: 1.65;
  word-break: keep-all;
}
.acg-hero-intro strong {
  display: block;
  margin-bottom: 4px;
  color: #fffdf2;
  font-size: clamp(13px, 4.4cqi, 16px);
  font-weight: 750;
  letter-spacing: -.027em;
}
.acg-hero-intro span { display: block; }
.acg-hero-actions { display: flex; flex-wrap: wrap; align-items: center; margin-top: 30px; gap: 12px 22px; }
.acg-hero-actions a { font-size: 14px; line-height: 1.25; white-space: nowrap; }
.acg-hero-actions .acg-primary {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 11px 15px;
  color: var(--acg-forest-deep);
  background: #f9f5e6;
  border-radius: 9px;
  font-weight: 800;
}
.acg-hero-actions .acg-primary:hover { background: #fffdf2; }
.acg-hero-actions .acg-sub-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #fffdf2;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.acg-hero-photo {
  position: relative;
  min-width: 0;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: #667b58;
}
.acg-carousel-track {
  position: absolute;
  inset: 0;
  display: flex;
  transform: translateX(calc(-100% * var(--acg-slide-index, 0)));
}
.acg-carousel.is-enhanced .acg-carousel-track { transition: transform .5s cubic-bezier(.22, .64, .28, 1); }
.acg-carousel:not(.is-enhanced) .acg-carousel-slide:not(:first-child) { display: none; }
.acg-carousel-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
}
.acg-carousel-slide img {
  display: block;
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: var(--acg-photo-position, 55% 50%);
}
.acg-carousel-slide[data-acg-slide="4"] { --acg-photo-position: 61% 48%; }
.acg-carousel-controls {
  position: absolute;
  z-index: 1;
  inset-inline: 10px;
  bottom: 13px;
  display: none;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: calc(100% - 20px);
  margin-inline: auto;
  padding: 2px 4px;
  border: 1px solid #faf9ed44;
  border-radius: 11px;
  background: #132f24ed;
  color: #fffdf2;
}
.acg-carousel.is-enhanced .acg-carousel-controls { display: flex; }
.acg-carousel-controls button {
  display: grid;
  flex: none;
  place-items: center;
  min-width: 0;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.acg-carousel-controls button:hover { background: #fffdf222; }
.acg-carousel-controls button:focus-visible { outline: 2px solid #fff4bb; outline-offset: -2px; }
.acg-carousel-controls .acg-carousel-control { width: 40px; }
.acg-carousel-prev svg { transform: rotate(180deg); }
.acg-carousel-dots { display: flex; }
.acg-carousel-controls .acg-carousel-dot { width: 26px; }
.acg-carousel-dot > span {
  width: 8px;
  height: 8px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .8;
}
.acg-carousel-dot[aria-current="true"] > span { background: #fff1c8; color: #fff1c8; opacity: 1; }
.acg-carousel-controls .acg-carousel-toggle {
  margin-inline-start: 3px;
  border-inline-start: 1px solid #faf9ed44;
  border-radius: 0 6px 6px 0;
}
.acg-carousel-toggle .acg-carousel-play-icon,
.acg-carousel-toggle[data-acg-paused="true"] .acg-carousel-pause-icon { display: none; }
.acg-carousel-toggle[data-acg-paused="true"] .acg-carousel-play-icon { display: block; }

/* Topic navigation and guide cards */
.acg-band { margin-top: 66px; scroll-margin-top: 26px; }
.acg-section-intro {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 23px;
}
.acg-section-intro h2 {
  margin: 0;
  color: var(--acg-ink);
  font-size: clamp(27px, 2.65vw, 37px);
  font-weight: 800;
  letter-spacing: -.065em;
  line-height: 1.15;
  word-break: keep-all;
}
.acg-topic-grid, .acg-latest-grid {
  margin: 0;
  padding: 0;
  list-style: none;
}
.acg-topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}
.acg-topic-link {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: center;
  height: 100%;
  min-height: 100px;
  padding: 14px 30px 14px 15px;
  color: var(--acg-ink);
  background: var(--acg-surface);
  border: 1px solid var(--acg-line);
  border-radius: 13px;
  transition: background-color .16s ease, border-color .16s ease;
}
.acg-topic-link:hover { background: #f2f5eb; border-color: #a9baa5; }
.acg-topic-icon {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  flex: 0 0 45px;
  color: #3c6048;
  background: var(--acg-soft-green);
  border-radius: 10px;
}
.acg-topic-text { display: grid; gap: 4px; word-break: keep-all; }
.acg-topic-text strong {
  color: var(--acg-ink);
  font-size: 17px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -.045em;
}
.acg-topic-text > span { color: var(--acg-muted); font-size: 12px; line-height: 1.5; }
.acg-topic-arrow { position: absolute; right: 12px; top: 15px; color: #4e6658; line-height: 0; }

.acg-featured { padding-top: 7px; }
.acg-featured-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px; }
.acg-editorial-card { display: flex; }
.acg-editorial-link {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--acg-line);
  border-radius: 14px;
  background: var(--acg-surface);
  color: var(--acg-ink);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.acg-editorial-link:hover { border-color: #acbba9; box-shadow: 0 8px 25px #2f503915; }
.acg-editorial-photo { overflow: hidden; aspect-ratio: 1.7; background: #e4e4d2; }
.acg-editorial-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .35s ease; }
.acg-editorial-link:hover img { transform: scale(1.035); }
.acg-editorial-copy { position: relative; flex: 1; padding: 21px 48px 22px 20px; }
.acg-kicker { display: block; color: #3e624b; font-size: 12px; font-weight: 800; line-height: 1.25; }
.acg-editorial-copy h3 {
  margin: 6px 0 8px;
  color: var(--acg-ink);
  font-size: clamp(17px, 1.65vw, 24px);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -.054em;
  word-break: keep-all;
}
.acg-editorial-copy p { margin: 0; color: var(--acg-muted); font-size: 13.5px; line-height: 1.7; word-break: keep-all; }
.acg-card-arrow {
  position: absolute;
  top: 21px;
  right: 15px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #d7ded0;
  border-radius: 50%;
  color: #365b45;
}

/* Latest articles */
.acg-latest { padding-top: 5px; }
.acg-archive-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: #2e5a42;
  font-size: 13px;
  font-weight: 800;
}
.acg-archive-link:hover { text-decoration: underline; text-underline-offset: 4px; color: var(--acg-forest-deep); }
.acg-latest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 26px;
}
.acg-latest-grid li { border-top: 1px solid var(--acg-line); }
.acg-latest-grid li:nth-last-child(-n+2) { border-bottom: 1px solid var(--acg-line); }
.acg-latest-grid li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  min-height: 83px;
  padding: 13px 3px;
  color: var(--acg-ink);
}
.acg-latest-grid li > a:hover { color: #386750; }
.acg-latest-grid li > a:hover .acg-post-title { text-decoration: underline; text-underline-offset: 4px; }
.acg-post-arrow { display: inline-flex; color: #456750; transition: transform .16s ease; }
.acg-latest-grid li > a:hover .acg-post-arrow { transform: translateX(3px); }
.acg-latest-copy { min-width: 0; }
.acg-post-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 10px; margin-bottom: 5px; font-size: 12px; line-height: 1.4; }
.acg-post-meta span { color: #3c6148; font-weight: 750; }
.acg-post-meta time { color: var(--acg-muted); font-variant-numeric: tabular-nums; }
.acg-post-title { font-size: 16px; font-weight: 770; line-height: 1.45; letter-spacing: -.032em; word-break: keep-all; }
.acg-empty { color: var(--acg-muted); }

/* Shared footer */
.acg-footer { padding-block: 42px 23px; background: var(--acg-forest-deep); color: #fbfbf1; }
.acg-footer-top { display: flex; justify-content: space-between; gap: 25px 40px; padding-bottom: 23px; border-bottom: 1px solid #628073; }
.acg-footer .acg-footer-title { display: inline-block; color: #fbfbf1; font-size: 23px; line-height: 1.2; font-weight: 800; letter-spacing: -.05em; }
.acg-footer-brand p { margin: 9px 0 0; color: #d9e7da; font-size: 13px; line-height: 1.6; }
.acg-footer nav { display: flex; flex-wrap: wrap; align-items: start; gap: 3px 23px; }
.acg-footer nav a { display: inline-flex; align-items: center; min-height: 35px; color: #fbfbf1; font-size: 13px; font-weight: 700; }
.acg-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.acg-copyright { margin: 16px 0 0; color: #d9e7da; font-size: 12px; line-height: 1.45; }

@media (max-width: 1024px) {
  .acg-wrap { width: calc(100% - 52px); }
  .acg-search-form, .acg-mobile-menu nav { right: 26px; }
  .acg-topic-grid { gap: 10px; }
  .acg-topic-link { min-height: 91px; gap: 8px; padding-left: 10px; padding-right: 19px; }
  .acg-topic-icon { width: 38px; height: 38px; flex-basis: 38px; }
  .acg-topic-arrow { right: 7px; top: 9px; }
  .acg-topic-arrow svg { width: 15px; height: 15px; }
  .acg-hero { min-height: 380px; }
  .acg-hero-copy { padding: clamp(28px, 4vw, 54px); }
}

@media (max-width: 770px) {
  .acg-wrap { width: calc(100% - 36px); }
  .acg-header-inner { grid-template-columns: minmax(0, 1fr) auto; min-height: 68px; gap: 12px; }
  .acg-navigation { display: none; }
  .acg-mobile-menu { display: block; }
  .acg-header summary { padding-inline: 9px; }
  .acg-search-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; white-space: nowrap; clip-path: inset(50%); }
  .acg-search-form, .acg-mobile-menu nav { right: 18px; }
  .acg-mobile-menu nav a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 44px;
    padding: 5px 4px;
    color: var(--acg-ink);
    font-size: 15px;
    font-weight: 700;
  }
  .acg-mobile-menu nav a + a { border-top: 1px solid var(--acg-line); }
  .acg-mobile-menu nav a[aria-current] {
    padding-inline: 9px;
    border-radius: 7px;
    background: #f4eedf;
    color: #59432d;
  }
  .acg-main { padding-block: 20px 53px; }
  .acg-hero { min-height: auto; border-radius: 17px; }
  .acg-hero-copy { padding: 32px 23px; }
  .acg-hero-intro { margin-top: 15px; font-size: 14px; }
  .acg-hero-actions { gap: 6px 13px; margin-top: 17px; }
  .acg-hero-actions .acg-primary { min-height: 44px; gap: 7px; }
  .acg-hero-actions a { font-size: 13px; }
  .acg-band { margin-top: 47px; }
  .acg-section-intro { margin-bottom: 15px; }
  .acg-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acg-topic-link { padding: 10px 19px 10px 12px; }
  .acg-featured-grid { gap: 12px; }
  .acg-editorial-copy { padding: 14px 12px 15px; }
  .acg-editorial-copy h3 { font-size: 17px; }
  .acg-card-arrow { display: none; }
  .acg-latest-grid { gap: 0 15px; }
  .acg-footer-top { flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .acg-hero { grid-template-columns: minmax(0, 1fr); }
  .acg-hero-copy { padding: 27px 22px; }
  .acg-hero h1 { font-size: clamp(28px, 8.5vw, 51px); font-size: clamp(28px, 12.9cqi, 51px); }
  .acg-hero-intro { line-height: 1.65; }
  .acg-hero-photo { min-height: 0; height: clamp(165px, 47vw, 245px); }
  .acg-carousel-slide[data-acg-slide="0"] { --acg-photo-position: 55% 13%; }
  .acg-carousel-slide[data-acg-slide="1"] { --acg-photo-position: 52% 45%; }
  .acg-carousel-slide[data-acg-slide="2"] { --acg-photo-position: 54% 34%; }
  .acg-carousel-slide[data-acg-slide="3"] { --acg-photo-position: 54% 40%; }
  .acg-carousel-slide[data-acg-slide="4"] { --acg-photo-position: 61% 37%; }
  .acg-carousel-controls { bottom: 8px; }
  .acg-carousel-controls button { height: 36px; }
  .acg-carousel-controls .acg-carousel-control { width: 33px; }
  .acg-carousel-controls .acg-carousel-dot { width: 24px; }
}

@media (max-width: 560px) {
  .acg-header .acg-brand { gap: 7px; font-size: 18px; }
  .acg-brand-logo { width: 34px; height: 34px; }
  .acg-header-controls { gap: 6px; }
  .acg-featured-grid { grid-template-columns: minmax(0, 1fr); }
  .acg-editorial-photo { aspect-ratio: 1.85; }
  .acg-editorial-copy { padding: 15px 42px 16px 15px; }
  .acg-editorial-copy h3 { font-size: 19px; }
  .acg-card-arrow { display: grid; right: 11px; top: 16px; }
  .acg-latest-grid { grid-template-columns: minmax(0, 1fr); }
  .acg-latest-grid li:nth-last-child(2) { border-bottom: 0; }
  .acg-latest-grid li > a { min-height: 70px; }
  .acg-post-title { font-size: 15px; }
  .acg-archive-link { gap: 4px; font-size: 12px; white-space: nowrap; }
  .acg-archive-link svg { width: 15px; height: 15px; }
  .acg-footer { padding-top: 30px; }
  .acg-footer-top { gap: 10px 0; }
  .acg-footer nav { gap: 0 15px; }
}

@media (max-width: 350px) {
  .acg-topic-link { min-height: 99px; align-items: start; flex-direction: column; gap: 5px; }
  .acg-topic-icon { width: 30px; height: 30px; flex-basis: 30px; }
  .acg-topic-icon svg { width: 19px; height: 19px; }
  .acg-topic-text { gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .acg-carousel.is-enhanced .acg-carousel-track { transition: none; }
  .acg-topic-link, .acg-editorial-link, .acg-editorial-photo img, .acg-post-arrow { transition: none; }
  .acg-editorial-link:hover img, .acg-latest-grid li > a:hover .acg-post-arrow { transform: none; }
}