/* Datadrew Help Center — static replica of help.datadrew.io (Intercom legacy theme)
   Palette taken from the live site's theme custom properties. */

:root {
  --hc-body-bg: #fff;
  --hc-border: rgb(230, 230, 230);
  --hc-primary: #1a1a1a;
  --hc-secondary: #737373;
  --hc-accent: #09c; /* hsl(195,100%,40%) — link / card title color */
  --hc-header-bg: #000;
  --hc-header-color: #fff;
  --hc-card-bg: #fff;
  --hc-card-radius: 8px;
  --hc-card-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --hc-table-border: rgb(204, 204, 204);
  --hc-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  --hc-max: 900px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--hc-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--hc-primary);
  background: var(--hc-body-bg);
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.hc-container {
  max-width: var(--hc-max);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

a { color: var(--hc-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.skip-link {
  position: absolute;
  left: -9999px;
  background: #fff;
  color: var(--hc-primary);
  padding: 8px 16px;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ===== Header ===== */
.hc-header {
  background: var(--hc-header-bg);
  color: var(--hc-header-color);
  padding: 20px 0 28px;
}
.hc-header--tall { padding: 28px 0 48px; }
.hc-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.hc-header--tall .hc-header-top { margin-bottom: 56px; }
.hc-logo { display: inline-flex; align-items: center; }
.hc-logo img { display: block; height: 32px; width: auto; }
.hc-header-nav a {
  color: var(--hc-header-color);
  font-size: 14px;
  font-weight: 500;
  opacity: 0.92;
}
.hc-header-nav a:hover { opacity: 1; }
.hc-headline {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.hc-header-search { position: relative; }
.hc-search {
  position: relative;
  display: block;
}
.hc-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--hc-secondary);
  pointer-events: none;
}
.hc-search input {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--hc-primary);
  background: #fff;
  border: 1px solid var(--hc-border);
  border-radius: 10px;
  padding: 13px 16px 13px 42px;
  outline: none;
}
.hc-search input:focus { border-color: var(--hc-accent); }
.hc-search input::placeholder { color: var(--hc-secondary); }

/* Search results dropdown */
.hc-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-card-radius);
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.12);
  max-height: 420px;
  overflow-y: auto;
  z-index: 50;
  color: var(--hc-primary);
}
.hc-search-result {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hc-border);
}
.hc-search-result:last-child { border-bottom: 0; }
.hc-search-result:hover, .hc-search-result.active {
  background: #f5f5f5;
  text-decoration: none;
}
.hc-search-result-title { display: block; font-weight: 600; color: var(--hc-primary); font-size: 15px; }
.hc-search-result-desc { display: block; color: var(--hc-secondary); font-size: 13px; margin-top: 2px; }
.hc-search-result-col { display: block; color: var(--hc-accent); font-size: 12px; margin-top: 2px; }
.hc-search-empty { padding: 16px; color: var(--hc-secondary); font-size: 14px; }

/* ===== Main ===== */
.hc-main { flex: 1; padding: 32px 24px 64px; }

