/* Editorial layouts for the catalogue, directory, partnership and guidance hubs. */
@media (min-width:1181px) and (max-width:1400px) {
  .modern:has(.xp) .sh-hdr .sd-hdr__in { gap:14px; }
  .modern:has(.xp) .sh-hdr .sd-hdr__logo img { width:180px; height:auto; }
  .modern:has(.xp) .sh-hdr .sd-nav ul a { padding-inline:8px; font-size:.875rem; }
  .modern:has(.xp) .sh-hdr .sd-hdr__tools { gap:8px; }
  .modern:has(.xp) .sh-hdr .sd-hdr__tools .sd-btn { padding-inline:12px; font-size:.8rem; }
}
.modern .xp { --xp-ink:#0a2756; --xp-blue:#0058a6; --xp-line:#d8e3ef; background:#f4f7fb; color:#233653; }
.modern .xp .sd-phead__side { position:relative; padding:48px max(32px,var(--sd-edge)) 48px 32px; border:0; background:radial-gradient(ellipse at 60% 40%,#1a4c7d,transparent 75%); display:flex; flex-direction:column; justify-content:center; gap:20px; min-width:0; }
.modern .xp .sd-sec { padding-top:76px; padding-bottom:76px; }
.modern .xp .sd-sec__head { align-items:end; margin-bottom:36px; gap:24px; }
.modern .xp .sd-sec__head h2 { font-size:clamp(1.9rem,3vw,2.7rem); letter-spacing:-.04em; }
.modern .xp .sd-sec .sd-tag b { display:none; }
.modern .xp .sd-sec .sd-tag { letter-spacing:.12em; font-size:.8rem; }
.modern .xp .sd-link { min-height:44px; }
.modern .xp-hero-art { position:relative; overflow:hidden; border-radius:120px 20px 20px 20px; border:1px solid #ffffff30; box-shadow:0 24px 60px #0003; }
.modern .xp-hero-art img { display:block; width:100%; height:300px; object-fit:cover; }
.modern .xp-art-label { display:flex; align-items:center; gap:12px; position:absolute; inset:auto 0 0; padding:30px 22px 20px; background:linear-gradient(transparent,#06162eed 35%); color:#fff; font-size:.9rem; font-weight:600; }
.modern .xp-art-label svg { flex:none; width:22px; height:22px; }
.modern .xp .xp-catalogue { padding:0; background:none; box-shadow:none; border:0; }
.modern .xp-catalogue > h2 { display:none; }
.modern .xp-catalogue .sd-facts { display:flex; justify-content:space-between; gap:20px; margin:0; }
.modern .xp-catalogue .sd-facts > div { display:flex; flex-direction:column-reverse; border:0; padding:0; gap:4px; }
.modern .xp-catalogue .sd-facts dd { font-family:var(--brand-font-body); font-size:2rem; font-weight:800; color:#fff; }
.modern .xp-catalogue .sd-facts dt { color:#b8cbe4; font-size:.8rem; }

/* Subject catalogue: generous editorial rows instead of a wall of boxes. */
.modern .xp .xp-subjects { display:block; border-top:1px solid var(--xp-line); }
.modern .xp-subjects > li { border-bottom:1px solid var(--xp-line); }
.modern .xp .sd-subject { position:relative; display:grid; grid-template-columns:84px minmax(0,1fr) 210px; gap:28px; align-items:center; padding:34px 20px; border:0; border-radius:0; background:transparent; box-shadow:none; overflow:hidden; min-height:180px; transition:background .2s,padding .2s; }
.modern .xp .sd-subject:hover { background:#fff; transform:none; padding-left:30px; }
.modern .xp .sd-subject .sd-card__top { margin:0; display:flex; flex-direction:column; align-items:center; gap:10px; }
.modern .xp .sd-subject .sd-tile__icon { width:64px; height:64px; border-radius:20px; background:#e0ecf9; color:var(--xp-blue); box-shadow:none; }
.modern .xp .sd-subject .sd-tile__icon svg { width:28px; height:28px; }
.modern .xp .sd-subject h3 { font-size:clamp(1.35rem,2vw,1.75rem); line-height:1.25; max-width:28ch; margin:0 0 10px; }
.modern .xp .sd-subject p { display:-webkit-box; -webkit-box-orient:vertical; overflow:hidden; max-width:65ch; font-size:1rem; line-height:1.7; margin:0; -webkit-line-clamp:2; }
.modern .xp .sd-subject .sd-card__foot { border:0; padding:0; margin:0; display:flex; flex-direction:column; align-items:flex-start; gap:18px; font-size:.875rem; line-height:1.7; }
.modern .xp .sd-subject .sd-card__foot b { font-size:1.5rem; }
.modern .xp .sd-subject .sd-card__foot > svg { width:32px; height:32px; padding:7px; border-radius:50%; background:var(--xp-ink); color:#fff; }
.xp-subject-code { display:none; }
.modern .xp-subjects > li:first-child .sd-subject { margin:20px 0; padding:36px; border-radius:20px; background:var(--xp-ink); color:#fff; }
.modern .xp-subjects > li:first-child :is(h3,p,.sd-tile__no,.sd-card__foot,.sd-card__foot b) { color:#fff; }
.modern .xp-subjects > li:first-child .sd-subject h3 { font-size:2rem; }

/* Centre search and horizontal directory entries. */
.modern .xp .xp-directory-search { position:relative; background:#fff; color:var(--xp-ink); border-radius:24px; padding:32px; border:1px solid #d8e3ef; box-shadow:0 24px 60px #0003; }
.modern .xp .xp-directory-search h2 { color:var(--xp-ink); font-size:1.5rem; text-transform:none; letter-spacing:-.02em; font-family:var(--brand-font-body); }
.modern .xp-directory-search .sd-field__label { color:#334c69; font-size:.875rem; }
.modern .xp-directory-search :is(input,select) { min-height:52px; background:#f4f7fb; color:var(--xp-ink); border:1px solid #cbd9e8; border-radius:9px; font-size:1rem; }
.modern .xp-directory-search .sd-btn { background:var(--xp-blue); color:#fff; border-color:var(--xp-blue); }
.modern .xp-directory-search .sd-cfind__clear { color:var(--xp-blue); }
.xp-search-icon { display:grid; place-items:center; width:44px; height:44px; color:var(--xp-blue); background:#e5f0fa; border-radius:12px; margin-bottom:16px; }
.modern .xp .xp-centre-list { display:grid; grid-template-columns:1fr; gap:0; border-top:1px solid var(--xp-line); }
.modern .xp-centre-list > li { border-bottom:1px solid var(--xp-line); }
.modern .xp .sd-centre { display:grid; grid-template-columns:150px minmax(0,1fr) 210px; gap:32px; align-items:center; padding:32px 16px; background:transparent; border:0; border-radius:0; box-shadow:none; }
.modern .xp .sd-centre:hover { background:#fff; transform:none; }
.modern .xp .sd-centre .sd-card__top { flex-direction:column; justify-content:center; gap:16px; margin:0; padding:20px; border-right:1px solid var(--xp-line); }
.modern .xp .sd-centre .sd-tile__icon { width:64px; height:64px; background:#e1ecf9; border-radius:18px; }
.modern .xp .sd-centre h3 { font-size:1.5rem; line-height:1.35; margin:10px 0 14px; }
.modern .xp .sd-centre__where { padding:0; background:none; font-family:var(--brand-font-body); color:#51647b; font-size:.9375rem; }
.xp-approved { display:inline-flex; gap:6px; align-items:center; font-size:.8rem; color:#067647; font-weight:700; }
.modern .xp .sd-centre .sd-card__foot { display:flex; flex-direction:column; align-items:flex-start; gap:18px; border:0; padding:0; margin:0; font-size:.875rem; }
.xp-profile { display:inline-flex; align-items:center; gap:12px; background:#e2edf9; color:var(--xp-blue); padding:12px 18px; border-radius:8px; font-weight:700; }

/* Guidance: featured pathways followed by a clean resource index. */
.xp-guidance-art { position:relative; min-height:310px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; isolation:isolate; }
.xp-art-orbit { position:absolute; width:300px; height:300px; border:1px solid #86c6f24d; border-radius:50%; z-index:-1; box-shadow:0 0 0 32px #86c6f209,0 0 0 64px #86c6f206; }
.xp-art-book { display:grid; place-items:center; width:84px; height:84px; border-radius:24px; background:#b2ddfa; color:#0a2756; transform:rotate(-8deg); box-shadow:12px 12px 0 #ffffff10; margin-bottom:28px; }
.xp-art-book svg { width:42px; height:42px; }
.modern .xp-guidance-art p { font-size:1.9rem; color:#fff; line-height:1.25; letter-spacing:-.03em; }
.xp-art-caption { color:#a9c4e4; font-size:.875rem; margin-top:18px; }
.modern .xp .xp-audiences { grid-template-columns:repeat(6,minmax(0,1fr)); gap:24px; }
.modern .xp-audiences > li { grid-column:span 2; }
.modern .xp-audiences > li:nth-child(-n+2) { grid-column:span 3; }
.modern .xp-audiences .sd-card { border:0; border-radius:0; border-bottom:1px solid var(--xp-line); background:transparent; padding:28px 8px; box-shadow:none; }
.modern .xp-audiences .sd-card:hover { background:#fff; transform:translateY(-3px); }
.modern .xp-audiences .sd-tile__no { display:none; }
.modern .xp-audiences .sd-card h3 { font-size:1.4rem; }
.modern .xp-audiences .sd-card p { font-size:1rem; line-height:1.75; }
.modern .xp-audiences > li:nth-child(-n+2) .sd-card { padding:36px; border-radius:20px; background:#0a2756; color:#fff; }
.modern .xp-audiences > li:nth-child(2) .sd-card { background:#e0edf7; color:var(--xp-ink); }
.modern .xp-audiences > li:first-child :is(h3,p,.sd-card__foot) { color:#fff; }
.modern .xp-audiences > li:nth-child(-n+2) h3 { font-size:2rem; }
.modern .xp-guidance .sd-list { display:grid; grid-template-columns:1fr 1fr; gap:0 40px; background:transparent; border:0; }
.modern .xp-guidance .sd-list li { border-bottom:1px solid var(--xp-line); }
.modern .xp-guidance .sd-item { padding:26px 0; background:transparent; }
.modern .xp-guidance .sd-item__title { font-size:1.1rem; }

/* Partnership: editorial benefits, requirement checklist and polished enquiry. */
.modern .xp-partner .pub-container { max-width:1260px; width:calc(100% - 48px); }
.modern .xp-partner .pub-section { padding:76px 0; }
.modern .xp-partner .pub-section-title { text-align:left!important; max-width:780px; margin-left:0; }
.modern .xp-partner .pub-section-title h2 { font-size:clamp(1.9rem,3vw,2.7rem); line-height:1.15; letter-spacing:-.035em; color:var(--xp-ink); }
.modern .xp-partner .pub-section-title p { font-size:1.0625rem; line-height:1.7; }
.modern .xp-partner .pub-grid-4 { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 48px; }
.modern .xp-partner .pub-benefit-card { display:grid; grid-template-columns:64px 1fr; gap:8px 20px; border:0; border-bottom:1px solid var(--xp-line); border-radius:0; background:transparent; padding:30px 0; text-align:left; box-shadow:none; }
.modern .xp-partner .pub-benefit-card:hover { transform:none; }
.modern .xp-partner .pub-benefit-icon { grid-row:span 2; margin:0; border-radius:18px; background:#dfedf9; }
.modern .xp-partner .pub-benefit-icon i { color:var(--xp-blue); }
.modern .xp-partner .pub-benefit-card h3 { font-size:1.25rem; }
.modern .xp-partner .pub-benefit-card p { font-size:1rem; line-height:1.75; }
.modern .xp-partner .pub-section--alt { background:#0a2756; }
.modern .xp-partner .pub-section--alt .pub-section-title :is(h2,p) { color:#fff; }
.modern .xp-partner .pub-requirements-grid { max-width:none; grid-template-columns:1fr 1fr; gap:0 48px; }
.modern .xp-partner .pub-requirement-item { padding:22px 0; background:transparent; border:0; border-bottom:1px solid #ffffff24; border-radius:0; }
.modern .xp-partner .pub-requirement-item span { color:#e4edf9; font-size:1rem; line-height:1.6; }
.modern .xp-partner .pub-requirement-item i { color:#94d2ef; }
.modern .xp-partner #apply-online { padding:32px; background:#e3f0fa; color:var(--xp-ink); border:1px solid #bcd3e8; border-radius:18px; }
.modern .xp-partner #apply-online strong { font-size:1.35rem; }
.modern .xp-partner #apply-online p { font-size:1rem; line-height:1.7; }
.modern .xp-partner #centreApplicationForm { max-width:1040px; margin:40px auto 0; padding:40px; background:#fff; border:1px solid var(--xp-line); border-radius:24px; box-shadow:0 20px 60px #0a27560a; }
.modern .xp-partner .pub-wizard-steps { padding-bottom:30px; border-bottom:1px solid var(--xp-line); }
.modern .xp-partner :is(.pub-form-input,.pub-form-select,.pub-form-textarea) { border-radius:9px; font-size:1rem; min-height:48px; }
.modern .xp-partner .pub-btn { border-radius:8px; min-height:48px; }
@media(max-width:1000px) {
 .modern .xp .sd-phead__side { padding:0 24px 40px; }
 .modern .xp .xp-hero-art { max-width:680px; }
 .modern .xp .xp-catalogue { max-width:680px; }
 .modern .xp .xp-directory-search { max-width:680px; width:100%; }
 .modern .xp .sd-subject { grid-template-columns:64px minmax(0,1fr) 150px; gap:20px; }
 .modern .xp .sd-centre { grid-template-columns:100px minmax(0,1fr) 175px; gap:20px; }
 .modern .xp-audiences > li { grid-column:span 3; }
}
@media(max-width:600px) {
 .modern .xp .sd-sec,.modern .xp-partner .pub-section { padding-top:48px; padding-bottom:48px; }
 .modern .xp .sd-phead__side { padding-inline:16px; }
 .modern .xp-hero-art img { height:240px; }
 .modern .xp .sd-subject { grid-template-columns:48px minmax(0,1fr); gap:16px; padding:26px 0; }
 .modern .xp .sd-subject:hover { padding-left:0; }
 .modern .xp .sd-subject .sd-tile__icon { width:44px; height:44px; border-radius:12px; }
 .modern .xp .sd-subject .sd-card__foot { grid-column:2; flex-direction:row; align-items:center; justify-content:space-between; }
 .modern .xp-subjects > li:first-child .sd-subject { padding:24px 16px; }
 .modern .xp-subjects > li:first-child .sd-subject h3 { font-size:1.5rem; }
 .modern .xp .sd-subject p { font-size:.9375rem; }
 .modern .xp .sd-centre { grid-template-columns:1fr; padding:28px 8px; gap:18px; }
 .modern .xp .sd-centre .sd-card__top { flex-direction:row; justify-content:space-between; border:0; padding:0; }
 .modern .xp .sd-centre .sd-card__foot { flex-direction:row; align-items:center; gap:12px; }
 .modern .xp .xp-directory-search { padding:24px; }
 .modern .xp .xp-audiences { grid-template-columns:1fr; gap:16px; }
 .modern .xp-audiences > li,.modern .xp-audiences > li:nth-child(-n+2) { grid-column:auto; }
 .modern .xp-audiences > li:nth-child(-n+2) .sd-card { padding:28px; }
 .modern .xp-guidance .sd-list,.modern .xp-partner .pub-grid-4,.modern .xp-partner .pub-requirements-grid { grid-template-columns:1fr; }
 .modern .xp-partner .pub-container { width:calc(100% - 32px); }
 .modern .xp-partner #centreApplicationForm { padding:24px 16px; }
 .modern .xp-partner .pub-wizard-step span { font-size:.75rem; }
 .modern .xp-partner #apply-online { padding:24px 18px; }
 .modern .xp-partner #apply-online .pub-btn { margin-top:10px; }
 .xp-art-orbit { width:230px; height:230px; }
}
