/* Parsons Smile Center — cookie consent (banner + preferences modal).
   Brand-matched: obsidian card with a gold seam; ivory modal with gold toggles. */

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

/* ============================ BANNER ============================ */
.psc-cc {
  position: fixed; left: 24px; bottom: 24px; z-index: 190;
  width: min(440px, calc(100vw - 48px));
  opacity: 0; transform: translateY(20px);
  transition: opacity .5s var(--ease, ease), transform .5s var(--ease, ease);
}
.psc-cc[hidden] { display: none; }
.psc-cc.in { opacity: 1; transform: none; }
.psc-cc-card {
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 30% -30%, #1d1812, var(--black, #0c0907));
  border: 1px solid var(--hair-dark, rgba(242,235,219,.12));
  border-radius: 6px; padding: 26px 26px 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
}
.psc-cc-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--gold-deep, #8a6a2f), var(--gold-light, #d8b878), var(--gold-deep, #8a6a2f)); }
.psc-cc-eyebrow { display: block; font-family: var(--font-caps, sans-serif); font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-light, #d8b878); margin-bottom: 12px; }
.psc-cc-body p { margin: 0; font-size: 13.5px; line-height: 1.65; color: rgba(242,235,219,.78); }
.psc-cc-body a { color: var(--gold-light, #d8b878); text-decoration: underline; text-underline-offset: 2px; }
.psc-cc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 20px; }
.psc-cc .btn { font-size: 13px; padding: 12px 22px; }
.psc-cc-link { background: none; border: none; cursor: pointer; font-family: var(--font-body, inherit); font-size: 12.5px; letter-spacing: .02em; color: rgba(242,235,219,.6); text-decoration: underline; text-underline-offset: 3px; transition: color .3s var(--ease, ease); padding: 6px 2px; }
.psc-cc-link:hover { color: var(--gold-light, #d8b878); }

/* ============================ PREFERENCES MODAL ============================ */
.psc-cc-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 5vh 5vw; }
.psc-cc-modal[hidden] { display: none; }
.psc-cc-modal-backdrop { position: absolute; inset: 0; background: rgba(12,9,7,.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .4s var(--ease, ease); }
.psc-cc-modal-dialog {
  position: relative; z-index: 1; width: min(600px, 100%); max-height: 90vh; overflow: auto;
  background: var(--ivory, #faf6ec); border-radius: 5px; box-shadow: 0 40px 120px rgba(0,0,0,.5);
  padding: clamp(28px, 4vw, 46px);
  opacity: 0; transform: translateY(18px) scale(.985);
  transition: opacity .5s var(--ease, ease), transform .5s var(--ease, ease);
}
.psc-cc-modal.open .psc-cc-modal-backdrop { opacity: 1; }
.psc-cc-modal.open .psc-cc-modal-dialog { opacity: 1; transform: none; }
.psc-cc-modal-close { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--hair-strong, #d8cdba); background: var(--ivory, #faf6ec); color: var(--ink, #14100d); cursor: pointer; transition: background .3s var(--ease, ease), color .3s var(--ease, ease); }
.psc-cc-modal-close:hover { background: var(--ink, #14100d); color: var(--ivory, #faf6ec); }
.psc-cc-modal-close svg { width: 20px; height: 20px; }
.psc-cc-modal-dialog .eyebrow { display: block; margin-bottom: 8px; }
.psc-cc-modal-dialog .h2 { margin: 0 0 12px; }
.psc-cc-modal-lead { margin: 0 0 26px; color: var(--ink-soft, #6b6257); font-size: 14.5px; line-height: 1.7; max-width: 52ch; }

.psc-cc-cat { padding: 20px 0; border-top: 1px solid var(--hair, #e7ddcb); }
.psc-cc-cat:last-of-type { border-bottom: 1px solid var(--hair, #e7ddcb); }
.psc-cc-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.psc-cc-cat-name { font-family: var(--font-display, serif); font-size: 19px; color: var(--ink, #14100d); }
.psc-cc-cat p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-soft, #6b6257); max-width: 58ch; }
.psc-cc-always { flex: 0 0 auto; font-family: var(--font-caps, sans-serif); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep, #8a6a2f); }

/* toggle switch */
.psc-cc-switch { position: relative; display: inline-flex; flex: 0 0 auto; cursor: pointer; }
.psc-cc-switch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.psc-cc-slider { width: 46px; height: 26px; border-radius: 999px; background: #d3c7b2; transition: background .3s var(--ease, ease); position: relative; }
.psc-cc-slider::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .3s var(--ease, ease); }
.psc-cc-switch input:checked + .psc-cc-slider { background: var(--gold, #b8924c); }
.psc-cc-switch input:checked + .psc-cc-slider::after { transform: translateX(20px); }
.psc-cc-switch input:focus-visible + .psc-cc-slider { outline: 2px solid var(--gold, #b8924c); outline-offset: 2px; }

.psc-cc-modal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.psc-cc-modal-actions .btn { font-size: 13.5px; }

html.psc-cc-lock { overflow: hidden; }

/* ============================ MOBILE ============================ */
@media (max-width: 620px) {
  .psc-cc { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .psc-cc-card { padding: 22px 20px; }
  .psc-cc-actions .btn { flex: 1 1 auto; justify-content: center; }
  .psc-cc-link { flex: 1 1 100%; text-align: center; }
  .psc-cc-modal-actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* ============================ REDUCED MOTION ============================ */
@media (prefers-reduced-motion: reduce) {
  .psc-cc, .psc-cc-modal-backdrop, .psc-cc-modal-dialog, .psc-cc-slider, .psc-cc-slider::after { transition: none !important; }
  .psc-cc-modal-dialog { transform: none; }
}
