/* London Andrology: shared stylesheet (css/styles.css).
   Inherited from the Professor Suks Minhas design system v1.0, unchanged apart from the name.
   One light theme for the page (no toggle). Always-navy sections (header, hero, FAQ, footer)
   carry data-theme="dark" so they pick up the navy tokens. The internal tools (dashboard,
   Site Config) open in dark and read --bg, --surface, --ink, --ink-muted, --line and --accent.
   Fonts: Red Hat Display (headings) and Red Hat Text (body), Google Fonts. */

:root,[data-theme="light"]{
  --bg:#FFFFFF;--surface:#F6F8FA;--text:#032035;--muted:#4D5D6C;--accent:#84652B;--gold:#BC9B5D;
  --border:#DFE5EA;--field:#FFFFFF;--tile:#EEF2F5;--btn-bg:#032035;--btn-fg:#FFFFFF;--btn-hover:#123B5C;
  --error:#B3261E;--ring:rgba(132,101,43,.26);--shadow:rgba(3,32,53,.28);
  --ink:#032035;--ink-muted:#4D5D6C;--line:#DFE5EA;--link:#84652B;--link-hover:#5E4A24;
  --focus-ring:0 0 0 3px rgba(132,101,43,.55);
  --font:'Red Hat Text',system-ui,sans-serif;--font-head:'Red Hat Display',system-ui,sans-serif;--font-display:var(--font-head);
  --navy:#032035;--navy-deep:#01121F;--night:#021A2C;--cream:#F3EEE4;
  --shadow-card:0 1px 2px rgba(3,32,53,.06),0 14px 32px -16px rgba(3,32,53,.28);--shadow-card-deep:0 1px 2px rgba(3,32,53,.08),0 24px 48px -20px rgba(3,32,53,.45);
  --radius-sm:6px;--radius-md:8px;--radius-lg:10px;--ease:cubic-bezier(.2,.7,.2,1);--speed:.2s;
  color-scheme:light;
}
[data-theme="dark"]{
  --bg:#021A2C;--surface:#082A43;--text:#F3EEE4;--muted:#FFFFFF;--accent:#C9A96A;--gold:#BC9B5D;
  --border:#1D3D55;--field:#031F33;--tile:#0F3654;--btn-bg:#BC9B5D;--btn-fg:#032035;--btn-hover:#CDB07A;
  --error:#F2938C;--ring:rgba(201,169,106,.32);--shadow:rgba(0,0,0,.6);
  --ink:#F3EEE4;--ink-muted:#C3CBD3;--line:rgba(188,155,93,.35);--link:#D9BE8A;--link-hover:#F3EEE4;
  --focus-ring:0 0 0 3px rgba(188,155,93,.6);
  color-scheme:dark;
}

