/* The article pages (make_articles.py), on top of styles.css: its tokens,
   header, buttons and footer, plus a reading column and the video's diagrams. */

:root {
  --pb-sketch-paper: #f6f1e6; /* the videos' paper, behind the diagrams */
  --pb-sketch-red: #cf3f35;
}

.header a.brand { text-decoration: none; }
@media (max-width: 600px) {
  .header .tag { display: none; }
  .header .brand { font-size: 26px; }
  .header-actions .pb-button { display: none; }
}

.reading { max-width: 760px; padding-bottom: 56px; }

.crumbs { font-size: 13px; color: var(--pb-muted); margin: 6px 0 30px; }
.crumbs a { color: var(--pb-muted); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { margin: 0 6px; }

.reading h1 {
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.14;
  letter-spacing: -.01em;
  font-weight: 700;
  color: var(--pb-brand);
  margin: 10px 0 18px;
}
.reading h2 {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--pb-brand);
  margin: 46px 0 12px;
}
.reading p { font-size: 18px; line-height: 1.7; margin: 0 0 18px; }
.reading a { color: var(--pb-accent); }

.reading .lede { font-size: 21px; line-height: 1.55; font-weight: 500; margin-bottom: 14px; }
.byline { color: var(--pb-muted); font-size: 14px !important; margin-bottom: 28px !important; }

.figure { margin: 26px 0 32px; }
.figure img,
.video {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--pb-line);
  background: var(--pb-sketch-paper);
}

.video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; margin: 8px 0 10px; }
.video button {
  all: unset;
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
  position: relative;
}
.video button img { width: 100%; height: 100%; object-fit: cover; }
.video button:focus-visible { outline: 3px solid var(--pb-accent); outline-offset: -3px; }
/* A pill in the corner, not a disc in the middle: the thumbnails put their
   words in the middle. */
.video-play {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 14px;
  border-radius: 999px;
  background: rgba(11, 35, 69, .92);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(7, 27, 57, .28);
  transition: transform .15s ease;
}
.video-play::before {
  content: "";
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent #fff;
}
.video button:hover .video-play { transform: scale(1.04); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-note { color: var(--pb-muted); font-size: 14px !important; margin-bottom: 8px !important; }

.signoff {
  font-family: var(--pb-script-font);
  font-size: 32px !important;
  font-weight: 600;
  color: var(--pb-sketch-red);
  margin: 34px 0 !important;
}

.cta {
  background: var(--pb-accent-soft);
  border: 1px solid var(--pb-accent-soft-line);
  border-radius: 18px;
  padding: 26px 28px 28px;
  margin: 40px 0 44px;
}
.cta h2 { margin: 8px 0 8px; }
.cta p { font-size: 17px; margin-bottom: 20px; }
.cta .pb-button { color: #fff; }

.sources h2 { margin-top: 0; }
.sources h3 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--pb-muted);
  margin: 22px 0 10px;
}
.sources ol { margin: 0; padding-left: 22px; }
.sources li { font-size: 15px; line-height: 1.6; margin-bottom: 12px; }
.sources li a { overflow-wrap: anywhere; }

.about {
  color: var(--pb-muted);
  font-size: 15px !important;
  border-top: 1px solid var(--pb-line);
  padding-top: 18px;
  margin-top: 36px !important;
}

/* The share row's own styles are in styles.css. Inside an article a link
   would otherwise take the reading colour. */
.reading a.share-btn { color: var(--pb-brand); }
.reading a.share-btn:hover { border-color: var(--pb-accent); color: var(--pb-accent); }

.share-end { border-top: 1px solid var(--pb-line); padding-top: 22px; margin-top: 8px; }
.reading .share-end-title { font-size: 17px; font-weight: 600; color: var(--pb-brand); margin: 0 0 4px; }

