/* Documentation page for the Data Migration Toolkit for Splunk. Scoped under #ase-docs, with the
   id in every selector so site themes do not restyle it. */
#ase-docs {
  --d-accent: #0b4f8a; --d-accent2: #1673c4; --d-ink: #17202b; --d-muted: #556170; --d-line: #dde3ea;
  --d-soft: #f4f6f9; --d-card: #ffffff; --d-code: #eef1f5; --d-pre: #0f1b2a; --d-pre-ink: #e6edf5;
  --d-good: #1f7a4d; --d-good-bg: #e6f4ec; --d-warn: #9a6200; --d-warn-bg: #fdf3e1; --d-bad: #b42318; --d-bad-bg: #fdeceb;
  --d-info: #355f8c; --d-info-bg: #e8f0f8;
  color: var(--d-ink);
  font: 16px/1.62 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  text-align: left;
}
#ase-docs *, #ase-docs *::before, #ase-docs *::after { box-sizing: border-box; }

/* width: step out of a narrow theme column, like the planner */
#ase-docs.ase-docs-w-wide, #ase-docs.ase-docs-w-full {
  --d-w: min(1320px, calc(100vw - 48px));
  width: var(--d-w) !important; max-width: none !important;
  margin-left: calc(50% - var(--d-w) / 2) !important; margin-right: calc(50% - var(--d-w) / 2) !important;
}
#ase-docs.ase-docs-w-full { --d-w: min(1680px, calc(100vw - 48px)); }

#ase-docs .ase-docs-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 40px; align-items: start; }
#ase-docs .ase-docs-body { min-width: 0; max-width: 900px; }

/* sidebar */
#ase-docs .ase-docs-side { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow: auto; padding: 4px 4px 24px 0; font-size: 14px; }
body.admin-bar #ase-docs .ase-docs-side { top: 56px; max-height: calc(100vh - 80px); }
#ase-docs .d-search { width: 100%; font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid #c3ccd6; border-radius: 8px; margin: 0 0 6px; background: #fff; color: var(--d-ink); }
#ase-docs .d-search-count { font-size: 12px; color: var(--d-muted); min-height: 18px; margin-bottom: 6px; }
#ase-docs .d-toc, #ase-docs .d-toc ul { list-style: none; margin: 0; padding: 0; }
#ase-docs .d-toc > li { margin: 1px 0; }
#ase-docs .d-toc a { display: block; padding: 4px 8px; border-radius: 6px; color: var(--d-ink); text-decoration: none; line-height: 1.35; }
#ase-docs .d-toc a:hover { background: var(--d-soft); }
#ase-docs .d-toc > li > a { font-weight: 600; }
#ase-docs .d-toc ul { display: none; padding-left: 10px; margin: 2px 0 6px; border-left: 2px solid var(--d-line); }
#ase-docs .d-toc li.is-open > ul { display: block; }
#ase-docs .d-toc ul a { font-size: 13px; color: var(--d-muted); padding: 3px 8px; }
#ase-docs .d-toc a.is-active { background: var(--d-info-bg); color: var(--d-accent); }
#ase-docs .d-toc li.is-hidden { display: none; }
#ase-docs .d-toc-toggle { display: none; }
#ase-docs .d-side-links { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--d-line); font-size: 13px; }
#ase-docs .d-side-links a { display: block; color: var(--d-accent); padding: 2px 8px; text-decoration: none; }

/* type */
#ase-docs h1, #ase-docs h2, #ase-docs h3, #ase-docs h4 { color: var(--d-ink); font-family: inherit; letter-spacing: -0.01em; text-transform: none; scroll-margin-top: 24px; }
body.admin-bar #ase-docs h2, body.admin-bar #ase-docs h3, body.admin-bar #ase-docs h4, body.admin-bar #ase-docs dt { scroll-margin-top: 56px; }
#ase-docs h2 { font-size: 28px; line-height: 1.25; font-weight: 750; margin: 56px 0 14px; padding-top: 22px; border-top: 1px solid var(--d-line); }
#ase-docs h3 { font-size: 21px; line-height: 1.3; font-weight: 700; margin: 34px 0 10px; }
#ase-docs h4 { font-size: 17px; font-weight: 700; margin: 24px 0 8px; }
#ase-docs p { margin: 0 0 14px; }
#ase-docs ul, #ase-docs ol { margin: 0 0 16px; padding-left: 24px; }
#ase-docs li { margin: 4px 0; }
#ase-docs a { color: var(--d-accent); text-decoration: underline; text-underline-offset: 2px; }
#ase-docs code { font: 0.86em/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--d-code); color: var(--d-ink); padding: 2px 5px; border-radius: 4px; word-break: break-word; }
#ase-docs var { font-style: italic; color: #7a4ab3; font-family: inherit; }
#ase-docs pre var, #ase-docs code var { color: #c9a7ff; }
#ase-docs code var { color: #7a4ab3; }
#ase-docs kbd { font: 12px ui-monospace, Menlo, Consolas, monospace; border: 1px solid #c3ccd6; border-bottom-width: 2px; border-radius: 4px; padding: 1px 5px; background: #fff; }
#ase-docs .d-small { font-size: 14px; color: var(--d-muted); }
#ase-docs .d-ui { display: inline-block; font-weight: 600; font-size: 0.92em; background: var(--d-soft); border: 1px solid var(--d-line); border-radius: 5px; padding: 0 6px; line-height: 1.55; white-space: nowrap; }

