/**
 * The Pit: listing, month page and article.
 * Every selector is scoped under .pit-page so nothing leaks into other pages.
 * Loaded after inner.css, only on The Pit pages. Uses the theme colours
 * (--ink, --green, --leaf, --muted, --line) and fonts (--display, --body).
 */
.pit-page {
  background: #fff;
  --pit-soft: #f4f6f1;
  --pit-dark: var(--ink);
}
.pit-page main.wrap {
  width: min(calc(100% - 40px), 1240px);
  font-family: var(--body);
  font-weight: 400;
  color: var(--ink);
}
.pit-page main h1,
.pit-page main h2,
.pit-page main h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: 1.1;
}
.pit-page main a:hover { text-decoration: underline; text-underline-offset: 5px; }
.pit-page main a:focus-visible,
.pit-page main button:focus-visible,
.pit-page main summary:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.pit-page .visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.pit-page .ed-kicker {
  font: 700 11px/1.5 var(--display);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
}
.pit-page .ed-word-accent { color: var(--green); }

/* ---------- Masthead ---------- */
.pit-page .pit-mast {
  padding: 46px 0 28px;
  border-bottom: 3px solid var(--ink);
  margin-bottom: 35px;
}
.pit-page .mast-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.pit-page .mast-title h1 { font-size: clamp(55px, 8vw, 100px); letter-spacing: -.065em; line-height: .98; }
.pit-page .mast-title h1 > span { color: var(--green); }
.pit-page .mast-title > a { font-size: 13px; line-height: 1.6; max-width: 235px; text-decoration: underline; text-underline-offset: 5px; }
.pit-page .pit-mast > p { font-size: 16px; line-height: 1.7; max-width: 940px; color: var(--muted); margin-top: 30px; }

/* ---------- Layout ---------- */
.pit-page .editorial-layout { display: grid; grid-template-columns: minmax(0, 1fr) 228px; gap: 40px; align-items: start; }
.pit-page .editorial-main-column { min-width: 0; }
.pit-page .issue-panel { scroll-margin-top: 25px; }
.pit-page .issue-panel[hidden],
.pit-page .edition-contents[hidden] { display: none !important; }
.pit-page .issue-panel + .issue-panel { margin-top: 35px; }
.pit-page .no-script-note { padding: 15px 0; font-size: 14px; }
.pit-page .breadcrumbs { display: flex; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--muted); padding: 30px 0 25px; }
.pit-page .breadcrumbs a:hover { color: var(--green); }

