/* RYAN OFFICIO FRONT CANON v2.2 — index/consult only, load after officio_common.css */
:root{--paper:#f6f5f1;--sheet:#fff;--ink:#202b33;--ink-soft:#64727b;--line:#dce3e1;--sans:system-ui,-apple-system,'Segoe UI',sans-serif;--serif:var(--sans);--latin:var(--sans);--of-teal:#137d72}
html,body{background:var(--paper)!important;color:var(--ink);font-family:var(--sans)!important;line-height:1.6}
body{min-width:0;padding-bottom:max(125px,calc(100px + env(safe-area-inset-bottom)))}
body *,body *:before,body *:after{box-sizing:border-box}
body .shell{width:min(1120px,100%);max-width:1120px;margin:auto;padding:0 clamp(18px,4vw,44px)}
body .site-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:26px 0 21px;border-bottom:1px solid var(--line)}
body .wordmark{font:800 24px/1.2 var(--sans);letter-spacing:.17em;color:var(--ink);text-decoration:none}
body .lang{font-size:12px;line-height:1.5;font-weight:600;text-align:right;color:var(--ink-soft)}
body .lang small{font-size:11px;font-weight:400}
body .hero{padding:clamp(46px,7vw,90px) 0 29px;max-width:850px}
body .hero .eyebrow,body .page-head .eyebrow{font-size:11px;font-weight:800;line-height:1.5;letter-spacing:.18em;color:var(--of-teal);margin:0 0 19px}
body .hero h1,body .page-head h1{font-family:var(--sans);font-size:clamp(36px,5vw,65px);font-weight:780;line-height:1.17;letter-spacing:-.055em;word-break:keep-all}
/* RYAN-ZH-WRAP-v2: natural wrapping in Chinese titles only. */
html:lang(zh) body .hero h1,html:lang(zh) body .page-head h1{word-break:normal}

