@charset "utf-8";
/* Motorhome Life - homepage */

main,
#main {
	padding-top:0;
}

/* ------------------------------------------------------------
   Hero
   The heading size (.mwd-hero-home h1) moved to header_footer_v2.css in 2.4.2, so every
   page's header gets it, not only the pages that load this file. Same rules, unchanged.
------------------------------------------------------------ */

/* ------------------------------------------------------------
   Sections below the hero — posts, reviews, sidebar
   (views/home.php, 15 September 2026)

   The components bring their own styles (blog_listing.css,
   review_card.css, sidebar.css). This file lays them out and
   points their colour tokens at the homepage palette below.

   ⚠ BLUE IS --mhl-blue. The old violet --mhl-accent was retired
   in 2.4.1 (Ben, 11 October 2026).
------------------------------------------------------------ */
.home-sections {
  --home-bg:         var(--page-bg, #f3f5f9);   /* main.css — every page's background since 2.4.1 */
  --home-link:       var(--mhl-blue, #1657aa);
  --home-link-hover: var(--mhl-blue-dark, #0f3f7d);
  --home-gold:       var(--mwd-gold-dark, #a5812f);
  --home-border:     #e6e9f0;
  --home-radius:     14px;
  --home-shadow:     0 6px 22px rgba(22, 40, 80, .07);

  /* Keep the secondary button ("View more posts") on the HOMEPAGE palette. Without this
     it would sit on the global --btn-secondary-bg (buttons.css): identical today, but it
     would stop following the links beside it the moment --home-link is re-pointed.
     (Was --btn-blue / .btn--blue until 2.4.1.) */
  --btn-secondary-bg:       var(--home-link);
  --btn-secondary-bg-hover: var(--home-link-hover);

  background: var(--home-bg);
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 2.5rem;
  align-items: start;
}

.home-block + .home-block {
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--home-border);
}

.home-more {
  margin: 2rem 0 0;
  text-align: center;
}
/* The button is the site's secondary, "btn btn-secondary" (buttons.css, 2.4.1). It still
   takes the homepage palette — see the --btn-secondary-* lines on .home-sections above. */

/* Components, re-pointed at the homepage palette */
.home-sections .section-header__link { color: var(--home-link); }

.home-sections .post-card,
.home-sections .review-card,
.home-sections .sidebar-box {
  border-color: transparent;
  box-shadow: var(--home-shadow);
}
/* 2.6.5.1 (Ben, 26 October 2026: "try adding a border to the subscribe box"): the cream Subscribe
   box keeps its gold border (sidebar.css) here too — the line above would hide it on home and
   country pages. Previous file: "home - v2 (pre-2.6.5.1).css". */
.home-sections .sidebar-box--feature { border-color: var(--mwd-gold, #d7a93b); }

.home-sections .post-card {
  --card-accent: var(--home-link);
  --card-border: #edf0f5;
  --card-radius: var(--home-radius);
}
/* 2.4.4: ".home-sections .post-card__date { color: var(--home-gold) }" removed — the date is in
   the card's navy bar now, where that gold is 2.4–3.6:1 and unreadable (blog_listing.css). */

.home-sections .review-card {
  --review-accent: var(--home-link);
  --review-radius: var(--home-radius);
}

.home-sections .sidebar-box {
  --sidebar-accent: #5b6474;
  --sidebar-link:   var(--home-link);
  --sidebar-border: var(--home-border);
  --sidebar-radius: var(--home-radius);
}
.home-sections .sidebar-box--subscribe {
  max-width: 550px;
  margin: 0 auto;
}
/* The line above out-ranks .sidebar-box--dark's own gold title, so restate it. */
.home-sections .sidebar-box--dark { --sidebar-accent: var(--mwd-gold, #d7a93b); }

@media only screen and (max-width: 1100px) {
  .home-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 2rem; }
}
@media only screen and (max-width: 900px) {
  .home-layout { grid-template-columns: 1fr; gap: 3rem; }
}

/* ------------------------------------------------------------
   2.4.8.3 — Subscribe and the slim strip (DEV_PLAN_Stage3 §4.1
   decision 8, Ben, 15 October 2026). Country pages load this file
   too. Previous: "home - v1 (pre-2.4.8.3).css".
------------------------------------------------------------ */

/* The sticky Subscribe box (sidebar.css) needs the sidebar as tall as the main column;
   .home-layout's align-items:start leaves it only as tall as its boxes. Desktop only. */
@media only screen and (min-width: 901px) {
  .home-sidebar { align-self: stretch; }
}

/* Subscribe after the posts — phones and tablets only (the views' .home-subscribe ful-hide).
   It is a .home-block so that, hidden on desktop, the reviews after it keep their
   ".home-block + .home-block" divider; here it drops that divider itself. */
.home-block.home-subscribe {
  margin-top: 2.5rem;
  padding-top: 0;
  border-top: 0;
}

/* "We love feedback" after the first post — components/feedback_strip.php (2.7.0.05,
   DEV_PLAN_Stage3 §4.5, Ben, 1 November 2026, canvas board B — was "A · Quiet line" since
   2.4.8.3, backup "_backups/css_home - (pre-2.7.0.05).css"). A light cream box with a 1px
   gold border: the title in the text gold, a line, four faces. It sits between the featured
   card and the rows — on country pages too since 2.7.0.07 (until then an item of .post-list,
   which the rule after this one still spaces). */
.feedback-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin: 1.5rem 0 0;
  padding: 1.5rem 1.75rem;
  border: 1px solid #e3c779;
  border-radius: 14px;
  background: #fffcf4;
}
.post-list > .feedback-strip { margin: 0; }
.feedback-strip__words { flex: 1 1 16rem; }
.feedback-strip__title {
  margin: 0 0 .25rem;
  color: var(--mwd-gold-dark, #8a5a18);
  font-family: "Montserrat", Helvetica, Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.2;
}
.feedback-strip__text {
  margin: 0;
  color: #3f4652;
  font-size: 1rem;
  line-height: 1.5;
}
.feedback-strip__faces {
  display: flex;
  gap: .85rem;
}
.feedback-strip__face {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  min-width: 76px;
  padding: .6rem .4rem .5rem;
  border: 1px solid #ecdcae;
  border-radius: 12px;
  background: #fff;
  color: var(--mwd-gold-dark, #8a5a18);
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.feedback-strip__face:hover,
.feedback-strip__face:focus-visible {
  border-color: var(--mwd-gold-dark, #8a5a18);
  color: var(--mwd-gold-dark, #8a5a18);
  transform: translateY(-2px);
}
.feedback-strip__face:focus-visible { outline: 2px solid var(--mhl-blue, #1657aa); outline-offset: 2px; }
.feedback-strip__icon { flex: 0 0 auto; }
/* Once sent (site_feedback.js): the thanks in place of the faces. The thanks line is shown
   by the hidden attribute alone — no display here. */
.feedback-strip.is-sent .feedback-strip__faces { display: none; }
.feedback-strip__thanks {
  flex-basis: 100%;
  margin: 0;
  color: var(--reviews-mid, #14731c);
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .feedback-strip__face { transition: none; }
  .feedback-strip__face:hover,
  .feedback-strip__face:focus-visible { transform: none; }
}

/* Phones: centred, the faces sharing the width. */
@media only screen and (max-width: 600px) {
  .feedback-strip { padding: 1.25rem 1.1rem; text-align: center; }
  .feedback-strip__words { flex-basis: 100%; }
  .feedback-strip__faces { flex: 1 1 100%; gap: .5rem; }
  .feedback-strip__face { flex: 1 1 0; min-width: 0; }
}

/* The box a face opens — core Form in a core Popup (SiteLinks::siteFeedback()). The faces'
   ratings are core Form radios, drawn here as pills: the chosen one has the gold outline, the
   site's "selected" mark. ⚠ The box is drawn at the end of the layout, OUTSIDE .home-sections,
   so these rules (and the strip's, to match) use the :root tokens, never --home-*. */
.popup--site-feedback fieldset { padding: 0; }
.popup--site-feedback .radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .25rem 0 0;
}
.popup--site-feedback .radio-item { margin: 0; }
.popup--site-feedback .radio-item label {
  padding: .45rem .95rem;
  border: 1px solid #ecdcae;
  border-radius: 999px;
  background: #fff;
  color: var(--mwd-gold-dark, #8a5a18);
  font-weight: 700;
}
.popup--site-feedback .radio-item label::before,
.popup--site-feedback .radio-item label::after { display: none; }
.popup--site-feedback .radio-item input[type="radio"]:checked ~ label {
  border-color: var(--mwd-gold-dark, #8a5a18);
  box-shadow: inset 0 0 0 1px var(--mwd-gold-dark, #8a5a18);
  background: #fffcf4;
}
.popup--site-feedback .radio-item input[type="radio"]:focus-visible ~ label {
  outline: 2px solid var(--mhl-blue, #1657aa);
  outline-offset: 2px;
}
/* ⚠ HONEYPOT — off-screen, never the hidden attribute (a bot reads the markup), as
   reactions.css's .reactions-prompt__hp. */
.site-feedback__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.site-feedback__message { margin: 0 0 1rem; font-size: .9rem; }
.site-feedback__message.is-error { color: #8a3122; }
.popup--site-feedback .form-button-group {
  display: flex;
  justify-content: flex-start;
}
.popup--site-feedback button:disabled { opacity: .6; cursor: progress; }
