/* Bone & Joint Bulletin: paper, teal ink, and pinned research notices.
   Embedded listings retain the host-friendly styling in theme.css. */
:root{--ink:#073c40;--teal:#06494b;--muted:#546b65;--line:#ded8c9;--paper:#fff7e9;--green:#e9eddd;--coral:#ff9385;--marigold:#f4bb62}
body:not(.embed){background:var(--paper);color:var(--ink);font-family:Arial,Helvetica,sans-serif}
body:not(.embed) h1,body:not(.embed) h2,body:not(.embed) h3{color:var(--ink)}
body:not(.embed) a{color:#146367}
body:not(.embed) button{border-color:var(--line);border-radius:9px;color:var(--ink);background:#fffdf7}
body:not(.embed) button:hover{background:#ede9dd}
body:not(.embed) button.primary,body:not(.embed) .button.primary,body:not(.embed) .actions a.primary{background:var(--teal);border-color:var(--teal);color:#fff}
body:not(.embed) .primary:hover{background:#15565a!important}
body:not(.embed) :is(button,a,input,select,textarea):focus-visible{outline:3px solid #946009;outline-offset:4px}
body:not(.embed) .institution-bar{height:4px;background:var(--coral)}
body:not(.embed) .site-header{background:#fffdf7;border-color:var(--line);min-height:90px}
.brand-bone{display:block;width:40px;height:46px;object-fit:contain;flex-shrink:0}
body:not(.embed) .site-header .site-name{gap:12px;background:transparent}
body:not(.embed) .brand-title{color:var(--ink);font-size:25px;letter-spacing:-.7px}
body:not(.embed) .brand-title>span{color:var(--ink)}
body:not(.embed) .site-header .brand-label{color:var(--muted);font-size:11px;letter-spacing:.3px}
body:not(.embed) .site-header nav button{background:transparent;border-radius:0;color:var(--muted)}
body:not(.embed) .site-header nav button.selected{color:var(--teal);box-shadow:inset 0 -3px var(--teal)}
body:not(.embed) .site-header nav button:hover{color:var(--teal)}
body:not(.embed) .home-intro{position:relative;background:#1a6b70;border:1px solid #1a6b70;border-radius:22px;padding:40px;overflow:hidden;margin:5px 0 28px}
.hero-bone{position:absolute;right:34px;top:30px;width:116px;height:132px;object-fit:contain;transform:rotate(8deg);pointer-events:none}
body:not(.embed) .home-context{color:#ffda9f;font-size:11px;line-height:1.6;letter-spacing:1.3px;margin-bottom:17px;max-width:calc(100% - 140px)}
body:not(.embed) .home-intro h1{color:#fffdf7;font-size:clamp(30px,3.5vw,42px);max-width:calc(100% - 100px);letter-spacing:-1.2px;margin-bottom:14px}
body:not(.embed) .home-intro>.sub{color:#f8f1dd;font-size:17px;max-width:calc(100% - 100px)}
body:not(.embed) .home-choices{gap:38px;margin-top:30px}
body:not(.embed) .home-choices button{background:#fff9e9;border-color:#fff9e9;color:#17565b;font-weight:600}
body:not(.embed) .home-choices button.primary{background:#f6cf82;border-color:#f6cf82;color:#203b45}
body:not(.embed) .home-choices button:hover{background:#ffe1a8!important;color:#203b45}
body:not(.embed) .home-choices p{color:#e0ece8;font-size:13px;max-width:32ch}
body:not(.embed) .person-link{background:transparent;border-radius:12px;padding:16px 12px}
body:not(.embed) .person-link:hover{background:#eeeade}
body:not(.embed) .person-link small,body:not(.embed) .faculty-note p{color:var(--muted)}
body:not(.embed) .text-button,body:not(.embed) .inline-link{color:var(--teal);background:transparent}
body:not(.embed) .faculty-note,body:not(.embed) .site-footer,body:not(.embed) .support-panel{border-color:var(--line)}
body:not(.embed) .site-footer,body:not(.embed) .site-footer a{color:var(--muted)}
body:not(.embed) .filters{background:#fffdf7;border:1px solid var(--line);border-radius:14px;padding:22px;margin-bottom:22px}
body:not(.embed) :is(input,select,textarea){border-color:#c8c6ba;border-radius:7px;background:#fffefa;color:var(--ink)}
body:not(.embed) :is(.filters input,.filters select){border-radius:8px}
body:not(.embed) .filters #clearProjects{color:var(--muted);background:transparent}
body:not(.embed) .plain-list:has(>.bulletin-card){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:18px;align-items:stretch}
body:not(.embed) .bulletin-card{position:relative;display:flex;flex-direction:column;gap:0;padding:27px 26px 22px;border:1px solid #d5d1c3;border-radius:18px;background:#e9eddd;box-shadow:0 2px 0 #203b4508;min-width:0}
body:not(.embed) .bulletin-card[data-paper=coral]{background:#f8e1d9}
body:not(.embed) .bulletin-card[data-paper=butter]{background:#f7e8b6}
.card-pin{position:absolute;top:22px;right:22px;width:26px;height:26px;pointer-events:none}
body:not(.embed) .bulletin-card .opportunity-summary{width:100%;flex:1;min-width:0}
body:not(.embed) .bulletin-card .project-supervisor{font-size:13px;color:#455e62;padding-right:34px;margin:0 0 20px}
body:not(.embed) .bulletin-card h2{font-size:23px;line-height:1.3;margin:0 0 16px;font-weight:700;letter-spacing:-.5px;overflow-wrap:anywhere}
body:not(.embed) .bulletin-card h2 a{color:var(--ink);text-decoration:none}
body:not(.embed) .bulletin-card h2 a:hover{text-decoration:underline;text-underline-offset:4px}
.project-preview{display:flex;align-items:flex-start;gap:16px;margin-bottom:20px}
body:not(.embed) .bulletin-card .project-excerpt{margin:0;color:#455e62;font-size:14px;line-height:1.65;flex:1;min-width:0;overflow-wrap:anywhere}
body:not(.embed) .bulletin-card .opportunity-thumb{width:100px;height:90px;object-fit:cover;object-position:center;border:1px solid #203b4514;background:#fffaf0;border-radius:8px;margin:0;flex-shrink:0}
body:not(.embed) .tag{background:#fffdf2;color:#38575c;border-radius:20px;padding:4px 10px;font-size:12px}
body:not(.embed) .keyword:hover,body:not(.embed) .keyword:focus-visible{border-color:#567b76;background:#fffdf7}
body:not(.embed) .bulletin-card .meta-row{gap:5px;align-items:center}
.project-dates{display:flex;flex-wrap:wrap;gap:5px 18px;color:#455e62;font-size:12px;line-height:1.6;margin-top:14px}
.project-dates span:empty{display:none}
body:not(.embed) .bulletin-card .row-actions{width:100%;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:12px;border-top:1px solid #203b451a;margin-top:20px;padding:17px 0 0}
body:not(.embed) .bulletin-card .row-link{color:#146367;font-size:15px;font-weight:700}
body:not(.embed) .bulletin-card .row-link:hover{text-decoration:underline;text-underline-offset:3px}
body:not(.embed) .plain-list>.empty{grid-column:1/-1}
body:not(.embed) .result-count{color:var(--muted)}
body:not(.embed) .card,body:not(.embed) .entry,body:not(.embed) .empty{background:#fffdf7;border-color:var(--line);border-radius:12px}
body:not(.embed) .faculty-card{border:1px solid var(--line);padding:24px}
body:not(.embed) .grid:has(.faculty-card){gap:20px}
body:not(.embed) .faculty-card .summary{color:var(--muted)}
body:not(.embed) .project-detail{background:#fffdf7;border:1px solid var(--line);border-radius:18px;padding:32px;max-width:860px}
body:not(.embed) .project-detail .project-picture{background:#f2efe5;border-radius:10px}
body:not(.embed) .project-facts,body:not(.embed) footer.actions{border-color:var(--line)}
body:not(.embed) .eligibility,body:not(.embed) .student-info,body:not(.embed) .application-route{background:#edf0e3;border-color:#8da99b}
body:not(.embed) .supervisor-choice:has(input:checked){border-color:var(--teal);background:#edf3eb}
body:not(.embed) .account-bar{background:#f0ecdf;border-color:var(--line)}
body:not(.embed).workspace aside{background:#f8f4e9;border-color:var(--line)}
body:not(.embed) .nav button{background:transparent}
body:not(.embed) .nav button.active{background:#e1e9dc;color:#205b55}
body:not(.embed) .tabs .selected{color:var(--teal);box-shadow:inset 0 -2px var(--teal)}
body:not(.embed) .workspace-links button{background:transparent;border-radius:0;border-color:var(--line)}
body:not(.embed) .photo{background:#e5e8da;color:#385c56}
body:not(.embed) .login-card .field{margin-top:18px}
@media(max-width:850px){body:not(.embed) .site-header{min-height:0}.brand-bone{width:34px;height:40px}body:not(.embed) .plain-list:has(>.bulletin-card){grid-template-columns:1fr}body:not(.embed) .home-intro{padding:30px}.hero-bone{width:85px;height:105px;right:22px;top:25px}body:not(.embed) .home-context{max-width:calc(100% - 100px)}body:not(.embed) .home-intro h1,body:not(.embed) .home-intro>.sub{max-width:calc(100% - 80px)}}
@media(max-width:540px){body:not(.embed) .brand-title{font-size:20px;letter-spacing:-.6px}body:not(.embed) .site-header .brand-label{font-size:10px!important}.brand-bone{width:30px;height:36px}body:not(.embed) .home-intro{padding:26px 22px;border-radius:16px}body:not(.embed) .home-context{max-width:calc(100% - 45px);font-size:9px;letter-spacing:1px;margin-bottom:25px}.hero-bone{width:50px;height:65px;right:12px;top:17px}body:not(.embed) .home-intro h1{max-width:100%;font-size:32px}body:not(.embed) .home-intro>.sub{max-width:100%;font-size:16px}body:not(.embed) .home-choices{gap:22px}body:not(.embed) .home-choices p{margin-top:8px}body:not(.embed) .filters{padding:17px}.card-pin{right:20px;top:20px}body:not(.embed) .bulletin-card{padding:24px 20px 20px;border-radius:16px}body:not(.embed) .bulletin-card h2{font-size:22px}body:not(.embed) .bulletin-card .opportunity-thumb{width:80px;height:80px}.project-preview{gap:12px}body:not(.embed) .project-detail{padding:24px 20px}body:not(.embed) .site-header nav{gap:20px}}
/* Let the public bulletin use wide displays; forms retain their own limits. */
body.public:not(.embed) .content{max-width:1520px}
@media(min-width:1200px){
 body.public:not(.embed) .content{padding:40px 48px}
 body:not(.embed) .home-intro{padding:48px}
 body:not(.embed) .home-intro h1{font-size:46px;max-width:calc(100% - 190px)}
 body:not(.embed) .home-intro>.sub{font-size:18px;max-width:calc(100% - 190px)}
 .hero-bone{width:148px;height:168px;right:48px;top:38px}
}

/* A compact directory opens into each supervisor's public profile. */
body:not(.embed) .faculty-directory{grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr))}
body:not(.embed) .faculty-directory .faculty-card{display:flex;flex-direction:column;gap:18px}
body:not(.embed) .faculty-directory .member-heading{margin-bottom:0}
body:not(.embed) .faculty-directory h2 a{text-decoration:none}
body:not(.embed) .faculty-directory h2 a:hover{text-decoration:underline}
body:not(.embed) .faculty-directory footer.actions{margin-top:auto;padding-top:16px}
body:not(.embed) .faculty-profile{max-width:900px;padding:32px;margin-top:24px}
body:not(.embed) .faculty-profile .photo{width:112px;height:112px;object-fit:cover;flex-shrink:0}
body:not(.embed) .faculty-profile h1{margin:0 0 8px}
body:not(.embed) .faculty-profile .member-heading{align-items:center}
body:not(.embed) .faculty-biography{margin-top:28px}
body:not(.embed) .faculty-biography p{white-space:pre-line;line-height:1.7}
body:not(.embed) .faculty-opportunities{margin-top:32px}
body:not(.embed) a.person-link{text-decoration:none;display:flex;gap:14px;align-items:center}
@media(max-width:540px){body:not(.embed) .faculty-profile{padding:24px 20px}body:not(.embed) .faculty-profile .photo{width:80px;height:80px}body:not(.embed) .faculty-profile h1{font-size:26px}}

/* Supplied Bone & Joint SVG identity kit. Decorative artwork stays out of navigation labels. */
body:not(.embed) .site-header{min-height:116px}
.brand-symbol{display:block;width:76px;height:76px;object-fit:contain;flex-shrink:0}
.brand-wordmark{display:block;width:232px;height:auto}
body:not(.embed) .site-header .brand-lockup{gap:3px}
body:not(.embed) .site-header .brand-label{color:#56765d;font-size:10px;letter-spacing:.35px}
body:not(.embed) .home-intro{background:#06494b;border-color:#06494b}
body:not(.embed) .home-intro h1,body:not(.embed) .home-intro>.sub{max-width:calc(100% - 240px)}
body:not(.embed) .hero-bone{width:220px;height:220px;right:36px;top:30px;transform:none}
body:not(.embed) .home-context{color:#f4bb62}
body:not(.embed) .institution-bar{background:#ff9385}

.illustrated-heading{display:flex;align-items:center;gap:12px}
.illustrated-heading img{object-fit:contain}
body:not(.embed) .card-pin{width:23px;height:36px;top:18px;right:22px;transform:rotate(25deg)}
@media(max-width:850px){body:not(.embed) .site-header{min-height:0}.brand-symbol{width:60px;height:60px}.brand-wordmark{width:190px}body:not(.embed) .hero-bone{width:145px;height:145px;right:22px;top:32px}body:not(.embed) .home-intro h1,body:not(.embed) .home-intro>.sub{max-width:calc(100% - 150px)}}
@media(max-width:540px){.brand-symbol{width:52px;height:52px}.brand-wordmark{width:170px}body:not(.embed) .site-header .site-name{gap:6px}body:not(.embed) .site-header .brand-label{font-size:8px!important}body:not(.embed) .hero-bone{width:86px;height:86px;right:12px;top:15px}body:not(.embed) .home-context{max-width:calc(100% - 85px);min-height:60px;margin-bottom:10px}body:not(.embed) .home-intro h1,body:not(.embed) .home-intro>.sub{max-width:100%}}

body:not(.embed) .bulletin-card .opportunity-status{display:inline-flex;align-items:center;min-height:40px;padding:8px 14px;box-sizing:border-box;font-size:14px;font-weight:600;line-height:1.3;text-transform:capitalize;border:1px solid #99b29d;background:#f0f4e7;border-radius:9px}
body:not(.embed) .opportunity-views{font-size:14px;color:var(--muted);white-space:nowrap}

body:not(.embed) .opportunity-metrics{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-right:auto;font-size:14px}
body:not(.embed) .opportunity-applicants{white-space:nowrap}
.applicant-filter{max-width:480px;margin-bottom:16px}

/* The title is the drawing; keep its text available to assistive technology. */
body:not(.embed) .home-intro .chalk-title{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body:not(.embed) .chalk-bone{display:block;width:100%;max-width:1080px;height:auto;aspect-ratio:10/3;margin:0 0 12px;cursor:url('/identity/chalk-sponge.svg') 28 20,cell}
body:not(.embed) .home-intro>.sub{max-width:100%;margin-top:0}
body:not(.embed) .site-header .site-name{gap:3px}
.brand-symbol{width:82px;height:96px}
@media(max-width:850px){.brand-symbol{width:67px;height:84px}}
@media(max-width:540px){.brand-symbol{width:56px;height:72px}body:not(.embed) .site-header .site-name{gap:2px}body:not(.embed) .home-intro .home-choices{margin-top:22px}body:not(.embed) .chalk-bone{width:calc(100% + 18px);max-width:none;margin-left:-9px;margin-bottom:20px}}
@media(pointer:coarse),(prefers-reduced-motion:reduce){body:not(.embed) .chalk-bone{pointer-events:none;cursor:default}}

.digest-country-picker{margin-top:16px}.digest-country-choices{max-height:240px;overflow:auto;padding:8px 4px}.digest-country-choices label[hidden]{display:none!important}
