/* Shared stylesheet used by both the homepage and content pages.
   Page-specific rules are scoped using body classes:
   - Homepage: body.home-page
   - Content pages: body.content-page
*/

/* Basic reset + consistent sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
}

/* =========================
   Homepage (index.html)
   ========================= */

body.home-page {
  background-image: url("images/Lighthouse.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;

  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #ffffff;

  min-height: 100vh;
  min-height: 100svh;
}

body.home-page .page {
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  padding: clamp(18px, 4vw, 60px);
}

body.home-page .main_heading {
  position: absolute;
  top: clamp(18px, 6vh, 64px);
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: min(1100px, 92vw);
}
body.home-page .main_heading h2 {
  margin: 0;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 800;
  font-style: italic;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: capitalize;
  color: #ffffff;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.65);
}
body.home-page .main_heading h2:first-child {
  font-size: clamp(1.3rem, 2.4vw, 2.2rem);
  letter-spacing: 0.08em;
}
body.home-page .main_heading h2:last-child {
  font-size: clamp(1.8rem, 3.6vw, 3.2rem);
  white-space: nowrap;
}

@media (max-width: 900px) {
  body.home-page .main_heading h2:last-child {
    font-size: clamp(1.55rem, 4.2vw, 2.6rem);
    letter-spacing: 0.04em;
  }
}

body.home-page .scripture_box1 {
  position: absolute;
  top: clamp(140px, 24vh, 260px);
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 92vw);
  text-align: center;
  font-size: clamp(1.05rem, 2.0vw, 1.7rem);
  line-height: 1.4;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.65);
}

body.home-page .scripture_box2 {
  position: absolute;
  top: clamp(360px, 58vh, 640px);
  left: clamp(16px, 8vw, 120px);
  width: min(560px, 70vw);
  text-align: left;
  font-style: italic;
  font-size: clamp(0.95rem, 1.6vw, 1.45rem);
  line-height: 1.4;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.65);
}

body.home-page .invite {
  position: absolute;
  right: clamp(16px, 6vw, 120px);
  bottom: clamp(18px, 10vh, 90px);
  width: min(560px, 70vw);
  text-align: right;
  font-style: italic;
  font-size: clamp(0.9rem, 1.5vw, 1.35rem);
  line-height: 1.4;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.65);
}

body.home-page .invite_link {
  color: rgba(255, 255, 255, 0.96);
  text-decoration: none;
}
body.home-page .invite_link:hover {
  color: #ffffff;
  filter: brightness(1.06);
}
body.home-page .invite_link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 4px;
  border-radius: 4px;
}

body.home-page .scripture_text,
body.home-page .invite_text {
  margin: 0;
}
body.home-page .scripture_ref {
  white-space: nowrap;
}

body.home-page .site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(11, 47, 74, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.18);
  flex-wrap: wrap;
}
body.home-page .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #f8fafc;
  font-weight: 700;
  letter-spacing: 0.02em;
  min-width: 0;
}
body.home-page .brand-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex: 0 0 auto;
}
body.home-page .site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
body.home-page .site-nav a {
  color: #e2e8f0;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  white-space: nowrap;
}
body.home-page .site-nav a:hover {
  background: rgba(226, 232, 240, 0.10);
}
body.home-page .site-nav a.nav-cta {
  background: rgba(226, 232, 240, 0.16);
  color: #ffffff;
}
body.home-page .site-nav a.nav-cta:hover {
  background: rgba(226, 232, 240, 0.24);
}
body.home-page .site-nav a.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

@media (max-width: 767px) {
  body.home-page .page {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding-top: 18px;
  }
  body.home-page .main_heading,
  body.home-page .scripture_box1,
  body.home-page .scripture_box2,
  body.home-page .invite {
    position: static;
    transform: none;
    width: min(92vw, 720px);
  }
  body.home-page .scripture_box2 { text-align: left; }
  body.home-page .invite { text-align: left; }
  body.home-page .site-nav { justify-content: flex-start; }
}

/* =========================
   Content pages (about.html)
   ========================= */

body.content-page {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #f7f5f0;
  color: #0f172a;
  min-height: 100vh;
  min-height: 100svh;
}

body.content-page .site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(11, 47, 74, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.18);
  flex-wrap: wrap;
}

body.content-page .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #f8fafc;
  font-weight: 700;
  letter-spacing: 0.02em;
  min-width: 0;
}
body.content-page .brand-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex: 0 0 auto;
}
body.content-page .brand-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.content-page .site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
body.content-page .site-nav a {
  color: #e2e8f0;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  white-space: nowrap;
}
body.content-page .site-nav a:hover { background: rgba(226, 232, 240, 0.10); }
body.content-page .site-nav a[aria-current="page"] {
  background: rgba(226, 232, 240, 0.16);
  color: #ffffff;
}
body.content-page .site-nav a.is-disabled { opacity: 0.55; pointer-events: none; }

