/* ==========================================================================
   국가사이버안전국 — retro portal stylesheet (table era, 1024x768)
   ========================================================================== */

:root {
  --navy: #0a3d6b;
  --navy-dark: #062a4a;
  --navy-line: #6f8fae;
  --red: #c8102e;
  --red-dark: #9c0c23;
  --page-bg: #b9c9d9;
  --paper: #ffffff;
  --head: #e3ecf6;
  --head2: #d7e4f1;
  --ink: #111111;
  --muted: #5b6570;
  --rule: #b9c4d0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 12px 0 26px;
  background: var(--page-bg);
  color: var(--ink);
  font-family: "Gulim", "굴림", "Dotum", "돋움", "Malgun Gothic", Verdana, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.55;
}

a {
  color: #0b3d6b;
  text-decoration: none;
}

a:hover {
  color: var(--red);
  text-decoration: underline;
}

img {
  display: block;
  border: 0;
}

p {
  margin: 0 0 8px;
}

p:last-child {
  margin-bottom: 0;
}

/* ---------- page frame ----------------------------------------------- */

.page {
  width: 960px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid #5c6f81;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.18);
}

/* ---------- utility strip -------------------------------------------- */

.util {
  width: 100%;
  border-collapse: collapse;
  background: #f2f5f8;
  border-bottom: 1px solid var(--rule);
}

.util td {
  padding: 3px 8px;
  font-size: 10px;
  color: #46505a;
  vertical-align: middle;
}

.util .right {
  text-align: right;
  white-space: nowrap;
}

.util a {
  color: #34506c;
}

.util .sep {
  color: #a9b6c3;
  padding: 0 5px;
}

/* ---------- masthead -------------------------------------------------- */

.masthead {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.masthead td {
  vertical-align: middle;
  padding: 10px 12px;
}

.masthead .emblem-cell {
  width: 88px;
  text-align: center;
}

.masthead .emblem-cell img {
  width: 62px;
  margin: 0 auto;
}

.masthead .title-cell {
  text-align: center;
}

.masthead .flag-cell {
  width: 96px;
  text-align: center;
}

.masthead .flag-cell img {
  width: 78px;
  margin: 0 auto;
  border: 1px solid #8d99a6;
}

.mast-h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: 1px;
  color: #06294a;
  font-weight: bold;
}

.mast-h1 a {
  color: inherit;
}

.mast-en {
  margin-top: 3px;
  font-size: 10px;
  letter-spacing: 1.4px;
  color: #3c5a78;
  font-family: Verdana, Arial, sans-serif;
}

.mast-motto {
  margin-top: 6px;
  font-size: 11px;
  color: var(--red);
}

.mast-motto span {
  color: #66727e;
}

/* ---------- navigation ------------------------------------------------ */

.nav {
  width: 100%;
  border-collapse: collapse;
  background: var(--navy);
  border-top: 2px solid #062a4a;
  border-bottom: 2px solid #062a4a;
}

.nav td {
  padding: 0;
  text-align: center;
  border-left: 1px solid #4a719a;
  border-right: 1px solid #062a4a;
  white-space: nowrap;
}

.nav td:first-child {
  border-left: 0;
}

.nav td:last-child {
  border-right: 0;
}

.nav a {
  display: block;
  padding: 7px 4px;
  color: #ffffff;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.4px;
}

.nav a:hover {
  background: #15588f;
  color: #ffffff;
  text-decoration: none;
}

.nav td.on {
  background: var(--red);
}

.nav td.on a:hover {
  background: var(--red-dark);
}

/* ---------- layout ---------------------------------------------------- */

.body-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.body-table > tbody > tr > td {
  vertical-align: top;
}

.side {
  width: 178px;
  padding: 10px 8px 14px;
  border-right: 1px solid var(--rule);
  background: #fbfcfd;
}

.main {
  padding: 12px 14px 18px;
}

/* ---------- side boxes ------------------------------------------------ */

.sbox {
  border: 1px solid #8fa3b6;
  margin-bottom: 10px;
  background: #ffffff;
}

.sbox-h {
  background: var(--navy);
  color: #ffffff;
  font-size: 11px;
  font-weight: bold;
  padding: 4px 7px;
  letter-spacing: 0.5px;
}

