/* Home editorial layout, based on the approved ivory + navy reference. */
body.rw-home{--ink:#15234b;--paper:#fff;--orange:#e2562f;--line:#e5e0d8;background:white;color:#15234b}
.rw-home main{max-width:1280px;padding:0 4%}
.rw-home .regionbar{max-width:1280px;margin:0 auto;padding:14px 4% 18px;border-bottom:1px solid #e5e0d8;background:#fff;font-size:12px;color:#70798b;gap:12px}
.rw-home .regionbar select{border:1px solid #e5e0d8;border-radius:6px;min-height:36px;background:#fff;color:#15234b;padding:5px 10px;font-size:12px}
.rw-home .portal-top{padding:30px 0 22px;border:0}
.rw-home .portal-title{display:none}
.rw-home .leadgrid{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) minmax(0,.7fr);gap:28px;align-items:stretch}
.rw-home .leadstory{height:auto;min-height:0;position:static;background:none;color:#15234b;overflow:visible;border-radius:0;align-self:start;display:block;text-align:left;text-decoration:none}
.rw-home .regionHeroArt{position:relative;height:auto!important;aspect-ratio:16/10;min-height:0!important;background:#15234b;border-radius:13px;overflow:hidden;width:100%}
.rw-home .regionHeroArt svg,.rw-home .regionHeroArt>img{width:100%;height:100%;object-fit:cover;display:block}
.rw-home .leadoverlay{position:static;display:block;background:none;padding:15px 0 0;color:#15234b}
.rw-home .leadoverlay>span{font-size:11px;color:#747d8e;letter-spacing:0}
.rw-home .leadoverlay h2{font-size:clamp(24px,2.3vw,32px);line-height:1.4;letter-spacing:-1px;margin:12px 0}
.rw-home .leadoverlay p{font-size:14px;line-height:1.8;color:#6e7789;margin:0}
.rw-home .topstories{justify-content:flex-start;gap:18px}
.rw-home .topitem{padding:0 0 18px;border-color:#e5e0d8;align-items:flex-start;gap:15px;color:#15234b;text-decoration:none}
.rw-home .tinyart{width:42%;height:auto;aspect-ratio:1.6;border:1px solid #e5e0d8;border-radius:8px;background:#faf6ee}
.rw-home .smallmeta{font-size:10px;color:#747d8e;letter-spacing:0;display:block;overflow-wrap:anywhere}
.rw-home .topitem h2{font-size:16px;line-height:1.45;margin:7px 0;letter-spacing:-.4px;overflow-wrap:anywhere}
.rw-home .topitem small{font-size:12px;line-height:1.7;color:#6e7789;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.rw-home .briefbox{border:0;background:#15234b;color:#faf6ee;border-radius:13px;padding:26px 24px}
.rw-home .briefbox>.boxhead{display:none}
.rw-home .briefbox .eyebrow{font-size:10px;letter-spacing:1.5px;color:#ff7a52;margin:0 0 18px}
.rw-home .briefbox h3{font-size:24px;line-height:1.45;margin:0 0 16px}
.rw-home .briefbox p:not(.eyebrow){font-size:13px;line-height:1.8;color:#c1c8da}
.rw-home .minilinks{gap:0;margin:20px 0 0}
.rw-home .minilinks a{font-size:13px;border-top:1px solid #ffffff20;padding:12px 0;color:#faf6ee;min-height:44px;text-decoration:none;font-weight:600}
.rw-home .runner-shortcuts{padding:16px 0 36px;gap:18px}
.rw-home .runner-banner{border-color:#e5e0d8;border-radius:12px;background:#fff;min-height:90px;color:#15234b;padding:18px 22px;box-shadow:none}
.rw-home .runner-banner.navy{background:#15234b;color:#faf6ee;border-color:#15234b}
.rw-home .runner-banner.sage{background:white}
.rw-home .runner-banner.cream{background:#fdf0e9}
.rw-home .runner-banner .banner-icon,.rw-home .runner-banner.navy .banner-icon{color:#ef663e;width:28px;height:28px;flex-basis:28px}
.rw-home .banner-copy strong{font-size:17px;line-height:1.5}.rw-home .banner-copy>span{font-size:12px}
.rw-home .korean-races{position:relative;isolation:isolate;background:#faf6ee;border:0;padding:32px 0 36px;margin:0}
.rw-home .korean-races:before{content:'';position:absolute;inset:0 calc(50% - 50vw);background:#faf6ee;z-index:-1;border-block:1px solid #eee7de}
.rw-home .korean-races .sectionhead{margin-top:0;align-items:end}
.rw-home .eyebrow{color:#e2562f;font-size:11px;letter-spacing:1.6px}
.rw-home .sectionhead h2{font-size:28px;letter-spacing:-.8px;color:#15234b}
.rw-home .korean-races .sectionhead>small{color:#747d8e;font-size:11px}
.rw-home .calendar-entry-link{color:#15234b;text-decoration:underline;text-underline-offset:4px;font-size:12px;font-weight:600}
.rw-home #koreanRaceCards{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-top:22px}
.rw-home #koreanRaceCards .kr-race{border:1px solid #e5e0d8;border-radius:13px;background:white;padding:20px;box-shadow:none}
.rw-home #koreanRaceCards .race-date{color:#15234b;gap:4px}
.rw-home #koreanRaceCards .race-year,.rw-home #koreanRaceCards .race-weekday{font-size:11px;color:#747d8e}
.rw-home #koreanRaceCards .race-date strong{font-size:28px;letter-spacing:-1px}
.rw-home #koreanRaceCards .race-logo{height:56px;margin-bottom:14px;border-color:#f0ece5;border-radius:7px;padding:8px}
.rw-home #koreanRaceCards .race-logo img{max-height:40px}
.rw-home #koreanRaceCards .dday{border:0;background:#fff0e9;color:#ca4f2b;padding:5px 9px;font-size:11px}
.rw-home #koreanRaceCards .race-country,.rw-home #koreanRaceCards .race-local-date,.rw-home #koreanRaceCards .race-card-footer small{color:#747d8e}
.rw-home #koreanRaceCards .kr-race h3{font-size:18px;color:#15234b}
.rw-home #koreanRaceCards .race-card-links{gap:8px}
.rw-home #koreanRaceCards .race-card-links a{font-size:11px;border:1px solid #e5e0d8;border-radius:6px;padding:7px 9px;min-height:36px;color:#15234b}
.rw-home .race-disclaimer{font-size:11px;color:#7a8190;line-height:1.7}
.rw-home .portal-grid{display:block;padding:38px 0 0}
.rw-home .latest .sectionhead input{border:1px solid #e5e0d8;border-radius:8px;max-width:none;width:270px;min-height:42px;padding:10px 14px;background:#fff}
.rw-home #cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px 22px}
.rw-home #cards .card{display:block;min-height:0;padding:0;border:0;color:#15234b}
.rw-home #cards .cardart{width:100%;height:auto;aspect-ratio:1.6;border:1px solid #e5e0d8;border-radius:8px;background:#faf6ee}
.rw-home #cards .card h3{font-size:16px;line-height:1.55;letter-spacing:-.4px}
.rw-home #cards .card .meta{font-size:10px;color:#747d8e;letter-spacing:0;margin:12px 0 7px}
.rw-home #cards .card .desc{font-size:12px;color:#747d8e;line-height:1.7}
.rw-home .scope{font-size:11px;color:#747d8e}
.rw-home .filters button{font-size:11px;min-height:34px;border-color:#e5e0d8}
.rw-home .portal-sidebar{display:grid;grid-template-columns:1fr 1fr 1fr;gap:24px;margin:40px 0}
.rw-home .sidebox{border-color:#e5e0d8;border-radius:12px;padding:22px}
.rw-home .sidecommunity{background:#faf6ee}.rw-home .sidecommunity p:not(.eyebrow),.rw-home .racelink,.rw-home .footnote{color:#6e7789}
.rw-home .recommend,.rw-home .racelink,.rw-home .boxhead{border-color:#e5e0d8}
.rw-home .recommend small{font-size:10px;color:#747d8e;line-height:1.6}
.rw-home .number{color:#e2562f}
.rw-home .running-guides{border-color:#e5e0d8;padding:20px 0 32px}
.rw-home .running-guides .muted,.rw-home .guide-card p{color:#6e7789}
.rw-home .guide-card{border-color:#e5e0d8}.rw-home .guide-card h3{color:#15234b}
.rw-home .video{border-color:#e5e0d8}.rw-home .videobox{background:#15234b;border-radius:12px}
.rw-home .video p{color:#6e7789}.rw-home .videobox p{color:#c1c8da}
.rw-home .dark{background:#15234b;color:#faf6ee;border-radius:7px}
.rw-home #community{padding:0 0 20px}.rw-home .journal{border-color:#e5e0d8;background:#fffdf8}
.rw-home button:focus-visible,.rw-home a:focus-visible{outline:3px solid #e2562f;outline-offset:4px}
@media(max-width:1100px){.rw-home .leadgrid{grid-template-columns:1.2fr 1fr}.rw-home .briefbox{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:0 30px}.rw-home .briefbox .eyebrow{grid-column:1/-1}.rw-home .briefbox .minilinks{grid-column:2;grid-row:2/4;margin:0}.rw-home #koreanRaceCards{grid-template-columns:repeat(2,minmax(0,1fr))}.rw-home #cards{grid-template-columns:repeat(3,minmax(0,1fr))}.rw-home .portal-sidebar{grid-template-columns:1fr 1fr}.rw-home .sidecommunity{grid-column:1/-1}}
@media(max-width:760px){
 .rw-home main{padding:0 20px}.rw-home .regionbar{padding:12px 20px;display:flex;flex-wrap:wrap;gap:6px 12px;font-size:11px}.rw-home #regionStatus{font-size:10px}
 .rw-home .portal-top{padding:24px 0 16px}.rw-home .leadgrid{display:block}.rw-home .leadoverlay h2{font-size:25px}.rw-home .leadoverlay p{font-size:13px}
 .rw-home .topstories{margin-top:26px;gap:16px}.rw-home .topitem{gap:15px;padding-bottom:16px}.rw-home .tinyart{width:35%;max-width:150px}.rw-home .topitem h2{font-size:15px}.rw-home .topitem small{-webkit-line-clamp:2;font-size:11px}
 .rw-home .briefbox{display:block;margin-top:24px;padding:22px}.rw-home .briefbox h3{font-size:23px}.rw-home .briefbox .minilinks{margin-top:18px}
 .rw-home .runner-shortcuts{grid-template-columns:1fr;padding:8px 0 26px;gap:10px}.rw-home .runner-banner{min-height:74px;padding:14px 18px}.rw-home .banner-copy strong{font-size:16px}
 .rw-home .korean-races{padding:26px 0}.rw-home .sectionhead h2{font-size:24px}.rw-home #koreanRaceCards{gap:12px}.rw-home #koreanRaceCards .kr-race{padding:16px}.rw-home #koreanRaceCards .race-date strong{font-size:25px}
 .rw-home #koreanRaceCards .race-card-top{flex-wrap:wrap;gap:8px}.rw-home #koreanRaceCards .kr-race h3{font-size:16px}.rw-home #koreanRaceCards .race-local-date{margin-bottom:15px}
 .rw-home .portal-grid{padding-top:28px}.rw-home .latest .sectionhead{align-items:stretch}.rw-home .latest .sectionhead label{width:100%}.rw-home .latest .sectionhead input{width:100%}
 .rw-home #cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 15px}.rw-home #cards .card h3{font-size:14px}.rw-home #cards .card .desc{display:none}
 .rw-home .portal-sidebar{grid-template-columns:1fr;gap:18px;margin:30px 0}.rw-home .sidecommunity{grid-column:auto}.rw-home .video{grid-template-columns:1fr}.rw-home .journals{grid-template-columns:1fr}
}
@media(max-width:380px){.rw-home #koreanRaceCards{grid-template-columns:1fr}}
.rw-home{overflow-x:clip}

/* Full card art owns its typography/brand, including in compact lead stories. */
.rw-story-card{width:100%;height:100%;object-fit:contain!important;background:#faf6ee}.rw-story-photo{width:100%;height:100%;object-fit:cover}.regionHeroArt,.leadArt,.art{position:relative}.art .photolabel{max-width:100%;font-size:9px}.rw-story-card~.runworld-art-brand{display:none}

.rw-home .regionHeroArt:has(.rw-story-card),.rw-home .tinyart:has(.rw-story-card),.rw-home .cardart:has(.rw-story-card){aspect-ratio:16/9;height:auto!important}.rw-home .cardart:has(.rw-story-card){min-height:0}.cardart .rw-story-image{display:block}.guide-card:has(.rw-story-card) img{object-fit:contain}

.rw-story-graphic{object-fit:contain!important;background:#faf6ee}.rw-home .regionHeroArt:has(.rw-story-graphic),.rw-home .tinyart:has(.rw-story-graphic),.rw-home .cardart:has(.rw-story-graphic){background:#faf6ee}

/* One primary card link, with independent save/official/calendar actions above it. */
.kr-race{position:relative}.race-card-primary{color:inherit;text-decoration:none}.race-card-primary::after{content:"";position:absolute;inset:0;z-index:1;border-radius:inherit}.race-card-primary:focus-visible{outline:none}.kr-race:has(.race-card-primary:focus-visible){outline:3px solid #e2562f;outline-offset:4px}.kr-race:has(.race-card-primary:hover) h3{color:#d94c26}.race-card-links a{position:relative;z-index:2}

/* Compact square race tiles. Keep full-size touch targets and allow text to grow. */
.rw-home #koreanRaceCards .race-card-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%}
.rw-home #koreanRaceCards .race-card-links a,.rw-home #koreanRaceCards .race-card-links .race-calendar-add{display:flex;align-items:center;justify-content:center;gap:5px;width:100%;min-width:0;min-height:44px;box-sizing:border-box;margin:0;padding:8px 5px;border:1px solid #e5e0d8;border-radius:7px;background:#fff;font-size:11px;line-height:1.4;text-align:center;text-decoration:none;white-space:normal}
.rw-home #koreanRaceCards .race-card-links a:hover{background:#faf6ee}
.rw-home #koreanRaceCards .race-card-links a:first-child{background:#faf6ee}
.rw-home #koreanRaceCards .race-calendar-add>span{margin:0}
@media(max-width:760px){
 .rw-home .korean-races .sectionhead{display:block}
 .rw-home .korean-races .sectionhead>small{display:block;margin-top:8px;font-size:12px}
 .rw-home .korean-races .calendar-entry-link{display:inline-block;margin-top:4px;min-height:32px;line-height:32px;font-size:13px}
 .rw-home #koreanRaceCards{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
 .rw-home #koreanRaceCards .kr-race{width:100%;aspect-ratio:1;box-sizing:border-box;padding:18px;min-width:0;overflow:visible}
 .rw-home #koreanRaceCards .race-card-top{flex-wrap:nowrap;margin-bottom:12px;gap:8px}
 .rw-home #koreanRaceCards .race-date{gap:5px;white-space:nowrap}
 .rw-home #koreanRaceCards .race-date strong{font-size:28px}
 .rw-home #koreanRaceCards .dday{white-space:nowrap;font-size:11px;padding:4px 8px}
 .rw-home #koreanRaceCards .race-logo{height:48px;box-sizing:border-box;padding:7px 12px;margin:0 0 12px}
 .rw-home #koreanRaceCards .race-logo img{max-height:34px;max-width:210px}
 .rw-home #koreanRaceCards .race-country{font-size:11px;margin:0 0 5px}
 .rw-home #koreanRaceCards .kr-race h3{font-size:19px;line-height:1.4;margin:0 0 12px;letter-spacing:-.4px}
 .rw-home #koreanRaceCards .race-local-date,.rw-home #koreanRaceCards .race-card-footer>small{display:none}
 .rw-home #koreanRaceCards .race-card-footer{padding-top:12px}
 .rw-home #koreanRaceCards .race-card-links{margin-top:0;gap:8px}
 .rw-home #koreanRaceCards .race-card-links a,.rw-home #koreanRaceCards .race-card-links .race-calendar-add{font-size:12px;min-height:44px;padding:8px 6px}
}
@media(max-width:600px){.rw-home #koreanRaceCards{grid-template-columns:minmax(0,1fr)}}

.rw-home .home-heading{font-size:clamp(16px,1.5vw,20px);line-height:1.5;color:#13224a;margin:20px 0 4px;font-weight:600}
