/* PHASE 3 | Heritage-preserving readability refinements
   Retains the original midnight/plum academic palette, photographs and typography.
   A small finishing layer, NOT a wholesale visual redesign. */
html{scroll-padding-top:102px}
/* The legacy resources.css forces the entire header into a mobile COLUMN.
   Explicitly override that older rule while keeping the Phase 2 header visuals. */
.site-header .sitebar{flex-direction:row!important;align-items:center!important;justify-content:space-between!important}
.site-header .brand,.site-header .header-actions{min-width:0}
.site-header .brand-copy{min-width:0}
.site-header .brand-name{display:block}
@media(max-width:450px){.site-header .brand-name{font-size:clamp(.86rem,3.2vw,1rem)!important}}
body{min-width:0}
main,article,section,header,nav,footer{min-width:0}
img,video,iframe,embed,object{max-width:100%}
iframe,video{height:auto}
video{display:block}
p,li,blockquote,.pub-citation,.pub-item,.publication-card{overflow-wrap:break-word}
a,button,input,textarea,select{touch-action:manipulation}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #f7b3d0;outline-offset:3px}
/* Compact page index: more like a book's table of contents than a dashboard of boxes. */
.pp-section-index{position:relative;display:flex;align-items:center;gap:12px 23px;flex-wrap:wrap;margin:0;padding:17px clamp(20px,3vw,36px);background:linear-gradient(90deg,rgba(115,35,69,.24),rgba(17,11,20,.77));border-bottom:1px solid rgba(235,177,201,.17)}
.pp-section-index strong{color:#f6c1d6;font:600 .69rem/1.35 'IBM Plex Mono',ui-monospace,monospace;letter-spacing:.16em;text-transform:uppercase;white-space:nowrap}
.pp-section-index .pp-jump-links{display:flex;align-items:center;gap:7px 20px;flex-wrap:wrap;min-width:0}
.pp-section-index a{display:inline-block;color:#e7d9e5;font:600 .83rem/1.5 Inter,Arial,sans-serif;border-bottom:1px solid rgba(245,173,206,.42);padding:4px 0;text-underline-offset:4px}
.pp-section-index a:hover,.pp-section-index a:focus-visible{color:#fff;border-bottom-color:#f5b6d3}
.pp-section-index a[aria-current=location]{color:#ffcbe0}
/* Align actual reading experience, without altering the photography or dark surfaces. */
.resource-shell,.resource-section,.resource-card,.resource-nav,.pub-item,.featured-work,.category-card,.resource-system-card{min-width:0}
.resource-hero h1,.subpage-hero h1{overflow-wrap:normal;hyphens:auto;text-wrap:balance}
.resource-section h2,.resource-section h3,.info-card h3,.course-summary h3{overflow-wrap:break-word}
.resource-section p,.resource-section li{line-height:1.73}
.resource-system-card,.category-card,.download-card,.quick-link,.pub-item,.featured-work{transition:border-color .18s ease,background .18s ease,transform .18s ease}
.resource-system-card:focus-visible,.category-card:focus-visible,.quick-link:focus-visible,.download-card:focus-visible{border-color:rgba(255,189,219,.8);outline:2px solid #ffb4d6;outline-offset:3px}
/* Calm editorial dividers, rather than inventing a new card system. */
.resource-section > h2::after{content:'';display:block;width:45px;height:1px;margin-top:13px;background:linear-gradient(90deg,rgba(249,184,209,.9),rgba(249,184,209,0))}
.resource-section .resource-system-copy h2::after{content:none}
.publications-authority .authority-grid,.publications-categories .category-grid,.peer-context-grid{min-width:0}
.pub-item h3,.featured-work h3,.category-card h3{line-height:1.16}
/* The three Phase 2 destinations now share the existing visual identity more closely. */
.pp-heritage-hero{position:relative;isolation:isolate;overflow:hidden}
.pp-heritage-hero::before{content:'';position:absolute;inset:0;background:var(--pp-hero-image,none) center 40% / cover no-repeat;opacity:.13;filter:grayscale(.08) saturate(.72);z-index:-1;pointer-events:none}
.pp-heritage-hero::after{content:'';position:absolute;left:0;bottom:0;width:min(32vw,330px);height:2px;background:linear-gradient(90deg,#b9507d,rgba(185,80,125,0));pointer-events:none}
.pp-heritage-hero .wrap{position:relative;z-index:1}
.pp-page-courses{--pp-hero-image:url('/images/PP1.jpg')}
.pp-page-teaching{--pp-hero-image:url('/images/PP3.jpg')}
.pp-page-contact{--pp-hero-image:url('/images/ProfP1.jpg')}
/* Keep the original photography visible in the Strength sections; make content stable on narrow screens. */
.pp-section-index + .content{margin-top:0}
.pp-page-strength .section-frame,.pp-page-strength .hero-split,.pp-page-strength .section-grid{min-width:0}
.pp-page-strength .compare-list li{min-width:0}
.pp-page-strength .compare-list li>*{min-width:0}
/* Proper focus behavior and minimum interactive target sizes. */
.resource-links a,.pub-links a,.download-item,.download-card,.category-card{min-height:44px}
.footer a,.page-footer a{text-underline-offset:3px}
@media(max-width:760px){
 html{scroll-padding-top:78px}
 .main{padding-top:16px;padding-bottom:42px}
 .resource-shell{border-radius:22px}
 .resource-hero{padding:27px 22px}
 .resource-hero h1{line-height:1.04;font-size:clamp(2.45rem,11vw,3.9rem)}
 .resource-hero .intro{font-size:1rem;line-height:1.72}
 .content{gap:17px;padding:18px}
 .resource-section{border-radius:19px}
 .resource-section h2{line-height:1.12}
 .resource-section p,.resource-section li{font-size:.96rem;line-height:1.75}
 .resource-system-head,.resource-system-grid,.authority-grid,.category-grid,.peer-context-grid{gap:13px}
 .resource-system-card,.category-card{min-height:0;border-radius:16px}
 .resource-system-card{grid-template-columns:46px minmax(0,1fr);gap:12px}
 .resource-system-step{width:42px;height:42px;border-radius:12px}
 .resource-nav{border-radius:19px}
 .pp-section-index{padding:13px 19px;gap:7px 14px}
 .pp-section-index .pp-jump-links{gap:5px 16px}
 .pp-section-index a{font-size:.81rem}
 .subpage-hero{padding:38px 0 44px}
 .subpage-hero h1{line-height:1.03}
 .course-summary{border-radius:17px}
 .contact-form input,.contact-form textarea{font-size:16px}
}
@media(max-width:400px){
 .resource-hero{padding:22px 18px}
 .resource-hero h1{font-size:clamp(2.33rem,10.5vw,3rem)}
 .content{padding:12px;gap:13px}
 .resource-section > h2,.resource-section > p,.resource-section > ul,.resource-system-head,.resource-system-grid,.category-head,.category-grid,.authority-grid,.peer-context-grid,.modern-pub-list{padding-left:16px;padding-right:16px}
 .resource-system-card{padding:15px 13px}
 .resource-system-card h3{font-size:1.25rem}
 .pp-section-index{padding:13px 16px}
 .pp-page-strength .section-frame{padding:19px 16px}
}
@media(prefers-reduced-motion:reduce){.resource-system-card,.category-card,.download-card,.quick-link,.pub-item,.featured-work{transition:none}}
