/* RAIL & RYE PRODUCTION COMPONENTS
   Shared panels, publication cards, inner-page components and final homepage card treatment. */
/* Rail & Rye V4 visual treatment — no commerce changes */




.heritage-inner-page{background:#e9dcc3;font-family:var(--heritage-sans);color:#203541}
.heritage-inner-hero{min-height:clamp(440px,33vw,590px);color:#f6eeda;position:relative;background:#0c2330 url('/assets/heritage-v1/card-races.jpg') center/cover no-repeat;isolation:isolate;overflow:hidden}

.heritage-inner-heading:not(.rr-page-intro){position:relative;z-index:2;padding-block:clamp(55px,6.8vw,104px) clamp(55px,8vw,109px)}
.heritage-inner-kicker{font:600 14px var(--heritage-serif);letter-spacing:.22em;text-transform:uppercase;color:#e1b66e}
.heritage-inner-heading:not(.rr-page-intro) h1{font:500 clamp(61px,6.6vw,113px)/.94 var(--heritage-serif);margin:18px 0;color:#f6eeda;letter-spacing:-.025em;text-shadow:0 4px 18px #000b}
.heritage-inner-rule{display:block;height:2px;width:92px;background:#d4a759}
.heritage-inner-heading:not(.rr-page-intro) p{margin-top:18px;color:#f9ecd6;line-height:1.8;font-size:clamp(12px,1.15vw,16px);max-width:670px;text-shadow:0 2px 12px #000b}
.heritage-store-page.race-mode .heritage-inner-hero{background-image:url('/assets/approved/race-cards/hero.webp'),url('/assets/approved/home/hero.jpg');background-size:cover; background-position:center}
.heritage-journal-page .heritage-inner-hero{background-image:url('/assets/heritage-v1/journal-owner.webp'),url('/assets/heritage-v1/card-journal.jpg');background-size:cover;background-position:center}
.heritage-inner-content{background:linear-gradient(180deg,#ecd8b166,transparent 150px),url('/assets/approved/textures/parchment.jpg') center top/720px repeat;padding:38px 0 75px;min-height:360px;border-top:5px solid #c29a5f}
.heritage-section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;font:600 29px var(--heritage-serif);border-bottom:1px solid #b79b71;color:#1b3442;padding:0 0 17px}
.heritage-quiet,.heritage-recovery{font:700 10px var(--heritage-sans);letter-spacing:.08em;text-transform:uppercase;color:#73512f}
.heritage-recovery{border:1px solid #b29159;border-radius:99px;padding:10px 15px;background:#fcf0d399}
.heritage-inner-page .category-tabs{gap:9px;padding:20px 0 0}
.heritage-inner-page .category-tabs button{border:1px solid #bd945b;border-radius:99px;background:linear-gradient(150deg,#fff9eb,#ead6ae);padding:11px 18px;color:#153044;font:700 10px var(--heritage-sans);box-shadow:0 3px 10px #2c211329}
.heritage-inner-page .category-tabs button[aria-selected=true]{background:linear-gradient(150deg,#092532,#2b4147);color:#efc782;border-color:#d2ab6b}
.heritage-inner-page .store-banner{border:1px solid #c29b64;border-radius:9px;background:#faeed3;color:#58442c;box-shadow:0 3px 12px #22190d1c}
.heritage-inner-page .empty{background:#fff9ec;border:1px dashed #ad8e60;border-radius:10px}
.heritage-journal-page .journal-lead{grid-template-columns:1.2fr 1fr;gap:20px;margin-top:24px}
.heritage-journal-page .journal-panel{padding:clamp(25px,3vw,48px);border:1px solid #b99d70;border-radius:12px;background:linear-gradient(150deg,#fff9e9,#ecdbba);box-shadow:0 10px 30px #39241429}
.heritage-journal-page .journal-panel h2{font:500 clamp(38px,4vw,64px)/1 var(--heritage-serif);color:#172e3d}
.heritage-journal-page .journal-panel p{font-size:14px;line-height:1.8;color:#4e6065}
.heritage-journal-page .journal-illustration{border:1px solid #bf985c;border-radius:12px;overflow:hidden;background:linear-gradient(90deg,#051722f0,#05172255),url('/assets/heritage-v1/card-journal.jpg') center/cover;box-shadow:0 10px 30px #30201630}
.heritage-journal-page .journal-illustration h2{font:500 clamp(38px,4vw,65px)/.93 var(--heritage-serif);color:#f7eddb}
.heritage-inner-page .text-link{border:1px solid #b59563;border-radius:99px;padding:13px 17px}
.heritage-inner-page .site-footer{background:#061d2d;border-top:2px solid #c39961}

@media(max-width:750px){.heritage-inner-hero{min-height:515px}.heritage-inner-heading:not(.rr-page-intro){padding-top:122px;padding-bottom:45px}.heritage-inner-heading:not(.rr-page-intro) h1{font-size:clamp(57px,12vw,79px)}.heritage-journal-page .journal-lead{grid-template-columns:1fr}}
@media(max-width:560px){.heritage-inner-heading:not(.rr-page-intro) h1{font-size:56px}.heritage-inner-content{padding:25px 0 45px}.heritage-inner-page .category-tabs button{font-size:9px;padding:10px 12px}}
@media(prefers-reduced-motion:reduce){}

/* Rail & Rye V8 - actual publication PDF emblems and right-aligned transparent gold social symbols. */
/* Emblems are direct extracts from owner-supplied publication PDFs. */
.heritage-home .heritage-badges{align-items:stretch}
.heritage-home .heritage-badge{
  min-height:104px;
  border-radius:13px;
  border:1px solid #c7a36c;
  box-shadow:inset 0 1px 0 #fae2a94d,0 4px 12px #24190c36,0 13px 26px #2b211838;
  gap:clamp(9px,1.1vw,17px);
}
.heritage-home .heritage-badge:hover{box-shadow:inset 0 1px 0 #fae2a94d,0 9px 18px #24190c45,0 17px 32px #2b21184a}
.heritage-home .badge-emblem{
  display:grid;place-items:center;flex:0 0 70px;width:70px;height:70px;padding:4px;
  border-radius:50%;border:2px solid #e2bf77;
  background:radial-gradient(circle at 34% 26%,#fff1c7,#b9863e 85%);
  box-shadow:inset 0 1px 1px #fff3be,inset 0 -2px 4px #78501f,0 4px 12px #0008;
  overflow:hidden;color:transparent;font-size:0;
}
.heritage-home .badge-emblem img{
  display:block;width:100%;height:100%;border-radius:50%;object-fit:contain;
  background:#f8f3e6;
}
.heritage-home .badge-text strong{color:#fff2df;text-shadow:0 2px 5px #0008}
.heritage-home .badge-text small{color:#eac485}
.heritage-home .badge-arrow{color:#ecc67f}
.heritage-footer-inner>.rr-social-links,.footer-inner>.rr-social-links{
  display:inline-flex;align-items:center;justify-content:flex-end;flex:0 0 auto;
  gap:clamp(9px,1vw,16px);margin-left:auto;
}
.heritage-footer .heritage-footer-inner,.site-footer .footer-inner{
  align-items:center;row-gap:12px;
}
.heritage-footer-inner>nav,.footer-inner>.footer-nav{display:flex;align-items:center}
.heritage-footer .rr-social-icon,.site-footer .rr-social-icon{
  display:inline-flex;align-items:center;justify-content:center;
  width:32px;height:36px;min-width:32px;flex:0 0 32px;
  background:transparent!important;border:0!important;outline-offset:4px;
  padding:0!important;border-radius:0!important;box-shadow:none!important;
  color:#e7bc6b!important;transition:transform .2s ease,color .2s ease;
}
.heritage-footer .rr-social-icon svg,.site-footer .rr-social-icon svg{
  width:25px;height:25px;display:block;
  filter:drop-shadow(0 1px 0 #5c3c15) drop-shadow(0 -1px 0 #ffe2a4);
}
.heritage-footer .rr-social-icon:hover,.site-footer .rr-social-icon:hover{
  color:#ffe0a0!important;transform:translateY(-2px);
}
.heritage-footer .rr-social-icon:focus-visible,.site-footer .rr-social-icon:focus-visible{
  outline:2px solid #f6eeda;
}
.heritage-footer-inner>small{white-space:nowrap}
@media(min-width:1201px){
 .heritage-footer-inner{flex-wrap:nowrap;gap:clamp(12px,1.1vw,22px)}
 .heritage-footer-inner>nav{gap:clamp(10px,.9vw,17px);flex-wrap:nowrap}
 .site-footer .footer-inner{flex-wrap:nowrap}
 .site-footer .footer-nav{gap:clamp(9px,.8vw,16px)}
}
@media(max-width:1200px){
 .heritage-footer-inner>small{display:none}
 .heritage-footer-inner>.rr-social-links,.footer-inner>.rr-social-links{margin-left:auto}
 .heritage-footer-inner>nav,.footer-inner>.footer-nav{flex-wrap:wrap}
}
@media(max-width:750px){
 .heritage-home .heritage-badge{min-height:100px;padding:12px 14px}
 .heritage-home .badge-emblem{flex-basis:62px;width:62px;height:62px}
 .heritage-footer-inner>.rr-social-links,.footer-inner>.rr-social-links{margin-left:0;justify-content:flex-start}
}
@media(max-width:390px){.heritage-home .badge-emblem{flex-basis:56px;width:56px;height:56px}}
@media(prefers-reduced-motion:reduce){.heritage-home .heritage-badge,.heritage-footer .rr-social-icon,.site-footer .rr-social-icon{transition:none!important}}

/* RAIL & RYE V9 - approved vintage images, authentic program chips, restrained publication badges.
   Shared visual treatment only. Commerce, publication availability and checkout code unchanged. */

/* One image for each category, reused on the home tile and its destination hero. */
.heritage-home .heritage-panel.race-panel{
  background-image:url('/assets/approved/race-cards/hero.webp');
  background-position:center 50%;
}
.heritage-home .heritage-panel.journal-panel-heritage{
  background-image:url('/assets/approved/journal/hero.webp');
  background-position:center 52%;
}
.heritage-home .heritage-panel:before{
  background:linear-gradient(90deg,rgba(3,17,26,.97) 0%,rgba(5,22,32,.84) 34%,rgba(4,18,29,.41) 69%,rgba(4,18,29,.10) 100%);
}
.heritage-home .heritage-panel:after{
  border:1px solid rgba(241,207,145,.24);
  box-shadow:inset 0 0 0 6px rgba(6,26,37,.12);
}
.heritage-home .heritage-eyebrow-chip{
  display:inline-flex;align-items:center;gap:10px;
  line-height:1.15;letter-spacing:.15em;color:#edc47d;
}
.heritage-home .heritage-eyebrow-chip img{
  display:block;flex:0 0 32px;width:32px;height:32px;object-fit:contain;
  filter:drop-shadow(0 1px 2px rgba(0,0,0,.55));
}
.heritage-home .heritage-panel-content{max-width:81%}
.heritage-home .heritage-panel h2{margin-top:8px}

/* Preserve authentic publication emblems, but remove the shiny embossed treatment. */
.heritage-home .heritage-badge{
  border:1px solid #b18e58;border-radius:10px;
  box-shadow:0 3px 9px rgba(46,30,12,.18),inset 0 0 0 1px rgba(233,193,121,.12);
  background-color:#071d2a;
  transition:border-color .2s,background-color .2s,transform .2s;
}
.heritage-home .heritage-badge:hover{
  border-color:#e0b97b;
  box-shadow:0 5px 14px rgba(29,24,14,.24),inset 0 0 0 1px rgba(233,193,121,.24);
}
.heritage-home .heritage-badge:before{
  background:linear-gradient(90deg,rgba(6,25,37,.87) 0%,rgba(7,26,37,.66) 69%,rgba(7,24,34,.43) 100%);
}
.heritage-home .badge-emblem{
  width:64px;height:64px;flex:0 0 64px;padding:2px;
  background:#f7f0df;border:1px solid #c9a268;
  box-shadow:0 2px 5px rgba(0,0,0,.2);
}
.heritage-home .badge-emblem img{background:#f7f0df;border-radius:50%}
.heritage-home .badge-text strong{color:#f6edda;text-shadow:0 1px 2px #0009}
.heritage-home .badge-text small{color:#d6b77d}
.heritage-home .badge-arrow{color:#d9b578}

/* Let the inner store + journal mirror the home hero: exact approved imagery,
   left navy veil dissolving into bright image on right, and shorter editorial header. */
.heritage-inner-page .heritage-inner-hero{
  min-height:clamp(385px,29vw,510px);
  background-repeat:no-repeat;
  background-size:cover;
  background-position:center 50%;
}
.heritage-inner-page.heritage-store-page .heritage-inner-hero,
.heritage-inner-page.heritage-store-page.race-mode .heritage-inner-hero{
  background-image:url('/assets/approved/publication-desk/hero.webp');
  background-position:center 52%;
}
.heritage-inner-page.heritage-journal-page .heritage-inner-hero{
  background-image:url('/assets/approved/journal/hero.webp');
  background-position:center 52%;
}
.heritage-inner-page .heritage-inner-heading:not(.rr-page-intro){
  padding-top:clamp(40px,4.3vw,72px);
  padding-bottom:clamp(39px,4.1vw,67px);
}
.heritage-inner-page .heritage-inner-heading:not(.rr-page-intro) h1{
  font-size:clamp(56px,5.1vw,83px);line-height:.93;
  letter-spacing:-.035em;text-shadow:0 3px 13px rgba(0,0,0,.68);
  margin:15px 0 20px;
}
.heritage-inner-page .heritage-inner-heading:not(.rr-page-intro) p{
  max-width:490px;font-size:clamp(12px,.93vw,16px);
  line-height:1.58;margin-top:14px;
}
.heritage-inner-page .heritage-inner-content{
  border-top:5px solid #bd9357;
  background:linear-gradient(180deg,rgba(237,215,169,.38),transparent 170px),
    url('/assets/approved/textures/parchment.jpg') center top/720px auto repeat;
}
.heritage-inner-page .heritage-inner-kicker{
  color:#e4bc77;letter-spacing:.16em;
}
.heritage-inner-page .heritage-journal-edition{
  display:flex;align-items:center;gap:10px;
}
.heritage-inner-page .heritage-journal-edition img{width:25px;height:25px;object-fit:contain}

/* Footer: only one apparel link, retained in the top navigation. */
@media(min-width:751px){
 .heritage-inner-page .heritage-inner-hero{min-height:385px}
}
@media(max-width:750px){
 .heritage-home .heritage-eyebrow-chip img{width:29px;height:29px;flex-basis:29px}
 .heritage-home .heritage-panel-content{max-width:92%}
 .heritage-home .badge-emblem{width:59px;height:59px;flex-basis:59px}
 .heritage-inner-page .heritage-inner-hero{min-height:490px;background-position:center 48%}
 .heritage-inner-page .heritage-inner-heading:not(.rr-page-intro){
   padding-top:108px;padding-bottom:35px;
 }
 .heritage-inner-page .heritage-inner-heading:not(.rr-page-intro) h1{
   font-size:clamp(48px,11.8vw,69px);line-height:.98;
 }
 .heritage-inner-page .heritage-inner-heading:not(.rr-page-intro) p{font-size:12px;max-width:330px}
 .heritage-inner-page .heritage-inner-content{padding-top:27px}
}
@media(max-width:390px){
 .heritage-home .badge-emblem{width:54px;height:54px;flex-basis:54px}
 .heritage-home .heritage-panel-content{max-width:95%}
}
@media(prefers-reduced-motion:reduce){
 .heritage-home .heritage-badge{transition:none}
}

/* Rail & Rye / V10 — authentic saddlecloth colors and vintage printed publication identities.
   Product routes own their content, with owner-supplied hero artwork to follow.
   CSS changes only: no changes to existing checkout code. */
.heritage-home .rr-saddle-chip{
 display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;
 width:31px;height:31px;border-radius:5px;border:2px solid #11191e;
 font:800 23px/1 var(--heritage-serif);letter-spacing:0;
 box-shadow:none!important;text-shadow:none!important;filter:none!important;
 background:#fff;color:#111;
}
.heritage-home .rr-saddle-chip--1{background:#d50910;color:#fff;border-color:#151515}
.heritage-home .rr-saddle-chip--2{background:#fffefa;color:#141414;border-color:#141414}
.heritage-home .heritage-eyebrow-chip .rr-saddle-chip{margin-right:2px}
.heritage-journal-page .heritage-journal-edition .rr-saddle-chip{width:27px;height:27px;font-size:19px;border-width:2px}
@media(max-width:750px){.heritage-home .rr-saddle-chip{width:29px;height:29px;font-size:21px}}

/* The publications are heritage print placards, not metallic coins or raised buttons. */
.heritage-home .heritage-badge{
 position:relative;border:1px solid #b7955c;border-radius:5px;
 background-color:#081e29;box-shadow:none!important;
 transform:none!important;overflow:hidden;min-height:111px;
 padding:14px 20px;transition:border-color .2s;
}
.heritage-home .heritage-badge:hover{border-color:#e4ba75;background-color:#102c39}
.heritage-home .heritage-badge:after{
 content:'';position:absolute;inset:6px;z-index:0;pointer-events:none;
 border:1px solid rgba(221,174,99,.57);border-radius:1px;
 background:
 linear-gradient(#e5bf82,#e5bf82) left top/17px 2px no-repeat,
 linear-gradient(#e5bf82,#e5bf82) right top/17px 2px no-repeat,
 linear-gradient(#e5bf82,#e5bf82) left bottom/17px 2px no-repeat,
 linear-gradient(#e5bf82,#e5bf82) right bottom/17px 2px no-repeat;
 opacity:.72;
}
.heritage-home .heritage-badge:before{
 background:linear-gradient(90deg,rgba(6,21,30,.90),rgba(7,24,34,.78) 60%,rgba(6,18,28,.55));
}
.heritage-home .heritage-badge > *{position:relative;z-index:1}
.heritage-home .badge-emblem{
 flex:0 0 66px;width:66px;height:66px;overflow:hidden;padding:2px;
 border:1px solid #c7a56d;border-radius:50%;
 background:#f6f0e5;box-shadow:none!important;
}
.heritage-home .badge-emblem img{width:100%;height:100%;object-fit:contain;filter:none!important}
.heritage-home .badge-text strong{font:500 clamp(24px,1.85vw,34px)/1.1 var(--heritage-serif);text-shadow:none}
.heritage-home .badge-text small{color:#e6c483;font-size:clamp(9px,.62vw,11px)}
.heritage-home .badge-arrow{font-size:27px;color:#f0c78c}
@media(max-width:750px){.heritage-home .heritage-badge{min-height:100px}.heritage-home .badge-emblem{width:58px;height:58px;flex-basis:58px}}

/* The category tabs and checkout actions are printed vintage controls, never embossed. */
.heritage-inner-page .category-tabs button,
.heritage-inner-page .buy-button{
 border-radius:5px;box-shadow:none!important;text-shadow:none;
 background:#f7ecd3;color:#102c3e;border:1px solid #ad8c5a;
 transition:background-color .2s,border-color .2s;
}
.heritage-inner-page .category-tabs button:hover{background:#efe0be;border-color:#906c37}
.heritage-inner-page .category-tabs button[aria-selected=true],
.heritage-inner-page .buy-button:not(:disabled){
 background:#102f3b;color:#f6eddb;border-color:#ae8950;
}

/* Three dedicated product editorial pages; temporary photographs use existing site artwork.
   Swap the CSS background-image only when the owner supplies each approved hero. */
.heritage-publication-page .rr-publication-hero{min-height:445px}
.heritage-publication-page.rr-pub-longshot-radar .rr-publication-hero{
 background-image:url('/assets/approved/race-cards/hero.webp');background-position:center 47%;
}
.heritage-publication-page.rr-pub-stable-notes .rr-publication-hero{
 background-image:url('/assets/approved/journal/hero.webp');background-position:center 54%;
}
.heritage-publication-page.rr-pub-target-list .rr-publication-hero{
 background-image:url('/assets/approved/home/hero.jpg');background-position:center 41%;
}

.heritage-publication-page .rr-publication-heading:not(.rr-page-intro){padding-top:34px;padding-bottom:40px}


.heritage-publication-page .heritage-inner-heading:not(.rr-page-intro) h1{margin:8px 0 16px;font-size:clamp(60px,5.2vw,90px)}
.heritage-publication-page .heritage-inner-heading:not(.rr-page-intro) p{max-width:590px;margin-top:13px}
.rr-publication-hero-link{display:inline-block;margin-top:21px;color:#e8bd76;font:700 11px var(--heritage-sans);letter-spacing:.1em;text-transform:uppercase;border-bottom:1px solid #bd9859;padding-bottom:7px}
.rr-publication-hero-link:hover{color:#fff0c9}
.rr-publication-main{min-height:450px}
.rr-breadcrumb{display:flex;align-items:center;gap:9px;font-size:11px;color:#775c40;margin-bottom:23px}
.rr-breadcrumb a{color:#183446;text-decoration:underline;text-underline-offset:3px}
.rr-publication-about{display:grid;grid-template-columns:.93fr 1.07fr;gap:clamp(22px,4vw,70px);padding:19px 0 38px;border-bottom:1px solid #b59a6d}
.rr-pub-overline{font:800 10px var(--heritage-sans);color:#926d3d;letter-spacing:.17em;text-transform:uppercase}
.rr-publication-about-heading h2{font:500 clamp(38px,4vw,64px)/.98 var(--heritage-serif);color:#153245;margin:14px 0}
.rr-publication-about-heading p{font-size:13px;color:#6d5a42}
.rr-publication-points{display:grid;gap:14px}
.rr-publication-point{display:flex;gap:17px;padding:6px 0 16px;border-bottom:1px solid rgba(145,109,63,.27)}
.rr-pub-detail-mark{flex:none;font-size:19px;color:#ad844b}
.rr-publication-point h3{font:600 29px/1.1 var(--heritage-serif);color:#16394c;margin:0 0 7px}
.rr-publication-point p{font-size:12px;line-height:1.7;color:#425560}
.rr-publication-editions{padding:38px 0 28px}
.rr-publication-editions-head{display:flex;align-items:end;justify-content:space-between;gap:15px}
.rr-publication-editions-head h2{font:500 49px/1 var(--heritage-serif);margin:10px 0;color:#16394c}
.rr-all-pubs,.rr-pub-outline-link{font:700 11px var(--heritage-sans);letter-spacing:.04em;color:#204153;text-decoration:underline;text-underline-offset:4px}
.rr-publication-status{font:500 12px var(--heritage-sans);color:#4a5d66;margin:16px 0}
.rr-status-error{color:#8a3027}
.rr-publication-products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.rr-edition-card{display:flex;flex-direction:column;justify-content:space-between;gap:18px;padding:22px;border:1px solid #bd9b69;border-radius:6px;background:rgba(255,251,241,.79);box-shadow:none;position:relative}
.rr-edition-card:after{content:'';position:absolute;inset:5px;border:1px solid rgba(187,151,95,.28);pointer-events:none}
.rr-edition-meta{font:700 10px var(--heritage-sans);letter-spacing:.06em;color:#8a6a42;text-transform:uppercase}
.rr-edition-card h3{font:500 32px/1.1 var(--heritage-serif);color:#153347;margin:11px 0}
.rr-edition-description{font-size:12px;color:#50636a;line-height:1.6}
.rr-edition-actions{display:flex;justify-content:space-between;align-items:center;gap:12px}
.rr-edition-price{font:600 26px var(--heritage-serif);color:#16394c}
.rr-edition-buy,.rr-pub-outline-link{
 border:1px solid #a88854;border-radius:4px;padding:12px 16px;
 background:#092a3c;color:#fff2d4;font:700 11px var(--heritage-sans);
 cursor:pointer;box-shadow:none;text-decoration:none;transition:background .2s;
}
.rr-edition-buy:disabled{cursor:not-allowed;opacity:.54}
.rr-edition-buy:not(:disabled):hover,.rr-pub-outline-link:hover{background:#15475b}
.rr-edition-footnote{font:500 11px/1.6 var(--heritage-sans);color:#6b604f;margin:18px 0 22px}
.rr-pub-outline-link{display:inline-flex;align-items:center;gap:10px;background:transparent;color:#17394c}
.rr-pub-outline-link:hover{color:#fff2d4}
@media(max-width:750px){
 .heritage-publication-page .rr-publication-hero{min-height:535px;background-position:61% center}
 
 .heritage-publication-page .rr-publication-heading:not(.rr-page-intro){padding-top:103px;padding-bottom:40px}
 
 
 .heritage-publication-page .heritage-inner-kicker{font-size:10px;letter-spacing:.08em}
 .heritage-publication-page .heritage-inner-heading:not(.rr-page-intro) h1{font-size:clamp(47px,11vw,67px)}
 .rr-publication-about{grid-template-columns:1fr;gap:20px}
 .rr-publication-about-heading h2{font-size:48px}
 .rr-publication-products{grid-template-columns:1fr}
 .rr-publication-editions-head h2{font-size:43px}
 .rr-edition-card{padding:18px}
 .rr-publication-editions-head{align-items:start}
}
@media(max-width:440px){.rr-publication-editions-head{display:block}.rr-all-pubs{display:inline-block;margin:6px 0}}
@media(prefers-reduced-motion:reduce){.rr-edition-buy,.rr-pub-outline-link{transition:none}}

/* RAIL & RYE V11 — owner-approved editorial vintage refinement, 2026-10-29.
   Authentic saddlecloth numeral font from original 1 and 2 program chips.
   Gritty Victory Lap = Longshot Radar, Gritty Sunrise = Stable Notes.
   Flat antique racing-print frames: no metallic emboss/bevel or modern raised cards.
   The Target List keeps its provisional image until the owner supplies its hero.
   Presentation only, existing commerce flow untouched. */

/* Original horse-racing saddlecloth numbers, including their authentic typography and color. */
.heritage-home .heritage-eyebrow-chip img.rr-original-saddle-chip{
 width:36px;height:36px;flex:0 0 36px;object-fit:contain;
 filter:none!important;background:none!important;border:none!important;
 box-shadow:none!important;image-rendering:auto;
}
.heritage-journal-page .heritage-journal-edition img.rr-original-saddle-chip{
 display:block;width:28px;height:28px;object-fit:contain;
 filter:none!important;box-shadow:none!important;
}

/* Keep exact PDF-derived publication emblems, but frame as printed paper art, not metal. */
.heritage-home .heritage-badges{gap:clamp(12px,1.3vw,22px)}
.heritage-home .heritage-badge{
 --rr-vintage-ink:rgba(6,24,32,.94);
 min-height:130px;
 background-color:#071d28;
 border:1px solid #ac8954;
 border-radius:0;
 clip-path:polygon(12px 0,calc(100% - 12px) 0,100% 12px,100% calc(100% - 12px),calc(100% - 12px) 100%,12px 100%,0 calc(100% - 12px),0 12px);
 box-shadow:none!important;transform:none!important;
 padding:17px clamp(18px,1.6vw,29px);
 gap:clamp(12px,1.2vw,20px);
 background-size:cover;
 background-position:center 50%;
}
.heritage-home .heritage-badge.badge-longshot{
 background-image:url('/assets/approved/publications/longshot-hero.jpg');
 background-position:57% 44%;
}
.heritage-home .heritage-badge.badge-stable{
 background-image:url('/assets/approved/publications/stable-hero.jpg');
 background-position:52% 54%;
}
/* The classic framed card is a print plate: an aged overlay, delicate double rules,
   cut corners and tiny flat rosettes instead of a glossy surface. */
.heritage-home .heritage-badge:before{
 background:
  linear-gradient(90deg,rgba(4,18,27,.96) 0%,rgba(5,20,29,.84) 55%,rgba(7,22,29,.67) 100%),
  repeating-linear-gradient(5deg,rgba(231,198,132,.025) 0 1px,transparent 1px 5px);
}
.heritage-home .heritage-badge:after{
 content:'';position:absolute;inset:6px;z-index:0;
 border:3px double #c8a36d;opacity:.85;border-radius:0;
 background:
  radial-gradient(circle,#d2af70 0 2px,transparent 2.5px) 12px 12px/26px 26px no-repeat,
  radial-gradient(circle,#d2af70 0 2px,transparent 2.5px) calc(100% - 12px) 12px/26px 26px no-repeat,
  linear-gradient(90deg,rgba(225,186,108,.18),transparent 13%,transparent 87%,rgba(225,186,108,.18));
 pointer-events:none;
 box-shadow:none!important;
}
.heritage-home .heritage-badge:hover{box-shadow:none!important;transform:none!important}
.heritage-home .heritage-badge:hover:after{border-color:#f0d29d}
.heritage-home .heritage-badge > *{z-index:1}
.heritage-home .badge-emblem{
 width:70px;height:70px;flex:0 0 70px;border-radius:50%;
 border:1px solid #d7bb87;background:#f6f2e9;padding:2px;
 box-shadow:none!important;
}
.heritage-home .badge-emblem img{
 border-radius:50%;width:100%;height:100%;object-fit:contain;
 background:#f6f2e9;filter:none!important;
}
.heritage-home .badge-text{gap:5px}
.heritage-home .badge-text strong{
 font:500 clamp(26px,1.9vw,35px)/1.05 var(--heritage-serif);
 letter-spacing:.013em;color:#f9eed9;
 text-shadow:none!important;
}
.heritage-home .badge-text small{
 font:600 clamp(9px,.6vw,11px)/1.45 var(--heritage-sans);
 letter-spacing:.08em;color:#dcc18d;
}
.heritage-home .badge-arrow{font:30px/1 var(--heritage-serif);color:#e1ba7a}

/* All inner-page buttons: antique printed labels, never glossy or raised.
   Store category tabs, buy buttons and landing page collection links share the system. */
.heritage-inner-page .category-tabs button,
.heritage-inner-page .buy-button,
.heritage-publication-page .rr-edition-buy,
.heritage-publication-page .rr-pub-outline-link{
 border:1px solid #a88a5d!important;
 border-radius:0!important;
 box-shadow:none!important;
 text-shadow:none!important;
 letter-spacing:.07em;
 transition:background-color .18s ease,color .18s ease,border-color .18s ease;
}
.heritage-inner-page .category-tabs button{
 background:#eee0c4;
 color:#183749;
 border:1px solid #a88a5d;
 font-family:var(--heritage-serif);
 font-size:clamp(14px,1.2vw,17px);
 font-weight:700;
 text-transform:none;
}
.heritage-inner-page .category-tabs button[aria-selected=true]{
 background:#153343;color:#f5e4bd;
 border-color:#a88a5d;
}
.heritage-inner-page .category-tabs button:hover{background:#e4d1ab}
.heritage-inner-page .category-tabs button[aria-selected=true]:hover{background:#244b59}
.heritage-inner-page .buy-button,
.heritage-publication-page .rr-edition-buy{
 background:#102d3a;color:#f5e7ce;
 padding:13px 18px;font-size:11px;
 text-transform:uppercase;
}
.heritage-inner-page .buy-button:hover:not(:disabled),
.heritage-publication-page .rr-edition-buy:hover:not(:disabled){background:#254653}
.heritage-publication-page .rr-pub-outline-link{background:#efe2c9;color:#183749}
.heritage-publication-page .rr-pub-outline-link:hover{background:#d9bb84;color:#142f3e}

/* Finish each owner's dedicated editorial page with their supplied artwork. */
.heritage-inner-page.heritage-publication-page.rr-pub-longshot-radar .rr-publication-hero{
 background-image:url('/assets/approved/publications/longshot-hero.jpg');
 background-position:55% 47%;
}
.heritage-inner-page.heritage-publication-page.rr-pub-stable-notes .rr-publication-hero{
 background-image:url('/assets/approved/publications/stable-hero.jpg');
 background-position:51% 49%;
}
@media(max-width:850px){
 .heritage-home .heritage-badge{min-height:110px}
 .heritage-home .badge-emblem{width:63px;height:63px;flex-basis:63px}
}
@media(max-width:750px){
 .heritage-home .heritage-eyebrow-chip img.rr-original-saddle-chip{width:33px;height:33px;flex-basis:33px}
 .heritage-home .heritage-badge{padding:14px 19px;min-height:107px;gap:14px}
 .heritage-home .heritage-badge:after{inset:5px;border-width:3px}
 .heritage-home .badge-emblem{width:57px;height:57px;flex-basis:57px}
 .heritage-home .badge-text strong{font-size:31px}
 .heritage-inner-page.heritage-publication-page.rr-pub-longshot-radar .rr-publication-hero{background-position:57% 40%}
 .heritage-inner-page.heritage-publication-page.rr-pub-stable-notes .rr-publication-hero{background-position:54% 45%}
}
@media(prefers-reduced-motion:reduce){
 .heritage-home .heritage-badge,.heritage-inner-page .category-tabs button,
 .heritage-inner-page .buy-button,.heritage-publication-page .rr-edition-buy{transition:none!important}
}

/* Rail & Rye V5: owner-approved home refinements.
   Heritage homepage only: shorter opening view, paddock Journal art, original
   Sovereignty-photo-pose silhouette beside brand intelligence title. */
.heritage-home .heritage-hero{
  min-height:clamp(445px,29vw,505px);
}
.heritage-home .heritage-lead{padding-bottom:clamp(28px,2.6vw,44px)}
.heritage-home .heritage-feature-grid{padding-top:14px}
.heritage-home .heritage-panel{min-height:clamp(218px,13.8vw,266px)}
.heritage-home .journal-panel-heritage{
  background-image:url('/assets/approved/journal/hero.webp');
  background-position:center 52%;
}




@media(max-width:750px){
  .heritage-home .heritage-hero{min-height:565px}
  
  
  .heritage-home .heritage-lead{padding-bottom:37px}
  .heritage-home .heritage-panel{min-height:235px}
}
@media(max-width:390px){
  
  
  
}
/* V7 — owner-approved homepage message and above-the-fold refinement.
   Homepage styles only. Preserve official brand, live product API and checkout. */
@media(min-width:1121px){
 .heritage-home .heritage-hero{min-height:370px}
 
 .heritage-home .heritage-lead{padding-bottom:21px}
 .heritage-home .heritage-feature-grid{padding-top:8px;gap:15px}
 .heritage-home .heritage-more{padding-top:20px}
 .heritage-home .heritage-panel{min-height:190px}
 .heritage-home .heritage-panel-content{padding:clamp(17px,1.65vw,27px)}
 .heritage-home .heritage-panel h2{font-size:clamp(34px,2.75vw,52px);margin:8px 0 10px}
 .heritage-home .heritage-more{padding-top:17px}
 .heritage-home .heritage-section-title{margin-bottom:28px}
 .heritage-home .heritage-badge{min-height:80px;padding:10px 15px}
 .heritage-home .badge-emblem{width:48px;height:48px;font-size:24px}
 .heritage-home .badge-text strong{font-size:clamp(23px,1.7vw,32px)}
}


@media(prefers-reduced-motion:reduce){
 .heritage-home .heritage-panel,.heritage-home .heritage-badge{transition:none}
}

/* Preserve approved homepage photography after removing experimental CSS imports. */
.heritage-home .race-panel{background-image:url('/assets/approved/race-cards/hero.webp');background-position:center 50%}
.heritage-home .journal-panel-heritage{background-image:url('/assets/approved/journal/hero.webp');background-position:center 52%}
/* RAIL & RYE CANONICAL HOMEPAGE — reset of legacy competing badge/chip CSS.
   V14: same top-panel treatment at smaller horizontal height for three publication cards.
   No Stripe, checkout, API or header changes. */
.heritage-home .heritage-badges{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(12px,1.25vw,20px)}
.heritage-home .rr-publication-card{
 min-width:0;min-height:128px;height:128px;display:block;position:relative;isolation:isolate;
 border:1px solid rgba(228,180,90,.85);border-radius:9px;overflow:hidden;
 color:#f7efe0;box-shadow:inset 0 1px 0 #f8d59d70,0 8px 22px #2f211a30;
 transform:none;transition:transform .22s ease,box-shadow .22s ease;
 background-color:#12202a;background-size:cover;background-position:center;
}
.heritage-home .rr-publication-card:hover{transform:translateY(-3px);box-shadow:0 13px 32px #2f211a40}
.heritage-home .rr-publication-card:before{
 content:'';position:absolute;inset:0;z-index:-1;
 background:linear-gradient(90deg,rgba(3,17,26,.97) 0%,rgba(5,22,32,.86) 39%,rgba(4,18,29,.41) 73%,rgba(4,18,29,.12) 100%);
}
.heritage-home .rr-publication-card:after{content:'';position:absolute;inset:0;border:1px solid rgba(241,207,145,.24);box-shadow:inset 0 0 0 6px rgba(6,26,37,.12);border-radius:inherit;pointer-events:none}
.heritage-home .rr-publication-card--longshot{background-image:url('/assets/approved/publications/longshot-hero.jpg');background-position:55% 44%}
.heritage-home .rr-publication-card--stable{background-image:url('/assets/approved/publications/stable-hero.jpg');background-position:50% 53%}
.heritage-home .rr-publication-card--target{background-image:url('/assets/approved/publications/target-hero.jpg');background-position:58% 45%}
.heritage-home .rr-publication-card-content{
 display:flex;align-items:center;gap:clamp(11px,1vw,17px);height:100%;max-width:none;width:100%;
 padding:16px clamp(15px,1.5vw,27px);position:relative;z-index:2;
}
.heritage-home .rr-publication-card-mark{flex:0 0 65px;width:65px;height:65px;border-radius:50%;border:1px solid #cba66d;background:#f7f2e6;display:grid;place-items:center;padding:2px}
.heritage-home .rr-publication-card-mark img{width:100%;height:100%;object-fit:contain;border-radius:50%;display:block;filter:none}
.heritage-home .rr-publication-card-copy{display:flex;flex-direction:column;gap:6px;min-width:0}
.heritage-home .rr-publication-card-copy strong{font:500 clamp(24px,1.9vw,35px)/1.05 var(--heritage-serif);color:#fff1df;white-space:normal}
.heritage-home .rr-publication-card-copy small{font:700 clamp(9px,.66vw,11px)/1.4 var(--heritage-sans);color:#e6c184;text-transform:uppercase;letter-spacing:.065em}
.heritage-home .rr-publication-card .rr-publication-card-arrow{margin:0 0 0 auto;padding:0;align-self:center;flex:0 0 auto;font:29px/1 var(--heritage-serif);color:#ecc16e;transition:transform .22s ease}
.heritage-home .rr-publication-card:hover .rr-publication-card-arrow{transform:translate(3px,-3px)}
/* Saddle numbers: render the ORIGINAL downloaded program-chip pixels.
   Opaque backing sits behind each intact PNG, NOT a CSS-retyped number. */
.heritage-home .heritage-panel-content{position:relative;z-index:2}
.heritage-home .heritage-eyebrow-chip{display:inline-flex;align-items:center;gap:10px;position:relative;isolation:isolate;z-index:3}
.heritage-home .rr-chip-solid{position:relative;display:inline-grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:6px;overflow:hidden;isolation:isolate;opacity:1;mix-blend-mode:normal}
.heritage-home .rr-chip-solid--1{background:#fff}
.heritage-home .rr-chip-solid--2{background:#fff}
.heritage-home .rr-chip-solid img{display:block;width:100%;height:100%;object-fit:contain;opacity:1!important;mix-blend-mode:normal!important;filter:none!important;box-shadow:none!important;background:transparent!important;position:relative;z-index:1}
@media(max-width:1100px) and (min-width:751px){
 .heritage-home .rr-publication-card{min-height:113px;height:113px}
 .heritage-home .rr-publication-card-content{padding:12px;gap:9px}
 .heritage-home .rr-publication-card-mark{width:53px;height:53px;flex-basis:53px}
 .heritage-home .rr-publication-card-copy strong{font-size:clamp(18px,2.1vw,28px)}
 .heritage-home .rr-publication-card .rr-publication-card-arrow{font-size:24px}
}
@media(max-width:750px){
 .heritage-home .heritage-badges{grid-template-columns:1fr;gap:11px}
 .heritage-home .rr-publication-card{min-height:112px;height:112px}
 .heritage-home .rr-publication-card-mark{flex-basis:57px;width:57px;height:57px}
 .heritage-home .rr-publication-card-copy strong{font-size:clamp(26px,5vw,33px)}
 .heritage-home .rr-chip-solid{width:35px;height:35px;flex-basis:35px}
}
@media(prefers-reduced-motion:reduce){.heritage-home .rr-publication-card,.heritage-home .rr-publication-card .rr-publication-card-arrow{transition:none}}

/* Original program chip PNGs contain partially transparent ink/paper. Keep an opaque
   ivory-white plate behind each ORIGINAL numeric glyph; never repaint the numeral. */
.heritage-home .rr-chip-solid--1,.heritage-home .rr-chip-solid--2{
 background:#ffffff!important; opacity:1!important;mix-blend-mode:normal!important;
}
.heritage-home .rr-chip-solid img{opacity:1!important;filter:none!important;mix-blend-mode:normal!important}
/* Preserve short horizontal placement and original publication emblems.
   Gentle darkening over Target List prevents tiny saddlecloth lettering being read. */
.heritage-home .rr-publication-card--target:before{
 background:linear-gradient(90deg,rgba(3,17,26,.98) 0%,rgba(5,22,32,.89) 43%,rgba(4,18,29,.71) 77%,rgba(4,18,29,.57) 100%);
}

/* Final production card guardrails */
.heritage-home .rr-publication-card{border-radius:9px!important;-webkit-mask-image:none!important;mask-image:none!important;clip-path:none!important}
.heritage-home .rr-publication-card:after{border-radius:inherit!important}
