/* Ranger — shared styles
   Trailhead brand tokens. Do not substitute colours or fonts.
   navy #0F2942 · orange #E87E3C · mountain-blue #5B7FA8
   body #1D2939 · muted #6B7280 · border #D0D5DD · border-soft #EAECF0 */

:root {
  --th-navy: #0F2942;
  --th-orange: #E87E3C;
  --th-mountain-blue: #5B7FA8;
  --th-body: #1D2939;
  --th-muted: #6B7280;
  --th-border: #D0D5DD;
  --th-border-soft: #EAECF0;
  --th-white: #FFFFFF;

  --th-font: "Calibri", "Carlito", "Segoe UI", system-ui, -apple-system,
             "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--th-font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--th-body);
  background: var(--th-white);
}

/* ---- Banner ---- */
.th-banner {
  background: var(--th-navy);
  padding: 18px 48px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.th-banner .th-mark {
  width: 38px; height: 28px; flex: none;
  background: linear-gradient(135deg,
    var(--th-mountain-blue) 0%, var(--th-mountain-blue) 50%,
    var(--th-orange) 50%, var(--th-orange) 100%);
  clip-path: polygon(0 100%, 30% 30%, 50% 55%, 70% 0, 100% 100%);
}
.th-banner .th-wordmark {
  font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em;
  color: var(--th-white);
  text-decoration: none;
}
.th-banner nav {
  margin-left: auto;
  display: flex; gap: 22px;
  font-size: 0.9375rem;
}
.th-banner nav a {
  color: var(--th-white);
  opacity: 0.8;
  text-decoration: none;
  padding: 2px 0;
  border-bottom: 2px solid transparent;
}
.th-banner nav a:hover { opacity: 1; }
.th-banner nav a[aria-current="page"] {
  opacity: 1;
  border-bottom-color: var(--th-orange);
}

/* ---- Layout ---- */
main {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 32px 16px;
}
.prose { max-width: 68ch; }

/* ---- Title ---- */
.th-title h1 {
  color: var(--th-navy);
  font-size: 2.25rem; font-weight: 700;
  margin: 0 0 6px 0; line-height: 1.15;
  text-wrap: balance;
}
.th-title .th-rule {
  border: 0; border-top: 2px solid var(--th-orange);
  margin: 0 0 8px 0;
}
.th-title .th-byline {
  color: var(--th-muted); font-size: 0.875rem; margin: 0 0 28px 0;
}

h2.th-section {
  color: var(--th-navy);
  font-size: 1.375rem; font-weight: 700;
  margin: 44px 0 10px 0;
  text-wrap: balance;
}
h2.th-section .role {
  display: block;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--th-muted);
  margin-bottom: 2px;
}
h3.th-sub {
  color: var(--th-navy);
  font-size: 1.0625rem; font-weight: 700;
  margin: 26px 0 6px 0;
}
p { margin: 0 0 12px 0; }
.th-label { color: var(--th-navy); font-weight: 700; }

code {
  font-family: "Consolas", "Menlo", ui-monospace, monospace;
  font-size: 0.9em;
  background: var(--th-border-soft);
  padding: 1px 5px; border-radius: 2px;
  overflow-wrap: anywhere;
}
a { color: var(--th-navy); text-decoration: underline; text-underline-offset: 2px; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--th-orange); outline-offset: 2px;
}

/* ---- Callout ---- */
.th-panel {
  border-left: 3px solid var(--th-orange);
  background: var(--th-border-soft);
  padding: 16px 20px;
  margin: 0 0 12px 0;
}
.th-panel p:last-child { margin-bottom: 0; }
.th-panel .eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.75rem; font-weight: 700;
  color: var(--th-navy); margin: 0 0 6px 0;
}

