.journal-topics__caption,
.journal-topics__detail,
.journal-topic-back,
.journal-cover-label--mobile,
body.journal-home .brand > .journal-brand__compact,
body.journal-home .journal-footer > :is(.journal-footer__masthead, .journal-footer__heritage) { display: none; }

@media (min-width: 981px) {
  body.journal-home .page > .first-view {
    display: block;
    height: auto;
    min-height: 0;
  }

  body.journal-home .first-view::before,
  body.journal-home .first-view::after { display: none; }

  body.journal-home .first-view .hero--direction {
    display: grid;
    grid-template-columns: minmax(0, .94fr) minmax(0, 1.55fr) minmax(202px, .64fr);
    align-items: stretch;
    height: auto;
    gap: clamp(16px, 2vw, 32px);
    padding: clamp(22px, 2.5vw, 40px);
  }

  body.journal-home .first-view .hero__copy {
    width: auto;
    min-width: 0;
    padding: 0;
    align-self: center;
  }

  body.journal-home .first-view .hero__media,
  body.journal-home .first-view .hero__panel {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
  }

  body.journal-home .first-view .hero__media {
    min-height: clamp(260px, 22.5vw, 355px);
    background: #25282a;
  }

  body.journal-home .first-view .hero__media::after { display: none; }

  body.journal-home .first-view .hero__media img {
    position: absolute;
    inset: 0;
    display: block;
    height: 100%;
    object-fit: cover;
    object-position: 51% 50%;
    transform: none;
    filter: none;
  }

  body.journal-home .hero__copy .kicker { margin-bottom: 14px; }
  body.journal-home .hero__copy h1 {
    margin-bottom: 14px;
    font-size: clamp(40px, 3.25vw, 64px);
    line-height: 1;
    letter-spacing: -.04em;
  }

  body.journal-home .hero__copy > p:not(.kicker) {
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.45;
  }

  body.journal-home .hero__copy .actions { flex-wrap: wrap; gap: 8px; }

  body.journal-home .hero__copy .btn {
    gap: 10px;
    min-width: 0;
    min-height: 44px;
    height: auto;
    padding: 9px 13px;
    font-size: 13px;
    white-space: nowrap;
  }

  body.journal-home .hero-microbar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
    width: 100%;
    margin-top: 20px;
  }

  body.journal-home .hero-microbar div { min-height: 0; padding-top: 8px; }
  body.journal-home .hero-microbar span { font-size: 9px; }
  body.journal-home .hero-microbar b { font-size: 11px; }

  body.journal-home .hero__panel { display: flex; flex-direction: column; }
  body.journal-home .hero__panel .spec-panel__head { padding: 18px; }
  body.journal-home .hero__panel dl {
    display: grid;
    flex: 1;
    padding: 0 18px;
  }
  body.journal-home .hero__panel dl div { align-items: center; gap: 6px; padding: 5px 0; }
  body.journal-home .hero__panel dl div:last-child { border-bottom: 0; }
  body.journal-home .hero__panel dd { font-size: 12px; }
  body.journal-home .hero__panel dd a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
  }

  body.journal-home #journal-guides {
    padding: clamp(22px, 2vw, 32px) clamp(22px, 2.5vw, 40px) 48px;
  }

  body.journal-home #journal-guides .section__head { display: block; margin-bottom: 16px; }
  body.journal-home #journal-guides .section__head > div {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px 24px;
  }
  body.journal-home #journal-guides h2 {
    margin: 0;
    font-size: clamp(30px, 3vw, 44px);
    letter-spacing: -.04em;
  }
  body.journal-home #journal-guides .section__head p { margin: 0; font-size: 15px; }

  /* Fragment navigation focuses a container in WebKit. Keep outlines on its links. */
  .journal-home :is(.journal-group, #journal-guides):target:focus { outline: none; }
}

