/*
 * Bolton Pacific components, ported from the brand guide's components/bundle.css (Brand guide v4).
 * Rules are copied verbatim. Only the portal-relevant subset is included; the marketing motion
 * library (hero, marquee, ridgelines, MoonRise…) is left out. The Google Fonts @import is
 * replaced by self-hosted fonts in fonts.css so the CSP can stay strict.
 * Wrapped in @layer brand so Connect's own layers (css/components.css and later) build on it
 * without specificity fights. App additions never go in this file.
 */

@layer brand {

:root { --bp-ease: cubic-bezier(.2, .8, .2, 1); --bp-tide: 600ms; }

body { margin: 0; font-family: var(--font-sans); font-size: var(--fluid-body); line-height: 1.6; background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; }

.bp-container { width: min(100% - 2 * var(--fluid-gutter), 88rem); margin-inline: auto; }

/* Shared type helpers */
.bp-eyebrow { font-family: var(--font-poster); font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-muted); }
.bp-meta { font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.bp-display em, .bp-section-title em, .bp-hero-title em, .bp-card-title em { font-family: var(--font-poster); font-style: normal; font-weight: 700; font-size: .88em; letter-spacing: -.03em; }
.bp-display mark, .bp-section-title mark, .bp-hero-title mark { background: var(--seaglass); color: var(--on-seaglass); padding: 0 .14em; border-radius: .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* Button — pill with an arrow orb */
.bp-btn { position: relative; display: inline-flex; align-items: center; gap: var(--space-3); font-family: var(--font-sans); font-weight: 600; font-size: 15px; letter-spacing: -.01em; line-height: 20px; height: 52px; padding: 0 var(--space-5); border-radius: var(--radius-pill); border: 1.5px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color 200ms var(--bp-ease), border-color 200ms var(--bp-ease), color 200ms var(--bp-ease), transform 200ms var(--bp-ease); }
.bp-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.bp-btn:active:not(:disabled) { transform: scale(.98); }
.bp-btn:disabled { opacity: .4; cursor: not-allowed; }
.bp-btn-has-orb { padding-right: 6px; }
.bp-orb { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-pill); overflow: hidden; transition: transform 300ms var(--bp-ease); }
.bp-orb svg { width: 18px; height: 18px; transition: transform 300ms var(--bp-ease); }
.bp-btn:hover:not(:disabled) .bp-orb svg { transform: translateX(3px) rotate(-45deg); }
.bp-btn-sm { height: 40px; font-size: 14px; padding: 0 var(--space-4); }
.bp-btn-sm.bp-btn-has-orb { padding-right: 4px; }
.bp-btn-sm .bp-orb { width: 32px; height: 32px; }
.bp-btn-lg { height: 64px; font-size: 18px; padding: 0 var(--space-6); }
.bp-btn-lg.bp-btn-has-orb { padding-right: 8px; }
.bp-btn-lg .bp-orb { width: 48px; height: 48px; }
.bp-btn-primary { background: var(--ink); color: var(--ink-inverse); }
.bp-btn-primary .bp-orb { background: var(--ink-inverse); color: var(--ink); }
.bp-btn-primary:hover:not(:disabled) { background: var(--forest); color: var(--on-forest); }
.bp-btn-forest { background: var(--forest); color: var(--on-forest); }
.bp-btn-forest .bp-orb { background: var(--seaglass); color: var(--on-seaglass); }
.bp-btn-forest:hover:not(:disabled) { background: var(--ink); color: var(--ink-inverse); }
.bp-btn-seaglass { background: var(--seaglass); color: var(--on-seaglass); }
.bp-btn-seaglass .bp-orb { background: var(--on-seaglass); color: var(--seaglass); }
.bp-btn-seaglass:hover:not(:disabled) .bp-orb { transform: scale(1.06); }
.bp-btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-control); }
.bp-btn-secondary .bp-orb { background: var(--ink); color: var(--ink-inverse); }
.bp-btn-secondary:hover:not(:disabled) { border-color: var(--line-strong); }
.bp-btn-inverse { background: var(--ink-inverse); color: var(--ink); }
.bp-btn-inverse .bp-orb { background: var(--ink); color: var(--ink-inverse); }
.bp-btn-ghost { background: transparent; color: var(--ink); padding-left: var(--space-3); padding-right: var(--space-3); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
.bp-btn-ghost:hover:not(:disabled) { text-decoration-thickness: 3px; }

/* Tag */
.bp-tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .02em; padding: 5px 10px; border-radius: var(--radius-pill); background: transparent; color: var(--ink); border: 1px solid var(--line-control); }
.bp-tag-inverse { background: var(--paper-inverse); color: var(--ink-inverse); border-color: var(--paper-inverse); }
.bp-tag-seaglass { background: var(--seaglass); color: var(--on-seaglass); border-color: var(--seaglass); }
.bp-tag-forest { background: var(--forest); color: var(--on-forest); border-color: var(--forest); }
.bp-tag-mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; border-style: dashed; color: var(--ink-muted); }
.bp-tag-success { background: var(--success-soft); color: var(--success); border-color: transparent; }
.bp-tag-warning { background: var(--warning-soft); color: var(--warning); border-color: transparent; }
.bp-tag-danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.bp-tag-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Input */
.bp-field { display: grid; gap: var(--space-2); font-family: var(--font-sans); }
.bp-label { display: flex; justify-content: space-between; gap: var(--space-3); font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.bp-label .bp-meta { font-size: 11px; }
.bp-input { font: inherit; font-size: 17px; line-height: 24px; height: 56px; box-sizing: border-box; width: 100%; padding: 0 var(--space-4); border-radius: var(--radius-md); border: 1.5px solid var(--line-control); background: var(--paper-raised); color: var(--ink); transition: border-color 200ms var(--bp-ease), background-color 200ms var(--bp-ease); }
.bp-input::placeholder { color: var(--ink-muted); }
.bp-input:hover { border-color: var(--line-strong); }
.bp-input:focus { outline: 2px solid var(--focus); outline-offset: 3px; border-color: var(--line-strong); }
.bp-input[aria-invalid="true"] { border-color: var(--danger); }
.bp-hint { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.bp-error { font-size: 14px; line-height: 20px; color: var(--danger); font-weight: 600; }

/* Card — the tide comes in on hover */
.bp-card { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: var(--space-4); min-height: 280px; box-sizing: border-box; padding: var(--space-6); border-radius: var(--radius-lg); background: var(--paper-raised); color: var(--ink); border: 1px solid var(--line); font-family: var(--font-sans); text-decoration: none; transition: color var(--bp-tide) var(--bp-ease), border-color var(--bp-tide) var(--bp-ease); }
.bp-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--paper-inverse); border-radius: 50% 50% 0 0 / 24px 24px 0 0; transform: translateY(101%); transition: transform var(--bp-tide) var(--bp-ease), border-radius var(--bp-tide) var(--bp-ease); }
a.bp-card:hover, a.bp-card:focus-visible { color: var(--ink-inverse); border-color: var(--paper-inverse); }
a.bp-card:hover::before, a.bp-card:focus-visible::before { transform: translateY(0); border-radius: 0; }
a.bp-card:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.bp-card-top { display: flex; justify-content: space-between; align-items: center; }
.bp-card .bp-meta { color: inherit; opacity: .72; }
.bp-card-title { margin: 0; font-family: var(--font-display); font-size: clamp(1.375rem, 1.2rem + .7vw, 1.75rem); line-height: 1.1; font-weight: 600; letter-spacing: -.03em; }
.bp-card-body { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-muted); transition: color var(--bp-tide) var(--bp-ease); }
a.bp-card:hover .bp-card-body, a.bp-card:focus-visible .bp-card-body { color: var(--ink-inverse-muted); }
.bp-card-footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 15px; }
.bp-card-footer .bp-orb { width: 44px; height: 44px; border: 1.5px solid currentColor; box-sizing: border-box; }
a.bp-card:hover .bp-card-footer .bp-orb { background: var(--seaglass); color: var(--on-seaglass); border-color: var(--seaglass); }
a.bp-card:hover .bp-card-footer .bp-orb svg { transform: rotate(-45deg); }
.bp-card-kelp { background: var(--kelp); color: var(--on-kelp); border-color: var(--kelp); }
.bp-card-forest { background: var(--forest); color: var(--on-forest); border-color: var(--forest); }
.bp-card-forest .bp-card-body { color: var(--on-forest-muted); }
a.bp-card-forest::before { background: var(--paper-inverse); }
.bp-card-kelp .bp-card-body { color: var(--on-kelp); opacity: .8; }

