/* Paper, illustrations and editorial hierarchy, shared by all desks. */
:root {
  --paper: #fff;
  --ink: #18363e;
  --muted: #475d61;
  --teal: #155f58;
  --line: #d2dcda;
  color-scheme: light;
}
html, body, main, .site-header, footer, dialog { background: white; }
.inside { --case-paper: #fff; }
.ha-enquete { --ha-paper: #fff; }

/* The four mastheads use small illustrations in their own margins. */
.hero, .arch-banner, .tool-banner, .games-hero {
  isolation: isolate;
  position: relative;
  background: #fff;
  color: var(--ink);
  border: 1px solid #cedbd9;
  border-block-start: 3px solid var(--ink);
  border-radius: 10px;
  min-height: clamp(16rem, 26vw, 21rem);
  padding: 1.7rem 0;
}
.hero .hero-copy, .tool-banner .tool-banner-copy, .arch-banner > div, .games-hero > div {
  position: relative;
  z-index: 1;
  width: min(59%, 42rem);
  max-width: none;
  padding: 0;
  margin: 0 auto;
  text-align: center;
}
.hero .hero-copy .kicker, .arch-banner .kicker, .tool-banner .kicker, .games-hero .tool-intro .kicker {
  color: var(--teal);
  font-size: .78rem;
  justify-content: center;
}
.hero h1 em { color: var(--teal); }
.hero h1 em::after { height: .27rem; background: #edca61; }
.hero .hero-copy > p:not(.kicker), .hero .duration, .tool-banner-copy > p:not(.kicker),
.arch-banner > div > p:not(.kicker), .games-hero .tool-intro > p:not(.kicker) { color: var(--muted); }
.hero .hero-copy > h1, .arch-banner h1, .tool-banner h1, .games-hero .tool-intro h1 {
  margin: .45rem auto .7rem;
  color: var(--ink);
  text-align: center;
  text-wrap: balance;
}
.hero .hero-copy { grid-area: 1 / 1; }
.hero .hero-art, .arch-banner > img { display: none; }
.hero::before, .hero::after, .arch-banner::before, .arch-banner::after,
.games-hero::before, .games-hero::after, .tool-banner .tool-banner-photo {
  content: "";
  display: block;
  position: absolute;
  z-index: 0;
  inset: 50% auto auto;
  width: 21%;
  max-width: 18rem;
  height: 85%;
  margin: 0;
  border: none;
  box-shadow: none;
  pointer-events: none;
  opacity: 1;
  transform: translateY(-50%);
  border-radius: 0;
  background-color: white;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  mask-image: none;
  -webkit-mask-image: none;
}
.hero::before, .arch-banner::before, .games-hero::before, .tool-banner .tool-banner-photo.left { left: 0; }
.hero::after, .arch-banner::after, .games-hero::after, .tool-banner .tool-banner-photo.right { right: 0; }
.hero::before { background-image: url("archives/oies-carte.webp"); }
.hero::after { background-image: url("archives/fr-bayard-noye.webp"); }
.arch-banner::before { background-image: url("media/flash-commune.webp"); }
.arch-banner::after { background-image: url("archives/fr-eiffel.webp"); }
.games-hero::before { background-image: url("media/flash-commune.webp"); }
.games-hero::after { background-image: url("archives/oies-carte.webp"); }
.tool-banner .tool-banner-photo.left { background-image: url("archives/oies-carte.webp"); }
.tool-banner .tool-banner-photo.right { background-image: url("media/flash-commune.webp"); }
.arch-banner .btn, .games-hero .btn, .tool-banner .btn { margin-top: .4rem; }

/* Manuscripts and film frames keep their original pixels on a white mount. */
.fr-entryways a, .progress-strip, .arch-progress, .dossier, .empty, .tag, .filter,
.tool-tile, .tool-cover, .game-tile .tool-cover, .tool-invitation, .tool-cover span,
.tool-panel, .tool-entry, .tool-solved, .tool-locked, .archives-home-link,
.jr-columns section, .jr-order li, .jr-won, .jr-game .jr-card, .tool-work blockquote,
.inside .note.locked, .inside .review-banner, .evidence-video, .photo-proof, .source-slip,
.help-hint p, .inside .locked-preview, .ha-photo, .ha-comparison, .ha-full, .ha-layers,
.ha-record, .ha-plate, .tool-work .tool-result { background-color: #fff; }
.source-slip { box-shadow: none; border-left-color: #957342; }
.inside .reward-visual { background: white; border: 1px solid var(--line); }
.inside .claim-box, .ha-claim {
  background: white;
  color: var(--ink);
  border: 1px solid #bdceca;
  border-inline-start: .3rem solid var(--teal);
}
.inside .claim-box .kicker, .ha-claim .ha-kicker { color: var(--teal); }
.inside .claim-box .source, .ha-claim .ha-byline { color: var(--muted); }
.inside .evidence summary:hover, .ha-piece summary:hover, .jr-game .jr-card:hover { background: #f4f9f7; }
.ha-radios:disabled .ha-option { background: white; color: #576562; }
.inline-feedback, .inside .feedback, .inside .takeaway, .inside .feedback.error, .inside .feedback.success,
.ha-feedback, .ha-feedback[data-status="ok"], .ha-retain, .tool-feedback:not(:empty),
.jr-game .jr-feedback:not(:empty) { background: white; }
.jr-won { border-inline-start: .27rem solid #257366; }
.jr-game .jr-feedback:not(:empty) { border-inline-start: .27rem solid #a87929; }
.btn.secondary, .cue, .arch-filters button:not([aria-pressed="true"]),
.ha-modes button:not([aria-pressed="true"]), .level-tab:not([aria-pressed="true"]), .tool-secondary,
.tool-btn.tool-secondary { background: white; color: var(--teal); }
.btn.secondary:hover, .cue:hover, .level-tab:not([aria-pressed="true"]):hover { background: #f3f8f5; }
.tool-tile-copy h3, .note h2, .level-picker > h2, .jr-game h2,
.tool-entry h2, .fr-entryways strong { text-align: center; text-wrap: balance; }
.fr-entryways a { display: grid; grid-template-columns: minmax(4.2rem, 6rem) 1fr minmax(0, 8%); }
.fr-entryways a > span { text-align: center; }
.fr-entryways a img { object-fit: contain; background: white; width: 100%; }

@media (min-width: 761px) and (max-width: 1170px) {
  .site-header .header-inner { display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem; height: auto; padding-block: .55rem; }
  .site-header .header-inner .rules { grid-area: 1 / 2; }
  .site-header .header-inner nav { grid-row: 2; grid-column: 1 / -1; width: 100%; border: none; padding: 0; justify-content: center; }
}
@media (max-width: 760px) {
  .site-header .header-inner { height: auto; }
  .site-header .header-inner nav { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-header .header-inner nav a { height: 100%; font-size: .81rem; line-height: 1.22; padding: .5rem .2rem; }
  .hero .hero-copy, .tool-banner .tool-banner-copy, .arch-banner > div, .games-hero > div { width: 69%; }
  .hero::before, .hero::after, .arch-banner::before, .arch-banner::after, .games-hero::before, .games-hero::after, .tool-banner .tool-banner-photo { width: 15%; }
  .fr-entryways a { display: flex; }
}
@media (max-width: 590px) {
  .hero, .tool-banner, .arch-banner, .games-hero { min-height: 0; padding: 1.55rem .8rem; }
  .hero .hero-copy, .tool-banner .tool-banner-copy, .arch-banner > div, .games-hero > div { width: 100%; }
  .hero::before, .hero::after, .arch-banner::before, .arch-banner::after, .games-hero::before, .games-hero::after, .tool-banner .tool-banner-photo { display: none; }
  .tool-banner h1, .arch-banner h1, .games-hero .tool-intro h1 { font-size: clamp(2.35rem, 9.8vw, 3.05rem); }
}
@media (max-width: 355px) {
  .site-header .header-inner nav a { flex-direction: column; gap: .2rem; overflow-wrap: anywhere; }
}
@media print {
  html, body, main, footer, .site-header { background: white; }
}

.instrument-tiles {grid-template-columns: repeat(2,minmax(0,1fr));}
.instrument-tiles .game-tile {display:grid;grid-template-columns:minmax(7rem,38%) minmax(0,1fr);align-items:stretch;}
.instrument-tiles .tool-cover {height:100%;aspect-ratio:auto;display:grid;place-items:center;background:white;}
.instrument-tiles .tool-cover img {object-fit:contain;background:white;}
.instrument-tiles .tool-tile-copy {justify-content:center;}
.instrument-tiles .tool-tile-copy>p:not(.game-action){flex:0 1 auto;}
@media(max-width:760px){.instrument-tiles{grid-template-columns:1fr}}
@media(max-width:440px){.instrument-tiles .game-tile{grid-template-columns:minmax(4.2rem,28%) minmax(0,1fr)}}

#main :is(h1,h2,h3), dialog h2 {
  text-align: center;
  text-wrap: balance;
}

.fr-entryways {grid-template-columns:repeat(3,minmax(0,1fr));}
.fr-entryways a {grid-template-columns:minmax(3.2rem,25%) 1fr;gap:.6rem;}
.flash-shelf {margin:1.35rem auto;}
.flash-shelf .game-tile {display:grid;grid-template-columns:minmax(7rem,34%) minmax(0,1fr);max-width:49rem;margin:auto;}
.flash-shelf .tool-cover {height:100%;aspect-ratio:auto;background:white;}
.flash-shelf .tool-cover img {object-fit:contain;}
.flash-shelf .tool-tile-copy {text-align:center;}
.flash-shelf .tool-tile-copy h2 {margin:.1rem 0 .45rem;font:700 clamp(1.6rem,3.4vw,2.4rem)/1.1 Georgia,serif;color:var(--ink);}
.flash-shelf .tool-tile-action {align-self:center;}
@media(min-width:1050px){#cases{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(min-width:761px) and (max-width:970px){.fr-entryways a{display:flex;flex-direction:column;justify-content:center;}.fr-entryways a img{height:3.7rem;}}
@media(max-width:760px){.fr-entryways{grid-template-columns:1fr;}.fr-entryways a{display:grid;grid-template-columns:4.4rem minmax(0,1fr);}.fr-entryways a img{height:3.25rem;}.fr-entryways small{max-width:42ch;margin-inline:auto;}}
.case-trace {margin:.85rem 0 1.2rem;}
.case-trace label {display:block;font-weight:700;margin:0 0 .45rem;line-height:1.4;}
.case-trace input {width:100%;background:white;}
