/* TechInHost Help Center
   Brand: #38b1ed blue, #6bcbf4 light blue, #094462 navy, #161c2d ink, Plus Jakarta Sans */

:root {
  --blue: #38b1ed;
  --blue-light: #6bcbf4;
  --blue-wash: #e6f5fd;
  --blue-tint: #f3fafe;
  --blue-edge: #cfe6f4;
  --navy: #094462;
  --navy-deep: #06324a;
  --ink: #161c2d;
  --text: #33405a;
  --muted: #627186;
  --line: #e2ecf3;
  --link: #0a76b0;
  --wa: #25d366;
  --focus: rgba(56, 177, 237, .55);
  --ring: 0 0 0 4px rgba(56, 177, 237, .18);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--link); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; letter-spacing: -.02em; margin: 0; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.icon { width: 20px; height: 20px; flex: none; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip:focus { left: 8px; color: #fff; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 15px; font-weight: 700; line-height: 1;
  padding: 13px 26px; border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn .icon { width: 18px; height: 18px; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); color: #fff; }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--blue-wash); color: var(--navy); }
.btn-ghost { border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--blue); color: var(--navy); }

/* ---------- Header ---------- */

.site-header { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { height: 34px; width: auto; display: block; }
.brand-label {
  font-size: 16px; font-weight: 700; color: var(--ink);
  padding-left: 14px; border-left: 1.5px solid var(--line); white-space: nowrap;
}
.header-nav { display: flex; align-items: center; gap: 28px; }
.header-nav a:not(.btn) { color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; }
.header-nav a:not(.btn):hover { color: var(--blue); }
.header-nav .btn { padding: 12px 30px; }

/* ---------- Search ---------- */

.search {
  position: relative; display: flex; align-items: center;
  max-width: 760px; margin: 0 auto; padding: 6px 6px 6px 20px;
  background: #fff; border: 1.5px solid var(--blue-edge); border-radius: 18px;
  text-align: left; transition: border-color .15s, box-shadow .15s;
}
.search:focus-within { border-color: var(--blue); box-shadow: var(--ring); }
.search > .icon { width: 22px; height: 22px; color: var(--muted); }
.search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 16px; color: var(--ink); padding: 12px 14px;
}
.search input::placeholder { color: #8d9bad; }
.search .btn { border-radius: 12px; padding: 14px 24px; }

.search--lg { padding: 8px 8px 8px 24px; box-shadow: 0 24px 50px -24px rgba(9, 68, 98, .35); }
.search--lg:focus-within { box-shadow: var(--ring), 0 24px 50px -24px rgba(9, 68, 98, .35); }
.search--lg input { font-size: 18px; padding: 16px; }
.search--lg .btn { padding: 17px 30px; }

.search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30;
  list-style: none; margin: 0; padding: 8px; max-height: 420px; overflow: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 24px 48px -20px rgba(22, 28, 45, .3);
}
.search-results a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 12px 14px; border-radius: 10px;
  color: var(--ink); font-weight: 600; text-decoration: none; line-height: 1.4;
}
.search-results a:hover,
.search-results [aria-selected="true"] a { background: var(--blue-wash); color: var(--navy); }
.sr-cat { font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.search-empty { padding: 12px 14px; color: var(--muted); font-size: 15px; }

/* ---------- Home ---------- */

.hero {
  padding: 88px 0 72px; text-align: center;
  background: linear-gradient(180deg, #dcf0fb 0%, #edf8fd 55%, #fff 100%);
}
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 3.75rem); font-weight: 800; letter-spacing: -.035em; }
.hero-sub { max-width: 40rem; margin: 18px auto 36px; font-size: 1.125rem; color: var(--muted); }

.common {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px;
  max-width: 860px; margin: 26px auto 0;
}
.common-label { margin-right: 4px; font-size: 14px; font-weight: 600; color: var(--muted); }
.chip {
  padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--blue-edge);
  color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none;
}
.chip:hover { border-color: var(--blue); color: var(--navy); }

.section { padding-top: 72px; }
.section-title { margin-bottom: 24px; font-size: 1.75rem; font-weight: 800; }

.topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.topic {
  display: flex; flex-direction: column; padding: 26px 26px 22px;
  border: 1px solid var(--line); border-radius: 24px; background: #fff; transition: border-color .15s;
}
.topic:hover { border-color: #bfe2f5; }
.topic-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; text-decoration: none; }
.topic-name { display: block; font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.topic-head:hover .topic-name { color: var(--navy); }
.topic-count { display: block; font-size: 14px; color: var(--muted); }
.topic-list { list-style: none; margin: 0 0 auto; padding: 0; }
.topic-list li + li { border-top: 1px solid var(--line); }
.topic-list a { display: block; padding: 10px 0; color: var(--text); font-size: 15px; line-height: 1.45; text-decoration: none; }
.topic-list a:hover { color: var(--link); }
.topic-more { margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--link); text-decoration: none; }

.tile {
  display: grid; place-items: center; flex: none;
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--blue-wash); color: var(--blue);
}
.icon--tile { width: 28px; height: 28px; }
.tile--lg { width: 72px; height: 72px; border-radius: 20px; }
.tile--lg .icon--tile { width: 34px; height: 34px; }

.two-col { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; }

.rank-list, .plain-list { list-style: none; margin: 0; padding: 0; }
.rank-list { counter-reset: rank; }
.rank-list li {
  counter-increment: rank;
  display: grid; grid-template-columns: 34px 1fr; padding: 14px 0; border-top: 1px solid var(--line);
}
.rank-list li::before { content: counter(rank); grid-row: span 2; font-size: 15px; font-weight: 800; color: var(--blue); }
.plain-list li { padding: 14px 0; border-top: 1px solid var(--line); }
.rank-list a, .plain-list a { color: var(--ink); font-weight: 600; line-height: 1.45; text-decoration: none; }
.rank-list a:hover, .plain-list a:hover { color: var(--link); }
.meta { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.meta .icon { width: 15px; height: 15px; }

/* ---------- Support band ---------- */

.support { padding-top: 88px; }
.support-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 28px;
  padding: 48px 52px; border-radius: 28px; background: var(--navy); color: #fff;
}
.support h2 { color: #fff; font-size: 1.75rem; font-weight: 800; }
.support p { max-width: 34rem; margin: 8px 0 0; color: rgba(255, 255, 255, .78); }
.support-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Inner pages ---------- */

.page-top { padding: 32px 0 4px; background: linear-gradient(180deg, var(--blue-wash), #fff); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); font-weight: 600; text-decoration: none; }
.crumbs a:hover { color: var(--link); }
.crumbs [aria-hidden] { color: #b4c2d0; }

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

.cat-head { display: flex; align-items: center; gap: 20px; margin-top: 22px; }
.cat-head h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; letter-spacing: -.03em; }
.cat-head p { margin: 4px 0 0; color: var(--muted); }

.article-list { list-style: none; margin: 0; padding: 0; }
.article-list li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.article-list li:first-child { padding-top: 6px; }
.article-list h2 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
.article-list h2 a { color: var(--ink); text-decoration: none; }
.article-list h2 a:hover { color: var(--link); }
.article-list p { max-width: 72ch; margin: 6px 0 0; font-size: 15px; color: var(--muted); }

.side { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 28px; }
.side-title { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--ink); }
.side-nav { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.side-nav a {
  display: block; margin-left: -2px; padding: 7px 0 7px 16px; border-left: 2px solid transparent;
  color: var(--muted); font-size: 14.5px; line-height: 1.45; text-decoration: none;
}
.side-nav a:hover { color: var(--ink); }
.side-nav a.is-active, .side-nav a[aria-current="page"] { border-left-color: var(--blue); color: var(--navy); font-weight: 600; }
.side-nav .lvl-3 a { padding-left: 30px; font-size: 14px; }

.help-card { padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--blue-tint); }
.help-card h2 { font-size: 1.05rem; font-weight: 700; }
.help-card p { margin: 6px 0 14px; font-size: 14px; color: var(--muted); }
.help-card .btn { width: 100%; padding: 12px 18px; font-size: 14px; }
.help-card .btn + .btn { margin-top: 8px; }

/* ---------- Article ---------- */

.article-title { margin-top: 18px; font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; }
.article-meta { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta .icon { width: 16px; height: 16px; }

.toc-mobile { display: none; margin-top: 24px; padding: 2px 18px 10px; border: 1px solid var(--line); border-radius: 14px; }
.toc-mobile summary { padding: 12px 0; font-weight: 700; color: var(--ink); cursor: pointer; }

.prose { max-width: 72ch; margin-top: 32px; font-size: 1.0625rem; line-height: 1.75; color: var(--text); }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 2.2em 0 .6em; font-size: 1.5rem; font-weight: 800; scroll-margin-top: 24px; }
.prose h3 { margin: 1.9em 0 .5em; font-size: 1.2rem; font-weight: 700; scroll-margin-top: 24px; }
.prose h4 { margin: 1.6em 0 .4em; font-size: 1.05rem; color: var(--ink); }
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--blue); }
.prose a { text-underline-offset: 3px; }
.prose strong, .prose b { color: var(--ink); }
.prose img {
  display: block; margin: 1.4em 0; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 12px 30px -18px rgba(22, 28, 45, .25);
}
.prose code {
  padding: .15em .4em; border-radius: 6px; background: var(--blue-wash); color: var(--navy);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em;
}
.prose pre {
  position: relative; overflow-x: auto; margin: 1.4em 0; padding: 18px 20px;
  border-radius: 14px; background: #0f2433; color: #e6f1f8; font-size: 14px; line-height: 1.6;
}
.prose pre code { padding: 0; background: none; color: inherit; }
.copy-btn {
  position: absolute; top: 10px; right: 10px; padding: 6px 10px; border: 0; border-radius: 8px;
  background: rgba(255, 255, 255, .12); color: #fff; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
}
.copy-btn:hover { background: rgba(255, 255, 255, .22); }
.table-wrap { overflow-x: auto; margin: 1.4em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--blue-tint); color: var(--ink); }
.prose blockquote {
  margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--blue);
  border-radius: 0 12px 12px 0; background: var(--blue-tint);
}
.prose iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; }

