/* Kadara Help Center (Slice 7). Consumes theme.css + rp-system.css + kadara-solutions.css.
   Namespace: `hc-`. Utilitarian, search-led, calm clinical tone. */

/* slim Help utility strip beneath the global shell */
.hc-strip { border-bottom: 1px solid var(--line); background: var(--bg-section); }
.hc-strip-inner { max-width: 1120px; margin: 0 auto; padding: 11px 24px; display: flex; align-items: center; gap: 16px; font-size: 13px; }
.hc-strip a { color: var(--sub); text-decoration: none; }
.hc-strip a:hover { color: var(--ink); }
.hc-strip .hc-strip-home { font-weight: 600; color: var(--ink); }
.hc-strip .hc-strip-sep { color: var(--faint); }
.hc-strip .hc-strip-right { margin-left: auto; display: flex; gap: 16px; }

/* readable content wrap for help */
.hc-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.hc-wrap--article { max-width: 760px; }

/* search-led hero (compact, not a marketing hero) */
.hc-hero { padding: 56px 0 40px; text-align: center; }
.hc-hero h1 { font-family: var(--ff-heading); font-size: clamp(30px, 4vw, 44px); font-weight: 700; letter-spacing: -0.03em; color: var(--ink); margin: 0 0 22px; }
.hc-search { max-width: 620px; margin: 0 auto; position: relative; text-align: left; }
.hc-search-field { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper); padding: 4px 6px 4px 18px; transition: border-color .12s ease; }
.hc-search-field:focus-within { border-color: var(--brand-verdigris); }
.hc-search-ic { color: var(--faint); font-size: 17px; flex: 0 0 auto; }
.hc-search-input { flex: 1; border: none; outline: none; background: transparent; font-family: var(--ff-body); font-size: 16px; color: var(--ink); padding: 13px 0; }
.hc-search-input::placeholder { color: var(--faint); }
.hc-search-clear { border: none; background: var(--bg-section); color: var(--sub); border-radius: 8px; padding: 8px 12px; font-size: 13px; cursor: pointer; }
.hc-search-clear:focus-visible { outline: 2px solid var(--brand-verdigris); outline-offset: 2px; }

.hc-results { margin-top: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,.06); }
.hc-results:empty { display: none; }
.hc-result { display: block; padding: 14px 18px; border-top: 1px solid var(--line); text-decoration: none; }
.hc-result:first-child { border-top: none; }
.hc-result:hover, .hc-result:focus-visible { background: var(--bg-section); outline: none; }
.hc-result .hc-r-cat { font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand-brass-text); }
.hc-result .hc-r-title { display: block; font-family: var(--ff-heading); font-size: 16px; font-weight: 600; color: var(--ink); margin: 2px 0; }
.hc-result .hc-r-line { font-size: 13.5px; color: var(--sub); line-height: 1.45; }
.hc-noresult { padding: 18px; font-size: 14.5px; color: var(--sub); text-align: center; }
.hc-noresult a { color: var(--brand-verdigris-text); text-decoration: none; }

/* popular tasks */
.hc-section { padding: 12px 0 8px; }
.hc-section-label { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--faint); margin: 0 0 16px; }
.hc-popular { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.hc-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 9px 16px; text-decoration: none; transition: border-color .12s ease; }
.hc-chip:hover { border-color: var(--brand-verdigris-line); }
.hc-chip .hc-chip-cat { font-family: var(--ff-mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }

/* category grid */
.hc-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hc-cat { display: flex; flex-direction: column; gap: 5px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); text-decoration: none; transition: border-color .12s ease, transform .12s ease; }
.hc-cat:hover { border-color: var(--brand-verdigris-line); transform: translateY(-2px); }
.hc-cat .hc-cat-name { font-family: var(--ff-heading); font-size: 17px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.hc-cat .hc-cat-desc { font-size: 13.5px; line-height: 1.5; color: var(--sub); margin: 0; }
.hc-cat .hc-cat-count { margin-top: auto; padding-top: 8px; font-family: var(--ff-mono); font-size: 11px; color: var(--brand-verdigris-text); }
.hc-cat.is-soon { cursor: default; background: var(--bg-section); }
.hc-cat.is-soon .hc-cat-name { color: var(--sub); }
.hc-cat.is-soon .hc-cat-count { color: var(--faint); }
@media (max-width: 900px) { .hc-cats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .hc-cats { grid-template-columns: 1fr; } }

/* doorway + safety help blocks */
.hc-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 44px; }
.hc-block { padding: 24px 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.hc-block h3 { font-family: var(--ff-heading); font-size: 19px; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); margin: 0 0 8px; }
.hc-block p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.55; color: var(--sub); }
.hc-block a { font-family: var(--ff-mono); font-size: 12px; font-weight: 600; color: var(--brand-verdigris-text); text-decoration: none; }
.hc-block a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) { .hc-blocks { grid-template-columns: 1fr; } }

