/* minimal.css - home page (index.html) only, loaded after styles.css.
   Academic-serif single column: no cards, shadows or buttons; numbered papers [1]..[n]
   continuous across Working Papers and Works in Progress, matching the CV.
   papers/*.html and personal/ still use styles.css alone. */

/* de-decoration */
.container{max-width:var(--col,780px)}
.main-header,.dark-mode .main-header{background:transparent;border-bottom:none;padding:1.25rem 0 .5rem}
.theme-switch button,.dark-mode .theme-switch button{background:none;border:none;box-shadow:none;font-size:1rem;width:auto;height:auto;padding:.25rem}
.top-nav a{font-weight:400;border-bottom:none}
.top-nav a:hover{border-bottom:none}
.content{padding:1rem 0}
.profile-header{gap:1.5rem;margin-bottom:1.25rem}
.profile-header .profile-image{width:var(--photo,120px);height:var(--photo,120px);border:none}
.profile-info h1{font-size:2rem;margin-bottom:.15rem}
.profile-info h2{font-size:1.1rem;font-weight:400}
.profile-info h3{font-size:1rem}
.intro-text{max-width:none}
.intro-text p{font-size:1.02rem}
.hero-buttons{gap:1.5rem;margin:1rem 0 0}
.button,.primary-button,.secondary-button,.dark-mode .secondary-button{background:none;border:none;padding:0;border-radius:0;font-size:1rem;font-weight:500;color:var(--primary-color);box-shadow:none}
.button:hover,.primary-button:hover,.secondary-button:hover,.dark-mode .secondary-button:hover{background:none;color:var(--primary-color);text-decoration:underline}
.section{margin:0;padding:2.25rem 0 0}
.section-title{font-size:1.2rem;margin-bottom:1.1rem;padding-bottom:.35rem;border-bottom:1px solid var(--border-light)}
.dark-mode .section-title{border-color:var(--border-dark)}
.section-title::after{display:none}
.publications-container{gap:1.6rem}
.publication-card,.project-card,.dark-mode .publication-card,.dark-mode .project-card{border:none;box-shadow:none;background:transparent;border-radius:0;height:auto}
.publication-content,.project-content{padding:0}
.publication-title,.project-content h3{font-size:1.08rem;margin-bottom:.2rem;line-height:1.4}
.paper-eyebrow{font-size:.72rem;margin-bottom:.2rem}
.publication-card .paper-keywords,.project-card .paper-keywords{margin-top:.3rem}
.abstract-container{margin-top:.35rem}
.abstract-toggle{font-size:.9rem;text-decoration:none;margin-bottom:.25rem}
.abstract-toggle i{font-size:.8rem}
.abstract-content,.dark-mode .abstract-content{background:none;border-radius:0;border-left:2px solid var(--border-light);padding:.25rem 0 .25rem 1rem}
.dark-mode .abstract-content{border-left-color:var(--border-dark)}
.publication-links{margin-top:.35rem}
.publication-links:empty{display:none}
.link-button,.dark-mode .link-button{background:none;padding:0;border-radius:0;color:var(--primary-color);font-size:.9rem}
.link-button:hover{background:none;text-decoration:underline}
.cv-content{margin:0}
.cv-header,.dark-mode .cv-header{border-bottom:1px solid var(--border-light);padding-bottom:.35rem;margin-bottom:1.1rem;flex-direction:row;align-items:baseline}
.dark-mode .cv-header{border-color:var(--border-dark)}
.cv-header h1,.dark-mode .cv-header h1{font-size:1.2rem;color:inherit}
.download-cv-btn{background:none;border:none;box-shadow:none;padding:0;color:var(--primary-color);font-size:.95rem;font-weight:500;gap:.4rem}
.download-cv-btn:hover{background:none;transform:none;box-shadow:none;text-decoration:underline}
.cv-embed,.dark-mode .cv-embed{border-radius:0;box-shadow:none}
.cv-embed iframe{height:720px}
.contact-info-card,.dark-mode .contact-info-card{border:none;box-shadow:none;background:transparent;padding:0;max-width:none}
.contact-item{margin-bottom:1rem;gap:1rem;flex-direction:row;text-align:left;align-items:flex-start}
.contact-icon{font-size:1rem;color:var(--text-muted-light);margin:0;width:1.25rem}
.contact-details h3{font-size:.95rem;margin-bottom:.15rem}
.contact-details p{margin-bottom:.1rem}
.footer{margin-top:3rem;padding:1.25rem 0}
@media (max-width:640px){.profile-header{flex-direction:row;text-align:left}.profile-header .profile-image{width:84px;height:84px}.profile-info h1{font-size:1.6rem}.hero-buttons{justify-content:flex-start;flex-wrap:wrap}}
.header-name{display:none}
.publication-links:not(:has(a)){display:none}
.abstract-content{margin-bottom:.25rem}
button{font-family:inherit}
@media (max-width:768px){
 .mobile-nav-toggle{display:none!important}
 .top-nav{order:1;flex-basis:auto}
 .top-nav ul,.dark-mode .top-nav ul{display:flex;flex-direction:row;position:static;background:none;border:none;box-shadow:none;padding:0;margin:0;gap:1.1rem}
 .top-nav a{padding:0}
 .top-nav a:hover,.dark-mode .top-nav a:hover{background:none}
}
@media (max-width:640px){
 .contact-item{flex-direction:row;text-align:left;gap:1rem}
 .contact-icon{align-self:flex-start}
 .contact-details{text-align:left}
 .contact-details p,.contact-details a{word-break:normal}
 .contact-info-card{padding:0}
}
.abstract-container{margin-bottom:0}.abstract-toggle{padding:0;margin-bottom:0}.abstract-content{margin-top:.5rem}

