/* Shared visual refresh: readable secondary text and a quieter contemporary frame. */
:root{--paper:#f7f6f2;--ink:#252b28;--rust:#c8003a;--line:#d9ddd5;--muted:#535d55;--surface:#fffefb}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-weight: 650;
}
.skip-link:not(:focus) {
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
}
.skip-link:focus {
  outline: 3px solid var(--rust);
  outline-offset: 3px;
}

body{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:18px;line-height:1.7;-webkit-font-smoothing:antialiased}
header,main,footer{max-width:1320px;padding-left:40px;padding-right:40px}
header{padding-top:26px;padding-bottom:26px;gap:32px}
.brand img{width:218px}
.site-nav{gap:12px 22px;align-items:center}
.site-nav-pair{display:flex;flex-wrap:wrap;align-items:center;column-gap:inherit;grid-column:span 2;max-width:100%}
.site-nav a{font-size:clamp(1.125rem,1.55vw,1.25rem);font-weight:650;padding:7px 0;line-height:1.45;text-underline-offset:6px}
.site-nav a:hover{color:var(--rust)}
@media(max-width:760px){.site-nav a{display:inline-flex;align-items:center;min-height:48px}}
.demo{background:#eceee7;font-size:14px;letter-spacing:1.4px;padding:9px 18px}
.hero,.platform-hero{gap:56px;padding-top:64px;padding-bottom:76px}
h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(46px,5.2vw,72px);line-height:1.08;letter-spacing:-1.8px}
h2{font-size:clamp(32px,3.2vw,42px);letter-spacing:-.7px}
h3{letter-spacing:-.3px}
.eyebrow,.reader-head .eyebrow,.video-category{font-size:14px;letter-spacing:1.5px;line-height:1.5}
.lead{font-size:21px;line-height:1.7;color:var(--muted)}
figcaption,.video-block figcaption,.podcast-cover figcaption{font:15px/1.65 system-ui,sans-serif;color:var(--muted)}
.hero-slides,.hero-screen,.podcast-cover img{border-radius:14px}
.button,.outline-button{font:600 16px/1.5 system-ui,sans-serif;padding:14px 22px;border-radius:8px;min-height:48px}
.button{background:var(--rust);box-shadow:0 3px 10px #c8003a15}
.button:hover{background:#a90030}.outline-button:hover{background:#eceee7}
.sectionhead{margin-bottom:32px;align-items:center}
.sectionhead p,.archive-intro,.archive-notice,.platform-handle,.platform-video-card p,.platform-paths p,.platform-home-links p,.spotify-listen .credits{font-size:17px;line-height:1.7;color:var(--muted)}
#search::placeholder{color:var(--muted);opacity:1}
#stats{font-size:18px;font-weight:650;color:var(--ink);font-variant-numeric:tabular-nums}
.archive-intro,.archive-notice{width:100%;max-width:none;font-size:15px}
@media(min-width:1240px){.archive-intro{font-size:13.5px}}
.sectionhead small{font-size:15px}
#topics{gap:24px}
#topics .topic,.archive-card,.platform-home-links>a{border:1px solid var(--line);border-radius:12px;background:var(--surface);overflow:hidden;box-shadow:0 3px 12px #252b2805;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
#topics .topic:hover,.archive-card:hover,.platform-home-links>a:hover{transform:translateY(-4px);border-color:#aeb8ac;box-shadow:0 10px 24px #252b2810}
#topics .topic-info{padding:26px}
#topics .topic-info h3{font-size:28px;line-height:1.25;margin:12px 0}
#topics .topic-info p{font:17px/1.65 system-ui,sans-serif;color:var(--muted)}
.num{font:600 15px system-ui,sans-serif}
.feature,.channel-invite{border-radius:16px;padding:40px;background:#202b26}
.feature p,.channel-invite p{font-size:18px;line-height:1.7;color:#dfe5de}
.feature a,.hero-screen .screen-caption{font-size:16px}
.feature iframe{border-radius:9px}
#feature-sound{font-size:17px;border-radius:7px;min-height:48px}
.archive-tools{padding:24px;background:#eceee7;border-radius:12px;gap:20px}
.archive-tools label{font-size:16px;font-weight:600}
.archive-tools input,.archive-tools select{font:17px/1.5 system-ui,sans-serif;min-height:52px;border-radius:7px;background:var(--surface);padding:12px}
.archive-shortcuts button,.result-bar button,.pagination button{font:500 16px/1.5 system-ui,sans-serif;border-radius:7px;min-height:46px}
.archive-shortcuts button:hover,.pagination button:not(:disabled):hover{background:#eceee7}
.archive-shortcuts button.selected{background:var(--ink);color:white}
.result-bar,.pagination,.export-links,.back-link,.source-note{font-size:16px;line-height:1.65}
.card-body{padding:24px}.card-body h3{font-size:26px;line-height:1.3}.card-body p{font-size:17px;line-height:1.7;color:var(--muted)}
.read-label,.tags a,.video-link,.platform-paths span,.platform-paths b,.platform-home-links span:last-child{font-size:16px}
.tags a{border-radius:6px;padding:6px 12px}
.article-content{font:22px/1.85 Georgia,serif;max-width:820px}
.article-content figcaption{font-size:16px}
.article-content a[href]{
  color:var(--rust);
  text-decoration:underline;
  text-underline-offset:.16em;
}
.article-content a[href]:is(:hover,:focus-visible){text-decoration-thickness:2px}
.entry-index-title{font-size:20px;line-height:1.5}.entry-index time,.entry-index li::marker{font-size:15px}
.platform-video-card{border-radius:10px}.platform-video-card h3{font-size:26px}.platform-video-card .load-video{border-radius:10px;overflow:hidden}
.platform-home-links>a{padding:30px}.platform-home-links h3{font-size:28px}
.about{padding-top:44px}.about p{color:var(--muted);font-size:19px;line-height:1.8}
footer{font-size:16px;line-height:1.7;padding-top:28px;gap:24px;flex-wrap:wrap;color:var(--muted)}

@media(max-width:1000px){header{flex-wrap:wrap}.site-nav{display:flex;justify-content:flex-start;gap:8px 20px}.hero,.platform-hero{gap:30px}}
@media(max-width:760px){header,main,footer{padding-left:22px;padding-right:22px}header{gap:16px;padding-top:22px;padding-bottom:22px}.brand img{width:190px}.hero,.platform-hero{padding-top:36px;padding-bottom:48px;gap:28px}h1{font-size:clamp(42px,9vw,60px);letter-spacing:-1px}.lead{font-size:20px}.topics,.archive-grid{grid-template-columns:1fr 1fr}#topics{gap:16px}#topics .topic-info{padding:20px}#topics .topic-info h3{font-size:25px}.archive-tools{padding:18px}.feature,.channel-invite{padding:26px}.card-body{padding:20px}.card-body h3{font-size:24px}.article-content{font-size:21px}.entry-index-title{font-size:19px}.entry-index a{flex-wrap:wrap;gap:3px 16px}.platform-home-links>a{padding:24px}}
@media(max-width:540px){.topics,.archive-grid,.platform-video-grid{grid-template-columns:1fr}.site-nav{gap:6px 18px}.demo{font-size:13px}.feature h2{font-size:34px}.entry-index{columns:1}.platform-hero h1{font-size:44px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}#topics .topic,.archive-card,.platform-home-links>a{transition:none}}

.about-photo{border-radius:10px}

/* A chronological index with clear year groups and generous linked rows. */
.entry-year{margin-top:36px}
.entry-year-heading{display:flex;align-items:center;gap:16px;border-bottom:2px solid var(--ink);padding-bottom:12px}
.entry-year-heading h3{font:600 28px/1.2 system-ui,sans-serif;margin:0;letter-spacing:-.7px}
.entry-year-heading>span{font:15px/1.5 system-ui,sans-serif;background:#e9ece5;padding:4px 12px;border-radius:20px;color:var(--muted)}
.entry-index{columns:auto;margin:0;padding:0;list-style-position:inside}
.entry-index li{position:relative;display:list-item;margin:0;padding:0 0 0 52px;list-style:none;border-bottom:1px solid var(--line)}
.entry-index{counter-reset:entry}
.entry-index li::before{content:counter(list-item,decimal-leading-zero);position:absolute;left:12px;top:24px;font:15px/1.5 system-ui,sans-serif;color:var(--muted)}
.entry-index a{display:grid;grid-template-columns:minmax(0,1fr) 120px 24px;align-items:center;gap:24px;border:0;padding:21px 16px 21px 0;min-height:74px;transition:background .15s}
.entry-index a::after{content:"↗";font:24px/1 system-ui,sans-serif;color:var(--rust)}
.entry-index li:hover{background:#eceee7}
.entry-index-title{font:500 21px/1.45 system-ui,sans-serif}
.entry-index time{font:16px/1.5 system-ui,sans-serif;color:var(--muted);text-align:right;white-space:nowrap}
@media(max-width:650px){.entry-index li{padding-left:38px}.entry-index li::before{left:3px;top:22px;font-size:14px}.entry-index a{grid-template-columns:minmax(0,1fr) 22px;gap:6px 12px;padding:18px 8px 18px 0}.entry-index-title{font-size:19px}.entry-index time{grid-column:1;text-align:left;font-size:15px}.entry-index a::after{grid-column:2;grid-row:1/3}.entry-year-heading h3{font-size:26px}}

#hero-slideshow .hero-slide{transition-duration:.45s}

/* Show every photograph in full, including heads and bodies at the edges. */
#hero-slideshow .hero-slides{
 --photo-border:clamp(9px,2vw,18px);
 background:transparent;
 isolation:isolate;
 filter:drop-shadow(0 2px 3px rgb(35 29 18 / .18));
}
#hero-slideshow .hero-slides::before{
 content:"";
 position:absolute;
 inset:0;
 z-index:-1;
 background:#fffaf0;
 clip-path:polygon(
  0.4% 0.8%, 7% 0.3%, 13% 0.7%, 20% 0.1%, 28% 0.6%, 36% 0.3%,
  45% 0.8%, 53% 0.2%, 61% 0.6%, 69% 0.2%, 77% 0.7%, 85% 0.3%,
  93% 0.7%, 99.5% 0.4%, 99.9% 9%, 99.5% 20%, 100% 31%, 99.6% 43%,
  99.9% 55%, 99.5% 67%, 99.9% 79%, 99.6% 90%, 99.5% 99.3%,
  92% 99.7%, 84% 99.2%, 76% 99.8%, 68% 99.4%, 60% 99.9%,
  51% 99.3%, 43% 99.8%, 35% 99.4%, 27% 99.8%, 19% 99.4%, 11% 99.9%,
  0.5% 99.4%, 0.1% 90%, 0.5% 79%, 0.1% 67%, 0.5% 55%, 0.1% 43%,
  0.4% 31%, 0.1% 20%, 0.5% 9%
 );
}
#hero-slideshow .hero-slide{
 box-sizing:border-box;
 padding:var(--photo-border);
 object-fit:contain;
 object-position:center;
 filter:none;
}


/* Two columns within each year of the blog index. */
@media(min-width:761px){
 #llistat-entrades .entry-index{columns:2;column-gap:36px}
 #llistat-entrades .entry-index li{break-inside:avoid}
 #llistat-entrades .entry-index a{grid-template-columns:minmax(0,1fr) 22px;gap:6px 12px}
 #llistat-entrades .entry-index time{grid-column:1;text-align:left;font-size:15px}
 #llistat-entrades .entry-index a::after{grid-column:2;grid-row:1/3}
}
@media(max-width:760px){#llistat-entrades .entry-index{columns:1}}

/* Memòria contemporània: original identity, editorial typography and archive images. */
:root{--paper:#f4f1e9;--ink:#171717;--rust:#ef003c;--line:#c7c3b9;--muted:#585852;--surface:#f4f1e9}
body{background:var(--paper);color:var(--ink)}
header{border-bottom:1px solid var(--ink)}
.demo{background:transparent;border-bottom:1px solid var(--line);font-size:12px;letter-spacing:2px}
h1,h2,h3,.platform-hero h1,.platform-video-card h3,.platform-paths h3{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-weight:700}
h1{font-size:clamp(44px,5.8vw,82px);line-height:1.02;letter-spacing:-3px}
h1 em{font-style:normal;color:var(--rust)}
h2{font-size:clamp(30px,3.4vw,46px);line-height:1.12;letter-spacing:-1.5px}
h3{letter-spacing:-.8px}
.hero{gap:44px;grid-template-columns:1fr 1.08fr;padding:56px 0}
.hero .lead{font-size:21px;line-height:1.55}
.hero-slides,.hero-screen,.podcast-cover img,.button,.outline-button,.feature,.channel-invite,.feature iframe,#feature-sound,.archive-tools,.archive-tools input,.archive-tools select,.archive-shortcuts button,.result-bar button,.pagination button,.platform-video-card,.platform-video-card .load-video{border-radius:0;box-shadow:none}
.button{background:var(--rust);padding:14px 22px}
.button:hover{background:#c80032}
#colleccions{border-top:1px solid var(--ink);padding-top:28px}
#colleccions .platform-paths{border-top:0;padding-top:0;gap:28px}
#colleccions .platform-paths>a{border-bottom:1px solid var(--line);position:relative;padding-bottom:24px}
#colleccions .collection-thumb{margin-bottom:20px}
#colleccions .platform-paths h3{font-size:clamp(24px,2.5vw,32px);line-height:1.15;margin:10px 0}
#colleccions .platform-paths span{font-weight:700;color:var(--rust)}
#colleccions .platform-paths b{font-weight:600}
#topics{gap:22px;border:0}
#topics .topic,.archive-card,.platform-home-links>a{background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none}
#topics .topic:hover,.archive-card:hover,.platform-home-links>a:hover{transform:none;box-shadow:none;border-color:var(--ink)}
#topics .topic-info{padding:22px 0}
#topics .topic-info h3{font-size:26px}
.feature,.channel-invite{background:#171717}
.feature h2,.channel-invite h2{font-weight:700}
.sectionhead{border-top:1px solid var(--line);padding-top:24px}
#colleccions .sectionhead{border:0;padding-top:0}
.archive-tools{background:#e9e5dc;border:1px solid var(--line)}
.card-body{padding:22px 0}
.platform-home-links>a{padding:26px 0}
.platform-video-card h3{font-size:24px}
.entry-year-heading{border-bottom:1px solid var(--ink)}
.entry-year-heading>span{background:transparent;border:1px solid var(--line);border-radius:0}
.entry-index li:hover{background:#eae6dd}
@media(max-width:760px){.hero{grid-template-columns:1fr;gap:28px;padding:36px 0 44px}h1{font-size:clamp(42px,9vw,64px);letter-spacing:-2px}h2{letter-spacing:-1px}.hero .lead{font-size:20px}#colleccions .platform-paths{gap:24px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Keep editable collection titles at the same size as their heading. */
#colleccions .platform-paths h3 span{font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit;letter-spacing:inherit}

/* Two-column reading layout for the association's history. */
#projecte.about {
  display: block;
  container-type: inline-size;
}

#projecte.about > div:first-child {
  --about-image-height: min(160px, calc((100cqi - 64px) / 7.5));
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 0 32px;
  align-items: center;
  margin-bottom: 20px;
}

#projecte.about > div:first-child .eyebrow,
#projecte.about > div:first-child h2 {
  grid-column: 1 / -1;
}

#projecte.about .about-images { display: contents; }

#projecte.about :is(.about-archive-image,.about-dvd,.about-photo) {
  display: block;
  width: auto;
  height: var(--about-image-height);
  max-width: 100%;
  margin: 14px 0 0;
}

#projecte.about .about-dvd-figure { justify-self: center; }
#projecte.about .about-photo-figure { justify-self: end; }

#projecte .who-content{columns:2;column-gap:40px}
#projecte .who-content h3{break-after:avoid}
#projecte .who-content p{orphans:3;widows:3}
@media (max-width:760px) {
  #projecte.about > div:first-child {
    --about-image-height: min(145px, 38cqi);
    grid-template-columns: minmax(0,1fr);
  }

  #projecte.about .about-photo-figure { justify-self: center; }
  #projecte .who-content { columns: 1; }
}

/* A light, consistent frame around video players and their previews. */
.load-video,.video-slot,.feature iframe,.article-content iframe,.platform-video-card iframe,#topics .topic-visual{outline:1px solid rgba(111,105,91,.4);outline-offset:2px;border-radius:3px;box-shadow:0 2px 6px rgba(33,30,24,.07)}
.feature iframe{outline-color:rgba(230,223,207,.4)}
.video-slot .load-video,.video-slot iframe{outline:none;box-shadow:none}

.feature-video-window{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;background:#000;outline:1px solid rgba(230,223,207,.4);outline-offset:2px;border-radius:3px;box-shadow:0 2px 6px rgba(0,0,0,.12)}
.feature .feature-video-window iframe{display:block;width:100%;height:100%;aspect-ratio:auto;outline:none;border:0;border-radius:0;box-shadow:none}

.playlist-section{padding:36px 0 48px}


@media(max-width:760px){.playlist-section .sectionhead{align-items:start;flex-direction:column;gap:14px}}



#home .hero > div:first-child {
  min-width: 0;
  container-type: inline-size;
}

#home .hero h1 {
  font-size: min(94px, 13cqi);
}

html[lang="en"] #home .hero h1 {
  font-size: min(94px, 8.3cqi);
}

#home .hero h1 em {
  font-style: italic;
}

#colleccions .collection-thumb {
  padding: 5px;
  border: 1px solid #a49b8d;
  border-radius: 8px;
  background: #262622;
  box-shadow: 0 5px 14px rgb(39 44 40 / 14%);
}

#home .hero .eyebrow {
  font-size: clamp(17px, 2.2vw, 25px);
}

.header-archive-image {
  display: block;
  position: relative;
  z-index: 1;
  pointer-events: none;
  margin-inline-start: clamp(-155px, -11vw, -68px);
  width: clamp(230px, 35vw, 460px);
  flex: 0 0 auto;
  height: auto;
  border-radius: 4px;
}

@media (max-width: 1280px) {
  header:has(.header-archive-image) {
    flex-wrap: wrap;
  }

  header:has(.header-archive-image) .site-nav {
    flex-basis: 100%;
  }
}

@media (max-width: 540px) {
  header:has(.header-archive-image) {
    flex-direction: row;
    align-items: center;
    gap: 10px 12px;
  }

  .header-archive-image {
    width: clamp(130px, 46vw, 240px);
  }

  header:has(.header-archive-image) .brand img {
    width: clamp(110px, 40vw, 180px);
  }
}

#projecte.about h2 {
  margin: 6px 0 0;
}



.footer-rights {
  display: block;
  flex-basis: 100%;
  font-size: 14px;
}

footer:has(.footer-rights) {
  flex-wrap: wrap;
}

#webs-recomanades {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.recommended-sites {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr));
  gap: 16px;
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.recommended-sites a {
  display: grid;
  height: 100%;
  grid-template-rows: 72px auto;
  justify-items: center;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-align: center;
}

.recommended-sites img {
  width: min(100%, 175px);
  height: 72px;
  object-fit: contain;
}

.playlist-audios {
  columns: 3;
  column-gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.playlist-audios li {
  break-inside: avoid;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.playlist-audios small {
  color: var(--muted);
  white-space: nowrap;
}

@media (max-width: 760px) {
  .playlist-audios { columns: 2; }
}

@media (max-width: 480px) {
  .playlist-audios { columns: 1; }
}

#projecte.about .about-images figure {
  margin: 0;
  align-self: start;
  max-width: 100%;
}

#projecte.about .about-images figcaption {
  max-width: 25ch;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}

#projecte.about .about-dvd-figure img { margin-inline: auto; }
#projecte.about .about-dvd-figure figcaption { text-align: center; }

@media (min-width:761px) {
  #projecte.about .about-archive-image { align-self: start; }
}

.hero-start {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 22px;
}

.hero-start a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 13px;
  border-radius: 4px;
  background: #b5002e;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.hero-start a:hover { background: #890024; }

.hero-start a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.hero-start a:hover,
.hero-start a:focus-visible {
  text-decoration: underline;
}

.slideshow-navigation,.reader-share {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px 12px;
  margin-top:10px;
}

.slideshow-navigation button,.reader-share button {
  min-height:44px;
  padding:5px 10px;
  border:1px solid var(--line);
  border-radius:4px;
  background:var(--paper);
  color:#a9002b;
  font:inherit;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
}

.slideshow-count,.reader-share [role="status"] {
  color:var(--muted);
  font-size:14px;
}

.slideshow-count { font-variant-numeric:tabular-nums; }

.archive-story {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  align-items:center;
  gap:24px;
}

.archive-story figure { margin:0; }
.archive-story img { display:block;width:100%;height:auto;border-radius:8px; }
.archive-story figcaption { margin-top:8px;color:var(--muted);font-size:14px; }
.archive-story p:first-child { margin-top:0; }
.archive-story p:last-child { margin-bottom:0; }
.archive-story a { color:#a9002b;font-weight:700; }

@media (max-width:760px) {
  .archive-story { grid-template-columns:minmax(0,1fr);gap:16px; }
}

.soldat-gallery img { aspect-ratio: 16 / 9; object-fit: cover; background: #24211e; }
.soldat-gallery .slideshow-navigation[hidden] { display: none; }

.research-book-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 640px) {
  .research-book-layout {
    grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
  }
}

.research-book-layout h3 {
  margin-top: 0;
}

.research-book-pages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: start;
  max-width: 60rem;
}

.research-book-pages img {
  display: block;
  width: 100%;
  height: auto;
}

.slideshow-original {
  font-size:14px;
  font-weight:700;
}

.footer-imdb {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.footer-imdb img {
  display: block;
  flex: none;
}

.language-selector{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px 18px;padding:6px clamp(18px,4vw,64px);border-bottom:1px solid var(--line,#d0ccbf);font:inherit;font-size:1.125rem}
.language-selector a{color:inherit;padding:3px 0;text-decoration:underline;text-underline-offset:.2em}
.language-selector a[aria-current=true]{font-weight:700;text-decoration:none}
.language-selector a:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.language-archive-note{font-size:.85rem;padding:0 18px}

#archive-search {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}
#archive-search button {
  min-height: 52px;
  padding: 10px 22px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
@media (max-width: 480px) {
  #archive-search { grid-template-columns: 1fr; }
}

#cards .archive-card {
  background: #fffcf5;
  border: 1px solid var(--line);
  border-radius: 16px;
}
#cards .archive-card:hover {
  border-color: #948b7b;
  box-shadow: 0 6px 18px #201d1712;
}
#cards .archive-card:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 4px;
}
#cards .archive-media,
#cards .text-cover {
  aspect-ratio: 16 / 9;
  background: #e9e1d3;
}
#cards .archive-media {
  container-type: inline-size;
  display: grid;
  place-items: center;
}
#cards .archive-thumb {
  width: min(100%, calc(100cqw * var(--thumbnail-ratio, 1.777778) * 9 / 16));
  aspect-ratio: var(--thumbnail-ratio, 1.777778);
  position: relative;
  overflow: hidden;
}
#cards .archive-thumb img {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
#cards .archive-thumb .missing-photo {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
#cards .card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(16px, 2vw, 24px);
}
#cards .eyebrow {
  color: var(--muted);
  font-size: .83rem;
  font-weight: 650;
  letter-spacing: normal;
  text-transform: none;
}
#cards .card-body h3 {
  margin: 7px 0 0;
  font-size: clamp(21px, 2.1vw, 28px);
  line-height: 1.2;
}
#cards .card-body p {
  margin: 12px 0 20px;
  font-size: 16px;
}
#cards .read-label {
  margin-top: auto;
}