/* the index */
.q-filters { margin: 28px 0 0; }
.q-filters[hidden] { display: none; }
.q-filters input {
  width: 100%;
  font: inherit;
  font-size: 16px; /* 16px or more, or iOS zooms in on focus */
  padding: 12px 16px;
  border: 1px solid var(--pb-field-line);
  border-radius: 12px;
  background: #fff;
  color: var(--pb-ink);
}
.q-filters input::placeholder { color: var(--pb-field-placeholder); }
.q-filters input:focus-visible { outline: 2px solid var(--pb-accent); outline-offset: 1px; }
.q-filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.q-filter {
  padding: 7px 14px;
  border: 1px solid var(--pb-field-line);
  border-radius: 999px;
  background: #fff;
  color: var(--pb-brand);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.q-filter span { color: var(--pb-muted); font-weight: 400; margin-left: 2px; }
.q-filter[aria-pressed="true"] { background: var(--pb-accent-dark); border-color: var(--pb-accent-dark); color: #fff; }
.q-filter[aria-pressed="true"] span { color: rgba(255, 255, 255, .75); }
.q-filter:focus-visible { outline: 2px solid var(--pb-accent); outline-offset: 2px; }
.reading .q-count { font-size: 14px; color: var(--pb-muted); margin: 12px 0 0; min-height: 1em; }

.q-list { list-style: none; margin: 18px 0 0; padding: 0; }
.q-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  padding: 22px 0;
  border-top: 1px solid var(--pb-line);
}
.q-item[hidden] { display: none; }
.q-item img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--pb-line); }
.q-item h2 { font-size: 21px; margin: 2px 0 8px; }
.q-item h2 a { color: inherit; text-decoration: none; }
.q-item h2 a:hover { text-decoration: underline; }
.q-item p { font-size: 16px; line-height: 1.55; margin: 0 0 8px; }
.q-meta { color: var(--pb-muted); font-size: 13px !important; }
.q-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; }
.q-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.reading a.q-chip {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--pb-accent-soft);
  border: 1px solid var(--pb-accent-soft-line);
  color: var(--pb-brand);
  font-size: 13px;
  text-decoration: none;
}
.reading a.q-chip:hover { border-color: var(--pb-accent); }
.reading a.q-watch { font-size: 14px; color: var(--pb-accent); }
.reading .q-empty { font-size: 16px; color: var(--pb-muted); margin-top: 22px; }
.q-empty[hidden] { display: none; }
.q-clear { all: unset; color: var(--pb-accent); text-decoration: underline; cursor: pointer; }
@media (max-width: 600px) {
  .q-item { grid-template-columns: 1fr; gap: 12px; }
  .reading p { font-size: 17px; }
  .reading .lede { font-size: 19px; }
  .cta { padding: 22px 20px 24px; }
}

.footer a { color: var(--pb-muted); }

/* /privacy's list */
.reading .plain-list { padding-left: 20px; margin: 0 0 18px; }
.reading .plain-list li { font-size: 17px; line-height: 1.6; margin-bottom: 10px; }

/* The newsletter box at the end of an article and of /questions
   (newsletter.js; its form styles are in styles.css). */
.nl-box {
  background: var(--pb-surface);
  border: 1px solid var(--pb-line);
  border-radius: 18px;
  padding: 24px 26px 22px;
  margin: 36px 0 0;
}
.reading .nl-box h2 { margin: 0 0 6px; font-size: 22px; }
.reading .nl-box p { font-size: 16px; line-height: 1.55; margin: 0 0 14px; }
.reading .nl-box .nl-consent { font-size: 13px; margin: 8px 0 0; }
.reading .nl-box .nl-status { font-size: 14px; margin: 6px 0 0; }
.nl-page { margin: 8px 0 28px; }
.reading .nl-page .nl-consent { font-size: 13px; }
.reading .nl-page .nl-status { font-size: 14px; }
@media (max-width: 600px) { .nl-box { padding: 20px 18px; } }

/* "Made with <coach>" under the byline of a partnership video (make_articles.py, COACHES) */
.made-with {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 24px; padding: 12px 16px;
  border: 1px solid var(--pb-accent-soft-line); border-left: 4px solid var(--pb-accent);
  border-radius: 10px; background: var(--pb-accent-soft);
}
.reading .made-with p { margin: 0; font-size: 16px; line-height: 1.5; }
.made-with a { color: var(--pb-accent); font-weight: 600; }