/* academic serif */
:root{--col:720px;--photo:112px;--primary-color:#1f3a68;--secondary-color:#1f3a68}
body{font-family:'Source Serif 4',Georgia,serif;line-height:1.6}
.dark-mode{--primary-color:#9db4dc}
.profile-info h1{font-weight:600}
.section-title,.cv-header h1,.dark-mode .cv-header h1{font-variant:small-caps;font-weight:400;font-size:1.3rem;letter-spacing:.03em;border-bottom-color:currentColor}
.dark-mode .section-title,.dark-mode .cv-header{border-bottom-color:var(--text-muted-dark)}
.cv-header{border-bottom-color:var(--text-light)}
.paper-eyebrow{font-variant:small-caps;text-transform:none;letter-spacing:.04em;font-size:.9rem;font-weight:600}
.paper-keywords,.paper-status{font-size:.88rem}
.publication-title,.project-content h3{font-weight:600}
.title-authors a,.publication-title a{text-decoration:none}
/* numbered entries, continuous across Working Papers and Works in Progress (matches CV) */
#research{counter-reset:paper}
.publication-card,.project-card{counter-increment:paper;position:relative;padding-left:2.4em;overflow:visible}
.publication-title::before,.project-content h3::before{content:"[" counter(paper) "]";position:absolute;left:0;font-weight:400;color:var(--text-muted-light)}
.dark-mode .publication-title::before,.dark-mode .project-content h3::before{color:var(--text-muted-dark)}
.publications-container{gap:2.1rem}
.title-authors a{white-space:nowrap}
/* fluid sizing: text and column scale with the screen (17px on phones -> 19px on wide monitors);
   column is in rem, so paper titles fit on one line at any browser zoom */
html{font-size:clamp(17px, 12px + 0.38vw, 19px)}
:root{--col:50rem;--photo:8.5rem}
.publication-title,.project-content h3{font-size:1.02rem}
.profile-info h1{font-size:2.4rem}
.profile-info h2{font-size:1.2rem}
.profile-info h3{font-size:1.05rem}
@media (max-width:480px){.hero-buttons{flex-direction:row;flex-wrap:wrap;gap:.4rem 1.25rem}.hero-buttons .button{width:auto;justify-content:flex-start}}

/* abstracts: justified, hyphenated so word gaps stay even; small phones keep a ragged edge,
   because a ~300px justified column opens large gaps between words */
@media (min-width:700px){.abstract-content p{text-align:justify;hyphens:auto;-webkit-hyphens:auto}}

/* phones */
@media (max-width:640px){
 .container{padding:0 1.15rem}
 .profile-header{gap:1rem;align-items:center}
 .profile-header .profile-image{width:5.5rem;height:5.5rem}
 .profile-info h1{font-size:1.75rem}
 .profile-info h2,.profile-info h3{font-size:.95rem}
 /* same hanging [n] as desktop, narrower gutter so text keeps most of the width */
 .publication-card,.project-card{padding-left:1.8em}
 .abstract-content,.dark-mode .abstract-content{padding-left:.75rem}
 .paper-figures--2up{grid-template-columns:1fr}
 .cv-embed iframe{height:70vh}
}
@media (max-width:380px){
 .profile-header .profile-image{width:4.75rem;height:4.75rem}
 .profile-info h1{font-size:1.5rem}
 .profile-info h2,.profile-info h3{font-size:.88rem}
}

/* intro split into short paragraphs */
.intro-text p{margin-bottom:0}
.intro-text p+p{margin-top:.7rem}

/* paper links (e.g. SSRN) sit on the same row as Show Abstract; the abstract opens below both */
.abstract-container.has-links{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:1.4rem}
.abstract-container .abstract-toggle{order:1}
.abstract-container .paper-link{order:2;font-size:.9rem;color:var(--primary-color);text-decoration:none}
.abstract-container .paper-link:hover{text-decoration:underline}
.abstract-container .paper-link i{font-size:.7em;margin-left:.15em;vertical-align:.1em}
.abstract-container .abstract-content{order:3;flex-basis:100%}

/* paper landing pages (papers/*.html): same academic-serif look as the home page */
.paper-back{font-size:.9rem;color:var(--text-muted-light);text-decoration:none}
.dark-mode .paper-back{color:var(--text-muted-dark)}
.paper-back:hover{color:var(--primary-color)}
.paper-hero,.dark-mode .paper-hero{max-width:none;margin:1.25rem 0 0;padding:0 0 1.5rem;border-bottom:1px solid var(--text-light)}
.dark-mode .paper-hero{border-bottom-color:var(--text-muted-dark)}
.paper-title{font-size:1.9rem;font-weight:600;line-height:1.25;margin:.2rem 0 .6rem}
.paper-authors{font-size:1.02rem}
.paper-authors a{text-decoration-thickness:1px;text-decoration-style:dotted}
.paper-actions{margin-top:.9rem;gap:1.4rem}
.paper-abstract,.dark-mode .paper-abstract{max-width:none;margin:1.75rem 0 0;padding:.1rem 0 .1rem 1rem;background:none;border-radius:0;border-left:2px solid var(--border-light)}
.dark-mode .paper-abstract{border-left-color:var(--border-dark)}
.paper-abstract h2,.dark-mode .paper-abstract h2{font-variant:small-caps;text-transform:none;letter-spacing:.04em;font-size:1rem;font-weight:600;color:inherit;margin-bottom:.4rem}
.paper-abstract p{line-height:1.65}
@media (min-width:700px){.paper-abstract p{text-align:justify;hyphens:auto;-webkit-hyphens:auto}}
.paper-keywords{max-width:none}
