/* ==========================================================================
   CHRONOSYLVE (chronosylve.com) — SUB-PAGES EDITORIAL STYLESHEET (pages.css)
   Carries the world of the rainforest clockwork massif into quieter,
   deeply readable editorial and regulatory pages.
   ========================================================================== */

/* Subpage Hero Banner (Quieter, Focused Horological Observatory Header) */
.subpage-hero {
  position: relative;
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid var(--border-brass-strong);
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 20%, rgba(229, 180, 71, 0.14) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(22, 128, 87, 0.24) 0%, transparent 55%),
    linear-gradient(180deg, rgba(2, 12, 9, 0.92) 0%, rgba(5, 22, 17, 0.98) 100%);
}

.subpage-hero--with-media {
  min-height: 410px;
  display: flex;
  align-items: flex-end;
  padding: 5.5rem 0 2.75rem;
}

.subpage-hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.subpage-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(1.15) contrast(1.04);
}

.subpage-hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(2, 12, 9, 0.58) 0%,
      rgba(5, 22, 17, 0.35) 35%,
      rgba(5, 22, 17, 0.9) 78%,
      var(--bg-abyssal) 100%);
}

.subpage-hero__reticle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.55;
}

.subpage-hero__container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Breadcrumb Navigation */
.chrono-breadcrumb {
  margin-bottom: 1.25rem;
}

.chrono-breadcrumb__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  background: rgba(5, 22, 17, 0.84);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-brass);
  border-radius: 999px;
  padding: 0.32rem 0.88rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.chrono-breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--lichen-vapor);
}

.chrono-breadcrumb__item + .chrono-breadcrumb__item::before {
  content: "›";
  color: var(--gold-solar);
  font-weight: 700;
}

.chrono-breadcrumb__link {
  color: var(--gold-solar);
  text-decoration: none;
}

.chrono-breadcrumb__link:hover {
  text-decoration: underline;
}

.chrono-breadcrumb__current {
  color: var(--ivory-dial);
  font-weight: 600;
}

/* Subpage Hero Typography & Badges */
.subpage-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.subpage-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.26rem 0.75rem;
  border-radius: 999px;
  background: rgba(11, 44, 34, 0.88);
  border: 1px solid var(--border-brass-strong);
  color: var(--gold-solar);
}

.subpage-hero__tag--scarlet {
  background: rgba(255, 59, 31, 0.22);
  border-color: var(--macaw-scarlet);
  color: #ffa596;
}

.subpage-hero__tag--emerald {
  background: rgba(22, 128, 87, 0.28);
  border-color: var(--emerald-bright);
  color: #7bf2c3;
}

.subpage-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 3.85rem);
  font-weight: 700;
  line-height: 1.04;
  color: var(--ivory-dial);
  margin: 0 0 0.9rem;
  max-width: 24ch;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.85);
}

.subpage-hero__lead {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.62;
  color: var(--lichen-vapor);
  max-width: 68ch;
  margin: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}

/* ==========================================================================
   TWO-COLUMN EDITORIAL ARCHITECTURE (SIDEBAR TOC + MAIN CHRONICLE)
   ========================================================================== */
.editorial-workspace {
  padding: 3.25rem 0 5rem;
  border-bottom: 1px solid var(--border-brass);
}

.editorial-workspace__grid {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 2.75rem;
  align-items: start;
}

/* Sticky Left Sidebar: Sommaire du Calibre & Quick Cards */
.editorial-sidebar {
  position: sticky;
  top: 98px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.toc-plate {
  background: linear-gradient(145deg, rgba(11, 44, 34, 0.9), rgba(5, 22, 17, 0.95));
  border: 1px solid var(--border-brass-strong);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: var(--shadow-plate);
}

.toc-plate__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.7rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-brass);
}

.toc-plate__title {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-solar);
  margin: 0;
}

.toc-plate__code {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--emerald-bright);
}

