/* ==========================================================================
   TeamTrek — the article
   --------------------------------------------------------------------------
   Three columns on a wide screen: a rail of tools, the prose, and the
   contents. It was two before, with an empty first column holding the
   prose 240px off centre on every desktop; the column is now the thing
   that was missing from the page rather than the thing pushing it over.

   The measure is still the whole design. Sixty-five characters or so is
   where a line stops being work to read, and everything else here -- the
   rails' width, where the figures break out, how far the pull quote
   reaches -- is arranged around holding that measure rather than filling
   the window.

   Figures are the site's own instruments at full column width. Where a
   photograph belongs and there is not one yet, .art__fig--image holds a
   labelled panel so a draft shows the shape of the finished piece.
   ========================================================================== */

/* ----------------------------------------------------------- the masthead
   One band, about 800px of it, holding the head of the piece centred:
   where the reader came from, the headline, the standfirst and who wrote
   it. The cover straddles the band's lower edge, half on the tint and
   half on the white the prose starts on, so the head and the article read
   as one object rather than two stacked blocks.

   It had no rules at all until recently, which is why the article used to
   open with an unstyled heading on white while its own source comment
   described a dark band nobody could see.
   ------------------------------------------------------------------------ */
.blogmast {
  /* Above the article, not under it. The cover hangs into #article, and a
     later section's background paints over an earlier section's content --
     which cut a hard horizontal line across the picture exactly where the
     band ended. */
  position: relative; overflow: visible; isolation: isolate; z-index: 1;
  /* 6rem under the navbar, which is what every other hero on the site
     uses. It was 5rem here, so an article opened 16px higher than the
     page a reader had just come from. */
  padding: 6rem 0 0;
}
.blogmast--light { background: var(--ambient); color: var(--neutral-900); }

/* The band's own floor. The cover crosses it, so the edge is drawn by the
   ground changing colour rather than by a rule through the picture. */
.blogmast::after {
  content: ""; position: absolute; z-index: -1;
  left: 0; right: 0; bottom: 0; height: 11rem;
  background: #fff;
}

/* Left, not centred. A centred head reads as a poster; the piece under
   it is a column of text that starts at the left margin, and the eye
   should not have to move twice before the first paragraph.

   Two columns from 1000px up: the headline keeps the left of the band and
   the writer card takes the right half, which was empty. The card sits on
   the baseline of the block beside it rather than at the top, so the band
   has one floor rather than two ragged edges. */
.blogmast__head {
  display: grid; gap: 3.5rem;
  align-items: end;
}
.blogmast__lead { max-width: 52rem; min-width: 0; }
@media (min-width: 1000px) {
  .blogmast__head { grid-template-columns: minmax(0, 1fr) 22rem; }
  .blogmast__lead { max-width: none; }
}

.blogmast__back { margin-bottom: 1.75rem; }
.blogmast__sep { color: var(--neutral-300); }

.blogmast__title {
  font-size: clamp(2.125rem, 4.6vw, 3.5rem); font-weight: 800;
  line-height: 1.06; letter-spacing: -.03em;
  color: var(--neutral-900);
  max-width: 18ch;
}
.blogmast__copy {
  margin-top: 1.25rem; max-width: 52ch;
  font-size: 1.125rem; line-height: 1.7; color: var(--neutral-600);
}

/* ------------------------------------------------------- the writer card
   Who wrote it, when it went out and how long it takes: the three facts
   about the piece, in a card on the tint rather than a line under the
   standfirst. Same border, radius and white ground as every other card on
   the site, so it belongs to the band rather than floating on it.
   ------------------------------------------------------------------------ */
.writer {
  padding: 1.5rem;
  border: 1px solid var(--neutral-200); border-radius: var(--r-lg);
  background: #fff;
  box-shadow: 0 1px 2px rgb(16 24 40 / .04);
}
.writer__eyebrow {
  margin: 0 0 1rem;
  font-size: .6875rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--neutral-500);
}
.writer__who { display: flex; align-items: center; gap: .875rem; }
.writer .mock-avatar { flex: none; width: 2.75rem; height: 2.75rem; font-size: .875rem; }
.writer__name { display: grid; gap: .125rem; margin: 0; min-width: 0; }
.writer__name b { font-size: .9375rem; font-weight: 700; color: var(--neutral-900); }
.writer__name span { font-size: .8125rem; line-height: 1.4; color: var(--neutral-500); }

