/* Editorial pages share the same quiet panels and typography as the homepage. */
:is(.page-blog, .page-blogArchive) .site-content {
  padding-top: 64px;
  padding-bottom: 80px;
}

.page-blog .blog-head {
  margin-bottom: 48px;
}

.page-blog .blog-head h1,
.page-blogArchive .site-content > h1 {
  max-width: 900px;
  margin: 0 0 20px;
  font-size: clamp(42px, 5.5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.page-blog .blog-head > p {
  font-size: 19px;
  line-height: 1.5;
}

.page-blog .subscribe {
  margin: 40px 0;
  padding: 32px;
  border: 0;
  border-radius: 3px;
  background: #f6f6f2;
}

.page-blog .subscribe > b {
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.page-blog .subscribe > .small {
  max-width: 720px;
  margin-top: 16px;
  line-height: 1.6;
}

.page-blog .subscribe.compact {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin: 32px 0 0;
  padding: 24px 28px;
}

.page-blog .subscribe-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
}

.page-blog .compact .subscribe-form {
  margin: 0 0 0 auto;
}

.page-blog .subscribe-form input[type=email] {
  flex: 1 1 200px;
  width: 280px;
  max-width: 100%;
  min-width: 0;
}

.page-blog .subscribe-form button {
  flex: 0 0 auto;
  background: #ffb000;
  color: #151515;
  border-color: #ffb000;
}

.page-blog .subscribe-form .err {
  flex-basis: 100%;
}

.page-blog .featured-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0 0 56px;
}

.page-blog .card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin: 0;
  padding: 28px 0;
  border-bottom: 1px solid #e2e2dc;
}

.page-blog .card .thumb {
  display: block;
  overflow: hidden;
  background: #f6f6f2;
  border-radius: 3px;
}

.page-blog .card .thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  border: 0;
}

.page-blog .card-text {
  min-width: 0;
}

.page-blog .card .card-title {
  text-decoration: none;
  display: inline-block;
  color: #151515;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.page-blog .card .dek {
  margin: 12px 0 18px;
  color: #64645f;
  font-size: 15px;
  line-height: 1.6;
}

.page-blog .card .small {
  font-size: 12px;
  line-height: 1.6;
}

.page-blog .featured-row .card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 3px;
  overflow: hidden;
  background: #f6f6f2;
}

.page-blog .featured-row .card-text {
  padding: 24px;
}

.page-blog .featured-row .card-title {
  font-size: 26px;
}

.page-blog .counts span {
  display: inline-block;
  margin-left: 8px;
}

.page-blog .tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0 0 12px;
  padding: 0 0 20px;
  border-bottom: 1px solid #dcdcd6;
  font-size: 14px;
}

.page-blog .tabs > a {
  color: #666660;
}

.page-blog .tabs > a.on {
  color: #151515;
  font-weight: 700;
}

.page-blog .tabs > .inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}

.page-blog .tabs input[type=search] {
  width: 240px;
  min-width: 0;
}

.page-blog .tabs button {
  min-width: 44px;
}

.page-blog .pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin: 40px 0 64px;
  font-size: 14px;
}

.page-blog .pagination a {
  padding: 10px 16px;
  border: 1px solid #dcdcd6;
  border-radius: 3px;
}

.page-blog .recs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  list-style: none;
}

.page-blog .recs li {
  padding: 24px;
  background: #f6f6f2;
  border: 0;
  border-radius: 3px;
  line-height: 1.65;
}

.page-blog .recs li::before {
  content: none;
}

.page-blog .recs a {
  font-weight: 700;
}

.page-blog .badge {
  display: inline-block;
  padding: 2px 6px;
  background: #fff0ca;
  color: #6f4c00;
  border-radius: 2px;
  font-size: 12px;
}

/* The article and its discussion keep one comfortable reading measure. */
.page-blog .site-content:has(.post) {
  max-width: 760px;
  margin-inline: auto;
}

