/* KinDox complaint guide (/guides/how-to-complain-about-a-care-home).
   Scoped under .cg so nothing here can affect any other page. Loaded only by that page. */
.cg { --navy:#0B1F3B; --navy-2:#12305a; --sky:#0A8BFF; --ink:#1c2633; --muted:#55606f; --line:#dfe4ea; --paper:#ffffff; --tint:#f3f6fa; --warm:#fbf8f2; --accent:#0b5cad; --alert-bg:#fdf2ef; --alert-line:#c4442f;
  color: var(--ink); font-family: var(--font-body); }
.cg *, .cg *::before, .cg *::after { box-sizing: border-box; }
.cg a { color: var(--accent); text-underline-offset: 3px; }
.cg a:focus-visible, .cg button:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }
.cg h1, .cg h2, .cg h3 { font-family: var(--font-display); }
@media print { .site-nav, .site-footer { display: none; } }
.cg {
    --navy: #0B1F3B;
    --navy-2: #12305a;
    --sky: #0A8BFF;
    --ink: #1c2633;
    --muted: #55606f;
    --line: #dfe4ea;
    --paper: #ffffff;
    --tint: #f3f6fa;
    --warm: #fbf8f2;
    --accent: #0b5cad;
    --alert-bg: #fdf2ef;
    --alert-line: #c4442f;
  }
