:root {
  --rn-home-paper: #f8f7f2;
  --rn-home-white: #fff;
  --rn-home-ink: #213d41;
  --rn-home-muted: #687b7d;
  --rn-home-teal: #176d6a;
  --rn-home-deep: #164247;
  --rn-home-pale: #e6f0ef;
  --rn-home-line: #dce4e1;
  --rn-home-yellow: #f3d765;
  --rn-home-coral: #dc8275;
  --rn-home-shadow: 0 10px 30px rgba(31, 66, 68, .09);
}

#body_wrap.rn-homepage-active #content.l-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* The plugin template supplies its own sidebar. SWELL appends the site-wide
   sidebar inside .l-content, so suppress it only on this dedicated page. */
.rn-homepage-active #sidebar.l-sidebar {
  display: none !important;
}

/* SWELL emits these front-page-only surfaces outside the selected page
   template. The dedicated homepage replaces both, so avoid duplicate rails. */
.rn-homepage-active #main_visual,
.rn-homepage-active #post_slider {
  display: none !important;
}

.rn-home {
  overflow: hidden;
  color: var(--rn-home-ink);
  background: var(--rn-home-paper);
  line-height: 1.75;
}

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

.rn-home a {
  color: inherit;
  text-decoration: none;
}

.rn-home__inner {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.rn-home-quick {
  position: relative;
  border-bottom: 1px solid var(--rn-home-line);
  background: var(--rn-home-white);
}

.rn-home-quick__inner {
  display: flex;
  justify-content: center;
  gap: 9px;
  overflow-x: auto;
  padding-block: 11px;
  scrollbar-width: none;
}

.rn-home-quick__inner::-webkit-scrollbar {
  display: none;
}

.rn-home-quick a {
  flex: none;
  padding: 5px 14px;
  border-radius: 999px;
  color: var(--rn-home-teal);
  background: var(--rn-home-pale);
  font-size: 12px;
  font-weight: 750;
}

.rn-home-ticker {
  border-bottom: 1px solid #d9e7e5;
  background: #edf4f3;
}

.rn-home-ticker__inner {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 38px;
  overflow: hidden;
  font-size: 12px;
}

.rn-home-ticker__label {
  flex: none;
  padding: 2px 9px;
  border-radius: 3px;
  color: #fff;
  background: var(--rn-home-coral);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
}

.rn-home-ticker__link {
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: opacity .18s ease;
}

.rn-home-ticker__link.is-changing {
  opacity: 0;
}

.rn-home-ticker__date {
  flex: none;
  margin-left: auto;
  color: var(--rn-home-muted);
  font-size: 11px;
}

.rn-home-summary {
  padding-top: 14px;
}

.rn-home-summary .rn-home__inner {
  padding-bottom: 11px;
  border-bottom: 1px solid var(--rn-home-line);
}

.rn-home-summary h1 {
  margin: 0;
  color: var(--rn-home-ink);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -.025em;
}

.rn-home-summary p {
  margin: 3px 0 0;
  color: var(--rn-home-muted);
  font-size: 13px;
}

.rn-home-feature {
  padding: 22px 0 18px;
}

.rn-home-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 15px;
}

.rn-home-section-head h2,
.rn-home-heading {
  position: relative;
  z-index: 0;
  margin: 0;
  color: var(--rn-home-ink);
  font-size: 23px;
  line-height: 1.45;
  letter-spacing: -.035em;
}

.rn-home-section-head h2::after {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 8px;
  background: rgba(243, 215, 101, .72);
  content: "";
}

.rn-home-feature__tools {
  display: flex;
  align-items: center;
  gap: 9px;
}

.rn-home-feature__tools span {
  margin-right: 4px;
  color: var(--rn-home-muted);
  font-size: 12px;
}

.rn-home-feature__tools button {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid #cad9d6;
  border-radius: 50%;
  color: var(--rn-home-teal);
  background: var(--rn-home-white);
  font-weight: 850;
  cursor: pointer;
}

.rn-home-feature__tools button:disabled {
  opacity: .28;
  cursor: default;
}

.rn-home-feature__tools button:focus-visible,
.rn-home-feature__dot:focus-visible,
.rn-home-feature__rail:focus-visible {
  outline: 3px solid rgba(23, 109, 106, .35);
  outline-offset: 3px;
}

