/* Technology hub only. Loaded after css/style.css so page-local layout and palette win. */

body:has(main.technology-page),
body:has(main.technology-page) main {
  background: #080d2a !important;
  min-height: 0;
}

body:has(main.technology-page) main.technology-page,
body:has(main.technology-page) main.technology-page.technology-reference-page {
  width: min(calc(100% - 32px), 1600px);
  max-width: none;
  min-height: 0;
  margin: 0 auto;
  padding: 20px 0 48px;
  background: transparent !important;
  box-shadow: none !important;
  clip-path: none;
  color: #f7f7ff;
  container-type: inline-size;
}

.technology-page .tech-hero,
.technology-page .tech-overview,
.technology-page .tech-module,
.technology-page .tech-reports,
.technology-page .tech-landscape {
  width: 100%;
  scroll-margin-top: 120px;
}

.technology-page .tech-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  padding: clamp(18px, 2.4vw, 28px) clamp(18px, 2.2vw, 32px);
  border: 1px solid rgba(155, 170, 255, 0.25);
  border-radius: 16px;
  background:
    radial-gradient(circle at 88% 18%, rgba(66, 221, 255, 0.16), transparent 34%),
    linear-gradient(135deg, #0d2236, #06111f 58%, #102a40);
}

.technology-page .tech-hero .eyebrow,
.technology-page .tech-module .eyebrow,
.technology-page .tech-overview .eyebrow,
.technology-page .tech-reports .eyebrow,
.technology-page .tech-landscape .eyebrow {
  margin: 0 0 10px;
  color: #42ddff !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.technology-page .tech-hero h1,
.technology-page .tech-module h2,
.technology-page .tech-reports h2,
.technology-page .tech-landscape h2 {
  margin: 0;
  color: #f7f7ff !important;
  font: 400 clamp(2rem, 4.8cqi, 3.6rem) / 1.08 var(--serif);
  letter-spacing: -0.04em;
}

.technology-page .tech-module h2,
.technology-page .tech-reports h2,
.technology-page .tech-landscape h2 {
  font-size: clamp(1.75rem, 3.1cqi, 2.375rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.technology-page .tech-hero p,
.technology-page .tech-module p,
.technology-page .tech-reports > p,
.technology-page .tech-landscape > p {
  max-width: 42rem;
  margin: 14px 0 0;
  color: #bdc5e4 !important;
  line-height: 1.7;
}

.technology-page .hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.technology-page .tech-copy .hub-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
}

.technology-page .hub-actions .btn {
  border-color: #31d7ff;
  background: linear-gradient(90deg, #258cff, #31d7ff);
  color: #fff;
}

.technology-page .hub-actions .btn-outline,
.technology-page .tech-module .btn-outline {
  border-color: rgba(255, 255, 255, 0.55) !important;
  background: transparent !important;
  color: #fff !important;
}

.technology-page .tech-hero-visual {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(155, 170, 255, 0.28);
  border-radius: 12px;
  background: #05091f;
}

.technology-page .tech-hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.technology-page .tech-overview {
  margin-top: 22px;
  padding: 18px 18px 8px;
  border: 1px solid rgba(155, 170, 255, 0.2);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(20, 29, 91, 0.72), rgba(11, 18, 59, 0.88));
}

.technology-page .tech-overview h2 {
  margin: 0 0 14px;
  color: #f7f7ff !important;
  font: 400 clamp(1.4rem, 2.4vw, 2rem) / 1.15 var(--serif);
}

.technology-page .tech-nav {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.technology-page .tech-nav a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 78px;
  padding: 12px 10px;
  border: 1px solid rgba(155, 170, 255, 0.22);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(17, 27, 85, 0.92), rgba(8, 13, 42, 0.96));
  color: #f7f7ff !important;
  text-decoration: none;
}

.technology-page .tech-nav a:hover,
.technology-page .tech-nav a:focus-visible {
  border-color: rgba(66, 221, 255, 0.7);
}

.technology-page .tech-nav span {
  color: #42ddff !important;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.technology-page .tech-nav strong {
  margin-top: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.technology-page .tech-module {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(16px, 2.4vw, 32px);
  align-items: center;
  margin-top: 18px;
  padding: clamp(14px, 2vw, 22px);
  border: 1px solid rgba(155, 170, 255, 0.2);
  border-radius: 16px;
  background: linear-gradient(145deg, #0d2236, #0a1a2b) !important;
  box-shadow: none !important;
}

.technology-page .tech-module.tech-module-flip {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.technology-page .tech-module.tech-module-flip .tech-media {
  order: 2;
}

.technology-page .tech-module.tech-module-flip .tech-copy {
  order: 1;
}

.technology-page .tech-media {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(155, 170, 255, 0.22);
  border-radius: 12px;
  background: #05091f;
}

.technology-page .tech-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.technology-page .tech-copy {
  min-width: 0;
  padding: 4px 4px 4px 2px;
}

.technology-page .tech-copy .btn-outline {
  margin-top: 18px;
}

.technology-page .tech-note {
  display: block;
  margin-top: 10px;
  color: #8f98be !important;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.technology-page .tech-reports,
.technology-page .tech-landscape {
  margin-top: 28px;
  padding-top: 8px;
}

.technology-page .tech-report-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.technology-page .tech-report-grid a,
.technology-page .tech-landscape-grid article {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(155, 170, 255, 0.22);
  border-radius: 12px;
  background: linear-gradient(180deg, #0d2236, #0a1a2b);
  color: inherit;
  text-decoration: none;
}

.technology-page .tech-report-grid img {
  display: block;
  width: 100%;
  height: 132px;
  object-fit: cover;
}

.technology-page .tech-report-grid div,
.technology-page .tech-landscape-grid article {
  padding: 14px;
}

.technology-page .tech-report-grid span,
.technology-page .tech-landscape-grid span {
  color: #42ddff !important;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.technology-page .tech-report-grid h3,
.technology-page .tech-landscape-grid h3 {
  margin: 8px 0 0;
  color: #f7f7ff !important;
  font: 400 1.05rem / 1.25 var(--serif);
}

.technology-page .tech-landscape-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.technology-page .tech-landscape-grid p {
  margin: 10px 0 0;
  color: #bdc5e4 !important;
  font-size: 0.92rem;
  line-height: 1.6;
}

@media (max-width: 1280px) {
  .technology-page .tech-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .technology-page .tech-report-grid,
  .technology-page .tech-landscape-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .technology-page section[id] {
    scroll-margin-top: 100px;
  }

  .technology-page .tech-hero,
  .technology-page .tech-module,
  .technology-page .tech-module.tech-module-flip {
    grid-template-columns: 1fr;
  }

  .technology-page .tech-module.tech-module-flip .tech-media,
  .technology-page .tech-module.tech-module-flip .tech-copy {
    order: initial;
  }

  .technology-page .tech-hero-visual,
  .technology-page .tech-media {
    width: 100%;
    max-width: 560px;
    justify-self: center;
  }
}

@media (max-width: 760px) {
  body:has(main.technology-page) main.technology-page,
  body:has(main.technology-page) main.technology-page.technology-reference-page {
    padding: 12px 0 36px;
  }

  .technology-page .tech-nav,
  .technology-page .tech-report-grid,
  .technology-page .tech-landscape-grid {
    grid-template-columns: 1fr 1fr;
  }

  .technology-page .hub-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .technology-page .hub-actions a {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .technology-page section[id] {
    scroll-margin-top: 166px;
  }

  .technology-page .tech-report-grid,
  .technology-page .tech-landscape-grid {
    grid-template-columns: 1fr;
  }
}

/* Premium directory refinement: shared ASARK surface language, with restrained domain colour. */
body:has(main.technology-page), body:has(main.technology-page) main { background: var(--asark-bg) !important; }
body:has(main.technology-page) main.technology-page { width: min(calc(100% - 40px), var(--asark-container)); padding-block: 32px var(--asark-section-space); }
.technology-page .tech-hero, .technology-page .tech-overview, .technology-page .tech-module {
  border-color: var(--asark-border);
  border-radius: var(--asark-radius-lg);
  background: linear-gradient(135deg, rgba(17, 39, 60, .96), rgba(9, 24, 41, .98)) !important;
  box-shadow: var(--asark-shadow);
}
.technology-page .tech-hero { min-height: 380px; background: radial-gradient(circle at 88% 18%, rgba(75, 199, 232, .18), transparent 30%), linear-gradient(135deg, #102841, #0a1b2d 68%) !important; }
.technology-page .tech-hero h1, .technology-page .tech-module h2, .technology-page .tech-reports h2, .technology-page .tech-landscape h2 { font-family: var(--sans); font-weight: 700; }
.technology-page .tech-hero .eyebrow, .technology-page .tech-module .eyebrow, .technology-page .tech-overview .eyebrow, .technology-page .tech-reports .eyebrow, .technology-page .tech-landscape .eyebrow, .technology-page .tech-nav span, .technology-page .tech-report-grid span, .technology-page .tech-landscape-grid span { color: var(--asark-accent) !important; }
.technology-page .tech-hero p, .technology-page .tech-module p, .technology-page .tech-reports > p, .technology-page .tech-landscape > p, .technology-page .tech-landscape-grid p { color: var(--asark-text-muted) !important; }
.technology-page .hub-actions .btn { border-color: var(--asark-accent); background: var(--asark-accent); color: #06111d; }
.technology-page .tech-media, .technology-page .tech-hero-visual { border-color: var(--asark-border); border-radius: var(--asark-radius-md); }
.technology-page .tech-nav a, .technology-page .tech-report-grid a, .technology-page .tech-landscape-grid article { border-color: var(--asark-border); border-radius: var(--asark-radius-md); background: linear-gradient(145deg, rgba(19, 38, 59, .9), rgba(9, 24, 41, .96)); }
.technology-page .tech-nav a:hover, .technology-page .tech-report-grid a:hover { border-color: var(--asark-accent); transform: translateY(-2px); }
@media (max-width: 760px) { body:has(main.technology-page) main.technology-page { width: min(calc(100% - 24px), var(--asark-container)); } }

/* Technology directory: align its later-loaded component layer to the shared palette. */
body:has(main.technology-page), body:has(main.technology-page) main { background: #06111f !important; }
.technology-page .tech-hero, .technology-page .tech-overview, .technology-page .tech-module {
  border-color: rgba(70, 180, 255, .24) !important;
  background: linear-gradient(135deg, rgba(13, 34, 54, .96), rgba(9, 24, 41, .98)) !important;
}
.technology-page .tech-hero { background: radial-gradient(circle at 88% 18%, rgba(49, 215, 255, .14), transparent 30%), linear-gradient(135deg, #102a40, #06111f 68%) !important; }
.technology-page .tech-hero .eyebrow, .technology-page .tech-module .eyebrow, .technology-page .tech-overview .eyebrow,
.technology-page .tech-reports .eyebrow, .technology-page .tech-landscape .eyebrow,
.technology-page .tech-nav span, .technology-page .tech-report-grid span, .technology-page .tech-landscape-grid span { color: #31d7ff !important; }
.technology-page .tech-nav a, .technology-page .tech-report-grid a, .technology-page .tech-landscape-grid article { border-color: rgba(70, 180, 255, .24); background: linear-gradient(145deg, #0d2236, #0a1a2b); }
.technology-page .tech-nav a:hover, .technology-page .tech-report-grid a:hover { border-color: #31d7ff; }
.technology-page section[id] { scroll-margin-top: 90px; }

/* The directory uses the same clinical white surfaces as the rest of ASARK. */
body:has(main.technology-page), body:has(main.technology-page) main { background: #ffffff !important; color: #111625 !important; }
body:has(main.technology-page) main.technology-page :is(.tech-hero, .tech-overview, .tech-module, .tech-nav a, .tech-report-grid a, .tech-landscape-grid article) {
  border-color: #e5e7eb !important;
  background: #f8fafc !important;
  box-shadow: none !important;
  color: #111625 !important;
}
body:has(main.technology-page) main.technology-page :is(h1, h2, h3, h4, p, li, span, small) { color: #111625 !important; text-shadow: none !important; }
body:has(main.technology-page) main.technology-page :is(.eyebrow, .tech-nav span, .tech-report-grid span, .tech-landscape-grid span, a) { color: #2563eb !important; }
body:has(main.technology-page) main.technology-page .hub-actions .btn { background: #2563eb !important; border-color: #2563eb !important; color: #ffffff !important; }
