/* Gear & Rig Magazine Homepage 1.5.1 | Isolated to plugin's custom page template */
.grh-home {
  --grh-forest: #2F4A3A;
  --grh-dark: #20392D;
  --grh-ink: #1F2A24;
  --grh-orange: #B94E1E;
  --grh-orange-bright: #D9622B;
  --grh-cream: #F7F3EC;
  --grh-sand: #E4D8C3;
  --grh-white: #FFFFFF;
  background: var(--grh-cream);
  color: var(--grh-ink);
  font-family: inherit;
  overflow: clip;
  line-height: 1.55;
  width: 100%;
  margin: 0;
  padding: 0 0 64px;
}
.grh-home, .grh-home * { box-sizing: border-box; }
.grh-home h1, .grh-home h2, .grh-home h3, .grh-home p { margin-top: 0; }
.grh-home a { text-decoration: none; }
.grh-home a:focus-visible { outline: 3px solid var(--grh-orange); outline-offset: 4px; }
.grh-container { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.grh-kicker { color: #A9431B; font-size: 11px; font-weight: 800; letter-spacing: .12em; line-height: 1.5; }
.grh-home h1, .grh-home h2, .grh-home h3 { color: var(--grh-dark); }
.grh-home h1, .grh-home .grh-section-head h2, .grh-home .grh-feature-copy h2, .grh-home .grh-rail-note h2, .grh-home .grh-endcap h2, .grh-home .grh-category-body h3 { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; letter-spacing: -.035em; }

/* Dedicated high-resolution RV hero photograph, with a readability veil at left */
.grh-hero { min-height: 460px; background-color: #f7f3ec; background-position: center 56%; background-size: cover; display: flex; align-items: center; position: relative; border-bottom: 1px solid rgba(47,74,58,.11); }
.grh-hero::before { content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(247,243,236,.96) 0%,rgba(247,243,236,.86) 30%,rgba(247,243,236,.52) 49%,rgba(247,243,236,.04) 72%,transparent 100%); pointer-events:none; z-index:0; }
.grh-hero-inner { display: flex; align-items: center; padding-block: 70px 74px; position:relative; z-index:1; }
.grh-hero-copy { max-width: 635px; position: relative; z-index: 1; }
.grh-hero h1 { font-size: clamp(42px, 4.2vw, 65px); line-height: 1.08; margin: 11px 0 17px; color: #20382D; }
.grh-hero h1 em { font-style: normal; color: var(--grh-forest); }
.grh-hero-copy > p { color: #29372F; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.53; max-width: 530px; margin-bottom: 23px; }
.grh-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.grh-button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 19px; font-size: 14px; font-weight: 750; border-radius: 6px; line-height: 1.2; transition: background .2s, transform .2s, border-color .2s; }
.grh-home .grh-button-primary { background: var(--grh-orange); color: #fff; border: 1px solid var(--grh-orange); }
.grh-home .grh-button-primary:hover { background: #963914; border-color: #963914; color: #fff; transform: translateY(-1px); }
.grh-button-small { min-height: 42px; padding: 10px 15px; font-size: 13px; }
.grh-proof { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 28px; color: #465348; font-size: 11.5px; max-width: 660px; }
.grh-proof span { display: block; padding-left: 12px; border-left: 3px solid #D9622B; line-height: 1.42; }
.grh-proof strong { display: block; font-size: 11px; letter-spacing: .055em; color: #20392D; text-transform: uppercase; }

/* Sections and category cards */
.grh-home-content { padding-top: 46px; }
.grh-section { margin-bottom: 42px; }
.grh-section-head { display:flex; justify-content:space-between; align-items:flex-end; gap: 20px; margin-bottom: 18px; }
.grh-section-head h2 { font-size: clamp(27px, 2.7vw, 36px); line-height: 1.18; margin: 4px 0 0; }
.grh-section-head > a { color: var(--grh-orange); font-weight: 750; font-size: 13px; white-space: nowrap; padding-bottom: 5px; }
.grh-section-head > a:hover { color: #8D3818; }
.grh-section-head p { max-width: 370px; margin: 0 0 3px; font-size: 13px; color: #626C62; }
.grh-categories { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.grh-home .grh-category-card { display: block; background: #fff; border: 1px solid #E7DDCF; border-radius: 11px; overflow: hidden; box-shadow: 0 5px 19px rgba(42,55,39,.032); color: var(--grh-ink); transition: transform .2s, box-shadow .2s; }
.grh-home .grh-category-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(42,55,39,.08); color: var(--grh-ink); }
.grh-category-media { width: 100%; height: 150px; overflow: hidden; background: #E6D9C7; }
.grh-category-media img, .grh-post-image-link img, .grh-feature-photo img, .grh-fallback-pick img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.grh-category-card:hover .grh-category-media img, .grh-post-card:hover .grh-post-image img { transform: scale(1.045); }
.grh-image-placeholder { width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; background:linear-gradient(130deg,#E6DED0,#CADCCF); color:var(--grh-forest); font-weight:750; letter-spacing:.08em; }
.grh-category-body { padding: 17px 18px 18px; }
.grh-category-eyebrow { display:flex; gap:8px; align-items:center; font-weight:800; font-size:10px; line-height:1.3; color:#526257; letter-spacing:.055em; }
.grh-mini-mark { display:grid; place-items:center; width:22px; height:22px; flex-shrink:0; border-radius:5px; color:white; background:#B94E1E; font-size:11px; font-family:Arial,sans-serif; font-weight:800; }
.grh-mini-mark svg { display:block; width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.grh-category-body h3 { margin:11px 0 6px; font-size:clamp(19px,1.65vw,24px); line-height:1.15; min-height:50px; }
.grh-category-body p { font-size:12.5px; line-height:1.5; color:#566156; min-height:56px; margin-bottom:12px; }
.grh-link-with-arrow { color:#AE431C; font-size:12.5px; font-weight:750; }

/* Two-column editorial area */
.grh-editorial-layout { display:grid; grid-template-columns:minmax(0, 1fr) 315px; align-items:stretch; gap:24px; }
.grh-editorial-main { min-width:0; }
/* Equal-bottom layout: stretch article rows, not shrink the green editorial note. */
@media (min-width: 801px) {
  .grh-editorial-main { display:flex; flex-direction:column; min-height:0; }
  .grh-recents { flex:1 1 auto; min-height:0; display:flex; flex-direction:column; }
  .grh-post-grid { flex:1 1 auto; min-height:0; grid-template-rows:repeat(2,minmax(0,1fr)); align-items:stretch; }
  .grh-post-card { min-height:0; height:100%; }
  .grh-post-card > .grh-post-image-link { height:auto; flex:0 0 51%; min-height:145px; }
}
.grh-feature { display:grid; grid-template-columns:45% 55%; border-radius:12px; overflow:hidden; background:white; border:1px solid #E7DDCF; min-height:310px; box-shadow:0 5px 22px rgba(42,55,39,.04); }
.grh-feature-photo { display:block; min-width:0; height:100%; min-height:310px; overflow:hidden; background:#E4D8C3; }
.grh-feature-image { width:100%; height:100%; object-fit:cover; }
.grh-feature-copy { padding:28px 29px; display:flex; flex-direction:column; align-items:flex-start; justify-content:center; }
.grh-chip { display:inline-block; color:#fff; background:var(--grh-orange); border-radius:4px; padding:5px 9px; line-height:1.3; font-size:10px; font-weight:800; letter-spacing:.05em; margin-bottom:15px; }
.grh-muted-label { font-size:10px; letter-spacing:.08em; font-weight:750; color:#607166; text-transform:uppercase; margin-bottom:6px; }
.grh-feature-copy h2 { font-size:clamp(23px,2.1vw,31px); line-height:1.16; margin:0 0 12px; }
.grh-feature-copy h2 a { color:var(--grh-dark); }
.grh-feature-copy h2 a:hover { color:#A44320; }
.grh-feature-copy p { font-size:13.5px; line-height:1.57; color:#5A655B; margin:0 0 20px; }

/* The preexisting Top RV Guides plugin keeps its own scope and saved selections */
.grh-rail { min-width:0; display:flex; flex-direction:column; }
.grh-rail .grtg { margin-bottom:20px; border-color:#E7DDCF; box-shadow:0 5px 22px rgba(42,55,39,.04); }
.grh-rail .grtg__title { font-family:Georgia,'Times New Roman',serif; }
.grh-rail-note { background:var(--grh-forest); color:#F7F3EC; border-radius:11px; padding:28px 25px; margin-top:auto; }
.grh-rail-note .grh-kicker { color:#F2BF9E; font-size:15px; font-weight:600; letter-spacing:.075em; line-height:1.35; }
.grh-rail-note h2 { margin:12px 0; font-size:27px; line-height:1.23; color:white; }
.grh-rail-note p { margin:0 0 15px; font-size:13px; line-height:1.54; color:#E0E7E0; }
.grh-rail-note a { color:#fff; font-size:13px; border-bottom:1px solid #D0E0CC; font-weight:750; }
.grh-rail-note a:hover { color:#F4C9A5; }

/* Fallback editorial picks when the companion sidebar plugin is not active */
.grh-fallback-picks { margin-bottom:20px; padding:20px; border:1px solid #E7DDCF; background:white; border-radius:12px; }
.grh-fallback-picks h2 { margin:4px 0 6px; font-family:Georgia,'Times New Roman',serif; font-size:23px; color:var(--grh-forest); }
.grh-fallback-picks p { font-size:12px; color:#667069; margin-bottom:10px; }
.grh-dot { color:var(--grh-orange); }
.grh-fallback-pick { display:grid; grid-template-columns:64px minmax(0,1fr); gap:11px; border-top:1px solid #E7DDCF; padding:12px 0; color:var(--grh-dark); }
.grh-fallback-pick .grh-pick-image { width:64px; height:64px; border-radius:5px; object-fit:cover; }
.grh-fallback-pick span { min-width:0; }
.grh-fallback-pick small { display:block; font-size:9px; line-height:1.4; color:#69756B; letter-spacing:.04em; text-transform:uppercase; margin-bottom:4px; }
.grh-fallback-pick strong { display:block; font-size:12px; line-height:1.37; }
.grh-fallback-pick:hover strong { color:var(--grh-orange); }

/* Real latest posts, automatic WordPress data */
.grh-recents { padding-top:37px; margin-bottom:14px; }
.grh-post-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:17px; }
.grh-post-card { display:flex; flex-direction:column; overflow:hidden; background:white; border:1px solid #E7DDCF; border-radius:10px; box-shadow:0 4px 19px rgba(42,55,39,.03); }
.grh-post-image-link { display:block; width:100%; height:135px; background:#E4D8C3; overflow:hidden; }
.grh-post-card-body { padding:13px 13px 16px; display:flex; flex-direction:column; flex:1; }
.grh-post-category { font-size:9px; font-weight:800; color:#647268; letter-spacing:.055em; line-height:1.3; text-transform:uppercase; margin-bottom:8px; }
.grh-post-card h3 { font-family:inherit; font-weight:750; font-size:14px; line-height:1.4; letter-spacing:-.01em; margin:0 0 11px; }
.grh-post-card h3 a { color:var(--grh-dark); }
.grh-post-card h3 a:hover { color:var(--grh-orange); }
.grh-post-card time { font-size:10.5px; margin-top:auto; color:#777E75; }

.grh-endcap { margin-top:47px; border:1px solid #DDD3C4; background:#EDE4D6; border-radius:12px; display:flex; align-items:center; justify-content:space-between; gap:25px; padding:29px 36px; }
.grh-endcap h2 { font-size:clamp(22px,2vw,29px); line-height:1.2; margin:4px 0 7px; }
.grh-endcap p { font-size:13px; color:#596258; max-width:570px; margin:0; }
.grh-endcap .grh-button { flex-shrink:0; }

@media (min-width: 1480px) {
  .grh-container { width: min(1270px, calc(100% - 80px)); }
  .grh-editorial-layout { grid-template-columns:minmax(0,1fr) 335px; }
}
@media (max-width:1100px) {
  .grh-categories { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .grh-category-body h3, .grh-category-body p { min-height:0; }
  .grh-editorial-layout { grid-template-columns:minmax(0,1fr) 290px; gap:20px; }
  .grh-feature { grid-template-columns:42% 58%; }
  .grh-feature-copy { padding:23px; }
  .grh-proof { max-width:560px; }
}
@media (max-width:800px) {
  .grh-hero { min-height:420px; background-position:55% center; }
  .grh-hero-inner { padding-block:62px; }
  .grh-hero-copy { max-width:520px; }
  .grh-hero::before { content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(247,243,236,.96),rgba(247,243,236,.73) 60%,rgba(247,243,236,.3)); pointer-events:none; }
  .grh-hero-inner { position:relative; z-index:1; }
  .grh-editorial-layout { grid-template-columns:1fr; }
  .grh-rail { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
  .grh-rail .grtg, .grh-fallback-picks { margin-bottom:0; }
  .grh-rail-note { align-self:stretch; margin-top:0; }
  .grh-post-image-link { height:160px; }
}
@media (max-width:620px) {
  .grh-container { width:calc(100% - 32px); }
  .grh-home-content { padding-top:30px; }
  .grh-hero { min-height:0; background-position:74% center; }
  .grh-hero-inner { padding-block:56px 44px; }
  .grh-hero h1 { font-size:clamp(36px,10.5vw,49px); }
  .grh-hero-copy > p { font-size:15px; }
  .grh-proof { gap:10px; font-size:10px; }
  .grh-proof span { width:45%; }
  .grh-actions { flex-direction:column; align-items:stretch; }
  .grh-actions .grh-button { width:100%; }
  .grh-section-head { display:block; }
  .grh-section-head p { margin-top:9px; }
  .grh-section-head > a { display:inline-block; margin-top:10px; }
  .grh-categories { grid-template-columns:1fr 1fr; gap:10px; }
  .grh-category-media { height:110px; }
  .grh-category-body { padding:12px; }
  .grh-category-eyebrow { font-size:8px; gap:5px; }
  .grh-mini-mark { height:18px; width:18px; font-size:9px; }
  .grh-category-body h3 { font-size:18px; }
  .grh-category-body p { font-size:11px; }
  .grh-link-with-arrow { font-size:11px; }
  .grh-feature { grid-template-columns:1fr; }
  .grh-feature-photo { min-height:0; height:230px; }
  .grh-feature-copy { padding:22px; }
  .grh-rail { grid-template-columns:1fr; }
  .grh-post-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; }
  .grh-post-image-link { height:115px; }
  .grh-post-card-body { padding:11px; }
  .grh-post-card h3 { font-size:12px; }
  .grh-post-category { font-size:8px; }
  .grh-endcap { flex-direction:column; align-items:flex-start; padding:23px; }
  .grh-endcap .grh-button { width:100%; }
}
@media (max-width:390px) {
  .grh-categories { grid-template-columns:1fr; }
  .grh-category-media { height:155px; }
  .grh-post-grid { grid-template-columns:1fr; }
  .grh-post-image-link { height:170px; }
}
@media (prefers-reduced-motion: reduce) {
  .grh-home .grh-button, .grh-category-card, .grh-category-media img, .grh-post-image-link img { transition:none; }
}