.rn-home-feature__rail {
  display: grid;
  grid-auto-columns: minmax(270px, 30%);
  grid-auto-flow: column;
  gap: 16px;
  overflow-x: auto;
  padding: 1px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.rn-home-feature__rail::-webkit-scrollbar {
  display: none;
}

.rn-home-feature__card {
  overflow: hidden;
  border: 1px solid var(--rn-home-line);
  border-radius: 14px;
  background: var(--rn-home-white);
  box-shadow: 0 5px 18px rgba(37, 72, 74, .07);
  scroll-snap-align: start;
  transition: transform .18s ease, box-shadow .18s ease;
}

.rn-home-feature__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--rn-home-shadow);
}

.rn-home-feature__media {
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  background: var(--rn-home-pale);
}

.rn-home__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rn-home__image--fallback {
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--rn-home-deep);
  font-weight: 850;
}

.rn-home-feature__copy {
  padding: 12px 14px 14px;
}

.rn-home-feature__copy span {
  color: var(--rn-home-coral);
  font-size: 11px;
  font-weight: 850;
}

.rn-home-feature__copy h3 {
  display: -webkit-box;
  min-height: 3.05em;
  overflow: hidden;
  margin: 5px 0 0;
  color: var(--rn-home-ink);
  font-size: 16px;
  line-height: 1.52;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rn-home-feature__progress {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 10px;
}

.rn-home-feature__dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #cbd9d6;
  cursor: pointer;
  transition: width .18s ease, background .18s ease;
}

.rn-home-feature__dot.is-active {
  width: 23px;
  background: var(--rn-home-teal);
}

.rn-home-content {
  padding: 42px 0;
}

.rn-home-content__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 34px;
}

.rn-home-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.rn-home-heading::before {
  width: 31px;
  height: 5px;
  border-radius: 4px;
  background: var(--rn-home-yellow);
  content: "";
}

.rn-home-heading::after {
  height: 1px;
  flex: 1;
  background: var(--rn-home-line);
  content: "";
}

.rn-home-heading small {
  color: var(--rn-home-coral);
  font-size: 11px;
  letter-spacing: .13em;
}

.rn-home-latest__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.rn-home-card {
  overflow: hidden;
  border-radius: 14px;
  background: var(--rn-home-white);
  box-shadow: 0 4px 18px rgba(37, 72, 74, .07);
  transition: transform .18s ease, box-shadow .18s ease;
}

.rn-home-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--rn-home-shadow);
}

.rn-home-card__media {
  position: relative;
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  background: var(--rn-home-pale);
}

.rn-home-card__label {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 5px;
  color: #fff;
  background: rgba(21, 63, 67, .92);
  font-size: 11px;
  font-weight: 800;
}

.rn-home-card__body {
  padding: 16px 17px 18px;
}

.rn-home-card__body h3 {
  display: -webkit-box;
  min-height: 3.1em;
  overflow: hidden;
  margin: 0 0 8px;
  color: var(--rn-home-ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rn-home-card__body p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--rn-home-muted);
  font-size: 13px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rn-home-card__meta {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  color: #869596;
  font-size: 11px;
}

.rn-home-card__meta span {
  color: var(--rn-home-teal);
  font-weight: 750;
}

.rn-home-sidebar {
  display: grid;
  align-content: start;
  gap: 19px;
}

.rn-home-widget {
  overflow: hidden;
  border: 1px solid var(--rn-home-line);
  border-radius: 10px;
  background: var(--rn-home-white);
}

.rn-home-widget h2 {
  margin: 0;
  padding: 13px 16px;
  border-bottom: 1px solid var(--rn-home-line);
  color: var(--rn-home-teal);
  background: #f3f7f6;
  font-size: 14px;
  line-height: 1.5;
}

.rn-home-widget ul,
.rn-home-widget ol {
  margin: 0;
  padding: 15px;
  list-style: none;
}

.rn-home-widget li + li {
  border-top: 1px dashed var(--rn-home-line);
}

.rn-home-widget li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 42px;
  padding: 7px 2px;
  font-size: 12px;
  font-weight: 750;
}

.rn-home-widget li span,
.rn-home-categories span {
  color: var(--rn-home-coral);
}

.rn-home-widget--note {
  position: relative;
  border-color: #e7deba;
  background: #fffdf3;
}

