/* TJMHSS · shared palette and typography */
:root {
  --navy: #102c4d;
  --deep: #0c253d;
  --blue: #075b91;
  --gold: #f1c442;
  --cream: #f8f5ee;
  --paper: #fffefa;
  --ink: #16344b;
  --muted: #506370;
  --line: #d8d9d2;
  --serif: Georgia, "Times New Roman", serif;
  --gutter: clamp(20px, 5.4vw, 84px);
  --max: 1280px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 98px; }
body { margin: 0; font: 1rem/1.6 "Segoe UI", Arial, sans-serif; color: var(--ink); background: var(--cream); }
h1, h2, h3, p, figure, blockquote { margin: 0; }
h1, h2, .subhead, .cardbody h3 { font-family: var(--serif); font-weight: 400; }
h1, h2 { line-height: 1.06; letter-spacing: -.045em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 3.55vw, 3.65rem); }
h3 { font-size: 1.1rem; line-height: 1.3; }
p { color: var(--muted); }
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(var(--max), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
:focus-visible { outline: 3px solid #0870ad; outline-offset: 4px; }
.storyhero :focus-visible, .foot :focus-visible, .pagehero.pictorial :focus-visible { outline-color: #ffda69; }
[hidden] { display: none !important; }
.skip, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { top: 6px; left: 8px; width: auto; height: auto; padding: 8px 15px; z-index: 100; background: white; clip-path: none; }
.demo { background: var(--deep); color: #e7eaf0; font-size: .7rem; letter-spacing: .045em; }
.demo .wrap, .navrow, .brand, .nav, .actions, .bottom { display: flex; align-items: center; }
.demo .wrap { min-height: 30px; justify-content: space-between; gap: 1rem; }
.demo span:first-child::before { content: ''; display: inline-block; width: 16px; height: 1px; margin: 0 9px 4px 0; background: var(--gold); }
.demo i { margin-inline: 5px; font-style: normal; color: var(--gold); }
.header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.navrow { justify-content: space-between; gap: 1rem; min-height: 78px; }
.brand { gap: 10px; flex: none; }
.brand img { width: 55px; height: 48px; object-fit: contain; }
.brand strong, .brand small { display: block; }
.brand strong { font: 600 1.25rem/1.15 var(--serif); letter-spacing: -.04em; }
.brand small { margin-top: 4px; font-size: .68rem; line-height: 1.25; }
.nav { gap: clamp(12px, 1.45vw, 26px); font-size: .86rem; font-weight: 600; }
.nav details { position: relative; }
.nav > a, .nav summary { display: block; padding-block: 12px; position: relative; }
.nav a[aria-current]::after, .nav details:has([aria-current]) summary::after { content: ''; position: absolute; bottom: 6px; left: 0; width: 22px; height: 2px; background: #bd8e16; }
.nav summary, .accordion summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
.nav summary::before { content: ''; float: right; width: 6px; height: 6px; margin: 7px 2px 0 8px; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg); }
.nav a:hover, .nav summary:hover { color: var(--blue); }
.drop { position: absolute; z-index: 1; top: 100%; right: -14px; min-width: 175px; display: grid; background: var(--paper); border: 1px solid var(--line); padding: 6px; box-shadow: 0 12px 35px #102c4d18; }
.drop a { padding: 9px 12px; }
.drop a:hover, .drop [aria-current] { background: var(--cream); }
.drop a[aria-current]::after { display: none; }
.menu { display: none; }
.btn, .filters button { min-height: 44px; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 14px; padding: 11px 21px; border: 1px solid transparent; border-radius: 3px; font-size: .88rem; font-weight: 650; line-height: 1.45; transition: background .18s ease, border-color .18s ease; }
.btn.gold { background: var(--gold); color: #112b40; }
.btn.gold:hover { background: #ffda69; }
.btn.blue { background: var(--navy); color: white; }
.btn.blue:hover { background: #194467; }
.btn.outline { border-color: currentColor; background: transparent; }
.storyhero .btn.outline { border-color: #ffffff85; }
.btn.outline:hover { background: #8698a41a; }
.actions { gap: 12px; flex-wrap: wrap; }
.textlink { display: inline-block; border: 0; border-bottom: 1px solid #af8823; background: none; color: var(--navy); padding: 2px 0; font-size: .9rem; font-weight: 650; }
.textlink:hover { color: var(--blue); border-color: currentColor; }
.kicker, .small, .yearmark span, .foot h3 { display: block; font: 650 .67rem/1.5 "Segoe UI", Arial, sans-serif; letter-spacing: .15em; text-transform: uppercase; }
.kicker { color: var(--blue); margin-bottom: 12px; }
.kicker::before { content: ''; display: inline-block; vertical-align: middle; width: 27px; height: 1px; background: #b48a27; margin-right: 10px; }
.small { color: var(--blue); letter-spacing: .09em; }

/* The original story photograph remains the backdrop for all three chapters. */
.storyhero { position: relative; isolation: isolate; background: var(--deep); color: white; overflow: hidden; }
.story-image, .storyshade { position: absolute; inset: 0; z-index: -1; }
.story-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 41%; }
.storyshade { background: linear-gradient(90deg, #091d2af3 0%, #11262bd9 25%, #1427235e 53%, transparent 80%), linear-gradient(0deg, #081e2bd6, transparent 33%); }
.storyinner { min-height: clamp(570px, 45vw, 700px); display: grid; grid-template-rows: 1fr auto; padding-top: 42px; }
.storycopy { align-self: center; padding-block: 8px 34px; }
.storycopy .kicker { color: #ffe495; letter-spacing: .15em; }
.storycopy .kicker::before { background: var(--gold); }
.storycopy h1 { font-size: clamp(3.9rem, 6.25vw, 6.3rem); line-height: 1.01; text-wrap: initial; }
#story-title [data-panel="1"] em { font-size: .83em; }
.storycopy h1 em { color: #ffda74; font-weight: 400; }
.storycopy p { color: #f0f1eb; font-size: 1rem; line-height: 1.55; max-width: 392px; margin: 20px 0 26px; }
#story-title, #story-text { display: grid; }
.story-panel { grid-area: 1 / 1; visibility: hidden; }
.story-panel.current { visibility: visible; }
.storybottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 0 20px; }
.chapters { display: flex; gap: 10px; }
.chapters button { width: clamp(90px, 8vw, 133px); min-height: 44px; display: flex; gap: 8px; align-items: center; padding: 6px 0 0; background: transparent; color: #fff; border: 0; border-top: 1px solid #ffffff66; font-size: .85rem; text-align: left; }
.chapters button span { font-size: .64rem; opacity: .85; }
.chapters button[aria-pressed="true"] { border-color: var(--gold); color: #ffda74; }
.storynote, .image-note { color: white; background: #10283beb; border-radius: 2px; font-size: .65rem; letter-spacing: .035em; line-height: 1.4; padding: 4px 8px; }
@media (prefers-reduced-motion: no-preference) {
  .story-image img { animation: settle 1.25s ease-out both; }
  .story-panel.current { animation: chapter-in .32s ease-out; }
  @keyframes settle { from { transform: scale(1.02); } to { transform: scale(1); } }
  @keyframes chapter-in { from { opacity: .55; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}
.stats { background: var(--paper); border-bottom: 1px solid var(--line); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); padding: 25px 0; }
.stat { display: flex; flex-direction: column; justify-content: center; border-left: 1px solid var(--line); padding-inline: clamp(16px, 3vw, 55px); }
.stat:first-child { border: 0; padding-left: 0; }
.stat b { font: 400 clamp(1.45rem, 2.1vw, 2.2rem)/1.18 var(--serif); letter-spacing: -.035em; }
.stat span { color: var(--muted); font-size: .78rem; margin-top: 4px; }

/* Inner-page mastheads and editorial sections */
.pagehero { position: relative; }
.mast { display: grid; align-items: center; }
.mastcopy { padding-block: clamp(36px, 4.5vw, 72px); }
.crumb { display: flex; align-items: center; gap: 12px; font-size: .78rem; margin-bottom: 24px; }
.crumb a { text-decoration: underline; text-underline-offset: 3px; }
.crumb span { opacity: .65; }
.mast h1 { font-size: clamp(3.05rem, 5.15vw, 5.35rem); }
.mast h1 em { font-weight: 400; }
.mast p { max-width: 49ch; margin-top: 16px; line-height: 1.6; }
.paper { border-bottom: 1px solid var(--line); background: var(--paper); }
.paper .mastcopy { display: grid; grid-template-columns: 1.36fr 1fr; gap: 0 7%; align-items: end; }
.paper .crumb { grid-column: 1/-1; color: var(--muted); }
.paper h1 em { color: var(--blue); }
.paper p { margin: 0 0 2px; border-left: 2px solid var(--gold); padding-left: 22px; max-width: 42ch; }
.pictorial { background: var(--navy); color: white; }
.pictorial .mast { grid-template-columns: 1fr .95fr; gap: 6%; }
.pictorial .mastcopy { padding-block: 36px 46px; }
.pictorial .mast p, .pictorial .crumb { color: #e1e9ed; }
.pictorial h1 em { color: #ffda74; }
.pictorial .mast > .photo { align-self: stretch; min-height: 265px; }
.mast > .photo img { position: absolute; height: 100%; width: 100%; object-fit: cover; }
.page-about .mast > .photo { margin-block: 26px; border-radius: 90px 2px 2px 2px; }
.page-campus .mast { position: relative; z-index: 0; min-height: 400px; grid-template-columns: minmax(0, 600px); }
.page-campus .mast > .photo { position: absolute; inset: 0 calc((100vw - 100%) / -2); z-index: -1; }
.page-campus .mast > .photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,#092635f5,#0c2b38bc 39%,#0c25371c 76%); }
.page-campus .mast .image-note { z-index: 1; right: var(--gutter); left: auto; }
.page-campus .pagehero { overflow: hidden; }
.page-alumni .mast > .photo img { object-position: 64% 39%; }
.section { padding-block: clamp(45px, 5.5vw, 85px); }
.white { background: var(--paper); }
.dark { background: var(--navy); color: white; }
.dark p { color: #d4e1e9; }
.dark .kicker, .dark .textlink { color: #ffdc77; }
.head { margin-bottom: clamp(22px, 2.4vw, 36px); }
.head p { margin-top: 10px; }
.split, .history, .guide-columns, .campus-spaces, .activity-layout, .resource-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5.2vw, 80px); align-items: center; }
.split > *, .mast > *, .footgrid > *, .resource-layout > * { min-width: 0; }
.split p, .history p { margin-block: 15px; max-width: 58ch; }
.photo { position: relative; overflow: hidden; background: #e0e2d9; }
.photo img { width: 100%; object-fit: cover; height: auto; aspect-ratio: 16/10; }
.image-note { position: absolute; bottom: 9px; left: 10px; }
.cards, .tiles { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(18px, 2.3vw, 36px); }
.cardbody { padding: 16px 0 0; }
.cardbody h3 { font-size: clamp(1.4rem, 2vw, 2.1rem); letter-spacing: -.035em; }
.cardbody .small { margin-bottom: 5px; }
.cardbody p, .tile p, .space-row p { font-size: .94rem; margin-top: 5px; }
.cardbody .textlink { margin-top: 10px; }
.tile { border-top: 2px solid #c1a14a; padding: 17px 0 0; }
.tile b { display: block; font: 400 1.5rem/1.2 var(--serif); color: var(--blue); margin-bottom: 9px; }
.tile .small { margin-bottom: 9px; }
.subhead { font-size: clamp(1.5rem, 2.6vw, 2.35rem); line-height: 1.18; margin-block: 36px 18px; letter-spacing: -.035em; }
.results, .stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.result { border-top: 1px solid #91a0a7; padding-top: 14px; }
.result span { color: #e0e9ec; font-size: .8rem; }
.result b, .yearmark b { display: block; font: 400 clamp(1.9rem, 3.3vw, 3.45rem)/1.25 var(--serif); letter-spacing: -.05em; color: #ffdc77; }
.banner { background: #eae5d7; }
.banner .wrap { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding-block: clamp(30px, 3.5vw, 52px); }
.banner h2 { font-size: clamp(1.8rem, 3vw, 2.9rem); }
.yearmark { border-inline-start: 2px solid #b99940; padding-left: clamp(18px, 4vw, 60px); }
.yearmark b { color: var(--navy); font-size: clamp(4rem, 8vw, 7.5rem); }
.history { grid-template-columns: .7fr 1.3fr; }
.quote { border-top: 1px solid var(--line); padding: 22px 0 0; }
.quote p { color: var(--navy); font: 400 clamp(1.24rem, 1.8vw, 1.7rem)/1.44 var(--serif); }
.quote cite { display: block; font-size: .83rem; font-style: normal; color: var(--muted); margin-top: 15px; }
.pathways, .space-list, .activities { border-top: 1px solid var(--line); }
.pathways .tile, .space-row { padding: 16px 0; border: 0; border-bottom: 1px solid var(--line); }
.pathways .tile { display: grid; grid-template-columns: minmax(95px, .34fr) 1fr; align-items: baseline; gap: 16px; }
.pathways p, .space-row .cardbody { padding: 0; margin: 0; }
.space-row h3 { font-size: 1.28rem; }
.space-feature .photo img, .activity-layout > .photo img { aspect-ratio: 4/3; }
.activities { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: 20px; align-self: center; }
.houses { grid-template-columns: repeat(4, minmax(0,1fr)); }
.house { border-color: var(--house); }
.guide-columns { align-items: start; grid-template-columns: .76fr 1.24fr; margin-top: 20px; }
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 2px; font-weight: 600; }
.accordion summary::after { content: '+'; font-size: 1.25rem; line-height: 1; color: var(--blue); }
.accordion details[open] summary::after { content: '−'; }
.accordion details p { margin: -3px 0 16px; max-width: 68ch; }
.resource-layout { align-items: start; grid-template-columns: .85fr 1.15fr; }
.resource-layout .head { margin: 0; }
.resource-layout .photo { margin: 22px 0 12px; }
.resource-layout .photo img { aspect-ratio: 2.2; }
.tablewrap { background: var(--paper); color: var(--navy); }
table { border-collapse: collapse; text-align: left; width: 100%; font-size: .92rem; }
th, td { border-bottom: 1px solid var(--line); padding: 12px 16px; vertical-align: top; }
th { background: #e7eae5; font-size: .74rem; font-weight: 650; }
.page-staff .tiles { margin-bottom: 46px; }
#staff-count { font-size: .85rem; color: var(--muted); }
#staff-empty { padding: 24px 16px; background: var(--paper); }
#staff-empty button { margin-top: 8px; }
.album-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.album-head h2 { font-size: clamp(1.65rem, 2.3vw, 2.4rem); }
.album-head p { font-size: .85rem; }
.page-gallery .section { padding-top: clamp(32px, 4vw, 60px); }
.filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filters button { padding: 8px 17px; border: 1px solid #c0c7c9; border-radius: 30px; background: transparent; color: var(--navy); font-size: .88rem; }
.filters button[aria-pressed=true] { background: var(--navy); color: white; border-color: var(--navy); }
.filters input { max-width: 360px; }
.filters label { font-weight: 600; margin-right: 4px; }
.gallery { grid-template-columns: repeat(12,minmax(0,1fr)); gap: 28px 20px; }
.gallery .card { grid-column: span 4; }
.gallery .card:nth-child(1), .gallery .card:nth-child(2), .gallery .card:nth-last-child(-n+4) { grid-column: span 6; }
.gallery[data-filtered] .card { grid-column: span 4; }
@media (min-width: 901px) {
  .gallery[data-filtered="Sports"] .card { grid-column: span 3; }
  .gallery[data-filtered="Learning"] .card { grid-column: span 6; }
}
.gallery .photo { display: block; cursor: zoom-in; }
.gallery .photo img { aspect-ratio: 1.9; }
.gallery .cardbody { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: baseline; gap: 8px; padding: 10px 0 0; }
.gallery h3 { font-size: clamp(1.2rem, 1.65vw, 1.6rem); }
.gallery .small { font-size: .6rem; }
dialog { border: 0; background: var(--paper); color: var(--ink); padding: 12px; max-width: min(94vw, 1040px); max-height: 92dvh; box-shadow: 0 18px 70px #06162355; }
dialog::backdrop { background: #071c2bdf; }
dialog img { display: block; width: auto; max-width: 100%; max-height: 68dvh; margin: 0 auto; object-fit: contain; }
dialog p { margin-top: 8px; font-size: .9rem; }
dialog .close { display: block; min-height: 44px; margin: 0 0 8px auto; padding: 5px 13px; border: 0; background: var(--navy); color: white; }
body:has(dialog[open]) { overflow: hidden; }
.form-layout { grid-template-columns: .85fr 1.15fr; align-items: start; }
.form-layout > div { padding-top: 10px; }
.form-layout > div .photo { margin-top: 25px; }
.form { background: var(--paper); border-top: 3px solid var(--gold); padding: clamp(20px, 3vw, 42px); }
.form h2 { font-size: clamp(1.8rem, 2.5vw, 2.65rem); }
.notice { color: var(--muted); font-size: .85rem; line-height: 1.5; margin: 12px 0 23px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: 15px; }
input, select, textarea { width: 100%; border: 1px solid #9aa8ac; background: white; border-radius: 3px; padding: 10px 12px; font-weight: 400; min-height: 44px; font-size: 1rem; }
label input, label select, label textarea { display: block; margin-top: 5px; }
textarea { resize: vertical; }
.formstatus:not(:empty) { padding: 10px 13px; margin: 14px 0 0; border-left: 2px solid var(--blue); background: #edf2ef; color: var(--navy); }
.foot { background: var(--deep); color: white; padding: 44px 0 24px; }
.footgrid { display: grid; grid-template-columns: 1.3fr 1fr .9fr; gap: clamp(20px, 4vw, 65px); }
.foot .brand img { background: var(--paper); border-radius: 2px; padding: 3px; }
.foot .brand { color: white; }
.foot-motto { display: inline-block; margin-bottom: 4px; font: italic 1rem/1.5 var(--serif); color: #ffe090; }
.foot p, .footlinks { color: #ccd7dd; font-size: .86rem; }
.foot h3 { color: #ffdc77; font-size: .72rem; margin-bottom: 13px; }
.footlinks { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 12px; }
.foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.bottom { border-top: 1px solid #ffffff30; padding-top: 19px; margin-top: 32px; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; font-size: .76rem; color: #c9d4dc; }
.bottom strong { color: #ffe090; font-weight: 600; }
@media (scripting: none) { :is(.chapters, .filters, .menu) { display: none !important; } }

@media (max-width: 1120px) {
  .navrow > .btn { display: none; }
  .nav { gap: 15px; }
}
@media (max-width: 900px) {
  .navrow { min-height: 67px; }
  .menu { display: flex; align-items: center; gap: 9px; min-height: 44px; border: 0; background: transparent; font-weight: 600; font-size: .9rem; padding: 8px; }
  .menu-icon { width: 18px; height: 10px; border-block: 1.5px solid currentColor; }
  .nav { position: absolute; top: 100%; inset-inline: 0; display: none; align-items: stretch; flex-direction: column; gap: 0; padding: 12px var(--gutter) 18px; background: var(--paper); border-block: 1px solid var(--line); box-shadow: 0 15px 25px #102c4d16; max-height: calc(100dvh - 98px); overflow-y: auto; overscroll-behavior: contain; }
  .nav.open { display: flex; }
  .nav > a, .nav summary { padding: 10px 4px; }
  .nav a[aria-current]::after { display: none; }
  .nav [aria-current] { color: var(--blue); font-weight: 750; }
  .drop { position: static; box-shadow: none; border: 0; padding-left: 15px; }
  @media (scripting: none) {
  .navrow { flex-wrap: wrap; padding-block: 10px; }
  .nav { position: static; display: flex; flex-direction: row; flex-wrap: wrap; padding: 0; gap: 8px; box-shadow: none; }
  .header { position: static; }
  }
  .storyinner { min-height: 555px; }
  .storycopy h1 { font-size: clamp(3.55rem, 7.5vw, 4.5rem); }
  .storycopy p { max-width: 335px; }
  .houses { grid-template-columns: repeat(2, 1fr); }
  .footgrid { grid-template-columns: 1.1fr 1fr; }
  .footgrid > div:last-child { grid-column: 1/-1; }
  .gallery, .gallery[data-filtered] { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .gallery .card:nth-child(n), .gallery[data-filtered] .card { grid-column: auto; }
  .gallery .cardbody { display: block; }
  .gallery .small { margin-bottom: 2px; }
  .resource-layout, .guide-columns, .form-layout { gap: 28px; }
}
@media (max-width: 680px) {
  :root { --gutter: clamp(18px,5vw,32px); }
  html { scroll-padding-top: 80px; }
  .demo .wrap { font-size: .64rem; min-height: 26px; }
  .demo span:last-child { display: none; }
  .brand img { width: 44px; height: 38px; }
  .brand strong { font-size: 1.07rem; }
  .brand small { font-size: .62rem; }
  .navrow { min-height: 62px; }
  .story-image { height: clamp(270px,75vw,410px); bottom: auto; }
  .story-image img { object-position: 67% 27%; }
  .storyshade { background: linear-gradient(0deg,var(--deep) 0%, transparent 94%); height: 110px; top: calc(clamp(270px,75vw,410px) - 109px); bottom: auto; }
  .storyinner { padding-top: calc(clamp(270px,75vw,410px) - 26px); min-height: 0; display: block; }
  .storycopy { padding: 0 0 24px; }
  .storycopy h1 { font-size: clamp(2rem,10.4vw,4rem); }
  .storycopy .kicker { font-size: .61rem; margin-bottom: 8px; }
  .storycopy p { max-width: 42ch; margin: 13px 0 18px; font-size: .95rem; }
  .storybottom { display: block; padding-bottom: 10px; }
  .chapters button { flex: 1; width: auto; }
  .storynote { position: absolute; top: 10px; right: var(--gutter); }
  .stats .wrap { grid-template-columns: repeat(2,1fr); gap: 18px 0; padding: 20px 0; }
  .stat:nth-child(odd) { border: 0; padding-left: 0; }
  .mast h1 { font-size: clamp(2.75rem,9vw,3.85rem); }
  .paper .mastcopy, .pictorial .mast { display: block; }
  .paper p { border: 0; padding: 0; margin: 12px 0 0; }
  .crumb { margin-bottom: 18px; }
  .pictorial .mastcopy { padding: 26px 0; }
  .pictorial .mast > .photo { min-height: 0; aspect-ratio: 2.5; margin: 0; }
  .pictorial .mast > .photo img { position: static; height: 100%; }
  .page-campus .mast { display: flex; align-items: end; min-height: 360px; }
  .page-campus .mast > .photo { aspect-ratio: auto; inset: 0 calc(-1 * var(--gutter)); }
  .page-campus .mast > .photo::after { background: linear-gradient(0deg,#0b2439f5,#102c4dc9 44%,#132a3333); }
  .page-campus .mast .image-note { top: 10px; bottom: auto; }
  .pictorial:not(.page-campus .pictorial) { padding-bottom: 18px; }
  .split, .history, .guide-columns, .campus-spaces, .activity-layout, .resource-layout, .stack, .form-layout { grid-template-columns: 1fr; gap: 24px; }
  .history { grid-template-columns: 1fr; }
  .yearmark b { font-size: 3.75rem; }
  .cards, .tiles { grid-template-columns: 1fr; gap: 25px; }
  .cardbody { padding-top: 12px; }
  .cardbody h3 { font-size: 1.55rem; }
  .photo img { aspect-ratio: 1.8; }
  .results { gap: 16px; }
  .result b { font-size: clamp(1.65rem, 6.4vw, 2.45rem); }
  .banner .wrap, .album-head { align-items: start; flex-direction: column; }
  .banner .wrap { gap: 17px; }
  .album-head { gap: 8px; }
  .guide-columns { margin-top: 30px; }
  .guide-columns .subhead { margin-top: 8px; }
  .houses, .activities { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .house h3 { font-size: 1rem; }
  .resource-layout .photo img { aspect-ratio: 2.6; }
  .page-gallery .filters { gap: 5px; }
  .filters button { padding-inline: 12px; font-size: .81rem; }
  .gallery { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 12px; }
  .gallery .card:first-child { grid-column: 1/-1; }
  .gallery[data-filtered] .lead-image { grid-column: 1/-1; }
  .gallery .photo img { aspect-ratio: 1.35; }
  .gallery .card:first-child img, .gallery .lead-image img { aspect-ratio: 1.9; }
  .gallery .image-note { font-size: .57rem; left: 5px; bottom: 5px; padding: 2px 4px; }
  .gallery h3 { font-size: 1.15rem; }
  .filters input { max-width: none; }
  .page-staff th, .page-staff td { padding: 10px 7px; font-size: .8rem; overflow-wrap: anywhere; }
  .page-staff .tiles { gap: 18px; }
  .form-layout .photo img { aspect-ratio: 2.3; }
  .footgrid { grid-template-columns: 1fr; gap: 26px; }
  .footlinks { max-width: 320px; }
  .bottom { align-items: start; flex-direction: column; }
}
@media (max-width: 360px) {
  .navrow { gap: 8px; }
  .navrow .brand { flex: 1; min-width: 0; gap: 6px; }
  .navrow .brand span { min-width: 0; }
  .menu { flex: none; padding-inline: 3px; }
  .brand small { max-width: 21ch; }
  .btn { padding-inline: 14px; }
  .filters button { padding-inline: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}


