/* Keep the lead's reading order consistent across desktop and phone layouts. */
.edition-lead > .edition-photo {
  grid-column: 1;
  grid-row: 1;
}

.edition-lead > .edition-lead-copy {
  grid-column: 2;
  grid-row: 1;
}

@media (max-width: 699px) {
  body main#content {
    padding-inline: 0;
    padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
  }

  .site-header .edition-bar {
    padding: 7px 18px;
    font-size: .58rem;
    line-height: 1.5;
  }

  .site-header .masthead {
    min-height: 76px;
    padding: 13px 18px;
  }

  .site-header .brand {
    gap: 10px;
    min-width: 0;
  }

  .site-header .brand__mark {
    width: 41px;
    height: 41px;
    flex: 0 0 41px;
    border-radius: 12px;
  }

  .site-header .brand__word strong {
    font-size: clamp(1.45rem, 6.5vw, 1.8rem);
    line-height: 1.15;
  }

  .site-header .brand__word small {
    display: block;
    font-size: .6rem;
    margin-top: 4px;
  }

  .site-header .section-nav {
    min-height: 46px;
    padding-inline: 16px;
    overflow: visible;
    gap: 0;
  }

  .site-header .section-nav > a,
  .site-header .mobile-menu > summary {
    min-height: 46px;
    padding: 13px 14px;
    font-size: .74rem;
    line-height: 1.65;
  }

  .site-header .mobile-menu {
    position: relative;
    margin-inline-start: auto;
  }

  .site-header .mobile-menu > div {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    width: min(320px, calc(100vw - 32px));
    max-height: 65vh;
    overflow-y: auto;
    padding: 10px;
    z-index: 120;
    border: 1px solid #dce5dc;
    border-radius: 12px;
    background: #fffdf8;
    box-shadow: 0 16px 45px #163d3026;
  }

  .site-header .mobile-menu > div a {
    display: block;
    min-height: 44px;
    border-radius: 7px;
    white-space: normal;
    padding: 12px;
    font-size: .8rem;
  }

  body .mobile-reading-dock {
    position: fixed;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    height: auto;
    min-height: 66px;
    padding: 7px 12px calc(7px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #dbe5dd;
    background: #fffdf8;
    box-shadow: 0 -6px 24px #193d3310;
    z-index: 100;
  }

  body .mobile-reading-dock a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    min-height: 48px;
    padding: 5px 2px;
    border-radius: 10px;
    color: #66766d;
    font-size: .62rem;
    font-weight: 600;
    line-height: 1.5;
  }

  body .mobile-reading-dock a[aria-current="page"] {
    background: #e8f2eb;
    color: #115f49;
  }

  .mobile-reading-dock svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .edition .edition-heading {
    padding-block: 12px;
    font-size: .64rem;
    border-color: #d6e0d6;
  }

  .edition .edition-intro {
    display: block;
    padding: 18px 0 6px;
  }

  .edition .edition-intro > div {
    display: none;
  }

  .edition .edition-intro form {
    max-width: none;
  }

  .edition .edition-intro label {
    margin-bottom: 9px;
    font-size: .76rem;
  }

  .edition .edition-intro input {
    padding: 13px 12px;
    font-size: .8rem;
  }

  .edition .edition-intro button {
    min-height: 46px;
    padding-inline: 16px;
  }

  .edition .edition-intro form > p {
    gap: 7px;
    margin-block: 10px 0;
  }

  .edition .edition-intro form > p a {
    padding: 6px 10px;
    font-size: .65rem;
  }

  .edition .edition-front {
    gap: 22px;
    padding-block: 22px;
  }

  .edition .edition-lead {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
  }

  .edition .edition-lead-copy {
    display: contents;
  }

  .edition-lead-copy > .edition-latest {
    order: 0;
    margin: 0 0 9px;
    font-size: .64rem;
  }

  .edition-lead-copy > .edition-label {
    order: 1;
    align-self: flex-start;
    margin-bottom: 8px;
  }

  .edition .edition-lead-copy > h1 {
    order: 2;
    margin: 0 0 16px;
    font-size: clamp(1.48rem, 6.7vw, 1.85rem);
    line-height: 1.65;
    letter-spacing: -.015em;
  }

  .edition .edition-lead > .edition-photo {
    order: 3;
    width: 100%;
    margin: 0 0 16px;
    border-radius: 12px;
    background: #edf2eb;
  }

  .edition .edition-photo img[data-news-image] {
    aspect-ratio: auto;
    max-height: 320px;
    object-fit: contain;
  }

  .edition-lead-copy > p:not(.edition-latest) {
    order: 4;
    font-size: .91rem;
    line-height: 1.95;
    margin: 0;
    color: #5a7062;
  }

  .edition-lead-copy > .edition-hero-ad {
    order: 5;
  }

  .edition .edition-headlines article {
    padding-block: 17px;
  }

  .edition .edition-headlines h3 {
    font-size: 1rem;
    line-height: 1.85;
  }

  .edition .coverage-desk {
    margin-block: 12px 28px;
    padding: 20px 16px;
    border-radius: 14px;
  }

  .edition .coverage-desk h2 {
    font-size: 1.25rem;
  }

  .edition .edition-grid .story-card {
    display: block;
    padding: 16px;
    border: 1px solid #dde6dc;
    border-radius: 12px;
    background: #fffdf8;
    overflow: hidden;
  }

  .edition .edition-grid .story-card:has(.story-card__media img:not([hidden])) {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
  }

  .edition .edition-grid .story-card__media {
    aspect-ratio: 1;
    border-radius: 8px;
    background: #eef3ec;
  }

  .edition .edition-grid .story-card__body {
    padding: 0;
    min-width: 0;
  }

  .edition .edition-grid .story-card h3 {
    font-size: 1.04rem;
    line-height: 1.85;
    margin-block: 10px;
  }

  .article-shell.article-shell--reader {
    padding-inline: 18px;
  }

  .article-shell--reader .article .breadcrumbs {
    margin-bottom: 18px;
    font-size: .68rem;
  }

  .article-shell--reader .article .article-standfirst {
    font-size: .96rem;
    line-height: 1.9;
    margin-block: 14px 20px;
  }

  .article-shell--reader .article .byline {
    gap: 8px 14px;
    padding-block: 13px;
  }

  .article-shell--reader .article .reader-toolbar {
    gap: 10px;
    margin-top: 14px;
  }

  .article-shell--reader .reader-context {
    padding: 20px;
    border-radius: 14px;
  }

  .site-footer {
    padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
  }

  a:focus-visible,
  button:focus-visible,
  summary:focus-visible {
    outline: 3px solid #a57c3c;
    outline-offset: 3px;
  }
}
