@font-face {
  font-family: "Tinos";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/tinos-400-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Tinos";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/tinos-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Tinos";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/tinos-700-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Tinos";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/tinos-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Tinos";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/tinos-400i-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Tinos";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/tinos-400i.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Tinos";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/tinos-700i-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Tinos";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/tinos-700i.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Arimo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/arimo-400-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Arimo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/arimo-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Arimo";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/arimo-700-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Arimo";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/arimo-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Yellowtail";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/yellowtail-400-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Yellowtail";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/yellowtail-400-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Yellowtail";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/yellowtail-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Yellowtail";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/yellowtail-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #0c2340;
  --navy-2: #16325c;
  --blue: #1f4e9b;
  --gold: #b8893a;
  --gold-soft: #f3d48a;
  --cream: #f4efe4;
  --paper: #fffdf8;
  --ink: #1a1814;
  --muted: #5c564c;
  --line: #e3d7c4;
  --danger: #9b2c2c;
  --serif: "Times New Roman", "Tinos", Times, serif;
  --script: "Brush Script MT", "Yellowtail", "Segoe Script", cursive;
  --sans: "Segoe UI", "Helvetica Neue", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(900px 280px at 100% -40px, rgba(184, 137, 58, .16), transparent 60%),
    var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}

img { max-width: 100%; }

.masthead {
  background: #fff;
  color: #000;
  padding: 8px 12px 6px;
  border-bottom: 1px solid #e4e0d8;
}

.brand {
  width: min(860px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 78px 1fr 62px;
  gap: 8px;
  align-items: center;
}

.brand-copy { min-width: 0; text-align: center; }

.hdr-seal,
.hdr-flag {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}

.kicker, .org, .sub, .motto { margin: 0; }

.masthead .kicker {
  font-family: "Times New Roman", "Tinos", Times, serif;
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: none;
  font-size: 12pt;
  line-height: 1.05;
  color: #000;
}

.masthead .org {
  font-family: "Times New Roman", "Tinos", Times, serif;
  font-size: 10pt;
  font-weight: 700;
  line-height: 1.05;
  color: #000;
}

.masthead em {
  font-family: "Brush Script MT", "Yellowtail", "Segoe Script", cursive;
  font-style: italic;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  color: #000;
  padding-left: .12rem;
}

.masthead .kicker em { font-size: 12pt; }

.masthead .org em { font-size: 10pt; }

.masthead .org-gap { font-size: 0; }

.sub {
  margin-top: 1px;
  font-family: "Times New Roman", "Tinos", Times, serif;
  font-size: 9pt;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #000;
  line-height: 1.15;
}

.motto {
  margin-top: 0;
  font-family: "Brush Script MT", "Yellowtail", "Segoe Script", cursive;
  font-style: italic;
  font-size: 12pt;
  color: #e10600;
  line-height: 1;
}

.jump {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 12px;
  background: rgba(244, 239, 228, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.jump a {
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.jump a:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

main {
  width: min(980px, calc(100% - 24px));
  margin: 16px auto 28px;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 16px;
  margin: 0 0 14px;
  box-shadow: 0 12px 30px rgba(12, 35, 64, .04);
  scroll-margin-top: 68px;
}

.panel-head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

.num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--gold-soft);
  font-size: .72rem;
  font-weight: 700;
  flex: 0 0 auto;
}

h2, h3 { font-family: var(--serif); color: var(--navy); }

.panel h2 { margin: 0; font-size: 1.4rem; }

.subhead {
  margin: 8px 0 10px;
  font-size: 1.05rem;
}

.lead, .hint, .meta { color: var(--muted); }

.lead { margin: 0 0 14px; }

.hint { margin: 6px 0 0; font-size: .85rem; }

.req { color: var(--danger); text-decoration: none; font-weight: 700; }

fieldset.plain {
  border: 0;
  margin: 0 0 14px;
  padding: 0;
}

legend {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #3d4a63;
  margin-bottom: 8px;
  padding: 0;
}

.field { min-width: 0; }

.field label,
.lbl {
  display: block;
  margin-bottom: 6px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #3d4a63;
}

input, select, textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d5cbb8;
  border-radius: 10px;
  padding: 12px;
  min-height: 48px;
}

textarea { min-height: 96px; resize: vertical; }

input[readonly] {
  background: #f6f1e6;
  color: var(--muted);
}

.type-grid, .status-grid, .grid-2, .grid-3, .grid-4, .addr, .edu, .name-grid, .child-grid, .spouse-row, .officer-pair, .officers {
  display: grid;
  gap: 12px;
}

.type-grid, .grid-2, .edu { grid-template-columns: 1fr 1fr; }
.status-grid, .grid-4, .name-grid { grid-template-columns: 1fr 1fr; }
.grid-3, .child-grid, .spouse-row { grid-template-columns: 1fr; }

.dob-age {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 12px;
  align-items: start;
}
.addr { grid-template-columns: 1fr; }
.officers, .officer-pair { grid-template-columns: 1fr; }

.type-card, .status-opt {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}

.type-card {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.type-text { display: flex; flex-direction: column; gap: 4px; }

.type-card input {
  position: static;
  opacity: 1;
  width: 1.25rem;
  height: 1.25rem;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: var(--navy);
  flex: 0 0 auto;
}

.status-opt input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
}

.card-title, .status-opt span { font-weight: 700; color: var(--navy); }
.card-copy { color: var(--muted); font-size: .9rem; }

.type-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
}

