/* =============================================================================
   Variant C — from B, with a white rotator, larger Outfit captions,
   a 3×4 highlights grid (press in the last column), and mobile scaling.
   ============================================================================= */

:root {
  --navy: #0c2340;
  --navy-mid: #16375c;
  --cream: #f6f1e8;
  --paper: #fffaf2;
  --gold: #d4a017;
  --gold-bright: #f0bc3a;
  --gold-link: #c48a0a;
  --ink: #1c2430;
  --muted: #5a5348;
  --line: #e4d9c6;
  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 16px 40px rgba(12, 35, 64, 0.12);
  --shadow-soft: 0 6px 18px rgba(12, 35, 64, 0.08);
  --max: 1120px;
  --slider-w: 1000px;
  --slider-h: 500px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  font-family: Outfit, "Gill Sans", "Trebuchet MS", sans-serif;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0;
  padding: 0;
  font-family: Fraunces, "Palatino Linotype", Palatino, serif;
  color: var(--navy);
  font-weight: 600;
  letter-spacing: -0.03em;
}

p, ol, ul {
  margin-top: 0;
}

ol, ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

p {
  line-height: 1.8;
}

a {
  color: var(--navy-mid);
}

a:hover {
  text-decoration: none;
  color: var(--gold-link);
}

a img {
  border: none;
}

img.alignleft { float: left; }
img.alignright { float: right; }
img.aligncenter { margin: 0 auto; }

img.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: auto;
}

hr { display: none; }

/* News / research lists */

ul.style1 li {
  padding: 0.95em 0.2em 0.95em 0;
  margin: 0;
  border-top: 1px solid var(--line);
  line-height: 1.45;
  font-size: 0.95rem;
}

ul.style1 li.first {
  padding-top: 0;
  border-top: none;
}

ul.style1 a {
  text-decoration: none;
  color: var(--gold-link);
  font-weight: 650;
}

ul.style1 a:hover {
  text-decoration: underline;
}

ul.style1 .posted {
  font-size: 0.9em;
  color: #a39886;
}

ul.style1 .first {
  padding-top: 0;
  border-top: none;
}

/* Wrapper / layout */

#wrapper {
  background: transparent;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.clearfix { clear: both; }

/* Header / menu — navy bar, gold pill cluster */

#header-wrapper {
  position: sticky;
  top: 0;
  z-index: 40;
  overflow: visible;
  height: auto;
  background: var(--navy);
  border-bottom: 0;
  box-shadow: 0 12px 30px rgba(12, 35, 64, 0.22);
}

#header {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  min-height: 84px;
  overflow: visible;
  padding: 12px 0;
}

#logo { display: none; }

#logo h1,
#logo p {
  margin: 0;
  line-height: normal;
}

#menu {
  padding: 0;
  height: auto;
  width: 100%;
}

#menu ul {
  margin: 0;
  padding: 6px;
  background: rgba(255, 255, 255, 0.06);
  list-style: none;
  line-height: 1.2;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 0;
  flex-wrap: wrap;
  border-radius: 999px;
  border: 1px solid rgba(240, 188, 58, 0.22);
}

#menu li {
  padding: 0;
}

#menu a {
  display: block;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 500;
  font-family: Outfit, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: #f3e7c8;
  line-height: 1.2;
  padding: 0.7em 1em;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

#menu a:hover {
  text-decoration: none;
  background: rgba(212, 160, 23, 0.18);
  color: var(--gold-bright);
}

#menu .active a {
  color: var(--gold-bright);
}

#menu .first {
  background: transparent;
  border-left: none;
  box-shadow: none;
}

#menu .first a {
  text-transform: none;
  letter-spacing: -0.02em;
  font-family: Fraunces, serif;
  font-size: 1.12rem;
  font-weight: 600;
  color: #fff;
  padding-inline: 1.1em;
}

#menu .first a:hover {
  background: transparent;
  color: var(--gold-bright);
}

#menu li:last-child a {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
}

