body.timy-story-archive-page .wp-site-blocks {
  overflow-x: hidden;
}

/* The block template adds global side padding to the singular main element.
 * Remove that outer gutter once, then let each editorial section own its
 * shell. This keeps the integrated cover Hero genuinely edge-to-edge without
 * forcing the long-form copy outside its existing reading measure. */
body.single-timy_story #timy-main.timy-story-single {
  max-width: none;
  padding-inline: 0 !important;
}

body.single-timy_story #timy-main.timy-story-single > .timy-story-editorial {
  width: 100%;
  max-width: none;
}

/* Detail stories use one responsive Hero composition.  The reviewed cover
 * stays in the DOM (and remains the source of truth for alt text), while the
 * editorial title, summary and metadata sit above it.  This keeps the native
 * journal scaffold and the alternate news article scaffold visually aligned
 * without changing the archive or the brand-story page. */
@media (min-width: 901px) {
  .timy-story-editorial--native .journal-essay-hero,
  .timy-story-editorial--color-outline .article-hero {
    position: relative;
    z-index: 0;
    display: flex;
    align-items: center;
    min-height: clamp(680px, 88svh, 840px);
    padding: calc(var(--header-h, 82px) + 68px) 0 86px;
    overflow: hidden;
    isolation: isolate;
    background: var(--dark, #2b201a) !important;
    border-bottom: 0;
    color: #fffaf4;
  }

  .timy-story-editorial--native .journal-essay-hero::after,
  .timy-story-editorial--color-outline .article-hero::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(35, 25, 20, .8) 0%, rgba(35, 25, 20, .52) 34%, rgba(35, 25, 20, .1) 69%, rgba(35, 25, 20, .04) 100%), linear-gradient(0deg, rgba(35, 25, 20, .52), transparent 35%);
  }

  .timy-story-editorial--native .journal-essay-hero-grid,
  .timy-story-editorial--color-outline .article-hero-inner {
    position: relative;
    z-index: 2;
    display: block;
    width: var(--shell);
    max-width: 1120px;
    margin-inline: auto;
  }

  .timy-story-editorial--native .journal-essay-hero-grid > div {
    max-width: min(720px, 62vw);
  }

  .timy-story-editorial--native .journal-essay-hero h1,
  .timy-story-editorial--color-outline .article-hero h1 {
    max-width: 760px;
    color: #fffaf4;
    text-wrap: balance;
  }

  .timy-story-editorial--native .journal-essay-hero .lead,
  .timy-story-editorial--color-outline .article-dek {
    max-width: 650px;
    color: rgba(255, 250, 244, .82);
  }

  .timy-story-editorial--native .record-kicker,
  .timy-story-editorial--color-outline .article-kicker {
    color: var(--essay-accent, #ec5a57) !important;
  }

  .timy-story-editorial--native .journal-essay-meta,
  .timy-story-editorial--color-outline .article-meta {
    max-width: 680px;
    margin-top: 42px;
    border-color: rgba(255, 250, 244, .3);
  }

  .timy-story-editorial--native .journal-essay-meta div,
  .timy-story-editorial--color-outline .article-meta {
    border-color: rgba(255, 250, 244, .3);
  }

  .timy-story-editorial--native .journal-essay-meta dt,
  .timy-story-editorial--native .journal-essay-meta dd,
  .timy-story-editorial--color-outline .article-meta dt,
  .timy-story-editorial--color-outline .article-meta dd {
    color: rgba(255, 250, 244, .84);
  }

  .timy-story-editorial--color-outline .article-hero-inner {
    padding-block: 38px 10px;
  }

  .timy-story-editorial--color-outline .article-breadcrumb {
    color: rgba(255, 250, 244, .72);
  }

  .timy-story-editorial--color-outline .article-cover,
  .timy-story-editorial--native .journal-cover {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: #3c2b23;
    pointer-events: none;
  }

  .timy-story-editorial--color-outline .article-cover::before,
  .timy-story-editorial--native .journal-cover::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(35, 25, 20, .25), transparent 70%);
  }

  .timy-story-editorial--color-outline .article-cover picture,
  .timy-story-editorial--color-outline .article-cover > img,
  .timy-story-editorial--native .journal-cover picture,
  .timy-story-editorial--native .journal-cover > img,
  .timy-story-editorial--color-outline .article-cover-grid {
    display: block;
    width: 100%;
    height: 100%;
  }

  .timy-story-editorial--color-outline .article-cover-grid {
    position: absolute;
    inset: 0;
    min-height: 0;
    background: #3c2b23;
  }

  .timy-story-editorial--color-outline .article-cover-main,
  .timy-story-editorial--native .journal-cover img,
  .timy-story-editorial--color-outline .article-cover picture img,
  .timy-story-editorial--color-outline .article-cover > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .timy-story-editorial--color-outline .article-cover-detail,
  .timy-story-editorial--color-outline .article-cover-character {
    display: none;
  }

  .timy-story-editorial--native .journal-cover figcaption,
  .timy-story-editorial--color-outline .article-cover figcaption {
    position: absolute;
    z-index: 2;
    right: max(48px, calc((100vw - 1120px) / 2));
    bottom: 22px;
    left: max(48px, calc((100vw - 1120px) / 2));
    width: auto;
    margin: 0;
    padding: 12px 0 0;
    border-top-color: rgba(255, 250, 244, .32);
    color: rgba(255, 250, 244, .74);
  }
}

