/* The Pilot Log — pages for people outside the app: an organisation stamping a pilot's pages
   (/stamp/…) and the check of a stamp (/verify). Builds on base.css and site.css. */

body.plain { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; background: var(--bg-2); }
body.plain main { flex: 1; }
.plain-footer { padding: 18px 0 calc(18px + var(--safe-bottom)); font-size: .85rem; color: var(--ink-3); border-top: 1px solid var(--line); background: var(--bg); }
.plain-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }
.plain-footer a { color: inherit; }

.certify { padding-top: 28px; padding-bottom: 48px; }
.cert-head { margin-bottom: 22px; }
.cert-head h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); margin: 4px 0 10px; }
.cert-head .lead { font-size: 1.05rem; color: var(--ink-2); max-width: 46em; margin: 0 0 12px; }
.cert-steps { margin: 0 0 10px; padding-left: 1.3em; color: var(--ink-2); }
.cert-steps li { margin-bottom: 4px; }

/* A logbook page, read-only */
.cert-page { background: var(--paper); border: 1px solid var(--paper-rule-soft); border-radius: 14px; padding: 12px; margin-bottom: 18px; }
.cert-page-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 10px; }
.cert-page-head h2 { font-size: 1.15rem; margin: 0; }
.cert-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--paper-rule); }
.cert-scroll:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.cert-table { border-collapse: collapse; font-size: .78rem; color: var(--paper-ink); font-variant-numeric: tabular-nums; min-width: 1500px; width: 100%; }
.cert-table th, .cert-table td { border: 1px solid var(--paper-rule-soft); padding: 4px 6px; text-align: center; white-space: nowrap; }
.cert-table thead th { background: var(--paper-head); font-size: .66rem; text-transform: uppercase; letter-spacing: .03em; }
.cert-table tbody tr:nth-child(even) td { background: var(--paper-alt); }
.cert-table td.l { text-align: left; }
.cert-table td.rm { white-space: normal; min-width: 220px; }
.cert-ls { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; color: var(--ink-3); font-size: .72rem; }
.cert-table tfoot td { font-weight: 700; }
.cert-table tfoot tr.t-page td, .cert-table tfoot tr.t-prev td { background: var(--paper-total); }
.cert-table tfoot tr.t-all td { background: var(--paper-grand); }
.cert-hash { margin: 8px 0 0; font-size: .75rem; color: var(--ink-3); overflow-wrap: anywhere; }

/* Sign and stamp */
.cert-form { margin-top: 26px; }
.cert-form h2 { display: flex; align-items: center; gap: 8px; }
.cert-pages { border: 0; padding: 0; margin: 0 0 16px; }
.cert-pages legend { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.cert-page-list { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.cert-page-list .check { margin-bottom: 6px; }
.cert-done { margin-top: 26px; text-align: center; }
.cert-done-icon .i { width: 44px; height: 44px; color: var(--ok); }
.cert-done .mono { font-size: 1.15rem; letter-spacing: .06em; }

/* /verify */
.verify-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.verify-form .field { flex: 1 1 240px; margin: 0; }
.verify-card { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-bottom: 18px; }
.verify-imgs { flex: none; padding: 8px 12px; }
.verify-imgs .st-stamp { height: 110px; max-width: 200px; }
.verify-imgs .st-sig { height: 60px; max-width: 180px; }
.verify-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 0; flex: 1 1 280px; }
.verify-list dt { color: var(--ink-3); font-size: .88rem; }
.verify-list dd { margin: 0; overflow-wrap: anywhere; }
.verify-h2 { font-size: 1.1rem; margin-top: 0; }
.verify-hash { font-size: .78rem; overflow-wrap: anywhere; }
