/* Culture archive: browsing (inc/culture-archive.php, inc/culture-hubs.php).
   Loaded on /culture/ and on Culture entries, after night-pages.css:
   1. From the archive, the entry of the day (template-parts/culture-daily.php)
   2. Timeline, entries by decade (template-parts/culture-timeline.php)
   3. Keep going and Surprise me on an entry (template-parts/culture-entry-links.php)
   Night Edition tokens only (night-edition.css): hairlines, no fills or
   radius, the red as the one accent. */

/* ---- 1. From the archive ---- */
:root body .gp-culture-daily{
  margin-top:clamp(32px,3.6vw,56px);padding-top:clamp(16px,1.8vw,24px);border-top:1px solid var(--ne-rule);
}
:root body .gp-culture-daily-h{
  margin:0 0 clamp(16px,1.8vw,24px);
  font-family:var(--ne-sans);font-size:var(--ne-fs-meta);font-weight:400;line-height:1.4;
  letter-spacing:var(--ne-track-meta);text-transform:uppercase;color:var(--ne-text);
}
:root body .gp-culture-daily-card{
  display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(20px,3.4vw,56px);align-items:stretch;
}
:root body .gp-culture-daily-media{
  position:relative;display:block;min-height:100%;aspect-ratio:4/3;overflow:hidden;
  background:var(--ne-surface);color:var(--ne-text);text-decoration:none;
}
:root body .gp-culture-daily-media img{
  display:block;width:100%;height:100%;object-fit:cover;
  filter:grayscale(.2) contrast(1.04);transition:filter var(--ne-t) var(--ne-ease),transform var(--ne-t-slow) var(--ne-ease);
}
:root body .gp-culture-daily-card:hover .gp-culture-daily-media img{filter:none;}
/* No image: the place (or the type) set large on a ruled plate, the era above it. */
:root body .gp-culture-daily-plate{
  position:absolute;inset:0;display:flex;flex-direction:column;justify-content:flex-end;
  padding:clamp(18px,2.2vw,32px);container-type:inline-size;
  background:
    repeating-linear-gradient(90deg,rgba(241,239,233,.045) 0 1px,transparent 1px 12.5%),
    linear-gradient(180deg,var(--ne-surface) 0%,var(--ne-surface-2) 100%);
}
:root body .gp-culture-daily-plate::before{
  content:"";position:absolute;top:clamp(18px,2.2vw,32px);left:clamp(18px,2.2vw,32px);width:44px;height:2px;background:var(--ne-red-bright);
}
:root body .gp-culture-daily-plate-small{
  margin-bottom:10px;font-size:var(--ne-fs-meta);line-height:1.4;letter-spacing:var(--ne-track-meta);color:var(--ne-red-text);
}
:root body .gp-culture-daily-plate-big{
  font-family:var(--ne-sans);font-size:clamp(40px,16cqi,128px);font-weight:500;line-height:.92;letter-spacing:-.045em;
  color:var(--ne-text);overflow-wrap:anywhere;hyphens:manual;
}
:root body .gp-culture-daily-body{display:flex;flex-direction:column;justify-content:center;min-width:0;padding:4px 0;}
:root body .gp-culture-daily-when{
  display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;margin:0 0 14px;
  font-size:var(--ne-fs-meta);line-height:1.4;letter-spacing:var(--ne-track-meta);text-transform:uppercase;color:var(--ne-muted);
}
:root body .gp-culture-daily-flag{color:var(--ne-red-text);}
:root body .gp-culture-daily-ago::before{content:"\00B7";margin-right:12px;color:var(--ne-faint);}
:root body .gp-culture-daily-title{
  margin:0;font-family:var(--ne-sans);font-size:var(--ne-fs-h2);font-weight:500;line-height:1.02;letter-spacing:-.03em;overflow-wrap:anywhere;
}
:root body .gp-culture-daily-title a{color:var(--ne-text);text-decoration:none;}
:root body .gp-culture-daily-title a:is(:hover,:focus-visible){text-decoration:underline;text-decoration-color:var(--ne-red-bright);text-decoration-thickness:2px;text-underline-offset:.14em;}
:root body .gp-culture-daily-note{margin:16px 0 0;max-width:58ch;font-size:var(--ne-fs-lead);line-height:1.5;color:var(--ne-text-2);}
:root body .gp-culture-daily-facts{
  display:flex;flex-wrap:wrap;gap:12px clamp(24px,2.6vw,40px);margin:clamp(20px,2vw,28px) 0 0;padding:14px 0 0;border-top:1px solid var(--ne-rule);
}
:root body .gp-culture-daily-fact{min-width:0;}
:root body .gp-culture-daily-fact dt{
  margin:0 0 4px;font-size:var(--ne-fs-meta);line-height:1.4;letter-spacing:var(--ne-track-meta);text-transform:uppercase;color:var(--ne-muted);
}
:root body .gp-culture-daily-fact dd{margin:0;font-size:15px;line-height:1.4;color:var(--ne-text);}
:root body .gp-culture-daily-fact a{color:var(--ne-text);text-decoration:underline;text-decoration-color:var(--ne-rule-strong);text-decoration-thickness:1px;text-underline-offset:4px;transition:color var(--ne-t-fast) var(--ne-ease),text-decoration-color var(--ne-t-fast) var(--ne-ease);}
:root body .gp-culture-daily-fact a:is(:hover,:focus-visible){color:var(--gpc-accent,var(--ne-red-text));text-decoration-color:currentColor;}
:root body .gp-culture-daily-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px 32px;margin:clamp(22px,2.2vw,30px) 0 0;}
/* Text actions with the underline that draws in, as the Night Edition buttons
   (night-pages.css), restated here so the part reads the same on any page. */
