/*
 * 2000년대 후반 공공기관 전자민원 본인확인 화면을 모티프로 한 주제.
 * 인증 흐름과 다국어 처리에는 손대지 않고 배치와 시각 체계만 바꾼다.
 */

:root {
  color-scheme: light;
  --bg0: #e9e9e9;
  --bg1: #e9e9e9;
  --bg2: #e9e9e9;
  --panel: #fff;
  --panel2: #fafafa;
  --stroke: #c9c9c9;
  --stroke2: #aaa;
  --text: #333;
  --muted: #666;
  --muted2: #888;
  --blue: #0b6f9f;
  --blue2: #07577f;
  --violet: #337c9d;
  --cyan: #2d8c72;
  --good: #267759;
  --bad: #bd2931;
  --warn: #9a6b12;
  --shadow: none;
  --r: 0;
  --r2: 0;
  --mono: "돋움", Dotum, "굴림", Gulim, monospace;
}

html {
  background: #e9e9e9;
  scroll-behavior: auto;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .3) 0 1px, transparent 1px 4px),
    #e9e9e9;
  color: #444;
  font-family: "돋움", Dotum, "굴림", Gulim, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.5;
  -webkit-font-smoothing: auto;
  text-rendering: auto;
}

body::before,
body::after {
  display: none;
}

button,
input,
select {
  color-scheme: light;
  font-family: inherit;
}

* {
  scrollbar-color: #a8b5bb #f1f1f1;
  scrollbar-width: thin;
}

::selection {
  background: #cce6f2;
  color: #222;
}

a {
  color: #17688f;
}

a:hover {
  text-underline-offset: 2px;
}

.wrap {
  width: min(960px, 100%);
  margin: 0 auto 30px;
  border-right: 1px solid #d0d0d0;
  border-left: 1px solid #d0d0d0;
  background: #fff;
}

.legacy-banner {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 3px 20px;
  border-top: 1px solid #d8cf9a;
  border-bottom: 1px solid #d8cf9a;
  background: #fffce6;
  color: #6f6234;
  font-size: 11px;
}

.legacy-banner span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legacy-banner i {
  width: 5px;
  height: 5px;
  display: inline-block;
  background: #e7902c;
  transform: rotate(45deg);
}

.legacy-utility {
  min-height: 27px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 14px;
  color: #777;
  font-size: 11px;
}

.legacy-utility span,
.legacy-utility a {
  position: relative;
  padding: 0 8px;
  color: #777;
  text-decoration: none;
}

.legacy-utility span + span::before,
.legacy-utility a::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  width: 1px;
  height: 9px;
  background: #ccc;
}

.nav {
  min-height: 66px;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 0 18px;
  background: #fff;
  box-shadow: none;
  backdrop-filter: none;
}

.brand {
  gap: 9px;
}

.logo {
  width: 45px;
  height: 45px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.brandtext {
  color: #155f82;
  font-family: "굴림", Gulim, sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -1.2px;
}

.brandtext span {
  margin-top: 4px;
  color: #777;
  font-family: Arial, sans-serif;
  font-size: 8px;
  font-weight: 400;
  letter-spacing: .08em;
}

.langbar {
  gap: 0;
  max-width: 530px;
}

.langbtn {
  min-height: 21px;
  position: relative;
  border: 0;
  border-radius: 0;
  padding: 2px 8px;
  background: transparent;
  color: #777;
  font-size: 10px;
  font-weight: 400;
  backdrop-filter: none;
}

.langbtn + .langbtn::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  width: 1px;
  height: 9px;
  background: #ccc;
}

.langbtn:hover {
  background: transparent;
  color: #17688f;
  text-decoration: underline;
}

.langbtn.active {
  border: 0;
  background: transparent;
  color: #075f88;
  box-shadow: none;
  font-weight: 700;
  text-decoration: underline;
}