.sbox-h .en {
  display: block;
  font-size: 8px;
  font-weight: normal;
  letter-spacing: 0.8px;
  color: #b9cde0;
}

.sbox ul {
  margin: 0;
  padding: 5px 7px 6px;
  list-style: none;
}

.sbox li {
  padding: 3px 0 3px 9px;
  border-bottom: 1px dotted #d2dbe4;
  font-size: 11px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='5'%3E%3Crect width='3' height='3' fill='%230a3d6b'/%3E%3C/svg%3E")
    no-repeat left 8px;
}

.sbox li:last-child {
  border-bottom: 0;
}

.counter {
  border: 1px solid #8fa3b6;
  background: #ffffff;
  padding: 8px 7px;
  text-align: center;
  margin-bottom: 10px;
}

.counter .lbl {
  font-size: 9px;
  color: #5b6570;
  letter-spacing: 0.4px;
}

.counter .digits {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin-top: 4px;
}

.counter .digits span {
  background: #10241a;
  color: #6ef08a;
  border: 1px solid #43584b;
  font-family: "Courier New", monospace;
  font-size: 13px;
  font-weight: bold;
  padding: 1px 4px;
}

/* ---------- content boxes --------------------------------------------- */

.box {
  border: 1px solid #8fa3b6;
  margin-bottom: 12px;
  background: #ffffff;
}

.box-h {
  background: var(--head);
  border-bottom: 1px solid #8fa3b6;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: bold;
  color: #06294a;
}

.box-h:before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--red);
  margin-right: 6px;
}

.box-h .en {
  font-size: 9px;
  font-weight: normal;
  color: #5b6b7b;
  letter-spacing: 0.6px;
  margin-left: 6px;
  font-family: Verdana, Arial, sans-serif;
}

.box-h .more {
  float: right;
  font-size: 10px;
  font-weight: normal;
  color: #3c5a78;
}

.box-b {
  padding: 9px 10px 10px;
}

.box-b.tight {
  padding: 0;
}

.notice {
  border: 1px solid var(--red);
}

.notice .box-h {
  background: #fbe9ec;
  border-bottom: 1px solid var(--red);
  color: var(--red-dark);
}

.notice .title {
  font-weight: bold;
  font-size: 12px;
  margin-bottom: 5px;
  color: #1a1a1a;
}

.notice .date {
  text-align: right;
  font-size: 10px;
  color: #6a737c;
  border-top: 1px dotted #d8b8bd;
  padding-top: 4px;
  margin-top: 6px;
}

/* ---------- marquee --------------------------------------------------- */

.ticker {
  border: 1px solid #8fa3b6;
  background: #f7fbff;
  display: flex;
  align-items: stretch;
  margin-bottom: 12px;
  overflow: hidden;
}

.ticker .tag {
  background: var(--navy);
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  padding: 4px 8px;
  flex: 0 0 auto;
  letter-spacing: 0.6px;
}

.ticker .track {
  white-space: nowrap;
  padding: 3px 0;
  font-size: 11px;
  color: #1b3c5b;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  animation: slide 34s linear infinite;
}

.ticker:hover .track {
  animation-play-state: paused;
}

.ticker .track span {
  padding: 0 26px;
}

.ticker .track span:before {
  content: "◆";
  font-size: 7px;
  color: var(--red);
  margin-right: 7px;
  vertical-align: 1px;
}

@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker .track {
    animation: none;
  }
}

/* ---------- intro ----------------------------------------------------- */

.intro-table {
  width: 100%;
  border-collapse: collapse;
}

.intro-table td {
  vertical-align: top;
}

.intro-table .pic {
  width: 214px;
  padding-right: 10px;
}

.intro-table .pic img {
  width: 204px;
  border: 1px solid #7f8d9a;
  padding: 1px;
  background: #fff;
}

.intro-table .cap {
  font-size: 9px;
  color: #6a737c;
  text-align: center;
  margin-top: 3px;
}

.intro-table .txt {
  font-size: 12px;
  color: #22282e;
  text-align: justify;
}

.intro-table .txt strong {
  color: var(--navy);
}

/* ---------- generic tables ------------------------------------------- */

table.grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

table.grid th {
  background: var(--head2);
  border: 1px solid #9fb0c0;
  padding: 4px 6px;
  font-weight: bold;
  color: #0b3357;
  text-align: center;
}

