/* ISPRS client chrome — faithful re-implementation of the isprs.org header as
   embedded on the Copernicus-hosted volume pages. Measurements and colors from
   template_ISPRS_2020.css (scraped 2026-08-16); markup is our own (ct-*), CSS
   written from scratch — the commercial Unify/HSMegaMenu stylesheet is NOT
   copied. Scoped under .client-chrome; banner block under .reader-banner. */

/* ---- self-hosted Open Sans (variable 400–700, SIL OFL — see fonts/OFL.txt) ---- */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/client_themes/isprs/fonts/open-sans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/client_themes/isprs/fonts/open-sans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Reader-wide font takeover (READER_THEME_FONT_SCOPE=reader): override the
   reader's typography tokens; --mono stays monospaced (citation identifiers). */
body.theme-fonts-reader {
  --serif: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.client-chrome {
  --isprs-link: #0873d3;
  --isprs-link-hover: #005389;
  --isprs-topbar-bg: #222;
  --isprs-menubar-bg: #f8f9fa;
  --isprs-panel-bg: rgba(15, 15, 15, .96);
  --isprs-panel-border: #72c02c;
  --isprs-green: #72c02c;
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.6;
}
.client-chrome a { text-decoration: none; }

/* ---- utility top bar (dark) ---- */
.client-chrome .ct-topbar { background: var(--isprs-topbar-bg); color: #fff; padding: .65rem 0; }
.client-chrome .ct-topbar__in {
  max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.client-chrome .ct-topbar ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; flex-wrap: wrap; }
.client-chrome .ct-topbar li { margin: 0 .3rem; font-size: 11px; line-height: 1; }
.client-chrome .ct-topbar a { color: #fff; display: inline-flex; align-items: center; }
.client-chrome .ct-topbar a:hover { color: var(--isprs-link); text-decoration: none; }
.client-chrome .ct-sep { opacity: .9; }
.client-chrome .ct-date { opacity: .95; }
.client-chrome .ct-topbar__account a { font-size: 11px; }

/* ---- menu bar (light) ---- */
.client-chrome .ct-menubar { background: var(--isprs-menubar-bg); border-bottom: 2px solid var(--isprs-link); }
.client-chrome .ct-menubar__in {
  max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem;
  position: relative; display: flex; align-items: center; gap: 1rem;
}
.client-chrome .ct-logo { display: inline-flex; flex: none; padding: .3rem 1rem .3rem 0; }
.client-chrome .ct-logo img { display: block; max-height: 78px; width: auto; }
.client-chrome .ct-nav { margin-left: auto; }
.client-chrome .ct-nav ul { list-style: none; margin: 0; padding: 0; }
.client-chrome .ct-nav__root { display: flex; flex-wrap: wrap; align-items: center; }
.client-chrome .ct-nav__root > li { position: relative; margin: 0 .55rem; }
.client-chrome .ct-nav__root > li > a {
  display: block; padding: .5rem 0; text-transform: uppercase; font-weight: 600;
  font-size: 12px; letter-spacing: .01em; color: #000;
}
.client-chrome .ct-nav__root > li > a:hover { color: var(--isprs-link); }

/* Root caret (chevron down), like the original's FA \f107 */
.client-chrome .ct-has-sub > a::after {
  content: ""; display: inline-block; width: .4em; height: .4em; margin-left: .45em;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-30%);
}

/* ---- dropdown panels (dark) ---- */
.client-chrome .ct-sub, .client-chrome .ct-mega {
  display: none; position: absolute; top: 100%; left: 0; z-index: 40;
  min-width: 220px; padding: .35rem 0;
  background: var(--isprs-panel-bg);
  border-top: 2px solid var(--isprs-panel-border);
  box-shadow: 0 0 2px #ccc;
}
.client-chrome .ct-sub li { position: relative; margin-bottom: 6px; }
.client-chrome .ct-sub a, .client-chrome .ct-sub .ct-sub__label {
  display: block; padding: .25rem 1.05rem; color: #fff; font-size: 12.5px; line-height: 1.15;
  white-space: nowrap; cursor: pointer;
}
.client-chrome .ct-sub > li:first-child > a { font-weight: 700; }
.client-chrome .ct-sub li:hover > a, .client-chrome .ct-sub li:hover > .ct-sub__label,
.client-chrome .ct-sub li:focus-within > a { background: rgba(90, 90, 90, .75); }

/* Flyout parents: right chevron pinned to the row's right edge (FA \f105) */
.client-chrome .ct-has-fly > a::after, .client-chrome .ct-has-fly > .ct-sub__label::after {
  content: ""; position: absolute; right: .7rem; top: 50%; width: .4em; height: .4em;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-50%) rotate(-45deg);
}
.client-chrome .ct-has-fly > a, .client-chrome .ct-has-fly > .ct-sub__label { padding-right: 2rem; }
.client-chrome .ct-fly {
  display: none; position: absolute; top: 0; left: 100%; z-index: 41;
  min-width: 220px; padding: .35rem 0;
  background: var(--isprs-panel-bg);
  border-top: 2px solid var(--isprs-panel-border);
  box-shadow: 0 0 2px #ccc;
  list-style: none; margin: 0;
}

/* Wide submenus (Awards, Congresses, Publications) flow in two columns */
.client-chrome .ct-sub--cols { min-width: 460px; column-count: 2; column-gap: 1px; padding: .35rem 0; }
.client-chrome .ct-sub--cols li { break-inside: avoid; }

/* Open on hover/keyboard focus (desktop with hover devices only) */
@media (hover: hover) and (min-width: 992px) {
  .client-chrome .ct-nav__root > li:hover > .ct-sub,
  .client-chrome .ct-nav__root > li:focus-within > .ct-sub,
  .client-chrome .ct-nav__root > li:hover > .ct-mega,
  .client-chrome .ct-nav__root > li:focus-within > .ct-mega { display: block; }
  .client-chrome .ct-has-fly:hover > .ct-fly,
  .client-chrome .ct-has-fly:focus-within > .ct-fly { display: block; }
  /* Panels near the right edge open right-aligned; their flyouts flip left */
  .client-chrome .ct-nav__root > li:nth-last-child(-n+3) > .ct-sub { left: auto; right: 0; }
  .client-chrome .ct-nav__root > li:nth-last-child(-n+3) .ct-fly { left: auto; right: 100%; }
}

/* ---- Open Resources mega panel ---- */
/* Must out-specify `.ct-nav__root > li { position: relative }`, so the panel's
   containing block is .ct-menubar__in and it spans the full menubar width. */
.client-chrome .ct-nav__root > li.ct-has-mega { position: static; }
.client-chrome .ct-mega {
  left: 0; right: 0; width: 100%; padding: 1.4rem 1.6rem;
  column-count: 4; column-gap: 2rem;
}
.client-chrome .ct-mega__group { break-inside: avoid; margin-bottom: 1.2rem; }
.client-chrome .ct-mega__head {
  display: block; margin-bottom: .45rem; text-transform: uppercase;
  color: var(--isprs-green); font-weight: 500; font-size: 12.5px;
}
.client-chrome .ct-mega__group ul { list-style: none; margin: 0; padding: 0; }
.client-chrome .ct-mega__group li a { display: block; padding: .3rem 0; color: #fff; font-size: 12.5px; }
.client-chrome .ct-mega__group li a:hover { color: var(--isprs-link); }

/* ---- hamburger (small screens) ---- */
.client-chrome .ct-nav-toggle {
  display: none; margin-left: auto; padding: .6rem .2rem; border: 0; background: none; cursor: pointer;
}
.client-chrome .ct-nav-toggle span[aria-hidden] {
  display: block; width: 34px; height: 1px; background: #555; margin: 8px 0;
}
.client-chrome .visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

@media (max-width: 991px) {
  .client-chrome .ct-logo img { max-height: 52px; }
  .client-chrome .ct-nav-toggle { display: block; }
  .client-chrome .ct-nav { display: none; width: 100%; }
  body.ct-nav-open .client-chrome .ct-nav { display: block; }
  .client-chrome .ct-menubar__in { flex-wrap: wrap; }
  .client-chrome .ct-nav__root { display: block; padding-bottom: .75rem; }
  .client-chrome .ct-nav__root > li { margin: 0; }
  /* Stacked, always-visible submenus on small screens (original collapses to the same) */
  .client-chrome .ct-sub, .client-chrome .ct-fly, .client-chrome .ct-mega {
    display: block; position: static; min-width: 0; box-shadow: none; border-top: 0;
    background: rgba(15, 15, 15, .96); column-count: 1;
  }
  .client-chrome .ct-sub a, .client-chrome .ct-sub .ct-sub__label { white-space: normal; }
  .client-chrome .ct-fly { padding-left: 1rem; }
  .client-chrome .ct-has-sub > a::after, .client-chrome .ct-has-fly > a::after,
  .client-chrome .ct-has-fly > .ct-sub__label::after { content: none; }
}

/* ---- banner (the #header_img port) ---- */
.reader-banner { background-color: #000; }
.reader-banner .headline-title {
  font-family: Arial, sans-serif; font-weight: 500; font-size: 41px;
  color: #fff; text-shadow: -4px 4px 5px #000; line-height: 1.25;
}
@media (max-width: 991px) {
  .reader-banner { display: none; }
}
