:root {
  --bg: #ffffff;
  --ink: #1a1f24;
  --muted: #5f6b76;
  --accent: #2563eb;
  --line: #e3e8ec;
  --surface: #ffffff;
  --font: "Noto Sans KR", sans-serif;
  --container: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  height: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

a,
a:hover,
a:focus,
a:active,
a:visited {
  text-decoration: none;
}

a {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.site-header,
.site-footer {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.site-footer {
  border-bottom: 0;
  border-top: 1px solid var(--line);
  margin-top: auto;
  flex: 0 0 auto;
  color: #4b5563;
}

.site-header .container {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--ink);
  text-decoration: none;
}

.logo-img {
  display: block;
  height: var(--logo-h-web, 40px);
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.site-footer .container {
  padding-top: 1.35rem;
  padding-bottom: 1.5rem;
}

.footer-inner {
  display: grid;
  gap: 0.95rem;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  flex-wrap: wrap;
}

.footer-brand {
  color: #111827;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer-brand:hover,
.footer-brand:focus,
.footer-brand:visited {
  color: #111827;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0;
  color: #4b5563;
  font-size: 0.9rem;
}

.footer-nav a {
  color: #4b5563;
  padding: 0.1rem 0.55rem;
}

.footer-nav a:first-child {
  padding-left: 0;
}

.footer-nav a + a {
  border-left: 1px solid #d1d5db;
}

.footer-nav a:hover,
.footer-nav a:focus {
  color: #111827;
}

.footer-bottom {
  display: grid;
  gap: 0.45rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  line-height: 1.65;
  color: #6b7280;
}

.footer-meta,
.footer-disclaimer,
.footer-biz,
.footer-text,
.footer-copy {
  margin: 0;
}

.footer-meta a {
  color: #6b7280;
}

.footer-meta a:hover,
.footer-meta a:focus {
  color: #111827;
}

.footer-disclaimer {
  font-style: italic;
  color: #6b7280;
}

.footer-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
}

.footer-topics a {
  color: #6b7280;
}

.footer-topics a:hover,
.footer-topics a:focus {
  color: #111827;
}

.footer-biz {
  color: #9ca3af;
  font-size: 0.8rem;
}

.footer-text {
  color: #9ca3af;
  font-size: 0.8rem;
}

.footer-copy {
  color: #9ca3af;
  font-size: 0.8rem;
}

@media (max-width: 720px) {
  .footer-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-nav {
    width: 100%;
  }

  .footer-nav a {
    padding-left: 0;
    padding-right: 0.7rem;
  }

  .footer-nav a + a {
    border-left: 0;
    padding-left: 0;
  }

  .footer-nav a:not(:last-child)::after {
    content: "|";
    margin-left: 0.7rem;
    color: #d1d5db;
  }
}

.legal-body {
  line-height: 1.8;
}

.legal-body h1,
.legal-body h2,
.legal-body h3 {
  margin: 1.5rem 0 0.7rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  flex-wrap: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: 0.5rem;
  flex: 0 0 auto;
}

.header-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  cursor: pointer;
}

.header-icon-btn:hover {
  background: #f9fafb;
}

.site-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: calc(0.85rem + 5px) calc(1.1rem + 5px);
  margin-left: auto;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--accent);
  font-weight: 700;
}

