@import url(https://db.onlinewebfonts.com/c/459eef2ab5124684c6b0f3bf127b0bbd?family=Chandler+42+W00+Medium);
@import url(https://db.onlinewebfonts.com/c/fb45b051f21e9134225c062ff4fa34a2?family=Chandler+42+W00+Regular);

:root {
  --bg: #ffffff;
  --bg-soft: #111116;
  --surface: #17171e;
  --surface-strong: #1d1d27;
  --text: #171821;
  --text-muted: #4f5462;
  --brand: #ed1c24;
  --brand-soft: #ff3b57;
  --border: #2c2d36;
  --ring: rgba(225, 29, 51, 0.45);
  --radius: 14px;
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
  --page-pad-x: clamp(0.75rem, 4vw, 2rem);
  /* Wide layout, still capped (not edge-to-edge) */
  --content-max: 1280px;
  --booking-form-max-width: 820px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

@supports not (overflow: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}

body {
  margin: 0;
  font-family: "Inter", "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 8, 12, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(225, 29, 51, 0.3);
}

.site-header-inner {
  max-width: var(--content-max);
  width: 100%;
  margin: 0 auto;
  padding: 0.9rem var(--page-pad-x) 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.header-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.header-mark {
  display: block;
  width: min(27vw, 240px);
  min-width: 0;
  height: auto;
  transition: transform 220ms ease;
}

.header-brand:hover .header-mark,
.header-brand:focus-visible .header-mark {
  transform: translateY(-1px);
}

.site-nav {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
}

.nav-link {
  color: #c8ccd7;
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 220ms ease, background-color 220ms ease, border-color 220ms ease,
    transform 220ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.nav-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-soft), var(--brand));
  border-color: rgba(255, 255, 255, 0.16);
}

.site-footer {
  max-width: var(--content-max);
  width: 100%;
  margin: 0 auto;
  padding: 1.25rem var(--page-pad-x) 2rem;
  border-top: 1px solid rgba(44, 45, 54, 0.28);
  text-align: center;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.65rem;
}

.footer-sep {
  color: var(--text-muted);
  opacity: 0.55;
  user-select: none;
  font-weight: 600;
}

.footer-link {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 220ms ease;
  word-break: break-word;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--brand);
}

.footer-link:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
  border-radius: 6px;
}

.page-content {
  max-width: var(--content-max);
  width: 100%;
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw, 2.5rem) var(--page-pad-x) 4rem;
  display: grid;
  gap: 1.25rem;
}

.hero,
.content-card,
.video-section {
  font-family: "Chandler 42 W00 Medium";
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero,
.content-card {
  padding: clamp(1.25rem, 4vw, 2.6rem);
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--brand-soft);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

h1,
h2 {
  color: rgba(237, 28, 36);
  margin: 0;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.1;
}

/* Image replaces text; avoid stray line-box spacing */
.home-page .hero h1.hero-title {
  font-size: 0;
  line-height: 0;
}

.home-page .hero .hero-title-img {
  display: block;
  width: 100%;
  max-width: 780px;
  height: auto;
  margin: 0 auto;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.team-bios-heading {
  margin: 1.75rem auto 1.1rem;
  text-align: center;
}

.team-bios {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 3vw, 1.75rem);
  width: 100%;
  max-width: min(100%, 1120px);
  margin: 0 auto 1.5rem;
  text-align: left;
}

.bio-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 1rem 0.85rem 1.15rem;
  border: 1px solid rgba(44, 45, 54, 0.65);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.bio-figure {
  margin: 0 0 0.85rem;
}

.bio-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center center;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid #292a33;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.bio-name {
  font-family: "Chandler 42 W00 Medium", serif;
  color: rgba(237, 28, 36);
  margin: 0 0 0.25rem;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  letter-spacing: 0.01em;
}

.bio-role {
  font-family: "Chandler 42 W00 Medium", serif;
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0 0 0.65rem;
  flex-shrink: 0;
}