/* ---------- Month cover ---------- */
.pit-page .edition-cover {
  display: grid;
  grid-template-columns: 1fr;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.pit-page .edition-cover.has-cover { grid-template-columns: 1.08fr 1fr; min-height: 360px; }
.pit-page .cover-copy { padding: 8px 0 32px; position: relative; z-index: 1; }
.pit-page .edition-cover.has-cover .cover-copy { padding: 30px 0 32px 0; }
.pit-page .cover-copy h2 { font-size: clamp(34px, 3.8vw, 52px); line-height: 1.04; letter-spacing: -.045em; margin: 19px 0 20px; max-width: 720px; }
.pit-page .cover-copy > p { font-size: 16px; line-height: 1.65; color: var(--muted); max-width: 560px; }
.pit-page .edition-cover.has-cover .cover-copy > p { max-width: 400px; }
.pit-page .cover-link {
  display: inline-flex; align-items: center; 
  font-size: 14px; font-weight: 700; color: var(--green);
  text-decoration: underline; text-underline-offset: 5px; margin-top: 25px;
}
.pit-page .cover-image { margin: 0; display: flex; align-items: center; justify-content: center; min-width: 0; padding: 20px 0 20px 20px; }
.pit-page .cover-image img { display: block; width: 100%; height: auto; object-fit: contain; }

/* ---------- Stories ---------- */
.pit-page .ed-section-line {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 26px 0 15px; border-bottom: 1px solid var(--line); margin-bottom: 22px;
}
.pit-page .ed-section-line > span { font: 700 10px/1.4 var(--display); letter-spacing: .09em; color: var(--muted); }
.pit-page .ed-section-line h3 { font-size: 30px; }
.pit-page .editorial-lead { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; }
.pit-page .ed-story h3 { font-size: 26px; line-height: 1.15; letter-spacing: -.035em; }
.pit-page .ed-story > p { font-size: 15px; line-height: 1.65; margin-top: 17px; color: var(--muted); }
.pit-page .ed-read {
  display: inline-block; font-size: 13px; line-height: 1.5; font-weight: 700; margin-top: 20px;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; color: var(--green);
}
/*.pit-page .ed-read > span { margin-left: 15px; }*/
.pit-page .ed-lead { padding: 26px; background: var(--pit-dark); color: #fff; display: flex; flex-direction: column; }
.pit-page .ed-lead h3 { font-size: clamp(29px, 3vw, 40px); line-height: 1.08; }
.pit-page .ed-lead > p { color: #e4e8df; }
.pit-page .ed-lead .ed-read { color: #fff; margin-top: auto; padding-top: 28px; align-self: flex-start; }
.pit-page .ed-lead .ed-word-accent { color: var(--leaf); }
.pit-page .editorial-side { display: flex; flex-direction: column; gap: 23px; }
.pit-page .editorial-side > .ed-story + .ed-story { padding-top: 23px; border-top: 1px solid var(--line); }
.pit-page .editorial-side h3 { font-size: 24px; }
.pit-page .editorial-side .ed-story > p { font-size: 14px; margin-top: 12px; }
.pit-page .editorial-side .ed-read { margin-top: 14px; }

.pit-page .editorial-question { background: var(--pit-dark); padding: 28px 32px 27px; margin: 32px 0 6px; border-left: 4px solid var(--green); }
.pit-page .editorial-question > .ed-kicker { color: #fff; }
.pit-page .editorial-question > p { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.25; color: #fff; max-width: 700px; margin-top: 14px; letter-spacing: -.025em; font-family: var(--display); }
.pit-page .editorial-question .ed-read { color: #fff; margin-top: 17px; }
.pit-page .editorial-question .ed-word-accent { color: var(--leaf); }

.pit-page .editorial-stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 24px; }
.pit-page .editorial-stories > .ed-story { border-top: 1px solid var(--green); padding-top: 21px; display: flex; flex-direction: column; }
.pit-page .editorial-stories .ed-story > p { font-size: 14px; }
.pit-page .editorial-stories .ed-read { margin-top: auto; padding-top: 20px; align-self: flex-start; }
.pit-page .editorial-stories .ed-wide { grid-column: span 2; background: var(--pit-soft); border-top: 3px solid var(--green); padding: 24px; }
.pit-page .editorial-stories .ed-wide h3 { font-size: 34px; }

/* ---------- Guide ---------- */
.pit-page .editorial-guide { display: grid; grid-template-columns: 1fr; gap: 35px; margin-top: 40px; padding: 30px; align-items: center; border-top: 3px solid var(--green); border-bottom: 1px solid var(--line); background: #fff; }
.pit-page .editorial-guide.has-image { grid-template-columns: 180px minmax(0, 1fr); }
.pit-page .guide-image img { display: block; width: 100%; height: auto; border: 1px solid var(--line); box-shadow: 0 8px 18px #15201918; }
.pit-page .guide-copy h3 { font-size: 30px; line-height: 1.12; }
.pit-page .guide-copy p { font-size: 15px; line-height: 1.65; color: var(--muted); margin-top: 17px; max-width: 560px; }
.pit-page .guide-copy small { display: block; font-size: 11px; line-height: 1.5; color: var(--muted); margin-top: 15px; }

/* ---------- Month picker (right column) ---------- */
.pit-page .ed-index { position: sticky; top: 23px; border-top: 4px solid var(--ink); padding-top: 19px; align-self: start; }
.pit-page .ed-index h2 { font-size: 27px; margin: 13px 0 9px; }
.pit-page .index-range { font-size: 12px; color: var(--muted); margin-bottom: 23px; }
.pit-page .edition-picker > button,
.pit-page .edition-picker .edition-link,
.pit-page .picker-year > button,
.pit-page .picker-year .edition-link {
  display: flex; flex-direction: column; gap: 6px; text-align: left; width: 100%;
  font-family: var(--body); background: transparent; border: 0; border-top: 1px solid var(--line);
  padding: 14px 12px; cursor: pointer; color: var(--ink);
}
.pit-page .edition-picker button > span,
.pit-page .edition-picker .edition-link > span { font-size: 19px; font-family: var(--display); }
.pit-page .edition-picker button > small,
.pit-page .edition-picker .edition-link > small { font-size: 11px; line-height: 1.4; color: var(--muted); }
.pit-page .edition-picker button[aria-pressed="true"] { background: var(--green); color: #fff; border-color: var(--green); }
.pit-page .edition-picker button[aria-pressed="true"] > small { color: #e4e8df; }
.pit-page .edition-picker button:hover:not([aria-pressed="true"]),
.pit-page .edition-picker .edition-link:hover { background: #fff; box-shadow: inset 3px 0 var(--green); text-decoration: none !important; }
.pit-page .edition-empty { display: flex; align-items: center; justify-content: space-between; padding: 13px 12px; border-top: 1px solid var(--line); color: #7a857c; }
.pit-page .edition-empty > span { font-size: 14px; }
.pit-page .edition-empty > small { font-size: 10px; }
.pit-page .picker-year > summary { font: 700 12px var(--display); letter-spacing: .1em; color: var(--green); padding: 12px 12px 10px; border-top: 1px solid var(--ink); cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.pit-page .picker-year > summary::-webkit-details-marker { display: none; }
.pit-page .picker-year > summary::after { content: "+"; }
.pit-page .picker-year[open] > summary::after { content: "–"; }
.pit-page .contents-drawer { margin-top: 23px; border-top: 1px solid var(--ink); padding-top: 14px; }
.pit-page .contents-drawer > summary { font-size: 13px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.pit-page .contents-drawer > summary::-webkit-details-marker { display: none; }
.pit-page .edition-contents { list-style: none; counter-reset: contents; margin: 14px 0 0; padding: 0 7px 0 0; max-height: 385px; overflow: auto; scrollbar-width: thin; }
.pit-page .edition-contents > li { counter-increment: contents; border-top: 1px solid var(--line); padding: 12px 0 12px 25px; position: relative; }
.pit-page .edition-contents > li:before { content: counter(contents, decimal-leading-zero); position: absolute; left: 0; top: 15px; color: var(--green); font-size: 10px; }
.pit-page .edition-contents a { font-size: 12px; line-height: 1.5; display: block; }

/* ---------- Sign-up and closing strip ---------- */
.pit-page .pit-subscribe { display: grid; grid-template-columns: 1fr 1.15fr; gap: 55px; background: #fff; border-top: 4px solid var(--green); border-bottom: 1px solid var(--line); padding: 38px; margin-top: 45px; scroll-margin-top: 30px; }
.pit-page .subscribe-copy h2 { font-size: 36px; margin: 17px 0; }
.pit-page .subscribe-copy p { font-size: 16px; line-height: 1.65; color: var(--muted); }
.pit-page .subscribe-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pit-page .subscribe-fields label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.pit-page .subscribe-fields input { width: 100%; min-width: 0; padding: 13px 12px; border: 1px solid #b8c0b8; background: #fff; color: var(--ink); font: 16px var(--body); border-radius: 0; }
.pit-page .subscribe-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; margin: 19px 0; }
.pit-page .subscribe-consent input { width: 18px; height: 18px; accent-color: var(--green); margin: 1px 0 0; flex-shrink: 0; }
.pit-page .pit-submit { background: var(--green); color: #fff; border: 0; padding: 14px 20px; font: 700 15px var(--display); cursor: pointer; }
.pit-page .pit-submit:hover { background: var(--leaf); color: var(--ink); }
.pit-page .pit-submit span { margin-left: 18px; }
.pit-page .pit-submit:disabled { opacity: .6; cursor: wait; }
.pit-page .subscribe-status { font-size: 14px; line-height: 1.6; margin-top: 15px; color: var(--green); }
.pit-page .subscribe-status.is-error { color: #a33a2a; }
.pit-page .pit-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.pit-page .ed-last-word { padding: 35px 0 45px; border-top: 3px solid var(--ink); margin-top: 40px; }
.pit-page .ed-last-word > p { font: 400 clamp(33px, 4.7vw, 52px)/1.08 var(--display); letter-spacing: -.04em; margin-top: 20px; }
.pit-page .ed-last-word > p > span { color: var(--green); }

/* ---------- Article ---------- */
.pit-page .article-head { padding-bottom: 35px; border-bottom: 1px solid var(--ink); }
.pit-page .story-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font: 700 12px var(--display); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 24px; }
.pit-page .story-meta span:first-child { color: var(--green); }
.pit-page .article-head h1 { font-size: clamp(36px, 4.6vw, 60px); max-width: 990px; line-height: 1.09; }
.pit-page .reading-layout { display: grid; grid-template-columns: minmax(0, 780px) minmax(230px, 1fr); gap: 65px; padding: 36px 0 50px; }
.pit-page .article-text > p { font-size: 18px; line-height: 1.72; margin: 0 0 22px; max-width: 750px; }
.pit-page .article-text > h2 { font-size: 28px; margin: 34px 0 14px; }
.pit-page .article-text a { text-decoration: underline; text-underline-offset: 4px; color: var(--green); }
.pit-page .article-copy figure { margin: 33px 0 29px; }
.pit-page .article-copy figure img { display: block; width: 100%; height: auto; }
.pit-page .article-copy figcaption { font-size: 13px; color: var(--muted); margin-top: 9px; }
.pit-page .questions { padding: 25px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pit-page .questions h2 { font-size: 27px; margin-bottom: 18px; }
.pit-page .questions ul { list-style: none; padding: 0; margin: 0; counter-reset: question; }
.pit-page .questions li { counter-increment: question; padding: 13px 0 13px 40px; font-size: 18px; line-height: 1.45; position: relative; }
.pit-page .questions li:before { content: counter(question, decimal-leading-zero); position: absolute; left: 0; color: var(--green); font-size: 14px; top: 17px; }
.pit-page .contents { align-self: start; border-top: 4px solid var(--green); padding-top: 18px; }
.pit-page .contents h2 { font-size: 25px; margin: 11px 0 18px; }
.pit-page .contents ol { list-style: none; padding: 0; margin: 0; }
.pit-page .contents li { border-top: 1px solid var(--line); }
.pit-page .contents li a { display: grid; grid-template-columns: 22px 1fr; gap: 13px; font-size: 14px; padding: 15px 0; line-height: 1.4; }
.pit-page .contents li a[aria-current] { font-weight: 700; color: var(--green); }
.pit-page .contents li a span { color: var(--muted); font-size: 12px; }
.pit-page .contents > p { margin: 24px 0 15px; font-size: 14px; }
.pit-page .contents .read-link { display: inline-block; font-size: 14px; font-weight: 700; color: var(--green); text-decoration: underline; text-underline-offset: 5px; }
.pit-page .article-download { padding: 30px; background: var(--pit-soft); border-top: 4px solid var(--green); margin-top: 30px; }
.pit-page .article-download h2 { font-size: 30px; margin: 14px 0; }
.pit-page .article-download p { font-size: 16px; line-height: 1.5; }
.pit-page .download-button { display: inline-block; padding: 13px 18px; background: var(--green); color: #fff; font: 700 15px var(--display); margin: 22px 0 0; }
.pit-page .download-button:hover { background: var(--leaf); color: var(--ink); text-decoration: none !important; }
.pit-page .article-download .download-note { font-size: 13px; margin-top: 14px; }
.pit-page .article-pagination { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; border-top: 1px solid var(--ink); margin-top: 40px; padding-top: 22px; }
.pit-page .article-pagination a { font: 400 20px/1.35 var(--display); letter-spacing: -.02em; }
.pit-page .article-pagination a.next { text-align: right; }
.pit-page .article-pagination a span { display: block; font: 700 12px var(--display); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 10px; }
.pit-page .month-pagination { margin-bottom: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .pit-page .editorial-layout { grid-template-columns: minmax(0, 1fr) 205px; gap: 27px; }
  .pit-page .editorial-stories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pit-page .editorial-stories .ed-wide { grid-column: span 1; }
  .pit-page .editorial-stories .ed-wide h3 { font-size: 29px; }
  .pit-page .editorial-guide.has-image { grid-template-columns: 150px 1fr; gap: 23px; }
  .pit-page .reading-layout { gap: 35px; grid-template-columns: minmax(0, 1fr) 230px; }
}
@media (max-width: 850px) {
  .pit-page .editorial-layout { grid-template-columns: minmax(0, 1fr) 180px; gap: 23px; }
  .pit-page .edition-cover.has-cover { grid-template-columns: 1fr; }
  .pit-page .edition-cover.has-cover .cover-copy { padding: 25px 0 0; }
  .pit-page .cover-image { max-width: 440px; padding: 20px 0; }
  .pit-page .editorial-lead { grid-template-columns: 1fr; }
  .pit-page .ed-lead h3 { font-size: 34px; }
  .pit-page .ed-index h2 { font-size: 24px; }
}
@media (max-width: 720px) {
  .pit-page .pit-mast { padding-top: 28px; margin-bottom: 25px; }
  .pit-page .mast-title { align-items: flex-start; }
  .pit-page .mast-title h1 { font-size: 60px; }
  .pit-page .mast-title > a { font-size: 12px; max-width: 120px; margin-top: 5px; }
  .pit-page .pit-mast > p { font-size: 15px; margin-top: 23px; }
  .pit-page .editorial-layout { display: flex; flex-direction: column; gap: 25px; }
  .pit-page .ed-index { order: 0; position: static; width: 100%; padding: 16px 0; border-top: 0; border-bottom: 1px solid var(--line); }
  .pit-page .ed-index > .ed-kicker,
  .pit-page .ed-index > h2,
  .pit-page .index-range { display: none; }
  .pit-page .edition-picker { display: flex; flex-wrap: wrap; gap: 8px; }
  .pit-page .edition-picker > button,
  .pit-page .edition-picker > .edition-link,
  .pit-page .picker-year > button,
  .pit-page .picker-year > .edition-link { width: auto; flex: 1; min-width: 125px; border: 1px solid var(--line); padding: 12px; }
  .pit-page .picker-year { width: 100%; }
  .pit-page .picker-year[open] { display: flex; flex-wrap: wrap; gap: 8px; }
  .pit-page .picker-year > summary { width: 100%; border-top: 0; }
  .pit-page .edition-empty { border: 0; padding: 7px 8px; gap: 7px; }
  .pit-page .contents-drawer { margin-top: 15px; padding-top: 12px; }
  .pit-page .edition-contents { max-height: 200px; }
  .pit-page .editorial-main-column { order: 1; width: 100%; }
  .pit-page .cover-copy h2 { font-size: clamp(35px, 9vw, 45px); }
  .pit-page .editorial-stories { grid-template-columns: 1fr; gap: 26px; }
  .pit-page .editorial-stories .ed-story h3 { font-size: 28px; }
  .pit-page .editorial-stories .ed-wide { padding: 24px; }
  .pit-page .editorial-stories .ed-story > p { font-size: 15px; }
  .pit-page .editorial-question { padding: 25px; }
  .pit-page .editorial-question > p { font-size: 28px; }
  .pit-page .editorial-guide { padding: 25px 20px; gap: 20px; }
  .pit-page .editorial-guide.has-image { grid-template-columns: 120px minmax(0, 1fr); }
  .pit-page .pit-subscribe { grid-template-columns: 1fr; gap: 25px; padding: 25px; }
  .pit-page .subscribe-fields { grid-template-columns: 1fr; }
  .pit-page .pit-submit { width: 100%; }
  .pit-page .ed-last-word > p br { display: none; }
  .pit-page .article-head h1 { font-size: 38px; }
  .pit-page .reading-layout { grid-template-columns: 1fr; padding-top: 28px; gap: 38px; }
  .pit-page .article-text > p { font-size: 17px; }
  .pit-page .article-pagination { gap: 20px; }
  .pit-page .article-pagination a { font-size: 17px; }
  .pit-page .article-download { padding: 25px; }
  .pit-page .download-button { width: 100%; text-align: center; }
  .pit-page .breadcrumbs { font-size: 13px; }
}
@media (max-width: 420px) {
  .pit-page .editorial-guide.has-image { grid-template-columns: 1fr; }
  .pit-page .guide-image { width: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  .pit-page { scroll-behavior: auto; }
}
