/* Consent banner, choices panel, footer control and chat launcher (public/sy-consent.js), 2026-11-19.
   The site's own look: white ground, near-black type, square corners, one emerald accent (#10b981, the template's
   brand token), Cabin for running text and Inter uppercase for controls, the same pairing as the hero eyebrow and
   buttons. The banner never covers the page end: --consent-h is published and reserved below the last section. */
:root { --sy-c-ink: #000; --sy-c-mute: rgba(0, 0, 0, 0.64); --sy-c-line: rgba(0, 0, 0, 0.14); --sy-c-ground: #fff; --sy-c-accent: #10b981; --sy-c-accent-ink: #047857; }
html[data-consent-open] body { padding-bottom: var(--consent-h, 0px); }

.sy-consent { position: fixed; z-index: 2147483000; font-family: Cabin, "Cabin Placeholder", system-ui, sans-serif; color: var(--sy-c-ink); -webkit-font-smoothing: antialiased; }
.sy-consent *, .sy-consent *::before, .sy-consent *::after { box-sizing: border-box; }
.sy-consent p { margin: 0; }
.sy-consent a { color: var(--sy-c-ink); text-decoration: underline; text-decoration-color: var(--sy-c-accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.sy-consent a:hover { text-decoration-color: var(--sy-c-ink); }

/* First view: a full-width band at the bottom. */
.sy-c-band { left: 0; right: 0; bottom: 0; background: var(--sy-c-ground); border-top: 1px solid var(--sy-c-line); box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.06); padding-bottom: env(safe-area-inset-bottom); max-height: 85svh; overflow-y: auto; }
.sy-c-band::before { content: ""; position: absolute; left: 0; top: -1px; width: 72px; height: 2px; background: var(--sy-c-accent); }
.sy-c-band .sy-c-inner { max-width: 1320px; margin: 0 auto; padding: 14px 40px; display: flex; align-items: center; gap: 32px; }
.sy-c-band .sy-c-text { flex: 1; font-size: 15px; line-height: 1.5; }
.sy-c-band .sy-c-actions { flex: none; display: flex; gap: 8px; }
.sy-c-band .sy-c-three .sy-c-btn { min-width: 120px; }

/* Reopened notice, panel and GPC note: a card bottom-left on wide screens, a sheet on phones. */
.sy-c-card { left: 24px; bottom: 24px; width: 440px; background: var(--sy-c-ground); border: 1px solid var(--sy-c-line); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12); max-height: calc(100vh - 48px); overflow-y: auto; }
.sy-c-card::before { content: ""; position: absolute; left: -1px; top: -1px; width: 56px; height: 3px; background: var(--sy-c-accent); }
.sy-c-card .sy-c-inner { padding: 20px 22px 22px; }
.sy-c-card .sy-c-text { font-size: 14px; line-height: 1.55; }
.sy-c-card .sy-c-actions { margin-top: 16px; display: flex; gap: 8px; }
.sy-c-card .sy-c-two .sy-c-btn, .sy-c-card .sy-c-three .sy-c-btn { flex: 1; }
.sy-c-card .sy-c-end { justify-content: flex-end; }

.sy-c-eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 12px !important; font-family: Inter, "Inter Placeholder", system-ui, sans-serif; font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.sy-c-mark { width: 10px; height: 10px; background: var(--sy-c-accent); display: inline-block; }
.sy-c-title { font-family: Merriweather, "Merriweather Placeholder", Georgia, serif; font-weight: 300; font-size: 20px; line-height: 1.3; margin: 0 0 8px !important; }
.sy-c-wide { display: inline; }
.sy-c-phone { display: none; }

.sy-c-btn { appearance: none; -webkit-appearance: none; margin: 0; height: 40px; padding: 0 18px; border-radius: 0; border: 1px solid var(--sy-c-ink); background: var(--sy-c-ground); color: var(--sy-c-ink); font-family: Inter, "Inter Placeholder", system-ui, sans-serif; font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; cursor: pointer; transition: background-color 0.15s, color 0.15s; }
.sy-c-btn:hover { background: #f2f2f2; }
.sy-c-solid { background: var(--sy-c-ink); color: #fff; }
.sy-c-solid:hover { background: #222; }
.sy-consent button:focus-visible, .sy-chat:focus-visible, [data-sy-cookie-choices]:focus-visible { outline: 2px solid var(--sy-c-accent); outline-offset: 2px; }

.sy-c-row { border-top: 1px solid var(--sy-c-line); padding: 12px 0; }
.sy-c-row:first-of-type { border-top: 0; }
.sy-c-rowhead { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sy-c-label { font-family: Inter, "Inter Placeholder", system-ui, sans-serif; font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.sy-c-desc { margin-top: 6px !important; font-size: 13px; line-height: 1.5; color: var(--sy-c-mute); }
.sy-c-switch { appearance: none; background: none; border: 0; padding: 4px 0; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-family: Inter, "Inter Placeholder", system-ui, sans-serif; font-size: 12px; color: var(--sy-c-mute); }
.sy-c-track { position: relative; width: 38px; height: 22px; border: 1px solid var(--sy-c-line); background: #ececec; transition: background-color 0.15s, border-color 0.15s; }
.sy-c-knob { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; background: #fff; border: 1px solid rgba(0, 0, 0, 0.2); transition: left 0.15s; }
.sy-c-switch[aria-checked="true"] .sy-c-track { background: var(--sy-c-accent); border-color: var(--sy-c-accent); }
.sy-c-switch[aria-checked="true"] .sy-c-knob { left: 19px; border-color: transparent; }
.sy-c-switch[aria-checked="true"] { color: var(--sy-c-accent-ink); }
.sy-c-status { margin-top: 8px !important; font-size: 13px; }

/* Chat launcher, bottom-right, lifted above the banner while it is open. */
.sy-chat { position: fixed; right: 20px; bottom: calc(20px + var(--consent-h, 0px)); z-index: 2147482000; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--sy-c-ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.32), 0 8px 24px rgba(0, 0, 0, 0.18); cursor: pointer; transition: opacity 0.15s, bottom 0.2s; }
.sy-chat::after { content: ""; position: absolute; top: 2px; right: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--sy-c-accent); border: 2px solid #fff; }
.sy-chat:hover { opacity: 0.88; }
.sy-chat[disabled] { opacity: 0.6; cursor: progress; }
.sy-chat.sy-chat-hidden { visibility: hidden; }
/* While a first-view notice is open on a phone, the launcher waits (live rule: none over the open banner). */
@media (max-width: 639.98px) { html[data-consent-open] .sy-chat, html[data-consent-open] chat-widget { display: none !important; } }

@media (max-width: 809.98px) {
  .sy-c-band .sy-c-inner { padding: 10px 16px 12px; flex-direction: column; align-items: stretch; gap: 10px; }
  .sy-c-band .sy-c-text { font-size: 13px; line-height: 1.4; }
  .sy-c-band .sy-c-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .sy-c-band .sy-c-three { grid-template-columns: 1fr 1fr 1fr; }
  .sy-c-band .sy-c-three .sy-c-btn { min-width: 0; }
  .sy-c-btn { padding: 0 10px; font-size: 12px; letter-spacing: 0.04em; }
  .sy-c-card { left: 0; right: 0; bottom: 0; width: auto; border-left: 0; border-right: 0; border-bottom: 0; max-height: 85svh; padding-bottom: env(safe-area-inset-bottom); }
  .sy-c-card .sy-c-inner { padding: 16px 16px 14px; }
}
@media (max-width: 639.98px) {
  .sy-c-wide { display: none; }
  .sy-c-phone { display: inline; }
  .sy-chat { right: 16px; bottom: calc(16px + var(--consent-h, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .sy-c-btn, .sy-c-track, .sy-c-knob, .sy-chat { transition: none; } }

/* Phone compact text (<640px, the banner's phone breakpoint): summary + Details; the full text replaces the summary in place when opened.
   From 640px up only .sy-c-wide shows, exactly as before. */
.sy-c-sum, .sy-c-detail, .sy-c-more { display: none; }
.sy-c-more { appearance: none; -webkit-appearance: none; margin: 0; padding: 0; min-height: 24px; min-width: 24px; vertical-align: baseline; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-decoration-color: var(--sy-c-accent); text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; }
.sy-c-more:hover { text-decoration-color: var(--sy-c-ink); }
.sy-c-more:focus-visible { outline: 2px solid var(--sy-c-accent); outline-offset: 2px; }
@media (max-width: 639.98px) {
  .sy-c-text:has(.sy-c-sum) .sy-c-wide { display: none; }
  .sy-c-sum:not([hidden]), .sy-c-detail:not([hidden]) { display: inline; }
  .sy-c-more { display: inline-block; padding: 2px 0; }
  .sy-c-band .sy-c-inner:has(.sy-c-sum) { padding: 10px 16px; gap: 8px; }
}
