/* the other pages. Pages with something to show open on the pixel print (shared/dither.js), each on its own slice
   of the lake; legal and help pages open on a plain heading and get straight to the text */

/* ---------- page heading ---------- */
.ph {
  display: flex;
  flex-direction: column;
  padding: 184px 0 0;
}
/* the print is a band under the words, never behind them: the range runs edge to edge and dissolves into the page */
.ph__print {
  order: 2;
  display: block;
  width: 100%;
  height: clamp(220px, 26vw, 380px);
  margin-top: 64px;
  image-rendering: pixelated;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, #000 70%, transparent);
}
.ph__eyebrow {
  margin-bottom: 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--soft);
}
.ph h1 {
  max-width: 15ch;
  font-size: clamp(44px, 6vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.ph__lede {
  margin-top: 24px;
  max-width: 48ch;
  font-size: 19px;
  line-height: 1.5;
}
.ph__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}
.ph__stats {
  display: flex;
  gap: 48px;
  margin: 44px 0 0;
}
.ph__stats > div {
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
}
.ph__stats dd {
  margin: 0;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.ph__stats dt {
  font-size: 15px;
}
/* the heading settles in on arrival */
@media (prefers-reduced-motion: no-preference) {
  .js .ph .wrap > * {
    animation: ph-in 0.9s var(--ease) both;
  }
  .js .ph .wrap > :nth-child(2) {
    animation-delay: 0.06s;
  }
  .js .ph .wrap > :nth-child(3) {
    animation-delay: 0.12s;
  }
  .js .ph .wrap > :nth-child(n + 4) {
    animation-delay: 0.18s;
  }
}
@keyframes ph-in {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }
}

/* plain: no print, a hairline under it, and the text starts right away */
.ph--plain {
  min-height: 0;
  padding: 168px 0 56px;
  margin-bottom: 64px;
  border-bottom: 1px solid var(--line);
}
.ph--plain h1 {
  max-width: 22ch;
  font-size: clamp(38px, 4.4vw, 56px);
}
.ph__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-top: 24px;
  font-size: 15px;
}
.ph__meta a,
.ph__meta button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s ease;
}
@media (max-width: 760px) {
  .ph__meta button {
    min-height: 40px;
  }
}
.ph__meta a:hover,
.ph__meta button:hover {
  text-decoration-color: currentColor;
}
.ph__back {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 40px;
  margin-bottom: 20px;
  font-size: 15px;
  color: var(--soft);
  text-decoration: none;
  transition: color 0.2s ease;
}
.ph__back::before {
  content: "←";
  margin-right: 8px;
  transition: transform 0.3s var(--ease);
}
.ph__back:hover {
  color: var(--text);
}
.ph__back:hover::before {
  transform: translateX(-3px);
}

/* ---------- document: contents on the left, text on the right ---------- */
.doc {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  align-items: start;
  padding-bottom: 136px;
}
.doc__toc {
  grid-column: 1 / span 3;
  position: sticky;
  top: 104px;
  max-height: calc(100vh - 136px);
  overflow-y: auto;
  scrollbar-width: none;
  display: grid;
  font-size: 14px;
  line-height: 1.35;
}
.doc__toc::-webkit-scrollbar {
  display: none;
}
.doc__toc p {
  margin-bottom: 12px;
  font-weight: 500;
  color: var(--faint);
}
.doc__toc a {
  display: flex;
  gap: 10px;
  padding: 7px 0 7px 14px;
  border-left: 1px solid var(--line);
  color: var(--faint);
  text-decoration: none;
  transition:
    color 0.25s ease,
    border-color 0.25s ease;
}
.doc__toc a b {
  flex: none;
  min-width: 18px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.doc__toc a:hover {
  color: var(--text);
}
.doc__toc a[aria-current] {
  color: var(--text);
  border-left-color: var(--text);
}
.doc__toc a[aria-current] b {
  color: var(--gold);
}
.doc > .prose,
.doc > .log {
  grid-column: 5 / span 8;
}
.doc--single > * {
  grid-column: 3 / span 8;
}
.doc__end {
  padding: 0 0 136px;
}
.doc__end p {
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.doc__end a {
  color: var(--text);
}

/* ---------- prose ---------- */
.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.7;
}
.prose section + section {
  margin-top: 56px;
}
.prose h2 {
  margin-bottom: 20px;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.022em;
  scroll-margin-top: 104px;
}
.prose h3 {
  margin: 32px 0 12px;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.012em;
}
.prose p,
.prose ul,
.prose ol,
.prose blockquote,
.prose .prose__table,
.prose .prose__offices {
  margin: 0 0 16px;
}
.prose ul,
.prose ol {
  padding-left: 22px;
}
.prose li {
  margin-bottom: 8px;
  padding-left: 4px;
}
.prose li::marker {
  color: var(--faint);
}
.prose strong {
  color: var(--text);
  font-weight: 500;
}
.prose a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s ease;
}
.prose a:hover {
  text-decoration-color: currentColor;
}
.prose blockquote {
  padding-left: 20px;
  border-left: 1px solid var(--line-2);
  color: var(--text);
}
.prose hr {
  margin: 48px 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}
