/*
Theme Name: IssueBreaker Explain
Theme URI: https://issuebreaker.com/
Author: IssueBreaker
Author URI: https://issuebreaker.com/
Description: 생활 속 가격·정책·서비스 변화의 이유를 설명하는 IssueBreaker 전용 경량 블록 테마입니다.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.2.3
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: issuebreaker-explain
Tags: blog, news, block-patterns, full-site-editing, wide-blocks
*/

:root {
  --ib-ink: #17202a;
  --ib-deep: #17202a;
  --ib-text: #17202a;
  --ib-muted: #667085;
  --ib-paper: #fbfaf7;
  --ib-white: #ffffff;
  --ib-line: #e8e4dc;
  --ib-footer-bg: #f2f0e9;
  --ib-accent: #ef5b3f;
  --ib-accent-dark: #c93d25;
  --ib-blue: #2448a8;
  --ib-mint: #dff4ea;
  --ib-yellow: #fff1bd;
  --ib-radius: 18px;
  --ib-shadow: 0 12px 34px rgba(23, 32, 42, 0.08);
  color-scheme: light;
}

html[data-ib-theme="dark"] {
  --ib-text: #eef3ef;
  --ib-muted: #a9b5ae;
  --ib-paper: #111714;
  --ib-white: #19211d;
  --ib-line: #344039;
  --ib-footer-bg: #0b100e;
  --ib-blue: #87a6ff;
  --ib-mint: #17382d;
  --ib-yellow: #3a3115;
  --ib-shadow: 0 16px 42px rgba(0, 0, 0, 0.25);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ib-paper);
  color: var(--ib-text);
  text-rendering: optimizeLegibility;
  word-break: keep-all;
}

a { text-underline-offset: 0.18em; }

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(36, 72, 168, 0.36);
  outline-offset: 3px;
}

.wp-site-blocks { overflow: hidden; }

.ib-site-header {
  background: color-mix(in srgb, var(--ib-paper) 94%, transparent);
  border-bottom: 1px solid var(--ib-line);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
}

.admin-bar .ib-site-header { top: 32px; }

.ib-header-row { min-height: 74px; }

.ib-brand .wp-block-site-title {
  letter-spacing: -0.04em;
  margin: 0;
}

.ib-brand .wp-block-site-title a,
.ib-dynamic-nav__desktop a,
.ib-mobile-nav a { color: var(--ib-text); }

.ib-header-actions {
  align-items: center;
  display: flex;
  gap: 18px;
}

.ib-theme-toggle {
  align-items: center;
  background: var(--ib-white);
  border: 1px solid var(--ib-line);
  border-radius: 999px;
  color: var(--ib-text);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 750;
  gap: 7px;
  min-height: 40px;
  padding: 8px 12px;
  white-space: nowrap;
}

.ib-theme-toggle:hover { border-color: var(--ib-accent); }

.ib-theme-toggle__icon {
  font-size: 1rem;
  line-height: 1;
}

.ib-brand-mark {
  align-items: center;
  background: var(--ib-accent);
  border-radius: 10px;
  color: #fff;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  letter-spacing: -0.12em;
  transform: rotate(-3deg);
  width: 34px;
}

.ib-main-nav a { text-decoration: none; }
.ib-main-nav a:hover { color: var(--ib-accent-dark); }

.ib-dynamic-nav__desktop {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-end;
}