#menu li:last-child a:hover {
  background: var(--gold-bright);
  color: var(--navy);
}

/* Page body */

#page {
  overflow: visible;
  padding: 40px 0 8px;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(290px, 1fr);
  gap: 32px;
  align-items: start;
}

#page h2 {
  padding: 0 0 0.7em;
  letter-spacing: -0.03em;
  font-family: Fraunces, serif;
  font-weight: 600;
  font-size: 1.85rem;
  color: var(--navy);
}

#content {
  float: none;
  width: auto;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 34px 36px;
  border: 1px solid var(--line);
}

#content h2 {
  padding: 1.3em 0 0.55em;
  font-size: 1.85rem;
  border-bottom: 2px solid var(--gold);
  margin-bottom: 0.85em;
}

#content img {
  float: left;
  margin-right: 30px;
  margin-bottom: 18px;
  width: 230px !important;
  height: auto;
  border-radius: 28px;
  box-shadow: var(--shadow);
  object-fit: cover;
  border: 4px solid #fff;
}

#content p {
  color: var(--muted);
  font-size: 1.05rem;
}

#sidebar {
  float: none;
  width: auto;
  background: var(--navy);
  color: #f4ead8;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 24px 30px;
}

#sidebar h2 {
  padding: 0 0 0.65em;
  font-size: 1.5rem;
  color: var(--gold-bright);
}

#sidebar h2 a {
  color: inherit;
}

#sidebar h2 a:hover {
  color: #fff;
}

#sidebar ul.style1 li {
  border-top-color: rgba(243, 231, 200, 0.14);
  color: #e9dfd0;
}

#sidebar ul.style1 a {
  color: var(--gold-bright);
}

#sidebar ul.style1 a:hover {
  color: #fff;
}

/* Banner / slider — keep slidertron 1000×500 geometry */

#banner {
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  padding: 36px 12px 10px;
  background: transparent;
  border-bottom: none;
}

.slider-frame {
  container-type: inline-size;
  width: 100%;
  max-width: var(--slider-w);
  margin: 0 auto;
  overflow: hidden;
  height: calc(680px * min(1, 100cqi / 1000px));
}

#slider {
  overflow: visible;
  margin: 0;
  width: var(--slider-w);
  position: relative;
  background: #ffffff;
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 0 0 18px;
  border: 1px solid var(--line);
  transform-origin: top left;
  transform: scale(min(1, calc(100cqi / 1000px)));
}

#slider .button {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  text-align: center;
  line-height: 50px;
  height: 50px;
  text-decoration: none;
  outline: 0;
  border-radius: 8px;
  font-size: 1.25em;
}

#slider .button:hover {
  background: var(--gold-bright);
}

#slider .viewer {
  width: var(--slider-w);
  height: var(--slider-h);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 28px 28px 0 0;
  background: #ffffff;
}

#slider .viewer .reel {
  display: none;
  width: var(--slider-w);
  height: var(--slider-h);
}

#slider .viewer .reel .slide {
  position: relative;
  width: var(--slider-w);
  height: var(--slider-h);
  background: #ffffff;
}

#slider .viewer .reel .slide img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: 500px;
  object-fit: contain;
}

#slider .caption-line {
  text-align: center;
  font-size: 2.00rem;
  height: auto;
  min-height: 2.6em;
  color: var(--gold-bright);
  line-height: 1.2;
  text-shadow: none;
  font-family: Outfit, "Gill Sans", "Trebuchet MS", sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 18px 28px 6px;
  font-style: normal;
}

#slider .viewer .reel h2 {
  position: absolute;
  top: 230px;
  left: 0;
  padding: 0 30px;
  line-height: 80px;
  background: #111;
  text-align: center;
  opacity: 0.75;
  font-weight: normal;
  color: #fff;
  font-size: 4.5em;
}

