/* portal-web: 원본 1행의 Pretendard jsDelivr @import를 지웠다(외부 로드 0, Design_Portal_Frontend_v1.md §8.4). 폰트는 npm pretendard 1.3.9를 앱이 자체 호스팅한다. 2행부터 concept/frontend_v2/assets/portal.css와 바이트가 같다. */

:root {
  --bg: #f5f9ff;
  --surface: #ffffff;
  --surface-soft: #f5f9ff;
  --ink: #1e293b;
  --body-text: #475569;
  --muted: #475569;
  --line: #cfe0f5;
  --brand: #1a5fd0;
  --brand-strong: #1746a2;
  --brand-soft: #dbeafe;
  --sky: #1a5fd0;
  --accent: #1a5fd0;
  --warning: #f2a84b;
  --shadow: 0 22px 60px rgba(11, 42, 91, 0.12);
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1280px;
  --gutter: 56px;
  --header-height: 88px;
  --section-space: 112px;
  --cta-space: 90px;
}

body.theme-cleaning {
  --bg: #f5f9ff;
  --surface-soft: #f5f9ff;
  --ink: #1e293b;
  --body-text: #475569;
  --muted: #475569;
  --line: #cfe0f5;
  --brand: #1a5fd0;
  --brand-strong: #1746a2;
  --brand-soft: #dbeafe;
  --sky: #1a5fd0;
  --accent: #1a5fd0;
  --shadow: 0 22px 60px rgba(11, 42, 91, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body-text);
  font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  word-break: keep-all;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 700;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100vw - var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(217, 232, 244, 0.85);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: calc(var(--header-height) - 1px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.header-nav-only {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.header-nav-only .brand {
  justify-self: start;
}

.header-nav-only .main-nav {
  justify-self: center;
}

.header-nav-only .menu-button {
  justify-self: end;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.03rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--brand);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--brand) 24%, transparent);
  color: #fff;
  font-size: 0.9rem;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--body-text);
  font-size: 0.94rem;
  font-weight: 700;
}

.main-nav a {
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-action {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--brand-strong);
  font-size: 0.86rem;
  font-weight: 700;
}

.menu-button {
  width: 44px;
  height: 44px;
  display: none;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  cursor: pointer;
}

.menu-button span,
.menu-button::before,
.menu-button::after {
  content: "";
  width: 20px;
  height: 2px;
  display: block;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: var(--section-space) 0;
  background: var(--surface-soft);
}

.hero::before {
  content: "";
  position: absolute;
  top: 52px;
  left: -130px;
  width: 280px;
  height: 280px;
  border: 1px solid color-mix(in srgb, var(--brand) 16%, transparent);
  border-radius: 50%;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: 74px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--brand-strong);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 15%, transparent);
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.065em;
}

.hero h1 strong {
  color: var(--brand);
  font-weight: 700;
}

.hero-copy {
  max-width: 680px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 1.09rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--brand);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--brand) 27%, transparent);
  color: #fff;
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
}

.hero-visual {
  position: relative;
  min-height: 430px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 38px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.visual-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.visual-label span:last-child {
  color: var(--brand-strong);
}

.evidence-map {
  position: relative;
  height: 310px;
  margin-top: 20px;
}

.map-orbit {
  position: absolute;
  inset: 18px 24px 12px;
  border: 1px dashed color-mix(in srgb, var(--brand) 35%, transparent);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.map-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 148px;
  height: 148px;
  display: grid;
  place-items: center;
  padding: 24px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--brand), var(--brand-strong));
  box-shadow: 0 24px 48px color-mix(in srgb, var(--brand) 28%, transparent);
  color: #fff;
  text-align: center;
  transform: translate(-50%, -50%);
}

.map-node {
  position: absolute;
  min-width: 110px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(34, 89, 123, 0.1);
  font-size: 0.84rem;
  font-weight: 700;
  text-align: center;
}

.map-node:nth-child(3) { top: 20px; right: 12px; }
.map-node:nth-child(4) { right: 2px; bottom: 20px; }
.map-node:nth-child(5) { bottom: 5px; left: 14px; }
.map-node:nth-child(6) { top: 34px; left: 0; }

.portal-flow {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}

.portal-flow-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 16px;
  min-height: 84px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(34, 89, 123, 0.08);
}

.flow-number {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-weight: 800;
}

.portal-flow-card strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
  line-height: 1.35;
}

.portal-flow-card small {
  color: var(--muted);
  line-height: 1.5;
}