table.grid td {
  border: 1px solid #c5d0da;
  padding: 4px 6px;
  vertical-align: top;
}

table.grid tr:nth-child(even) td {
  background: #fbfcfe;
}

table.grid td.center {
  text-align: center;
}

table.grid td.date {
  white-space: nowrap;
  color: #4d5964;
  font-size: 10px;
}

table.figures {
  width: 100%;
  border-collapse: collapse;
}

table.figures th {
  background: var(--navy);
  color: #fff;
  font-size: 10px;
  font-weight: normal;
  padding: 3px 4px;
  border: 1px solid #4a719a;
  letter-spacing: 0.4px;
}

table.figures td {
  border: 1px solid #c5d0da;
  padding: 6px 4px;
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  color: #0b3357;
  background: #f7fbff;
}

/* ---------- lists ----------------------------------------------------- */

ul.dot {
  margin: 0;
  padding: 0;
  list-style: none;
}

ul.dot li {
  padding: 4px 0 4px 10px;
  border-bottom: 1px dotted #d2dbe4;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='5'%3E%3Crect width='3' height='3' fill='%23c8102e'/%3E%3C/svg%3E")
    no-repeat left 9px;
}

ul.dot li:last-child {
  border-bottom: 0;
}

ul.dot .date {
  color: #6a737c;
  font-size: 10px;
  margin-right: 6px;
  font-family: Verdana, Arial, sans-serif;
}

.new {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 8px;
  font-family: Verdana, Arial, sans-serif;
  padding: 0 3px;
  margin-left: 4px;
  vertical-align: 1px;
  animation: blink 1.6s steps(1, end) infinite;
}

@keyframes blink {
  60% {
    opacity: 0.15;
  }
}

@media (prefers-reduced-motion: reduce) {
  .new {
    animation: none;
  }
}

/* ---------- article blocks ------------------------------------------- */

.article {
  border-top: 1px solid #cdd7e1;
  padding: 8px 0;
}

.article:first-child {
  border-top: 0;
}

.article .no {
  display: inline-block;
  background: #eef3f8;
  border: 1px solid #b7c4d1;
  color: #0b3357;
  font-size: 10px;
  padding: 0 5px;
  margin-right: 6px;
}

.article .t {
  font-weight: bold;
  font-size: 12px;
  color: #06294a;
}

.article p {
  margin-top: 4px;
  font-size: 11.5px;
  color: #2b3238;
  text-align: justify;
}

/* ---------- person / unit -------------------------------------------- */

.person {
  width: 100%;
  border-collapse: collapse;
}

.person td {
  vertical-align: top;
}

.person .pic {
  width: 208px;
  padding-right: 10px;
}

.person .pic img {
  width: 196px;
  border: 1px solid #7f8d9a;
  padding: 1px;
}

.person .who {
  font-size: 14px;
  font-weight: bold;
  color: #06294a;
}

.person .role {
  font-size: 10px;
  color: #5b6570;
  border-bottom: 1px dotted #c5d0da;
  padding-bottom: 5px;
  margin-bottom: 6px;
}

.person p {
  font-size: 11.5px;
  text-align: justify;
}

.stamp {
  display: inline-block;
  margin-top: 7px;
  border: 2px solid var(--red);
  color: var(--red);
  font-size: 10px;
  font-weight: bold;
  padding: 2px 7px;
  letter-spacing: 1px;
  transform: rotate(-2deg);
}

/* ---------- forms ----------------------------------------------------- */