@media (min-width: 981px) and (max-width: 1319px) {
  body.journal-home .first-view .hero--direction {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  }

  body.journal-home .hero__panel {
    grid-column: 1 / -1;
    flex-direction: row;
  }

  body.journal-home .hero__panel .spec-panel__head {
    align-items: center;
    gap: 12px;
    border-bottom: 0;
    border-inline-end: 1px solid rgba(255, 255, 255, .18);
    font-size: 11px;
  }

  body.journal-home .hero__panel .spec-panel__head strong { font-size: 24px; }
  body.journal-home .hero__panel dl { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  body.journal-home .hero__panel dl div {
    justify-content: center;
    flex-direction: column;
    border: 0;
    text-align: center;
  }
  body.journal-home .hero__panel dd { text-align: center; }
}

@media (max-width: 980px) {
  html.journal-root {
    --journal-graphite: #151c20;
  }

  /* Safari can show the document background around its floating toolbar. */
  html.journal-root,
  body.journal-home {
    background-color: var(--journal-graphite);
  }

  body.journal-home {
    --journal-pale: #f5f6f5;
    --journal-secondary: #c1c9cd;
    --journal-rule: #40484d;
  }

  body.journal-home .topbar .brand { gap: 12px; }
  body.journal-home .topbar .brand__logo { width: clamp(104px, 30vw, 122px); }
  body.journal-home .topbar .brand > .journal-brand__compact {
    display: block;
    padding-inline-start: 10px;
    color: #4a555b;
    font: 700 10px/1.2 var(--mono, monospace);
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  body.journal-home .first-view .hero--direction {
    background: var(--journal-graphite);
  }

  body.journal-home .first-view .hero__media {
    position: relative;
    inset: auto;
    display: block !important;
    width: 100%;
    max-width: none;
    height: clamp(136px, 37vw, 255px);
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #25282a;
  }

  .journal-home .hero__media img {
    display: block;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transform: none;
    filter: none;
  }

  body.journal-home .first-view .hero__copy {
    padding: 18px 18px 20px;
    background: var(--journal-graphite);
  }

  .journal-cover-label--desktop { display: none; }
  .journal-cover-label--mobile { display: inline; }

  body.journal-home .hero__copy > p.kicker {
    display: flex !important;
    align-items: center;
    gap: 9px;
    margin: 0 0 10px;
    padding: 0;
    color: var(--journal-secondary);
    font: 500 10px/1.3 var(--mono, monospace);
    letter-spacing: .12em;
    text-transform: uppercase;
  }

  body.journal-home .hero__copy > p.kicker::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--journal-rule);
  }

  body.journal-home .hero__copy h1 {
    color: var(--journal-pale);
    font-size: clamp(34px, 10.7vw, 58px);
    letter-spacing: -.035em;
  }

  body.journal-home .hero__copy > p:not(.kicker):not(.crumb) {
    margin: 0;
    color: #d5dadd;
    line-height: 1.48;
  }

  body.journal-home .page > #journal-guides { padding-top: 18px; }

  .journal-home .journal-topics {
    display: block;
    margin-bottom: 0;
  }

  .journal-home .journal-topics__caption {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    padding: 0 0 9px;
    border-bottom: 2px solid #303a40;
    color: #1e292f;
    font-size: 17px;
    font-weight: 750;
  }

  .journal-home .journal-topics__caption span,
  .journal-home .journal-topics small {
    color: #4f5c63;
    font: 650 11px/1.25 var(--mono, monospace);
    font-variant-numeric: tabular-nums;
  }

  .journal-home .journal-topics a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 12px;
    align-items: center;
    gap: 12px;
    min-height: 55px;
    padding: 8px 4px 8px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    color: #172024;
    font-size: 16px;
    font-weight: 700;
  }

  .journal-home .journal-topics a::after {
    content: "";
    justify-self: end;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid #58666d;
    border-bottom: 1.5px solid #58666d;
    transform: rotate(-45deg);
  }

  .journal-home .journal-topics a:is(:hover, :focus-visible, :active) {
    background: #e8ecec;
  }

  .journal-home .journal-topics__detail {
    display: block;
    margin-top: 4px;
    color: #4f5c63;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 400;
  }

  .journal-home .journal-topics small { text-align: right; }

  .journal-home .journal-group > h3 {
    align-items: baseline;
    gap: 9px;
    margin-bottom: 8px;
  }

  .journal-home .journal-group > h3 > span {
    display: inline;
    color: #4f5c63;
    letter-spacing: .06em;
  }

  .journal-home .journal-group .journal-card > span { color: #4c5960; }
  .journal-home .journal-group .journal-card::after { color: #526067; }

  body.journal-home .page > #request { padding-block: 20px 24px; }
  .journal-home #request .section__head { margin-bottom: 0; }
  .journal-home #request .section__head > span { display: none; }
  .journal-home #request .section__head h2 {
    max-width: 28ch;
    margin: 0 0 7px;
    font-size: 19px;
    line-height: 1.2;
  }
  .journal-home #request .section__head p {
    max-width: 48ch;
    font-size: 14px;
    line-height: 1.45;
  }

  body.journal-home main.shell.page {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    padding-bottom: 0;
    background-color: #f4f4f2;
  }

  body.journal-home .page > .journal-footer {
    display: grid;
    flex-grow: 1;
    align-content: start;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
    padding: 18px 18px calc(16px + env(safe-area-inset-bottom));
    border-top: 0;
    background: var(--journal-graphite);
    color: var(--journal-pale);
  }

  body.journal-home .journal-footer > .journal-footer__masthead {
    display: flex;
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    min-height: 42px;
    padding: 0 0 12px;
  }

  .journal-home .journal-footer__masthead img {
    display: block;
    width: 100px;
    height: auto;
  }

  body.journal-home .journal-footer > :is(a, div) {
    border: 0;
    border-bottom: 1px solid var(--journal-rule);
    background: transparent;
  }

  body.journal-home .journal-footer > :is(a, div:not(.journal-footer__masthead)) {
    min-height: 61px;
    gap: 5px;
    padding: 9px 0;
    color: inherit;
  }

  .journal-home .journal-footer__contact { grid-column: 1 / -1; }
  .journal-home .journal-footer > * > span { color: var(--journal-secondary); }
  .journal-home .journal-footer b {
    font-size: 14px;
    line-height: 1.35;
  }

  body.journal-home .journal-footer > .journal-footer__heritage {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 57px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 14px 0 0;
  }

  .journal-footer__heritage figcaption > span {
    display: block;
    margin-bottom: 5px;
    color: var(--journal-secondary);
    font: 600 10px/1.2 var(--mono, monospace);
    letter-spacing: .09em;
  }

  .journal-footer__heritage figcaption > strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
  }

  .journal-home .journal-footer > a:focus-visible {
    outline: 2px solid var(--journal-secondary);
    outline-offset: 2px;
  }

  @supports selector(:has(*)) {
    /* A topic URL is a focused view on mobile. Desktop keeps the full index. */
    .journal-home .journal-group:not(:target),
    .journal-home:has(.journal-group:target) :is(.first-view, .journal-topics),
    .journal-home #journal-format:not(:target) { display: none; }

    .journal-home .journal-group:target { margin-bottom: 0; }

    /* WebKit focuses the whole fragment container after following its link. */
    .journal-home :is(.journal-group, #journal-guides):target:focus {
      outline: none;
    }

    .journal-home .journal-topic-back {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      min-height: 44px;
      padding-right: 8px;
      color: #35424a;
      font-size: 14px;
      font-weight: 700;
    }

    .journal-home .journal-topic-back::before {
      content: "";
      width: 6px;
      height: 6px;
      margin-left: 2px;
      border-bottom: 1.5px solid currentColor;
      border-left: 1.5px solid currentColor;
      transform: rotate(45deg);
    }

    .journal-home .journal-group:target > h3 {
      margin: 6px 0 14px;
      font-size: clamp(26px, 7.6vw, 36px);
      line-height: 1.08;
    }

    .journal-home .journal-group:target > h3 > span { display: none; }
  }
}