.page-blog .post {
  max-width: 100%;
  margin-top: 32px;
  font-size: 17px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.page-blog .post h1 {
  margin: 0 0 24px;
  font-size: clamp(36px, 4.5vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.page-blog .post > .dek {
  margin: 0 0 28px;
  color: #64645f;
  font-size: 20px;
  line-height: 1.55;
}

.page-blog .post .byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e2e2dc;
}

.page-blog .post .author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.page-blog :is(.author, .author-box) img {
  object-fit: cover;
  border-radius: 3px;
}

.page-blog .post p {
  margin: 20px 0;
}

.page-blog .post h2 {
  margin: 52px 0 20px;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.04em;
  scroll-margin-top: 32px;
}

.page-blog .post h3 {
  margin: 36px 0 16px;
  font-size: 23px;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.page-blog .post :is(p, li, td, blockquote) a {
  text-decoration: underline;
  text-decoration-color: #b4b4ac;
  text-underline-offset: 3px;
}

.page-blog .post .anchor {
  color: #888880;
  font-size: 0.65em;
  font-weight: 400;
  text-decoration: none;
}

.page-blog .post figure {
  margin: 32px 0;
}

.page-blog .post img {
  max-width: 100%;
  height: auto;
}

.page-blog .post .hero img {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 3px;
}

.page-blog .post figcaption {
  margin-top: 12px;
  color: #64645f;
  font-size: 13px;
  line-height: 1.6;
}

.page-blog .post .toc {
  margin: 32px 0;
  padding: 24px;
  background: #f6f6f2;
  line-height: 2;
}

.page-blog .post audio {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 24px 0;
}

.page-blog .post pre {
  max-width: 100%;
  margin: 24px 0;
  padding: 24px;
  border: 1px solid #e2e2dc;
  border-radius: 3px;
  background: #f6f6f2;
  font-size: 14px;
  line-height: 1.65;
  overflow-x: auto;
}

.page-blog .post blockquote {
  margin: 28px 0;
  padding: 8px 24px;
  border-left: 3px solid #ffb000;
  background: #f6f6f2;
  color: #44443f;
}

.page-blog .post ul {
  list-style: none;
  padding-left: 0;
}

.page-blog .post ul > li {
  margin: 12px 0;
  padding-left: 18px;
  border-left: 2px solid #dcdcd6;
}

.page-blog .post ul > li::before {
  content: none;
}

.page-blog .post ol {
  padding-left: 0;
}

/* The shared stylesheet draws the step number in a 40px gutter; keep that gutter so it never overlaps the text. */
.page-blog .post ol > li {
  margin: 12px 0;
  padding-left: 40px;
}

.page-blog .post ol > li::before {
  position: static;
  display: inline-block;
  width: 40px;
  margin-left: -40px;
  line-height: inherit;
}

.page-blog .post .table-scroll {
  max-width: 100%;
  margin: 28px 0;
  overflow-x: auto;
}

.page-blog .post table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
}

.page-blog .post :is(th, td) {
  min-width: 110px;
  padding: 14px 16px;
  border: 1px solid #e2e2dc;
  vertical-align: top;
}

.page-blog .post th {
  background: #f6f6f2;
  font-weight: 600;
}

.page-blog .post .paywall {
  margin: 36px 0;
  padding: 28px;
  border: 1px solid #ffb000;
  background: #fff9e9;
}

.page-blog .post .tags {
  margin-top: 36px;
  font-size: 13px;
}

.page-blog .post .actions-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 24px 0 48px;
  padding: 20px 0;
  border-block: 1px solid #e2e2dc;
  font-size: 13px;
}

.page-blog .post .actions-row .linkbutton {
  min-height: 36px;
}

.page-blog .post .like.on {
  color: #b63725;
}

.page-blog .post .share a,
.page-blog .post .share form {
  margin-left: 8px;
}

.page-blog .author-box {
  margin: 40px 0;
  padding: 28px;
  background: #f6f6f2;
  border-radius: 3px;
}

.page-blog .author-box img {
  margin-right: 8px;
  vertical-align: middle;
}

.page-blog .author-box .bio {
  display: block;
  margin-top: 16px;
  line-height: 1.65;
}

.page-blog #comments {
  margin-top: 56px;
}

.page-blog .comment {
  margin: 24px 0;
  padding: 24px 0;
  border-bottom: 1px solid #e2e2dc;
}

.page-blog .comment pre {
  margin: 12px 0 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.page-blog .form {
  max-width: 100%;
  margin-bottom: 40px;
}

.page-blog .form .row {
  margin: 20px 0;
}

.page-blog .form :is(input[type=text], input[type=email], textarea) {
  width: 100%;
  max-width: 100%;
}

.page-blogArchive .site-content > h3 {
  margin-top: 48px;
  padding-bottom: 16px;
  border-bottom: 1px solid #dcdcd6;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.page-blogArchive .rows td {
  padding-block: 20px;
  line-height: 1.65;
}

.page-blogArchive .rows .d {
  width: 130px;
  padding-right: 24px;
}

.page-blogArchive .rows a {
  font-weight: 600;
}

@media (max-width: 900px) {
  .page-blog .featured-row {
    gap: 16px;
  }

  .page-blog .featured-row .card-text {
    padding: 20px;
  }

  .page-blog .featured-row .card-title {
    font-size: 23px;
  }

  .page-blog .subscribe.compact {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-blog .compact .subscribe-form {
    width: 100%;
    margin: 0;
  }
}

@media (max-width: 700px) {
  :is(.page-blog, .page-blogArchive) .site-content {
    padding-top: 40px;
    padding-bottom: 48px;
  }

  .page-blog .blog-head {
    margin-bottom: 32px;
  }

  .page-blog .featured-row,
  .page-blog .recs {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-blog .card {
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding-block: 24px;
  }

  .page-blog .card .card-title {
  text-decoration: none;
    font-size: 21px;
  }

  .page-blog .featured-row .card-title {
    font-size: 26px;
  }

  .page-blog .card .dek {
    font-size: 14px;
    margin-block: 10px;
  }

  .page-blog .tabs {
    gap: 16px 24px;
  }

  .page-blog .tabs > .inline-form {
    order: 1;
    flex-basis: 100%;
    margin-left: 0;
  }

  .page-blog .tabs input[type=search] {
    flex: 1;
    width: 100%;
  }

  .page-blog :is(.subscribe, .subscribe.compact, .author-box) {
    padding: 24px;
  }

  .page-blog .post {
    font-size: 16px;
  }

  .page-blog .post > .dek {
    font-size: 18px;
  }

  .page-blog .post h2 {
    font-size: 28px;
  }

  .page-blog .post :is(pre, .toc) {
    padding: 18px;
  }
}

@media (max-width: 400px) {
  .page-blog .card {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-blog .subscribe-form button {
    width: 100%;
  }
}
