/* ==========================================================================
   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: "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; }
}
