/* V2: artist cards, public library and daily selections. */
.ed-library-grid,
.ed-latest-twenty .ed-twenty-grid.ed-library-grid {
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  gap:clamp(12px,1.6vw,22px);align-items:stretch;margin-top:24px;
}
.ed-library-grid.ed-library-grid--artist,
.ed-library-grid.ed-library-grid--related {
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.ed-library-card {
  display:flex;flex-direction:column;min-width:0;margin:0;
  color:#f0e8d8;border:1px solid #bd9e6152;border-radius:12px;
  background:linear-gradient(145deg,#beab750a,#ffffff02);overflow:hidden;
}
.ed-library-card .ed-library-media {margin:0;min-width:0;background:#0e0e0c;}
.ed-library-media>a {
  display:grid;place-items:center;aspect-ratio:4/3;padding:12px;
  box-sizing:border-box;overflow:hidden;text-decoration:none;
}
.ed-library-media img {
  display:block;width:100%;height:100%;max-width:100%;max-height:100%;
  min-width:0;min-height:0;object-fit:contain;object-position:center;
}
.ed-library-media figcaption {
  position:static;display:block;padding:5px 12px 9px;
  color:#bcb5a6;background:#171611;font-size:10px;line-height:1.5;
}
.ed-library-credit summary {cursor:pointer;min-height:24px;display:flex;align-items:center;gap:5px;list-style:none;}
.ed-library-credit summary::-webkit-details-marker {display:none;}
.ed-library-credit summary::before {content:'▸';flex:none;}
.ed-library-credit[open] summary::before {content:'▾';}
.ed-credit-label {flex:none;}
.ed-credit-preview {min-width:0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;}
.ed-library-credit[open] {padding-bottom:5px;}
.ed-card.ed-library-card .ed-library-credit p {font-size:10px;line-height:1.5;margin:7px 0;overflow-wrap:anywhere;}
.ed-library-credit a {display:inline-block;min-height:24px;color:#ddc493;margin-right:10px;text-underline-offset:3px;}
.ed-library-card .ed-card-content {display:flex;flex-direction:column;flex:1;padding:20px;min-width:0;}
.ed-library-card .collection-kicker {margin:0 0 11px;color:#ddc493;font-size:11px;line-height:1.5;overflow-wrap:anywhere;letter-spacing:.025em;}
.ed-card.ed-library-card h2,.ed-card.ed-library-card h3,.ed-card.ed-library-card h4 {
  margin:0 0 12px;color:#f1e7d1;font:500 clamp(22px,2vw,29px)/1.18 "Cormorant Garamond",Georgia,serif;
  letter-spacing:-.015em;overflow-wrap:anywhere;
}
.ed-library-card h2 a,.ed-library-card h3 a,.ed-library-card h4 a {color:inherit;text-decoration:none;}
.ed-card.ed-library-card .ed-card-content>p.ed-library-summary {
  margin:0 0 14px;font-size:13px;line-height:1.7;color:#c6bcaa;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
}
.ed-library-card .ed-date {margin:0 0 10px;font-size:11px;line-height:1.6;}
.ed-library-card-actions {display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:auto;}
.ed-library-card-actions .ed-link,.ed-library-card-actions .ed-audio-link {
  display:inline-flex;align-items:center;min-height:44px;padding:5px 0;margin:0;
  font-size:12px;line-height:1.5;color:#dfbf7c;text-decoration:none;
}
.ed-library-card-actions .ed-audio-link {color:#d8d0c1;}
.ed-library-featured {margin-block:35px 55px;}
.ed-library-featured .ed-week-heading h2 {margin:0 0 9px;font:500 clamp(28px,3vw,38px)/1.2 "Cormorant Garamond",Georgia,serif;color:#f1e7d1;}
.ed-library-featured .ed-week-heading p {margin:0;color:#c6bcaa;font-size:14px;line-height:1.7;}
.ed-card.ed-library-card--featured .ed-card-content>p.ed-library-summary {display:none;}
.ed-library-filters {align-items:end;}
.ed-library-reset {display:inline-flex;align-items:center;min-height:44px;box-sizing:border-box;}
.ed-anchor,.ed-library-section,.ed-artist-anecdotes {scroll-margin-top:110px;}
.ed-artist-anecdotes {padding:24px;margin:35px 0;border:1px solid #c6a56944;border-radius:12px;color:#f0e8d8;}
.ed-artist-anecdotes .collection-section-head {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;}
.ed-artist-anecdotes .collection-section-head h2 {margin:0;font:500 32px/1.2 "Cormorant Garamond",Georgia,serif;}
.ed-artist-anecdotes .collection-section-head>span {color:#bcb5a6;font-size:12px;}
.ed-artist-stories-all {display:inline-flex;align-items:center;min-height:44px;margin-top:20px;color:#dfbf7c;}
.ed-library-card a:focus-visible,.ed-library-credit summary:focus-visible,.ed-artist-stories-all:focus-visible {
  outline:3px solid #e6c783;outline-offset:4px;
}
@media(max-width:760px) {
  .ed-library-grid,.ed-latest-twenty .ed-twenty-grid.ed-library-grid,
  .ed-library-grid.ed-library-grid--artist,.ed-library-grid.ed-library-grid--related,
  .ed-artist-anecdotes .ed-story-grid.ed-library-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;
  }
  .ed-library-card .ed-card-content {padding:15px 13px;}
  .ed-card.ed-library-card h2,.ed-card.ed-library-card h3,.ed-card.ed-library-card h4 {font-size:22px;line-height:1.2;}
  .ed-library-media>a {padding:8px;}
  .ed-library-card .collection-kicker {font-size:10px;line-height:1.5;}
  .ed-card.ed-library-card .ed-card-content>p.ed-library-summary {font-size:12px;line-height:1.65;}
  .ed-library-card-actions {gap:0 8px;}
  .ed-library-card-actions .ed-link,.ed-library-card-actions .ed-audio-link {font-size:11px;}
  .ed-artist-anecdotes {padding:17px;}
  .ed-library-featured .ed-week-heading h2 {font-size:29px;}
}
@media(max-width:380px) {
  .ed-library-grid,.ed-latest-twenty .ed-twenty-grid.ed-library-grid {gap:9px;}
  .ed-library-card .ed-card-content {padding:13px 10px;}
  .ed-card.ed-library-card h2,.ed-card.ed-library-card h3,.ed-card.ed-library-card h4 {font-size:20px;}
}
@media(prefers-reduced-motion:reduce) {.ed-library-card,.ed-library-card a {transition:none!important;}}

/* Story opening: title and media start together; natural mobile reading order. */
.ed-story [data-ed-community="comments"]>.edc-surface>.edc-heading {
  color:#ead6b1;font-size:clamp(28px,3vw,36px);font-weight:600;
  line-height:1.2;margin:0 0 24px;
}
.ed-story [data-ed-community="comments"] .edc-list>.edc-empty {color:#cfc7b8;}

.ed-story .ed-reading-layout.ed-story-top,
.ed-story .ed-reading-layout.ed-story-top.ed-has-illustrations {
  display:grid;grid-template-columns:minmax(0,1fr) minmax(310px,.72fr);
  grid-template-areas:"header visuals" "prose visuals";
  gap:24px clamp(26px,4vw,54px);align-items:start;margin-top:18px;
}
.ed-story-top>.ed-story-head {grid-area:header;min-width:0;margin:0;max-width:none;}
.ed-story .ed-story-top>.ed-story-head h1 {
  margin:10px 0 14px;font-size:clamp(34px,3.6vw,52px);line-height:1.08;
  max-width:none;overflow-wrap:break-word;
}
.ed-story-top>.ed-story-head .collection-kicker {margin:0;font-size:11px;line-height:1.5;}
.ed-story-top>.ed-story-head .ed-deck {margin:0 0 12px;font-size:16px;line-height:1.65;}
.ed-story-top>.ed-story-head .ed-date {margin:4px 0;font-size:11px;}
.ed-story-top .ed-story-actions {margin-top:14px;gap:8px;}
.ed-story-top .ed-story-actions .ed-play-toggle-external {
  background:#d8bd82;color:#171510;font-weight:600;border-color:#d8bd82;
  min-height:44px;padding:11px 16px;
}
.ed-story-top .ed-story-artist {font-weight:700;}
.ed-story-top>.ed-prose {grid-area:prose;min-width:0;}
.ed-story .ed-reading-layout.ed-story-top>aside[data-story-visuals] {
  grid-area:visuals;position:sticky;top:100px;align-self:start;min-width:0;width:100%;
}
.ed-story-top .ed-visual-stack {display:grid;gap:12px;}
.ed-story-top .ed-player,.ed-story-top .ed-visual-stack .ed-player {position:static;padding:14px;}
.ed-story-top .ed-player-title {margin-bottom:8px;font-size:13px;}
.ed-story-top .ed-player .ed-play-toggle {margin-bottom:8px;min-height:44px;}
.ed-story-top .ed-player audio {height:38px;}
.ed-story-top .ed-player-options {margin-top:8px;gap:8px;}
.ed-story-top .ed-player-options label {display:flex;align-items:center;}
.ed-story-top .ed-player small {margin-top:6px;font-size:10px;line-height:1.5;}
.ed-story-top .ed-player [data-audio-error]:empty {display:none;}
.ed-story-top .ed-illustrations-title {margin:10px 14px;font-size:20px;line-height:1.2;}
.ed-story-top .ed-illustration-frame {height:260px;padding:12px;}
.ed-story-top .ed-illustration-figure figcaption {padding:9px 14px 5px;}
.ed-story-top .ed-illustration-caption {font-size:12px;line-height:1.45;margin:0 0 5px;}
.ed-story-top .ed-illustration-rights {font-size:10px;line-height:1.5;color:#c8b899;}
.ed-story-top .ed-illustration-rights summary {
  cursor:pointer;min-height:30px;display:list-item;list-style-position:inside;
}
.ed-story-top .ed-illustration-rights[open] {padding-bottom:6px;}
.ed-story-top .ed-illustration-rights .ed-illustration-credit {margin-top:5px;}
.ed-story-top .ed-illustration-rights a {min-height:24px;line-height:24px;margin-top:3px;}
.ed-story-top .ed-illustration-controls {padding:4px 12px 7px;}
.ed-story-top .ed-illustration-follow {margin:0 14px 9px;}
.ed-story-top .ed-artist-link {padding:14px 2px;gap:5px;}
.ed-story-top .ed-artist-link strong {font-size:24px;}
.ed-story-top .ed-illustration-rights summary:focus-visible {outline:2px solid #e6c783;outline-offset:3px;}
@media(max-width:1000px) and (min-width:761px) {
  .ed-story .ed-reading-layout.ed-story-top,
  .ed-story .ed-reading-layout.ed-story-top.ed-has-illustrations {
    grid-template-columns:minmax(0,1fr) 320px;gap:22px 25px;
  }
  .ed-story .ed-story-top>.ed-story-head h1 {font-size:38px;}
}
@media(max-width:760px) {
  .ed-story .ed-reading-layout.ed-story-top,
  .ed-story .ed-reading-layout.ed-story-top.ed-has-illustrations {
    display:grid;grid-template-columns:minmax(0,1fr);
    grid-template-areas:"header" "visuals" "prose";gap:18px;margin-top:10px;
  }
  .ed-story .ed-reading-layout.ed-story-top>aside[data-story-visuals] {position:static;}
  .ed-story .ed-story-top>.ed-story-head h1 {font-size:clamp(28px,7.5vw,38px);line-height:1.08;margin:7px 0 10px;}
  .ed-story-top>.ed-story-head .ed-deck {font-size:14px;line-height:1.5;margin-bottom:8px;}
  .ed-story-top .ed-story-actions {margin-top:10px;}
  .ed-story-top .ed-player,.ed-story-top .ed-visual-stack .ed-player {padding:12px;}
  .ed-story-top .ed-illustration-frame {height:clamp(180px,24vh,220px);padding:10px;}
  .ed-story-top .ed-illustrations-title {font-size:18px;margin:8px 12px;}
  .ed-story-top .ed-illustration-caption {font-size:11px;}
}