.prose th,
.prose td {
  padding: 14px 16px 14px 0;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.prose thead th {
  border-top: 0;
  font-weight: 500;
  color: var(--faint);
}
.prose tbody th {
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
}
.prose__table {
  overflow-x: auto;
}
.prose__offices {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  font-size: 15px;
}
.prose__offices > div {
  padding: 20px;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.prose__office {
  color: var(--text);
  font-weight: 500;
}
.prose__offices p {
  margin: 0 0 6px;
}

/* ---------- security ---------- */
.facts dl {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.facts dl > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 28px 28px 0;
}
.facts dl > div + div {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}
.facts dt {
  font-size: 14px;
  font-weight: 500;
  color: var(--faint);
}
.facts dd {
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
  color: var(--text);
}
.pledge {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  align-items: start;
  padding: 120px 0;
}
.pledge h2 {
  grid-column: 1 / span 4;
  font-size: 36px;
}
.pledge ul {
  grid-column: 5 / span 8;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pledge li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 19px;
  line-height: 1.4;
  color: var(--text);
}
.pledge li svg,
.bk-points svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--sky);
  transform: translateY(2px);
}

/* ---------- changelog ---------- */
.doc__toc a span {
  flex: 1;
}
.doc--log .doc__toc a b {
  order: 2;
  min-width: 0;
  color: var(--faint);
}
.rel {
  scroll-margin-top: 104px;
  padding: 0 0 48px;
}
.rel + .rel {
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.rel header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
}
.rel h2 {
  font-size: 22px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.rel time {
  font-size: 15px;
  color: var(--faint);
}
.rel__latest {
  font-size: 13px;
  font-weight: 500;
  color: var(--gold);
}
.rel ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rel li {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 16px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
}
.rel li b {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.85;
  color: var(--faint);
}
.rel li[data-type="new"] b {
  color: var(--sky);
}

/* ---------- blog ---------- */
.blog {
  padding-bottom: 136px;
}
.post {
  display: block;
  color: var(--soft);
  text-decoration: none;
}
.post__img {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 0 0 1px var(--line);
}
.post__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.post:hover .post__img img {
  transform: scale(1.025);
}
.post__meta {
  display: flex;
  gap: 8px;
  margin: 20px 0 10px;
  font-size: 14px;
  color: var(--faint);
}
.post h2,
.post h3 {
  transition: color 0.2s ease;
}
.post h3 {
  font-size: 21px;
  line-height: 1.25;
}
.post p:last-child {
  margin-top: 10px;
  font-size: 15px;
}
.post:hover h3 {
  color: #fff;
}
.post--lead {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 48px;
  align-items: center;
}
.post--lead h2 {
  font-size: 32px;
  line-height: 1.12;
}
.post--lead .post__body > p:not(.post__meta) {
  margin-top: 16px;
}
.post__more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
}
.post__more i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: transform 0.3s var(--ease);
}
.post__more svg {
  width: 13px;
  height: 13px;
}
.post--lead:hover .post__more i {
  transform: translateX(3px);
}
.blog__filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 104px 0 40px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.blog__filter button {
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: none;
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--soft);
  font:
    500 14px/1 "Inter",
    sans-serif;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}
.blog__filter button:hover {
  color: var(--text);
}
.blog__filter button[aria-pressed="true"] {
  background: #fff;
  color: var(--bg);
  box-shadow: none;
}
.blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 32px;
}
.blog__grid .post {
  transition:
    opacity 0.22s ease,
    transform 0.4s var(--ease);
}
.blog__grid .post.is-out {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
}
.blog__grid .post[hidden] {
  display: none;
}

