/* Branded output styles: documents, look books, forms. Driven by --b-* variables from brandHead(). */
.b-root { font-family: var(--b-font-b); color: var(--b-secondary); background: var(--b-paper); -webkit-font-smoothing: antialiased; }
.b-root h1, .b-root h2, .b-root h3, .b-wordmark, .b-eyebrow { font-family: var(--b-font-h); }
.b-root a { color: var(--b-primary-ink); }
.b-wordmark { font-weight: 700; letter-spacing: -0.03em; font-size: 28px; color: var(--b-primary-ink); line-height: 1; }
.b-wordmark.on-dark { color: #fff; }
img.b-logo { max-height: 44px; max-width: 200px; object-fit: contain; display: block; }
.b-eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 600; color: var(--b-primary-ink); margin-bottom: 8px; }

/* ---------- Document ---------- */
.b-doc { max-width: 8.5in; margin: 0 auto; background: var(--b-paper); line-height: 1.6; font-size: 15px; }
.b-doc > *:not(.b-cover) { margin-left: 0.75in; margin-right: 0.75in; }
.b-doc-header { display: flex; align-items: center; justify-content: space-between; padding: 0.5in 0 18px; border-bottom: 2px solid var(--b-primary); margin-bottom: 28px; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: color-mix(in srgb, var(--b-secondary) 60%, transparent); }
.b-doc-footer { margin-top: 48px; padding: 16px 0 0.5in; border-top: 1px solid color-mix(in srgb, var(--b-secondary) 15%, transparent); font-size: 11px; color: color-mix(in srgb, var(--b-secondary) 55%, transparent); text-align: center; letter-spacing: .04em; }

