.featured-threads {
  padding: clamp(38px, 5vw, 72px) 0 0;

  & > header { margin-bottom: clamp(28px, 4vw, 52px); }
  .thread {
    --axis: #cfb887;
    --star: polygon(50% 0, 64% 36%, 100% 50%, 64% 64%, 50% 100%, 36% 64%, 0 50%, 36% 36%);
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 28%) minmax(0, 1fr);
    gap: clamp(10px, 1.8vw, 28px);
    align-items: start;
  }

  .thread-disclosure { border-top: 1px solid #e1d6c6; }
  .thread-disclosure:last-child { border-bottom: 1px solid #e1d6c6; }

  .thread-toggle {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(12px, 2vw, 24px);
    width: 100%;
    height: 100px;
    padding: 0 2px;
    border: 0;
    background: none;
    color: var(--navy);
    text-align: left;
    cursor: pointer;
    transition: height 320ms ease;
  }
  .thread-toggle:focus-visible { outline: 1px solid #8a693b; outline-offset: -2px; }
  .thread-toggle-number { color: #8c6634; font: italic 26px/1 var(--serif); }
  .thread-toggle-copy { display: grid; gap: 5px; }
  .thread-toggle-title { font: 500 clamp(21px, 2vw, 30px)/1.25 var(--serif); }
  .thread-toggle-preview { color: #55657c; font: 13px/1.5 var(--sans); }
  .thread-toggle-title, .thread-toggle-preview {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .thread-toggle-icon { color: #8c6634; font: 24px/1 var(--serif); }
  .thread-toggle-icon::before { content: '+'; }
  .is-open .thread-toggle { height: 37px; }
  .is-open .thread-toggle-number, .is-open .thread-toggle-copy { opacity: 0; }
  .is-open .thread-toggle-icon::before { content: '−'; }

  .thread-reveal {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    visibility: hidden;
    /* Keep desktop arrows in the gutter while clipping the collapsing height. */
    clip-path: inset(0 -46px);
    transition: grid-template-rows 320ms ease, opacity 230ms ease, visibility 0s 320ms;
  }
  .thread-reveal-inner { min-height: 0; }
  .is-open .thread-reveal {
    grid-template-rows: 1fr;
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
  }
  .thread-disclosure .thread { padding-bottom: 22px; }

  @media (prefers-reduced-motion: reduce) {
    .thread-toggle, .thread-reveal { transition: none; }
  }

  .thread-theme {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    align-self: stretch;
    gap: 8px;
    padding-top: 12px;
  }
  .thread-heading { display: flex; align-items: baseline; gap: clamp(12px, 2vw, 26px); }

  .thread-number {
    position: relative;
    flex: none;
    color: #8c6634;
    font: italic 400 clamp(27px, 3.1vw, 45px)/1 var(--serif);
  }

  .thread-number::after {
    content: '';
    position: absolute;
    top: 55%;
    left: 100%;
    width: 16px;
    height: 1px;
    background: var(--axis);
    transform: rotate(-50deg);
  }

  h3 {
    margin: 0;
    color: var(--navy);
    font: 500 clamp(24px, 2.7vw, 38px)/1.3 var(--serif);
    overflow-wrap: anywhere;
  }

  .thread-artwork { position: relative; }
  .thread-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    mask-image: radial-gradient(ellipse 62% 70% at 42% 51%, #000 37%, #000b 61%, transparent 89%);
  }

  .thread-panel { min-width: 0; }
  .thread-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 7px;
  }

  .thread-progress { display: flex; align-items: center; gap: 12px; }
  .thread-position { color: var(--navy); font: 500 13px var(--serif); font-variant-numeric: tabular-nums; }
  .thread-progress-line { display: flex; align-items: center; gap: 3px; width: 54px; }
  .thread-progress-line span { flex: 1; height: 2px; background: #dcd2c3; }
  .thread-progress-line .is-active { background: #9a743c; }

  .thread-toolbar button {
    --cut: 7px;
    --outline: #cbb38b;
    --face: var(--canvas);
    --shape: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
    position: relative;
    isolation: isolate;
    clip-path: var(--shape);
    background: var(--outline);
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    color: #79582d;
    font: 25px/1 var(--serif);
    cursor: pointer;
  }

  .thread-toolbar button::before {
    content: '';
    position: absolute;
    inset: 1px;
    z-index: -1;
    clip-path: var(--shape);
    background: var(--face);
  }

  .thread-toolbar button:hover:not(:disabled) { --face: #f2e8d6; }
  .thread-toolbar button:focus-visible { outline: 2px solid var(--navy); outline-offset: -4px; }
  .thread-toolbar button:disabled { opacity: .43; cursor: default; }

  .thread-scroll {
    --node-width: min(100%, max(240px, 33.333%));
    --node-inset: clamp(16px, 1.9vw, 28px);
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #ba9e70 transparent;
    margin: 0;
    padding: 0 0 9px;
    list-style: none;
  }

  .thread-scroll.two-nodes { --node-width: 50%; }
  .thread-scroll.single-node { --node-width: 100%; }

  .thread-scroll:not(.single-node)::after {
    content: '';
    flex: 0 0 calc(100% - var(--node-width));
    background: linear-gradient(to right, var(--axis), transparent) 0 7px / 100% 1px no-repeat;
  }

  .thread-scroll:focus-visible { outline: 1px solid #8a693b; outline-offset: 3px; }

  .thread-node {
    position: relative;
    display: flex;
    flex: 0 0 var(--node-width);
    min-width: 0;
    padding: 27px var(--node-inset) 14px;
    scroll-snap-align: start;
    background: linear-gradient(var(--axis), var(--axis)) 0 7px / 100% 1px no-repeat;
  }

  .thread-node::before {
    content: '';
    position: absolute;
    top: 2px;
    left: var(--node-inset);
    width: 11px;
    height: 11px;
    background: #a8895b;
    clip-path: var(--star);
  }

  .thread-node[data-current]::before { background: #90672f; }
  .thread-node + .thread-node::after {
    content: '';
    position: absolute;
    inset: 34px auto 15px 0;
    width: 1px;
    background: #e1d6c6;
  }

  .node-copy { display: flex; flex: 1; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
  h4 { margin: 4px 0 12px; color: var(--navy); font: 500 clamp(20px, 1.6vw, 26px)/1.4 var(--serif); }
  .node-number { color: #866331; font: 500 12px var(--serif); letter-spacing: .16em; }
  blockquote { margin: 0 0 clamp(18px, 2vw, 27px); }
  blockquote p {
    margin: 0;
    color: var(--ink);
    font: 400 15px/1.7 var(--sans);
    white-space: pre-line;
  }
  blockquote p + p { margin-top: 12px; }

  .thread-speaker {
    display: block;
    margin-bottom: 4px;
    padding-inline-start: 8px;
    border-inline-start: 2px solid #aa824b;
    color: #775a34;
    font: 600 13px/1.25 var(--sans);
  }

  .thread-source {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 5px 12px;
    margin-top: auto;
    color: #55657c;
    font: 400 12px/1.6 var(--sans);
  }
  .thread-source a { display: inline-grid; min-width: 36px; min-height: 32px; place-items: center; color: #79582d; font-size: 19px; line-height: 1; }
  .thread-source a:focus-visible { outline: 2px solid #8a693b; outline-offset: 3px; }

  @media (min-width: 1050px) {
    .thread-toolbar { min-height: 24px; }
    .thread-toolbar button { position: absolute; z-index: 1; top: 50%; translate: 0 -50%; }
    .thread-toolbar [data-thread-prev] { inset-inline-start: -44px; }
    .thread-toolbar [data-thread-next] { inset-inline-end: -44px; }
  }

  @media (max-width: 760px) {
    .thread { grid-template-columns: minmax(0, 1fr); gap: 11px; }
    .thread-theme { grid-template-rows: auto auto; padding-top: 0; }
    .thread-artwork { aspect-ratio: 2 / 1; max-height: 155px; }
    .thread-scroll:not(.single-node) { --node-width: 89%; }
    .thread-toolbar button { width: 44px; height: 40px; }
  }
}