/* a post */
.ph--post h1 {
  max-width: 24ch;
}
.ph--post .post__meta {
  margin-top: 28px;
}
.doc--post {
  row-gap: 64px;
}
.doc--post > .post__img {
  grid-column: 2 / span 10;
  border-radius: 24px;
}
.page--sub .close {
  padding-top: 0;
}

/* what the real posts' markdown emits (src/lib/post-render.js): stat callouts, faq accordions, tables, repeating decimals */
.prose .stat-callout {
  margin: 40px 0;
  padding: 32px 28px;
  border-radius: 16px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line);
  text-align: center;
}
.prose .stat-number {
  margin-bottom: 12px;
  font-size: 48px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--gold);
}
.prose .stat-caption {
  max-width: 32rem;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.55;
}
.prose .faq-list {
  margin: 24px 0;
  border-top: 1px solid var(--line);
}
.prose .faq-item {
  border-bottom: 1px solid var(--line);
}
.prose .faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  color: var(--text);
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}
.prose .faq-item summary::-webkit-details-marker {
  display: none;
}
.prose .faq-item summary::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--faint);
  border-bottom: 1.5px solid var(--faint);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s var(--ease);
}
.prose .faq-item[open] summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}
.prose .faq-answer p {
  margin: 0 0 20px;
  font-size: 15px;
}
.prose .mh-table {
  margin: 24px 0;
  overflow-x: auto;
}
.prose .mh-table table {
  min-width: 480px;
  font-variant-numeric: tabular-nums;
}
.prose .mh-table:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}
.prose .mh-repeat {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.prose .mh-repeat-bar {
  padding-top: 1px;
  border-top: 1px solid currentColor;
}
.mh-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- for brokerages ---------- */
.bk-sources {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.bk-sources p {
  max-width: 44ch;
  font-size: 16px;
}
.bk-sources div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 44px;
}
.bk-sources img {
  height: 26px;
  width: auto;
  opacity: 0.7;
  filter: brightness(0) invert(1);
}
.bk-split {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  align-items: center;
}
.bk-copy {
  grid-column: 1 / span 5;
}
.bk-copy h2 {
  font-size: 40px;
  line-height: 1.08;
}
.bk-copy > p {
  margin-top: 24px;
  max-width: 46ch;
}
.bk-art {
  grid-column: 7 / span 6;
  display: grid;
  gap: 20px;
}
.bk-split--flip .bk-copy {
  grid-column: 8 / span 5;
  grid-row: 1;
}
.bk-split--flip .bk-art {
  grid-column: 1 / span 6;
  grid-row: 1;
}
.bk-points {
  display: grid;
  gap: 12px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.bk-points li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  color: var(--text);
}
.bk-card .bp-card {
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.bk-card--b {
  margin-left: 64px;
}
.bk-card .bp-row:not(:has(.bp-av)) {
  grid-template-columns: 1fr auto;
}
.bk-card .bp-head .bp-av {
  margin-right: 12px;
}
.bk-rev {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 16px 18px 6px;
  border-top: 1px solid var(--bp-hair);
}
.bk-fig {
  margin: 2px 0;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--bp-ink);
}
.bk-bars {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 12px;
  height: 150px;
  padding: 16px 18px 0;
}
.bk-bars span {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  height: 100%;
}
.bk-bars i {
  width: 100%;
  height: var(--h);
  border-radius: 6px 6px 2px 2px;
  background: #dfe6ef;
}
.bk-bars span:last-child i {
  background: var(--bp-navy);
}
.bk-bars b {
  font-size: 12px;
  font-weight: 500;
  color: var(--bp-ink-faint);
}
/* the bars grow once, as the card arrives */
@media (prefers-reduced-motion: no-preference) {
  .js .bk-bars i {
    transform: scaleY(0);
    transform-origin: 50% 100%;
    transition: transform 0.9s var(--ease);
  }
  .js .bk-art.is-in .bk-bars i {
    transform: none;
  }
  .js .bk-art.is-in .bk-bars span:nth-child(n) i {
    transition-delay: calc(0.25s + var(--d, 0) * 60ms);
  }
}
.bk-note {
  padding: 14px 18px 16px;
  font-size: 12px;
  color: var(--bp-ink-faint);
}
.bk-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  padding-top: 0;
}
.bk-trio > div {
  padding: 40px 32px 0 0;
}
.bk-trio > div + div {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}
.bk-trio h3 {
  margin-bottom: 14px;
  font-size: 21px;
}
.bk-trio p {
  font-size: 16px;
}
.bk-card--sm {
  margin-top: 28px;
  max-width: 340px;
}