.type-inline label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--navy);
  cursor: pointer;
}

.type-inline input {
  width: 1.05rem;
  height: 1.05rem;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: var(--navy);
  flex: 0 0 auto;
}

.type-card:has(input:checked),
.status-opt:has(input:checked) {
  border-color: var(--navy);
  box-shadow: inset 0 0 0 2px var(--navy);
  background: #f3f6fb;
}

.identity {
  display: grid;
  gap: 16px;
  margin-bottom: 8px;
}

.photo-wrap { text-align: center; }

.photo-frame {
  width: 150px;
  height: 150px;
  margin: 0 auto;
  border: 1.5px dashed var(--gold);
  border-radius: 14px;
  background: #fbf7ef;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
  line-height: 1.3;
}

.photo-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.photo-choice {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  font-size: .85rem;
  border-radius: 12px;
}

.camera-dialog {
  width: min(420px, calc(100vw - 32px));
  border: 0;
  border-radius: 16px;
  padding: 16px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 18px 50px rgba(12, 35, 64, .28);
}

.camera-dialog::backdrop { background: rgba(12, 35, 64, .72); }

.camera-dialog h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 1.2rem;
}

.camera-dialog video {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  background: #111;
}

.camera-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.camera-actions button { flex: 1; }

.photo-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.photo-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-hint { display: block; margin-top: 8px; }

.narrow { max-width: 220px; }
.civil-status { max-width: 320px; }

.status-blood {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
  max-width: 520px;
}

.child-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.child-row {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  margin-top: 10px;
  background: #fff;
}

.child-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.child-num { font-weight: 700; color: var(--navy); }

.child-row .field label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin-bottom: 0;
}

.sign-box {
  background: #fff;
  border: 1px dashed var(--navy-2);
  border-radius: 14px;
  overflow: hidden;
}

#signature {
  display: block;
  width: 100%;
  height: 320px;
  touch-action: none;
  cursor: crosshair;
  background: #fff;
}

.sign-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.sign-confirm {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.sign-confirm[hidden] { display: none; }

.sign-confirm label {
  margin: 0;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--navy);
  white-space: nowrap;
}

.sign-confirm input {
  width: 88px;
  min-height: 32px;
  padding: 4px 8px;
}

.sign-confirm .ghost {
  width: auto;
  min-height: 32px;
  margin: 0;
  padding: 0 12px;
  font-size: .9rem;
}

.cert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.cert input {
  width: 1.25rem;
  height: 1.25rem;
  min-height: 0;
  margin-top: 3px;
  flex: 0 0 auto;
}

.officer {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 14px;
  padding: 14px;
}

