/* ===========================================================================
   Garde Contre — feuille de marque
   Palette taken from an old Grimaud "Tarot Nouveau" deck: ivory card stock,
   flat litho inks, and the dark green of the table it is played on.
   =========================================================================== */

:root {
  --feutre:      #14302A;  /* table felt — page ground */
  --feutre-haut: #1B3A32;  /* felt, lit */
  --carte:       #F7F3E8;  /* card stock — every sheet of paper */
  --carte-ombre: #EDE6D4;  /* ruled band on the sheet */
  --encre:       #17201D;  /* ink */
  --encre-pale:  #5C6862;  /* secondary ink */
  --rouge:       #C4362B;  /* vermilion — chutes, losses */
  --bleu:        #2A5C8A;  /* litho blue — links, primary action */
  --or:          #C0971F;  /* gold — bouts, the Petit */
  --regle:       #C9BFA6;  /* ruled line on the sheet */

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --chiffres: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --marge: clamp(1rem, 4vw, 2.5rem);
  --rayon: 3px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--feutre);
  color: var(--encre);
  font: 400 1rem/1.55 var(--sans);
}

/* Accessibility floor -------------------------------------------------------*/
.skip {
  position: absolute; left: -9999px;
  background: var(--carte); color: var(--encre);
  padding: .7rem 1rem; z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

:focus-visible {
  outline: 2px solid var(--bleu);
  outline-offset: 2px;
}
.chrome :focus-visible { outline-color: var(--or); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============================================================ chrome (header) */

.chrome {
  background: var(--feutre-haut);
  border-bottom: 1px solid rgba(247, 243, 232, .14);
}
.chrome__inner {
  max-width: 68rem;
  margin: 0 auto;
  padding: .85rem var(--marge);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  margin-right: auto;
}
/* The 21 — the highest trump — stands in for a logo. */
.wordmark__mark {
  font: 700 .95rem/1 var(--chiffres);
  color: var(--feutre);
  background: var(--or);
  padding: .42rem .4rem;
  border-radius: 2px;
  letter-spacing: -.03em;
}
.wordmark__text {
  font: 600 1.16rem/1 var(--serif);
  letter-spacing: .01em;
  color: var(--carte);
}
.wordmark__text span { color: var(--or); }

.nav { display: flex; gap: .35rem; flex-wrap: wrap; }
.nav a {
  color: rgba(247, 243, 232, .74);
  text-decoration: none;
  font-size: .93rem;
  padding: .4rem .7rem;
  border-radius: var(--rayon);
}
.nav a:hover { color: var(--carte); background: rgba(247, 243, 232, .08); }
.nav a[aria-current="page"] {
  color: var(--feutre);
  background: var(--carte);
  font-weight: 600;
}

.chrome__out { margin: 0; }
.chrome__out .link { color: rgba(247, 243, 232, .6); font-size: .86rem; }
.chrome__out .link:hover { color: var(--carte); }

/* ============================================================ layout blocks */

main {
  flex: 1;
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: var(--marge) var(--marge) 3rem;
}

.foot {
  padding: 1.4rem var(--marge) 2rem;
  text-align: center;
  color: rgba(247, 243, 232, .42);
  font-size: .82rem;
}
.foot p { margin: 0; }

/* A sheet of card stock on the table. */
.sheet {
  background: var(--carte);
  border-radius: var(--rayon);
  padding: clamp(1.1rem, 3vw, 1.9rem);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 6px 18px rgba(0, 0, 0, .22);
}
.sheet + .sheet { margin-top: 1.1rem; }
.sheet--tight { padding: clamp(.9rem, 2vw, 1.25rem); }

/* Spacing utilities — CSP forbids inline style attributes, so views use these. */
.mt { margin-top: 1.1rem; }
.mt-lg { margin-top: 1.8rem; }
.mb { margin-bottom: 1.1rem; }
.m0 { margin: 0; }

/* ============================================================ typography */

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: .005em; }
h1 { font-size: clamp(1.5rem, 3.6vw, 2.05rem); line-height: 1.15; margin: 0 0 .35rem; }
h2 { font-size: 1.22rem; margin: 0 0 .7rem; }
h3 { font-size: 1.02rem; margin: 0 0 .5rem; }

/* Section eyebrow: only used where the label names a real category. */
.eyebrow {
  font: 600 .72rem/1 var(--sans);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--encre-pale);
  margin: 0 0 .55rem;
}
.chrome ~ main .page-head .eyebrow { color: rgba(247, 243, 232, .55); }