.toc-plate__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.toc-plate__link {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0.42rem 0.6rem;
  border-radius: 7px;
  font-size: 0.83rem;
  line-height: 1.35;
  color: var(--lichen-vapor);
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.toc-plate__link span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold-solar);
  flex-shrink: 0;
}

.toc-plate__link:hover {
  color: var(--ivory-dial);
  background: rgba(229, 180, 71, 0.1);
  border-color: var(--border-brass);
}

/* Sidebar Emergency / Quick Info Card */
.sidebar-sentinel-card {
  background: rgba(5, 22, 17, 0.94);
  border: 1px solid var(--border-emerald);
  border-radius: 14px;
  padding: 1.15rem;
  box-shadow: var(--shadow-plate);
}

.sidebar-sentinel-card--alert {
  border-color: rgba(255, 59, 31, 0.65);
  background: linear-gradient(160deg, rgba(45, 12, 12, 0.65), rgba(5, 22, 17, 0.96));
}

.sidebar-sentinel-card__eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--gold-solar);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.sidebar-sentinel-card h3 {
  font-family: var(--font-display);
  font-size: 1.32rem;
  color: var(--ivory-dial);
  margin: 0 0 0.45rem;
}

.sidebar-sentinel-card p {
  font-size: 0.82rem;
  color: var(--lichen-vapor);
  margin: 0 0 0.85rem;
  line-height: 1.5;
}

.sidebar-sentinel-card__phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  background: linear-gradient(135deg, var(--gold-solar), var(--brass-calibre));
  color: var(--bg-abyssal);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.62rem 0.9rem;
  border-radius: 8px;
  text-decoration: none;
  margin-bottom: 0.45rem;
}

.sidebar-sentinel-card__phone:hover {
  color: var(--bg-abyssal);
  filter: brightness(1.08);
}

.sidebar-sentinel-card__sublink {
  display: block;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold-solar);
}

/* ==========================================================================
   MAIN EDITORIAL PROSE & HOROLOGICAL PLATES
   ========================================================================== */
.editorial-chronicle {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  min-width: 0;
}

.chronicle-chapter {
  background:
    radial-gradient(circle at 92% 8%, rgba(229, 180, 71, 0.07) 0%, transparent 45%),
    linear-gradient(155deg, rgba(11, 44, 34, 0.82), rgba(5, 22, 17, 0.94));
  border: 1px solid var(--border-brass);
  border-radius: 18px;
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow-plate);
  scroll-margin-top: 105px;
}

.chronicle-chapter--highlight {
  border-color: var(--border-brass-strong);
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 41, 133, 0.08) 0%, transparent 50%),
    linear-gradient(155deg, rgba(14, 52, 40, 0.9), rgba(5, 22, 17, 0.96));
}

.chronicle-chapter__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.85rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(229, 180, 71, 0.25);
}

.chronicle-chapter__num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--gold-solar);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.chronicle-chapter__stamp {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--emerald-bright);
  background: rgba(22, 128, 87, 0.22);
  border: 1px solid var(--border-emerald);
  padding: 0.14rem 0.55rem;
  border-radius: 999px;
}

.chronicle-chapter h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.5vw, 2.25rem);
  font-weight: 700;
  color: var(--ivory-dial);
  margin: 0 0 1rem;
  line-height: 1.15;
}

.chronicle-chapter h3 {
  font-family: var(--font-display);
  font-size: 1.38rem;
  font-weight: 700;
  color: var(--gold-solar);
  margin: 1.5rem 0 0.6rem;
  line-height: 1.2;
}

.chronicle-chapter p {
  font-size: 0.97rem;
  line-height: 1.72;
  color: var(--ivory-dial);
  margin: 0 0 1rem;
}

.chronicle-chapter p:last-child {
  margin-bottom: 0;
}

.chronicle-chapter ul,
.chronicle-chapter ol {
  margin: 0 0 1.15rem;
  padding-left: 1.35rem;
  color: var(--ivory-dial);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.95rem;
  line-height: 1.65;
}

.chronicle-chapter li strong {
  color: var(--gold-solar);
}

