/* R-Way Immigration Services | final editorial refinement V38.
   This file intentionally loads last: it normalizes the older component layers
   without changing their chapter content or the existing interactive reader. */
:root{--rw-ink:#1d2530;--rw-wine:#8b243b;--rw-cream:#faf8f5;--rw-muted:#59616b}
html{scroll-behavior:smooth;scroll-padding-top:110px}
body{overflow-x:clip}
*,*::before,*::after{box-sizing:border-box}
:where(a,button,summary,input,textarea,select):focus-visible{outline:3px solid #c02c4d;outline-offset:4px}
.rw38-skip{position:fixed;left:12px;top:-80px;z-index:1000001;background:#fff;color:#542034;padding:12px 16px;border:2px solid #ad2743;text-decoration:none;font-weight:800;border-radius:4px}
.rw38-skip:focus{top:12px}
.site-header{box-shadow:0 1px 0 rgba(43,37,33,.09)}
.site-header .brand img{object-fit:contain}
.site-header .desktop-nav a:hover,.site-header .desktop-nav button:hover{color:var(--rw-wine)}
.site-header .nav-actions .btn.primary,.rw38-inline-actions a:first-child{background:#8f243e!important;color:#fff!important;border-color:#8f243e!important}
/* Maintain readable service headings and consistent editorial service banners. */
body.v16-design .inner-hero.left-dark,body.v16-design .inner-hero.left-dark .inner-grid{background:#f8f5f0!important;color:#1e2731!important}
body.v16-design .inner-hero.left-dark h1,body.v16-design .inner-hero.left-dark h2,body.v16-design .inner-hero.left-dark .crumb,body.v16-design .inner-hero.left-dark .crumb a{color:#1e2731!important}
body.v16-design .inner-hero.left-dark p{color:#525d67!important}
body.v16-design .inner-hero.left-dark .eyebrow{color:#8e2640!important}
body.v16-design .inner-hero h1{color:#1b2630;letter-spacing:-.045em;line-height:1.08;font-weight:740}
.inner-hero .hero-photo{border-radius:12px!important;box-shadow:0 20px 45px rgba(32,30,32,.12)!important}
.inner-hero .hero-photo img{object-fit:cover}
.inner-hero .crumb{font-size:13px!important;letter-spacing:.02em}
.rw38-inline-actions{display:flex;gap:11px;flex-wrap:wrap;margin:24px 0 0}
.rw38-inline-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:12px 17px;border:1px solid #bcacac;background:#fff;color:#6f3040;border-radius:4px;font-weight:760;font-size:13px;text-decoration:none;transition:transform .18s,box-shadow .18s}
.rw38-inline-actions a:hover{transform:translateY(-2px);box-shadow:0 5px 16px #391d2517}
.content-shell .service-detail{border-color:#e8e3dd;border-radius:12px;box-shadow:0 3px 12px #161b2020}
.content-shell .service-detail summary{min-height:67px}
.content-shell .service-detail summary:hover{background:#fbf6f2}
.content-shell .service-detail summary strong{color:#202a34}
.content-shell .service-detail[open]>summary{background:#f7f1ec}
/* Homepage hero: direct, high-contrast copy, with the real government-building imagery. */
body.v19-approved-home .rw-home-hero{min-height:540px;background:#141b25}
body.v19-approved-home .rw-home-hero .hero-bg:after{content:'';position:absolute;inset:0;background:linear-gradient(92deg,rgba(12,20,28,.67),rgba(12,20,28,.48) 50%,rgba(20,18,25,.30))}
body.v19-approved-home .rw-home-hero .hero-copy h1{max-width:780px;font-family:Georgia,'Times New Roman',serif;font-weight:500;font-size:clamp(46px,5.15vw,80px);letter-spacing:-.048em;line-height:1.1}
body.v19-approved-home .rw-home-hero .hero-copy h1 em{font-weight:400;color:#fff1eb}
body.v19-approved-home .rw-home-hero .hero-copy>p:not(.rw-home-hero-foot){max-width:600px;font-size:clamp(16px,1.3vw,19px);line-height:1.7;color:#fff8f4}
body.v19-approved-home .rw-home-hero .hero-actions{margin-top:25px}
body.v19-approved-home .rw-home-hero .hero-actions .btn{min-height:47px;display:inline-flex;align-items:center;gap:8px;border-radius:4px}
body.v19-approved-home .rw-home-hero .hero-panel{border:1px solid #ffffff36;backdrop-filter:blur(8px);border-radius:6px}
/* Service finder is a text navigation strip, NOT an extra image gallery. */
.rw38-pathways{background:#fff;box-shadow:0 1px 0 #e8e2dc;border-bottom:1px solid #eae5df}
.rw38-pathways-inner{max-width:1350px;margin:auto;display:grid;grid-template-columns:235px minmax(0,1fr);gap:28px;align-items:center;padding:28px clamp(20px,4vw,54px)}
.rw38-pathways-intro{display:grid;gap:6px}
.rw38-pathways-intro>span,.rw38-kicker{color:#9d2942;font:800 10px/1.4 Inter,Arial,sans-serif;letter-spacing:.17em}
.rw38-pathways-intro strong{font:500 20px/1.2 Georgia,serif;color:#1d2932}
.rw38-pathways-links{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.rw38-pathways-links a{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:58px;text-decoration:none;padding:12px 12px;background:#f9f6f2;border:1px solid #e9e0da;border-radius:5px;color:#24303a;font:720 12px/1.36 Inter,Arial,sans-serif;transition:background .18s,border-color .18s}
.rw38-pathways-links a span{color:#9b2540;font-size:17px}
.rw38-pathways-links a:hover{background:#f5e8e4;border-color:#b7979d}
/* Preserve the tactile bookshelf; keep it subordinate to clear services navigation. */
.rwb27-service-section{background:#faf8f5!important;padding-bottom:84px!important}
.rwb27-copy h2{font-weight:500!important;letter-spacing:-.04em!important}
.rwb27-copy>p{max-width:58ch!important}
.rwb27-libraryarea{max-width:1300px!important;border:1px solid #45312a!important;box-shadow:0 22px 42px #291e1b24,inset 0 0 0 7px #39241f,inset 0 0 0 9px #98765d55!important}
.rwb27-pretitle{color:#f7e9d8!important}
.rwe-v35-shelf{background:linear-gradient(180deg,#301c189e,#40291fd6)!important}
.rwb27-bookshelf .rwe-book.rwe-v35-book{filter:none!important}
.rwe-v35-cover{box-shadow:inset 0 0 0 1px #ead8c6,inset 3px 0 4px #55233555,7px 11px 16px #1b0e0aaa!important}
/* Book reader: crisp paper spread, generous controls, subtle page depth. */
.rwe-overlay .rwe-book-shell{box-shadow:0 18px 42px #0008,inset 0 0 2px #d5aa87!important}
.rwe-overlay .rwe-left,.rwe-overlay .rwe-right{color:#1a2630}
.rwe-overlay .rwe-overview,.rwe-overlay .rwe-overviewblock p{color:#424a52}
.rwe-overlay .rwe-toc-link{color:#1f2d3b!important}
.rwe-overlay .rwe-actions button{min-height:42px}
.rwe-overlay .rwe-right h3{color:#a3233b!important}
/* Replace blank embedded-social placeholder cards with polished actual outbound links. */
.rw38-follow{background:#f3f0ec;padding:70px clamp(19px,4vw,62px);border-top:1px solid #e6dfd6;border-bottom:1px solid #e8e1d9}
.rw38-section-inner{max-width:1290px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(380px,.85fr);gap:clamp(38px,6vw,120px);align-items:center}
.rw38-follow h2,.rw38-reviews h2{font:500 clamp(32px,3.5vw,53px)/1.13 Georgia,'Times New Roman',serif;letter-spacing:-.04em;color:#1d2934;margin:15px 0 16px}
.rw38-follow h2 em,.rw38-reviews h2 em{font-weight:400;color:#86243b}
.rw38-follow p,.rw38-reviews p{max-width:53ch;color:#515b61;line-height:1.75;font-size:15px}
.rw38-follow-links{display:grid;gap:10px}
.rw38-follow-links a{display:grid;grid-template-columns:46px 1fr 18px;gap:15px;align-items:center;text-decoration:none;color:#26323a;background:#fff;border:1px solid #e7ddd6;padding:15px 17px;border-radius:7px;transition:border-color .18s,transform .18s}
.rw38-follow-links a:hover{transform:translateX(3px);border-color:#aa7a86}
.rw38-follow-links a>span:last-child{color:#aa2847}
.rw38-social-mark{width:45px;height:45px;background:#f7efeb;color:#a72943;border-radius:5px;display:grid;place-items:center;font-size:23px}
.rw38-follow-links a span:nth-child(2){display:grid;gap:4px}
.rw38-follow-links b{font:750 15px/1.3 Inter,Arial,sans-serif}
.rw38-follow-links small{font:450 12px/1.3 Inter,Arial,sans-serif;color:#6f7379}
/* Verifiable trust-first presentation instead of unidentified quotations. */
.rw38-reviews{padding:73px clamp(19px,4vw,62px);background:#fff}
.rw38-review-actions{display:grid;gap:13px}
.rw38-review-actions a{display:flex;justify-content:space-between;align-items:center;gap:20px;border-bottom:1px solid #dfd5ce;padding:18px 9px;text-decoration:none;color:#742239;font-weight:740;transition:background .2s}
.rw38-review-actions a:hover{background:#faf5f2}
.rw38-review-actions a span{color:#992b44}
/* Compact, legible and consistent footer. */
.rw-site-footer{margin-top:0!important;padding:47px clamp(18px,4vw,50px) 23px!important;border-top:4px solid #90273d!important}
.rw-site-footer .rw-footer-grid{gap:clamp(30px,5vw,80px)!important}
.rw-site-footer .rw-footer-logo{height:83px!important;width:165px!important;padding:8px!important;border-radius:6px!important}
.rw-site-footer .rw-footer-title{font-size:clamp(20px,2vw,27px)!important;letter-spacing:-.02em!important;color:#fff!important}
.rw-site-footer .rw-license-card{max-width:480px}
.rw-site-footer .rw-credential-mark{height:auto!important;max-height:60px!important;max-width:220px!important;width:100%!important;object-fit:contain!important;object-position:left center!important;background:#fff;border-radius:4px;padding:5px}
.rw-site-footer a{transition:color .2s}
.rw-site-footer a:hover{color:#efb4bf}
/* Keep mobile phone reader useful: the article portion is the largest pane. */
@media(max-width:1050px){
.rw38-pathways-inner{grid-template-columns:1fr;gap:16px}
.rw38-pathways-links{grid-template-columns:repeat(3,minmax(0,1fr))}
.rw38-section-inner{grid-template-columns:1fr;gap:24px}
.rw38-follow,.rw38-reviews{padding:58px 24px}
}
@media(max-width:720px){
body.v19-approved-home .rw-home-hero .hero-copy h1{font-size:clamp(40px,9vw,55px)}
.rw38-pathways-inner{padding:22px 18px}
.rw38-pathways-links{grid-template-columns:repeat(2,minmax(0,1fr))}
.rw38-pathways-links a:last-child{grid-column:1/-1}
.rw38-pathways-links a{min-height:49px}
.rw38-follow,.rw38-reviews{padding:55px 20px}
.rw38-follow h2,.rw38-reviews h2{font-size:clamp(30px,8vw,43px)}
.rw38-follow-links a{padding:12px 13px}
.rwe-overlay .rwe-book-shell{grid-template-rows:minmax(160px,30%) minmax(0,70%)!important}
.rwe-overlay .rwe-center{top:calc(30% - 7px)!important}
.rwe-overlay .rwe-left .rwe-page-scroll{padding:8px 14px!important}
.rwe-overlay .rwe-right .rwe-page-scroll{padding:13px 16px!important}
.rwe-overlay .rwe-right .rwe-overview{font-size:13px;line-height:1.56}
.rwe-overlay .rwe-cover-page .rwe-left-title{font-size:clamp(21px,6vw,32px)!important;line-height:1.05!important}
.rwe-overlay .rwe-cover-index .rwe-toc-link{font-size:12px!important;min-height:36px!important}
.rwe-overlay .rwe-stage{padding:7px 5px!important}
.rwe-overlay .rwe-window{height:calc(100dvh - 8px)!important}
.rwe-overlay .rwe-reader-hint{display:none!important}
.rwe-overlay .rwe-bottom{padding:8px 10px!important}
.rwe-overlay .rwe-bottom .rwe-actions{margin-left:auto!important}
.inner-hero .hero-photo{height:240px!important}
.rw38-inline-actions a{flex:1}
}
@media(max-width:390px){
.rw38-pathways-links{grid-template-columns:1fr 1fr;gap:8px}
.rw38-pathways-links a{font-size:11px;padding:9px}
.rwe-overlay .rwe-right .rwe-page-scroll{padding:10px 12px!important}
.rwe-overlay .rwe-top{padding:8px 9px!important}
.rwe-overlay .rwe-brand strong{font-size:15px!important}
.rwe-overlay .rwe-actions button{padding:9px!important}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.rw38-follow-links a,.rw38-pathways-links a,.rw38-inline-actions a{transition:none}}
