/* ==========================================================================
       KRDS GOV OFFICIAL DESIGN SYSTEM - GUIDE POSTS
       Base: Pretendard GOV, 16.5px, #1e2124 on #ffffff & #f4f5f6
       ========================================================================== */
    :root {
      --bg-white: #ffffff;
      --bg-gray: #f4f5f6;
      --bg-topbar: #eef2f7;
      --text-main: #1e2124;
      --text-sub: #464c53;
      --text-muted: #6d7882;
      --mofa-navy: #002e6d;
      --mofa-blue: #003675;
      --mofa-accent: #1967d2;
      --mofa-red: #8b1d24;
      --mofa-badge-bg: #e8f0fe;
      --mofa-badge-text: #1967d2;
      --border-light: #e5e8eb;
      --border-dark: #1e2124;
      --radius-card: 10px;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
      font-family: "Pretendard GOV", "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Segoe UI", "Noto Sans KR", sans-serif;
      font-size: 16.5px;
      line-height: 1.8;
      color: var(--text-main);
      background-color: #f8fafc;
      -webkit-font-smoothing: antialiased;
    }
    a { color: inherit; text-decoration: none; }
    .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

    /* 1. Top Official Style Notice Bar */
    .gov-topbar {
      background-color: var(--bg-topbar);
      border-bottom: 1px solid #dce3ec;
      font-size: 13px;
      color: #333d4b;
      padding: 7px 0;
    }
    .gov-topbar-inner {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 8px;
    }
    .gov-topbar-left { font-weight: 600; display: flex; align-items: center; gap: 8px; }
    .gov-topbar-right { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--text-sub); }
    .gov-topbar-right a:hover { color: var(--mofa-accent); text-decoration: underline; }

    /* 2. Main Header */
    .mofa-header {
      background-color: var(--bg-white);
      border-bottom: 1px solid var(--border-light);
    }
    .mofa-header-top {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 16px 0;
      flex-wrap: wrap;
      gap: 14px;
    }
    .mofa-brand {
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .mofa-emblem {
      width: 40px;
      height: 40px;
      flex-shrink: 0;
    }
    .mofa-brand-text h1 {
      font-size: 20px;
      font-weight: 800;
      color: var(--mofa-navy);
      letter-spacing: -0.02em;
      line-height: 1.25;
    }
    .mofa-brand-text p {
      font-size: 12.5px;
      color: var(--text-sub);
      font-weight: 500;
    }
    .back-home-btn {
      font-size: 13px;
      font-weight: 700;
      color: var(--mofa-accent);
      background: var(--mofa-badge-bg);
      padding: 6px 14px;
      border-radius: 6px;
      border: 1px solid #cce0ff;
      transition: all 0.15s;
    }
    .back-home-btn:hover {
      background: var(--mofa-accent);
      color: #ffffff;
    }

    /* GNB Bar */
    .mofa-gnb {
      border-top: 1px solid var(--border-light);
      background: var(--bg-white);
    }
    .mofa-gnb-list {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      list-style: none;
    }
    .mofa-gnb-item a {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 6px;
      padding: 12px 8px;
      font-size: 14.5px;
      font-weight: 700;
      color: var(--text-main);
      border-right: 1px solid var(--border-light);
      transition: background 0.15s;
      text-align: center;
    }
    .mofa-gnb-item:first-child a { border-left: 1px solid var(--border-light); }
    .mofa-gnb-item a:hover { background: var(--bg-gray); color: var(--mofa-accent); }

    /* Main Article Layout */
    .article-wrap {
      max-width: 900px;
      margin: 32px auto 50px;
      padding: 0 20px;
    }
    .post-container {
      background: var(--bg-white);
      border: 1px solid var(--border-light);
      border-radius: var(--radius-card);
      padding: 42px 48px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    }
    @media (max-width: 768px) {
      .post-container { padding: 24px 20px; }
      .mofa-gnb-list { grid-template-columns: repeat(2, 1fr); }
      .gov-topbar-right { display: none; }
    }

    /* Meta Badges */
    .post-badge {
      display: inline-block;
      background: var(--mofa-badge-bg);
      color: var(--mofa-badge-text);
      font-size: 12px;
      font-weight: 800;
      padding: 3px 10px;
      border-radius: 4px;
      margin-bottom: 12px;
      letter-spacing: 0.5px;
      border: 1px solid #cce0ff;
    }
    .post-title {
      font-size: 28px;
      font-weight: 800;
      color: var(--mofa-navy);
      line-height: 1.35;
      margin-bottom: 14px;
      letter-spacing: -0.02em;
    }
    .post-meta {
      display: flex;
      gap: 16px;
      font-size: 13px;
      color: var(--text-muted);
      border-bottom: 1px solid var(--border-light);
      padding-bottom: 16px;
      margin-bottom: 24px;
      font-weight: 500;
    }

    /* Summary Box */
    .summary-box {
      background: #eef4fc;
      border: 1px solid #cce0ff;
      border-left: 5px solid var(--mofa-accent);
      border-radius: 8px;
      padding: 20px 22px;
      margin-bottom: 34px;
      font-size: 15.5px;
      line-height: 1.75;
      color: #1e293b;
    }
    .summary-title {
      font-size: 15px;
      font-weight: 800;
      color: var(--mofa-navy);
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    /* Article Content Headings */
    article h2 {
      font-size: 21px;
      font-weight: 800;
      color: var(--mofa-navy);
      border-left: 5px solid var(--mofa-accent);
      padding-left: 12px;
      margin-top: 40px;
      margin-bottom: 14px;
      line-height: 1.4;
    }
    article h3 {
      font-size: 18px;
      font-weight: 700;
      color: var(--text-main);
      margin-top: 26px;
      margin-bottom: 10px;
    }
    article p {
      font-size: 16px;
      line-height: 1.85;
      color: #24292f;
      margin-bottom: 20px;
      word-break: keep-all;
    }

    /* Data Tables in KRDS */
    .info-table {
      width: 100%;
      border-collapse: collapse;
      margin: 22px 0 28px;
      font-size: 14.5px;
      background: var(--bg-white);
      border: 1px solid #d0d7de;
      border-radius: 6px;
      overflow: hidden;
      box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    }
    .info-table th {
      background: var(--mofa-navy);
      color: #ffffff;
      padding: 12px 14px;
      text-align: left;
      font-weight: 700;
      font-size: 14px;
      border: 1px solid #002e6d;
    }
    .info-table td {
      padding: 11px 14px;
      border: 1px solid #e1e4e8;
      color: #24292f;
      line-height: 1.6;
    }
    .info-table tr:nth-child(even) { background-color: #f8fafc; }
    .info-table tr:hover { background-color: #f1f5f9; }

    /* Sources Box */
    .sources-box {
      background: var(--bg-gray);
      border: 1px solid var(--border-light);
      border-radius: 8px;
      padding: 16px 20px;
      margin-top: 40px;
      font-size: 13.5px;
      color: var(--text-sub);
      line-height: 1.65;
    }
    .sources-title { font-weight: 800; color: var(--text-main); margin-bottom: 4px; }

    /* Related Guides */
    .related-box {
      background: #ffffff;
      border: 1px solid var(--border-light);
      border-radius: 8px;
      padding: 22px 24px;
      margin-top: 28px;
    }
    .related-title {
      font-size: 16px;
      font-weight: 800;
      color: var(--mofa-navy);
      margin-bottom: 12px;
      border-bottom: 2px solid var(--border-light);
      padding-bottom: 6px;
    }
    .related-links { display: flex; flex-direction: column; gap: 10px; }
    .related-links a {
      font-size: 14.5px;
      color: var(--mofa-accent);
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 6px;
      transition: all 0.15s;
    }
    .related-links a:hover {
      text-decoration: underline;
      color: var(--mofa-navy);
    }
    .related-links a::before {
      content: "•";
      color: var(--mofa-accent);
      font-size: 18px;
    }

    /* Footer */
    footer {
      background: #1e2124;
      color: #d0d7de;
      padding: 36px 0 28px;
      font-size: 13px;
      line-height: 1.7;
      margin-top: 60px;
    }
    .footer-inner {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 20px;
    }
    .footer-links { display: flex; gap: 14px; margin-bottom: 8px; }
    .footer-links a { color: #f1f5f9; text-decoration: none; font-weight: 600; }
    .footer-links a:hover { text-decoration: underline; }