:root {
  --bg: #eef2f7;
  --paper: #ffffff;
  --ink: #111827;
  --muted: #697386;
  --line: #d8e0eb;
  --blue: #174ea6;
  --blue-dark: #0f2f67;
  --teal: #10a37f;
  --orange: #ff6a2a;
  --red: #e5484d;
  --yellow: #f59e0b;
  --shadow: 0 16px 34px rgba(15, 47, 103, .09);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Arial, "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 14px;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.container { width: min(1140px, calc(100% - 32px)); margin: 0 auto; }

.utility-bar {
  color: #dbeafe;
  background: #0b1833;
  font-size: 12px;
}
.utility-inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}
.utility-inner a { color: #fff; font-weight: 900; }

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(17, 24, 39, .06);
}
.topbar {
  min-height: 92px;
  display: grid;
  grid-template-columns: 260px minmax(280px, 1fr) auto;
  align-items: center;
  gap: 22px;
}
.brand img { display: block; width: 250px; height: auto; }
.header-search {
  display: grid;
  grid-template-columns: 1fr 82px;
  height: 44px;
  border: 2px solid var(--blue);
  background: #fff;
}
.header-search input {
  min-width: 0;
  border: 0;
  padding: 0 14px;
  outline: none;
}
.header-search button {
  border: 0;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
  cursor: pointer;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
  font-weight: 900;
}
.main-nav a {
  padding: 34px 0 31px;
  border-bottom: 4px solid transparent;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--orange);
  border-color: var(--orange);
}

.hero-stage {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(15, 47, 103, .95), rgba(23, 78, 166, .9)),
    repeating-linear-gradient(135deg, rgba(255,255,255,.1) 0 1px, transparent 1px 18px);
}
.hero-grid {
  min-height: 380px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 38px;
  padding: 44px 0;
}
.eyebrow,
.section-head span,
.board-hero span,
.submit-page p,
.guide-hero p {
  display: block;
  color: #8ff4d5;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
}
.hero-copy h1 {
  max-width: 720px;
  margin: 12px 0 14px;
  font-size: 44px;
  line-height: 1.15;
  letter-spacing: 0;
}
.hero-copy p {
  max-width: 650px;
  margin: 0;
  color: #dce8ff;
  font-size: 17px;
  font-weight: 700;
}
.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 26px;
}
.hero-actions a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: #fff;
  background: var(--orange);
  font-weight: 900;
}
.hero-actions a + a {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.3);
}
.status-board {
  display: grid;
  gap: 12px;
}
.status-board div {
  padding: 18px 20px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
}
.status-board span {
  display: block;
  color: #dbeafe;
  font-weight: 900;
}
.status-board strong {
  display: block;
  margin-top: 6px;
  font-size: 36px;
  line-height: 1;
}