/* Keep the same media-first composition on tablets and phones.  The Hero
 * grows with its real text content; the absolute cover therefore cannot
 * become a blank strip when a translated title wraps to an extra line. */
@media (max-width: 900px) {
  .timy-story-editorial--native .journal-essay-hero,
  .timy-story-editorial--color-outline .article-hero {
    position: relative;
    z-index: 0;
    display: flex;
    align-items: flex-end;
    min-height: 680px;
    padding: calc(var(--header-h, 66px) + 50px) 0 48px;
    overflow: hidden;
    isolation: isolate;
    background: var(--dark, #2b201a) !important;
    border-bottom: 0;
    color: #fffaf4;
  }

  .timy-story-editorial--native .journal-essay-hero::after,
  .timy-story-editorial--color-outline .article-hero::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(0deg, rgba(35, 25, 20, .88) 0%, rgba(35, 25, 20, .42) 52%, rgba(35, 25, 20, .08) 100%);
  }

  .timy-story-editorial--native .journal-essay-hero-grid,
  .timy-story-editorial--color-outline .article-hero-inner {
    position: relative;
    z-index: 2;
    display: block;
    width: var(--shell);
    max-width: none;
    margin-inline: auto;
  }

  .timy-story-editorial--native .journal-essay-hero-grid > div,
  .timy-story-editorial--color-outline .article-hero-inner {
    max-width: none;
  }

  .timy-story-editorial--native .journal-essay-hero h1,
  .timy-story-editorial--color-outline .article-hero h1 {
    max-width: 100%;
    color: #fffaf4;
    font-size: clamp(40px, 10.6vw, 58px);
    line-height: 1.1;
    text-wrap: balance;
    overflow-wrap: anywhere;
  }

  .timy-story-editorial--native .journal-essay-hero .lead,
  .timy-story-editorial--color-outline .article-dek {
    max-width: 100%;
    color: rgba(255, 250, 244, .84);
    font-size: 15px;
    line-height: 1.85;
  }

  .timy-story-editorial--native .record-kicker,
  .timy-story-editorial--color-outline .article-kicker {
    color: var(--essay-accent, #ec5a57) !important;
  }

  .timy-story-editorial--native .journal-essay-meta,
  .timy-story-editorial--color-outline .article-meta {
    margin-top: 32px;
    border-color: rgba(255, 250, 244, .3);
  }

  .timy-story-editorial--native .journal-essay-meta div,
  .timy-story-editorial--color-outline .article-meta {
    border-color: rgba(255, 250, 244, .3);
  }

  .timy-story-editorial--native .journal-essay-meta dt,
  .timy-story-editorial--native .journal-essay-meta dd,
  .timy-story-editorial--color-outline .article-meta dt,
  .timy-story-editorial--color-outline .article-meta dd {
    color: rgba(255, 250, 244, .84);
  }

  .timy-story-editorial--color-outline .article-hero-inner {
    padding-block: 26px 0;
  }

  .timy-story-editorial--color-outline .article-breadcrumb {
    color: rgba(255, 250, 244, .74);
  }

  .timy-story-editorial--color-outline .article-cover,
  .timy-story-editorial--native .journal-cover {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: #3c2b23;
    pointer-events: none;
  }

  .timy-story-editorial--color-outline .article-cover::before,
  .timy-story-editorial--native .journal-cover::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(0deg, rgba(35, 25, 20, .2), transparent 60%);
  }

  .timy-story-editorial--color-outline .article-cover picture,
  .timy-story-editorial--color-outline .article-cover > img,
  .timy-story-editorial--native .journal-cover picture,
  .timy-story-editorial--native .journal-cover > img,
  .timy-story-editorial--color-outline .article-cover-grid {
    display: block;
    width: 100%;
    height: 100%;
  }

  .timy-story-editorial--color-outline .article-cover-grid {
    position: absolute;
    inset: 0;
    min-height: 0;
    background: #3c2b23;
  }

  .timy-story-editorial--color-outline .article-cover-main,
  .timy-story-editorial--native .journal-cover img,
  .timy-story-editorial--color-outline .article-cover picture img,
  .timy-story-editorial--color-outline .article-cover > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .timy-story-editorial--color-outline .article-cover-detail,
  .timy-story-editorial--color-outline .article-cover-character {
    display: none;
  }

  .timy-story-editorial--native .journal-cover figcaption,
  .timy-story-editorial--color-outline .article-cover figcaption {
    position: absolute;
    z-index: 2;
    right: 18px;
    bottom: 14px;
    left: 18px;
    width: auto;
    margin: 0;
    padding: 9px 0 0;
    border-top-color: rgba(255, 250, 244, .32);
    color: rgba(255, 250, 244, .74);
    font-size: 8px;
  }
}

