/* The Done page. Its own stylesheet rather than more of style.css, because that file is the review
   tool's and this page is a different job with a different shape: two cards side by side and one
   decision, rather than one card and a pile of controls. */

.donepage main { max-width: 1240px; margin: 0 auto; padding: 22px 22px 90px; }

.donehead { background: var(--navy, #16263D); color: #F2EFE8; padding: 40px 22px 34px;
            border-bottom: 4px solid var(--gold, #C29B4E); }
.donehead .in { max-width: 1240px; margin: 0 auto; }
.donehead .eyebrow { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .24em;
                     text-transform: uppercase; color: var(--gold, #C29B4E); }
.donehead h1 { margin: 0; font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -.03em; }
.donehead .sub { margin: 12px 0 0; max-width: 62ch; color: #CFD6DF; font-size: 16px; }

.bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 16px 0 18px; }
.bar .lbl { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
            color: var(--soft); }
.bar .grow { flex: 1; }
.bar .f { border: 1px solid var(--line); background: var(--card); color: var(--ink);
          border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 13px; font-weight: 700;
          cursor: pointer; }
.bar .f[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.bar .count, .bar .me { font-size: 13px; color: var(--soft); }

.empty { padding: 40px 0; color: var(--soft); font-size: 16px; }

.tpl { border: 1px solid var(--line); border-radius: 12px; background: var(--card);
       margin: 0 0 26px; overflow: hidden; }
.tplhead { display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
           padding: 12px 16px; border-bottom: 1px solid var(--line); }
.tplhead b { font-size: 16px; }
.tplhead code, .what code { font-family: ui-monospace, Consolas, monospace; font-size: 12px;
                            color: var(--soft); }
.tplhead .by { font-size: 13px; color: var(--soft); }
/* Sits with the name and the reviewer, not with the verdict: it is a fact about the row. */
.tplhead .when { font-size: 13px; color: var(--soft); font-variant-numeric: tabular-nums; }
.tplhead .grow { flex: 1; }
.tplhead .tally { font-size: 13px; color: var(--soft); }
.tplhead .state { font-size: 11.5px; font-weight: 800; text-transform: uppercase;
                  letter-spacing: .1em; padding: 4px 10px; border-radius: 999px;
                  background: var(--paper); color: var(--soft); }
.tplhead .state.done { background: #FDF0D8; color: #8A6A2C; }
.tplhead .state.changes { background: #FBE3E1; color: #8E241C; }
.tplhead .state.approved { background: #DFF3E6; color: #1F7A4D; }

/* Side by side is the whole point: a nudge of a few pixels is real and almost invisible on its own,
   and only shows when the two are level with each other. */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 16px; }
.pair figure { margin: 0; }
.pair figcaption { font-size: 11.5px; font-weight: 800; letter-spacing: .12em;
                   text-transform: uppercase; color: var(--soft); margin: 0 0 8px; }
.pair figure { position: relative; }
.pair iframe.shot { border: 1px solid var(--line); border-radius: 8px; background: #fff;
                    display: block; }

.what { padding: 0 16px 14px; }
.what ul { margin: 0; padding-left: 18px; }
.what li { font-size: 14px; line-height: 1.6; color: var(--body); }
.what .none { margin: 0; font-size: 14px; color: var(--soft); }

.answer { border-top: 1px solid var(--line); padding: 14px 16px; display: flex;
          gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.answer label { flex: 1; min-width: 280px; font-size: 13px; font-weight: 700; color: var(--soft); }
.answer textarea { display: block; width: 100%; margin-top: 6px; padding: 8px 10px;
                   border: 1px solid var(--line); border-radius: 8px; background: var(--paper);
                   color: var(--ink); font: inherit; font-size: 14px; font-weight: 400;
                   resize: vertical; box-sizing: border-box; }
.answer .acts { display: flex; gap: 8px; }
.answer button { border: 1px solid var(--line); background: var(--card); color: var(--ink);
                 border-radius: 8px; padding: 9px 16px; font: inherit; font-size: 14px;
                 font-weight: 700; cursor: pointer; }
.answer .ok { background: #1F7A4D; border-color: #1F7A4D; color: #fff; }
.answer .ok:hover { filter: brightness(1.1); }
.answer button[disabled] { opacity: .5; cursor: default; }
.answer .stamp { width: 100%; margin: 6px 0 0; font-size: 13px; color: #1F7A4D; font-weight: 700; }

.who { padding: 30px 0; }
.who .whos { display: flex; gap: 8px; margin-top: 10px; }
.who button { border: 1px solid var(--line); background: var(--card); color: var(--ink);
              border-radius: 8px; padding: 9px 20px; font: inherit; font-weight: 700; cursor: pointer; }

@media (max-width: 900px) { .pair { grid-template-columns: 1fr; } }


/* One card, switched, rather than two side by side. A forty-pixel move is nearly invisible between
   two cards several inches apart and obvious when the same frame changes under you. */
.oneup { padding: 16px; }
.ba { display: flex; gap: 8px; align-items: center; margin: 0 0 12px; }
.ba .mode { border: 1px solid var(--line); background: var(--card); color: var(--ink);
            border-radius: 999px; padding: 7px 18px; font: inherit; font-size: 13px;
            font-weight: 700; cursor: pointer; }
.ba .mode.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ba .hint { font-size: 12.5px; color: var(--soft); }
.oneup figure { margin: 0; position: relative; }
.oneup iframe.shot { border: 1px solid var(--line); border-radius: 8px; background: #fff;
                     display: block; }


/* Brett's question, at the top of a card he could not decide. Loud on purpose: it is the reason the
   card is on this page at all, and Dave should read it before looking at anything else. */
.asked { margin: 0 16px 12px; padding: 10px 14px; border-radius: 8px;
         background: #FDF0D8; border: 1px solid var(--gold, #C29B4E); color: #5C441A;
         font-size: 14px; line-height: 1.5; }
.tplhead .state.ask { background: #FDF0D8; color: #8A6A2C; }
