/*
 * The plain-page template (templates/plain-page.template.html): the Trust and
 * Legal pages, restyled in Bold Stack. Loaded after css/bold-stack.css and
 * css/guide-page.css, whose parts it reuses (crumbs, head, contents list, FAQs,
 * final card). Class prefix pl-.
 */

.pl-head { padding-bottom: 28px; }

/* A legal document's title: its own wording, sometimes long, so a size down from a page's H1. */
.pl-h1-doc { font-size: clamp(32px, 3.6vw, 46px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; text-wrap: balance; }

/* The opening paragraphs. */
.pl-lede { max-width: 720px; display: flex; flex-direction: column; gap: 14px; }
.pl-lede p { font-size: 17px; font-weight: 400; line-height: 1.65; }
.pl-lede p:first-child { font-size: clamp(19px, 1.7vw, 22px); font-weight: 500; line-height: 1.45; }
.pl-lede .gd-cta-row { margin-top: 10px; }

/* A section across the page (the contents-list pages use the guides' .gd-sec). */
.pl-sec { display: flex; flex-direction: column; gap: 16px; margin-top: 56px; padding-top: 44px; border-top: 1px solid var(--bs-hairline); }
.pl-sec > h2, .pl-feature h2 { font-size: clamp(26px, 2.4vw, 32px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.12; text-wrap: balance; }
.pl-sec > p { max-width: 720px; font-size: 17px; font-weight: 400; line-height: 1.65; }
.pl-sec .gd-cta-row { margin-top: 6px; }

/* The team. */
.pl-team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 12px; }
.pl-person { overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--bs-hairline); border-radius: var(--bs-radius-card); background: var(--bs-surface); }
.pl-person img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.pl-person > div { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 22px; }
.pl-person h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.2; }
.pl-person .bs-eyebrow { font-size: 10.5px; line-height: 1.4; }
.pl-person p:not(.bs-eyebrow) { font-size: 15px; font-weight: 500; line-height: 1.5; }

/* A partner. */
.pl-feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; gap: 28px 56px; margin-top: 44px; padding: 34px; border: 1px solid var(--bs-hairline); border-radius: var(--bs-radius-feature); background: var(--bs-surface); scroll-margin-top: 96px; }
.pl-feature-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.pl-feature-copy p { font-size: 17px; font-weight: 400; line-height: 1.65; }

/* A list with teal checks. */
.pl-checks { display: flex; flex-direction: column; gap: 12px; }
.gd-sec ul.pl-checks { padding-left: 0; list-style: none; gap: 10px; }
.pl-checks li {
  padding-left: 30px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2314afac' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") no-repeat 0 1px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
}

/* Two cards side by side. */
.pl-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); align-items: start; gap: 16px; margin-top: 4px; }
.pl-card { display: flex; flex-direction: column; gap: 16px; padding: 22px 24px 24px; border: 1px solid var(--bs-hairline); border-radius: var(--bs-radius-card); background: var(--bs-surface); }

/* The FAQ page's help list: beside the questions, then after them on phones. */
.pl-help { flex: 0 0 240px; position: sticky; top: 100px; display: flex; flex-direction: column; gap: 10px; padding-top: 18px; }
.pl-help > p:not(.bs-eyebrow) { font-size: 15px; font-weight: 500; line-height: 1.5; }
.pl-help-links { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; font-size: 15px; font-weight: 500; line-height: 1.4; }
.gd-art[id] { scroll-margin-top: 96px; }

/* /about/'s first Register button sits lower than a guide's content, so the dock waits until it's gone. */
@supports (animation-timeline: scroll()) {
  .pl .gd-dock { animation-range: 800px 900px; }
}

/* The contents list of a long document can be taller than the window, so it scrolls in place. */
.pl-toc { max-height: calc(100vh - 124px); overflow-y: auto; }
/* Some documents number their own headings. */
.pl .gd-toc-narrow ol { padding-left: 0; list-style: none; }

/* A legal document: quieter than an article, with real lists. */
.pl-doc { display: flex; flex-direction: column; gap: 14px; overflow-wrap: break-word; }
.pl-doc p, .pl-doc li { font-size: 16px; font-weight: 400; line-height: 1.65; }
.pl-doc ul { display: flex; flex-direction: column; gap: 6px; padding-left: 22px; list-style: disc; }
.gd-art .pl-doc h2 { margin-top: 24px; padding-top: 32px; border-top: 1px solid var(--bs-hairline); font-size: clamp(22px, 2vw, 26px); }
.gd-art .pl-doc h3 { margin-top: 10px; font-size: 17px; }
.pl-doc strong { font-weight: 700; }
.pl-doc hr { width: 100%; margin: 12px 0 0; border: 0; border-top: 1px solid var(--bs-hairline); }
.gd-art .pl-doc hr + h2 { margin-top: 0; padding-top: 12px; border-top: 0; }

@media (max-width: 1024px) {
  .pl-team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .pl-feature { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; }
  .pl-help { flex: none; position: static; margin-top: 40px; padding-top: 0; }
  .pl-sec { margin-top: 44px; padding-top: 36px; }
  .pl-sec > p { font-size: 16px; }
  .pl-lede p, .pl-feature-copy p { font-size: 16px; }
  .pl-lede p:first-child { font-size: 19px; }
  .gd-art > .pl-lede + .gd-sec { padding-top: 40px; }
}

/* Phones: each person's photo beside their words. */
@media (max-width: 560px) {
  .pl-team { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pl-person { flex-direction: row; align-items: flex-start; }
  .pl-person img { flex: 0 0 104px; width: 104px; }
  .pl-person > div { flex: 1 1 0; min-width: 0; padding: 14px 16px 16px; gap: 6px; }
  .pl-person p:not(.bs-eyebrow) { font-size: 14px; }
}