/* Engraved Specification Grid (For Publisher, Host & RGPD Data Tokens) */
.spec-ledger {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.9rem;
  margin: 1.25rem 0;
}

.spec-ledger__item {
  background: rgba(2, 12, 9, 0.78);
  border: 1px solid rgba(229, 180, 71, 0.3);
  border-radius: 10px;
  padding: 0.9rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.spec-ledger__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lichen-vapor);
}

.spec-ledger__value {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold-solar);
  word-break: break-word;
}

/* Horological Callout Box */
.horological-callout {
  background: rgba(5, 22, 17, 0.92);
  border-left: 4px solid var(--gold-solar);
  border-top: 1px solid var(--border-brass);
  border-right: 1px solid var(--border-brass);
  border-bottom: 1px solid var(--border-brass);
  border-radius: 0 12px 12px 0;
  padding: 1.15rem 1.35rem;
  margin: 1.25rem 0;
}

.horological-callout--alert {
  border-left-color: var(--macaw-scarlet);
  background: rgba(35, 11, 11, 0.65);
}

.horological-callout--emerald {
  border-left-color: var(--emerald-bright);
}

.horological-callout__title {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-solar);
  margin-bottom: 0.4rem;
}

.horological-callout--alert .horological-callout__title {
  color: #ff9c8d;
}

.horological-callout p {
  margin: 0;
  font-size: 0.91rem;
  color: var(--lichen-vapor);
}

/* Diagnostic / Checklist Cards Grid */
.diagnostic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.25rem 0;
}

.diagnostic-card {
  background: rgba(5, 22, 17, 0.88);
  border: 1px solid rgba(229, 180, 71, 0.26);
  border-radius: 12px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.diagnostic-card__code {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--orchid-electric);
  font-weight: 700;
}

.diagnostic-card h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold-solar);
  margin: 0;
}

.diagnostic-card p {
  font-size: 0.86rem;
  color: var(--lichen-vapor);
  margin: 0;
  line-height: 1.55;
}

/* Data Processing / Methodology Table inside Subpages */
.subpage-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-brass);
  border-radius: 12px;
  margin: 1.25rem 0;
  background: rgba(2, 12, 9, 0.82);
}

.subpage-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.85rem;
}

.subpage-table th {
  background: rgba(11, 44, 34, 0.92);
  color: var(--gold-solar);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-brass);
}

.subpage-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(229, 180, 71, 0.14);
  color: var(--ivory-dial);
  vertical-align: top;
  line-height: 1.5;
}

.subpage-table tr:last-child td {
  border-bottom: none;
}

.subpage-table code {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--gold-solar);
  background: rgba(229, 180, 71, 0.12);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

/* Cross-Navigation Subpage Footer Cards */
.subpage-crossnav {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.crossnav-card {
  background: rgba(11, 44, 34, 0.75);
  border: 1px solid var(--border-brass);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: transform 0.2s var(--ease-escapement), border-color 0.2s ease;
}

.crossnav-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold-solar);
}

.crossnav-card__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--emerald-bright);
  text-transform: uppercase;
}

.crossnav-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-solar);
}

.crossnav-card__desc {
  font-size: 0.78rem;
  color: var(--lichen-vapor);
}

/* Active Page Indicator in Header Navigation */
.chrono-nav__link[aria-current="page"] {
  border-color: var(--gold-solar);
  color: var(--gold-solar);
  background: rgba(229, 180, 71, 0.14);
}

@media (max-width: 1024px) {
  .editorial-workspace__grid {
    grid-template-columns: 1fr;
  }
  .editorial-sidebar {
    position: static;
    order: -1;
  }
}

@media (max-width: 680px) {
  .subpage-hero {
    padding: 2.25rem 0 2rem;
  }
  .subpage-hero--with-media {
    min-height: 320px;
    padding: 4rem 0 1.85rem;
  }
  .chronicle-chapter {
    padding: 1.35rem 1.15rem;
  }
  .diagnostic-grid {
    grid-template-columns: 1fr;
  }
}
