/*
 * Shared GeneratePress content surfaces for AC 건강가이드.
 * The homepage keeps its own layout in home.css.
 */
body.achg-inner {
  --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;
  background: var(--acg-paper);
  color: var(--acg-ink);
  font-family: var(--acg-font);
}

.achg-inner #masthead,
.achg-inner #site-navigation,
.achg-inner .site-footer {
  display: none;
}

.achg-inner .site.grid-container {
  width: min(1200px, calc(100% - 80px));
  max-width: none;
  margin-inline: auto;
  background: transparent;
}

.achg-inner.no-sidebar .site.grid-container {
  width: min(950px, calc(100% - 80px));
}

.achg-inner .site-content {
  min-width: 0;
  padding-block: clamp(24px, 4vw, 55px) clamp(40px, 6vw, 80px);
}

.achg-inner .site-content #primary,
.achg-inner .site-content .inside-article {
  min-width: 0;
}

.achg-inner.no-sidebar .site-content #primary {
  flex: 0 1 100%;
  width: 100%;
}

.achg-inner.no-sidebar:is(.single, .page) .site-content > :is(#left-sidebar, #right-sidebar, .widget-area.sidebar) {
  display: none;
}

.achg-inner .site-content :is(.inside-article, .comments-area, .page-header, .inside-page-header, .sidebar .widget, .paging-navigation) {
  border: 1px solid var(--acg-line);
  border-radius: 17px;
  background: var(--acg-surface);
  box-shadow: 0 6px 24px rgb(24 66 55 / 4%);
}

.achg-inner .site-content .inside-article {
  padding: clamp(24px, 4.6vw, 60px);
}

.achg-inner .site-content :is(.comments-area, .page-header, .inside-page-header) {
  padding: clamp(22px, 4vw, 46px);
}

.achg-inner .site-content :is(.entry-title, .page-title) {
  color: var(--acg-forest-deep);
  font-family: var(--acg-font);
  font-size: clamp(28px, 4.7vw, 49px);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1.22;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.achg-inner:not(.single, .page) .site-content .entry-title {
  font-size: clamp(23px, 3vw, 34px);
}

.achg-inner .site-content .entry-title a {
  color: inherit;
  text-decoration: none;
}

.achg-inner .site-content .entry-title a:hover {
  color: #2c614d;
  text-decoration: underline;
  text-underline-offset: .18em;
}

.achg-inner .site-content .entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 13px;
  margin-top: 15px;
  color: var(--acg-muted);
  font-size: .86rem;
  line-height: 1.65;
}