body .hero p,body .page-head p{font-size:clamp(15px,1.6vw,18px);color:var(--ink-soft);line-height:1.85;margin:24px 0 0;max-width:680px;word-break:keep-all}
body .consult-card{max-width:920px;background:#fff;border:1px solid var(--line);padding:28px;margin:14px 0 22px;border-radius:20px;box-shadow:0 18px 48px rgba(28,47,53,.07)}
body .consult-label{font-size:14px;font-weight:800;margin-bottom:12px}
body .consult-box{min-height:146px;max-width:100%;border:1.5px solid #d2dbd8;border-radius:12px;background:#f8faf9;padding:17px 18px;font:inherit;line-height:1.65;color:var(--ink);outline:0}
body .consult-box:focus{border-color:var(--of-teal);box-shadow:0 0 0 3px rgba(19,125,114,.13)}
body .consult-box::placeholder{color:#7d898d;opacity:1}
body .consult-actions{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;margin-top:14px}
body .privacy-hint{flex:1;min-width:180px;font-size:12px;line-height:1.7;color:var(--ink-soft)}
body button.primary{background:var(--of-teal);border:1px solid var(--of-teal);border-radius:10px;min-height:48px;padding:14px 28px;color:#fff;font:750 15px/1.2 var(--sans);cursor:pointer;white-space:nowrap}
body button.primary:hover{background:#0e625b;border-color:#0e625b}
body button.primary:focus-visible,body a:focus-visible{outline:3px solid var(--of-teal);outline-offset:3px}
body .chips{display:flex;flex-wrap:wrap;gap:10px;max-width:980px;margin:0 0 65px}
body .chips .chip{display:inline-flex;align-items:center;min-height:43px;border:1px solid var(--line);background:#fff;border-radius:99px;padding:9px 16px;text-decoration:none;color:#314951;font-size:13px;font-weight:650;line-height:1.35}
body .chips .chip:hover{border-color:var(--of-teal);color:var(--of-teal)}
body .trust-band{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;border-top:1px solid var(--line);padding:30px 0 43px}
body .trust-item{background:#edf3f0;border:1px solid #e0e9e4;border-radius:14px;padding:22px;min-width:0}
body .trust-item b{display:block;font-size:15px;margin-bottom:9px}
body .trust-item span{display:block;color:var(--ink-soft);font-size:13px;line-height:1.8;word-break:keep-all}
body .legal-slot{border-top:1px solid var(--line);padding:25px 0 50px;font-size:12px;line-height:1.9;color:var(--ink-soft)}
body .legal-slot p{margin:0 0 9px}
body .legal-slot .brand{font:800 15px/1.4 var(--sans);letter-spacing:.15em;color:var(--ink)}
body .legal-slot .links a{color:var(--ink);text-underline-offset:3px}
body .page-head{padding:clamp(46px,6vw,75px) 0 35px}
body .page-head h1{font-size:clamp(32px,4.2vw,52px)}
body .grid-2{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:20px;align-items:start}
body .grid-2 .panel{min-width:0;background:#fff;border:1px solid var(--line);border-radius:18px;padding:26px;box-shadow:0 10px 35px rgba(25,45,50,.04)}
body .grid-2 .panel h2{font-size:18px;font-weight:800;margin:0 0 17px}
body .grid-2 .consult-box{min-height:224px}
body .topic-list{display:grid;gap:15px}
body .topic-row{padding:0 0 15px;border-bottom:1px solid var(--line)}
body .topic-row:last-child{border-bottom:0}
body .topic-row strong{display:block;font-size:14px;margin-bottom:5px}
body .topic-row small{display:block;font-size:12px;color:var(--ink-soft);line-height:1.8}
body .notice{background:#edf3f0;border-left:3px solid var(--of-teal);padding:17px 20px;margin:25px 0 55px;font-size:13px;color:var(--ink-soft);line-height:1.8}
@media(max-width:760px){body .site-head{padding:19px 0 17px}body .wordmark{font-size:19px}body .hero{padding:43px 0 20px}body .hero h1{font-size:clamp(35px,9vw,49px)}body .hero p{font-size:15px;margin-top:19px}body .consult-card{padding:19px 16px;border-radius:16px}body .consult-box{min-height:130px;font-size:16px}body .consult-actions{align-items:stretch;gap:11px}body .privacy-hint{flex-basis:100%}body button.primary{width:100%}body .chips{margin-bottom:40px;gap:8px}body .trust-band{grid-template-columns:1fr;padding:24px 0 33px}body .trust-item{padding:17px 19px}body .grid-2{grid-template-columns:1fr}body .grid-2 .panel{padding:18px;border-radius:14px}body .grid-2 .consult-box{min-height:170px}body .page-head{padding:40px 0 26px}}

/* ============ ALL CUSTOMER PAGE OVERRIDES / v3 ============ */
:root{--bg:#f6f5f1;--fg:#202b33;--muted:#64727b;--border:#dce3e1;--accent:#137d72;--radius:14px;--seat:#eaf1ee;--line-faint:#dce3e1}
body[data-officio-canon="v3"]{background:#f6f5f1!important;color:#202b33!important;font:400 16px/1.65 system-ui,-apple-system,"Segoe UI",sans-serif!important}
body[data-officio-canon="v3"] :is(h1,h2,h3,h4,.hero-h1,.page-title,.pg-title,.hero h1,.three p,.item h3,.card-title,.logo){font-family:system-ui,-apple-system,"Segoe UI",sans-serif!important;letter-spacing:-.035em}
body[data-officio-canon="v3"] :is(a,button,input,textarea,select){font-family:inherit}
body[data-officio-canon="v3"] :is(a,button,input,textarea,select):focus-visible{outline:3px solid #137d72!important;outline-offset:3px}
body[data-officio-canon="v3"] :is(input:not([type="radio"]):not([type="checkbox"]),select,textarea){max-width:100%;border-radius:10px;background:#fff;color:#202b33}
body[data-officio-canon="v3"] :is(.shell,.section,.nav,.page-header,.pg-hdr,.main,.content){min-width:0}
body[data-officio-canon="v3"] :is(.hero-h1,.page-title,.pg-title){color:#202b33!important;font-weight:750!important;line-height:1.19!important}
body[data-officio-canon="v3"] :is(.hero-body,.page-sub,.pg-sub,.intro,.sub){color:#64727b!important;line-height:1.75}
body[data-officio-canon="v3"] :is(.eyebrow,.page-eyebrow,.section-label,.done-label){color:#137d72!important;font-family:inherit!important;font-weight:750;letter-spacing:.12em}
body[data-officio-canon="v3"] :is(.logo,.wordmark){font-family:system-ui,-apple-system,"Segoe UI",sans-serif!important;font-weight:800!important;letter-spacing:.12em!important;color:#202b33!important;text-decoration:none}
body[data-officio-canon="v3"] :is(.btn-primary,.btn-ink,.solid,.primary,.btn-primary a){background:#137d72!important;border-color:#137d72!important;color:#fff!important;border-radius:10px!important;min-height:44px}
body[data-officio-canon="v3"] :is(.btn-primary,.btn-ink,.solid,.primary):hover{background:#0c5f56!important}
body[data-officio-canon="v3"] :is(.item,.bigdoor,.choice,.qa,.step,.id-card,.plan,.per-use-item,.opt,.entity-btn,.form-panel){border-color:#dce3e1!important}
body[data-officio-canon="v3"] :is(.id-card,.plan,.per-use-item,.form-panel,.result,.verdict){border-radius:14px!important}
/* The standalone business and start flows must retain native grid dimensions and form state. */
body[data-officio-canon="v3"] :is(.id-card,.plan,.per-use-item,.entity-btn,.form-panel){box-shadow:0 10px 32px rgba(18,39,44,.045)}
body[data-officio-canon="v3"] :is(.logo-sub,.tagline,.nav-back,.section-title){font-family:inherit!important}
/* Existing legacy /extend_start, /forms, /guide, /id pages. */
body[data-officio-canon="v3"] .shell{width:min(1120px,100%);max-width:1120px;margin-inline:auto;padding-inline:clamp(18px,4vw,44px)}
body[data-officio-canon="v3"] .hero h1{font-size:clamp(34px,4.8vw,59px)!important;line-height:1.22!important;font-weight:750!important}
body[data-officio-canon="v3"] .three p{font-size:clamp(16px,1.8vw,21px);line-height:1.6}
body[data-officio-canon="v3"] .cap{border-color:#202b33}
body[data-officio-canon="v3"] .cap h2{font-family:inherit;font-size:22px;font-weight:750}
body[data-officio-canon="v3"] .item{padding:21px 16px;background:rgba(255,255,255,.64);border:1px solid #dce3e1;border-radius:12px;margin:10px 0;transition:border-color .18s}
body[data-officio-canon="v3"] .item:hover{border-color:#137d72}
body[data-officio-canon="v3"] .item h3{font-family:inherit;font-weight:650}
body[data-officio-canon="v3"] .bigdoor{border:1px solid #dce3e1!important;border-radius:14px!important;padding:22px!important;box-shadow:0 10px 32px rgba(18,39,44,.04)}
body[data-officio-canon="v3"] .choice{padding:15px 14px;border-radius:10px}
body[data-officio-canon="v3"] .verdict{background:#fff;border:1px solid #dce3e1;padding:23px;box-shadow:0 12px 32px rgba(18,39,44,.05)}
body[data-officio-canon="v3"] .verdict p{font-family:inherit}
/* Wizard: preserve viewport percentages, document viewer, stage IDs, and responsive geometry. */
body[data-officio-canon="v3"] :is(#jmode,#ov){background:#f6f5f1}
body[data-officio-canon="v3"] :is(.jz-doc,.jz-done,.jz-input,.stage-form){border-color:#dce3e1}
body[data-officio-canon="v3"] .stage-form :is(input,select,textarea){border-radius:8px!important;border:1px solid #b8c7c5!important;min-height:42px}
body[data-officio-canon="v3"] .stage-form :is(input,textarea,select):focus{border-color:#137d72!important}
body[data-officio-canon="v3"] :is(.jz-close,.opendoc){border-radius:9px!important}
/* Multilingual unemployment assessments: maintain .step/.opt click handling. */
body[data-officio-canon="v3"] .pg-hdr{background:transparent!important}
body[data-officio-canon="v3"] :is(.prog-bar,.prog-fill){border-radius:99px!important}
body[data-officio-canon="v3"] .prog-fill{background:#137d72!important}
body[data-officio-canon="v3"] .opt{border-radius:12px!important;background:#fff!important}
body[data-officio-canon="v3"] .opt:hover{border-color:#137d72!important}
body[data-officio-canon="v3"] :is(.opt.selected,.opt.on){background:#edf5f1!important;border-color:#137d72!important}
body[data-officio-canon="v3"] .nav a{text-decoration-color:#137d72}
/* Read-only legal pages: preserve every literal, add whitespace and clear hierarchy. */
body[data-officio-canon="v3"] :is(h1,h2,h3){text-wrap:pretty}
body[data-officio-canon="v3"] :is(p,li){overflow-wrap:anywhere}
body[data-officio-canon="v3"] a{color:inherit}
body[data-officio-canon="v3"] :is(.notice,.highlight){border-radius:12px;background:#edf3f0;color:#202b33}
body[data-officio-canon="v3"] :is(.back,.nav-back){color:#137d72;font-weight:650}
/* Inline styles on legacy pages are preserved; v3 focuses on palette/type and common cards. */
@media(max-width:760px){
 body[data-officio-canon="v3"] .shell{padding-inline:18px}
 body[data-officio-canon="v3"] :is(.hero-h1,.page-title,.pg-title){font-size:clamp(32px,8vw,45px)!important}
 body[data-officio-canon="v3"] .hero{padding-top:42px}
 body[data-officio-canon="v3"] .item{padding:17px 14px}
 body[data-officio-canon="v3"] .bigdoor{padding:17px!important}
 body[data-officio-canon="v3"] .verdict{padding:17px}
}