body.admin-bar.timy-story-archive-page .site-header,
body.admin-bar.timy-story-page .site-header {
  top: 32px;
}

body.admin-bar .timy-story-archive-main,
body.admin-bar .timy-story-single {
  padding-top: 32px;
}

/* The three public editorial columns share one calm reading template while
 * retaining a small, functional color cue. The label is content, not an
 * ornamental English eyebrow. */
body.timy-story-channel-journal .timy-story-editorial {
  --essay-accent: #ec5a57;
  --essay-soft: #eadfd4;
}

body.timy-story-channel-product-note .timy-story-editorial {
  --essay-accent: #5c955d;
  --essay-soft: #dce8d8;
}

body.timy-story-channel-news .timy-story-editorial {
  --essay-accent: #446fb8;
  --essay-soft: #dbe3ef;
}

body.timy-story-page .record-kicker,
body.timy-story-page .article-kicker {
  color: var(--essay-accent, #ec5a57);
  letter-spacing: .12em;
}

body .timy-story-archive-main > *,
body .timy-story-single > * {
  width: 100%;
  max-width: none;
  margin-block-start: 0;
  margin-block-end: 0;
}

.timy-story-archive-main,
.timy-story-single {
  overflow-x: clip;
}

.timy-story-archive .news-family {
  overflow: hidden;
}

.timy-story-archive .news-family-rail {
  width: 100%;
  max-width: 100%;
}

.timy-story-editorial--native .journal-related-links {
  margin-top: 72px;
  padding: 42px 0 0;
  border-top: 1px solid var(--line);
}

.timy-story-editorial--native .journal-related-links h2 {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: clamp(32px, 3vw, 46px);
  line-height: 1.25;
}

.timy-story-editorial--native .journal-related-links > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.timy-story-editorial--native .journal-related-links a {
  min-width: 0;
  min-height: 118px;
  padding: 20px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  color: var(--ink);
  background: var(--paper);
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}

.timy-story-editorial--native .journal-related-links a:hover,
.timy-story-editorial--native .journal-related-links a:focus-visible {
  border-color: var(--essay-accent, var(--red));
  background: var(--white);
  transform: translateY(-3px);
}

.timy-story-editorial--native .journal-related-links a span {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.45;
}

.timy-story-editorial--native .journal-related-links a em {
  color: var(--essay-accent, var(--red));
  font-size: 18px;
  font-style: normal;
}

/* Keep long-form stories on one calm editorial scale. WordPress-authored notes
 * and reviewed source notes share the same reading measure and mobile rhythm. */
.timy-story-editorial--native .journal-essay-hero h1 {
  max-width: 900px;
  font-size: clamp(50px, 5vw, 72px);
  line-height: 1.12;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.timy-story-editorial--native .journal-body-grid {
  grid-template-columns: minmax(190px, 220px) minmax(0, 720px);
  gap: clamp(64px, 8vw, 116px);
}

.timy-story-editorial--color-outline .article-hero h1 {
  max-width: 980px;
  font-size: clamp(58px, 6.2vw, 88px);
  line-height: 1.08;
  letter-spacing: -.055em;
  text-wrap: balance;
}

@media (max-width: 760px) {
  body.admin-bar.timy-story-archive-page .site-header,
  body.admin-bar.timy-story-page .site-header {
    top: 46px;
  }

  body.admin-bar .timy-story-archive-main,
  body.admin-bar .timy-story-single {
    padding-top: 46px;
  }

  body.admin-bar .navigation-mobile-drawer {
    inset-block-start: calc(var(--nav-header-h, 66px) + 46px);
  }

  .timy-story-archive .news-featured-grid,
  .timy-story-archive .news-family-rail {
    max-width: 100%;
    overscroll-behavior-inline: contain;
  }

  .timy-story-archive .news-featured-grid {
    overflow-y: hidden;
    padding-bottom: 10px;
  }

  .timy-story-editorial--native .journal-related-links {
    margin-top: 56px;
    padding-top: 34px;
  }

  .timy-story-editorial--native .journal-related-links > div {
    grid-template-columns: 1fr;
  }

  .timy-story-editorial--native .journal-related-links a {
    min-height: 96px;
  }

  .timy-story-editorial--native .journal-essay-hero {
    padding: calc(var(--header-h) + 40px) 0 48px;
  }

  .timy-story-editorial--native .journal-essay-hero h1 {
    max-width: 100%;
    font-size: clamp(34px, 9.3vw, 40px);
    line-height: 1.12;
    letter-spacing: -.035em;
    overflow-wrap: normal;
    word-break: normal;
    text-wrap: balance;
  }

  .timy-story-editorial--native .journal-body-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .timy-story-editorial--native .journal-copy h2 {
    font-size: clamp(29px, 8vw, 34px);
    line-height: 1.28;
    letter-spacing: -.025em;
  }

  .timy-story-editorial--color-outline .article-hero h1 {
    max-width: 100%;
    font-size: clamp(36px, 9.8vw, 42px);
    line-height: 1.1;
    letter-spacing: -.04em;
    overflow-wrap: normal;
    word-break: normal;
    text-wrap: balance;
  }

  .timy-story-editorial--color-outline .article-body h2 {
    font-size: clamp(31px, 8.8vw, 38px);
    line-height: 1.2;
  }
}

/* Tablet detail pages keep the editorial Hero composition, but do not inherit
 * the desktop headline scale or the old one-line metadata rows.  This narrow
 * range deliberately stops at 900px so the desktop reading measure remains
 * unchanged from 901px upward. */
@media (min-width: 761px) and (max-width: 900px) {
  .timy-story-editorial--native .journal-essay-hero h1 {
    max-width: 100%;
    font-size: clamp(42px, 6.5vw, 52px);
    line-height: 1.12;
    letter-spacing: -.04em;
    overflow-wrap: normal;
    word-break: normal;
    text-wrap: balance;
  }

  .timy-story-editorial--color-outline .article-hero h1 {
    max-width: 100%;
    font-size: clamp(44px, 6.5vw, 56px);
    line-height: 1.1;
    letter-spacing: -.045em;
    overflow-wrap: normal;
    word-break: normal;
    text-wrap: balance;
  }

  .timy-story-editorial--native .journal-essay-meta,
  .timy-story-editorial--color-outline .article-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 26px;
  }

  .timy-story-editorial--native .journal-essay-meta div,
  .timy-story-editorial--color-outline .article-meta div {
    min-width: 0;
    display: block;
    padding: 12px 12px 11px;
    border-right: 1px solid rgba(255, 250, 244, .3);
    border-bottom: 0;
  }

  .timy-story-editorial--native .journal-essay-meta div:first-child,
  .timy-story-editorial--color-outline .article-meta div:first-child {
    padding-left: 0;
  }

  .timy-story-editorial--native .journal-essay-meta div:last-child,
  .timy-story-editorial--color-outline .article-meta div:last-child {
    padding-right: 0;
    border-right: 0;
  }

  .timy-story-editorial--native .journal-essay-meta dt,
  .timy-story-editorial--native .journal-essay-meta dd,
  .timy-story-editorial--color-outline .article-meta dt,
  .timy-story-editorial--color-outline .article-meta dd {
    min-width: 0;
    text-align: left;
  }

  .timy-story-editorial--native .journal-essay-meta dd,
  .timy-story-editorial--color-outline .article-meta dd {
    margin-top: 6px;
    overflow-wrap: anywhere;
  }

  .timy-story-editorial--native .journal-related-links > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