:root body .gp-culture-daily-action{
  position:relative;display:inline-flex;align-items:center;gap:8px;min-height:44px;
  font-size:var(--ne-fs-small);line-height:1.2;color:var(--ne-text);text-decoration:none;
}
:root body .gp-culture-daily-action::after{
  content:"";position:absolute;left:0;right:0;top:calc(50% + .8em);height:1px;
  background:currentColor;transform:scaleX(0);transform-origin:left center;transition:transform var(--ne-t) var(--ne-ease);
}
:root body .gp-culture-daily-action:is(:hover,:focus-visible){color:var(--ne-text);}
:root body .gp-culture-daily-action:is(:hover,:focus-visible)::after{transform:scaleX(1);}
:root body .gp-culture-daily .gp-culture-surprise-icon{flex:none;}
@media (max-width:760px){
  :root body .gp-culture-daily-card{grid-template-columns:minmax(0,1fr);gap:18px;}
  :root body .gp-culture-daily-media{aspect-ratio:16/10;}
  :root body .gp-culture-daily-title{font-size:clamp(30px,8.4vw,40px);}
}
@media (prefers-reduced-motion:no-preference){
  :root body .gp-culture-daily-card:hover .gp-culture-daily-media img{transform:scale(1.015);}
}

/* ---- 2. Timeline: one column per decade on one axis ---- */
:root body .gp-culture .gp-culture-timeline{
  margin-top:clamp(36px,4vw,60px);padding-top:clamp(16px,1.8vw,24px);border-top:1px solid var(--ne-rule);
}
:root body .gp-culture .gp-culture-timeline-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:6px 24px;margin:0 0 clamp(14px,1.6vw,22px);}
:root body .gp-culture .gp-culture-timeline-title{
  margin:0;font-family:var(--ne-sans);font-size:var(--ne-fs-meta);font-weight:400;line-height:1.4;
  letter-spacing:var(--ne-track-meta);text-transform:uppercase;color:var(--ne-text);
}
:root body .gp-culture .gp-culture-timeline-sub{margin:0;font-size:var(--ne-fs-small);line-height:1.5;color:var(--ne-muted);}
:root body .gp-culture .gp-culture-timeline-list{
  --gp-tl-h:clamp(72px,9vw,136px);
  display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);margin:0;padding:0;list-style:none;
}
:root body .gp-culture .gp-culture-timeline-item{margin:0;padding:0;min-width:0;}
:root body .gp-culture .gp-culture-timeline-link{
  display:flex;flex-direction:column;justify-content:flex-end;height:100%;min-height:calc(var(--gp-tl-h) + 76px);
  color:var(--ne-text);text-decoration:none;
}
:root body .gp-culture .gp-culture-timeline-count{
  order:1;margin:0 clamp(3px,.7vw,10px) 8px;font-size:clamp(17px,1.7vw,24px);font-weight:500;line-height:1;letter-spacing:-.02em;
  font-variant-numeric:tabular-nums;
}
/* A column is a stack of its entries, one rule each, like sleeves on a shelf. */
:root body .gp-culture .gp-culture-timeline-bar{
  --gp-tl-stripe:calc(var(--gp-tl-h) / var(--gp-tl-max));
  --gp-tl-gap:calc(var(--gp-tl-stripe) * .28);
  --gp-tl-color:var(--ne-text);
  order:2;display:block;max-width:72px;margin:0 clamp(3px,.7vw,10px);
  height:max(1px,calc(var(--gp-tl-n) * var(--gp-tl-stripe) - var(--gp-tl-gap)));
  background:repeating-linear-gradient(to top,var(--gp-tl-color) 0 calc(var(--gp-tl-stripe) - var(--gp-tl-gap)),transparent calc(var(--gp-tl-stripe) - var(--gp-tl-gap)) var(--gp-tl-stripe));
  transform-origin:50% 100%;
}
:root body .gp-culture .gp-culture-timeline-decade{
  order:3;padding:10px clamp(3px,.7vw,10px) 0;border-top:1px solid var(--ne-rule-strong);
  font-size:var(--ne-fs-meta);line-height:1.4;letter-spacing:var(--ne-track-meta);color:var(--ne-text-2);
  white-space:nowrap;
}
/* Fewer than three entries: the filtered view, a quieter column. None: a tick on the axis. */
:root body .gp-culture .gp-culture-timeline-item.is-filter .gp-culture-timeline-bar{--gp-tl-color:var(--ne-text-2);}
:root body .gp-culture .gp-culture-timeline-item.is-empty :is(.gp-culture-timeline-count,.gp-culture-timeline-decade){color:var(--ne-muted);}
:root body .gp-culture .gp-culture-timeline-item.is-empty .gp-culture-timeline-bar{background:none;}
:root body .gp-culture a.gp-culture-timeline-link:is(:hover,:focus-visible) .gp-culture-timeline-bar,
:root body .gp-culture .gp-culture-timeline-item.is-current .gp-culture-timeline-bar{--gp-tl-color:var(--ne-red-bright);}
:root body .gp-culture a.gp-culture-timeline-link:is(:hover,:focus-visible) .gp-culture-timeline-count{color:var(--ne-red-text);}
:root body .gp-culture a.gp-culture-timeline-link:is(:hover,:focus-visible) .gp-culture-timeline-decade{color:var(--ne-text);}
:root body .gp-culture .gp-culture-timeline-item.is-current .gp-culture-timeline-decade{color:var(--ne-text);text-decoration:underline;text-decoration-color:var(--ne-red-bright);text-decoration-thickness:2px;text-underline-offset:6px;}
:root body .gp-culture a.gp-culture-timeline-link:focus-visible{outline:2px solid var(--ne-text);outline-offset:4px;}
/* A phone fits seven columns of about 50px: the labels drop their tracking. */
@media (max-width:640px){
  :root body .gp-culture .gp-culture-timeline-list{--gp-tl-h:84px;}
  :root body .gp-culture .gp-culture-timeline-decade{letter-spacing:0;padding-left:2px;padding-right:2px;}
  :root body .gp-culture .gp-culture-timeline-count{margin-left:2px;margin-right:2px;}
  :root body .gp-culture .gp-culture-timeline-bar{margin-left:2px;margin-right:2px;}
}
/* The columns rise once, from the axis, when the list comes into view (assets/js/culture.js). */
@media (prefers-reduced-motion:no-preference){
  :root body .gp-culture .gp-culture-timeline.is-waiting .gp-culture-timeline-bar{transform:scaleY(0);}
  :root body .gp-culture .gp-culture-timeline.is-in .gp-culture-timeline-bar{transition:transform 760ms var(--ne-ease);}
  :root body .gp-culture .gp-culture-timeline.is-in .gp-culture-timeline-item:nth-child(2) .gp-culture-timeline-bar{transition-delay:50ms;}
  :root body .gp-culture .gp-culture-timeline.is-in .gp-culture-timeline-item:nth-child(3) .gp-culture-timeline-bar{transition-delay:100ms;}
  :root body .gp-culture .gp-culture-timeline.is-in .gp-culture-timeline-item:nth-child(4) .gp-culture-timeline-bar{transition-delay:150ms;}
  :root body .gp-culture .gp-culture-timeline.is-in .gp-culture-timeline-item:nth-child(5) .gp-culture-timeline-bar{transition-delay:200ms;}
  :root body .gp-culture .gp-culture-timeline.is-in .gp-culture-timeline-item:nth-child(6) .gp-culture-timeline-bar{transition-delay:250ms;}
  :root body .gp-culture .gp-culture-timeline.is-in .gp-culture-timeline-item:nth-child(n+7) .gp-culture-timeline-bar{transition-delay:300ms;}
}

