:root {
  --guide-bg: #03111d;
  --guide-panel: #071d2b;
  --guide-panel-2: #0a2535;
  --guide-line: rgba(67, 215, 241, .28);
  --guide-text: #f5f8fb;
  --guide-muted: #b6c7d2;
  --guide-cyan: #43d7f1;
  --guide-gold: #f5b92d;
}

body.specialist-page {
  background: var(--guide-bg);
  color: var(--guide-text);
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.specialist-page main { overflow: hidden; }

.specialist-hero {
  position: relative;
  min-width: 0;
  min-height: clamp(520px, 67vh, 720px);
  display: grid;
  align-items: end;
  isolation: isolate;
  border-bottom: 1px solid var(--guide-line);
}

.specialist-hero-art,
.specialist-hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.specialist-hero-art { object-fit: cover; object-position: center; z-index: -3; }
.specialist-hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(2, 12, 21, .98) 0%, rgba(2, 12, 21, .84) 48%, rgba(2, 12, 21, .26) 100%),
    linear-gradient(0deg, var(--guide-bg) 0%, transparent 48%);
}

.specialist-hero-copy {
  width: min(1180px, calc(100% - 48px));
  min-width: 0;
  max-width: 100%;
  margin: 0 auto;
  padding: 96px 0 74px;
}

.specialist-hero-copy .kicker {
  margin: 0 0 18px;
  color: var(--guide-cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.specialist-hero-copy h1 {
  max-width: 820px;
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 5.6vw, 76px);
  line-height: .98;
  letter-spacing: -.045em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.specialist-hero-copy .lead {
  max-width: 760px;
  margin: 25px 0 0;
  color: #dce8ee;
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.58;
}

.specialist-intro,
.pub-section {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.specialist-intro {
  margin-top: 34px;
  padding: 24px 28px;
  border-left: 4px solid var(--guide-gold);
  background: rgba(10, 37, 53, .66);
  color: #d8e6ed;
  font-size: 18px;
  line-height: 1.65;
}

.specialist-intro p { max-width: 940px; margin: 0; }
.pub-section { padding: 32px 0; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cards article,
.wide {
  border: 1px solid var(--guide-line);
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(10, 37, 53, .96), rgba(4, 22, 33, .96));
  box-shadow: 0 24px 60px rgba(0, 0, 0, .18);
}

.cards article { min-height: 214px; padding: 28px; }
.cards article::before {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  margin-bottom: 24px;
  background: linear-gradient(90deg, var(--guide-cyan), var(--guide-gold));
}

.cards h2,
.wide h2 { margin: 0 0 13px; color: #fff; font-size: clamp(21px, 2vw, 28px); line-height: 1.15; }
.cards p,
.wide p { margin: 0; color: var(--guide-muted); font-size: 16px; line-height: 1.67; }
.wide { padding: clamp(28px, 4vw, 52px); }
.wide p + p { margin-top: 16px; }
.wide.truth { border-color: rgba(245, 185, 45, .42); }

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 27px; }
.cta a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid rgba(67, 215, 241, .54);
  border-radius: 7px;
  color: #eaf7fb;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
}
.cta a:hover,
.cta a:focus-visible { border-color: var(--guide-cyan); background: rgba(67, 215, 241, .11); }
.cta a.gold { border-color: var(--guide-gold); background: var(--guide-gold); color: #07131d; }
.cta a.gold:hover,
.cta a.gold:focus-visible { background: #ffd05c; }

.site-footer {
  width: min(1180px, calc(100% - 48px));
  margin: 38px auto 0;
  padding: 28px 0 42px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid var(--guide-line);
  color: #8fa8b7;
  font-size: 13px;
}
.site-footer div { display: grid; gap: 5px; }
.site-footer strong { color: #e8f4f8; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer a { color: #a9c1ce; text-decoration: none; }
.site-footer a:hover,
.site-footer a:focus-visible { color: var(--guide-cyan); }

@media (max-width: 860px) {
  .specialist-hero { min-height: 600px; }
  .specialist-hero-shade { background: linear-gradient(0deg, rgba(2, 12, 21, .99) 0%, rgba(2, 12, 21, .77) 68%, rgba(2, 12, 21, .42) 100%); }
  .specialist-hero-copy,
  .specialist-intro,
  .pub-section,
  .site-footer { width: min(100% - 30px, 720px); }
  .specialist-hero-copy { padding: 122px 0 52px; }
  .cards { grid-template-columns: 1fr; }
  .cards article { min-height: 0; }
  .site-footer { flex-direction: column; }
}

@media (max-width: 520px) {
  .specialist-hero-copy h1 { font-size: clamp(38px, 12vw, 52px); }
  .specialist-intro { padding: 20px; font-size: 16px; }
  .pub-section { padding: 22px 0; }
  .cards article,
  .wide { padding: 22px; border-radius: 10px; }
  .cta { display: grid; }
  .cta a { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}


/* Keep the existing native guide menu reachable on a narrow screen. */
@media (max-width: 760px) {
  .specialist-page .site-header { height: auto; }
  .specialist-page .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 6px 12px;
    height: auto;
    min-height: 82px;
    padding-block: 8px;
  }
  .specialist-page .header-inner .logo-link {
    grid-column: 1;
    grid-row: 1;
    width: clamp(145px, 40vw, 166px);
    max-width: 100%;
    height: auto;
    overflow: visible;
  }
  .specialist-page .site-header .logo-link img[src*="survey-control-golden-globe.png"] {
    width: 100% !important;
    height: auto !important;
    max-width: 166px !important;
  }
  .specialist-page .header-inner .sign-in { grid-column: 2; grid-row: 1; }
  .specialist-page .header-inner .language-switch {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: end;
    margin: 0;
    padding: 0;
  }
  .specialist-page .header-inner .menu { display: block; grid-column: 3; grid-row: 1; }
  .specialist-page .menu > summary {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid var(--guide-line);
    border-radius: 7px;
  }
  .specialist-page .menu-panel {
    position: absolute;
    inset: 100% 0 auto;
    max-height: calc(100dvh - 82px);
    padding: 22px;
    background: #09263d;
    border-bottom: 1px solid var(--guide-line);
  }
  .specialist-page .site-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .specialist-page .menu-top { margin-bottom: 16px; }
}