/* Section header */
.bp-section-header { display: grid; gap: var(--space-5); max-width: 62rem; font-family: var(--font-sans); }
.bp-section-header-center { margin-inline: auto; text-align: center; justify-items: center; }
.bp-section-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); }
.bp-section-meta::after { content: ""; flex: 1 1 48px; height: 1px; background: var(--line-control); min-width: 48px; }
.bp-section-header-center .bp-section-meta::after { display: none; }
.bp-section-title { margin: 0; font-family: var(--font-display); font-size: var(--fluid-display-lg); line-height: .98; font-weight: 700; letter-spacing: -.04em; color: var(--ink); text-wrap: balance; }
.bp-section-header-hero .bp-section-title { font-size: var(--fluid-display-xl); line-height: .92; letter-spacing: -.045em; }
.bp-section-lead { margin: 0; font-size: var(--fluid-lead); line-height: 1.5; font-weight: 300; color: var(--ink-muted); max-width: 52ch; text-wrap: pretty; }
.bp-section-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2); }

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

/* TideLoader (dots variant) */
.bp-tideloader { display: inline-flex; align-items: center; gap: var(--space-3); color: var(--ink); }
.bp-tl-label { font: 500 14px/1 var(--font-sans); color: var(--ink-muted); }
.bp-tl-dots { display: inline-flex; gap: calc(var(--bp-tl) * .45); align-items: center; height: calc(var(--bp-tl) * 3); }
.bp-tl-dots span { width: var(--bp-tl); height: var(--bp-tl); border-radius: 50%; background: var(--seaglass-text); animation: bp-tl-bob 1.4s var(--bp-ease-swell) infinite; animation-delay: calc(var(--i) * 120ms); }
@keyframes bp-tl-bob { 0%, 100% { transform: translateY(40%); opacity: .45; } 50% { transform: translateY(-40%); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .bp-card, .bp-card::before, .bp-btn, .bp-orb svg { transition: none; }
  .bp-tl-dots span { animation: none !important; }
}

} /* @layer brand */