.page-head { margin-bottom: 1.3rem; }
.page-head h1 { color: var(--carte); }
.page-head p { color: rgba(247, 243, 232, .66); margin: .3rem 0 0; max-width: 46rem; }
.page-head .eyebrow { color: var(--or); }

.lede { font-size: 1.06rem; color: var(--encre-pale); margin: 0 0 1.1rem; }
.muted { color: var(--encre-pale); }
.small { font-size: .88rem; }
.nowrap { white-space: nowrap; }

/* ============================================================ actions */

.actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.actions--end { justify-content: flex-end; }
.actions--split { justify-content: space-between; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  font: 600 .95rem/1 var(--sans);
  padding: .78rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--rayon);
  background: var(--feutre);
  color: var(--carte);
  text-decoration: none;
  cursor: pointer;
  transition: background .14s ease, color .14s ease;
}
.btn:hover { background: #0D231E; }
.btn--ghost {
  background: transparent;
  color: var(--encre);
  border-color: var(--regle);
}
.btn--ghost:hover { background: var(--carte-ombre); }
.btn--light {
  background: var(--carte);
  color: var(--feutre);
}
.btn--light:hover { background: #fff; }
.btn--danger { background: transparent; color: var(--rouge); border-color: rgba(196, 54, 43, .4); }
.btn--danger:hover { background: rgba(196, 54, 43, .08); }
.btn--small { padding: .48rem .7rem; font-size: .85rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--bleu);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.link:hover { color: var(--feutre); }
.link--danger { color: var(--rouge); }

a { color: var(--bleu); text-underline-offset: 2px; }

/* ============================================================ flash */

.flash {
  max-width: 68rem;
  margin: var(--marge) auto -.6rem;
  padding: 0 var(--marge);
}
.flash p {
  margin: 0;
  padding: .85rem 1.05rem;
  border-radius: var(--rayon);
  border-left: 3px solid var(--bleu);
  background: var(--carte);
  font-size: .94rem;
}
.flash--error p { border-left-color: var(--rouge); }
.flash--success p { border-left-color: #2F7A57; }

/* ============================================================ forms */

.field { margin-bottom: 1.1rem; }
.field > label,
.fieldset > legend {
  display: block;
  font: 600 .84rem/1.3 var(--sans);
  letter-spacing: .02em;
  margin-bottom: .4rem;
}
.hint { display: block; font-size: .82rem; color: var(--encre-pale); margin-top: .3rem; }

input[type="text"], input[type="email"], input[type="number"], input[type="date"], select, textarea {
  width: 100%;
  font: 400 1rem/1.4 var(--sans);
  color: var(--encre);
  padding: .72rem .8rem;
  background: #FFFDF7;
  border: 1px solid var(--regle);
  border-radius: var(--rayon);
}
input:focus, select:focus, textarea:focus { border-color: var(--bleu); }
input[inputmode="numeric"], .code-input { font-family: var(--chiffres); }

.fieldset { border: 0; padding: 0; margin: 0 0 1.1rem; }

.grid { display: grid; gap: 1rem; }
@media (min-width: 34rem) {
  .grid--2 { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* Segmented control, used for contract / bouts / petit au bout. */
.segments { display: flex; flex-wrap: wrap; gap: .4rem; }
.segments input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segments label {
  flex: 1 1 auto;
  min-width: 4.5rem;
  text-align: center;
  padding: .6rem .7rem;
  font-size: .9rem;
  border: 1px solid var(--regle);
  border-radius: var(--rayon);
  background: #FFFDF7;
  cursor: pointer;
}
.segments label:hover { background: var(--carte-ombre); }
.segments input:checked + label {
  background: var(--feutre);
  border-color: var(--feutre);
  color: var(--carte);
  font-weight: 600;
}
.segments input:focus-visible + label { outline: 2px solid var(--bleu); outline-offset: 2px; }

/* Player chips, used for taker / appelé / misères. */
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .8rem;
  border: 1px solid var(--regle);
  border-radius: 100px;
  background: #FFFDF7;
  font-size: .9rem;
  cursor: pointer;
}
.chips label:hover { background: var(--carte-ombre); }
.chips input:checked + label {
  background: var(--feutre);
  border-color: var(--feutre);
  color: var(--carte);
  font-weight: 600;
}
.chips input:focus-visible + label { outline: 2px solid var(--bleu); outline-offset: 2px; }
.chips--misere input:checked + label { background: var(--rouge); border-color: var(--rouge); }

/* ============================================================ the score sheet
   The signature element: a ruled ledger, one column per player, one row per
   donne, with the running total set off by a double rule. */

.marque-wrap { overflow-x: auto; margin: 0 -.4rem; padding: 0 .4rem; }

.marque {
  width: 100%;
  min-width: 30rem;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.marque caption {
  caption-side: top;
  text-align: left;
  font: 600 .72rem/1 var(--sans);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--encre-pale);
  padding-bottom: .6rem;
}
.marque th, .marque td {
  padding: .55rem .5rem;
  border-bottom: 1px solid var(--regle);
  text-align: right;
}
.marque thead th {
  font: 600 .8rem/1.25 var(--sans);
  border-bottom: 2px solid var(--encre);
  vertical-align: bottom;
  white-space: nowrap;
}
.marque .marque__num {
  width: 2.4rem;
  text-align: left;
  font-family: var(--chiffres);
  font-size: .8rem;
  color: var(--encre-pale);
}
.marque .marque__detail {
  text-align: left;
  font-size: .84rem;
  color: var(--encre-pale);
  min-width: 11rem;
}
.marque__detail a { color: inherit; text-decoration: none; }
.marque__detail a:hover { color: var(--bleu); text-decoration: underline; }
.marque tbody tr:nth-child(even) { background: rgba(201, 191, 166, .13); }
.marque tbody tr:hover { background: rgba(42, 92, 138, .07); }

.marque td .score { font-family: var(--chiffres); font-size: .95rem; font-weight: 600; }
.score--plus { color: var(--encre); }
.score--minus { color: var(--rouge); }
.score--zero { color: var(--encre-pale); }

/* Ledger foot: a double rule, as on a real marque. */
.marque tfoot th, .marque tfoot td {
  border-top: 3px double var(--encre);
  border-bottom: 0;
  padding-top: .75rem;
  font-weight: 700;
}
.marque tfoot .score { font-size: 1.12rem; }
.marque tfoot .marque__label {
  text-align: left;
  font: 600 .78rem/1.2 var(--sans);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.marque tfoot tr + tr th, .marque tfoot tr + tr td {
  border-top: 1px solid var(--regle);
  padding-top: .5rem;
  font-weight: 600;
}
.marque tfoot tr + tr .score { font-size: .95rem; color: var(--encre-pale); }
.marque tfoot tr + tr .score--minus { color: rgba(196, 54, 43, .75); }

/* The taker's column is marked on the row, not with a legend. */
.preneur { font-weight: 700; }
.preneur::after {
  content: "•";
  color: var(--or);
  margin-left: .25rem;
  font-size: 1.05rem;
  line-height: 0;
  vertical-align: middle;
}

/* Bouts as gold pips. */
.bouts { display: inline-flex; gap: 2px; vertical-align: middle; }
.bout {
  width: 6px; height: 6px;
  border-radius: 50%;
  border: 1px solid var(--or);
  display: inline-block;
}
.bout--held { background: var(--or); }

/* ============================================================ cards & lists */

.stack { display: grid; gap: .8rem; }

.card {
  display: block;
  background: var(--carte);
  border-radius: var(--rayon);
  padding: 1.05rem 1.2rem;
  text-decoration: none;
  color: var(--encre);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
  border-left: 3px solid transparent;
  transition: border-color .14s ease, transform .14s ease;
}
a.card:hover { border-left-color: var(--or); transform: translateX(2px); }
.card__head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.card__title { font: 600 1.06rem/1.3 var(--serif); margin: 0; }
.card__meta { font-size: .84rem; color: var(--encre-pale); margin: .25rem 0 0; }

/* Compact standing: name + score pairs. */
.standing { display: flex; flex-wrap: wrap; gap: .1rem .9rem; margin: .7rem 0 0; padding: 0; list-style: none; }
.standing li { font-size: .9rem; display: inline-flex; gap: .35rem; align-items: baseline; }
.standing .score { font-family: var(--chiffres); font-weight: 600; font-size: .88rem; }
.standing li:first-child { font-weight: 600; }

.rows { list-style: none; margin: 0; padding: 0; }
.rows li {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding: .8rem 0;
  border-bottom: 1px solid var(--regle);
}
.rows li:last-child { border-bottom: 0; }
.rows__main { min-width: 0; }
.rows__name { font-weight: 600; }
.rows__sub { font-size: .84rem; color: var(--encre-pale); margin-top: .15rem; }

.tag {
  display: inline-block;
  font: 600 .68rem/1 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .45rem;
  border-radius: 2px;
  background: var(--carte-ombre);
  color: var(--encre-pale);
  vertical-align: middle;
}
.tag--live { background: var(--feutre); color: var(--carte); }
.tag--read { background: rgba(42, 92, 138, .12); color: var(--bleu); }

/* Figures on the felt, e.g. the dashboard counts. */
.figures { display: flex; flex-wrap: wrap; gap: 1.6rem; margin: 0 0 1.3rem; padding: 0; list-style: none; }
.figures div { min-width: 4.5rem; }
.figures dt { font: 600 .72rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: rgba(247, 243, 232, .5); }
.figures dd { margin: .3rem 0 0; font: 600 1.5rem/1 var(--chiffres); color: var(--carte); }

/* Empty states invite an action rather than apologise. */
.empty { text-align: center; padding: 2.2rem 1rem; }
.empty h2 { margin-bottom: .4rem; }
.empty p { color: var(--encre-pale); max-width: 28rem; margin: 0 auto 1.1rem; }

/* ============================================================ live preview */

.apercu { margin-top: 1.1rem; }
.apercu__line {
  font-size: .88rem;
  color: var(--encre-pale);
  margin: 0 0 .6rem;
  font-variant-numeric: tabular-nums;
}
.apercu__scores { display: flex; flex-wrap: wrap; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.apercu__scores li {
  border: 1px solid var(--regle);
  border-radius: var(--rayon);
  padding: .45rem .7rem;
  min-width: 4.6rem;
  background: #FFFDF7;
}
.apercu__scores span { display: block; font-size: .78rem; color: var(--encre-pale); }
.apercu__scores strong { font: 700 1.05rem/1.2 var(--chiffres); }
.apercu__scores .score--minus { color: var(--rouge); }

/* ============================================================ share notice */

.share {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1rem;
  background: var(--carte-ombre);
  border-radius: var(--rayon);
  margin-top: 1rem;
}
.share code {
  font: .84rem/1.4 var(--chiffres);
  word-break: break-all;
  background: #FFFDF7;
  border: 1px solid var(--regle);
  border-radius: 2px;
  padding: .35rem .5rem;
}
.copied { font-size: .84rem; color: #2F7A57; font-weight: 600; }

/* ============================================================ landing */

.hero { padding: clamp(1.5rem, 6vw, 3.5rem) 0 2rem; }
.hero h1 { color: var(--carte); font-size: clamp(1.9rem, 6vw, 3.1rem); max-width: 24ch; }
.hero p { color: rgba(247, 243, 232, .74); font-size: 1.09rem; max-width: 42ch; margin: .9rem 0 1.6rem; }
.hero .btn { padding: .9rem 1.4rem; }

.features { display: grid; gap: 1rem; margin-top: 2.2rem; }
@media (min-width: 46rem) { .features { grid-template-columns: repeat(3, 1fr); } }
.features h3 { margin-bottom: .3rem; }
.features p { margin: 0; font-size: .92rem; color: var(--encre-pale); }

/* ============================================================ login */

.narrow { max-width: 27rem; margin: 0 auto; }
.code-input {
  font-size: 1.7rem;
  letter-spacing: .3em;
  text-align: center;
  padding: .8rem .5rem;
}
.steps { list-style: none; margin: 1.2rem 0 0; padding: 0; font-size: .9rem; color: var(--encre-pale); }
.steps li { padding-left: 1.4rem; position: relative; margin-bottom: .45rem; }
.steps li::before {
  content: "";
  position: absolute;
  left: .35rem; top: .5rem;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--or);
}

/* ============================================================ tables of players */

.roster { display: grid; gap: .6rem; }
@media (min-width: 40rem) { .roster { grid-template-columns: 1fr 1fr; } }

details.editor { border-top: 1px solid var(--regle); padding-top: .8rem; margin-top: .8rem; }
details.editor summary { cursor: pointer; font-size: .9rem; font-weight: 600; }
details.editor[open] summary { margin-bottom: .9rem; }

.seat-list { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.seat-list li {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border: 1px solid var(--regle);
  border-radius: 100px;
  padding: .35rem .75rem;
  font-size: .88rem;
  background: #FFFDF7;
}
.seat-list .seat-num { font: 600 .74rem/1 var(--chiffres); color: var(--encre-pale); }

/* ============================================================ card counter */

.compteur { margin-top: .9rem; }
.compteur__switches { display: grid; gap: 1rem; margin-bottom: 1.2rem; }
@media (min-width: 40rem) { .compteur__switches { grid-template-columns: 1fr 1fr; } }

.tallies { display: grid; gap: .7rem; }
@media (min-width: 34rem) { .tallies { grid-template-columns: 1fr 1fr; } }
@media (min-width: 56rem) { .tallies { grid-template-columns: repeat(3, 1fr); } }

.tally {
  border: 1px solid var(--regle);
  border-radius: var(--rayon);
  padding: .6rem .7rem;
  background: #FFFDF7;
}
.tally > label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem;
  font: 600 .86rem/1.3 var(--sans);
  margin-bottom: .45rem;
}
/* The card's worth, set in the numeral face so it reads as data. */
.tally__value {
  font: 600 .8rem/1 var(--chiffres);
  color: var(--or);
  background: rgba(192, 151, 31, .12);
  border-radius: 2px;
  padding: .2rem .35rem;
}
.tally__note { display: block; font-size: .74rem; color: var(--encre-pale); margin-top: .4rem; }

.tally__control { display: flex; align-items: stretch; gap: .35rem; }
.tally__control input {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  font-family: var(--chiffres);
  font-weight: 600;
  padding: .5rem .3rem;
}
.tally__btn {
  flex: 0 0 auto;
  width: 2.4rem;
  font: 600 1.1rem/1 var(--sans);
  color: var(--encre);
  background: var(--carte-ombre);
  border: 1px solid var(--regle);
  border-radius: var(--rayon);
  cursor: pointer;
}
.tally__btn:hover { background: var(--regle); }

.compteur__out {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 3px double var(--encre);
}
.compteur__total {
  margin: 0 0 .35rem;
  font-size: 1.02rem;
  font-variant-numeric: tabular-nums;
}
.compteur__total strong { font: 700 1.35rem/1 var(--chiffres); }
.compteur__detail {
  margin: 0 0 .6rem;
  font-size: .88rem;
  color: var(--encre-pale);
  font-variant-numeric: tabular-nums;
}
.compteur__warn {
  margin: 0 0 .7rem;
  padding: .6rem .75rem;
  border-left: 3px solid var(--rouge);
  background: rgba(196, 54, 43, .07);
  font-size: .88rem;
}
.compteur__warn[data-severity="conseil"] {
  border-left-color: var(--bleu);
  background: rgba(42, 92, 138, .07);
}
.compteur__note {
  margin: 0 0 .8rem;
  font-size: .84rem;
  color: var(--encre-pale);
}

.ml { margin-left: .45rem; }

/* ============================================================ avatars */

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  background: var(--carte-ombre);
  vertical-align: middle;
}
.avatar--petit { width: 2rem; height: 2rem; font-size: .82rem; }
.avatar--grand { width: 8rem; height: 8rem; font-size: 2.6rem; }

/* Initials badge, shown when there is no photo. The colour comes from the
   identifier, so a given person always lands on the same one. */
.avatar--ini {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--carte);
  letter-spacing: .01em;
}
.avatar--t0 { background: #1B3A32; }
.avatar--t1 { background: #2A5C8A; }
.avatar--t2 { background: #8A3A2A; }
.avatar--t3 { background: #4A5D23; }
.avatar--t4 { background: #6B4A7A; }
.avatar--t5 { background: #2F6E62; }
.avatar--t6 { background: #A06A1F; }
.avatar--t7 { background: #4A4E6B; }

/* Faces sit above the name in the score sheet's column headings. */
.marque__joueur {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .3rem;
}
.marque thead .avatar--petit { width: 1.7rem; height: 1.7rem; font-size: .72rem; }

.rows li > .avatar { margin-right: .2rem; }

.photo-edit { display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: flex-start; }
.photo-edit__now { flex: 0 0 auto; }
.photo-edit__form { flex: 1 1 18rem; min-width: 0; }
.photo-edit input[type="file"] {
  width: 100%;
  font: 400 .92rem/1.4 var(--sans);
  padding: .6rem;
  background: #FFFDF7;
  border: 1px solid var(--regle);
  border-radius: var(--rayon);
}
.photo-edit code {
  font: .86em var(--chiffres);
  background: var(--carte-ombre);
  padding: .1rem .3rem;
  border-radius: 2px;
}

/* Section headings on the felt, between sheets. */
.section-title {
  color: var(--carte);
  font-size: 1.24rem;
  margin: 0 0 .3rem;
}
.section-note {
  color: rgba(247, 243, 232, .66);
  font-size: .9rem;
  margin: 0 0 1rem;
  max-width: 46rem;
}
.page-head__lieu {
  color: var(--or);
  font: 600 .95rem/1.3 var(--sans);
  margin: .35rem 0 0;
}

@media print {
  body { background: #fff; }
  .chrome, .foot, .actions, .flash, .share { display: none; }
  .sheet { box-shadow: none; padding: 0; }
}
