/*
Theme Name: Issue Today Brief
Theme URI: https://example.com/issue-today
Author: Issue Today
Description: 정치, IT, 애플, 세계경제, 증시와 환율 소식을 큐레이션하는 반응형 개인 블로그 테마입니다.
Version: 1.3.0
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: cyber-times
*/

:root {
  --ct-ink: #101216;
  --ct-muted: #667085;
  --ct-line: #d9dde3;
  --ct-soft: #f4f6f8;
  --ct-accent: #d9272e;
  --ct-blue: #174ea6;
  --ct-max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ct-ink);
  background: #fff;
  font-family: "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
  line-height: 1.65;
  word-break: keep-all;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ct-accent); }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
.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;
}
.ct-wrap { width: min(calc(100% - 40px), var(--ct-max)); margin-inline: auto; }

/* Header */
.ct-utility { border-bottom: 1px solid #eceff2; color: var(--ct-muted); font-size: 12px; }
.ct-utility__inner { display: flex; justify-content: space-between; align-items: center; min-height: 34px; }
.ct-utility__links { display: flex; gap: 18px; }
.ct-masthead { padding: 27px 0 23px; }
.ct-masthead__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.ct-date { font-size: 13px; color: var(--ct-muted); }
.ct-brand { text-align: center; }
.ct-brand__name { font-family: Georgia, "Noto Serif KR", serif; font-weight: 900; font-size: clamp(32px, 4vw, 50px); letter-spacing: -2.5px; line-height: 1; }
.ct-brand__name span { color: var(--ct-accent); }
.ct-brand__tagline { margin-top: 8px; color: var(--ct-muted); font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; }
.ct-header-actions { display: flex; justify-content: flex-end; gap: 8px; }
.ct-icon-button { width: 40px; height: 40px; border: 1px solid var(--ct-line); border-radius: 50%; background: #fff; cursor: pointer; }
.ct-icon-button:hover { border-color: var(--ct-ink); }
.ct-nav { border-top: 2px solid var(--ct-ink); border-bottom: 1px solid var(--ct-ink); background: #fff; }
.ct-nav__inner { display: flex; align-items: center; justify-content: center; min-height: 52px; }
.ct-nav ul { display: flex; align-items: center; justify-content: center; gap: clamp(22px, 3.1vw, 42px); list-style: none; padding: 0; margin: 0; }
.ct-nav a { font-size: 15px; font-weight: 700; }
.ct-nav .current-menu-item > a, .ct-nav .current-menu-ancestor > a { color: var(--ct-accent); }
.ct-menu-toggle { display: none; border: 0; background: transparent; font-size: 24px; cursor: pointer; }
.ct-search-panel { display: none; border-bottom: 1px solid var(--ct-line); padding: 16px 0; background: var(--ct-soft); }
.ct-search-panel.is-open { display: block; }
.ct-search-panel form { display: flex; max-width: 680px; margin: auto; }
.ct-search-panel input { flex: 1; min-width: 0; border: 1px solid var(--ct-line); padding: 12px 14px; background: #fff; }
.ct-search-panel button { border: 0; padding: 0 22px; color: #fff; background: var(--ct-ink); cursor: pointer; }

/* Breaking ticker */
.ct-breaking { border-bottom: 1px solid var(--ct-line); background: #fff; }
.ct-breaking__inner { min-height: 46px; display: flex; align-items: center; gap: 18px; overflow: hidden; }
.ct-breaking__label { flex: 0 0 auto; padding: 4px 9px; color: #fff; background: var(--ct-accent); font-size: 11px; font-weight: 800; letter-spacing: .5px; }
.ct-breaking__items { display: flex; gap: 32px; overflow: hidden; white-space: nowrap; font-size: 13px; font-weight: 600; }
.ct-breaking__items a::before { content: "•"; color: var(--ct-accent); margin-right: 8px; }

/* Shared */
.ct-main { padding: 34px 0 70px; }
.ct-section { margin-top: 48px; }
.ct-section-title { display: flex; align-items: center; justify-content: space-between; margin: 0 0 20px; padding: 0 0 11px; border-bottom: 3px solid var(--ct-ink); }
.ct-section-title h2 { margin: 0; font-family: Georgia, "Noto Serif KR", serif; font-size: 25px; letter-spacing: -1px; }
.ct-section-title a { color: var(--ct-muted); font-size: 12px; font-weight: 700; }
.ct-kicker { display: inline-block; margin-bottom: 8px; color: var(--ct-accent); font-size: 12px; font-weight: 800; }
.ct-meta { display: flex; gap: 10px; color: var(--ct-muted); font-size: 11px; }
.ct-thumb { position: relative; overflow: hidden; background: linear-gradient(135deg, #e7eaee, #f8f9fa); }
.ct-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
a:hover .ct-thumb img { transform: scale(1.025); }
.ct-placeholder { display: grid; place-items: center; width: 100%; height: 100%; min-height: 150px; color: #98a2b3; font-weight: 800; letter-spacing: 1px; background: linear-gradient(135deg, #edf0f3, #fafafa); }
.ct-empty { padding: 45px 20px; text-align: center; border: 1px dashed var(--ct-line); background: var(--ct-soft); color: var(--ct-muted); }

/* Lead grid */
.ct-lead-grid { display: grid; grid-template-columns: 1fr 1.55fr .82fr; gap: 26px; padding-bottom: 34px; border-bottom: 1px solid var(--ct-ink); }
.ct-lead-side { display: grid; align-content: start; gap: 18px; }
.ct-lead-side .ct-story + .ct-story { padding-top: 18px; border-top: 1px solid var(--ct-line); }
.ct-lead-side .ct-thumb { aspect-ratio: 16/9; margin-bottom: 12px; }
.ct-lead-side h2 { margin: 0 0 8px; font-size: 19px; line-height: 1.4; letter-spacing: -.6px; }
.ct-lead-main { padding: 0 24px; border-inline: 1px solid var(--ct-line); text-align: center; }
.ct-lead-main .ct-thumb { aspect-ratio: 16/10; margin-bottom: 20px; }
.ct-lead-main h1 { margin: 0 0 12px; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(27px, 3vw, 40px); line-height: 1.26; letter-spacing: -1.7px; }
.ct-lead-main p { margin: 0 auto 13px; max-width: 680px; color: #4b5563; font-size: 14px; }
.ct-headlines h3 { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--ct-line); font-size: 16px; line-height: 1.45; }
.ct-headlines h3:first-child { padding-top: 0; }
.ct-headlines .ct-rank { color: var(--ct-accent); font-family: Georgia, serif; font-size: 18px; margin-right: 8px; }

/* Category panels */
.ct-home-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 38px; align-items: start; }
.ct-category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ct-category-card { min-width: 0; }
.ct-category-card .ct-thumb { aspect-ratio: 16/10; margin-bottom: 12px; }
.ct-category-card h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.42; letter-spacing: -.55px; }
.ct-category-card p { margin: 0; color: var(--ct-muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ct-compact-list { margin: 17px 0 0; padding: 0; list-style: none; }
.ct-compact-list li { padding: 10px 0; border-top: 1px solid var(--ct-line); font-size: 14px; font-weight: 600; line-height: 1.4; }

/* Sidebar */
.ct-sidebar { position: sticky; top: 18px; }
.ct-widget { margin-bottom: 28px; }
.ct-widget__title { margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--ct-ink); font-size: 17px; }
.ct-market { border: 1px solid var(--ct-line); }
.ct-market__head { padding: 13px 15px; color: #fff; background: var(--ct-ink); font-size: 13px; font-weight: 800; }
.ct-market__row { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px 15px; border-top: 1px solid var(--ct-line); font-size: 13px; }
.ct-market__value { font-weight: 800; }
.ct-up { color: #d9272e; } .ct-down { color: #2463b6; }
.ct-most-read { counter-reset: rank; list-style: none; padding: 0; margin: 0; }
.ct-most-read li { counter-increment: rank; display: grid; grid-template-columns: 25px 1fr; gap: 8px; padding: 11px 0; border-bottom: 1px solid var(--ct-line); font-size: 13px; font-weight: 600; line-height: 1.45; }
.ct-most-read li::before { content: counter(rank); color: var(--ct-accent); font-family: Georgia, serif; font-weight: 900; font-size: 18px; }
.ct-ad { display: grid; place-items: center; min-height: 250px; border: 1px solid #e5e7eb; color: #98a2b3; background: #fafafa; font-size: 11px; letter-spacing: 1px; }

/* Archive, single */
.ct-page-head { padding-bottom: 18px; margin-bottom: 26px; border-bottom: 3px solid var(--ct-ink); }
.ct-page-head h1 { margin: 0; font-family: Georgia, "Noto Serif KR", serif; font-size: 34px; letter-spacing: -1.2px; }
.ct-archive-layout, .ct-single-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 42px; }
.ct-list-story { display: grid; grid-template-columns: 230px 1fr; gap: 22px; padding: 21px 0; border-bottom: 1px solid var(--ct-line); }
.ct-list-story .ct-thumb { aspect-ratio: 16/10; }
.ct-list-story h2 { margin: 4px 0 8px; font-size: 22px; line-height: 1.35; }
.ct-list-story p { margin: 0; color: var(--ct-muted); font-size: 14px; }
.ct-article-header { margin-bottom: 26px; }
.ct-article-header h1 { margin: 8px 0 16px; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(33px, 4.3vw, 54px); line-height: 1.2; letter-spacing: -2px; }
.ct-article-deck { color: #4b5563; font-size: 18px; }
.ct-article-image { margin: 0 0 28px; }
.ct-article-content { font-family: "Noto Serif KR", Georgia, serif; font-size: 18px; line-height: 1.95; }
.ct-article-content > * { max-width: 760px; }
.ct-article-content img, .ct-article-content figure { max-width: 100%; }
.ct-article-content blockquote { margin: 28px 0; padding: 5px 0 5px 24px; border-left: 4px solid var(--ct-accent); font-size: 21px; font-weight: 700; }
.ct-blog-note { margin: 28px 0; padding: 16px 18px; border: 1px solid var(--ct-line); color: var(--ct-muted); background: var(--ct-soft); font-family: "Noto Sans KR", sans-serif; font-size: 12px; line-height: 1.7; }
.ct-pagination { display: flex; gap: 8px; margin-top: 30px; }
.ct-pagination .page-numbers { padding: 8px 12px; border: 1px solid var(--ct-line); }
.ct-pagination .current { color: #fff; background: var(--ct-ink); border-color: var(--ct-ink); }

/* Footer */
.ct-footer { margin-top: 30px; color: #c5cad3; background: #171a20; }
.ct-footer__top { padding: 38px 0; display: grid; grid-template-columns: 1.2fr 2fr; gap: 50px; }
.ct-footer__brand { color: #fff; font-family: Georgia, "Noto Serif KR", serif; font-size: 26px; font-weight: 900; }
.ct-footer__desc { max-width: 430px; color: #969eaa; font-size: 12px; }
.ct-footer ul { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; margin: 4px 0 0; padding: 0; font-size: 12px; }
.ct-footer__bottom { padding: 16px 0; border-top: 1px solid #30343c; font-size: 11px; color: #818896; }

@media (max-width: 1000px) {
  .ct-lead-grid { grid-template-columns: 1fr 1.5fr; }
  .ct-headlines { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; border-top: 1px solid var(--ct-line); padding-top: 16px; }
  .ct-headlines h3 { border: 0; padding: 0; }
  .ct-home-layout, .ct-archive-layout, .ct-single-layout { grid-template-columns: 1fr; }
  .ct-sidebar { position: static; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .ct-sidebar .ct-ad { display: none; }
}

@media (max-width: 760px) {
  .ct-wrap { width: min(calc(100% - 28px), var(--ct-max)); }
  .ct-utility { display: none; }
  .ct-masthead { padding: 17px 0; }
  .ct-masthead__inner { grid-template-columns: auto 1fr auto; }
  .ct-date { display: none; }
  .ct-brand { text-align: left; }
  .ct-brand__name { font-size: 29px; letter-spacing: -1.5px; }
  .ct-brand__tagline { display: none; }
  .ct-menu-toggle { display: block; grid-column: 1; grid-row: 1; }
  .ct-header-actions { grid-column: 3; }
  .ct-nav__inner { display: block; min-height: 0; }
  .ct-nav ul { display: none; padding: 14px 0; flex-direction: column; align-items: stretch; gap: 0; }
  .ct-nav.is-open ul { display: flex; }
  .ct-nav li a { display: block; padding: 11px 5px; border-bottom: 1px solid var(--ct-line); }
  .ct-breaking__items { font-size: 12px; }
  .ct-main { padding-top: 24px; }
  .ct-lead-grid { grid-template-columns: 1fr; gap: 26px; }
  .ct-lead-main { grid-row: 1; padding: 0 0 25px; border: 0; border-bottom: 1px solid var(--ct-line); }
  .ct-lead-side { grid-row: 2; grid-template-columns: repeat(2, 1fr); }
  .ct-headlines { grid-row: 3; grid-template-columns: 1fr; gap: 0; }
  .ct-headlines h3 { padding: 12px 0; border-bottom: 1px solid var(--ct-line); }
  .ct-category-grid { grid-template-columns: 1fr; }
  .ct-category-card { display: grid; grid-template-columns: 130px 1fr; gap: 14px; }
  .ct-category-card .ct-thumb { margin: 0; }
  .ct-category-card p { display: none; }
  .ct-sidebar { grid-template-columns: 1fr; }
  .ct-list-story { grid-template-columns: 120px 1fr; gap: 14px; }
  .ct-list-story h2 { font-size: 17px; margin-top: 0; }
  .ct-list-story p { display: none; }
  .ct-article-header h1 { font-size: 34px; }
  .ct-footer__top { grid-template-columns: 1fr; gap: 24px; }
}