body.content-page .site-nav a.nav-cta {
  background: rgba(226, 232, 240, 0.16);
  color: #ffffff;
}
body.content-page .site-nav a.nav-cta:hover {
  background: rgba(226, 232, 240, 0.24);
}

body.content-page .site-nav .nav-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

body.content-page .site-nav .nav-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  min-width: 150px;
  padding: 6px;
  border-radius: 10px;
  background: rgba(11, 47, 74, 0.98);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
  display: none;
}

body.content-page .site-nav .nav-dropdown a {
  display: block;
  padding: 8px 10px;
}


body.content-page .site-main {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 4vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
}

body.content-page .site-main.single-column-main {
  display: block;
  width: min(1280px, 100%);
}

body.content-page .legacy-content {
  overflow-x: auto;
}

body.content-page .legacy-content h3:first-child {
  margin-top: 0;
}

body.content-page .body-hub-grid {
  margin-top: 16px;
}

body.content-page .card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 16px;
  padding: clamp(16px, 3vw, 26px);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  display: flow-root; /* contain floated images within articles */
}
body.content-page .card h1 {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 2.2vw, 2.2rem);
  line-height: 1.15;
}
body.content-page .card h2 {
  margin: 18px 0 8px;
  font-size: 1.15rem;
}
body.content-page .card p {
  margin: 10px 0;
  line-height: 1.65;
  max-width: none;
}

body.content-page .note {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.10);
}

body.content-page .sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
body.content-page .media-card .media-placeholder {
  height: 170px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.06), rgba(15, 23, 42, 0.02));
  border: 1px dashed rgba(15, 23, 42, 0.18);
  display: grid;
  place-items: center;
  color: rgba(15, 23, 42, 0.65);
  margin-bottom: 10px;
}
body.content-page .muted { color: rgba(15, 23, 42, 0.70); }

/* Articles page helpers */
body.content-page .toc {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.10);
}
body.content-page .toc-title {
  margin: 0 0 10px;
  font-size: 1rem;
}
body.content-page .toc-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 18px;
}
body.content-page .toc-list a { color: inherit; }

body.content-page .article-section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.10);
}
body.content-page .article-figure {
  margin: 12px 0 10px;
}
body.content-page .article-figure img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

body.content-page .image-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
body.content-page .grid-figure { margin: 0; }
body.content-page .grid-figure img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

body.content-page a.nav-cta-inline {
  display: inline-block;
  background: rgba(11, 47, 74, 0.94);
  color: #ffffff;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
}
body.content-page a.nav-cta-inline:hover { filter: brightness(1.05); }

@media (max-width: 980px) {
  body.content-page .site-main { grid-template-columns: 1fr; }
  body.content-page .site-nav { justify-content: flex-start; }
}

@media (max-width: 700px) {
  body.content-page .toc-list { grid-template-columns: 1fr; }
  body.content-page .image-grid { grid-template-columns: 1fr; }
}

/* =========================
   Videos page (videos.html)
   ========================= */

