/* PLN public advertising sites — platform components.
   ==========================================================================
   Shared chrome for the pages that are NOT the designed home page
   (campaign landing page, 404) plus the advertising and GDPR components
   used everywhere:
     · theme tokens            (black & gold / midnight azure)
     · campaign + 404 chrome   (topbar, footer, offers)
     · tracked ad zones        (.ad-zone, .ad-banner)
     · GDPR consent module
   The home page design itself lives in maquette.css.
   ========================================================================== */

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;font-family:Inter,"Segoe UI",system-ui,-apple-system,Arial,sans-serif;
  line-height:1.65;font-size:16px;background:var(--bg);color:var(--text)}
img{max-width:100%;height:auto;display:block}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3,h4{line-height:1.2;margin:0 0 .5em}
h1{font-size:clamp(1.7rem,4.5vw,2.9rem);letter-spacing:-.02em}
h2{font-size:clamp(1.35rem,3vw,2rem)}
h3{font-size:1.15rem}
p{margin:0 0 1em}
.wrap{width:min(1180px,100% - 32px);margin-inline:auto}
.section{padding:44px 0}
.muted{color:var(--muted)}
.mini{font-size:.83rem;line-height:1.6;color:var(--muted)}
.sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.skip{position:absolute;left:-9999px;top:0;background:var(--accent);color:#000;padding:10px 16px;z-index:100}
.skip:focus{left:8px;top:8px}
/* `hidden` must beat the component display rules below — the consent banner
   and its custom panel are toggled with the attribute, not with a class. */
[hidden]{display:none!important}

/* ---------------------------------------------------------- theme tokens */
.theme-plnweb{
  --bg:#0d0b08;--surface:#16130e;--surface-2:#1e1a13;--text:#f5efe3;--muted:#a99e88;
  --accent:#e0b562;--accent-2:#f6d894;--line:#332c20;--brand-weight:800;
}
.theme-plnemail{
  --bg:#08111c;--surface:#0f1c2b;--surface-2:#152539;--text:#e8f1fa;--muted:#8fa6bd;
  --accent:#5aa9e6;--accent-2:#9ed2f7;--line:#1d3147;--brand-weight:700;
}

/* ------------------------------------------------------------------- cta */
.cta{display:inline-block;background:linear-gradient(135deg,var(--accent),var(--accent-2));
  color:#14100a;border:0;border-radius:9px;padding:12px 22px;font-weight:700;font-size:.94rem;
  cursor:pointer;transition:transform .15s,box-shadow .15s;text-align:center}
.cta:hover{transform:translateY(-1px);box-shadow:0 8px 22px color-mix(in srgb,var(--accent) 35%,transparent);
  text-decoration:none}
.cta--ghost{background:transparent;color:var(--text);border:1px solid var(--line)}
.cta--ghost:hover{border-color:var(--accent);color:var(--accent-2);box-shadow:none}
.cta--sm{padding:9px 16px;font-size:.86rem}
.cta--full{width:100%;margin-top:8px}
/* :not(.cta--ghost) matters — an older rule without it out-specified the
   ghost variant and painted its label dark-on-dark (1.1:1) in the consent
   banner. Ghost buttons keep --text on both themes. */
.theme-plnemail .cta:not(.cta--ghost){color:#04101c}

/* ------------------------------------------------- campaign / 404 chrome */
.topbar{position:sticky;top:0;z-index:20;background:color-mix(in srgb,var(--bg) 88%,transparent);
  backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.topbar__inner{display:flex;align-items:center;gap:18px;padding:13px 0;flex-wrap:wrap}
.topbar .brand{display:inline-flex;align-items:center;gap:9px;color:var(--text);
  font-weight:var(--brand-weight);letter-spacing:.08em;font-size:1.06rem}
.topbar .brand:hover{text-decoration:none}
.brand__mark{color:var(--accent);font-size:1.15rem}
.brand__name{background:linear-gradient(90deg,var(--text),var(--accent-2));
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.mainnav{display:flex;gap:20px;margin-left:auto;flex-wrap:wrap}
.mainnav a{color:var(--muted);font-size:.92rem;font-weight:500}
.mainnav a:hover{color:var(--accent-2);text-decoration:none}
.offers{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:18px;margin:26px 0}
.offer{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:20px}
.offer h3{color:var(--accent-2)}
.footer{background:var(--surface);border-top:1px solid var(--line);margin-top:44px;padding:38px 0 20px}
.footer__inner{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:24px}
.footer h4{font-size:.8rem;text-transform:uppercase;letter-spacing:.12em;color:var(--muted);margin-bottom:10px}
.footer a{display:block;color:var(--muted);font-size:.9rem;padding:3px 0}
.footer a:hover{color:var(--accent-2)}
.footer a.brand{display:inline}
.footer__bottom{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;
  border-top:1px solid var(--line);margin-top:26px;padding-top:16px}
.footer__bottom small{color:var(--muted);font-size:.8rem}

/* ------------------------------------------------------------- ad zones */
.ad-zone{margin:22px 0}
.ad-zone--empty{border:2px dashed color-mix(in srgb,var(--accent) 45%,transparent);
  border-radius:12px;min-height:74px;display:grid;place-items:center;
  background:color-mix(in srgb,var(--accent) 7%,transparent);color:var(--muted);
  text-align:center;padding:14px;font-size:.86rem}
.ad-zone--empty b{display:block;color:var(--accent-2);font-size:.92rem;margin-bottom:2px}
.ad-banner{display:block;border:1px solid var(--line);border-radius:14px;overflow:hidden;
  background:var(--surface);color:var(--text);transition:border-color .18s,transform .18s}
.ad-banner:hover{border-color:var(--accent);transform:translateY(-2px);text-decoration:none}
.ad-banner img,.ad-banner video{width:100%;height:auto;display:block}
.ad-zone__label{display:block;padding:18px;font-weight:700;color:var(--accent-2)}
.ad-zone__body{display:block;padding:0 18px 16px;font-size:.86rem;color:var(--muted)}

/* ---------------------------------------------------------------- consent */
.consent{position:fixed;inset:auto 0 0 0;z-index:60;background:var(--surface);
  border-top:1px solid var(--accent);box-shadow:0 -14px 44px #0009;padding:18px 0;
  max-height:82vh;overflow:auto}
.consent__inner{width:min(1180px,100% - 32px);margin-inline:auto;display:flex;gap:22px;
  align-items:center;flex-wrap:wrap}
.consent__inner>div:first-child{flex:1;min-width:260px}
.consent__inner b{color:var(--accent-2)}
.consent__actions{display:flex;gap:10px;flex-wrap:wrap}
.consent__custom{width:min(1180px,100% - 32px);margin:16px auto 0;display:grid;gap:8px;
  border-top:1px solid var(--line);padding-top:14px}
.consent__custom label{display:flex;gap:9px;align-items:center;font-size:.9rem;color:var(--muted)}
.consent__custom input{width:auto}
.consent__custom button{justify-self:start}

/* ------------------------------------------------------------- responsive */
@media (max-width:900px){
  .footer__inner{grid-template-columns:1fr 1fr}
  .mainnav{order:3;width:100%;margin-left:0;gap:16px;overflow-x:auto}
}
@media (max-width:560px){
  .footer__inner{grid-template-columns:1fr}
  .topbar__inner{gap:12px}
  .cta--sm{display:none}
  .consent__inner,.consent__actions{flex-direction:column;align-items:stretch}
  .consent__actions .cta{width:100%}
}
@media (prefers-reduced-motion:reduce){
  *{transition:none!important;animation:none!important}
}
