/* Media Relations Division — esthétique police institutionnelle */
:root {
  --navy: #0c1b2a;
  --navy-mid: #143049;
  --blue: #1a6fb5;
  --blue-bright: #2180d0;
  --blue-soft: rgba(26, 111, 181, 0.1);
  --bg: #eef1f4;
  --bg-white: #ffffff;
  --surface: #ffffff;
  --surface-muted: #f7f9fb;
  --text: #121820;
  --text-muted: #5c6b7a;
  --line: #d8dee6;
  --line-strong: #b8c2ce;
  --danger: #c0392b;
  --success: #1e7a4c;
  --font-display: "Outfit", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --max: 1140px;
  --header-h: 88px;
  --shadow: 0 8px 28px rgba(12, 27, 42, 0.08);
  --radius: 10px;
}

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

html {
  height: 100%;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  min-height: 100%;
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
  padding-top: var(--header-h);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.55em;
}

p {
  margin: 0 0 1em;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Header — fixe, identique sur toutes les pages */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--navy);
  border-bottom: 3px solid var(--blue);
  box-shadow: 0 2px 12px rgba(12, 27, 42, 0.25);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: #fff;
  flex-shrink: 0;
  min-width: 0;
  max-width: min(420px, 55vw);
}

.brand__logo {
  width: 68px;
  height: 68px;
  min-width: 68px;
  min-height: 68px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand__mark {
  width: 68px;
  height: 68px;
  min-width: 68px;
  min-height: 68px;
  border: 2px solid var(--blue-bright);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  flex-shrink: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand__sub {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.nav a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  padding: 0.55rem 0.75rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.nav a:hover,
.nav a.is-active {
  color: #fff;
  border-bottom-color: var(--blue-bright);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--font-body);
}

/* Hero — plein cadre, marque centrée */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 0 5rem;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 16, 28, 0.55) 0%, rgba(12, 27, 42, 0.82) 55%, var(--navy) 100%),
    linear-gradient(115deg, rgba(12, 27, 42, 0.95) 0%, rgba(12, 27, 42, 0.75) 45%, rgba(20, 48, 73, 0.9) 100%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 80px,
      rgba(255, 255, 255, 0.015) 80px,
      rgba(255, 255, 255, 0.015) 81px
    );
}

.hero__bg::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--blue);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 42rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__logo {
  width: min(220px, 48vw);
  height: min(220px, 48vw);
  object-fit: contain;
  margin-bottom: 1.35rem;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
}

