/*
Theme Name: Jigeum Choego News
Theme URI: https://momjoa.com/
Author: Codex
Author URI: https://momjoa.com/
Description: A clean Korean news theme for support-fund and economy coverage.
Version: 1.0.0
Update URI: false
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jigeum-choego-news
*/

:root {
  --jcn-ink: #111317;
  --jcn-muted: #667085;
  --jcn-line: #e5e7eb;
  --jcn-soft: #f6f7f9;
  --jcn-paper: #ffffff;
  --jcn-blue: #155eef;
  --jcn-red: #e11d48;
  --jcn-green: #047857;
  --jcn-amber: #b45309;
  --jcn-max: 1180px;
  --jcn-radius: 6px;
  --jcn-shadow: 0 10px 30px rgba(17, 19, 23, 0.08);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--jcn-paper);
  color: var(--jcn-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.68;
  letter-spacing: 0;
  word-break: keep-all;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--jcn-blue);
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-wrap {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(245, 247, 250, 0.92), rgba(255, 255, 255, 0) 240px),
    var(--jcn-paper);
}

.jcn-container {
  width: min(100% - 32px, var(--jcn-max));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--jcn-line);
  background: rgba(255, 255, 255, 0.96);
}

.site-kicker {
  border-bottom: 1px solid var(--jcn-line);
  color: var(--jcn-muted);
  font-size: 13px;
}

.site-kicker__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  gap: 20px;
}

.site-kicker strong {
  color: var(--jcn-green);
  font-weight: 800;
}

.brand-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 26px 0 20px;
}

.site-branding {
  grid-column: 2;
  text-align: center;
}

.site-title {
  margin: 0;
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
}

.site-title a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.site-title__mark {
  width: 42px;
  height: 42px;
  border: 1px solid var(--jcn-line);
  border-radius: 999px;
  background: #fff;
  object-fit: cover;
}

.site-description {
  margin: 10px 0 0;
  color: var(--jcn-muted);
  font-size: 14px;
}

.header-search {
  justify-self: end;
  display: flex;
  align-items: center;
  width: min(260px, 100%);
  border: 1px solid var(--jcn-line);
  border-radius: 999px;
  background: var(--jcn-paper);
  overflow: hidden;
}

.header-search label {
  flex: 1;
}

.header-search input {
  width: 100%;
  border: 0;
  padding: 11px 4px 11px 16px;
  color: var(--jcn-ink);
  font: inherit;
  font-size: 14px;
  outline: none;
}

.header-search button {
  width: 42px;
  min-width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--jcn-ink);
  cursor: pointer;
}

.header-search button::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 50%;
  transform: translate(0, 1px);
}

.header-search button::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 2px;
  background: currentColor;
  transform: translate(-2px, 6px) rotate(45deg);
}

.primary-nav {
  border-top: 1px solid var(--jcn-line);
}

.primary-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 48px;
}

.menu,
.primary-nav ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu a,
.primary-nav a {
  display: block;
  padding: 14px 20px 14px 0;
  color: var(--jcn-ink);
  font-size: 15px;
  font-weight: 750;
}

.menu a:hover,
.primary-nav a:hover {
  color: var(--jcn-blue);
}

.nav-note {
  color: var(--jcn-muted);
  font-size: 13px;
}

.breaking-bar {
  border-bottom: 1px solid var(--jcn-line);
  background: #fff;
}

.breaking-bar__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 46px;
  overflow: hidden;
  white-space: nowrap;
}

.breaking-label {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--jcn-red);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.breaking-title {
  overflow: hidden;
  color: var(--jcn-ink);
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
}

.site-main {
  padding: 48px 0 64px;
}

.news-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.9fr);
  gap: 32px;
  align-items: start;
}

.lead-story,
.story-card,
.list-card {
  background: var(--jcn-paper);
}

.lead-story__image {
  aspect-ratio: 1.62 / 1;
  overflow: hidden;
  border-radius: var(--jcn-radius);
  background: var(--jcn-soft);
}