.officer .kicker {
  margin: 0;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

.who { margin: 6px 0 2px; font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: 1.08rem; }
.role { margin: 0; color: var(--muted); }

.instruction {
  margin-top: 14px;
  padding: 12px 14px;
  background: #f8f1dc;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
}

.save-status {
  flex: 1;
  margin: 0;
  min-height: 1.2em;
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
}

.save-status[data-state="saved"] { color: #1e4d28; }
.save-status[data-state="error"] { color: var(--danger); }

.submit-bar {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
  background: rgba(244, 239, 228, .94);
  backdrop-filter: blur(8px);
}

.submit-bar .ghost,
.submit-bar .primary,
.submit-bar .link-btn {
  min-height: 32px;
  padding: 0 12px;
  font-size: .9rem;
}

.submit-side {
  display: flex;
  gap: 6px;
  align-items: center;
}

button, .link-btn {
  font: inherit;
  cursor: pointer;
  border-radius: 999px;
  min-height: 48px;
  padding: 12px 18px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.primary, .link-btn.primary {
  background: var(--navy);
  color: #fff;
  border: 0;
  font-weight: 700;
}

.primary:hover, .link-btn.primary:hover { background: var(--blue); }

.ghost {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
  font-weight: 700;
}

.linkish {
  background: none;
  border: 0;
  color: var(--blue);
  font: inherit;
  font-weight: 700;
  padding: 8px 0;
  min-height: 44px;
  cursor: pointer;
}

.login-card {
  width: min(440px, 100%);
  margin: 12px auto;
}

.login-head {
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.login-card .club-name {
  margin: 0;
  width: 100%;
  font-family: "Times New Roman", "Tinos", Times, serif;
  font-weight: 700;
  letter-spacing: .04em;
  font-size: 1.05rem;
  line-height: 1.2;
}

.login-card .club-name em {
  font-family: "Brush Script MT", "Yellowtail", "Segoe Script", cursive;
  font-style: italic;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.45rem;
  padding: 0 .1rem;
}

.login-logo {
  display: block;
  width: auto;
  max-width: 148px;
  max-height: 112px;
  height: auto;
  margin: 0 auto 4px;
  object-fit: contain;
}

.account-card { width: min(560px, 100%); }

.account-card h2 em {
  font-family: "Brush Script MT", "Yellowtail", "Segoe Script", cursive;
  font-style: italic;
  font-weight: 700;
  text-transform: none;
  margin-right: .15rem;
}

.login-card .field + .field { margin-top: 12px; }

.login-card .primary,
.login-card .ghost {
  width: 100%;
  margin-top: 16px;
}

.login-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  color: inherit;
}

a.login-copy {
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.login-result strong {
  display: block;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.15rem;
}

.login-copy > span { color: var(--muted); font-size: .9rem; }

.open-word {
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.preview-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: none;
  width: 92px;
  height: 92px;
  border: 1.5px dashed var(--gold);
  border-radius: 14px;
  background: #fbf7ef;
  color: var(--navy);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
}

.preview-btn svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.preview-btn:hover {
  border-color: var(--navy);
  color: var(--blue);
}

.login-result:hover { border-color: var(--gold); }

.banner {
  background: #fdecec;
  border: 1px solid #e7b4b4;
  color: #6f1d1d;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.banner.ok {
  background: #eef6ea;
  border-color: #b7d7ae;
  color: #1e4d28;
}

.banner ul { margin: 8px 0 0; padding-left: 18px; }

.sign-preview {
  display: block;
  width: min(320px, 100%);
  height: auto;
  margin-bottom: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.field-error { color: var(--danger); font-size: .85rem; margin: 6px 0 0; }

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] { border-color: var(--danger); }

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.site-foot {
  width: min(980px, calc(100% - 24px));
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: .85rem;
}

.site-foot p { margin: 0; }

.received h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 4px 0 8px;
  letter-spacing: .02em;
}

.eyebrow {
  margin: 0;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .75rem;
  font-weight: 700;
  color: var(--gold);
}

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

.facts {
  display: grid;
  gap: 12px;
  margin: 0;
}

.facts div { min-width: 0; }

.facts dt {
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 700;
  color: #3d4a63;
}

.facts dd { margin: 2px 0 0; overflow-wrap: anywhere; }

.confirm-photo { margin: 16px 0 0; text-align: center; }
.confirm-photo img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.confirm-photo figcaption { color: var(--muted); font-size: .8rem; margin-top: 6px; }

.child-list { margin: 14px 0 0; padding-left: 18px; }
.child-list li { margin: 0 0 8px; }
.child-list span { display: block; color: var(--muted); }

.sign-preview {
  display: block;
  max-width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.text-link { color: var(--blue); font-weight: 700; }

@media (min-width: 700px) {
  .masthead { padding: 10px 20px; }
  .panel { padding: 22px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-3 .span-2 { grid-column: span 2; }
  .spouse-row, .child-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
  .addr { grid-template-columns: 1.3fr 1fr 1.1fr .7fr; }
  .addr .street { grid-column: 1 / -1; }
  .status-grid { grid-template-columns: repeat(4, 1fr); }
  .officers { grid-template-columns: repeat(3, 1fr); }
  .officer-pair { grid-template-columns: 1fr 1fr; }
  .edu { grid-template-columns: 2fr 1fr; }
  .edu.college { grid-template-columns: 1.4fr 1.2fr .8fr; }
  .identity { grid-template-columns: 1fr 170px; align-items: start; }
  .name-grid { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .confirm-id { display: grid; grid-template-columns: 1fr 170px; gap: 16px; align-items: start; }
  .confirm-photo { margin: 0; }
}

@media (min-width: 960px) {
  .name-grid { grid-template-columns: 1.15fr .85fr 1fr 1.15fr; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .addr { grid-template-columns: 1.5fr 1fr 1.2fr 1fr .6fr; }
  .addr .street { grid-column: auto; }
}

@media (max-width: 560px) {
  .masthead { padding: 6px 8px 4px; }
  .brand {
    grid-template-columns: 52px 1fr 42px;
    gap: 4px;
  }
  .masthead .kicker { font-size: 8.5pt; }
  .masthead .org { font-size: 8pt; }
  .masthead .sub { font-size: 6pt; }
  .masthead .motto { font-size: 11pt; }
  .folio-paper .brand { grid-template-columns: 1.2in 1fr 0.98in; gap: 8px; }
  .folio-paper .masthead .kicker,
  .folio-paper .masthead .kicker em { font-size: 12pt; }
  .folio-paper .masthead .org,
  .folio-paper .masthead .org em,
  .folio-paper .masthead .org-gap { font-size: 10pt; }
  .folio-paper .masthead .sub { font-size: 9pt; }
  .folio-paper .masthead .motto { font-size: 12pt; }
  .letter-paper .brand { grid-template-columns: 1.2in 1fr 0.98in; gap: 8px; }
  .letter-paper .masthead .kicker,
  .letter-paper .masthead .kicker em { font-size: 12pt; }
  .letter-paper .masthead .org,
  .letter-paper .masthead .org em { font-size: 10pt; }
  .letter-paper .masthead .sub { font-size: 9pt; }
  .letter-paper .masthead .motto { font-size: 12pt; }
  .type-grid, .grid-2, .edu, .edu.college { grid-template-columns: 1fr; }
  .photo-wrap { order: -1; }
  .photo-actions { flex-direction: row; }
  .identity { display: flex; flex-direction: column; }
  .narrow, .civil-status, .status-blood { max-width: none; }
  .submit-bar {
    position: sticky;
    flex-direction: row;
    align-items: center;
    background: rgba(244, 239, 228, .94);
  }
  .submit-bar > button { width: auto; }
  .submit-side { width: auto; }
  .submit-side > * { flex: 0 0 auto; }
  .sign-actions { flex-direction: column; align-items: flex-start; }
}

.id-actions {
  width: min(980px, calc(100% - 32px));
  margin: 18px auto 0;
  display: flex;
  gap: 10px;
}

.id-actions .link-btn,
.id-actions button {
  width: auto;
  margin: 0;
  min-height: 32px;
  padding: 0 12px;
  font-size: .9rem;
}

.id-sheet {
  width: min(980px, calc(100% - 32px));
  margin: 16px auto 28px;
  padding: 18px 18px 16px;
  background: #fff;
  border: 2px solid #0c2340;
  color: #142033;
}

.id-kicker {
  margin: 0;
  text-align: center;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.id-sheet h2 {
  margin: 2px 0 8px;
  text-align: center;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  letter-spacing: .03em;
  text-transform: uppercase;
}

.id-type {
  margin: 0 0 12px;
  text-align: center;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.id-type .on {
  display: inline-block;
  padding: 2px 8px;
  border: 2px solid #0c2340;
}

.id-type .slash { margin: 0 8px; }

.id-grid {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.id-grid + .id-grid { margin-top: 10px; }

.id-grid th,
.id-grid td {
  border: 1px solid #0c2340;
  padding: 6px 8px;
  vertical-align: top;
}

.id-grid th {
  background: #0c2340;
  color: #fff;
  text-align: left;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.id-sheet .id-head {
  background: #fff;
  color: #000;
  font-weight: 700;
  text-align: left;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.id-sheet .lbl {
  display: block;
  margin: 0 0 4px;
  color: #3d4a63;
  font-size: .68rem;
  letter-spacing: .04em;
}

.id-sheet .val {
  display: block;
  min-height: 1.25em;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.officer td:nth-child(n + 3) { height: 54px; }

.id-signrow {
  display: grid;
  grid-template-columns: 1.15fr .8fr 1.05fr;
  gap: 10px;
  margin-top: 10px;
}

.id-box {
  min-height: 168px;
  border: 1px solid #0c2340;
  padding: 8px;
}

.id-box img {
  display: block;
  max-width: 100%;
  max-height: 150px;
  margin: 6px auto 0;
  object-fit: contain;
}

.id-box.photo img {
  width: 120px;
  height: 120px;
  object-fit: cover;
}

.id-note {
  margin: 12px 0 0;
  text-align: center;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.mem-banner {
  margin: 14px 0 6px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.mem-with-photo {
  display: grid;
  grid-template-columns: 1fr 148px;
  gap: 8px;
  align-items: stretch;
}

.mem-photo {
  border: 1px solid #0c2340;
  padding: 8px;
  text-align: center;
}

.mem-photo img {
  display: block;
  width: 120px;
  height: 120px;
  margin: 10px auto 0;
  object-fit: cover;
}

.civil-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.civil-picks span {
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.civil-picks .on {
  padding: 1px 6px;
  border: 2px solid #0c2340;
}

.mem-deps .kids-label {
  width: 4.5rem;
  text-align: center;
  vertical-align: middle;
}

.mem-signgrid,
.mem-pair {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.mem-signgrid { grid-template-columns: 1.2fr .9fr; }

.mem-officers {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.mem-pair { grid-template-columns: 1fr 1fr; }

.mem-sheet .id-box.short { min-height: 108px; }

.mem-sheet .sign-above { margin-top: 10px; }

@media (max-width: 720px) {
  .id-grid { min-width: 640px; }
  .id-sheet { overflow-x: auto; }
  .id-signrow { grid-template-columns: 1fr; }
}

@page folio {
  size: 8.5in 13in;
  margin: 0;
}

body.folio {
  background: #e6e0d4;
  page: folio;
}

.folio-stage {
  width: 8.5in;
  margin: 0 auto 28px;
}

body.folio .id-actions {
  width: 8.5in;
  max-width: none;
}

.folio-paper {
  width: 8.5in;
  height: 13in;
  min-width: 8.5in;
  max-width: 8.5in;
  min-height: 13in;
  max-height: 13in;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #0c2340;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: none;
}

.folio-paper .brand,
.letter-paper .brand { width: 100%; }

.folio-paper .masthead,
.letter-paper .masthead {
  background: transparent;
  border: 0;
  padding: 6px 8px 2px;
}

.folio-paper .masthead .kicker,
.letter-paper .masthead .kicker,
.folio-paper .masthead .kicker em,
.letter-paper .masthead .kicker em { font-size: 12pt; }

.folio-paper .masthead .org,
.letter-paper .masthead .org,
.folio-paper .masthead .org em,
.letter-paper .masthead .org em { font-size: 10pt; }

.folio-paper .masthead .sub,
.letter-paper .masthead .sub { font-size: 9pt; }

.folio-paper .masthead .motto,
.letter-paper .masthead .motto { font-size: 12pt; }

.folio-paper .mem-sheet {
  flex: 1 1 auto;
  width: auto;
  height: auto;
  min-height: 0;
  max-width: none;
  margin: 0;
  border: 0;
  padding: 0.08in 0.16in 0.06in;
  overflow: hidden;
  font-family: "Times New Roman", "Tinos", Times, serif;
  font-size: 8pt;
  color: #000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.folio-paper .mem-sheet h2,
.letter-paper .id-sheet h2 {
  margin: 0 0 2px;
  font-family: "Times New Roman", "Tinos", Times, serif;
  font-size: 16pt;
  font-weight: 700;
  letter-spacing: .04em;
  color: #001f5f;
}

.folio-paper .id-kicker,
.letter-paper .id-kicker {
  font-family: "Times New Roman", "Tinos", Times, serif;
  font-size: 10pt;
  font-weight: 700;
  letter-spacing: .02em;
}

.letter-paper .brand {
  grid-template-columns: 1.2in 1fr 0.98in;
  gap: 8px;
}

.letter-paper .masthead .kicker,
.letter-paper .masthead .org,
.letter-paper .masthead .sub,
.letter-paper .masthead .kicker em,
.letter-paper .masthead .org em { color: #767676; }

.letter-paper .id-kicker {
  text-align: left;
  text-transform: none;
  font-size: 12pt;
  font-weight: 700;
  color: #000;
  margin: 22px 0 12px;
}

.folio-paper .brand {
  grid-template-columns: 1.2in 1fr 0.98in;
  gap: 8px;
}

.folio-paper .masthead .org-gap { font-size: 10pt; }

.folio-paper .id-kicker {
  font-size: 8pt;
  font-weight: 400;
  text-transform: none;
  text-align: left;
  margin: 1px 0 8px;
}

.folio-paper .id-type {
  margin: 0 0 6px;
  font-family: "Times New Roman", "Tinos", Times, serif;
  font-size: 16pt;
  font-weight: 700;
  letter-spacing: .06em;
  color: #001f5f;
}

.folio-paper .tick {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin: 0 8px 0 16px;
  border: 1.5px solid #001f5f;
  vertical-align: -1px;
  position: relative;
  background: #fff;
}

.folio-paper .tick.checked::after {
  content: "✓";
  position: absolute;
  left: 1px;
  top: -3px;
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
  color: #001f5f;
  font-family: "Segoe UI", "Arimo", sans-serif;
}

.letter-paper .id-type {
  margin: 0 0 8px;
  font-family: "Times New Roman", "Tinos", Times, serif;
  font-size: 16pt;
  font-weight: 700;
  letter-spacing: .04em;
  color: #001f5f;
}

.letter-paper .tick {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin: 0 3px 0 10px;
  border: 1.5px solid #001f5f;
  vertical-align: -1px;
  position: relative;
  background: #fff;
}

.letter-paper .tick.checked::after {
  content: "✓";
  position: absolute;
  left: 1px;
  top: -3px;
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
  color: #001f5f;
  font-family: "Segoe UI", "Arimo", sans-serif;
}

.folio-paper .mem-banner {
  margin: 2px 0 1px;
  font-family: "Times New Roman", "Tinos", Times, serif;
  font-size: 14pt;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.05;
}

.folio-paper .id-grid + .id-grid { margin-top: 3px; }

.folio-paper .id-grid th,
.folio-paper .id-grid td { padding: 2px 4px; }

.folio-paper .id-grid th {
  font-family: Arial, "Arimo", Helvetica, sans-serif;
  font-size: 8pt;
  font-weight: 700;
  letter-spacing: .02em;
}

.folio-paper .mem-sheet .lbl,
.folio-paper .civil-picks span {
  margin: 0;
  font-family: Arial, "Arimo", Helvetica, sans-serif;
  font-size: 7pt;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.05;
  color: #000;
  text-transform: uppercase;
}

.folio-paper .mem-sheet .lbl.b { font-weight: 700; }

.folio-paper .mem-sheet .lbl.a8,
.folio-paper .dep-head {
  font-family: Arial, "Arimo", Helvetica, sans-serif;
  font-size: 8pt;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0;
  background: transparent;
  color: #000;
}

.folio-paper .mem-sheet .val {
  display: block;
  min-height: 1em;
  font-family: "Times New Roman", "Tinos", Times, serif;
  font-size: 9pt;
  font-weight: 700;
  line-height: 1.05;
}

.folio-paper .mem-banner.mid { font-size: 11pt; }

.folio-paper .mem-k {
  margin: 2px 0 0;
  font-family: Arial, "Arimo", Helvetica, sans-serif;
  font-size: 8pt;
  font-weight: 400;
  text-transform: uppercase;
}

.folio-paper .civil-picks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px 4px;
}

.folio-paper .mem-deps { table-layout: fixed; }

.folio-paper .mem-deps .kids-col { width: 0.22in; }

.folio-paper .mem-deps .spouse-col { width: 1.05in; }

.folio-paper .mem-deps .dob-col { width: 1.35in; }

.folio-paper .mem-deps .age-col { width: 0.42in; }

.folio-paper .kids-label {
  width: 0.22in;
  padding: 0;
  text-align: center;
  vertical-align: middle;
}

.folio-paper .kids-label .lbl {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  letter-spacing: .04em;
}

.folio-paper .kid-no {
  display: inline-block;
  width: 1.2em;
  margin-right: 3px;
  font-family: Arial, "Arimo", Helvetica, sans-serif;
  font-size: 7pt;
  font-weight: 400;
}

.folio-paper .eagle-name {
  display: block;
  text-align: center;
  font-family: "Times New Roman", "Tinos", Times, serif;
  font-size: 10pt;
  font-weight: 700;
  text-transform: uppercase;
}

.folio-paper .eagle-name em {
  font-family: "Brush Script MT", "Yellowtail", "Segoe Script", cursive;
  font-style: italic;
  font-weight: 700;
  font-size: 9pt;
  text-transform: none;
  margin-right: 3px;
}

.folio-paper .role-line,
.folio-paper .sign-above {
  display: block;
  margin-top: 1px;
  text-align: center;
  font-family: "Times New Roman", "Tinos", Times, serif;
  font-size: 8pt;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.05;
}

.folio-paper .role-line.arial { font-family: Arial, "Arimo", Helvetica, sans-serif; }

.folio-paper .blank-line td { height: 16px; }

.folio-paper .side { vertical-align: middle; }

.folio-paper .personal-block {
  width: 100%;
  height: 2in;
  table-layout: fixed;
}

.folio-paper .personal-block .photo-col { width: 2in; }

.folio-paper .personal-block .side-col { width: 0.92in; }

.folio-paper .personal-block .h-head { height: 0.24in; }

.folio-paper .personal-block .h-name { height: 0.4in; }

.folio-paper .personal-block .h-row { height: 0.34in; }

.folio-paper .personal-block td { padding: 0 3px; }

.folio-paper .personal-block .sec-head {
  font-family: "Times New Roman", "Tinos", Times, serif;
  font-size: 12pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  vertical-align: middle;
}

.folio-paper .personal-block .side {
  background: #e6e6e6;
  text-align: center;
  vertical-align: middle;
}

.folio-paper .personal-block .under { vertical-align: bottom; }

.folio-paper .personal-block .photo-cell {
  width: 2in;
  padding: 0;
  vertical-align: middle;
  background: #fff;
}

.folio-paper .personal-block .photo-cell img {
  display: block;
  width: 2in;
  height: 2in;
  max-width: none;
  margin: 0;
  object-fit: cover;
}

.folio-paper .personal-block .civil-cell {
  vertical-align: middle;
  text-align: center;
}

.folio-paper .personal-block .civil-picks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px 2px;
  margin-top: 1px;
  text-align: left;
}

.folio-paper .civil-picks { gap: 1px 8px; }

.folio-paper .id-note {
  margin: 2px 0 0;
  font-family: "Times New Roman", "Tinos", Times, serif;
  font-size: 7pt;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  color: #000;
  line-height: 1.15;
}

.folio-paper .id-note .inst {
  font-size: 8pt;
  font-weight: 700;
  text-transform: uppercase;
}

.folio-paper .sign-block { margin-top: 4px; }

.folio-paper .sign-block .chair-title {
  padding: 2px 4px;
  text-align: center;
  font-family: "Times New Roman", "Tinos", Times, serif;
  font-size: 11pt;
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  vertical-align: middle;
}

.folio-paper .sign-block .mini-head {
  background: #e6e6e6;
  padding: 1px 3px;
  text-align: center;
  font-family: Arial, "Arimo", Helvetica, sans-serif;
  font-size: 8pt;
  font-weight: 400;
  text-transform: uppercase;
  vertical-align: middle;
}

.folio-paper .sign-block .who-line { vertical-align: bottom; text-align: center; }

.folio-paper .sign-block .signed {
  display: inline-block;
  min-width: 1.35in;
  border-bottom: 1px solid #000;
  font-size: 9pt;
  line-height: 1;
  text-align: center;
}

.folio-paper .sign-block .app-sign {
  text-align: center;
  vertical-align: middle;
}

.folio-paper .sign-block .app-label {
  display: block;
  font-family: Arial, "Arimo", Helvetica, sans-serif;
  font-size: 8pt;
  font-weight: 700;
  text-transform: uppercase;
}

.folio-paper .sign-block .app-sign img {
  display: block;
  max-width: 100%;
  max-height: 0.42in;
  margin: 1px auto 0;
  object-fit: contain;
}

.folio-paper .sign-block .band {
  padding: 1px 4px;
  text-align: left;
  font-family: Arial, "Arimo", Helvetica, sans-serif;
  font-size: 8pt;
  font-weight: 400;
  text-transform: uppercase;
  vertical-align: middle;
}

.folio-paper .sign-block .band.inst {
  font-family: "Times New Roman", "Tinos", Times, serif;
  font-size: 8pt;
  font-weight: 700;
}

.folio-paper .sign-block .open-row td {
  border-left: 0;
  border-right: 0;
  padding: 2px 4px 3px;
  text-align: center;
  vertical-align: bottom;
}

.folio-paper .sign-block .open-row td:first-child { border-left: 1px solid #0c2340; }

.folio-paper .sign-block .open-row td:last-child { border-right: 1px solid #0c2340; }

.folio-paper .sign-block .split-row td {
  padding: 2px 4px 3px;
  text-align: center;
  vertical-align: bottom;
}

.folio-paper .sign-block .eagle-name.line {
  text-decoration: underline;
  text-underline-offset: 1px;
}

.folio-paper .sign-block .instruct {
  padding: 1px 4px 2px;
  text-align: left;
  font-family: "Times New Roman", "Tinos", Times, serif;
  font-size: 7pt;
  font-weight: 400;
  line-height: 1.15;
}

.folio-paper .mem-signgrid,
.folio-paper .mem-pair { gap: 4px; margin-top: 3px; }

.folio-paper .mem-officers { gap: 4px; }

.folio-paper .mem-sheet .id-box,
.folio-paper .mem-sheet .id-box.short {
  min-height: 0;
  padding: 3px 4px;
}

.folio-paper .mem-sheet .id-box img {
  max-height: 0.48in;
  margin: 1px auto 0;
}

.folio-paper .mem-sheet .sign-above { margin-top: 2px; }


@media (max-width: 720px) {
  body.folio .mem-sheet.id-sheet,
  .folio-paper {
    width: 8.5in;
    max-width: none;
    overflow: hidden;
  }
  .folio-paper .id-grid { min-width: 0; }
}

@page letter {
  size: 8.5in 11in;
  margin: 0;
}

body.letter {
  background: #e6e0d4;
  page: letter;
}

.letter-stage {
  width: 8.5in;
  margin: 0 auto 28px;
}

body.letter .id-actions {
  width: 8.5in;
  max-width: none;
}

.letter-paper {
  width: 8.5in;
  height: 11in;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #0c2340;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.letter-paper .brand { width: 100%; }

.letter-paper .id-sheet {
  flex: 1 1 auto;
  width: auto;
  min-height: 0;
  max-width: none;
  margin: 0;
  border: 0;
  padding: 8px 10px 8px;
  overflow: hidden;
  font-family: "Times New Roman", "Tinos", Times, serif;
  font-size: 11pt;
  color: #000;
}

.letter-paper .id-grid + .id-grid { margin-top: 6px; }

.letter-paper .id-grid th,
.letter-paper .id-grid td { padding: 3px 6px; }

.letter-paper .id-grid th {
  font-family: "Times New Roman", "Tinos", Times, serif;
  font-size: 11pt;
  font-weight: 700;
  letter-spacing: .02em;
}

.letter-paper .id-sheet .lbl {
  margin: 0;
  font-family: "Times New Roman", "Tinos", Times, serif;
  font-size: 11pt;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.05;
  color: #000;
  text-transform: uppercase;
}

.letter-paper .id-sheet .val {
  min-height: 0;
  font-family: "Times New Roman", "Tinos", Times, serif;
  font-size: 11pt;
  font-weight: 700;
  line-height: 1.05;
}

.letter-paper .id-officers td {
  border: none;
  padding: 1px 4px 2px;
  vertical-align: bottom;
}

.letter-paper .id-officers .lbl,
.letter-paper .id-officers .hint {
  display: inline;
}

.letter-paper .id-officers .lbl {
  font-size: 8pt;
  font-weight: 700;
}

.letter-paper .id-officers .lbl.mid,
.letter-paper .id-officers .hint {
  font-size: 9pt;
  font-weight: 400;
  text-transform: uppercase;
}

.letter-paper .id-officers .lbl.mid { font-weight: 700; }

.letter-paper .id-officers .role {
  border-top: 1px solid #000;
  border-left: 1px solid #000;
  border-right: 1px solid #000;
  padding-top: 2px;
  vertical-align: top;
}

.letter-paper .id-officers .who {
  border-bottom: 1px solid #000;
  border-left: 1px solid #000;
  vertical-align: bottom;
}

.letter-paper .id-officers .who:last-child { border-right: 1px solid #000; }

.letter-paper .id-officers .slot {
  border-left: 1px solid #000;
  border-right: 1px solid #000;
  vertical-align: top;
}

.letter-paper .id-officers .slot.top { border-top: 1px solid #000; }

.letter-paper .id-officers .slot.bot {
  border-bottom: 1px solid #000;
  height: 18px;
}

.letter-paper .eagle-name {
  display: inline-block;
  padding-left: 14px;
  font-family: "Times New Roman", "Tinos", Times, serif;
  font-size: 10pt;
  font-weight: 700;
  text-transform: uppercase;
}

.letter-paper .eagle-name em {
  font-family: "Brush Script MT", "Yellowtail", "Segoe Script", cursive;
  font-style: italic;
  font-weight: 700;
  font-size: 10pt;
  text-transform: none;
  margin-right: 4px;
}

.letter-paper .id-officers td.club-line {
  border-left: 1px solid #000;
  border-right: 1px solid #000;
  border-bottom: 1px solid #000;
  padding: 2px 6px 4px;
  font-family: "Times New Roman", "Tinos", Times, serif;
  font-size: 12pt;
  font-weight: 700;
  color: #e10600;
  text-align: center;
  text-transform: uppercase;
  vertical-align: middle;
}

.letter-paper .club-line em {
  font-family: "Brush Script MT", "Yellowtail", "Segoe Script", cursive;
  font-style: italic;
  font-weight: 700;
  font-size: 12pt;
  text-transform: none;
}

.letter-paper .id-officers .signcell {
  border: 1px solid #000;
  min-height: 1.15in;
  padding: 3px 4px;
  text-align: center;
  vertical-align: top;
}

.letter-paper .id-officers .signcell .lbl {
  display: block;
  font-size: 10pt;
  text-align: center;
}

.letter-paper .id-officers .signcell img {
  display: block;
  max-width: 100%;
  max-height: 0.95in;
  margin: 2px auto 0;
  object-fit: contain;
}

.letter-paper .id-officers .signcell.photo {
  padding: 2px 0 0;
}

.letter-paper .id-officers .signcell.photo img {
  width: 2in;
  height: 2in;
  max-width: none;
  max-height: none;
  object-fit: cover;
}

.letter-paper .id-officers .signcell.applicant {
  position: relative;
  vertical-align: top;
}

.letter-paper .id-officers .signcell.applicant img {
  position: absolute;
  left: 50%;
  top: calc(50% + 8px);
  transform: translate(-50%, -50%);
  max-width: calc(100% - 10px);
  max-height: calc(100% - 24px);
  width: auto;
  height: auto;
  margin: 0;
}

.letter-paper .id-grid tr.grow td { height: 0.38in; }

.letter-paper .id-signrow {
  grid-template-columns: 1.15fr .8fr 1.05fr;
  gap: 6px;
  margin-top: 6px;
}

.letter-paper .id-box {
  min-height: 1.15in;
  padding: 4px 6px;
}

.letter-paper .id-box img {
  max-height: 0.85in;
  margin: 2px auto 0;
}

.letter-paper .id-box.photo img {
  width: 0.95in;
  height: 0.95in;
}

.letter-paper .id-note {
  margin: 6px 0 0;
  font-family: "Times New Roman", "Tinos", Times, serif;
  font-size: 9pt;
  font-weight: 700;
  letter-spacing: .02em;
  color: #e10600;
}

.letter-paper .officer td:nth-child(n + 3) { height: auto; }

@media (max-width: 720px) {
  .letter-paper {
    width: 8.5in;
    max-width: none;
    overflow: hidden;
  }
  .letter-paper .id-sheet {
    width: auto;
    max-width: none;
    overflow: hidden;
  }
  .letter-paper .id-grid { min-width: 0; }
  .letter-paper .id-signrow { grid-template-columns: 1.15fr .8fr 1.05fr; }
}

@media print {
  body { background: #fff; }
  .jump, .submit-bar, .no-print, .site-foot, .hp { display: none !important; }
  .panel { box-shadow: none; break-inside: avoid; }
  .masthead, .id-grid th, .flagbar span, .personal-block .side, .sign-block .mini-head { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .id-sheet { width: 100%; margin: 0; border-width: 1px; }
  body.folio { background: #fff; }
  .folio-stage { width: 8.5in; margin: 0; }
  .folio-paper {
    width: 8.5in;
    height: 13in;
    border: 0;
  }
  body.letter { background: #fff; }
  .letter-stage { width: 8.5in; margin: 0; }
  .letter-paper {
    width: 8.5in;
    height: 11in;
    border: 0;
  }
  .letter-paper .id-sheet { width: auto; border: 0; }
}

body.admin main { width: min(1100px, calc(100% - 24px)); }

.admin-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin-bottom: 10px;
}

.admin-bar h2 {
  margin: 0;
  font-size: 1.15rem;
  white-space: nowrap;
}

.admin-bar .lead {
  margin: 0;
  flex: 1;
  font-size: .9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-bar form { margin: 0; }

.logo-upload {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  flex: 0 0 auto;
}

.admin-bar .logo-upload .ghost {
  position: relative;
  width: auto;
  margin: 0;
  min-height: 32px;
  padding: 0 12px;
  font-size: .9rem;
  cursor: pointer;
}

.logo-upload input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.club-logo-thumb {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--line);
}

.admin-bar .ghost {
  width: auto;
  margin: 0;
  min-height: 32px;
  padding: 0 12px;
  font-size: .9rem;
}

.mvec-head { margin-bottom: 8px; }

.member-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 0 auto;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #3d4a63;
}

.member-search input {
  width: 180px;
  min-height: 32px;
  padding: 4px 10px;
  font-size: .9rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.member-none { margin: 8px 0 0; }

.roster-wrap { overflow-x: auto; }

.roster {
  width: 100%;
  border-collapse: collapse;
}

.roster th,
.roster td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.roster th {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #3d4a63;
}

.roster td strong {
  display: block;
  color: var(--navy);
}

.roster-sub {
  display: block;
  color: var(--muted);
  font-size: .85rem;
}

.login-switch { margin: 14px 0 0; }

.roster-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1.5px dashed var(--gold);
  border-radius: 12px;
  background: #fbf7ef;
  color: var(--navy);
  cursor: pointer;
}

.roster-preview svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.roster-preview:hover {
  border-color: var(--navy);
  color: var(--blue);
}

.preview-modal {
  width: min(940px, calc(100vw - 32px));
  height: min(92vh, 1400px);
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(12, 35, 64, .28);
  overflow: hidden;
}

.preview-modal::backdrop {
  background: rgba(12, 35, 64, .55);
}

.preview-modal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.preview-modal-bar h2 {
  margin: 0;
  font-size: 1.25rem;
}

.preview-modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.preview-modal-bar .ghost,
.preview-modal-bar .primary {
  width: auto;
  margin: 0;
  min-height: 40px;
  padding: 0 14px;
}

@media print {
  body.embed,
  body.embed .folio-stage,
  body.embed .letter-stage {
    transform: none !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    overflow: visible !important;
  }
}

.preview-modal iframe {
  display: block;
  width: 100%;
  height: calc(100% - 65px);
  border: 0;
  background: #e6e0d4;
}

body.embed .folio-stage,
body.embed .letter-stage {
  margin: 12px auto 20px;
}