.site-main {
  flex: 1 0 auto;
  padding: 2.5rem 0 5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  flex: 0 0 auto;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.article-head {
  box-sizing: border-box;
  width: 100vw;
  max-width: 100vw;
  margin-top: -2.5rem;
  margin-bottom: 2rem;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 1.7rem 0 1.55rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.article-head-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.article-head .breadcrumb {
  margin: 0 0 0.9rem;
  font-size: 0.8125rem;
  color: #8a94a0;
}

.article-head .breadcrumb a {
  color: #8a94a0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-head .breadcrumb a:hover {
  color: #5f6b76;
}

.article-head h1 {
  margin: 0 0 0.8rem;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.4;
  color: #1a2332;
}

.article-meta {
  margin: 0;
  color: #8a94a0;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.article-meta span + span::before {
  content: "•";
  margin: 0 0.5em;
  color: #8a94a0;
}

.article-layout-crumb {
  margin: 0 0 1.1rem;
}

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 1rem;
  align-items: start;
}

.article-main {
  min-width: 0;
  padding: 1.75rem 1.5rem 2rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.article-intro {
  margin: 0 0 1.5rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--line);
}

.article-intro h1 {
  margin: 0 0 0.7rem;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.4;
  color: #1a2332;
}

.article-main .article-summary {
  margin: 0 0 1.25rem;
  color: #4b5563;
  font-size: 1.05rem;
  line-height: 1.7;
  word-break: keep-all;
}

.article-main .article-summary > *:first-child {
  margin-top: 0;
}

.article-main .article-summary > *:last-child {
  margin-bottom: 0;
}

.article-main .article-summary p {
  margin: 0 0 0.55rem;
}

.article-main .content-body {
  margin-top: 0;
  padding: 0;
  background: transparent;
}

.article-main .featured-image {
  margin: 0 0 1.5rem;
}

.article-aside {
  position: sticky;
  top: 5.5rem;
  display: grid;
  gap: 1rem;
}

.article-toc,
.article-side-related {
  padding: 1rem 0.9rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.article-aside-title {
  display: block;
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a2332;
}

.article-toc > summary.article-aside-title,
.article-side-related > summary.article-aside-title {
  list-style: none;
  cursor: default;
}

.article-toc > summary.article-aside-title::-webkit-details-marker,
.article-side-related > summary.article-aside-title::-webkit-details-marker {
  display: none;
}

.article-toc-list,
.article-side-related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.article-toc-list a,
.article-side-related-list a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  color: #7a8490;
  font-size: 0.84rem;
  line-height: 1.45;
  text-decoration: none;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.article-toc-list a:hover,
.article-side-related-list a:hover {
  color: #1a2332;
}

.article-toc-list .is-level-3 a {
  padding-left: 0.7rem;
  font-size: 0.8rem;
}

.article-side-related-list li {
  position: relative;
  padding-left: 0.85rem;
}

.article-side-related-list li::before {
  content: "▪";
  position: absolute;
  left: 0;
  top: 0;
  color: #b0b8c1;
  font-size: 0.7rem;
}

.article-side-related-list .is-current::before {
  content: "→";
  color: #e11d48;
}

.article-side-related-list .is-current a {
  color: #e11d48;
  font-weight: 600;
}

.category-header h1 {
  margin: 0 0 0.75rem;
  font-size: 2rem;
  letter-spacing: -0.02em;
}

.category-header .lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.page-hero {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  width: 100vw;
  max-width: 100vw;
  min-height: 214px;
  margin-top: -2.5rem;
  margin-bottom: 2rem;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 2.4rem 0 2.15rem;
  color: #fff;
  background: #1e3a8a;
}

.page-hero-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.page-hero h1 {
  margin: 0;
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: #fff;
}

.page-hero h1 a {
  color: inherit;
  text-decoration: none;
}

.page-hero h1 a:hover {
  text-decoration: none;
}

.page-hero-sep {
  margin: 0 0.4em;
  font-weight: 500;
  opacity: 0.55;
}

.page-hero .lead {
  margin: 0.75rem 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
  line-height: 1.7;
}

.page-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.35rem;
}

.page-hero-chips a {
  display: inline-flex;
  align-items: center;
  padding: 0.48rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
}

.page-hero-chips a:hover,
.page-hero-chips a.is-on {
  border-color: #fff;
  background: #fff;
  color: #1e3a8a;
}

.content-body {
  margin-top: 1.5rem;
  padding: 1.75rem 1.5rem;
  background: #fff;
  line-height: 1.8;
}

.article-head + .content-body,
.article-head + .featured-image {
  margin-top: 0;
}

.content-body p {
  margin: 0 0 1rem;
}

.content-body ul,
.content-body ol {
  margin: 0 0 1rem;
  padding-left: 1.4rem;
}

.content-body li {
  margin: 0.35rem 0;
}

.content-body li > ul,
.content-body li > ol {
  margin: 0.35rem 0 0.35rem;
}

.content-body h2 {
  display: block;
  margin: 2rem 0 1rem;
  padding: 0.95rem 1.15rem;
  background: #f7f8f9;
  border: 0;
  border-left: 5px solid #2d3748;
  border-bottom: 1px solid #2d3748;
  color: #2d3748;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.02em;
  scroll-margin-top: 5.5rem;
}

.content-body > h2:first-child {
  margin-top: 0;
}

.content-body h3 {
  margin: 1.6rem 0 0.7rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #2d3748;
  scroll-margin-top: 5.5rem;
}

.content-body h4 {
  margin: 1.5rem 0 0.65rem;
  font-size: 1.08rem;
  font-weight: 700;
  color: #2d3748;
}

.content-body table {
  width: 100%;
  margin: 1.25rem 0;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 0.95rem;
}

.content-body th,
.content-body td {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.content-body th {
  background: #f3f5f7;
  font-weight: 700;
  color: #2d3748;
}

.child-categories {
  margin-top: 2.5rem;
}

.child-categories h2 {
  margin: 0 0 0.85rem;
  font-size: 1.25rem;
}

.child-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.child-list a {
  display: block;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
}

.child-list a:hover {
  border-color: #c5d0d8;
}

.child-list strong {
  display: block;
  margin-bottom: 0.25rem;
}

.child-list span {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero {
  padding: 1.5rem 0 1rem;
}

.hero .eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.hero .lead {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.home-page {
  padding-bottom: 2.75rem;
}

.home-search-block {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  width: 100vw;
  max-width: 100vw;
  margin-top: -2.5rem;
  margin-bottom: 2rem;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 2.4rem 0 2.15rem;
  color: #fff;
  background: #1e3a8a;
}

.home-search-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.home-search-title {
  margin: 0;
  font-size: clamp(1.7rem, 3.2vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.2;
  color: #fff;
}

.home-search-lead {
  margin: 0.55rem 0 0;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.6;
  word-break: keep-all;
}

.home-search-form {
  display: flex;
  align-items: stretch;
  width: 100%;
  margin-top: 1.25rem;
  border: 0;
  background: #fff;
  overflow: hidden;
}

.home-search-form input {
  flex: 1 1 auto;
  min-width: 0;
  height: 52px;
  padding: 0 1.05rem;
  border: 0;
  background: transparent;
  color: #1a2332;
  font: inherit;
  font-size: 0.98rem;
}

.home-search-form input::placeholder {
  color: #94a3b8;
}

.home-search-form input:focus {
  outline: none;
}

.home-search-form button {
  flex: 0 0 auto;
  min-width: 96px;
  border: 0;
  background: #0f274f;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.home-search-form button:hover {
  background: #163174;
}

.home-search-hint {
  margin: 0.85rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}

.home-panel {
  margin-top: 2.25rem;
}

.home-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #1e3a8a;
}

.home-panel-head h2 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #12233f;
}

.home-panel-head > p:not(.home-panel-more-inline) {
  margin: 0;
  width: 100%;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  word-break: keep-all;
}

.home-panel-more-inline {
  margin: 0;
  margin-left: auto;
}

.home-panel-more-inline a {
  color: #1e3a8a;
  font-size: 0.9rem;
  font-weight: 700;
}

.home-cat-grid,
.home-tool-grid,
.home-guide-list,
.home-gov-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.home-cat-grid > li {
  min-width: 0;
  display: flex;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: var(--delay, 0s);
}

.home-cat-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.home-cat-main {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.2rem 1.15rem 1rem;
  color: inherit;
  text-decoration: none;
}

.home-cat-main:hover {
  color: inherit;
}

.home-cat-main:hover strong {
  color: #1e3a8a;
}

.home-cat-main strong {
  font-size: 1.08rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #12233f;
}

.home-cat-main span {
  min-height: 2.8em;
  color: #5f6b76;
  font-size: 0.9rem;
  line-height: 1.5;
  word-break: keep-all;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-cat-children {
  list-style: none;
  margin: auto 0 0;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid #eef2f7;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  min-height: 3.1rem;
  align-content: flex-start;
}

.home-cat-children:empty {
  display: none;
}

.home-cat-children a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 0.65rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.home-cat-children a:hover {
  border-color: #1e3a8a;
  color: #1e3a8a;
}

.home-tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: stretch;
}

.home-tool-grid > li {
  min-width: 0;
  display: flex;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: var(--delay, 0s);
}

.home-tool-card {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  min-height: 100px;
  padding: 1.1rem 1.05rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.home-tool-card:hover {
  border-color: #cbd5e1;
  color: inherit;
}

.home-tool-card:hover .home-tool-copy strong {
  color: #1e3a8a;
}

.home-tool-icon,
.home-tool-emoji {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #eef2ff;
}

.home-tool-icon {
  object-fit: contain;
  padding: 0.35rem;
}

.home-tool-emoji {
  font-size: 1.4rem;
}

.home-tool-copy {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.home-tool-copy strong {
  font-size: 1.02rem;
  font-weight: 750;
  color: #12233f;
  letter-spacing: -0.01em;
}

.home-tool-copy span {
  color: #5f6b76;
  font-size: 0.88rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: keep-all;
}

.home-guide-list,
.home-gov-list {
  display: grid;
  gap: 0.7rem;
}

.home-gov-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.home-guide-list > li,
.home-gov-list > li {
  min-width: 0;
  display: flex;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: var(--delay, 0s);
}

.home-cat-grid > li.is-in,
.home-tool-grid > li.is-in,
.home-guide-list > li.is-in,
.home-gov-list > li.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .home-cat-grid > li,
  .home-tool-grid > li,
  .home-guide-list > li,
  .home-gov-list > li {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.home-guide-list a,
.home-gov-list a {
  display: grid;
  gap: 0.35rem;
  padding: 1.05rem 1.15rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.home-guide-list a:hover,
.home-gov-list a:hover {
  border-color: #cbd5e1;
  color: inherit;
}

.home-guide-list em {
  color: #1e3a8a;
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 700;
}

.home-guide-list strong {
  color: #12233f;
  font-size: 1.04rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.home-guide-list span,
.home-gov-list span {
  color: #5f6b76;
  font-size: 0.9rem;
  line-height: 1.55;
  word-break: keep-all;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-guide-list time {
  color: #8a94a0;
  font-size: 0.82rem;
}

.home-gov-list a {
  flex: 1 1 auto;
  width: 100%;
  box-sizing: border-box;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "task task"
    "site go";
  align-items: end;
  align-content: space-between;
  column-gap: 0.75rem;
  row-gap: 0.35rem;
}

.home-gov-list strong {
  grid-area: task;
  width: 100%;
  font-size: 1.04rem;
  font-weight: 750;
  color: #12233f;
  letter-spacing: -0.01em;
  line-height: 1.4;
  min-height: calc(1.04rem * 1.4 * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: keep-all;
  align-self: start;
}

.home-gov-list span {
  grid-area: site;
  -webkit-line-clamp: 1;
  min-width: 0;
}

.home-gov-list em {
  grid-area: go;
  justify-self: end;
  color: #1e3a8a;
  font-style: normal;
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
}

.home-sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.home-sections article {
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: var(--surface);
}

.home-sections h2 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.home-sections p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

.error-page {
  text-align: center;
  padding: 4rem 0;
}

.error-code {
  margin: 0;
  font-size: 4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.error-page h1 {
  margin: 0.75rem 0;
}

/* tablet */
@media (max-width: 1120px) {
  .hero h1 {
    font-size: 2.125rem;
  }
}

@media (max-width: 900px) {
  .home-sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-tool-grid {
    grid-template-columns: 1fr;
  }

  .home-gov-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.article-related-bottom {
  display: none;
  margin-top: 1.5rem;
}

@media (max-width: 900px) {
  .article-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .article-main {
    order: 2;
  }

  .article-aside {
    order: 1;
    position: sticky;
    top: 5rem;
    z-index: 40;
    gap: 0.5rem;
    width: 100%;
    margin: 0;
    padding: 0;
    background: #fff;
  }

  .article-related-aside {
    display: none !important;
  }

  .article-related-bottom {
    display: block;
  }

  .article-toc,
  .article-side-related {
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  }

  .article-toc > summary.article-aside-title,
  .article-side-related > summary.article-aside-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0;
    cursor: pointer;
    user-select: none;
  }

  .article-toc > summary.article-aside-title::after,
  .article-side-related > summary.article-aside-title::after {
    content: "";
    flex: 0 0 auto;
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: rotate(45deg);
    transition: transform 0.18s ease;
  }

  .article-toc[open] > summary.article-aside-title::after,
  .article-side-related[open] > summary.article-aside-title::after {
    transform: rotate(-135deg);
  }

  .article-toc[open] > summary.article-aside-title,
  .article-side-related[open] > summary.article-aside-title {
    margin-bottom: 0.7rem;
  }

  .article-toc[open] .article-toc-list,
  .article-side-related[open] .article-side-related-list {
    max-height: min(42vh, 280px);
    overflow: auto;
  }

  .article-related-bottom[open] .article-side-related-list {
    max-height: none;
    overflow: visible;
  }
}

/* mobile */
@media (max-width: 640px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-main {
    padding: 1.75rem 0 3.5rem;
  }

  .article-head {
    margin-top: -1.75rem;
    padding-top: 1.35rem;
    padding-bottom: 1.25rem;
  }

  .article-head-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .article-head h1 {
    font-size: 1.55rem;
  }

  .article-grid {
    gap: 1rem;
  }

  .article-main {
    padding: 1.35rem 1rem 1.6rem;
  }

  .article-intro h1 {
    font-size: 1.45rem;
  }

  .content-body h2 {
    font-size: 1.12rem;
    padding: 0.8rem 0.95rem;
  }

  .page-hero {
    margin-top: -1.75rem;
    min-height: 186px;
    padding-top: 1.7rem;
    padding-bottom: 1.6rem;
  }

  .page-hero-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-hero h1 {
    font-size: 1.7rem;
  }

  .page-hero .lead {
    font-size: 0.98rem;
  }

  .search-form,
  .links-filter {
    flex-direction: column;
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .search-form input,
  .search-form select,
  .search-form button {
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero .lead {
    font-size: 1rem;
  }

  .home-search-block {
    margin-top: -2.5rem;
    padding: 1.9rem 0 1.75rem;
  }

  .home-search-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .home-sections,
  .home-cat-grid {
    grid-template-columns: 1fr;
  }

  .home-search-form {
    flex-direction: column;
  }

  .home-search-form input,
  .home-search-form button {
    width: 100%;
    min-height: 48px;
  }

  .home-gov-list {
    grid-template-columns: 1fr;
  }

  .home-gov-list a {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "task task"
      "site go";
  }

  .error-code {
    font-size: 3rem;
  }
}

.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;
}

.nav-toggle {
  display: none;
}

.search-form button {
  border: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.45rem 0.8rem;
  border-radius: 6px;
  font: inherit;
  cursor: pointer;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  margin: 1.25rem 0 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--muted);
}

.card-list,
.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.card-list a,
.link-list a {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
}

.card-list a:hover,
.link-list a:hover {
  border-color: #c5d0d8;
}

.card-list span,
.link-list span,
.link-list em {
  color: var(--muted);
  font-size: 0.92rem;
  font-style: normal;
}

.link-group {
  margin-top: 2rem;
}

.link-group h2 {
  margin: 0 0 0.85rem;
  font-size: 1.2rem;
}

.link-list .when,
.link-list .tasks {
  display: block;
}

.search-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  max-width: 32rem;
  width: 100%;
  box-sizing: border-box;
}

.search-form input,
.search-form select {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  background: #fff;
}

.links-filter {
  max-width: 44rem;
  margin: 0 auto 1.5rem;
}

.task-link-cta {
  display: inline-block;
  margin-top: 0.35rem;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 500;
}

.official-service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.official-service-list a {
  display: grid;
  gap: 0.2rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
}

.official-service-list a:hover {
  border-color: #c5d0d8;
  text-decoration: none;
}

.official-service-list em,
.official-service-list span {
  color: var(--muted);
  font-style: normal;
  font-size: 0.88rem;
}

.official-service-list .task-link-cta {
  color: var(--accent);
}

.search-section {
  margin-top: 2rem;
}

.search-page .page-hero {
  margin-bottom: 1.5rem;
}

.search-page-form {
  max-width: 40rem;
}

.search-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 0.5rem;
}

.search-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 0.75rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #1e3a8a;
  font-size: 0.88rem;
  font-weight: 600;
}

.search-jump a:hover,
.search-jump a:focus {
  background: #1e3a8a;
  color: #fff;
}

.search-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.85rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
}

.search-section-head h2 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.search-section-head span {
  color: var(--muted);
  font-size: 0.86rem;
}

.search-deck {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.search-card {
  height: 100%;
  display: grid;
  align-content: start;
  gap: 0.4rem;
  min-height: 7.2rem;
  padding: 1.05rem 1.1rem;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  border: 1px solid #eef2f7;
  border-left: 4px solid #94a3b8;
  color: inherit;
  text-decoration: none;
}

.search-card:hover,
.search-card:focus {
  color: inherit;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
  transform: translateY(-1px);
}

.search-card em {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 0.16rem 0.5rem;
  border-radius: 6px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.search-card strong {
  color: #111827;
  font-size: 1.02rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: keep-all;
}

.search-card span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-card.is-category {
  border-left-color: #1e3a8a;
}

.search-card.is-category em {
  background: #eef2ff;
  color: #1e3a8a;
}

.search-card.is-page {
  border-left-color: #2563eb;
}

.search-card.is-page em {
  background: #eff6ff;
  color: #1d4ed8;
}

.search-card.is-guide {
  border-left-color: #0f766e;
}

.search-card.is-guide em {
  background: #ccfbf1;
  color: #0f766e;
}

.search-card.is-tool {
  border-left-color: #ea580c;
}

.search-card.is-tool em {
  background: #ffedd5;
  color: #c2410c;
}

.search-card.is-link {
  border-left-color: #15803d;
}

.search-card.is-link em {
  background: #dcfce7;
  color: #166534;
}

@media (max-width: 720px) {
  .search-deck {
    grid-template-columns: 1fr;
  }
}

.tool-placeholder {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border: 1px dashed var(--line);
  background: var(--surface);
}

.info-deck {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.info-deck > li {
  min-width: 0;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: var(--delay, 0s);
}

.info-deck > li.is-in {
  opacity: 1;
  transform: none;
}

.info-deck-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.35rem 1.25rem 1.2rem;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  border: 1px solid #eef2f7;
  color: inherit;
  text-decoration: none;
  transform: scale(1);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.info-deck-card:hover {
  transform: scale(1.03);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14);
  color: inherit;
  text-decoration: none;
}

.info-deck-thumb {
  display: block;
  margin: -1.35rem -1.25rem 0.15rem;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  background: #f3f4f6;
}

.info-deck-thumb img {
  display: block;
  width: 100%;
  height: auto;
}

.info-deck-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 1.5rem;
}

.info-deck-badge {
  display: inline-flex;
  align-items: center;
  max-width: 70%;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  background: #1e3a8a;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.info-deck-date {
  margin-left: auto;
  color: #6b7280;
  font-size: 0.82rem;
  line-height: 1.3;
  white-space: nowrap;
}

.info-deck-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.4;
  color: #111827;
}

.info-deck-card:hover .info-deck-title {
  color: #1e3a8a;
}

.info-deck-summary {
  margin: 0;
  color: #4b5563;
  font-size: 0.92rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.info-deck-summary p {
  margin: 0;
  display: inline;
}

.info-deck-summary p + p::before {
  content: " ";
}

.info-deck-foot {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
  padding-top: 0.35rem;
}

.info-deck-cta {
  color: #1e3a8a;
  font-size: 0.88rem;
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .info-deck > li {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .info-deck-card,
  .info-deck-card:hover {
    transition: none;
    transform: none;
  }
}

@media (max-width: 900px) {
  .info-deck {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .info-deck {
    grid-template-columns: 1fr;
  }
}

.tool-deck {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.tool-deck > li {
  display: flex;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: var(--delay, 0s);
}

.tool-deck > li.is-in {
  opacity: 1;
  transform: none;
}

.tool-deck-card {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  width: 100%;
  min-height: 118px;
  padding: 1.2rem 1.1rem;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-deck-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
  color: inherit;
}

@media (prefers-reduced-motion: reduce) {
  .tool-deck > li {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .tool-deck-card,
  .tool-deck-card:hover {
    transition: none;
    transform: none;
  }
}

.tool-deck-emoji,
.tool-deck-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #eef4ff;
  flex: 0 0 48px;
  font-size: 1.45rem;
  line-height: 1;
}

.tool-deck-icon {
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--surface);
}

.tool-deck-copy {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
  flex: 1 1 auto;
}

.tool-deck-copy strong {
  color: #111827;
  font-size: 1.02rem;
}

.tool-deck-copy span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tool-deck-arrow {
  color: #d1d5db;
  margin-top: 0.15rem;
  flex: 0 0 auto;
}

.link-deck-mark {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border-radius: 16px;
  background: #eef6f2;
  color: #1f6b4a;
  font-size: 1.575rem;
  font-weight: 700;
}

.link-deck > li .link-deck-card {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.link-deck-main {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  min-width: 0;
  width: 100%;
}

.link-deck-body {
  display: grid;
  min-width: 0;
  flex: 1 1 auto;
}

.link-deck-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
}

.link-deck-copy {
  flex: 1 1 auto;
}

.link-deck-copy strong {
  font-size: 1.02rem;
}

.link-deck-title-link {
  color: inherit;
  text-decoration: none;
}

.link-deck-title-link:hover {
  color: var(--accent);
  text-decoration: none;
}

.link-deck-copy > span {
  font-size: 0.88rem;
  line-height: 1.5;
}

.link-task-page-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.link-task-page-link:hover {
  text-decoration: none;
  color: #111827;
}

.link-deck-main .tool-deck-arrow {
  color: #d1d5db;
  margin-top: 0.2rem;
  flex: 0 0 auto;
  font-size: 1.1rem;
}

.link-deck-card:hover .tool-deck-arrow {
  color: var(--accent);
}

.link-deck-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
  width: 100%;
  margin-top: 0.75rem;
}

.link-deck-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: calc(2.66rem - 6px);
  min-width: 0;
  width: auto;
  padding: 0.41rem 0.94rem;
  border: 1px solid #cfd6de;
  border-radius: 6px;
  background: #f4f6f8;
  color: #3a4553;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.link-deck-btn:hover:not(:disabled) {
  border-color: #b3bdc8;
  color: #1c2430;
  background: #eef1f4;
  text-decoration: none;
}

.link-deck-btn:active:not(:disabled) {
  background: #e5e9ee;
}

.link-deck-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.link-deck-btn-primary {
  background: #2a3340;
  border-color: #2a3340;
  color: #f8fafc;
}

.link-deck-btn-primary:hover {
  background: #1c2430;
  border-color: #1c2430;
  color: #fff;
  filter: none;
}

.link-deck-btn-primary:active {
  background: #121820;
  border-color: #121820;
}

.link-task-modal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.link-task-modal-list a {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.link-task-modal-list a:hover {
  border-color: #c5d0d8;
  text-decoration: none;
}

.link-task-modal-list span,
.link-task-modal-list em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.88rem;
}

.link-task-modal-list em {
  color: var(--accent);
}

.link-task-modal .tool-modal-foot {
  justify-content: flex-end;
  gap: 0.6rem;
}

.links-show-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.links-show-nav a {
  color: var(--accent);
  font-weight: 600;
}

.link-deck > li .link-deck-card-link {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.9rem;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.link-deck-card-link .link-deck-copy {
  align-content: start;
  min-height: calc(1.45em * 2 + 0.3rem + 1.5em * 2);
}

.link-deck-card-link .link-deck-copy strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
  min-height: calc(1.45em * 2);
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.link-deck-card-link .link-deck-copy > span {
  min-height: calc(1.5em * 2);
}

@media (max-width: 900px) {
  .tool-deck {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .tool-deck {
    grid-template-columns: 1fr;
  }
}

.list-page {
  padding-bottom: 2.5rem;
  max-width: 100%;
}

.list-page > .page-hero {
  margin-bottom: 1.5rem;
}

body.is-tool-modal-open {
  overflow: hidden;
}

.tool-modal {
  position: fixed;
  inset: 0;
  z-index: 96;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 1.2rem;
  background: rgba(17, 24, 39, 0.5);
  overflow: hidden;
}

.tool-modal[hidden] {
  display: none;
}

.tool-modal-dialog {
  width: min(720px, 100%);
  max-height: calc(100vh - 8vh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.28);
}

.tool-modal-head,
.tool-modal-foot {
  flex: 0 0 auto;
  background: #fff;
}

.tool-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.tool-modal-head h2 {
  margin: 0;
  font-size: 1.15rem;
}

.tool-modal-close {
  border: 0;
  background: transparent;
  width: 36px;
  height: 36px;
  font-size: 1.8rem;
  line-height: 1;
  color: #6b7280;
  cursor: pointer;
}

.tool-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0.5rem 1.25rem 1.2rem;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.tool-modal-body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.tool-modal-foot {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--line);
}

.tool-modal-cancel {
  border: 1px solid var(--line);
  background: #fff;
  color: #374151;
  padding: 0.65rem 1.1rem;
  border-radius: 6px;
  font: inherit;
  cursor: pointer;
}

.tool-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-left: auto;
}

.tool-modal-actions .tool-submit {
  justify-self: auto;
}

.tool-modal-body .category-header {
  margin: 0.5rem 0 0;
}

.tool-modal-body .category-header h1 {
  display: none;
}

.tool-modal-body .tool-panel {
  margin-top: 1rem;
}

.card-list a.tool-card-link {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.card-list a.tool-card-link > span {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.tool-card-icon,
.tool-heading-icon {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--surface);
  flex: 0 0 auto;
}

.tool-heading-icon {
  margin-bottom: 0.75rem;
}

.tool-panel {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: var(--surface);
}

.tool-form {
  display: grid;
  gap: 1rem;
}

.tool-form-severance,
.tool-form-salary {
  gap: 1.7rem;
}

.tool-form-severance .tool-field,
.tool-form-salary .tool-field {
  gap: 0.55rem;
}

.tool-mode {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 0.5rem;
}

.tool-seg-field {
  margin: 0;
  padding: 0;
  border: 0;
}

.tool-seg-field legend {
  margin-bottom: 0.55rem;
  font-weight: 700;
}

.tool-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  max-width: 40rem;
}

.tool-seg.is-3 {
  grid-template-columns: 1fr 1fr 1fr;
  max-width: none;
}

.tool-seg-btn {
  position: relative;
  display: grid;
  gap: 0.28rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.tool-seg-btn input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tool-seg-btn strong {
  color: #111827;
  font-size: 0.96rem;
}

.tool-seg-btn > span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.4;
}

.tool-seg-btn.is-on {
  border-color: var(--accent);
  background: #eef4ff;
  box-shadow: inset 0 0 0 1px var(--accent);
}

.tool-seg-btn.is-on strong {
  color: #1d4ed8;
}

@media (max-width: 900px) {
  .tool-seg.is-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .tool-seg {
    grid-template-columns: 1fr;
  }
}

.tool-mode legend {
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.tool-mode label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.tool-field {
  display: grid;
  gap: 0.4rem;
}

.tool-field[hidden],
.tool-field.is-off {
  display: none !important;
}

.tool-field > span:first-child {
  font-weight: 500;
}

.tool-money-row {
  display: grid;
  grid-template-columns: minmax(0, 28rem) minmax(10rem, 1fr);
  gap: 0.7rem;
  align-items: center;
  width: 100%;
  max-width: none;
}

.tool-money-row input {
  width: 100%;
  max-width: none;
}

.tool-money-row .tool-hangul {
  margin: 0;
  max-width: none;
  min-width: 0;
  height: 100%;
  min-height: 2.7rem;
  align-items: center;
}

@media (max-width: 640px) {
  .tool-money-row {
    grid-template-columns: 1fr;
  }
}

.tool-form input[type="text"],
.tool-form input[type="date"],
.tool-form input[type="number"],
.tool-form select {
  width: 100%;
  max-width: 28rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  background: #fff;
}

.tool-field-row {
  display: flex;
  gap: 0.5rem;
  max-width: 28rem;
}

.tool-field-row input {
  flex: 1;
  max-width: none;
}

.tool-field-row select {
  width: auto;
  max-width: 8rem;
}

.tool-date-wrap {
  position: relative;
  display: block;
  width: 100%;
  max-width: 28rem;
}

.tool-date-wrap input[type="date"] {
  width: 100%;
  max-width: none;
  padding-right: 2.7rem;
}

.tool-date-wrap input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0;
  display: none;
}

.tool-date-wrap input[type="date"]::-webkit-inner-spin-button,
.tool-date-wrap input[type="date"]::-webkit-clear-button {
  display: none;
}

.tool-date-icon {
  position: absolute;
  top: 50%;
  right: 0.45rem;
  z-index: 1;
  width: 34px;
  height: 34px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}

.tool-date-icon:hover {
  color: var(--accent);
  background: #eef4ff;
}

.tool-date-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.tool-hangul {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  max-width: 28rem;
  margin: 0.4rem 0 0;
  padding: 0.7rem 0.9rem;
  border: 1px solid #e6ddcc;
  border-radius: 8px;
  background: linear-gradient(180deg, #fbf8f1 0%, #f3eee4 100%);
  color: #2c261d;
  font-style: normal;
}

.tool-hangul[hidden] {
  display: none;
}

.tool-hangul-kicker {
  flex: 0 0 auto;
  color: #9a8b72;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.tool-hangul strong {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.45;
  color: #1f1a14;
}

.tool-form-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tool-reset {
  border: 1px solid var(--line);
  background: #fff;
  color: #374151;
  padding: 0.65rem 1.1rem;
  border-radius: 6px;
  font: inherit;
  cursor: pointer;
}

.tool-submit {
  justify-self: start;
  border: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.65rem 1.1rem;
  border-radius: 6px;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.tool-result {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 1rem;
}

.tool-result h2 {
  margin: 0 0 0.85rem;
  font-size: 1.15rem;
}

.tool-result-table {
  width: 100%;
  max-width: none;
  border-collapse: collapse;
}

.tool-result-table th,
.tool-result-table td {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.tool-result-table th {
  width: 42%;
  color: var(--muted);
  font-weight: 500;
  text-align: left;
}

.tool-result-table td {
  text-align: right;
  padding-right: 5px;
}

.tool-result-table .is-emphasis th,
.tool-result-table .is-emphasis td {
  color: #1d4ed8;
  font-weight: 700;
}

.tool-status {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
}

.tool-status.is-ok {
  background: #ecfdf3;
  color: #166534;
}

.tool-status.is-warn {
  background: #fff7ed;
  color: #9a3412;
}

.tool-status.is-bad {
  background: #fef2f2;
  color: #991b1b;
}

.tool-copy p {
  margin: 0;
  line-height: 1.8;
}

.field-error {
  display: block;
  color: #b91c1c;
  font-size: 0.88rem;
  font-style: normal;
}

.related-pages,
.related-guides {
  margin-top: 2.5rem;
}

.related-pages h2,
.related-guides h2 {
  margin: 0 0 0.85rem;
  font-size: 1.25rem;
}

.related-block {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.related-block > h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.related-group {
  margin-bottom: 1.5rem;
}

.related-group h3 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
}

.featured-image {
  margin: 1.25rem 0 0;
}

.featured-image img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.hashtag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.hashtag-list li {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 0.65rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #1e3a5f;
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .header-inner {
    gap: 0.65rem;
  }

  .logo-img {
    height: var(--logo-h-mobile, 36px);
  }
}

.nav-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: rgba(17, 24, 39, 0.45);
}

.nav-drawer-backdrop[hidden] {
  display: none;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  width: 70%;
  max-width: 360px;
  height: 100%;
  background: #fff;
  box-shadow: -8px 0 24px rgba(15, 23, 42, 0.18);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
}

.nav-drawer.is-open {
  transform: translateX(0);
}

.nav-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
}

.nav-drawer-head strong {
  font-size: 1.02rem;
  color: #1e3a5f;
}

.nav-drawer-close {
  border: 0;
  background: transparent;
  width: 36px;
  height: 36px;
  font-size: 1.6rem;
  line-height: 1;
  color: #111827;
  cursor: pointer;
}

.nav-drawer-list {
  display: flex;
  flex-direction: column;
  overflow: auto;
}

.nav-drawer-list a {
  display: block;
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid #eef0f2;
  color: #111827;
  font-weight: 500;
  text-decoration: none;
}

.nav-drawer-list a:hover,
.nav-drawer-list a.is-active {
  background: #f8fafc;
  color: var(--accent);
  font-weight: 700;
}

body.is-nav-open,
body.is-search-open {
  overflow: hidden;
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 8vh 1.2rem 2rem;
  background: rgba(17, 24, 39, 0.5);
  overflow: auto;
}

.search-overlay[hidden] {
  display: none;
}

.search-overlay-inner {
  width: min(640px, 100%);
  max-height: calc(100vh - 12vh);
  overflow: auto;
  padding: 1.35rem 1.4rem 1.5rem;
  border-radius: 12px;
  background: #fff;
  color: #111827;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.28);
}

.search-overlay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.search-overlay-head h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.search-overlay-close {
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 1.8rem;
  line-height: 1;
  width: 36px;
  height: 36px;
  cursor: pointer;
}

.search-overlay-close:hover {
  color: #111827;
}

.search-overlay-form {
  display: flex;
  align-items: center;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #f9fafb;
}

.search-overlay-form input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 0.95rem;
  border: 0;
  background: transparent;
  color: #111827;
  font: inherit;
  font-size: 1rem;
  outline: none;
}

.search-overlay-form input::placeholder {
  color: #9ca3af;
}

.search-overlay-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  color: #374151;
  cursor: pointer;
}

.search-overlay-popular {
  margin-top: 1.35rem;
}

.search-overlay-popular-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
  color: #6b7280;
  font-size: 0.9rem;
}

.search-overlay-popular-head time {
  font-size: 0.8rem;
  color: #9ca3af;
}

.search-overlay-ranks {
  list-style: none;
  margin: 0;
  padding: 0.2rem 0 0;
}

.search-overlay-ranks a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0;
  color: #111827;
  text-decoration: none;
  border-bottom: 1px solid #f3f4f6;
}

.search-overlay-ranks a:hover {
  text-decoration: none;
  color: var(--accent);
}

.search-overlay-ranks em {
  flex: 0 0 1.4rem;
  color: #ef4444;
  font-style: normal;
  font-weight: 700;
}

.date-picker-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3vh 1rem;
  background: rgba(17, 24, 39, 0.45);
}

.date-picker-modal[hidden] {
  display: none;
}

.date-picker-dialog {
  width: min(560px, 100%);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.3);
  overflow: hidden;
}

.date-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.15rem 0.85rem;
  border-bottom: 1px solid var(--line);
}

.date-picker-head h3 {
  margin: 0;
  font-size: 1.15rem;
}

.date-picker-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 1rem 1.15rem 0.4rem;
}

.date-picker-nav select {
  height: 44px;
  padding: 0 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 1.05rem;
  background: #fff;
}

.date-picker-nav .is-year {
  min-width: 7.2rem;
}

.date-picker-nav .is-month {
  min-width: 5.4rem;
}

.date-picker-shift {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.date-picker-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 0.4rem 1rem 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
}

.date-picker-week span:first-child {
  color: #dc2626;
}

.date-picker-week span:last-child {
  color: #2563eb;
}

.date-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
  padding: 0.7rem 1rem 1rem;
}

