/*
Theme Name: GreenPlate MOOC
Theme URI: https://mooc.greenplate-alliance.eu/
Description: Theme of the GreenPlate MOOC learning platform (Erasmus+ Alliance for Innovation GreenPlate, project 101333972): GreenPlate colours and logo, Heebo type served from this website, EU bar and disclaimer, Tutor LMS in GreenPlate green. Child theme of Twenty Twenty-Five.
Author: ACCELERAS KG for the GreenPlate consortium
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: greenplate-mooc
*/

:root {
	--gp-ink: #173F25; --gp-dark: #1E5631; --gp-green: #2E7438; --gp-leaf: #4E9A33; --gp-lime: #B4DA6A;
	--gp-cream: #F8F6EE; --gp-pale: #EEF5E6; --gp-muted: #44524A; --gp-line: #D6E2CF; --gp-card-line: #E6E9DF;
	/* Tutor LMS: GreenPlate's font instead of Inter from Google */
	--tutor-font-family-body: Heebo, "Segoe UI", system-ui, sans-serif;
	--tutor-font-family-heading: Heebo, "Segoe UI", system-ui, sans-serif;
}
html { scroll-padding-top: 24px; }
body { -webkit-font-smoothing: antialiased; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
a { text-underline-offset: 2px; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid #8CC63F; outline-offset: 2px; }
::selection { background: var(--gp-lime); color: var(--gp-ink); }

/* ---------- header: EU bar + logo, menu and login ---------- */
.gp-eubar { background: var(--gp-ink); color: #fff; font-size: 13px; line-height: 1.3; padding-block: 6px; }
.gp-eubar-in { display: flex; align-items: center; gap: 14px; min-height: 22px; }
.gp-eubar .gp-eu { height: 22px; width: auto; display: block; }
.gp-eubar-txt { opacity: .9; }
.gp-eubar-link { margin-left: auto; color: #fff !important; text-decoration: none; opacity: .9; white-space: nowrap; }
.gp-eubar-link:hover { opacity: 1; text-decoration: underline; }
.gp-header { background: #fff; border-bottom: 1px solid var(--gp-card-line); padding-block: 12px; position: relative; z-index: 20; }
.gp-header-in { gap: 24px; }
.gp-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.gp-logo img { height: 46px; width: auto; display: block; }
.gp-logo-tag { font-size: 12px; font-weight: 600; color: var(--gp-dark); background: var(--gp-pale); border: 1px solid var(--gp-line); border-radius: 999px; padding: 3px 9px; line-height: 1.2; }
.gp-header-nav { gap: 22px; }
.gp-header .wp-block-navigation { gap: 6px; }
.gp-header .wp-block-navigation .wp-block-navigation-item__content { color: var(--gp-ink); text-decoration: none; padding: 8px 10px; border-radius: 4px; transition: background .2s, color .2s; }
.gp-header .wp-block-navigation .wp-block-navigation-item__content:hover { background: var(--gp-pale); color: var(--gp-dark); }
.gp-header .wp-block-navigation__responsive-container.is-menu-open { padding: 28px 22px; }
.gp-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 20px; padding: 10px 0; }
.gp-login { gap: 8px; flex: none; }
.gp-login .wp-block-button__link { padding: 9px 18px; }
.gp-when-in { display: none !important; }
body.logged-in .gp-when-in { display: block !important; }
body.logged-in .gp-when-out { display: none !important; }

/* ---------- headings, highlighter, small text ---------- */
mark.gp-hl, .gp-hl { position: relative; isolation: isolate; background: none; color: inherit; white-space: nowrap; padding: 0; }
mark.gp-hl::before { content: ""; position: absolute; z-index: -1; left: -0.14em; right: -0.1em; top: 0.42em; height: 0.62em; border-radius: 999px; background: var(--gp-lime); }
.gp-eyebrow { font-size: 17px; font-weight: 600; color: var(--gp-ink); margin-bottom: 0; }
.gp-lead { font-size: 1.1875rem; line-height: 1.65; color: var(--gp-muted); }
.gp-intro { color: var(--gp-muted); max-width: 720px; margin-inline: auto !important; }
.gp-note { font-size: 15px; color: var(--gp-muted); }
.gp-more a, a.gp-more { font-weight: 500; color: var(--gp-dark); text-decoration: none; }
.gp-more a::after, a.gp-more::after { content: " »"; }
.gp-more a:hover { text-decoration: underline; }

/* Buttons with » (as on greenplate-alliance.eu) */
.wp-block-button.gp-go .wp-block-button__link::after { content: "»" / ""; font-size: 1.15em; line-height: 1; margin-left: 7px; }
.wp-block-button.gp-light .wp-block-button__link { background: #fff; border-color: #fff; color: var(--gp-dark); }
.wp-block-button.gp-light .wp-block-button__link:hover { background: var(--gp-lime); border-color: var(--gp-lime); color: var(--gp-ink); }

/* Lists with ticks, numbers in green circles */
.gp-ticks { list-style: none; padding-left: 0; display: grid; gap: 10px; }
.gp-ticks li { position: relative; padding-left: 32px; }
.gp-ticks li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 20px; height: 20px; background: url("assets/img/tick.svg") center / contain no-repeat; }
.gp-steps, .gp-modules { list-style: none; padding-left: 0; counter-reset: gp; display: grid; gap: 18px; }
.gp-steps li, .gp-modules li { counter-increment: gp; position: relative; padding-left: 56px; min-height: 38px; color: var(--gp-muted); }
.gp-steps li::before, .gp-modules li::before {
	content: counter(gp); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%;
	display: grid; place-items: center; background: linear-gradient(135deg, #4E9A33, #2E7438 60%, #1E5631); color: #fff; font-weight: 700; font-size: 14px;
}
.gp-steps li strong, .gp-modules li strong { display: block; color: var(--gp-ink); font-weight: 600; font-size: 1.0625rem; margin-bottom: 2px; }

/* ---------- home page sections ---------- */
.gp-home.is-layout-constrained > .alignfull, .gp-home > .alignfull { margin-block: 0 !important; }
.gp-sec { padding-block: 88px; }
.gp-sec > h2 { margin-bottom: 0; }
.gp-sec .gp-intro { margin-top: 14px; }

/* Hero: cream, contour lines, photo in an arched frame */
.gp-hero { background: var(--gp-cream) url("assets/img/contour-lines.svg") left -60px bottom -40px / 640px auto no-repeat; padding-block: 72px 96px; }
.gp-hero h1 { margin-top: 14px; max-width: 14em; }
.gp-hero-cols { gap: 56px; }
.gp-hero-btns { margin-top: 30px; gap: 12px; }
.gp-facts { list-style: none; padding: 0; margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; color: var(--gp-muted); }
.gp-facts li { position: relative; padding-left: 26px; }
.gp-facts li::before { content: ""; position: absolute; left: 0; top: 0.15em; width: 18px; height: 18px; background: url("assets/img/tick.svg") center / contain no-repeat; }
.gp-arch { position: relative; margin: 0 0 0 auto !important; width: min(100%, 460px); padding: 22px 0 0 22px; }
.gp-arch::before { content: ""; position: absolute; left: 0; top: 0; right: 22px; bottom: 22px; border: 10px solid #CFE6B0; border-radius: 999px 999px 30px 30px; }
.gp-arch::after { content: ""; position: absolute; z-index: 2; left: 4px; top: 30%; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 8px solid var(--gp-green); box-sizing: border-box; }
.gp-arch img { position: relative; z-index: 1; display: block; width: 100%; height: auto; aspect-ratio: 910 / 1040; object-fit: cover; border-radius: 999px 999px 24px 24px; box-shadow: 0 24px 60px rgba(23, 63, 37, .18); }

/* Courses: three cards */
.gp-courses { background: #fff; }
.gp-cards { margin-top: 48px !important; gap: 24px; }
.gp-card { background: #fff; border: 1px solid var(--gp-card-line); border-radius: 14px; padding: 30px 28px 26px; box-shadow: 0 8px 26px rgba(23, 63, 37, .06); display: flex; flex-direction: column; gap: 14px; transition: transform .25s, box-shadow .25s; }
.gp-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(23, 63, 37, .1); }
.gp-card > * { margin: 0 !important; }
.gp-card::before { content: ""; width: 64px; height: 64px; border-radius: 50%; background: var(--gp-pale) url("assets/img/level-1.svg") center / 40px no-repeat; }
.gp-card-2::before { background-image: url("assets/img/level-2.svg"); }
.gp-card-3::before { background-image: url("assets/img/level-3.svg"); }
.gp-card h3 { font-size: 1.375rem; }
.gp-card p { color: var(--gp-muted); font-size: 16px; }
.gp-card .gp-ticks { font-size: 15px; gap: 8px; padding-top: 14px; border-top: 1px solid var(--gp-card-line); }
.gp-card .gp-ticks li { color: var(--gp-ink); }
.gp-badge { display: inline-block; align-self: flex-start; font-size: 13px !important; font-weight: 600; color: var(--gp-dark) !important; background: var(--gp-pale); border-radius: 999px; padding: 4px 12px; }
.gp-card .gp-more { margin-top: auto !important; padding-top: 4px; }

/* How it works: cream with a leaf sprig */
.gp-how { background: var(--gp-cream) url("assets/img/leaf-sprig.svg") right -40px bottom -30px / 260px auto no-repeat; }
.gp-how-cols { gap: 64px; }
.gp-steps { margin-top: 28px; gap: 22px; }
.gp-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; box-shadow: 0 24px 60px rgba(23, 63, 37, .16); }
.gp-photo { position: relative; margin: 0 !important; }
.gp-photo::before { content: ""; position: absolute; left: -18px; top: 28px; bottom: 28px; width: 6px; border-radius: 6px; background: var(--gp-leaf); }

/* Figures band over a darkened kitchen photo */
.gp-band { background: linear-gradient(rgba(23, 63, 37, .86), rgba(23, 63, 37, .86)), url("assets/img/kitchen-band.jpg") center / cover no-repeat; color: #fff; padding-block: 72px; }
.gp-counters { gap: 24px; text-align: center; }
.gp-counters .wp-block-column { position: relative; }
.gp-counters .wp-block-column + .wp-block-column::before { content: ""; position: absolute; left: -12px; top: 12%; bottom: 12%; border-left: 1px solid rgba(255, 255, 255, .22); }
.gp-num { font-size: clamp(44px, 4.5vw, 60px); font-weight: 600; line-height: 1; color: var(--gp-lime); margin: 0 !important; }
.gp-numlabel { margin-top: 12px !important; font-size: 16px; color: rgba(255, 255, 255, .9); max-width: 15em; margin-inline: auto !important; }

/* What you will learn: 10 modules in two columns */
.gp-learn-cols { gap: 64px; }
.gp-modules { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 32px; font-size: 15px; line-height: 1.55; }

/* Certificate: pale green with a certificate card */
.gp-cert { background: var(--gp-pale); }
.gp-cert-cols { gap: 64px; }
.gp-cert .gp-ticks { margin-top: 22px; }
.gp-certcard { position: relative; background: #fff; border: 1px solid var(--gp-line); border-radius: 18px; padding: 40px 32px 34px; text-align: center; box-shadow: 0 24px 60px rgba(23, 63, 37, .12); max-width: 420px; margin-inline: auto; overflow: hidden; }
.gp-certcard::before { content: ""; position: absolute; inset: 10px; border: 2px dashed #CFE6B0; border-radius: 12px; pointer-events: none; }
.gp-certcard > * { position: relative; margin-block: 0 !important; }
.gp-cert-emblem { width: 110px; margin: 0 auto 14px !important; }
.gp-cert-emblem img { width: 110px; height: 110px; display: block; }
.gp-cert-title { font-size: 1.5rem; font-weight: 600; color: var(--gp-ink); }
.gp-cert-sub { font-size: 15px; color: var(--gp-muted); margin-top: 4px !important; }
.gp-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px !important; }
.gp-chips li { font-size: 13px; font-weight: 600; color: #fff; background: var(--gp-green); border-radius: 999px; padding: 5px 12px; }

/* When can I start? Road map */
.gp-roadmap { margin-top: 48px !important; gap: 20px; counter-reset: none; }
.gp-roadmap .wp-block-column { position: relative; background: #fff; border: 1px solid var(--gp-card-line); border-radius: 14px; padding: 26px 22px 22px; }
.gp-roadmap .wp-block-column > * { margin-block: 0 !important; }
.gp-roadmap .wp-block-column > * + * { margin-top: 8px !important; }
.gp-roadmap h3 { font-size: 1.125rem; }
.gp-roadmap p { font-size: 15px; color: var(--gp-muted); }
.gp-when { font-size: 13px !important; font-weight: 700; color: var(--gp-green) !important; text-transform: uppercase; letter-spacing: .04em; }
.gp-roadmap .is-next { background: var(--gp-dark); border-color: var(--gp-dark); }
.gp-roadmap .is-next h3, .gp-roadmap .is-next p { color: #fff; }
.gp-roadmap .is-next .gp-when { color: var(--gp-lime) !important; }

/* Questions: cards that open */
.gp-faq { background: var(--gp-cream); }
.gp-faq > h2 { margin-bottom: 36px !important; }
.wp-block-details { border: 1px solid var(--gp-card-line); border-radius: 10px; background: #fff; margin-block: 0 12px !important; padding: 0; overflow: hidden; }
.wp-block-details summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; padding: 12px 18px 12px 22px; font-size: 18px; font-weight: 600; color: var(--gp-ink); cursor: pointer; list-style: none; transition: background .2s, color .2s; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--gp-pale); color: var(--gp-green); font-size: 22px; font-weight: 500; line-height: 1; }
.wp-block-details[open] summary { background: var(--gp-green); color: #fff; }
.wp-block-details[open] summary::after { content: "−"; background: #fff; color: var(--gp-green); }
.wp-block-details summary:focus-visible { outline: 3px solid #8CC63F; outline-offset: -3px; }
.wp-block-details > :not(summary) { padding: 16px 22px 0; margin: 0 !important; color: var(--gp-muted); }
.wp-block-details > :last-child:not(summary) { padding-bottom: 20px; }

/* Call to action */
.gp-cta-wrap { background: #fff; padding-block: 88px; }
.gp-cta { background: var(--gp-dark) url("assets/img/leaf-sprig-dark.svg") right -20px bottom -40px / 220px auto no-repeat; color: #fff; border-radius: 16px; padding: 48px 56px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 40px; align-items: center; }
.gp-cta > * { margin: 0 !important; }
.gp-cta h2 { color: #fff; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); grid-column: 1; }
.gp-cta p { color: rgba(255, 255, 255, .88); grid-column: 1; }
.gp-cta .wp-block-buttons { grid-column: 2; grid-row: 1 / span 2; }

/* ---------- inner pages (privacy policy and others) ---------- */
.gp-pagehead { background: var(--gp-cream) url("assets/img/contour-lines.svg") right -120px top -60px / 560px auto no-repeat; padding-block: 56px 48px; border-bottom: 1px solid var(--gp-card-line); }
.gp-pagehead > * { margin-block: 0 !important; }
.gp-pagehead h1 { margin-top: 10px !important; font-size: clamp(2rem, 1.5rem + 2vw, 2.9rem); }
.gp-crumb { font-size: 15px; font-weight: 500; }
.gp-crumb a { color: var(--gp-dark); text-decoration: none; }
.gp-crumb a::after { content: "  /"; color: var(--gp-muted); }
.gp-page { padding-block: 48px 88px; }
.gp-prose h2 { margin-top: 2.4em !important; font-size: clamp(1.5rem, 1.25rem + 1vw, 1.9rem); scroll-margin-top: 24px; }
.gp-prose h3 { margin-top: 1.8em !important; font-size: 1.1875rem; }
.gp-prose p, .gp-prose li { color: #2E3B33; }
.gp-prose .gp-lead { color: var(--gp-muted); }
.gp-prose code { font-size: .88em; background: var(--gp-pale); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.gp-dl { list-style: none; padding: 0; border-top: 1px solid var(--gp-card-line); }
.gp-dl li { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--gp-card-line); margin: 0 !important; }
.gp-dl li strong { color: var(--gp-ink); font-weight: 600; }

/* ---------- footer ---------- */
.gp-footer { background: var(--gp-dark); color: rgba(255, 255, 255, .9); padding-block: 64px 28px; font-size: 15px; }
.gp-footer a { color: #fff; text-decoration: none; }
.gp-footer a:hover { text-decoration: underline; }
.gp-foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.gp-foot-logo img { height: 50px; width: auto; display: block; }
.gp-foot-brand p { margin: 18px 0 0; line-height: 1.65; max-width: 30em; }
.gp-foot-brand .gp-cc { font-size: 13px; opacity: .85; }
.gp-foot-brand .gp-cc a { text-decoration: underline; }
.gp-foot-h { color: #fff; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin: 6px 0 16px; opacity: .8; }
.gp-foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.gp-foot-col p { margin: 0 0 12px; line-height: 1.6; }
.gp-eubox { box-sizing: border-box; margin-top: 48px; background: #fff; color: var(--gp-muted); border-radius: 14px; padding: 24px 28px; display: flex; align-items: center; gap: 28px; font-size: 13px; line-height: 1.55; }
.gp-eubox img { width: 180px; height: auto; flex: none; }
.gp-eubox p { margin: 0; }
.gp-eubox .gp-small { margin-top: 6px; }
.gp-foot-bottom { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 13px; opacity: .9; }
.gp-foot-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* ---------- Tutor LMS in GreenPlate style ---------- */
@media (min-width: 1200px) { .tutor-container { max-width: 1224px; } }
.course-archive-page { padding-top: 40px; padding-bottom: 72px; }
.tutor-wrap, .tutor-course-details-page, .tutor-dashboard, .tutor-page-wrap { font-family: var(--tutor-font-family-body); }
.tutor-course-details-page { padding-top: 40px; padding-bottom: 72px; }
.tutor-course-details-title, .tutor-course-details-page h1 { font-weight: 600 !important; color: var(--gp-ink); }
.tutor-btn-primary, .tutor-btn.tutor-btn-primary { border-radius: 4px; }
.tutor-card, .tutor-course-card { border-radius: 14px; }
.tutor-accordion-item-header { color: var(--gp-ink); }

/* ---------- smaller screens ---------- */
@media (max-width: 1080px) {
	.gp-foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.gp-foot-brand { grid-column: 1 / -1; }
	.gp-modules { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
	.gp-eubar-txt { display: none; }
	.gp-sec { padding-block: 64px; }
	.gp-hero { padding-block: 48px 72px; background-size: 480px auto; }
	.gp-arch { margin: 8px auto 0 !important; width: min(100%, 400px); }
	.gp-cta { grid-template-columns: minmax(0, 1fr); padding: 36px 28px; }
	.gp-cta .wp-block-buttons { grid-column: 1; grid-row: auto; margin-top: 12px !important; }
	.gp-roadmap { flex-wrap: wrap !important; }
	.gp-roadmap .wp-block-column { flex-basis: calc(50% - 10px) !important; }
	.gp-photo::before { display: none; }
}
@media (max-width: 781px) {
	.gp-counters .wp-block-column + .wp-block-column::before { display: none; }
	.gp-counters { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 16px; }
	.gp-roadmap .wp-block-column { flex-basis: 100% !important; }
	.gp-dl li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@media (max-width: 640px) {
	.gp-logo img { height: 38px; }
	.gp-logo-tag { display: none; }
	.gp-header-in { gap: 10px; }
	.gp-header-nav { gap: 6px; }
	.gp-login .wp-block-button__link { padding: 8px 14px; font-size: 14px; }
	.gp-eyebrow { font-size: 15px; }
	.gp-lead { font-size: 1.0625rem; }
	.gp-hero h1 { font-size: 2.15rem; }
	.gp-arch { width: min(100%, 320px); padding: 16px 0 0 16px; }
	.gp-arch::before { right: 16px; bottom: 16px; border-width: 8px; }
	.gp-arch::after { width: 36px; height: 36px; border-width: 7px; }
	.gp-card { padding: 26px 22px 22px; }
	.gp-foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 20px; }
	.gp-foot-col:last-child { grid-column: 1 / -1; }
	.gp-eubox { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px; }
	.wp-block-details summary { font-size: 16px; padding-left: 16px; }
	mark.gp-hl { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
	.gp-card, .wp-block-details summary, .gp-header .wp-block-navigation .wp-block-navigation-item__content { transition: none; }
	.gp-card:hover { transform: none; }
}