.rn-home-widget--note::before {
  position: absolute;
  z-index: 2;
  top: -8px;
  left: 50%;
  width: 64px;
  height: 16px;
  background: rgba(243, 215, 101, .72);
  content: "";
  transform: translateX(-50%) rotate(-1deg);
}

.rn-home-widget--note h2 {
  border-bottom-style: dashed;
  background: transparent;
}

.rn-home-search {
  display: flex;
  margin: 15px;
  overflow: hidden;
  border: 1px solid #cad8d5;
  border-radius: 7px;
}

.rn-home-search input {
  min-width: 0;
  width: 100%;
  padding: 10px 11px;
  border: 0;
  border-radius: 0;
  background: #fff;
  font-size: 16px;
}

.rn-home-search button {
  flex: none;
  min-width: 48px;
  padding: 0 10px;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: var(--rn-home-teal);
  font-size: 12px;
  font-weight: 800;
}

.rn-home-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 15px;
}

.rn-home-categories a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 7px 9px;
  border: 1px solid var(--rn-home-line);
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
  font-weight: 750;
}

.rn-home-recommended {
  counter-reset: rn-home-rank;
}

.rn-home-recommended li {
  counter-increment: rn-home-rank;
}

.rn-home-recommended li a::before {
  display: grid;
  width: 23px;
  height: 23px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  color: var(--rn-home-deep);
  background: var(--rn-home-yellow);
  content: counter(rn-home-rank);
  font-size: 10px;
  font-weight: 850;
}

.rn-home-editor {
  padding: 4px 0 42px;
}

.rn-home-editor__card {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 19px 22px;
  border: 1px solid var(--rn-home-line);
  border-radius: 12px;
  background: var(--rn-home-white);
}

.rn-home-editor__avatar {
  display: grid;
  width: 58px;
  height: 58px;
  flex: none;
  overflow: hidden;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--rn-home-deep);
  font-weight: 850;
}

.rn-home-editor__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rn-home-editor__copy h2 {
  margin: 0;
  color: var(--rn-home-teal);
  font-size: 14px;
}

.rn-home-editor__copy p {
  margin: 4px 0 0;
  color: var(--rn-home-muted);
  font-size: 12px;
}

.rn-home-editor__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 14px;
  margin-left: auto;
  font-size: 12px;
  font-weight: 800;
}

.rn-home-editor__links a:first-child {
  color: var(--rn-home-muted);
}

@media (max-width: 900px) {
  .rn-home-content__grid {
    grid-template-columns: 1fr;
  }

  .rn-home-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rn-home-feature__rail {
    grid-auto-columns: minmax(280px, 55%);
  }
}

@media (max-width: 620px) {
  .rn-home-quick::after {
    position: absolute;
    top: 0;
    right: 0;
    width: 34px;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 82%);
    content: "";
    pointer-events: none;
  }

  .rn-home-quick__inner {
    justify-content: flex-start;
    padding-right: 42px;
  }

  .rn-home-ticker__date {
    display: none;
  }

  .rn-home-section-head {
    align-items: center;
  }

  .rn-home-section-head h2,
  .rn-home-heading {
    font-size: 21px;
  }

  .rn-home-feature__tools span {
    display: none;
  }

  .rn-home-feature__tools button {
    width: 44px;
    height: 44px;
  }

  .rn-home-feature__rail {
    grid-auto-columns: 86%;
  }

  .rn-home-feature__copy span {
    font-size: 12px;
  }

  .rn-home-feature__copy h3 {
    font-size: 17px;
  }

  .rn-home-content {
    padding-block: 32px;
  }

  .rn-home-latest__grid,
  .rn-home-sidebar {
    grid-template-columns: 1fr;
  }

  .rn-home-card__body h3 {
    font-size: 17px;
  }

  .rn-home-card__body p {
    font-size: 14px;
  }

  .rn-home-card__meta,
  .rn-home-card__label,
  .rn-home-heading small {
    font-size: 12px;
  }

  .rn-home-widget li a,
  .rn-home-categories a {
    min-height: 44px;
    font-size: 13px;
  }

  .rn-home-editor__card {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 17px;
  }

  .rn-home-editor__copy {
    min-width: 0;
    flex: 1;
  }

  .rn-home-editor__copy p,
  .rn-home-editor__links {
    font-size: 13px;
  }

  .rn-home-editor__links {
    width: 100%;
    justify-content: flex-start;
    margin-left: 75px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rn-home *,
  .rn-home *::before,
  .rn-home *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