/* escalation */
.hc-escalate { margin: 48px 0 8px; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; padding: 26px 28px; border: 1px solid var(--brand-verdigris-line); border-radius: 16px; background: var(--brand-verdigris-soft); }
.hc-escalate h3 { font-family: var(--ff-heading); font-size: 20px; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); margin: 0 0 4px; }
.hc-escalate p { margin: 0; font-size: 14.5px; color: var(--sub); }
.hc-escalate p a { color: var(--brand-verdigris-text); text-decoration: none; }
@media (max-width: 560px) { .hc-escalate { grid-template-columns: 1fr; } }

/* breadcrumb */
.hc-breadcrumb { font-size: 13px; color: var(--faint); padding: 22px 0 0; }
.hc-breadcrumb a { color: var(--sub); text-decoration: none; }
.hc-breadcrumb a:hover { color: var(--ink); }

/* category page list */
.hc-cathead { padding: 18px 0 6px; }
.hc-cathead h1 { font-family: var(--ff-heading); font-size: clamp(26px, 3vw, 34px); font-weight: 700; letter-spacing: -0.025em; color: var(--ink); margin: 0 0 8px; }
.hc-cathead p { margin: 0; font-size: 15.5px; color: var(--sub); max-width: 58ch; }
.hc-artlist { margin: 24px 0 0; border-top: 1px solid var(--line); }
.hc-artrow { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 20px 4px; border-bottom: 1px solid var(--line); text-decoration: none; }
.hc-artrow:hover .hc-art-title { color: var(--brand-verdigris-text); }
.hc-artrow .hc-art-title { font-family: var(--ff-heading); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 3px; transition: color .12s ease; }
.hc-artrow .hc-art-line { font-size: 14px; color: var(--sub); margin: 0; }
.hc-artrow .hc-art-arrow { color: var(--faint); font-size: 17px; }

/* article template */
.hc-article { padding: 8px 0 20px; }
.hc-article h1 { font-family: var(--ff-heading); font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; letter-spacing: -0.03em; color: var(--ink); margin: 14px 0 20px; line-height: 1.12; }
.hc-summary { padding: 18px 22px; border-left: 3px solid var(--brand-verdigris); background: var(--brand-verdigris-soft); border-radius: 0 12px 12px 0; margin-bottom: 28px; }
.hc-summary p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink); }
.hc-body { font-size: 16px; line-height: 1.7; color: var(--ink); }
.hc-body h2 { font-family: var(--ff-heading); font-size: 21px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin: 32px 0 12px; }
.hc-body p { margin: 0 0 16px; color: var(--sub); }
.hc-body ol, .hc-body ul { margin: 0 0 16px; padding-left: 0; list-style: none; counter-reset: step; }
.hc-body ol li { position: relative; padding: 0 0 16px 44px; counter-increment: step; color: var(--sub); }
.hc-body ol li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-verdigris-soft); color: var(--brand-verdigris-text); font-family: var(--ff-mono); font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.hc-body ul li { position: relative; padding: 0 0 10px 22px; color: var(--sub); }
.hc-body ul li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-verdigris); }
.hc-body b, .hc-body strong { color: var(--ink); font-weight: 600; }

.hc-note { padding: 16px 0 0; border-top: 1px solid var(--line); margin: 24px 0; font-size: 14.5px; line-height: 1.6; color: var(--sub); }
.hc-note.is-warn { border-top-color: var(--red); }
.hc-note .hc-note-k { display: block; font-family: var(--ff-heading); font-weight: 700; font-size: 12px; letter-spacing: 0.02em; text-transform: uppercase; margin-bottom: 6px; color: var(--brand-brass-text); }
.hc-note.is-warn .hc-note-k { color: var(--red); }
.hc-note b { color: var(--ink); }

/* related + helpful + escalation on article */
.hc-related { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.hc-related h2 { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--faint); margin: 0 0 14px; }
.hc-related a { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 15px; }
.hc-related a:hover { color: var(--brand-verdigris-text); }
.hc-related a .hc-rel-arrow { color: var(--faint); }

.hc-helpful { margin-top: 32px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 14px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hc-helpful p { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.hc-helpful .hc-help-btns { display: flex; gap: 10px; }
.hc-hbtn { border: 1px solid var(--line); background: var(--paper); border-radius: var(--r-pill); padding: 8px 20px; font-size: 14px; color: var(--ink); cursor: pointer; transition: border-color .12s ease; }
.hc-hbtn:hover { border-color: var(--brand-verdigris-line); }
.hc-hbtn:focus-visible { outline: 2px solid var(--brand-verdigris); outline-offset: 2px; }
.hc-helpful .hc-help-ack { font-size: 14px; color: var(--brand-verdigris-text); }

.hc-artfoot { margin-top: 28px; padding: 20px 24px; border-radius: 14px; background: var(--bg-section); font-size: 14.5px; color: var(--sub); }
.hc-artfoot a { color: var(--brand-verdigris-text); text-decoration: none; font-weight: 600; }
.hc-artfoot a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) { .hc-cat, .hc-result { transition: none !important; } }