#slider .viewer .reel p {
  position: absolute;
  top: 310px;
  left: 0;
  display: block;
  padding: 5px 35px;
  background: var(--navy-mid);
  text-align: center;
  opacity: 0.75;
  color: #fff;
  font-size: 2em;
}

#slider .indicator {
  margin: 10px auto 0;
}

#slider .indicator ul {
  list-style: none;
  padding: 0 12px 4px;
  margin: 0;
  text-align: center;
}

#slider .indicator ul li {
  display: inline-block;
  width: 8px;
  height: 8px;
  text-indent: -9999em;
  background: #d4cbb8;
  margin: 0 3px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: width 0.15s ease, background 0.15s ease;
}

#slider .indicator ul li.active {
  background: var(--gold);
  width: 24px;
  border-top: 0;
}

.previous-button,
.next-button {
  position: absolute;
  top: 240px;
  z-index: 6;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--gold-bright);
  text-decoration: none;
  font-size: 1.85rem;
  line-height: 40px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(240, 188, 58, 0.45);
}

.previous-button { left: 22px; }
.next-button { right: 22px; }

.previous-button:hover,
.next-button:hover {
  background: var(--gold);
  color: var(--navy);
}

/* Featured / videos */

#featured {
  overflow: visible;
  padding: 8px 0 52px;
  border-bottom: none;
}

#featured .title {
  margin: 18px 0 32px;
  border: 0;
  padding: 0;
  font-family: Fraunces, serif;
  font-size: 2.15rem;
  font-weight: 600;
  color: var(--navy) !important;
  text-align: center;
  font-style: italic;
}

#featured .title::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin: 12px auto 0;
  background: var(--gold);
  border-radius: 999px;
}

#featured .highlight-row,
#featured .highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(4, auto);
  grid-template-areas:
    "m1 m2 press"
    "m3 m4 press"
    "m5 m6 press"
    "m7 m8 press";
  gap: 20px;
  margin-bottom: 20px;
}

#featured .highlights-grid .fbox:nth-child(1) { grid-area: m1; }
#featured .highlights-grid .fbox:nth-child(2) { grid-area: m2; }
#featured .highlights-grid .fbox:nth-child(3) { grid-area: m3; }
#featured .highlights-grid .fbox:nth-child(4) { grid-area: m4; }
#featured .highlights-grid .fbox:nth-child(5) { grid-area: m5; }
#featured .highlights-grid .fbox:nth-child(6) { grid-area: m6; }
#featured .highlights-grid .fbox:nth-child(7) { grid-area: m7; }
#featured .highlights-grid .fbox:nth-child(8) { grid-area: m8; }
#featured .highlights-grid .press-col { grid-area: press; }

#featured .fbox,
#featured #fbox1,
#featured #fbox2,
#featured #fbox3,
#featured #fbox4 {
  float: none;
  width: auto;
  margin: 0;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 18px 16px 20px;
  border: 1px solid var(--line);
  min-width: 0;
}

#featured img {
  display: block;
  margin: 0 auto;
  width: auto;
  max-width: 100%;
  max-height: 200px;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
}

#featured iframe {
  display: block;
  margin: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 14px;
  background: #111;
}

#featured p {
  text-align: center;
}

#featured h2 {
  padding: 2px 0 14px;
  text-align: center;
  text-transform: none;
  font-size: 0.98rem;
  font-weight: 600;
  font-family: Fraunces, serif;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.35;
  min-height: 3.2em;
}

#featured .fbox ul,
#featured #fbox4 ul {
  font-size: 0.78rem;
  line-height: 1.42;
  color: var(--muted);
}

#featured .fbox ul li,
#featured #fbox4 ul li {
  padding: 0.45em 0;
  border-top: 1px solid var(--line);
}

#featured .fbox ul li:first-child,
#featured #fbox4 ul li:first-child {
  border-top: 0;
  padding-top: 0;
}

#featured .fbox ul a,
#featured #fbox4 ul a {
  color: var(--navy-mid);
  text-decoration: none;
}