.lead-story__image img,
.story-card__image img,
.list-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.lead-story:hover img,
.story-card:hover img,
.list-card:hover img {
  transform: scale(1.025);
}

.lead-story__body {
  padding-top: 18px;
}

.post-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--jcn-blue);
  font-size: 13px;
  font-weight: 850;
}

.post-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--jcn-blue);
}

.lead-story h2,
.entry-title {
  margin: 10px 0 10px;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.16;
  letter-spacing: 0;
}

.lead-story__excerpt {
  margin: 18px 0 0;
  color: #344054;
  font-size: 17px;
}

.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--jcn-muted);
  font-size: 13px;
}

.post-meta span + span::before {
  content: "/";
  margin-right: 8px;
  color: #c0c6d0;
}

.side-stories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.story-card {
  min-width: 0;
  border-bottom: 1px solid var(--jcn-line);
  padding-bottom: 18px;
}

.story-card--wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 18px;
  align-items: start;
}

.story-card__image {
  aspect-ratio: 1.55 / 1;
  overflow: hidden;
  border-radius: var(--jcn-radius);
  background: var(--jcn-soft);
}

.story-card h3 {
  margin: 10px 0 8px;
  font-size: 20px;
  line-height: 1.32;
  letter-spacing: 0;
}

.story-card--wide h3 {
  margin-top: 0;
  font-size: 24px;
}

.story-card p {
  margin: 8px 0 0;
  color: var(--jcn-muted);
  font-size: 14px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 56px 0 22px;
  border-bottom: 2px solid var(--jcn-ink);
}

.section-heading h2,
.archive-title {
  margin: 0;
  padding-bottom: 12px;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 0;
}

.section-heading a {
  color: var(--jcn-muted);
  font-size: 14px;
  font-weight: 750;
}

.latest-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 44px;
  align-items: start;
}

.post-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--jcn-line);
}

.list-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--jcn-line);
}

.list-card__image {
  aspect-ratio: 1.5 / 1;
  overflow: hidden;
  border-radius: var(--jcn-radius);
  background: var(--jcn-soft);
}

.list-card h3 {
  margin: 6px 0 8px;
  font-size: 22px;
  line-height: 1.32;
  letter-spacing: 0;
}

.list-card p {
  margin: 10px 0 0;
  color: #475467;
  font-size: 15px;
}

.news-sidebar {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 18px;
}

.side-box {
  border: 1px solid var(--jcn-line);
  border-radius: var(--jcn-radius);
  background: #fff;
  padding: 20px;
}

.side-box h2,
.side-box h3 {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 0;
}

.side-box p {
  margin: 0;
  color: var(--jcn-muted);
  font-size: 14px;
}

.topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.topic-list a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--jcn-line);
  border-radius: 999px;
  background: var(--jcn-soft);
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

.topic-list a:hover {
  border-color: var(--jcn-blue);
  background: #eff6ff;
  color: var(--jcn-blue);
}

.cta-box {
  border: 0;
  background: #101828;
  color: #fff;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.72);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 16px;
  padding: 0 15px;
  border-radius: 999px;
  background: #fff;
  color: #101828;
  font-size: 14px;
  font-weight: 900;
}

.placeholder-thumb {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 130px;
  border: 1px solid var(--jcn-line);
  background:
    linear-gradient(135deg, rgba(21, 94, 239, 0.12), rgba(4, 120, 87, 0.14)),
    #f8fafc;
  color: #1d2939;
  font-size: 14px;
  font-weight: 950;
}

.archive-header {
  margin-bottom: 30px;
  border-bottom: 2px solid var(--jcn-ink);
}

.archive-header p {
  margin: 0 0 18px;
  color: var(--jcn-muted);
}

.content-area {
  display: grid;
  grid-template-columns: minmax(0, 760px) 320px;
  gap: 52px;
  align-items: start;
}

.article {
  min-width: 0;
}

