/* sijil. — app stylesheet
   Paper + ink + official green. No gradients, no glass, one soft shadow. */

@font-face { font-family: 'Fraunces'; src: url('/static/fonts/fraunces-var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('/static/fonts/manrope-var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --paper: #FBFAF7;
  --card: #FFFFFF;
  --ink: #14161A;
  --muted: #5C6066;
  --faint: #9AA0A6;
  --line: #E6E2D9;
  --green: #1F5E4B;
  --green-dark: #17493A;
  --green-soft: #F2F6F3;
  --gold: #C8A24A;
  --danger: #A6392F;
  --radius: 8px;
  --max: 1140px;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

main { flex: 1; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; line-height: 1.15; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
::selection { background: #DCE8E1; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }
.container-narrow { max-width: 820px; }
.page { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 7vw, 5rem); }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(251, 250, 247, 0.96); border-bottom: 1px solid var(--line); backdrop-filter: none; }
.topbar-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 64px; }
.wordmark { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.wordmark-sm { font-size: 1.15rem; }
.topnav { display: flex; align-items: center; gap: 1.25rem; margin-inline: auto; }
.nav-link { color: var(--muted); text-decoration: none; font-size: 0.94rem; font-weight: 500; display: inline-flex; align-items: center; min-height: 44px; }
.nav-link:hover { color: var(--ink); }
.topbar-actions { display: flex; align-items: center; gap: 0.9rem; }
.who { font-size: 0.88rem; color: var(--muted); max-width: 18ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  min-height: 46px; padding: 0.7rem 1.25rem;
  font-family: var(--sans); font-size: 0.94rem; font-weight: 600; line-height: 1.2;
  border: 1px solid transparent; border-radius: var(--radius); cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-sm { min-height: 40px; padding: 0.45rem 0.85rem; font-size: 0.86rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn-secondary { background: transparent; border-color: #CFC9BC; color: var(--ink); }
.btn-secondary:hover { background: #F3F0E8; border-color: #BDB6A6; color: var(--ink); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--ink); background: #F3F0E8; }
.btn-danger { background: transparent; border-color: #E2C4BF; color: var(--danger); }
.btn-danger:hover { background: #FBEDEB; }
.inline-form { display: inline; }

/* ---------- flash ---------- */
.flash { margin-top: 1rem; padding: 0.8rem 1rem; border-radius: var(--radius); font-size: 0.92rem; border: 1px solid transparent; }
.flash-ok { background: var(--green-soft); border-color: #CFE0D6; color: #17493A; }
.flash-err { background: #FBEDEB; border-color: #EBD3CF; color: #7E2C24; }
.flash-warn { background: #FBF6E9; border-color: #EADFC0; color: #6F5620; }
.flash a { font-weight: 600; }

/* ---------- landing ---------- */
.hero { padding-block: clamp(2.5rem, 7vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.eyebrow { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.hero-title { font-size: clamp(2.4rem, 5.2vw, 4rem); margin-top: 1rem; }
.hero-sub { color: var(--muted); font-size: 1.06rem; margin-top: 1.2rem; max-width: 46ch; }
.hero-ctas { display: flex; gap: 0.75rem; margin-top: 1.8rem; flex-wrap: wrap; }
.trust-line { color: var(--faint); font-size: 0.86rem; margin-top: 1rem; }
.hero-preview { display: flex; justify-content: center; }
.mini-cert {
  width: 100%; max-width: 430px; background: #fff; border: 1px solid var(--line);
  padding: 1.8rem 1.6rem; box-shadow: 0 20px 42px -18px rgba(20,22,26,.16);
  transform: rotate(-1.2deg); font-size: 0.8rem;
}
.mini-school { font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--green); font-weight: 600; text-align: center; }
.mini-rule { width: 40px; height: 2px; background: var(--gold); margin: 0.7rem auto; }
.mini-label { font-family: var(--serif); font-size: 1.3rem; text-align: center; color: var(--green); }
.mini-prefix { text-align: center; color: var(--muted); font-size: 0.7rem; margin-top: 0.5rem; }
.mini-name { font-family: var(--serif); font-size: 1.55rem; text-align: center; margin-top: 0.4rem; padding-bottom: 0.3rem; border-bottom: 1px solid var(--line); }
.mini-body { text-align: center; color: var(--muted); font-size: 0.7rem; margin-top: 0.7rem; line-height: 1.5; }
.mini-foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 1.4rem; font-size: 0.6rem; color: var(--faint); letter-spacing: 0.08em; text-transform: uppercase; }
.mini-seal { border: 1px solid var(--gold); color: var(--gold); border-radius: 50%; width: 44px; height: 44px; display: grid; place-items: center; font-size: 0.5rem; }

.band { padding-block: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--line); }
.section-title { font-size: 1.5rem; margin-block: 2rem 1rem; }
.section-title-lg { font-size: clamp(1.6rem, 2.8vw, 2.3rem); max-width: 28ch; margin-top: 0.8rem; }
.jobs { margin-top: 2.2rem; border-top: 1px solid var(--line); }
.job { display: grid; grid-template-columns: 60px 1fr; gap: 1.5rem; padding-block: 1.5rem; border-bottom: 1px solid var(--line); align-items: start; }
.job-num { font-size: 0.8rem; font-weight: 600; color: var(--green); letter-spacing: 0.08em; }
.job h3 { font-size: 1.25rem; }
.job p { color: var(--muted); margin-top: 0.35rem; max-width: 60ch; }
.closing { padding-block: clamp(2.5rem, 6vw, 4rem); background: var(--green-soft); border-top: 1px solid var(--line); }
.closing-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }

/* ---------- auth ---------- */
.auth-shell { display: grid; place-items: center; padding: clamp(2rem, 6vw, 4rem) 1rem; }
.auth-card { width: 100%; max-width: 440px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.auth-title { font-size: 1.9rem; }
.auth-sub { color: var(--muted); margin-top: 0.35rem; font-size: 0.95rem; }
.auth-foot { color: var(--muted); font-size: 0.88rem; margin-top: 1.2rem; }

/* ---------- forms ---------- */
.stack { display: flex; flex-direction: column; gap: 1.1rem; }
.stack-sm { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; border: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field-label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; color: var(--muted); text-transform: uppercase; }
.field-hint { font-size: 0.8rem; color: var(--faint); text-transform: none; letter-spacing: 0; font-weight: 400; }
input[type="text"], input[type="email"], input[type="password"], input[type="date"], select, textarea {
  width: 100%; min-height: 46px; padding: 0.65rem 0.8rem;
  font-family: var(--sans); font-size: 0.95rem; color: var(--ink);
  background: #fff; border: 1px solid #DCD7CB; border-radius: var(--radius);
}
textarea { min-height: 180px; resize: vertical; line-height: 1.55; font-size: 0.92rem; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
input:disabled { background: #F4F2EC; color: var(--muted); }
input[type="file"] { font-size: 0.85rem; padding: 0.5rem 0; border: 0; background: transparent; }
.form-actions { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.card-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 2rem); }
.rule { border: 0; border-top: 1px solid var(--line); margin-block: 0.4rem; }

.template-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.65rem; }
.template-option { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.9rem; border: 1px solid #DCD7CB; border-radius: var(--radius); cursor: pointer; background: #fff; }
.template-option input { position: absolute; opacity: 0; pointer-events: none; }
.template-option:has(input:checked) { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.template-option:has(input:focus-visible) { outline: 2px solid var(--green); outline-offset: 2px; }
.template-name { font-family: var(--serif); font-size: 1.05rem; }
.template-desc { font-size: 0.78rem; color: var(--muted); line-height: 1.4; }

/* ---------- page head ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.page-title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-top: 0.5rem; }
.page-sub { color: var(--muted); font-size: 0.92rem; margin-top: 0.5rem; }
.head-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* ---------- dashboard ---------- */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2.2rem; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.2rem; }
.stat-label { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); font-weight: 600; }
.stat-value { font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; }
.stat-note { font-size: 0.82rem; color: var(--muted); }
.notice { background: #FBF6E9; border: 1px solid #EADFC0; color: #6F5620; border-radius: var(--radius); padding: 0.75rem 1rem; font-size: 0.9rem; margin-bottom: 1.4rem; }
.quota-bar { background: var(--green-soft); border: 1px solid #D7E5DB; border-radius: var(--radius); padding: 0.7rem 1rem; font-size: 0.88rem; color: #17493A; margin-bottom: 1.4rem; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th { text-align: left; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); font-weight: 600; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 0.75rem 1rem; border-bottom: 1px solid #F1EEE5; vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #FCFBF7; }
.row-actions { display: flex; gap: 0.7rem; align-items: center; }
.link-strong { font-weight: 600; text-decoration: none; }
.link-strong:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.small { font-size: 0.8rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.82rem; letter-spacing: 0.02em; }
.empty { border: 1px dashed #D9D3C4; border-radius: var(--radius); padding: 2.5rem 1.5rem; text-align: center; color: var(--muted); display: flex; flex-direction: column; gap: 1rem; align-items: center; }

/* ---------- preview ---------- */
.preview-block { margin-bottom: 2.4rem; }
.preview-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.template-switch { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.chip { font-size: 0.82rem; padding: 0.35rem 0.75rem; border: 1px solid #DCD7CB; border-radius: 999px; text-decoration: none; color: var(--muted); background: transparent; font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; }
.chip:hover { color: var(--ink); border-color: #BDB6A6; }
.chip:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.chip-active { border-color: var(--green); color: var(--green); font-weight: 600; }
.template-error { display: none; margin: 0.5rem 0; padding: 0.5rem 0.75rem; font-size: 0.85rem; color: var(--danger); background: #FBEDEB; border: 1px solid #EBD3CF; border-radius: var(--radius); }
.preview-frame { width: 100%; aspect-ratio: 297 / 210; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-top: 0.8rem; }

/* ---------- billing ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-block: 1.6rem 2.4rem; align-items: stretch; }
.plan-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; display: flex; flex-direction: column; gap: 0.4rem; }
.plan-card-current { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.plan-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.plan-name { font-size: 1.3rem; }
.plan-badge { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--green); font-weight: 600; }
.plan-price { font-family: var(--serif); font-size: 1.6rem; }
.plan-desc { font-size: 0.85rem; color: var(--muted); min-height: 3.2em; }
.plan-list { list-style: none; font-size: 0.86rem; color: var(--muted); display: flex; flex-direction: column; gap: 0.4rem; margin-block: 0.6rem; }
.plan-list li::before { content: "— "; color: var(--green); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 2rem; }
.steps { margin: 0.8rem 0 1.2rem 1.1rem; font-size: 0.9rem; color: var(--muted); display: flex; flex-direction: column; gap: 0.5rem; }
.kv { display: flex; flex-direction: column; gap: 0.45rem; font-size: 0.9rem; }
.kv div { display: flex; gap: 1rem; justify-content: space-between; border-bottom: 1px dashed #EDE9DE; padding-bottom: 0.45rem; }
.kv dt { color: var(--muted); }
.kv dd { font-weight: 600; text-align: right; }
.status { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; padding: 0.2rem 0.5rem; border-radius: 4px; }
.status-pending { background: #FBF6E9; color: #6F5620; }
.status-approved { background: var(--green-soft); color: var(--green); }
.status-rejected { background: #FBEDEB; color: var(--danger); }
.danger-zone { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border: 1px solid #EBD3CF; background: #FDF9F8; border-radius: var(--radius); padding: 1rem 1.2rem; margin-top: 2.5rem; flex-wrap: wrap; }
.danger-title { font-weight: 600; color: var(--danger); }

/* ---------- verify ---------- */
.verify-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); margin-top: 1rem; }
.verify-ok { border-top: 3px solid var(--green); }
.verify-missing { border-top: 3px solid var(--gold); }
.verify-status { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-weight: 600; }
.verify-name { font-size: clamp(1.6rem, 3.6vw, 2.2rem); margin-block: 0.6rem 1.2rem; }
.verify-detail { color: var(--muted); margin-bottom: 1rem; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 1.4rem; background: var(--paper); }
.footer-inner { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.footer-note { font-size: 0.82rem; color: var(--faint); }
.footer-links { display: flex; gap: 1rem; margin-left: auto; font-size: 0.85rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

/* ---------- signature scanner & dialog ---------- */
.sig-scanner-panel { display: flex; flex-direction: column; gap: 0.5rem; }
.sig-file-real { display: block; }
.sig-scanner-panel.is-enhanced .sig-file-real {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; white-space: nowrap;
}
.sig-actions { display: none; }
.sig-scanner-panel.is-enhanced .sig-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
.sig-btn { position: relative; overflow: hidden; cursor: pointer; }
.sig-hidden-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.sig-status-badge {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0.75rem;
  background: var(--green-soft); border: 1px solid #D7E5DB; border-radius: var(--radius);
  font-size: 0.85rem; color: var(--ink); margin-top: 0.25rem;
}
.sig-thumbnail {
  width: 44px; height: 44px; object-fit: contain; background: #fff;
  border: 1px solid var(--line); border-radius: 4px; padding: 2px;
}
.sig-status-text { font-weight: 500; flex: 1; }
.sig-remove-btn {
  background: none; border: none; font-size: 1.25rem; line-height: 1;
  color: var(--muted); cursor: pointer; padding: 0 4px; border-radius: 4px;
}
.sig-remove-btn:hover { color: var(--danger); }

/* Scan Dialog */
dialog.sig-dialog {
  margin: auto; padding: 0; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); color: var(--ink); max-width: 560px; width: 92vw;
  box-shadow: 0 16px 36px -12px rgba(20, 22, 26, 0.2);
}
dialog.sig-dialog::backdrop { background: rgba(20, 22, 26, 0.45); }
dialog.sig-dialog:not([open]).sig-dialog-open {
  display: block; position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%); z-index: 100;
}
.sig-dialog-card { padding: 1.5rem; display: flex; flex-direction: column; gap: 1.2rem; }
.sig-dialog-header { display: flex; flex-direction: column; gap: 0.35rem; }
.sig-dialog-title { font-size: 1.35rem; font-family: var(--serif); }
.sig-dialog-subtitle { font-size: 0.84rem; color: var(--muted); line-height: 1.4; }
.sig-preview-box {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #F4F2EC; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem; min-height: 200px; position: relative;
}
.sig-preview-header {
  width: 100%; display: flex; justify-content: flex-start; align-items: center;
  margin-bottom: 0.5rem;
}
.sig-preview-label {
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--muted);
}
.sig-preview-canvas {
  max-width: 520px; width: 100%; max-height: 260px; height: auto;
  object-fit: contain; image-rendering: auto; border-radius: 4px;
  background-color: #ffffff;
  background-image:
    linear-gradient(45deg, #efede8 25%, transparent 25%),
    linear-gradient(-45deg, #efede8 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #efede8 75%),
    linear-gradient(-45deg, transparent 75%, #efede8 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
  border: 1px solid var(--line);
}
.sig-error-msg {
  background: #FBEDEB; border: 1px solid #EBD3CF; color: #7E2C24;
  padding: 0.6rem 0.9rem; border-radius: var(--radius); font-size: 0.86rem;
  width: 100%; margin-top: 0.75rem; text-align: center;
}
.sig-controls { display: flex; flex-direction: column; gap: 0.85rem; }
.sig-control-group { display: flex; flex-direction: column; gap: 0.25rem; }
.sig-control-label { display: flex; justify-content: space-between; font-size: 0.84rem; font-weight: 600; color: var(--muted); }
.sig-val-label { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.sig-controls input[type="range"] { accent-color: var(--green); cursor: pointer; width: 100%; }
.sig-checkbox-group { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-top: 0.25rem; }
.sig-checkbox-label { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.88rem; color: var(--ink); cursor: pointer; }
.sig-checkbox-label input[type="checkbox"] { accent-color: var(--green); cursor: pointer; }
.sig-dialog-actions { display: flex; gap: 0.75rem; justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 1rem; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-preview { order: 2; }
  .stat-row { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .template-picker { grid-template-columns: 1fr; }
  .topnav { display: none; }
  .who { display: none; }
}

@media (max-width: 620px) {
  .field-row { grid-template-columns: 1fr; }
  .page-head { align-items: flex-start; }
  .head-actions { width: 100%; }
  .head-actions .btn { flex: 1; }
  .job { grid-template-columns: 40px 1fr; gap: 0.9rem; }
  .closing-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  .topbar, .site-footer, .flash, .head-actions { display: none; }
}