.feedback { max-width: 72ch; margin-top: 48px; padding: 22px 26px; border: 1px solid var(--line); border-radius: 20px; }
.fb-ask { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.fb-ask p, .fb-thanks { margin: 0; font-weight: 700; color: var(--ink); }
.fb-buttons { display: flex; gap: 10px; }
.fb-buttons .btn { padding: 10px 26px; }
.fb-more label { display: block; margin-bottom: 10px; font-weight: 700; color: var(--ink); }
.fb-more textarea {
  width: 100%; min-height: 96px; padding: 12px 14px; resize: vertical;
  border: 1.5px solid var(--line); border-radius: 12px; font: inherit; font-size: 15px; color: var(--ink);
}
.fb-more textarea:focus { outline: 0; border-color: var(--blue); box-shadow: var(--ring); }
.fb-more .btn { margin-top: 12px; padding: 11px 22px; }

.related { max-width: 72ch; margin-top: 56px; }
.related h2 { margin-bottom: 8px; font-size: 1.25rem; font-weight: 800; }

/* ---------- Search page, empty and error states ---------- */

.search-page .search { max-width: none; margin: 22px 0 0; }
.result-count { margin: 28px 0 10px; color: var(--muted); }
.result-cat { font-size: 13px; font-weight: 600; color: var(--link); }
mark { padding: 0 2px; border-radius: 3px; background: #d4eefc; color: inherit; }

.empty { max-width: 40rem; padding: 40px 0 0; }
.empty h2 { font-size: 1.4rem; font-weight: 800; }
.empty p { color: var(--muted); }
.empty .search { margin: 20px 0 0; }

.notfound { padding-top: 96px; text-align: center; }
.notfound h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; letter-spacing: -.03em; }
.notfound p { max-width: 34rem; margin: 12px auto 32px; color: var(--muted); }

/* ---------- Footer ---------- */

.site-footer { margin-top: 88px; padding: 28px 0 36px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--navy); }

.wa-float {
  position: fixed; left: 20px; bottom: 20px; z-index: 40;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--wa); color: #fff; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .35);
}
.wa-float:hover { color: #fff; filter: brightness(.95); }
.wa-float .icon { width: 28px; height: 28px; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; gap: 0; }
  .layout aside { display: none; }
  .toc-mobile { display: block; }
}

@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 720px) {
  .header-nav a:first-child { display: none; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .header-inner { height: 66px; }
  .brand img { height: 28px; }
  .brand-label { font-size: 14px; padding-left: 10px; }
  .hero { padding: 56px 0 48px; }
  .hero-sub { font-size: 1rem; }
  .search--lg { padding-left: 18px; }
  .search--lg input { font-size: 16px; padding: 14px 10px; }
  .search--lg .btn { display: none; }
  .section { padding-top: 56px; }
  .topics { grid-template-columns: 1fr; }
  .support-inner { padding: 32px 26px; }
  .support-actions, .support-actions .btn { width: 100%; }
  .feedback { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
