/* css/insight.css
   Insights/news/articles: insight cards, filter row, article body/aside, newsletter.
   Split from styles.css (Phase 4, boundary-corrected); linked in source order to preserve the cascade. */
.secondary-insights article,
.secondary-insight-link,
.insight-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.secondary-insights article,
.secondary-insight-link {
  display: flex;
  flex-direction: column;
  padding: 28px;
}

.secondary-insight-link,
.insight-card {
  color: inherit;
  text-decoration: none;
}

.secondary-insights h3,
.insight-card h3 {
  margin-top: 14px;
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.38;
}

.secondary-insights p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.insight-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.insight-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.visual-slot--insight-large {
  aspect-ratio: 16 / 9;
  min-height: auto;
}

.visual-slot--insight {
  aspect-ratio: 16 / 9;
  min-height: auto;
}

.insight-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.insight-card--large .insight-card__body {
  padding: 34px 38px 36px;
}

.insight-card--large h3 {
  font-size: 30px;
}

.insight-card p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.68;
}

.insight-meta,
.insight-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.insight-meta small,
.insight-foot small {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 11px;
}

.insight-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  color: var(--ink-2);
  font-size: 13px;
}

.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 38px;
}

.filter-row > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-row button {
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.filter-row button.is-active {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--surface);
}

.filter-row button span {
  margin-left: 6px;
  font-family: var(--font-sans);
  font-size: 10px;
  opacity: 0.72;
}

.filter-row small {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 11px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.article-hero {
  padding: 92px 0 42px;
  background: var(--cream);
}

.article-hero__copy {
  max-width: 860px;
  margin-top: 34px;
}

.article-hero__copy h1 {
  margin-top: 18px;
  font-family: var(--font-sans);
  font-size: 56px;
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: 0;
}

.article-hero__copy p {
  max-width: 740px;
  margin-top: 22px;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.75;
}

.article-author {
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.article-cover {
  overflow: hidden;
  margin-top: 40px;
  border-radius: 8px;
  background: var(--surface);
}

.article-cover img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: initial;
}

.article-body-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: initial;
}

.article-section {
  background: var(--surface);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 780px) 320px;
  gap: 72px;
  align-items: start;
}

.article-body {
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.86;
}

.article-body > * + * {
  margin-top: 28px;
}

.article-body .article-align-center {
  text-align: center;
}

.article-body ul.article-align-center {
  display: block;
  list-style-position: inside;
  padding-left: 0;
}

.article-body ul.article-align-center li + li {
  margin-top: 10px;
}

.article-body h2 {
  margin-top: 54px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.3;
}

.article-body ul {
  display: grid;
  gap: 10px;
  padding-left: 22px;
}

.article-body li::marker {
  color: var(--accent);
}

.article-body mark.article-highlight {
  background: rgba(201, 166, 107, 0.24);
  color: inherit;
  padding: 0 0.12em;
}

.article-body blockquote {
  border-left: 4px solid var(--accent);
  background: var(--cream);
  padding: 24px 28px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 24px;
  line-height: 1.58;
}

.article-body-image {
  overflow: hidden;
  border-radius: 8px;
  background: var(--cream);
}

.article-body-image img {
  display: block;
}

.article-body-image figcaption {
  padding: 12px 16px 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.article-aside {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 22px;
}

.article-aside__box,
.article-related {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  padding: 24px;
}

.article-aside__box span,
.article-related small {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 11px;
}

.article-aside__box h2,
.article-related h2 {
  margin: 8px 0 18px;
  font-size: 20px;
  line-height: 1.4;
}

.article-related {
  display: grid;
  gap: 14px;
}

.article-related a {
  display: grid;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}

.article-related strong {
  font-size: 15px;
  line-height: 1.45;
}

.article-not-found {
  display: grid;
  gap: 18px;
}

.article-not-found h1 {
  font-family: var(--font-sans);
  font-size: 42px;
  font-weight: 500;
}

.more-row {
  margin-top: 48px;
  text-align: center;
}

.newsletter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 52px;
  align-items: center;
}

.newsletter-panel h2 {
  margin-top: 18px;
  font-size: 38px;
}

.newsletter-panel p {
  max-width: 560px;
  margin-top: 14px;
  color: var(--ink-2);
  line-height: 1.7;
}

.newsletter-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.newsletter-form__status {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
}

.site-footer {
  flex-shrink: 0;
  padding: 76px 0 30px;
  background: var(--ink);
  color: var(--cream);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(5, minmax(0, 1fr));
  gap: 48px;
  padding-bottom: 54px;
  border-bottom: 1px solid #2e2b25;
}

.footer-grid p {
  max-width: 330px;
  margin-top: 18px;
  color: #cfc8b9;
  font-size: 14px;
  line-height: 1.75;
}

.footer-grid h2 {
  margin-bottom: 16px;
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
}

.footer-grid a,
.footer-grid button {
  display: block;
  margin-top: 11px;
  padding: 0;
  color: var(--cream);
  opacity: 0.86;
  font-size: 14px;
  text-align: left;
}

.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.footer-social a {
  width: 44px;
  height: 34px;
  display: grid;
  place-items: center;
  margin: 0;
  border: 1px solid #343128;
  border-radius: 4px;
  color: #cfc8b9;
  font-size: 11px;
}

.footer-bottom {
  display: grid;
  gap: 16px;
  padding-top: 28px;
  color: #cfc8b9;
  font-family: var(--font-sans);
  font-size: 11px;
}

.footer-business,
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.footer-legal {
  padding-top: 4px;
}

.footer-legal a {
  color: var(--cream);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  opacity: 0.86;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--accent);
  opacity: 1;
  outline: none;
}

/* 공지 목록 — 이미지 카드 3열에서 전폭 행으로. 공지는 읽을거리가 아니라
   제목·날짜를 훑는 목록이라 한 화면에 들어오는 개수가 곧 쓸모다. */
.notice-list-section {
  padding-top: 40px;
}

.notice-list {
  display: grid;
  gap: 12px;
}

.notice-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 120px;
  gap: 28px;
  align-items: center;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.notice-row:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.notice-row.is-pinned {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.notice-row__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.notice-row__pin,
.notice-row__category {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
}

.notice-row__pin {
  background: var(--brand);
  color: var(--on-brand);
}

.notice-row__category {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
}

.notice-row__body {
  min-width: 0;
}

.notice-row__body h2 {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
}

.notice-row__body p {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.notice-row__date {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 13px;
  text-align: right;
}

/* 필터가 히어로의 마지막 줄이 되면서 아래 여백이 두 번 잡혔다. */
.page-hero--news .filter-row {
  margin-bottom: 0;
  padding-top: 8px;
}