.hc-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--hc-secondary);
  margin-bottom: 24px;
}
.hc-breadcrumb a { color: var(--hc-secondary); }
.hc-breadcrumb a:hover { color: var(--hc-primary); }
.hc-breadcrumb svg { flex-shrink: 0; color: #b3b3b3; }
.hc-breadcrumb span { color: var(--hc-primary); }

/* Cards & article lists */
.hc-card {
  background: var(--hc-card-bg);
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-card-radius);
  box-shadow: var(--hc-card-shadow);
}
.hc-card-heading {
  font-size: 17px;
  font-weight: 600;
  padding: 18px 24px 6px;
}
.hc-article-list { display: block; }
.hc-article-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
}
.hc-article-list .hc-article-row + .hc-article-row { border-top: 1px solid var(--hc-border); }
.hc-article-row:hover { text-decoration: none; background: #fafafa; }
.hc-article-row:first-of-type { border-top-left-radius: var(--hc-card-radius); border-top-right-radius: var(--hc-card-radius); }
.hc-article-row:last-of-type { border-bottom-left-radius: var(--hc-card-radius); border-bottom-right-radius: var(--hc-card-radius); }
.hc-article-row-title { display: block; color: var(--hc-accent); font-weight: 500; font-size: 15px; }
.hc-article-row:hover .hc-article-row-title { text-decoration: underline; }
.hc-article-row-desc { color: var(--hc-secondary); font-size: 13.5px; margin-top: 2px; }
.hc-chevron { flex-shrink: 0; color: #b3b3b3; }

/* Homepage */
.hc-most-viewed { margin-bottom: 32px; }
.hc-collection-list { display: grid; grid-template-columns: 1fr; gap: 16px; }
.hc-collection-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 24px;
  background: var(--hc-card-bg);
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-card-radius);
  box-shadow: var(--hc-card-shadow);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.hc-collection-card:hover {
  text-decoration: none;
  border-color: #ccc;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.08);
}
.hc-collection-icon { flex-shrink: 0; width: 24px; height: 24px; margin-top: 3px; }
.hc-collection-card-title { display: block; color: var(--hc-accent); font-size: 16px; font-weight: 600; }
.hc-collection-card-desc { display: block; color: var(--hc-secondary); font-size: 14px; margin-top: 2px; }
.hc-collection-card-count { display: block; color: var(--hc-secondary); font-size: 13px; margin-top: 6px; }

/* Collection page */
.hc-collection-head { display: flex; gap: 18px; margin-bottom: 28px; }
.hc-collection-head .hc-collection-icon { width: 28px; height: 28px; margin-top: 6px; }
.hc-page-title { font-size: 28px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.hc-page-desc { color: var(--hc-secondary); font-size: 15.5px; margin-top: 6px; }
.hc-page-meta { color: var(--hc-secondary); font-size: 13.5px; margin-top: 8px; }
.hc-section { margin-top: 32px; }
.hc-section-title { font-size: 19px; font-weight: 600; margin-bottom: 12px; }
.hc-section-title a { color: var(--hc-primary); }
.hc-section-title a:hover { color: var(--hc-accent); }

/* ===== Article page ===== */
.hc-main--article { max-width: 760px; }
.hc-article-header { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--hc-border); }
.hc-article-body { font-size: 16px; }
.hc-article-body > * + * { margin-top: 14px; }
.hc-article-body h2 { font-size: 22px; font-weight: 600; margin-top: 32px; letter-spacing: -0.01em; }
.hc-article-body h3 { font-size: 18px; font-weight: 600; margin-top: 26px; }
.hc-article-body h4, .hc-article-body h5 { font-size: 16px; font-weight: 600; margin-top: 20px; }
.hc-article-body ul, .hc-article-body ol { padding-left: 26px; }
.hc-article-body li + li { margin-top: 6px; }
.hc-article-body li > p + p { margin-top: 6px; }
.hc-article-body hr { border: 0; border-top: 1px solid var(--hc-border); margin: 28px 0; }
.hc-article-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: #f5f5f5;
  border: 1px solid var(--hc-border);
  border-radius: 4px;
  padding: 1px 5px;
}
.hc-article-body pre {
  background: #f5f5f5;
  border: 1px solid var(--hc-border);
  border-radius: 6px;
  padding: 14px 16px;
  overflow-x: auto;
}
.hc-article-body pre code { background: none; border: 0; padding: 0; }
.hc-article-body img { max-width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--hc-border); }
.hc-media { margin: 20px 0; }
.hc-center { text-align: center; }
.hc-callout {
  background: #f0f7fa;
  border: 1px solid #d6eaf2;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 20px 0;
}
.hc-callout > * + * { margin-top: 10px; }
.hc-table-wrap { overflow-x: auto; margin: 20px 0; }
.hc-article-body table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
.hc-article-body td, .hc-article-body th {
  border: 1px solid var(--hc-table-border);
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
}
.hc-article-body thead th { background: #fafafa; font-weight: 600; }
.hc-button {
  display: inline-block;
  background: var(--hc-primary);
  color: #fff;
  font-weight: 500;
  font-size: 14.5px;
  border-radius: 6px;
  padding: 10px 18px;
}
.hc-button:hover { text-decoration: none; opacity: 0.9; }
.hc-video { position: relative; padding-bottom: 56.25%; height: 0; margin: 20px 0; }
.hc-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 8px; }

.hc-related { margin-top: 40px; }
.hc-404 { padding: 48px 32px; text-align: center; }
.hc-404 .hc-page-desc { margin-bottom: 24px; }

/* ===== Footer ===== */
.hc-footer {
  border-top: 1px solid var(--hc-border);
  padding: 32px 0;
  color: #909aa5;
  font-size: 14px;
}
.hc-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: center;
  margin-bottom: 12px;
}
.hc-footer-links a { color: #909aa5; }
.hc-footer-links a:hover { color: var(--hc-primary); }
.hc-footer-copy { text-align: center; font-size: 13px; }

/* ===== Cookie banner ===== */

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .hc-headline { font-size: 22px; }
  .hc-header--tall .hc-header-top { margin-bottom: 32px; }
  .hc-main { padding: 24px 16px 48px; }
  .hc-container { padding: 0 16px; }
  .hc-article-row, .hc-collection-card { padding-left: 16px; padding-right: 16px; }
  .hc-card-heading { padding-left: 16px; padding-right: 16px; }
  .hc-page-title { font-size: 23px; }
}
