/* Approach Education: matte green theme, layout modelled on academic-asia.com's directory
   (docs/features/pages.md). Swap the colour tokens when the client sends brand colours (Q8). */
/* ponytail: plain CSS for the draft; move to the Tailwind CLI (decisions/003-stack.md) when pages multiply. */

/* Self-hosted fonts (SIL Open Font License, see static/fonts/OFL-*.txt).
   latin-ext carries the Turkish letters ğ, ı, İ and ş. */
@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-display: swap; src: url("../fonts/cormorant-garamond-latin-400-normal.ad42ff0a48cd.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-display: swap; src: url("../fonts/cormorant-garamond-latin-ext-400-normal.cf54620e3006.woff2") format("woff2"); unicode-range: U+0100-02AF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/cormorant-garamond-latin-400-italic.e5a45d53c371.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Cormorant Garamond"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/cormorant-garamond-latin-ext-400-italic.5e5315979683.woff2") format("woff2"); unicode-range: U+0100-02AF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-normal.edfa21ab8b94.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-ext-500-normal.7ba973c61ce4.woff2") format("woff2"); unicode-range: U+0100-02AF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
/* Light weight for the home stats only, so digits and + (latin) are enough. */
@font-face { font-family: "Poppins"; font-weight: 300; font-display: swap; src: url("../fonts/poppins-latin-300-normal.8d91ec1ca2d8.woff2") format("woff2"); unicode-range: U+0000-00FF; }
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("../fonts/poppins-latin-400-normal.9212f6f9860f.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("../fonts/poppins-latin-ext-400-normal.aa42a9a3d4fc.woff2") format("woff2"); unicode-range: U+0100-02AF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("../fonts/poppins-latin-500-normal.a09f2fccfee3.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("../fonts/poppins-latin-ext-500-normal.89f0a93e3f00.woff2") format("woff2"); unicode-range: U+0100-02AF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }

:root {
    --green: #3f5e4a;
    --green-dark: #2e4537;
    --green-tint: #eef2ee;
    --line: #2e4537;
    --bg: #fff;
    --accent: #b8964a;
    --text: #1f2a23;
    --muted: #5b6660;
    --white: #fff;
    --serif: "Cormorant Garamond", Georgia, serif;
    --sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 .95rem/1.65 var(--sans); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; color: var(--green-dark); }
