/* ============================================================
 * 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%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

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-10 { margin-bottom: 2.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; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.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;
  column-gap: 1rem;
  margin: 0 0 2.5rem;
}

.day-nav a {
  padding: 0.5rem;
  color: #2672B5;
  font-weight: 500;
  text-decoration: underline;
}


/* ---------- Kind filter pills ----------------------------- */

.kind-filter {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 2rem;
}

.kind-filter__label {
  font-size: 0.95rem;
  font-weight: 500;
  color: #7a8189;
  margin-right: 0.25rem;
}

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

.kind-filter__btn:hover {
  background-color: #f4f7fa;
  border-color: #2672B5;
  opacity: 1;
}

.kind-filter__btn--active {
  background-color: #0C2866;
  border-color: #0C2866;
  color: #ffffff;
}

.kind-filter__btn--active:hover {
  background-color: #0C2866;
  border-color: #0C2866;
  color: #ffffff;
}

.kind-filter__btn--new-events {
  color: #962820;
  border-color: #cc4e46;
}

.kind-filter__btn--new-events:hover {
  background-color: #fdecea;
  border-color: #962820;
  color: #962820;
}

.kind-filter__btn--new-events.kind-filter__btn--active {
  background-color: #962820;
  border-color: #962820;
  color: #ffffff;
}

.kind-filter__btn--new-events.kind-filter__btn--active:hover {
  background-color: #cc4e46;
  border-color: #cc4e46;
  color: #ffffff;
}


/* ---------- Schedule day sections (blueridgeruby.com style) -- */

.schedule-day {
  margin-bottom: 5rem;
}

.schedule-day__heading {
  font-size: 1.75rem;
  font-weight: 500;
  color: #0C2866;
  text-align: center;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.schedule-day__heading sup {
  font-size: 0.6em;
  vertical-align: super;
  margin-left: 0.05em;
}

.schedule-day__items {
  border-top: 4px solid #0C2866;
  padding-top: 0.25rem;
}


/* ---------- 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__host {
  font-size: 1rem;
  color: #404040;
  line-height: 1.4;
}

.schedule-item__host a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.schedule-item__host a:hover {
  color: #C41C1C;
}

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

.schedule-item__location a,
.plan-item__location a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.schedule-item__location a:hover,
.plan-item__location a:hover {
  color: #C41C1C;
}

.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--meal {
  background-color: #FEF3C7;
  color: #8A5A00;
}

.item-badge--reception {
  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--community {
  background-color: #E6F4EC;
  color: #1F6B45;
}

.item-badge--volunteer {
  background-color: #FFEDD5;
  color: #9A3412;
}

.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--presenting {
  background-color: #FEF9C3;
  color: #8A6500;
  border: 1px solid #E0C97A;
  padding: 0.0625rem 0.4375rem;
  font-weight: 600;
}

.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;
  }
}

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

@media (min-width: 640px) {
  .field-grid-2 {
    grid-template-columns: 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; }

/* Horizontal scroll wrapper for wide tables on narrow screens.
   The table inside keeps width: 100% but expands beyond the wrapper
   when its content min-width exceeds the available space — at which
   point overflow-x lets the user swipe through it. */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0,0,0,0.08);
}

.table-scroll .table {
  box-shadow: none;
  border-radius: 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); }

/* Burger button for the admin nav — only renders below the lg breakpoint
   (≤1023.98px). On desktop it's display:none and stays out of the way so
   the original navbar layout is byte-identical to pre-mobile-work. */
.admin-nav__burger {
  display: none;
  background: none;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  padding: 0.25rem;
  margin-left: auto;
}

.admin-nav__drawer {
  background: #0C2866;
  color: #ffffff;
  padding: 0.5rem 2rem 1rem;
}

.admin-nav__drawer a,
.admin-nav__drawer .nav-disabled {
  display: block;
  padding: 0.5rem 0;
  color: #ffffff;
}

.admin-nav__drawer a:hover { text-decoration: underline; }

.admin-nav__drawer > div { padding-top: 0.5rem; }

@media (max-width: 1023.98px) {
  /* Hide every admin-nav child except the brand (first) and the burger so
     the navy bar collapses to brand + burger. The drawer below the nav
     reveals the full link list when toggled. */
  .admin-nav { padding: 0.875rem 1.25rem; gap: 0.75rem; }
  .admin-nav > *:not(:first-child):not(.admin-nav__burger) { display: none; }
  .admin-nav__burger { display: inline-flex; }
}