#featured .fbox ul a:hover,
#featured #fbox4 ul a:hover {
  color: var(--gold-link);
  text-decoration: underline;
}

.cover-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

#featured .covers-pair {
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  gap: 10px;
}

#featured .covers-pair .cover-item {
  flex: 1;
  min-width: 0;
  text-align: center;
}

#featured .covers-pair h2 {
  min-height: 0;
}

#featured .press-col {
  display: flex;
  flex-direction: column;
}

#featured .press-col h2 {
  min-height: 0;
  padding-bottom: 10px;
}

#featured .press-col ul {
  flex: 1;
  overflow-wrap: break-word;
  font-size: 0.82rem;
}

/* Footer */

.footer,
#footer {
  text-align: center;
  width: 100%;
  overflow: hidden;
  padding: 2.6em 7% 3em;
  color: var(--cream);
  background: var(--navy);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  border-top: 4px solid var(--gold);
}

.footer p,
#footer p {
  text-align: center;
  color: var(--cream);
}

.footer a,
#footer a {
  color: var(--gold-bright);
}

#footer .f1 { background: transparent; padding: 0; margin: 0; }
#footer .f2,
#footer .f3 { background: transparent; }

.f1,
.f2,
.f3 {
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  display: block;
  text-align: left;
  font-size: 0.95rem;
  color: #f3e7c8;
  padding: 20px 22px;
  min-width: 0;
  width: auto;
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  border: 1px solid rgba(240, 188, 58, 0.18);
}

.f1 { text-align: left; }

.f1 .foot-label,
.f2 .foot-label,
.f3 .foot-label,
.footer .foot-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.65em;
  font-family: Outfit, sans-serif;
}

.footer svg {
  vertical-align: -2px;
  margin-right: 4px;
}

/* Responsive */

@media screen and (max-width: 1100px) {
  #logo { width: 300px; }
  #page {
    grid-template-columns: 1fr;
  }

  #sidebar {
    background: var(--paper);
    color: var(--ink);
  }

  #sidebar h2,
  #sidebar h2 a {
    color: var(--navy);
  }

  #sidebar ul.style1 li {
    border-top-color: var(--line);
    color: var(--ink);
  }

  #sidebar ul.style1 a {
    color: var(--gold-link);
  }

  .container {
    width: min(var(--max), calc(100% - 24px));
  }
}

@media screen and (max-width: 1000px) {
  #banner {
    padding: 16px 12px 6px;
  }
}

@media screen and (max-width: 900px) {
  #header {
    min-height: 0;
    padding: 8px 0;
  }

  #menu ul {
    border-radius: var(--radius);
    justify-content: flex-start;
  }

  #menu .first {
    flex: 1 0 100%;
  }

  #menu .first a {
    padding-left: 0.7em;
  }

  #menu a {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    padding: 0.55em 0.7em;
  }

  #content {
    padding: 22px 18px 24px;
  }

  #content img {
    float: none;
    display: block;
    margin: 0 auto 18px;
    width: min(230px, 70vw) !important;
  }

  #featured .title {
    font-size: 1.65rem;
    margin: 10px 0 18px;
  }

  .footer,
  #footer {
    grid-template-columns: 1fr;
    padding-inline: 16px;
  }
}

@media screen and (max-width: 720px) {
  #featured .highlight-row,
  #featured .highlights-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-template-areas: none;
  }

  #featured .highlights-grid .fbox:nth-child(n),
  #featured .highlights-grid .press-col {
    grid-area: auto;
  }

  #featured .press-col {
    order: 1;
  }

  #featured .covers-pair {
    flex-direction: column;
  }

  #featured h2 {
    min-height: 0;
  }

  .previous-button,
  .next-button {
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
    line-height: 32px;
    top: 220px;
  }
}

@media screen and (max-width: 560px) {
  body {
    font-size: 15px;
  }

  #page {
    padding: 20px 0 8px;
    gap: 16px;
  }

  ul.style1 li {
    font-size: 0.9rem;
  }

}