.cg {   
    font: 17px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.cg .wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.cg .hero { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 22px 0 40px; }
.cg .crumbs { font-size: 14px; color: #a9b8cc; margin: 0 0 22px; }
.cg .crumbs a { color: #cdd8e6; }
.cg .eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; font-weight: 800; color: #9fd3ff; background: rgba(77,178,255,.14); padding: 4px 10px; border-radius: 999px; margin: 0 0 14px; }
.cg .hero h1 { font-size: clamp(30px, 5.4vw, 44px); line-height: 1.15; margin: 0 0 14px; color: #fff; letter-spacing: -.01em; }
.cg .hero .lede { font-size: 19px; color: #e3eaf3; margin: 0 0 22px; }
.cg .hero .meta { font-size: 14px; color: #a9b8cc; margin: 18px 0 0; }
.cg .hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.cg .hero .btn-primary { background: #fff; color: var(--navy); }
.cg .hero .btn-ghost { border: 2px solid rgba(255,255,255,.45); color: #fff; }
.cg .content { padding-top: 28px; }
.cg h2 { font-size: 26px; line-height: 1.3; color: var(--navy); margin: 52px 0 12px; letter-spacing: -.005em; }
.cg h3 { font-size: 19px; line-height: 1.4; color: var(--navy); margin: 28px 0 6px; display: flex; align-items: center; }
.cg p, .cg ul, .cg ol { margin: 0 0 16px; }
.cg li { margin-bottom: 6px; }
.cg .note { font-size: 15px; color: var(--muted); }
.cg .scope { font-size: 15px; color: var(--muted); border-left: 3px solid var(--line); padding-left: 12px; }
.cg .toc { background: var(--tint); border-radius: 14px; padding: 18px 20px; margin: 24px 0; }
.cg .toc p { margin: 0 0 8px; font-weight: 800; color: var(--navy); font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.cg .toc ol { margin: 0; padding-left: 22px; columns: 1; }
@media (min-width: 640px) {
.cg .toc ol { columns: 2; column-gap: 32px; }
}
.cg .toc li { break-inside: avoid; }
.cg .callout { background: var(--alert-bg); border: 1px solid #f3d3cb; border-left: 6px solid var(--alert-line); padding: 18px 20px; border-radius: 14px; margin: 28px 0; }
.cg .callout h2 { margin: 0 0 6px; font-size: 21px; }
.cg .routes { display: grid; gap: 12px; margin: 16px 0; }
@media (min-width: 720px) {
.cg .routes { grid-template-columns: repeat(3, 1fr); }
}
.cg .route { border: 1px solid #efd9d3; border-radius: 12px; padding: 14px 16px; background: #fff; }
.cg .route > strong { color: var(--navy); display: block; margin-bottom: 4px; line-height: 1.35; }
.cg .route p { margin: 0; font-size: 16px; }
.cg .step-n { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 15px; margin-right: 10px; }
.cg .who-list { display: grid; gap: 12px; margin: 16px 0 8px; }
.cg .who-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.cg .who-card h3 { margin: 0 0 4px; font-size: 17px; }
.cg .who-card p { margin: 0; font-size: 16px; }
.cg .letter-box { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 18px 0; background: var(--warm); box-shadow: 0 1px 2px rgba(11,31,59,.06); }
.cg .letter-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; background: var(--navy); color: #fff; }
.cg .letter-bar span { font-weight: 700; }
.cg .copy-btn { font: inherit; font-size: 15px; font-weight: 700; border: 0; border-radius: 9px; padding: 8px 14px; background: #fff; color: var(--navy); cursor: pointer; min-height: 40px; }
.cg .copy-status { font-size: 14px; color: #fff; flex: 1 1 auto; text-align: right; }
.cg pre.letter { margin: 0; padding: 20px; white-space: pre-wrap; word-wrap: break-word; font: 16px/1.65 Georgia, "Times New Roman", serif; color: var(--ink); max-height: 560px; overflow: auto; }
.cg .download-card { display: grid; gap: 14px; align-items: center; background: var(--tint); border-radius: 14px; padding: 18px 20px; margin: 18px 0; }
.cg .download-card p { margin: 0; }
.cg .downloads { display: flex; flex-wrap: wrap; gap: 10px; }
.cg .btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 700; border-radius: 10px; padding: 12px 18px; min-height: 46px; font-size: 16px; line-height: 1.2; }
.cg .btn-primary { background: var(--navy); color: #fff; }
.cg .btn-secondary { border: 2px solid var(--navy); color: var(--navy); background: #fff; }
.cg .kindox { display: grid; gap: 18px; background: var(--navy); color: #e3eaf3; border-radius: 18px; padding: 26px 22px; margin: 52px 0 10px; }
.cg .kindox h2 { margin: 0; color: #fff; }
.cg .kindox p { margin: 0; }
.cg .kindox a:not(.btn) { color: #9fd3ff; }
.cg .kindox .brand-mark { width: 44px; height: 44px; border-radius: 10px; }
.cg .kindox .price { font-weight: 800; color: #fff; }
.cg .kindox .btn-primary { background: #fff; color: var(--navy); }
.cg .kindox .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.cg .kindox .note { color: #a9b8cc; }
.cg .kindox-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.cg .related { margin-top: 44px; }
.cg .related ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.cg .related li a { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; text-decoration: none; font-weight: 700; color: var(--navy); }
.cg .related li a span { display: block; font-weight: 400; color: var(--muted); font-size: 15px; }
.cg .sources li { margin-bottom: 6px; font-size: 15px; }
.cg .small-print { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 32px; }
@media print {
.cg .hero { background: none; color: var(--ink); }
.cg .hero h1 { color: var(--navy); }
.cg pre.letter { max-height: none; }
}
.cg .wrap { max-width: 800px; }
@media (min-width: 1140px) {
.cg .hero .wrap { max-width: 1120px; padding-left: calc(16px + 250px + 56px); }
.cg .wrap.content { max-width: 1120px; display: grid; grid-template-columns: 250px minmax(0, 768px); column-gap: 56px; align-items: start; }
.cg .wrap.content > * { grid-column: 2; }
.cg .wrap.content > .toc { grid-column: 1; grid-row: 1 / span 400; position: sticky; top: 88px; margin-top: 0; }
.cg .toc ol { columns: 1 !important; padding-left: 20px; }
.cg .toc li { font-size: 15px; margin-bottom: 8px; }
.cg .to-contents { display: none !important; }
}
@media (min-width: 760px) {
.cg { font-size: 18px; line-height: 1.72; }
.cg .hero .lede { font-size: 20px; }
}
.cg .content > h2.sec { margin-top: 64px; padding-top: 30px; border-top: 1px solid var(--line); }
@media (max-width: 759px) {
.cg .content > h2.sec { margin-top: 44px; padding-top: 24px; font-size: 24px; }
}
.cg .template-feature { display: grid; gap: 18px; grid-template-columns: 1fr; background: #fff; border: 2px solid var(--navy); border-radius: 18px; padding: 20px; margin: -22px 0 26px; position: relative; box-shadow: 0 10px 30px rgba(11,31,59,.12); }
@media (min-width: 640px) {
.cg .template-feature { grid-template-columns: 120px 1fr; align-items: start; padding: 24px; }
}
.cg .template-feature img { width: 100%; max-width: 120px; height: auto; border-radius: 6px; border: 1px solid var(--line); box-shadow: 0 4px 12px rgba(11,31,59,.15); display: none; }
@media (min-width: 640px) {
.cg .template-feature img { display: block; }
}
.cg .tf-label { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #0a6b2e; background: #e4f6ea; border-radius: 999px; padding: 3px 10px; margin: 0 0 8px; }
.cg .template-feature h2 { margin: 0 0 6px; font-size: 22px; }
.cg .template-feature ul { margin: 0 0 14px; padding-left: 20px; }
.cg .template-feature li { margin-bottom: 2px; }
.cg .template-feature .downloads .btn { flex: 1 1 200px; }
.cg .template-feature .copy-link { display: inline-block; margin-top: 10px; font-size: 15px; font-weight: 600; }
.cg pre.letter { font-size: 17px; line-height: 1.8; padding: 22px 20px; max-height: none; overflow: visible; }
@media (max-width: 759px) {
.cg pre.letter { font-size: 16.5px; padding: 18px 16px; }
}
.cg mark.ph { background: #fff0c2; color: inherit; border-radius: 3px; padding: 0 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.cg .letter-box.is-collapsed pre.letter { max-height: 420px; overflow: hidden; position: relative; }
.cg .letter-box.is-collapsed .letter-wrap::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(rgba(251,248,242,0), var(--warm)); pointer-events: none; }
.cg .letter-wrap { position: relative; }
.cg .expand-btn { display: block; width: 100%; font: inherit; font-size: 16px; font-weight: 700; color: var(--navy); background: #fff; border: 0; border-top: 1px solid var(--line); padding: 14px; cursor: pointer; min-height: 48px; }
.cg .letter-legend { font-size: 15px; color: var(--muted); margin: -6px 0 12px; }
.cg .letter-bar .copy-btn { min-width: 120px; }
.cg .kindox-benefits { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.cg .kindox-benefits li { display: flex; gap: 10px; align-items: flex-start; margin: 0; color: #fff; font-weight: 600; }
.cg .kindox-benefits li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: #4db2ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5 16.2 5.8 12.5l-1.4 1.4 5.1 5.1L20 8.5l-1.4-1.4z' fill='%230B1F3B'/%3E%3C/svg%3E") center/16px no-repeat; }
.cg .kindox-head { display: flex; align-items: center; gap: 14px; }
.cg details.sources-box { border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; margin: 0 0 8px; }
.cg details.sources-box summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 14px 0; list-style-position: inside; }
.cg details.sources-box ul { padding-left: 20px; }
.cg .to-contents { position: fixed; right: 14px; bottom: 16px; z-index: 6; display: none; align-items: center; gap: 6px; background: var(--navy); color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; padding: 11px 16px; border-radius: 999px; box-shadow: 0 6px 20px rgba(11,31,59,.3); }
.cg .to-contents.is-visible { display: inline-flex; }
.cg :target { scroll-margin-top: 80px; }
.cg h2[id], .cg section[id], .cg nav[id] { scroll-margin-top: 80px; }
@media print {
.cg .to-contents, .cg .template-feature, .cg .expand-btn { display: none !important; }
.cg .letter-box.is-collapsed pre.letter { max-height: none; }
.cg .letter-wrap::after { display: none; }
}
