:root {
  --navy: #153a62;
  --navy-dark: #0d2948;
  --blue: #246aa5;
  --teal: #168579;
  --ink: #192633;
  --muted: #65717c;
  --line: #d8dee4;
  --line-dark: #bcc7d0;
  --soft: #f3f6f8;
  --soft-blue: #edf4f9;
  --white: #fff;
  --site: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif; font-size: 15px; font-weight: 400; line-height: 1.55; word-break: keep-all; }
a { color: inherit; text-decoration: none; font-weight: 400; }
a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
button, input { font: inherit; font-weight: 400; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-weight: 700; }
h2, h3 { font-weight: 500; }
ul, ol { margin-top: 0; }
.site-header, .sidebar, .site-footer { display: block; }
.site-width { width: min(calc(100% - 32px), var(--site)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; left: 10px; top: -60px; padding: 9px 14px; color: #fff; background: var(--navy); }
.skip-link:focus { top: 8px; }
.utility-bar { height: 26px; color: #5f6b76; background: #f6f7f8; border-bottom: 1px solid #e7eaed; font-size: 11px; }
.utility-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.utility-inner nav { display: flex; gap: 18px; }
.brand-row { height: 66px; display: grid; grid-template-columns: 230px minmax(0, 560px); align-items: center; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 10px; width: max-content; }
.brand:hover { text-decoration: none; color: inherit; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; color: #fff; background: var(--navy); border-radius: 2px; font-size: 19px; font-weight: 700; }
.brand strong { display: block; color: var(--navy-dark); font-size: 22px; font-weight: 700; letter-spacing: -.6px; line-height: 1.05; }
.brand small { display: block; margin-top: 4px; color: #71808e; font-size: 9px; letter-spacing: 1.1px; }
.site-search { position: relative; display: flex; height: 38px; border: 2px solid var(--navy); background: #fff; }
.site-search input { min-width: 0; flex: 1; padding: 0 13px; border: 0; outline: 0; color: var(--ink); }
.site-search input::placeholder { color: #8b959e; }
.site-search button { width: 64px; color: #fff; border: 0; background: var(--navy); cursor: pointer; font-weight: 400; }
.search-panel { position: absolute; z-index: 20; left: -2px; right: -2px; top: 39px; border: 1px solid var(--line-dark); background: #fff; box-shadow: 0 5px 12px rgba(20, 45, 70, .1); }
.search-panel a { display: grid; grid-template-columns: 100px 1fr; gap: 8px; padding: 9px 12px; border-bottom: 1px solid #e7eaed; }
.search-panel a:last-child { border-bottom: 0; }
.search-panel small { color: var(--blue); font-size: 11px; }
.search-panel span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-panel p { margin: 0; padding: 14px; color: var(--muted); }
.global-nav { color: #fff; background: var(--navy); border-top: 1px solid var(--navy-dark); border-bottom: 1px solid var(--navy-dark); }
.nav-scroll { display: grid; grid-template-columns: repeat(5, 1fr); }
.global-nav a { display: grid; place-items: center; height: 40px; border-left: 1px solid rgba(255,255,255,.15); font-size: 14px; font-weight: 500; }
.global-nav a:last-child { border-right: 1px solid rgba(255,255,255,.15); }
.global-nav a:hover, .global-nav a[aria-current="page"] { color: #fff; background: #24527f; text-decoration: none; }
.global-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 #66d1c3; }

.home-main { padding-top: 10px; }
.home-intro { display: flex; align-items: baseline; gap: 16px; min-height: 43px; padding: 7px 12px; border-left: 4px solid var(--teal); background: #f7fafb; }
.home-intro h1 { margin: 0; color: var(--navy-dark); font-size: 21px; font-weight: 700; line-height: 1.3; letter-spacing: -.5px; }
.home-intro p { margin: 0; color: var(--muted); font-size: 12px; }
.quick-links { display: grid; grid-template-columns: 132px repeat(5, 1fr); min-height: 43px; margin-top: 8px; border: 1px solid var(--line-dark); }
.quick-links h2 { display: grid; place-items: center start; margin: 0; padding-left: 14px; color: var(--navy); background: var(--soft); border-right: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.quick-links a { display: flex; align-items: center; gap: 7px; padding: 0 10px; border-right: 1px solid var(--line); font-size: 12px; font-weight: 400; }
.quick-links a:last-child { border-right: 0; }
.quick-links b { color: var(--teal); font-size: 10px; font-weight: 400; }

.page-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(250px, 1.05fr); align-items: start; gap: 20px; margin-top: 14px; padding-bottom: 42px; }
.main-column { min-width: 0; }
.focus-module { border: 1px solid var(--line-dark); }
.section-title, .module-title { display: flex; align-items: center; justify-content: space-between; min-height: 35px; padding: 0 12px; background: var(--soft); border-bottom: 1px solid var(--line); }
.section-title h2, .module-title h2 { margin: 0; color: var(--navy-dark); font-size: 15px; font-weight: 500; }
.home-main .section-title h2 { font-weight: 600; }
.section-title > span, .module-title > span, .section-title > a { color: #76818a; font-size: 10px; }
.focus-content { display: grid; grid-template-columns: 1.35fr 1fr; min-height: 145px; }
.focus-primary { display: grid; grid-template-columns: 154px 1fr; gap: 12px; padding: 10px; border-right: 1px solid var(--line); }
.focus-primary img { width: 154px; height: 103px; object-fit: cover; border: 1px solid #d8dfe5; }
.focus-primary h3 { margin: 5px 0 5px; font-size: 16px; font-weight: 500; line-height: 1.35; }
.focus-primary h3 a { font-weight: 500; }
.focus-primary p, .focus-secondary p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.focus-secondary { display: grid; grid-template-rows: repeat(3, 1fr); }
.focus-secondary article { padding: 7px 12px; }
.focus-secondary article + article { border-top: 1px solid var(--line); }
.focus-secondary h3 { margin: 3px 0 0; font-size: 12px; line-height: 1.35; }
.mini-label { display: inline-flex; align-items: center; justify-content: center; min-width: 35px; height: 18px; padding: 0 4px; color: #31516f; background: #f1f5f7; border: 1px solid #cbd5dc; border-radius: 1px; font-size: 9px; font-weight: 400; line-height: 1; white-space: nowrap; }

.board-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.board { min-width: 0; border: 1px solid var(--line-dark); background: #fff; }
.board:last-child { grid-column: 1 / -1; }
.board > header { display: flex; align-items: center; justify-content: space-between; height: 36px; padding: 0 11px; background: var(--soft-blue); border-bottom: 2px solid var(--navy); }
.board h2 { margin: 0; color: var(--navy-dark); font-size: 14px; font-weight: 600; }
.board header a { color: #697581; font-size: 10px; }
.board ul { margin: 0; padding: 3px 11px 5px; list-style: none; }
.board li { display: grid; grid-template-columns: 39px minmax(0, 1fr) 36px; align-items: center; gap: 7px; min-height: 32px; border-bottom: 1px dotted #cdd4da; }
.board li:last-child { border-bottom: 0; }
.board li > a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 400; }
.board time { color: #8a939b; font-size: 10px; font-weight: 400; text-align: right; }

.sidebar { display: grid; gap: 12px; }
.side-module { border: 1px solid var(--line-dark); background: #fff; }
.rank-list, .side-list, .external-list { margin: 0; padding: 5px 11px; list-style: none; }
.rank-list li { display: grid; grid-template-columns: 25px 1fr; align-items: start; gap: 7px; padding: 9px 0; border-bottom: 1px dotted #ccd4db; }
.rank-list li:last-child, .side-list li:last-child, .external-list li:last-child { border-bottom: 0; }
.rank-list li > span { display: grid; place-items: center; width: 21px; height: 21px; color: #fff; background: var(--navy); font-size: 11px; font-weight: 500; }
.rank-list a { font-size: 12px; font-weight: 500; line-height: 1.45; }
.side-list li, .external-list li { padding: 8px 1px; border-bottom: 1px dotted #ccd4db; }
.side-list a, .external-list a { display: block; font-size: 12px; font-weight: 400; }
.external-list a { display: flex; justify-content: space-between; }
.side-category { display: grid; }
.side-category a { display: flex; align-items: center; justify-content: space-between; min-height: 32px; padding: 0 12px; border-bottom: 1px solid #e6eaed; font-size: 12px; font-weight: 400; }
.side-category a:last-child { border-bottom: 0; }
.side-related-list { margin: 0; padding: 0 11px; list-style: none; }
.side-related-list li { border-bottom: 1px solid #e1e6ea; }
.side-related-list li:last-child { border-bottom: 0; }
.side-related-list a { display: block; padding: 10px 1px; font-size: 12px; font-weight: 400; line-height: 1.45; }

.breadcrumb { display: flex; align-items: center; gap: 0; min-height: 35px; overflow: hidden; color: #78838d; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 400; white-space: nowrap; }
.breadcrumb > * { overflow: hidden; text-overflow: ellipsis; }
.breadcrumb > * + *::before { content: ">"; padding: 0 8px; color: #a8b0b7; }
.category-heading { padding: 19px 2px 17px; border-bottom: 2px solid var(--navy); }
.eyebrow { color: var(--teal); font-size: 9px; font-weight: 500; letter-spacing: 1.4px; }
.category-heading h1 { margin: 3px 0 5px; color: var(--navy-dark); font-size: 25px; font-weight: 700; letter-spacing: -.7px; }
.category-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.category-feature, .category-list, .topic-links { margin-top: 16px; border: 1px solid var(--line-dark); }
.category-feature-grid { display: grid; grid-template-columns: 1.15fr 1fr; }
.category-feature-grid--single { grid-template-columns: 1fr; }
.feature-item { display: grid; grid-template-columns: 124px 1fr; gap: 11px; min-height: 110px; padding: 10px; }
.feature-item + .feature-item { border-left: 1px solid var(--line); }
.feature-thumb img { width: 124px; height: 83px; object-fit: cover; border: 1px solid var(--line); }
.feature-item h3 { margin: 4px 0; font-size: 13px; font-weight: 500; line-height: 1.4; }
.feature-item h3 a { font-weight: 500; }
.feature-item p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.list-head { display: grid; grid-template-columns: 70px 1fr 48px; gap: 10px; padding: 6px 12px; color: #7b858e; background: #fafbfc; border-bottom: 1px solid var(--line); font-size: 10px; }
.category-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) 48px; align-items: center; gap: 10px; min-height: 67px; padding: 8px 12px; border-bottom: 1px solid #e3e7ea; }
.category-row:last-child { border-bottom: 0; }
.category-row h3 { margin: 0 0 2px; font-size: 13px; font-weight: 400; }
.category-row p { margin: 0; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.category-row time { color: #8d969d; font-size: 10px; font-weight: 400; text-align: right; }
.topic-links > div:last-child { display: grid; grid-template-columns: repeat(5, 1fr); }
.topic-links > div:last-child a { display: flex; align-items: center; gap: 8px; min-height: 47px; padding: 0 10px; border-right: 1px solid var(--line); font-size: 11px; font-weight: 400; }
.topic-links > div:last-child a:last-child { border-right: 0; }
.topic-links a span { color: var(--teal); font-size: 9px; }

.article-document { border-bottom: 1px solid var(--line-dark); }
.article-header { padding: 22px 4px 15px; border-bottom: 2px solid var(--navy); }
.category-kicker { color: var(--blue); font-size: 11px; font-weight: 500; }
.article-header h1 { max-width: 760px; margin: 5px 0 10px; color: var(--navy-dark); font-size: 29px; font-weight: 700; line-height: 1.35; letter-spacing: -.8px; }
.article-meta { display: flex; gap: 14px; color: #7c8790; font-size: 10px; font-weight: 400; }
.article-hero { width: min(100%, 680px); margin: 20px auto 12px; }
.article-hero img { width: 100%; height: auto; border: 1px solid var(--line); }
.article-hero figcaption { margin-top: 5px; color: #89929a; font-size: 9px; text-align: right; }
.article-body { width: min(100%, 720px); margin: 0 auto; padding: 22px 0 30px; }
.article-body section { margin-bottom: 27px; }
.article-body h2 { margin-bottom: 10px; color: var(--navy-dark); font-size: 19px; font-weight: 500; }
.article-body h3 { font-weight: 500; }
.article-body p { color: #3e4a54; line-height: 1.8; }
.check-list { padding: 13px 18px 13px 39px; background: #fafbfc; border: 1px solid var(--line); }
.check-list li { padding: 3px 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 10px 12px; border: 1px solid #cfd6dc; text-align: left; }
th { color: var(--navy-dark); background: var(--soft); font-weight: 500; }
tr td:first-child { width: 120px; color: var(--navy); font-weight: 500; background: #fafbfc; }
.notice-box { padding: 16px 18px; background: #f4f8f7; border: 1px solid #bcd5cf; border-left: 4px solid var(--teal); }
.notice-box h2 { font-size: 16px; }
.notice-box ol { margin: 0; padding-left: 22px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; margin-top: 14px; border: 1px solid var(--line-dark); }
.post-nav a { display: grid; grid-template-columns: 50px 1fr; gap: 8px; min-height: 48px; align-items: center; padding: 0 12px; }
.post-nav a + a { border-left: 1px solid var(--line); }
.post-nav span { color: var(--teal); font-size: 10px; font-weight: 400; }
.post-nav strong { overflow: hidden; font-size: 11px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }

.policy-page { width: min(calc(100% - 32px), 820px); margin: 18px auto 50px; }
.policy-page .breadcrumb { margin-bottom: 20px; }
.policy-document { border-top: 3px solid var(--navy); border-bottom: 1px solid var(--line-dark); padding: 25px 4px 35px; }
.policy-document h1 { color: var(--navy-dark); font-size: 27px; font-weight: 700; }
.policy-document > p { color: var(--muted); }
.policy-document section { margin-top: 25px; }
.policy-document h2 { font-size: 18px; font-weight: 500; }
.policy-document li, .policy-document p { line-height: 1.8; }

.site-footer { color: #cbd6df; background: #172c40; border-top: 3px solid var(--teal); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 45px; padding: 31px 0 25px; }
.brand--footer .brand-mark { background: #fff; color: var(--navy); }
.brand--footer strong { color: #fff; }
.brand--footer small { color: #9eb0c0; }
.footer-brand p { max-width: 500px; margin: 14px 0 5px; color: #aab9c5; font-size: 11px; }
.footer-grid h2 { margin-bottom: 9px; color: #fff; font-size: 13px; font-weight: 500; }
.footer-grid nav { display: grid; gap: 5px; font-size: 11px; }
.footer-grid a:hover { color: #fff; }
.copyright { padding: 10px 0 18px; border-top: 1px solid rgba(255,255,255,.12); color: #8093a3; font-size: 10px; }

@media (max-width: 900px) {
  .site-width { width: min(calc(100% - 24px), var(--site)); }
  .brand-row { grid-template-columns: 190px minmax(0, 1fr); gap: 14px; }
  .page-grid { grid-template-columns: minmax(0, 1fr); }
  .sidebar { grid-template-columns: 1fr 1fr; }
  .side-popular, .side-tip { min-height: 100%; }
  .side-external, .side-board { min-height: 100%; }
  .focus-content { grid-template-columns: 1fr; }
  .focus-primary { border-right: 0; border-bottom: 1px solid var(--line); }
  .focus-secondary { grid-template-columns: repeat(3, 1fr); grid-template-rows: auto; }
  .focus-secondary article + article { border-top: 0; border-left: 1px solid var(--line); }
}

@media (max-width: 640px) {
  body { font-size: 14px; word-break: normal; }
  .site-width { width: min(calc(100% - 20px), var(--site)); }
  .utility-bar { display: none; }
  .brand-row { height: auto; min-height: 102px; grid-template-columns: 1fr; gap: 8px; padding: 9px 0; }
  .brand-mark { width: 31px; height: 31px; font-size: 16px; }
  .brand strong { font-size: 19px; }
  .site-search { height: 35px; }
  .nav-scroll { display: flex; width: calc(100% - 20px); overflow-x: auto; }
  .global-nav a { flex: 0 0 auto; min-width: 120px; padding: 0 16px; }
  .home-main { padding-top: 8px; }
  .home-intro { display: block; min-height: auto; padding: 7px 9px; }
  .home-intro h1 { font-size: 17px; }
  .home-intro p { margin-top: 2px; font-size: 10px; }
  .quick-links { grid-template-columns: repeat(2, 1fr); }
  .quick-links h2 { grid-column: 1 / -1; min-height: 34px; border-right: 0; border-bottom: 1px solid var(--line); }
  .quick-links a { min-height: 36px; border-bottom: 1px solid var(--line); }
  .quick-links a:nth-child(odd) { border-right: 0; }
  .page-grid { gap: 15px; margin-top: 10px; padding-bottom: 28px; }
  .focus-primary { grid-template-columns: 104px 1fr; }
  .focus-primary img { width: 104px; height: 70px; }
  .focus-primary h3 { font-size: 14px; }
  .focus-primary p { display: none; }
  .focus-secondary { grid-template-columns: 1fr; }
  .focus-secondary article + article { border-left: 0; border-top: 1px solid var(--line); }
  .board-grid { grid-template-columns: 1fr; gap: 11px; }
  .board:last-child { grid-column: auto; }
  .board li { grid-template-columns: 37px minmax(0, 1fr); }
  .board time { display: none; }
  .sidebar { grid-template-columns: 1fr; }
  .side-popular { order: 1; }
  .side-tip { order: 2; }
  .side-action { order: 3; }
  .side-external { order: 3; }
  .side-board { order: 4; }
  .side-related { order: 5; }
  .category-heading { padding: 15px 1px; }
  .category-heading h1 { font-size: 22px; }
  .category-feature-grid { grid-template-columns: 1fr; }
  .feature-item + .feature-item { border-left: 0; border-top: 1px solid var(--line); }
  .list-head { display: none; }
  .category-row { grid-template-columns: 43px minmax(0, 1fr); gap: 7px; min-height: 62px; padding: 8px; }
  .category-row p { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
  .category-row time { display: none; }
  .topic-links > div:last-child { grid-template-columns: 1fr 1fr; }
  .topic-links > div:last-child a { border-bottom: 1px solid var(--line); }
  .article-header { padding-top: 17px; }
  .article-header h1 { font-size: 24px; }
  .article-hero { margin-top: 14px; }
  .article-body { padding-top: 18px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav a + a { border-left: 0; border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* WordPress data-driven templates */
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { width: auto; max-width: 220px; max-height: 46px; }
.home-layout { margin-top: 18px; }
.wire-section { border: 1px solid var(--line-dark); background: #fff; }
.wire-section + .wire-section { margin-top: 18px; }
.section-bar { min-height: 40px; display: flex; align-items: center; padding: 0 14px; background: var(--soft-blue); border-bottom: 2px solid var(--navy); }
.section-bar h1, .section-bar h2 { margin: 0; color: var(--navy-dark); font-size: 17px; font-weight: 600; letter-spacing: -.3px; }
.portal-list { padding: 0 13px; }
.portal-list-item { display: grid; grid-template-columns: minmax(150px, 29%) minmax(0, 1fr); align-items: center; gap: 17px; min-height: 148px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.portal-list-item:last-child { border-bottom: 0; }
.portal-list-item.has-no-thumbnail { grid-template-columns: minmax(0, 1fr); min-height: 112px; }
.portal-thumb { display: block; align-self: stretch; min-height: 112px; overflow: hidden; border: 1px solid #d5dce2; background: #fff; }
.portal-thumb:hover { text-decoration: none; }
.portal-thumb img { width: 100%; height: 100%; min-height: 112px; object-fit: cover; }
.content-label { display: block; margin-bottom: 5px; color: var(--teal); font-size: 10px; font-weight: 400; }
.portal-copy h2, .portal-copy h3 { margin: 0 0 8px; color: var(--navy-dark); font-size: 17px; font-weight: 400; line-height: 1.42; letter-spacing: -.25px; }
.portal-copy h2 a, .portal-copy h3 a { font-weight: 400; }
.portal-copy p { margin: 0; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.7; }
.category-description p { margin: 0; }
.category-list { margin-top: 16px; }
.category-list .portal-list-item { min-height: 142px; }
.empty-state { padding: 24px 14px; color: var(--muted); text-align: center; }
.empty-state p { margin: 0; }
.navigation.pagination { border-top: 1px solid var(--line); }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 13px; }
.page-numbers { min-width: 30px; min-height: 30px; display: grid; place-items: center; border: 1px solid var(--line); font-size: 11px; font-weight: 400; }
.page-numbers.current { color: #fff; background: var(--navy); border-color: var(--navy); }

.side-thumb-list { margin: 0; padding: 4px 10px; list-style: none; }
.side-thumb-list li { display: grid; grid-template-columns: 82px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 75px; padding: 9px 0; border-bottom: 1px dotted #cbd3d9; }
.side-thumb-list li:last-child { border-bottom: 0; }
.side-thumb-list li.has-no-thumbnail { grid-template-columns: minmax(0, 1fr); }
.side-thumb { display: block; width: 82px; height: 55px; overflow: hidden; border: 1px solid #d5dce2; background: #fff; }
.side-thumb img { width: 100%; height: 100%; object-fit: cover; }
.side-thumb-list li > div { min-width: 0; }
.side-thumb-list li > div > a { display: -webkit-box; overflow: hidden; font-size: 11.5px; font-weight: 400; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.rank-number { display: inline-grid; place-items: center; width: 19px; height: 19px; margin-bottom: 4px; color: #fff; background: var(--navy); font-size: 10px; font-weight: 500; }
.side-action a { width: 100%; min-height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; color: var(--navy-dark); background: #fff; text-align: left; font-size: 13px; font-weight: 400; }
.side-action a:hover { color: var(--blue); }
.side-action a span:last-child { color: var(--teal); font-size: 15px; }
.side-empty { margin: 0; padding: 16px 11px; color: var(--muted); font-size: 11px; }

.article-body > *:first-child { margin-top: 0; }
.article-body > *:last-child { margin-bottom: 0; }
.article-body h2 { margin-top: 27px; }
.article-body h3 { margin-top: 22px; color: var(--navy-dark); }
.article-body strong, .article-body b { font-weight: 500; }
.article-body ul, .article-body ol { padding-left: 24px; line-height: 1.8; }
.article-body figure { margin: 24px 0; }
.article-body figure.wp-block-image { width: 50%; max-width: 50%; margin-right: auto; margin-left: auto; }
.article-body figure.wp-block-image img { width: 100%; height: auto; }
.article-body > img { display: block; width: 50%; height: auto; margin: 24px auto; }
.article-body figcaption { margin-top: 6px; color: #89929a; font-size: 10px; }
.article-body .wp-block-table { overflow-x: auto; }
.article-body .wp-block-table table { margin: 0; }
.article-body blockquote { margin: 22px 0; padding: 14px 18px; background: #f4f8f7; border-left: 4px solid var(--teal); }
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body .wp-block-group.is-style-dlg-notice, .article-body .info-box { padding: 16px 18px; background: #f4f8f7; border: 1px solid #bcd5cf; border-left: 4px solid var(--teal); }
.post-nav-empty { min-height: 48px; }
.page-links { margin-top: 24px; }

.policy-content h2 { margin-top: 25px; font-size: 18px; font-weight: 500; }
.policy-content h3 { margin-top: 20px; font-weight: 500; }
.policy-content p, .policy-content li { line-height: 1.8; }
.policy-content strong, .policy-content b { font-weight: 500; }
.error-document .site-search { width: min(100%, 560px); margin: 22px 0; }
.text-button { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; color: #fff; background: var(--navy); }
.text-button:hover { color: #fff; }

@media (max-width: 640px) {
  .home-layout { margin-top: 12px; }
  .section-bar { min-height: 38px; padding: 0 10px; }
  .section-bar h1, .section-bar h2 { font-size: 15px; }
  .portal-list { padding: 0 9px; }
  .portal-list-item, .category-list .portal-list-item { grid-template-columns: 96px minmax(0, 1fr); align-items: start; gap: 10px; min-height: 112px; padding: 10px 0; }
  .portal-list-item.has-no-thumbnail, .category-list .portal-list-item.has-no-thumbnail { grid-template-columns: minmax(0, 1fr); min-height: auto; }
  .portal-thumb { min-height: 68px; height: 68px; align-self: start; }
  .portal-thumb img { min-height: 68px; height: 68px; }
  .content-label { margin-bottom: 2px; }
  .portal-copy h2, .portal-copy h3 { margin-bottom: 4px; font-size: 13px; line-height: 1.4; }
  .portal-copy p { display: -webkit-box; overflow: hidden; font-size: 10px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
}

/* ---- Badge chip overflow guard --------------------------------------- */
.mini-label, .content-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- Brand logo (custom logo) ---------------------------------------- */
.site-branding { min-width: 0; }
.site-branding .custom-logo-link { display: inline-flex; align-items: center; max-width: 100%; }
.site-branding .custom-logo-link:hover { text-decoration: none; }
.site-branding .custom-logo { width: auto; height: auto; max-width: 100%; max-height: 48px; object-fit: contain; }
.brand-logo--footer { width: auto; height: auto; max-width: 210px; max-height: 44px; object-fit: contain; }

/* ---- 404 / empty-state helper navigation ----------------------------- */
.helper-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 22px; }
.helper-links a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 13px; border: 1px solid var(--line-dark); background: var(--soft); color: var(--navy-dark); font-size: 13px; }
.helper-links a:hover { border-color: var(--navy); background: var(--soft-blue); color: var(--navy); text-decoration: none; }
.helper-list { margin: 0 0 22px; padding-left: 18px; }
.helper-list li { line-height: 1.9; }
.helper-list a:hover { color: var(--blue); }
.empty-state { text-align: left; }
.empty-state .helper-links { justify-content: flex-start; }
.empty-state .site-search { width: min(100%, 520px); margin: 14px 0 18px; }

@media (max-width: 900px) {
  .site-branding .custom-logo { max-height: 44px; }
}

@media (max-width: 640px) {
  .site-branding .custom-logo { max-width: 200px; max-height: 42px; }
  /* Legal links in the footer need a comfortable touch target on phones. */
  .footer-grid nav { gap: 0; }
  .footer-grid nav a { display: flex; align-items: center; min-height: 40px; font-size: 12px; }
  .brand-logo--footer { max-width: 180px; max-height: 38px; }
  .helper-links a { min-height: 40px; font-size: 12px; }
}