.legacy-primary {
  height: 37px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #0c608c;
  border-bottom: 1px solid #075478;
  padding: 0 20px;
  background: linear-gradient(#1381b2 0%, #0873a4 52%, #086792 53%, #075f88 100%);
}

.legacy-primary span {
  min-height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(255, 255, 255, .17);
  border-left: 1px solid rgba(0, 48, 78, .2);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-shadow: 0 1px rgba(0, 42, 68, .45);
}

.legacy-primary span:first-child {
  border-left: 0;
}

.legacy-primary span:last-child {
  border-right: 0;
}

.legacy-primary span.active {
  background: linear-gradient(#08638f, #064f76);
}

.shell {
  grid-template-columns: 338px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  padding: 10px 19px 20px;
  background: #fff;
}

.hero {
  min-height: 0;
  border: 1px solid #bfcbd0;
  border-radius: 0;
  padding: 0 14px 14px;
  background: #f9fbfc;
  color: #444;
  box-shadow: none;
}

.hero::before {
  display: none;
}

.hero > * {
  position: relative;
}

.eyebrow {
  min-height: 32px;
  display: flex;
  align-items: center;
  margin: 0 -14px 15px;
  border: 0;
  border-bottom: 1px solid #0b5d84;
  border-radius: 0;
  padding: 0 10px;
  background: linear-gradient(#1684b7, #076892);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-shadow: 0 1px #064263;
}

.orb {
  width: 6px;
  height: 6px;
  border-radius: 0;
  background: #ffd36b;
  box-shadow: none;
  transform: rotate(45deg);
}

h1 {
  margin: 0;
  color: #285d76;
  font-family: "굴림", Gulim, sans-serif;
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -1.5px;
}

.sub {
  margin-top: 9px;
  color: #666;
  font-size: 11px;
  line-height: 1.65;
}

.status-board {
  grid-template-columns: 1fr;
  gap: 3px;
  margin-top: 14px;
}

.metric {
  min-height: 33px;
  display: grid;
  grid-template-columns: 66px 1fr;
  align-items: center;
  border: 1px solid #d1d1d1;
  border-radius: 0;
  padding: 5px 7px;
  background: #fff;
}

.metric b {
  color: #17688f;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 9px;
  letter-spacing: .04em;
}

.metric span {
  margin: 0;
  color: #444;
  font-size: 11px;
}

.guide {
  margin-top: 10px;
  border: 1px solid #d2d2d2;
  border-radius: 0;
  padding: 10px;
  background: #fff;
}

.guide-title {
  border-bottom: 1px solid #bbb;
  padding-bottom: 6px;
  color: #333;
  font-size: 11px;
}

.guide ol {
  gap: 0;
  margin-top: 4px;
}

.guide li {
  align-items: flex-start;
  border-top: 1px dotted #ccc;
  padding: 7px 0;
  color: #666;
  font-size: 10px;
}

.guide li:first-child {
  border-top: 0;
}

.num {
  width: 21px;
  height: 18px;
  border: 1px solid #87aabb;
  border-radius: 0;
  background: #edf5f8;
  color: #285d76;
  font-size: 9px;
}

.legal-mini {
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  margin-top: 11px;
  border-top: 1px solid #d0d0d0;
  padding-top: 9px;
  color: #888;
  font-size: 9px;
  line-height: 1.6;
}

.legal-mini a {
  color: #17688f;
}

.card {
  border: 1px solid #bfcbd0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  backdrop-filter: none;
}

.hd {
  min-height: 55px;
  border-top: 3px solid #17688f;
  border-bottom: 1px solid #bfcbd0;
  padding: 10px 13px;
  background: linear-gradient(#fbfcfd, #eaf1f4);
}

.title {
  color: #285d76;
  font-size: 14px;
  font-weight: 700;
}

.desc {
  margin-top: 3px;
  color: #777;
  font-size: 10px;
}

.bd {
  padding: 10px;
}

.grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.box {
  border: 1px solid #d0d0d0;
  border-radius: 0;
  padding: 10px;
  background: #fafafa;
}

.box::after {
  display: none;
}

.box h3 {
  margin: 0 0 6px;
  border-bottom: 1px dotted #bbb;
  padding-bottom: 5px;
  color: #333;
  font-size: 12px;
}

.small {
  min-height: 33px;
  color: #777;
  font-size: 10px;
  line-height: 1.55;
}

.line {
  min-height: 28px;
  margin-top: 8px;
  border: 1px solid #d1d1d1;
  padding: 5px 6px;
  background: #fff;
  color: #555;
  font-size: 10px;
}

.row {
  gap: 5px;
  margin-top: 8px;
}

.btn {
  min-height: 30px;
  border: 1px solid #07567f;
  border-radius: 0;
  padding: 6px 10px;
  background: linear-gradient(#1684b7, #076892);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-shadow: 0 1px #064263;
  transition: none;
}

.btn:hover {
  border-color: #064b6d;
  background: linear-gradient(#0874a3, #055a82);
  color: #fff;
  transform: none;
}

.btn.secondary {
  border-color: #aaa;
  background: linear-gradient(#fff, #e5e5e5);
  color: #444;
  text-shadow: none;
}

.btn.secondary:hover {
  border-color: #777;
  background: linear-gradient(#f8f8f8, #dcdcdc);
}

.btn.good {
  border-color: #277158;
  background: linear-gradient(#4c987b, #2d765d);
  color: #fff;
}

.btn.good:hover {
  border-color: #1f5e49;
  background: linear-gradient(#428a70, #26684f);
}

.badge {
  border: 1px solid #bca46d;
  border-radius: 0;
  padding: 4px 7px;
  background: #fff9e6;
  font-size: 9px;
}

.badge::before {
  width: 5px;
  height: 5px;
  border-radius: 0;
  box-shadow: none;
  transform: rotate(45deg);
}

.ok {
  border-color: #87ad9b;
  background: #eff8f3;
  color: #267759;
}

.err {
  border-color: #d7a2a6;
  background: #fff1f1;
  color: #ad252c;
}

.warn {
  border-color: #cbb77f;
  background: #fff9e6;
  color: #856019;
}

.rules {
  grid-column: 1 / -1;
  margin-top: 0;
}

.rules ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
  margin-top: 4px;
  color: #666;
  font-size: 10px;
}

.rules li {
  border-top: 1px dotted #ccc;
  padding: 6px 4px 6px 22px;
}

.rules li:first-child,
.rules li:nth-child(2) {
  border-top: 0;
}

.rules li::before {
  top: 6px;
  width: 13px;
  height: 13px;
  border: 1px solid #86a89a;
  border-radius: 0;
  background: #eef7f2;
}

.rules li::after {
  top: 10px;
  left: 4px;
  width: 5px;
  height: 2px;
  border-color: #267759;
}

.msg {
  border: 1px solid #c5c5c5;
  border-radius: 0;
  padding: 8px 9px;
  background: #f8f8f8;
  color: #555;
  font-size: 10px;
}

.msg.ok {
  border-color: #8eb4a2;
  background: #eff8f3;
  color: #276c53;
}

.msg.err {
  border-color: #d4a0a4;
  background: #fff1f1;
  color: #a9252c;
}

.msg.warn {
  border-color: #cbb77f;
  background: #fff9e6;
  color: #80601c;
}

.legacy-footer {
  min-height: 82px;
  display: grid;
  grid-template-columns: 55px 1fr auto;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #aaa;
  padding: 14px 20px;
  background: #f4f4f4;
  color: #888;
  font-size: 9px;
}

.legacy-footer img {
  width: 45px;
  height: 45px;
  filter: grayscale(1);
  opacity: .7;
}

.legacy-footer strong,
.legacy-footer span {
  display: block;
}

.legacy-footer strong {
  margin-bottom: 4px;
  color: #666;
  font-size: 10px;
}

.langbtn:focus-visible,
.btn:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid #e89a2f;
  outline-offset: 1px;
}

@media (max-width: 760px) {
  .wrap {
    margin-bottom: 0;
  }

  .legacy-banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    padding: 5px 10px;
  }

  .legacy-banner span:last-child,
  .legacy-utility {
    display: none;
  }

  .nav {
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
  }

  .langbar {
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .langbtn {
    width: auto;
    min-width: max-content;
    padding: 2px 8px;
  }

  .legacy-primary {
    grid-template-columns: repeat(4, minmax(92px, 1fr));
    overflow-x: auto;
    padding: 0;
  }

  .shell {
    grid-template-columns: 1fr;
    padding: 8px;
  }

  .hero {
    padding-bottom: 12px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .rules {
    grid-column: auto;
  }

  .rules ul {
    grid-template-columns: 1fr;
  }

  .rules li:nth-child(2) {
    border-top: 1px dotted #ccc;
  }

  .legacy-footer {
    grid-template-columns: 42px 1fr;
    padding: 12px;
  }

  .legacy-footer > span {
    display: none;
  }
}

@media (max-width: 430px) {
  .logo {
    width: 39px;
    height: 39px;
  }

  .brandtext {
    font-size: 15px;
  }

  .brandtext span {
    font-size: 7px;
  }

  h1 {
    font-size: 20px;
  }

  .hd {
    align-items: flex-start;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .legacy-footer img {
    width: 38px;
    height: 38px;
  }
}

/* Keep typography aligned with the compact portal reference. */
* {
  letter-spacing: 0 !important;
}