body.videos-page .videos-main {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(14px, 3vw, 28px);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

body.videos-page .videos-panel {
  position: sticky;
  top: 78px;
  flex: 0 0 300px;
  height: calc(100svh - 100px);
  overflow: hidden;
}

body.videos-page .videos-panel-inner {
  height: 100%;
  padding: 4px 6px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

body.videos-page .videos-panel-title {
  margin: 0 0 10px;
  font-size: 1.25rem;
  line-height: 1.2;
}

body.videos-page .videos-search-label {
  display: block;
  margin: 0 0 6px;
}

body.videos-page .videos-search {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  outline: none;
  margin-bottom: 12px;
  background: #ffffff;
  font: inherit;
}

body.videos-page .videos-search:focus {
  border-color: rgba(15, 23, 42, 0.42);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

body.videos-page .videos-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

body.videos-page .video-link {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font: inherit;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

body.videos-page .video-link:hover {
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07);
}

body.videos-page .video-link.is-active {
  background: rgba(11, 47, 74, 0.94);
  border-color: rgba(11, 47, 74, 0.94);
  color: #ffffff;
}

body.videos-page .video-list-title {
  font-weight: 700;
  line-height: 1.25;
}

body.videos-page .video-list-speaker {
  color: rgba(15, 23, 42, 0.70);
  font-size: 0.94rem;
}

body.videos-page .video-link.is-active .video-list-speaker {
  color: rgba(255, 255, 255, 0.78);
}

body.videos-page .video-stage {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 820px;
}

body.videos-page .video-card {
  position: sticky;
  top: 78px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body.videos-page .video-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body.videos-page .video-kicker {
  margin: 0;
  color: rgba(15, 23, 42, 0.62);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body.videos-page .video-heading h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.2vw, 2.15rem);
  line-height: 1.15;
}

body.videos-page .video-heading p {
  margin: 0;
}

body.videos-page .video-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: calc(100svh - 260px);
  border-radius: 14px;
  background: #000000;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

body.videos-page .video-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(153, 27, 27, 0.08);
  border: 1px solid rgba(153, 27, 27, 0.22);
  color: #7f1d1d;
}

body.videos-page .video-direct-link {
  margin: 0;
}

body.videos-page .video-direct-link a {
  color: inherit;
}

@media (max-width: 760px) {
  body.videos-page .videos-main {
    flex-direction: column;
  }

  body.videos-page .videos-panel {
    position: static;
    flex: 0 1 auto;
    width: 100%;
    height: auto;
  }

  body.videos-page .videos-panel-inner {
    height: auto;
    overflow-y: visible;
  }

  body.videos-page .videos-list {
    overflow-y: visible;
    padding-right: 0;
  }

  body.videos-page .video-stage {
    width: 100%;
    max-width: none;
  }

  body.videos-page .video-card {
    position: static;
  }

  body.videos-page .video-player {
    max-height: none;
  }
}


/* For the example Articles page helpers */

/* --- Articles hub + article pages (test) --- */
.article-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 860px) { .article-grid { grid-template-columns: 1fr 1fr; } }

.article-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  background: #ffffff;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 120ms ease, transform 120ms ease;
}
.article-card:hover {
  box-shadow: 0 10px 22px rgba(15,23,42,0.08);
  transform: translateY(-1px);
}

.article-thumb {
  width: 120px;
  height: 78px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(15,23,42,0.10);
}
.article-title { margin: 0 0 4px; font-size: 1.05rem; }

.article-hero, .article-figure { margin: 12px 0 10px; }
.article-hero img, .article-figure img {
  width: 100%;
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,0.12);
}

/* Floatable, per-article images (text wraps around).
   Per-image sizing:
   - Add `style="--w: 280px"` on the <figure> to set a preferred width.
   - Add `style="--max: 55%"` on the <figure> to cap width as a % of the text column.
*/
.article-float{
  --w: 360px;
  --max: 45%;
  width: min(var(--w), var(--max));
  max-width: 100%;
  margin: 6px 0 10px 16px;
}
.article-float.float-right{ float:right; }
.article-float.float-left{ float:left; margin: 6px 16px 10px 0; }
.article-float img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,0.12);
}
@media (max-width: 600px){
  .article-float.float-right,
  .article-float.float-left{
    float: none;
    /* Keep your per-image sizing on phones; just cap it to the viewport and center it. */
    width: min(var(--w, 360px), 100%);
    max-width: 100%;
    margin: 12px auto;
  }
}

/* Centered / custom-width images (use on <img> inside an article).
   Example: <img class="img-center" style="--w: 520px" ...>
*/
.img-center{
  --w: 720px;
  display: block;
  width: min(var(--w), 100%);
  height: auto;
  margin: 12px auto;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,0.12);
}


/* Utilities should override the default .article-figure img width rule */
body.content-page .article-figure img.img-center{ width: min(var(--w, 720px), 100%); max-height: none; object-fit: contain; margin-left:auto; margin-right:auto; }
body.content-page .article-figure img.img-inline{ width: var(--w, 1.15em); max-height: none; object-fit: contain; }

/* Inline images for mid-sentence placement.
   Keep these small; use em/px widths.
   Example: <img class="img-inline" style="--w: 1.15em" ...>
*/
.img-inline{
  --w: 1.15em;
  display: inline-block;
  width: var(--w);
  height: auto;
  vertical-align: -0.12em;
  margin: 0 .18em;
  border-radius: 4px;
  border: 1px solid rgba(15,23,42,0.18);
}

.article-nav { margin-top: 18px; display: flex; justify-content: space-between; gap: 12px; }
.quote {
  margin: 14px 0;
  padding: 10px 12px;
  border-left: 4px solid rgba(15,23,42,0.25);
  background: rgba(15,23,42,0.03);
  border-radius: 10px;
}

/* Legacy ABSSC body pages brought into the shared site.
   The original pages used Bootstrap row/column classes. These rules provide
   the column behavior without loading the whole Bootstrap library. */