.article-header {
  margin-bottom: 26px;
  border-bottom: 1px solid var(--jcn-line);
  padding-bottom: 24px;
}

.article-header .entry-title {
  margin-top: 12px;
}

.article-thumbnail {
  margin: 0 0 28px;
  overflow: hidden;
  border-radius: var(--jcn-radius);
}

.entry-content {
  color: #1f2937;
  font-size: 18px;
  line-height: 1.86;
}

.entry-content p {
  margin: 0 0 1.35em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin: 1.8em 0 0.65em;
  color: var(--jcn-ink);
  line-height: 1.35;
  letter-spacing: 0;
}

.entry-content h2 {
  font-size: 28px;
}

.entry-content h3 {
  font-size: 23px;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.25em;
}

.entry-content blockquote {
  margin: 28px 0;
  border-left: 4px solid var(--jcn-blue);
  padding: 14px 0 14px 18px;
  background: #f8fafc;
  color: #344054;
  font-weight: 700;
}

.article-cta {
  margin: 34px 0;
  border: 1px solid #b9d3ff;
  border-radius: var(--jcn-radius);
  background: #f0f6ff;
  padding: 22px;
}

.article-cta strong {
  display: block;
  margin-bottom: 6px;
  color: #0b3b91;
  font-size: 18px;
}

.article-cta__body p {
  margin: 0;
}

.article-cta__body p + p {
  margin-top: 10px;
}

.article-cta__body a {
  color: #0b3b91;
  font-weight: 850;
}

.article-cta a.article-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 230px;
  min-height: 50px;
  margin-top: 16px;
  border: 1px solid #0b4fd6;
  border-radius: var(--jcn-radius);
  background: var(--jcn-blue);
  box-shadow: 0 8px 18px rgba(21, 94, 239, 0.18);
  padding: 0 22px;
  color: #fff !important;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.article-cta a.article-cta__button:hover,
.article-cta a.article-cta__button:focus-visible {
  background: #0b4fd6;
  color: #fff !important;
  text-decoration: none;
  outline: 0;
}

.article-info-box {
  margin: 32px 0;
  border: 1px solid var(--jcn-line);
  border-radius: var(--jcn-radius);
  background: #f8fafc;
  padding: 20px;
}

.article-info-box h2 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 0;
}

.article-info-box ul {
  margin: 0;
  padding-left: 1.1em;
  color: #475467;
  font-size: 14px;
}

.article-info-box a {
  color: var(--jcn-blue);
  font-weight: 800;
}

.topic-band {
  margin-top: 54px;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.topic-grid a {
  display: block;
  min-height: 118px;
  border: 1px solid var(--jcn-line);
  border-radius: var(--jcn-radius);
  background: #fff;
  padding: 18px;
}

.topic-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--jcn-blue);
  font-size: 13px;
  font-weight: 900;
}

.topic-grid strong {
  display: block;
  color: var(--jcn-ink);
  font-size: 18px;
  line-height: 1.38;
  letter-spacing: 0;
}

.home-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  margin-top: 14px;
}

.compact-list {
  border-top: 1px solid var(--jcn-line);
}

.compact-card {
  border-bottom: 1px solid var(--jcn-line);
  padding: 16px 0;
}

.compact-card span {
  color: var(--jcn-blue);
  font-size: 12px;
  font-weight: 900;
}

.compact-card h3 {
  margin: 5px 0 5px;
  font-size: 18px;
  line-height: 1.38;
  letter-spacing: 0;
}

.related-news {
  margin-top: 38px;
  border-top: 1px solid var(--jcn-line);
  padding-top: 26px;
}

.related-news h2 {
  margin: 0 0 16px;
  color: var(--jcn-ink);
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: 0;
}

.related-news-list {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--jcn-line);
  padding: 0;
  list-style: none;
  counter-reset: related-news;
}

.related-news-list li {
  counter-increment: related-news;
  border-bottom: 1px solid var(--jcn-line);
}

.related-news-link {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 15px 0;
  text-decoration: none;
}