.cleaning-dashboard {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.cleaning-card {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(34, 89, 123, 0.07);
}

.cleaning-card:nth-child(2) { transform: translateX(24px); }

.cleaning-card:nth-child(3) { transform: translateX(8px); }

.cleaning-icon,
.category-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-weight: 800;
}

.cleaning-card strong {
  display: block;
  line-height: 1.35;
}

.cleaning-card small {
  color: var(--muted);
}

.status-pill,
.tag,
.meta-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.status-pill {
  padding: 6px 10px;
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.trust-strip {
  position: relative;
  margin-top: -28px;
  z-index: 4;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(34, 89, 123, 0.09);
}

.trust-item {
  padding: 22px 26px;
}

.trust-item + .trust-item {
  border-left: 1px solid var(--line);
}

.trust-item strong {
  display: block;
  margin-bottom: 2px;
  color: var(--brand-strong);
}

.trust-item span {
  color: var(--muted);
  font-size: 0.88rem;
}

.section {
  padding: var(--section-space) 0;
}

.section-tight {
  padding: var(--cta-space) 0;
}

.section-white {
  background: #fff;
}

.section-soft {
  background: var(--surface-soft);
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 36px;
}

.section-title {
  margin: 0;
  font-size: 36px;
  line-height: 1.25;
  letter-spacing: -0.045em;
}

.section-description {
  max-width: 580px;
  margin: 10px 0 0;
  color: var(--muted);
}

.text-link {
  color: var(--brand-strong);
  font-weight: 700;
  white-space: nowrap;
}

.search-panel {
  display: flex;
  gap: 10px;
  margin-top: 32px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(34, 89, 123, 0.08);
}

.search-panel label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.search-panel input {
  min-width: 0;
  flex: 1;
  padding: 12px 14px;
  border: 0;
  outline: none;
  color: var(--ink);
}

.search-panel button {
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.category-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.category-grid-five {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.category-grid-five > .category-card {
  grid-column: span 2;
}

.category-grid-five > .category-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.category-grid-five > .category-card:nth-child(5) {
  grid-column: 4 / span 2;
}

/* 대표 카드는 개수에 맞춰 2개는 2열, 3개는 3열, 4개는 2×2로 배치합니다. */
.category-grid-featured {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.category-grid-featured:has(> :only-child) {
  grid-template-columns: minmax(0, 1fr);
}

.category-grid-featured:has(> :nth-child(3):last-child) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  transition: transform 180ms ease, box-shadow 180ms ease, border 180ms ease;
}

.category-card:hover,
.category-card:focus-visible {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  box-shadow: 0 20px 40px rgba(34, 89, 123, 0.11);
}

.category-card h3 {
  margin: 22px 0 3px;
  font-size: 1.12rem;
  letter-spacing: -0.025em;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.category-card .card-foot {
  margin-top: auto;
  padding-top: 14px;
  color: var(--brand-strong);
  font-size: 0.82rem;
  font-weight: 700;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.article-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.article-card:hover,
.article-card:focus-within {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(34, 89, 123, 0.1);
}

.article-card[hidden] {
  display: none;
}

.card-visual {
  display: none;
}

.card-body {
  padding: 23px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.tag {
  padding: 5px 9px;
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.card-date {
  color: var(--muted);
  font-size: 0.78rem;
}

.article-card h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.48;
  letter-spacing: -0.028em;
}

.article-card p {
  display: -webkit-box;
  margin: 10px 0 18px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.91rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-link {
  color: var(--brand-strong);
  font-size: 0.87rem;
  font-weight: 700;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.process-step {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-md);
  background: #fff;
}

.process-step b {
  display: block;
  margin-bottom: 26px;
  color: var(--brand);
  font-size: 0.85rem;
}

.process-step h3 {
  margin: 0 0 8px;
  font-size: 1.04rem;
}

.process-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.87rem;
}

.newsletter {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  padding: 38px 44px;
  border-radius: 28px;
  background: var(--brand-soft);
  color: var(--body-text);
}

 .newsletter h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  letter-spacing: -0.04em;
}

.newsletter p {
  margin: 8px 0 0;
  color: var(--body-text);
}

.site-footer {
  padding: 50px 0 34px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr;
  gap: 50px;
}

.footer-title {
  margin: 0 0 12px;
  font-size: 1rem;
}

.footer-copy,
.footer-links {
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-links {
  display: grid;
  gap: 6px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.page-hero {
  padding: var(--section-space) 0;
  background: var(--surface-soft);
}

.page-hero h1 {
  max-width: 850px;
  font-size: 48px;
}

.page-hero p {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.81rem;
}

.breadcrumbs span::before {
  content: "/";
  margin-right: 8px;
  color: var(--muted);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.filter-chip {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
}

.filter-chip:hover,
.filter-chip:focus-visible,
.filter-chip.is-active {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.list-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
  gap: 40px;
}

.list-layout-single {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: none;
}

.article-list {
  display: grid;
  gap: 14px;
}

.article-list .article-card {
  display: grid;
  grid-template-columns: 1fr;
}

.side-panel {
  position: sticky;
  top: 102px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.side-panel h2,
.side-panel h3 {
  margin-top: 0;
  font-size: 1.03rem;
}

.side-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-list a {
  display: block;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.empty-state {
  padding: 38px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--muted);
  text-align: center;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 790px) 250px;
  align-items: start;
  justify-content: space-between;
  gap: 56px;
}

.article-shell-single {
  grid-template-columns: minmax(0, 1fr);
  max-width: none;
}

.article-shell-single > .article-content {
  min-width: 0;
}

.article-content {
  font-size: 1rem;
}

.article-content h2 {
  margin: 58px 0 18px;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  line-height: 1.35;
  letter-spacing: -0.04em;
}

.article-content h3 {
  margin: 34px 0 12px;
  font-size: 1.18rem;
  letter-spacing: -0.025em;
}

.article-content p {
  margin: 0 0 18px;
  color: var(--body-text);
}

.article-content ul,
.article-content ol {
  margin: 0 0 22px;
  padding-left: 1.3em;
}

.article-content li + li {
  margin-top: 7px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.meta-chip {
  padding: 7px 11px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}

.answer-box {
  margin: 32px 0;
  padding: 27px 30px;
  border-left: 5px solid var(--brand);
  border-radius: 0 18px 18px 0;
  background: var(--brand-soft);
}

.answer-box strong {
  display: block;
  margin-bottom: 7px;
  color: var(--brand-strong);
}

.summary-box {
  margin: 26px 0 38px;
  padding: 26px 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.summary-box h2 {
  margin: 0 0 14px;
  font-size: 1.22rem;
}

.summary-box ul {
  margin-bottom: 0;
}

.table-wrap {
  margin: 24px 0 30px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.91rem;
}

th,
td {
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface-soft);
  color: var(--ink);
  font-weight: 700;
}

tr:last-child td {
  border-bottom: 0;
}

.faq-list {
  display: grid;
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.faq-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.article-content .faq-item h3 {
  margin: 0 0 9px;
}

.article-content .faq-item p {
  margin: 0;
  color: var(--muted);
}

.reference-list {
  padding-left: 0 !important;
  list-style: none;
}

.reference-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.reference-list strong {
  color: var(--brand-strong);
}

.notice-box {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.toc a.is-active {
  color: var(--brand-strong);
  font-weight: 700;
}

.prototype-note {
  padding: 10px 0;
  background: var(--ink);
  color: #dbe8f3;
  font-size: 0.78rem;
  text-align: center;
}

@media (min-width: 1600px) {
  :root { --container: 1360px; --gutter: 80px; }
}

@media (max-width: 1200px) {
  :root { --gutter: 40px; }
}

@media (max-width: 1100px) {
  :root { --header-height: 76px; }

  .header-nav-only {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .main-nav,
  .header-action {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .main-nav.is-open {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 24px;
    background: #fff;
    font-size: 1.1rem;
  }

  .hero-grid,
  .list-layout,
  .article-shell {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 46px;
  }

  .hero-visual {
    min-height: 390px;
  }

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

  .category-grid-five {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-grid-five > .category-card,
  .category-grid-five > .category-card:nth-child(4),
  .category-grid-five > .category-card:nth-child(5) {
    grid-column: auto;
  }

  .category-grid-five > .category-card:nth-child(5) {
    grid-column: 1 / -1;
    width: calc(50% - 8px);
    justify-self: center;
  }

  .category-grid-featured,
  .category-grid-featured:has(> :only-child),
  .category-grid-featured:has(> :nth-child(3):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .side-panel {
    position: static;
  }

  .article-shell .side-panel {
    display: none;
  }
}

@media (max-width: 700px) {
  :root {
    --gutter: 22px;
    --header-height: 70px;
    --section-space: 72px;
    --cta-space: 60px;
  }

  html { font-size: 15px; }
  body { font-size: 15px; }
  .section-title { font-size: 28px; }

  .header-inner {
    min-height: calc(var(--header-height) - 1px);
  }

  .main-nav.is-open {
    top: var(--header-height);
  }

  .hero {
    padding: var(--section-space) 0;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 34px;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 360px;
    padding: 20px;
    border-radius: 28px;
  }

  .map-node {
    min-width: 94px;
    padding: 9px;
    font-size: 0.75rem;
  }

  .cleaning-card,
  .cleaning-card:nth-child(2),
  .cleaning-card:nth-child(3) {
    grid-template-columns: 42px 1fr;
    transform: none;
  }

  .cleaning-card .status-pill {
    display: none;
  }

  .trust-strip {
    margin-top: -18px;
  }

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

  .trust-item {
    padding: 17px 20px;
  }

  .trust-item + .trust-item {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section {
    padding: var(--section-space) 0;
  }

  .section-header {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 28px;
  }

  .category-grid,
  .article-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

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

  .category-grid-five > .category-card:nth-child(5) {
    grid-column: auto;
    width: auto;
    justify-self: stretch;
  }

  .category-grid-featured,
  .category-grid-featured:has(> :only-child),
  .category-grid-featured:has(> :nth-child(3):last-child) {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: 164px;
  }

  .newsletter {
    grid-template-columns: 1fr;
    padding: 30px 24px;
  }

  .newsletter .button {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .page-hero {
    padding: var(--section-space) 0;
  }

  .article-list .article-card {
    grid-template-columns: 1fr;
  }

  .search-panel {
    flex-direction: column;
  }

  .search-panel button {
    min-height: 46px;
  }

  .answer-box,
  .summary-box {
    padding: 22px;
  }

  th,
  td {
    min-width: 150px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Markdown and handoff preview share the public article typography. */
.article-shell-single > .article-content { width: 100%; max-width: none; margin-inline: 0; }
.article-content { overflow-wrap: anywhere; }
.article-content h2 { font-size: 36px; }
.article-content h3 { font-size: 24px; line-height: 1.4; }
.article-content h4 { font-size: 20px; margin: 28px 0 12px; color: var(--ink); }
.article-content h5 { font-size: 18px; margin: 24px 0 10px; color: var(--ink); }
.article-content h6 { font-size: 16px; margin: 20px 0 8px; color: var(--ink); }
.markdown-body > :first-child { margin-top: 0; }
.markdown-body blockquote { margin: 28px 0; padding: 22px 26px; border-left: 3px solid var(--brand); background: var(--surface-soft); }
.markdown-body blockquote > :last-child { margin-bottom: 0; }
.markdown-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.markdown-body pre { max-width: 100%; overflow-x: auto; padding: 20px; border-radius: 12px; background: var(--surface-soft); }
.markdown-body code { font-size: .9em; background: var(--surface-soft); padding: 2px 5px; border-radius: 4px; }
.markdown-body pre code { padding: 0; }
.markdown-body hr { margin: 40px 0; border: 0; border-top: 1px solid var(--line); }
.markdown-body li > ul, .markdown-body li > ol { margin-top: 8px; }
.markdown-body .task-list-item { list-style: none; }
.markdown-body input[type="checkbox"] { margin-right: 8px; accent-color: var(--brand); }
.markdown-body th, .markdown-body td { overflow-wrap: normal; }
.markdown-body .align-center { text-align: center; }
.markdown-body .align-right { text-align: right; }
.table-wrap:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.preview-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-block: 24px; }
.preview-toolbar input { max-width: 100%; }
.preview-toolbar a { color: var(--brand); text-decoration: underline; }
.preview-status { margin: 0; width: 100%; color: var(--muted); }
.preview-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.preview-source { width: 100%; min-height: 640px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; font: 14px/1.8 monospace; resize: vertical; color: var(--ink); background: #fff; }
.preview-result { min-width: 0; padding: 32px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.preview-result h1 { font-size: 34px; line-height: 1.35; margin-top: 0; }
.preview-result h2 { font-size: 28px; }
.preview-result .article-content { max-width: 100%; }
@media (max-width: 1100px) { .preview-layout { grid-template-columns: minmax(0, 1fr); } .preview-source { min-height: 320px; } }
@media (max-width: 700px) { .article-content h2 { font-size: 28px; } .article-content h3 { font-size: 22px; } .preview-result { padding: 22px; } }
@media (max-width: 420px) { .brand { gap: 8px; } .brand small { font-size: 10px; } .portal-flow-card { padding: 14px; gap: 12px; } }
@media (max-width: 380px) { .hero-visual { padding: 16px; } .portal-flow-card { grid-template-columns: 38px minmax(0, 1fr); } .flow-number { width: 38px; height: 38px; } }
