:root {
  color-scheme: light;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --khc-green: #42d993;
  --khc-green-deep: #126b4a;
  --khc-green-hover: #0d5c3f;
  --khc-green-wash: #e8f8ef;
  --khc-forest: #10261c;
  --ink: #17251e;
  --muted: #596b62;
  --line: #d8e3dc;
  --surface: #fff;
  --page: #f4f7f5;
  --surface-soft: #f8fbf9;
  --focus: #187b55;
  --radius-card: 14px;
  --radius-control: 10px;
  --shadow-card: 0 10px 28px rgb(16 38 28 / 5%);
  color: var(--ink);
  background: var(--page);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--khc-green-deep); text-underline-offset: .2em; }
a:hover { color: var(--khc-green-hover); }
:focus-visible { outline: 3px solid var(--khc-green); outline-offset: 3px; }
.site-header { min-height: 72px; padding: 0 max(24px, calc((100vw - 1120px) / 2)); background: var(--khc-forest); border-bottom: 1px solid #284335; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; font-weight: 720; font-size: 17px; letter-spacing: -.02em; }
.brand:hover { color: #fff; }
.brand-mark { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; flex: none; }
.header-label { color: #c1d1c8; font-size: 13px; font-weight: 550; letter-spacing: .015em; }
.page-shell { width: min(100% - 40px, 1120px); margin: 0 auto; flex: 1; padding: 48px 0 72px; }
.hero { text-align: center; margin: 0 auto 36px; max-width: 800px; padding: clamp(28px, 5vw, 52px) clamp(18px, 5vw, 52px); background: linear-gradient(135deg, #e8f8ef 0%, #f8fcf9 70%, #fff 100%); border: 1px solid #d7eee1; border-radius: 20px; box-shadow: var(--shadow-card); }
.eyebrow { color: var(--khc-green-deep); font-size: 11px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 10px 0; color: var(--ink); font-size: clamp(32px, 5vw, 46px); letter-spacing: -.04em; line-height: 1.12; }
.hero p { margin: 10px 0 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.search-form { display: flex; gap: 10px; margin: 28px auto 0; padding: 7px; max-width: 680px; background: var(--surface); border: 1px solid #c6d8cc; border-radius: 13px; box-shadow: 0 5px 18px rgb(16 38 28 / 7%); }
.search-form:focus-within { border-color: var(--khc-green-deep); box-shadow: 0 0 0 3px rgb(66 217 147 / 22%); }
.search-form input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 12px 13px; color: var(--ink); font: inherit; font-size: 15px; background: transparent; }
.search-form input::placeholder { color: #718078; }
button { min-height: 44px; border: 0; border-radius: 9px; padding: 0 19px; color: #10261c; background: var(--khc-green); font: inherit; font-size: 14px; font-weight: 720; cursor: pointer; transition: background-color .15s ease, transform .15s ease; }
button:hover { background: #34cb84; }
button:active { transform: translateY(1px); }
.results-heading { margin: 32px 0 13px; color: var(--ink); font-size: 19px; letter-spacing: -.02em; }
.catalogue-section { margin-top: 38px; }
.catalogue-section .results { grid-template-columns: repeat(auto-fit, minmax(min(100%, 255px), 1fr)); }
.results { display: grid; gap: 12px; }
.result-card { display: block; min-width: 0; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); color: inherit; text-decoration: none; box-shadow: 0 2px 8px rgb(16 38 28 / 2%); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.result-card:hover { border-color: #8edab4; box-shadow: var(--shadow-card); color: inherit; transform: translateY(-1px); }
.result-card h2 { margin: 0; color: var(--khc-green-deep); font-size: 16px; line-height: 1.45; letter-spacing: -.01em; }
.result-card p { margin: 7px 0 0; color: var(--muted); line-height: 1.55; }
.result-meta { margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.article-header { margin-bottom: 22px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.breadcrumbs > * + *::before { content: "/"; margin-right: 8px; color: #93a49a; }
.breadcrumbs a { color: var(--khc-green-deep); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.article-title { margin: 0 0 8px; max-width: 850px; font-size: clamp(29px, 4vw, 38px); line-height: 1.18; }
.article-updated { margin: 0; color: var(--muted); font-size: 13px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 245px; gap: 34px; align-items: start; }
.article-layout > article { min-width: 0; }
.article-body { padding: clamp(22px, 4vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-card); line-height: 1.75; overflow-wrap: anywhere; }
.article-body h1, .article-body h2, .article-body h3, .article-body h4 { margin: 1.8em 0 .65em; color: var(--ink); line-height: 1.32; scroll-margin-top: 24px; }
.article-body h1:first-child, .article-body h2:first-child, .article-body h3:first-child { margin-top: 0; }
.article-body h1 { font-size: 28px; }
.article-body h2 { font-size: 23px; }
.article-body h3 { font-size: 19px; }
.article-body h4 { font-size: 16px; }
.article-body p { margin: .95em 0; }
.article-body li { padding-left: 3px; margin: .32em 0; }
.article-body li::marker { color: var(--khc-green-deep); }
.article-body img { display: block; max-width: 100%; height: auto; border-radius: 8px; }
.article-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; border-spacing: 0; font-size: 14px; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.article-body th { background: var(--khc-green-wash); font-weight: 700; }
.article-body pre { max-width: 100%; overflow-x: auto; padding: 16px; background: #f1f5f2; border: 1px solid #e0e8e2; border-radius: 10px; line-height: 1.55; font-size: 13px; }
.article-body code, .article-body pre { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }
.article-body :not(pre) > code { padding: .12em .35em; border-radius: 5px; background: #eef3ef; font-size: .9em; }
.article-body iframe { width: 100%; min-height: 360px; border: 0; border-radius: 10px; }
.article-body [data-callout] { margin: 18px 0; padding: 15px 18px; border: 1px solid #bfe9d1; border-left: 4px solid var(--khc-green-deep); background: var(--khc-green-wash); border-radius: 8px; }
.toc { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow: auto; padding: 17px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 4px 15px rgb(16 38 28 / 4%); }
.toc h2 { margin: 0 0 12px; color: var(--ink); font-size: 14px; }
.toc ol { margin: 0; padding-left: 19px; }
.toc li { margin: 8px 0; font-size: 12px; line-height: 1.5; }
.toc li.subsection { margin-left: 9px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.loading, .empty-state, .error-state { padding: 28px; color: var(--muted); text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); }
.error-state { border-color: #f0c5bd; background: #fff7f5; color: #7b3026; }
.site-footer { min-height: 60px; padding: 12px 24px; border-top: 1px solid var(--line); background: #edf3ef; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 9px; font-size: 12px; }
.site-footer span + span::before { content: "·"; margin-right: 9px; color: #8aa195; }
@media (max-width: 760px) {
  .site-header { min-height: 64px; padding: 0 16px; }
  .brand { gap: 9px; font-size: 16px; }
  .brand-mark { width: 32px; height: 32px; }
  .header-label { font-size: 12px; }
  .page-shell { width: min(100% - 28px, 960px); padding-top: 28px; }
  .hero { margin-bottom: 28px; border-radius: 16px; }
  .article-layout { display: flex; flex-direction: column; gap: 16px; }
  .article-layout > article { width: 100%; }
  .toc { position: static; order: -1; width: 100%; max-height: 250px; margin: 0; }
  .search-form { flex-direction: column; }
  .search-form button { min-height: 46px; }
  .article-body iframe { min-height: 230px; }
  .site-footer { flex-direction: column; gap: 4px; padding: 14px; }
  .site-footer span + span::before { content: ""; margin: 0; }
}
@media (max-width: 420px) {
  .header-label { max-width: 112px; text-align: right; }
  .page-shell { width: min(100% - 24px, 960px); }
  .article-body { padding: 20px 17px; }
  .article-title { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
