/**
 * consent.css — banner styling (Build-Checklist 11.1).
 *
 * ⚠ SEPARATE FILE ON PURPOSE. styles.css carries over from the prototype unchanged
 * (Phase 2 constraint, see .eleventy.js) and this must not be the edit that breaks
 * that. It reads styles.css's tokens and defines none of its own colours.
 */

.consent {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  padding: 16px;
  font-family: var(--font-body);
}

/* The settings view is modal; the first-layer notice is not. A notice that dims the
   page reads as a demand, and nothing behind it is blocked — you may ignore it. */
.consent--settings {
  inset: 0;
  align-items: center;
  background: rgba(20, 27, 60, .55);
  overflow-y: auto;
}

.consent__box {
  width: 100%;
  max-width: 560px;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 22px 24px;
}
.consent--settings .consent__box { max-width: 640px; margin: auto; }

.consent__title {
  font-family: var(--font-head);
  color: var(--indigo-900);
  font-size: 1.15rem;
  margin: 0 0 8px;
}
.consent__body { margin: 0 0 16px; font-size: .9rem; line-height: 1.55; color: var(--grey-600); }

.consent__service { border-top: 1px solid var(--grey-300); padding-top: 14px; margin-bottom: 16px; }
.consent__toggle { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.consent__toggle input { width: 18px; height: 18px; accent-color: var(--indigo-600); }
.consent__svc { margin: 12px 0 4px; font-weight: 600; font-size: .85rem; color: var(--ink); }
.consent__hint { margin: 6px 0 0; font-size: .8rem; line-height: 1.5; color: var(--grey-600); }

/* 🔑 EQUAL PROMINENCE. Every .consent__btn is identical — same size, same weight,
   same colour. Accept is NOT visually favoured over decline. If a future change
   introduces a `--primary` variant here, it reverses a decision taken deliberately
   on 8 Sep 2026; see the matching comment in consent.js. */
.consent__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.consent__btn {
  flex: 1 1 auto;
  min-width: 140px;
  padding: 11px 18px;
  border: 1px solid var(--indigo-600);
  border-radius: 999px;
  background: var(--indigo-600);
  color: var(--white);
  font: inherit;
  font-weight: 600;
  font-size: .88rem;
  cursor: pointer;
}
.consent__btn:hover { background: var(--indigo-700); border-color: var(--indigo-700); }
.consent__btn:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }

.consent__link {
  border: 0; background: none; padding: 6px 2px;
  color: var(--indigo-600); font: inherit; font-size: .85rem;
  text-decoration: underline; cursor: pointer;
}
.consent__link:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }

.consent__foot { margin: 14px 0 0; font-size: .78rem; color: var(--grey-600); }
.consent__foot a { color: var(--grey-600); }

@media (max-width: 520px) {
  .consent__btn { flex: 1 1 100%; }
  .consent__box { padding: 18px 18px 20px; }
}

@media (prefers-reduced-motion: no-preference) {
  .consent--notice .consent__box { animation: consent-in .18s ease-out; }
  @keyframes consent-in { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
}

/**
 * The footer trigger. It is a <button> because it opens a dialog rather than
 * navigating — but it must READ as one of the footer links beside it, so it borrows
 * their colour and hover exactly (styles.css:716) rather than inventing a treatment.
 * ⚠ Without this it renders as a default browser button: white box, black text, on a
 * dark indigo footer. Caught by the screenshot gate, 8 Sep 2026.
 */
.foot-consent {
  background: none;
  border: 0;
  padding: .2rem 0;
  font: inherit;
  font-size: inherit;
  color: rgba(255, 255, 255, .6);
  text-decoration: underline;
  cursor: pointer;
  transition: color .25s;
}
.foot-consent:hover { color: var(--saffron); }
.foot-consent:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; }
