/* Nautipass: numbered registers and illustrated nautical plates. */
.cotier { font-variant-numeric: tabular-nums; }
.cotier [hidden] { display: none !important; }
.cotier-main, .cotier-footer { width: min(100% - 3rem, 76rem); margin-inline: auto; }
.cotier-main { padding-block: 2rem 4rem; }
.cotier .site-header nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.cotier .brand span { display: block; font-size: .85rem; font-weight: 400; }
.cotier .breadcrumb { color: var(--muted); font-size: .9rem; margin-bottom: 2.5rem; }
.cotier .breadcrumb span, .cotier .breadcrumb a { margin-right: .35rem; }
.cotier h1 { max-width: 23ch; }
.cotier h2 { font-size: 1.6rem; margin-top: 2.5rem; }
.original-notice { margin: .5rem 0 2rem; color: var(--muted); font-size: .95rem; }
.intro, .editorial { max-width: 72ch; }
.intro { font-size: 1.2rem; }
.app-line { border-top: 1px solid var(--line); padding-top: 1.5rem; margin-top: 3rem; max-width: 75ch; }
.register-links { list-style: none; padding: 0; margin-block: 2rem; border-top: 2px solid var(--ink); }
.register-links li { display: grid; grid-template-columns: minmax(14rem, 1fr) 2fr; gap: 1rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.register-links a { font-family: var(--font-display); font-size: 1.3rem; font-weight: 650; }
.register-links span { color: var(--muted); }
.fiche-list { max-width: 70ch; padding-left: 2.5rem; }
.fiche-list li { padding: .8rem .5rem; border-bottom: 1px solid var(--line); }
.fiche-list li::marker { font-family: var(--font-display); font-weight: 700; }
.question { margin: 2rem 0 0; padding: 1.5rem 0; border: 0; border-top: 2px solid var(--line); min-width: 0; }
.question legend { float: left; width: 100%; padding: 0; display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 1.5rem; margin-bottom: 1.5rem; }
.q-margin { display: block; color: var(--muted); }
.q-number { display: block; font-family: var(--font-display); font-size: 3.5rem; font-weight: 700; line-height: 1; color: var(--ink); }
.q-section { display: block; font-variant-caps: all-small-caps; font-size: .95rem; line-height: 1.25; margin-top: .7rem; }
.q-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(13rem, 21rem); align-items: start; gap: 1.5rem; font-size: 1.25rem; }
.q-heading:not(:has(img)) { grid-template-columns: 1fr; }
.q-heading img { width: 100%; height: auto; background: #fff; }
.choices { clear: both; margin-left: 9.5rem; border-top: 1px solid var(--line); }
.choices label { display: flex; align-items: center; gap: .85rem; padding: .9rem .5rem; border-bottom: 1px solid var(--line); cursor: pointer; }
.choices label:has(input:checked) { background: var(--foam); color: #142c3c; }
.choices input { flex: 0 0 auto; width: 1.2rem; height: 1.2rem; accent-color: #20614f; }
.choice-letter { flex: 0 0 1.8rem; height: 1.8rem; display: inline-grid; place-items: center; border: 1px solid currentColor; font-family: var(--font-display); font-weight: 700; }
.cotier :focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.choices label:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.correction { clear: both; margin: 1.5rem 0 0 9.5rem; border-left: 3px solid var(--accent); padding: .75rem 1.25rem; max-width: 75ch; scroll-margin-top: 1.5rem; }
.correction.incorrect { border-color: #b3261e; }
.correction summary { cursor: pointer; font-weight: 650; }
.cotier button { font: 650 1.1rem var(--font-display); color: var(--bg); background: var(--accent); border: 2px solid var(--accent); border-radius: 0; padding: .9rem 1.25rem; cursor: pointer; min-height: 44px; }
.cotier button:disabled { opacity: .6; cursor: default; }
.progress { min-height: 1.6em; color: var(--muted); }
.result-status { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.result { border-block: 2px solid var(--ink); padding: 1.5rem 0; margin-block: 2rem; scroll-margin-top: 1rem; }
.result h2 { margin-top: 0; }
.result-notation { font: 700 1.8rem var(--font-display); }
.chronogram { display: flex; gap: 3px; background: var(--navy); padding: .8rem .4rem; overflow-x: auto; }
.chronogram a { flex: 1 0 1.2rem; display: grid; place-items: end center; min-height: 3.25rem; font: 650 .7rem var(--font-display); text-decoration: none; border: 1px solid #bce8da; }
.chronogram .flash { background: #bce8da; color: #0d2137; }
.chronogram .dark-slot { background: #0d2137; color: #bce8da; }
.chronogram a:focus-visible { outline-color: white; outline-offset: 1px; }
.result-key { font-size: .85rem; color: var(--muted); }
.lesson-layout { display: grid; grid-template-columns: minmax(0, 72ch) minmax(15rem, 1fr); align-items: start; gap: 3rem; }
.lesson-text { max-width: 72ch; }
.lesson-text h2:first-child { margin-top: 0; }
.plates { border-left: 1px solid var(--line); padding-left: 1.5rem; }
.plates figure { margin: 0 0 2rem; }
.plates img { display: block; width: 100%; height: auto; background: white; }
.plates figcaption { font-size: .8rem; line-height: 1.4; padding-top: .65rem; color: var(--muted); }
.plates figcaption strong { color: var(--ink); font-family: var(--font-display); font-size: .95rem; }
.sources { border-top: 1px solid var(--line); margin-top: 2rem; max-width: 75ch; font-size: .85rem; color: var(--muted); }
.lesson-next { max-width: 75ch; }
.lesson-next li { padding-block: .4rem; }
.atlas-license { max-width: 80ch; }
.atlas-credit { border: 1px solid var(--line); padding: 1rem 1.25rem; margin-block: 1.5rem; }
.atlas-credit h3 { margin: 0; font-size: 1.15rem; }
.atlas-credit p { margin-bottom: 0; }
.atlas-downloads { border-block: 1px solid var(--line); padding-block: 1rem; }
.atlas-section > h2 { border-bottom: 2px solid var(--ink); padding-bottom: .65rem; }
.atlas-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.atlas-grid figure { border-bottom: 1px solid var(--line); padding-bottom: 1.5rem; break-inside: avoid; }
.atlas-grid img { display: block; width: 100%; height: auto; background: white; }
.atlas-grid figcaption { font-size: .95rem; }
.atlas-grid strong { color: var(--ink); font: 650 1.2rem var(--font-display); }
.atlas-grid small, .atlas-grid a { display: block; margin-top: .6rem; }
.atlas-grid a { width: fit-content; }
@media (max-width: 760px) {
  .atlas-grid { grid-template-columns: 1fr; }
  .cotier-main, .cotier-footer { width: min(100% - 2rem, 76rem); }
  .cotier .site-header { align-items: start; flex-wrap: wrap; }
  .cotier .breadcrumb { margin-bottom: 1.5rem; }
  .register-links li { grid-template-columns: 1fr; gap: .35rem; }
  .question legend { grid-template-columns: 3rem minmax(0, 1fr); gap: .75rem; }
  .q-number { font-size: 2.5rem; }
  .q-section { font-size: .75rem; overflow-wrap: anywhere; }
  .q-heading { grid-template-columns: 1fr; font-size: 1.1rem; }
  .q-heading img { grid-row: 1; max-width: 26rem; }
  .choices { margin-left: 0; }
  .correction { margin-left: 0; }
  .lesson-layout { grid-template-columns: 1fr; gap: 2rem; }
  .plates { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 1.5rem; }
  .plates figure { max-width: 32rem; }
}
@media (max-width: 640px) {
  .question legend { grid-template-columns: minmax(0, 1fr); }
  .q-margin { display: flex; align-items: center; gap: 1rem; }
  .q-number { flex-shrink: 0; white-space: nowrap; }
  .q-section { margin-top: 0; overflow-wrap: normal; }
  .q-heading img { max-width: none; }
}
@media (prefers-color-scheme: dark) {
  .correction.incorrect { border-color: #ff8b83; }
  .choices label:has(input:checked):focus-within { outline-color: #0d2137; outline-offset: -2px; }
  .choices label:has(input:checked) input:focus-visible { outline-color: #0d2137; }
}
@media (prefers-reduced-motion: reduce) {
  .cotier *, .cotier *::before, .cotier *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
