/* Locus Blog UI kit. Link this file and mark the page root with .locus plus .locus-column or .locus-cards. */

:root {
  --locus-ink: #0a0a0a;
  --locus-muted: #6b6b6b;
  --locus-accent: #ff7144;
  --locus-canvas: #ffffff;
  --locus-surface: #f4f4f4;
  --locus-surface-alt: #fafafa;
  --locus-line: #d8d8d8;
  --locus-line-soft: #e8e8e8;
  --locus-measure: 640px;
  --locus-stack: 720px;
  --locus-rail: 280px;
  --locus-font: "Google Sans", "Product Sans", system-ui, sans-serif;
  --locus-radius: 8px;
  --locus-radius-card: 12px;
}

.locus,
.locus *,
.locus *::before,
.locus *::after {
  box-sizing: border-box;
}

.locus {
  font-family: var(--locus-font);
  color: var(--locus-ink);
  background: var(--locus-canvas);
  -webkit-font-smoothing: antialiased;
}

.locus h1,
.locus h2,
.locus h3,
.locus p,
.locus ul,
.locus ol,
.locus blockquote {
  margin: 0;
}

.locus a {
  color: inherit;
  text-decoration: none;
}

.locus button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.locus :focus-visible {
  outline: 2px solid var(--locus-accent);
  outline-offset: 2px;
}

.locus-cards {
  background: var(--locus-surface);
}

/* Header */

.locus-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 48px;
  background: var(--locus-canvas);
}

.locus-column .locus-header {
  border-bottom: 1px solid var(--locus-line);
}

.locus-cards .locus-header {
  height: 64px;
  padding: 0 80px;
}

a.locus-wordmark {
  font-size: 22px;
  font-weight: 700;
  line-height: 28px;
  color: var(--locus-accent);
}

a.locus-header-label {
  font-size: 15px;
  font-weight: 400;
  line-height: 19px;
  color: var(--locus-muted);
}

/* Column measure */

.locus-column .locus-main,
.locus-column .locus-index {
  width: min(var(--locus-measure), calc(100% - 40px));
  margin-inline: auto;
}

.locus-column .locus-main {
  padding: 56px 0 96px;
}

.locus-column .locus-index {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 56px 0 96px;
}

.locus-article {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* Cards shell */

.locus-cards .locus-body {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 40px;
  padding: 40px 80px 64px;
}

.locus-stack {
  flex: 1 1 var(--locus-stack);
  max-width: var(--locus-stack);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.locus-cards .locus-index {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1440px;
  margin-inline: auto;
  padding: 40px 80px 64px;
}

/* Type */

.locus-kicker {
  font-size: 12px;
  font-weight: 500;
  line-height: 15px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--locus-accent);
}

.locus-h1 {
  font-size: 40px;
  font-weight: 700;
  line-height: 48px;
  letter-spacing: -0.5px;
}

.locus-cards .locus-h1 {
  font-size: 32px;
  font-weight: 500;
  line-height: 40px;
  letter-spacing: 0;
}

.locus-h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
}

.locus-cards .locus-h2 {
  font-weight: 500;
  line-height: 30px;
}

.locus-index-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
}

.locus-dek {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--locus-muted);
}

.locus-lead {
  font-size: 18px;
  font-weight: 400;
  line-height: 30px;
  color: var(--locus-muted);
}

.locus-prose {
  font-size: 16px;
  font-weight: 400;
  line-height: 27px;
}

.locus-cards .locus-prose {
  line-height: 26px;
}

.locus-prose p + p {
  margin-top: 16px;
}

a.locus-back {
  font-size: 14px;
  line-height: 18px;
  color: var(--locus-muted);
}

.locus-eyebrow {
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.4px;
  color: var(--locus-accent);
}

.locus-post-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 26px;
}

.locus-excerpt {
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
  color: var(--locus-muted);
}

.locus-meta {
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  color: var(--locus-muted);
}

.locus-titleblock {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.locus-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  line-height: 18px;
}

.locus-avatar {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--locus-line);
  object-fit: cover;
}

/* Index rows and cards */

.locus-column .locus-post-list {
  padding-top: 20px;
}

.locus-post-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 24px 0;
  border-bottom: 1px solid var(--locus-line);
}

.locus-cards .locus-post-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.locus-card,
.locus-post-card,
.locus-rail {
  background: var(--locus-canvas);
  border-radius: var(--locus-radius-card);
}

.locus-card,
.locus-post-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 32px;
}

.locus-card {
  gap: 16px;
}

.locus-post-card {
  gap: 8px;
}

.locus-index-intro {
  gap: 8px;
}

/* Article blocks */

.locus-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.locus-share-anchor {
  position: relative;
}

.locus-sharestack {
  display: none;
}

.locus-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--locus-muted);
}

.locus-readtime {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  line-height: 16px;
}

.locus-icon {
  display: block;
  width: 22px;
  height: 22px;
}

.locus-icon-sm {
  display: block;
  width: 18px;
  height: 18px;
}

.locus-icon-btn {
  display: inline-flex;
  color: var(--locus-muted);
}

.locus-sharestack .locus-icon-btn {
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--locus-line);
  border-radius: 20px;
  background: var(--locus-canvas);
}

.locus-takeaways {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: var(--locus-surface);
  border: 1px solid var(--locus-line);
  border-radius: var(--locus-radius);
}