/* ---- 3. Entry: Surprise me beside the way back, Keep going at the end ---- */
:root body .gp-culture-single .gp-culture-single-back{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px 24px;}
:root body .gp-culture-single .gp-culture-surprise-link{display:inline-flex;align-items:center;gap:7px;}
:root body .gp-culture-single .gp-culture-surprise-icon{flex:none;}
:root body .gp-culture-single .gp-culture-entry-block.gp-culture-next{max-width:min(100%,1040px);}
:root body .gp-culture-single .gp-culture-next-list{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:0 clamp(20px,2.6vw,40px);margin:0;padding:0;list-style:none;
}
:root body .gp-culture-single .gp-culture-next-item{margin:0;min-width:0;}
:root body .gp-culture-single .gp-culture-next-link{
  display:flex;flex-direction:column;gap:6px;height:100%;padding:16px 0 18px;border-bottom:1px solid var(--ne-rule);
  color:var(--ne-text);text-decoration:none;
}
:root body .gp-culture-single .gp-culture-next-kicker{font-size:var(--ne-fs-meta);line-height:1.4;letter-spacing:var(--ne-track-meta);text-transform:uppercase;color:var(--ne-red-text);}
:root body .gp-culture-single .gp-culture-next-pos{margin-left:8px;color:var(--ne-muted);}
:root body .gp-culture-single .gp-culture-next-title{font-family:var(--ne-sans);font-size:var(--ne-fs-h3);font-weight:500;line-height:1.15;letter-spacing:-.012em;overflow-wrap:anywhere;transition:color var(--ne-t-fast) var(--ne-ease);}
:root body .gp-culture-single .gp-culture-next-title span{display:inline-block;transition:transform var(--ne-t) var(--ne-ease);}
:root body .gp-culture-single .gp-culture-next-meta{font-size:var(--ne-fs-meta);line-height:1.4;color:var(--ne-muted);overflow-wrap:anywhere;}
:root body .gp-culture-single a.gp-culture-next-link:is(:hover,:focus-visible) .gp-culture-next-title{color:var(--gpc-accent);}
@media (prefers-reduced-motion:no-preference){
  :root body .gp-culture-single a.gp-culture-next-link:is(:hover,:focus-visible) .gp-culture-next-title span{transform:translateX(4px);}
}
