/* Barcode Rocket guides (/articles/): one stylesheet for the index and every article. */
:root {
  --bg: #0a1424;
  --navy: #0f1b30;
  --border: #23324e;
  --text: #e2e8f0;
  --slate: #94a3b8;
  --slate2: #64748b;
  --amber: #e8a020;
  --amber2: #f5b942;
}

html {
  scrollbar-gutter: stable;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  background-image: radial-gradient(ellipse 70% 50% at 50% -10%, #16243d 0%, transparent 60%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px 40px;
  overflow-x: hidden;
}

a {
  color: var(--amber2);
}

/* header */
.top {
  width: 100%;
  max-width: 1060px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}

.top .brand img {
  display: block;
  height: 44px;
  width: auto;
}

.menu {
  display: flex;
  gap: 4px;
  align-items: center;
  font-size: 14px;
}

.menu a {
  color: var(--slate);
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 8px;
}

.menu a:hover {
  color: var(--text);
}

.menu a.cta-sm {
  background: var(--amber);
  color: #1a1206;
  font-weight: 700;
  margin-left: 6px;
}

.menu a.cta-sm:hover {
  background: var(--amber2);
}

/* layout */
.art {
  width: 100%;
  max-width: 760px;
}

.art.idx {
  max-width: 1060px;
}

.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 13px;
  color: var(--slate2);
  margin-bottom: 18px;
}

.crumbs li + li::before {
  content: "/";
  margin-right: 4px;
  color: var(--border);
}

.crumbs a {
  color: var(--slate);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--amber2);
}

.eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--slate2);
  margin-bottom: 8px;
}

h1 {
  font-size: 34px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}

.byline {
  font-size: 13px;
  color: var(--slate2);
  margin-bottom: 22px;
}

.byline a {
  color: var(--slate);
}

.byline span {
  margin: 0 4px;
}

/* body text */
article h2 {
  font-size: 23px;
  line-height: 1.3;
  font-weight: 800;
  margin: 38px 0 12px;
  scroll-margin-top: 16px;
}

article h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 24px 0 8px;
  color: var(--text);
}

article p,
article li {
  font-size: 16.5px;
  line-height: 1.75;
  color: #cbd5e1;
}

article p + p {
  margin-top: 12px;
}

article ul,
article ol {
  padding-left: 22px;
  margin: 10px 0 14px;
}

article li + li {
  margin-top: 6px;
}

article strong {
  color: var(--text);
}

article code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: .92em;
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 5px;
  color: var(--text);
}

.answer {
  background: var(--navy);
  border: 1.5px solid var(--border);
  border-left: 4px solid var(--amber);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 22px;
}

.answer .lbl {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber2);
  margin-bottom: 4px;
}

.answer p + p {
  margin-top: 0;
}

.note {
  background: rgba(232, 160, 32, .07);
  border: 1px solid rgba(232, 160, 32, .35);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 16px 0;
}

.toc {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 0 0 8px;
}

.toc p {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--slate2);
}

.toc ol {
  margin: 6px 0 0;
}

.toc li {
  font-size: 14.5px;
  line-height: 1.6;
}

.toc li + li {
  margin-top: 2px;
}

.toc a {
  color: var(--slate);
  text-decoration: none;
}

.toc a:hover {
  color: var(--amber2);
}

/* tables */
.tbl {
  overflow-x: auto;
  margin: 14px 0 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

th,
td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
  color: #cbd5e1;
}

th {
  background: var(--navy);
  color: var(--text);
  font-weight: 700;
}

tr:last-child td {
  border-bottom: 0;
}

/* figures */
.fig {
  margin: 20px 0 22px;
  background: #ffffff;
  border-radius: 12px;
  padding: 14px;
}

.fig svg {
  display: block;
  width: 100%;
  height: auto;
}

.fig figcaption {
  font-size: 13.5px;
  line-height: 1.5;
  color: #475569;
  margin-top: 10px;
}

/* calls to action */
.cta-box {
  background: var(--navy);
  border: 1.5px solid var(--amber);
  border-radius: 16px;
  padding: 20px 22px;
  margin: 30px 0;
}

.cta-box .cta-k {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber2);
}

.cta-box .cta-t {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-top: 4px;
}

.cta-box .cta-d {
  font-size: 14.5px;
  color: var(--slate);
  margin-top: 6px;
}

.btn {
  display: inline-block;
  margin-top: 14px;
  background: var(--amber);
  color: #1a1206;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 10px;
}

.btn:hover {
  background: var(--amber2);
}

.contact-box {
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 26px 0;
}

.contact-box p {
  font-size: 15px;
}

.faq h3 {
  margin-top: 20px;
}

.sources {
  margin-top: 30px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}

.sources h2 {
  font-size: 17px;
  margin-top: 20px;
}

.sources li {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--slate);
  overflow-wrap: anywhere;
}

/* cards */
.related {
  margin-top: 36px;
}

.related h2 {
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 14px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--navy);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  text-decoration: none;
  transition: border-color .15s;
}