.locus-takeaways h2 {
  font-size: 18px;
  font-weight: 700;
  line-height: 23px;
}

.locus-cards .locus-takeaways {
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}

.locus-dash-list,
.locus-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.locus-dash-list li,
.locus-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 26px;
}

.locus-points {
  gap: 8px;
}

.locus-points li {
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
}

.locus-dash {
  flex: none;
  width: 12px;
  height: 2px;
  margin-top: 12px;
  background: var(--locus-accent);
}

.locus-points .locus-dash {
  margin-top: 0;
}

.locus-criteria li {
  font-size: 14px;
  line-height: 20px;
}

.locus-criteria .locus-dash {
  margin-top: 9px;
}

.locus-flow {
  display: flex;
  flex-direction: column;
  padding: 24px 0;
}

.locus-step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
}

.locus-step:last-of-type {
  padding-bottom: 24px;
}

.locus-marker {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 14px;
  background: var(--locus-accent);
  color: var(--locus-canvas);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.locus-outcomes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.locus-article,
.locus-section,
.locus-stack,
.locus-card,
.locus-body,
.locus-table-scroll {
  min-width: 0;
}

.locus-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--locus-line-soft);
  border-radius: var(--locus-radius);
}

.locus-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.locus-table th,
.locus-table td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--locus-line-soft);
}

.locus-table tr:last-child td {
  border-bottom: 0;
}

.locus-table th {
  padding: 12px;
  background: var(--locus-surface);
  color: var(--locus-muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.locus-table td {
  padding: 14px 12px;
  background: var(--locus-canvas);
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
}

.locus-table td:first-child {
  font-weight: 500;
}

.locus-table tbody tr:nth-child(even) td {
  background: var(--locus-surface-alt);
}

.locus-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.locus-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.locus-col h3 {
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  color: var(--locus-accent);
}

.locus-faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.locus-faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.locus-faq-q,
.locus-faq-a {
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
}

.locus-pullquote {
  padding-left: 16px;
  border-left: 3px solid var(--locus-accent);
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
}

.locus-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding-left: 16px;
  border-left: 4px solid var(--locus-accent);
}

.locus-cta h2 {
  font-size: 18px;
  font-weight: 700;
  line-height: 23px;
}

.locus-cta p {
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  color: var(--locus-muted);
}

a.locus-button {
  display: inline-block;
  padding: 12px 20px;
  border-radius: var(--locus-radius);
  background: var(--locus-accent);
  color: var(--locus-canvas);
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
}

.locus-sources h2,
.locus-sources li {
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
}

.locus-sources ol,
.locus-related ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.locus-related h2,
.locus-related a {
  font-size: 15px;
  font-weight: 400;
  line-height: 26px;
}

.locus-disclaimer {
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  color: var(--locus-muted);
}

/* Rail */

.locus-rail {
  display: flex;
  flex: 0 0 var(--locus-rail);
  flex-direction: column;
  gap: 24px;
  width: var(--locus-rail);
  padding: 24px;
}

.locus-rail-label {
  font-size: 11px;
  font-weight: 500;
  line-height: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--locus-muted);
}

.locus-toc {
  display: flex;
  flex-direction: column;
  padding: 0;
  list-style: none;
}

.locus-toc a {
  font-size: 14px;
  font-weight: 400;
  line-height: 28px;
  color: var(--locus-accent);
}

.locus-rail-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding-left: 14px;
  border-left: 3px solid var(--locus-accent);
}

.locus-rail-cta h2 {
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
}

.locus-rail-cta p {
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  color: var(--locus-muted);
}

/* From 1200px the cards rail sits beside the stack. Below it, the rail follows the cards. */

@media (max-width: 1199px) {
  .locus-cards .locus-body {
    flex-direction: column;
    gap: 16px;
  }

  .locus-stack,
  .locus-rail {
    flex: none;
    width: 100%;
    max-width: 100%;
  }
}

/* 390 frames: type, padding, stacked columns, hidden share stack. */

@media (min-width: 800px) {
  .locus-column .locus-sharestack {
    position: absolute;
    top: -28px;
    right: calc(100% + 40px);
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 759px) {
  .locus-header {
    height: 64px;
    padding: 0 20px;
  }

  .locus-cards .locus-header {
    padding: 0 16px;
  }

  .locus-column .locus-main {
    width: auto;
    padding: 32px 20px 64px;
  }

  .locus-column .locus-index {
    width: auto;
    padding: 32px 20px 48px;
  }

  .locus-column .locus-post-list {
    padding-top: 8px;
  }

  .locus-column .locus-h1 {
    font-size: 28px;
    line-height: 34px;
  }

  .locus-cards .locus-h1,
  .locus-index-title {
    font-size: 26px;
    line-height: 32px;
  }

  .locus-column .locus-h2 {
    line-height: 30px;
  }

  .locus-cols,
  .locus-outcomes {
    grid-template-columns: 1fr;
  }

  .locus-table th {
    padding: 8px 6px;
  }

  .locus-table td {
    padding: 10px 6px;
  }

  .locus-cards .locus-body,
  .locus-cards .locus-index {
    padding: 24px 16px 40px;
  }

  .locus-cards .locus-index,
  .locus-cards .locus-post-list,
  .locus-stack {
    gap: 12px;
  }

  .locus-card,
  .locus-post-card {
    padding: 20px;
  }

  .locus-rail {
    gap: 20px;
    padding: 16px;
  }
}