/* Label left, value right, on one rule each: a label over a value would
   make the card twice as tall as the standfirst beside it. */
.writer__facts {
  margin: 1.25rem 0 0; padding-top: 1.25rem;
  border-top: 1px solid var(--neutral-150, #EDEFEF);
  display: grid; gap: .625rem;
}
.writer__fact {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.writer__fact dt {
  display: flex; align-items: center; gap: .4375rem;
  font-size: .8125rem; color: var(--neutral-500);
}
.writer__fact dt .icon { color: var(--primary-600); }
.writer__fact dd {
  margin: 0;
  font-size: .8125rem; font-weight: 600; color: var(--neutral-900);
  text-align: right;
}

@media (max-width: 999px) {
  /* Back to a line under the standfirst: a 22rem card has nowhere to go
     at tablet width, and the facts read fine in a row. */
  .blogmast__head { gap: 2rem; }
  .writer { padding: 1.25rem; }
  .writer__eyebrow { display: none; }
  .writer__facts {
    margin-top: 1rem; padding-top: 1rem;
    grid-auto-flow: column; grid-auto-columns: max-content; gap: 2rem;
    justify-content: start;
  }
  .writer__fact { flex-direction: column; align-items: flex-start; gap: .125rem; }
}
@media (max-width: 479px) {
  .writer__facts {
    grid-auto-flow: row; grid-auto-columns: auto;
    justify-content: stretch; gap: .625rem;
  }
  .writer__fact { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* The cover. 21:9, so a band tall enough to hold a centred head does not
   also have to hold a tall picture, and 9rem of it hangs below the tint. */
.blogmast__cover {
  margin: 2.25rem 0 -11rem;
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--neutral-200);
  background: #fff;
  box-shadow: 0 32px 64px -40px rgb(16 24 40 / .4);
}
.blogmast__cover .post__visual {
  /* width and height both stated. With aspect-ratio and a max-height the
     box sized itself from the height -- 480px tall, so 1120px wide inside
     a 1200px figure -- which left a white strip down the right of the
     cover and a hard edge where the fields stopped. */
  display: block; width: 100%; height: auto;
  aspect-ratio: 21 / 9; max-height: 34rem;
  border-bottom: 0;
  /* The card's fields are drawn for a 280px tile: two of the three are
     the palest tints, which at 1200px wide disappear and leave one blob
     on the left and an empty right half. The cover draws its own -- same
     ramp, wider radii, and the weight spread evenly across the band so
     neither end is bare. */
  background:
    radial-gradient(26% 66% at 14% 32%, var(--primary-400) 0%, transparent 70%),
    radial-gradient(24% 60% at 38% 84%, var(--primary-200) 0%, transparent 72%),
    radial-gradient(24% 60% at 62% 18%, var(--primary-200) 0%, transparent 72%),
    radial-gradient(26% 66% at 86% 66%, var(--primary-300) 0%, transparent 70%),
    radial-gradient(40% 56% at 50% 48%, var(--primary-100) 0%, transparent 74%),
    var(--neutral-25);
}
/* The tile is centred on the band by the figure, not by a flex box that
   is no longer there. */
.blogmast__cover .post__tile {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.blogmast__cover { position: relative; }

.blogmast__cover img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 21 / 9; max-height: 34rem;
  object-fit: cover;
}

@media (max-width: 899px) {
  .blogmast { padding-top: 3.5rem; }
  .blogmast::after { height: 5rem; }
  .blogmast__cover { margin: 2rem 0 -5rem; }
  .blogmast__cover .post__visual,
  .blogmast__cover img { aspect-ratio: 16 / 9; }
}
@media (max-width: 639px) {
  .blogmast { padding-top: 3rem; }
  .blogmast__back { margin-bottom: 1.25rem; }
  .blogmast__cover .post__visual,
  .blogmast__cover img { aspect-ratio: 4 / 3; }
}
@media (max-width: 380px) {
  /* The clamp bottoms out at 34px, which is three lines of headline on a
     320px screen before the reader has seen anything else. */
  .blogmast__title { font-size: 1.875rem; letter-spacing: -.02em; }
  .blogmast__copy { font-size: 1rem; }
}

/* The cover hangs 9rem below the band, so the piece starts below that
   rather than behind it. The sections around it are not all the same
   height either: a piece that ends and a card row that begins should not
   carry the same weight, so the article closes tighter than it opens and
   "Read next" opens on its rule rather than on 120px of air. */
#article { padding-top: 14rem; padding-bottom: 5rem; }
#next { padding-top: 6rem; }
/* .posts carries no margin of its own -- on the listing page the filter
   bar above it provides the gap -- so here the cards were sitting on the
   heading, 16px above its own bottom edge. */
#next .posts { margin-top: 3rem; }
#next .posts__more { margin-top: 2.5rem; }
/* Three cards, three equal columns. The listing's auto-fill track is
   right for a grid of eleven; for a row of three it left 280px of empty
   page on the right. */
@media (min-width: 900px) {
  #next .posts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  #article { padding-top: 8rem; padding-bottom: 4rem; }
  #next { padding-top: 4.5rem; }
}

/* ------------------------------------------------------- the progress line
   How far through the piece a reader is. The markup was always there and
   the script has always driven it; the rules went missing in an earlier
   rewrite, so the bar has been 0px tall on every device since.

   It sticks under the navbar rather than over it: the navbar shrinks to
   --header-h-scrolled as soon as the page moves, which is the only state
   this bar is ever seen in.
   -------------------------------------------------------------------- */
.readbar {
  /* Out of the flow entirely. In the flow it sits between the band and the
     article, which is exactly where the cover hangs -- so its track drew a
     grey line straight across the picture until the reader scrolled far
     enough for it to stick. Fixed to the top of the window instead, over
     the navbar's own edge, and with no track of its own: at the top of the
     page there is nothing to see. */
  position: fixed; top: 0; left: 0; right: 0; z-index: 85;
  height: 3px;
  background: transparent;
  pointer-events: none;
}
.readbar__fill {
  display: block; height: 100%; width: 0;
  border-bottom-right-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--primary-500, #16A394), var(--primary-700));
  transition: width .08s linear;
}
@media (prefers-reduced-motion: reduce) { .readbar__fill { transition: none; } }

/* ------------------------------------------------------------ the layout
   Two columns: the prose on the left, running from the container's own
   left edge, and the rail on the right.

   It was three for a while, with the tools on the left. A reader's eye
   returns to the left margin on every line of a long piece, and a column
   of buttons sitting there was in the way of the one thing they came for.
   -------------------------------------------------------------------- */
.art {
  display: grid;
  grid-template-columns: minmax(0, 44rem) minmax(0, 19rem);
  gap: 4rem;
  justify-content: space-between;
}
.art__body { grid-column: 1; min-width: 0; }

/* The rail. Contents, the ways to pass the piece on, then the one offer
   the piece has earned by the time a reader is this far down. */
.art__rail {
  grid-column: 2;
  align-self: start;
  position: sticky; top: 6rem;
  display: grid; gap: 1.25rem;
  font-size: .875rem;
}

.toccard {
  padding: 1.25rem;
  border: 1px solid var(--neutral-200); border-radius: var(--r-lg);
  background: #fff;
}

/* The contents are a <details> so that a phone, where they sit above the
   first paragraph, can fold them away. Above 1024px they are in the rail
   with nothing to gain from folding, so the summary is a heading there
   and nothing else: no marker, no pointer, no toggle. */
.toccard__summary {
  list-style: none; cursor: default;
  font-size: .6875rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--neutral-400);
}
.toccard__summary::-webkit-details-marker { display: none; }
.toccard[open] .toccard__summary { margin-bottom: .75rem; }
.toccard__chev { display: none; }

@media (max-width: 1023px) {
  .toccard__summary {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; cursor: pointer;
    font-size: .75rem; color: var(--neutral-500);
  }
  .toccard__summary:focus-visible { outline: 2px solid var(--primary-600); outline-offset: 4px; }
  .toccard__chev {
    display: block; flex: none;
    color: var(--neutral-400);
    transition: transform .18s ease;
  }
  .toccard[open] .toccard__chev { transform: rotate(180deg); }
}
@media (prefers-reduced-motion: reduce) { .toccard__chev { transition: none; } }

.art__railhead {
  margin-bottom: .75rem;
  font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--neutral-400);
}
.art__toc { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.art__toc a {
  display: block; padding-left: .75rem;
  border-left: 2px solid var(--neutral-200);
  color: var(--neutral-500); line-height: 1.45;
}
.art__toc a:hover { color: var(--neutral-900); border-left-color: var(--primary-300); }
.art__toc a.is-here { color: var(--primary-800); border-left-color: var(--primary-600); font-weight: 600; }

/* The share toolbar. Four icons, each with its own accessible name, and a
   status line that only says anything once the link has been copied. */
.share--icons {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  padding: 0 .25rem;
}
.share__label {
  margin-right: .25rem;
  font-size: .8125rem; font-weight: 600; color: var(--neutral-500);
}
.share__icon {
  display: inline-grid; place-items: center;
  width: 2.25rem; height: 2.25rem;
  border: 1px solid var(--neutral-200); border-radius: 50%;
  background: #fff; color: var(--neutral-500);
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.share__icon:hover {
  border-color: var(--primary-300); color: var(--primary-700);
  background: var(--primary-50, #E7F4F1);
}
.share__icon:focus-visible { outline: 2px solid var(--primary-600); outline-offset: 2px; }
.share__said {
  flex-basis: 100%;
  font-size: .75rem; color: var(--primary-700);
}
.share__said:empty { display: none; }

/* The offer. Ink, because everything around it is white and a reader who
   has come this far should be able to find it without hunting. */
.railcta {
  padding: 1.25rem;
  border-radius: var(--r-lg);
  background: var(--ink-900, #0E1A18);
}
.railcta__title { font-size: 1rem; font-weight: 800; color: #fff; }
.railcta__copy {
  margin-top: .375rem;
  font-size: .8125rem; line-height: 1.55; color: rgba(255, 255, 255, .72);
}
.railcta__btn { margin-top: 1rem; width: 100%; justify-content: center; }

/* -------------------------------------------------------------- the prose */
/* The first paragraph after the takeaways is the opening of the piece and
   is set as one: a size up from the body, with the colour to match. The
   rest of the article runs at 17px. */
.prose .art__points + p {
  font-size: 1.1875rem; line-height: 1.7; color: var(--neutral-800);
}

/* A short rule over every section heading. Sections announce themselves
   in a long read, and a heading with nothing above it looks like a
   paragraph that grew. */
.prose h2::before {
  content: ""; display: block;
  width: 2.5rem; height: 2px; margin-bottom: .875rem;
  background: var(--primary-600);
}
.prose .art__points h2::before { display: none; }
.prose { color: var(--neutral-700); font-size: 1.0625rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.25rem; }
/* Not `.prose p { margin: 0 }`: that rule comes after the one above and
   takes the space back out from under every heading. Only the first child
   loses its top margin, because the section already provides that space. */
.prose > :first-child { margin-top: 0; }
.prose h2 {
  /* 3.5rem above a section heading, not 2.75: it now carries a kicker
     rule, and a heading that close to the paragraph above reads as part
     of it. */
  margin: 3.5rem 0 0;
  font-size: 1.625rem; line-height: 1.25; font-weight: 700;
  letter-spacing: -.02em; color: var(--neutral-900);
  scroll-margin-top: 6rem;
}
.prose h3 {
  margin: 2rem 0 0;
  font-size: 1.1875rem; line-height: 1.35; font-weight: 700;
  color: var(--neutral-900);
  scroll-margin-top: 6rem;
}
/* The site's reset strips list markers, which is right for navigation and
   wrong for prose: a list in an article is a list, and it should look like
   one. They are put back by hand. */
.prose ul, .prose ol { padding-left: 1.25rem; display: grid; gap: .5rem; }
.prose ul { list-style: disc outside; }
.prose ol { list-style: decimal outside; }
.prose li { padding-left: .25rem; }
.prose li::marker { color: var(--primary-500); }
.prose strong { color: var(--neutral-900); }
.prose a {
  color: var(--primary-800);
  text-decoration: underline; text-underline-offset: .2em;
  text-decoration-color: var(--primary-200);
}
.prose a:hover { text-decoration-color: var(--primary-600); }

/* A sentence the piece is willing to be quoted on. No quotation marks: the
   rule and the size say it is a quote, and the glyphs would only repeat
   that in a decorative accent. */
.prose blockquote {
  margin: 2rem 0;
  padding-left: 1.25rem;
  border-left: 3px solid var(--primary-500);
  font-size: 1.25rem; line-height: 1.5; font-weight: 600;
  letter-spacing: -.01em; color: var(--neutral-900);
}
.prose blockquote p { margin: 0; }

/* What a reader takes away if they read nothing else. */
.art__points {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--primary-200); border-radius: var(--r-lg);
  background: var(--primary-50);
}
.art__points h2,
.art__points h3 { margin: 0 0 .625rem; font-size: .8125rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--primary-800); }
.art__points ul { gap: .375rem; }
.art__points li { color: var(--neutral-700); }

/* A figure in the prose: the site's own instruments, at column width, with
   the line under it that says what it is. */
.art__fig { margin: 2rem 0; }

/* Where a photograph goes. The placeholder borrows the card's visual, so
   a piece without one still has a picture rather than a grey box, and an
   <img> dropped in its place needs no new rule. */
.art__fig--image .art__imgph {
  position: relative;
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--neutral-200);
}
.art__fig--image .post__visual { border-bottom: 0; }
.art__fig--image img { display: block; width: 100%; height: auto; }
.art__imgph-tag {
  position: absolute; z-index: 2; top: .75rem; left: .75rem;
  padding: .1875rem .5rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .86); color: var(--neutral-500);
  font-size: .625rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.art__fig figcaption {
  margin-top: .75rem;
  font-size: .8125rem; color: var(--neutral-500);
}

/* --------------------------------------------------------- the head matter */
.art__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  margin: 0 0 1.125rem;
  font-size: .8125rem; color: var(--neutral-500);
}
.art__cat {
  font-size: .6875rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--primary-700);
}
.art__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--neutral-300); }
/* The way back to the listing, in the line that already says where this
   piece sits. */