table.form {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

table.form th {
  background: var(--head);
  border: 1px solid #b7c4d1;
  width: 128px;
  text-align: left;
  padding: 6px 8px;
  font-weight: bold;
  color: #0b3357;
}

table.form td {
  border: 1px solid #b7c4d1;
  padding: 5px 8px;
}

table.form input[type="text"],
table.form textarea,
table.form select {
  width: 100%;
  border: 1px solid #8fa3b6;
  background: #fff;
  padding: 3px 4px;
  font-family: inherit;
  font-size: 11px;
  border-radius: 0;
}

table.form textarea {
  height: 96px;
  resize: vertical;
}

.btn {
  border: 1px solid #5d7d9d;
  background: #e8f0f8;
  color: #0b3357;
  font-family: inherit;
  font-size: 11px;
  font-weight: bold;
  padding: 4px 14px;
  cursor: pointer;
}

.btn:hover {
  background: #d5e4f2;
}

.btn-main {
  background: var(--navy);
  border-color: #062a4a;
  color: #fff;
}

.btn-main:hover {
  background: #15588f;
}

.status {
  margin-top: 8px;
  border: 1px solid #6a9a76;
  background: #eef7f0;
  color: #1c5a2c;
  padding: 6px 8px;
  font-size: 11px;
}

/* ---------- page heading --------------------------------------------- */

.path {
  font-size: 10px;
  color: #5b6570;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 5px;
  margin-bottom: 9px;
}

.path a {
  color: #34506c;
}

.path b {
  color: #06294a;
}

.page-title {
  margin: 0 0 8px;
  font-size: 17px;
  color: #06294a;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 6px;
  letter-spacing: 0.4px;
}

.page-title span {
  font-size: 10px;
  color: #6a737c;
  font-weight: normal;
  letter-spacing: 1px;
  margin-left: 7px;
  font-family: Verdana, Arial, sans-serif;
}

.lede {
  font-size: 11.5px;
  color: #2b3238;
  margin-bottom: 10px;
  text-align: justify;
}

/* ---------- tag chips ------------------------------------------------- */

.chip {
  display: inline-block;
  border: 1px solid #8fa3b6;
  background: #eef3f8;
  color: #0b3357;
  font-size: 9px;
  padding: 0 4px;
  font-family: Verdana, Arial, sans-serif;
}

.chip.urgent {
  border-color: var(--red);
  background: #fbe9ec;
  color: var(--red-dark);
}

.chip.exercise {
  border-color: #7a8f3c;
  background: #f1f5e2;
  color: #4d5f14;
}

/* ---------- footer ---------------------------------------------------- */

.footer {
  border-top: 2px solid var(--navy);
  background: #f2f5f8;
  padding: 10px 12px 12px;
  text-align: center;
  font-size: 10px;
  color: #4d5964;
  line-height: 1.7;
}

.footer .fl {
  color: #24313d;
}

.footer .motto {
  color: var(--red);
  font-size: 10.5px;
  margin-bottom: 3px;
}

.footer .mail {
  font-family: Verdana, Arial, sans-serif;
}

.footer .res {
  color: #6a737c;
  font-size: 9px;
}

.statusbar {
  width: 960px;
  margin: 4px auto 0;
  border: 1px solid #7d8b98;
  background: #e9edf1;
  color: #333d47;
  font-size: 10px;
  padding: 2px 7px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.statusbar .zone {
  color: #5b6570;
}

/* ---------- responsive fallback (the site says 1024x768 anyway) ------- */

@media (max-width: 1000px) {
  body {
    padding-top: 0;
  }
  .page,
  .statusbar {
    width: auto;
    margin-inline: 8px;
  }
  .body-table,
  .body-table > tbody,
  .body-table > tbody > tr,
  .body-table > tbody > tr > td {
    display: block;
    width: auto;
  }
  .side {
    width: auto;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }
  .mast-h1 {
    font-size: 21px;
  }
  .masthead .emblem-cell,
  .masthead .flag-cell {
    width: 62px;
  }
  .masthead .emblem-cell img {
    width: 44px;
  }
  .masthead .flag-cell img {
    width: 50px;
  }
  .nav,
  .nav tbody,
  .nav tr {
    display: block;
  }
  .nav tr {
    display: flex;
    flex-wrap: wrap;
  }
  .nav td {
    flex: 1 1 33%;
    border-bottom: 1px solid #4a719a;
  }
  .intro-table,
  .intro-table tbody,
  .intro-table tr,
  .intro-table td,
  .person,
  .person tbody,
  .person tr,
  .person td {
    display: block;
    width: auto !important;
  }
  .intro-table .pic,
  .person .pic {
    padding: 0 0 8px;
  }
  .intro-table .pic img,
  .person .pic img {
    width: 100%;
    max-width: 260px;
  }
}

@media print {
  body {
    background: #fff;
  }
  .page {
    box-shadow: none;
    width: auto;
  }
  .side,
  .nav,
  .ticker,
  .statusbar {
    display: none;
  }
}