#temes .sectionhead p {
  max-width: 29rem;
}
#topics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}
#topics .topic {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffcf5;
  text-align: left;
  color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease;
}
#topics .topic-visual {
  outline: none;
  border-radius: 0;
  box-shadow: none;
  background: #e9e1d3;
}
#topics .topic-thumb {
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: transparent;
}
#topics .topic-info {
  width: 100%;
  padding: 18px 62px 20px 20px;
}
#topics .topic-info .num {
  display: none;
}
#topics .topic-info h3 {
  margin: 0 0 7px;
  font-size: clamp(21px, 2.15vw, 27px);
  line-height: 1.17;
}
#topics .topic-info p {
  margin: 0;
  font-size: .96rem;
  line-height: 1.45;
}
#topics .topic-info .arrow {
  display: grid;
  place-items: center;
  top: 18px;
  right: 18px;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #f4e9e8;
  color: #a30935;
  font: 600 17px/1 system-ui, sans-serif;
}
#topics .topic:hover,
#topics .topic.active {
  border-color: #a30935;
  box-shadow: 0 5px 16px #201d1712;
}
#topics .topic:hover .topic-info,
#topics .topic.active .topic-info {
  background: transparent;
}
#topics .topic.active .arrow {
  background: #a30935;
  color: #fff;
}
@media (max-width: 820px) {
  #topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  #topics { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  #topics .topic { transition: none; }
}