a { color: var(--green); }
img { max-width: 100%; height: auto; }
.container { max-width: 1320px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 860px) { .container { padding: 0 40px; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Header: dark green bar, wordmark left, menu right */
.site-header { background: var(--green-dark); color: var(--white); position: sticky; top: 0; z-index: 10; }
.site-header a { color: var(--white); text-decoration: none; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 86px; }
.brand { font: 400 1.6rem/1 var(--serif); letter-spacing: .06em; text-transform: uppercase; margin: 0; white-space: nowrap; }
.site-header__menu { display: flex; align-items: center; gap: 28px; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: .9rem; }
.site-nav a[aria-current] { box-shadow: inset 0 -1px 0 var(--accent); }
.site-nav__group { position: relative; }
.site-nav__group summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
.site-nav__group summary::-webkit-details-marker { display: none; }
.site-nav__group summary::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.site-nav__group[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.site-nav__dropdown { position: absolute; top: calc(100% + 18px); left: -16px; min-width: 240px; display: flex; flex-direction: column; background: var(--white); padding: 8px 0; box-shadow: 0 12px 32px rgb(0 0 0 / .14); }
.site-header .site-nav__dropdown a { color: var(--text); padding: 9px 16px; }
.site-header .site-nav__dropdown a:hover { background: var(--green-tint); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 18px; border-radius: 999px; background: var(--accent); color: var(--white); font-size: .9rem; text-decoration: none; white-space: nowrap; }
.pill:hover { filter: brightness(.94); }
.pill--outline { background: none; color: var(--green-dark); border: 1px solid var(--green-dark); padding: 2px 12px; font-size: .85rem; }
.lang-switch { display: flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 500; }
.lang-switch a { opacity: .6; }
.lang-switch a[aria-current] { opacity: 1; }
.nav-toggle { background: none; border: 0; color: var(--white); font-size: 1.6rem; cursor: pointer; padding: 4px 8px; }

@media (max-width: 1099px) {
    .site-header__inner { flex-wrap: wrap; min-height: 68px; }
    .brand { font-size: 1.3rem; }
    .site-header__menu { flex-basis: 100%; flex-direction: column; align-items: flex-start; gap: 16px; padding-bottom: 20px; }
    .site-nav { flex-direction: column; align-items: flex-start; gap: 12px; font-size: 1rem; }
    .site-nav__dropdown { position: static; box-shadow: none; background: none; padding: 8px 0 0 12px; }
    .site-header .site-nav__dropdown a { color: var(--white); padding: 4px 0; opacity: .85; }
    .js .site-header__menu:not(.is-open) { display: none; } /* approach.js adds .js and the toggle */
}
@media (min-width: 1100px) { .nav-toggle { display: none; } }

/* Page intro: italic kicker, large serif title */
.intro { padding-top: 56px; padding-bottom: 40px; }
hgroup { margin: 0; }
.kicker { font: italic 400 clamp(1.4rem, 2.5vw, 2.1rem)/1.2 var(--serif); color: var(--green-dark); margin: 0 0 20px; }
.display { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 400; margin: 0 0 12px; }
.intro__text { max-width: 600px; font-size: 1rem; }
.intro__text p { margin: 0; }
.back-link { text-decoration: none; font-size: .85rem; }

/* Buttons */
.button { display: inline-block; padding: 10px 26px; border: 0; border-radius: 999px; background: var(--green); color: var(--white); font: 500 .9rem var(--sans); text-decoration: none; cursor: pointer; }
.button:hover { background: var(--green-dark); }
.button--light { background: var(--white); color: var(--green-dark); }
.button--light:hover { background: var(--green-tint); }

/* School directory */
.directory__toolbar { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.search, .sort select { display: flex; align-items: center; height: 34px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.search { max-width: 208px; padding: 0 8px 0 20px; flex: 1 1 208px; }
.search input { border: 0; outline: 0; flex: 1; min-width: 0; font: inherit; font-size: .85rem; background: none; }
.search button { border: 0; background: none; color: var(--text); cursor: pointer; display: grid; padding: 0; }
.sort select { padding: 0 16px; font: inherit; font-size: .85rem; color: var(--text); min-width: 150px; cursor: pointer; }
@media (max-width: 859px) { .directory__toolbar { flex-wrap: nowrap; gap: 12px; } .search { max-width: none; } .sort select { min-width: 0; } }
.directory__body { display: grid; gap: 32px; padding-top: 20px; }
@media (min-width: 860px) { .directory__body { grid-template-columns: 300px 1fr; gap: 0; } }

.filters__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.filters__head h2 { font-size: 2.2rem; font-weight: 400; margin: 0; }
.filter-group summary { display: flex; justify-content: space-between; align-items: center; padding: 22px 0 14px; border-bottom: 1px solid var(--line); cursor: pointer; list-style: none; font: 400 1.5rem var(--serif); color: var(--green-dark); }
.filter-group summary::-webkit-details-marker { display: none; }
.filter-group summary::after { content: ""; width: 11px; height: 11px; border: solid var(--green-dark); border-width: 1.5px 0 0 1.5px; transform: translateY(3px) rotate(45deg); margin-right: 6px; }
.filter-group:not([open]) summary::after { transform: translateY(-3px) rotate(225deg); }
.filter-group__options { padding: 16px 0 8px; }
.filter-group label { display: flex; align-items: center; gap: 12px; padding: 4px 0; cursor: pointer; }
.filter-group input { appearance: none; width: 18px; height: 18px; margin: 0 0 0 2px; border: 1px solid #b9c1bb; border-radius: 2px; display: grid; place-items: center; cursor: pointer; flex: none; }
.filter-group input:checked { background: var(--green); border-color: var(--green); }
.filter-group input:checked::after { content: ""; width: 5px; height: 9px; border: solid var(--white); border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.filters .button { margin-top: 24px; width: 100%; }
@media (min-width: 860px) { .filters { padding-right: 20px; border-right: 1px solid var(--line); } .results { padding-left: 32px; } }
.results__count { margin: 0 0 16px; color: var(--muted); font: 400 .85rem var(--sans); }

.school-grid { display: grid; gap: 32px 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.school-card { display: flex; flex-direction: column; text-decoration: none; color: var(--text); }
.school-card__photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 12px; transition: opacity .2s; }
.school-card:hover .school-card__photo { opacity: .88; }
.school-card__photo--empty { display: grid; place-items: center; background: var(--green); color: rgb(255 255 255 / .75); font: 400 4rem var(--serif); }
.school-card__name { font: 400 1.6rem/1.15 var(--serif); color: var(--green-dark); margin: 0; }
.school-card__meta { font: italic 400 1.1rem var(--serif); color: var(--text); margin-top: 4px; }
.school-card__facts { font-size: .8rem; color: var(--muted); margin-top: 2px; }

/* School page */
.school { display: grid; gap: 40px; grid-template-columns: 1fr; padding-bottom: 32px; }
@media (min-width: 860px) { .school { grid-template-columns: 1fr 340px; align-items: start; } }
.school__photo { width: 100%; display: block; margin-bottom: 24px; }
.school__facts { border-top: 1px solid var(--line); padding-top: 8px; }
.school__facts h2 { font-size: 1.8rem; font-weight: 400; margin: 8px 0 16px; }
.school__facts dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 0 0 24px; }
.school__facts dt { color: var(--muted); }
.school__facts dd { margin: 0; font-weight: 500; }

/* Home carousel: scroll-snap slides, arrows added by approach.js */
.carousel { position: relative; background: var(--green-dark); }
.carousel__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; margin: 0; }
.carousel__image { display: block; width: 100%; height: clamp(440px, 70vh, 680px); object-fit: cover; }
.carousel__caption { position: absolute; inset: 0; display: flex; align-items: flex-end; padding-bottom: 64px; background: linear-gradient(to top, rgb(25 38 30 / .8), rgb(25 38 30 / 0) 65%); color: var(--white); }
.carousel__caption h1, .carousel__caption h2 { color: var(--white); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.8rem); margin: 0 0 8px; max-width: 16ch; }
.carousel__caption p { font-size: 1.05rem; max-width: 50ch; margin: 0 0 24px; }
.carousel__caption .button { background: var(--accent); }
.photo-credit { margin: 6px 0 24px; font-size: .75rem; color: var(--muted); }
.carousel__credit { position: absolute; right: 12px; bottom: 8px; font-size: .7rem; color: rgb(255 255 255 / .7); }
.carousel__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 1px solid rgb(255 255 255 / .7); border-radius: 50%; background: none; color: var(--white); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.carousel__nav:hover { background: rgb(255 255 255 / .15); }
.carousel__nav--prev { left: 20px; }
.carousel__nav--next { right: 20px; }
@media (max-width: 859px) { .carousel__nav { display: none; } } /* swipe on phones */
.hero { background: var(--green-dark); padding: 96px 0; }
.hero h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 400; margin: 0; }

/* Home sections */
.section { padding: 80px 0; }
.section--tint { background: var(--green-tint); }
.section__title { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 400; margin: 0 0 32px; }
.section__more { margin: 32px 0 0; }
.about { display: grid; gap: 48px 64px; align-items: center; }
@media (min-width: 860px) { .about { grid-template-columns: 1.3fr 1fr; } }
.about h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 400; margin: 0 0 16px; }
.about__text { font-size: 1rem; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 40px; margin: 0; padding: 150px 0 150px 6%; background: url("../img/uk-map.9f590e9fe216.svg") center / contain no-repeat; }
.stats__item { display: flex; flex-direction: column-reverse; justify-content: flex-end; }  /* top-aligned when labels wrap */
.stats dd { margin: 0; font: 300 clamp(4rem, 8vw, 6.5rem)/.95 var(--sans); letter-spacing: -.03em; color: var(--green-dark); white-space: nowrap; }
.stats__plus { margin-left: .04em; font-size: .6em; vertical-align: .55em; color: var(--accent); }
.stats dt { width: fit-content; margin-top: 18px; padding-top: 12px; border-top: 2px solid var(--accent); font: italic 400 clamp(1.5rem, 2.4vw, 1.9rem)/1.2 var(--serif); color: var(--green); }
.card-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.service-card { background: var(--white); padding: 28px; border-top: 2px solid var(--accent); }
.service-card h3 { margin: 0 0 8px; font-size: 1.5rem; font-weight: 400; }
.service-card h3 a { text-decoration: none; color: inherit; }
.service-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.team-card { text-align: center; padding: 8px; }
.team-card__photo { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; display: block; }
.team-card__photo--empty { display: grid; place-items: center; background: var(--green); color: rgb(255 255 255 / .75); font: 400 3.5rem var(--serif); }
.team-card h2, .team-card h3 { margin: 0; font-size: 1.6rem; font-weight: 400; }
.team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 48px 64px; margin-top: 16px; }
.team-grid .team-card { width: 260px; }
.team-card__role { margin: 2px 0 0; font: italic 400 1.1rem var(--serif); color: var(--muted); }
.team-card__bio { margin: 12px auto 0; max-width: 34ch; font-size: .9rem; }

/* Services, About, FAQ pages */
.section__lead { margin-bottom: 32px; }
.prose { max-width: 720px; font-size: 1rem; }
.prose h2 { font-size: 1.9rem; font-weight: 400; margin: 32px 0 8px; }
.prose li { margin-bottom: 4px; }

/* About page */
.subheading { max-width: 34ch; margin: 0; font: italic 400 clamp(1.4rem, 2.6vw, 2rem)/1.3 var(--serif); color: var(--green); }
.about--page { align-items: start; padding-bottom: 64px; }
.about--page .prose { padding-top: 24px; }
.about--page .stats { padding-top: 60px; }
.wide-photo { position: relative; margin: 0; }  /* full width, runs into the band below */
.wide-photo img { display: block; width: 100%; height: auto; min-height: 220px; object-fit: cover; }
.wide-photo__credit { position: absolute; right: 12px; bottom: 8px; font-size: .75rem; color: var(--white); text-shadow: 0 1px 3px rgb(0 0 0 / .6); }

/* Call to action over a dark photo */
.cta-photo { padding: 110px 0; color: var(--white); background: linear-gradient(rgb(46 69 55 / .85), rgb(46 69 55 / .85)), url("../img/cta-graduation.df12c04536b8.jpg") center / cover; }
.cta-photo h2 { margin: 0 0 24px; font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; color: var(--white); }
.cta-photo p { max-width: 60ch; margin: 0 0 32px; }
.cta-photo .button { padding: 12px 30px; font-size: 1rem; }
/* Home "Our Services": photo above, serif title below; the whole card is the link */
.photo-cards { display: grid; gap: 40px 32px; }
@media (min-width: 600px) { .photo-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .photo-cards { grid-template-columns: repeat(3, 1fr); } }
.photo-card { position: relative; }
.photo-card__image { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
.photo-card__image--empty { background: #dfe6e0; }
.photo-card__title { margin: 14px 0 0; font-size: 1.5rem; font-weight: 400; }
.photo-card__title a { color: inherit; text-decoration: none; }
.photo-card__title a::after { content: ""; position: absolute; inset: 0; }  /* stretch the link over the card */
.photo-card:hover .photo-card__title a { text-decoration: underline; text-underline-offset: 4px; }
.photo-card:hover .photo-card__image { opacity: .92; }
.photo-card p { margin: 6px 0 0; color: var(--muted); font-size: .9rem; }
.service-card--link { display: flex; flex-direction: column; text-decoration: none; color: var(--text); background: var(--green-tint); transition: background .2s; }
.service-card--link:hover { background: #e2e9e3; }
.service-card--link h2 { margin: 0 0 8px; font-size: 1.6rem; font-weight: 400; }
.service-card--link .more { margin-top: auto; padding-top: 16px; font-size: .85rem; color: var(--green); }
.table-wrap { overflow-x: auto; margin: 24px 0; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table caption { text-align: left; font: 400 1.3rem var(--serif); margin-bottom: 8px; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.table thead th { background: var(--green-tint); color: var(--green-dark); font-weight: 500; }
.calculator-wrap { max-width: 760px; }
.calculator label { display: block; margin-bottom: 8px; font-weight: 500; }
.calculator__row { display: flex; flex-wrap: wrap; gap: 12px; }
.calculator input { padding: 9px 14px; border: 1px solid var(--line); font: inherit; }
.calculator__result { margin-top: 32px; }
.two-col { display: grid; gap: 48px; }
/* Home "How We Work": numbered steps in a grid */
.how__text { max-width: 640px; margin: -8px 0 40px; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; }
@media (min-width: 600px) { .how-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .how-steps { grid-template-columns: repeat(3, 1fr); } }
.how-step { padding-top: 20px; border-top: 1px solid var(--line); }
.how-step p { margin: 8px 0 0; }
/* Home age calculator: dark band, text left, form right */
.age-band { padding: 80px 0; background: var(--green-dark); color: var(--white); }
.age-band__inner { display: grid; gap: 24px 64px; }
@media (min-width: 860px) { .age-band__inner { grid-template-columns: 1fr 1fr; align-items: center; } }
.age-band .kicker { color: var(--accent); }
.age-band h2 { margin: 0; font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 400; color: var(--white); }
.age-band p { margin: 0 0 24px; }
.age-band input { border: 0; }
.age-band .button { background: var(--accent); }
/* Resource pages: jump buttons, the UK system chart, sections beside a photo */
.jump-nav { padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.jump-nav .container { display: flex; flex-wrap: wrap; gap: 8px; }
.jump-nav a { padding: 4px 16px; border: 1px solid var(--green-dark); border-radius: 999px; font-size: .85rem; color: var(--green-dark); text-decoration: none; }
.jump-nav a:hover { background: var(--green-dark); color: var(--white); }
.resource-end { height: 64px; }
.system-chart { width: 100%; max-width: 760px; border-collapse: separate; border-spacing: 8px; margin: 0 -8px; }
.system-chart thead th { padding: 8px 16px; background: var(--green-dark); color: var(--white); text-align: left; font: 400 1.4rem var(--serif); }
.system-chart thead th:first-child { width: 90px; }
.system-chart tbody th, .system-chart td { padding: 8px 16px; text-align: left; font-weight: 400; vertical-align: top; }
.system-chart tbody th { background: #f1f1ef; }
.system-chart__uni { background: #e3ebe4; color: var(--green-dark); }
.system-chart__sec { background: #f3ecdc; color: #7d6530; }
.system-chart__pri { background: #f1f1ef; color: var(--text); }
.exam-badge { display: inline-block; margin: 2px 0 2px 6px; padding: 0 6px; border-radius: 3px; background: var(--accent); color: var(--white); font-size: .78rem; white-space: nowrap; }
.chart-legend__title { margin: 32px 0 12px; font: italic 400 1.4rem var(--serif); }
.chart-legend__row { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0; padding: 0; list-style: none; font-size: .85rem; }
.chart-legend__row li, .chart-legend__row div { display: flex; align-items: center; gap: 8px; }
.chart-legend__row dt { margin: 0; }
.chart-legend__row dd { margin: 0; }
.chart-legend__swatch { width: 26px; height: 26px; }
/* Türkiye vs UK school years (school_years_chart.html): bracket, exam, grade | age | year, exam, bracket */
.years-chart { --c1: #bddbb4; --c2: #dcebd6; --c3: #eef4ec; --cell: #dfe6e0; display: grid; grid-template-columns: 34px 1fr 1.6fr 92px 1.6fr 1fr 34px; max-width: 760px; font-size: .9rem; }
.years-chart__row { display: contents; }
.years-chart [role="cell"], .years-chart__age { display: flex; align-items: center; min-height: 37px; padding: 0 12px; background: var(--white); border: solid var(--cell); border-width: 0 1px 1px 0; }
.years-chart__head { grid-row: 1; padding: 14px 12px; background: var(--white); border: 1px solid var(--cell); border-bottom: 0; border-radius: 12px 12px 0 0; text-align: center; font: 600 1.3rem var(--serif); color: var(--green-dark); }
.years-chart__tr-head { grid-column: 2 / 4; }
.years-chart__age-head { grid-column: 4; margin: 0 10px; font: 600 .7rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); align-content: center; }
.years-chart__uk-head { grid-column: 5 / 7; }
.years-chart__tr-exam { grid-column: 2; justify-content: center; border-left-width: 1px !important; font-weight: 600; font-size: .8rem; color: var(--green-dark); }
.years-chart__tr { grid-column: 3; }
.years-chart__age { grid-column: 4; justify-content: center; margin: 0 10px; border-left-width: 1px; font-weight: 600; color: var(--muted); }
.years-chart__uk { grid-column: 5; justify-content: flex-end; gap: 8px; border-left-width: 1px !important; text-align: right; }
.years-chart__uk-exam { grid-column: 6; justify-content: center; font-weight: 600; font-size: .78rem; color: var(--green-dark); white-space: nowrap; }
.years-chart__row--last > * { border-radius: 0; }
.years-chart__row--last .years-chart__tr-exam, .years-chart__row--last .years-chart__uk { border-bottom-left-radius: 12px; }
.years-chart__row--last .years-chart__tr, .years-chart__row--last .years-chart__uk-exam { border-bottom-right-radius: 12px; }
.years-chart__row--last .years-chart__age { border-radius: 0 0 12px 12px; }
.years-chart .years-chart--uni { background: var(--c1); }
.years-chart .years-chart--high, .years-chart .years-chart--senior { background: var(--c2); }
.years-chart .years-chart--mid { background: var(--c3); }
.years-chart__bracket { display: flex; align-items: center; justify-content: center; margin: 6px 0; writing-mode: vertical-rl; font-weight: 600; font-size: .78rem; color: var(--green-dark); white-space: nowrap; }
.years-chart__bracket--left { grid-column: 1; transform: rotate(180deg); border-left: 3px solid var(--green-dark); margin-right: 8px; }
.years-chart__bracket--right { grid-column: 7; border-left: 3px solid var(--green-dark); margin-left: 8px; }
.years-chart__entry { font-weight: 600; font-size: .78rem; white-space: nowrap; }
.years-chart__entry--11 { color: #c47a1c; }
.years-chart__entry--13 { color: #d4472c; }
.years-chart__entry--16 { color: #9b3d7f; }
.years-chart__short, .years-chart__legend { display: none; }
@media (max-width: 599px) {
    /* Türkiye and UK get equal widths; minmax(0, …) stops long labels widening a side. Pulled into the left gutter. */
    .years-chart { grid-template-columns: 20px minmax(0, 1fr) minmax(0, 1.2fr) 50px minmax(0, 1.2fr) minmax(0, 1fr) 20px; margin-left: -10px; font-size: .85rem; }
    .years-chart [role="cell"], .years-chart__age { min-height: 44px; padding: 0 5px; }
    .years-chart__head { padding: 10px 4px; font-size: 1.1rem; }
    .years-chart__age { margin: 0 4px; padding: 0; font-size: .68rem; white-space: nowrap; }
    .years-chart__age-head { margin: 0 4px; font-size: .6rem; }
    .years-chart__tr-exam, .years-chart__uk-exam { padding: 0 2px; font-size: .58rem; }
    .years-chart__long { display: none; }
    .years-chart__short { display: inline; }
    .years-chart__entry-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .years-chart__bracket { font-size: .62rem; }
    .years-chart__bracket--left { margin-right: 3px; }
    .years-chart__bracket--right { margin-left: 3px; }
    .years-chart__legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin: 16px 0 0; padding: 0; list-style: none; font-size: .78rem; color: var(--muted); }
}
.photo-section { display: grid; gap: 40px 48px; align-items: start; }
@media (min-width: 860px) {
    .photo-section { grid-template-columns: 1fr 1fr; }
    .photo-section--left .photo-section__image { order: -1; }
}
.photo-section__image { display: block; width: 100%; height: auto; }
.photo-section__item { margin-top: 24px; }
.photo-section__title { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; font-size: 1.9rem; font-weight: 400; color: var(--accent); }
.photo-section__number { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--white); font: 500 .8rem var(--sans); }
.photo-section .prose p { margin: 0 0 8px; }
/* Service page steps: number and title left, text right; one column on phones */
.steps__heading { font-size: 1.9rem; font-weight: 400; margin: 0 0 16px; }
.steps__list { list-style: none; margin: 0; padding: 0; }
.steps__item { display: grid; gap: 4px 32px; padding: 24px 0; border-top: 1px solid var(--line); }
.steps__item:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 600px) { .steps__item { grid-template-columns: 1fr 2fr; } }
.steps__title { display: flex; align-items: center; gap: 14px; margin: 0; font-size: 1.5rem; font-weight: 400; }
.steps__number { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--green-dark); color: var(--white); font: 500 .85rem var(--sans); }
.steps__item p { margin: 0; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 340px; align-items: start; } }
.side__box { background: var(--green-dark); color: var(--white); padding: 28px; }
.side__box h2 { color: var(--white); font-size: 1.6rem; font-weight: 400; margin: 0 0 8px; }
.side__box p { margin: 0 0 20px; font-size: .9rem; }
.side__box .button { background: var(--accent); }
.side__title { font-size: 1.5rem; font-weight: 400; margin: 32px 0 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.side__links { list-style: none; margin: 0; padding: 0; }
.side__links a { display: block; padding: 6px 0; text-decoration: none; }
.faq { max-width: 880px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { padding: 20px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font: 400 1.4rem var(--serif); color: var(--green-dark); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font: 300 1.6rem/1 var(--sans); color: var(--accent); }
.faq__item[open] summary::after { content: "−"; }
.faq__answer { padding: 0 0 16px; }
.faq__answer p { margin: 0 0 8px; }
.contact-form { max-width: 560px; }
.contact-form__field { margin-bottom: 18px; }
.contact-form__field label { display: block; margin-bottom: 6px; font-weight: 500; }
.contact-form__field input:not([type=checkbox]), .contact-form__field textarea { width: 100%; padding: 9px 14px; border: 1px solid var(--line); font: inherit; }
.contact-form__field textarea { min-height: 140px; }
.contact-form__consent label { font-weight: 400; font-size: .9rem; }
.contact-form .errorlist, .calculator .errorlist { color: #a33; padding: 0; margin: 4px 0; list-style: none; font-size: .85rem; }
.contact-form .cf-turnstile { margin-bottom: 18px; }
.muted { color: var(--muted); font-weight: 400; }
.notice { background: var(--green-tint); padding: 20px 24px; border-left: 3px solid var(--accent); }
.hp { position: absolute; left: -9999px; }
.side__box .button + .button { margin-top: 10px; }
.cta-band { background: var(--green-dark); color: var(--white); padding: 72px 0; text-align: center; }
.cta-band h2 { color: var(--white); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 400; margin: 0 0 8px; }
.cta-band p { margin: 0 0 24px; }
.cta-band .button { background: var(--accent); }

/* Footer */
.site-footer { background: var(--green); color: rgb(255 255 255 / .85); padding: 48px 0; margin-top: 80px; }
.template-homepage .site-footer, .template-about .site-footer, .template-resource .site-footer, .template-age-calculator .site-footer, .template-team .site-footer, .template-faq .site-footer { margin-top: 0; }  /* these end in a full-width band */
.site-footer .brand { color: var(--white); margin-bottom: 12px; }
.site-footer p { margin: 4px 0; }

/* Floating WhatsApp button, phones and tablets only (desktop has "Talk to us" in the header) */
.whatsapp-float { position: fixed; right: 16px; bottom: 16px; z-index: 20; background: #25d366; color: var(--white); text-decoration: none; font-weight: 500; padding: 12px 20px; border-radius: 999px; box-shadow: 0 4px 16px rgb(0 0 0 / .2); }
@media (min-width: 1100px) { .whatsapp-float { display: none; } }