@media (min-width: 1024px) {
  /* Drawer is mobile-only; never reveal it on desktop even if toggled. */
  .admin-nav__drawer { display: none !important; }
}


/* ---------- 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);
}

/* Tighter variant for dense dashboards — title only, no description */
.action-card--compact {
  padding: 0.875rem 1.125rem;
}
.action-card--compact .action-card__title {
  font-size: 1rem;
  margin-bottom: 0;
  padding-right: 0;
}

.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;
}

/* Volunteer/admin "Volunteers Needed" hero — sits above the grid */
.action-card--hero {
  background-color: #C41C1C;
  border-color: #C41C1C;
  padding: 1.75rem 2rem;
}

.action-card--hero:hover {
  border-color: #0C2866;
  box-shadow: 0 6px 20px -6px rgba(196, 28, 28, 0.45);
}

.action-card--hero .action-card__title {
  color: #ffffff;
  font-size: 1.5rem;
}

.action-card--hero .action-card__description {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  max-width: 56ch;
}

.action-card--hero .action-card__arrow {
  color: #ffffff;
  top: 1.75rem;
  right: 2rem;
}

/* ============================================================
   ADMIN DASHBOARD STAT CARDS
   ============================================================ */

.stat-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.stat-card__label {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  font-weight: 600;
}

.stat-card__value {
  font-family: "Playfair Display", serif;
  font-size: 2.25rem;
  line-height: 1.1;
  color: #0C2866;
  margin-top: 0.25rem;
}

.stat-card__sub {
  font-size: 0.8125rem;
  color: #6b7280;
  margin-top: 0.5rem;
}

/* Disabled "coming soon" item inside the admin navbar */
.admin-nav .nav-disabled {
  color: rgba(255, 255, 255, 0.55);
  cursor: not-allowed;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-nav .nav-soon {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
}

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

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

.flex-1 { flex: 1 1 auto; }
.whitespace-nowrap { white-space: nowrap; }

/* Sortable column header — used by app/helpers/application_helper.rb#sort_link */
.table th a { color: inherit; text-decoration: none; }
.table th a:hover { text-decoration: underline; }
.table th .sort-active,
.table th a.sort-active { color: #0C2866; font-weight: 700; }

/* 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;
}

/* Admin: embassy application — interview view ------------------------- */
/* Dense single-page layout. The attaché scans down a tight 3-column grid
   (label / question / answer), so each Q&A occupies one or two lines. */

.qa-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
}

.qa-header__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0C2866;
  margin: 0;
}

.qa-header__sub {
  font-size: 0.8125rem;
  color: #6b7280;
  margin: 0.125rem 0 0;
}

.qa-header__sub strong { color: #0C2866; }

.qa-header__actions {
  display: flex;
  gap: 0.375rem;
}

.qa-header__actions .btn {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}

/* Compact info strip — notary + pool draw on one row */
.qa-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: #fffaf0;
  border: 1px solid #e6d3a3;
  border-left: 4px solid #c89b3c;
  border-radius: 0.25rem;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.qa-strip__cell {
  flex: 1 1 18rem;
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  min-width: 0;
}

.qa-strip__label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a6d2a;
  white-space: nowrap;
}

.qa-strip__value {
  color: #0C2866;
  min-width: 0;
  word-wrap: break-word;
}

/* Section block */
.qa-section {
  margin-bottom: 1.25rem;
}

.qa-section__head {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0 0 0.25rem;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid #0C2866;
  font-family: "Playfair Display", Georgia, serif;
}

