/* ============================================================
   Arridex Technologies: Product Team Primer
   Shared stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Public+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --font-body: 'Public Sans', Arial, Helvetica, sans-serif;
  --color-text: #000000;
  --color-text-muted: #8e8e8e;
  --color-bg: #ffffff;
  --color-bg-sidebar: #000000;
  --color-border: #5c5c5c;
  --color-accent: #000000;
  --color-accent-soft: #444444;
  --color-callout-bg: #f5f5f5;
  --color-callout-border:none;
  --color-tag-bg: #000000;
  --sidebar-width: 300px;
  --content-max: 760px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a {
  color: #000000;
  text-decoration: none;
}
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ---------- Layout shell ---------- */

.shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--color-bg-sidebar);
  border-right: 1px solid var(--color-border);
  padding: 28px 22px 60px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-brand {
  display: block;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-decoration: none;
  margin-bottom: 2px;
}
.sidebar-brand:hover { text-decoration: none; }

.sidebar-subbrand {
  display: block;
  font-size: 12.5px;
  color: #8b8b8b;
  margin-bottom: 26px;
  letter-spacing: 0.01em;
}

.sidebar nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar .nav-group {
  margin-bottom: 4px;
}

.sidebar .nav-group + .nav-group {
  margin-top: 2px;
}

.sidebar-heading {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8b8b8b;
  margin: 22px 0 8px;
  padding: 0 8px;
}
.sidebar-heading:first-child { margin-top: 0; }

.nav-link {
  display: block;
  padding: 7px 8px;
  border-radius: 5px;
  font-size: 14px;
  color: #ffffff;
  line-height: 1.4;
}
.nav-link:hover {
  background: var(--color-accent-soft);
  text-decoration: none;
  color:#ffffff;
}
.nav-link.active {
  background:#555555;
  color: #fff;
  font-weight: 600;
}
.nav-link .nav-num {
  color: var(--color-text-muted);
  font-weight: 600;
  margin-right: 6px;
  font-variant-numeric: tabular-nums;
}
.nav-link.active .nav-num { color: rgba(255,255,255,0.75); }

.nav-sub {
  list-style: none;
  margin: 2px 0 6px 14px;
  padding-left: 10px;
  border-left: 1px solid var(--color-border);
}
.nav-sub .nav-link {
  font-size: 13px;
  padding: 5px 8px;
  color: #ffffff;
}
.nav-sub .nav-link:hover { color: var(--color-text); }

/* ---------- Main content ---------- */

.main {
  flex: 1;
  min-width: 0;
  padding: 48px 56px 100px;
  display: flex;
  justify-content: center;
}

.content {
  max-width: var(--content-max);
  width: 100%;
}

.breadcrumb {
  font-size: 12.5px;
  color: var(--color-text-muted);
  margin-bottom: 22px;
  letter-spacing: 0.01em;
}
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb .sep { margin: 0 6px; color: #b8b8b3; }

.section-eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color:#555555;
  background: #dddddd;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
}

h1 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.page-dek {
  margin: 0 0 36px;
  line-height: 1.55;
  /*max-width: 640px;*/
}

h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 46px 0 14px;
  padding-top: 10px;
  border-top: 1px solid var(--color-border);
  letter-spacing: -0.005em;
}
h2:first-of-type { border-top: none; padding-top: 0; margin-top: 8px; }

h3 {
  font-size: 17.5px;
  font-weight: 700;
  margin: 28px 0 10px;
}

p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 6px; }
li > ul, li > ol { margin-top: 6px; }

strong { font-weight: 700; }

.lede {
  font-size: 17px;
  color: var(--color-text);
}

/* ---------- Callouts ---------- */

.callout {
  background: var(--color-callout-bg);
  border-left: 3px solid var(--color-callout-border);
  border-radius: 4px;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 14.5px;
}
.callout-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-accent);
  margin-bottom: 6px;
}
.callout p:last-child { margin-bottom: 0; }