.ib-dynamic-nav__desktop a,
.ib-mobile-nav a {
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.ib-dynamic-nav__desktop a:hover,
.ib-mobile-nav a:hover { color: var(--ib-accent-dark); }

.ib-mobile-nav { display: none; }

.ib-mobile-nav summary {
  align-items: center;
  border: 1px solid var(--ib-line);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  height: 40px;
  justify-content: center;
  list-style: none;
  width: 44px;
}

.ib-mobile-nav summary::-webkit-details-marker { display: none; }

.ib-mobile-nav summary::before {
  content: "☰";
  font-size: 1.22rem;
  line-height: 1;
}

.ib-mobile-nav[open] summary::before { content: "×"; }

.ib-mobile-nav__panel {
  background: var(--ib-white);
  border: 1px solid var(--ib-line);
  border-radius: 14px;
  box-shadow: var(--ib-shadow);
  display: grid;
  gap: 4px;
  padding: 10px;
  position: absolute;
  right: clamp(20px, 4vw, 48px);
  top: 58px;
  width: min(270px, calc(100vw - 40px));
}

.ib-mobile-nav__panel a {
  border-radius: 9px;
  padding: 11px 13px;
}

.ib-mobile-nav__panel a:hover { background: var(--ib-paper); }

.ib-hero {
  background:
    radial-gradient(circle at 88% 16%, rgba(239, 91, 63, 0.17), transparent 30%),
    radial-gradient(circle at 10% 84%, rgba(36, 72, 168, 0.12), transparent 32%),
    var(--ib-paper);
  border-bottom: 1px solid var(--ib-line);
  padding-block: clamp(68px, 10vw, 132px);
}

.ib-kicker {
  color: var(--ib-accent-dark);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ib-hero-title {
  font-size: clamp(3rem, 9vw, 7.2rem) !important;
  letter-spacing: -0.065em;
  line-height: 0.98;
  margin-block: 16px 24px;
  max-width: 920px;
}

.ib-hero-copy {
  color: var(--ib-muted);
  font-size: clamp(1.08rem, 2.3vw, 1.35rem);
  line-height: 1.78;
  max-width: 700px;
}

.ib-button .wp-block-button__link {
  box-shadow: 0 8px 22px rgba(239, 91, 63, 0.2);
  font-weight: 750;
}

.ib-button.is-style-outline .wp-block-button__link { box-shadow: none; }

.ib-trust-strip {
  background: var(--ib-deep);
  color: white;
  padding-block: 22px;
}

.ib-trust-strip .wp-block-column {
  align-items: center;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  display: grid;
  gap: 12px;
  grid-template-columns: 8px minmax(0, 1fr);
  min-height: 58px;
  padding: 15px 18px;
}

.ib-trust-strip .wp-block-column > p { margin: 0; }

.ib-trust-dot {
  align-self: center;
  background: var(--ib-accent);
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
  height: 8px;
  width: 8px;
}

.ib-section { padding-block: clamp(60px, 8vw, 100px); }
.ib-section--tight { padding-block: clamp(42px, 6vw, 72px); }

.ib-section-heading {
  font-size: clamp(1.9rem, 4vw, 3.1rem) !important;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.ib-section-intro { color: var(--ib-muted); max-width: 650px; }

.ib-query-card {
  background: var(--ib-white);
  border: 1px solid var(--ib-line);
  border-radius: var(--ib-radius);
  height: 100%;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.ib-query-card:hover {
  box-shadow: var(--ib-shadow);
  transform: translateY(-4px);
}

.ib-query-card .wp-block-post-featured-image img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.ib-query-card__body { padding: 24px; }

.ib-query-card .wp-block-post-title {
  letter-spacing: -0.035em;
  line-height: 1.34;
}

.ib-query-card .wp-block-post-title a { text-decoration: none; }

.ib-query-card .wp-block-post-excerpt__excerpt {
  color: var(--ib-muted);
  line-height: 1.7;
}

.ib-post-meta,
.ib-post-meta a {
  color: var(--ib-muted);
  font-size: 0.84rem;
  text-decoration: none;
}

.ib-category-grid .wp-block-column {
  background: var(--ib-white);
  border: 1px solid var(--ib-line);
  border-radius: var(--ib-radius);
  padding: 30px;
}

.ib-category-grid .wp-block-column:nth-child(1) { border-top: 5px solid var(--ib-accent); }
.ib-category-grid .wp-block-column:nth-child(2) { border-top: 5px solid var(--ib-blue); }
.ib-category-grid .wp-block-column:nth-child(3) { border-top: 5px solid #bf7b16; }
.ib-category-grid .wp-block-column:nth-child(4) { border-top: 5px solid #178461; }

.ib-category-grid a { text-decoration: none; }

.ib-dynamic-categories__list {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
}

.ib-category-card {
  background: var(--ib-white);
  border: 1px solid var(--ib-line);
  border-radius: var(--ib-radius);
  border-top: 5px solid var(--ib-accent);
  min-height: 188px;
  padding: 28px;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.ib-category-card:nth-child(4n + 2) { border-top-color: var(--ib-blue); }
.ib-category-card:nth-child(4n + 3) { border-top-color: #bf7b16; }
.ib-category-card:nth-child(4n + 4) { border-top-color: #178461; }

.ib-category-card:hover {
  box-shadow: var(--ib-shadow);
  transform: translateY(-3px);
}

.ib-category-card__number {
  color: var(--ib-accent-dark);
  display: block;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  margin-bottom: 17px;
}

.ib-category-card__title {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 9px;
  text-decoration: none;
}

.ib-category-card__description {
  color: var(--ib-muted);
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0;
}

.ib-category-card__count {
  color: var(--ib-muted);
  display: block;
  font-size: 0.78rem;
  margin-top: 14px;
}

.ib-category-empty {
  border: 1px dashed var(--ib-line);
  border-radius: var(--ib-radius);
  color: var(--ib-muted);
  margin-top: 32px;
  padding: 28px;
  text-align: center;
}

.ib-principles {
  background: var(--ib-white);
  border: 1px solid var(--ib-line);
  border-radius: calc(var(--ib-radius) + 8px);
  box-shadow: var(--ib-shadow);
  overflow: hidden;
}

.ib-principles__copy { padding: clamp(32px, 6vw, 72px); }

.ib-principles__number {
  color: var(--ib-accent);
  font-size: 3rem;
  font-weight: 850;
  line-height: 1;
}

.ib-single-hero {
  border-bottom: 1px solid var(--ib-line);
  padding-block: clamp(52px, 8vw, 96px) clamp(40px, 6vw, 72px);
}

.ib-single-title {
  font-size: clamp(2.45rem, 7vw, 5.5rem) !important;
  letter-spacing: -0.06em;
  line-height: 1.08;
  max-width: 1000px;
}

.ib-single-featured img {
  border-radius: calc(var(--ib-radius) + 6px);
  max-height: 620px;
  object-fit: cover;
}

.ib-article {
  font-size: clamp(1.04rem, 1.6vw, 1.16rem);
  line-height: 1.9;
  padding-block: clamp(46px, 7vw, 86px);
}

.ib-article > h2 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  letter-spacing: -0.04em;
  line-height: 1.35;
  margin-top: 2.7em;
}

.ib-article > h3 { margin-top: 2.1em; }
.ib-article > p { margin-block: 1.1em; }
.ib-article > ul,
.ib-article > ol { padding-left: 1.3em; }
.ib-article li { margin-block: 0.55em; }

.ib-summary,
.ib-factbox,
.ib-impact,
.ib-sources,
.is-style-ib-summary,
.is-style-ib-factbox,
.is-style-ib-impact,
.is-style-ib-sources {
  border-radius: var(--ib-radius);
  margin-block: 2rem;
  padding: clamp(24px, 4vw, 38px);
}

.ib-summary,
.is-style-ib-summary {
  background: var(--ib-yellow);
  border: 1px solid color-mix(in srgb, var(--ib-yellow) 60%, var(--ib-text));
}

.ib-summary::before,
.is-style-ib-summary::before {
  color: #826109;
  content: "3줄 요약";
  display: block;
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.ib-factbox,
.is-style-ib-factbox {
  background: color-mix(in srgb, var(--ib-blue) 12%, var(--ib-white));
  border-left: 5px solid var(--ib-blue);
}

.ib-impact,
.is-style-ib-impact {
  background: var(--ib-mint);
  border-left: 5px solid #178461;
}

.ib-sources,
.is-style-ib-sources {
  background: color-mix(in srgb, var(--ib-muted) 10%, var(--ib-white));
  border: 1px solid var(--ib-line);
  font-size: 0.95rem;
}

.ib-sources a,
.is-style-ib-sources a { word-break: break-all; }

.ib-status {
  border-radius: 999px;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  margin-right: 6px;
  padding: 5px 10px;
}

.ib-status--confirmed { background: #dff4ea; color: #0f6b4d; }
.ib-status--forecast { background: #fff1bd; color: #755609; }

.ib-article-footer {
  border-top: 1px solid var(--ib-line);
  padding-block: 36px 72px;
}

.ib-page-shell { padding-block: clamp(56px, 8vw, 100px); }

.ib-page-title {
  font-size: clamp(2.5rem, 7vw, 5rem) !important;
  letter-spacing: -0.055em;
}

.ib-site-footer {
  background: var(--ib-footer-bg) !important;
  border-top: 1px solid var(--ib-line);
  color: var(--ib-text) !important;
  padding-block: clamp(64px, 8vw, 104px) 34px;
}

.ib-site-footer a { color: var(--ib-text) !important; }
.ib-site-footer .wp-block-site-title a { text-decoration: none; }
.ib-footer-note { color: var(--ib-muted); font-size: 0.92rem; }

.ib-footer-top {
  align-items: flex-start;
  border-bottom: 1px solid var(--ib-line);
  display: flex;
  justify-content: space-between;
  margin-bottom: 42px;
  padding-bottom: 32px;
}

.ib-footer-logo .wp-block-site-title {
  font-size: clamp(2rem, 5vw, 4.2rem) !important;
  letter-spacing: -0.06em;
  line-height: 1;
  margin: 0;
}

.ib-footer-logo .ib-footer-note {
  margin-top: 18px;
  max-width: 650px;
}

.ib-footer-grid {
  display: grid !important;
  gap: clamp(30px, 5vw, 72px);
  grid-template-columns: minmax(300px, 1.7fr) repeat(3, minmax(140px, 0.7fr));
}

.ib-footer-column h3 {
  border-bottom: 2px solid var(--ib-accent);
  display: inline-block;
  font-size: 0.92rem !important;
  margin: 0 0 20px;
  padding-bottom: 9px;
}

.ib-footer-column p { margin: 0 0 8px; }

.ib-footer-column ul {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ib-footer-column li { margin: 0; }

.ib-footer-column a {
  font-size: 0.9rem;
  text-decoration: none;
}

.ib-footer-column a:hover { color: var(--ib-accent) !important; }

.ib-footer-meta {
  color: var(--ib-muted);
  font-size: 0.82rem;
  line-height: 1.75;
}

.ib-footer-publisher {
  color: var(--ib-text);
  font-size: 0.92rem;
  font-weight: 750;
}

.ib-footer-categories {
  display: grid;
  gap: 10px;
}

.ib-footer-categories a {
  color: var(--ib-text);
  font-size: 0.9rem;
  text-decoration: none;
}

.ib-footer-bottom {
  align-items: center;
  border-top: 1px solid var(--ib-line);
  display: flex;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 22px;
}

.ib-footer-bottom p { margin: 0; }

.ib-empty-state {
  background: var(--ib-white);
  border: 1px dashed var(--ib-line);
  border-radius: var(--ib-radius);
  padding: 48px;
  text-align: center;
}

@media (max-width: 900px) {
  .ib-dynamic-nav__desktop { display: none; }
  .ib-mobile-nav { display: block; }
  .ib-header-row { min-height: 64px; }
  .ib-trust-strip .wp-block-columns { gap: 14px; }
  .ib-trust-strip .wp-block-column { min-width: 100%; }
  .ib-dynamic-categories__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ib-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 782px) {
  .admin-bar .ib-site-header { top: 46px; }
  .ib-hero { padding-block: 64px 72px; }
  .ib-query-card__body { padding: 20px; }
  .ib-dynamic-categories__list { grid-template-columns: 1fr; }
  .ib-category-card { min-height: 0; }
  .ib-header-actions { gap: 8px; }
  .ib-theme-toggle { min-height: 38px; padding-inline: 10px; }
  .ib-theme-toggle__label { display: none; }
  .ib-footer-top { display: block; }
  .ib-footer-grid { grid-template-columns: 1fr; }
  .ib-footer-bottom { align-items: flex-start; flex-direction: column; gap: 10px; }
}

html[data-ib-theme="dark"] body a { color: inherit; }
html[data-ib-theme="dark"] body { background: var(--ib-paper) !important; color: var(--ib-text) !important; }
html[data-ib-theme="dark"] .has-muted-color { color: var(--ib-muted) !important; }
html[data-ib-theme="dark"] .has-white-background-color.ib-section { background: var(--ib-white) !important; }
html[data-ib-theme="dark"] .ib-summary::before,
html[data-ib-theme="dark"] .is-style-ib-summary::before { color: #f1d87d; }
html[data-ib-theme="dark"] .ib-status--confirmed { background: #17382d; color: #8ae0bd; }
html[data-ib-theme="dark"] .ib-status--forecast { background: #3a3115; color: #f1d87d; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* --------------------------------------------------------------------------
   Editorial system v2 — matches the approved IssueBreaker page-system mockup
   -------------------------------------------------------------------------- */

:root {
  --ib-ink: #173c31;
  --ib-strong: #173c31;
  --ib-accent: #dd563b;
  --ib-paper: #fbfaf6;
  --ib-soft: #f1f0e9;
  --ib-line: #d9ddd6;
  --ib-text: #18211d;
  --ib-muted: #66716b;
  --ib-white: #ffffff;
  --ib-card: #ffffff;
  --ib-footer-bg: #173c31;
  --ib-radius: 4px;
  --ib-shadow: 0 18px 44px rgba(12, 39, 30, 0.09);
}

html[data-ib-theme="dark"] {
  --ib-strong: #dfe9e3;
  --ib-paper: #171a18;
  --ib-soft: #222724;
  --ib-line: #3a423e;
  --ib-text: #eef1ec;
  --ib-muted: #aab3ad;
  --ib-white: #1d211f;
  --ib-card: #1d211f;
  --ib-footer-bg: #0e1814;
}

body {
  background: var(--ib-paper);
  color: var(--ib-text);
  font-family: Pretendard, "Noto Sans KR", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.ib-shell {
  margin-inline: auto;
  width: min(1340px, calc(100% - 64px));
}

.ib-utility {
  background: var(--ib-ink);
  color: #dfe9e3;
  font-size: 12px;
}

.ib-utility__inner {
  align-items: center;
  display: flex;
  height: 34px;
  justify-content: space-between;
}

.ib-utility__links {
  display: flex;
  gap: 22px;
}

.ib-utility a { color: #b9cbc3 !important; text-decoration: none; }
.ib-utility a:hover { color: #fff !important; }

.ib-site-header {
  background: var(--ib-card);
  border-bottom: 1px solid var(--ib-line);
  position: static;
  backdrop-filter: none;
}

.admin-bar .ib-site-header { top: auto; }

.ib-header-row {
  align-items: center;
  display: flex;
  height: 106px;
  justify-content: space-between;
  min-height: 0;
}

.ib-brand { gap: 0 !important; }
.ib-brand-mark { display: none; }

.ib-brand .wp-block-site-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px !important;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}

.ib-brand .wp-block-site-title::after {
  color: var(--ib-muted);
  content: "이슈를 깨고, 이유를 보다";
  display: block;
  font-family: Pretendard, "Noto Sans KR", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  margin-top: 10px;
}

.ib-header-actions { gap: 10px; position: relative; }

.ib-search-form {
  align-items: center;
  background: var(--ib-paper);
  border: 1px solid var(--ib-line);
  border-radius: 5px;
  display: flex;
  height: 44px;
  margin: 0;
  position: relative;
  transition: border-color 160ms ease, box-shadow 160ms ease, width 180ms ease;
  width: 250px;
}

.ib-search-form:focus-within {
  border-color: var(--ib-ink);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ib-ink) 10%, transparent);
}

.ib-search-form__icon {
  color: var(--ib-text);
  font-size: 19px;
  left: 12px;
  line-height: 1;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.ib-search-form input[type="search"] {
  appearance: none;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--ib-text);
  font: inherit;
  font-size: 13px;
  height: 100%;
  margin: 0;
  min-width: 0;
  outline: 0;
  padding: 0 58px 0 38px;
  width: 100%;
}

.ib-search-form input[type="search"]::placeholder { color: var(--ib-muted); opacity: 1; }
.ib-search-form input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }

.ib-search-form button {
  background: var(--ib-ink);
  border: 0;
  border-radius: 4px;
  color: var(--ib-paper);
  font-size: 11px;
  font-weight: 700;
  height: 32px;
  line-height: 1;
  min-height: 0;
  padding: 0 10px;
  position: absolute;
  right: 5px;
  top: 5px;
}

.ib-theme-toggle {
  background: var(--ib-paper);
  border-radius: 5px;
  height: 44px;
  min-height: 44px;
  padding: 0 13px;
}

.ib-category-band { border-top: 1px solid var(--ib-line); }

.ib-category-band,
.ib-dynamic-nav { min-width: 0; width: 100%; }

.ib-dynamic-nav__desktop {
  gap: 34px;
  height: 48px;
  justify-content: flex-start;
  overflow-x: auto;
  flex-wrap: nowrap;
  scrollbar-width: thin;
}

.ib-dynamic-nav__desktop a {
  align-items: center;
  border-bottom: 2px solid transparent;
  display: flex;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 600;
  height: 48px;
}

.ib-dynamic-nav__desktop a:first-child {
  border-bottom-color: var(--ib-accent);
  color: var(--ib-accent);
}

.ib-home { background: var(--ib-paper); }

.ib-home-hero {
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 0.9fr);
  padding-block: 58px 50px;
}

.ib-lead-card {
  background: var(--ib-card);
  border: 1px solid var(--ib-line);
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  min-height: 430px;
}

.ib-lead-visual {
  background: #6f2e22;
  color: #f9e9da;
  min-height: 100%;
  overflow: hidden;
  position: relative;
}

.ib-lead-visual.has-image { background-position: center; background-size: cover; }
.ib-lead-visual.has-image::after { background: linear-gradient(180deg, transparent 40%, rgba(22, 12, 8, 0.72)); content: ""; inset: 0; position: absolute; }
.ib-lead-visual__kicker { font-size: 11px; left: 24px; letter-spacing: 0.14em; position: absolute; text-transform: uppercase; top: 24px; z-index: 2; }
.ib-lead-shape { border-radius: 50%; position: absolute; }
.ib-lead-shape--a { background: #d98554; bottom: -45px; height: 260px; right: -60px; width: 260px; }
.ib-lead-shape--b { background: #3c1e18; box-shadow: 0 0 0 18px rgba(251, 223, 197, 0.12); height: 155px; left: 38px; top: 112px; width: 155px; }
.ib-lead-visual__label { bottom: 25px; font: 500 44px/0.82 Georgia, serif; left: 26px; letter-spacing: -0.04em; position: absolute; z-index: 2; }

.ib-lead-copy { display: flex; flex-direction: column; justify-content: center; padding: 42px 38px; }
.ib-eyebrow { color: var(--ib-accent); display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; }
.ib-lead-copy h1 { font: 500 clamp(30px, 3.1vw, 48px)/1.14 Georgia, "Noto Serif KR", serif; letter-spacing: -0.055em; margin: 15px 0 20px; }
.ib-lead-copy h1 a { color: inherit; text-decoration: none; }
.ib-lead-copy p { color: var(--ib-muted); font-size: 15px; line-height: 1.75; margin: 0 0 32px; }
.ib-meta { color: var(--ib-muted); display: flex; flex-wrap: wrap; font-size: 12px; gap: 8px 20px; }
.ib-meta span + span { position: relative; }
.ib-meta span + span::before { background: var(--ib-muted); border-radius: 50%; content: ""; height: 2px; left: -11px; position: absolute; top: 7px; width: 2px; }

.ib-rank-panel { border-top: 3px solid var(--ib-ink); }
.ib-block-title { align-items: center; border-bottom: 1px solid var(--ib-line); display: flex; justify-content: space-between; padding: 15px 0; }
.ib-block-title h2 { font-size: 18px !important; font-weight: 650; letter-spacing: -0.03em; margin: 0; }
.ib-block-title span, .ib-block-title a { color: var(--ib-muted); font-size: 12px; text-decoration: none; }
.ib-rank-panel ol { list-style: none; margin: 0; padding: 0; }
.ib-rank-panel li { border-bottom: 1px solid var(--ib-line); display: grid; gap: 12px; grid-template-columns: 42px 1fr; padding: 22px 0; }
.ib-rank-panel li > b { color: var(--ib-accent); font: 500 22px/1 Georgia, serif; }
.ib-rank-panel li div { display: flex; flex-direction: column; gap: 7px; }
.ib-rank-panel li span { color: var(--ib-muted); font-size: 11px; }
.ib-rank-panel li strong { font-size: 15px; font-weight: 600; line-height: 1.45; }
.ib-rank-panel li a { color: inherit; text-decoration: none; }

.ib-proof-strip {
  background: var(--ib-card);
  border-block: 1px solid var(--ib-line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.ib-proof-strip > div { align-items: center; border-right: 1px solid var(--ib-line); display: flex; gap: 14px; padding: 20px 24px; }
.ib-proof-strip > div:last-child { border-right: 0; }
.ib-proof-icon { color: var(--ib-accent); flex: 0 0 auto; font-size: 22px; line-height: 1; }
.ib-proof-strip span:last-child { color: var(--ib-muted); display: flex; flex-direction: column; font-size: 12px; gap: 4px; }
.ib-proof-strip strong { color: var(--ib-text); font-size: 13px; font-weight: 650; }

.ib-home-section { padding-block: 72px 76px; }
.ib-section-title-v2 { align-items: flex-end; border-bottom: 2px solid var(--ib-ink); display: flex; justify-content: space-between; padding-bottom: 20px; }
.ib-section-title-v2 h2 { font: 500 30px/1.2 Georgia, "Noto Serif KR", serif !important; margin: 7px 0 0; }
.ib-section-title-v2 a { color: var(--ib-text); font-size: 12px; text-decoration: none; }

.ib-story-grid { display: grid; gap: 26px; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 28px; }
.ib-story-card { min-width: 0; }
.ib-story-thumb { align-items: flex-end; background: #345d55; color: #fff; display: flex; height: 210px; justify-content: space-between; margin-bottom: 20px; overflow: hidden; padding: 20px; position: relative; }
.ib-story-card:nth-child(2) .ib-story-thumb { background: #35475c; }
.ib-story-card:nth-child(3) .ib-story-thumb { background: #a45a39; }
.ib-story-thumb.has-image { background-position: center; background-size: cover; }
.ib-story-thumb.has-image::after { background: linear-gradient(180deg, transparent, rgba(0,0,0,.55)); content: ""; inset: 0; position: absolute; }
.ib-story-thumb span { font-size: 12px; letter-spacing: 0.14em; position: relative; z-index: 1; }
.ib-story-thumb b { font: 500 58px/1 Georgia, serif; opacity: 0.75; position: relative; z-index: 1; }
.ib-story-card h3 { font: 500 21px/1.38 Georgia, "Noto Serif KR", serif; margin: 10px 0; }
.ib-story-card h3 a { color: inherit; text-decoration: none; }
.ib-story-card > p { color: var(--ib-muted); font-size: 13px; line-height: 1.65; margin: 0 0 18px; }
.ib-home-empty { border: 1px dashed var(--ib-line); color: var(--ib-muted); grid-column: 1 / -1; padding: 48px; text-align: center; }

.ib-topic-rails { display: grid; gap: 64px; grid-template-columns: 1fr 1fr; padding-bottom: 80px; }
.ib-topic-column { border-top: 3px solid var(--ib-ink); }
.ib-topic-row { border-bottom: 1px solid var(--ib-line); display: grid; gap: 10px; grid-template-columns: 40px 1fr; padding: 22px 0; text-decoration: none; }
.ib-topic-row > span { color: var(--ib-accent); font: 500 19px/1 Georgia, serif; }
.ib-topic-row div { display: flex; flex-direction: column; gap: 7px; }
.ib-topic-row strong { color: var(--ib-text); font-size: 15px; font-weight: 600; }
.ib-topic-row small { color: var(--ib-muted); font-size: 11px; }

.ib-site-footer {
  background: var(--ib-footer-bg) !important;
  border-top: 0;
  color: #e4eee8 !important;
  padding-block: 60px 24px;
}
.ib-site-footer a { color: #bdcec6 !important; }
.ib-site-footer .wp-block-site-title a { color: #fff !important; font: 500 28px/1 Georgia, serif; }
.ib-footer-top { border: 0; display: block; margin: 0; padding: 0; }
.ib-footer-logo .wp-block-site-title { font-size: 28px !important; }
.ib-footer-logo .wp-block-site-title::after { color: #93aaa0; content: "이슈를 깨고, 이유를 보다"; display: block; font: 600 10px/1 Pretendard, sans-serif; letter-spacing: 0.16em; margin-top: 9px; }
.ib-footer-logo .ib-footer-note { color: #afc3b9; font-size: 13px; line-height: 1.7; margin-top: 22px; max-width: 390px; }
.ib-footer-logo .ib-footer-publisher { margin-top: 22px; }
.ib-footer-grid { gap: 60px; grid-template-columns: 2.2fr 1fr 1fr 1fr; }
.ib-footer-column h3 { border: 0; color: #fff; font-size: 13px !important; font-weight: 650; margin-bottom: 5px; padding: 0; }
.ib-footer-column a, .ib-footer-categories a { font-size: 13px; }
.ib-footer-publisher { color: #fff; font-size: 13px; }
.ib-footer-meta { color: #afc3b9; font-size: 12px; }
.ib-footer-bottom { border-top-color: rgba(255, 255, 255, 0.14); color: #93aaa0; font-size: 11px; margin-top: 48px; padding-top: 20px; }
.ib-footer-bottom .ib-footer-note { color: #93aaa0; font-size: 11px; }

/* Existing archive, page and article templates share the editorial system. */
.ib-page-shell, .ib-section {
  margin-inline: auto;
  padding-block: 54px 80px;
  width: min(1180px, calc(100% - 64px));
}
.ib-page-title, .ib-section-heading, .ib-single-title { color: var(--ib-strong); font-family: Georgia, "Noto Serif KR", serif; font-weight: 500 !important; }
.ib-query-card { border-radius: 0; box-shadow: none; }
.ib-query-card__body { padding: 22px; }
.ib-single-hero { background: var(--ib-paper); }
.ib-article { max-width: 760px; }

@media (max-width: 1050px) {
  .ib-shell { width: min(900px, calc(100% - 40px)); }
  .ib-home-hero { grid-template-columns: 1fr; }
  .ib-rank-panel { display: none; }
  .ib-lead-card { min-height: 390px; }
}

@media (max-width: 782px) {
  .admin-bar .ib-site-header { top: auto; }
  .ib-shell { width: calc(100% - 32px); }
  .ib-page-shell, .ib-section { width: calc(100% - 32px); }
  .ib-utility__links { display: none; }
  .ib-utility__inner { justify-content: center; }
  .ib-header-row { height: 82px; }
  .ib-brand .wp-block-site-title { font-size: 28px !important; }
  .ib-search-form { flex: 0 0 42px; width: 42px; }
  .ib-search-form__icon { left: 50%; transform: translate(-50%, -50%); }
  .ib-search-form input[type="search"] { caret-color: transparent; padding: 0; }
  .ib-search-form input[type="search"]::placeholder { opacity: 0; }
  .ib-search-form button { display: none; }
  .ib-search-form:focus-within {
    flex-basis: auto;
    position: absolute;
    right: 48px;
    width: min(240px, calc(100vw - 96px));
    z-index: 5;
  }
  .ib-search-form:focus-within .ib-search-form__icon { left: 12px; transform: translateY(-50%); }
  .ib-search-form:focus-within input[type="search"] { caret-color: auto; padding: 0 58px 0 38px; }
  .ib-search-form:focus-within input[type="search"]::placeholder { opacity: 1; }
  .ib-search-form:focus-within button { display: block; }
  .ib-theme-toggle { width: 42px; }
  .ib-category-band { overflow: hidden; }
  .ib-dynamic-nav__desktop { display: flex; gap: 22px; }
  .ib-mobile-nav { display: none; }
  .ib-home-hero { padding-block: 28px 36px; }
  .ib-lead-card { grid-template-columns: 1fr; }
  .ib-lead-visual { min-height: 260px; }
  .ib-lead-copy { padding: 28px; }
  .ib-lead-copy h1 { font-size: 34px; }
  .ib-proof-strip { grid-template-columns: 1fr; }
  .ib-proof-strip > div { border-bottom: 1px solid var(--ib-line); border-right: 0; }
  .ib-proof-strip > div:last-child { border-bottom: 0; }
  .ib-story-grid { grid-template-columns: 1fr; }
  .ib-topic-rails { gap: 42px; grid-template-columns: 1fr; }
  .ib-footer-grid { gap: 36px; grid-template-columns: 1fr 1fr; }
  .ib-footer-info { grid-column: 1 / -1; }
}

@media (max-width: 430px) {
  .ib-brand .wp-block-site-title { font-size: 25px !important; }
  .ib-brand .wp-block-site-title::after { font-size: 8px; letter-spacing: 0.11em; }
  .ib-header-actions { gap: 6px; }
  .ib-lead-copy h1 { font-size: 30px; }
  .ib-footer-grid { grid-template-columns: 1fr; }
  .ib-footer-info { grid-column: auto; }
}