.quick-panels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: -34px;
  position: relative;
  z-index: 2;
}
.quick-card {
  min-height: 128px;
  display: block;
  padding: 20px;
  color: #fff;
  box-shadow: var(--shadow);
}
.quick-card span {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 8px;
  background: rgba(255,255,255,.18);
  font-size: 12px;
  font-weight: 900;
}
.quick-card strong {
  display: block;
  font-size: 17px;
  line-height: 1.35;
}
.quick-card.verified { background: linear-gradient(135deg, #0e8a6e, #10a37f); }
.quick-card.check { background: linear-gradient(135deg, #174ea6, #2563eb); }
.quick-card.danger { background: linear-gradient(135deg, #a91d2a, #e5484d); }
.quick-card.report { background: linear-gradient(135deg, #b8480c, #ff6a2a); }

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 22px;
  padding: 24px 0 56px;
}
.main-column,
.side-column {
  min-width: 0;
  display: grid;
  gap: 18px;
  align-content: start;
}
.section-card,
.board-hero,
.list-shell,
.view-card,
.submit-page,
.guide-hero,
.article-card {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.section-head {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.section-head h2 {
  margin: 4px 0 0;
  color: var(--blue-dark);
  font-size: 22px;
}
.section-head.compact h2 { margin: 0; font-size: 18px; }
.section-head a {
  color: var(--blue);
  font-weight: 900;
}
.report-feed {
  padding: 8px 18px 18px;
}
.feed-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 54px;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  border-bottom: 1px solid #edf2f8;
}
.feed-row:last-child { border-bottom: 0; }
.feed-row strong {
  display: block;
  font-size: 16px;
}
.feed-row p {
  margin: 4px 0 0;
  color: var(--muted);
}
.feed-row time {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-align: right;
}
.risk {
  display: inline-grid;
  place-items: center;
  min-width: 58px;
  min-height: 26px;
  padding: 0 8px;
  color: #fff;
  background: #667085;
  font-size: 12px;
  font-weight: 900;
}
.risk.safe { background: var(--teal); }
.risk.watch { background: var(--yellow); }
.risk.danger { background: var(--red); }

.split-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.mini-row,
.black-mini {
  display: block;
  padding: 14px 18px;
  border-bottom: 1px solid #edf2f8;
}
.mini-row:last-child,
.black-mini:last-child { border-bottom: 0; }
.mini-row b,
.black-mini strong {
  display: block;
  color: var(--blue-dark);
}
.mini-row span,
.black-mini span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.hotline-card {
  padding: 22px;
  color: #fff;
  background: linear-gradient(135deg, #121b33, #174ea6);
}
.hotline-card h2 { margin: 8px 0; font-size: 24px; }
.hotline-card p { color: #dbeafe; }
.hotline-card a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  margin-top: 10px;
  background: var(--orange);
  font-weight: 900;
}

.board-layout {
  padding: 24px 0 56px;
}
.board-hero,
.guide-hero {
  padding: 30px;
  background:
    linear-gradient(90deg, rgba(23,78,166,.1), transparent 55%),
    #fff;
}
.board-hero h1,
.guide-hero h1,
.submit-page h1 {
  margin: 8px 0 8px;
  color: var(--blue-dark);
  font-size: 32px;
}
.board-hero p,
.guide-hero span,
.submit-page span {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}
.category-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 0;
}
.category-strip a {
  flex: 0 0 auto;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 900;
}
.category-strip a.active {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}
.list-shell {
  overflow: hidden;
}
.list-head {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}
.list-head span { color: var(--muted); }
.card-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
}
.report-card {
  min-height: 172px;
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: #f8fbff;
  border: 1px solid var(--line);
}
.report-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.report-card time {
  color: var(--blue);
  font-weight: 900;
}
.report-card h2 {
  margin: 18px 0 10px;
  color: var(--blue-dark);
  font-size: 19px;
  line-height: 1.35;
}
.report-card p {
  margin: auto 0 0;
  color: var(--muted);
}

.view-card {
  margin: 24px auto 56px;
  max-width: 940px;
}
.view-head {
  padding: 30px;
  border-bottom: 1px solid var(--line);
}
.view-head h1 {
  margin: 14px 0 10px;
  color: var(--blue-dark);
  font-size: 32px;
}
.view-head p { margin: 0; color: var(--muted); }
.view-body {
  min-height: 240px;
  padding: 32px 30px;
  color: #344054;
  font-size: 16px;
  word-break: keep-all;
}
.actions {
  display: flex;
  gap: 8px;
  padding: 0 30px 30px;
}
.actions a,
.submit-page button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 0;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
}

.risk-list {
  display: grid;
  gap: 12px;
  padding: 18px;
}
.risk-row {
  display: grid;
  grid-template-columns: 80px 170px minmax(0, 1fr) 70px;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #f8fbff;
  border: 1px solid var(--line);
}
.risk-row p { margin: 0; color: var(--muted); }
.risk-row time { color: var(--blue); font-weight: 900; text-align: right; }

.submit-page {
  max-width: 980px;
  margin: 24px auto 56px;
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 28px;
  padding: 30px;
}
.submit-page form {
  display: grid;
  gap: 12px;
}
.submit-page label {
  display: grid;
  gap: 6px;
  color: #344054;
  font-weight: 900;
}
.submit-page input,
.submit-page select,
.submit-page textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #f8fbff;
  padding: 11px 12px;
}
.article-card {
  margin: 16px auto 0;
  max-width: 980px;
  padding: 24px 28px;
}
.article-card h2 {
  margin: 0 0 10px;
  color: var(--blue-dark);
}
.article-card p {
  margin: 0;
  color: #344054;
}

.site-footer {
  padding: 30px 0;
  color: var(--muted);
  text-align: center;
  background: #fff;
  border-top: 1px solid var(--line);
}
.site-footer p { margin: 0; }

@media (max-width: 1020px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 0;
  }
  .main-nav {
    width: 100%;
    overflow-x: auto;
  }
  .main-nav a { padding: 8px 0 12px; }
  .hero-grid,
  .dashboard-grid,
  .submit-page {
    grid-template-columns: 1fr;
  }
  .quick-panels,
  .card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .container { width: min(100% - 20px, 1140px); }
  .utility-inner {
    justify-content: flex-start;
    overflow-x: auto;
  }
  .brand img { width: 225px; }
  .header-search { grid-template-columns: 1fr 68px; }
  .hero-grid { min-height: 0; padding: 34px 0 54px; }
  .hero-copy h1 { font-size: 30px; }
  .quick-panels,
  .split-sections,
  .card-list {
    grid-template-columns: 1fr;
  }
  .feed-row {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 14px 0;
  }
  .feed-row time { text-align: left; }
  .risk-row {
    grid-template-columns: 1fr;
  }
  .risk-row time { text-align: left; }
}

/* Board list refresh */
.board-hero-updated {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}

.board-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(88px, 1fr));
  gap: 10px;
}

.board-hero-stats div {
  min-height: 74px;
  display: grid;
  place-items: center;
  padding: 10px 14px;
  border: 1px solid rgba(23, 78, 166, .16);
  background: rgba(23, 78, 166, .06);
}

.board-hero-stats strong {
  color: var(--blue-dark);
  font-size: 22px;
  line-height: 1;
}

.board-hero-stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.category-strip-updated a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.category-strip-updated em {
  min-width: 22px;
  min-height: 22px;
  display: inline-grid;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--blue);
  font-size: 12px;
  font-style: normal;
}

.category-strip-updated a.active em {
  background: rgba(255, 255, 255, .18);
  color: #fff;
}

.board-list-shell {
  border: 1px solid var(--line);
  background: #fff;
}

.board-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .62fr);
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.board-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.board-summary strong {
  color: var(--blue-dark);
  font-size: 18px;
}

