/* ============================================================
 * Ruby Embassy — plain CSS that mirrors the blueridgeruby.com
 * styling. The HTML uses the same Tailwind-style class names
 * the real site uses, so the markup is copy-paste compatible.
 * Only the specific utilities used on that page are defined.
 * ============================================================ */


/* ---------- Reset & base ---------------------------------- */

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

html {
  font-family: 'colfax-web', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #404040;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body { min-height: 100vh; }

img, svg { display: block; max-width: 100%; }

a {
  color: inherit;
  text-decoration: inherit;
  transition: opacity 0.15s ease;
}

a:hover { opacity: 0.85; }

button {
  font: inherit;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

p { line-height: 1.5; }

sup { font-size: 0.75em; vertical-align: super; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
  background-color: rgba(38, 114, 181, 0.08);
  color: #0C2866;
  padding: 0.125rem 0.375rem;
  border-radius: 0.125rem;
}


/* ---------- Screen-reader only ---------------------------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}


/* ---------- Sizing ---------------------------------------- */

.min-h-screen { min-height: 100vh; }

.max-w-10xl { max-width: 100rem; }
.max-w-5xl  { max-width: 64rem; }
.max-w-2xl  { max-width: 42rem; }

.h-5 { height: 1.25rem; }
.w-5 { width: 1.25rem; }
.h-6 { height: 1.5rem; }
.w-6 { width: 1.5rem; }


/* ---------- Margin & padding ------------------------------ */

.mx-auto { margin-left: auto; margin-right: auto; }

.mr-0\.5 { margin-right: 0.125rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-12 { margin-bottom: 3rem; }

.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }

.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.pb-32 { padding-bottom: 8rem; }

.p-2 { padding: 0.5rem; }


/* ---------- Display & flex -------------------------------- */

.block { display: block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.hidden { display: none; }

.flex-col { flex-direction: column; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

.shrink-0 { flex-shrink: 0; }

.gap-x-3 { column-gap: 0.75rem; }
.gap-x-4 { column-gap: 1rem; }
.gap-y-2 { row-gap: 0.5rem; }


/* ---------- Typography ------------------------------------ */

.text-lg { font-size: 1.125rem; line-height: 1.5; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }

/* Arbitrary sizes used on the real site */
.text-hero { font-size: 2.375rem; }      /* 38px — main page title */
.text-section { font-size: 1.75rem; }    /* 28px — section heading */

.text-center { text-align: center; }
.text-right { text-align: right; }

.font-medium { font-weight: 500; }

.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

.underline { text-decoration: underline; }


/* ---------- Colors (from the real site) ------------------- */

.text-blue  { color: #2672B5; }
.text-navy  { color: #0C2866; }
.text-gray  { color: #404040; }
.text-white { color: #ffffff; }

/* Red register button — exact gradient from the real site */
.bg-red-gradient {
  background: linear-gradient(to top, #C41C1C, #DD423E);
}


/* ---------- Borders, shadows, cursors --------------------- */

.rounded-sm { border-radius: 0.125rem; }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.cursor-pointer { cursor: pointer; }

.focus\:outline-hidden:focus { outline: none; }


/* ---------- List utilities -------------------------------- */

.list-disc {
  list-style: disc;
  padding-left: 1.5rem;
}


/* ---------- Spacing between children (space-y-*) ---------- */

.space-y-8 > * + * { margin-top: 2rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }


/* ---------- Page backgrounds (from the real site) --------- */

.bg-ridge {
  background-color: #ffffff;
  background-image: url("/images/ridge.jpg");
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: 50% 100%;
}

.bg-mountains {
  background-color: #ffffff;
  background-image:
    linear-gradient(to top, transparent, #ffffff),
    linear-gradient(to bottom, transparent, #0C2866),
    url("/images/mountains.jpg"),
    linear-gradient(to bottom, #ffffff 0% 50%, #0C2866 50% 100%);
  background-repeat: no-repeat;
  background-size: 100% 100px, 100% 100px, 1800px auto, 100% 100%;
  background-position: 50% 0%, 50% 100%, 50% 50%, 50% 0%;
}

@media (min-width: 550px) {
  .bg-mountains {
    background-position: 50% 0%, 50% 100%, 50% 100%, 50% 0%;
  }
}


/* ---------- Content styles for <hr> inside prose ---------- */

hr {
  border: 0;
  border-top: 1px solid #d9dee1;
}


/* ============================================================
 * Responsive utilities
 * sm: 640px   md: 768px   lg: 1024px
 * ============================================================ */

@media (min-width: 640px) {
  .sm\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
}

@media (min-width: 768px) {
  .md\:block { display: block; }
  .md\:flex-row { flex-direction: row; }
  .md\:justify-between { justify-content: space-between; }
  .md\:items-center { align-items: center; }
  .md\:text-right { text-align: right; }
  .md\:text-hero { font-size: 2.375rem; }
  .md\:leading-tight { line-height: 1.25; }
}

@media (min-width: 1024px) {
  .lg\:block { display: block; }
  .lg\:hidden { display: none; }
}


/* ============================================================
 * App extensions — schedule, plan, auth, admin
 * ============================================================ */


/* ---------- Extra utilities -------------------------------- */

.max-w-md { max-width: 28rem; }
.max-w-xl { max-width: 36rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }

.w-full { width: 100%; }

.mt-1 { margin-top: 0.25rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-16 { margin-bottom: 4rem; }

.ml-2 { margin-left: 0.5rem; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }

.pt-4 { padding-top: 1rem; }

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-12 > * + * { margin-top: 3rem; }

.grid { display: grid; }
.inline-block { display: inline-block; }

.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-xs { font-size: 0.75rem;  line-height: 1rem; }
.text-xl { font-size: 1.25rem;  line-height: 1.75rem; }

.font-bold     { font-weight: 700; }
.font-semibold { font-weight: 600; }

.uppercase     { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.025em; }
.italic        { font-style: italic; }
.truncate      { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.text-blue-dark  { color: #1d5a94; }
.text-red        { color: #C41C1C; }
.text-muted      { color: #6b7280; }
.text-green-dark { color: #166534; }
.text-red-dark   { color: #991b1b; }

.bg-white     { background-color: #ffffff; }
.bg-gray-50   { background-color: #f9fafb; }
.bg-gray-100  { background-color: #f3f4f6; }
.bg-gray-200  { background-color: #e5e7eb; }
.bg-navy      { background-color: #0C2866; }
.bg-blue      { background-color: #2672B5; }
.bg-green-50  { background-color: #f0fdf4; }
.bg-red-50    { background-color: #fef2f2; }

.border-gray    { border: 1px solid #d9dee1; }
.border-navy    { border: 1px solid #0C2866; }
.border-t-gray  { border-top: 1px solid #e5e7eb; }

.rounded      { border-radius: 0.25rem; }
.rounded-md   { border-radius: 0.375rem; }
.rounded-lg   { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }
.shadow       { box-shadow: 0 1px 3px 0 rgba(0,0,0,.1), 0 1px 2px -1px rgba(0,0,0,.1); }


/* ---------- Day anchor nav (Wed / Thu / Fri / Sat) -------- */

.day-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 3rem;
}

.day-nav a {
  display: inline-block;
  padding: 0.375rem 1rem;
  border: 1px solid #d9dee1;
  border-radius: 999px;
  color: #2672B5;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.day-nav a:hover {
  background-color: #f4f7fa;
  border-color: #2672B5;
  opacity: 1;
}


/* ---------- Schedule day sections ------------------------- */

.schedule-day {
  padding-top: 2rem;
  border-top: 1px solid #d9dee1;
}

.schedule-day + .schedule-day {
  margin-top: 3rem;
}

.schedule-day__header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .schedule-day__header {
    flex-direction: row;
    align-items: baseline;
    gap: 1rem;
  }
}

.schedule-day__label {
  font-size: 1.75rem;
  font-weight: 500;
  color: #0C2866;
  line-height: 1.1;
}

.schedule-day__date {
  font-size: 1.125rem;
  color: #404040;
}

.schedule-day__subtitle {
  font-size: 0.95rem;
  color: #7a8189;
  font-style: italic;
}


/* ---------- Schedule item rows ---------------------------- */

.schedule-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: start;
  gap: 1rem;
  padding: 1.125rem 0;
  border-top: 1px solid #edeff1;
}

.schedule-item:first-child {
  border-top: 0;
}

.schedule-item--flexible {
  border-top: 1px dashed #c8cdd1;
}

.schedule-item--flexible + .schedule-item--flexible {
  border-top: 1px dashed #c8cdd1;
}

.schedule-item__time {
  font-size: 0.9375rem;
  color: #404040;
  font-variant-numeric: tabular-nums;
  padding-top: 0.125rem;
}

.schedule-item--flexible .schedule-item__time {
  color: #7a8189;
  font-style: italic;
}

.schedule-item__content {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.schedule-item__title {
  font-size: 1.125rem;
  font-weight: 500;
  color: #0C2866;
  line-height: 1.3;
}

.schedule-item__talk-title {
  font-size: 1rem;
  color: #404040;
  line-height: 1.4;
}

.schedule-item__location {
  font-size: 0.875rem;
  color: #7a8189;
}

.schedule-item__description {
  font-size: 0.9375rem;
  color: #404040;
  line-height: 1.5;
  margin-top: 0.125rem;
}

.schedule-item__badges {
  display: flex;
  gap: 0.375rem;
  margin-top: 0.125rem;
  flex-wrap: wrap;
}


/* ---------- Type badges ----------------------------------- */

.item-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.125rem 0.5rem;
  border-radius: 0.125rem;
  line-height: 1.5;
}

.item-badge--talk {
  background-color: #0C2866;
  color: #ffffff;
}

.item-badge--social {
  background-color: #FEF3C7;
  color: #8A5A00;
}

.item-badge--logistics {
  background-color: #EEF1F4;
  color: #525C66;
}

.item-badge--activity {
  background-color: #FDE8E8;
  color: #C41C1C;
}

.item-badge--lightning {
  background-color: #FEF9C3;
  color: #8A6500;
}

.item-badge--embassy {
  background-color: #DCEBF5;
  color: #1E5A8A;
}

.item-badge--custom {
  background-color: transparent;
  color: #C41C1C;
  border: 1px solid #C41C1C;
  padding: 0.0625rem 0.4375rem;
}

.item-badge--public {
  background-color: #E6F4EC;
  color: #1F6B45;
}

.item-badge--private {
  background-color: transparent;
  color: #525C66;
  border: 1px solid #c8cdd1;
  padding: 0.0625rem 0.4375rem;
}

.item-badge--tbd {
  background-color: transparent;
  color: #7a8189;
  border: 1px dashed #c8cdd1;
  padding: 0.0625rem 0.4375rem;
}


/* ---------- Add-to-plan button ---------------------------- */

.add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.375rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #C41C1C;
  background-color: transparent;
  border: 1px solid #C41C1C;
  border-radius: 0.125rem;
  min-width: 72px;
  line-height: 1.2;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.add-btn:hover {
  background-color: #fdf2f2;
}

.add-btn--added {
  color: #ffffff;
  background: linear-gradient(to top, #C41C1C, #DD423E);
  border-color: #C41C1C;
}

.add-btn--added:hover {
  opacity: 0.92;
  background: linear-gradient(to top, #C41C1C, #DD423E);
}

.add-btn__check {
  display: inline-block;
  font-size: 0.9rem;
  line-height: 1;
}


/* ---------- Plan page ------------------------------------- */

.plan-intro {
  text-align: center;
  font-size: 1.0625rem;
  color: #404040;
  margin-bottom: 2rem;
}


/* ---- Travel section ---- */

.travel-section {
  background-color: #f7f9fb;
  border: 1px solid #e3e7eb;
  border-radius: 0.375rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 3rem;
}

.travel-section__title {
  font-size: 0.75rem;
  font-weight: 500;
  color: #0C2866;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.travel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .travel-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

.field-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .field-grid-3 {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.travel-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.travel-row label {
  font-size: 0.8125rem;
  color: #7a8189;
  font-weight: 500;
}

.travel-row input {
  font: inherit;
  color: #0C2866;
  padding: 0.5rem 0.625rem;
  border: 1px solid #d9dee1;
  border-radius: 0.25rem;
  background-color: #ffffff;
  font-weight: 500;
}

.travel-row input:focus {
  outline: 2px solid rgba(38, 114, 181, 0.3);
  outline-offset: 1px;
  border-color: #2672B5;
}


/* ---- Plan day sections ---- */

.plan-day {
  padding-top: 2rem;
  border-top: 1px solid #d9dee1;
}

.plan-day + .plan-day {
  margin-top: 2.5rem;
}

.plan-day__header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.plan-day__label {
  font-size: 1.375rem;
  font-weight: 500;
  color: #0C2866;
}

.plan-day__date {
  font-size: 0.9375rem;
  color: #7a8189;
}


/* ---- Plan items (cards) ---- */

.plan-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.plan-item {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 1rem;
  padding: 1rem 1.125rem;
  background-color: #ffffff;
  border: 1px solid #d9dee1;
  border-radius: 0.375rem;
  transition: box-shadow 0.15s ease;
}

.plan-item:hover {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.plan-item--custom {
  border-left: 3px solid #C41C1C;
}

.plan-item__time {
  font-size: 0.9375rem;
  color: #404040;
  font-variant-numeric: tabular-nums;
  padding-top: 0.1875rem;
}

.plan-item__content {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.plan-item__title {
  font-size: 1.0625rem;
  font-weight: 500;
  color: #0C2866;
  line-height: 1.3;
}

.plan-item__talk-title {
  font-size: 0.9375rem;
  color: #404040;
}

.plan-item__location {
  font-size: 0.8125rem;
  color: #7a8189;
}

.plan-item__description {
  font-size: 0.875rem;
  color: #404040;
  line-height: 1.5;
  margin-top: 0.125rem;
}

.plan-item__notes {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: #525C66;
  font-style: italic;
  margin-top: 0.125rem;
}

.plan-item__notes::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-left: 2px solid #C41C1C;
  margin-right: 0.125rem;
}

.plan-item__note-add {
  font-size: 0.8125rem;
  color: #2672B5;
  font-style: normal;
  margin-top: 0.125rem;
  cursor: pointer;
}

.plan-item__remove {
  align-self: start;
  color: #b4bbc1;
  font-size: 1.125rem;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.plan-item__remove:hover {
  color: #C41C1C;
  background-color: #fdf2f2;
}


/* ---- Custom block + empty day ---- */

.custom-block-btn {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #7a8189;
  background-color: transparent;
  border: 1px dashed #c8cdd1;
  border-radius: 0.375rem;
  text-align: center;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.custom-block-btn:hover {
  color: #C41C1C;
  border-color: #C41C1C;
  background-color: #fdf2f2;
}

.empty-day {
  text-align: center;
  color: #7a8189;
  font-style: italic;
  padding: 1.5rem 0 0.25rem;
  font-size: 0.9375rem;
}


/* ---- Responsive: tighten grid on mobile ---- */

@media (max-width: 480px) {
  .schedule-item,
  .plan-item {
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 0.625rem;
  }

  .schedule-item__time,
  .plan-item__time {
    font-size: 0.875rem;
  }

  .add-btn {
    min-width: 0;
    padding: 0.375rem 0.625rem;
    font-size: 0.8125rem;
  }
}


/* ============================================================
 * Auth + admin UI components
 * ============================================================ */


/* ---------- Card ------------------------------------------ */

.card {
  background: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1);
  padding: 2rem;
}

.card-compact { padding: 1.5rem; }

/* ---------- Error pages ---------------------------------- */

.error-code {
  font-size: 6rem;
  font-weight: 500;
  color: #0C2866;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

/* Subtle panel that groups a long list of cards as one visual unit.
   Used on the admin user show page around "On their plan". */
.panel {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.5rem;
}

/* Sub-heading label inside a .panel — reads as a divider, not a
   competing section header. */
.panel-day-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.panel-day-label .panel-day-date {
  margin-left: 0.5rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #9ca3af;
}


/* ---------- Form controls --------------------------------- */

.label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #404040;
  margin-bottom: 0.375rem;
}

.input,
.select {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  color: #111827;
  background-color: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input:focus,
.select:focus {
  outline: none;
  border-color: #2672B5;
  box-shadow: 0 0 0 3px rgba(38, 114, 181, 0.15);
}

.input::placeholder { color: #9ca3af; }


/* ---------- Buttons --------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-weight: 500;
  font-size: 1rem;
  border-radius: 0.25rem;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
  cursor: pointer;
  transition: opacity 0.15s ease;
  border: 0;
}

.btn:hover { opacity: 0.9; }

.btn-red {
  background: linear-gradient(to top, #C41C1C, #DD423E);
  color: #ffffff;
}

.btn-navy {
  background: #0C2866;
  color: #ffffff;
}

.btn-ghost {
  background: transparent;
  color: #2672B5;
  box-shadow: none;
}

.btn-ghost:hover {
  background: rgba(38, 114, 181, 0.08);
  opacity: 1;
}

.btn-muted {
  background: #e5e7eb;
  color: #374151;
}

.btn-full { width: 100%; }


/* ---------- Alerts/flash ---------------------------------- */

.alert {
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.alert-notice {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}


/* ---------- Tables ---------------------------------------- */

.table {
  width: 100%;
  background: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0,0,0,0.08);
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
}

.table th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  background: #f9fafb;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.table td {
  padding: 0.75rem 1rem;
  border-top: 1px solid #f3f4f6;
  vertical-align: middle;
}

.table tr:first-child td { border-top: 0; }


/* ---------- Role/status badges ---------------------------- */

.badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  text-transform: capitalize;
}

.badge-admin {
  background: rgba(196, 28, 28, 0.1);
  color: #991b1b;
}

.badge-volunteer {
  background: rgba(38, 114, 181, 0.12);
  color: #1d5a94;
}

.badge-attendee {
  background: #f3f4f6;
  color: #374151;
}


/* ---------- Admin nav ------------------------------------- */

.admin-nav {
  background: #0C2866;
  color: #ffffff;
  padding: 0.875rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.admin-nav a { color: #ffffff; }
.admin-nav a:hover { text-decoration: underline; }
.admin-nav .ml-auto { margin-left: auto; }

.admin-nav-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 0;
  padding: 0.375rem 0.875rem;
  border-radius: 0.25rem;
  cursor: pointer;
  font-size: 0.875rem;
}

.admin-nav-btn:hover { background: rgba(255, 255, 255, 0.2); }


/* ---------- Section heading helper ------------------------ */

.page-title {
  font-size: 1.875rem;
  font-weight: 500;
  color: #0C2866;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  color: #6b7280;
  font-size: 1rem;
  margin-bottom: 2rem;
}


/* ---------- Dashboard action grid ------------------------- */

.action-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .action-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

.action-card {
  position: relative;
  display: block;
  padding: 1.5rem 1.75rem;
  background-color: #ffffff;
  border: 1px solid #d9dee1;
  border-radius: 0.5rem;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.action-card:hover {
  border-color: #C41C1C;
  box-shadow: 0 4px 12px -4px rgba(196, 28, 28, 0.15);
  opacity: 1;
}

.action-card__title {
  font-size: 1.25rem;
  font-weight: 500;
  color: #0C2866;
  line-height: 1.25;
  padding-right: 2rem;
  margin-bottom: 0.5rem;
}

.action-card__description {
  font-size: 0.9375rem;
  color: #525C66;
  line-height: 1.45;
}

.action-card__arrow {
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  color: #C41C1C;
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 0.15s ease;
}

.action-card:hover .action-card__arrow {
  transform: translateX(2px);
}

.action-card--soon {
  background-color: #fafbfc;
  border-style: dashed;
  cursor: default;
}

.action-card--soon:hover {
  border-color: #d9dee1;
  box-shadow: none;
  opacity: 1;
}

.action-card--soon .action-card__title {
  color: #525C66;
}

.action-card--soon .action-card__description {
  color: #7a8189;
}

.action-card__badge {
  display: inline-block;
  margin-top: 0.875rem;
  padding: 0.125rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7a8189;
  background-color: #eef1f4;
  border-radius: 999px;
}

/* ============================================================
   EMBASSY (mockup)
   ============================================================ */

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.flex-1 { flex: 1 1 auto; }

/* Embassy page wrappers ------------------------------------------------ */

.embassy-doc {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  font-family: "colfax-web", "Inter", system-ui, sans-serif;
  color: #0C2866;
  position: relative;
}

.embassy-doc__header {
  text-align: center;
  margin-bottom: 2.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 3px double #0C2866;
}

.embassy-doc__title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: 2.75rem;
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: #0C2866;
  margin: 0.25rem 0;
}

.embassy-doc__subtitle {
  font-size: 1.0625rem;
  color: #404040;
  font-style: italic;
  margin-top: 0.25rem;
}

.embassy-form-code {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  color: #7a8189;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
  text-transform: none;
}

/* Section headers (form + ceremony) ------------------------------------ */

.embassy-section-header {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 1.375rem;
  color: #0C2866;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.75rem;
  padding-bottom: 0.375rem;
  border-bottom: 3px double #0C2866;
}

.embassy-section-subhead {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 1rem;
  color: #0C2866;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.5rem;
}

/* Definition list used on booking confirm + confirmation pages --------- */

.embassy-dl {
  display: grid;
  grid-template-columns: minmax(8rem, 11rem) 1fr;
  gap: 0.5rem 1rem;
  margin: 0;
  padding: 0;
}

.embassy-dl dt {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7a8189;
  font-weight: 600;
}

.embassy-dl dd {
  font-size: 0.9375rem;
  color: #0C2866;
  margin: 0;
}

/* Booking confirm actions --------------------------------------------- */

/* button_to wraps its button in a <form>, which is block-level by default.
   Forcing the wrapper to display: flex puts the Confirm button, optional
   "Change purpose" link, and Cancel link side-by-side with consistent
   spacing. */
.embassy-confirm__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.5rem;
}

.embassy-confirm__actions form { margin: 0; }

/* Booking mode picker -------------------------------------------------- */

.embassy-mode-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 720px) {
  .embassy-mode-grid { grid-template-columns: 1fr 1fr; }
}

.embassy-mode-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
  border: 2px solid #d9dee1;
  border-radius: 0.5rem;
  background: #ffffff;
  text-decoration: none;
  color: inherit;
  transition: all 0.15s ease;
}

.embassy-mode-card:hover {
  border-color: #C41C1C;
  background: #fef7f7;
  box-shadow: 0 2px 6px rgba(196, 28, 28, 0.08);
}

.embassy-mode-card__title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #0C2866;
  margin: 0;
}

.embassy-mode-card__desc {
  font-size: 0.875rem;
  color: #404040;
  line-height: 1.45;
  margin: 0;
}

.embassy-mode-card__cta {
  margin-top: 0.5rem;
  align-self: flex-end;
  font-size: 0.875rem;
  font-weight: 600;
  color: #C41C1C;
}

/* Schedule-item embassy label / capacity ------------------------------- */

.embassy-mode-label {
  font-size: 0.8125rem;
  color: #7a8189;
  font-style: italic;
  margin: 0.125rem 0 0;
  letter-spacing: 0.01em;
}

.embassy-capacity {
  font-size: 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #7a8189;
  margin: 0.375rem 0 0;
  text-align: right;
  letter-spacing: 0.04em;
}

.add-btn--disabled {
  background: #f3f4f6;
  color: #9ca3af;
  border: 1px solid #e5e7eb;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: not-allowed;
}

/* Stamping-only confirmation page -------------------------------------- */

.embassy-stamping-confirmation {
  text-align: center;
  padding: 2.5rem 2rem;
  position: relative;
}

.embassy-confirmation-seal {
  display: inline-block;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: 1.125rem;
  letter-spacing: 0.2em;
  color: #C41C1C;
  border: 3px double #C41C1C;
  padding: 0.5rem 1.25rem;
  margin-bottom: 1.5rem;
  transform: rotate(-4deg);
  text-transform: uppercase;
}

.embassy-confirmation-seal--inline {
  transform: none;
  font-size: 0.875rem;
  padding: 0.25rem 0.75rem;
  letter-spacing: 0.15em;
}

.embassy-confirmation-detail {
  font-size: 1rem;
  color: #404040;
  margin: 0.5rem 0;
}

.embassy-confirmation-time {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #0C2866;
  margin: 0.75rem 0 0.25rem;
}

.embassy-confirmation-separator {
  color: #7a8189;
  font-weight: 400;
  margin: 0 0.375rem;
}

.embassy-confirmation-location {
  font-size: 0.9375rem;
  color: #404040;
  margin: 0;
}

.embassy-etiquette { text-align: left; }
.embassy-etiquette ul { list-style: disc; padding-left: 1.5rem; font-size: 0.875rem; color: #404040; }
.embassy-etiquette li { margin: 0.25rem 0; }

/* Appointment card (shared) -------------------------------------------- */

.embassy-appointment-card {
  position: relative;
  padding: 1.5rem 1.25rem 1.25rem;
  background: #ffffff;
  border-top: 4px double #C41C1C;
  border-left: 1px solid #d9dee1;
  border-right: 1px solid #d9dee1;
  border-bottom: 1px solid #d9dee1;
  border-radius: 0 0 0.375rem 0.375rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.embassy-appointment-card__serial {
  position: absolute;
  top: 0.625rem;
  right: 0.875rem;
  font-size: 0.6875rem;
  color: #7a8189;
  letter-spacing: 0.08em;
}

.embassy-appointment-card__eyebrow {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #C41C1C;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.embassy-appointment-card__when {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0C2866;
  margin: 0 0 0.125rem;
  line-height: 1.15;
}

.embassy-appointment-card__dot {
  color: #7a8189;
  font-weight: 400;
  margin: 0 0.375rem;
}

.embassy-appointment-card__where {
  font-size: 0.9375rem;
  color: #404040;
  margin: 0 0 0.75rem;
}

.embassy-appointment-card__dl {
  display: grid;
  grid-template-columns: minmax(5rem, 7rem) 1fr;
  gap: 0.25rem 0.75rem;
  margin: 0;
  padding-top: 0.75rem;
  border-top: 1px solid #eef1f4;
}

.embassy-appointment-card__dl dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7a8189;
}

.embassy-appointment-card__dl dd {
  font-size: 0.875rem;
  color: #0C2866;
  margin: 0;
}

.embassy-appointment-card--submitted { border-top-color: #0C2866; }
.embassy-appointment-card--stamping  { border-top-color: #2672B5; }
.embassy-appointment-card--pending   { border-top-color: #C41C1C; border-top-style: dashed; }
.embassy-appointment-card--expired   { border-top-color: #7a8189; border-top-style: dashed; opacity: 0.9; }

/* Countdown pill ------------------------------------------------------- */

.embassy-countdown {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  background: #fef3c7;
  color: #8A5A00;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  margin: 0.5rem 0;
}

/* Application form canvas (and PDF canvas) ----------------------------- */

.application-canvas {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  background: #ffffff;
  color: #0C2866;
  font-family: "colfax-web", "Inter", system-ui, sans-serif;
  position: relative;
}

.application-canvas__header {
  text-align: center;
  padding-bottom: 1.25rem;
  margin-bottom: 1.75rem;
  border-bottom: 3px double #0C2866;
  position: relative;
}

.application-canvas__title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: 2.25rem;
  letter-spacing: 0.03em;
  margin: 0.25rem 0;
  color: #0C2866;
}

.application-canvas__subtitle {
  font-size: 1rem;
  color: #404040;
  font-style: italic;
  margin: 0.25rem 0 0.75rem;
}

.application-canvas__instructions {
  font-size: 0.875rem;
  color: #525C66;
  max-width: 36rem;
  margin: 1rem auto 0;
  line-height: 1.5;
  font-style: italic;
}

.application-canvas__footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 3px double #0C2866;
  position: relative;
  text-align: center;
}

.application-canvas__serial {
  position: absolute;
  right: 0;
  top: 1.5rem;
  font-size: 0.8125rem;
  color: #7a8189;
  letter-spacing: 0.08em;
}

.application-canvas__actions {
  display: inline-flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.application-canvas__footer-note {
  font-size: 0.75rem;
  font-style: italic;
  margin-top: 1rem;
  max-width: 30rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.btn-lg {
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
}

/* Form section --------------------------------------------------------- */

.embassy-section {
  margin: 2rem 0;
  padding: 1.25rem 1.25rem 1rem;
  border: 1px solid #d9dee1;
  border-top: 3px solid #0C2866;
  border-radius: 0 0 0.375rem 0.375rem;
  background: #ffffff;
}

.embassy-section__header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #eef1f4;
}

.embassy-section__number {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: #7a8189;
  text-transform: uppercase;
}

.embassy-section__title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 1.375rem;
  color: #0C2866;
  margin: 0;
  letter-spacing: 0.015em;
}

.embassy-section__instructions {
  font-size: 0.8125rem;
  color: #525C66;
  font-style: italic;
  margin: 0 0 1rem;
}

.embassy-section__questions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Question ------------------------------------------------------------- */

.embassy-question__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #0C2866;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.embassy-question__number {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #7a8189;
  margin-right: 0.375rem;
  font-size: 0.8125rem;
}

.embassy-question__required {
  color: #C41C1C;
  font-weight: 700;
  margin-left: 0.125rem;
}

.embassy-question__help {
  font-size: 0.75rem;
  color: #7a8189;
  margin: 0 0 0.375rem;
  font-style: italic;
}

.embassy-question__input {
  width: 100%;
  padding: 0.5rem 0.625rem;
  font-size: 0.9375rem;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  background: #ffffff;
  color: #0C2866;
  font-family: inherit;
}

.embassy-question__input:focus {
  outline: 2px solid #2672B5;
  outline-offset: -1px;
  border-color: #2672B5;
  box-shadow: 0 0 0 3px rgba(38, 114, 181, 0.15);
}

.embassy-question__input--long { min-height: 4.5rem; resize: vertical; }
.embassy-question__input--date { max-width: 14rem; }

.embassy-question__checkbox {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  background: #f9fafb;
  font-size: 0.875rem;
  color: #404040;
}

.embassy-question__checkbox input { margin-top: 0.25rem; }

.embassy-serial {
  font-size: 0.875rem;
  letter-spacing: 0.1em;
}

/* Ceremony page -------------------------------------------------------- */

.embassy-ceremony { display: flex; flex-direction: column; gap: 2rem; }

.embassy-ceremony__callout {
  text-align: center;
  padding: 1.5rem;
  background: #fef7f7;
  border: 1px solid #fecaca;
  border-radius: 0.375rem;
}

.embassy-ceremony__serial-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: #7a8189;
  margin: 0 0 0.375rem;
}

.embassy-ceremony__serial-value {
  font-size: 2.25rem;
  font-weight: 700;
  color: #C41C1C;
  margin: 0;
  letter-spacing: 0.08em;
}

.embassy-ceremony__serial-note {
  font-size: 0.8125rem;
  color: #525C66;
  margin: 0.5rem 0 0;
}

.embassy-ceremony__download { text-align: center; }

.embassy-ceremony__preview {
  padding: 1rem;
  background: #f9fafb;
  border: 1px dashed #d9dee1;
  border-radius: 0.375rem;
}

.embassy-ceremony__preview .application-canvas {
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #d9dee1;
}

.embassy-ceremony__back { display: flex; gap: 0.75rem; justify-content: center; }

/* Expired state -------------------------------------------------------- */

.embassy-expired {
  text-align: center;
  padding: 1.75rem 1.5rem;
  background: #f9fafb;
  border-left: 3px dashed #7a8189;
}

.embassy-expired__stamp {
  display: inline-block;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: 0.875rem;
  letter-spacing: 0.25em;
  color: #7a8189;
  border: 2px double #7a8189;
  padding: 0.375rem 0.875rem;
  margin-bottom: 1rem;
  transform: rotate(-3deg);
}

.embassy-expired__title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #0C2866;
  margin: 0 0 0.5rem;
}

.embassy-expired__body {
  font-size: 0.9375rem;
  color: #525C66;
  max-width: 32rem;
  margin: 0 auto 1rem;
  line-height: 1.5;
}

/* Plan-item embassy variant -------------------------------------------- */

.plan-item--embassy {
  display: flex;
  gap: 1rem;
  padding: 0;
  margin-bottom: 0.875rem;
  background: #ffffff;
  border: 1px solid #d9dee1;
  /* The 4px double-line stripe lives on the outer wrapper so it spans
     the full card width — including the × column. State variants below
     override border-top-color / style. */
  border-top: 4px double #C41C1C;
  border-radius: 0.375rem;
  overflow: hidden;
  transition: box-shadow 0.15s ease;
}

.plan-item--embassy:hover {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.plan-item__embassy-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.plan-item__embassy-body .embassy-appointment-card {
  /* Inner card loses all decoration — the outer .plan-item--embassy
     owns the stripe + borders. This keeps the stripe full-width across
     both the embassy-body and the × column. */
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 1.25rem 1.25rem 1rem;
}

.plan-item__embassy-action {
  padding: 0.875rem 1.25rem 1rem;
  border-top: 1px solid #eef1f4;
  background: #fbfcfd;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  align-items: flex-start;
}

.plan-item__embassy-action .btn { align-self: flex-start; }

.plan-item__embassy-note {
  font-size: 0.875rem;
  color: #525C66;
  margin: 0;
  line-height: 1.4;
}

.plan-item--embassy-expired {
  border-top-style: dashed;
  border-top-color: #7a8189;
}

.plan-item--embassy-submitted { border-top-color: #0C2866; }
.plan-item--embassy-stamping  { border-top-color: #2672B5; }
.plan-item--embassy-pending   { border-top-style: dashed; }

/* Admin question bank sections ---------------------------------------- */

.embassy-bank-section {
  margin: 2rem 0 1rem;
}

.embassy-bank-section__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.625rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eef1f4;
}

.embassy-bank-section__title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: #0C2866;
  margin: 0;
  letter-spacing: 0.02em;
}

.embassy-bank-section__hint {
  font-size: 0.8125rem;
  color: #7a8189;
  margin: 0.125rem 0 0;
  font-style: italic;
}

.badge-scope {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-radius: 999px;
  white-space: nowrap;
}

.badge-scope--common {
  background: #EEF1F4;
  color: #525C66;
}

.badge-scope--random {
  background: #fef3c7;
  color: #8A5A00;
  border: 1px solid #f6d97a;
}

.badge-scope--notary {
  background: #F3E8FF;
  color: #7E22CE;
  border: 1px solid #e3ccff;
}

.embassy-bank-category {
  font-family: "colfax-web", "Inter", system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #525C66;
  margin: 1rem 0 0.375rem;
  padding: 0.25rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  border-bottom: 1px dotted #d9dee1;
}

.embassy-bank-category__count {
  font-size: 0.75rem;
  color: #7a8189;
  font-weight: 400;
  font-style: italic;
}

/* Admin question bank badges (extras for new types) -------------------- */

.badge-short    { background: #EEF1F4; color: #525C66; }
.badge-long     { background: #EEF1F4; color: #525C66; }
.badge-select   { background: #E0ECFF; color: #2672B5; }
.badge-checkbox { background: #fef3c7; color: #8A5A00; }
.badge-date     { background: #F3E8FF; color: #7E22CE; }

/* Admin schedule-items form disclosure --------------------------------- */

.embassy-form-extras {
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  background: #fefcf7;
  border-left: 3px solid #C41C1C;
  border-radius: 0.25rem;
}

.embassy-form-extras summary {
  cursor: pointer;
  font-size: 0.875rem;
  color: #0C2866;
}

.embassy-form-extras__body {
  margin-top: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Admin serial list ---------------------------------------------------- */

.embassy-serial-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
  gap: 0.375rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.embassy-serial-list li {
  padding: 0.375rem 0.5rem;
  background: #f9fafb;
  border: 1px solid #eef1f4;
  border-radius: 0.25rem;
  font-size: 0.8125rem;
  text-align: center;
  letter-spacing: 0.06em;
  color: #0C2866;
}

/* PDF page (screen preview + print) ------------------------------------ */

.application-canvas--pdf {
  background: #ffffff;
  border: 1px solid #d9dee1;
  padding: 0;
  margin: 0 auto;
  max-width: 48rem;
}

.application-canvas--blank { margin-top: 1rem; }

.pdf-page {
  padding: 2.5rem 2.75rem 2rem;
  color: #000000;
  font-family: "colfax-web", "Inter", system-ui, sans-serif;
  min-height: 55rem;
  position: relative;
}

.pdf-page__header {
  padding-bottom: 1rem;
  border-bottom: 2px double #000000;
  margin-bottom: 1.5rem;
}

.pdf-page__header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.pdf-page__form-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.6875rem;
  line-height: 1.3;
  color: #000000;
  letter-spacing: 0.04em;
}

.pdf-page__title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: 1.875rem;
  letter-spacing: 0.15em;
  margin: 0;
  text-align: center;
  color: #000000;
}

.pdf-page__subtitle {
  font-size: 0.9375rem;
  font-style: italic;
  text-align: center;
  margin: 0.25rem 0 0.75rem;
  color: #000000;
}

.pdf-page__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem 1rem;
  margin: 0.5rem 0 0;
}

.pdf-page__meta dt {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #000000;
  margin: 0;
}

.pdf-page__meta dd {
  font-size: 0.8125rem;
  color: #000000;
  margin: 0;
  border-bottom: 1px solid #000000;
  padding-bottom: 0.125rem;
}

.embassy-stamp {
  width: 72px;
  height: 72px;
  color: #000000;
  flex-shrink: 0;
}

.pdf-section {
  margin-bottom: 1.25rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid #000000;
  page-break-inside: avoid;
}

.pdf-section__title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #000000;
  margin: 0 0 0.625rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #000000;
}

.pdf-q {
  display: flex;
  align-items: flex-start;
  gap: 0.375rem;
  padding: 0.375rem 0;
  border-bottom: 1px dotted #000000;
}

.pdf-q:last-child { border-bottom: none; }

.pdf-q__id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: #000000;
  min-width: 1.75rem;
}

.pdf-q__body { flex: 1; min-width: 0; }

.pdf-q__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.125rem;
  color: #000000;
}

.pdf-q__answer {
  font-size: 0.875rem;
  color: #000000;
  min-height: 1.25rem;
  border-bottom: 1px solid #000000;
  padding: 0.125rem 0.25rem;
}

.pdf-q__answer--blank { min-height: 1.5rem; border-bottom: 1px solid #000000; }
.pdf-q__answer--long  { display: block; min-height: 2.5rem; line-height: 1.4; }

.pdf-signature {
  margin: 1.5rem 0 1rem;
  padding-top: 0.75rem;
  border-top: 2px solid #000000;
}

.pdf-signature__row {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.pdf-signature__line {
  border-bottom: 1px solid #000000;
  min-height: 1.75rem;
  padding: 0 0.5rem;
  display: flex;
  align-items: flex-end;
}

.pdf-signature__signature {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 1rem;
  color: #000000;
}

.pdf-signature__date {
  border-bottom: 1px solid #000000;
  min-height: 1.75rem;
  padding: 0 0.5rem;
  display: flex;
  align-items: flex-end;
}

.pdf-signature__datevalue {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8125rem;
}

.pdf-signature__captions {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 1rem;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #000000;
  padding: 0 0.5rem;
}

.pdf-page__footer {
  position: absolute;
  bottom: 1.25rem;
  left: 2.75rem;
  right: 2.75rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 0.5rem;
  border-top: 1px solid #000000;
  font-size: 0.6875rem;
  color: #000000;
  letter-spacing: 0.05em;
}

.pdf-page__serial {
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  font-weight: 700;
}

/* Checkbox group (multi-select on form) ------------------------------- */

.embassy-question__group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  background: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
}

@media (min-width: 560px) {
  .embassy-question__group { grid-template-columns: 1fr 1fr; }
}

.embassy-question__group-option {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #404040;
  cursor: pointer;
}

.embassy-question__group-option input { margin-top: 0.25rem; flex-shrink: 0; }

/* PDF-rendered checkbox group ----------------------------------------- */

.pdf-q__checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.125rem 1rem;
}

.pdf-q__checklist li {
  font-size: 0.8125rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #000000;
  line-height: 1.5;
}

/* Notary page (PDF addendum) ------------------------------------------ */

.pdf-page--notary { padding-top: 2rem; }

.pdf-notary__preamble {
  font-size: 0.875rem;
  color: #000000;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.pdf-notary__assignment {
  margin: 1rem 0 1.5rem;
  padding: 1rem 1.25rem;
  border: 2px solid #000000;
  background: #ffffff;
}

.pdf-notary__preface {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #000000;
  margin: 0 0 0.375rem;
}

.pdf-notary__description {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: #000000;
  margin: 0;
  letter-spacing: 0.01em;
}

.pdf-notary__followups { margin-bottom: 1.75rem; }

.pdf-q--notary .pdf-q__answer--blank {
  min-height: 1.75rem;
  border-bottom: 1px solid #000000;
}

.pdf-notary__certification {
  margin-top: 1.5rem;
  padding-top: 0.75rem;
  border-top: 2px double #000000;
}

.pdf-notary__field {
  display: grid;
  grid-template-columns: 8rem 1fr;
  align-items: end;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
}

.pdf-notary__field-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #000000;
}

.pdf-notary__field-line {
  border-bottom: 1px solid #000000;
  min-height: 1.5rem;
}

/* Print media: strip nav/chrome so Print Preview shows only the PDF ---- */

@media print {
  body { background: #ffffff !important; }

  /* Hide ALL page chrome. The ceremony page, admin detail page, and
     blank-pdf preview all wrap the PDF inside .application-canvas--pdf;
     @media print keeps only that and hides everything else. */
  .admin-nav, nav, header, footer,
  .embassy-doc__header,
  .embassy-ceremony > .embassy-appointment-card,
  .embassy-ceremony__callout,
  .embassy-ceremony__download,
  .embassy-ceremony__etiquette,
  .embassy-ceremony__back,
  .embassy-ceremony__preview > h2,
  .embassy-ceremony__preview > p,
  .flex.items-center.justify-between,  /* admin page h1 + actions row */
  .btn, .alert { display: none !important; }

  .application-canvas,
  .application-canvas--pdf {
    border: none !important;
    box-shadow: none !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .embassy-ceremony__preview {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .embassy-ceremony__preview .application-canvas {
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
  }

  .pdf-page {
    page-break-after: always;
    padding: 1rem 1.25rem;
    min-height: auto;
  }
  .pdf-page--notary { page-break-before: always; }
}