.card:hover {
  border-color: var(--amber);
}

.card[hidden] {
  display: none;
}

.card .k {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8a9ab2;
}

.card.pillar {
  border-color: rgba(232, 160, 32, .55);
}

.card.pillar .k {
  color: var(--amber2);
}

.card .t {
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.card .d {
  font-size: 14px;
  line-height: 1.55;
  color: var(--slate);
}

/* index */
.idx h1 {
  font-size: 38px;
}

.intro {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--slate);
  max-width: 720px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 24px 0 8px;
}

.filters input {
  flex: 1 1 240px;
  min-width: 0;
  background: var(--navy);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  padding: 11px 14px;
}

.filters input:focus {
  outline: none;
  border-color: var(--amber);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--slate);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 13.5px;
  cursor: pointer;
}

.chip.on {
  border-color: var(--amber);
  color: var(--text);
}

.group {
  margin-top: 34px;
}

.group[hidden] {
  display: none;
}

.group h2 {
  font-size: 22px;
  font-weight: 800;
}

.gblurb {
  font-size: 14.5px;
  color: var(--slate);
  margin: 4px 0 14px;
}

.none {
  margin-top: 30px;
  color: var(--slate);
}

@media (max-width: 640px) {
  .hide-sm {
    display: none;
  }

  .top .brand img {
    height: 38px;
  }

  h1,
  .idx h1 {
    font-size: 27px;
  }

  article h2 {
    font-size: 21px;
  }

  article p,
  article li {
    font-size: 16px;
  }

  .cards {
    grid-template-columns: 1fr;
  }
}

/* index: one calm, centred list (BR-55) */
.idx-head {
  text-align: center;
  margin: 8px auto 0;
  max-width: 760px;
}

.idx .idx-head h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.idx-head .sub {
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate);
}

.idx .filters {
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 26px auto 30px;
  max-width: 760px;
}

.idx .chips {
  justify-content: center;
}

.idx .chip {
  border-width: 1px;
  background: rgba(255, 255, 255, .02);
}

.idx .chip.on {
  background: var(--amber);
  border-color: var(--amber);
  color: #1a1206;
  font-weight: 700;
}

.idx .filters input {
  flex: none;
  width: 100%;
  max-width: 360px;
  border-width: 1px;
  font-size: 14.5px;
  padding: 9px 14px;
}

.idx .list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}

.idx .item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  background: rgba(15, 27, 48, .55);
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 14px;
  padding: 20px 24px;
  text-decoration: none;
  transition: border-color .15s, transform .15s, background .15s;
}

.idx .item:hover {
  border-color: rgba(232, 160, 32, .5);
  background: rgba(15, 27, 48, .85);
  transform: translateY(-1px);
}

.idx .item[hidden] {
  display: none;
}

.idx .item .tag {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--slate);
  background: rgba(148, 163, 184, .1);
  border-radius: 999px;
  padding: 3px 10px;
}

.idx .item .tag.start {
  color: var(--amber2);
  background: rgba(232, 160, 32, .12);
}

.idx .item .t {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.idx .item .d {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--slate);
}

.idx .item .go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--amber2);
}

.idx .item .go svg {
  width: 15px;
  height: 15px;
}

@media (max-width: 640px) {
  .idx .idx-head h1 {
    font-size: 28px;
  }

  .idx .item {
    padding: 16px 16px;
  }

  .idx .item .t {
    font-size: 17px;
  }
}

/* reading sizes (BR-57) */
/* Tailwind Typography prose-lg sizes on the dark site: 18px body, 1.75 leading, about 65 characters a line */
.art {
  max-width: 680px;
}

.art.idx {
  max-width: 1060px;
}

.art h1 {
  font-size: 36px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f1f5f9;
  margin-bottom: 14px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: .08em;
  color: #94a3b8;
}

.byline {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 28px;
}

article p,
article li {
  font-size: 18px;
  line-height: 1.75;
  color: #cbd5e1;
}

article p + p {
  margin-top: 20px;
}

article ul,
article ol {
  margin: 16px 0 20px;
  padding-left: 26px;
}

article li + li {
  margin-top: 8px;
}

article strong {
  color: #f1f5f9;
  font-weight: 600;
}

article h2 {
  font-size: 24px;
  line-height: 1.33;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #f1f5f9;
  margin: 48px 0 16px;
}

article h3 {
  font-size: 20px;
  line-height: 1.5;
  font-weight: 600;
  color: #f1f5f9;
  margin: 32px 0 10px;
}

.answer {
  padding: 18px 22px;
  margin-bottom: 28px;
}

.answer p {
  font-size: 17px;
  line-height: 1.7;
}

.toc li {
  font-size: 15px;
}

table {
  font-size: 15px;
}

.fig figcaption {
  font-size: 14px;
}

@media (max-width: 640px) {
  .art h1 {
    font-size: 30px;
  }

  article h2 {
    font-size: 22px;
  }

  article p,
  article li {
    font-size: 17px;
  }
}