.art__back {
  display: inline-flex; align-items: center; gap: .375rem;
  font-weight: 600; color: var(--primary-700); text-decoration: none;
}
.art__back:hover { color: var(--primary-800); text-decoration: underline; }

/* -------------------------------------------------------- who wrote it */
/* ------------------------------------------------------------- the foot
   What the piece was about, whether it worked, and who wrote it. The
   share buttons are not repeated down here: they are in the rail, still
   on screen, two inches to the right.
   -------------------------------------------------------------------- */
.artfoot {
  margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid var(--neutral-200);
  display: grid; gap: 2rem;
}

.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tags a {
  display: inline-block;
  padding: .3125rem .75rem;
  border: 1px solid var(--neutral-200); border-radius: var(--r-pill);
  background: #fff;
  font-size: .8125rem; font-weight: 600; color: var(--neutral-600);
}
.tags a:hover {
  border-color: var(--primary-300); color: var(--primary-800);
  background: var(--primary-50, #E7F4F1);
}

/* Nothing is recorded -- there is no back end on this site -- so the
   buttons say so once they are pressed rather than implying a vote went
   somewhere. */
.helpful { display: flex; flex-wrap: wrap; align-items: center; gap: .625rem; }
.helpful__ask { margin-right: .25rem; font-size: .9375rem; font-weight: 700; color: var(--neutral-900); }
.helpful__btn {
  padding: .4375rem .875rem;
  border: 1px solid var(--neutral-200); border-radius: var(--r-pill);
  background: #fff;
  font: inherit; font-size: .875rem; font-weight: 600; color: var(--neutral-600);
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.helpful__btn:hover {
  border-color: var(--primary-300); color: var(--primary-800);
  background: var(--primary-50, #E7F4F1);
}
.helpful__btn:focus-visible { outline: 2px solid var(--primary-600); outline-offset: 2px; }
.helpful__said { font-size: .875rem; color: var(--primary-700); }
.helpful__said:empty { display: none; }
.helpful[data-done] .helpful__btn,
.helpful[data-done] .helpful__ask { display: none; }

.authorcard {
  display: flex; align-items: flex-start; gap: 1.25rem;
  padding: 1.5rem;
  border: 1px solid var(--neutral-200); border-radius: var(--r-lg);
  background: #fff;
}
.authorcard .mock-avatar { flex: none; width: 3.25rem; height: 3.25rem; font-size: 1rem; }
.authorcard__text { min-width: 0; }
.authorcard__name { font-size: 1.0625rem; font-weight: 800; color: var(--neutral-900); }
.authorcard__role {
  margin-top: .125rem;
  font-size: .8125rem; font-weight: 600; color: var(--primary-700);
}
.authorcard__bio {
  margin-top: .625rem;
  font-size: .9375rem; line-height: 1.65; color: var(--neutral-600);
}
.authorcard__links { margin-top: .875rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.authorcard__links a {
  font-size: .875rem; font-weight: 600; color: var(--primary-700);
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: var(--primary-200);
}
.authorcard__links a:hover { text-decoration-color: var(--primary-600); }

/* --------------------------------------------------------- touch screens
   A finger is not a cursor. Every control in an article gets to 44px on a
   coarse pointer, which is what both platforms ask for, and the ones that
   are text get the height through padding rather than through type size.
   -------------------------------------------------------------------- */
@media (pointer: coarse) {
  .share__icon { width: 2.75rem; height: 2.75rem; }
  .helpful__btn { min-height: 2.75rem; padding: .625rem 1rem; }
  .tags a { padding: .625rem 1rem; }
  .art__back { padding: .5rem .25rem .5rem 0; }
  .art__toc a { padding-top: .375rem; padding-bottom: .375rem; }
  .authorcard__links a { display: inline-block; padding: .375rem 0; }
  .toccard__summary { padding: .25rem 0; }
}

/* ------------------------------------------------------------ responsive */
/* Laptop and landscape tablet. The rail stays beside the piece -- dropping
   it at 1200px left 240px of empty page down the right of every paragraph --
   but on a narrower track, and the body gives up its fixed 44rem so the two
   columns share what there is. */
@media (max-width: 1199px) and (min-width: 1024px) {
  .art {
    grid-template-columns: minmax(0, 1fr) 16rem;
    gap: 2.5rem; justify-content: start;
  }
  .art__body { max-width: 44rem; }
  .art__rail { font-size: .8125rem; }
  .toccard { padding: 1rem; }
}

/* Portrait tablet and phone. One column, and the rail breaks into its
   three parts: the contents go above the piece, where a reader can still
   use them, and the share toolbar and the offer follow the last paragraph
   instead of the whole article. display: contents lets the three sit in
   the page's own grid without a second copy of them in the markup. */
@media (max-width: 1023px) {
  .art { grid-template-columns: minmax(0, 1fr); gap: 0; justify-content: start; }
  .art__body { grid-column: 1; max-width: 44rem; }
  .art__rail { display: contents; }
  .toccard { order: -1; max-width: 44rem; margin-bottom: 2.5rem; }
  .share--icons { order: 1; max-width: 44rem; margin-top: 2rem; padding: 0; }
  .railcta { order: 2; max-width: 44rem; margin-top: 1.25rem; }
}
}

@media (max-width: 639px) {
  .prose { font-size: 1rem; }
  .prose h2 { font-size: 1.375rem; margin-top: 2rem; }
  /* The pulled-out box's heading is a label, not a section heading. The
     rule above it out-specified nothing -- it simply came later. */
  .prose .art__points h2 { font-size: .8125rem; margin-top: 0; }
  .prose h3 { font-size: 1.0625rem; }
  .prose blockquote { font-size: 1.125rem; padding-left: 1rem; }
  .art__points { padding: 1rem 1.125rem; }
  .art__meta { font-size: .75rem; }
  .art__cat { font-size: .75rem; }
  .art__fig figcaption { font-size: .75rem; }
  .authorcard { flex-direction: column; gap: 1rem; padding: 1.25rem; }
  .inlinecta { flex-direction: column; align-items: flex-start; }
}

/* ------------------------------------------------- the prose components
   A tip, a two-column comparison and an offer, all of them things the
   piece drops into the run of paragraphs without leaving the measure.
   -------------------------------------------------------------------- */
.tip {
  display: flex; align-items: flex-start; gap: 1rem;
  margin: 2rem 0;
  padding: 1.25rem 1.375rem;
  border: 1px solid var(--neutral-200); border-radius: var(--r-lg);
  background: var(--neutral-25, #FAFBFB);
}
.tip__mark {
  flex: none;
  display: inline-grid; place-items: center;
  width: 2.25rem; height: 2.25rem;
  border-radius: var(--r-md, 10px);
  background: var(--primary-50, #E7F4F1); color: var(--primary-700);
}
.tip__text { min-width: 0; }
.tip__label {
  font-size: .8125rem; font-weight: 800; color: var(--neutral-900);
}
.tip__text p + p { margin-top: .25rem; }
.tip__text p:last-child { font-size: .9375rem; line-height: 1.65; color: var(--neutral-600); }

/* The comparison. Two columns on a desktop; on a phone each row stacks,
   with the left column reading as the heading of the right one. */
.cmp {
  margin: 2rem 0;
  border: 1px solid var(--neutral-200); border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
}
.cmp__head, .cmp__row {
  display: grid; gap: .25rem 1.25rem;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  padding: .875rem 1.25rem;
}
.cmp__head {
  background: var(--neutral-25, #FAFBFB);
  border-bottom: 1px solid var(--neutral-200);
  font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--neutral-500);
}
.cmp__row + .cmp__row { border-top: 1px solid var(--neutral-150, #EDEFEF); }
.cmp__row span { font-size: .9375rem; line-height: 1.6; color: var(--neutral-600); }
.cmp__row b { color: var(--neutral-900); }
@media (max-width: 559px) {
  .cmp__head { display: none; }
  .cmp__row { grid-template-columns: minmax(0, 1fr); }
}

/* The offer inside the piece. One line, one button, and the ground that
   says it is us talking rather than the argument continuing. */
.inlinecta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.25rem;
  margin: 2.5rem 0;
  padding: 1.5rem;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-600) 100%);
}
.inlinecta__title { font-size: 1.0625rem; font-weight: 800; color: #fff; }
.inlinecta__copy {
  margin-top: .25rem; max-width: 34ch;
  font-size: .875rem; line-height: 1.55; color: rgba(255, 255, 255, .8);
}
.inlinecta__btn { flex: none; }

/* A figure borrowed from a solution page keeps its own proportions here,
   not the catalogue's 235px: that height exists so six pages line up with
   each other, and inside a column of prose there is nothing to line up
   with. Its rows take the space they need instead of being clipped. */
@media (min-width: 860px) {
  .art__fig .estact { height: auto; display: block; }
  .art__fig .estact__row { padding-block: .625rem; }
}

/* ----------------------------------------------------------- phone type
   Last in the sheet on purpose: the rule it overrides is set further down
   the file than the responsive section, and both carry the same weight.
   The opening paragraph is a size up from the body, which at 19px against
   a 16px body is a cliff rather than a step.
   -------------------------------------------------------------------- */
@media (max-width: 639px) {
  .prose .art__points + p { font-size: 1.0625rem; }
}
