/* ==========================================================================
   Shared rules for the inner pages (about.html, case-studies.html, case study articles).
   Loads after styles.css and theme.css. Page specific rules live in about.css
   and case-studies.css. Do not put page specific rules here.
   ========================================================================== */

/* Inner pages have no film hero, so the header is solid from the start. */
.page .site-header { background: var(--header-solid); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--hair); }
.page main { padding-top: var(--header); }

/* Current page in the menu: ink text and one thin warm rule under it. */
.nav-links a[aria-current="page"], .footer-links a[aria-current="page"], .sheet a[aria-current="page"] { color: var(--ink); }


/* Header bar: label plus a small chevron, as in the reference. */
.nav-links a, .sheet a { display: inline-flex; align-items: center; gap: 7px; }
.nav-chev { width: 10px; height: 10px; flex: none; }

/* Header bar: links centred on the page, logo left, menu button right on phones. */
.site-header .wrap { position: relative; }
.nav-links { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
/* Capsule nav: quiet pill holding the three links, current page is a dark chip */
.nav-links {
  gap: 2px; padding: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, .5);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(26, 26, 26, .07);
}
.nav-links a { font-size: 13.5px; font-weight: 500; color: var(--mute-strong, #55584f); padding: 7px 15px; border-radius: 999px; transition: background-color .2s, color .2s; }
.nav-links a:hover { color: var(--ink); background: rgba(26, 26, 26, .05); }
.nav-links a[aria-current="page"], .nav-links a[aria-current="page"]:hover { background: var(--ink); color: #fff; }


/* Footer, legal row: legal links, cookie settings, contact, compliance. Shared by every page. Required on every page,
   so it stays full strength muted text at a readable size. */
.site-footer .footer-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; margin-top: 40px; }
.footer-legal, .footer-contact, .footer-compliance { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; line-height: 1.5; }
/* Compliance links take their own row under legal and contact. */
.site-footer .footer-compliance { flex-basis: 100%; }
.footer-legal a, .footer-contact a, .footer-compliance a, .footer-legal .linklike { color: var(--mute); transition: color .2s; }
.footer-legal a:hover, .footer-contact a:hover, .footer-compliance a:hover, .footer-legal .linklike:hover { color: var(--accent-text); }
.linklike { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
@media (max-width: 899px) {
  .site-footer .footer-meta { flex-direction: column; gap: 4px; margin-top: 32px; }
  .site-footer .footer-compliance { flex-basis: auto; }
}
@media (max-width: 719px) {
  .site-footer .footer-meta { margin-top: 12px; gap: 0; }
  .footer-legal, .footer-contact, .footer-compliance { gap: 0 24px; font-size: 14px; }
  .footer-legal a, .footer-contact a, .footer-compliance a, .footer-legal .linklike { display: inline-block; padding: 10px 0; }
}

/* Cookie banner (js/consent.js), same look and text as the previous getsupernal.ai. */
.consent {
  position: fixed; z-index: 100; right: 24px; bottom: 24px; width: 360px; max-width: calc(100vw - 32px);
  background: #fff; color: var(--ink); border: 1px solid var(--hair); border-radius: 20px; padding: 22px 22px 20px;
  box-shadow: 0 18px 50px var(--shadow); font-family: var(--font);
  opacity: 0; transform: translateY(16px); transition: opacity .25s ease, transform .25s ease;
}
.consent.is-open { opacity: 1; transform: none; }
.consent h3 { font-size: 16px; font-weight: 600; margin: 0 0 8px; }
.consent p { font-size: 14px; line-height: 1.55; color: var(--body); margin: 0 0 18px; }
.consent p a { color: var(--accent-text); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.consent-actions { display: flex; gap: 10px; }
.consent-btn { flex: 1; height: 42px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; border: 1px solid var(--hair-strong); background: #fff; color: var(--ink); }
.consent-btn:hover { background: var(--wall); }
.consent-btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.consent-btn-primary:hover { background: #3a3a3a; }
.consent-close { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; border: 0; border-radius: 999px; background: none; color: var(--mute); cursor: pointer; display: grid; place-items: center; }
.consent-close svg { width: 14px; height: 14px; }
.consent-close:hover { background: var(--wall); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .consent { transition: none; } }
@media (max-width: 480px) { .consent { right: 16px; bottom: 16px; } }

/* Footer site map: every section of the site, one column each. Shared by every page. */
.site-footer .footer-map { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; align-items: start; }
.footer-map-title { font-family: var(--label); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin: 0 0 12px; }
.footer-map ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.footer-map a { color: var(--mute); }
.footer-map a:hover { color: var(--accent-text); }
@media (max-width: 899px) { .site-footer .footer-map { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; } }
.site-footer .wrap.footer-map { border-top: 0; padding-top: 32px; }
