/*
 * Minimal original-report detail pages.
 * This file is loaded only for .simple-report-page routes and follows the shared
 * theme layers, so it deliberately scopes each reset to this compact composition.
 */

body.theme-dark:not(.home-document) .site-header.simple-example-header {
  position: static;
  min-height: 0;
  border-bottom-color: var(--theme-hairline);
  background: var(--theme-dark);
  color: var(--theme-offwhite);
  color-scheme: dark;
  backdrop-filter: none;
}

body.theme-dark:not(.home-document) .simple-example-header .header-inner {
  width: min(calc(100% - (2 * var(--gutter))), 1200px);
  min-height: 76px;
  margin-inline: auto;
  padding-inline: 0;
  gap: clamp(12px, 2vw, 26px);
}

body.theme-dark .simple-example-header .site-brand {
  width: clamp(104px, 13vw, 148px);
}

/* Use the existing dark-theme treatment of the unchanged supplied SVG. */
body.theme-dark .simple-example-header .site-brand img {
  filter: invert(1);
}

body.theme-dark:not(.home-document) .simple-example-header .primary-navigation {
  position: static;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: clamp(8px, 1.8vw, 24px);
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--theme-offwhite);
  box-shadow: none;
}

body.theme-dark:not(.home-document)
  .simple-example-header
  .primary-navigation
  a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  color: inherit;
  font-size: 14px;
  line-height: 1.25;
  text-decoration-color: currentColor;
  text-underline-offset: 5px;
  transition: none;
  white-space: nowrap;
}

body.theme-dark .simple-example-header .primary-navigation a:hover,
body.theme-dark
  .simple-example-header
  .primary-navigation
  a[aria-current="page"] {
  color: var(--theme-lime);
  text-decoration-color: currentColor;
}

.simple-example-header .simple-header-enquire {
  color: var(--theme-lime) !important;
}

.simple-example-header :is(.menu-toggle, .header-cta) {
  display: none;
}

body.theme-dark .page-example-detail.simple-report-page {
  width: min(calc(100% - (2 * var(--gutter))), 1200px);
  min-height: 0;
  margin-inline: auto;
  padding: clamp(28px, 4vw, 52px) 0 clamp(70px, 8vw, 112px);
  overflow: clip;
  background: transparent;
  color: var(--theme-offwhite);
}

.simple-report-back {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 5px 0;
  color: var(--theme-muted);
  font: 12px/1.4 var(--body);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: none;
}

.simple-report-back:hover {
  color: var(--theme-offwhite);
}

.simple-report-opening {
  display: grid;
  grid-template-columns: minmax(260px, 370px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(48px, 7vw, 80px);
  padding-top: clamp(26px, 4vw, 48px);
}

.simple-report-cover {
  width: min(100%, 360px);
  min-width: 0;
  justify-self: start;
}

.simple-report-cover img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 640px;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(8px 12px 18px rgb(0 0 0 / 0.24));
}

.simple-report-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  max-width: 620px;
  align-self: center;
}

.simple-report-location,
.simple-report-date {
  color: var(--theme-muted);
  font: 12px/1.5 var(--machine);
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.simple-report-summary h1 {
  max-width: 12ch;
  margin-top: 13px;
  color: var(--theme-offwhite);
  font-size: clamp(38px, 4.5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.028em;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  text-wrap: balance;
}

.simple-report-date {
  margin-top: 17px;
  font: 16px/1.5 var(--body);
  letter-spacing: 0;
  text-transform: none;
}

body.theme-dark .simple-report-open {
  min-height: 52px;
  margin-top: 30px;
  padding-inline: 21px;
  transition: none;
}

.simple-report-open span {
  font-size: 16px;
  line-height: 1;
}

.simple-report-enquire {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 19px;
  color: var(--theme-muted);
  font-size: 14px;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: none;
}

.simple-report-enquire:hover {
  color: var(--theme-lime);
}

/* The direct-child footer markup intentionally bypasses the wider site footer groups. */
body.theme-dark .site-footer.footer-compact.simple-example-footer {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px clamp(24px, 4vw, 56px);
  padding: 26px max(var(--gutter), calc((100vw - 1200px) / 2)) 24px;
  background: var(--theme-ink);
  color: var(--theme-offwhite);
}

body.theme-dark .simple-example-footer > .footer-wordmark {
  grid-column: 1;
  grid-row: 1;
  width: 152px;
}

.simple-example-footer > .simple-report-context {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  color: var(--theme-muted);
  font: 12px/1.5 var(--body);
}

.simple-example-footer > nav {
  display: flex;
  grid-column: 3;
  grid-row: 1;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 18px;
  min-width: 0;
}

.simple-example-footer > nav :is(a, button) {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 0;
  color: inherit;
  font: 13px/1.4 var(--body);
  text-underline-offset: 4px;
  transition: none;
  white-space: nowrap;
}

.simple-example-footer > nav a:hover,
.simple-example-footer > nav .privacy-choices:hover {
  color: var(--theme-lime);
}

@media (max-width: 760px) {
  body.theme-dark:not(.home-document) .simple-example-header .header-inner {
    min-height: 72px;
  }

  body.theme-dark:not(.home-document)
    .simple-example-header
    .primary-navigation {
    flex-direction: row;
  }

  body.theme-dark .page-example-detail.simple-report-page {
    padding-top: 18px;
    padding-bottom: 64px;
  }

  .simple-report-back {
    min-height: 36px;
    font-size: 11px;
  }

  .simple-report-opening {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-top: 18px;
  }

  .simple-report-summary {
    order: -1;
    max-width: none;
  }

  .simple-report-summary h1 {
    max-width: 13ch;
    margin-top: 10px;
    font-size: clamp(32px, 8.5vw, 40px);
    line-height: 1;
  }

  .simple-report-date {
    margin-top: 13px;
  }

  body.theme-dark .simple-report-open {
    margin-top: 24px;
  }

  .simple-report-enquire {
    margin-top: 15px;
    font-size: 13px;
  }

  .simple-report-cover {
    width: min(100%, 300px);
    justify-self: center;
  }

  .simple-report-cover img {
    max-height: 534px;
  }

  body.theme-dark .site-footer.footer-compact.simple-example-footer {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 24px var(--gutter) 22px;
  }

  body.theme-dark .simple-example-footer > .footer-wordmark,
  .simple-example-footer > .simple-report-context,
  .simple-example-footer > nav {
    grid-column: 1;
    grid-row: auto;
  }

  body.theme-dark .simple-example-footer > .footer-wordmark {
    width: clamp(128px, 42vw, 136px);
  }

  .simple-example-footer > nav {
    justify-content: flex-start;
    gap: 4px 18px;
  }

  .simple-example-footer > nav :is(a, button) {
    min-height: 44px;
  }
}

@media (max-width: 380px) {
  body.theme-dark .simple-example-header .site-brand {
    width: 100px;
  }

  body.theme-dark:not(.home-document)
    .simple-example-header
    .primary-navigation {
    gap: 8px;
  }

  body.theme-dark:not(.home-document)
    .simple-example-header
    .primary-navigation
    a {
    font-size: 13px;
  }
}
