/* ── Build It List — Global Stylesheet ─────────────────────────────────── */

/* Palette */
:root {
  --espresso:  #1C1007;
  --bark:      #2A1A08;
  --walnut:    #5C3D20;
  --saddle:    #8B6442;
  --sand:      #C8A882;
  --linen:     #E8D5B7;
  --parchment: #F5EFE6;
  --white:     #FFFFFF;
  --error:     #8B2020;
}

/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--parchment);
  color: var(--espresso);
  min-height: 100vh;
  line-height: 1.6;
}

/* ── Header ───────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--espresso);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 2px solid var(--walnut);
}

.site-header .badge {
  flex-shrink: 0;
  border: 1.5px solid var(--saddle);
  padding: 8px 12px;
  text-align: center;
  min-width: 72px;
}

.site-header .badge-top {
  font-family: sans-serif;
  font-size: 8px;
  letter-spacing: 3px;
  color: var(--saddle);
  text-transform: uppercase;
  display: block;
}

.site-header .badge-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--linen);
  display: block;
  letter-spacing: 1px;
  line-height: 1.1;
}

.site-header .badge-tm {
  font-family: sans-serif;
  font-size: 7px;
  letter-spacing: 2px;
  color: var(--walnut);
  display: block;
  margin-top: 4px;
}

.site-header .divider {
  width: 1px;
  height: 52px;
  background: var(--walnut);
  flex-shrink: 0;
}

.site-header .wordmark {
  flex: 1;
}

.site-header .wordmark h1 {
  font-size: clamp(20px, 5vw, 32px);
  font-weight: 700;
  color: var(--linen);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.site-header .wordmark .tagline {
  font-family: sans-serif;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--saddle);
  text-transform: uppercase;
  margin-top: 4px;
}

/* ── Holding page ─────────────────────────────────────────────────────────── */
.holding-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 100px);
}

/* ── Page container ───────────────────────────────────────────────────────── */
.page-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

/* ── Page title ───────────────────────────────────────────────────────────── */
.page-title {
  font-size: clamp(18px, 4vw, 24px);
  color: var(--espresso);
  margin-bottom: 6px;
  font-weight: 700;
}

.page-subtitle {
  font-family: sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--saddle);
  text-transform: uppercase;
  margin-bottom: 28px;
}

.page-intro {
  font-size: 14px;
  color: var(--walnut);
  margin-bottom: 28px;
  line-height: 1.7;
}

/* ── Divider ──────────────────────────────────────────────────────────────── */
.rule {
  border: none;
  border-top: 1px solid var(--sand);
  margin: 24px 0;
}

/* ── Form ─────────────────────────────────────────────────────────────────── */
.form-section {
  margin-bottom: 28px;
}

.form-section-title {
  font-family: sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--saddle);
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--linen);
}

.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  font-family: sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--walnut);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

label .optional {
  font-weight: 400;
  color: var(--sand);
  margin-left: 4px;
}

input[type="text"],
input[type="email"],
input[type="date"],
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--sand);
  border-radius: 3px;
  background: var(--white);
  font-family: Georgia, serif;
  font-size: 15px;
  color: var(--espresso);
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--walnut);
}

input.error, textarea.error {
  border-color: var(--error);
}

.field-error {
  font-family: sans-serif;
  font-size: 11px;
  color: var(--error);
  margin-top: 4px;
  display: none;
}

.field-error.visible { display: block; }

/* ── Acknowledgment document ──────────────────────────────────────────────── */
.ack-scroll-container {
  border: 1px solid var(--sand);
  border-radius: 3px;
  background: var(--white);
  height: 320px;
  overflow-y: scroll;
  padding: 20px;
  margin-bottom: 12px;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

.ack-document h2 {
  font-size: 17px;
  color: var(--espresso);
  margin-bottom: 4px;
}

.ack-document h3 {
  font-size: 13px;
  font-family: sans-serif;
  color: var(--saddle);
  letter-spacing: 1px;
  margin-bottom: 16px;
  font-weight: 400;
}

.ack-document p {
  font-size: 13px;
  line-height: 1.75;
  color: var(--espresso);
  margin-bottom: 14px;
}

.scroll-hint {
  font-family: sans-serif;
  font-size: 11px;
  color: var(--saddle);
  text-align: center;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

.scroll-hint.hidden { display: none; }

/* ── Checkbox ─────────────────────────────────────────────────────────────── */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--linen);
  border: 1px solid var(--sand);
  border-radius: 3px;
  margin-bottom: 24px;
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--walnut);
  cursor: pointer;
}

.checkbox-group input[type="checkbox"]:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.checkbox-group label {
  font-family: sans-serif;
  font-size: 13px;
  color: var(--walnut);
  margin-bottom: 0;
  cursor: pointer;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0;
}

/* ── Submit button ────────────────────────────────────────────────────────── */
.btn-primary {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--espresso);
  color: var(--linen);
  border: none;
  border-radius: 3px;
  font-family: sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover { background: var(--bark); }
.btn-primary:disabled { background: var(--sand); cursor: not-allowed; }

/* ── Confirmation screen ──────────────────────────────────────────────────── */
.confirmation {
  text-align: center;
  padding: 48px 20px;
}

.confirmation .check-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.confirmation h2 {
  font-size: 22px;
  color: var(--espresso);
  margin-bottom: 12px;
}

.confirmation p {
  font-size: 14px;
  color: var(--walnut);
  line-height: 1.7;
}

/* ── Directory table ──────────────────────────────────────────────────────── */
.directory-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--walnut);
  color: var(--linen);
  border: none;
  border-radius: 3px;
  font-family: sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-download:hover { background: var(--espresso); }

.directory-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--sand);
  border-radius: 3px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 14px;
}

thead tr {
  background: var(--espresso);
}

thead th {
  padding: 12px 14px;
  text-align: left;
  font-family: sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--sand);
  text-transform: uppercase;
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid var(--linen);
  transition: background 0.15s;
}

tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--parchment); }

tbody td {
  padding: 12px 14px;
  color: var(--espresso);
  vertical-align: top;
}

tbody td a {
  color: var(--walnut);
  text-decoration: none;
  border-bottom: 1px solid var(--sand);
}

tbody td a:hover {
  color: var(--espresso);
  border-bottom-color: var(--walnut);
}

.loading-msg {
  text-align: center;
  padding: 40px;
  color: var(--saddle);
  font-family: sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
}

/* ── Note box ─────────────────────────────────────────────────────────────── */
.note-box {
  background: var(--linen);
  border-left: 3px solid var(--saddle);
  padding: 14px 16px;
  margin-bottom: 24px;
  font-family: sans-serif;
  font-size: 12px;
  color: var(--walnut);
  line-height: 1.6;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 24px;
  font-family: sans-serif;
  font-size: 10px;
  color: var(--sand);
  letter-spacing: 1px;
  border-top: 1px solid var(--linen);
  margin-top: 40px;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .site-header { padding: 14px 16px; gap: 12px; }
  .page-container { padding: 24px 16px 48px; }
  .ack-scroll-container { height: 260px; }
  .directory-header { flex-direction: column; align-items: flex-start; }
  .btn-download { width: 100%; justify-content: center; }
}