.callout.status-live { border-left-color: #3a6b3a; }
.callout.status-live .callout-label { color: #3a6b3a; }
.callout.status-upcoming { border-left-color: #8a6a1f; }
.callout.status-upcoming .callout-label { color: #8a6a1f; }

/* ---------- Definition / glossary term ---------- */

dfn, .term {
  font-style: normal;
  border-bottom: 1px dotted var(--color-text-muted);
  cursor: help;
}

.glossary-entry {
  padding: 16px 0;
  border-top: 1px solid var(--color-border);
}
.glossary-entry:first-of-type { border-top: none; }
.glossary-term {
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 4px;
}
.glossary-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  background: var(--color-tag-bg);
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}
.glossary-def { margin: 0; color: var(--color-text); }

.glossary-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 20px 0 36px;
  padding: 16px;
  background: var(--color-bg-sidebar);
  border-radius: 6px;
}
.glossary-jump a {
  font-size: 13px;
  padding: 3px 9px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  color: var(--color-text);
}
.glossary-jump a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  text-decoration: none;
}

/* ---------- Tables ---------- */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14.5px;
}
th, td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
th {
  font-weight: 700;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  border-bottom: 2px solid var(--color-border);
}
tr:last-child td { border-bottom: none; }

/* ---------- Cards / grids ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 20px 0 28px;
}
.card {
  border: 1px solid var(--color-border);
  border-radius: 7px;
  padding: 18px 18px 16px;
  background: #fff;
}
.card h4 {
  margin: 0 0 6px;
  font-size: 14.5px;
  font-weight: 700;
}
.card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--color-text-muted);
}
.card .card-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  margin-bottom: 6px;
  display: block;
}

/* ---------- Priority lists ---------- */

.priority-block {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 22px 24px;
  margin: 24px 0;
}
.priority-block h3 {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.priority-owner {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-tag-bg);
  padding: 3px 9px;
  border-radius: 4px;
  text-transform: none;
  letter-spacing: 0;
}
.priority-block ul { margin-bottom: 0; }
.priority-block li { margin-bottom: 9px; }
.priority-block li:last-child { margin-bottom: 0; }

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

.home-hero {
  margin-bottom: 44px;
}
.home-hero h1 { font-size: 36px; }

.path-steps {
  counter-reset: step;
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
}
.path-steps li {
  counter-increment: step;
  position: relative;
  padding: 4px 0 20px 40px;
  border-left: 2px solid var(--color-border);
  margin-left: 13px;
}
.path-steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.path-steps li::before {
  content: counter(step);
  position: absolute;
  left: -13px;
  top: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.path-steps a { font-weight: 600; font-size: 15.5px; }
.path-steps p { margin: 4px 0 0; color: #000000; font-size: 14px; }

.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin: 24px 0 8px;
}
.home-card {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 20px 22px;
  transition: border-color 0.15s ease;
}
.home-card:hover { border-color: var(--color-accent); }
.home-card a.home-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #000000;
  display: block;
  margin-bottom: 6px;
}
.home-card a.home-card-title:hover {text-decoration: none; }
.home-card p { margin: 0; font-size: 13.5px; color:#000000; }
.home-card .card-num {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

/* ---------- Prev / next footer ---------- */

.page-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}
.page-nav a {
  flex: 1;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 14px 18px;
  color: var(--color-text);
  font-size: 14px;
}
.page-nav a:hover { border-color: var(--color-accent); text-decoration: none; }
.page-nav .dir-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 3px;
}
.page-nav .next { text-align: right; }
.page-nav .title { font-weight: 600; }

/* ---------- Misc ---------- */

.subtle-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 36px 0;
}

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

@media (max-width: 980px) {
  .shell { flex-direction: column; }
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }
  .main { padding: 32px 24px 80px; }
  .two-col { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .home-card { transition: none; }
}