body.content-page .legacy-content {
  color: #0f172a;
}

body.content-page .legacy-content a {
  color: #0b4a7a;
}

body.content-page .legacy-content .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.content-page .legacy-content .row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 22px;
  align-items: flex-start;
  margin: 18px 0;
}

body.content-page .legacy-content .col-md-1 {
  display: none;
}

body.content-page .legacy-content .col-md-3,
body.content-page .legacy-content .col-md-4,
body.content-page .legacy-content .col-md-6,
body.content-page .legacy-content .col-md-7 {
  min-width: 0;
}

body.content-page .legacy-content .col-md-3 {
  flex: 1 1 210px;
  max-width: 260px;
}

body.content-page .legacy-content .col-md-4 {
  flex: 1 1 280px;
}

body.content-page .legacy-content .col-md-6 {
  flex: 1 1 420px;
}

body.content-page .legacy-content .col-md-7 {
  flex: 2 1 520px;
}

body.content-page .legacy-content img {
  max-width: 100%;
  height: auto;
}

body.content-page .legacy-content .col-md-3 img {
  display: block;
  width: min(200px, 100%);
  height: auto;
  margin: 0 auto 8px;
}

body.content-page .legacy-content .col-md-6 img {
  display: block;
  max-width: min(400px, 100%);
  height: auto;
}

body.content-page .legacy-content #leftside,
body.content-page .legacy-content #rightside {
  font-size: 1rem;
  line-height: 1.55;
}

body.content-page .legacy-content #leftside img {
  margin: 0 14px 10px 0;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
}

body.content-page .legacy-content .sidenav a[href="#"] {
  color: rgba(15, 23, 42, 0.36);
  cursor: default;
  pointer-events: none;
  text-decoration: none;
}

@media (max-width: 760px) {
  body.content-page .legacy-content .row {
    display: block;
  }

  body.content-page .legacy-content .col-md-3,
  body.content-page .legacy-content .col-md-4,
  body.content-page .legacy-content .col-md-6,
  body.content-page .legacy-content .col-md-7 {
    max-width: none;
    margin: 14px 0;
  }
}
/* Click-open Articles dropdown */
body.home-page .site-nav .nav-menu,
body.content-page .site-nav .nav-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

body.home-page .site-nav .nav-menu > summary,
body.content-page .site-nav .nav-menu > summary {
  list-style: none;
  cursor: pointer;
  color: #d1d5db;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 8px;
  line-height: 1;
}

body.home-page .site-nav .nav-menu > summary::-webkit-details-marker,
body.content-page .site-nav .nav-menu > summary::-webkit-details-marker {
  display: none;
}

body.home-page .site-nav .nav-menu > summary::after,
body.content-page .site-nav .nav-menu > summary::after {
  content: " v";
  font-size: 0.8em;
}

body.home-page .site-nav .nav-menu > summary:hover,
body.home-page .site-nav .nav-menu[open] > summary,
body.content-page .site-nav .nav-menu > summary:hover,
body.content-page .site-nav .nav-menu[open] > summary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

body.home-page .site-nav .nav-menu[open] .nav-dropdown,
body.content-page .site-nav .nav-menu[open] .nav-dropdown {
  display: flex;
}
/* Shared article page layout fix. Keep the article menu inside the white card. */
body.content-page .legacy-content .article-top {
  display: grid !important;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr) !important;
  gap: 28px !important;
  align-items: start !important;
}

body.content-page .legacy-content .head-title {
  grid-column: 2 !important;
  margin-top: 0 !important;
  padding-left: 0 !important;
}

body.content-page .legacy-content .sidenav {
  grid-column: 1 !important;
  grid-row: 1 / span 2 !important;
  position: sticky !important;
  top: 110px !important;
  left: auto !important;
  width: auto !important;
  height: auto !important;
  z-index: 0 !important;
  background-color: cornsilk !important;
  overflow: visible !important;
  padding: 18px 18px 24px !important;
  border-radius: 8px !important;
}

body.content-page .legacy-content .sidenav a {
  padding: 3px 0 !important;
  font-size: 16px !important;
}

body.content-page .legacy-content .article {
  grid-column: 2 !important;
  margin-left: 0 !important;
  padding-top: 24px !important;
  padding-right: 0 !important;
  padding-bottom: 36px !important;
}

@media (max-width: 900px) {
  body.content-page .legacy-content .article-top {
    display: block !important;
  }

  body.content-page .legacy-content .sidenav {
    position: static !important;
    margin-bottom: 24px !important;
  }
}
