/* Letter and note surfaces extend the existing teal, cream and orange palette. */
@font-face{font-family:'Rehab Handnote';src:url('assets/fonts/rehab-handnote.woff') format('woff');font-weight:400;font-style:normal;font-display:swap}
.brand-title{display:flex;align-items:center;gap:12px;flex-wrap:nowrap;white-space:nowrap}
.brand-title strong{display:inline!important;line-height:1.5}
.handnote-title{font-family:'Rehab Handnote','BiauKai','DFKai-SB',serif!important;font-size:30px;font-weight:400;line-height:1.6;letter-spacing:.06em;color:#37697b;display:inline-block;white-space:nowrap}
.brand small,.library-brand small,.notebook-brand small{font-size:12px;line-height:1.6;display:block;color:#37697b}
.site-header nav a,.notebook-header nav a{min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:6px 12px;border:1px solid #d7e2df;border-bottom:3px solid #b3c8c7;border-radius:7px 7px 3px 3px;background:#fffdf8;font-size:14px;white-space:nowrap}
.site-header nav a:hover,.notebook-header nav a:hover,.notebook-header nav a[aria-current=page]{background:#eaf1f0;border-bottom-color:#37697b}
.site-header .header-inner{gap:18px;grid-template-columns:auto minmax(0,1fr) auto}
.site-header nav{gap:8px;flex-wrap:wrap}
.hero-copy{padding:clamp(24px,3vw,40px);background:#fffdf9;border:1px solid #d7e2df;border-top:4px solid #d8875f;border-radius:4px;box-shadow:0 12px 30px #234f5f0b,5px 5px 0 #eaf1f0}
.hero h1{font-size:clamp(34px,4vw,55px)}
.hero .lead{font-size:17px;line-height:1.95}
.quick-strip{background:transparent;border:0;padding-block:14px}
.quick-inner{gap:14px;flex-wrap:wrap}
.quick-inner a{border:1px solid #cbdcdb;border-left:4px solid #d8875f;background:#fffdf9;border-radius:3px;padding:16px 20px;box-shadow:3px 3px 0 #e3ece8;min-width:180px}
.article-home-card,.rehab-preview,.article-card,.condition-card{border-radius:4px!important;box-shadow:4px 5px 0 #dce7e3!important;border:1px solid #cbdcdb!important;border-top:4px solid #b2c9c7!important}
.article-home-card{background:#fffdf9!important;position:relative;padding-top:32px!important}
.article-home-card:nth-child(2),.article-card:nth-child(2),.condition-card:nth-child(3n+2){border-top-color:#dba27e!important}
.article-home-card p,.article-card p,.condition-card .summary{font-size:16px;line-height:1.85}
.article-card .card-meta,.article-card .card-read,.article-card .card-art::after{font-size:14px}
.article-card .card-art{background:#edf3f0;min-height:0}
.article-card .card-art::before,.article-card .card-art::after{display:none}
.article-card{grid-template-columns:1fr;position:relative;background:#fffdf9;min-height:260px}
.article-card .card-art{height:12px;background:transparent!important}
.article-card .card-body{padding:20px 28px 28px}
.article-card h2{font-size:26px}
.article-home-card:hover,.article-card:hover,.condition-card:hover{transform:translateY(-3px);box-shadow:4px 8px 0 #d3e0dc!important}
.rehab-preview{background:#37697b;border-top-color:#dba27e!important;box-shadow:7px 8px 0 #e5d6c5!important}
.library-hero{background:#eaf1f0;padding:52px 0 38px}
.library-hero .wrap{background:#fffdf9;border:1px solid #d7e2df;border-top:4px solid #d8875f;padding:32px;border-radius:4px;box-shadow:5px 5px 0 #d4e2dc}
.library-hero h1{font-size:clamp(34px,5vw,54px)}
.article-shell>.article-hero{border:1px solid #d7e2df;border-top:4px solid #d8875f;border-radius:4px;background:#fffdf9;padding:clamp(22px,3vw,40px);box-shadow:5px 5px 0 #e0e9e5}
.article-shell>.article-section{border:1px solid #d7e2df;border-top:3px solid #b2c9c7;border-radius:4px;background:#fffdf9;padding:clamp(22px,3vw,36px);margin-top:28px;box-shadow:4px 4px 0 #e6eeea;scroll-margin-top:120px}
.article-nav{gap:10px!important}
.article-nav a{border-radius:5px!important;background:#f5f8f4}
.background-card{border-radius:4px!important;background:#f1f6f2!important}
.notebook-header{position:sticky;top:0;z-index:20;background:#fbf8f2f5;border-bottom:1px solid #d7e2df;backdrop-filter:blur(12px)}
.notebook-header-inner{width:min(1132px,calc(100% - 40px));margin:auto;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px 0}
.notebook-brand{text-decoration:none;min-width:0}.notebook-brand strong{font-size:18px}
.notebook-header nav{display:flex;gap:8px;flex-wrap:wrap}
.rehab-reader .intro-copy{background:#fffdf9;border:1px solid #d7e2df;border-top:4px solid #d8875f;padding:28px;border-radius:4px;box-shadow:5px 5px 0 #e0e9e5}
.rehab-reader .intro h1{font-size:clamp(34px,5vw,58px);line-height:1.4}
.rehab-reader .condition-card::before{display:none}
.rehab-reader .condition-card{background:#fffdf9}
.rehab-reader .dialog-shell{background:#fffdf9}
.rehab-reader .doctor-note,.rehab-reader .safety-card{border-radius:4px}
:where(.article-home-card,.article-card,.condition-card,.article-nav a,.notebook-header a):focus-visible{outline:3px solid #98431c;outline-offset:4px}
@media(max-width:1180px){.site-header .header-inner{grid-template-columns:minmax(0,1fr) auto;padding-block:10px}.site-header{height:auto}.site-header nav{grid-column:1/-1;grid-row:2;justify-content:flex-start}.header-clinic-logos{grid-column:2;grid-row:1}}
@media(max-width:700px){.site-header .header-inner{grid-template-columns:minmax(0,1fr)}.header-clinic-logos{grid-column:1;grid-row:3;justify-self:end}.site-header nav{justify-content:space-between;gap:5px}.site-header nav a{padding:6px 9px}.site-header .clinic-logos .chen-clinic-logo{width:110px}.site-header .clinic-logos .daily-care-logo{width:42px}.site-header .clinic-logos{padding:3px 8px}.site-header .header-inner{gap:6px}.brand-title{gap:10px}.handnote-title{font-size:28px}.site-header{position:relative}.notebook-header-inner{flex-wrap:wrap;gap:8px}.notebook-header nav{width:100%}.library-header .wrap,.article-top-inner{flex-wrap:wrap;gap:8px;padding-block:10px}.library-hero .wrap{padding:25px}.article-card h2{font-size:23px}.article-shell>.article-section{scroll-margin-top:140px}.hero-copy{box-shadow:3px 3px 0 #eaf1f0}.hero-actions{flex-wrap:wrap}.rehab-reader .intro-copy{padding:24px}.quick-label{width:100%}.quick-inner a{min-width:0;flex-basis:100%}}
@media(prefers-reduced-motion:reduce){.article-home-card,.article-card,.condition-card{transition:none!important}}
.article-home-card.knee{color:#263d47}.article-home-card.knee p{color:#4e666e}.knee .article-card-index{color:#98431c}.knee .article-card-action{color:#2e6876}
@media(max-width:700px){.article-top .inner{flex-wrap:wrap;gap:8px;padding-block:10px}.article-top .top-links{gap:15px}.library-header .home-link{min-height:44px;display:inline-flex;align-items:center}}

body{overflow-wrap:anywhere}
.article-shell>.article-hero>*{min-width:0}.article-shell>.article-section>*{min-width:0}.article-brand small{font-size:12px;line-height:1.6}
@media(max-width:380px){.brand-title{gap:8px}.handnote-title{font-size:26px}.brand-title strong{font-size:16px}.notebook-header nav a{padding-inline:10px}.site-header nav{flex-wrap:wrap}.library-header .wrap{align-items:flex-start}.hero-copy{padding:22px}.article-shell>.article-section{padding:20px}.background-card{padding:18px}}