.bio-scroll {
  min-height: 0;
  max-height: clamp(11rem, 32vh, 16rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.4rem;
  margin-right: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}

.bio-scroll:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.bio-text {
  margin: 0 0 0.65rem;
  text-align: justify;
}

.bio-text:last-child {
  margin-bottom: 0;
}

.services-lead {
  margin-bottom: 0.35rem;
}

.services-list {
  margin-top: 0;
  padding-left: 1.35rem;
  text-align: left;
}

.services-list li {
  margin-bottom: 0.35rem;
}

.about-cta-line {
  font-family: "Chandler 42 W00 Medium" !important;
  color: var(--brand) !important;
  font-size: clamp(1.1rem, 2.6vw, 1.55rem);
  text-align: center;
  text-align-last: center;
  margin-top: 1rem;
  margin-bottom: 0;
}

.about-cta-actions {
  margin-top: 0.85rem;
}

.lead {
  font-family: "Chandler 42 W00 Medium";
  margin: 0.9rem auto 0.7rem;
  font-size: clamp(1.05rem, 2.4vw, 1.32rem);
  font-weight: 600;
  color: #3b3f4a;
}

.home-page .hero .lead {
  margin-top: clamp(0.75rem, 2.8vw, 1.4rem);
}

.hero-copy,
.video-section p {
  font-family: "Chandler 42 W00 Medium";
  color: var(--text-muted);
  max-width: min(80ch, 100%);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.section-copy {
  font-family: "Chandler 42 W00 Regular";
  color: var(--text-muted);
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: justify;
}

.about-us-heading {
  font-family: "Chandler 42 W00 Medium";
  color: var(--text-muted);
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: justify;
}

.tell-us {
  font-family: "Chandler 42 W00 Medium";
  color: var(--text-muted);
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero-actions {
  margin-top: 1.2rem;
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.cta-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.72rem 1.25rem;
  font-weight: 700;
  transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease,
    color 220ms ease;
}

.cta-button {
  background: linear-gradient(135deg, var(--brand-soft), var(--brand));
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(225, 29, 51, 0.32);
}

.cta-button:hover,
.cta-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(225, 29, 51, 0.38);
}

.ghost-button {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.02);
}

.ghost-button:hover,
.ghost-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.video-section {
  padding: clamp(1.1rem, 2.8vw, 1.6rem);
  text-align: center;
}

.video-section p {
  margin-top: 0.55rem;
  margin-bottom: 1rem;
}

.video-frame {
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  border: 1px solid #292a33;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.44);
}

.video-frame video {
  display: block;
  width: 100%;
  height: auto;
  background: #000000;
}

.home-page .hero {
  transition: opacity 680ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 680ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Hide hero visually only — do not collapse height (collapsing caused scroll jump). */
.home-page.video-immersive .hero {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.home-page .video-section h2,
.home-page .video-section p {
  transition: opacity 580ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 580ms cubic-bezier(0.22, 1, 0.36, 1);
}

.home-page.video-immersive .video-section h2,
.home-page.video-immersive .video-section p {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.home-page.video-immersive .video-section {
  /* Reserve height while fixed video is out of flow (prevents scroll position jump). */
  min-height: 100vh;
  border-color: transparent;
  box-shadow: none;
}

/* Do not transition transform here — fullscreen uses FLIP in index.html */
.home-page .video-frame {
  transition: box-shadow 280ms ease, border-radius 280ms ease, border-color 280ms ease;
}

.home-page.video-immersive .video-frame {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  z-index: 50;
  border-radius: 0;
  border: 0;
  box-shadow: none;
}

.home-page.video-immersive .video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center center;
}

.home-page.video-immersive {
  overflow-x: hidden;
}

.booking-form {
  font-family: sans-serif;
  margin: 1.2rem auto 0;
  text-align: left;
  width: min(100%, var(--booking-form-max-width));
  max-width: 100%;
  display: grid;
  gap: 0.6rem;
}

.booking-form label {
  font-family: "Chandler 42 W00 Regular";
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.booking-form input,
.booking-form textarea,
.booking-form select {
  width: 100%;
  padding: 0.78rem 0.85rem;
  border: 1px solid #3a3b46;
  border-radius: 10px;
  font: inherit;
  color: var(--text);
  background: white;
  transition: border-color 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.booking-form select {
  cursor: pointer;
}

.booking-form input:hover,
.booking-form textarea:hover,
.booking-form select:hover {
  border-color: #50525f;
}

.booking-form input:focus,
.booking-form textarea:focus,
.booking-form select:focus {
  font-family: sans-serif;
  border-color: var(--brand-soft);
  box-shadow: 0 0 0 4px var(--ring);
  outline: none;
  background: white;
}

.booking-form button {
  margin-top: 0.75rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-soft), var(--brand));
  color: #ffffff;
  padding: 0.82rem 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.booking-form button:hover,
.booking-form button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(225, 29, 51, 0.34);
}

.event-form-intro {
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}

/* Event form: match intro copy width to the questionnaire column */
.content-card:has(.event-questionnaire) > .tell-us {
  max-width: min(100%, var(--booking-form-max-width));
  margin-left: auto;
  margin-right: auto;
}

.event-questionnaire {
  --event-form-stack-gap: 2.5rem;
  --event-form-grid-gap: 0.85rem;
  gap: var(--event-form-grid-gap);
}

.form-section-spacer {
  display: block;
  padding: 0.65rem 0;
  margin: 0;
}

.event-form-after-address {
  display: flex;
  flex-direction: column;
  gap: var(--event-form-stack-gap);
}

.event-questionnaire > button[type="submit"] {
  /* Match space before submit to inter-question gap (form grid gap already counts once) */
  margin-top: calc(var(--event-form-stack-gap) - var(--event-form-grid-gap));
}

.event-form-after-address > .form-question {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.event-questionnaire textarea {
  min-height: 2.75rem;
}

.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
  align-items: start;
}

.form-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

/* Native [hidden] loses to .form-field-group { display: flex } without this */
[hidden] {
  display: none !important;
}

@media (max-width: 540px) {
  .form-row-split {
    grid-template-columns: 1fr;
  }
}

.form-row-address {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1fr;
  gap: 0.75rem 1rem;
  align-items: start;
}

@media (max-width: 700px) {
  .form-row-address {
    grid-template-columns: 1fr;
  }
}

.address-fieldset {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.15rem;
}

.booking-form-fieldset {
  border: 0;
  margin: 0.35rem 0 0;
  padding: 0;
  min-width: 0;
}

.booking-form-fieldset legend {
  font-family: "Chandler 42 W00 Regular";
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0;
  margin-bottom: 0.45rem;
  line-height: 1.45;
}

.form-radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
}

.form-radio-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  cursor: pointer;
}

.form-radio-label input {
  width: auto;
  margin: 0;
  accent-color: var(--brand);
}

.event-form-thanks {
  margin: 1rem 0 0.25rem;
  font-size: 0.98rem;
  line-height: 1.55;
}

.form-question-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.closing-question-intro {
  margin: 0;
  text-align: left;
  text-align-last: left;
}

.thank-you-dialog {
  border: none;
  border-radius: var(--radius);
  padding: 0;
  max-width: min(92vw, 26rem);
  box-shadow: var(--shadow);
  font-family: "Chandler 42 W00 Medium", serif;
}

.thank-you-dialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
}