.achg-inner .site-content .entry-meta > span {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.achg-inner .site-content footer.entry-meta {
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid var(--acg-line);
}

.achg-inner .site-content footer.entry-meta .gp-icon {
  color: #4a6654;
}

.achg-inner .site-content :is(.entry-content, .entry-summary, .comment-content, .taxonomy-description) {
  color: var(--acg-ink);
  font-size: clamp(16px, 1.9vw, 18px);
  line-height: 1.82;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.achg-inner .site-content .entry-content {
  margin-top: clamp(25px, 3.8vw, 43px);
}

.achg-inner .entry-content :is(h2, h3, h4),
.achg-inner .site-content :is(.comments-title, .comment-reply-title, .widget-title) {
  color: var(--acg-forest-deep);
  font-family: var(--acg-font);
  font-weight: 780;
  line-height: 1.38;
  letter-spacing: -.045em;
}

.achg-inner .entry-content :is(h2, h3, h4) {
  margin-block: 1.75em .55em;
}

.achg-inner .entry-content h2 {
  padding: 0 0 .45em;
  border: 0;
  border-bottom: 1px solid var(--acg-line);
  background: none;
  font-size: clamp(23px, 3.8vw, 35px);
}

.achg-inner .entry-content h3 {
  padding: 0;
  border: 0;
  background: none;
  font-size: clamp(19px, 3vw, 25px);
}

.achg-inner .entry-content h4 {
  font-size: clamp(17px, 2.7vw, 21px);
}

.achg-inner .entry-content :is(h2, h3)::before,
.achg-inner .entry-content :is(h2, h3)::after {
  content: none;
}

.achg-inner .site-content :is(.entry-content, .entry-summary, .entry-meta, .comment-content, .comment-meta, .comment-respond) a:not(.wp-block-button__link, .wp-element-button, .button) {
  color: #245542;
  text-decoration: underline;
  text-decoration-thickness: .085em;
  text-underline-offset: .2em;
}

.achg-inner .site-content :is(.entry-content, .entry-summary, .entry-meta, .comment-content, .comment-meta, .comment-respond) a:not(.wp-block-button__link, .wp-element-button, .button):hover {
  color: var(--acg-forest-deep);
  text-decoration-thickness: .13em;
}

.achg-inner .site-content :is(a, button, input, textarea, summary):focus-visible {
  outline: 2px solid var(--acg-forest);
  outline-offset: 3px;
}

/* Bring explicit legacy decoration into the same palette while keeping emphasis and media. */
.achg-inner .entry-content :is(p, li, span, strong, em, b, i, a, td, th, h2, h3, h4):is([style*="color:" i], [style*="color :" i]):not([role], .has-text-color, .wp-block-button__link, [class*="badge"], [class*="status"]) {
  color: inherit !important;
}

.achg-inner .entry-content :is(h2, h3, h4):is([style*="color:" i], [style*="color :" i]):not([role], .has-text-color) {
  color: var(--acg-forest-deep) !important;
}

.achg-inner .entry-content a:is([style*="color:" i], [style*="color :" i]):not([role], .has-text-color, .wp-block-button__link, [class*="badge"], [class*="status"]) {
  color: #245542 !important;
}

.achg-inner .entry-content :is(div, aside, section, p, table, tr, td, th)[style*="background" i]:not([style*="url(" i], [role], [aria-live], .has-background, .wp-block-cover, .wp-block-media-text, [class*="badge"], [class*="status"], [class*="alert"]) {
  background-color: #eff2e9 !important;
  background-image: none !important;
  border-color: #d7dfd3 !important;
  color: var(--acg-ink) !important;
}

.achg-inner .entry-content :is(blockquote, .achg-answer) {
  margin-inline: 0;
  padding: 16px 21px;
  border: 0;
  border-inline-start: 4px solid #416c56;
  border-radius: 0 10px 10px 0;
  background: #eef2e9;
  color: var(--acg-ink);
  font-style: normal;
}

.achg-inner .entry-content blockquote > :last-child {
  margin-bottom: 0;
}

.achg-inner .entry-content .wp-block-table {
  max-width: 100%;
  overflow-x: auto;
}

.achg-inner .entry-content table {
  width: 100%;
  border-collapse: collapse;
  background: var(--acg-surface);
  font-size: .94em;
}

.achg-inner .entry-content :is(td, th) {
  padding: .65em .8em;
  border-color: var(--acg-line);
  vertical-align: top;
  overflow-wrap: anywhere;
}

.achg-inner .entry-content :is(th, thead td) {
  background: #e9efe5;
  color: var(--acg-forest-deep);
  font-weight: 730;
}

.achg-inner .entry-content tbody tr:nth-child(even) > td {
  background-color: #f8f8f1;
}

.achg-inner .entry-content :is(caption, figcaption) {
  margin-top: .65rem;
  color: var(--acg-muted);
  font-size: .86rem;
  line-height: 1.55;
}

.achg-inner .entry-content img,
.achg-inner :is(.featured-image, .post-image) img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.achg-inner .achg-article-cover {
  overflow: hidden;
  margin: clamp(20px, 3.7vw, 36px) 0 0;
  border-radius: 14px;
  background: var(--acg-soft-green);
}

.achg-inner .achg-article-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 50% 38%;
}

.achg-inner .achg-article-note {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-bottom: 22px;
  padding-block: 9px 12px;
  border-bottom: 1px solid var(--acg-line);
  color: var(--acg-muted);
  font-size: .85rem;
}

.achg-inner .entry-content .achg-continue {
  margin-top: clamp(30px, 5vw, 48px);
  padding: clamp(18px, 3.5vw, 28px);
  border: 1px solid #d7dfd3;
  border-radius: 13px;
  background: #f1f4ed;
}

.achg-inner .entry-content .achg-continue h2 {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  font-size: clamp(20px, 3vw, 25px);
}

.achg-inner .entry-content .achg-continue ul {
  margin: 0;
  padding-inline-start: 1.15em;
}

.achg-inner .entry-content .achg-continue li + li {
  margin-top: 5px;
}

.achg-inner .site-content .pagination {
  font-size: .92rem;
}

.achg-inner .site-content :is(.post-navigation, .pagination) a {
  text-decoration: underline;
  text-underline-offset: .2em;
}

.achg-inner .site-content :is(.post-navigation, .pagination) a,
.achg-inner .site-content .sidebar .widget a {
  color: #245542;
}

.achg-inner .comments-area .comment-list {
  margin: 0;
}

.achg-inner .comments-area .comment-body {
  padding-block: 16px;
  border-color: var(--acg-line);
}

.achg-inner .comments-area .comment-form label {
  color: var(--acg-ink);
  font-weight: 650;
}

.achg-inner .comments-area .comment-form :is(input[type="text"], input[type="email"], input[type="url"], textarea) {
  max-width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #d4dcd0;
  border-radius: 8px;
  background: #fff;
  color: var(--acg-ink);
  font-family: var(--acg-font);
  font-size: 16px;
}

.achg-inner .comments-area .comment-form textarea {
  min-height: 130px;
  resize: vertical;
}

.achg-inner .comments-area .form-submit :is(input, button) {
  min-height: 45px;
  padding: 10px 17px;
  border-radius: 9px;
  background: var(--acg-forest);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.achg-inner .comments-area .form-submit :is(input, button):hover {
  background: var(--acg-forest-deep);
}

@media (max-width: 880px) {
  .achg-inner .site.grid-container,
  .achg-inner.no-sidebar .site.grid-container {
    width: calc(100% - 44px);
  }
}

@media (max-width: 640px) {
  .achg-inner .site.grid-container,
  .achg-inner.no-sidebar .site.grid-container {
    width: calc(100% - 24px);
  }

  .achg-inner .site-content {
    padding-block: 17px 42px;
  }

  .achg-inner .site-content :is(.inside-article, .comments-area, .page-header, .inside-page-header) {
    padding: 21px 16px 24px;
    border-radius: 13px;
  }

  .achg-inner .site-content .entry-meta {
    margin-top: 11px;
  }

  .achg-inner .achg-article-cover {
    border-radius: 10px;
  }

  .achg-inner .achg-article-cover img {
    aspect-ratio: 3 / 2;
  }

  .achg-inner .entry-content table {
    font-size: .87em;
  }

  .achg-inner .entry-content > table {
    table-layout: fixed;
  }

  .achg-inner .entry-content :is(td, th) {
    padding: .55em .45em;
  }
}

