/* =========================================================
   REDOVAR RELEASES
   Developed by Cavendish Pierre-Louis
   https://cavendishpierrelouis.io

   Shared by every individual Redovar Changelog entry.

   Header, mobile navigation, footer, privacy modal,
   and all global navigation remain owned by:

   ../../files/css/header-footer.css
========================================================= */


/* =========================================================
   RELEASE VARIABLES
========================================================= */

.release-main {
  --release-blue: #0B369A;
  --release-blue-hover: #2450A8;
  --release-terra: #C34811;

  --release-black: #111111;
  --release-text: #171717;
  --release-muted: #686865;
  --release-soft: #8B8B86;

  --release-border: #E7E7E3;
  --release-surface: #F7F7F5;
  --release-surface-hover: #F2F2EF;
  --release-white: #FFFFFF;

  --release-radius: 4px;

  --release-shell: 1340px;
  --release-copy-width: 740px;

  --release-gutter:
    clamp(
      24px,
      4.4vw,
      72px
    );

  --release-header-height: 76px;

  --release-ease:
    cubic-bezier(
      .22,
      .61,
      .36,
      1
    );

  width: 100%;

  min-height: 100vh;

  margin: 0;

  overflow: clip;

  background:
    var(--release-white);

  color:
    var(--release-text);

  font-family:
    "Onest",
    "Helvetica Neue",
    Arial,
    sans-serif;

  -webkit-font-smoothing:
    antialiased;

  text-rendering:
    optimizeLegibility;
}


/* =========================================================
   READING PROGRESS

   Fixed directly beneath the shared Redovar header.

   The track remains almost invisible.
   Terracotta communicates actual reading progress.
========================================================= */

.release-reading-progress {
  position:
    fixed;

  z-index:
    950;

  top:
    76px;

  left:
    0;

  width:
    100%;

  height:
    3px;

  overflow:
    hidden;

  background:
    rgba(
      195,
      72,
      17,
      .08
    );

  pointer-events:
    none;
}


