/*
Theme Name: St Pauls 2027
Description: stpaulsbessbrook.org, direction A "the front door" (chosen 18 Nov 2026). Built to replace StPaulsTheme2014; every page and post keeps its address.
Version: 0.5.27
Requires at least: 6.0
Text Domain: stpauls2027
*/

:root{--maroon:#6B1D2A;--navy:#2A235D;--ink:#1A1A2E;--grey:#5E6170;--line:#E5E3E0;--paper:#F4F2EE;--gold:#FCB12E;--link:#0B5E86}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:'Source Sans 3',Arial,sans-serif;color:var(--ink);background:#fff;font-size:17px;line-height:1.6}
a{color:var(--link)}
img{max-width:100%;height:auto}
.wrap{max-width:1200px;margin:0 auto;padding:0 32px}
.wrap.narrow{max-width:820px}
.skip{position:absolute;left:-999px;top:0;background:#fff;padding:8px 12px;z-index:100}.skip:focus{left:8px}
.band{display:flex;height:12px}.band i{flex:1}
.band i:nth-child(1){background:#2B235E}.band i:nth-child(2){background:#1A5C5C}.band i:nth-child(3){background:#2E7D32}
.band i:nth-child(4){background:#6B1D2A}.band i:nth-child(5){background:#5E35B1}.band i:nth-child(6){background:#FCB12E}

/* Header and menu */
.site-header{border-bottom:1px solid var(--line);background:#fff;position:relative;z-index:50}
.site-header .wrap{display:flex;align-items:center;gap:20px;min-height:92px;max-width:1320px}
.brand{display:flex;align-items:center;gap:14px;text-decoration:none;color:var(--navy);flex:none}
.brand img{width:56px;height:56px}
.brand b{display:block;font-size:21px;font-weight:700;line-height:1.15;text-wrap:balance}
.brand span{min-width:0}.brand .nw{white-space:nowrap}
.brand small{display:block;font-size:14.5px;color:var(--maroon);font-weight:600}
.site-nav{margin-left:auto}
.site-nav ul{list-style:none;margin:0;padding:0}
.site-nav > .menu{display:flex;gap:2px}
.site-nav > .menu > li{position:relative}
.site-nav > .menu > li > a{display:block;padding:10px 10px;font-weight:600;font-size:15.5px;color:var(--ink);text-decoration:none;border-radius:6px;white-space:nowrap;padding:10px 8px}
.cats{margin:14px 0 0;display:flex;gap:8px;flex-wrap:wrap}.cats a{border:1px solid var(--maroon);color:var(--maroon);border-radius:999px;padding:3px 14px;font-weight:700;font-size:15px;text-decoration:none}
.site-nav > .menu > li:hover > a,.site-nav > .menu > li:focus-within > a{color:var(--maroon);background:#F7F2F3}
.site-nav .sub-menu{display:none;position:absolute;left:0;top:100%;background:#fff;min-width:300px;padding:10px;border-top:4px solid var(--maroon);box-shadow:0 14px 30px rgba(20,20,40,.16);border-radius:0 0 8px 8px}
.site-nav li:hover > .sub-menu,.site-nav li:focus-within > .sub-menu{display:block}
.site-nav .sub-menu a{display:block;padding:6px 10px;color:var(--ink);text-decoration:none;font-size:15px;font-weight:600;border-radius:5px;line-height:1.35}
.site-nav .sub-menu a:hover{background:#F7F2F3;color:var(--maroon)}
.site-nav li.wide > .sub-menu{columns:3;column-gap:8px;width:720px;left:-200px}
.site-nav li.wide > .sub-menu li{break-inside:avoid}
.site-nav > .menu > li:nth-last-child(-n+3) > .sub-menu{left:auto;right:0}
.cta{background:var(--maroon);color:#fff;font-weight:700;font-size:15px;padding:10px 18px;border-radius:999px;white-space:nowrap;text-decoration:none;flex:none}
.menu-toggle{display:none;margin-left:auto;font:inherit;font-weight:700;color:var(--maroon);background:#fff;border:2px solid var(--maroon);border-radius:999px;padding:6px 16px}

/* Home: hero */
.hero{display:grid;grid-template-columns:5fr 7fr;min-height:600px}
.hero .panel{background:var(--maroon);color:#fff;display:flex;flex-direction:column;justify-content:center;padding:56px 56px 56px max(32px,calc((100vw - 1200px)/2 + 32px))}
.hero .ph{background:#ddd 50% 72%/cover no-repeat}
.hero small{font-size:16px;font-weight:600;color:#F2C5CD}
.hero h1{font-size:58px;line-height:1.02;font-weight:700;margin:10px 0 0}
.hero .rule{width:64px;height:4px;background:var(--gold);margin-top:22px}
.hero p{font-size:20px;margin:18px 0 30px;color:#F3E3E6;max-width:420px}
.btns{display:flex;gap:12px;flex-wrap:wrap}
.btn{display:inline-block;padding:14px 22px;border-radius:999px;font-weight:700;font-size:17px;text-decoration:none}
.btn.p{background:#fff;color:var(--maroon)}.btn.g{border:2px solid rgba(255,255,255,.85);color:#fff}

/* Home: three ways in */
.ways{display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid var(--line);padding:0}
.ways a{padding:36px 32px;border-right:1px solid var(--line);text-decoration:none;color:var(--ink)}
.ways a:last-child{border-right:0}
.ways b{display:block;font-size:24px;color:var(--navy);margin-bottom:6px}
.ways span{color:var(--grey);font-size:16px}
.ways em{display:block;font-style:normal;color:var(--maroon);font-weight:700;margin-top:14px}

/* Cards (home, news, categories, search) */
section.news{padding:64px 0 72px}
.head{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:28px}
.head h2{font-size:34px;color:var(--navy);margin:0}
.head a{color:var(--maroon);font-weight:700;text-decoration:none}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:40px 32px}
.card{text-decoration:none;color:var(--ink);display:block}
.card .ph{aspect-ratio:3/2;background:var(--paper) center/cover no-repeat;border-radius:4px;margin-bottom:14px}
.card small{color:var(--maroon);font-weight:700;font-size:14px}
.card h3{font-size:21px;line-height:1.25;margin:4px 0 0;color:var(--navy)}
.card:hover h3{color:var(--maroon)}

/* Home: sixtieth year */
.sixty{background:var(--paper)}
.sixty .wrap{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:center;padding-top:72px;padding-bottom:72px}
.sixty .big{font-family:Georgia,serif;font-size:120px;line-height:1;color:var(--maroon)}
.sixty h2{font-size:32px;color:var(--navy);margin:8px 0 12px}
.sixty p{color:#4A4D5C}
.sixty .more{color:var(--maroon);font-weight:700;text-decoration:none}
.sixty .ph{aspect-ratio:4/3;background:center/cover no-repeat;border-radius:4px}

/* Inner pages */
.page-head{background:var(--paper);border-bottom:1px solid var(--line);padding:44px 0 36px}
.page-head h1{font-size:44px;line-height:1.1;color:var(--navy);margin:0}
.crumb{margin:0 0 8px;font-weight:700;font-size:15px}.crumb a{color:var(--maroon);text-decoration:none}
.date{margin:10px 0 0;color:var(--grey)}
.layout{padding-top:40px;padding-bottom:64px}
.layout.has-side{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:56px}
.section-links h2{font-size:18px;color:var(--maroon);margin:0 0 10px}
.section-links ul{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.section-links li{border-bottom:1px solid var(--line)}
.section-links a{display:block;padding:9px 2px;text-decoration:none;color:var(--ink);font-weight:600;font-size:16px}
.section-links a:hover,.section-links .current_page_item > a{color:var(--maroon)}
.list{padding-top:40px;padding-bottom:64px}
.pager{margin-top:40px}.pager .nav-links{display:flex;gap:8px;flex-wrap:wrap}
.pager a,.pager span{padding:6px 12px;border:1px solid var(--line);border-radius:6px;text-decoration:none}
.pager .current{background:var(--maroon);color:#fff;border-color:var(--maroon)}
.post-nav{display:flex;justify-content:space-between;gap:24px;border-top:1px solid var(--line);margin:40px 0 64px;padding-top:20px;font-weight:600}
.post-nav a{text-decoration:none;color:var(--maroon)}
.empty{font-size:19px}
.search-form{display:flex;gap:8px;margin-top:16px;max-width:520px}
.search-form label{flex:1}.search-field{width:100%;font:inherit;padding:10px 12px;border:1px solid #C9CCD3;border-radius:8px}
.search-submit{font:inherit;font-weight:700;background:var(--maroon);color:#fff;border:0;border-radius:8px;padding:10px 18px}

/* Content written in the old editor */
.entry{font-size:18px;line-height:1.7;padding-top:8px}
.entry h2{font-size:28px;color:var(--navy);line-height:1.2;margin:1.6em 0 .5em}
.entry h3{font-size:22px;color:var(--navy);margin:1.4em 0 .4em}
.entry h4{font-size:19px;margin:1.2em 0 .3em}
.entry img{border-radius:3px}
.entry .alignleft{float:left;margin:4px 24px 12px 0}.entry .alignright{float:right;margin:4px 0 12px 24px}
.entry .aligncenter{display:block;margin:12px auto}
.entry .wp-caption{max-width:100%}.entry .wp-caption-text{font-size:14px;color:var(--grey);margin-top:4px}
.entry iframe,.entry video{max-width:100%}
.entry table{border-collapse:collapse;width:100%;font-size:16px;margin:1em 0}
.entry td,.entry th{border:1px solid var(--line);padding:8px 10px;text-align:left;vertical-align:top}
.entry blockquote{margin:1.2em 0;padding:4px 0 4px 20px;border-left:4px solid var(--maroon);color:#3A3D4C}
.entry:after{content:"";display:table;clear:both}
.entry .gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px}
.entry .gallery-item{margin:0!important;width:auto!important}
.entry .gallery br{display:none}

/* Footer */
.site-footer{background:var(--navy);color:#C9D2DE;font-size:15px;margin-top:0}
.site-footer .wrap{display:flex;justify-content:space-between;gap:32px;padding-top:36px;padding-bottom:36px;align-items:flex-start}
.f-brand{display:flex;gap:14px;align-items:flex-start}.f-brand p{margin:0;line-height:1.5}.f-brand b{color:#fff}
.f-menu{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px 22px}
.f-menu a{color:#fff;text-decoration:none;font-weight:600}

/* Below 1100px the menu tightens; below 900px it becomes the phone menu */
@media (max-width:1400px){.cta{display:none}}
@media (max-width:1180px){.site-nav > .menu > li > a{padding:10px 5px;font-size:14.5px}.brand b{font-size:18px}.brand img{width:46px;height:46px}}
@media (max-width:900px){
	.wrap{padding:0 18px}
	.site-header .wrap{min-height:72px;flex-wrap:wrap;gap:12px}
	.brand{flex:1 1 0;min-width:0}.brand img{width:44px;height:44px}.brand b{font-size:17px}.brand small{font-size:13px}.menu-toggle{flex:none}
	.menu-toggle{display:block}
	.site-nav{display:none;flex-basis:100%;margin:0 0 12px}.site-nav.open{display:block}
	.site-nav > .menu{flex-direction:column;gap:0}
	.site-nav > .menu > li{border-top:1px solid var(--line)}
	.site-nav > .menu > li > a{padding:12px 4px;font-size:17px}
	.site-nav .sub-menu{position:static;box-shadow:none;border-top:0;padding:0 0 10px 12px;min-width:0;display:none}
	.site-nav li:hover > .sub-menu{display:none}
	.site-nav li.sub-open > .sub-menu{display:block}
	.site-nav li.wide > .sub-menu{columns:1;width:auto}
	.hero{grid-template-columns:1fr;min-height:0}
	.hero .ph{order:-1;height:300px}
	.hero .panel{padding:30px 18px 34px}
	.hero h1{font-size:40px}.hero p{font-size:18px}
	.btns{flex-direction:column}.btn{text-align:center}
	.ways{grid-template-columns:1fr}.ways a{border-right:0;border-bottom:1px solid var(--line);padding:24px 18px}
	.cards{grid-template-columns:1fr}
	.sixty .wrap{grid-template-columns:1fr;padding-top:48px;padding-bottom:48px}.sixty .big{font-size:84px}
	.page-head{padding:28px 0 24px}.page-head h1{font-size:32px}
	.layout.has-side{grid-template-columns:1fr;gap:32px}
	.entry .alignleft,.entry .alignright{float:none;margin:12px 0;display:block}
	.site-footer .wrap{flex-direction:column}
}
@media (min-width:901px) and (max-width:1100px){.cards{grid-template-columns:repeat(2,1fr)}}
@media (max-width:420px){.site-header .wrap{gap:8px}.brand{gap:10px}.brand img{width:38px;height:38px}.brand b{font-size:15.5px}.brand small{font-size:12.5px}.menu-toggle{padding:5px 12px;font-size:15px}}

/* ===== Header, v0.2: navy top bar (crest and both names), maroon menu bar (DM, 18 Nov 2026: navy is part of the palette since 2014; the Prospectus navy) ===== */
.site-header{background:var(--navy);border-bottom:0;position:relative;z-index:50}
.site-header .wrap{max-width:1320px}
.site-header .top .wrap{display:flex;align-items:center;gap:20px;min-height:100px}
.site-header .brand{color:#fff;flex:none}
.site-header .brand img{width:64px;height:64px}
.site-header .brand b{font-size:24px;color:#fff}
.site-header .brand small{font-size:16px;color:#FCB12E;font-weight:600}
.hsearch{margin-left:auto}
.hsearch input{font:inherit;font-size:15px;width:210px;padding:9px 14px 9px 36px;border-radius:999px;border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px 50%/16px;color:#fff}
.hsearch input::placeholder{color:#C9C6DE}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px)}
.site-header .cta{display:inline-block;background:#FCB12E;color:var(--navy)}
.site-header .bar{background:var(--maroon)}
.site-header .bar .wrap{min-height:0;display:block}
/* where the band touches the navy or maroon bars, a white hairline keeps its navy and maroon sections visible */
.band{box-shadow:0 2px 0 #fff;position:relative;z-index:60}.band + .site-header{border-top:0}.site-header + .band{border-top:2px solid #fff}
.site-header .site-nav{margin:0}
.site-header .site-nav > .menu{gap:0}
.site-header .site-nav > .menu > li > a{color:#fff;font-size:16px;padding:14px 16px;border-radius:0}
.site-header .site-nav > .menu > li:first-child > a{padding-left:0}
.site-header .site-nav > .menu > li:hover > a,.site-header .site-nav > .menu > li:focus-within > a{background:rgba(255,255,255,.12);color:#fff}
.site-header .site-nav > .menu > li:first-child:hover > a{padding-left:0;background:none;text-decoration:underline;text-underline-offset:6px}
.site-header .site-nav .sub-menu{border-top:4px solid #FCB12E}
.site-nav > .menu > li.menu-item-has-children > a:after{content:"";display:inline-block;width:6px;height:6px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin:0 0 3px 8px;opacity:.7}
.site-header .menu-toggle{display:none;background:transparent;color:#fff;border-color:#fff}
@media (max-width:1400px){.site-header .cta{display:inline-block}}
@media (max-width:1180px){.site-header .site-nav > .menu > li > a{padding:14px 10px;font-size:15px}.site-header .brand b{font-size:21px}.hsearch input{width:160px}}
@media (max-width:900px){
	.site-header .top .wrap{min-height:76px;flex-wrap:nowrap;gap:10px}
	.site-header .brand{flex:1 1 0;min-width:0;gap:10px}.site-header .brand img{width:44px;height:44px}
	.site-header .brand b{font-size:17px}.site-header .brand small{font-size:13px}
	.hsearch,.site-header .cta{display:none}
	.site-header .menu-toggle{display:block;flex:none}
	.site-header .bar .wrap{padding:0}
	.site-header .site-nav{display:none}.site-header .site-nav.open{display:block}
	.site-header .site-nav > .menu{flex-direction:column}
	.site-header .site-nav > .menu > li{border-top:1px solid rgba(255,255,255,.15)}
	.site-header .site-nav > .menu > li > a,.site-header .site-nav > .menu > li:first-child > a{padding:13px 18px;font-size:17px}
	.site-header .site-nav .sub-menu{position:static;background:transparent;box-shadow:none;border-top:0;padding:0 0 10px 30px;min-width:0}
	.site-header .site-nav .sub-menu a{color:#F3E3E6}
}
@media (max-width:420px){.site-header .brand img{width:38px;height:38px}.site-header .brand b{font-size:15.5px}.site-header .brand small{font-size:12.5px}}
/* The six-colour band as the seam between the menu bar and the page (variant 2 only, set by body class) */
.band-under .band.top-band{display:none}

/* ===== Type, v0.3: EB Garamond at medium weight for the school's names and headlines (DM, 18 Nov 2026, after the 2014 masthead); sans for menu, buttons and body ===== */
:root{--serif:'EB Garamond',Georgia,'Times New Roman',serif}
.site-header .brand b{font-family:var(--serif);font-weight:500;font-size:28px}
.site-header .brand small{font-family:var(--serif);font-weight:500;font-size:19px;white-space:nowrap}
.hero h1{font-family:var(--serif);font-weight:500;font-size:67px;line-height:1.04}
.page-head h1,.head h2,.sixty h2,.entry h2,.section-links h2{font-family:var(--serif);font-weight:500}
.page-head h1{font-size:52px;line-height:1.08}.head h2{font-size:40px}.sixty h2{font-size:36px}.entry h2{font-size:31px}.section-links h2{font-size:22px}
.f-brand b{font-family:var(--serif);font-weight:500;font-size:19px}
@media (max-width:1180px){.site-header .brand b{font-size:24px}.site-header .brand small{font-size:17px}}
@media (max-width:900px){.site-header .brand b{font-size:20px}.site-header .brand small{font-size:15px}.hero h1{font-size:47px}.page-head h1{font-size:38px}}
@media (max-width:420px){.site-header .brand b{font-size:18px}.site-header .brand small{font-size:14px}}

/* ===== Course pages, v0.3: built from the 2026 Subject Choice booklets ===== */
.entry .lead{font-size:21px;line-height:1.55;color:#2E3040;margin:0 0 8px}
.entry .course{border:1px solid var(--line);border-top:4px solid var(--maroon);border-radius:6px;padding:20px 26px 8px;margin:18px 0 26px;background:#fff}
.entry .course h3{font-family:var(--serif);font-weight:500;font-size:27px;margin:0 0 4px;color:var(--navy)}
.entry .course h4{font-size:15px;text-transform:none;color:var(--maroon);margin:16px 0 4px}
.entry .course ul{margin:0 0 6px;padding-left:20px}.entry .course li{margin:2px 0}
.entry .meta{color:var(--grey);font-size:16px;margin:0 0 10px}
.entry .source{font-size:15px;color:var(--grey);border-top:1px solid var(--line);padding-top:14px;margin-top:30px}
.entry ul.team{list-style:none;padding:0;margin:8px 0 10px;columns:2;column-gap:32px}
.entry ul.team li{break-inside:avoid;padding:8px 0;border-bottom:1px solid var(--line);margin:0}
.entry ul.team b{display:block;font-weight:600}.entry ul.team span{display:block;font-size:15px;color:var(--grey)}
@media (max-width:600px){.entry ul.team{columns:1}}

/* ===== Staff page, v0.3 ===== */
.entry ul.people{list-style:none;padding:0;margin:10px 0 18px;display:grid;grid-template-columns:repeat(4,1fr);gap:26px 22px}
.entry ul.people li{margin:0}
.entry ul.people img,.entry ul.people .nophoto{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:6px;margin-bottom:10px;background:var(--paper)}
.entry ul.people .nophoto{background:#E3E4E8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='38' r='17' fill='%23B7B9C2'/%3E%3Cpath d='M16 100c0-21 15-36 34-36s34 15 34 36z' fill='%23B7B9C2'/%3E%3C/svg%3E") center bottom/86% no-repeat;margin-top:0}
.entry ul.people b{display:block;font-family:var(--serif);font-weight:500;font-size:21px;line-height:1.2;color:var(--navy)}
.entry ul.people span{display:block;font-size:15px;line-height:1.4;color:var(--grey);margin-top:2px}
.entry ul.team a{color:var(--link)}
@media (max-width:900px){.entry ul.people{grid-template-columns:repeat(2,1fr);gap:20px 16px}}

/* ===== Page photographs, v0.3 ===== */
.entry figure{margin:0}
.entry .hero-img{margin:0 0 26px}
.entry .hero-img img{display:block;width:100%;height:auto;border-radius:6px}
.entry .pair{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:30px 0 26px;align-items:start}
.entry .pair img{display:block;width:100%;height:auto;border-radius:6px}.entry .pair img:only-child{grid-column:1/3}
@media (max-width:600px){.entry .pair{grid-template-columns:1fr}.entry .pair img:only-child{grid-column:auto}}

/* ===== v0.4: News out of the menu (DM, 19 Nov 2026). Quick links for frequent visitors; the home page is the news front ===== */
.site-header .quick{margin-left:auto;display:flex;gap:4px}
.site-header .quick a{color:#fff;text-decoration:none;font-weight:600;font-size:15px;padding:8px 10px;border-radius:6px}
.site-header .quick a:hover{background:rgba(255,255,255,.12)}
.site-header .hsearch{margin-left:6px}
.hero{min-height:0;height:420px}.hero .panel{padding-top:34px;padding-bottom:34px}.hero h1{font-size:52px}.hero p{margin:12px 0 20px}.hero .btns{flex-wrap:nowrap}.hero .btn{padding:12px 20px;font-size:16px}
section.front{padding:44px 0 56px;border-bottom:1px solid var(--line)}
.front .head{margin-bottom:22px}
.front .grid{display:grid;grid-template-columns:7fr 5fr;gap:36px;align-items:start}
.front .lead-story{text-decoration:none;color:var(--ink);display:block}
.front .lead-story .ph{aspect-ratio:3/2;background:var(--paper) center/cover no-repeat;border-radius:6px;margin-bottom:14px}
.front .lead-story small,.front .stories small{color:var(--maroon);font-weight:700;font-size:14px}
.front .lead-story h3{font-family:var(--serif);font-weight:500;font-size:34px;line-height:1.12;color:var(--navy);margin:4px 0 8px}
.front .lead-story p{margin:0;color:#4A4D5C;font-size:17px}
.front .stories a{display:grid;grid-template-columns:132px 1fr;gap:16px;align-items:start;text-decoration:none;color:var(--ink);padding:0 0 16px;margin:0 0 16px;border-bottom:1px solid var(--line)}
.front .stories a:last-child{border-bottom:0;margin-bottom:0}
.front .stories .ph{aspect-ratio:3/2;background:var(--paper) center/cover no-repeat;border-radius:4px}
.front .stories h3{font-size:18px;line-height:1.3;margin:2px 0 0;color:var(--navy)}
.front .lead-story:hover h3,.front .stories a:hover h3{color:var(--maroon)}
.front .more{display:inline-block;margin-top:18px;font-weight:700;color:var(--maroon);text-decoration:none}
@media (max-width:1180px){.site-header .quick a{padding:8px 6px;font-size:14px}.site-header .hsearch input{width:150px}}
@media (max-width:900px){.hero{height:auto}.hero .btns{flex-wrap:wrap}.site-header .quick{display:none}.front .grid{grid-template-columns:1fr}.front .lead-story h3{font-size:27px}.front .stories a{grid-template-columns:110px 1fr}.hero{min-height:0}}
.mobile-quick{display:none}
@media (max-width:900px){.mobile-quick{display:flex;flex-wrap:wrap;gap:6px 14px;padding:12px 18px;background:#F4F2EE;border-bottom:1px solid var(--line)}.mobile-quick a{font-weight:700;color:var(--navy);text-decoration:none;font-size:15px}}

@media (max-width:900px){.hero .ph{height:220px}.hero .panel{padding:22px 18px 26px}.hero h1{font-size:36px}.hero p{font-size:17px}.hero .btn{padding:11px 16px}
.mobile-quick{justify-content:space-between}.mobile-quick a{padding:2px 0}}
/* v0.4.4: wide tables scroll inside their own box instead of widening the page (found on the phone check, 19 Nov) */
.layout.has-side{grid-template-columns:minmax(0,1fr) 280px}
.entry{min-width:0}
.entry table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
@media (max-width:900px){.layout.has-side{grid-template-columns:minmax(0,1fr)}}

/* ===== v0.5.0 quality pass (19 Nov 2026) ===== */
/* A focus ring every keyboard user can see: blue on light ground, gold on the navy and maroon bars (both 6:1 or better) */
:focus-visible{outline:3px solid var(--link);outline-offset:2px}
.site-header :focus-visible,.hero .panel :focus-visible,.site-footer :focus-visible{outline-color:#FCB12E}
.site-header .site-nav .sub-menu :focus-visible{outline-color:var(--link)}
.skip:focus{outline:3px solid var(--link)}
.site-header .quick a:focus-visible,.site-header .site-nav > .menu > li > a:focus-visible{outline-offset:-3px}
/* Escape closes a dropdown that keyboard focus had opened */
.site-nav li.esc > .sub-menu{display:none!important}
/* Links inside running text are underlined, so they are not told apart by colour alone */
.entry p a,.entry li a{text-decoration:underline;text-underline-offset:2px}
.entry ul.team a{text-decoration:underline}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}


/* v0.5.2: document lists (Policies page) */
.entry ul.docs{list-style:none;padding:0;margin:6px 0 26px;border-top:1px solid var(--line)}
.entry ul.docs li{padding:12px 0 13px;border-bottom:1px solid var(--line);margin:0}
.entry ul.docs a{font-weight:600}
.entry ul.docs .meta{color:var(--grey);font-size:15px;white-space:nowrap}
.entry ul.docs .what{display:block;font-size:16px;color:#3A3D4C;margin-top:2px}
@media (max-width:600px){.entry ul.docs .meta{white-space:normal;display:block}}

/* v0.5.3: a small photograph beside each group heading on document pages */
.entry .docs-head{display:flex;align-items:center;gap:18px;margin:34px 0 10px}
.entry .docs-head img{flex:none;width:120px;height:80px;object-fit:cover;border-radius:6px;margin:0}
.entry .docs-head h2{margin:0}
@media (max-width:600px){.entry .docs-head{gap:14px}.entry .docs-head img{width:84px;height:56px}}

/* Notices strip (0.5.7): under the band; pale gold ground, navy label, ink text, maroon link */
.notices{background:#FFF7E6;border-bottom:1px solid #EADBB8}
.notices .wrap{max-width:1320px;display:flex;align-items:center;gap:24px;min-height:58px;padding-top:11px;padding-bottom:11px;position:relative}
.notices-list{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center}
.notice{display:flex;align-items:baseline;gap:14px}
.notice + .notice{margin-top:8px}
.notices.js .notice{display:none;margin:0}
.notices.js .notice.is-on{display:flex;animation:sp27-notice .35s ease-out}
.notices.measuring .notice.is-on{animation:none}
@keyframes sp27-notice{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:none}}
.notice-label{flex:none;background:var(--navy);color:#fff;font-size:13.5px;font-weight:700;line-height:1;padding:6px 11px 7px;border-radius:999px;white-space:nowrap;position:relative;top:-1px}
.notice-text{margin:0;font-size:16.5px;line-height:1.45;color:var(--ink)}
.notice-text b{color:var(--navy)}
.notice-text a{color:var(--maroon);font-weight:700;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1.5px;white-space:nowrap;margin-left:2px}
.notice-text a:hover{color:var(--navy)}
.notices-ctrl{flex:none;display:flex;align-items:center;gap:6px}
.notices-ctrl[hidden]{display:none}
.notices-count{font-size:14px;color:var(--grey);font-variant-numeric:tabular-nums;margin-right:6px;min-width:2.6em;text-align:right}
.nc{width:34px;height:34px;border-radius:50%;border:1px solid #D8C69C;background:#fff;color:var(--navy);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.nc:hover{border-color:var(--navy)}
.nc svg{width:14px;height:14px;fill:currentColor;display:block}
.nc .i-play{display:none}.nc[aria-pressed="true"] .i-play{display:block}.nc[aria-pressed="true"] .i-pause{display:none}
@media (max-width:900px){
.notices .wrap{display:block;min-height:0;padding:12px 18px 14px}
.notices.js .notice.is-on,.notice{display:block}
.notice-label{display:inline-block;margin:0 0 8px;font-size:13px;top:0}
.notice-text{font-size:15.5px}
.notice-text a{white-space:normal;display:inline-block;margin:3px 0 0}
.notices-ctrl{position:absolute;right:14px;top:8px;gap:4px}
.notices-count{display:none}
.nc{width:32px;height:32px}
}

/* ===== v0.5.8 (24 Nov 2026): section photographs, phone section pills, phone search, four routes, values line ===== */
/* Section photograph behind the heading: dark on the left where the words sit, lighter to the right */
.page-head.has-photo{position:relative;background-color:var(--ink);background-position:center 45%;background-size:cover;background-repeat:no-repeat;border-bottom:0;padding:76px 0 60px}
.page-head.has-photo::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(26,26,46,.88) 0%,rgba(26,26,46,.74) 45%,rgba(26,26,46,.38) 100%)}
.page-head.has-photo .wrap{position:relative}
.page-head.has-photo h1{color:#fff}
.page-head.has-photo .crumb a{color:#F2C5CD}
/* Phone section pills (hidden on a desktop, where the side list does the job) */
.sec-strip{display:none}
.nav-search{display:none}
/* Four routes on the home page */
.ways{grid-template-columns:repeat(4,1fr)}
.ways a:nth-child(3){border-right:1px solid var(--line)}
/* Values line in the footer */
.site-footer .values{margin:12px 0 0;color:#fff;font-family:var(--serif);font-weight:500;font-size:19px;line-height:1.35}
.site-footer .values span[lang]{display:block;color:#C9D2DE}
@media (min-width:901px) and (max-width:1100px){
	.ways{grid-template-columns:repeat(2,1fr)}
	.ways a:nth-child(2n){border-right:0}
	.ways a:nth-child(-n+2){border-bottom:1px solid var(--line)}
}
@media (max-width:900px){
	.page-head.has-photo{padding:34px 0 22px}
	.page-head.has-photo::before{background:rgba(26,26,46,.78)}
	.sec-strip{display:block;position:relative;margin:18px -18px 0;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}
	.sec-strip::-webkit-scrollbar{display:none}
	.sec-strip ul{list-style:none;margin:0;padding:0 18px 4px;display:flex;gap:8px;white-space:nowrap}
	.sec-strip li{margin:0}
	.sec-strip a{display:block;padding:8px 14px;border-radius:999px;border:1px solid var(--line);background:#fff;color:var(--navy);font-weight:600;font-size:15px;text-decoration:none}
	.sec-strip .current_page_item > a{background:var(--maroon);border-color:var(--maroon);color:#fff}
	.has-photo .sec-strip a{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.4);color:#fff}
	.has-photo .sec-strip .current_page_item > a{background:#fff;border-color:#fff;color:var(--maroon)}
	.layout.has-side .section-links{display:none}
	.site-header .site-nav .nav-search{display:block;padding:14px 18px 12px}
	.nav-search input{box-sizing:border-box;width:100%;font:inherit;font-size:16px;padding:11px 14px 11px 38px;border-radius:999px;border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 13px 50%/16px;color:#fff}
	.nav-search input::placeholder{color:#E6D3D7}
	.ways{grid-template-columns:1fr}
	.ways a,.ways a:nth-child(3){border-right:0}
	.front .head{flex-direction:column;align-items:flex-start;gap:4px}
	.front .head h2{font-size:31px;line-height:1.15}
}

/* ===== v0.5.9 (24 Nov 2026, after launch, DM: "It is hard to click on an option with the coloured banner line in between" and "the bottom banner doesn't work with the six colour strip. The first colour disappears.") ===== */
/* Drop-downs: the header (and so its menus) sits above the six-colour band, and each menu starts flush under the menu bar,
   so the pointer never crosses the band on its way to an option */
.site-header{z-index:70}
.site-header .site-nav > .menu > li > .sub-menu{top:100%;margin-top:0}
/* Footer: light, so all six colours of the bottom band show on white (DM: "Light footer, band on white") */
.site-footer{background:#fff;color:var(--grey);border-top:1px solid var(--line)}
.f-brand b{color:var(--navy)}
.f-menu a{color:var(--navy)}
.f-menu a:hover{color:var(--maroon)}
.site-footer .values{color:var(--maroon)}
.site-footer .values span[lang]{color:var(--grey)}
.site-footer :focus-visible{outline-color:var(--link)}

/* ===== v0.5.10 (24 Nov 2026, DM: "Staff and SLT photo layout should resemble St Colman's page layout"; "No photo of me in the Principal's Welcome") ===== */
/* Senior team as portrait cards: the Principal alone and centred on the first row, then the rest; full names in the serif, the role in maroon */
.entry ul.people.slt{display:flex;flex-wrap:wrap;justify-content:center;gap:36px 28px;margin:14px 0 30px}
.entry ul.people.slt li{width:calc((100% - 84px)/4);margin:0}
.entry ul.people.slt img,.entry ul.people.slt .nophoto{aspect-ratio:4/5;object-fit:cover;object-position:50% 30%;border-radius:3px;margin-bottom:12px}
.entry ul.people.slt b{font-size:22px}
.entry ul.people.slt span{color:var(--maroon);font-weight:700;font-size:14.5px;margin-top:4px}
.entry ul.people.slt.lead li:first-child{width:100%;display:flex;flex-direction:column;align-items:center}
.entry ul.people.slt.lead li:first-child > *{width:calc((100% - 84px)/4);text-align:left}
/* The Principal's portrait beside the opening of the welcome */
.entry figure.portrait{float:right;width:250px;margin:6px 0 20px 36px}
.entry figure.portrait img{display:block;width:100%;aspect-ratio:4/5;object-fit:cover;object-position:50% 30%;border-radius:3px}
.entry figure.portrait figcaption{font-family:var(--serif);font-weight:500;font-size:19px;color:var(--navy);margin-top:10px;line-height:1.3}
@media (max-width:900px){
	.entry ul.people.slt{gap:24px 16px}
	.entry ul.people.slt li{width:calc((100% - 16px)/2)}
	.entry ul.people.slt.lead li:first-child > *{width:calc((100% - 16px)/2)}
	.entry ul.people.slt b{font-size:19px}
	.entry figure.portrait{float:none;width:62%;max-width:260px;margin:6px auto 22px}
}

/* ===== v0.5.11 (24 Nov 2026): senior team "About" links and panels (DM: "biographies of senior staff ... as a clickable option") ===== */
.entry ul.people.slt a.bio-link{display:inline-block;margin-top:8px;font-weight:700;font-size:14.5px;color:var(--navy);text-decoration:underline;text-underline-offset:3px}
.entry ul.people.slt a.bio-link:hover{color:var(--maroon)}
.entry .bios{margin:8px 0 34px;padding-top:6px;border-top:1px solid var(--line)}
.entry .bios .bio{margin:0 0 22px}
.entry .bios h3{font-family:var(--serif);font-weight:500;font-size:22px;color:var(--navy);margin:16px 0 2px}
.entry .bios .bio-role{color:var(--maroon);font-weight:700;font-size:14.5px;margin:0 0 8px}
.js-bios .entry .bios{display:none}
dialog.bio-dialog{border:0;padding:0;border-radius:6px;width:min(760px,calc(100vw - 32px));max-height:calc(100vh - 48px);overflow:auto;box-shadow:0 24px 60px rgba(20,20,40,.35);color:var(--ink)}
dialog.bio-dialog::backdrop{background:rgba(26,26,46,.6)}
dialog.bio-dialog .bio-body{display:grid;grid-template-columns:220px 1fr;gap:28px;padding:32px}
dialog.bio-dialog .bio-photo{width:100%;aspect-ratio:4/5;object-fit:cover;object-position:50% 30%;border-radius:3px}
dialog.bio-dialog h3{font-family:var(--serif);font-weight:500;font-size:28px;line-height:1.15;color:var(--navy);margin:0 0 4px}
dialog.bio-dialog .bio-role{color:var(--maroon);font-weight:700;font-size:15px;margin:0 0 14px}
dialog.bio-dialog p{font-size:16.5px;line-height:1.6;margin:0 0 12px}
dialog.bio-dialog .bio-close{position:absolute;top:10px;right:12px;width:40px;height:40px;border:0;border-radius:50%;background:var(--paper);color:var(--navy);font-size:26px;line-height:1;cursor:pointer}
dialog.bio-dialog .bio-close:hover{background:var(--line)}
@media (max-width:700px){
	dialog.bio-dialog .bio-body{grid-template-columns:1fr;padding:56px 20px 24px;gap:16px}
	dialog.bio-dialog .bio-photo{width:55%;max-width:220px}
	dialog.bio-dialog h3{font-size:24px}
}

/* ===== v0.5.12 (24 Nov 2026) ===== */
/* News pictures are never trimmed (DM: "The featured image ... is not cropped correctly and omits key information"; "Show the whole picture"):
   the whole picture sits in the frame, and any spare space either side shows a soft, blurred copy of the same picture */
.ph.pic{position:relative;overflow:hidden;isolation:isolate;background:var(--img) center/contain no-repeat,var(--paper)}
.ph.pic::before{content:"";position:absolute;inset:-24px;background:var(--img) center/cover no-repeat;filter:blur(18px) saturate(.9) brightness(.92);z-index:-1}
/* v0.5.19: the growing home-page masthead of 0.5.12 removed (DM, 24 Nov 2026: "does not look good"). */


/* ===== v0.5.13 (24 Nov 2026): fix to 0.5.12. The blurred copy was painted over the sharp picture; the sharp
   picture now sits on its own top layer (::after), the blur beneath it (::before) ===== */
.ph.pic{background:var(--paper)}
.ph.pic::before{z-index:0}
.ph.pic::after{content:"";position:absolute;inset:0;background:var(--img) center/contain no-repeat;z-index:1}

/* ===== v0.5.14 (24 Nov 2026, DM: "The navigation on the iPhone/perhaps dark mode obscures the touch point with a black bar") =====
   The desktop drop-down highlight (pale pink on white) was also firing on the maroon phone menu, where a touched item kept it
   and dark-mode browsers turned it into a black bar. On the phone menu a touched item now shows a faint white tint with white text. */
:root{color-scheme:light dark}
@media (max-width:900px){
	.site-header .site-nav .sub-menu a:hover,.site-header .site-nav .sub-menu a:focus,.site-header .site-nav .sub-menu a:active{background:rgba(255,255,255,.12);color:#fff}
	.site-header .site-nav > .menu > li > a:hover,.site-header .site-nav > .menu > li > a:active{background:rgba(255,255,255,.08);color:#fff}
}
@media (hover:none){.site-nav .sub-menu a:hover{background:transparent}}

/* v0.5.16: section page lists */
.entry ul.pagelist{list-style:none;padding:0;margin:8px 0 28px;columns:2;column-gap:36px}
.entry ul.pagelist li{break-inside:avoid;border-top:1px solid var(--line);padding:10px 0;margin:0}
.entry ul.pagelist a{font-weight:600;text-decoration:none}
@media (max-width:700px){.entry ul.pagelist{columns:1}}

/* ===================== v0.5.19 (24 Nov 2026) ===================== */
/* Option A (DM's pick, 24 Nov: "A, header only"): colour stays in the header; below the band the page is white.
   The notices strip is white with a hairline; the hero panel is white with a navy heading and one maroon button. */
.notices{background:#fff;border-bottom:1px solid var(--line)}
.nc{border-color:var(--line)}
.hero{border-bottom:1px solid var(--line)}
.hero .panel{background:#fff;color:var(--ink)}
.hero small{color:var(--grey)}
.hero h1{color:var(--navy)}
.hero .rule{background:var(--maroon);height:3px}
.hero p{color:var(--ink)}
.hero .btn.p{background:var(--maroon);color:#fff;border:2px solid var(--maroon)}
.hero .btn.g{border:2px solid var(--navy);color:var(--navy)}
.hero .panel :focus-visible{outline-color:var(--link)}

/* Dark mode (DM, 24 Nov: "And dark mode properly?"). Follows the device setting. The header, the band and the
   photographs are unchanged; grounds go near-black, navy text becomes near-white, maroon text a light rose. */
@media (prefers-color-scheme:dark){
	:root{--ink:#E9E7F1;--grey:#A8A6B8;--line:#34324A;--paper:#1C1B28;--link:#8CC4EA;--dk:#121119;--hd:#F3F1FA;--rose:#E7A9B5}
	body,.skip,.site-footer,.hero .panel,.notices,dialog.bio-dialog{background:var(--dk);color:var(--ink)}
	.site-nav .sub-menu,.entry .course,.sec-strip a,.nc,.menu-toggle,.mobile-quick{background:var(--paper)}
	.site-nav > .menu > li:hover > a,.site-nav > .menu > li:focus-within > a,.site-nav .sub-menu a:hover{background:#2A2838}
	.page-head.has-photo{background-color:var(--dk)}
	.brand,.ways b,.head h2,.card h3,.sixty h2,.page-head h1,.entry h2,.entry h3,.entry .course h3,.entry ul.people b,
	.front .lead-story h3,.front .stories h3,.mobile-quick a,.notice-text b,.nc,.sec-strip a,.f-brand b,.f-menu a,
	.entry figure.portrait figcaption,.entry ul.people.slt a.bio-link,.entry .bios h3,dialog.bio-dialog h3,
	dialog.bio-dialog .bio-close,.hero h1{color:var(--hd)}
	.cats a,.ways em,.head a,.card small,.card:hover h3,.sixty .big,.sixty .more,.crumb a,.section-links h2,
	.section-links a:hover,.section-links .current_page_item > a,.post-nav a,.entry .course h4,
	.front .lead-story small,.front .stories small,.front .lead-story:hover h3,.front .stories a:hover h3,.front .more,
	.notice-text a,.notice-text a:hover,.f-menu a:hover,.site-footer .values,.entry ul.people.slt span,
	.entry ul.people.slt a.bio-link:hover,.entry .bios .bio-role,dialog.bio-dialog .bio-role,.menu-toggle{color:var(--rose)}
	.cats a,.menu-toggle{border-color:var(--rose)}
	.site-header .site-nav > .menu > li > a,.site-header .site-nav > .menu > li:hover > a,.site-header .brand,.site-header .brand b,.site-header .menu-toggle{color:#fff}
	.site-header .brand small{color:#FCB12E}
	.site-header .menu-toggle{background:transparent;border-color:rgba(255,255,255,.8)}
	.hero .rule{background:var(--rose)}
	.hero .btn.g{border-color:var(--hd);color:var(--hd)}
	.page-head.has-photo h1,.has-photo .sec-strip a,.has-photo .crumb a{color:#fff}
	.has-photo .sec-strip a{background:rgba(0,0,0,.25)}
	.has-photo .sec-strip .current_page_item > a{background:#fff;color:var(--maroon)}
	.sec-strip .current_page_item > a{background:var(--maroon);color:#fff}
	.site-footer{border-top-color:var(--line)}
	.entry .lead,.sixty p,.front .lead-story p,.entry blockquote,.entry ul.docs .what{color:var(--ink)}
}

/* v0.5.20 (DM, 24 Nov 2026): the Principal on his own above the Vice-Principals, his portrait larger, as St Colman's does */
.entry ul.people.slt.principal li{width:calc((100% - 84px)/4*1.4)}
.entry ul.people.slt.principal b{font-size:26px}
.entry ul.people.slt.principal span{font-size:15.5px}
@media (max-width:900px){.entry ul.people.slt.principal li{width:72%}.entry ul.people.slt.principal b{font-size:22px}}

/* ===== v0.5.23 (25 Nov 2026): the footer values line is the Mission Statement's full sentence, with a link (DM) ===== */
.site-footer .values{font-size:17px;line-height:1.45;max-width:34em}
.site-footer .values a.values-more{display:block;margin-top:8px;font-family:'Source Sans 3',Arial,sans-serif;font-weight:600;font-size:15px;color:var(--navy,#2A235D);text-decoration:none}
.site-footer .values a.values-more:hover{text-decoration:underline}
@media (prefers-color-scheme:dark){.site-footer .values a.values-more{color:var(--link,#8CC4EA)}}

/* ===== v0.5.24 (25 Nov 2026): a policy or document link (a.btn-doc) shows as a clear document button, not a plain text link (DM: the RE page "doesn't link the policy") ===== */
.entry a.btn-doc{display:inline-flex;align-items:center;gap:10px;margin:4px 0 8px;padding:12px 18px 12px 14px;border:1.5px solid var(--maroon);border-radius:6px;background:#fff;color:var(--maroon);font-weight:700;font-size:16px;line-height:1.35;text-decoration:none}
.entry a.btn-doc::before{content:"PDF";flex:none;display:inline-block;padding:3px 6px;border-radius:3px;background:var(--maroon);color:#fff;font-size:11px;font-weight:700;line-height:1}
.entry a.btn-doc:hover,.entry a.btn-doc:focus{background:var(--maroon);color:#fff}
.entry a.btn-doc:hover::before,.entry a.btn-doc:focus::before{background:#fff;color:var(--maroon)}
@media (prefers-color-scheme:dark){.entry a.btn-doc{background:transparent;border-color:var(--rose,#E7A9B5);color:var(--rose,#E7A9B5)}.entry a.btn-doc::before{background:var(--rose,#E7A9B5);color:#121119}.entry a.btn-doc:hover,.entry a.btn-doc:focus{background:var(--rose,#E7A9B5);color:#121119}}

/* ===== v0.5.25 (25 Nov 2026): subject pages head with their own photograph (DM: "Each subject's own"); the same photograph is not repeated at the top of the text ===== */
body.sp27-photo-from-page .entry > figure.hero-img:first-child{display:none}