/* hero */
#ase-docs .d-hero { background: var(--d-soft); border: 1px solid var(--d-line); border-radius: 14px; padding: 30px 32px 26px; margin-bottom: 8px; }
#ase-docs .d-kicker { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--d-accent); }
#ase-docs .d-title { font-size: 36px; line-height: 1.15; font-weight: 800; margin: 6px 0 10px; padding: 0; border: 0; }
#ase-docs .d-lead { font-size: 18px; color: var(--d-muted); max-width: 760px; }
#ase-docs .d-hero-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
#ase-docs .d-btn { display: inline-block; font-weight: 600; font-size: 15px; padding: 9px 16px; border-radius: 8px; background: var(--d-accent); color: #fff !important; text-decoration: none; border: 1px solid var(--d-accent); }
#ase-docs .d-btn-ghost { background: #fff; color: var(--d-accent) !important; }

/* code blocks */
#ase-docs pre { position: relative; background: var(--d-pre); color: var(--d-pre-ink); border-radius: 8px; padding: 14px 16px; margin: 8px 0 16px; overflow-x: auto;
  font: 13.5px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre; border: 0; max-width: 100%; }
#ase-docs pre.has-copy { padding-right: 76px; }
#ase-docs .d-copy { position: absolute; top: 8px; right: 8px; font: 600 12px/1 -apple-system, "Segoe UI", Roboto, sans-serif; padding: 6px 10px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #e6edf5; cursor: pointer; }
#ase-docs .d-copy:hover { background: rgba(255,255,255,.18); }

/* tables */
#ase-docs table.d-table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 15px; background: #fff; border: 1px solid var(--d-line); border-radius: 8px; overflow: hidden; display: table; }
#ase-docs .d-table th { text-align: left; background: #eef1f5; color: var(--d-muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; font-weight: 650; padding: 8px 12px; border: 0; border-bottom: 1px solid var(--d-line); }
#ase-docs .d-table td { padding: 9px 12px; border: 0; border-bottom: 1px solid var(--d-line); vertical-align: top; }
#ase-docs .d-table tr:last-child td { border-bottom: 0; }
#ase-docs .d-table-wrap { overflow-x: auto; margin: 8px 0 20px; }
#ase-docs .d-table-wrap > table.d-table { margin: 0; }
#ase-docs .d-ok { color: var(--d-good); font-weight: 650; }
#ase-docs .d-warn-t { color: var(--d-warn); font-weight: 650; }
#ase-docs .d-pill { display: inline-block; border-radius: 999px; padding: 0 9px; font-size: 12.5px; font-weight: 650; white-space: nowrap; }
#ase-docs .d-high { background: var(--d-bad-bg); color: var(--d-bad); }
#ase-docs .d-med { background: var(--d-warn-bg); color: var(--d-warn); }
#ase-docs .d-low, #ase-docs .d-info { background: var(--d-info-bg); color: var(--d-info); }

/* callouts */
#ase-docs .d-note { background: var(--d-info-bg); border-radius: 8px; padding: 12px 16px; margin: 12px 0 18px; font-size: 15px; }
#ase-docs .d-note.d-warn { background: var(--d-warn-bg); }
#ase-docs .d-note.d-tip { background: var(--d-good-bg); }
#ase-docs .d-note > :last-child { margin-bottom: 0; }

/* numbered steps */
#ase-docs ol.d-steps { list-style: none; counter-reset: dstep; padding-left: 0; margin: 10px 0 20px; }
#ase-docs ol.d-steps > li { counter-increment: dstep; position: relative; padding: 2px 0 10px 44px; margin: 0 0 6px; }
#ase-docs ol.d-steps > li[value="0"] { counter-reset: dstep -1; }
#ase-docs ol.d-steps > li::before { content: counter(dstep); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--d-accent); color: #fff;
  font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
#ase-docs ol.d-steps > li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 34px; bottom: 0; width: 2px; background: var(--d-line); }
#ase-docs ol.d-steps pre { margin-top: 8px; }