.board-summary span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: #f8fbff;
  font-size: 12px;
  font-weight: 900;
}

.board-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px auto;
  gap: 8px;
}

.board-search input {
  min-width: 0;
  height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line);
  background: #f8fbff;
  color: var(--blue-dark);
  font-weight: 800;
}

.board-search button,
.board-search a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 0;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.board-search a {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue-dark);
}

.board-card-list {
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
}

.board-report-card {
  min-height: 0;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 118px;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.board-report-card:last-child {
  border-bottom: 0;
}

.board-report-card:hover {
  position: relative;
  z-index: 1;
  background: #f6f9ff;
  box-shadow: 0 14px 32px rgba(23, 78, 166, .09);
  transform: translateY(-1px);
}

.report-index {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.report-index strong {
  color: var(--blue);
  font-size: 18px;
}

.report-main {
  min-width: 0;
}

.board-report-card .report-card-top {
  justify-content: flex-start;
  gap: 7px;
}

.category-badge,
.status-badge {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: #edf4ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.status-badge {
  background: #fff6e8;
  color: #b35a00;
}

.board-report-card h2 {
  margin: 10px 0 7px;
  color: var(--blue-dark);
  font-size: 20px;
  line-height: 1.35;
}

.report-excerpt {
  margin: 0;
  color: #5f6f86;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.report-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.report-stats span {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: #f8fbff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.report-stats strong {
  color: var(--blue-dark);
  font-size: 15px;
}

.empty-board {
  padding: 48px 18px;
  text-align: center;
  color: var(--muted);
}

.empty-board strong {
  display: block;
  margin-bottom: 6px;
  color: var(--blue-dark);
  font-size: 20px;
}

.empty-board p {
  margin: 0;
}

@media (max-width: 1020px) {
  .board-hero-updated,
  .board-toolbar {
    grid-template-columns: 1fr;
  }

  .board-hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .board-hero-updated {
    padding: 22px;
  }

  .board-hero-stats,
  .board-search {
    grid-template-columns: 1fr;
  }

  .board-report-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .report-index,
  .report-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