.related-news-link::before {
  content: counter(related-news);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f0f6ff;
  color: var(--jcn-blue);
  font-size: 13px;
  font-weight: 950;
}

.related-news-link span {
  display: none;
}

.related-news-link strong {
  display: block;
  color: var(--jcn-ink);
  font-size: 17px;
  line-height: 1.45;
  letter-spacing: 0;
}

.related-news-link:hover strong,
.related-news-link:focus-visible strong {
  color: var(--jcn-blue);
}

.post-navigation {
  margin-top: 36px;
  border-top: 1px solid var(--jcn-line);
  padding-top: 24px;
}

.nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.nav-previous,
.nav-next {
  border: 1px solid var(--jcn-line);
  border-radius: var(--jcn-radius);
  padding: 16px;
  color: var(--jcn-muted);
  font-size: 14px;
}

.nav-next {
  text-align: right;
}

.nav-previous a,
.nav-next a {
  display: block;
  margin-top: 4px;
  color: var(--jcn-ink);
  font-weight: 850;
}

.pagination {
  margin-top: 34px;
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  border: 1px solid var(--jcn-line);
  border-radius: var(--jcn-radius);
  padding: 0 12px;
  color: var(--jcn-ink);
  font-size: 14px;
  font-weight: 750;
}

.page-numbers.current {
  border-color: var(--jcn-ink);
  background: var(--jcn-ink);
  color: #fff;
}

.empty-state {
  margin: 40px 0;
  border: 1px dashed #b8c2d1;
  border-radius: var(--jcn-radius);
  background: #f8fafc;
  padding: 44px 24px;
  text-align: center;
}

.empty-state h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.empty-state p {
  margin: 0;
  color: var(--jcn-muted);
}

.site-footer {
  border-top: 1px solid var(--jcn-line);
  background: #101828;
  color: rgba(255, 255, 255, 0.72);
  padding: 34px 0;
  font-size: 14px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  color: #fff;
  font-size: 20px;
  font-weight: 950;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 14px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.4;
}

.footer-link-space {
  display: none;
}

.footer-links a:hover {
  color: #fff;
}

@media (max-width: 980px) {
  .brand-row {
    grid-template-columns: 1fr;
    padding: 22px 0;
  }

  .site-branding,
  .header-search {
    grid-column: auto;
    justify-self: center;
  }

  .header-search {
    width: min(100%, 420px);
  }

  .primary-nav__inner,
  .site-kicker__inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;
    padding: 10px 0;
  }

  .primary-nav__inner {
    min-height: auto;
  }

  .nav-note {
    display: none;
  }

  .news-hero,
  .latest-layout,
  .content-area,
  .home-columns {
    grid-template-columns: 1fr;
  }

  .news-sidebar {
    position: static;
  }
}

@media (max-width: 720px) {
  .jcn-container {
    width: min(100% - 22px, var(--jcn-max));
  }

  .site-main {
    padding-top: 28px;
  }

  .site-title {
    font-size: 31px;
  }

  .site-title__mark {
    width: 34px;
    height: 34px;
  }

  .menu,
  .primary-nav ul {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .menu a,
  .primary-nav a {
    white-space: nowrap;
  }

  .breaking-bar__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 11px 0;
    white-space: normal;
  }

  .news-hero {
    gap: 28px;
  }

  .side-stories {
    grid-template-columns: 1fr;
  }

  .topic-grid {
    grid-template-columns: 1fr 1fr;
  }

  .story-card--wide {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .list-card {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 0;
  }

  .list-card h3 {
    font-size: 18px;
  }

  .list-card p {
    display: none;
  }

  .lead-story h2,
  .entry-title {
    font-size: 30px;
  }

  .entry-content {
    font-size: 17px;
  }

  .nav-links,
  .footer-inner {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-next {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .article-cta a.article-cta__button {
    width: 100%;
  }

  .topic-grid {
    grid-template-columns: 1fr;
  }
}