.soldat-gallery img.is-poster{object-fit:contain}

/* Full-width, responsive video ranking. */
.platform-home .video-ranking{grid-column:1/-1;min-width:0;padding-top:22px}
.video-ranking[hidden]{display:none}
.video-ranking h3{font-size:26px;line-height:1.25;margin:0 0 8px;color:var(--ink)}
.video-ranking .ranking-note{font-size:15px;line-height:1.5;color:var(--muted,#60605b);margin:0 0 20px}
.ranking-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 28px;list-style:none;margin:0;padding:0}
.ranking-list li{min-width:0;border-bottom:1px solid var(--line)}
.ranking-list a{display:flex;align-items:center;gap:12px;min-height:96px;padding:16px 0;color:var(--ink);text-decoration:none}
.ranking-list a:hover .video-ranking-title{text-decoration:underline;color:var(--rust)}
.ranking-list a:focus-visible{outline:3px solid var(--rust);outline-offset:4px}
.ranking-position{font-size:16px;font-weight:700;color:var(--rust);flex:0 0 24px;font-variant-numeric:tabular-nums}
.ranking-list img{display:block;flex:0 0 96px;width:96px;height:54px;object-fit:cover;border-radius:3px;background:#171717}
.ranking-body{display:block;min-width:0}
.video-ranking-title{display:block;font-size:18px;line-height:1.3;font-weight:600;overflow-wrap:anywhere}
.ranking-views{display:block;font-size:14px;line-height:1.5;margin-top:5px;color:var(--muted,#60605b);font-variant-numeric:tabular-nums}
@media(max-width:1100px){.ranking-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.ranking-list{grid-template-columns:1fr}.platform-home .video-ranking{grid-column:1/-1;padding-top:10px}.ranking-list a{gap:10px}.ranking-list img{flex-basis:88px;width:88px;height:50px}.ranking-position{flex-basis:22px}}
