/* PhD recruitment page. Every rule is scoped under .phd-body or a .phd- class so the
   shared header, footer, and homepage styles in /styles.css are unaffected.

   The page is laid out to read well on a phone first: the 720px block near the end
   stacks everything, shrinks the photos, and adds the fixed action bar. Rules that
   depend on phd/page.js (the section menu and "show more faculty") key off classes
   the script adds, so without JavaScript the page still shows everything.

   The question form block at the very end is shared with phd/inquiry.js: keep its
   class names unchanged. */

.phd-body { background: var(--white); }
.phd-main { color: var(--ink); }
.phd-shell { width: min(100% - (2 * var(--gutter)), 1240px); margin-inline: auto; }
.phd-narrow { max-width: 46rem; margin-inline: auto; }
.phd-center { text-align: center; }

/* ----- Sticky header with section links ----- */
.phd-body .phd-header { position: sticky; top: 0; z-index: 30; box-shadow: 0 2px 14px rgba(0, 63, 45, .22); }
.phd-body .phd-header .header-inner { min-height: 68px; gap: .75rem 1.25rem; }
.phd-body .phd-nav { flex: 1 1 auto; flex-wrap: wrap; justify-content: flex-end; gap: .4rem; }
.phd-body .phd-nav .header-link { min-height: 44px; padding: .5rem .9rem; font-size: .88rem; }
.phd-body .phd-nav .phd-nav-contact { margin-left: .35rem; }
.phd-menu-button { display: none; }
.phd-main [id] { scroll-margin-top: 5.5rem; }

/* ----- Hero ----- */
.phd-hero { position: relative; padding: clamp(2rem, 4.5vw, 4rem) 0 clamp(1.6rem, 3.5vw, 3rem); background: var(--white); border-bottom: 1px solid rgba(0, 84, 50, .12); }
.phd-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 4.5rem); align-items: center; }
.phd-hero-copy::before { content: ""; display: block; width: 4.5rem; height: .32rem; margin-bottom: 1.4rem; background: var(--gold); }
.phd-kicker { margin: 0 0 .7rem; color: var(--usf-green); font-family: var(--display); font-size: clamp(.78rem, 1.1vw, .92rem); font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.phd-hero h1 { margin: 0; color: var(--usf-green); font-family: var(--display); font-size: clamp(2.35rem, 4.1vw, 3.75rem); font-weight: 800; line-height: .98; letter-spacing: -.035em; overflow-wrap: anywhere; }
.phd-lede { max-width: 40rem; margin: 1rem 0 0; color: #2f463f; font-size: clamp(1.06rem, 1.45vw, 1.28rem); line-height: 1.5; }

.phd-status { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin: 1.3rem 0 0; padding: 0; font-size: 1rem; }
.phd-status-item { display: flex; align-items: center; gap: .55rem; margin: 0; }
.phd-status-item dd { margin: 0; }
.phd-status-open dd { color: var(--evergreen); font-weight: 750; }
.phd-status-open dd::before { content: ""; display: inline-block; width: .6rem; height: .6rem; margin-right: .5rem; vertical-align: .05em; border-radius: 50%; background: var(--usf-green); box-shadow: 0 0 0 3px rgba(0, 103, 71, .18); }
.phd-status strong { color: var(--evergreen); }

.phd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem 1rem; margin-top: 1.4rem; }
.phd-actions-center { justify-content: center; margin-top: 1.8rem; }
.phd-button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: .8rem; padding: .75rem 1.55rem; border-radius: 999px; font-size: 1.02rem; font-weight: 800; text-decoration: none; transition: background 250ms ease, color 250ms ease, border-color 250ms ease, transform 250ms var(--ease), box-shadow 250ms var(--ease); }
.phd-button svg { width: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 250ms var(--ease); }
.phd-button-primary { color: var(--white); background: var(--usf-green); border: 2px solid var(--usf-green); box-shadow: 0 12px 24px rgba(0, 84, 50, .18); }
.phd-button-primary:hover, .phd-button-primary:focus-visible { background: var(--evergreen); border-color: var(--evergreen); transform: translateY(-2px); }
.phd-button-primary:hover svg, .phd-button-primary:focus-visible svg { transform: translateX(3px); }
.phd-button-secondary { color: var(--evergreen); background: var(--white); border: 2px solid var(--usf-green); }
.phd-button-secondary:hover, .phd-button-secondary:focus-visible { color: var(--white); background: var(--usf-green); }
.phd-hero-note { max-width: 40rem; margin: 1rem 0 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }

/* ----- Figures ----- */
.phd-hero-figure, .phd-figure { margin: 0; }
.phd-hero-figure img, .phd-figure img { width: 100%; height: auto; border-radius: .5rem; background: #dbe2de; }
.phd-hero-figure figcaption, .phd-figure figcaption { margin-top: .55rem; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.phd-figure-wide { margin: 0 0 1.4rem; }

/* ----- Sections and layouts ----- */
.phd-section { padding: clamp(2rem, 4.2vw, 3.6rem) 0; }
.phd-section-tint { background: #f7f6ee; border-block: 1px solid rgba(0, 84, 50, .1); }
.phd-section-head h2 { margin: 0; color: var(--usf-green); font-family: var(--display); font-size: clamp(1.75rem, 3.2vw, 2.6rem); font-weight: 800; line-height: 1.02; letter-spacing: -.03em; }
.phd-section-head h2::after { content: ""; display: block; width: 3rem; height: .25rem; margin-top: .9rem; background: var(--gold); }
.phd-center .phd-section-head h2::after, .phd-section-head.phd-center h2::after { margin-inline: auto; }
.phd-section-head p { max-width: 46rem; margin: 1rem 0 0; color: #2f463f; font-size: 1.05rem; line-height: 1.55; }
.phd-section-head.phd-center p { margin-inline: auto; }
.phd-section-head p a { color: var(--usf-green); font-weight: 750; }
.phd-section h3 { margin: 0 0 .7rem; color: var(--evergreen); font-family: var(--display); font-size: 1.22rem; font-weight: 800; letter-spacing: -.01em; }
.phd-section h3 + p, .phd-section h3 + ul { margin-top: 0; }
.phd-section h3:not(:first-child) { margin-top: 1.8rem; }

/* Why USF: intro beside the faculty photo, then the highlight blocks across the full width. */
.phd-why { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }

/* Split: image on one side, copy on the other. */
.phd-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.phd-split .phd-figure-wide { margin: 0; }
.phd-split-image-left .phd-figure-wide { order: -1; }

.phd-copy { max-width: 42rem; margin: 0; font-size: 1.02rem; line-height: 1.6; }
.phd-section-head + .phd-copy { margin-top: 1.2rem; }
.phd-links { display: grid; gap: .45rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.phd-links-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 2rem; margin-top: 1.6rem; }
.phd-links-inline { display: flex; flex-wrap: wrap; gap: .2rem 1.8rem; margin-top: 1.3rem; }
.phd-links a, .phd-text-link, .phd-contact a, .phd-highlight a { display: inline-flex; min-height: 44px; align-items: center; gap: .35rem; color: var(--usf-green); font-weight: 750; text-decoration: underline; text-decoration-thickness: .12em; text-underline-offset: .22em; }
.phd-highlight a { display: inline; min-height: 0; }
.phd-links a:hover, .phd-text-link:hover, .phd-contact a:hover, .phd-highlight a:hover { color: var(--evergreen); text-decoration-thickness: .18em; }
.phd-text-link { margin-top: .5rem; }
.phd-note { max-width: 42rem; margin: 1.2rem 0 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.phd-center .phd-note { margin-inline: auto; }

/* Why USF highlights: cream blocks with a gold top rule, as on the original page. */
.phd-highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin: 2rem 0 0; }
.phd-highlight { padding: 1.3rem 1.4rem 1.5rem; background: #f7f6ee; border-top: .25rem solid var(--gold); border-radius: 0 0 .4rem .4rem; }
.phd-highlight dt { display: flex; align-items: center; gap: .65rem; color: var(--evergreen); font-family: var(--display); font-size: 1.15rem; font-weight: 800; }
.phd-highlight-icon { flex: 0 0 auto; width: 1.75rem; height: 1.75rem; color: var(--usf-green); }
.phd-highlight dd { margin: .5rem 0 0; font-size: 1rem; line-height: 1.55; }

/* Funding facts: four large figures. */
.phd-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem 2rem; margin: 2rem 0 0; }
.phd-fact { padding-top: .8rem; border-top: .25rem solid var(--gold); }
.phd-fact dt { color: var(--muted); font-size: .9rem; font-weight: 650; }
.phd-fact dd { margin: .2rem 0 0; }
.phd-fact dd strong { display: block; color: var(--usf-green); font-family: var(--display); font-size: clamp(1.7rem, 2.6vw, 2.25rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.phd-fact dd span { display: block; margin-top: .3rem; color: #2f463f; font-size: .92rem; line-height: 1.4; }

/* Disclosures (details/summary) for secondary detail and the FAQ. */
.phd-disclosures { max-width: 52rem; margin: 1.8rem auto 0; }
.phd-disclosures-narrow { max-width: 46rem; }
.phd-disclosure, .phd-faq-item { border-top: 1px solid rgba(0, 84, 50, .18); }
.phd-disclosure:last-child, .phd-faq-item:last-child { border-bottom: 1px solid rgba(0, 84, 50, .18); }
.phd-disclosure > summary, .phd-faq-item > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; padding: .8rem 0; color: var(--evergreen); font-family: var(--display); font-size: 1.08rem; font-weight: 800; line-height: 1.3; cursor: pointer; list-style: none; }
.phd-disclosure > summary::-webkit-details-marker, .phd-faq-item > summary::-webkit-details-marker { display: none; }
.phd-disclosure > summary::after, .phd-faq-item > summary::after { content: "+"; flex: none; width: 1.5rem; color: var(--usf-green); font-family: var(--body); font-size: 1.5rem; font-weight: 400; line-height: 1; text-align: center; }
.phd-disclosure[open] > summary::after, .phd-faq-item[open] > summary::after { content: "\2212"; }
.phd-disclosure > summary:hover, .phd-faq-item > summary:hover { color: var(--usf-green); }
.phd-disclosure > summary:focus-visible, .phd-faq-item > summary:focus-visible { outline: 3px solid var(--evergreen); outline-offset: 3px; }
.phd-disclosure-body { padding: 0 0 1.2rem; font-size: 1rem; line-height: 1.55; }
.phd-disclosure-body > :first-child { margin-top: 0; }
.phd-disclosure-body p { margin: .6rem 0 0; }
.phd-disclosure-body .phd-links { margin-top: .2rem; }
.phd-disclosure-body .phd-note { margin-top: .9rem; }
.phd-faq-item > p { margin: 0 0 1.1rem; padding-right: 2.5rem; font-size: 1rem; line-height: 1.55; }

/* ----- Faculty ----- */
.phd-themes { margin: 0; padding: 0 0 0 1.2rem; font-size: 1rem; line-height: 1.55; }
.phd-themes li { margin-bottom: .55rem; }
.phd-themes strong { color: var(--evergreen); }
.phd-faculty-wrap { margin-top: 1.8rem; }
.phd-faculty-wrap h3 { margin-top: 0; }
.phd-faculty-extra { margin-top: 2rem; }
.phd-faculty-extra .phd-note { margin-top: .3rem; }
.phd-faculty { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem 1.25rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.phd-faculty li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: .1rem .9rem; align-items: start; padding: .9rem .85rem .95rem; border-top: 1px solid rgba(0, 84, 50, .18); border-radius: 0 0 .4rem .4rem; line-height: 1.4; }
.phd-faculty li.phd-faculty-mentor { background: #f7f6ee; border-top: .25rem solid var(--gold); }
.phd-faculty-portrait { grid-row: 1 / span 6; width: 72px; height: 72px; margin-top: .2rem; border: 2px solid var(--gold); border-radius: 50%; object-fit: cover; background: #e9e4d3; }
.phd-faculty a { display: inline-flex; min-height: 44px; align-items: center; justify-self: start; color: var(--usf-green); font-family: var(--display); font-size: 1.08rem; font-weight: 800; text-decoration: underline; text-decoration-thickness: .1em; text-underline-offset: .2em; }
.phd-faculty a:hover { color: var(--evergreen); }
.phd-faculty-title { color: var(--muted); font-size: .86rem; }
.phd-faculty-interests { font-size: .94rem; }
.phd-mentor-badge { display: inline-block; justify-self: start; margin: -.15rem 0 .25rem; padding: .18rem .6rem; color: var(--evergreen); background: var(--gold); border-radius: 999px; font-family: var(--display); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.phd-faculty .phd-faculty-email { min-height: 40px; margin-top: .1rem; font-family: inherit; font-size: .92rem; font-weight: 750; }
.phd-show-more { display: none; }
.phd-show-more:not([hidden]) { display: inline-flex; width: 100%; min-height: 48px; align-items: center; justify-content: center; margin-top: 1rem; padding: .6rem 1rem; color: var(--evergreen); background: var(--white); border: 2px solid var(--usf-green); border-radius: 999px; font: inherit; font-size: 1rem; font-weight: 800; cursor: pointer; }
.phd-show-more:hover, .phd-show-more:focus-visible { color: var(--white); background: var(--usf-green); }
.phd-faculty-wrap + .phd-disclosures { margin-top: 1.6rem; }

/* ----- Admissions ----- */
.phd-admissions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 3rem; margin-top: 2rem; }
.phd-admissions-col { padding-top: 1.1rem; border-top: .25rem solid var(--gold); }
.phd-admissions-col ul { margin: 0; padding-left: 1.2rem; font-size: 1rem; line-height: 1.55; }
.phd-admissions-col li { margin-bottom: .5rem; }
.phd-admissions-col .phd-actions { margin-top: 1.2rem; }
.phd-steps { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; counter-reset: phd-step; }
.phd-steps li { position: relative; padding-left: 3.2rem; font-size: 1rem; line-height: 1.55; counter-increment: phd-step; }
.phd-steps li::before { content: counter(phd-step, decimal-leading-zero); position: absolute; top: .05rem; left: 0; width: 2.4rem; height: 2.4rem; display: grid; place-items: center; color: var(--evergreen); background: var(--gold); border-radius: 50%; font-family: var(--display); font-size: .9rem; font-weight: 800; }
.phd-steps strong { color: var(--evergreen); }

.phd-timeline { position: relative; display: grid; gap: .9rem; margin: .6rem 0 0; padding: 0 0 0 2.2rem; list-style: none; }
.phd-timeline::before { content: ""; position: absolute; top: .6rem; bottom: .6rem; left: .62rem; width: 2px; background: rgba(0, 84, 50, .25); }
.phd-timeline li { position: relative; display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: .2rem 1rem; align-items: baseline; }
.phd-timeline li::before { content: ""; position: absolute; top: .3rem; left: -2.2rem; width: 1rem; height: 1rem; background: var(--gold); border: 3px solid var(--white); border-radius: 50%; box-shadow: 0 0 0 2px var(--usf-green); }
.phd-timeline-when { color: var(--evergreen); font-family: var(--display); font-size: 1.02rem; font-weight: 800; }
.phd-timeline-what { font-size: 1rem; line-height: 1.5; }

/* ----- Student quote band ----- */
.phd-quote { padding: clamp(2rem, 4.5vw, 3.4rem) 0; color: var(--white); background: var(--evergreen); }
.phd-quote-portrait { display: block; width: 112px; height: 112px; margin: 0 auto 1rem; border: 3px solid var(--gold); border-radius: 50%; object-fit: cover; background: #0b3d2c; }
.phd-quote-text { position: relative; margin: 0; padding-top: 2.2rem; }
.phd-quote-text::before { content: "\201C"; position: absolute; top: -1rem; left: 50%; transform: translateX(-50%); color: var(--gold); font-family: Georgia, "Times New Roman", serif; font-size: 5rem; line-height: 1; }
.phd-quote-text p { margin: 0; font-family: var(--display); font-size: clamp(1.25rem, 2.3vw, 1.75rem); font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.phd-quote-source { margin-top: 1.1rem; color: var(--gold); font-size: .95rem; font-weight: 750; letter-spacing: .04em; }

/* ----- Current student cards ----- */
.phd-students-row { margin-top: clamp(1.6rem, 3.5vw, 2.6rem); }
.phd-students { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.phd-student { padding: 1.3rem 1.4rem 1.4rem; background: var(--white); border-top: .25rem solid var(--gold); border-radius: 0 0 .4rem .4rem; }
.phd-student img { display: block; width: 96px; height: 96px; margin-bottom: .8rem; border: 3px solid var(--gold); border-radius: 50%; object-fit: cover; background: #e9e4d3; }
.phd-student p { margin: 0; }
.phd-student-name { color: var(--evergreen); font-family: var(--display); font-size: 1.08rem; font-weight: 800; }
.phd-student-cohort { margin-top: .1rem; color: var(--muted); font-size: .86rem; }
.phd-student-focus { margin-top: .6rem; font-size: .96rem; line-height: 1.5; }
.phd-student-teaching { margin-top: .6rem; color: #2f463f; font-size: .9rem; line-height: 1.45; }
.phd-students-actions { align-items: center; margin-top: 1.5rem; }
.phd-students-actions .phd-text-link { margin-top: 0; }
.phd-students-actions + .phd-note { max-width: none; margin-inline: auto; text-align: center; }

/* ----- Contact ----- */
.phd-contact-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; margin-top: 2rem; }
.phd-contact { margin: 1.4rem 0 0; font-style: normal; font-size: 1.02rem; line-height: 1.5; }
.phd-contact-people .phd-contact:first-child { margin-top: .4rem; }
.phd-contact p { margin: 0 0 .15rem; }
.phd-contact-name { color: var(--evergreen); font-weight: 800; }
.phd-nowrap { white-space: nowrap; }
.phd-contact-secondary { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid rgba(0, 84, 50, .18); }
.phd-contact:has(.phd-contact-portrait) { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 1rem; align-items: start; }
.phd-contact:has(.phd-contact-portrait) > p { grid-column: 2; }
.phd-contact-portrait { grid-row: 1 / span 4; width: 72px; height: 72px; margin-top: .2rem; border: 2px solid var(--gold); border-radius: 50%; object-fit: cover; background: #e9e4d3; }
.phd-contact a { min-height: 44px; }
.phd-contact-people .phd-actions { margin-top: 1.4rem; }
.phd-contact-people .phd-note { margin-top: .6rem; }
.phd-contact-links { margin-top: 1rem; }
.phd-contact-people .phd-figure { margin: 1.6rem 0 0; }

/* ----- FAQ ----- */
.phd-faq { margin: 0; }
.phd-faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; margin-top: 1.8rem; }
.phd-faq-grid .phd-faq-item:last-child { border-bottom: 0; }
.phd-faq-grid .phd-faq-item:nth-last-child(-n + 2) { border-bottom: 1px solid rgba(0, 84, 50, .18); }

/* ----- Final call to action ----- */
.phd-final { padding: clamp(2.2rem, 5vw, 4rem) 0; color: var(--white); background: var(--evergreen); text-align: center; }
.phd-final-kicker { margin: 0 0 .7rem; color: var(--gold); font-family: var(--display); font-size: .9rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.phd-final h2 { margin: 0; color: var(--white); font-family: var(--display); font-size: clamp(1.8rem, 3.8vw, 3rem); font-weight: 800; line-height: 1.02; letter-spacing: -.03em; }
.phd-final-copy { max-width: 34rem; margin: .9rem auto 0; font-size: 1.05rem; line-height: 1.5; }
.phd-actions-final { justify-content: center; margin-top: 1.5rem; }
.phd-button-on-dark { border-color: var(--white); box-shadow: none; }
.phd-button-on-dark:hover, .phd-button-on-dark:focus-visible { color: var(--evergreen); background: var(--white); border-color: var(--white); }
.phd-final-contact { display: inline-flex; min-height: 44px; align-items: center; padding: .5rem .6rem; color: var(--white); font-weight: 700; text-decoration: underline; text-underline-offset: .22em; }
.phd-final-contact:hover { color: var(--gold); }

/* Phone action bar: hidden until the 720px block below. */
.phd-sticky { display: none; }

/* Focus: dark outline on light surfaces, gold on green bands. */
.phd-main a:focus-visible, .phd-body .header-link:focus-visible { outline: 3px solid var(--evergreen); outline-offset: 3px; }
.phd-body .header-link:focus-visible, .phd-menu-button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.phd-final a:focus-visible, .phd-quote a:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

/* ----- Breakpoints ----- */
@media (min-width: 1200px) {
  .phd-keep-together { white-space: nowrap; }
}

@media (max-width: 1200px) {
  .phd-body .phd-nav .header-link { padding-inline: .7rem; font-size: .84rem; }
}

@media (max-width: 1000px) {
  .phd-faculty { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .phd-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
  .phd-hero-figure img { aspect-ratio: 16 / 9; max-height: 300px; object-fit: cover; object-position: center 30%; }
  .phd-why, .phd-split, .phd-contact-grid { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
  .phd-split-image-left .phd-figure-wide { order: 0; }
  .phd-highlights { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
  .phd-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phd-admissions { grid-template-columns: minmax(0, 1fr); }
  .phd-students { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phd-faq-grid { grid-template-columns: minmax(0, 1fr); }
  .phd-faq-grid .phd-faq-item:nth-last-child(-n + 2) { border-bottom: 0; }
  .phd-faq-grid .phd-faq-item:last-child { border-bottom: 1px solid rgba(0, 84, 50, .18); }

  /* Header without page.js: the brand on one row and a scrollable row of section links under it. */
  .phd-body .phd-header .header-inner { flex-wrap: wrap; padding-block: .5rem; }
  .phd-body .phd-nav { width: 100%; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: thin; padding-bottom: .15rem; }
  .phd-body .phd-nav .header-link { flex: 0 0 auto; }
  .phd-body .phd-nav .phd-nav-contact { order: -1; margin-left: 0; }
  .phd-main [id] { scroll-margin-top: 8.75rem; }

  /* Header with page.js (body.phd-has-menu): one row with a Menu button; the links drop down from the header. */
  .phd-has-menu .phd-header .header-inner { flex-wrap: nowrap; }
  .phd-has-menu .phd-menu-button:not([hidden]) { display: inline-flex; flex: none; align-items: center; gap: .5rem; min-height: 44px; padding: .5rem .55rem .5rem .95rem; color: var(--white); background: transparent; border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px; font: inherit; font-size: .9rem; font-weight: 750; cursor: pointer; }
  .phd-menu-button svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .phd-menu-icon-close, .phd-menu-open .phd-menu-icon-open { display: none; }
  .phd-menu-open .phd-menu-icon-close { display: block; }
  .phd-has-menu .phd-nav { display: none; }
  .phd-menu-open .phd-nav { display: grid; position: absolute; top: 100%; right: 0; left: 0; width: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem .75rem; padding: .75rem var(--gutter) 1rem; background: var(--evergreen); border-top: 1px solid rgba(255, 255, 255, .15); box-shadow: 0 14px 20px rgba(0, 63, 45, .28); overflow: visible; }
  .phd-menu-open .phd-nav .header-link { justify-content: flex-start; min-height: 46px; padding-inline: .6rem; border-color: transparent; font-size: .95rem; }
  .phd-menu-open .phd-nav .phd-nav-contact { order: 0; grid-column: 1 / -1; justify-content: center; margin-top: .3rem; border-color: var(--gold); }
  .phd-has-menu .phd-main [id] { scroll-margin-top: 5.5rem; }
}

@media (max-width: 720px) {
  .phd-hero { padding: 1.4rem 0; }
  .phd-hero-copy::before { width: 3.25rem; margin-bottom: .9rem; }
  .phd-hero h1 { font-size: clamp(2.05rem, 9.2vw, 2.7rem); line-height: 1; }
  .phd-hero-figure img { max-height: 200px; }
  .phd-lede { margin-top: .8rem; font-size: 1.02rem; }
  .phd-status { margin-top: 1rem; gap: .45rem; font-size: .95rem; }
  .phd-status-item { width: 100%; }
  .phd-actions { margin-top: 1.1rem; gap: .6rem; }
  .phd-button { width: 100%; min-height: 50px; }
  .phd-hero-note { display: none; }
  .phd-section { padding: 1.6rem 0; }
  .phd-center { text-align: left; }
  .phd-section-head.phd-center h2::after, .phd-center .phd-section-head h2::after { margin-inline: 0; }
  .phd-section-head p { font-size: 1rem; }
  .phd-section h3:not(:first-child) { margin-top: 1.4rem; }
  .phd-links-row, .phd-actions-center { justify-content: flex-start; }
  .phd-desktop-only { display: none; }
  .phd-highlights { margin-top: 1.3rem; }
  .phd-links-inline { gap: 0 1.4rem; }
  .phd-links-inline a { min-height: 40px; }
  .phd-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem .9rem; margin-top: 1.4rem; }
  .phd-fact dd strong { font-size: 1.55rem; }
  .phd-fact dd span { font-size: .84rem; }
  .phd-disclosures { margin-top: 1.2rem; }
  .phd-disclosure > summary, .phd-faq-item > summary { min-height: 46px; padding: .55rem 0; font-size: 1rem; }
  .phd-faq-item > p { padding-right: 1.5rem; font-size: .97rem; }
  .phd-faculty-wrap { margin-top: 1.4rem; }
  .phd-faculty { grid-template-columns: minmax(0, 1fr); gap: .55rem; margin-top: .8rem; }
  .phd-faculty li { grid-template-columns: 56px minmax(0, 1fr); padding: .65rem .7rem .7rem; }
  .phd-faculty-portrait { width: 56px; height: 56px; }
  .phd-faculty a { min-height: 40px; font-size: 1.02rem; }
  .phd-faculty-interests { font-size: .9rem; }
  .phd-faculty-extra { margin-top: 1.4rem; }
  /* With page.js, phones show the five mentors and a "Show more" button; the rest appear when it is pressed. */
  .phd-faculty-wrap.is-collapsible .phd-faculty-more, .phd-faculty-wrap.is-collapsible .phd-faculty-extra { display: none; }
  .phd-faculty-wrap.is-collapsible.is-expanded .phd-faculty-more { display: grid; }
  .phd-faculty-wrap.is-collapsible.is-expanded .phd-faculty-extra { display: block; }
  .phd-students { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  .phd-student { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: .9rem; padding: .8rem .85rem .85rem; }
  .phd-student img { grid-row: 1 / span 4; width: 64px; height: 64px; margin: 0; }
  .phd-student p { grid-column: 2; }
  .phd-student-focus { margin-top: .45rem; font-size: .92rem; }
  .phd-student-teaching { margin-top: .4rem; font-size: .86rem; }
  .phd-students-actions + .phd-note { margin-inline: 0; text-align: left; }
  .phd-quote { padding: 1.8rem 0; }
  .phd-quote .phd-center { text-align: center; }
  .phd-quote-portrait { width: 80px; height: 80px; }
  .phd-split .phd-figure-wide img { max-height: 200px; object-fit: cover; }
  .phd-admissions { gap: 1.2rem; margin-top: 1.4rem; }
  .phd-timeline li { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
  .phd-contact-grid { gap: 1.6rem; margin-top: 1.3rem; }
  .phd-final { padding: 2rem 0; text-align: left; }
  .phd-final-copy { margin-inline: 0; }
  .phd-actions-final { justify-content: flex-start; }
  .phd-body .phd-header .header-inner { min-height: 0; }
  .phd-body .brand-program { display: none; }
  .phd-has-menu .brand-program { display: block; font-size: .8rem; }
  .phd-main [id] { scroll-margin-top: 7rem; }
  .phd-has-menu .phd-main [id] { scroll-margin-top: 5rem; }

  /* Phone action bar: the two contact routes stay one tap away. page.js adds is-hidden while the contact section is on screen. */
  .phd-body { padding-bottom: calc(4.6rem + env(safe-area-inset-bottom)); }
  .phd-sticky { position: fixed; z-index: 25; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: 1.3fr 1fr; gap: .55rem; padding: .55rem var(--gutter) calc(.55rem + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid rgba(0, 84, 50, .2); box-shadow: 0 -6px 18px rgba(0, 63, 45, .12); transition: transform 250ms var(--ease), opacity 250ms ease; }
  .phd-sticky.is-hidden { opacity: 0; transform: translateY(110%); pointer-events: none; }
  .phd-sticky .phd-button { width: 100%; min-height: 46px; padding: .5rem .6rem; font-size: .92rem; box-shadow: none; }
}

@media (max-width: 400px) {
  .phd-sticky { grid-template-columns: 1fr 1fr; }
  .phd-sticky .phd-button { padding-inline: .4rem; font-size: .86rem; }
}

@media (prefers-reduced-motion: reduce) {
  .phd-sticky, .phd-button, .phd-button svg { transition: none; }
}

@media print {
  .phd-body .phd-header { position: static; }
  .phd-sticky, .phd-menu-button { display: none; }
  .phd-body { padding-bottom: 0; }
}

/* ----- Question form (posts to the site service; see phd/inquiry.js) ----- */
.phd-inquiry { margin: 0 0 1.6rem; padding: 1.3rem 1.4rem 1.5rem; background: #f7f6ee; border-top: .25rem solid var(--gold); border-radius: 0 0 .4rem .4rem; }
.phd-inquiry-title { margin: 0 0 .4rem; color: var(--evergreen); font-family: var(--display); font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; }
.phd-inquiry-lede { margin: 0 0 1rem; font-size: .98rem; line-height: 1.5; }
.phd-field { margin: 0 0 .9rem; }
.phd-field label { display: block; margin-bottom: .3rem; color: var(--evergreen); font-size: .92rem; font-weight: 750; }
.phd-field-optional { color: var(--muted); font-weight: 500; }
.phd-field input, .phd-field textarea { display: block; width: 100%; min-height: 44px; padding: .55rem .75rem; color: var(--ink); background: var(--white); border: 1px solid rgba(0, 84, 50, .35); border-radius: .35rem; font: inherit; font-size: 1rem; line-height: 1.4; }
.phd-field textarea { resize: vertical; min-height: 6.5rem; }
.phd-field input:focus-visible, .phd-field textarea:focus-visible { outline: 3px solid var(--evergreen); outline-offset: 2px; }
.phd-field [aria-invalid="true"] { border-color: #a4262c; box-shadow: 0 0 0 2px rgba(164, 38, 44, .15); }
.phd-field-error { margin: .35rem 0 0; color: #8a1c21; font-size: .88rem; font-weight: 700; }
.phd-field-hint { margin: .3rem 0 0; color: var(--muted); font-size: .84rem; line-height: 1.4; }
.phd-field-trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.phd-inquiry-form { position: relative; }
.phd-inquiry-form .phd-button { margin-top: .2rem; }
.phd-inquiry-form .phd-button[disabled] { opacity: .85; cursor: progress; transform: none; }
.phd-inquiry-spinner { display: none; width: 1.1rem; height: 1.1rem; border: 3px solid rgba(255, 255, 255, .35); border-top-color: var(--white); border-radius: 50%; animation: phd-spin 800ms linear infinite; }
.phd-inquiry-submit.is-busy .phd-inquiry-arrow { display: none; }
.phd-inquiry-submit.is-busy .phd-inquiry-spinner { display: inline-block; }
@keyframes phd-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .phd-inquiry-spinner { animation-duration: 2s; } }
.phd-inquiry-status { margin: 1rem 0 0; padding: .8rem 1rem; border-radius: .4rem; font-size: .98rem; line-height: 1.5; }
.phd-inquiry-status[data-tone="pending"] { color: var(--evergreen); background: rgba(0, 103, 71, .08); }
.phd-inquiry-status[data-tone="success"] { color: var(--evergreen); background: rgba(0, 103, 71, .1); border-left: .25rem solid var(--usf-green); font-weight: 700; }
.phd-inquiry-status[data-tone="error"] { color: #8a1c21; background: rgba(164, 38, 44, .08); border-left: .25rem solid #a4262c; }
.phd-inquiry-status:focus { outline: 3px solid var(--evergreen); outline-offset: 2px; }
.phd-inquiry .phd-note { margin-top: .6rem; }
@media (max-width: 720px) {
  .phd-inquiry { padding: 1.1rem 1rem 1.2rem; }
}
