/*
Theme Name: A+ Tutoring First Nations
Theme URI: https://aplusfntutoring.com/
Author: A+ Tutoring
Description: Theme for A+ Tutoring: live math and science tutoring for First Nations students in Alberta. Includes Home, Programs, Diploma Prep, For Schools and Nations, How It Works, About and Contact pages, a built-in contact form, and redirects from the old site's post addresses.
Version: 1.2.2
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aplus-fn
*/

:root {
	--spruce: #1E3A2F;
	--spruce-2: #284C3E;
	--lake: #2D5D7B;
	--birch: #F6F8F6;
	--gold: #E2A72E;
	--gold-deep: #A8740C;
	--ink: #1A2226;
	--ink-soft: #46535A;
	--sage: #DCE6DE;
	--sage-light: #EDF2EE;
	--line: #CBD6CE;
	--berry: #A8322B;
	--turq: #2B8C8C;
	--hide: #E9DCC4;
	--serif: "Young Serif", Georgia, serif;
	--sans: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
	--wrap: 1160px;
	--r: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--birch); color: var(--ink); font-family: var(--sans); font-size: 1.125rem; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lake); text-underline-offset: .18em; }
a:hover { color: var(--spruce); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; color: var(--spruce); margin: 0 0 .5em; }
h1 { font-size: clamp(2.25rem, 4.6vw, 3.5rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow > * { max-width: 70ch; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 10px 16px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.plain { list-style: none; margin: 0; padding: 0; }
.small { font-size: .98rem; color: var(--ink-soft); max-width: 70ch; }
.lede { font-size: 1.25rem; color: var(--ink-soft); max-width: 58ch; }

/* Buttons and links */
.btn { white-space: nowrap; display: inline-flex; align-items: center; gap: .5em; padding: .8em 1.4em; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; line-height: 1.2; cursor: pointer; font-family: var(--sans); font-size: 1rem; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #EDB846; color: var(--ink); }
.btn-line { border-color: var(--spruce); color: var(--spruce); }
.btn-line:hover { background: var(--spruce); color: var(--birch); }
.btn-spruce { background: var(--spruce); color: var(--birch); }
.btn-spruce:hover { background: var(--spruce-2); color: var(--birch); }
.btn-sm { padding: .55em 1.1em; }
.text-link { font-weight: 700; color: var(--spruce); }

/* Header */
.site-header { background: var(--birch); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.admin-bar .site-header { top: 32px; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--spruce); }
.mark { width: 44px; height: 44px; border-radius: 12px; background: var(--spruce); color: var(--birch); font-family: var(--serif); font-size: 1.5rem; display: grid; place-items: center; position: relative; }
.mark span { position: absolute; top: 3px; right: 6px; font-size: .95rem; color: var(--gold); }
.brand-text { font-family: var(--serif); font-size: 1.35rem; line-height: 1.1; display: flex; flex-direction: column; }
.brand-text small { font-family: var(--sans); font-size: .82rem; color: var(--ink-soft); margin-top: 3px; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
.site-nav li a { color: var(--ink); text-decoration: none; font-size: 1rem; white-space: nowrap; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav li a:hover { color: var(--spruce); border-bottom-color: var(--sage); }
.site-nav li a[aria-current] { color: var(--spruce); border-bottom-color: var(--gold); font-weight: 700; }
.nav-toggle { display: none; align-items: center; gap: 8px; background: none; border: 2px solid var(--spruce); border-radius: 999px; padding: 8px 14px; font: 700 1rem var(--sans); color: var(--spruce); cursor: pointer; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: ""; }
.nav-toggle .bars::before { position: absolute; top: -6px; }
.nav-toggle .bars::after { position: absolute; top: 6px; }

/* Hero */
.hero { padding: clamp(48px, 7vw, 96px) 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { max-width: 16ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero-call { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--ink-soft); margin: 0; }
.hero-call a { font-weight: 700; color: var(--spruce); }

/* The trail map: the site's signature element */
.map-panel {
	position: relative; isolation: isolate; overflow: hidden;
	background-color: var(--spruce); color: var(--birch); border-radius: 18px; padding: 30px 30px 24px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600' fill='none' stroke='%23F6F8F6' stroke-opacity='.07' stroke-width='1.5'%3E%3Cpath d='M-20 120c90-40 170 30 260-10s150-80 240-40 120 60 160 40'/%3E%3Cpath d='M-20 160c90-40 170 30 260-10s150-80 240-40 120 60 160 40'/%3E%3Cpath d='M-20 200c90-40 170 30 260-10s150-80 240-40 120 60 160 40'/%3E%3Cpath d='M-20 330c80 30 160-40 250 0s170 70 250 20 90-40 140-20'/%3E%3Cpath d='M-20 370c80 30 160-40 250 0s170 70 250 20 90-40 140-20'/%3E%3Cpath d='M-20 410c80 30 160-40 250 0s170 70 250 20 90-40 140-20'/%3E%3Cellipse cx='470' cy='520' rx='90' ry='40'/%3E%3Cellipse cx='470' cy='520' rx='130' ry='62'/%3E%3Cellipse cx='470' cy='520' rx='170' ry='84'/%3E%3C/svg%3E");
	background-size: 600px 600px;
}
.map-title { font-family: var(--serif); font-size: 1.3rem; line-height: 1.25; margin: 0 0 20px; max-width: 24ch; }
.map-route { padding: 14px 0 12px; border-top: 1px solid rgba(246, 248, 246, .14); }
.route-name { font-size: .95rem; margin: 0 0 10px; color: #C9D8CE; }
.map-note { font-size: .95rem; color: #C9D8CE; margin: 14px 0 0; }
.trail { list-style: none; margin: 0 0 6px; padding: 0; display: flex; position: relative; }
.trail li { flex: 1; position: relative; padding-top: 22px; min-width: 0; }
.trail li::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 3px; background: var(--sage); }
.trail li:first-child::before { left: 7px; }
.trail li:last-child::before { right: auto; width: 7px; }
.trail .stop { position: absolute; top: 0; left: 0; width: 17px; height: 17px; border-radius: 50%; background: var(--birch); border: 3px solid var(--spruce); box-shadow: 0 0 0 2px var(--sage); }
.trail .course { display: block; font-weight: 700; font-size: .98rem; white-space: nowrap; padding-right: 8px; }
.trail .end .stop { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 3px rgba(226, 167, 46, .35); border-radius: 4px; transform: rotate(45deg); }
.trail .end .course { color: var(--gold-deep); }
.map-panel .trail li::before { background: rgba(246, 248, 246, .35); }
.map-panel .trail .stop { border-color: var(--spruce); box-shadow: 0 0 0 2px rgba(246, 248, 246, .55); }
.map-panel .trail .end .course { color: var(--gold); }
.map-panel .trail .end .stop { box-shadow: 0 0 0 3px rgba(226, 167, 46, .35); }


/* Beadwork-style bands: rows of triangles and diamonds, the same transformations (translation and reflection) taught in Grades 7 to 9 */
.beads {
	height: 36px;
	background-color: var(--spruce);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='36' viewBox='0 0 48 36'%3E%3Crect width='48' height='36' fill='%231E3A2F'/%3E%3Cg fill='%23F6F8F6'%3E%3Ccircle cx='3' cy='3' r='1.6'/%3E%3Ccircle cx='9' cy='3' r='1.6'/%3E%3Ccircle cx='15' cy='3' r='1.6'/%3E%3Ccircle cx='21' cy='3' r='1.6'/%3E%3Ccircle cx='27' cy='3' r='1.6'/%3E%3Ccircle cx='33' cy='3' r='1.6'/%3E%3Ccircle cx='39' cy='3' r='1.6'/%3E%3Ccircle cx='45' cy='3' r='1.6'/%3E%3Ccircle cx='3' cy='33' r='1.6'/%3E%3Ccircle cx='9' cy='33' r='1.6'/%3E%3Ccircle cx='15' cy='33' r='1.6'/%3E%3Ccircle cx='21' cy='33' r='1.6'/%3E%3Ccircle cx='27' cy='33' r='1.6'/%3E%3Ccircle cx='33' cy='33' r='1.6'/%3E%3Ccircle cx='39' cy='33' r='1.6'/%3E%3Ccircle cx='45' cy='33' r='1.6'/%3E%3C/g%3E%3Cpath d='M0 29 8 9 16 29z' fill='%23E2A72E'/%3E%3Cpath d='M32 29 40 9 48 29z' fill='%232B8C8C'/%3E%3Cpath d='M24 7l9 11-9 11-9-11z' fill='%23A8322B'/%3E%3Cpath d='M24 12l5 6-5 6-5-6z' fill='%23F6F8F6'/%3E%3Cpath d='M24 15.5l2 2.5-2 2.5-2-2.5z' fill='%23E2A72E'/%3E%3C/svg%3E");
	background-repeat: repeat-x;
	background-size: 48px 36px;
	background-position: center;
}
.beads-mini, .package::before, .section-title.beaded::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='36' viewBox='0 0 48 36'%3E%3Crect width='48' height='36' fill='%231E3A2F'/%3E%3Cg fill='%23F6F8F6'%3E%3Ccircle cx='3' cy='3' r='1.6'/%3E%3Ccircle cx='9' cy='3' r='1.6'/%3E%3Ccircle cx='15' cy='3' r='1.6'/%3E%3Ccircle cx='21' cy='3' r='1.6'/%3E%3Ccircle cx='27' cy='3' r='1.6'/%3E%3Ccircle cx='33' cy='3' r='1.6'/%3E%3Ccircle cx='39' cy='3' r='1.6'/%3E%3Ccircle cx='45' cy='3' r='1.6'/%3E%3Ccircle cx='3' cy='33' r='1.6'/%3E%3Ccircle cx='9' cy='33' r='1.6'/%3E%3Ccircle cx='15' cy='33' r='1.6'/%3E%3Ccircle cx='21' cy='33' r='1.6'/%3E%3Ccircle cx='27' cy='33' r='1.6'/%3E%3Ccircle cx='33' cy='33' r='1.6'/%3E%3Ccircle cx='39' cy='33' r='1.6'/%3E%3Ccircle cx='45' cy='33' r='1.6'/%3E%3C/g%3E%3Cpath d='M0 29 8 9 16 29z' fill='%23E2A72E'/%3E%3Cpath d='M32 29 40 9 48 29z' fill='%232B8C8C'/%3E%3Cpath d='M24 7l9 11-9 11-9-11z' fill='%23A8322B'/%3E%3Cpath d='M24 12l5 6-5 6-5-6z' fill='%23F6F8F6'/%3E%3Cpath d='M24 15.5l2 2.5-2 2.5-2-2.5z' fill='%23E2A72E'/%3E%3C/svg%3E"); background-size: 32px 24px; background-repeat: repeat-x; }
.site-footer { border-top: 0; }

/* Tipi drawing (hero) */
.tipi-panel { margin: 0; background: var(--sage-light); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px 22px; }
.tipi-svg { width: 100%; height: auto; display: block; overflow: visible; }
.t-ground { stroke: var(--spruce); stroke-width: 3; stroke-linecap: round; }
.t-poles line { stroke: #7A5634; stroke-width: 5; stroke-linecap: round; }
.t-cover { fill: var(--hide); stroke: #7A5634; stroke-width: 2; stroke-linejoin: round; }
.t-band { fill: var(--berry); }
.t-band2 { fill: var(--turq); }
.t-door { fill: var(--spruce); }
.t-dim { stroke: var(--lake); stroke-width: 2; stroke-dasharray: 6 5; }
.t-arc { fill: none; stroke: var(--gold-deep); stroke-width: 2.5; }
.t-lbl { font: 700 15px var(--sans); fill: var(--ink); paint-order: stroke; stroke: var(--sage-light); stroke-width: 4px; stroke-linejoin: round; }
.t-slant { fill: var(--berry); }
.t-ang { fill: var(--gold-deep); }
.tp-title { font-family: var(--serif); font-size: 1.25rem; color: var(--spruce); line-height: 1.25; margin: 10px 0 12px; }
.formulas { list-style: none; margin: 0 0 14px; padding: 0; }
.formulas li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 1rem; }
.formulas span { color: var(--ink-soft); }
.formulas b { font-family: var(--serif); font-weight: 400; color: var(--ink); font-size: 1.1rem; white-space: nowrap; }
.tp-link { font-weight: 700; color: var(--spruce); }

/* Tipi calculator */
.tipi-math .tipi-svg .t-lbl { stroke: var(--birch); }
.calc { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(28px, 4vw, 56px); align-items: start; margin-bottom: 18px; }
.calc-figure { background: var(--birch); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px 20px; position: sticky; top: 96px; }
.calc-figure .t-lbl { stroke: var(--birch); }
.calc-controls { display: grid; gap: 6px; margin-top: 8px; }
.calc-controls label { display: flex; justify-content: space-between; font-weight: 700; font-size: 1rem; margin-top: 8px; }
.calc-controls output { font-family: var(--serif); font-weight: 400; color: var(--berry); font-size: 1.15rem; }
.calc-controls input[type="range"] { width: 100%; accent-color: var(--spruce); height: 28px; }
.work { list-style: none; counter-reset: w; margin: 0; padding: 0; }
.work li { counter-increment: w; position: relative; padding: 0 0 18px 52px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.work li::before { content: counter(w); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--spruce); color: var(--birch); font-family: var(--serif); display: grid; place-items: center; }
.work h3 { font-size: 1.15rem; margin-bottom: .25em; }
.work p { margin: 0 0 6px; color: var(--ink-soft); }
.work .eq { font-family: var(--serif); color: var(--ink); font-size: 1.12rem; background: #fff; border-left: 4px solid var(--gold); padding: 8px 12px; border-radius: 0 6px 6px 0; margin-top: 8px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* Sections */
.section { padding: clamp(56px, 7vw, 88px) 0; }
.tint { background: var(--sage-light); }
.section-title { margin-bottom: .45em; }
.section-lede { color: var(--ink-soft); max-width: 62ch; margin-bottom: 28px; }
.page-hero { background: var(--sage-light); border-bottom: 1px solid var(--line); padding: clamp(44px, 6vw, 72px) 0 clamp(36px, 5vw, 56px); }
.page-hero h1 { max-width: 22ch; }
.page-hero .lede { margin: 0; }
.jump { display: flex; gap: 10px; padding-top: 28px; }
.jump a { border: 2px solid var(--spruce); border-radius: 999px; padding: 6px 16px; text-decoration: none; color: var(--spruce); font-weight: 700; }
.jump a:hover { background: var(--spruce); color: var(--birch); }
.jump + .section { padding-top: 40px; }

/* Who we work with */
.split { display: grid; grid-template-columns: 1fr 1fr; border-top: 3px solid var(--spruce); }
.split-col { padding: 28px 40px 8px 0; }
.split-col + .split-col { padding-left: 40px; padding-right: 0; border-left: 1px solid var(--line); }
.ticks { list-style: none; margin: 0 0 20px; padding: 0; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.ticks .ic { color: var(--gold-deep); margin-top: .25em; }

/* Grade table */
.grade-table { border-top: 3px solid var(--spruce); margin-bottom: 24px; }
.gt-row { display: grid; grid-template-columns: 110px 1fr 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.gt-head { font-weight: 700; color: var(--ink-soft); font-size: .95rem; padding: 12px 0; }
.gt-row [role="rowheader"] { font-family: var(--serif); font-size: 1.5rem; color: var(--spruce); line-height: 1.1; }

/* Approach band */
.approach { background: var(--spruce); color: #E4ECE6; }
.approach h2, .approach h3 { color: var(--birch); }
.approach-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); }
.approach-grid > div p { max-width: 58ch; }
.ways { list-style: none; margin: 0; padding: 0; }
.ways li { padding: 18px 0; border-top: 1px solid rgba(246, 248, 246, .18); }
.ways li:first-child { border-top: 0; padding-top: 0; }
.ways h3 { color: var(--gold); margin-bottom: .25em; }
.ways p { margin: 0; }

/* Packages */
.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 8px 0 22px; }
.package { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--gold); border-radius: 6px; padding: 24px; }
.package h3 { margin-bottom: .4em; }
.price { font-family: var(--serif); font-size: 2.1rem; color: var(--ink); line-height: 1.1; margin-bottom: .5em; }
.price span { font-family: var(--sans); font-size: 1rem; color: var(--ink-soft); }
.package p:last-child { margin: 0; color: var(--ink-soft); }

/* Tutor */
.tutor { display: grid; grid-template-columns: 280px 1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.tutor img { border-radius: 14px; border: 6px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.tutor p { max-width: 64ch; }

.facts { list-style: none; margin: 8px 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { border: 1.5px solid var(--line); background: var(--birch); border-radius: 999px; padding: 4px 14px; font-size: .95rem; font-weight: 700; color: var(--spruce); }

/* Programs */
.prog { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 64px); }
.levels { margin: 0; }
.levels > div { display: grid; grid-template-columns: 100px 1fr; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.levels > div:first-child { border-top: 3px solid var(--spruce); }
.levels dt { font-family: var(--serif); font-size: 1.6rem; color: var(--spruce); line-height: 1.1; }
.levels dd { margin: 0; }
.levels .route-name { color: var(--ink-soft); margin: 18px 0 6px; font-weight: 700; }
.levels .trail { margin-bottom: 14px; max-width: 520px; }
.exam-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; border-top: 3px solid var(--spruce); }
.exam-list li { font-family: var(--serif); font-size: 1.5rem; color: var(--spruce); padding: 16px 0; border-bottom: 1px solid var(--line); }

/* Steps: a real sequence, so numbered */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 28px; }
.steps li { counter-increment: step; border-top: 3px solid var(--spruce); padding-top: 18px; }
.steps li::before { content: counter(step); display: block; font-family: var(--serif); font-size: 2.6rem; color: var(--gold-deep); line-height: 1; margin-bottom: 12px; }
.steps p { margin: 0; color: var(--ink-soft); }

.method-steps li::before { font-size: 3.2rem; }
.method-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 48px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); align-items: start; }
.method-foot .goal { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.8rem); line-height: 1.25; color: var(--spruce); margin: 0; text-wrap: balance; }
.method-foot p { margin: 0; color: var(--ink-soft); max-width: 60ch; }
.trial-note { margin: -8px 0 16px; padding-left: 14px; border-left: 4px solid var(--gold); color: var(--ink); max-width: 46ch; }
.land { color: var(--birch); margin-bottom: 6px !important; }

/* Offer list */
.offer-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 36px; border-top: 3px solid var(--spruce); }
.offer-list > div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.offer-list p { margin: 0; color: var(--ink-soft); }

/* Contact */
.contact-band { background: var(--sage-light); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.contact-list .ic { color: var(--spruce); }
.contact-list a { font-weight: 700; color: var(--spruce); }
.form-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 3vw, 32px); }
.form label { display: block; font-weight: 700; font-size: .98rem; margin-bottom: 16px; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font: 400 1.05rem var(--sans); color: var(--ink); background: var(--birch); border: 1.5px solid #AEBDB3; border-radius: 8px; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--spruce); outline: 3px solid rgba(226, 167, 46, .5); outline-offset: 0; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.form legend { font-weight: 700; font-size: .98rem; margin-bottom: 8px; }
.form .choice { display: flex; align-items: center; gap: 10px; font-weight: 400; margin-bottom: 6px; }
.form .choice input { width: 20px; height: 20px; accent-color: var(--spruce); }
.form-note { font-size: .95rem; color: var(--ink-soft); }
.hp { position: absolute; left: -9999px; }
.notice { padding: 14px 16px; border-radius: 8px; font-weight: 700; }
.notice.ok { background: #E1F0E4; color: #1D4D2C; }
.notice.err { background: #FBE7E2; color: #7A2414; }

/* Generic content */
.entry h2 { margin-top: 1.4em; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li { margin: 6px 0; }
.post-meta { color: var(--ink-soft); font-size: .95rem; margin: 0 0 1.4em; }
.post-more { margin-top: 2.4em; padding-top: 1.4em; border-top: 1px solid var(--line); }
.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.post-list li { border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; background: #fff; }
.post-list h2 { font-size: 1.35rem; margin: 0 0 6px; }
.post-list h2 a { color: var(--spruce); text-decoration: none; }
.post-list h2 a:hover { text-decoration: underline; }
.post-list p { margin: 6px 0 0; }
.stack li { padding: 8px 0; }

/* Footer */
.site-footer { background: var(--ink); color: #C7D0CB; padding: 56px 0 24px; font-size: 1rem; }
.site-footer a { color: var(--birch); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.1fr; gap: 40px; }
.foot-brand { font-family: var(--serif); font-size: 1.5rem; color: var(--birch); margin-bottom: .4em; }
.foot-head { font-weight: 700; color: var(--birch); margin-bottom: .6em; }
.site-footer .plain li { padding: 4px 0; }
.site-footer .plain a { display: inline-flex; gap: 8px; align-items: center; }
.cols { columns: 2; }
.foot-base { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 36px; padding-top: 18px; font-size: .92rem; }
.foot-base p { margin: 0; }
.call-fab { display: none; }

/* Responsive */
@media (max-width: 1120px) {
	.nav-toggle { display: inline-flex; }
	.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--birch); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; }
	.nav-open .site-nav { display: flex; }
	.site-nav ul { flex-direction: column; gap: 0; }
	.site-nav li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
	.site-nav .btn { margin-top: 14px; justify-content: center; }
	.bar { position: relative; }
}
@media (max-width: 900px) {
	.hero-grid, .approach-grid, .prog, .contact-grid, .calc { grid-template-columns: 1fr; }
	.calc-figure { position: static; }
	.packages { grid-template-columns: 1fr; }
	.foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
	body { font-size: 1.0625rem; }
	.wrap { padding: 0 16px; }
	.brand-text small { display: none; }
	.split { grid-template-columns: 1fr; }
	.split-col, .split-col + .split-col { padding: 24px 0 8px; border-left: 0; }
	.split-col + .split-col { border-top: 1px solid var(--line); }
	.gt-row { grid-template-columns: 1fr; gap: 6px; }
	.gt-head { display: none; }
	.gt-row [role="cell"]::before { font-weight: 700; color: var(--ink-soft); display: block; font-size: .9rem; }
	.gt-row [role="cell"]:nth-child(2)::before { content: "Math"; }
	.gt-row [role="cell"]:nth-child(3)::before { content: "Science"; }
	.levels > div { grid-template-columns: 1fr; gap: 6px; }
	.steps, .offer-list, .exam-list, .form .row, .foot-grid, .method-foot { grid-template-columns: 1fr; }
	.tutor { grid-template-columns: 1fr; }
	.tutor img { max-width: 220px; }
	.map-panel { padding: 22px 18px 18px; }
	.trail .course { font-size: .88rem; white-space: normal; }
	.call-fab { display: inline-flex; position: fixed; right: 14px; bottom: 14px; z-index: 40; align-items: center; gap: 8px; background: var(--gold); color: var(--ink); font-weight: 700; padding: 12px 18px; border-radius: 999px; text-decoration: none; box-shadow: 0 6px 18px rgba(26, 34, 38, .25); }
	.site-footer { padding-bottom: 80px; }
}


/* Art made more prominent (v1.1) */
.hero { background: var(--spruce); color: #E4ECE6; position: relative; }
.hero h1 { color: var(--birch); }
.hero .lede { color: #D3DED6; }
.hero .btn-line { border-color: var(--birch); color: var(--birch); }
.hero .btn-line:hover { background: var(--birch); color: var(--spruce); }
.hero .trial-note { color: var(--birch); }
.hero .hero-call { color: #C9D8CE; }
.hero .hero-call a { color: var(--gold); }
.hero .tipi-panel { background: var(--birch); border: 0; box-shadow: 0 0 0 6px rgba(226, 167, 46, .9), 0 18px 40px rgba(0, 0, 0, .3); }
.hero .tipi-panel .t-lbl { stroke: var(--birch); }
.section-title.beaded::after { content: ""; display: block; width: 160px; height: 24px; margin-top: 14px; border-radius: 3px; }
.approach .section-title.beaded::after { box-shadow: 0 0 0 2px rgba(246, 248, 246, .25); }
.package { border-top: 0; padding-top: 0; overflow: hidden; }
.package::before { content: ""; display: block; height: 24px; margin: 0 -24px 20px; background-color: var(--spruce); }
.approach { position: relative; }
.approach::before, .approach::after { content: ""; position: absolute; top: 0; bottom: 0; width: 28px; background-color: var(--spruce); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='36' viewBox='0 0 48 36'%3E%3Crect width='48' height='36' fill='%231E3A2F'/%3E%3Cg fill='%23F6F8F6'%3E%3Ccircle cx='3' cy='3' r='1.6'/%3E%3Ccircle cx='9' cy='3' r='1.6'/%3E%3Ccircle cx='15' cy='3' r='1.6'/%3E%3Ccircle cx='21' cy='3' r='1.6'/%3E%3Ccircle cx='27' cy='3' r='1.6'/%3E%3Ccircle cx='33' cy='3' r='1.6'/%3E%3Ccircle cx='39' cy='3' r='1.6'/%3E%3Ccircle cx='45' cy='3' r='1.6'/%3E%3Ccircle cx='3' cy='33' r='1.6'/%3E%3Ccircle cx='9' cy='33' r='1.6'/%3E%3Ccircle cx='15' cy='33' r='1.6'/%3E%3Ccircle cx='21' cy='33' r='1.6'/%3E%3Ccircle cx='27' cy='33' r='1.6'/%3E%3Ccircle cx='33' cy='33' r='1.6'/%3E%3Ccircle cx='39' cy='33' r='1.6'/%3E%3Ccircle cx='45' cy='33' r='1.6'/%3E%3C/g%3E%3Cpath d='M0 29 8 9 16 29z' fill='%23E2A72E'/%3E%3Cpath d='M32 29 40 9 48 29z' fill='%232B8C8C'/%3E%3Cpath d='M24 7l9 11-9 11-9-11z' fill='%23A8322B'/%3E%3Cpath d='M24 12l5 6-5 6-5-6z' fill='%23F6F8F6'/%3E%3Cpath d='M24 15.5l2 2.5-2 2.5-2-2.5z' fill='%23E2A72E'/%3E%3C/svg%3E"); background-size: 28px 21px; background-repeat: repeat-y; }
.approach::before { left: 0; }
.approach::after { right: 0; }
@media (max-width: 680px) { .approach::before, .approach::after { width: 12px; } .section-title.beaded::after { width: 120px; } }

.approach .wrap { padding-inline: 48px; }
.page-hero { border-bottom: 0; }
@media (max-width: 680px) { .approach .wrap { padding-inline: 28px; } }

/* Questions */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-family: var(--serif); font-size: 1.2rem; color: var(--spruce); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 1.6rem; color: var(--gold-deep); font-family: var(--sans); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0 0 20px; color: var(--ink-soft); max-width: 62ch; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }


/* Review fixes (v1.2) */
h3 { font-family: var(--sans); font-weight: 700; font-size: 1.15rem; color: var(--spruce); }
.steps li::before { font-size: 2rem; }
.method-steps li::before { font-size: 2.2rem; }
.approach::before, .approach::after { display: none; }
.approach .wrap { padding-inline: 24px; }
.package { border-top: 5px solid var(--gold); padding-top: 24px; display: flex; flex-direction: column; }
.package::before { display: none; }
.package p:last-of-type { margin-bottom: 18px; }
.package .btn { margin-top: auto; align-self: flex-start; }
.package.quote .price { font-size: 1.4rem; }
.free-line { font-weight: 700; color: var(--spruce); margin-bottom: 18px; }
.t-seams line { stroke: #C9B48E; stroke-width: 1.5; }
.t-flap { fill: #DCC9A4; stroke: #7A5634; stroke-width: 2; stroke-linejoin: round; }
.t-lbl { font-size: 17px; }
.hero-call a { white-space: nowrap; }
.foot-base { padding-bottom: 8px; }
.foot-base .land { padding-bottom: 6px; }
.page-hero-grid { display: grid; grid-template-columns: 1fr 300px; gap: 32px 56px; align-items: center; }
.hero-offer { background: var(--spruce); color: #DCE6DE; border-radius: 14px; padding: 22px 22px 18px; }
.hero-offer .offer-big { font-family: var(--serif); font-size: 1.6rem; color: var(--birch); margin: 0 0 6px; line-height: 1.15; }
.hero-offer p { margin: 0 0 14px; font-size: 1rem; }
.hero-offer .offer-call { margin: 10px 0 0; font-size: .95rem; color: #C9D8CE; }
@media (max-width: 900px) { .page-hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 680px) {
	.hero .tipi-panel { display: none; }
	.hero { padding-bottom: 40px; }
}

.site-footer .sister { font-size: .95rem; }
.site-footer .sister a { text-decoration: underline; }