/* Site buttons and cards (approved Option A, 23 November 2026) */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:12px 26px;border-radius:var(--radius-sm);font:600 15px/1.2 var(--font-head);letter-spacing:.08em;text-transform:uppercase;text-decoration:none;border:1px solid transparent;cursor:pointer;transition:background var(--speed),color var(--speed),border-color var(--speed)}
.btn--primary,.btn--gold{background:#BC9B5D;color:#032035}.btn--primary:hover,.btn--gold:hover{background:#CDB07A;color:#032035}
.btn--navy{background:#032035;color:#FFFFFF}.btn--navy:hover{background:#123B5C;color:#FFFFFF}
.btn--ghost{border-color:rgba(188,155,93,.7);color:var(--text)}.btn--ghost:hover{background:rgba(188,155,93,.14)}
.btn:focus-visible{outline:2px solid #BC9B5D;outline-offset:3px}
.card{background:#FFFFFF;border-radius:var(--radius-md);border-top:3px solid var(--gold);box-shadow:var(--shadow-card)}

/* Draft copy pill: straight after drafted text the client has not approved. Removed at approval. */
.draft-tag{display:inline-flex;align-items:center;vertical-align:middle;margin-left:8px;padding:2px 8px;border-radius:999px;
  font:700 11px/1.4 var(--font);letter-spacing:.1em;text-transform:uppercase;color:var(--accent);
  background:color-mix(in srgb,var(--gold) 14%,transparent);border:1px solid color-mix(in srgb,var(--gold) 55%,transparent)}

/* Cookie settings modal: the panel stays navy whatever the section. */
.cookie{--ink:#01121F;--paper:#F3EEE4;--accent:#BC9B5D;--accent-ink:#032035;font-family:var(--font)}
/* ==========================================================================
   COOKIE SETTINGS (OPT-OUT, no banner): modal only
   2xN reference. Pairs with
   scripts/opt-out/cookie-consent.js. Copy this whole block to the end of the
   project's css/styles.css instead of the banner COOKIE CONSENT block.

   Re-skin: map these design-system variables (or define them):
     --ink (panel background), --paper (panel text), --accent, --accent-ink,
     --font-display, --radius-lg, --ease, --speed
   and adjust the --cookie-* colour hooks on .cookie below. The panel stays
   dark in both themes so it reads as chrome rather than page content.
   ========================================================================== */
.cookie {
  --cookie-muted: #FFFFFF;
  --cookie-dim: rgba(255, 255, 255, .78);
  --cookie-accent-hover: #CDB07A;
  --cookie-border: rgba(188, 155, 93, .4);
  --cookie-backdrop: rgba(1, 18, 31, .6);
  --cookie-line: rgba(251, 250, 247, .12);
  --cookie-line-strong: rgba(251, 250, 247, .22);
  --cookie-track: rgba(251, 250, 247, .14);
  position: fixed; inset: 0; z-index: 999;
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: clamp(16px, 4vw, 32px);
  pointer-events: none;
}
.cookie[hidden] { display: none; }
.cookie--modal { align-items: center; justify-content: center; }

.cookie__backdrop {
  position: fixed; inset: 0;
  background: var(--cookie-backdrop);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  animation: cookieFadeIn .26s ease both;
  pointer-events: auto;
}
.cookie__backdrop[hidden] { display: none; }
@keyframes cookieFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes cookieFadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes cookiePanelIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes cookiePanelOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(10px); } }

.cookie__panel {
  position: relative; pointer-events: auto;
  width: 100%; max-width: 420px;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--cookie-border);
  box-shadow: 0 28px 70px -24px rgba(0, 0, 0, .7);
  border-radius: var(--radius-lg);
  padding: 26px 26px 24px;
}
.cookie--modal .cookie__panel { max-width: 540px; }
.cookie.is-in .cookie__panel { animation: cookiePanelIn .34s var(--ease) forwards; }
.cookie.is-out .cookie__panel { animation: cookiePanelOut .22s ease forwards; }
.cookie.is-out .cookie__backdrop { animation: cookieFadeOut .22s ease both; }

.cookie__view[hidden] { display: none !important; }


.cookie__title {
  font-family: var(--font-display); font-weight: 500;
  line-height: 1.2;
  text-transform: uppercase; letter-spacing: .1em;
  font-size: 13px; margin: 0 0 8px; color: var(--paper);
}
.cookie__copy { font-size: 14px; line-height: 1.6; color: var(--cookie-muted); margin: 0; text-wrap: pretty; }
.cookie__copy a { color: var(--paper); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.cookie__copy a:hover { color: var(--accent); }

.cookie__actions {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-top: 20px;
}
.cookie__btn {
  font-family: var(--font-display); font-size: 15px; font-weight: 600;
  min-height: 48px; padding: 12px 22px; border-radius: 6px; cursor: pointer;
  border: 1px solid transparent; transition: background var(--speed) var(--ease), color var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.cookie__btn--primary { background: var(--accent); color: var(--accent-ink); min-width: 120px; }
.cookie__btn--primary:hover { background: var(--cookie-accent-hover); }

.cookie__prefs-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.cookie__close {
  position: relative; width: 44px; height: 44px; flex: none;
  background: transparent; border: 1px solid var(--cookie-line-strong); border-radius: 50%; cursor: pointer;
  transition: border-color var(--speed) var(--ease);
}
.cookie__close:hover { border-color: var(--accent); }
.cookie__close span { position: absolute; top: 50%; left: 50%; width: 13px; height: 1.5px; background: var(--cookie-muted); }
.cookie__close span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.cookie__close span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }

.cookie__cats { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; }
.cookie__cat {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 16px 0; border-top: 1px solid var(--cookie-line);
}
.cookie__cat:first-child { border-top: none; }
.cookie__cat-text { min-width: 0; }
.cookie__cat-name { display: block; font-size: 15px; font-weight: 700; color: var(--paper); margin-bottom: 4px; }
.cookie__cat-desc { display: block; font-size: 13px; line-height: 1.55; color: var(--cookie-dim); text-wrap: pretty; }
.cookie__always {
  flex: none; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent);
  padding: 4px 9px; margin-top: 2px; border-radius: 999px;
}

.cookie__switch { position: relative; flex: none; width: 46px; height: 26px; cursor: pointer; }
.cookie__switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cookie__track {
  position: absolute; inset: 0; border-radius: 999px;
  background: var(--cookie-track); border: 1px solid var(--cookie-line-strong);
  transition: background .22s ease, border-color .22s ease;
}
.cookie__track::after {
  content: ""; position: absolute; top: 50%; left: 3px;
  width: 18px; height: 18px; border-radius: 50%; background: var(--cookie-muted);
  transform: translateY(-50%);
  transition: transform .22s var(--ease), background .22s ease;
}
.cookie__switch input:checked ~ .cookie__track { background: var(--accent); border-color: var(--accent); }
.cookie__switch input:checked ~ .cookie__track::after { transform: translateY(-50%) translateX(20px); background: var(--ink); }
.cookie__switch input:focus-visible ~ .cookie__track { outline: 2px solid var(--accent); outline-offset: 2px; }

.cookie__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cookie__actions--prefs { margin-top: 24px; }

@media (max-width: 540px) {
  .cookie { padding: 14px; }
  .cookie__panel { max-width: none; }
  .cookie__actions { flex-direction: column-reverse; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie__panel, .cookie.is-in .cookie__panel, .cookie__backdrop,
  .cookie__track, .cookie__track::after { animation: none; transition: none; }
}

/* Social media links (header top bar from 1080px, mobile menu, footer). Added 24 Nov 2026. */
/* Homepage hero redesigned for phones (designer, 24 Nov 2026): each slide photo whole across the top (16:9, centred) with a
   gold rule under it and the slide dots on the photo; eyebrow, smaller heading, names stacked beside a gold bar and full-width
   stacked buttons on navy underneath. */
@media (max-width: 639px) {
  .la section[aria-roledescription="carousel"]:has(> img) { container-type: inline-size; min-height: 0 !important; align-items: stretch !important; }
  .la section[aria-roledescription="carousel"]:has(> img) > img { inset: 0 0 auto 0 !important; width: 100% !important; height: auto !important; aspect-ratio: 16 / 9; object-fit: cover; object-position: center; }
  .la section[aria-roledescription="carousel"]:has(> img) > div[aria-hidden="true"] { inset: 0 0 auto 0 !important; height: calc(100cqw * 9 / 16); background: linear-gradient(180deg, rgba(3,32,53,0) 55%, rgba(3,32,53,.9) 100%) !important; border-bottom: 2px solid #BC9B5D; }
  .la section[aria-roledescription="carousel"]:has(> img) > .la-wrap { padding-top: calc(100cqw * 9 / 16 + 28px) !important; padding-bottom: 40px !important; }
  .la section[aria-roledescription="carousel"]:has(> img) .la-eyebrow { font-size: 12px; margin-bottom: 12px !important; }
  .la section[aria-roledescription="carousel"]:has(> img) h1 { font-size: clamp(40px, 12.5cqw, 52px) !important; margin-bottom: 16px !important; }
  .la section[aria-roledescription="carousel"]:has(> img) h1 + p { font-size: 13px !important; letter-spacing: .14em !important; line-height: 1.7 !important; padding-left: 12px; border-left: 2px solid #BC9B5D; }
  .la section[aria-roledescription="carousel"]:has(> img) h1 + p > span[aria-hidden="true"] { display: block; height: 0; overflow: hidden; padding: 0 !important; }
  .la section[aria-roledescription="carousel"]:has(> img) h1 + p + div { flex-direction: column; margin-top: 24px !important; }
  .la section[aria-roledescription="carousel"]:has(> img) h1 + p + div > .la-btn { width: 100%; }
  .la section[aria-roledescription="carousel"]:has(> img) [role="group"] { position: absolute; left: 0; right: 0; top: calc(100cqw * 9 / 16 - 52px); margin: 0 !important; justify-content: center; }
}

/* Site buttons, premium version 3 (designer, 24 Nov 2026): solid blocks with a fine inset frame (hotel and private-bank
   style), Red Hat Display uppercase with wide tracking, square edges. On hover the frame eases out towards the edge.
   Overrides the .la-btn rules in each board's helmet and css/site.css. */
.la a.la-btn, .la button.la-btn { min-height: 54px; padding: 16px 34px; gap: 0; border-radius: 0; border: 0; font: 500 14px/1.2 'Red Hat Display', sans-serif; letter-spacing: .24em; text-transform: uppercase; transform: none; transition: background .35s ease, color .35s ease, box-shadow .35s ease; }
.la a.la-btn--gold, .la button.la-btn--gold { background: #BC9B5D; color: #032035; box-shadow: inset 0 0 0 5px #BC9B5D, inset 0 0 0 6px rgba(3,32,53,.4); }
.la a.la-btn--gold:hover, .la button.la-btn--gold:hover { background: #C9A96A; color: #032035; box-shadow: inset 0 0 0 2px #C9A96A, inset 0 0 0 3px rgba(3,32,53,.55); }
.la a.la-btn--navy, .la button.la-btn--navy { background: #032035; color: #F3EEE4; box-shadow: inset 0 0 0 5px #032035, inset 0 0 0 6px rgba(188,155,93,.75); }
.la a.la-btn--navy:hover, .la button.la-btn--navy:hover { background: #032035; color: #C9A96A; box-shadow: inset 0 0 0 2px #032035, inset 0 0 0 3px #BC9B5D; }
.la a.la-btn--ghost, .la button.la-btn--ghost { position: relative; background: #032035; color: #F3EEE4; box-shadow: inset 0 0 0 1px #BC9B5D; }
.la a.la-btn--ghost::before, .la button.la-btn--ghost::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(188,155,93,.4); pointer-events: none; transition: inset .35s ease, border-color .35s ease; }
.la a.la-btn--ghost:hover, .la button.la-btn--ghost:hover { background: #0A2D47; color: #FFFFFF; box-shadow: inset 0 0 0 1px #BC9B5D; }
.la a.la-btn--ghost:hover::before, .la button.la-btn--ghost:hover::before { inset: 2px; border-color: rgba(188,155,93,.7); }
@media (prefers-reduced-motion: reduce) { .la a.la-btn, .la button.la-btn, .la a.la-btn--ghost::before, .la button.la-btn--ghost::before { transition: none; } }

/* Scroll parallax (designer, 24 Nov 2026): [data-parallax] drifts gently up as the page scrolls past it. CSS scroll-driven
   animation, so no script; browsers without it (Firefox today) simply show it still. Off with the Motion tweak and for
   reduced motion. */
@keyframes la-parallax { from { transform: translateY(48px); } to { transform: translateY(-48px); } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .la-motion [data-parallax] { animation: la-parallax linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; will-change: transform; }
  }
}

/* One navy everywhere (designer, 24 Nov 2026): every section, band, panel and pill that was set inline to the darker
   #021A2C or #01121F now uses the menu navy #032035. Card surfaces on navy (#082A43) stay a step lighter on purpose. */
.la [style*="background:#021A2C"], .la [style*="background: #021A2C"], .la [style*="background:#021a2c"],
.la [style*="background-color:#021A2C"], .la [style*="background-color: #021A2C"],
.la [style*="background:#01121F"], .la [style*="background: #01121F"], .la [style*="background:#01121f"],
.la [style*="background-color:#01121F"], .la [style*="background-color: #01121F"],
.la [style*="background: rgb(2, 26, 44)"], .la [style*="background-color: rgb(2, 26, 44)"],
.la [style*="background: rgb(1, 18, 31)"], .la [style*="background-color: rgb(1, 18, 31)"],
.la [style*="background:rgb(2,26,44)"], .la [style*="background:rgb(1,18,31)"] { background-color: #032035 !important; }
/* (The rgb() forms catch the boards, whose renderer rewrites inline hex colours as rgb.) */

/* Site header in the brand navy, to match the top bar (designer, 24 Nov 2026; overrides the inline #021A2C on every page). */
.la > header[data-theme="dark"] { background: #032035 !important; }
/* Site footer in the same brand navy (designer, 24 Nov 2026; overrides the inline #01121F on every page). */
.la > footer { background: #032035 !important; }
.la-topbar { display: none; background: #032035; border-bottom: 1px solid #BC9B5D; }
.la-topbar > .la-wrap { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-height: 44px; }
.la-topbar p { margin: 0; font: 600 13px/1.4 'Red Hat Text', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #C9A96A; }
@media (min-width: 1080px) { .la-topbar { display: block; } }
.la-social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.la-social li { margin: 0; padding: 0; }
.la-social li::before { content: none; }
.la .la-social a { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #F3EEE4; text-decoration: none; transition: color .2s, background .2s; }
.la .la-social a:hover { color: #C9A96A; background: rgba(188,155,93,.14); }
.la .la-social a:focus-visible { outline: 2px solid #BC9B5D; outline-offset: 2px; }
.la-social a::before { content: ""; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.la-social--menu { margin: 16px 0 0 -10px; }
.la-social--foot { margin: 10px 0 0 -10px; }
.la-soc-fb { --ico: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22M13.5 22v-8h2.7l.4-3.2h-3.1V8.8c0-.9.3-1.6 1.6-1.6h1.7V4.4c-.3 0-1.3-.1-2.5-.1-2.5 0-4.1 1.5-4.1 4.2v2.3H7.4V14h2.8v8h3.3z%22/%3E%3C/svg%3E"); }
.la-soc-x { --ico: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22M17.8 3h3.1l-6.8 7.8L22 21h-6.2l-4.9-6.4L5.3 21H2.2l7.3-8.3L2 3h6.4l4.4 5.8L17.8 3zm-1.1 16.2h1.7L7.4 4.7H5.6l11.1 14.5z%22/%3E%3C/svg%3E"); }
.la-soc-ig { --ico: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath fill-rule=%22evenodd%22 d=%22M8 2h8a6 6 0 0 1 6 6v8a6 6 0 0 1-6 6H8a6 6 0 0 1-6-6V8a6 6 0 0 1 6-6zm0 2a4 4 0 0 0-4 4v8a4 4 0 0 0 4 4h8a4 4 0 0 0 4-4V8a4 4 0 0 0-4-4H8zm4 3a5 5 0 1 1 0 10 5 5 0 0 1 0-10zm0 2a3 3 0 1 0 0 6 3 3 0 0 0 0-6zm5.5-3.5a1.2 1.2 0 1 1 0 2.4 1.2 1.2 0 0 1 0-2.4z%22/%3E%3C/svg%3E"); }
.la-soc-li { --ico: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22M4.98 3.5a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5zM3 9.5h4V21H3V9.5zm7 0h3.8v1.6h.1c.5-1 1.8-2 3.8-2 4 0 4.8 2.6 4.8 6V21h-4v-5.2c0-1.3 0-2.9-1.8-2.9s-2 1.4-2 2.8V21h-4V9.5z%22/%3E%3C/svg%3E"); }