/* flow, scenario, figure */
#ase-docs .d-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 12px 0 18px; }
#ase-docs .d-flow > div { background: var(--d-soft); border: 1px solid var(--d-line); border-radius: 10px; padding: 14px; font-size: 14.5px; line-height: 1.5; }
#ase-docs .d-flow span { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: var(--d-accent); color: #fff; font-weight: 700; font-size: 13px; align-items: center; justify-content: center; margin-right: 8px; }
#ase-docs .d-flow b { font-size: 17px; display: inline-block; margin-bottom: 6px; }
#ase-docs .d-scenario { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; background: var(--d-soft); border: 1px solid var(--d-line); border-radius: 10px; padding: 16px 18px; margin: 8px 0 18px; font-size: 15px; }
#ase-docs .d-scenario b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--d-accent); margin-bottom: 2px; }
#ase-docs .d-fig { margin: 12px 0 22px; }
#ase-docs .d-fig img { display: block; max-width: 100%; height: auto; border: 1px solid var(--d-line); border-radius: 10px; box-shadow: 0 4px 18px rgba(14,42,71,.10); }
#ase-docs .d-fig figcaption { font-size: 13.5px; color: var(--d-muted); margin-top: 8px; }

/* tabs */
#ase-docs .d-tabs { margin: 8px 0 16px; }
#ase-docs .d-tabbar { display: flex; gap: 4px; border-bottom: 1px solid var(--d-line); margin-bottom: 8px; }
#ase-docs .d-tabbar button { font: 600 13.5px/1 -apple-system, "Segoe UI", Roboto, sans-serif; padding: 8px 14px; background: none; border: 0; border-bottom: 2px solid transparent;
  color: var(--d-muted); cursor: pointer; margin-bottom: -1px; border-radius: 6px 6px 0 0; }
#ase-docs .d-tabbar button[aria-selected="true"] { color: var(--d-accent); border-bottom-color: var(--d-accent); background: var(--d-soft); }
#ase-docs .d-tabs > [data-tab][hidden] { display: none; }

/* glossary and faq */
#ase-docs dl.d-glossary dt, #ase-docs dl.d-faq dt { font-weight: 700; margin-top: 16px; }
#ase-docs dl.d-glossary dd, #ase-docs dl.d-faq dd { margin: 4px 0 0; color: #2b3746; }
#ase-docs dl.d-glossary dt:target { background: var(--d-warn-bg); border-radius: 4px; padding: 0 4px; }

/* search */
#ase-docs .d-sec.is-hidden { display: none; }
#ase-docs mark.d-hit { background: #ffe58a; color: inherit; padding: 0 1px; border-radius: 2px; }
#ase-docs .d-nohits { display: none; background: var(--d-warn-bg); border-radius: 8px; padding: 14px 16px; }
#ase-docs .d-nohits.is-shown { display: block; }

#ase-docs .d-top { position: fixed; right: 20px; bottom: 20px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--d-accent); color: #fff;
  font-size: 20px; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.2); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 50; }
#ase-docs .d-top.is-shown { opacity: .9; pointer-events: auto; }

@media (max-width: 960px) {
  #ase-docs .ase-docs-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  #ase-docs .ase-docs-side { position: static; max-height: none; overflow: visible; margin-bottom: 16px; padding: 0; }
  #ase-docs .d-toc-toggle { display: block; width: 100%; text-align: left; font: 600 15px/1.2 inherit; padding: 10px 12px; border: 1px solid var(--d-line); border-radius: 8px; background: var(--d-soft); color: var(--d-ink); cursor: pointer; margin-bottom: 8px; }
  #ase-docs .ase-docs-side .d-toc-panel { display: none; }
  #ase-docs .ase-docs-side.is-open .d-toc-panel { display: block; }
  #ase-docs .d-flow { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  #ase-docs.ase-docs-w-wide, #ase-docs.ase-docs-w-full { --d-w: calc(100vw - 32px); }
  #ase-docs { font-size: 15px; }
  #ase-docs .d-hero { padding: 22px 18px; }
  #ase-docs .d-title { font-size: 28px; }
  #ase-docs h2 { font-size: 24px; }
  #ase-docs .d-flow, #ase-docs .d-scenario { grid-template-columns: 1fr; }
  #ase-docs ol.d-steps > li { padding-left: 40px; }
  #ase-docs .d-ui { white-space: normal; }
}
@media print {
  #ase-docs .ase-docs-side, #ase-docs .d-copy, #ase-docs .d-top, #ase-docs .d-tabbar { display: none !important; }
  #ase-docs .ase-docs-layout { display: block; }
  #ase-docs .d-tabs > [data-tab][hidden] { display: block; }
  #ase-docs pre { white-space: pre-wrap; }
}
