/* ARCHIVES VISUELLES — coherent visual layer v0.3.
   This stylesheet is the final presentation layer, always loaded AFTER style.css.
   Original NostaljiArsiv selectors remain for importer, navigation and page logic. */
:root {
  color-scheme:light;
  --bg:#e9eff1; --paper:#f9fbfb; --ink:#293f4b; --muted:#61727b;
  --line:#c3d0d6; --soft:#e4ebee;
  --radius:5px; --radius-sm:3px;
  --shadow:0 3px 14px rgba(29,57,70,.055);
  --shadow-soft:0 2px 9px rgba(29,57,70,.045);
  --av-blue:#667d91;--av-burgundy:#866376;--av-green:#6d826e;--av-ochre:#9b825a;
  --av-divider:#a8bac1;--av-paper:#f9fbfb;
}
html{scroll-padding-top:120px}
body{font:15px/1.62 Georgia,'Times New Roman',serif!important;color:var(--ink)!important;background:#e9eff1!important}
body::before{content:''!important;position:fixed!important;inset:0!important;z-index:-1!important;pointer-events:none!important;background:linear-gradient(90deg,rgba(233,239,241,.20) 0%,rgba(233,239,241,.92) 16%,#e9eff1 30%,#e9eff1 70%,rgba(233,239,241,.92) 84%,rgba(233,239,241,.20) 100%),url('engravings/paris-panorama.webp') center center/cover no-repeat!important;opacity:.12!important}
body::after{display:none!important}
.shell{width:min(1160px,calc(100% - 44px))!important}
a{color:#365a6c}
a:hover{color:#7b5867}
h1,h2,h3,h4{font-family:Georgia,'Times New Roman',serif!important;letter-spacing:-.014em!important}
/* Header and footer use the same two neutrals on every route. */
.site-header{background:rgba(245,249,250,.98)!important;border-bottom:2px solid #526b7a!important;box-shadow:0 2px 8px rgba(35,61,73,.06)!important}
.site-header::before{background:#866376!important;height:3px!important}
.header-row{min-height:98px!important;display:flex!important;justify-content:center!important;flex-wrap:wrap!important;gap:14px 25px!important;padding:13px 0!important}
.brand,.brand span{font:italic 700 32px/1.15 Georgia,'Times New Roman',serif!important;color:#315363!important;text-shadow:none!important;letter-spacing:.004em!important}
.brand small{font-size:12px!important;color:#677b86!important}
.main-nav{gap:15px!important;font:700 13px Georgia,'Times New Roman',serif!important;color:#365362!important}
.main-nav a{color:#365362!important;background:transparent!important;border:0!important;text-shadow:none!important}
.main-nav a:hover,.main-nav a:focus-visible{color:#845b6d!important}
.search-link,.main-nav .search-link{background:#e8eff1!important;border:1px solid #9cafb8!important;color:#365362!important;border-radius:3px!important}
.site-footer{background:#283e51!important;border-top:3px solid #866376!important;color:#edf3f5!important;margin-top:44px!important;padding-bottom:23px!important}
.site-footer::before{display:none!important}.site-footer a{color:#ecf1f4!important}.site-footer a:hover{color:#fff!important}
.footer-brand,.footer-brand a{color:#f0f5f6!important}.footer-grid p,.footer-copyright{color:#c5d0d5!important}
/* Neutral surfaces, the same borders and corners everywhere. */
.page-head,.home-intro,.service-page{background:transparent!important;color:var(--ink)!important}
.page-head{padding:35px 0 16px!important;border-bottom:1px solid var(--line)!important}
.page-head::after{background:#866376!important;height:3px!important;width:68px!important;border-radius:0!important}
.page-head h1,.section-head h2{font:italic 700 clamp(26px,3vw,35px)/1.2 Georgia,serif!important;color:#2d4d5c!important}
.page-head p,.page-head .page-description{color:#60737d!important}
.section{padding:29px 0!important;background:transparent!important}
.section.alt,.topic-feature-home{background:rgba(237,243,245,.64)!important;border-block:1px solid #cbd6da!important;margin:0!important}
.section-head{border-bottom:1px solid var(--av-divider)!important;margin-bottom:20px!important;padding-bottom:12px!important}
.section-rule{background:#866376!important;width:4px!important;height:35px!important;border-radius:0!important}
.home-intro{padding:34px 0 24px!important;border-bottom:1px solid #b7c7ce!important;grid-template-columns:1fr!important;gap:13px!important}
.home-manifest{background:transparent!important;border-left:3px solid #866376!important;color:#875b6d!important;padding:3px 10px!important;border-radius:0!important;font-size:11px!important;letter-spacing:.12em!important}
.home-intro p{font:700 clamp(22px,2.6vw,29px)/1.28 Georgia,serif!important;color:#2d4e5c!important;max-width:900px!important;margin:5px 0!important}
/* Four groups: group color only on heading; content remains neutral and readable. */
.av-sections{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:24px!important;align-items:stretch!important}
.av-section{padding:0 0 15px!important;border:1px solid #bfced3!important;border-top:0!important;background:rgba(250,252,252,.98)!important;border-radius:3px!important;box-shadow:var(--shadow-soft)!important;overflow:hidden!important}
.av-section>h2{font:italic 700 19px/1.3 Georgia,serif!important;color:#fff!important;background:var(--group-color)!important;margin:0 0 14px!important;padding:13px 17px!important;border:0!important}
.av-section>h2 span{font:italic 700 13px Georgia,serif!important;color:rgba(255,255,255,.86)!important;margin-right:8px!important}
.av-section .category-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;padding:0 14px!important}
.av-section .na-rubric-card,.av-section .category-card{display:grid!important;grid-template-columns:41% minmax(0,1fr)!important;align-items:stretch!important;min-width:0!important;min-height:96px!important;max-height:112px!important;height:auto!important;border:1px solid #d0dce0!important;border-radius:2px!important;border-bottom:1px solid #d0dce0!important;box-shadow:none!important;background:#fbfcfc!important;color:var(--ink)!important;overflow:hidden!important;padding:0!important;transform:none!important;outline-offset:2px!important}
.av-section .na-rubric-card::before,.av-section .na-rubric-card::after{display:none!important;content:none!important}
.av-card-art{display:block!important;width:100%!important;height:100%!important;min-height:96px!important;object-fit:cover!important;background:#e7edef!important;border-right:1px solid #ced9dd!important;filter:grayscale(.25) saturate(.7) contrast(.98)!important}
.av-section .na-rubric-copy,.av-section .category-card .na-rubric-copy{display:flex!important;align-items:center!important;justify-content:flex-start!important;min-width:0!important;min-height:0!important;background:#fbfcfc!important;padding:9px 12px!important;border:0!important}
.av-section .na-rubric-copy h3{font:700 14px/1.28 Georgia,serif!important;color:#2c4756!important;margin:0!important;overflow-wrap:break-word!important}
.av-section .na-rubric-copy h3::first-letter{color:inherit!important}
.av-section .na-rubric-card:hover{background:#f1f6f7!important;border-color:var(--group-color)!important;box-shadow:0 0 0 1px var(--group-color)!important}
.av-small-icon,.mini-icon,.card-icon,.vi-stat-icon .na-rubric-icon{background:#e8eff1!important;border-radius:2px!important;box-shadow:none!important}
/* Inner pages: remove inherited beige, wine and theatrical gradients. */
.category-hero{background:#e5edf0!important;border-top:3px solid var(--cat,#667d91)!important;border-bottom:1px solid #bfd0d6!important;color:#2b4b5b!important}
.category-hero::after{display:none!important}
.category-hero-inner{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(200px,32%)!important;gap:28px!important;min-height:0!important;padding:26px 0!important;align-items:center!important}
.category-hero h1{font:700 clamp(29px,3.7vw,45px)/1.15 Georgia,serif!important;color:#2e4f5d!important}
.category-hero p{color:#566c76!important}
.category-hero .page-kicker{color:#755567!important}
.category-hero-icon,.category-hero-icon.na-category-hero-art-wrap{width:100%!important;height:auto!important;aspect-ratio:3/2!important;max-width:350px!important;max-height:none!important;padding:0!important;border:1px solid #b9c9cf!important;outline:0!important;box-shadow:none!important;background:#ebf0f1!important;border-radius:3px!important;overflow:hidden!important}
.category-hero-icon img,.category-hero-icon .na-category-hero-art,.category-hero-icon .av-hero-art{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;border:0!important;border-radius:0!important}
.service-card,.article-paper,.article-nav-card,.sidebar-card,.toc,.article-card,.catalog-card,.recommend-card,.search-card,.statistics-grid>*,.topic-letter-group,.stat-kpis>div,.stat-buckets>*,.calendar-card,.calendar-day,.na-static,.vi-editorial-note,.na-stats-decades{background:#f9fbfb!important;color:#2d4653!important;border:1px solid #c7d4d9!important;border-radius:4px!important;box-shadow:none!important}
.service-card,.article-paper{padding:30px!important}
.article-header{background:#e4edf0!important;color:#2b4858!important;border:1px solid #c3d1d6!important;border-top:4px solid var(--cat,#667d91)!important;border-radius:4px 4px 0 0!important;text-shadow:none!important;box-shadow:none!important}
.article-header h1,.article-header .article-summary,.article-header .article-meta{color:#294959!important}
.article-body{color:#344550!important}
.article-body h2{background:#e8eff1!important;border-left:4px solid var(--cat,#667d91)!important;border-bottom:1px solid #cedadd!important;border-radius:2px!important;color:#2c4a57!important}
.article-disclaimer,.article-paper .lead-text,.na-language-block{background:#e9f0f2!important;border-color:#c8d5d9!important;color:#435a65!important;border-radius:3px!important}
.article-card,.catalog-card,.recommend-card{border-top:4px solid var(--cat,#667d91)!important}
.article-card h3,.catalog-card h3,.recommend-card h3,.sidebar-card h2,.service-card h1,.na-static h1,.na-static h2,.na-subhead{color:#2d4d5b!important}
.topic-chip,.tag,.page-link,.alphabet-nav a,.topic-letter-nav a,.na-year-strip a{background:#f8fafb!important;color:#365564!important;border:1px solid #c2d0d5!important;border-radius:3px!important;box-shadow:none!important}
.topic-chip:hover,.tag:hover,.page-link:hover,.alphabet-nav a:hover,.topic-letter-nav a:hover,.na-year-strip a:hover{background:#e5edf0!important;color:#254455!important}
.catalog-head h2,.feature-section-head h2{color:#2d4d5c!important}
.stat-kpis>div{border-top:4px solid #667d91!important}
.stat-kpis>div *{color:#2e4c5a!important}
.vi-stat-row{background:#f9fbfb!important;border-color:#cbd7db!important;border-radius:2px!important}
.vi-stat-name,.vi-stat-row b{color:#2d4c5a!important}
.na-stats-decade-grid a,.na-decade-card,.na-chron-intro,.na-decade-focus,.na-year-head,.na-year-strip a,.na-stats-decades,.vi-editorial-note{background:#eef3f4!important;color:#395461!important;border-color:#cbd8dc!important;border-radius:3px!important;box-shadow:none!important}
.na-decade-caption strong,.na-stats-decade-grid span,.na-year-head h2{color:#345667!important}
/* Epochs intentionally use a calm neutral treatment until approved large engravings exist. */
.av-epoch-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
.av-epoch-card{padding:20px 23px!important;min-height:125px!important;background:#f9fbfb!important;border:1px solid #c6d3d8!important;border-left:4px solid #7d909e!important;border-radius:3px!important;box-shadow:none!important;color:#385360!important;text-decoration:none!important}
.av-epoch-card strong{color:#294957!important;font:700 24px/1.2 Georgia,serif!important}
.av-epoch-card span,.av-epoch-card small{color:#667b84!important}
.av-epoch-card:hover{border-left-color:#866376!important;background:#f0f5f6!important}
/* Consent and mobile navigation must not inherit the Turkish cream theme. */
.cookie-banner{background:#f5f9fa!important;color:#304b58!important;border:1px solid #a9bec7!important;border-top:3px solid #866376!important;border-radius:4px!important;box-shadow:0 6px 24px rgba(39,62,73,.16)!important}
.cookie-banner span,.cookie-banner strong{color:#304b58!important}
.cookie-banner .button{border-radius:3px!important}
@media(max-width:1020px){.site-header .main-nav.open{background:#f7fafb!important;border:1px solid #c2d1d6!important;color:#294958!important;box-shadow:0 8px 20px #28495820!important}.site-header .main-nav.open a:not(.search-link){color:#294958!important;background:transparent!important}.site-header .main-nav.open .search-link{background:#e5edf0!important;color:#294958!important}}
@media(max-width:840px){.header-row{min-height:72px!important;justify-content:space-between!important}.av-sections{grid-template-columns:1fr!important}.av-section .category-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.category-hero-inner{grid-template-columns:1fr!important}.category-hero-icon{max-width:420px!important}}
@media(max-width:560px){.shell{width:calc(100% - 22px)!important}.brand,.brand span{font-size:25px!important}.home-intro{padding:23px 0 16px!important}.home-intro p{font-size:22px!important}.av-section .category-grid{grid-template-columns:1fr!important}.av-section .na-rubric-card{grid-template-columns:35% minmax(0,1fr)!important;min-height:95px!important;max-height:125px!important}.av-card-art{min-height:95px!important}.av-section .na-rubric-copy h3{font-size:16px!important}.av-epoch-grid{grid-template-columns:1fr!important}.service-card,.article-paper{padding:19px!important}.category-hero-inner{padding:22px 0!important}}


/* AV v0.3.1 — remove the legacy Turkish banner and correct header contrast.
   The original stylesheet defines a 110–180px ::before, plus higher-specificity
   white brand/nav text with !important. Override the exact legacy selectors. */
.site-header::before,
.site-header:before {
  content:none!important;
  display:none!important;
  height:0!important;
  min-height:0!important;
  background:none!important;
}
.site-header {
  border-top:0!important;
  background:#f5f9fa!important;
  border-bottom:2px solid #526b7a!important;
}
.site-header .header-row {
  min-height:76px!important;
  border-bottom:0!important;
  padding:14px 0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  flex-wrap:wrap!important;
}
.site-header .brand,
.site-header .brand span {
  color:#315363!important;
  text-shadow:none!important;
  font-family:Georgia,'Times New Roman',serif!important;
  font-size:clamp(24px,2.2vw,31px)!important;
  letter-spacing:0!important;
}
.site-header .main-nav a,
.site-header .main-nav a:not(.search-link),
.site-header .main-nav a.active {
  color:#365362!important;
  background:transparent!important;
  text-shadow:none!important;
}
.site-header .main-nav a:hover,
.site-header .main-nav a:focus-visible {
  color:#805a6d!important;
}
.site-header .main-nav .search-link {
  color:#365362!important;
  background:#e8eff1!important;
  border:1px solid #9cafb8!important;
}
@media(max-width:1020px) {
  .site-header .header-row{min-height:70px!important}
  .site-header .main-nav.open a:not(.search-link){color:#365362!important}
}
@media(max-width:560px) {
  .site-header .brand,.site-header .brand span{font-size:24px!important}
}

/* AV v0.3.2 — central-page refinement, integrated into ONE existing French theme.
   No modifications to routing, JSON, search, importer or the tested header. */
:root { --bg:#eaf0f2; --paper:#f9fbfb; --line:#c5d2d8; }
body { background-color:#eaf0f2!important; }
body::before { opacity:.12!important; filter:grayscale(1)!important; }
.home-intro { max-width:100%!important; }
.home-intro p { max-width:1050px!important; font-size:clamp(24px,2.45vw,32px)!important; line-height:1.31!important; }
.section-head h2 { font-style:normal!important; letter-spacing:-.02em!important; }
.section-rule { width:4px!important; height:32px!important; border:0!important; background:#946457!important; }
.av-section { transition:none!important; }
.av-section>h2 { font-style:normal!important; letter-spacing:0!important; }
.av-section>h2 span { font-style:normal!important; opacity:.80!important; }
.av-section .category-card { text-decoration:none!important; }
.av-section .category-card .av-card-art { filter:grayscale(.70) sepia(.12) saturate(.55) contrast(1.04)!important; }
.av-section .category-card:hover .av-card-art { filter:grayscale(.45) sepia(.14) saturate(.65) contrast(1.08)!important; }
.av-section .category-card:focus-visible { outline:3px solid #315c72!important; outline-offset:2px!important; }
.page-head h1::first-letter,.section-head h2::first-letter,.article-main h1::first-letter { color:inherit!important; }
.service-card,.article-paper,.sidebar-card,.catalog-card,.search-card { border-radius:3px!important; }
.site-footer { margin-top:54px!important; }
@media (max-width:1000px){
 .av-sections { gap:16px!important; }
 .av-section .category-grid { grid-template-columns:1fr!important; }
 .av-section .category-card { min-height:98px!important; max-height:none!important; }
}
@media (max-width:840px){
 .av-sections { grid-template-columns:1fr!important; }
 .av-section .category-grid { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
}
@media (max-width:580px){
 .shell { width:calc(100% - 24px)!important; }
 .av-section .category-grid { grid-template-columns:1fr!important; }
 .av-section .category-card { grid-template-columns:37% minmax(0,1fr)!important; min-height:102px!important; }
 .av-section .category-card .na-rubric-copy h3 { font-size:16px!important; }
 .av-section>h2 { font-size:18px!important; }
 .home-intro p { font-size:23px!important; }
}
