:root {
    --ink: #18211d;
    --muted: #66716b;
    --line: #d8e0db;
    --paper: #f2f5f1;
    --white: #fff;
    --accent: #146b52;
    --accent-dark: #0d4d3b;
    --accent-hot: #ba503a;
}

body { background: var(--paper); color: var(--ink); }
.site-header { position: relative; border-bottom: 1px solid #c7d2cb; }
.site-header::before { display: block; height: 4px; background: var(--accent-hot); content: ""; }
.header-inner { min-height: 82px; gap: 30px; }
.brand { font-size: 32px; }
.brand span { color: var(--accent-hot); }
.main-nav { align-self: stretch; gap: 22px; }
.main-nav a { display: inline-flex; align-items: center; border-bottom: 2px solid transparent; color: #45514a; font-weight: 650; }
.main-nav a:hover { border-bottom-color: var(--accent); color: var(--accent); }
.header-search input { border-color: #cbd5ce; background: #f8faf8; }
.header-search button { border-color: var(--accent); background: var(--accent); }
.header-search button:hover { border-color: var(--accent-dark); background: var(--accent-dark); }
.account-nav form { margin: 0; }
.account-nav .small-button { border-color: transparent; background: transparent; color: var(--muted); }
.account-nav .small-button:hover { color: var(--accent); }
.site-main { padding-top: 48px; }
.eyebrow { color: var(--accent-hot); font-size: 11px; }
.page-title { max-width: 850px; font-size: 46px; }
.lead { margin-top: 13px; }
.category-bar { gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.category-pill { padding: 12px 15px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #66716b; }
.category-pill.active,.category-pill:hover { border-bottom-color: var(--accent-hot); color: var(--ink); }
.news-layout { grid-template-columns: minmax(0,1.4fr) minmax(330px,.9fr); gap: 44px; }
.selected-list { display: grid; gap: 18px; }
.selected-secondary-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 16px; }
.selected-secondary-grid .story-item { grid-template-columns: minmax(0,1fr); align-content: start; gap: 12px; min-width: 0; padding: 14px; border: 1px solid var(--line); background: #fff; }
.selected-secondary-grid .story-item.has-image { grid-template-columns: minmax(0,1fr); }
.selected-secondary-grid .story-thumb { width: 100%; aspect-ratio: 16/9; }
.selected-secondary-grid .story-item h3 { font-size: 17px; }
.featured-story { position: relative; min-height: 405px; padding: 38px; border-left: 5px solid var(--accent-hot); background: #18241e; }
.featured-story.has-image { grid-template-columns: minmax(0,1.15fr) minmax(220px,.85fr); align-content: center; gap: 0 24px; }
.featured-story-image { grid-column: 2; grid-row: 1 / span 5; width: 100%; height: 100%; min-height: 260px; max-height: 340px; object-fit: cover; }
.featured-story.has-image > :not(.featured-story-image) { grid-column: 1; }
.featured-story h2 { max-width: 680px; font-size: 44px; }
.featured-story p { font-size: 16px; }
.featured-story .featured-excerpt { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.featured-story .story-meta { font-size: 12px; }
.section-title { padding-bottom: 12px; border-bottom: 1px solid var(--ink); font-size: 25px; }
.story-list { margin-top: 3px; }
.story-item { padding: 18px 12px; border-bottom-color: #d6ded8; }
.story-item.has-image { grid-template-columns: 112px minmax(0,1fr) auto; align-items: center; gap: 14px; }
.story-thumb { display: block; width: 112px; aspect-ratio: 4/3; object-fit: cover; background: #dfe7e1; }
.story-item:hover { background: #e9efea; }
.story-item h3 { font-size: 18px; }
.story-item p { color: #53615a; }
.story-item .story-excerpt { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.story-item .story-meta { font-size: 11px; }
.list-main .story-item.has-image { grid-template-columns: minmax(0,1fr); gap: 13px; }
.list-main .story-thumb { width: 100%; max-height: 380px; aspect-ratio: 16/9; object-fit: cover; }
.list-main .story-item > div { min-width: 0; }
.news-sidebar { display: grid; align-content: start; gap: 34px; }
.sidebar-section { min-width: 0; padding-top: 14px; border-top: 1px solid var(--line); }
.sidebar-heading .eyebrow { margin-bottom: 5px; }
.sidebar-heading h2 { margin: 0 0 10px; font: 600 25px/1.2 Newsreader,Pretendard,serif; }
.sidebar-stories { display: grid; }
.sidebar-story { display: grid; gap: 6px; padding: 14px 2px; border-bottom: 1px solid var(--line); text-decoration: none; }
.sidebar-story:hover strong { color: var(--accent); }
.sidebar-story strong { font-size: 15px; line-height: 1.45; }
.sidebar-story .story-meta { font-size: 11px; }
.sidebar-stories-popular .sidebar-story { grid-template-columns: 34px minmax(0,1fr); align-items: start; gap: 11px; }
.sidebar-rank { color: var(--accent-hot); font: 600 24px/1 Newsreader,Georgia,serif; }
.sidebar-story-copy { display: grid; gap: 6px; min-width: 0; }
.sidebar-empty { margin: 0; padding: 12px 0; color: var(--muted); font-size: 13px; }
.list-page-heading { margin-bottom: 26px; }
.list-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 4px; }
.list-heading-row .section-title { flex: 1; }
.pagination { display: flex; justify-content: center; gap: 6px; margin: 28px 0; }
.page-number { display: grid; place-items: center; min-width: 36px; height: 36px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-size: 13px; }
.page-number.active,.page-number:hover { border-color: var(--accent); background: var(--accent); color: #fff; }
.category-pill,.button,button { border-radius: 3px; }
.article { max-width: 860px; }
.view-layout { align-items: start; }
.article > .eyebrow { padding-top: 16px; border-top: 3px solid var(--accent-hot); }
.article h1 { margin: 12px 0 16px; font-size: 48px; }
.article-subtitle { max-width: 740px; font-size: 21px; }
.article-content { margin-top: 38px; font-size: 18px; line-height: 1.95; }
.article-content h2,.article-content h3,.article-content h4 { color: #263b31; }
.article-content blockquote { border-left-color: var(--accent-hot); background: #e9efea; }
.article-actions { padding-top: 18px; border-top: 1px solid var(--line); }
.comment-section { border-top: 2px solid var(--ink); }
.form-shell { border-color: #d2dbd4; box-shadow: 0 12px 32px #1a33250b; }
.form-shell h1 { font-size: 34px; }
.field input,.field textarea,.field select { border-color: #c7d2cb; border-radius: 3px; }
.field input:focus,.field textarea:focus,.field select:focus { border-color: var(--accent); outline: 2px solid #146b5218; }
.manage-list { border-top: 2px solid var(--ink); }
.manage-list th { background: #e8eee9; color: #3f4c44; }
.manage-list td small { color: var(--muted); }
.site-footer { border-top-color: #c7d2cb; background: #e9efea; }
.notice { border-left: 3px solid var(--accent); }
.notice.error { border-left-color: var(--accent-hot); }

.board-editor-form .editor-field > input,
.board-editor-form .editor-field > select,
.board-editor-form .editor-field > textarea { border-color: #c7d2cb; border-radius: 3px; }
.board-editor-form .editor-field > input:focus,
.board-editor-form .editor-field > select:focus,
.board-editor-form .editor-field > textarea:focus { border-color: var(--accent); outline: 2px solid #146b5218; }
.editor-panel { border-color: #cbd5ce; border-radius: 4px; }
.editor-panel .editor { min-height: 460px; font-size: 17px; }
.editor-tools.editor-tools-floating { border-color: #aebdb3; border-radius: 8px; box-shadow: 0 8px 24px #1a33251c; }
.editor-tools-floating .editor-tool-button:hover,.editor-tools-floating .editor-tool-button:focus-visible { border-color: #a8c3b5; background: #edf4ef; color: var(--accent); }

@media (max-width: 850px) {
    .news-layout { grid-template-columns: 1fr; gap: 32px; }
    .featured-story { min-height: 330px; }
    .news-sidebar { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
}
@media (max-width: 560px) {
    .site-main { padding-top: 30px; }
    .page-title { font-size: 34px; }
    .featured-story { min-height: 280px; padding: 24px; }
    .featured-story h2 { font-size: 32px; }
    .featured-story.has-image { grid-template-columns: 1fr; gap: 18px; }
    .featured-story-image { grid-column: 1; grid-row: auto; width: 100%; height: auto; min-height: 0; max-height: 220px; aspect-ratio: 16/10; }
    .featured-story.has-image > :not(.featured-story-image) { grid-column: 1; }
    .story-item.has-image { grid-template-columns: 82px minmax(0,1fr); gap: 10px; }
    .story-item.has-image > .story-meta { grid-column: 2; }
    .story-thumb { width: 82px; }
    .list-main .story-item.has-image { grid-template-columns: minmax(0,1fr); }
    .list-main .story-thumb { width: 100%; max-height: 240px; }
    .selected-secondary-grid { grid-template-columns: 1fr; }
    .selected-secondary-grid .story-item.has-image { grid-template-columns: minmax(0,1fr); }
    .selected-secondary-grid .story-thumb { width: 100%; aspect-ratio: 16/9; }
    .news-sidebar { grid-template-columns: 1fr; gap: 28px; }
    .article h1 { font-size: 36px; }
    .article-subtitle { font-size: 18px; }
    .article-content { font-size: 16px; }
    .editor-panel .editor { min-height: 340px; padding: 17px; font-size: 16px; }
}