/* ==========================================================================
   RSS PAGE – SXA MIGRATION FIX (v2)
   Values below are taken directly from production's base.min.css /
   edyStyle.min.css / sxa_fonts.css — not approximated.

   ROOT CAUSE: production markup uses class="col-2 narrow" (sidebar) and
   class="col-2 wide separator" (main content). Staging's migrated markup
   uses class="col-4" / class="col-8" instead. Those class names don't
   exist in the theme's own grid system (which only defines .col-1/.col-2/
   .col-3/.col-4 with custom meanings) and collide with Bootstrap's grid
   (also loaded on staging), which is why the layout, list styling and
   column widths are all off.

   The real fix is reverting col-4 -> "col-2 narrow" and col-8 -> "col-2
   wide separator" in the markup. This file is the CSS-only workaround for
   the current staging class names.

   All page styles are scoped to .rss-page.
   ========================================================================== */

/* Background when page content uses grey_bg (matches production main bg) */
.rss-page.rss_grey_bg {
  background-color: #f2f3f3 !important;
}

.container:has(.rss-page) {
  background-color: #f2f3f3 !important;
}

/* ---- Fonts: staging already preloads these files, just never maps them ---- */
@font-face {
  font-family: 'roobert_light';
  src: url('/-/media/themes/hoganlovells/site-theme-name/fonts/roobert-light.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'roobert_regular';
  src: url('/-/media/themes/hoganlovells/site-theme-name/fonts/roobert-regular.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'roobert_medium';
  src: url('/-/media/themes/hoganlovells/site-theme-name/fonts/roobert-medium.woff2') format('woff2');
  font-display: swap;
}

.rss-page {
  padding-bottom: 40px;
}

/* ---- Page container (production: .col-row-container) ---- */
.rss-page .col-row-container {
  width: 1208px;
  max-width: 100%;
  margin: 10px auto;
  padding: 0 10px;
  margin-top: 37px;
}

.rss-page .col-row {
  font-size: 0;
  margin: 0 -10px;
}

/* ---- Sidebar column: reproduce ".col-2.narrow" (width:20%; margin-right:5%) ---- */
.rss-page .col-row > .col-4 {
  display: inline-block;
  vertical-align: top;
  width: 20%;
  margin-right: 5%;
  padding: 10px;
  font-size: 15px;
  position: relative;
}

/* ---- Main content column: reproduce ".col-2.wide.separator" (width:75%) ---- */
.rss-page .col-row > .col-8 {
  display: inline-block;
  vertical-align: top;
  width: 75%;
  padding: 10px;
  font-size: 15px;
  position: relative;
}

/* Production's ".separator" puts a dotted divider under each direct child
   block except the last — this is the line between the intro copy and the
   RSS feed list. */
.rss-page .col-row > .col-8 > div {
  border-bottom: 2px dotted #bec5c2;
  margin: 0 0 40px;
  padding-bottom: 40px;
}

.rss-page .col-row > .col-8 > div:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* ---- Headline & body copy (.text-container) ---- */
.rss-page .text-container {
  padding-right: 143px;
  font-size: 15px;
  font-family: 'roobert_light', 'Times New Roman', serif;
  color: #002236;
  line-height: 1.4em;
  border-bottom: 2px dotted #bec5c2;
  margin: 0 0 52px;
  padding-bottom: 40px;
  margin-top: 37px;
}

.rss-page .text-container h1 {
  font-family: 'roobert_light', sans-serif;
  font-weight: 400;
  font-size: 42px;
  line-height: 1.2em;
  color: #002236;
  margin-bottom: 1em;
}

.rss-page .text-container p {
  font-size: 15px;
  font-family: 'roobert_light', 'Times New Roman', serif;
  color: #002236;
  line-height: 1.4em;
  margin-bottom: 15px;
}

.rss-page .text-container p.intro {
  font-family: 'roobert_medium', sans-serif;
  font-size: 20px;
  color: #002236;
}

.rss-page .text-container ul,
.rss-page .text-container ol {
  margin-top: 1em;
  margin-bottom: 1em;
  margin-left: 30px;
}

.rss-page .text-container ul li,
.rss-page .text-container ol li {
  font-size: 15px;
  font-family: 'roobert_light', 'Times New Roman', serif;
  color: #002236;
  line-height: 1.4em;
}

/* ---- Link lists: both the sidebar list and the RSS feed grid use ul.link-list ---- */
.rss-page ul.link-list {
  list-style: none;
  margin: 0;
}

.rss-page ul.link-list li {
  margin-bottom: 10px;
}

.rss-page ul.link-list li a,
.rss-page a {
  text-decoration: none;
  color: inherit;
}

.rss-page ul.link-list li a:hover,
.rss-page ul.link-list li.active a {
  border-bottom: 2px solid #002236;
}

/* ---- RSS feed link grid: reproduce ".col-1" (custom theme: width 100%)
   plus ".flow-col-3" (3-column flow layout). Staging's Bootstrap CSS
   turns ".col-1" into an 8.33%-wide column instead — this reclaims it. */
.rss-page .col-row .col-1.flow-col-3 {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100%;
  padding: 10px;
  font-size: 15px;
}

.rss-page .flow-col-3 {
  column-count: 3;
  -webkit-column-gap: 20px;
  -moz-column-gap: 20px;
  column-gap: 20px;
}

.rss-page .flow-col-3 ul.link-list li {
  break-inside: avoid;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .rss-page .flow-col-3 {
    column-count: 2;
  }
}

@media (max-width: 767px) {
  .rss-page .col-row > .col-4,
  .rss-page .col-row > .col-8 {
    display: block;
    width: 100%;
    margin-right: 0;
  }

  .rss-page .text-container {
    padding-right: 0;
  }

  .rss-page .flow-col-3 {
    column-count: 1;
  }
}