.release-reading-progress-bar {
  width:
    100%;

  height:
    100%;

  display:
    block;

  background:
    var(--release-terra, #C34811);

  transform:
    scaleX(0);

  transform-origin:
    left center;

  will-change:
    transform;
}


/* =========================================================
   PAGE SHELL
========================================================= */

.release-page-shell {
  width: 100%;

  margin: 0;

  padding:
    clamp(
      126px,
      9.4vw,
      152px
    )
    0
    clamp(
      96px,
      8vw,
      126px
    );

  background:
    var(--release-white);
}


/* =========================================================
   RELEASE GRID
========================================================= */

.release-layout {
  width:
    min(
      calc(
        100% -
        (var(--release-gutter) * 2)
      ),
      var(--release-shell)
    );

  margin-inline:
    auto;

  display:
    grid;

  grid-template-columns:
    minmax(
      120px,
      .62fr
    )
    minmax(
      0,
      var(--release-copy-width)
    )
    minmax(
      180px,
      .76fr
    );

  gap:
    clamp(
      36px,
      4.5vw,
      64px
    );

  align-items:
    start;
}


/* =========================================================
   CENTER
========================================================= */

.release-content {
  grid-column:
    2;

  min-width:
    0;
}


/* =========================================================
   LEFT RAIL
========================================================= */

.release-rail {
  grid-column:
    1;

  padding-top:
    7px;

  display:
    flex;

  align-items:
    center;

  gap:
    7px;

  color:
    var(--release-soft);

  font-size:
    10px;

  font-weight:
    550;

  line-height:
    1.4;

  letter-spacing:
    .01em;

  white-space:
    nowrap;
}


.release-breadcrumb {
  position:
    relative;

  width:
    fit-content;

  color:
    var(--release-muted);

  text-decoration:
    none;

  cursor:
    pointer;

  transition:
    color
    170ms
    ease;
}


.release-breadcrumb::after {
  content:
    "";

  position:
    absolute;

  left:
    0;

  bottom:
    -5px;

  width:
    100%;

  height:
    1px;

  background:
    var(--release-blue);

  transform:
    scaleX(0);

  transform-origin:
    left;

  transition:
    transform
    180ms
    ease;
}


.release-breadcrumb:hover,
.release-breadcrumb:focus-visible {
  color:
    var(--release-blue);
}


.release-breadcrumb:hover::after,
.release-breadcrumb:focus-visible::after {
  transform:
    scaleX(1);
}


.release-breadcrumb:focus-visible {
  outline:
    2px solid
    var(--release-blue);

  outline-offset:
    7px;
}


/* =========================================================
   RELEASE HEAD

   Deliberately smaller than a Redovar marketing hero.
   This should read like documentation / a release record.
========================================================= */

.release-head {
  min-width:
    0;
}


.release-head h1 {
  max-width:
    740px;

  margin:
    0;

  color:
    var(--release-black);

  font-size:
    clamp(
      36px,
      3.25vw,
      48px
    );

  font-weight:
    500;

  letter-spacing:
    -.047em;

  line-height:
    1;

  text-wrap:
    balance;
}


.release-intro {
  max-width:
    675px;

  margin:
    clamp(
      22px,
      2.5vw,
      28px
    )
    0
    0;

  color:
    var(--release-muted);

  font-size:
    clamp(
      16px,
      1.12vw,
      18px
    );

  font-weight:
    400;

  letter-spacing:
    -.012em;

  line-height:
    1.62;
}


/* =========================================================
   RIGHT META
========================================================= */

.release-side {
  grid-column:
    3;

  position:
    sticky;

  top:
    calc(
      var(--release-header-height)
      +
      34px
    );

  align-self:
    start;

  padding-top:
    198px;
}


.release-meta {
  width:
    min(
      100%,
      190px
    );

  display:
    grid;

  grid-template-columns:
    minmax(0, 1fr)
    auto;

  align-items:
    center;

  column-gap:
    14px;
}


.release-meta-date,
.release-meta-reading {
  display:
    block;

  color:
    var(--release-soft);

  font-size:
    10.5px;

  font-weight:
    500;

  letter-spacing:
    -.005em;

  line-height:
    1.45;
}


.release-meta-reading {
  margin-top: 0;

  text-align: right;

  white-space: nowrap;
}


/* =========================================================
   COPY CONTROL
========================================================= */

.release-copy {
  position:
    relative;

  width:
    100%;

  margin-top:
    16px;

  grid-column: 1 / -1;
}


.release-copy-trigger {
  width:
    100%;

  min-height:
    38px;

  padding:
    0
    12px
    0
    13px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    flex-start;

  gap:
    12px;

  border:
    0;

  border-radius:
    var(--release-radius);

  background:
    var(--release-surface);

  color:
    var(--release-text);

  font-size:
    10.5px;

  font-weight:
    550;

  line-height:
    1;

  text-align:
    left;

  cursor:
    pointer;

  transition:
    background-color
    160ms
    ease,
    color
    160ms
    ease;
}


.release-copy-trigger:hover,
.release-copy-trigger:focus-visible,
.release-copy.is-open
.release-copy-trigger {
  background:
    var(--release-surface-hover);

  color:
    var(--release-blue);
}


.release-copy-trigger:focus-visible {
  outline:
    2px solid
    var(--release-blue);

  outline-offset:
    3px;
}


.release-copy-chevron {
  margin-left: auto;

  flex:
    0
    0
    11px;

  width:
    11px;

  height:
    11px;

  object-fit:
    contain;

  opacity:
    .62;

  transition:
    transform
    170ms
    ease,
    opacity
    170ms
    ease;
}


.release-copy-icon {
  flex: 0 0 15px;

  width: 15px;

  height: 15px;

  display: block;

  object-fit: contain;
}


.release-copy.is-open
.release-copy-chevron {
  transform:
    rotate(
      180deg
    );

  opacity:
    1;
}


/* =========================================================
   COPY MENU
========================================================= */

.release-copy-menu {
  position:
    absolute;

  z-index:
    20;

  top:
    calc(
      100%
      +
      8px
    );

  right:
    0;

  width:
    100%;

  min-width:
    190px;

  padding:
    6px;

  border:
    1px solid
    var(--release-border);

  border-radius:
    var(--release-radius);

  background:
    var(--release-white);

  box-shadow:
    0
    18px
    46px
    rgba(
      17,
      17,
      17,
      .08
    );

  opacity:
    0;

  visibility:
    hidden;

  transform:
    translateY(
      -4px
    );

  pointer-events:
    none;

  transition:
    opacity
    150ms
    ease,
    visibility
    150ms
    ease,
    transform
    150ms
    ease;
}


.release-copy.is-open
.release-copy-menu {
  opacity:
    1;

  visibility:
    visible;

  transform:
    none;

  pointer-events:
    auto;
}


.release-copy-menu button {
  width:
    100%;

  min-height:
    38px;

  padding:
    0
    10px;

  display:
    flex;

  align-items:
    center;

  gap:
    10px;

  border:
    0;

  border-radius:
    3px;

  background:
    transparent;

  color:
    var(--release-muted);

  font-size:
    10.5px;

  font-weight:
    500;

  line-height:
    1.3;

  text-align:
    left;

  cursor:
    pointer;

  transition:
    background-color
    150ms
    ease,
    color
    150ms
    ease;
}


.release-copy-menu button:hover,
.release-copy-menu button:focus-visible {
  background:
    var(--release-surface);

  color:
    var(--release-black);
}


.release-copy-menu button:focus-visible {
  outline:
    2px solid
    var(--release-blue);

  outline-offset:
    -2px;
}


.release-copy-menu button img {
  flex:
    0
    0
    15px;

  width:
    15px;

  height:
    15px;

  display:
    block;

  object-fit:
    contain;
}


/* =========================================================
   COPY STATUS
========================================================= */

.release-copy-status {
  position:
    absolute;

  left:
    0;

  top:
    calc(
      100%
      +
      10px
    );

  color:
    var(--release-blue);

  font-size:
    9px;

  font-weight:
    550;

  line-height:
    1.3;

  pointer-events:
    none;
}


/* =========================================================
   RELEASE BODY

   The previous version had marketing-page spacing.
   This is deliberately denser and editorial.
========================================================= */

.release-prose {
  margin-top:
    clamp(
      58px,
      5.4vw,
      76px
    );
}


.release-section {
  scroll-margin-top:
    calc(
      var(--release-header-height)
      +
      46px
    );
}


.release-section
+
.release-section {
  margin-top:
    clamp(
      54px,
      5.4vw,
      72px
    );
}


/* =========================================================
   HEADINGS
========================================================= */

.release-section h2 {
  max-width:
    670px;

  margin:
    0
    0
    clamp(
      20px,
      2.2vw,
      27px
    );

  color:
    var(--release-black);

  font-size:
    clamp(
      21px,
      1.45vw,
      25px
    );

  font-weight:
    500;

  letter-spacing:
    -.034em;

  line-height:
    1.1;

  text-wrap:
    balance;
}


/* =========================================================
   PARAGRAPHS

   More book-like:
   - smaller
   - tighter vertical rhythm
   - generous but not oversized line height
========================================================= */

.release-section p {
  max-width:
    670px;

  margin:
    0;

  color:
    var(--release-muted);

  font-size:
    clamp(
      14.5px,
      .94vw,
      15.5px
    );

  font-weight:
    400;

  letter-spacing:
    -.003em;

  line-height:
    1.72;
}


.release-section p + p {
  margin-top:
    18px;
}


/* =========================================================
   LISTS
========================================================= */

.release-section ul {
  max-width:
    670px;

  margin:
    23px
    0
    0;

  padding:
    0;

  list-style:
    none;

  display:
    grid;

  gap:
    10px;
}


.release-section li {
  position:
    relative;

  padding-left:
    22px;

  color:
    var(--release-muted);

  font-size:
    clamp(
      14.5px,
      .94vw,
      15.5px
    );

  font-weight:
    400;

  letter-spacing:
    -.003em;

  line-height:
    1.66;
}


.release-section li::before {
  content:
    "";

  position:
    absolute;

  left:
    2px;

  top:
    .72em;

  width:
    4px;

  height:
    4px;

  border-radius:
    50%;

  background:
    var(--release-blue);
}


.release-section ul + p {
  margin-top:
    23px;
}


/* =========================================================
   RELEASE END
========================================================= */

.release-ending {
  margin-top:
    clamp(
      68px,
      6.5vw,
      90px
    );

  padding-top:
    clamp(
      24px,
      2.8vw,
      32px
    );

  border-top:
    1px solid
    var(--release-border);
}


/* =========================================================
   RETURN BUTTON
========================================================= */

.release-return-button {
  min-height:
    42px;

  padding:
    0
    19px;

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  border-radius:
    var(--release-radius);

  background:
    var(--release-blue);

  color:
    var(--release-white);

  font-size:
    11px;

  font-weight:
    600;

  line-height:
    1;

  text-decoration:
    none;

  cursor:
    pointer;

  transition:
    background-color
    170ms
    ease,
    transform
    170ms
    ease;
}


.release-return-button:hover,
.release-return-button:focus-visible {
  background:
    var(--release-blue-hover);

  color:
    var(--release-white);
}


.release-return-button:active {
  transform:
    translateY(
      1px
    );
}


.release-return-button:focus-visible {
  outline:
    2px solid
    var(--release-blue);

  outline-offset:
    4px;
}


/* =========================================================
   REVEAL
========================================================= */

[data-release-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 450ms ease,
    transform 450ms cubic-bezier(0.16, 1, 0.3, 1);
}

[data-release-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1180px) {

  .release-layout {
    width:
      min(
        calc(
          100% -
          (var(--release-gutter) * 2)
        ),
        900px
      );

    grid-template-columns:
      1fr;

    gap:
      26px;
  }


  .release-rail,
  .release-content,
  .release-side {
    grid-column:
      1;
  }


  .release-rail {
    padding-top:
      0;
  }


  .release-side {
    position:
      static;

    padding-top:
      0;

    order:
      0;
  }


  .release-meta {
    width:
      100%;

    max-width:
      none;

    padding:
      17px
      0;

    display:
      grid;

    grid-template-columns:
      auto
      auto
      minmax(
        150px,
        180px
      );

    align-items:
      center;

    justify-content:
      start;

    gap:
      17px;

    border-top:
      1px solid
      var(--release-border);

    border-bottom:
      1px solid
      var(--release-border);
  }


  .release-meta-reading {
    margin-top:
      0;
  }


  .release-copy {
    margin-top:
      0;
  }


  .release-copy-status {
    top:
      calc(
        100%
        +
        5px
      );
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 760px) {

  .release-reading-progress {
    top:
      76px;

    height:
      2px;
  }


  .release-page-shell {
    padding:
      112px
      0
      92px;
  }


  .release-layout {
    width:
      calc(
        100% -
        44px
      );

    gap:
      23px;
  }


  .release-head h1 {
    font-size:
      clamp(
        26px,
        7.5vw,
        29px
      );

    line-height:
      1;
  }


  .release-intro {
    max-width:
      620px;

    margin-top:
      21px;

    font-size:
      clamp(
        16px,
        4.3vw,
        18px
      );

    line-height:
      1.58;
  }


  .release-meta {
    grid-template-columns:
      auto
      auto
      1fr;

    gap:
      13px;
  }


  .release-copy {
    justify-self:
      end;

    width:
      min(
        100%,
        166px
      );
  }


  .release-prose {
    margin-top:
      54px;
  }


  .release-section
  +
  .release-section {
    margin-top:
      56px;
  }


  .release-section h2 {
    margin-bottom:
      20px;

    font-size: 15px;

    line-height: 1.3;

    letter-spacing: -.018em;

    font-weight: 500;
  }


  .release-section p,
  .release-section li {
    font-size:
      15px;
  }


  .release-section p {
    line-height:
      1.7;
  }


  .release-section p + p {
    margin-top:
      17px;
  }


  .release-section ul {
    margin-top:
      21px;

    gap:
      10px;
  }


  .release-section ul + p {
    margin-top:
      21px;
  }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 560px) {

  .release-layout {
    width:
      calc(
        100% -
        40px
      );
  }


  .release-rail {
    flex-wrap:
      wrap;

    white-space:
      normal;
  }


  .release-head h1 {
    font-size:
      clamp(
        26px,
        7.5vw,
        29px
      );
  }


  .release-meta {
    display:
      flex;

    align-items:
      flex-start;

    gap:
      7px;
  }


  .release-meta-reading {
    margin-top:
      0;
  }


  .release-copy {
    width:
      100%;

    max-width:
      none;

    margin-top:
      7px;
  }


  .release-copy-trigger {
    width:
      100%;
  }


  .release-copy-menu {
    width:
      100%;
  }

}


/* =========================================================
   PHONE RELEASE META

   Keep the editorial context, date, read time, and copy
   control together at the top of the article.
========================================================= */

@media (max-width: 760px) {

  .release-layout {
    margin-top: 70px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "rail meta"
      "content content";
    column-gap: 10px;
    row-gap: 75px;
  }

  .release-rail {
    grid-area: rail;
    align-self: center;
    padding-top: 0;
    white-space: nowrap;
  }

  .release-side {
    grid-area: meta;
    position: static;
    align-self: center;
    padding-top: 0;
    order: initial;
  }

  .release-content {
    grid-area: content;
  }

  .release-meta {
    width: auto;
    max-width: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 5px;
    border: 0;
    position: relative;
  }

  .release-meta-reading {
    text-align: right;
  }

  .release-meta-date,
  .release-meta-reading {
    font-size: 10px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .release-copy {
    position: absolute;
    right: 0;
    bottom: calc(100% + 48px);
    width: 132px;
    max-width: 132px;
    margin: 0;
  }

  .release-copy-trigger {
    width: 132px;
    min-height: 34px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    text-align: left;
  }

  .release-copy-icon {
    display: block;
  }

  .release-copy-menu {
    right: 0;
    left: auto;
    width: min(220px, calc(100vw - 40px));
  }

}


/* =========================================================
   TOUCH
========================================================= */

@media (hover: none) {

  .release-copy-trigger:hover {
    background:
      var(--release-surface);

    color:
      var(--release-text);
  }


  .release-copy.is-open
  .release-copy-trigger {
    background:
      var(--release-surface-hover);

    color:
      var(--release-blue);
  }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

  .release-main {
    scroll-behavior:
      auto;
  }


  .release-breadcrumb::after,
  .release-copy-trigger,
  .release-copy-chevron,
  .release-copy-menu,
  .release-copy-menu button,
  .release-return-button,
  [data-release-reveal] {
    transition:
      none;
  }


  [data-release-reveal] {
    opacity:
      1;

    transform:
      none;
  }

}