.thank-you-dialog-inner {
  padding: clamp(1.35rem, 4vw, 2.1rem);
  text-align: center;
}

.thank-you-dialog-inner h2 {
  margin: 0 0 0.75rem;
}

.thank-you-dialog-copy {
  font-family: "Chandler 42 W00 Regular", serif;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  line-height: 1.55;
  font-size: 0.98rem;
}

.thank-you-dialog-close {
  margin: 0 auto;
}

.attendees-lead {
  margin: 0;
}

.form-radio-row--shade {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.shade-fieldset {
  margin: 0;
  min-width: 0;
}

/* Do not put transform on .video-section: it breaks position:fixed descendants (fullscreen video). */
.hero,
.content-card {
  animation: sectionFadeIn 420ms ease both;
}

.video-section {
  animation: sectionFadeInSoft 420ms ease both;
}

@keyframes sectionFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sectionFadeInSoft {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (max-width: 700px) {
  .bio-text,
  .section-copy,
  .about-us-heading {
    text-align: left;
  }

  .page-content {
    padding: clamp(1.1rem, 4vw, 1.6rem) var(--page-pad-x) 2.6rem;
  }

  .hero,
  .content-card {
    padding: clamp(1rem, 4vw, 1.45rem);
  }

  .site-header-inner {
    padding: 0.7rem var(--page-pad-x) 0.75rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .header-mark {
    width: min(70vw, 250px);
    min-width: 0;
  }

  .site-nav {
    justify-content: flex-start;
    gap: 0.45rem;
    width: 100%;
  }

  .nav-link {
    padding: 0.45rem 0.8rem;
    font-size: 0.9rem;
  }

  .home-page.video-immersive .video-frame video {
    object-fit: contain;
  }

  .team-bios {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* —— Invoice generator (private page) —— */

.invoice-output-section[hidden] {
  display: none;
}

body.invoice-generating .invoice-output-section[hidden] {
  display: none;
}

.invoice-builder-header .site-header-inner {
  justify-content: center;
}

.invoice-builder-main {
  gap: 1.5rem;
}

.invoice-form-card > .tell-us {
  max-width: min(100%, var(--booking-form-max-width));
  margin-left: auto;
  margin-right: auto;
}

.invoice-output-section {
  display: grid;
  gap: 1rem;
}

.invoice-output-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.invoice-secondary-btn {
  border: 1px solid #3a3b46;
  border-radius: 999px;
  padding: 0.72rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: "Inter", "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.invoice-secondary-btn:hover,
.invoice-secondary-btn:focus-visible {
  border-color: var(--brand-soft);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(225, 29, 51, 0.2);
}

.invoice-document {
  font-family: "Inter", "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(1.35rem, 4vw, 2.25rem);
  background: #ffffff;
  color: #171821;
  border: 1px solid #e2e4ea;
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.14);
}

.invoice-doc-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem 2rem;
  padding-bottom: 1.35rem;
  border-bottom: 3px solid var(--brand);
}

.invoice-doc-logo {
  display: block;
  width: auto;
  max-width: min(100%, 400px);
  height: auto;
  max-height: 400px;
  object-fit: contain;
}

.invoice-doc-tagline {
  margin: 0.45rem 0 0;
  font-family: "Chandler 42 W00 Medium", serif;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.invoice-doc-meta {
  text-align: right;
  min-width: min(100%, 220px);
}

.invoice-doc-title {
  font-family: "Chandler 42 W00 Medium", serif;
  color: var(--brand);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  margin: 0 0 0.65rem;
  line-height: 1.1;
}

.invoice-meta-list {
  margin: 0;
}

.invoice-meta-list > div {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  margin: 0.2rem 0;
  font-size: 0.92rem;
}

.invoice-meta-list dt {
  color: var(--text-muted);
  font-weight: 600;
}

.invoice-meta-list dd {
  margin: 0;
  font-weight: 700;
  color: #171821;
}

.invoice-doc-parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 2rem;
  margin: 1.35rem 0 1.1rem;
}

.invoice-doc-parties h3,
.invoice-event-summary h3 {
  font-family: "Chandler 42 W00 Medium", serif;
  color: var(--brand);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 0.45rem;
}

.invoice-party-name {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.invoice-from p {
  margin: 0.15rem 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.invoice-from a {
  color: #171821;
  text-decoration: none;
}

.invoice-from a:hover,
.invoice-from a:focus-visible {
  color: var(--brand);
}

.invoice-event-summary {
  margin-bottom: 1.1rem;
  padding: 0.85rem 1rem;
  background: #f7f8fb;
  border-radius: calc(var(--radius) - 4px);
  border: 1px solid #e8eaef;
}

.invoice-event-details {
  margin: 0;
  display: grid;
  gap: 0.35rem;
}

.invoice-event-details > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  font-size: 0.95rem;
}

.invoice-event-details dt {
  font-weight: 600;
  color: var(--text-muted);
}

.invoice-event-details dd {
  margin: 0;
  font-weight: 600;
}

.invoice-line-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.invoice-line-table th,
.invoice-line-table td {
  padding: 0.72rem 0.55rem;
  border-bottom: 1px solid #e2e4ea;
  text-align: left;
  vertical-align: top;
}

.invoice-line-table thead th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 700;
  background: #f7f8fb;
}

.invoice-col-qty,
.invoice-col-rate,
.invoice-col-amount {
  width: 1%;
  white-space: nowrap;
  text-align: right !important;
}

.invoice-total-row th,
.invoice-total-row td {
  border-bottom: 0;
  padding-top: 1rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brand);
}

.invoice-doc-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e4ea;
}

.invoice-thanks {
  margin: 0 0 0.45rem;
  font-family: "Chandler 42 W00 Medium", serif;
  color: var(--brand);
  font-size: 1.05rem;
}

.invoice-payment-options {
  margin: 0.85rem 0 0.65rem;
  padding: 0.65rem 0.85rem;
  background: #f7f8fb;
  border: 1px solid #e8eaef;
  border-radius: calc(var(--radius) - 4px);
}

.invoice-payment-options h3 {
  font-family: "Chandler 42 W00 Medium", serif;
  color: var(--brand);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 0.4rem;
}

.invoice-payment-list {
  margin: 0;
  padding: 0 0 0 1.05rem;
  font-size: 0.88rem;
  line-height: 1.35;
}

.invoice-payment-list li {
  margin-bottom: 0.2rem;
}

.invoice-payment-list li:last-child {
  margin-bottom: 0;
}

.invoice-payment-list a {
  color: #171821;
  text-decoration: none;
  font-weight: 600;
}

.invoice-payment-list a:hover,
.invoice-payment-list a:focus-visible {
  color: var(--brand);
}

.invoice-check-address {
  display: block;
  margin: 0.2rem 0 0 1rem;
  font-style: normal;
  font-size: inherit;
  line-height: 1.4;
  color: #171821;
}

.invoice-payment-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

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

@media (max-width: 640px) {
  .invoice-doc-header {
    flex-direction: column;
  }

  .invoice-doc-meta {
    text-align: left;
    width: 100%;
  }

  .invoice-meta-list > div {
    justify-content: flex-start;
  }

  .invoice-doc-parties {
    grid-template-columns: 1fr;
  }

  .invoice-line-table {
    font-size: 0.86rem;
  }

  .invoice-line-table th,
  .invoice-line-table td {
    padding: 0.55rem 0.35rem;
  }

}

@media print {
  @page {
    size: letter;
    margin: 0.5in;
  }

  html,
  body {
    height: 100%;
    overflow: visible;
  }

  body.invoice-builder-page {
    background: #fff;
    color: #000;
  }

  .site-header,
  .site-footer,
  .no-print,
  #invoice-form-section {
    display: none !important;
  }

  .invoice-builder-main,
  .page-content {
    padding: 0;
    margin: 0;
    max-width: none;
    min-height: 100%;
  }

  .invoice-output-section {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    gap: 0;
  }

  .invoice-output-section[hidden] {
    display: flex !important;
  }

  .invoice-document {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    min-height: 10in;
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: 11pt;
    line-height: 1.45;
    page-break-inside: avoid;
    break-inside: avoid-page;
  }

  .invoice-doc-header {
    flex-shrink: 0;
    gap: 1rem 1.5rem;
    padding-bottom: 1rem;
    border-bottom-width: 3px;
  }

  .invoice-doc-logo {
    max-width: 200px;
    max-height: 115px;
    object-position: top left;
  }

  .invoice-doc-tagline {
    display: block;
    font-size: 10pt;
    margin-top: 0.35rem;
  }

  .invoice-doc-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  .invoice-meta-list > div {
    font-size: 10pt;
    margin: 0.2rem 0;
  }

  .invoice-doc-parties {
    flex-shrink: 0;
    gap: 1rem 2rem;
    margin: 1rem 0 0.85rem;
  }

  .invoice-doc-parties h3,
  .invoice-event-summary h3,
  .invoice-payment-options h3 {
    font-size: 9pt;
    margin-bottom: 0.4rem;
  }

  .invoice-party-name {
    font-size: 11.5pt;
  }

  .invoice-from p {
    font-size: 10pt;
    margin: 0.12rem 0;
  }

  .invoice-event-summary {
    flex-shrink: 0;
    margin-bottom: 0.85rem;
    padding: 0.75rem 0.9rem;
  }

  .invoice-event-details > div {
    font-size: 10.5pt;
  }

  .invoice-line-table {
    flex-shrink: 0;
    font-size: 10.5pt;
  }

  .invoice-line-table th,
  .invoice-line-table td {
    padding: 0.6rem 0.5rem;
  }

  .invoice-line-table thead th {
    font-size: 8.5pt;
  }

  .invoice-total-row th,
  .invoice-total-row td {
    padding-top: 0.75rem;
    font-size: 11.5pt;
  }

  .invoice-doc-footer {
    flex-shrink: 0;
    margin-top: auto;
    padding-top: 1rem;
  }

  .invoice-thanks {
    font-size: 11.5pt;
    margin-bottom: 0.5rem;
  }

  .invoice-payment-options {
    margin: 0.75rem 0 0.6rem;
    padding: 0.75rem 0.9rem;
  }

  .invoice-payment-list,
  .invoice-check-address {
    font-size: 10pt;
    line-height: 1.4;
  }

  .invoice-payment-list li {
    margin-bottom: 0.25rem;
  }

  .invoice-payment-note {
    font-size: 9.5pt;
    line-height: 1.4;
  }

  .invoice-from a,
  .invoice-payment-list a {
    color: #171821;
  }

  a[href]::after {
    content: none !important;
  }
}
