/*
Theme Name: BullMarket Journal
Description: 불마켓 콘텐츠를 위한 가벼운 전용 블로그 테마
Version: 1.0.0
*/

:root {
  --ink: #18201d;
  --muted: #6d746f;
  --line: #dedfd9;
  --paper: #f7f6f1;
  --white: #fff;
  --accent: #c7392f;
  --dark: #151b19;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif; line-height: 1.75; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.site-shell { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }
.masthead { padding: 22px 0; background: var(--white); border-bottom: 1px solid var(--line); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { color: var(--ink); font-family: Georgia, serif; font-size: 31px; font-weight: 900; letter-spacing: -.04em; }
.brand i { color: var(--accent); font-style: normal; }
.tagline { color: var(--muted); font-size: 13px; letter-spacing: .08em; }

.hero { overflow: hidden; aspect-ratio: 24 / 5; background: #050403; }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

.layout { display: grid; grid-template-columns: 210px minmax(0, 760px); justify-content: center; gap: 54px; padding: 48px 0 80px; }
.sidebar { position: sticky; top: 24px; align-self: start; }
.sidebar-search { display: grid; grid-template-columns: 1fr 50px; margin: 0 0 26px; border: 1px solid #cfd3cf; background: #fff; }
.sidebar-search input { min-width: 0; padding: 11px 12px; border: 0; outline: 0; color: var(--ink); background: transparent; font: inherit; font-size: 13px; }
.sidebar-search input:focus { box-shadow: inset 0 0 0 2px var(--accent); }
.sidebar-search button { padding: 0; border: 0; color: #fff; background: var(--dark); font-size: 12px; font-weight: 800; cursor: pointer; }
.sidebar-search button:hover { background: var(--accent); }
.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; }
.sidebar-title { margin: 0 0 18px; color: var(--muted); font-size: 12px; font-weight: 900; letter-spacing: .18em; }
.side-menu { display: grid; border-top: 2px solid var(--dark); }
.side-menu a { color: var(--ink); padding: 15px 4px; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 800; }
.side-menu a:hover, .side-menu a.active { color: var(--accent); }

.content { min-width: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 24px; padding-bottom: 14px; border-bottom: 2px solid var(--dark); }
.section-head h2 { margin: 0; font-family: Georgia, "Noto Serif KR", serif; font-size: 30px; letter-spacing: -.035em; }
.section-head span { color: var(--muted); font-size: 13px; }
.post-card { padding: 0 0 32px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.post-card .thumb { overflow: hidden; margin: 20px 0; aspect-ratio: 16/8.5; background: #e8e6df; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .thumb img { transform: scale(1.015); }
.meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.meta .category { color: var(--accent); }
.post-card h2, .article h1 { margin: 0; font-family: Georgia, "Noto Serif KR", serif; line-height: 1.28; letter-spacing: -.04em; }
.post-card h2 { font-size: clamp(25px, 4vw, 36px); }
.excerpt { margin: 12px 0 0; color: #555d58; }
.read-more { display: inline-block; margin-top: 14px; color: var(--accent); font-weight: 900; font-size: 13px; }
.archive-list { margin-top: 34px; padding-top: 24px; border-top: 2px solid var(--dark); }
.archive-list h3 { margin: 0 0 12px; font-family: Georgia, "Noto Serif KR", serif; font-size: 23px; }
.archive-row { display: grid; grid-template-columns: 92px 90px 1fr; gap: 12px; align-items: center; padding: 15px 4px; border-bottom: 1px solid var(--line); }
.archive-row time, .row-category { color: var(--muted); font-size: 12px; }
.row-category { color: var(--accent); font-weight: 800; }
.archive-row strong { line-height: 1.45; }
.archive-row:hover strong { color: var(--accent); }
.category-head p { margin: 0 0 4px; color: var(--accent); font-size: 11px; font-weight: 900; letter-spacing: .16em; }
.category-intro { margin: -6px 0 22px; color: #555d58; font-size: 15px; line-height: 1.75; }
.category-intro p { margin: 0; }
.sector-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 24px; padding: 13px 0 17px; border-bottom: 1px solid var(--line); }
.sector-tabs > span { margin-right: 5px; color: var(--muted); font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.sector-tabs a { padding: 7px 12px; border: 1px solid #d5d8d3; border-radius: 999px; color: #515954; background: #fff; font-size: 13px; font-weight: 800; line-height: 1; }
.sector-tabs a:hover, .sector-tabs a.active { color: #fff; border-color: var(--accent); background: var(--accent); }
.category-card { display: grid; grid-template-columns: 230px 1fr; gap: 26px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.category-thumb { overflow: hidden; align-self: start; aspect-ratio: 16/10; background: #e8e6df; }
.category-thumb img { width: 100%; height: 100%; object-fit: cover; }
.category-copy h2 { margin: 0; font-family: Georgia, "Noto Serif KR", serif; font-size: 26px; line-height: 1.35; letter-spacing: -.035em; }
.category-copy p { margin: 10px 0 0; color: #555d58; font-size: 14px; line-height: 1.7; }

.article h1 { font-size: clamp(34px, 5vw, 52px); }
.article-breadcrumb { display: flex; align-items: center; gap: 7px; margin: 0 0 15px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.article-breadcrumb a { color: var(--accent); font-weight: 800; }
.article-breadcrumb span[aria-current="page"] { overflow: hidden; max-width: 44ch; text-overflow: ellipsis; white-space: nowrap; }
.sector-overview { margin: 0 0 28px; padding: 21px 23px; border-left: 4px solid var(--accent); background: #fff; }
.sector-overview p { margin: 0; color: #4f5752; }
.sector-companies { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -12px 0 24px; color: var(--muted); font-size: 12px; }
.sector-companies strong { margin-right: 4px; color: var(--ink); }
.sector-companies span { padding: 5px 9px; border: 1px solid #d9dcd7; border-radius: 999px; background: #fff; }
.sector-related { margin-top: 44px; padding-top: 25px; border-top: 2px solid var(--dark); }
.sector-related h3 { margin: 0 0 10px; font-family: Georgia, "Noto Serif KR", serif; font-size: 22px; }
.sector-related a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 700; line-height: 1.5; }
.sector-related a:hover { color: var(--accent); }
.article-cover { margin: 28px 0 34px; }
.article-body { font-family: "Noto Serif KR", Georgia, serif; font-size: 18px; line-height: 1.95; }
.article-body h2, .article-body h3 { margin-top: 2.2em; line-height: 1.4; }
.article-body blockquote { margin: 28px 0; padding: 8px 0 8px 22px; border-left: 4px solid var(--accent); color: #4d554f; font-size: 20px; }
.article-body a { color: var(--accent); text-decoration: underline; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line); }
.article-tags a { display: inline-block; padding: 7px 11px; border: 1px solid #d7dbd8; border-radius: 3px; color: #555d58; background: #f7f8f7; font-size: 12px; font-weight: 700; line-height: 1; }
.article-tags a:hover { color: #fff; border-color: var(--accent); background: var(--accent); }
.post-list { margin-top: 56px; padding-top: 28px; border-top: 2px solid var(--dark); }
.post-list h3 { margin: 0 0 18px; font-size: 22px; }
.post-list-item { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.post-list-item time { color: var(--muted); font-size: 12px; }
.post-list-item strong { line-height: 1.45; }
.list-pagination { margin-top: 26px; }
.list-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin: 0; padding: 0; list-style: none; }
.list-pagination a, .list-pagination span { display: grid; min-width: 36px; height: 36px; padding: 0 10px; place-items: center; border: 1px solid var(--line); color: #59605c; background: #fff; font-size: 13px; font-weight: 800; }
.list-pagination .current { color: #fff; border-color: var(--dark); background: var(--dark); }
.empty { padding: 60px 0; color: var(--muted); text-align: center; }
.site-footer { padding: 34px 0; color: #aeb5b0; background: var(--dark); font-size: 12px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }

@media (max-width: 820px) {
  .tagline { display: none; }
  .layout { grid-template-columns: 1fr; gap: 30px; padding-top: 26px; }
  .sidebar { position: static; }
  .sidebar-search { width: min(100%, 420px); margin: 0 auto 18px; }
  .sidebar-title { display: none; }
  .side-menu { grid-template-columns: repeat(3, 1fr); border-top-width: 1px; border-bottom: 1px solid var(--line); }
  .side-menu a { text-align: center; border-bottom: 0; border-right: 1px solid var(--line); font-size: 14px; }
  .side-menu a:last-child { border-right: 0; }
  .sector-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 13px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
  .sector-tabs > span, .sector-tabs a { flex: 0 0 auto; }
}

@media (max-width: 520px) {
  .site-shell { width: min(100% - 28px, 1240px); }
  .masthead { padding: 16px 0; }
  .brand { font-size: 27px; }
  .post-list-item { grid-template-columns: 82px 1fr; }
  .archive-row { grid-template-columns: 72px 1fr; }
  .archive-row .row-category { display: none; }
  .category-card { grid-template-columns: 1fr; gap: 16px; }
  .category-copy h2 { font-size: 23px; }
  .footer-inner { display: block; }
}

/* Editorial trust and review information */
.article-byline{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;margin:0 0 28px;padding:13px 0;border-top:1px solid #d9d6cf;border-bottom:1px solid #d9d6cf;color:#5b625f;font-size:14px;line-height:1.6}
.article-byline strong{color:#18211f;font-weight:700}
.article-byline span+span:before{content:"·";margin-right:14px;color:#aaa59c}
.article-byline a{margin-left:auto;color:#b6372e;text-decoration:none;font-weight:700}
.article-byline a:hover{text-decoration:underline}
@media(max-width:720px){.article-byline{gap:4px 10px;font-size:13px}.article-byline span+span:before{margin-right:10px}.article-byline a{width:100%;margin-left:0;margin-top:3px}}
.bm-industry-map{margin:42px 0;padding:28px;background:#132726;color:#fff;border-radius:4px}
.bm-industry-map h2{margin-top:0;color:#fff}
.bm-map-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.bm-map-grid span{display:block;min-width:0;padding:14px 8px;background:#22413e;color:#dff7f0;text-align:center;font-size:14px;font-weight:700;overflow-wrap:anywhere}
@media(max-width:720px){.bm-industry-map{padding:20px 16px}.bm-map-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bm-map-grid span{font-size:13px}}