.date-picker-grid button {
  min-height: 52px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font: inherit;
  font-size: 1.12rem;
  cursor: pointer;
}

.date-picker-grid button.is-sun {
  color: #dc2626;
}

.date-picker-grid button.is-sat {
  color: #2563eb;
}

.date-picker-grid button.is-out {
  color: #c5cdd6;
}

.date-picker-grid button.is-today {
  box-shadow: inset 0 0 0 1.5px var(--accent);
}

.date-picker-grid button.is-selected {
  background: var(--accent);
  color: #fff;
}

.date-picker-grid button:hover:not(.is-selected) {
  background: #eef4ff;
}

.date-picker-foot {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.15rem 1.05rem;
  border-top: 1px solid var(--line);
}

.date-picker-foot .date-picker-today {
  margin-left: auto;
  border: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.65rem 1.1rem;
  border-radius: 6px;
  font: inherit;
  cursor: pointer;
}

@media (max-width: 640px) {
  .date-picker-grid button {
    min-height: 44px;
    font-size: 1rem;
  }
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: #1a2332;
  box-shadow: 0 4px 14px rgba(26, 35, 50, 0.12);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #f5f7f8;
}

.back-to-top svg {
  display: block;
}

@media (max-width: 640px) {
  .back-to-top {
    right: 1rem;
    bottom: 1rem;
  }
}
