/*
Theme Name:   Liceu FP
Description:  Modern child theme of Twenty Sixteen for Es Liceu Formació Professional.
Author:       Es Liceu
Template:     twentysixteen
Version:      1.0.0
Text Domain:  liceu-fp
*/

/* ==========================================================================
   0. Fonts — self-hosted variable fonts (SIL Open Font License), see fonts/
   ========================================================================== */

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("fonts/inter-latin-wght-normal.woff2") format("woff2-variations"), url("fonts/inter-latin-wght-normal.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: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations"), url("fonts/inter-latin-ext-wght-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Plus Jakarta Sans";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations"), url("fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
	/* Apostrophes (U+0027, U+2019) deliberately excluded: Jakarta's are very
	   loosely spaced ("d’ accés"), so they fall back to Inter — matters for Catalan. */
	unicode-range: U+0000-0026, U+0028-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-2018, U+201A-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Plus Jakarta Sans";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2-variations"), url("fonts/plus-jakarta-sans-latin-ext-wght-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   1. Design tokens
   ========================================================================== */

:root {
	--brand: #b75757;
	--brand-dark: #9a4747;
	--brand-soft: #f8efef;
	--ink: #2a2e34;
	--ink-2: #555b64;
	--ink-3: #767c85;
	--line: #e8e6e5;
	--surface: #ffffff;
	--bg: #f7f5f4;
	--footer-bg: #35393f;

	--radius-sm: 6px;
	--radius: 12px;
	--radius-lg: 20px;
	--shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
	--shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
	--shadow-lg: 0 12px 32px rgba(16, 24, 40, .12);

	--container: 1200px;
	--gutter: max(16px, calc((100% - var(--container)) / 2));

	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-head: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;

	/* Type scale (fluid). Headings step down evenly from display → h4. */
	--fs-display: clamp(2.25rem, 1.6rem + 2.8vw, 3.5rem);
	--fs-h1: clamp(1.75rem, 1.4rem + 1.3vw, 2.25rem);
	--fs-h2: clamp(1.4rem, 1.2rem + .8vw, 1.75rem);
	--fs-h3: 1.25rem;
	--fs-h4: 1.0625rem;
	--fs-small: .875rem;
	--measure: 70ch;
}

/* ==========================================================================
   2. Base
   ========================================================================== */

html { scroll-behavior: smooth; }

body {
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	-webkit-font-smoothing: antialiased;
}

body,
button,
input,
select,
textarea {
	font-family: var(--font-body);
	color: var(--ink);
}

/* Remove Twenty Sixteen's white frame and boxed page */
body:not(.custom-background-image):before,
body:not(.custom-background-image):after { display: none; }

.site { margin: 0; background: transparent; }

.site-inner {
	max-width: none;
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
.site-inner > .site-content { flex: 1 0 auto; width: 100%; }

h1, h2, h3, h4, h5, h6,
.entry-title,
.page-title,
.widget .widget-title,
.comments-title,
.comment-reply-title {
	font-family: var(--font-head);
	font-weight: 700;
	letter-spacing: -.015em;
	color: var(--ink);
	/* No mid-word hyphenation in headings (parent sets hyphens:auto) */
	-webkit-hyphens: manual;
	hyphens: manual;
	overflow-wrap: break-word;
	text-wrap: balance;
}

.entry-content h1, .entry-content h2, .entry-content h3,
.entry-content h4, .entry-content h5, .entry-content h6 {
	color: var(--brand);
	line-height: 1.25;
	margin: 1.6em 0 .6em;
}
.entry-content h1 { font-size: var(--fs-h1); }
.entry-content h2 { font-size: var(--fs-h2); font-weight: 650; letter-spacing: -.01em; }
.entry-content h3 { font-size: var(--fs-h3); font-weight: 650; letter-spacing: -.005em; }
.entry-content h4,
.entry-content h5,
.entry-content h6 { font-size: var(--fs-h4); font-weight: 650; letter-spacing: 0; }
.entry-content > :first-child { margin-top: 0; }

/* Body text: nicer line breaks, no forced hyphenation, comfortable line length */
.entry-content,
.entry-summary,
.textwidget {
	-webkit-hyphens: manual;
	hyphens: manual;
}
.entry-content p,
.entry-content li { text-wrap: pretty; }
.entry-content > :is(p:not(.liceu-subhead), ul, ol, blockquote, h1, h2, h3, h4, h5, h6, div:not([class])) { max-width: var(--measure); }
/* Paragraphs/divs that wrap an image (e.g. timetables) use the full column, not the text measure */
.entry-content > :is(p, div):not(.liceu-subhead):has(img) { max-width: none; } /* :not() matches the specificity of the rule above */

a { color: var(--brand); text-decoration: none; }
a:hover, a:focus { color: var(--brand-dark); }

.entry-content a,
.entry-summary a,
.comment-content a,
.textwidget a {
	box-shadow: none;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
.entry-content a:hover,
.entry-summary a:hover,
.textwidget a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid rgba(183, 87, 87, .45); outline-offset: 2px; }

img { border-radius: var(--radius-sm); }
.custom-logo { border-radius: 0; }

/* Buttons & form fields */
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.liceu-btn {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	background: var(--brand);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: .75em 1.4em;
	font-family: var(--font-body);
	font-size: .9375rem;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color .15s, color .15s, box-shadow .15s, transform .15s;
}
button:hover,
button:focus,
input[type="submit"]:hover,
input[type="submit"]:focus,
.liceu-btn:hover,
.liceu-btn:focus {
	background: var(--brand-dark);
	color: #fff;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
textarea,
select {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	padding: .7em .9em;
	color: var(--ink);
	transition: border-color .15s, box-shadow .15s;
}
input:focus,
textarea:focus,
select:focus {
	background: var(--surface);
	border-color: var(--brand);
	box-shadow: 0 0 0 3px rgba(183, 87, 87, .15);
	outline: 0;
}

/* Search form: input + icon button */
.search-form { position: relative; }
.search-form .search-field,
.search-form input[type="search"].search-field {
	-webkit-appearance: none;
	appearance: none;
	border-radius: 999px;
	padding: .7em 3.2em .7em 1.1em;
}
.search-submit {
	border-radius: 999px;
	padding: 0;
	width: 2.6em;
	height: calc(100% - 8px);
	top: 4px;
	right: 4px;
	justify-content: center;
}
.search-submit:before { font-size: 20px; left: auto; top: auto; }

/* ==========================================================================
   3. Header
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, .92);
	-webkit-backdrop-filter: saturate(180%) blur(10px);
	backdrop-filter: saturate(180%) blur(10px);
	border-bottom: 1px solid var(--line);
	border-top: 4px solid var(--brand);
	padding: 10px var(--gutter);
}
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
	.admin-bar .site-header { top: 0; position: relative; }
}

.site-header-main { align-items: center; }

.site-branding { margin: 0; max-width: calc(100% - 7em); }
.site-branding .custom-logo { max-height: 64px; width: auto; }
.site-branding .custom-logo-link { display: block; }
.site-title,
.site-description {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
	width: 1px; height: 1px; overflow: hidden;
}

/* Mobile menu toggle */
.menu-toggle {
	margin: 0 0 0 auto;
	background: var(--ink);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: .65em 1.2em;
	font-size: .875rem;
	text-transform: none;
}
.menu-toggle:hover,
.menu-toggle:focus { background: var(--brand); color: #fff; border: 0; }
.menu-toggle.toggled-on,
.menu-toggle.toggled-on:hover,
.menu-toggle.toggled-on:focus { background: var(--brand); color: #fff; border: 0; }

/* Mobile menu */
.site-header-menu { margin: 0; }
.site-header-menu.toggled-on { padding-top: 10px; }

.main-navigation { font-family: var(--font-body); margin: 0; }
.main-navigation ul { border-color: var(--line); }
.main-navigation li { border-color: var(--line); }
.main-navigation a {
	color: var(--ink);
	font-weight: 500;
	padding: .75em .5em;
	border-radius: var(--radius-sm);
	transition: color .15s, background-color .15s;
}
.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation li:hover > a,
.main-navigation li.focus > a { color: var(--brand); }
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a { color: var(--brand); font-weight: 600; }
.dropdown-toggle { color: var(--ink-2); }
.dropdown-toggle:hover,
.dropdown-toggle:focus { background: transparent; color: var(--brand); }

/* Desktop menu */
@media screen and (min-width: 56.875em) {
	.site-header { padding-top: 12px; padding-bottom: 12px; }

	.site-header-menu { display: flex; align-items: center; margin-left: auto; }

	.main-navigation .primary-menu { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px; }

	/* Underline drawn with a background gradient, so the parent's
	   dropdown arrow (a:after) on items with children stays intact. */
	.main-navigation .primary-menu > li > a {
		padding: .7em .85em;
		font-size: .9375rem;
		line-height: 1.3;
		background-image: linear-gradient(var(--brand), var(--brand));
		background-repeat: no-repeat;
		background-position: .85em calc(100% - .3em);
		background-size: 0 2px;
		transition: color .15s, background-size .2s ease;
	}
	.main-navigation .primary-menu > li:hover > a,
	.main-navigation .primary-menu > li.focus > a,
	.main-navigation .primary-menu > .current-menu-item > a,
	.main-navigation .primary-menu > .current-menu-ancestor > a { background-size: calc(100% - 1.7em) 2px; }

	/* Items with children: room for the parent's arrow */
	.main-navigation .primary-menu > .menu-item-has-children > a { padding-right: 1.9em; }
	.main-navigation .primary-menu > .menu-item-has-children:hover > a,
	.main-navigation .primary-menu > .menu-item-has-children.focus > a,
	.main-navigation .primary-menu > .menu-item-has-children.current-menu-ancestor > a { background-size: calc(100% - 2.75em) 2px; }
	.main-navigation .menu-item-has-children > a:after { right: .55em; color: var(--ink-3); }

	/* Dropdowns */
	.main-navigation ul ul {
		background: var(--surface);
		border: 1px solid var(--line);
		border-radius: var(--radius);
		box-shadow: var(--shadow-lg);
		padding: 6px;
		min-width: 16em;
	}
	.main-navigation ul ul:before,
	.main-navigation ul ul:after { display: none; }
	.main-navigation ul ul li { border: 0; }
	.main-navigation ul ul li:last-child { border: 0; }
	.main-navigation ul ul a {
		white-space: normal;
		width: auto;
		padding: .6em .9em;
		font-size: .875rem;
		border-radius: var(--radius-sm);
	}
	.main-navigation ul ul a:hover,
	.main-navigation ul ul li.focus > a { background: var(--brand-soft); }
	.main-navigation ul ul .menu-item-has-children > a:after { right: .6em; }
	.main-navigation ul ul ul { top: -7px; }

	.main-navigation li:hover > ul,
	.main-navigation li.focus > ul { left: 0; right: auto; }
	.main-navigation ul ul li:hover > ul,
	.main-navigation ul ul li.focus > ul { left: 100%; right: auto; }

	/* Last item: open dropdown towards the left */
	.main-navigation .primary-menu > li:nth-last-child(-n+2):hover > ul,
	.main-navigation .primary-menu > li:nth-last-child(-n+2).focus > ul { left: auto; right: 0; }

	.social-navigation { margin-left: 8px; }
}

/* Narrow desktops (910–1200px): compact menu so it stays on one line next to the logo */
@media screen and (min-width: 56.875em) and (max-width: 75em) {
	.site-header-main { flex-wrap: nowrap; }
	.site-branding { flex: none; }
	.site-branding .custom-logo { max-height: 52px; }
	.main-navigation .primary-menu { flex-wrap: nowrap; }
	.main-navigation .primary-menu > li > a { font-size: .875rem; padding-left: .55em; padding-right: .55em; background-position: .55em calc(100% - .3em); }
	.main-navigation .primary-menu > li:hover > a,
	.main-navigation .primary-menu > li.focus > a,
	.main-navigation .primary-menu > .current-menu-item > a,
	.main-navigation .primary-menu > .current-menu-ancestor > a { background-size: calc(100% - 1.1em) 2px; }
	.main-navigation .primary-menu > .menu-item-has-children > a { padding-right: 1.6em; }
	.main-navigation .primary-menu > .menu-item-has-children:hover > a,
	.main-navigation .primary-menu > .menu-item-has-children.focus > a,
	.main-navigation .primary-menu > .menu-item-has-children.current-menu-ancestor > a { background-size: calc(100% - 2.15em) 2px; }
	.main-navigation .menu-item-has-children > a:after { right: .35em; }
}

/* Social icons */
.social-navigation a {
	color: var(--ink-2);
	border-radius: 999px;
	transition: color .15s, background-color .15s;
}
.social-navigation a:hover,
.social-navigation a:focus { color: var(--brand); background: var(--brand-soft); }

/* ==========================================================================
   4. Layout
   ========================================================================== */

.site-content { padding: 28px var(--gutter) 48px; }

@media screen and (min-width: 56.875em) {
	.site-content { padding-top: 40px; padding-bottom: 72px; }

	.content-area { width: 70%; }
	.sidebar { margin-left: 73%; width: 27%; }
}

@media screen and (min-width: 61.5625em) {
	.content-area { width: 71%; }
	.sidebar { margin-left: 74%; width: 26%; }
}

/* Article cards */
.site-main > article,
.site-main > .page-header,
.site-main > .no-results,
.site-main > .error-404,
.comments-area {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	padding: 24px 20px;
	margin-bottom: 24px;
}
@media screen and (min-width: 44.375em) {
	.site-main > article,
	.site-main > .page-header,
	.site-main > .no-results,
	.site-main > .error-404,
	.comments-area { padding: 36px 40px; }
}

/* Twenty Sixteen indents everything inside articles: reset that */
.site-main > article > *,
.entry-header,
.entry-summary,
.entry-content,
.entry-footer,
.page-header,
.page-content,
.post-thumbnail,
.comments-area,
.post-navigation,
.pagination,
.image-navigation,
.comment-navigation,
.content-bottom-widgets,
body:not(.search-results) .entry-summary {
	margin-left: 0;
	margin-right: 0;
}
.site-main > article > :last-child { margin-bottom: 0; }

.entry-header { margin-bottom: 1.25em; }
.entry-title {
	font-size: var(--fs-h1);
	line-height: 1.2;
	margin-bottom: 0;
}
.entry-title a { box-shadow: none; color: var(--ink); }
.entry-title a:hover { color: var(--brand); }

.entry-content,
.entry-summary { font-size: 1rem; line-height: 1.7; color: var(--ink); }
.entry-content p,
.entry-content ul,
.entry-content ol { color: var(--ink); }
@media screen and (min-width: 61.5625em) {
	.entry-content,
	.entry-summary { font-size: 1.0625rem; }
}

.entry-footer,
.entry-meta,
.posted-on,
.byline,
.cat-links { color: var(--ink-3); font-family: var(--font-body); font-size: .8125rem; }
.entry-footer a { color: var(--ink-2); box-shadow: none; }
.entry-footer a:hover { color: var(--brand); }

.post-thumbnail img { border-radius: var(--radius); }

.page-header { border-top: 0; padding-top: 24px; }
.page-title { font-size: var(--fs-h2); }

hr { background: var(--line); }

blockquote {
	border-left: 4px solid var(--brand);
	background: var(--brand-soft);
	border-radius: 0 var(--radius) var(--radius) 0;
	padding: 1em 1.25em;
	color: var(--ink-2);
}

/* Pagination / post navigation */
.pagination,
.post-navigation { border: 0; }
.pagination:before,
.pagination:after { display: none; }
.pagination .page-numbers,
.pagination .prev,
.pagination .next { border-radius: 999px; }
.pagination .prev,
.pagination .next { background: var(--brand); }
.post-navigation {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	overflow: hidden;
}
.post-navigation div + div { border-top: 1px solid var(--line); }

/* ==========================================================================
   5. Tables (generic + TablePress + legacy .cssfetliceu)
   ========================================================================== */

.entry-content table,
.tablepress {
	border: 1px solid var(--line);
	border-collapse: separate;
	border-spacing: 0;
	border-radius: var(--radius);
	overflow: hidden;
	font-size: .9375rem;
	width: 100%;
}
.entry-content th,
.entry-content td,
.tablepress th,
.tablepress td {
	border: 0;
	border-bottom: 1px solid var(--line);
	padding: .65em .9em;
	text-align: left;
	vertical-align: top;
}
.entry-content tr:last-child td,
.tablepress tbody tr:last-child td { border-bottom: 0; }
.entry-content thead th,
.tablepress thead th,
.tablepress tfoot th {
	background: var(--brand);
	color: #fff;
	font-weight: 600;
}
.tablepress .odd td { background: #faf9f8; }
.tablepress .even td { background: var(--surface); }
.tablepress .row-hover tr:hover td { background: var(--brand-soft); }

/* Wide tables scroll horizontally on small screens */
@media screen and (max-width: 56.875em) {
	.entry-content table,
	.tablepress {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}

/* Legacy "taules FET" styles (from the old Customizer CSS) */
.cssfetliceu { margin: 0; padding: 0; width: 100%; }
.cssfetliceu table { width: 100%; height: 100%; margin: 0; padding: 0; }
.cssfetliceu td {
	vertical-align: middle;
	font-size: .75rem;
	color: var(--ink);
	padding: 7px;
}
.cssfetliceu .xAxis,
.cssfetliceu .yAxis,
.cssfetliceu table thead tr td,
.cssfetliceu table thead tr th { background-color: var(--brand); color: #fff; }
.cssfetliceu table caption,
.cssfetliceu .foot { display: none; }
.yAxis { height: 90px; }
.fwdth { width: 100%; }

/* Legacy front-page tiles (.estudi) */
.section_wrap { box-sizing: border-box; display: flex; flex-wrap: wrap; gap: 16px; }
.estudi {
	flex: 1 1 260px;
	min-height: 220px;
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	background-size: cover !important;
}
.estudi_overlay {
	position: absolute;
	inset: 0;
	padding: 30px 20px 20px;
	background: linear-gradient(180deg, rgba(183, 87, 87, .55), rgba(53, 57, 63, .7));
	cursor: pointer;
	transition: background-color .2s;
}
.estudi_overlay:hover { background: rgba(29, 33, 39, .7); }
.estudi_overlay h2,
.estudi_overlay p { color: #fff !important; }

/* ==========================================================================
   6. Sidebar & widgets
   ========================================================================== */

.widget {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	padding: 22px 22px 18px;
	margin-bottom: 20px;
	font-size: .9375rem;
	line-height: 1.6;
}
.widget .widget-title {
	font-family: var(--font-body);
	font-size: var(--fs-small);
	font-weight: 600;
	text-transform: none;
	letter-spacing: .01em;
	line-height: 1.4;
	color: var(--brand);
	margin-bottom: .9em;
}
.widget p:last-child,
.widget .textwidget > :last-child { margin-bottom: 0; }
.widget img { border-radius: var(--radius-sm); }
.widget_media_image img { display: block; margin: 0 auto; max-width: 180px !important; }

/* Programme menus (Custom Sidebars) and other list widgets */
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { border: 0; padding: 0; margin: 0; }
.widget_nav_menu li a,
.widget_pages li a,
.widget_recent_entries li a,
.widget_categories li a,
.widget_archive li a {
	display: block;
	padding: .55em .75em;
	margin: 0 -.75em;
	border-radius: var(--radius-sm);
	color: var(--ink);
	box-shadow: none;
	transition: background-color .15s, color .15s;
}
.widget_nav_menu li a:hover,
.widget_nav_menu li a:focus,
.widget_pages li a:hover,
.widget_recent_entries li a:hover,
.widget_categories li a:hover,
.widget_archive li a:hover { background: var(--brand-soft); color: var(--brand); }
.widget_nav_menu .current-menu-item > a,
.widget_nav_menu .current_page_item > a {
	background: var(--brand);
	color: #fff;
	font-weight: 600;
}
.widget_nav_menu .sub-menu { margin: 2px 0 4px .75em; padding-left: .5em; border-left: 2px solid var(--line); }
.widget_nav_menu .sub-menu a { font-size: .875rem; }

/* Content-bottom widgets (below page content) */
.content-bottom-widgets .widget-area { margin-bottom: 0; }

/* ==========================================================================
   7. Front page
   ========================================================================== */

.liceu-hero {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius-lg);
	padding: clamp(32px, 5vw, 72px) clamp(20px, 5vw, 64px);
	margin-bottom: 40px;
	color: #fff;
	background:
		radial-gradient(1200px 400px at 110% -20%, rgba(255, 255, 255, .22), transparent 60%),
		radial-gradient(600px 300px at -10% 120%, rgba(0, 0, 0, .12), transparent 60%),
		linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
	box-shadow: var(--shadow);
}
.liceu-hero__text { max-width: 720px; position: relative; }
.liceu-hero__eyebrow {
	margin: 0 0 .75em;
	font-size: .8125rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	opacity: .85;
}
.liceu-hero__title {
	color: #fff;
	font-size: var(--fs-display);
	font-weight: 750;
	letter-spacing: -.025em;
	line-height: 1.08;
	margin: 0 0 .35em;
}
.liceu-hero__lead {
	font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem);
	line-height: 1.5;
	margin: 0 0 1.75em;
	opacity: .95;
}
.liceu-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.liceu-btn { text-decoration: none; box-shadow: none; }
.liceu-btn--primary { background: #fff; color: var(--brand); }
.liceu-btn--primary:hover,
.liceu-btn--primary:focus { background: var(--ink); color: #fff; }
.liceu-btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7); }
.liceu-btn--ghost:hover,
.liceu-btn--ghost:focus { background: rgba(255, 255, 255, .15); color: #fff; }

.liceu-programmes { margin-bottom: 48px; scroll-margin-top: 110px; }
.liceu-section-title {
	font-size: var(--fs-h2);
	margin: 0 0 20px;
}
.liceu-cards {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
	gap: 16px;
}
.liceu-card { margin: 0; }
.liceu-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	gap: 8px;
	padding: 22px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	color: var(--ink);
	box-shadow: none;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.liceu-card__link:hover,
.liceu-card__link:focus {
	transform: translateY(-3px);
	box-shadow: var(--shadow-lg);
	border-color: rgba(183, 87, 87, .35);
	color: var(--ink);
}
.liceu-card__level {
	align-self: flex-start;
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--brand);
	background: var(--brand-soft);
	padding: .3em .7em;
	border-radius: 999px;
}
.liceu-card__title {
	font-family: var(--font-head);
	font-size: 1.1875rem;
	font-weight: 700;
	letter-spacing: -.01em;
	line-height: 1.3;
	text-wrap: balance;
}
.liceu-card__more {
	margin-top: auto;
	padding-top: 8px;
	font-size: .875rem;
	font-weight: 600;
	color: var(--brand);
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.liceu-card__link,
	.main-navigation .primary-menu > li > a { transition: none; }
	.liceu-card__link:hover { transform: none; }
}

/* ==========================================================================
   8. Footer
   ========================================================================== */

.site-footer {
	display: block;
	background: var(--footer-bg);
	color: #c9ced6;
	padding: 0;
	font-size: .9375rem;
}
.site-footer a { color: #fff; box-shadow: none; }
.site-footer a:hover,
.site-footer a:focus { color: #f2c9c9; }

.site-footer__inner {
	display: grid;
	gap: 32px;
	padding: 48px var(--gutter) 32px;
}
@media screen and (min-width: 44.375em) {
	.site-footer__inner { grid-template-columns: minmax(220px, 1fr) 2fr; }
}

.site-footer__name {
	font-family: var(--font-head);
	font-size: 1.375rem;
	font-weight: 700;
	letter-spacing: -.015em;
	margin: 0 0 .25em;
}
.site-footer__desc { margin: 0 0 1.25em; color: #9aa1ab; }

.site-footer .social-navigation { margin: 0; }
.site-footer .social-navigation a { color: #c9ced6; }
.site-footer .social-navigation a:hover,
.site-footer .social-navigation a:focus { color: #fff; background: rgba(255, 255, 255, .1); }

.site-footer__widgets {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.site-footer .widget {
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 0;
	margin: 0;
	color: #c9ced6;
}
.site-footer .widget .widget-title { color: #fff; }
.site-footer .widget_nav_menu li a { color: #c9ced6; margin: 0; padding: .3em 0; }
.site-footer .widget_nav_menu li a:hover { background: transparent; color: #fff; }

.site-info {
	border-top: 1px solid rgba(255, 255, 255, .1);
	color: #9aa1ab;
	font-size: .8125rem;
	margin: 0;
	padding: 18px var(--gutter);
	text-align: left;
}
.site-info__inner { display: flex; flex-wrap: wrap; gap: 8px; }
.site-info a { color: #c9ced6; }

/* ==========================================================================
   9. Enhancements
   ========================================================================== */

/* Plain text lines written as <div>s in the classic editor: give them
   paragraph rhythm now that the &nbsp; spacer divs are stripped (functions.php). */
.entry-content > div:not([class]):not([id]) { margin-bottom: .9em; }

/* Bold-only paragraphs promoted to section headings (functions.php adds the class) */
.entry-content .liceu-subhead {
	display: flex;
	align-items: center;
	gap: .6em;
	margin: 2.2em 0 .7em;
	padding-top: 1.2em;
	border-top: 1px solid var(--line);
	font-family: var(--font-head);
	font-size: var(--fs-h3);
	line-height: 1.3;
	letter-spacing: -.005em;
	color: var(--ink);
	text-wrap: balance;
}
.entry-content .liceu-subhead:before {
	content: "";
	flex: none;
	width: 6px;
	height: 1.1em;
	border-radius: 3px;
	background: var(--brand);
}
.entry-content .liceu-subhead strong { font-weight: 700; }
.entry-content > .liceu-subhead:first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

/* Social icons: inline SVG instead of the parent's Genericons font */
.social-navigation a:before { display: none; content: none; }
.social-navigation a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.social-navigation .liceu-icon { display: block; }

/* Back-to-top button */
.liceu-to-top {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 60;
	width: 48px;
	height: 48px;
	padding: 0;
	justify-content: center;
	border-radius: 999px;
	background: var(--brand);
	color: #fff;
	box-shadow: var(--shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity .2s, transform .2s, visibility .2s, background-color .15s;
}
.liceu-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.liceu-to-top:hover,
.liceu-to-top:focus { background: var(--ink); color: #fff; }
@media (prefers-reduced-motion: reduce) {
	.liceu-to-top { transition: none; transform: none; }
}

/* Sticky programme menu (sidebars made of nav-menu widgets, i.e. Custom Sidebars).
   Long menus scroll inside the sidebar instead of being cut off. */
@media screen and (min-width: 56.875em) {
	.sidebar:has(.widget_nav_menu) {
		position: sticky;
		top: calc(var(--header-h, 96px) + 24px);
		max-height: calc(100vh - var(--header-h, 96px) - 48px);
		overflow-y: auto;
		overscroll-behavior: contain;
		scrollbar-width: thin;
		padding: 2px;
	}
	.admin-bar .sidebar:has(.widget_nav_menu) {
		top: calc(var(--header-h, 96px) + 56px);
		max-height: calc(100vh - var(--header-h, 96px) - 80px);
	}
}

/* ==========================================================================
   10. Page-specific (from the old Customizer CSS):
      timetable pages without sidebar
   ========================================================================== */

.page-id-414 #secondary,
.page-id-1027 #secondary,
.page-id-431 #secondary,
.page-id-437 #secondary,
.page-id-390 #secondary { display: none !important; }

.page-id-414 #primary,
.page-id-1027 #primary,
.page-id-431 #primary,
.page-id-437 #primary,
.page-id-390 #primary { width: 100% !important; max-width: 100% !important; margin-right: 0; }