/* ---- Numbered steps ---- */
ol.steps { list-style: none; counter-reset: s; margin: 16px 0 0; padding: 0; }
ol.steps > li {
  counter-increment: s;
  position: relative;
  padding: 0 0 22px 52px;
  border-left: 1px solid var(--th-border-soft);
  margin-left: 15px;
}
ol.steps > li:last-child { border-left-color: transparent; padding-bottom: 4px; }
ol.steps > li::before {
  content: counter(s);
  position: absolute; left: -15px; top: 0;
  width: 30px; height: 30px;
  background: var(--th-navy); color: var(--th-white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
ol.steps > li h3 { margin-top: 3px; }
ol.steps > li p:last-child, ol.steps > li ul:last-child { margin-bottom: 0; }

ul { margin: 0 0 12px 0; padding-left: 20px; }
li { margin-bottom: 5px; }

/* ---- Tables ---- */
.th-scroll { overflow-x: auto; margin: 12px 0 20px; }
table.th-table {
  width: 100%; min-width: 520px;
  border-collapse: collapse;
  border: 1px solid var(--th-border);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}
table.th-table thead th {
  background: var(--th-navy); color: var(--th-white);
  font-weight: 700; text-align: left; padding: 8px 10px;
}
table.th-table tbody td {
  border-top: 1px solid var(--th-border-soft);
  padding: 8px 10px; vertical-align: top;
}
table.th-table tbody td:first-child { font-weight: 700; color: var(--th-navy); }

/* ---- Cards (hub pages) ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 24px 0 8px;
}
.card {
  display: block;
  border: 1px solid var(--th-border);
  border-top: 3px solid var(--th-navy);
  padding: 20px 22px;
  text-decoration: none;
  color: var(--th-body);
  background: var(--th-white);
}
.card:hover { border-top-color: var(--th-orange); }
.card h3 {
  color: var(--th-navy);
  font-size: 1.125rem; font-weight: 700;
  margin: 0 0 6px 0;
}
.card p { margin: 0; color: var(--th-body); font-size: 0.9375rem; }
.card .meta {
  display: block; margin-top: 10px;
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--th-muted); font-weight: 700;
}

/* ---- Figure ---- */
figure { margin: 20px 0 24px; }
figure svg { width: 100%; height: auto; display: block; }

/* ---- Screenshots ---- */
figure.shot { margin: 18px 0 26px; }
figure.shot .frame {
  position: relative;
  border: 1px solid var(--th-border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--th-white);
}
figure.shot img { width: 100%; height: auto; display: block; }
figure.shot.narrow .frame { max-width: 330px; margin-left: auto; margin-right: auto; }
/* numbered callout pinned over the screenshot; x/y are percentages */
figure.shot .pin {
  position: absolute;
  width: 26px; height: 26px;
  margin: -13px 0 0 -13px;
  border-radius: 50%;
  background: var(--th-orange);
  color: var(--th-white);
  font-size: 0.8125rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.95);
}
figure.shot .ring {
  position: absolute;
  border: 2px solid var(--th-orange);
  border-radius: 4px;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.65);
}
figure.shot ul.keylist {
  margin: 10px 0 0; padding-left: 20px;
  font-size: 0.875rem; color: var(--th-body);
}
figure.shot ul.keylist > li { margin-bottom: 5px; }
figure.shot ol.pinkey {
  list-style: none;
  margin: 10px 0 0; padding: 0;
  font-size: 0.875rem; color: var(--th-body);
  counter-reset: pinkey;
}
figure.shot ol.pinkey > li {
  counter-increment: pinkey;
  position: relative;
  padding-left: 30px;
  margin-bottom: 5px;
}
figure.shot ol.pinkey > li::before {
  content: counter(pinkey);
  position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--th-orange); color: var(--th-white);
  font-size: 0.6875rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
figcaption { color: var(--th-muted); font-size: 0.875rem; margin-top: 8px; }

/* ---- Footer ---- */
.th-footer {
  margin-top: 56px; padding: 24px 32px; text-align: center;
  color: var(--th-muted); font-size: 0.875rem;
  border-top: 1px solid var(--th-border-soft);
}
.th-footer .brought {
  text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.75rem; margin-bottom: 4px;
}
.th-footer .partners { color: var(--th-navy); font-weight: 700; }

@media (max-width: 640px) {
  .th-banner { padding: 16px 20px; gap: 12px; }
  .th-banner nav { margin-left: 0; width: 100%; gap: 18px; }
  main { padding: 32px 20px 8px; }
  .th-title h1 { font-size: 1.75rem; }
  ol.steps > li { padding-left: 42px; }
}

/* ---- Screenshot note ---- */
p.th-note {
  color: var(--th-muted);
  font-size: 0.875rem;
  border-left: 2px solid var(--th-border);
  padding-left: 12px;
  margin: 14px 0 18px;
}
