@font-face {
  font-family: Figtree;
  src: url('/fonts/figtree-latin-wght-normal.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  font-feature-settings: "tnum";
}
@font-face {
  font-family: Figtree;
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  font-feature-settings: "tnum";
  src: url("/fonts/figtree-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-0101, U+0103-0113, U+0116-0127, U+012A-012B, U+012E-0130, U+0132-0137, U+0139-013E, U+0141-0148, U+014A-014D, U+0150-0151, U+0154-0161, U+0164-0165, U+016A-017E, U+01CD-01CE, U+0218-021B, U+0237, U+02C7, U+02D8-02D9, U+02DB, U+02DD, U+0302, U+0306-0307, U+030A-030C, U+0312, U+0326-0328, U+1E80-1E85, U+1E9E, U+1EF2-1EF3, U+2020-2021, U+2070, U+2074-2079, U+2080-2089, U+20B9, U+215B-215E, U+2190, U+2192, U+2196-2199, U+2260, U+2264-2265;
}

* { box-sizing: border-box; }
html { background: var(--color-canvas); color: var(--color-text); font-family: var(--font-ui); }
body { margin: 0; font-size: var(--text-body); font-weight: var(--weight-regular); line-height: var(--line-body); }
header, main, footer { width: min(100%, 900px); margin-inline: auto; padding: var(--space-6); }
header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: var(--masthead-height); border-bottom: 1px solid var(--color-border); }
.site-brand { display: inline-flex; align-items: center; gap: var(--space-3); min-height: 44px; }
.site-brand::before { content: ''; display: block; width: 36px; height: 27px; background: var(--color-logo); mask: url('/assets/reveille-rooster-white.svg') center / contain no-repeat; }
.site-brand span { display: block; width: 190px; height: 24px; background: var(--color-logo); mask: url('/assets/reveille-wordmark.svg') center / contain no-repeat; }
footer { display: flex; flex-wrap: wrap; gap: var(--space-5); border-top: 1px solid var(--color-border); font-size: var(--text-meta); line-height: var(--line-meta); }
footer a { display: inline-flex; align-items: center; min-height: 44px; }
h1, h2, h3, h4 { font-family: var(--font-ui); font-weight: var(--weight-semibold); margin: var(--space-6) 0 var(--space-3); }
h1 { font-size: var(--text-page); line-height: var(--line-page); letter-spacing: -.015em; }
h2 { font-size: var(--text-section); line-height: var(--line-section); letter-spacing: -.01em; }
h3 { font-size: var(--text-heading); line-height: var(--line-heading); }
h4 { font-size: var(--text-ui); line-height: var(--line-ui); }
p { margin: var(--space-3) 0; }
a { color: var(--color-link); text-underline-offset: var(--space-1); }
strong, b, dt { font-weight: var(--weight-semibold); }
small, .meta { color: var(--color-text-muted); font-size: var(--text-meta); line-height: var(--line-meta); font-variant-numeric: tabular-nums; }
small { display: block; }
label, legend { font-size: var(--text-ui); font-weight: var(--weight-medium); line-height: var(--line-ui); }
label { display: block; margin-bottom: var(--space-2); }
input, textarea, select { width: 100%; min-width: 0; height: 36px; padding: var(--space-2) var(--space-3); border: 1px solid var(--color-control-border); border-radius: var(--radius-small); background: var(--color-input); color: var(--color-text); font-family: var(--font-ui); font-size: var(--text-body); font-weight: var(--weight-regular); line-height: var(--line-body); }
/* Keep the native picker/keyboard behavior; style its face like the other fields. */
select {
  appearance: none;
  padding-right: var(--space-8);
  background-image: linear-gradient(45deg, transparent 50%, var(--color-text-muted) 50%), linear-gradient(135deg, var(--color-text-muted) 50%, transparent 50%);
  background-position: calc(100% - var(--space-5)) center, calc(100% - var(--space-4)) center;
  background-size: var(--space-1) var(--space-1);
  background-repeat: no-repeat;
}
input[type=checkbox], input[type=radio] { width: var(--space-6); height: var(--space-6); accent-color: var(--color-accent); }
textarea { height: auto; min-height: 120px; resize: vertical; }
input:disabled, select:disabled, textarea:disabled { background: var(--color-disabled-surface); color: var(--color-disabled-text); }
fieldset { min-width: 0; border: 1px solid var(--color-border); border-radius: var(--radius-small); padding: var(--space-4); margin: var(--space-5) 0; }
fieldset input { margin-bottom: var(--space-3); }
.field { margin: var(--space-6) 0; }
.notice, .error, #errors { padding: var(--space-4); margin: var(--space-4) 0; border: 1px solid var(--color-border); border-radius: var(--radius-card); background: var(--color-surface-raised); overflow-wrap: anywhere; }
.error, #errors { border-color: var(--color-alert); }
#message, #notice { min-height: var(--space-6); overflow-wrap: anywhere; }
#turnstile { margin-bottom: var(--space-4); }
#steps { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-6) 0; }
#steps [aria-current] { outline: 2px solid var(--color-accent); outline-offset: 2px; }
#actions, .toolbar { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: var(--space-6) 0; }
#actions { justify-content: space-between; }
#conflict .button { margin-block: var(--space-1); }
dl { margin: var(--space-3) 0; }
dt { color: var(--color-text-muted); margin-top: var(--space-3); overflow-wrap: anywhere; }
dd { margin: 0 0 var(--space-3); white-space: pre-wrap; overflow-wrap: anywhere; }
dd dl { padding-left: var(--space-4); border-left: 2px solid var(--color-border); }
#saved-review { border-top: 1px solid var(--color-border); padding-top: var(--space-5); margin-top: var(--space-8); }
nav[aria-label='Legal pages'] { display: flex; flex-wrap: wrap; gap: var(--space-4); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.skip { position: absolute; top: -100px; left: var(--space-4); background: var(--color-surface); padding: var(--space-3); z-index: 5; }
.skip:focus { top: var(--space-2); }
[hidden] { display: none !important; }
@media (max-width: 600px) {
  header, main, footer { padding: var(--space-4); }
  h1 { --text-page: 1.5rem; --line-page: 1.875rem; }
  .site-brand span { width: 150px; }
}
@media (pointer: coarse) {
  input:not([type=checkbox], [type=radio]), select { min-height: 44px; }
}

/* Shared DS5.3 masthead. Other legal/reviewer content retains its existing styles. */
.signup-masthead { width: 100%; padding: 0; height: var(--masthead-height); min-height: var(--masthead-height); background: var(--color-masthead); border-bottom: 1px solid var(--color-divider); }
.masthead-inner { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: var(--space-8); display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.signup-masthead .site-brand span { width: 136px; height: var(--space-6); }
#home-link { font-size: var(--text-ui); line-height: var(--line-ui); text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: var(--space-1); margin-left: auto; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-3); border-radius: var(--radius-small); color: var(--color-text); font-size: var(--text-ui); line-height: var(--line-ui); font-weight: var(--weight-medium); text-decoration: none; }
.site-nav a:hover { background: var(--color-surface-hover); }
#account { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.account-initials { width: var(--avatar-compact); height: var(--avatar-compact); display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-pill); background: var(--color-selected-surface); color: var(--color-accent-text); font-size: var(--text-meta); line-height: var(--line-meta); font-weight: var(--weight-semibold); flex: none; }
.account-email { font-size: var(--text-ui); line-height: var(--line-ui); color: var(--color-text-muted); overflow-wrap: anywhere; }
.account-menu { display: none; position: relative; }
.account-menu summary { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; line-height: var(--text-body); cursor: pointer; list-style: none; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu > div { position: absolute; right: 0; top: 100%; z-index: var(--z-drawer); min-width: 240px; max-width: calc(100vw - var(--space-8)); padding: var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-card); background: var(--color-surface); box-shadow: var(--shadow-dialog); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 767px) {
  .signup-masthead { height: 56px; min-height: 56px; }
  .masthead-inner { padding-inline: var(--space-4); }
  .signup-masthead .site-brand span { width: 112px; }
  .site-nav { display: none; }
  #home-link { max-width: 160px; min-height: 44px; display: inline-flex; align-items: center; }
  #account > .account-initials, #account > .account-email, #account > #signout { display: none; }
  .account-menu { display: block; }
}

@media (min-width: 768px) {
  select { padding-block: 0; }
}