.qa-section__num {
  font-size: 0.75rem;
  font-weight: 700;
  color: #6b7280;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.qa-section__title {
  font-size: 1rem;
  font-weight: 700;
  color: #0C2866;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.qa-section__badge {
  margin-left: auto;
  display: inline-block;
  padding: 0.1875rem 0.625rem;
  background: #fbbf24;
  color: #78350f;
  border-radius: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Section 3 — randomized pool gets a distinct background tint
   and a thicker yellow accent so the eye lands on it instantly. */
.qa-section--pool {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: 0.375rem;
  padding: 0.625rem 0.875rem 0.5rem;
  margin: 1.25rem 0;
}

.qa-section--pool .qa-section__head {
  border-bottom-color: #f59e0b;
}

/* One Q&A row: label · question · answer */
.qa-row {
  display: grid;
  grid-template-columns: 2.25rem minmax(10rem, 17rem) 1fr;
  gap: 0.5rem 0.75rem;
  align-items: baseline;
  padding: 0.4rem 0.25rem;
  border-bottom: 1px solid #f1f3f5;
  font-size: 0.875rem;
  line-height: 1.4;
}

.qa-row:last-child { border-bottom: none; }

.qa-row__num {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  background: #0C2866;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  align-self: center;
  justify-self: start;
}

.qa-section--pool .qa-row__num {
  background: #f59e0b;
  color: #78350f;
}

.qa-row__q {
  font-size: 0.8125rem;
  color: #4b5563;
  font-weight: 500;
}

.qa-row__a {
  color: #111827;
  font-weight: 500;
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.qa-row__a p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #111827;
}

.qa-row__a p + p { margin-top: 0.25rem; }

.qa-blank {
  font-style: italic;
  color: #9ca3af;
  font-size: 0.8125rem;
}

.qa-pills {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.qa-pill {
  display: inline-block;
  padding: 0.0625rem 0.5rem;
  background: #e0e7ff;
  color: #1e3a8a;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
}

.qa-affirm {
  color: #047857;
  font-weight: 700;
}

.qa-decline {
  color: #b91c1c;
  font-weight: 700;
}

/* On narrow screens the question column gets too cramped; stack instead. */
@media (max-width: 640px) {
  .qa-row {
    grid-template-columns: 2.25rem 1fr;
  }
  .qa-row__q { grid-column: 2; }
  .qa-row__a { grid-column: 2; }
}

/* 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;
}

/* Volunteer slot capacity states --------------------------------------- */

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

.volunteer-capacity--empty {
  color: #b91c1c;
  font-weight: 600;
}

.volunteer-capacity--partial {
  color: #9A3412;
}

.volunteer-capacity--full {
  color: #7a8189;
}

.schedule-item.schedule-item--volunteer-empty {
  border-left: 4px solid #b91c1c;
  background: #fef2f2;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Admin tabs ----------------------------------------------------------- */

.admin-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 1.5rem;
}

.admin-tab {
  padding: 0.5rem 1rem;
  color: #6b7280;
  text-decoration: none;
  font-size: 0.9375rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.admin-tab:hover {
  color: #1e3a8a;
  opacity: 1;
}

.admin-tab--active {
  color: #1e3a8a;
  border-bottom-color: #1e3a8a;
  font-weight: 600;
}

.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; }
.embassy-appointment-card--ready {
  border-top-color: #16A34A;
  background-color: #F0FDF4;
  box-shadow: 0 0 0 2px #BBF7D0 inset;
}

.embassy-ready-badge,
.embassy-processing-badge,
.embassy-received-badge {
  display: inline-block;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.embassy-ready-badge      { background: #16A34A; }
.embassy-processing-badge { background: #CA8A04; }
.embassy-received-badge   { background: #1E3A8A; }

.btn-green {
  background: #16A34A;
  color: #fff;
  border-color: #15803D;
}
.btn-green:hover { background: #15803D; }

/* Notary callout ------------------------------------------------------- */

.embassy-notary-callout {
  margin: 0;
  padding: 0.875rem 1.125rem;
  background: #fffbeb;
  border-left: 3px solid #C41C1C;
  border-radius: 0 0.375rem 0.375rem 0;
}

.embassy-notary-callout__eyebrow {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #C41C1C;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.embassy-notary-callout__id {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: #6B4220;
  text-transform: none;
  font-weight: 500;
}

.embassy-notary-callout__dl {
  display: grid;
  grid-template-columns: minmax(6.5rem, 8rem) 1fr;
  gap: 0.375rem 0.875rem;
  margin: 0;
}

.embassy-notary-callout__dl dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7a8189;
  align-self: start;
  padding-top: 0.125rem;
}

.embassy-notary-callout__dl dd {
  font-size: 0.9375rem;
  color: #0C2866;
  margin: 0;
  line-height: 1.45;
}

@media (max-width: 480px) {
  .embassy-notary-callout__dl {
    grid-template-columns: 1fr;
    gap: 0.125rem 0;
  }
  .embassy-notary-callout__dl dt {
    padding-top: 0.5rem;
  }
  .embassy-notary-callout__dl dt:first-child {
    padding-top: 0;
  }
}

/* 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; }

/* Organizer note ------------------------------------------------------- */

.organizer-note {
  margin-top: 1.25rem;
  padding: 1.5rem 1.75rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.organizer-note__heading {
  font-size: 1.125rem;
  font-weight: 600;
  color: #6B4220;
  margin: 0;
}

.organizer-note p {
  margin: 0;
  color: #525C66;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.organizer-note__list {
  list-style: disc;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: #525C66;
  font-size: 0.9375rem;
}

.organizer-note__list li { line-height: 1.55; }

.organizer-note__signoff {
  font-style: italic;
}

/* 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;
  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;
  flex-wrap: wrap;
  gap: 0.75rem 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,
  .organizer-note,
  .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; }
}


/* ---------- Lightning talk slots --------------------------- */

.lightning-slots {
  margin-top: 0.75rem;
  border-top: 1px dashed #e6e8eb;
  padding-top: 0.5rem;
}

.lightning-slots__summary {
  font-size: 0.875rem;
  color: #525C66;
  cursor: pointer;
  list-style: none;
  padding: 0.375rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lightning-slots__summary::-webkit-details-marker { display: none; }

.lightning-slots__count { color: #525C66; }

.lightning-slots__toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: #C41C1C;
  font-weight: 500;
}

.lightning-slots__chevron {
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid #C41C1C;
  transition: transform 0.15s ease;
}

.lightning-slots[open] .lightning-slots__chevron {
  transform: rotate(90deg);
}

.lightning-slots__toggle-label { text-decoration: underline; }
.lightning-slots__toggle-label--open { display: none; }
.lightning-slots[open] .lightning-slots__toggle-label--closed { display: none; }
.lightning-slots[open] .lightning-slots__toggle-label--open { display: inline; }

.lightning-slots__list {
  list-style: none;
  padding: 0.5rem 0 0 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.lightning-slot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.375rem 0.5rem;
  border-radius: 0.375rem;
  background-color: #FAFAF6;
  font-size: 0.875rem;
  line-height: 1.4;
}

.lightning-slot--open { color: #8a8f96; font-style: italic; }

.lightning-slot__position { font-weight: 600; min-width: 1.75rem; color: #525C66; }
.lightning-slot__time     { color: #1F6B45; font-variant-numeric: tabular-nums; min-width: 4.5rem; }
.lightning-slot__speaker  { font-weight: 500; color: #1f242a; }
.lightning-slot__talk-title { font-style: italic; color: #1f242a; }
.lightning-slot__talk-description { color: #525C66; flex-basis: 100%; padding-left: 6.5rem; }
.lightning-slot__slides   { color: #C41C1C; text-decoration: underline; }
.lightning-slot__edit     { color: #C41C1C; font-size: 0.8125rem; margin-left: auto; }
.lightning-slot__open-label { color: #8a8f96; }

.schedule-item__action--lightning {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.375rem;
  min-width: 130px;
}

.schedule-item__action--lightning > form,
.schedule-item__action--lightning > .add-btn,
.schedule-item__action--lightning > form > .add-btn {
  width: 100%;
}

/* ---------- Admin speakers list (drag-to-reorder) ---------- */

.speakers-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.speakers-list__item {
  display: grid;
  grid-template-columns: auto 2.5rem 5rem 1fr 2fr auto auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background-color: #FAFAF6;
  border: 1px solid #e6e8eb;
  border-radius: 0.375rem;
  cursor: grab;
}

.speakers-list__item.is-dragging { opacity: 0.4; }
.speakers-list__handle   { color: #c8cdd1; cursor: grab; user-select: none; }
.speakers-list__position { font-weight: 600; color: #525C66; }
.speakers-list__time     { color: #1F6B45; font-variant-numeric: tabular-nums; }
.speakers-list__name     { font-weight: 500; color: #1f242a; }
.speakers-list__title    { color: #525C66; font-size: 0.9375rem; }
.speakers-list__slides a        { color: #C41C1C; font-weight: 600; text-decoration: underline; white-space: nowrap; }
.speakers-list__slides--missing { color: #9aa1a8; font-style: italic; font-size: 0.875rem; white-space: nowrap; }

.btn-small { padding: 0.25rem 0.625rem; font-size: 0.8125rem; }

/* ---------- Meal-spot transport form: hide passenger seats unless driving --- */
/* Uses :has() to react to the radio's checked state — no JS needed. */
.transport-fields .seats-field {
  display: none;
}
.transport-fields:has(input[type="radio"][value="driving"]:checked) .seats-field {
  display: block;
}

/* ============================================================
   THE ANNUAL RUBY EMBASSY REPORT (/report)
   ============================================================ */

/* --- Hero ---------------------------------------------------- */

.report-hero {
  padding: 3rem 0 2.5rem;
  text-align: center;
  border-bottom: 1px solid #d8d3c4;
  margin-bottom: 3rem;
}

.report-hero__eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #C7374C;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.report-hero__title {
  font-family: "Playfair Display", serif;
  font-weight: 900;
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  line-height: 1.05;
  color: #0C2866;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.report-hero__dateline {
  font-style: italic;
  color: #525C66;
  font-size: 1.0625rem;
  margin-bottom: 2rem;
}

.report-hero__dateline strong {
  color: #0C2866;
  font-style: normal;
  font-weight: 700;
}

.report-hero__lede {
  max-width: 36rem;
  margin: 0 auto;
  text-align: justify;
  hyphens: auto;
  color: #1f242a;
  font-size: 1rem;
  line-height: 1.7;
}

.report-hero__lede p + p { margin-top: 1rem; }
.report-hero__lede strong { color: #0C2866; }

/* --- Article ------------------------------------------------- */

.report-article {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 2px solid #0C2866;
}

.report-article:first-of-type { margin-top: 0; }

.report-article__eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #C7374C;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.report-article__title {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  color: #0C2866;
  margin-bottom: 1.25rem;
}

.report-article__lede {
  max-width: 42rem;
  color: #1f242a;
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  font-style: italic;
}

/* --- Block (one stat within an article) ---------------------- */

.report-block {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #e6e2d4;
}

.report-block:first-of-type { border-top: 0; padding-top: 0; }

.report-block__label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #0C2866;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.report-block__sub {
  color: #525C66;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.report-block__sub strong { color: #0C2866; }

/* --- Big number callout (e.g., median coding years) ---------- */

.report-bignum {
  text-align: center;
  padding: 2rem 1rem;
  background: #FAFAF6;
  border: 1px solid #e6e2d4;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.report-bignum__value {
  font-family: "Playfair Display", serif;
  font-weight: 900;
  font-size: clamp(3.5rem, 9vw, 5.5rem);
  line-height: 1;
  color: #0C2866;
}

.report-bignum__caption {
  font-style: italic;
  color: #525C66;
  font-size: 0.9375rem;
  margin-top: 0.5rem;
}

/* --- Pull-quotes (1d standout responses) --------------------- */

.report-pullquotes {
  margin-top: 1rem;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid #C7374C;
  background: #fdfcf7;
}

.report-pullquotes__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #525C66;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.report-pullquotes__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.report-pullquote {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1.125rem;
  color: #1f242a;
  line-height: 1.5;
}

/* --- Ranked list (1f languages, 2c versions) ----------------- */

.report-ranked {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  counter-reset: rank;
}

.report-ranked__row {
  display: grid;
  grid-template-columns: 2.25rem 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  background: #fdfcf7;
  border: 1px solid #e6e2d4;
  border-radius: 4px;
}

.report-ranked__rank {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  color: #C7374C;
  font-weight: 700;
  text-align: center;
}

.report-ranked__name {
  font-weight: 500;
  color: #0C2866;
  font-size: 1rem;
}

.report-ranked__count {
  font-size: 0.875rem;
  color: #525C66;
  font-variant-numeric: tabular-nums;
}

/* --- Notable mentions row (1f) ------------------------------- */

.report-notable {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: #FAFAF6;
  border-radius: 6px;
}

.report-notable__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #525C66;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.report-notable__list {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1rem;
  color: #1f242a;
  line-height: 1.7;
}

.report-notable__item {
  white-space: nowrap;
}

/* --- Horizontal bar chart (1e proficiency, 2b first ruby) ---- */

.report-bars {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.report-bar-row {
  display: grid;
  grid-template-columns: 11rem 1fr 5.5rem;
  gap: 1rem;
  align-items: center;
}

.report-bar-row__label {
  font-size: 0.9375rem;
  color: #1f242a;
  font-weight: 500;
}

.report-bar-row__track {
  height: 1.25rem;
  background: #f0ece0;
  border-radius: 2px;
  overflow: hidden;
}

.report-bar-row__fill {
  height: 100%;
  background: linear-gradient(90deg, #0C2866 0%, #1e4185 100%);
  transition: width 0.4s ease;
  min-width: 2px;
}

.report-bar-row__fill--alt {
  background: linear-gradient(90deg, #C7374C 0%, #d85d70 100%);
}

.report-bar-row__value {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #0C2866;
  font-size: 0.9375rem;
  white-space: nowrap;
  text-align: right;
}

.report-bar-row__count {
  color: #6b7280;
  font-weight: 400;
  font-size: 0.8125rem;
}

@media (max-width: 640px) {
  .report-bar-row {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 0.25rem 0.75rem;
  }
  .report-bar-row__label { grid-column: 1 / 2; grid-row: 1; }
  .report-bar-row__value { grid-column: 2 / 3; grid-row: 1; }
  .report-bar-row__track { grid-column: 1 / -1; grid-row: 2; }
}

/* --- Donut chart (1g purpose) -------------------------------- */

.report-donut-wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 640px) {
  .report-donut-wrap {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1.5rem;
  }
}

.report-donut {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.report-donut__hole {
  position: absolute;
  inset: 22%;
  background: #FAFAF6;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.report-donut__hole-value {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #0C2866;
  line-height: 1;
}

.report-donut__hole-caption {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #525C66;
  margin-top: 0.25rem;
}

.report-donut-legend {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.report-donut-legend__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
}

.report-donut-legend__swatch {
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 2px;
}

.report-donut-legend__name {
  font-size: 0.9375rem;
  color: #1f242a;
}

.report-donut-legend__pct {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #0C2866;
  font-size: 0.9375rem;
}

/* --- Callouts grid (1h sentiment, 1i persona) ---------------- */

.report-callouts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.625rem;
}

@media (max-width: 640px) {
  .report-callouts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

.report-callout {
  background: #fdfcf7;
  border: 1px solid #e6e2d4;
  border-radius: 6px;
  padding: 1rem 0.625rem;
  text-align: center;
}

.report-callout--alt {
  background: #FAFAF6;
}

.report-callout__value {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 2.25rem;
  color: #0C2866;
  line-height: 1.05;
}

.report-callout__label {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1f242a;
  line-height: 1.3;
}

.report-callout__sub {
  margin-top: 0.375rem;
  font-size: 0.75rem;
  color: #6b7280;
  font-variant-numeric: tabular-nums;
}

/* --- Pull-quote stat (5c gems affidavit) --------------------- */

.report-pullquote-stat {
  margin: 0;
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: #0C2866;
  color: #ffffff;
  border-radius: 8px;
  position: relative;
}

.report-pullquote-stat__value {
  font-family: "Playfair Display", serif;
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 1;
  color: #F5BE3D;
}

.report-pullquote-stat__caption {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 1.25rem;
  margin-top: 0.75rem;
  color: #ffffff;
}

.report-pullquote-stat__caption em {
  color: #F5BE3D;
  font-style: italic;
}

.report-pullquote-stat__detail {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: #b8c2d4;
  font-variant-numeric: tabular-nums;
}

/* --- Closing dispatch ---------------------------------------- */

.report-closing {
  margin-top: 4.5rem;
  padding-top: 2.5rem;
  border-top: 2px solid #0C2866;
  text-align: center;
  color: #525C66;
  font-style: italic;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.report-closing__sigil {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  color: #C7374C;
  margin-bottom: 1rem;
  letter-spacing: 0.5em;
  padding-left: 0.5em;
}

.report-closing strong {
  color: #0C2866;
  font-style: normal;
  font-weight: 600;
}

/* --- Empty state --------------------------------------------- */

.report-empty {
  margin-top: 3rem;
  padding: 3rem 2rem;
  text-align: center;
  background: #FAFAF6;
  border: 1px solid #e6e2d4;
  border-radius: 8px;
  color: #525C66;
  font-style: italic;
  line-height: 1.7;
}