/* ---------- tablet and phone ---------- */
@media (max-width: 1000px) {
  .doc__toc {
    display: none;
  }
  .doc > .prose,
  .doc > .log,
  .doc--single > * {
    grid-column: 1 / -1;
  }
  .bk-split,
  .pledge {
    display: block;
  }
  .bk-art {
    margin-top: 48px;
  }
  .bk-copy h2 {
    font-size: 34px;
  }
  .facts dl {
    grid-template-columns: repeat(2, 1fr);
  }
  .facts dl > div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .facts dl > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .pledge ul {
    margin-top: 36px;
  }
  .blog__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  .ph {
    padding: 128px 0 0;
  }
  .ph__print {
    height: 200px;
    margin-top: 40px;
  }
  .ph__lede {
    font-size: 17px;
  }
  .ph__stats {
    gap: 28px;
  }
  .ph__stats dd {
    font-size: 26px;
  }
  .ph--plain {
    min-height: 0;
    padding: 128px 0 40px;
    margin-bottom: 40px;
  }
  .doc {
    padding-bottom: 88px;
  }
  .prose h2 {
    font-size: 22px;
  }
  .prose__offices,
  .pledge ul,
  .blog__grid,
  .post--lead,
  .bk-trio {
    grid-template-columns: 1fr;
  }
  .pledge {
    padding: 80px 0;
  }
  .pledge h2 {
    font-size: 30px;
  }
  .pledge li {
    font-size: 17px;
  }
  .facts dl > div,
  .facts dl > div + div {
    padding: 20px 16px 20px 0;
  }
  .facts dl > div:nth-child(even) {
    padding-left: 16px;
  }
  .facts dd {
    font-size: 15px;
  }
  .rel li {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .post--lead {
    gap: 0;
  }
  .post--lead h2 {
    font-size: 26px;
  }
  .blog__filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 72px calc(-1 * var(--gut)) 32px;
    padding: 32px var(--gut) 0;
  }
  .blog__filter button {
    flex: none;
  }
  .bk-sources {
    display: block;
  }
  .bk-sources div {
    margin-top: 20px;
    gap: 20px 28px;
  }
  .bk-sources img {
    height: 20px;
  }
  .bk-card--b {
    margin-left: 20px;
  }
  .bk-trio > div,
  .bk-trio > div + div {
    padding: 36px 0;
    border-left: 0;
  }
  .bk-trio > div + div {
    border-top: 1px solid var(--line);
  }
  .doc--post > .post__img {
    grid-column: 1 / -1;
    border-radius: 16px;
  }
}
@media print {
  .r5-bar,
  .foot,
  .doc__toc,
  .ph__meta button {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
}
.doc--log .doc__toc a {
  justify-content: space-between;
}
/* the page head's arrow sits in the pill the way the pricing one does: a 32px disc, 6px in from the edge */
.ph__ctas .btn--go {
  padding-right: 6px;
  gap: 12px;
}
.ph__ctas .btn--go i {
  width: 32px;
  height: 32px;
}

/* a header with no print band still needs room before what follows */
.ph:not(.ph--plain):not(:has(.ph__print)) {
  padding-bottom: 72px;
}
/* scarlett's wordmark is set heavier than the others: a touch smaller so the row reads even */
.bk-sources img[src*="scarlett"] {
  height: 20px;
}
@media (max-width: 860px) {
  .bk-sources img[src*="scarlett"] {
    height: 16px;
  }
}

/* one rhythm with the home page: 128px between blocks on desktop, 80px on phones */
.blog,
.doc,
.doc__end,
.doc--log {
  padding-bottom: 128px;
}
.pledge {
  padding-block: 128px;
}
@media (max-width: 760px) {
  .blog,
  .doc,
  .doc__end,
  .doc--log {
    padding-bottom: 80px;
  }
  .pledge {
    padding-block: 80px;
  }
}
