/* ==========================================================================
   Kilfinny NS: design layer (round 1: typography, contrast, spacing;
   round 2: Dosis titles + Nunito text, fonts self-hosted; phone layout fixes)
   Loaded after the theme's styles by mu-plugins/kilfinny-design.php.
   Colours: existing palette only. Delete this file to undo everything.
   Sizes are in px on purpose: the theme shrinks its rem unit to 13px on phones.
   ========================================================================== */

/* --- 0. Fonts: hosted on the school's own server (no Google requests) ----- */
/* Dosis (titles) and Nunito (everything else), SIL Open Font Licence.          */
@font-face { font-family: 'Dosis'; font-style: normal; font-weight: 400 800; font-display: swap;
	src: url(/wp-content/uploads/kilfinny-fonts/dosis-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Dosis'; font-style: normal; font-weight: 400 800; font-display: swap;
	src: url(/wp-content/uploads/kilfinny-fonts/dosis-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 400 800; font-display: swap;
	src: url(/wp-content/uploads/kilfinny-fonts/nunito-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 400 800; font-display: swap;
	src: url(/wp-content/uploads/kilfinny-fonts/nunito-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
	--kf-text: #353535;          /* body text (was #9f9f9f, too faint) */
	--kf-text-soft: #5a5a5a;     /* meta, captions */
	--kf-head: #2b2b2b;          /* headings on light backgrounds */
	--kf-orange: #f15f26;        /* existing accent */
	--kf-body-font: 'Nunito', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--kf-head-font: 'Dosis', 'Nunito', sans-serif;  /* big titles */
	--kf-ui-font: 'Nunito', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;  /* menu, buttons, smaller headings */
	--kf-text-size: 18px;
}
@media (max-width: 767px) {
	:root { --kf-text-size: 17px; }
}

/* --- 1. Body text: readable font, size and colour -------------------------- */
body {
	font-family: var(--kf-body-font);
	font-size: var(--kf-text-size);
	line-height: 1.65;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
}
.scheme_default body,
body.scheme_default,
.scheme_default .post_item {
	color: var(--kf-text);
}
p, dd, dt, td, th, blockquote,
.wpb_text_column li, .post_content li, .sc_item_descr li, .sc_list li,
.wpb_text_column, .post_content, .sc_item_descr, .sc_icons_item_description {
	font-family: var(--kf-body-font);
	font-size: var(--kf-text-size);
	line-height: 1.65;
	font-weight: 400;
}
.wpb_text_column p, .post_content p {
	margin-bottom: 1em;
	max-width: 70ch;            /* comfortable line length */
}
.sc_align_center .wpb_text_column p,
.wpb_text_column[style*="center"] p,
.wpb_text_column p[style*="center"],
.wpb_text_column p.has-text-align-center { margin-left: auto; margin-right: auto; }
strong, b { font-weight: 700; }

/* --- 2. Headings: one consistent scale --------------------------------------- */
/* Big titles use the heading font */
h1, h2, h3, .sc_item_title, .sc_layouts_title_caption {
	font-family: var(--kf-head-font);
	letter-spacing: 0.01em;
}
/* Menus, smaller headings and list titles use the UI font */
.sc_layouts_menu, .sc_layouts_menu_nav, .menu_main_nav, .menu_mobile, .sc_layouts_menu_mobile_button,
.sc_layouts_menu_nav > li > a, .menu_main_nav > li > a, .sc_layouts_menu_nav ul a,
h4, h5, h6, .post_title, .entry-title {
	font-family: var(--kf-ui-font);
}
h1.post_title, h1.entry-title, .sc_layouts_title_caption { font-family: var(--kf-head-font); }
/* Homepage photo banner follows the same fonts */
.kf-hero .kf-hero__title { font-family: var(--kf-head-font) !important; }
.kf-hero .kf-hero__sub, .kf-hero .kf-hero__btn { font-family: var(--kf-ui-font) !important; }
/* Big section titles ("About Scoil Chiaráin", "Classes"...) were 71px */
.sc_title h2.sc_item_title.sc_title_title,
h2.sc_item_title {
	font-size: clamp(32px, 22px + 2.4vw, 52px);
	line-height: 1.1;
	margin-bottom: 0.3em;
}
.sc_title h3.sc_item_title.sc_title_title { font-size: clamp(26px, 20px + 1.4vw, 36px); line-height: 1.15; }
.sc_title h4.sc_item_title.sc_title_title { font-size: clamp(22px, 18px + 0.8vw, 28px); line-height: 1.2; }
/* Subtitles under section titles */
.sc_item_subtitle.sc_title_subtitle {
	font-family: var(--kf-body-font);
	font-size: clamp(17px, 15px + 0.4vw, 21px);
	font-weight: 700;
	line-height: 1.4;
	text-transform: none;
	letter-spacing: 0;
	margin-top: 0.2em;
}
/* Yellow subtitles were unreadable on white/grey: use the existing orange */
.sc_title:not([class*="scheme_dark"]) .sc_item_subtitle { color: var(--kf-orange); }
/* ...and on the green bands use white instead of yellow */
.scheme_darks .sc_item_subtitle { color: #fff; }
.sc_recent_news_title { font-size: clamp(30px, 22px + 1.6vw, 42px); }
.post_title, .entry-title { line-height: 1.25; }
h5.post_title { font-size: clamp(20px, 18px + 0.4vw, 23px); }
h6.post_title { font-size: clamp(17px, 16px + 0.3vw, 19px); }
.widgettitle { font-size: 24px; }

/* --- 3. "Our main values" (yellow band) ------------------------------------ */
/* White text on yellow was unreadable: dark text instead */
.vc_custom_1764086571488 .sc_item_title,
.vc_custom_1764086571488 p,
.vc_custom_1764086571488 .sc_item_subtitle { color: var(--kf-head); }
/* Pale bands (light blue: class-page galleries, "Our initiatives", "Our staff";
   yellow: Admissions "Downloads"): white text was hard to read, so dark text.
   New pale sections: add the class "kf-light-band" in WPBakery's
   row settings (Extra class name) to get the same treatment. */
.vc_custom_1764098442037, .vc_custom_1766066128531, .vc_custom_1767609028513,
.vc_custom_1764101561994, .vc_custom_1764086016192, .vc_custom_1764089356280,
.vc_custom_1764943562522, .kf-light-band { --kf-band-text: var(--kf-head); }
:is(.vc_custom_1764098442037, .vc_custom_1766066128531, .vc_custom_1767609028513,
    .vc_custom_1764101561994, .vc_custom_1764086016192, .vc_custom_1764089356280,
    .vc_custom_1764943562522, .kf-light-band)
	:is(.sc_item_title, .sc_item_subtitle, .sc_item_descr, p, li, .wpb_text_column) { color: var(--kf-band-text) !important; }
.vc_custom_1764086016192 .trx_addons_list_success li { font-size: var(--kf-text-size); }

/* The photo meant for the right half was hidden below 1440px wide */
@media (min-width: 1025px) and (max-width: 1440px) {
	.vc_row.vc_row_bg_desktop.vc_custom_1764086571488 {
		background-image: url(/wp-content/uploads/2025/11/bg_main3.jpg) !important;
		background-size: cover !important;
		background-position: 62% center !important;
	}
}

/* --- 4. Header: tidier contact line; compact on phones --------------------- */
/* (top white row only: the green menu bar keeps its white links) */
.top_panel .sc_layouts_row_type_narrow .sc_layouts_item,
.top_panel .sc_layouts_row_type_narrow .sc_layouts_item a:not(.sc_button) { color: var(--kf-text-soft); }
.sc_layouts_item_details_line1, .sc_layouts_item_details_line2 { font-family: var(--kf-body-font); font-size: 15px; }
.top_panel .wpb_text_column strong { font-family: var(--kf-head-font); font-weight: 700; letter-spacing: 0.02em; }
@media (max-width: 767px) {
	.top_panel .sc_layouts_row_type_narrow { padding-top: 12px !important; padding-bottom: 8px !important; }
	.top_panel .sc_layouts_row_type_narrow .sc_layouts_logo img,
	.top_panel .sc_layouts_row_type_narrow .wpb_single_image img { max-height: 64px; width: auto; }
	.top_panel .sc_layouts_row_type_narrow .wpb_single_image { margin-bottom: 4px !important; }
	.top_panel .sc_layouts_row_type_narrow .sc_layouts_item { margin-bottom: 4px !important; }
	.top_panel .sc_layouts_row_type_narrow .vc_empty_space { height: 6px !important; }
}

/* --- 5. News posts: show the title (the theme hid it on every page) -------- */
body.single-post.hide_elements .top_panel .sc_layouts_hide_on_frontpage {
	display: block !important;  /* the theme's style.css force-hides this row */
	background: none !important;
	padding: clamp(24px, 3vw, 44px) 0 0 !important;
	margin: 0 !important;
}
body.single-post .top_panel .sc_layouts_title_caption {
	font-size: clamp(30px, 22px + 2vw, 46px);
	line-height: 1.15;
	color: var(--kf-head);
	text-shadow: none;
	margin: 0;
}
body.single-post .top_panel .sc_layouts_title_meta,
body.single-post .top_panel .sc_layouts_title_breadcrumbs { display: none !important; }
body.single-post .top_panel { margin-bottom: 16px !important; }
body.single-post .top_panel .sc_layouts_hide_on_frontpage .sc_layouts_title { text-align: left; }

/* --- 6. Meta lines, captions, small print ---------------------------------- */
.post_meta, .post_meta_item, .post_info, .post_date, .post_author {
	font-family: var(--kf-body-font);
	font-size: 15px;
}
.footer_wrap p, .footer_wrap li, .footer_wrap .widget, .footer_wrap a {
	font-family: var(--kf-body-font);
	font-size: 16px;
}
.copyright_text, .footer_copyright_inner { font-size: 15px; }

/* --- 8. Spacing: one even scale for the page builder's spacer blocks ------ */
/* Theme sizes were 23 / 28 / 46 / 103 / 122px: uneven, with huge gaps.   */
.page_content_wrap .vc_empty_space.height_tiny,    .footer_wrap .vc_empty_space.height_tiny    { height: 8px  !important; }
.page_content_wrap .vc_empty_space.height_small,   .footer_wrap .vc_empty_space.height_small   { height: 16px !important; }
.page_content_wrap .vc_empty_space.height_medium,  .footer_wrap .vc_empty_space.height_medium  { height: 28px !important; }
.page_content_wrap .vc_empty_space.height_large,   .footer_wrap .vc_empty_space.height_large   { height: 44px !important; }
.page_content_wrap .vc_empty_space.height_biggest, .footer_wrap .vc_empty_space.height_biggest { height: 64px !important; }
.page_content_wrap .vc_empty_space.height_huge,    .footer_wrap .vc_empty_space.height_huge    { height: 80px !important; }
@media (max-width: 767px) {
	.page_content_wrap .vc_empty_space.height_small,   .footer_wrap .vc_empty_space.height_small   { height: 12px !important; }
	.page_content_wrap .vc_empty_space.height_medium,  .footer_wrap .vc_empty_space.height_medium  { height: 20px !important; }
	.page_content_wrap .vc_empty_space.height_large,   .footer_wrap .vc_empty_space.height_large   { height: 32px !important; }
	.page_content_wrap .vc_empty_space.height_biggest, .footer_wrap .vc_empty_space.height_biggest { height: 44px !important; }
	.page_content_wrap .vc_empty_space.height_huge,    .footer_wrap .vc_empty_space.height_huge    { height: 56px !important; }
}

/* --- 7. Buttons: same font, comfortable tap size --------------------------- */
.sc_button, .sc_button_simple, .theme_button, input[type="submit"], .more-link {
	font-family: var(--kf-ui-font);
	letter-spacing: 0.04em;
}
@media (max-width: 767px) {
	.sc_button:not(.sc_button_simple) { min-height: 44px; display: inline-flex; align-items: center; }
}

/* --- 9. Green bands: no white stripe through the middle -------------------- */
/* The green texture (bg_green.jpg) has a 75px plain white strip along its top
   and repeats every 1000px. On phones these sections get taller than that, so
   a white stripe appeared part-way down and white text on it vanished
   (e.g. the Parents' Association officers; the "School Calendar" title).
   Stop the vertical repeat and let the band's own green fill the rest.
   New green sections: add the class "kf-green-band" in WPBakery's row
   settings (Extra class name) to get the same treatment. */
:is(.vc_custom_1481638390168, .vc_custom_1764083789025, .vc_custom_1764091598565,
    .vc_custom_1764944542827, .vc_custom_1764945046106, .kf-green-band) {
	background-repeat: repeat-x !important;
	background-color: #a5be26 !important;
}
/* On stacked (phone/tablet) layouts, start the green at the band's top edge
   so titles near the top don't sit on the white strip */
@media (max-width: 1024px) {
	:is(.vc_custom_1481638390168, .vc_custom_1764083789025, .vc_custom_1764091598565,
	    .vc_custom_1764944542827, .vc_custom_1764945046106, .kf-green-band) {
		background-position: 0 -75px !important;
	}
}

/* --- 10. Phones: homepage photo banner ------------------------------------- */
/* It shrank to a 204px strip with the title and button squeezed together */
@media (max-width: 767px) {
	body .kf-hero { aspect-ratio: auto; height: clamp(280px, 80vw, 420px); }
	body .kf-hero .kf-hero__title {
		top: 24%;
		font-size: clamp(32px, 9.6vw, 48px);
		line-height: 1.02;
		text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
	}
	body .kf-hero .kf-hero__btn {
		top: auto;
		bottom: 15%;
		font-size: 15px;
		line-height: 20px;
		padding: 12px 28px;
	}
}

/* --- 11. Phones: header ---------------------------------------------------- */
/* The crest slid down over the address line while the page loaded */
@media (max-width: 767px) {
	.top_panel .wpb_animate_when_almost_visible { animation: none !important; opacity: 1 !important; }
}

/* --- 12. Phones: use the screen's width ------------------------------------ */
/* The theme fixed the page column at 280px on phones (sized for old 320px
   handsets), so on today's 375-430px screens text and galleries sat in a
   narrow strip with wide empty margins, out of line with the full-width bands. */
@media (max-width: 767px) {
	.content_wrap, .content_container, .header_widgets_wrap { width: calc(100% - 40px); }
	/* the News page uses the theme's full-width layout: same 20px edges */
	.body_style_fullwide .content_wrap { padding-left: 20px; padding-right: 20px; }
	/* news post titles were indented 50px: line them up with the text */
	body.single-post .top_panel .sc_layouts_hide_on_frontpage .sc_content { width: auto !important; margin: 0 5px !important; }
	body.single-post .top_panel .sc_layouts_hide_on_frontpage .sc_layouts_title { padding-left: 0 !important; padding-right: 0 !important; }
}

/* --- 13. Small fixes ------------------------------------------------------- */
/* Titles typed into text blocks (e.g. "School News" on the News page) were
   47px on phones: same scale as the other section titles */
.wpb_text_column h2 { font-size: clamp(32px, 22px + 2.4vw, 52px); line-height: 1.1; }
/* Contact page labels ("Address", "Phone", "Email") were pale yellow on white */
.page_content_wrap .trx_addons_accent:not(:is(.scheme_dark, .scheme_darks) *) { color: var(--kf-orange); }
/* Opening-hours times asked for a font the site doesn't load (Montserrat) */
.page_content_wrap [style*="Montserrat"] { font-family: inherit !important; letter-spacing: normal !important; }
/* Small print inside headings (e.g. "We aim to create a learning environment...") was 11px */
.page_content_wrap :is(h4, h5, h6) small { font-size: 15px; line-height: 1.45; }

/* --- 14. Buttons ------------------------------------------------------------ */
/* Yellow buttons (Policies documents etc.): white text on yellow was unreadable */
.sc_item_button a.sc_button_hover_style_yellow:not(.sc_button_bg_image) { color: #2b2b2b !important; }
.scheme_default .sc_item_button a.sc_button_hover_style_yellow:not(.sc_button_bg_image):hover { color: #2b2b2b !important; }
/* Button labels in Nunito (wider than the theme's Dosis) ran past their column
   on desktop and were cut off. Buttons now stay inside their column; document
   buttons (Policies, Admissions) fill it, icon on the left, label wrapping. */
.sc_item_button a.sc_button { max-width: 100%; box-sizing: border-box; white-space: normal; }
.sc_item_button a.sc_button .sc_button_text { white-space: normal; }
.sc_item_button.sc_align_left a.sc_button_icon_left {
	display: flex;
	width: 100%;
	min-height: 76px;
	align-items: center;
	text-align: left;
}
@media (min-width: 768px) and (max-width: 1023px) {
	/* ...and on tablets two per row: three columns were too narrow for them */
	.vc_inner > .wpb_column:has(.sc_item_button.sc_align_left .sc_button_icon_left) { width: 50%; }
}
@media (max-width: 767px) {
	/* ...evenly spaced when their columns stack */
	.vc_inner > .wpb_column:not(:last-child):has(.sc_item_button) .wpb_wrapper > .vc_empty_space:last-child { height: 8px !important; }
}

/* --- 15. Footer ------------------------------------------------------------- */
/* Bottom green bar: its picture (grass and a flower on white, then green) is
   164px tall and repeated, so on phones, where the copyright runs to two lines,
   a white band cut through "Privacy Policy". Stop the vertical repeat and let
   green fill below. */
.vc_custom_1482490076089 { background-repeat: repeat-x !important; background-color: #a5be26 !important; }
/* Footer links were pale grey (#9f9f9f), hard to read on white
   (the green bar's own white links are left alone) */
.footer_wrap .widget :is(a, li > a):not(:is(.scheme_dark, .scheme_darks) *) { color: var(--kf-text-soft); }
.footer_wrap .widget :is(a, li > a):not(:is(.scheme_dark, .scheme_darks) *):hover { color: var(--kf-orange); }
@media (max-width: 767px) {
	/* same 20px edges as the rest of the page (the theme fixed this at 300px wide) */
	.footer_wrap .sc_content.sc_content_width_1_1 { width: calc(100% - 40px); }
	/* show the grass and flower on phones too, and a little room under the text */
	.vc_custom_1482490076089 { background-position: -330px 0 !important; padding-bottom: 12px !important; }
}

/* --- 16. School crest (header and footer) ------------------------------------ */
/* The new crest is taller than it is wide: keep its shape, no square crop */
.top_panel img[src*="kilfinny-crest"] { height: 100px; width: auto; }
.footer_wrap img[src*="kilfinny-crest"] { height: 140px; width: auto; }
@media (max-width: 767px) {
	.top_panel img[src*="kilfinny-crest"] { height: 52px; }
	.footer_wrap img[src*="kilfinny-crest"] { height: 110px; }
}
/* the theme rounds every picture in a figure (20px corners, clipped); that shaved the crest's corners off */
:is(.top_panel, .footer_wrap) figure:has(img[src*="kilfinny-crest"]),
:is(.top_panel, .footer_wrap) img[src*="kilfinny-crest"] {
	border-radius: 0 !important;
	overflow: visible !important;
}

/* --- 17. Green sections: dark text ------------------------------------------- */
/* White text on the lime green was hard to read (about 2:1 contrast).
   Text, subtitles and lists go dark; the big titles stay white.
   New green sections: add the class "kf-green-band" in WPBakery's row settings. */
:is(.vc_custom_1481638390168, .vc_custom_1764083789025, .vc_custom_1764091598565,
    .vc_custom_1764944542827, .vc_custom_1764945046106, .vc_custom_1763740942204,
    .vc_custom_1481634040740, .kf-green-band)
	:is(p, li, .wpb_text_column, .sc_item_subtitle, .sc_item_descr, h4, h5, h6, small, strong):not(.sc_item_title):not(.sc_button *) {
	color: var(--kf-head) !important;
}

/* --- 18. Phones: compact header ------------------------------------------------ */
/* Address, crest, name, email and phone were stacked: 167px before the menu.
   Now crest and name sit side by side, with email and phone on one line under
   them; the address is in the footer and on the Contact page. */
@media (max-width: 767px) {
	.top_panel .sc_layouts_row_type_narrow { padding-top: 10px !important; padding-bottom: 8px !important; }
	.top_panel .sc_layouts_row_type_narrow .vc_empty_space { display: none !important; }
	.top_panel .sc_layouts_row_type_narrow .vc_inner > .wpb_column:has(.fa-location-dot) { display: none; }
	.top_panel .sc_layouts_row_type_narrow .vc_inner > .wpb_column:has(.wpb_single_image) .wpb_wrapper {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 12px;
	}
	.top_panel .sc_layouts_row_type_narrow .wpb_single_image { margin: 0 !important; }
	.top_panel .sc_layouts_row_type_narrow .wpb_single_image img { height: 52px; width: auto; max-height: none; }
	.top_panel .sc_layouts_row_type_narrow .vc_inner > .wpb_column:has(.wpb_single_image) .wpb_text_column p { margin: 0; font-size: 24px; line-height: 1.1; }
	.top_panel .sc_layouts_row_type_narrow .vc_inner > .wpb_column:has(a[href^="tel:"]) .wpb_wrapper {
		display: flex;
		justify-content: center;
		flex-wrap: wrap;
		column-gap: 20px;
		margin-top: 6px;
	}
	.top_panel .sc_layouts_row_type_narrow .vc_inner > .wpb_column:has(a[href^="tel:"]) .sc_layouts_item { margin: 0 !important; }
}

/* --- 19. Lists and news ----------------------------------------------------- */
/* "Our Initiatives" bullets were heavy black dots: orange ticks instead */
.page_content_wrap ul.trx_addons_list_success li::before {
	content: "\f00c";
	font-family: "KF Icons", "Font Awesome 6 Free";
	font-weight: 900;
	font-size: 10px;
	line-height: 17px;
	text-align: center;
	color: #fff !important;
	background-color: var(--kf-orange) !important;
}
/* News lists: titles in normal case, like the featured story above them */
.sc_recent_news h6.post_title { text-transform: none; }
/* No view counters on news posts */
.post_counters_item.post_counters_views { display: none !important; }
/* "You May Also Like" under news posts was smaller than the other titles */
.related_wrap_title { font-size: clamp(24px, 20px + 0.8vw, 30px); }

/* --- 20. School calendar as text (replaces the picture of the PDF) ---------- */
/* Shows the next four dates (the little script in the block hides past ones);
   "Show all dates" opens the full list. */
.kf-dates {
	background: #fff;
	border-radius: 20px;
	padding: 14px 16px;
	max-width: 560px;
	margin: 0 auto;
	text-align: left;
	color: var(--kf-text);
}
.kf-dates dl { margin: 0; }
.kf-dates dl > div {
	display: grid;
	grid-template-columns: 7em 1fr;
	gap: 0 10px;
	padding: 8px 0;
	border-bottom: 1px solid #e8e8e4;
}
.kf-dates dl > div:last-child { border-bottom: 0; }
.kf-dates :is(dt, dd) { font-size: 15px; line-height: 1.35; margin: 0; }
.kf-dates dt { font-weight: 700; color: var(--kf-head); }
.kf-dates .kf-past { opacity: 0.5; }
.kf-dates:not(.kf-all) :is(.kf-past, .kf-later) { display: none; }
.kf-dates .kf-dates__note { font-size: 15px; line-height: 1.4; margin: 8px 0 0; }
.kf-dates .kf-dates__links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
	margin: 12px 0 0;
	font-size: 15px;
	font-weight: 700;
}
.kf-dates .kf-dates__more {
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	color: var(--kf-orange-text, #c2410c);
	text-decoration: underline;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
}
/* the theme's script gives every <button> a sliding orange hover background (with !important);
   keep "Show all dates" a plain text link */
.kf-dates button.kf-dates__more,
.kf-dates button.kf-dates__more:is(:hover, :focus) {
	background: none !important;
	color: var(--kf-orange-text, #c2410c) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}
/* the PDF link as a button, like the site's other orange buttons */
.kf-dates a.kf-dates__pdf {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 20px;
	border-radius: 22px;
	background: var(--kf-orange);
	color: #fff !important;
	font-family: var(--kf-ui-font);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
}
.kf-dates a.kf-dates__pdf:is(:hover, :focus-visible) { background: #d94f19; }
.kf-dates [hidden] { display: none !important; }

/* --- 21. Page banner (replaces the Slider Revolution banners) ----------------- */
.kf-banner {
	position: relative;
	overflow: hidden;
	box-sizing: border-box;
	width: 100%;
	/* height from the width (the old aspect-ratio + max-height stopped the banner at
	   1,358px wide, leaving a white gap on the right of wide desktop screens) */
	height: clamp(220px, 33.9vw, 460px);
	padding: 0 20px;
	background: #6b7f4e;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}
.kf-banner .kf-banner__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.kf-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.35)); }
.kf-banner .kf-banner__title {
	position: relative;
	z-index: 1;
	margin: 0;
	color: #fff;
	font-family: var(--kf-head-font);
	font-weight: 700;
	font-size: clamp(36px, 6vw, 76px);
	line-height: 1;
	text-transform: uppercase;
	text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}
.kf-banner .kf-banner__sub {
	position: relative;
	z-index: 1;
	margin: 8px 0 0;
	max-width: none;
	color: #fff;
	font-size: clamp(17px, 1.6vw, 22px);
	font-weight: 700;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}
@media (max-width: 767px) { .kf-banner { height: 220px; } }

/* --- 22. Readability and keyboard use ------------------------------------------ */
/* The bright orange (#f15f26) is only 3.3:1 on white: fine for buttons and big
   text, too faint for small text. Small orange text uses a deeper orange
   (5.2:1). Grey header details and post bylines were 2.6:1. */
:root { --kf-orange-text: #c2410c; }
.post_meta .post_date a,
.page_content_wrap .sc_title:not([class*="scheme_dark"]) .sc_item_subtitle,
.page_content_wrap .trx_addons_accent:not(:is(.scheme_dark, .scheme_darks) *),
.contacts_address,
.page_content_wrap [style*="#ff682d"], .page_content_wrap [style*="#FF682D"] { color: var(--kf-orange-text) !important; }
.post_meta .post_author, .post_meta_item.post_author,
.top_panel .sc_layouts_item_details_line1 { color: var(--kf-text-soft) !important; }
/* "Our Philosophy & Mission" was orange on yellow (2.2:1) */
.vc_custom_1764086571488 .sc_title .sc_item_subtitle { color: #8a3a0c !important; }
/* Footer green bar: dark text like the other green sections */
.vc_custom_1482490076089 :is(p, a, span, .copyright_text) { color: var(--kf-head) !important; }
/* Keyboard users could not see where they were: the theme removed focus outlines */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
	outline: 3px solid var(--kf-head) !important;
	outline-offset: 2px;
}
/* Links inside text are underlined, so they don't rely on colour alone */
:is(.post_content, .wpb_text_column) :is(p, li) a:not(.sc_button):not(.kf-btn):not(.kf-dates__pdf) { text-decoration: underline; text-underline-offset: 2px; }

/* --- 23. Photo galleries: "Show all photos" button (Essential Grid load more) --- */
/* Matches the site's orange buttons instead of the plugin's small grey one */
.esg-loadmore-wrapper { margin-top: 18px; }
.esg-grid-wrap-container .esg-navigationbutton.esg-loadmore {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	width: auto;
	margin: 0;
	padding: 0 24px;
	border: 0 !important;
	border-radius: 22px;
	background: var(--kf-orange) !important;
	color: #fff !important;
	font-family: var(--kf-ui-font);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	box-shadow: none !important;
}
.esg-grid-wrap-container .esg-navigationbutton.esg-loadmore * { color: inherit !important; }
.esg-grid-wrap-container .esg-navigationbutton.esg-loadmore:is(.hovered, :hover, :focus-visible) { background: #d94f19 !important; }
/* Tapping anywhere on a photo opens it, not just the small icon in the middle.
   On touch screens the yellow "enlarge" box sat on top of every photo, so it's hidden there.
   News posts and the three class pages (children of Classes, page 1689) */
:is(body.single-post, body.parent-pageid-1689) .esg-grid a.eg-littlebirdies-element-1::after { content: ""; position: absolute; inset: -600px; }
@media (hover: none) {
	:is(body.single-post, body.parent-pageid-1689) .esg-grid .eg-littlebirdies-container { opacity: 0 !important; }
	:is(body.single-post, body.parent-pageid-1689) .esg-grid a.eg-littlebirdies-element-1 { background: transparent !important; }
	:is(body.single-post, body.parent-pageid-1689) .esg-grid a.eg-littlebirdies-element-1 > i { visibility: hidden; }
}

/* --- 24. Class pages: "Show earlier activities" button (kilfinny-class-pages.js) --- */
/* White with a dark outline, so it doesn't get mixed up with the orange "Show all photos" buttons */
.kf-earlier { text-align: center; padding: 16px 0 48px; }
.kf-earlier button.kf-earlier__btn {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 24px !important;
	border: 2px solid var(--kf-head) !important;
	border-radius: 22px !important;
	background: #fff !important;
	color: var(--kf-head) !important;
	font-family: var(--kf-ui-font);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	box-shadow: none !important;
	cursor: pointer;
}
.kf-earlier button.kf-earlier__btn:is(:hover, :focus-visible) { background: var(--kf-head) !important; color: #fff !important; }

/* --- 25. Header and footer tidy-up ------------------------------------------------ */
/* Menu: the class names broke mid-word in the Classes drop-down (170px box) */
.sc_layouts_menu_nav > li > ul.sub-menu { width: auto !important; min-width: 200px; }
.sc_layouts_menu_nav > li > ul.sub-menu > li > a { white-space: nowrap; }
/* a small arrow so it's clear Classes opens a list */
.sc_layouts_menu_nav > li.menu-item-has-children > a::after {
	content: "" !important;
	display: inline-block !important;
	position: static !important;
	width: 6px;
	height: 6px;
	margin: 0 0 0 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-3px) rotate(45deg);
}

/* Header contact details, tablet and desktop: the crest column takes only the room
   it needs, the address and the email/phone columns share the rest; the address
   stays on one line; every icon sits beside its text, in orange */
@media (min-width: 768px) {
	.top_panel .sc_layouts_row_type_narrow .vc_inner > .wpb_column { flex: 1 1 0; width: auto; min-width: 0; }
	.top_panel .sc_layouts_row_type_narrow .vc_inner > .wpb_column:has(.wpb_single_image) { flex: 0 0 220px; }
	.top_panel .sc_layouts_row_type_narrow .sc_layouts_iconed_text,
	.top_panel .sc_layouts_row_type_narrow .sc_layouts_iconed_text_link {
		display: inline-flex;
		align-items: center;
		gap: 10px;
	}
	.top_panel .sc_layouts_row_type_narrow .sc_layouts_iconed_text_icon {
		float: none !important;
		margin: 0 !important;
		width: 16px;
		text-align: center;
		font-size: 15px;
		line-height: 1;
		color: var(--kf-orange) !important;
	}
	.top_panel .sc_layouts_row_type_narrow .sc_layouts_iconed_text_icon::before { color: inherit !important; margin: 0 !important; }
	.top_panel .sc_layouts_row_type_narrow .sc_layouts_item_details_line1 { white-space: nowrap; font-size: 15px; line-height: 1.5; }
}
@media (min-width: 768px) and (max-width: 1023px) {
	.top_panel .sc_layouts_row_type_narrow .vc_inner > .wpb_column:has(.wpb_single_image) { flex-basis: 170px; }
	.top_panel .sc_layouts_row_type_narrow .sc_layouts_item_details_line1 { font-size: 14px; }
	.top_panel .sc_layouts_row_type_narrow .sc_layouts_iconed_text,
	.top_panel .sc_layouts_row_type_narrow .sc_layouts_iconed_text_link { gap: 8px; }
}

/* Footer contact details: one colour for all three (the address was orange, the
   icons pale yellow), tighter lines */
.footer_wrap .widget_contacts .contacts_info span {
	line-height: 1.5;
	margin-bottom: 14px;
	padding-left: 30px;
	color: var(--kf-text-soft) !important;
}
.footer_wrap .widget_contacts .contacts_info span a { color: var(--kf-text-soft) !important; }
.footer_wrap .widget_contacts .contacts_info span a:hover { color: var(--kf-orange-text, #c2410c) !important; }
.footer_wrap .widget_contacts .contacts_info span::before {
	line-height: 24px;
	font-size: 18px;
	width: 20px;
	text-align: center;
	color: var(--kf-orange) !important;
}
/* opening hours: straight under the contact details, with a clock like the other icons */
.footer_wrap .sc_layouts_item:has(.widget_contacts) { margin-bottom: 0 !important; }
.footer_wrap .vc_inner .wpb_column:has(.widget_contacts) .wpb_text_column { margin: 4px 0 0 !important; }
.footer_wrap .vc_inner .wpb_column:has(.widget_contacts) .wpb_text_column p {
	position: relative;
	padding-left: 30px;
	line-height: 1.6;
	color: var(--kf-text-soft);
}
.footer_wrap .vc_inner .wpb_column:has(.widget_contacts) .wpb_text_column p::before {
	content: "\e85c";
	content: "\e85c" / "";
	font-family: fontello;
	position: absolute;
	left: 0;
	top: 0;
	width: 20px;
	text-align: center;
	font-size: 18px;
	line-height: 25.6px;
	color: var(--kf-orange);
}

/* Footer links: a short heading like the other small titles, and two tidy
   columns (Classes and its three classes stay together) */
.footer_wrap .widget_nav_menu .widgettitle { font-size: 22px; margin-bottom: 16px; }
.footer_wrap .widget_nav_menu ul.menu { columns: 2; column-gap: 24px; }
.footer_wrap .widget_nav_menu ul.menu > li { display: block; width: auto; break-inside: avoid; }

/* Copyright line: centred, and kept clear of the round cookie and back-to-top buttons */
.vc_custom_1482490076089 .textwidget { text-align: center; }
@media (max-width: 1199px) {
	.vc_custom_1482490076089 .textwidget { padding: 0 64px; }
}
@media (max-width: 767px) {
	.vc_custom_1482490076089 .textwidget { padding: 0 56px; text-wrap: balance; }
	.vc_custom_1482490076089 .textwidget a { display: block; margin-top: 2px; }
}

/* --- 26. Admissions and Policies: document lists ------------------------------------ */
/* The document buttons were small, in capitals, and wrapped onto two or three lines,
   so they ended up different heights. Now one tidy list of same-size buttons, in
   normal case, with a PDF icon. (1613 = Admissions, 1749 = Policies) */
:is(.page-id-1613, .page-id-1749) .page_content_wrap .vc_row.vc_inner:has(a.sc_button[href$=".pdf"]) {
	display: flex !important;
	flex-direction: column;
	gap: 12px;
	max-width: 620px;
	margin: 0 auto !important;
	padding-bottom: clamp(32px, 4vw, 48px);
}
:is(.page-id-1613, .page-id-1749) .page_content_wrap .vc_row.vc_inner:has(a.sc_button[href$=".pdf"])::before,
:is(.page-id-1613, .page-id-1749) .page_content_wrap .vc_row.vc_inner:has(a.sc_button[href$=".pdf"])::after { display: none; }
:is(.page-id-1613, .page-id-1749) .page_content_wrap .vc_row.vc_inner:has(a.sc_button[href$=".pdf"]) > .wpb_column {
	width: 100% !important;
	float: none !important;
}
:is(.page-id-1613, .page-id-1749) .page_content_wrap .vc_row.vc_inner:has(a.sc_button[href$=".pdf"]) .vc_column-inner {
	border-left-width: 0 !important;
	border-right-width: 0 !important;
	padding-top: 0 !important;
}
:is(.page-id-1613, .page-id-1749) .page_content_wrap .vc_row.vc_inner:has(a.sc_button[href$=".pdf"]) .wpb_wrapper {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
:is(.page-id-1613, .page-id-1749) .page_content_wrap .vc_row.vc_inner:has(a.sc_button[href$=".pdf"]) .vc_empty_space { display: none !important; }
:is(.page-id-1613, .page-id-1749) .page_content_wrap .vc_row.vc_inner .sc_item_button { margin: 0 !important; width: 100%; }
:is(.page-id-1613, .page-id-1749) .page_content_wrap .vc_row.vc_inner a.sc_button {
	display: flex !important;
	align-items: center;
	gap: 16px;
	width: 100%;
	min-height: 64px;
	margin: 0 !important;
	padding: 12px 24px !important;
	border-radius: 16px !important;
	font-size: 17px !important;
	line-height: 1.3 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	text-align: left !important;
	box-sizing: border-box;
}
:is(.page-id-1613, .page-id-1749) .page_content_wrap .vc_row.vc_inner a.sc_button .sc_button_icon {
	position: static !important;
	flex: none;
	width: 24px;
	margin: 0 !important;
	padding: 0 !important;
	font-size: 22px !important;
	line-height: 1 !important;
	text-align: center;
	transform: none !important;
}
:is(.page-id-1613, .page-id-1749) .page_content_wrap .vc_row.vc_inner a.sc_button .sc_button_icon .fa-file::before { content: "\f1c1"; }
:is(.page-id-1613, .page-id-1749) .page_content_wrap .vc_row.vc_inner a.sc_button .sc_button_text { padding: 0 !important; margin: 0 !important; }
/* a document with no file yet (link "#") stays hidden until a PDF is added */
.page-id-1749 .page_content_wrap .sc_item_button:has(> a.sc_button[href="#"]) { display: none !important; }
/* Admissions: the school details in a small panel, so they stand apart from the text */
.page-id-1613 .page_content_wrap .wpb_text_column p:has(> strong:first-child) {
	padding: 14px 20px;
	background: #f6f5f0;
	border-left: 4px solid var(--kf-orange);
	border-radius: 0 12px 12px 0;
}

/* --- 27. Contact, Our School and Classes ------------------------------------------- */
/* Contact (page 165): address, phone and email were three different sizes (the email
   was tiny); now one size, with small orange labels above */
.page-id-165 .page_content_wrap h5 .trx_addons_accent {
	font-family: var(--kf-ui-font);
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--kf-orange-text, #c2410c);
}
.page_content_wrap .kf-contact-value { font-size: 20px; line-height: 1.5; color: var(--kf-head); margin: 0; }
.page_content_wrap .kf-contact-value a { color: var(--kf-head); text-decoration-color: var(--kf-orange); }
.page_content_wrap .kf-contact-value a:hover { color: var(--kf-orange-text, #c2410c); }
/* opening hours as a neat list: what on the left, times on the right */
.page_content_wrap .kf-hours { max-width: 400px; margin: 0 auto; }
.page_content_wrap .kf-hours p {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	margin: 0;
	padding: 12px 0;
	border-bottom: 1px dashed rgba(0, 0, 0, 0.18);
	font-size: 19px;
	line-height: 1.4;
}
.page_content_wrap .kf-hours p:last-child { border-bottom: 0; }
.page_content_wrap .kf-hours strong { color: var(--kf-orange-text, #c2410c); white-space: nowrap; }

/* Our School (page 1627): staff, board members and Parents' Association officers as
   tidy lists; the staff groups as cards on the blue band */
.page_content_wrap .kf-people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.page_content_wrap .kf-people > div { background: rgba(255, 255, 255, 0.88); border-radius: 16px; padding: 16px 20px; }
.page_content_wrap .kf-people > div:first-child,
.page_content_wrap .kf-people > div:last-child { grid-column: 1 / -1; }
.page_content_wrap .kf-list-title {
	margin: 0 0 6px !important;
	font-family: var(--kf-ui-font) !important;
	font-size: 15px !important;
	font-weight: 800 !important;
	line-height: 1.4 !important;
	letter-spacing: 0.06em !important;
	text-transform: uppercase !important;
	color: var(--kf-orange-text, #c2410c) !important;
}
.page_content_wrap ul.kf-list { list-style: none; margin: 0 0 8px; padding: 0; }
.page_content_wrap ul.kf-list li {
	margin: 0;
	padding: 7px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.09);
	line-height: 1.45;
}
.page_content_wrap ul.kf-list li:last-child { border-bottom: 0; }
.page_content_wrap ul.kf-list li::before { content: none !important; display: none !important; }
/* on the green band the orange titles were hard to read: dark instead */
.vc_custom_1764091598565 .kf-list-title { color: var(--kf-head) !important; }
.vc_custom_1764091598565 ul.kf-list li { border-bottom-color: rgba(0, 0, 0, 0.14); }
@media (max-width: 600px) {
	.page_content_wrap .kf-people { grid-template-columns: 1fr; }
}
/* Parents' Association: the title sat right on the top edge of the green */
@media (min-width: 1025px) {
	.vc_custom_1764091598565 { padding-top: 32px !important; }
}

/* Classes (Classes page and Home): each class as a white card */
.wpb_column:has(> .vc_column-inner > .wpb_wrapper > .sc_title a.sc_button[href*="/classes/"]) > .vc_column-inner {
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
	padding: 16px 16px 24px !important;
	margin: 0 12px 20px;
}
.wpb_column:has(> .vc_column-inner > .wpb_wrapper > .sc_title a.sc_button[href*="/classes/"]) .wpb_single_image { margin-bottom: 4px !important; }
.wpb_column:has(> .vc_column-inner > .wpb_wrapper > .sc_title a.sc_button[href*="/classes/"]) .wpb_single_image :is(figure, .vc_single_image-wrapper, img) { display: block; width: 100%; height: auto; }
.wpb_column:has(> .vc_column-inner > .wpb_wrapper > .sc_title a.sc_button[href*="/classes/"]) .vc_empty_space { display: none !important; }
.wpb_column:has(> .vc_column-inner > .wpb_wrapper > .sc_title a.sc_button[href*="/classes/"]) a.sc_button { min-width: 240px; justify-content: center; }

/* --- 28. Class pages (child pages of Classes: body.parent-pageid-1689) ---------------- */
/* About Our Class: the photo and the text sit level with each other, with less empty
   space above them */
@media (min-width: 768px) {
	body.parent-pageid-1689 .vc_row.vc_custom_1481619083205 { display: flex; flex-wrap: wrap; align-items: center; }
	body.parent-pageid-1689 .vc_row.vc_custom_1481619083205::before,
	body.parent-pageid-1689 .vc_row.vc_custom_1481619083205::after { display: none; }
}
body.parent-pageid-1689 .vc_custom_1481619083205 .vc_empty_space.height_huge { height: 40px !important; }

/* Each activity (its title, text and photos) as a white card on the blue band, so it's
   clear where one ends and the next begins */
body.parent-pageid-1689 .page_content_wrap .vc_row:has(.esg-grid) > .wpb_column > .vc_column-inner {
	background: #fff;
	border-radius: 24px;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
	padding: 28px 32px 12px !important;
	margin: 0 0 28px;
}
@media (max-width: 767px) {
	body.parent-pageid-1689 .page_content_wrap .vc_row:has(.esg-grid) > .wpb_column > .vc_column-inner {
		border-radius: 20px;
		padding: 20px 16px 8px !important;
		margin-bottom: 20px;
	}
}
body.parent-pageid-1689 .page_content_wrap .vc_row:has(.esg-grid) .sc_item_title {
	font-size: clamp(24px, 20px + 1vw, 32px);
	line-height: 1.2;
}
/* the text under each title at a comfortable reading width */
body.parent-pageid-1689 .page_content_wrap .vc_row:has(.esg-grid) .sc_item_descr { max-width: 46em; }
/* the 64px gap under each gallery is now the card's own padding */
body.parent-pageid-1689 .page_content_wrap .vc_row:has(.esg-grid) .vc_empty_space.height_biggest { height: 12px !important; }
/* the photo grid sits on the white card, not on its own grey box */
body.parent-pageid-1689 .page_content_wrap .vc_row:has(.esg-grid) .esg-grid-wrap-container { background: transparent !important; }
/* "Show earlier activities" sits at the foot of the last card shown */
body.parent-pageid-1689 .kf-earlier { padding: 4px 0 20px; }
/* no hairline seam between one activity's band and the next */
body.parent-pageid-1689 .page_content_wrap .vc_row:has(.esg-grid) + .vc_row-full-width + .vc_row:has(.esg-grid) { margin-top: -1px; }

/* --- 29. Homepage: news as cards, initiatives as tiles (18 Nov 2026) ----------- */

/* News: date above the title, no "Staff |" */
body.home .sc_recent_news .post_header { display: flex; flex-direction: column; }
body.home .sc_recent_news .post_header .post_meta { order: -1; margin: 0 0 6px !important; }
body.home .sc_recent_news .post_meta .post_author { display: none; }
body.home .sc_recent_news .post_meta .post_date:before { display: none; }
body.home .sc_recent_news .post_meta .post_date,
body.home .sc_recent_news .post_meta .post_date a { margin: 0; font-size: 14px; font-weight: 700; color: #c2410c; }
body.home .sc_recent_news .post_title { font-family: Dosis, Nunito, sans-serif; font-weight: 700; margin: 0 !important; }
body.home .sc_recent_news .post_title a { color: var(--kf-head); }

/* News: the big story as one rounded card */
body.home .sc_recent_news .post_accented_on {
	background: #f7f5ef; border-radius: 20px; overflow: hidden; margin: 0;
	padding: 0 0 26px; transition: transform .2s ease, box-shadow .2s ease;
}
body.home .sc_recent_news .post_accented_on .post_featured { margin: 0 0 22px !important; }
body.home .sc_recent_news .post_accented_on .post_featured img { display: block; width: 100%; height: 320px; object-fit: cover; }
/* photos square at the bottom, so they sit flush on the card */
body.home .sc_recent_news .post_featured,
body.home .sc_recent_news .post_featured img,
body.home .sc_recent_news .post_featured .mask { border-radius: 0 !important; }
body.home .sc_recent_news .post_featured img { width: 100% !important; max-width: none !important; }
body.home .sc_recent_news .post_accented_on .post_header,
body.home .sc_recent_news .post_accented_on .post_content { padding: 0 28px; margin: 0; }
body.home .sc_recent_news .post_accented_on .post_title { font-size: clamp(25px, 20px + 0.8vw, 31px); line-height: 1.15; }
body.home .sc_recent_news .post_accented_on .post_content { margin-top: 12px; }
body.home .sc_recent_news .post_accented_on .post_content p { margin: 0; }
body.home .sc_recent_news .post_accented_on .post_footer { display: none; }

/* News: the other four as cards, photo on top, two by two
   (inline-grid, as the theme's columns are inline-blocks: plain grid drops this column below the big story) */
body.home .sc_recent_news .trx_addons_columns_wrap > div:nth-child(2) {
	display: inline-grid; vertical-align: top; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-content: start;
}
body.home .sc_recent_news .post_accented_off {
	display: flex; flex-direction: column; margin: 0 !important; padding: 0 !important;
	background: #fff; border: 1px solid #e9e5dc; border-radius: 20px; overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease;
}
body.home .sc_recent_news .post_accented_off .post_featured {
	float: none !important; width: 100% !important; margin: 0 !important; border-radius: 0 !important;
}
body.home .sc_recent_news .post_accented_off .post_featured img { display: block; width: 100%; height: 150px; object-fit: cover; }
body.home .sc_recent_news .post_accented_off .post_header { float: none !important; width: auto !important; margin: 0 !important; padding: 14px 16px 18px; overflow: visible; }
body.home .sc_recent_news .post_accented_off .post_title { font-size: 19px; line-height: 1.2; }
body.home .sc_recent_news .post_item:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 0, 0, .10); }
/* a little room between the cards and "View All" */
body.home .sc_recent_news + .sc_item_button { margin-top: 30px; }

/* Initiatives: each one a white tile with its own icon */
body.home .vc_custom_1764086016192 ul.trx_addons_list_success {
	list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px;
}
body.home .vc_custom_1764086016192 ul.trx_addons_list_success li {
	position: relative; display: flex; align-items: center; gap: 12px; box-sizing: border-box; min-height: 70px;
	margin: 0; padding: 12px 14px 12px 12px; background: #fff; border-radius: 18px;
	box-shadow: 0 6px 18px rgba(16, 58, 86, .08);
	font-family: Dosis, Nunito, sans-serif; font-weight: 700; font-size: 19px; line-height: 1.2; text-wrap: balance;
}
body.home .page_content_wrap .vc_custom_1764086016192 ul.trx_addons_list_success li::before {
	position: static; flex: 0 0 42px; width: 42px; height: 42px; margin: 0; transform: none;
	border-radius: 12px; font-size: 18px; line-height: 42px; text-align: center;
	background-color: #fde6dc !important; color: #c2410c !important;
}
/* Icons: set by a class on each item in the page content, e.g. <li class="kf-ic-flag">Gaelbhratach</li>,
   so each icon stays with its name if the list changes. An item with no class gets the orange tick.
   Available: kf-ic-flag, -heart, -handshake, -trophy, -music, -globe, -book, -star, -leaf, -palette */
.page_content_wrap ul.trx_addons_list_success li.kf-ic-flag::before { content: "\f024"; }
.page_content_wrap ul.trx_addons_list_success li.kf-ic-heart::before { content: "\f004"; }
.page_content_wrap ul.trx_addons_list_success li.kf-ic-handshake::before { content: "\f2b5"; }
.page_content_wrap ul.trx_addons_list_success li.kf-ic-trophy::before { content: "\f091"; }
.page_content_wrap ul.trx_addons_list_success li.kf-ic-music::before { content: "\f001"; }
.page_content_wrap ul.trx_addons_list_success li.kf-ic-globe::before { content: "\f0ac"; }
.page_content_wrap ul.trx_addons_list_success li.kf-ic-book::before { content: "\f02d"; }
.page_content_wrap ul.trx_addons_list_success li.kf-ic-star::before { content: "\f005"; }
.page_content_wrap ul.trx_addons_list_success li.kf-ic-leaf::before { content: "\f06c"; }
.page_content_wrap ul.trx_addons_list_success li.kf-ic-palette::before { content: "\f53f"; }
/* on the Initiatives tiles the squares are green, blue or (the default above) orange */
body.home .page_content_wrap .vc_custom_1764086016192 ul.trx_addons_list_success li:is(.kf-ic-flag, .kf-ic-globe, .kf-ic-leaf)::before { background-color: #ebf3d3 !important; color: #4d6b00 !important; }
body.home .page_content_wrap .vc_custom_1764086016192 ul.trx_addons_list_success li:is(.kf-ic-handshake, .kf-ic-music, .kf-ic-book)::before { background-color: #e0f0fb !important; color: #1a6496 !important; }

/* Tablets: the big story full width with the four cards in a 2 x 2 grid under it,
   and the initiatives in one column (side by side they were too narrow to read) */
@media (min-width: 768px) and (max-width: 1023px) {
	body.home .sc_recent_news .trx_addons_columns_wrap > div { width: 100% !important; }
	body.home .sc_recent_news .trx_addons_columns_wrap > div:nth-child(2) { margin-top: 24px; }
	body.home .sc_recent_news .post_accented_on .post_featured img { height: 340px; }
	body.home .vc_custom_1764086016192 .vc_inner > .wpb_column { width: 100%; }
	body.home .vc_custom_1764086016192 ul.trx_addons_list_success { gap: 10px; }
	body.home .vc_custom_1764086016192 .vc_inner > .wpb_column:first-child ul.trx_addons_list_success { margin-bottom: 10px; }
	body.home .vc_custom_1764086016192 ul.trx_addons_list_success li { min-height: 60px; }
}

/* Phones: news as a short list (photo left, title right); tiles a little smaller */
@media (max-width: 767px) {
	body.home .sc_recent_news .post_accented_on .post_featured img { height: 210px; }
	body.home .sc_recent_news .post_accented_on .post_header,
	body.home .sc_recent_news .post_accented_on .post_content { padding: 0 20px; }
	body.home .sc_recent_news .trx_addons_columns_wrap > div:nth-child(2) { grid-template-columns: 1fr; gap: 12px; margin-top: 20px; }
	body.home .sc_recent_news .post_accented_off { flex-direction: row; align-items: center; }
	body.home .sc_recent_news .post_accented_off .post_featured { flex: 0 0 112px; width: 112px !important; }
	body.home .sc_recent_news .post_accented_off .post_featured img { height: 86px; }
	body.home .sc_recent_news .post_accented_off .post_header { padding: 10px 14px; }
	body.home .sc_recent_news .post_accented_off .post_title { font-size: 18px; }
	body.home .vc_custom_1764086016192 ul.trx_addons_list_success { gap: 10px; margin-bottom: 10px; }
	body.home .vc_custom_1764086016192 ul.trx_addons_list_success li { min-height: 60px; font-size: 18px; }
}

/* --- 30. Device-size pass: spacing and sizing on phones and tablets (18 Nov 2026) ----- */

/* Headings break into even lines instead of leaving one word on its own */
:is(h1, h2, h3, h4, .sc_item_title, .post_title, .kf-banner__title) { text-wrap: balance; }

/* Phones and tablets: comfortable tap areas without moving anything on screen */
@media (max-width: 1023px) {
	/* email and phone in the header (the visible size stays the same) */
	.top_panel .sc_layouts_iconed_text:not(.sc_layouts_menu_mobile_button) a.sc_layouts_item_link { padding: 12px 8px; margin: -12px -8px; }
	/* the menu button was 34px square */
	.top_panel .sc_layouts_menu_mobile_button a.sc_layouts_item_link { padding: 5px; margin: -5px; }
	/* footer links: a little more room between them */
	.footer_wrap :is(.contacts_right a, li.menu-item > a) { display: inline-block; padding: 5px 0; }
}
/* "Show all dates" under the calendar was a 25px-high target */
.kf-dates button.kf-dates__more { min-height: 44px; }

/* Class cards (Home and Classes): each card was as wide as its column plus its 12px side
   margin, so the cards touched and the last one stuck out past the edge (on phones, past
   the edge of the screen). Now an even 24px between them; slimmer button padding keeps
   "About Meánranganna" on one line */
.wpb_column:has(> .vc_column-inner > .wpb_wrapper > .sc_title a.sc_button[href*="/classes/"]) > .vc_column-inner { width: auto !important; }
.wpb_column:has(> .vc_column-inner > .wpb_wrapper > .sc_title a.sc_button[href*="/classes/"]) a.sc_button { padding-left: 24px !important; padding-right: 24px !important; }

/* Home, Opening Hours: the times sat right on the edge of the green calendar band */
body.home .page_content_wrap .vc_row:has(+ .vc_row .kf-dates) { padding-bottom: 32px; }
@media (min-width: 768px) {
	body.home .page_content_wrap .vc_row:has(+ .vc_row .kf-dates) { padding-bottom: 48px; }
}

/* Tablets (768–1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
	/* "Our main values": the photo only shows on wider screens, which left the text in the
	   left half and the right half empty; centre it instead, as on phones */
	.vc_custom_1764086571488 > .wpb_column:first-child { width: 100%; }
	.vc_custom_1764086571488 > .wpb_column:not(:first-child) { display: none; }
	.vc_custom_1764086571488 > .wpb_column:first-child > .vc_column-inner > .wpb_wrapper { max-width: 620px; margin: 0 auto; }
}
@media (min-width: 768px) and (max-width: 1023px) {
	/* Class cards (Home and Classes): three across left the buttons spilling out of the
	   cards; one under the other instead, photo on the left */
	.vc_row > .wpb_column.vc_col-sm-4:has(> .vc_column-inner > .wpb_wrapper > .sc_title a.sc_button[href*="/classes/"]) { width: 100%; }
	.wpb_column:has(> .vc_column-inner > .wpb_wrapper > .sc_title a.sc_button[href*="/classes/"]) > .vc_column-inner > .wpb_wrapper {
		display: grid;
		grid-template-columns: minmax(0, 44%) minmax(0, 1fr);
		align-items: center;
		column-gap: 28px;
	}
	.wpb_column:has(> .vc_column-inner > .wpb_wrapper > .sc_title a.sc_button[href*="/classes/"]) .wpb_single_image { margin-bottom: 0 !important; }
	.wpb_column:has(> .vc_column-inner > .wpb_wrapper > .sc_title a.sc_button[href*="/classes/"]) > .vc_column-inner { padding: 16px 24px 16px 16px !important; }
	/* Our School: the SNAs and Secretary cards were too narrow side by side ("O'Shaughness / y") */
	.page_content_wrap .kf-people { grid-template-columns: 1fr; }
}

/* Contact, phones: the map sat right against the menu bar */
@media (max-width: 767px) {
	body.page-id-165 .page_content_wrap .vc_custom_1483445866481 { margin-top: 20px; }
}

/* Privacy Policy, phones: the table ran off the right-hand edge of the screen */
@media (max-width: 767px) {
	body.page-id-945 .wpb_text_column table { width: 100% !important; table-layout: fixed; font-size: 14px; line-height: 1.45; }
	body.page-id-945 .wpb_text_column tr > :nth-child(1) { width: 28%; }
	body.page-id-945 .wpb_text_column tr > :nth-child(2) { width: 20%; }
	body.page-id-945 .wpb_text_column :is(td, th) { padding: 10px 6px !important; overflow-wrap: break-word; vertical-align: top; }
}

/* Privacy Policy: headings closer to their text */
body.page-id-945 .wpb_text_column :is(h2, h3) { margin-top: 1.4em !important; margin-bottom: 0.5em !important; }

/* News posts: "Categories: School News" broke over two lines (the theme kept half the width
   for share buttons that aren't used), and less empty space before "You May Also Like" */
.post_meta_single .single-meta { float: none; max-width: none; }
.related_wrap { margin-top: 48px !important; padding-top: 56px !important; }
@media (max-width: 767px) {
	.related_wrap { margin-top: 32px !important; padding-top: 40px !important; }
}

/* --- 31. Slimmer phone header: one 64px row (19 Nov 2026) ------------------------------
   Phones only (up to 767px), was 143px. Crest and name on the left, a round call button
   and the menu button on the right; the green menu bar becomes a thin green line.
   The email address is still in the footer and on the Contact page. Browsers too old for
   :has() keep the old header (the @supports line). */
@supports selector(:has(a)) {
@media (max-width: 767px) {
	.top_panel { position: relative; } /* the menu button is placed inside the header */
	.top_panel .sc_layouts_row_type_narrow { padding: 10px 0 !important; min-height: 64px; box-sizing: border-box; box-shadow: inset 0 -4px 0 #a5bd28; }
	/* the row has -15px side margins, so its column keeps 15px at the sides (no top padding) */
	.top_panel .sc_layouts_row_type_narrow > .wpb_column > .vc_column-inner { padding: 0 15px !important; }
	/* 20px at the sides lines up with the page text */
	.top_panel .sc_layouts_row_type_narrow .sc_content { width: auto !important; max-width: none !important; margin: 0 20px !important; padding: 0 !important; }
	.top_panel .sc_layouts_row_type_narrow .vc_inner {
		display: flex !important; flex-wrap: nowrap !important; align-items: center; justify-content: space-between;
		margin: 0 !important; padding: 0 52px 0 0; min-height: 44px; /* 52px leaves room for the menu button */
	}
	.top_panel .sc_layouts_row_type_narrow .vc_inner > .wpb_column { width: auto !important; padding: 0 !important; float: none; }
	.top_panel .sc_layouts_row_type_narrow .vc_inner > .wpb_column > .vc_column-inner { padding: 0 !important; }
	.top_panel .sc_layouts_row_type_narrow .vc_inner > .wpb_column:has(.wpb_single_image) { flex: 1 1 auto; min-width: 0; }
	.top_panel .sc_layouts_row_type_narrow .vc_inner > .wpb_column:has(.wpb_single_image) .wpb_wrapper { justify-content: flex-start !important; gap: 10px !important; }
	.top_panel .sc_layouts_row_type_narrow .wpb_single_image img { height: 42px !important; }
	.top_panel .sc_layouts_row_type_narrow .vc_inner > .wpb_column:has(.wpb_single_image) .wpb_text_column p {
		font-family: var(--kf-head-font) !important; font-size: 22px !important; font-weight: 700; line-height: 1.1 !important; white-space: nowrap;
	}
	.top_panel .sc_layouts_row_type_narrow .vc_inner > .wpb_column:has(.wpb_single_image) .wpb_text_column p strong { font-weight: 700; color: var(--kf-head); }

	/* the phone number becomes a round call button (screen readers still hear the number) */
	.top_panel .sc_layouts_row_type_narrow .vc_inner > .wpb_column:has(a[href^="tel:"]) { flex: 0 0 auto; }
	.top_panel .sc_layouts_row_type_narrow .vc_inner > .wpb_column:has(a[href^="tel:"]) .wpb_wrapper { margin: 0 !important; column-gap: 0 !important; }
	.top_panel .sc_layouts_row_type_narrow .sc_layouts_item:has(a[href^="mailto:"]) { display: none !important; }
	.top_panel .sc_layouts_row_type_narrow a[href^="tel:"].sc_layouts_item_link {
		display: flex !important; align-items: center; justify-content: center;
		width: 44px; height: 44px; margin: 0 !important; padding: 0 !important; border-radius: 50%;
		background: #fde6dc; /* same soft orange as the initiative tiles */
	}
	.top_panel .sc_layouts_row_type_narrow a[href^="tel:"] .sc_layouts_iconed_text_icon { margin: 0 !important; font-size: 18px !important; line-height: 1 !important; color: var(--kf-orange-text, #c2410c) !important; }
	.top_panel .sc_layouts_row_type_narrow a[href^="tel:"] .sc_layouts_iconed_text_details {
		position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
	}

	/* the green menu bar goes; its menu button moves up into the row */
	.top_panel .sc_layouts_row_type_normal.sc_layouts_row_fixed { height: 0 !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; overflow: visible !important; }
	.top_panel .sc_layouts_row_type_normal.sc_layouts_row_fixed :is(.wpb_column, .vc_column-inner, .wpb_wrapper, .sc_content, .sc_content_container, .vc_inner, .sc_layouts_item) { position: static !important; padding: 0 !important; margin: 0 !important; min-height: 0 !important; height: 0; }
	.top_panel .sc_layouts_menu_mobile_button { position: absolute !important; top: 10px; right: 20px; z-index: 5; margin: 0 !important; }
	.top_panel .sc_layouts_menu_mobile_button a.sc_layouts_item_link {
		display: flex !important; align-items: center; justify-content: center;
		width: 44px; height: 44px; margin: 0 !important; padding: 0 !important; border-radius: 50%;
		background: #a5bd28;
	}
	.top_panel .sc_layouts_menu_mobile_button .sc_layouts_item_icon { font-size: 22px !important; line-height: 1 !important; width: auto !important; height: auto !important; color: #1f2a07 !important; }
	.top_panel .sc_layouts_menu_mobile_button .sc_layouts_item_icon::before { color: inherit !important; margin: 0 !important; }
}
}

/* --- 32. Footer Quick links without bullets (19 Nov 2026) -----------------------------
   The theme put a small orange dot before each link. The links now line up with the
   "Quick links" title; the three class pages stay indented under Classes. */
.footer_wrap .widget_nav_menu li::before { content: none !important; }
.footer_wrap .widget_nav_menu ul.menu { padding-left: 0 !important; }
.footer_wrap .widget_nav_menu ul.sub-menu { padding-left: 16px !important; }

/* --- 33. Slimmer header on tablets and desktops (19 Nov 2026) --------------------------
   768px and up, was 238-264px, now 149-165px. Crest and name side by side on the left,
   the address over email and phone on the right. The green menu bar is unchanged and still
   sticks to the top when you scroll. Browsers too old for :has() keep the old header. */
@supports selector(:has(a)) {
@media (min-width: 768px) {
	.top_panel .sc_layouts_row_type_narrow { padding: 14px 0 !important; }
	.top_panel .sc_layouts_row_type_narrow > .wpb_column > .vc_column-inner { padding-top: 0 !important; padding-bottom: 0 !important; }
	.top_panel .sc_layouts_row_type_narrow .vc_inner {
		display: grid !important; grid-template-columns: 1fr auto; grid-template-rows: auto auto;
		column-gap: 32px; row-gap: 2px; align-items: center; margin: 0 !important;
	}
	.top_panel .sc_layouts_row_type_narrow .vc_inner::before,
	.top_panel .sc_layouts_row_type_narrow .vc_inner::after { content: none !important; }
	.top_panel .sc_layouts_row_type_narrow .vc_inner > .wpb_column { width: auto !important; flex: none !important; float: none !important; min-width: 0; }
	.top_panel .sc_layouts_row_type_narrow .vc_inner > .wpb_column > .vc_column-inner { padding: 0 !important; }
	.top_panel .sc_layouts_row_type_narrow .vc_empty_space { display: none !important; }

	/* crest and name side by side, on the left */
	.top_panel .sc_layouts_row_type_narrow .vc_inner > .wpb_column:has(.wpb_single_image) { grid-column: 1; grid-row: 1 / span 2; }
	.top_panel .sc_layouts_row_type_narrow .vc_inner > .wpb_column:has(.wpb_single_image) .vc_column-inner > .wpb_wrapper {
		display: flex !important; flex-direction: row !important; align-items: center; justify-content: flex-start !important; gap: 14px;
	}
	.top_panel .sc_layouts_row_type_narrow .wpb_single_image { margin: 0 !important; width: auto !important; }
	.top_panel .sc_layouts_row_type_narrow .wpb_single_image img { height: 64px !important; width: auto !important; max-height: none !important; }
	.top_panel .sc_layouts_row_type_narrow .vc_inner > .wpb_column:has(.wpb_single_image) .wpb_text_column { margin: 0 !important; }
	.top_panel .sc_layouts_row_type_narrow .vc_inner > .wpb_column:has(.wpb_single_image) .wpb_text_column p {
		margin: 0 !important; text-align: left !important; font-size: 28px !important; line-height: 1.1 !important; white-space: nowrap;
	}

	/* the address over email and phone, lined up on the right */
	.top_panel .sc_layouts_row_type_narrow .vc_inner > .wpb_column:has(.fa-location-dot) { grid-column: 2; grid-row: 1; align-self: end; justify-self: end; }
	.top_panel .sc_layouts_row_type_narrow .vc_inner > .wpb_column:has(a[href^="tel:"]) { grid-column: 2; grid-row: 2; align-self: start; justify-self: end; }
	.top_panel .sc_layouts_row_type_narrow .vc_inner > .wpb_column:has(.fa-location-dot) .vc_column-inner > .wpb_wrapper,
	.top_panel .sc_layouts_row_type_narrow .vc_inner > .wpb_column:has(a[href^="tel:"]) .vc_column-inner > .wpb_wrapper {
		display: flex !important; flex-wrap: wrap; column-gap: 24px; row-gap: 2px; justify-content: flex-end !important; text-align: right !important;
	}
	.top_panel .sc_layouts_row_type_narrow .vc_inner > .wpb_column:has(.fa-location-dot) .sc_layouts_item,
	.top_panel .sc_layouts_row_type_narrow .vc_inner > .wpb_column:has(a[href^="tel:"]) .sc_layouts_item { margin: 0 !important; }

	/* green menu bar: each link also answers taps 5px above and below its pill (nothing moves) */
	.top_panel .sc_layouts_row_fixed .sc_layouts_menu_nav > li > a::before { content: ""; position: absolute; inset: -5px 0; }
}
}

/* --- 34. Homepage: no line under "School News" (19 Nov 2026) ---------------------------
   The theme drew a dark line under the title. It's gone, and the news cards now sit
   34-36px under the title (54-57px with the line). */
body.home .sc_recent_news .sc_recent_news_header { border-bottom: 0 !important; padding-bottom: 0 !important; }

/* --- 35. Homepage: room under the news "View all" button (19 Nov 2026) -----------------
   The button sat on the edge of the green "About" band (0px on phones, 9px on wider
   screens). Now 40px on phones and 57px from 768px. */
body.home .sc_recent_news ~ .sc_button_wrap { margin-bottom: 40px !important; }
@media (min-width: 768px) {
	body.home .sc_recent_news ~ .sc_button_wrap { margin-bottom: 48px !important; }
}

/* --- 36. Contact page: banner, contact cards, no map (19 Nov 2026) ---------------------
   In the page content, the map, the address/phone/email columns and the photo beside
   Opening Hours were replaced by a "Contact Us" banner and three cards: Call us, Email and
   Find us with a Get directions link. Each whole card is the link. */
.kf-contact-wrap { padding: 32px 0 8px; margin: 0 !important; }
.kf-contact-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: 560px; margin: 0 auto; }
@media (min-width: 1024px) {
	.kf-contact-wrap { padding: 64px 0 16px; }
	.kf-contact-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 1000px; }
}
a.kf-contact-card {
	display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-content: start;
	padding: 18px 20px; border: 1px solid #ebe8df; border-radius: 18px; background: #fff;
	color: var(--kf-head) !important; text-decoration: none !important; transition: border-color 0.2s, box-shadow 0.2s;
}
a.kf-contact-card:is(:hover, :focus-visible) { border-color: #f1b89f; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06); }
.kf-contact-card__icon {
	grid-row: 1 / span 3; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px;
	border-radius: 50%; background: #fde6dc; color: var(--kf-orange-text, #c2410c); font-size: 19px;
}
.kf-contact-card__label {
	font-family: var(--kf-ui-font); font-size: 13px; font-weight: 800; letter-spacing: 0.08em; line-height: 1.4;
	text-transform: uppercase; color: var(--kf-orange-text, #c2410c);
}
.kf-contact-card__value { font-size: 19px; line-height: 1.35; color: var(--kf-head); }
.kf-contact-card__cta { margin-top: 6px; font-size: 15px; font-weight: 700; color: var(--kf-orange-text, #c2410c); }
.kf-contact-card__cta::after { content: " \2192"; }
/* Opening Hours: room before the green calendar band (it sat on the edge) */
body.page-id-165 .page_content_wrap .vc_row:has(+ .vc_row .kf-dates) { padding-bottom: 40px; }
@media (min-width: 768px) {
	body.page-id-165 .page_content_wrap .vc_row:has(+ .vc_row .kf-dates) { padding-bottom: 64px; }
}

/* --- 37. Class pages: "Recent Activities & News" as cards (19 Nov 2026) ----------------
   The three newest School News posts, in the same cards as the homepage news: photo on
   top from 1024px, photo on the left on phones and tablets (each card was 480px tall on a
   phone). The "by Staff" line is left out, as on the homepage. */
.page_content_wrap .sc_blogger_default .sc_blogger_columns {
	display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: 560px; margin: 0 auto !important;
}
.page_content_wrap .sc_blogger_default .sc_blogger_columns > [class*="trx_addons_column-"] { width: auto !important; padding: 0 !important; }
/* the columns wrapper's clearfix would take the first grid cell */
.page_content_wrap .sc_blogger_default .sc_blogger_columns::before,
.page_content_wrap .sc_blogger_default .sc_blogger_columns::after { content: none !important; display: none !important; }
.page_content_wrap .sc_blogger_default .sc_blogger_item {
	display: flex; align-items: center; height: 100%; box-sizing: border-box; margin: 0; padding: 0 !important;
	background: #fff !important; border: 1px solid #e9e5dc; border-radius: 20px; overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.page_content_wrap .sc_blogger_default .sc_blogger_item:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1); }
.page_content_wrap .sc_blogger_default .sc_blogger_item_featured {
	flex: 0 0 112px; align-self: stretch; width: 112px !important; margin: 0 !important; float: none !important; border-radius: 0 !important;
}
.page_content_wrap .sc_blogger_default .sc_blogger_item_featured img {
	display: block; width: 100% !important; height: 100% !important; min-height: 86px; max-width: none !important; object-fit: cover; border-radius: 0 !important;
}
/* the theme laid the text over the photo (position: absolute) on wider screens */
.page_content_wrap .sc_blogger_default .sc_blogger_item_content {
	position: static !important; top: auto !important; left: auto !important; width: auto !important; transform: none !important;
	flex: 1 1 auto; min-width: 0; padding: 10px 14px !important;
}
.page_content_wrap .sc_blogger_default .sc_blogger_item .post_meta { margin: 0 0 2px !important; }
.page_content_wrap .sc_blogger_default .sc_blogger_item .post_date a { font-size: 14px; font-weight: 700; letter-spacing: 0; text-transform: none; color: #c2410c; }
.page_content_wrap .sc_blogger_default .sc_blogger_item .post_meta:has(.post_author) { display: none; }
.page_content_wrap .sc_blogger_default .sc_blogger_item_title { margin: 0 !important; font-family: var(--kf-head-font) !important; font-weight: 700 !important; font-size: 18px !important; line-height: 1.2; }
.page_content_wrap .sc_blogger_default .sc_blogger_item_title a { color: var(--kf-head); font: inherit; }
@media (min-width: 1024px) {
	.page_content_wrap .sc_blogger_default .sc_blogger_columns { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: none; }
	.page_content_wrap .sc_blogger_default .sc_blogger_item { flex-direction: column; align-items: stretch; justify-content: flex-start; }
	.page_content_wrap .sc_blogger_default .sc_blogger_item_featured { flex: none; width: 100% !important; }
	.page_content_wrap .sc_blogger_default .sc_blogger_item_featured img { height: 180px !important; }
	.page_content_wrap .sc_blogger_default .sc_blogger_item_content { padding: 14px 16px 18px !important; }
	.page_content_wrap .sc_blogger_default .sc_blogger_item_title { font-size: 19px !important; }
}

/* --- 38. Icons from a small font (19 Nov 2026) ------------------------------------------
   The site shows 16 Font Awesome icons: the header phone and pin, the Contact cards, the document icons on
   Admissions and Policies, the Initiatives tiles and list ticks (and 4 spare tile icons: book, star, leaf,
   palette). Font Awesome's own font is 155 KB; "KF Icons" below holds just those 16 icons (3 KB). It is cut
   from Font Awesome Free 6.7.2 Solid by Fonticons, Inc. (fontawesome.com; icons CC BY 4.0, font SIL OFL 1.1,
   renamed as that licence asks). Font Awesome's stylesheet still loads once the page is showing, so an icon
   added later that isn't in this list still appears (Font Awesome's font then loads for it, as before). */
@font-face {
	font-family: "KF Icons";
	font-style: normal;
	font-weight: 900;
	font-display: block;
	src: url(data:font/woff2;base64,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) format("woff2");
}
.fa:not(.fa-regular):not(.far):not(.fa-brands):not(.fab), .fa-solid, .fas {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
	display: var(--fa-display, inline-block);
	font-style: normal;
	font-variant: normal;
	line-height: 1;
	text-rendering: auto;
	font-family: "KF Icons", "Font Awesome 6 Free" !important;
}
.fa { font-weight: var(--fa-style, 900); }
.fa-solid, .fas { font-weight: 900; }
.fa:before, .fa-solid:before, .fas:before { content: var(--fa); }
.fa-phone { --fa: "\f095"; }
.fa-location-dot, .fa-map-marker-alt { --fa: "\f3c5"; }
.fa-envelope { --fa: "\f0e0"; }
.fa-file { --fa: "\f15b"; }
.fa-file-pdf { --fa: "\f1c1"; }
.fa-check { --fa: "\f00c"; }
