/* Shared styles for faculty resource-article pages (AAT, GCSE, A-Level).
 * Loaded by pages.faculty._resource-article partial.
 * Do NOT duplicate these rules inline in shell files.
 */

.ra-page{background:#f4f7fc;font-family:'Sen',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#0a1f44;}
.ra-page *{box-sizing:border-box;}
.ra-wrap{max-width:1200px;margin:0 auto;padding:0 24px;}

/* hero */
.ra-hero{background:linear-gradient(160deg,#001052 0%,#0a1f44 60%,#12306e 100%);color:#fff;padding:34px 0 32px;position:relative;overflow:hidden;}
.ra-hero__glow{position:absolute;top:-120px;right:-80px;width:380px;height:380px;background:radial-gradient(circle,rgba(1,252,194,.18),transparent 70%);pointer-events:none;}
.ra-crumb{font-family:'Montserrat',sans-serif;font-weight:600;font-size:12px;color:rgba(255,255,255,.7);margin-bottom:14px;display:flex;gap:7px;align-items:center;flex-wrap:wrap;}
.ra-crumb a{color:rgba(255,255,255,.7);text-decoration:none;}
.ra-crumb a:hover{color:#01FCC2;}
.ra-eyebrow{display:inline-block;font-family:'Montserrat',sans-serif;font-weight:700;font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:#01FCC2;margin-bottom:8px;}
.ra-hero h1{font-family:'Montserrat',sans-serif;font-weight:800;font-size:32px;line-height:1.15;letter-spacing:-.01em;margin:0 0 10px;color:#fff;max-width:820px;}
.ra-hero__meta{font-family:'Montserrat',sans-serif;font-weight:600;font-size:13px;color:rgba(255,255,255,.75);margin:0;}

/* body layout */
.ra-body{padding:36px 0 64px;}
.ra-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:28px;align-items:start;}
.ra-article{background:#fff;border:1px solid #e3e9f2;border-radius:18px;padding:40px 44px;max-width:820px;margin:0 auto;width:100%;}

/* article typography */
.ra-article h2{font-family:'Montserrat',sans-serif;font-weight:800;font-size:24px;line-height:1.25;color:#0a1f44;margin:34px 0 14px;}
.ra-article h2:first-child{margin-top:0;}
.ra-article h3{font-family:'Montserrat',sans-serif;font-weight:700;font-size:18px;line-height:1.3;color:#0a1f44;margin:26px 0 10px;}
.ra-article p{font-family:'Sen',sans-serif;font-size:16px;line-height:1.65;color:#3a4763;margin:0 0 16px;}
.ra-article p.ra-lead{font-size:18px;line-height:1.6;color:#0a1f44;font-weight:500;margin:0 0 22px;}
.ra-article ul,.ra-article ol{font-family:'Sen',sans-serif;font-size:16px;line-height:1.65;color:#3a4763;margin:0 0 16px;padding-left:22px;}
.ra-article li{margin-bottom:8px;}
.ra-article a{color:#1763C6;text-decoration:underline;text-underline-offset:2px;}
.ra-article a:hover{color:#001052;}
.ra-article strong{color:#0a1f44;font-weight:700;}

/* tables */
.ra-article .ra-table,.ra-article table{width:100%;border-collapse:collapse;margin:0 0 22px;font-family:'Sen',sans-serif;font-size:14.5px;display:block;overflow-x:auto;}
.ra-article table thead th{background:#f4f7fc;font-family:'Montserrat',sans-serif;font-weight:700;font-size:13px;color:#0a1f44;text-align:left;padding:11px 14px;border-bottom:2px solid #e3e9f2;white-space:nowrap;}
.ra-article table td{padding:11px 14px;border-bottom:1px solid #eef2f8;color:#3a4763;vertical-align:top;}
.ra-article table tbody tr:last-child td{border-bottom:0;}

/* note / callout */
.ra-article .ra-note,.ra-article blockquote{background:#eef3fb;border-left:4px solid #1763C6;border-radius:0 10px 10px 0;padding:16px 20px;margin:0 0 22px;font-family:'Sen',sans-serif;font-size:15px;line-height:1.6;color:#0a1f44;}
.ra-article .ra-note p,.ra-article blockquote p{margin:0;}

/* CTA block - templated, shared across all faculties.
 * NEVER duplicate these rules inline in a shell file.
 *
 * CONTRAST RULES (WCAG AA on the dark navy #001052 background):
 *   Site-wide default_2020.css sets `a { color:#1763C6; text-decoration:underline }`
 *   which was leaking into every pill button + the CTA note link. We use
 *   `.ra-article .ra-cta__*` chains + `!important` on colour + text-decoration
 *   to guarantee readable contrast even if a wider stylesheet loads later.
 *
 *   - Body text: pure white #ffffff (never rgba < 1)
 *   - Title:     pure white #ffffff, bold
 *   - Primary pill: pure white background with navy text (contrast ~15:1)
 *   - Ghost pill: solid white outline + white text, hover fills white
 *   - Inline link in note: pure white underlined + bold
 */
.ra-article .ra-cta{background:linear-gradient(160deg,#001052,#12306e);border-radius:16px;padding:32px 34px;margin:40px 0 30px;color:#ffffff;}
.ra-article .ra-cta__title{font-family:'Montserrat',sans-serif;font-weight:800;font-size:22px;line-height:1.25;color:#ffffff !important;margin:0 0 12px;}
.ra-article .ra-cta__text{font-family:'Sen',sans-serif;font-size:16px;line-height:1.6;color:#ffffff !important;margin:0 0 22px;font-weight:400;opacity:1;}
.ra-article .ra-cta__links{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:20px;}
.ra-article .ra-cta__btn,
.ra-article a.ra-cta__btn,
.ra-article a.ra-cta__btn:link,
.ra-article a.ra-cta__btn:visited{display:inline-flex;align-items:center;justify-content:center;font-family:'Montserrat',sans-serif;font-weight:700;font-size:14px;line-height:1.15;color:#001052 !important;background:#ffffff;border:2px solid #ffffff;border-radius:999px;padding:11px 22px;text-decoration:none !important;white-space:nowrap;transition:transform .15s,background .15s,color .15s,border-color .15s;}
.ra-article a.ra-cta__btn:hover,
.ra-article a.ra-cta__btn:focus{transform:translateY(-2px);background:#01FCC2;border-color:#01FCC2;color:#001052 !important;text-decoration:none !important;}
.ra-article a.ra-cta__btn--ghost,
.ra-article a.ra-cta__btn--ghost:link,
.ra-article a.ra-cta__btn--ghost:visited{background:transparent;color:#ffffff !important;border:2px solid #ffffff;}
.ra-article a.ra-cta__btn--ghost:hover,
.ra-article a.ra-cta__btn--ghost:focus{background:#ffffff;border-color:#ffffff;color:#001052 !important;}
.ra-article .ra-cta__note{font-family:'Sen',sans-serif;font-size:14px;line-height:1.55;color:#ffffff !important;margin:0;font-weight:400;opacity:1;}
.ra-article .ra-cta__note a,
.ra-article .ra-cta__note a:link,
.ra-article .ra-cta__note a:visited{color:#01FCC2 !important;text-decoration:underline !important;text-underline-offset:2px;font-weight:700;}
.ra-article .ra-cta__note a:hover,
.ra-article .ra-cta__note a:focus{color:#ffffff !important;}

/* back link */
.ra-back{display:inline-flex;align-items:center;gap:8px;font-family:'Montserrat',sans-serif;font-weight:700;font-size:14px;color:#1763C6;text-decoration:none;}
.ra-back:hover{color:#001052;}

@media (max-width:768px){
	.ra-hero h1{font-size:25px;}
	.ra-hero{padding:26px 0 24px;}
	.ra-article{padding:26px 20px;border-radius:14px;}
	.ra-article h2{font-size:21px;}
	.ra-article h3{font-size:17px;}
	.ra-cta{padding:24px 20px;}
	.ra-cta__links{gap:8px;}
	.ra-cta__btn{padding:10px 16px;font-size:13px;}
}

/* Very narrow phones: allow buttons to stretch full width so long labels never
 * clip. Buttons still keep white-space:nowrap so a single label never wraps
 * within itself.
 */
@media (max-width:480px){
	.ra-cta__links{flex-direction:column;align-items:stretch;}
	.ra-cta__btn{width:100%;}
}
