/* ──────────────────────────────────────────────
   DJ GQ WORLDWIDE — widgets.css
   Shared UI for the consent manager (consent.js) and the
   accessibility toolbar (a11y.js). Loaded by every page.
   ────────────────────────────────────────────── */

/* ── Skip link + visible focus ─────────────── */
.skip-link{
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: 12px 18px; background: var(--accent, #C9A24B); color: #0B0B0B;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.skip-link:focus{ left: 0; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--accent, #C9A24B); outline-offset: 2px;
}

/* ── Consent: gated embeds ─────────────────── */
iframe[data-consent-src]:not([src]){ display: none; }
.consent-functional [data-consent-placeholder]{ display: none; }
.ph-consent{
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  border: 1px dashed var(--line, rgba(255,255,255,.14)); border-radius: 12px;
  background: var(--bg-2, #111110);
  padding: 22px; min-height: 152px; justify-content: center;
}
.ph-consent p{
  margin: 0; font-size: 13.5px; font-weight: 300; line-height: 1.55;
  color: var(--ink-2, #B6B0A4); max-width: 52ch;
}
.ph-consent__row{ display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ph-consent__btn{
  font-family: inherit; cursor: pointer;
  font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: #0B0B0B; background: var(--accent, #C9A24B);
  border: 0; border-radius: 6px; padding: 10px 16px;
  transition: opacity .2s ease;
}
.ph-consent__btn:hover{ opacity: .85; }
.ph-consent__policy{
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3, #7C766A); border-bottom: 1px solid var(--line, rgba(255,255,255,.2));
  padding-bottom: 3px;
}
.ph-consent__policy:hover{ color: var(--accent, #C9A24B); }

/* ── Consent: first-visit banner ───────────── */
.cbanner{
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 85;
  display: flex; align-items: center; justify-content: center;
  gap: 26px; flex-wrap: wrap;
  padding: 16px clamp(18px, 4vw, 42px);
  background: var(--bg-2, #111110);
  border-top: 1px solid var(--line, rgba(255,255,255,.14));
  box-shadow: 0 -8px 30px rgba(0,0,0,.45);
}
.cbanner__text{
  margin: 0; font-size: 13px; font-weight: 300; line-height: 1.55;
  color: var(--ink-2, #B6B0A4); max-width: 62ch;
}
.cbanner__text a{
  color: var(--ink, #F3EFE7);
  border-bottom: 1px solid var(--line, rgba(255,255,255,.2));
}
.cbanner__text a:hover{ color: var(--accent, #C9A24B); }
.cbanner__actions{ display: flex; gap: 12px; flex: 0 0 auto; }
.cbanner__accept{
  font-family: inherit; cursor: pointer;
  font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: #0B0B0B; background: var(--accent, #C9A24B);
  border: 0; border-radius: 6px; padding: 11px 18px;
  transition: opacity .2s ease;
}
.cbanner__accept:hover{ opacity: .85; }
.cbanner__deny{
  font-family: inherit; cursor: pointer;
  font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-2, #B6B0A4); background: none;
  border: 1px solid var(--line, rgba(255,255,255,.2)); border-radius: 6px; padding: 10px 17px;
  transition: color .2s ease, border-color .2s ease;
}
.cbanner__deny:hover{ color: var(--ink, #F3EFE7); border-color: var(--dim, rgba(255,255,255,.5)); }

/* ── Consent: preferences modal ────────────── */
.cmodal{
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.65); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  padding: 20px;
}
.cmodal[hidden]{ display: none; }
.cmodal__box{
  width: 100%; max-width: 460px;
  background: var(--bg-2, #111110); color: var(--ink, #F3EFE7);
  border: 1px solid var(--line, rgba(255,255,255,.14)); border-radius: 14px;
  padding: 26px;
}
.cmodal__title{
  margin: 0 0 6px; font-size: 17px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase;
}
.cmodal__intro{ margin: 0 0 18px; font-size: 13.5px; font-weight: 300; color: var(--ink-2, #B6B0A4); line-height: 1.55; }
.cmodal__cat{
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  border-top: 1px solid var(--line, rgba(255,255,255,.14)); padding: 14px 0;
}
.cmodal__cat-name{ font-size: 13.5px; font-weight: 600; display: block; margin-bottom: 3px; }
.cmodal__cat-desc{ font-size: 12.5px; font-weight: 300; color: var(--ink-2, #B6B0A4); line-height: 1.5; }
.cmodal__cat input[type="checkbox"]{ width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent, #C9A24B); flex: 0 0 auto; }
.cmodal__actions{ display: flex; gap: 12px; margin-top: 18px; }
.cmodal__save{
  font-family: inherit; cursor: pointer;
  font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: #0B0B0B; background: var(--accent, #C9A24B);
  border: 0; border-radius: 6px; padding: 10px 16px;
}
.cmodal__close{
  font-family: inherit; cursor: pointer;
  font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-2, #B6B0A4); background: none;
  border: 1px solid var(--line, rgba(255,255,255,.2)); border-radius: 6px; padding: 10px 16px;
}

/* ── Footer: two tidy rows ─────────────────────
   Row 1: brand logo (left) · social links (right)
   Row 2: legal links (left) · copyright (right), under a hairline. */
.afoot{
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  row-gap: 8px;
  padding-top: 12px;
  padding-bottom: 16px;
}
.afoot__brand{ grid-row: 1; grid-column: 1; }
.afoot__brand img{ height: clamp(72px, 8.5vw, 110px); }
.afoot__links{ grid-row: 1; grid-column: 2; flex-wrap: wrap; }
.afoot::after{
  content: ""; grid-row: 2; grid-column: 1 / -1;
  border-top: 1px solid var(--line, rgba(255,255,255,.14));
}
.afoot__links--legal{
  grid-row: 3; grid-column: 1 / -1; justify-self: center;
  justify-content: center; flex-wrap: wrap;
}
.afoot__copy{ grid-row: 4; grid-column: 1 / -1; justify-self: center; }

.afoot__prefs{
  font-family: inherit; cursor: pointer; background: none; border: 0; padding: 0;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-2, #B6B0A4); transition: color .2s ease;
}
.afoot__prefs:hover{ color: var(--accent, #C9A24B); }

.afoot__links--icons{ gap: 20px; }
.afoot__ico{
  width: 21px; height: 21px; display: block;
  color: var(--ink-2, #B6B0A4); transition: color .2s ease;
}
.afoot__ico--wide{ width: 24px; }
.afoot__links--icons a:hover .afoot__ico{ color: var(--accent, #C9A24B); }

@media (max-width: 680px){
  .afoot{ grid-template-columns: 1fr; row-gap: 8px; }
  .afoot__brand{ grid-row: 1; }
  .afoot__links{ grid-row: 2; grid-column: 1; }
  .afoot::after{ grid-row: 3; }
  .afoot__links--legal{ grid-row: 4; grid-column: 1; }
  .afoot__copy{ grid-row: 5; grid-column: 1; }
}

/* ── Accessibility toolbar ─────────────────── */
.a11y-fab{
  position: fixed; left: 18px; bottom: 18px; z-index: 80;
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent, #C9A24B); color: #0B0B0B;
  border: 0; cursor: pointer;
  box-shadow: 0 4px 18px rgba(0,0,0,.45);
}
.a11y-fab svg{ width: 26px; height: 26px; }
.a11y-panel{
  position: fixed; left: 18px; bottom: 74px; z-index: 80;
  width: 240px; max-height: min(70vh, 520px); overflow-y: auto;
  background: var(--bg-2, #111110); color: var(--ink, #F3EFE7);
  border: 1px solid var(--line, rgba(255,255,255,.14)); border-radius: 14px;
  padding: 16px;
}
.a11y-panel[hidden]{ display: none; }
.a11y-panel__title{
  margin: 0 0 12px; font-size: 12px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--dim, rgba(255,255,255,.62));
}
.a11y-tool{
  display: flex; align-items: center; gap: 10px; width: 100%;
  font-family: inherit; font-size: 13px; font-weight: 500; text-align: left;
  color: var(--ink, #F3EFE7); background: none; border: 0; border-radius: 8px;
  padding: 9px 10px; cursor: pointer;
  transition: background .15s ease;
}
.a11y-tool:hover{ background: rgba(255,255,255,.06); }
.a11y-tool[aria-pressed="true"]{ background: rgba(201,162,75,.18); color: var(--accent, #C9A24B); }
.a11y-tool__ico{ width: 17px; text-align: center; flex: 0 0 17px; font-weight: 600; }

/* ── Accessibility modes (classes on <html>) ── */
.nav, .scroll, .bg, .stage{ filter: var(--a11y-filter, none); }
.scroll{ zoom: var(--a11y-zoom, 1); }

html.a11y-ul a{ text-decoration: underline !important; }
html.a11y-rf body, html.a11y-rf button, html.a11y-rf input,
html.a11y-rf select, html.a11y-rf textarea{
  font-family: Arial, Verdana, sans-serif !important;
}
html.a11y-light{
  --bg: #F4F1EA; --bg-2: #FFFFFF;
  --ink: #141414; --ink-2: #3B382F; --ink-3: #6A6459;
  --dim: rgba(0,0,0,.62); --line: rgba(0,0,0,.16);
}
html.a11y-light body{ background: var(--bg); color: var(--ink); }
html.a11y-light .bg__img, html.a11y-light .bg__scrim{ opacity: .12; }
html.a11y-light .stage__logo, html.a11y-light .afoot__brand img{ filter: invert(1); }

@media (max-width: 680px){
  .a11y-fab{ left: 12px; bottom: 12px; }
  .a11y-panel{ left: 12px; bottom: 66px; width: min(240px, calc(100vw - 24px)); }
}