.hero__brand {
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
  color: #fff;
  text-align: center;
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 1.75rem;
  max-width: 28rem;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.5;
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.45rem;
  border: 2px solid var(--blue);
  background: var(--blue);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn:hover {
  background: var(--blue-bright);
  border-color: var(--blue-bright);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}

.hero .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.hero .btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn--danger {
  border-color: var(--danger);
  background: var(--danger);
  color: #fff;
}

.btn--sm {
  padding: 0.5rem 0.85rem;
  font-size: 0.72rem;
}

/* Sections */
.section {
  padding: 3rem 0 4rem;
  background: var(--bg);
}

.section--surface {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.section--alt {
  background: var(--bg);
  border-block: none;
}

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.section__title {
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
  margin: 0;
  color: var(--navy);
}

.section__link {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}

.section__link:hover {
  color: var(--navy);
}

.reveal {
  opacity: 1;
  transform: none;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.media-item {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.media-item:hover {
  box-shadow: var(--shadow);
  border-color: var(--blue);
}

.media-item__thumb {
  aspect-ratio: 3 / 4;
  background: #e8eef4;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.media-item__thumb--video {
  aspect-ratio: 16 / 9;
}

.media-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-item__body {
  padding: 1rem 1.05rem 1.15rem;
}

.media-item__meta {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.35rem;
}

.media-item__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 650;
  margin: 0;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.placeholder-thumb {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background:
    linear-gradient(145deg, #e8eef4, #d5dee8);
}

/* Page header */
.month-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.month-filter__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-white);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.month-filter__chip span {
  font-size: 0.7rem;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
}

.month-filter__chip:hover {
  border-color: var(--blue);
  color: var(--navy);
}

.month-filter__chip.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.month-filter__chip.is-active span {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.month-filter__status {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.page-intro,
.page-hero {
  padding: 2.5rem 0 1.75rem;
  background: var(--surface);
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.page-intro h1,
.page-hero h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.45rem);
  margin-bottom: 0.35rem;
  color: var(--navy);
}

.page-intro p,
.page-hero p {
  color: var(--text-muted);
  max-width: 40rem;
  margin: 0;
  font-size: 0.98rem;
}

.page-intro .meta-accent,
.page-hero .meta-accent {
  color: var(--blue);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.page-back {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.page-back:hover {
  color: var(--blue);
}

/* Article / about */
.prose {
  max-width: 42rem;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.65;
}

.prose h2,
.prose h3 {
  color: var(--navy);
  margin-top: 1.5em;
}

.prose p,
.prose li {
  color: var(--text);
}

.prose p:first-child {
  font-size: 1.08rem;
}

.prose a {
  color: var(--blue);
  text-decoration: underline;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
  margin: 0 0 1em;
}

/* Members */
.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.member--card {
  width: 100%;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font: inherit;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.member--card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.member__photo {
  aspect-ratio: 3 / 4;
  min-height: 280px;
  background: var(--surface-muted);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.member__photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.member__body {
  padding: 1rem 1.05rem 1.15rem;
}

.member__rank {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.25rem;
}

.member__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 650;
  margin: 0 0 0.5rem;
  color: var(--navy);
}

.member__cta {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.member--card:hover .member__cta {
  color: var(--blue);
}

/* Member profile page */
.member-profile__layout {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

.member-profile__photo {
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}

.member-profile__photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.member-profile__photo-empty {
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-weight: 700;
}

.member-profile__meta {
  margin: 0 0 1.75rem;
  display: grid;
  gap: 0.85rem;
}

.member-profile__meta-row {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  align-items: baseline;
}

.member-profile__meta dt {
  margin: 0;
  font-weight: 700;
  color: var(--navy);
}

.member-profile__meta dd {
  margin: 0;
  color: var(--text);
}

.member-profile__bio h2 {
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
  color: var(--navy);
}

.member-profile__bio-text {
  color: var(--text);
  line-height: 1.65;
  font-size: 1rem;
}

.member-profile__pubs {
  border-top: 1px solid var(--line);
  padding-top: 2rem;
  display: grid;
  gap: 2rem;
}

.member-profile__pub-block h2 {
  font-size: 1.15rem;
  margin: 0 0 1rem;
  color: var(--navy);
}

.member-profile__pub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.member-profile__pub-grid--video {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.member-profile__pub-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
}

.member-profile__pub-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.member-profile__pub-thumb {
  aspect-ratio: 3 / 4;
  background: #e8eef4;
  overflow: hidden;
}

.member-profile__pub-thumb--video {
  aspect-ratio: 16 / 9;
}

.member-profile__pub-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-profile__pub-placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.member-profile__pub-body {
  padding: 0.85rem 0.95rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.member-profile__pub-meta {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}

.member-profile__pub-body strong {
  font-size: 0.95rem;
  color: var(--navy);
  line-height: 1.3;
}

@media (max-width: 768px) {
  .member-profile__layout {
    grid-template-columns: 1fr;
  }

  .member-profile__photo {
    max-width: 320px;
  }
}

.content-authors {
  margin: 0.65rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

.journal-view__title-wrap .content-authors {
  width: 100%;
  margin-top: 0.45rem;
}

.content-authors__label {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: var(--blue);
}

.content-authors__sep {
  opacity: 0.45;
}

.content-authors__link {
  font-weight: 600;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.content-authors__link:hover {
  color: var(--blue);
}

.live-toast {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 90;
  padding: 0.85rem 1rem;
  background: var(--navy);
  color: #fff;
  border-left: 3px solid var(--blue-bright);
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-size: 0.88rem;
  max-width: min(360px, calc(100vw - 2rem));
}

.live-toast[hidden] {
  display: none !important;
}


/* Video detail */
.video-player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.video-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

/* —— Lecteur journal / flipbook —— */
.journal-view {
  background:
    radial-gradient(ellipse at 50% 0%, #ebe6dc 0%, #e4dfd4 45%, #ddd6c8 100%);
  min-height: calc(100vh - var(--header-h));
  padding-bottom: 2.5rem;
}

.journal-view__masthead {
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(12, 27, 42, 0.08);
  backdrop-filter: blur(8px);
  padding: 1.1rem 0;
  margin-bottom: 1.25rem;
}

.journal-view__masthead-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.journal-back {
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: 0.65;
  white-space: nowrap;
}

.journal-back:hover { opacity: 1; }

.journal-view__title-wrap {
  flex: 1 1 280px;
  min-width: 0;
}

.journal-view__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.55rem 0.75rem;
}

.journal-view__edition {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(26, 111, 181, 0.1);
  border: 1px solid rgba(26, 111, 181, 0.22);
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}

.journal-view__date {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.journal-view__empty {
  padding: 3rem 0;
}

.flipbook__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0 1rem;
  min-height: min(78vh, 920px);
}

.flipbook__hit {
  position: absolute;
  top: 0;
  bottom: 5rem;
  width: min(20vw, 160px);
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flipbook__hit-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(12, 27, 42, 0.28);
  pointer-events: none;
  opacity: 0;
}

.flipbook__hit:hover .flipbook__hit-label {
  opacity: 1;
}

.flipbook__hit--prev { left: 0; }
.flipbook__hit--next { right: 0; }
.flipbook__hit:disabled { cursor: default; opacity: 0.35; }

.flipbook__book {
  position: relative;
  z-index: 2;
  width: min(100% - 2.5rem, 780px);
  padding-left: 14px;
}

.flipbook__spine {
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 2.5rem;
  width: 14px;
  border-radius: 3px 0 0 3px;
  background: linear-gradient(90deg, #8a7f72 0%, #c4b9aa 35%, #6f655a 100%);
  box-shadow: inset -2px 0 4px rgba(0, 0, 0, 0.15);
}

.flipbook__page {
  position: relative;
  transform-origin: left center;
  transform-style: preserve-3d;
}

.flipbook__page.is-turn-left {
  animation: pageTurnLeft 0.26s ease forwards;
}

.flipbook__page.is-turn-right {
  animation: pageTurnRight 0.26s ease forwards;
}

@keyframes pageTurnLeft {
  0% { transform: rotateY(0deg); }
  45% { transform: rotateY(14deg); opacity: 0.82; }
  100% { transform: rotateY(0deg); opacity: 1; }
}

@keyframes pageTurnRight {
  0% { transform: rotateY(0deg); }
  45% { transform: rotateY(-14deg); opacity: 0.82; }
  100% { transform: rotateY(0deg); opacity: 1; }
}

.flipbook__paper {
  aspect-ratio: 210 / 297;
  background: #fff;
  border-radius: 2px 8px 8px 2px;
  box-shadow:
    0 1px 1px rgba(0, 0, 0, 0.04),
    0 16px 36px rgba(60, 45, 20, 0.2),
    0 32px 70px rgba(60, 45, 20, 0.14),
    inset -10px 0 18px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flipbook__paper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  cursor: pointer;
  user-select: none;
  background: #fff;
}

.flipbook__footer {
  margin: 0.9rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: #6a6258;
  font-weight: 600;
}

.flipbook__sep {
  margin: 0 0.35rem;
  opacity: 0.5;
}

.flipbook__controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.75rem;
}

.flipbook__btn {
  border: 1px solid rgba(12, 27, 42, 0.15);
  background: rgba(255, 255, 255, 0.88);
  color: var(--navy);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.flipbook__btn:hover:not(:disabled) {
  border-color: var(--blue);
  color: var(--blue);
}

.flipbook__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.flipbook__thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.35rem 0.25rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.flipbook__thumb {
  flex: 0 0 auto;
  width: 48px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  scroll-snap-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.flipbook__thumb img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.flipbook__thumb span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(12, 27, 42, 0.75);
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0;
  text-align: center;
}

.flipbook__thumb.is-active {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(26, 111, 181, 0.25);
}

.flipbook__hint {
  text-align: center;
  font-size: 0.75rem;
  color: #8a8278;
  margin: 1rem 0 0;
}

.grid--home-journals {
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}

.grid--home-journals .media-item__body {
  padding: 0.72rem 0.82rem 0.85rem;
}

.grid--home-journals .media-item__title {
  font-size: 0.95rem;
}

.grid--home-journals .media-item__meta {
  font-size: 0.62rem;
  margin-bottom: 0.25rem;
}

.journal-pdf {
  padding-bottom: 2rem;
}

.journal-pdf__actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.75rem;
}

.pdf-frame {
  width: 100%;
  min-height: 80vh;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(60, 45, 20, 0.15);
}

@media (max-width: 960px) {
  .grid--home-journals {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .journal-view__masthead-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .journal-view__date {
    margin-left: 0;
  }

  .flipbook__book {
    width: min(100% - 1.5rem, 780px);
  }

  .flipbook__controls {
    grid-template-columns: 1fr;
  }

  .flipbook__btn { width: 100%; }
  .flipbook__hit { width: 24%; }
  .flipbook__hit-label { display: none; }

  .grid--home-journals {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.site-footer {
  background: var(--navy);
  border-top: 3px solid var(--blue);
  padding: 2.25rem 0 1.75rem;
  margin-top: auto;
  flex-shrink: 0;
}

.site-footer__inner {
  display: grid;
  gap: 1.5rem;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.site-footer__logo {
  width: 72px;
  height: 72px;
  min-width: 72px;
  min-height: 72px;
  object-fit: contain;
  flex-shrink: 0;
}

.site-footer__copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.site-footer__copy strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.site-footer__copy span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  padding-top: 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.15rem;
}

.site-footer__nav a {
  color: rgba(255, 255, 255, 0.62);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.site-footer__nav a:hover {
  color: #fff;
}

.site-footer__legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.42);
}

.site-footer__staff {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer__staff:hover {
  color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 720px) {
  .site-footer__legal {
    flex-direction: column;
    align-items: flex-start;
  }
}

.empty {
  color: var(--text-muted);
  padding: 2rem 0;
  font-style: italic;
}

.flash-stack {
  position: fixed;
  top: calc(var(--header-h) + 0.75rem);
  right: 1rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 320px;
}

.flash {
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  background: var(--bg-white);
  font-size: 0.9rem;
  box-shadow: var(--shadow);
}

.flash--success { border-color: var(--success); }
.flash--error { border-color: var(--danger); }

.preview-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.65rem 1.25rem;
  background: #143049;
  color: #fff;
  font-size: 0.9rem;
  border-bottom: 3px solid var(--blue-bright);
}

body.is-preview {
  padding-top: 48px;
}

body.is-preview .site-header {
  top: 48px;
}

@media (max-width: 900px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1.1rem;
    background: var(--navy);
    border-bottom: 3px solid var(--blue);
    gap: 0;
  }
  .nav.is-open { display: flex; }
  .nav a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.85rem 0.5rem;
  }
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
  .hero {
    align-items: center;
    min-height: calc(88vh - var(--header-h));
  }
}