.b-cover { position: relative; min-height: 10.4in; display: flex; flex-direction: column; justify-content: space-between; padding: 0.75in; color: #fff; background: var(--b-primary); box-sizing: border-box; overflow: hidden; margin-bottom: 36px; break-after: page; }
.b-cover::after { content: ""; position: absolute; right: -2.2in; bottom: -2.2in; width: 6in; height: 6in; border-radius: 50%; border: 0.9in solid color-mix(in srgb, #fff 10%, transparent); pointer-events: none; }
.b-cover--image { background: linear-gradient(180deg, color-mix(in srgb, var(--b-secondary) 25%, transparent), color-mix(in srgb, var(--b-primary) 88%, transparent)), var(--cover-img) center/cover; }
.b-cover--image::after { display: none; }
.b-cover--light { background: var(--b-soft); color: var(--b-secondary); }
.b-cover--light h1 { color: var(--b-primary-ink); }
.b-cover h1 { font-size: 54px; line-height: 1.04; letter-spacing: -0.025em; margin: 0 0 16px; font-weight: 700; max-width: 6in; }
.b-cover .b-eyebrow { color: color-mix(in srgb, #fff 75%, transparent); }
.b-cover--light .b-eyebrow { color: var(--b-primary-ink); }
.b-cover__sub { font-size: 19px; opacity: .9; max-width: 5.5in; margin: 0; }
.b-cover__meta { font-size: 13px; opacity: .85; position: relative; z-index: 1; }
.b-cover__meta p { margin: 0; }
.b-cover .b-wordmark { font-size: 34px; }
.b-cover img.b-logo { max-height: 64px; max-width: 220px; }

.b-heading { margin-top: 36px; }
.b-heading h2 { font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 14px; color: var(--b-secondary); }
.b-heading h3 { font-size: 20px; margin: 0 0 10px; color: var(--b-primary-ink); }
.b-text p { margin: 0 0 12px; }
.b-text ul, .b-text ol { padding-left: 20px; margin: 0 0 12px; }
.b-text li::marker { color: var(--b-primary-ink); }
.b-root h3 { font-size: 17px; letter-spacing: -0.01em; margin: 0 0 10px; }

.b-image { margin: 20px 0; }
.b-image img, .b-gallery img, .b-split__img img { width: 100%; display: block; border-radius: 6px; object-fit: cover; }
.b-image--half { max-width: 50%; }
.b-image figcaption, .b-gallery figcaption { font-size: 12px; color: color-mix(in srgb, var(--b-secondary) 60%, transparent); margin-top: 6px; }
.b-img-ph { aspect-ratio: 4/3; background: var(--b-soft); border-radius: 6px; display: grid; place-items: center; color: var(--b-accent); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.b-gallery { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 12px; margin: 20px 0; }
.b-gallery figure { margin: 0; }
.b-gallery img { aspect-ratio: 4/3; }
.b-split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; margin: 24px 0; }
.b-split--left .b-split__img { order: -1; }
.b-split__img img { aspect-ratio: 4/5; }

.b-specs { margin: 20px 0; }
.b-specs dl { margin: 0; border-top: 2px solid var(--b-primary); }
.b-specs dl > div { display: grid; grid-template-columns: 34% 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid color-mix(in srgb, var(--b-secondary) 12%, transparent); }
.b-specs dt { font-weight: 600; font-family: var(--b-font-h); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--b-primary-ink); padding-top: 2px; }
.b-specs dd { margin: 0; }
.b-specs dd p { margin: 0 0 4px; }
.b-specs dd ul { margin: 0; padding-left: 18px; }

.b-table { margin: 20px 0; }
.b-table table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.b-table th { background: var(--b-primary-ink); color: #fff; text-align: left; padding: 9px 12px; font-family: var(--b-font-h); font-weight: 600; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }
.b-table td { padding: 9px 12px; border-bottom: 1px solid color-mix(in srgb, var(--b-secondary) 12%, transparent); vertical-align: top; }
.b-table tr:nth-child(even) td { background: color-mix(in srgb, var(--b-soft) 60%, transparent); }

.b-schedule { margin: 20px 0; }
.b-schedule ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--b-primary); }
.b-schedule li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 10px 0 10px 18px; position: relative; }
.b-schedule li::before { content: ""; position: absolute; left: -6px; top: 16px; width: 10px; height: 10px; border-radius: 50%; background: var(--b-paper); border: 2px solid var(--b-primary); }
.b-schedule time { font-family: var(--b-font-h); font-weight: 600; color: var(--b-primary-ink); font-variant-numeric: tabular-nums; }
.b-schedule li span { display: block; font-size: 13.5px; color: color-mix(in srgb, var(--b-secondary) 70%, transparent); }

.b-team__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.b-team { margin: 20px 0; }
.b-person { padding: 14px; background: var(--b-soft); border-radius: 8px; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.b-person strong { font-family: var(--b-font-h); font-size: 15px; }

.b-callout { margin: 20px 0; padding: 18px 22px; border-radius: 8px; background: var(--b-primary-ink); color: #fff; }
.b-callout a { color: #fff; }
.b-callout--soft { background: var(--b-soft); color: var(--b-secondary); border-left: 4px solid var(--b-primary); border-radius: 0 8px 8px 0; }
.b-callout p { margin: 4px 0 0; }
.b-quote { margin: 28px 0; padding: 0 0 0 22px; border-left: 4px solid var(--b-accent); }
.b-quote p { font-family: var(--b-font-h); font-size: 22px; line-height: 1.35; margin: 0 0 8px; letter-spacing: -0.01em; }
.b-quote cite { font-style: normal; font-size: 13px; color: var(--b-primary-ink); font-weight: 600; }
.b-contact { display: flex; gap: 22px; align-items: center; padding: 26px; margin: 32px 0 0; border-radius: 10px; background: var(--b-secondary); color: #fff; }
.b-contact p { margin: 0 0 4px; }
.b-contact__lines { font-size: 13px; opacity: .8; }
.b-divider { border: 0; height: 2px; background: linear-gradient(90deg, var(--b-primary), transparent); margin: 32px 0; }
.b-pagebreak { break-after: page; height: 1px; }

/* ---------- Forms ---------- */
.b-form-page { min-height: 100vh; background: var(--b-soft); padding: 0 16px 64px; }
.b-form-hero { background: var(--b-primary); color: #fff; margin: 0 -16px; padding: 28px 16px 96px; }
.b-form-hero__inner { max-width: 720px; margin: 0 auto; }
.b-form-hero h1 { font-size: clamp(28px, 5vw, 40px); letter-spacing: -0.02em; margin: 36px 0 10px; line-height: 1.1; }
.b-form-hero p { opacity: .9; margin: 0; max-width: 560px; }
.b-form-card { max-width: 720px; margin: -64px auto 0; background: var(--b-paper); border-radius: 14px; padding: clamp(20px, 4vw, 40px); box-shadow: 0 20px 50px -20px color-mix(in srgb, var(--b-secondary) 35%, transparent); }
.b-form { display: flex; flex-wrap: wrap; gap: 18px 4%; }
.b-field { display: flex; flex-direction: column; gap: 6px; }
.b-field--full { width: 100%; } .b-field--half { width: 48%; }
@media (max-width: 560px) { .b-field--half { width: 100%; } }
.b-field label, .b-field legend { font-weight: 600; font-size: 14px; }
.b-field small { color: color-mix(in srgb, var(--b-secondary) 60%, transparent); font-size: 12.5px; margin-top: -2px; }
.b-field input:not([type=checkbox]):not([type=radio]), .b-field select, .b-field textarea { font: inherit; font-size: 15px; padding: 11px 13px; border: 1.5px solid color-mix(in srgb, var(--b-secondary) 18%, transparent); border-radius: 8px; background: #fff; color: var(--b-secondary); width: 100%; box-sizing: border-box; }
.b-field input:focus, .b-field select:focus, .b-field textarea:focus { outline: none; border-color: var(--b-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--b-primary) 18%, transparent); }
.b-field fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.b-check { display: flex; gap: 10px; align-items: center; font-weight: 400 !important; cursor: pointer; }
.b-check input { accent-color: var(--b-primary); width: 18px; height: 18px; }
.b-req { color: var(--b-primary-ink); }
.b-form-section { border-top: 1px solid color-mix(in srgb, var(--b-secondary) 12%, transparent); padding-top: 18px; margin-top: 6px; }
.b-form-section h3 { color: var(--b-primary-ink); margin: 0; }
.b-form-section p { margin: 4px 0 0; font-size: 14px; }
.b-form-para p { margin: 0; }
.b-btn { font: inherit; font-family: var(--b-font-h); font-weight: 600; background: var(--b-primary-ink); color: #fff; border: 0; border-radius: 999px; padding: 14px 30px; font-size: 15px; cursor: pointer; letter-spacing: .02em; }
.b-btn:hover { filter: brightness(1.08); }
.b-btn:disabled { opacity: .6; cursor: wait; }
.b-form-foot { margin-top: 26px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12px; color: color-mix(in srgb, var(--b-secondary) 55%, transparent); }
.b-form-msg { padding: 14px 16px; border-radius: 8px; background: var(--b-soft); margin-top: 16px; display: none; }
.b-form-msg.err { background: #fde8e8; color: #8a1c1c; display: block; }
.b-form-done { text-align: center; padding: 40px 10px; }
.b-form-done h2 { color: var(--b-primary-ink); font-size: 28px; margin: 0 0 8px; }

/* ---------- Print / PDF ---------- */
@page { size: letter; margin: 0.6in 0; }
@page :first { margin: 0; }
@media print {
  html, body { background: #fff !important; }
  .no-print { display: none !important; }
  .b-doc { max-width: none; }
  .b-cover { min-height: 11in; margin: 0; }
  .b-root { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .b-specs dl > div, .b-schedule li, .b-person, figure, tr, .b-callout, .b-quote { break-inside: avoid; }
  .b-heading { break-after: avoid; }
}
.b-form > .b-form-section:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
[hidden] { display: none !important; }

.b-file { display: flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px dashed color-mix(in srgb, var(--b-secondary) 25%, transparent); border-radius: 8px; padding: 16px; cursor: pointer; color: var(--b-primary-ink); font-weight: 600; background: color-mix(in srgb, var(--b-soft) 50%, #fff); }
.b-file:hover { border-color: var(--b-primary); }
.b-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.b-file-list { font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.b-download { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 10px; background: var(--b-soft); margin-bottom: 24px; flex-wrap: wrap; }
.b-download .b-ftype { width: 46px; height: 56px; border-radius: 6px; background: var(--b-primary); color: #fff; display: grid; place-items: center; font-family: var(--b-font-h); font-weight: 700; font-size: 12px; flex: none; }
.b-download div { flex: 1; min-width: 160px; }
.b-download strong { display: block; font-family: var(--b-font-h); }
.b-download small { color: color-mix(in srgb, var(--b-secondary) 60%, transparent); }
.b-btn.b-btn--ghost { background: #fff; color: var(--b-primary-ink); box-shadow: inset 0 0 0 1.5px var(--b-primary-ink); text-decoration: none; display: inline-block; }
.b-viewer { max-width: 1100px; margin: 0 auto; padding: 24px 16px 48px; }
.b-viewer-bar { background: var(--b-primary); color: #fff; }
.b-viewer-bar__inner { max-width: 1100px; margin: 0 auto; padding: 18px 16px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.b-viewer-bar h1 { font-size: 20px; margin: 0; flex: 1; min-width: 200px; letter-spacing: -0.01em; }
.b-viewer-bar .b-btn { background: #fff; color: var(--b-primary-ink); text-decoration: none; }
.b-viewer iframe { width: 100%; height: calc(100vh - 140px); min-height: 520px; border: 0; border-radius: 10px; background: #fff; box-shadow: 0 10px 40px -12px rgba(0,0,0,.25); }
.b-viewer img.b-viewer-img { display: block; max-width: 100%; margin: 0 auto; border-radius: 10px; box-shadow: 0 10px 40px -12px rgba(0,0,0,.25); }
.b-viewer-foot { text-align: center; font-size: 12px; color: color-mix(in srgb, var(--b-secondary) 55%, transparent); margin-top: 24px; }
.b-root a.b-btn { color: #fff; text-decoration: none; display: inline-block; }
.b-root a.b-btn.b-btn--ghost { color: var(--b-primary-ink); }
.b-root .b-viewer-bar a.b-btn { color: var(--b-primary-ink); background: #fff; }
