﻿/*
Theme Name:  CTC Starter
Theme URI:   https://www.cheapteflcourses.com/
Author:      CheapTEFLcourses
Description: A plain block-friendly theme for school reviews, ratings and the blog. One column of
             reading, one column of facts, no page builder, no bundled framework.
Version:     0.5.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License:     GPL-2.0-or-later
Text Domain: ctc-starter
Tags:        one-column, two-columns, custom-menu, featured-images, translation-ready
*/

/* Fonts are self-hosted in assets/fonts/ (Fredoka, Nunito Sans, Caveat - SIL OFL).
   This @import stays above every style rule; comments may precede it. */
@import url('assets/fonts/fonts.css');

/* ---------------------------------------------------------------------
   Tokens

   Colours are the approved "palette B, tuned to the logo" set from
   ctc-migration/design-preview/ (logo-orange #ffac00 / #ff9217, cream paper
   #fffaf1, palm green #005548, logo maroon #620000).

   Old token names are kept working: anything already referring to --ink,
   --paper, --card, --line, --accent, --accent-soft, --star, --warn,
   --paper-2, --paper-3, --brand, --sun, --green, --radius, --measure,
   --shadow still resolves. Only the values changed, plus new shape and
   type tokens.
   --------------------------------------------------------------------- */
:root {
	/* paper + ink */
	--paper: #fffaf1;
	--paper-2: #fff6e6;
	--paper-3: #f6ecd9;
	--card: #ffffff;
	--ink: #2a2118;
	--ink-soft: #5b4c3c;
	--ink-3: #8c7c69;
	--line: #e6d8c2;
	--line-2: #f0e5d2;

	/* brand */
	--brand: #ffac00;
	--brand-2: #ffb601;
	--sun: #ffc93c;
	--accent: #ff9217;
	--accent-soft: #ffe6cf;
	--green: #005548;
	--green-2: #01483b;
	--green-soft: #e2efe9;
	--maroon: #620000;
	--grape: #4a3cae;
	--link: var(--green);

	/* signals */
	--star: #a8720d;
	--warn: #c9a227;
	--bad: #c0392b;
	--ok: #2f855a;

	/* score bands (see includes/score-bands.php on the server) */
	--band-col: var(--green);
	--band-soft: var(--green-soft);
	--on-band: var(--paper);

	/* type */
	--display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
	--read: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
	--hand: "Caveat", "Segoe Script", cursive;

	/* shape */
	--radius: 14px;
	--radius-sm: 8px;
	--blob: 26px 32px 24px 36px / 34px 24px 38px 26px;
	--blob-2: 38px 22px 34px 20px / 22px 40px 20px 34px;
	--shadow: 0 1px 2px rgba(42, 33, 24, .05), 0 6px 18px rgba(42, 33, 24, .05);
	--sticker: 5px 6px 0 rgba(74, 60, 174, .13);
	--sticker-sm: 3px 4px 0 rgba(74, 60, 174, .12);

	/* width */
	--wide: 78rem;
	--measure: 42rem;
	--side: 21rem;

	/* decorative fills */
	--jam: repeating-linear-gradient(38deg, var(--brand) 0 7px, var(--grape) 7px 14px);
	--squiggle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='8' viewBox='0 0 120 8'%3E%3Cpath d='M0 5.5 Q15 1.5 30 5.5 T60 5.5 T90 5.5 T120 5.5' fill='none' stroke='%23e6d8c2' stroke-width='2'/%3E%3C/svg%3E");
}

.band-hi  { --band-col: var(--green); --band-soft: var(--green-soft); --on-band: var(--paper); }
.band-mid { --band-col: var(--brand); --band-soft: #fff1cf; --on-band: var(--ink); }
.band-low { --band-col: var(--accent); --band-soft: var(--accent-soft); --on-band: var(--ink); }
.band-bad { --band-col: var(--bad);   --band-soft: #fbe1dc; --on-band: var(--paper); }

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 17.5px/1.7 var(--read);
	word-break: break-word;
}

h1, h2, h3, h4 {
	font-family: var(--display);
	font-weight: 600;
	line-height: 1.16;
	letter-spacing: -0.01em;
	margin: 1.5em 0 .45em;
	color: var(--ink);
	text-wrap: balance;
}

h1 { font-size: 2.5rem; font-weight: 700; margin-top: 0; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

a { color: var(--link); text-underline-offset: .2em; }
a:hover { color: var(--accent); }

p, ul, ol { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.35em; }
li { margin: 0 0 .35em; }

img { max-width: 100%; height: auto; }

hr {
	border: 0; height: 9px; margin: 2.2rem 0;
	background: var(--squiggle) repeat-x left center;
	background-size: 120px 9px;
}

small, .ctc-meta, .ctc-fine { color: var(--ink-soft); font-size: .84rem; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
	left: .5rem; top: .5rem; z-index: 100;
	background: var(--card); color: var(--ink);
	padding: .5rem .9rem; border-radius: var(--radius-sm);
	box-shadow: var(--sticker-sm);
}

/* ---------------------------------------------------------------------
   Masthead, shell, footer
   --------------------------------------------------------------------- */
.ctc-header {
	background: var(--paper);
	border-bottom: 0;
	padding-bottom: .4rem;
}
.ctc-header::after {
	content: "";
	display: block;
	height: 8px;
	background: var(--squiggle) repeat-x;
	background-size: 120px 8px;
}
.ctc-header .ctc-shell {
	display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.6rem;
	padding-top: 1.1rem; padding-bottom: 1rem;
}
.ctc-site-name {
	font-family: var(--display);
	font-size: 1.7rem; font-weight: 700; letter-spacing: -.02em;
	line-height: 1.05;
}
.ctc-site-name a { color: var(--maroon); text-decoration: none; }
.ctc-site-name a:hover { color: var(--maroon); }
.ctc-site-tagline {
	color: var(--ink-soft);
	font-family: var(--hand);
	font-size: 1.15rem;
	line-height: 1.2;
	margin: 0 0 0 auto;
	max-width: 20rem;
}

.ctc-nav ul { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.ctc-nav a {
	display: inline-block;
	color: var(--ink); text-decoration: none;
	font-family: var(--display); font-size: .95rem; font-weight: 500;
	padding: .35rem .8rem;
	border: 1px solid transparent; border-radius: 999px;
	background: transparent;
}
.ctc-nav a:hover { color: var(--ink); background: var(--paper-3); }
.ctc-nav .current-menu-item > a,
.ctc-nav .current_page_item > a,
.ctc-nav .current_page_parent > a {
	background: var(--brand); border-color: var(--maroon);
	box-shadow: var(--sticker-sm);
	color: var(--ink);
}

.ctc-shell { max-width: var(--wide); margin: 0 auto; padding: 0 1.1rem; }

main { padding: 2.2rem 0 1rem; }

.ctc-footer {
	margin-top: 3rem;
	padding: 0 0 2.6rem;
	color: var(--ink-soft);
	font-size: .85rem;
	background: var(--paper-2);
}
.ctc-footer::before {
	content: ""; display: block; height: 9px; margin-bottom: 1.8rem;
	background: var(--squiggle) repeat-x left center;
	background-size: 120px 9px;
}
.ctc-footer a { color: var(--ink-soft); }
.ctc-footer nav ul { display: flex; flex-wrap: wrap; gap: .3rem; list-style: none; margin: 0 0 1rem; padding: 0; }
.ctc-footer nav a {
	display: inline-block; text-decoration: none;
	font-family: var(--display); font-size: .88rem;
	padding: .25rem .7rem; border-radius: 999px; border: 1px solid var(--line);
	background: var(--card);
}
.ctc-footer nav a:hover { color: var(--ink); background: var(--paper-3); }

/* ---------------------------------------------------------------------
   Buttons, chips, notes
   --------------------------------------------------------------------- */
.ctc-btn,
.wp-block-button__link,
.ctc-review-submit,
input[type="submit"],
.ctc-review-link,
.ctc-read-more {
	display: inline-block;
	font-family: var(--display); font-size: .95rem; font-weight: 600;
	text-decoration: none;
	padding: .55rem 1.1rem;
	border: 1px solid var(--maroon);
	border-radius: 999px;
	background: var(--card); color: var(--ink);
	box-shadow: var(--sticker-sm);
	cursor: pointer;
}
.ctc-btn:hover,
.wp-block-button__link:hover,
.ctc-review-submit:hover,
input[type="submit"]:hover,
.ctc-review-link:hover,
.ctc-read-more:hover { background: var(--paper-3); color: var(--ink); }

.ctc-btn-primary,
.ctc-review-submit,
input[type="submit"],
.wp-block-button .wp-block-button__link {
	background: var(--accent); border-color: var(--maroon); color: #2a1607;
	box-shadow: var(--sticker);
}
.ctc-btn-primary:hover,
.ctc-review-submit:hover,
input[type="submit"]:hover,
.wp-block-button .wp-block-button__link:hover { background: var(--brand); color: #2a1607; }

.ctc-btn:focus-visible, .ctc-nav a:focus-visible, a:focus-visible {
	outline: 3px solid var(--grape); outline-offset: 2px;
}

.ctc-note,
.ctc-archive-note,
.ctc-block-note,
.ctc-review-note,
.ctc-table-why,
.ctc-disclosure {
	font-family: var(--hand);
	font-size: 1.15rem; line-height: 1.35;
	color: var(--ink-soft);
}

.ctc-block-head { margin: 2.4rem 0 1.1rem; }
.ctc-block-head h2 { margin: 0 0 .2em; }

/* ---------------------------------------------------------------------
   Home page
   --------------------------------------------------------------------- */
.ctc-home { padding-top: 1rem; }

.ctc-hero {
	position: relative;
	display: grid; gap: 1.6rem;
	grid-template-columns: minmax(0, 1.6fr) minmax(15rem, .9fr);
	align-items: start;
	background:
		radial-gradient(120% 140% at 12% 0%, #fff3d8 0%, rgba(255, 243, 216, 0) 62%),
		var(--paper-2);
	border: 1px solid var(--line);
	border-radius: var(--blob);
	padding: 1.8rem 1.9rem 2rem;
	box-shadow: var(--sticker);
	margin-bottom: 2.2rem;
}
.ctc-hero h1 { font-size: 3rem; max-width: 22ch; }
.ctc-hero-copy > p:last-child { margin-bottom: 0; }

.ctc-hero-note { color: var(--ink-soft); }
/* legacy imported content sits inside the hero note; keep it readable and small */
.ctc-hero-note h2, .ctc-hero-note h3, .ctc-hero-note h4 {
	font-size: 1.05rem; font-weight: 600; margin: 1.2em 0 .3em; color: var(--ink-soft);
}
.ctc-hero-note p { margin: 0 0 .7em; }
.ctc-hero-note p > h2:first-child { margin-top: 0; }
.ctc-hero-note ul.wpb-plan-features { list-style: none; padding-left: 0; }
.ctc-hero-note ul.wpb-plan-features li { border-bottom: 1px solid var(--line); padding: .3rem 0; }
.ctc-hero-note button[style] { font-size: 1rem !important; }

.ctc-hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.1rem 0 0; }

.search-form { display: flex; gap: .4rem; margin-top: 1.1rem; }
.search-form .search-field {
	flex: 1 1 12rem; min-width: 0;
	font: inherit; font-size: 1rem;
	padding: .5rem .8rem;
	border: 1px solid var(--line); border-radius: 999px;
	background: var(--card); color: var(--ink);
}
.search-form .search-submit { font-size: .9rem; padding: .45rem 1rem; }

.ctc-hero-stats {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--blob-2);
	padding: 1.1rem 1.2rem;
	box-shadow: var(--sticker-sm);
}
.ctc-hero-stats h2 { font-size: 1.05rem; margin: 0 0 .7rem; text-transform: uppercase; letter-spacing: .04em; }
.ctc-hero-stats dl { margin: 0; }
.ctc-hero-stats dl > div {
	display: flex; align-items: baseline; justify-content: space-between; gap: .8rem;
	padding: .45rem 0; border-bottom: 1px dashed var(--line-2);
}
.ctc-hero-stats dt { color: var(--ink-soft); font-size: .9rem; }
.ctc-hero-stats dd {
	margin: 0; font-family: var(--display); font-size: 1.5rem; font-weight: 700;
	color: var(--green);
}
.ctc-hero-stats .ctc-fine { display: block; margin-top: .6rem; font-family: var(--hand); font-size: 1.05rem; }

/* ranked list on the home page */
.ctc-top-list { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.ctc-top-item {
	display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) auto; gap: .9rem;
	align-items: center;
	padding: .8rem .9rem; margin-bottom: .5rem;
	border: 1px solid var(--line); border-radius: var(--radius);
	background: var(--card);
}
.ctc-top-item:hover { background: var(--paper-2); }
.ctc-top-rank {
	font-family: var(--display); font-size: 1.15rem; font-weight: 700;
	width: 2.2rem; height: 2.2rem; line-height: 2.2rem; text-align: center;
	border-radius: 999px; background: var(--sun); color: var(--ink);
}
.ctc-top-body { min-width: 0; }
.ctc-top-name { font-family: var(--display); font-size: 1.15rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.ctc-top-name:hover { color: var(--accent); }
.ctc-top-meta { display: block; color: var(--ink-soft); font-size: .82rem; }
.ctc-top-right { display: flex; align-items: center; gap: .7rem; }
.ctc-top-score {
	font-family: var(--display); font-size: 1.2rem; font-weight: 700;
	padding: .25rem .7rem; border-radius: var(--radius-sm);
	background: var(--band-soft); color: var(--band-col);
}

/* how-we-rate / how-it-works cards */
.ctc-how-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.ctc-how-card {
	background: var(--card); border: 1px solid var(--line);
	border-radius: var(--blob); padding: 1.1rem 1.2rem;
	box-shadow: var(--sticker-sm);
}
.ctc-how-card h3 { margin-top: 0; }
.ctc-how-card:nth-child(2n) { transform: rotate(-.4deg); }
.ctc-how-card:nth-child(3n) { transform: rotate(.5deg); }

.ctc-cta {
	margin: 2.6rem 0 0; padding: 1.6rem 1.8rem;
	background: var(--green-2); color: var(--paper);
	border-radius: var(--blob);
	box-shadow: var(--sticker);
	text-align: center;
}
.ctc-cta a { background: var(--sun); border-color: var(--green-2); }

/* ---------------------------------------------------------------------
   Post cards and archives
   --------------------------------------------------------------------- */
.ctc-home-grid,
.ctc-card-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); margin-bottom: 1.6rem; }

.ctc-card {
	border: 1px solid var(--line); border-radius: var(--radius);
	padding: 1rem 1.1rem 1.2rem; margin: 0;
	background: var(--card);
}
.ctc-card h2 { font-size: 1.25rem; margin: 0 0 .35em; }
.ctc-card h2 a { color: var(--ink); text-decoration: none; }
.ctc-card h2 a:hover { color: var(--accent); }
.ctc-card .ctc-meta { display: block; margin-bottom: .6rem; }
.ctc-card img, .ctc-card-thumb {
	display: block; width: 100%; height: auto; margin: 0 0 .8rem;
	aspect-ratio: 16 / 9; object-fit: cover;
	border-radius: var(--radius-sm); border: 1px solid var(--line-2);
}
.ctc-card .alignwide, .ctc-card .alignfull { border-radius: var(--radius-sm); }
.ctc-read-more { margin-top: .7rem; font-size: .85rem; padding: .35rem .8rem; }

.ctc-home-card { box-shadow: var(--sticker-sm); }
.ctc-home-card:hover { transform: translateY(-2px); box-shadow: var(--sticker); }

.ctc-archive-title { margin-bottom: .2em; }

/* the posts index emits .ctc-card articles directly inside main: no wrapper
   element exists to grid, so the grid goes on main and every non-card child
   is told to span the full width instead of becoming a column */
body.blog main, body.archive main {
	display: grid;
	gap: 1.4rem;
	grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
}
body.blog h1, body.archive h1,
.ctc-archive-note, .pagination { grid-column: 1 / -1; }

.pagination, .navigation { margin: 2rem 0; }
/* the theme wraps nav.pagination around WP's own nav.navigation.pagination;
   style only the inner .nav-links so the double wrapper does not double-frame */
.pagination > .navigation { border: 0; padding: 0; margin: 0; }
.nav-links { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.page-numbers {
	display: inline-block; min-width: 2.2rem; text-align: center;
	padding: .35rem .55rem;
	border: 1px solid var(--line); border-radius: var(--radius-sm);
	background: var(--card); color: var(--ink); text-decoration: none;
	font-family: var(--display); font-size: .9rem;
}
a.page-numbers:hover { background: var(--paper-3); color: var(--ink); }
span.page-numbers.current { background: var(--brand); border-color: var(--maroon); font-weight: 700; }
span.page-numbers.dots { border: 0; background: none; }

/* ---------------------------------------------------------------------
   Stars and meters
   --------------------------------------------------------------------- */
.ctc-stars { display: inline-flex; gap: .1rem; align-items: baseline; white-space: nowrap; }
.ctc-star { font-size: 1.05rem; line-height: 1; }
.ctc-star.on { color: var(--star); }
.ctc-star.off { color: var(--line); }
.ctc-votes { color: var(--ink-soft); font-size: .78rem; margin-left: .35rem; }
.ctc-stars-none { color: var(--ink-3); font-size: .8rem; font-style: italic; }

.accreditation-meter-container {
	position: relative; height: .9rem; margin: 0 0 .3rem;
	border: 1px solid var(--line); border-radius: 999px;
	background: var(--paper-3); overflow: hidden;
}
.accreditation-meter-fill { display: block; height: 100%; background: var(--warn); }
.accreditation-meter-container.green  .accreditation-meter-fill { background: var(--green); }
.accreditation-meter-container.yellow .accreditation-meter-fill { background: var(--sun); }
.accreditation-meter-container.red    .accreditation-meter-fill { background: var(--bad); }
.accreditation-meter-text {
	position: absolute; right: .45rem; top: 50%; transform: translateY(-50%);
	font-family: var(--display); font-size: .74rem; font-weight: 700; color: var(--ink);
	background: var(--card); border-radius: 999px; padding: 0 .35rem;
}
.ctc-acc-breakdown { list-style: none; margin: .5rem 0 0; padding: 0; font-size: .85rem; }
.ctc-acc-breakdown li { padding: .25rem 0; border-bottom: 1px dashed var(--line-2); }
.ctc-acc-score { color: var(--ink-soft); }

/* ---------------------------------------------------------------------
   Ranking table  (includes/ranking.php output)

   The table is output without a colgroup, so column widths are set on the
   header cells. Columns, in the order the plugin emits them:
   school | hours | price | visitor stars | our score | your review | accreditation | visit
   --------------------------------------------------------------------- */
.ctc-ranking {
	width: 100%; border-collapse: separate; border-spacing: 0;
	background: var(--card);
	border: 1px solid var(--line); border-radius: var(--radius);
	font-size: .92rem;
}
.ctc-ranking thead th {
	position: sticky; top: 0; z-index: 2;
	background: var(--paper-2); color: var(--ink);
	font-family: var(--display); font-size: .82rem; font-weight: 600;
	text-align: left; text-transform: uppercase; letter-spacing: .03em;
	padding: .6rem .55rem;
	border-bottom: 2px solid var(--maroon);
}
.ctc-ranking thead th a { color: var(--ink); text-decoration: none; display: block; }
.ctc-ranking thead th a:hover { color: var(--accent); }
.ctc-ranking thead th a span[aria-hidden="true"] { color: var(--accent); font-size: .8rem; }
.ctc-ranking thead th.ctc-plain-col { color: var(--ink-soft); }

/* widths: 1 school, 2 hours, 3 price, 4 stars, 5 score, 6 review, 7 accreditation, 8 visit */
.ctc-ranking th:nth-child(1), .ctc-ranking td:nth-child(1) { width: 22%; }
.ctc-ranking th:nth-child(2), .ctc-ranking td:nth-child(2) { width: 7%; }
.ctc-ranking th:nth-child(3), .ctc-ranking td:nth-child(3) { width: 8%; }
.ctc-ranking th:nth-child(4), .ctc-ranking td:nth-child(4) { width: 10%; }
.ctc-ranking th:nth-child(5), .ctc-ranking td:nth-child(5) { width: 8%; }
.ctc-ranking th:nth-child(6), .ctc-ranking td:nth-child(6) { width: 11%; }
.ctc-ranking th:nth-child(7), .ctc-ranking td:nth-child(7) { width: 20%; }
.ctc-ranking th:nth-child(8), .ctc-ranking td:nth-child(8) { width: 14%; }

.ctc-ranking tbody td {
	padding: .65rem .55rem; vertical-align: middle;
	border-bottom: 1px solid var(--line-2);
}
/* no zebra stripes here: the score band already carries the grouping */
.ctc-ranking tbody tr:hover td { background: var(--paper-2); }

.ctc-school-cell a { font-family: var(--display); font-size: 1.02rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.ctc-school-cell a:hover { color: var(--accent); }
.ctc-loc { display: block; color: var(--ink-soft); font-size: .78rem; }
.ctc-unreviewed { display: block; color: var(--ink-3); font-size: .78rem; font-style: italic; }
.ctc-closed-tag {
	display: inline-block; margin-left: .4rem; padding: .1rem .5rem;
	border: 1px solid var(--line); border-radius: 999px;
	background: var(--paper-3); color: var(--ink-soft);
	font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
	vertical-align: middle;
}

.ctc-hours { color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* money first: price is the loudest number in the row */
.ctc-price { font-family: var(--display); font-size: 1.15rem; font-weight: 700; color: var(--maroon); white-space: nowrap; }
.ctc-price-none { font-family: var(--read); font-size: .8rem; font-weight: 400; color: var(--ink-3); }

.ctc-score {
	font-family: var(--display); font-size: 1.2rem; font-weight: 700;
	text-align: center; white-space: nowrap;
	background: var(--band-soft); color: var(--band-col);
}

.ctc-review-col { font-size: .85rem; }
.ctc-review-col .ctc-review-link { font-size: .8rem; padding: .3rem .7rem; }
.ctc-visit-col .ctc-visit-link { font-size: .82rem; }

/* score bands on the score cell */
.ctc-score.band-hi  { box-shadow: inset 0 0 0 1px var(--green); }
.ctc-score.band-mid { box-shadow: inset 0 0 0 1px var(--brand); }
.ctc-score.band-low { box-shadow: inset 0 0 0 1px var(--accent); }
.ctc-score.band-bad { box-shadow: inset 0 0 0 1px var(--bad); }

.ctc-acc-col { font-size: .8rem; }
.ctc-acc-toggle {
	display: inline-block; margin-top: .3rem;
	font-family: var(--display); font-size: .78rem; font-weight: 500;
	color: var(--green); text-decoration: underline; text-underline-offset: .2em;
}
.ctc-acc-toggle:hover { color: var(--accent); }

tr.ctc-acc-detail-row { display: none; }
tr.ctc-acc-detail-row.is-open { display: table-row; }
tr.ctc-acc-detail-row > td {
	background: var(--paper-2);
	border-bottom: 1px solid var(--line);
	padding: .9rem 1rem 1.1rem;
}
.ctc-acc-row-score { font-size: .9rem; color: var(--ink-soft); margin-bottom: .5rem; }
.ctc-acc-detail-list { list-style: none; margin: 0 0 .7rem; padding: 0; }
.ctc-acc-detail-list li {
	display: grid; grid-template-columns: minmax(7rem, auto) auto minmax(0, 1fr); gap: .6rem;
	align-items: baseline;
	padding: .35rem 0; border-top: 1px dashed var(--line);
	font-size: .86rem;
}
.ctc-acc-detail-list strong { font-family: var(--display); }
.ctc-acc-points { color: var(--green); font-weight: 700; white-space: nowrap; }
.ctc-acc-row-desc { color: var(--ink-soft); }
.ctc-acc-close { font-family: var(--display); font-size: .82rem; }

/* band legend, score explainer blocks */
.ctc-band-legend { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: .4rem; }
.ctc-band-legend li {
	display: flex; gap: .6rem; align-items: baseline;
	padding: .5rem .7rem; border-radius: var(--radius-sm);
	background: var(--band-soft); color: var(--band-col);
	font-size: .88rem;
}
.ctc-band-legend strong { font-family: var(--display); }

/* ---------------------------------------------------------------------
   School page  (single-ctc_school.php)

   The money layout - price and buy button above the fold - is done here
   with flex order, because the plugin already outputs the price paragraph
   and the affiliate button; they just sit after the article body. Reordering
   them in CSS avoids touching the PHP.
   --------------------------------------------------------------------- */
.ctc-school { margin-bottom: 2rem; }

.ctc-school-head {
	display: grid; gap: 1.2rem 1.8rem;
	grid-template-columns: minmax(0, 1fr) minmax(17rem, 22rem);
	align-items: start;
	padding: 1.2rem 1.4rem 1.4rem;
	border: 1px solid var(--line); border-radius: var(--blob);
	background:
		radial-gradient(120% 130% at 100% 0%, #fff3d8 0%, rgba(255, 243, 216, 0) 60%),
		var(--paper-2);
	box-shadow: var(--sticker-sm);
	margin-bottom: 1.4rem;
}
.ctc-school-head h1 { font-size: 2.3rem; margin: .2em 0 0; }

.ctc-score-panel {
	margin: 0; padding: 1rem 1.1rem 1.2rem;
	background: var(--card);
	border: 1px solid var(--line);
	border-left: 6px solid var(--band-col);
	border-radius: var(--radius);
}
.ctc-score-heading {
	margin: 0 0 .4rem; font-size: .82rem; font-weight: 600;
	text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft);
}
.ctc-score-heading a { color: var(--ink-soft); text-decoration: underline dotted; }
.ctc-score-overall { margin: 0; display: flex; align-items: baseline; gap: .3rem; }
.ctc-score-overall strong {
	font-family: var(--display); font-size: 3.1rem; font-weight: 700; line-height: 1;
	color: var(--band-col);
}
.ctc-score-overall span { color: var(--ink-soft); font-size: 1rem; }
.ctc-score-band {
	display: inline-block; margin: .3rem 0 .8rem; padding: .2rem .7rem;
	background: var(--band-col); color: var(--on-band);
	border-radius: 999px;
	font-family: var(--display); font-size: .82rem; font-weight: 600;
	text-transform: uppercase; letter-spacing: .05em;
}

.ctc-score-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.ctc-score-table th {
	text-align: left; font-weight: 600; color: var(--ink-soft);
	padding: .35rem .4rem .35rem 0; width: 40%;
}
.ctc-score-table td { padding: .35rem .2rem; }
.ctc-bar {
	display: block; height: .75rem; min-width: 5rem;
	background: var(--paper-3); border: 1px solid var(--line);
	border-radius: 999px; overflow: hidden;
}
.ctc-bar-fill { display: block; height: 100%; background: var(--band-col); }
.ctc-bar-num {
	font-family: var(--display); font-weight: 700; font-size: .95rem;
	text-align: right; width: 3rem; color: var(--ink);
}
.ctc-score-visitors { margin: .8rem 0 0; font-size: .85rem; color: var(--ink-soft); }

/* two columns, reading left, facts right */
.ctc-school-layout {
	display: grid; gap: 1.6rem;
	grid-template-columns: minmax(0, 1fr) var(--side);
	align-items: start;
}
.ctc-school-main { display: flex; flex-direction: column; min-width: 0; }

/* buy box: three sibling paragraphs become one joined panel */
.ctc-school-main .ctc-aff-price,
.ctc-school-main .ctc-aff,
.ctc-school-main .ctc-disclosure { margin: 0; }
.ctc-school-main .ctc-aff-price {
	order: -3;
	display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1rem;
	padding: .9rem 1.1rem;
	background: var(--card);
	border: 1px solid var(--line); border-bottom: 0;
	border-radius: var(--radius) var(--radius) 0 0;
}
.ctc-aff-price-label {
	font-family: var(--display); font-size: .8rem; font-weight: 600;
	text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft);
}
.ctc-aff-price-value {
	font-family: var(--display); font-size: 2.1rem; font-weight: 700; line-height: 1;
	color: var(--maroon);
}
.ctc-school-main .ctc-aff {
	order: -2; padding: .9rem 1.1rem;
	background: var(--card);
	border: 1px solid var(--line); border-bottom: 0;
	display: flex; align-items: center;
}
.ctc-school-main .ctc-aff .ctc-aff-btn {
	background: var(--accent); border-color: var(--maroon); color: #2a1607;
	box-shadow: var(--sticker);
	font-size: 1.05rem; padding: .7rem 1.4rem;
}
.ctc-school-main .ctc-aff .ctc-aff-btn:hover { background: var(--brand); }
.ctc-school-main .ctc-disclosure {
	order: -1; padding: .5rem 1.1rem .7rem;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 0 0 var(--radius) var(--radius);
	font-size: 1rem;
}
.ctc-aff-price, .ctc-aff, .ctc-disclosure { break-inside: avoid; }

/* wide screens: price and buy button share one row, note sits under them */
@media (min-width: 701px) {
	.ctc-school-main {
		display: grid;
		grid-template-columns: minmax(0, 1fr) max-content;
		grid-template-areas:
			"buybox buybtn"
			"disc   disc"
			"body   body"
			"pros   pros"
			"rev    rev"
			"arts   arts";
	}
	.ctc-school-main .ctc-aff-price {
		grid-area: buybox;
		border-right: 0; border-bottom: 0;
		border-radius: var(--radius) 0 0 0;
	}
	.ctc-school-main .ctc-aff {
		grid-area: buybtn;
		border-left: 0; border-bottom: 0;
		border-radius: 0 var(--radius) 0 0;
		padding: 1rem 1.2rem;
	}
	.ctc-school-main .ctc-disclosure {
		grid-area: disc;
		border-top: 0;
		border-radius: 0 0 var(--radius) var(--radius);
	}
	.ctc-school-body { grid-area: body; }
	.ctc-proscons { grid-area: pros; }
	.ctc-school-reviews { grid-area: rev; }
	.ctc-school-articles { grid-area: arts; }
}

.ctc-school-body { order: 1; }
.ctc-proscons { order: 2; }
.ctc-school-reviews { order: 3; }
.ctc-school-articles { order: 4; }

/* imported content carries old Word/WPBakery leftovers */
.ctc-school-body h2, .ctc-school-body h3 { clear: both; }
.ctc-school-body [style*="clear"] { clear: both; }
.ctc-school-body [style*="pt"] { font-size: inherit !important; font-family: inherit !important; }
.ctc-school-body p > strong:first-child { color: var(--ink); }
.ctc-school-body img.alignright { float: right; margin: 0 0 1rem 1.3rem; max-width: 42%; border-radius: var(--radius-sm); }
.ctc-school-body img.alignleft { float: left; margin: 0 1.3rem 1rem 0; max-width: 42%; border-radius: var(--radius-sm); }
.ctc-school-body img.aligncenter { display: block; margin: 1.2rem auto; border-radius: var(--radius-sm); }

.ctc-proscons { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; margin: 1.6rem 0; }
.ctc-pros, .ctc-cons {
	padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius);
	background: var(--card);
}
.ctc-pros { border-top: 5px solid var(--green); }
.ctc-cons { border-top: 5px solid var(--accent); }
.ctc-pros h3, .ctc-cons h3 { margin: 0 0 .5rem; font-size: 1.05rem; }
.ctc-pros ul, .ctc-cons ul { margin: 0; padding-left: 1.1rem; font-size: .95rem; }

/* visitor reviews */
.ctc-school-reviews { margin-top: 2rem; }
.ctc-school-reviews h2 { margin-top: 0; }
.ctc-no-reviews { color: var(--ink-soft); font-family: var(--hand); font-size: 1.2rem; }

.ctc-dist { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.ctc-dist-row {
	display: grid; grid-template-columns: 2.8rem minmax(0, 1fr) 1.8rem; gap: .6rem;
	align-items: center; font-size: .78rem; color: var(--ink-soft);
	padding: .18rem 0;
}
.ctc-dist-bar { display: block; height: .6rem; background: var(--paper-3); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.ctc-dist-bar > span { display: block; height: 100%; background: var(--bad); }
.ctc-dist-row.s5 .ctc-dist-bar > span,
.ctc-dist-row.s4 .ctc-dist-bar > span { background: var(--green); }
.ctc-dist-row.s3 .ctc-dist-bar > span { background: var(--sun); }
.ctc-dist-row.s2 .ctc-dist-bar > span { background: var(--accent); }
.ctc-dist-count { text-align: right; font-variant-numeric: tabular-nums; }

.ctc-reviews { list-style: none; margin: 0 0 1.6rem; padding: 0; }
.ctc-review {
	padding: 1rem 1.1rem; margin-bottom: .8rem;
	border: 1px solid var(--line); border-radius: var(--radius);
	background: var(--card);
}
.ctc-review-head { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.ctc-review-head strong { font-family: var(--display); font-size: 1.05rem; }
.ctc-review-date { color: var(--ink-soft); font-size: .78rem; }
.ctc-review-pros, .ctc-review-cons { font-size: .93rem; margin-bottom: .4rem; }
.ctc-review-pros strong { color: var(--green); }
.ctc-review-cons strong { color: var(--accent); }
.ctc-review-body { font-size: .96rem; }

/* review form - the stars are real radio inputs, so they stay keyboard reachable */
.ctc-review-form {
	padding: 1.2rem 1.3rem 1.4rem;
	border: 1px solid var(--line); border-radius: var(--blob);
	background: var(--paper-2);
	box-shadow: var(--sticker-sm);
}
.ctc-review-form h3 { margin-top: 0; }
.ctc-review-form p { margin: 0 0 .8rem; }
.ctc-review-form input[type="text"],
.ctc-review-form input[type="email"],
.ctc-review-form input[type="url"],
.ctc-review-form textarea {
	width: 100%; font: inherit; font-size: 1rem;
	padding: .55rem .7rem;
	border: 1px solid var(--line); border-radius: var(--radius-sm);
	background: var(--card); color: var(--ink);
}
.ctc-review-form textarea { min-height: 7rem; }
.ctc-review-form input:focus, .ctc-review-form textarea:focus {
	outline: 2px solid var(--accent); border-color: var(--accent);
}
.ctc-review-form label { font-size: .9rem; font-weight: 700; display: block; margin-bottom: .2rem; }
.ctc-hp { position: absolute; left: -9999px; }

.ctc-review-rating { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
/* The stars are real radio inputs followed by their labels, in DOM order 5..1.
   The label text is replaced by a star glyph; checking a star lights it and the
   ones below it, because every following label in source order is lit. */
.ctc-stars-input { display: inline-flex; gap: .15rem; }
.ctc-stars-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ctc-stars-input label {
	display: inline-block; font-size: 0; line-height: 1; margin: 0;
	cursor: pointer;
}
.ctc-stars-input label::before {
	content: "\2605";
	display: block; font-size: 1.7rem; line-height: 1;
	color: var(--line);
}
.ctc-stars-input input:checked ~ label::before,
.ctc-stars-input label:hover::before,
.ctc-stars-input label:hover ~ label::before { color: var(--star); }
.ctc-stars-input input:focus-visible + label::before { outline: 3px solid var(--grape); outline-offset: 2px; border-radius: 4px; }

.ctc-article-list { list-style: none; margin: 1.6rem 0 0; padding: 0; }
.ctc-article-list li { padding: .55rem 0; border-bottom: 1px solid var(--line-2); }
.ctc-article-list a { font-family: var(--display); font-weight: 600; }

/* side column */
.ctc-school-side { display: grid; gap: 1rem; }
.ctc-side-card {
	padding: 1rem 1.1rem;
	border: 1px solid var(--line); border-radius: var(--radius);
	background: var(--card);
	box-shadow: var(--sticker-sm);
}
.ctc-side-card h2 { font-size: 1.1rem; margin: 0 0 .7rem; }
.ctc-side-card p:last-child { margin-bottom: 0; }
.ctc-side-card .ctc-aff-price { display: flex; flex-direction: column; }

.ctc-facts { width: 100%; border-collapse: collapse; font-size: .88rem; }
.ctc-facts th { text-align: left; font-weight: 600; color: var(--ink-soft); padding: .4rem .6rem .4rem 0; width: 38%; vertical-align: top; }
.ctc-facts td { padding: .4rem 0; border-bottom: 1px dashed var(--line-2); }
.ctc-facts tr:last-child td { border-bottom: 0; }
.ctc-social { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .8rem; }
.ctc-social a {
	font-family: var(--display); font-size: .8rem; text-decoration: none;
	padding: .25rem .7rem; border: 1px solid var(--line); border-radius: 999px;
	background: var(--paper-2); color: var(--ink);
}
.ctc-social a:hover { background: var(--paper-3); color: var(--ink); }

/* ---------------------------------------------------------------------
   Blog posts
   --------------------------------------------------------------------- */
.ctc-page-ranking main.ctc-shell, .ctc-page-school main.ctc-shell { max-width: 74rem; }

.ctc-post { max-width: var(--measure); }
.ctc-post h1 { font-size: 2.4rem; }
.ctc-post .ctc-meta { display: block; margin: 0 0 1.4rem; }
.ctc-post > img, .ctc-post .wp-post-image { border-radius: var(--radius); margin-bottom: 1.4rem; }
.ctc-post h2 { margin-top: 1.8em; }

/* block content widths */
.alignwide { max-width: 62rem; }
.alignfull { max-width: none; }
.wp-block-quote, blockquote {
	margin: 1.4rem 0; padding: .8rem 1.1rem;
	border-left: 5px solid var(--accent); background: var(--paper-2);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	font-family: var(--hand); font-size: 1.3rem; line-height: 1.35; color: var(--ink);
}
.wp-block-table, .wp-block-table table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.wp-block-table th, .wp-block-table td { border: 1px solid var(--line); padding: .45rem .6rem; }
.wp-block-table thead th { background: var(--paper-2); font-family: var(--display); }
code { font-size: .92em; background: var(--paper-3); padding: .1em .35em; border-radius: 4px; }
pre { background: var(--paper-3); padding: .8rem 1rem; border-radius: var(--radius-sm); overflow: auto; }

.ctc-related { margin-top: 2.4rem; }
.ctc-related > h2 { margin-top: 0; }
.ctc-related .ctc-card { box-shadow: var(--sticker-sm); }

/* comments */
.ctc-comments { margin-top: 2.4rem; max-width: var(--measure); }
.comment-list { list-style: none; margin: 0 0 1.6rem; padding: 0; }
.comment-list > li {
	padding: 1rem 1.1rem; margin-bottom: .8rem;
	border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
}
.comment-metadata { font-size: .78rem; color: var(--ink-soft); }
.comment-content { font-size: .96rem; }
.comment-respond h2 { margin-top: 0; }
#commentform p { margin: 0 0 .8rem; }
#commentform label { display: block; font-size: .9rem; font-weight: 700; margin-bottom: .2rem; }
#commentform input[type="text"], #commentform input[type="email"],
#commentform input[type="url"], #commentform textarea {
	width: 100%; font: inherit; font-size: 1rem;
	padding: .55rem .7rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
	background: var(--card); color: var(--ink);
}
#commentform textarea { min-height: 8rem; }
#commentform .comment-form-author, #commentform .comment-form-email, #commentform .comment-form-url {
	display: grid; gap: .4rem;
}
#commentform input:focus, #commentform textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
#cancel-comment-reply-link { font-family: var(--display); font-size: .85rem; margin-left: .6rem; }

/* ---------------------------------------------------------------------
   Aliases and small fixes

   Selectors the theme and plugin output that need a rule of their own, plus
   class aliases for the WordPress comment form (the id alone already matches
   the live form, but a child theme or a comment form elsewhere would not).
   --------------------------------------------------------------------- */
.ctc-home-block { margin: 0 0 2.4rem; }

.ctc-dist-label { color: var(--ink-soft); white-space: nowrap; }

/* in-page jumps (#leave-a-review, #visitor-reviews, #comments) should not land
   under the sticky table header */
#visitor-reviews, #leave-a-review, #comments { scroll-margin-top: 1.2rem; }

.ctc-meta .entry-date { color: var(--ink-soft); }

.comment-form p { margin: 0 0 .8rem; }
.comment-form label { display: block; font-size: .9rem; font-weight: 700; margin-bottom: .2rem; }
.comment-form input[type="text"], .comment-form input[type="email"],
.comment-form input[type="url"], .comment-form textarea {
	width: 100%; font: inherit; font-size: 1rem;
	padding: .55rem .7rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
	background: var(--card); color: var(--ink);
}
.comment-form textarea { min-height: 8rem; }
.comment-form input:focus, .comment-form textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.comment-form .required, .required-field-message .required { color: var(--bad); }
#cancel-comment-reply-link { font-family: var(--display); font-size: .85rem; margin-left: .6rem; }

/* ---------------------------------------------------------------------
   Homepage structure (v0.5.0)

   front-page.php and header.php now emit the sections the approved mockup
   draws: a hero with a score stamp and four score bars beside it, three
   doorways, the counted price band with its price scale and three cheap picks,
   the ranked list painted in score bands with the words beside the colours,
   the plain review band, and the blog cards pinned with tape.

   Everything here is new markup from the new templates. Nothing above this
   point was rewritten or removed. The one exception is the masthead squiggle:
   it used to be painted by .ctc-header::after, it is real markup now
   (.ctc-wavy in header.php), so that one existing rule is switched off below
   and no rule is deleted.

   This section sits just before the Narrow screens block on purpose. The
   breakpoints below stay the last word on small screens, which is how the rest
   of this file already behaves; the mobile rules for these new parts were added
   inside the existing 1040 / 900 / 700 / 480 blocks rather than in new ones.
   --------------------------------------------------------------------- */

/* The squiggle is markup now. Turn the pseudo-element off so the masthead does
   not draw the same rule twice. */
.ctc-header::after { display: none; }

.ctc-wavy {
	height: 10px;
	margin: .3rem 0 0;
	background: radial-gradient(circle at 5px 8px, transparent 4px, var(--line) 4px, var(--line) 5.5px, transparent 5.5px) repeat-x;
	background-size: 14px 10px;
}

/* --- masthead: the mark, the name, and chips -------------------------- */
.ctc-brand { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.ctc-brand .custom-logo-link { display: inline-block; line-height: 0; }
.ctc-brand img,
.ctc-brand-mark { width: 44px; height: 44px; flex: none; border-radius: 12px; }
.ctc-brand-mark { display: inline-block; box-shadow: var(--sticker-sm); }
.ctc-brand-text { min-width: 0; }
/* the tagline used to be a flex item of its own; it belongs to the name now */
.ctc-brand-text .ctc-site-tagline { margin: .15rem 0 0; max-width: 22rem; }

.ctc-header .ctc-nav a {
	border: 2px solid var(--ink);
	border-radius: 999px;
	background: var(--paper-2);
	padding: .35rem .85rem;
}
.ctc-header .ctc-nav li:nth-child(odd) > a { transform: rotate(-1.1deg); }
.ctc-header .ctc-nav li:nth-child(even) > a { transform: rotate(1.1deg); }
.ctc-header .ctc-nav a:hover { background: var(--sun); color: var(--ink); }
.ctc-header .ctc-nav .current-menu-item > a,
.ctc-header .ctc-nav .current_page_item > a,
.ctc-header .ctc-nav .current_page_parent > a {
	background: var(--brand); border-color: var(--ink);
}

/* --- hero: eyebrow, highlighted words, the honest box ----------------- */
/* the slab is wider than the stats panel it replaces, so the hero columns move
   a little; the 900px rule below still stacks them */
.ctc-hero { grid-template-columns: minmax(0, 1.35fr) minmax(17rem, .85fr); }
/* with no score data there is no slab, so the hero takes one column */
.ctc-hero:not(:has(.ctc-slab)) { grid-template-columns: minmax(0, 1fr); }

.ctc-eyebrow {
	display: flex; align-items: center; gap: .6rem;
	font-family: var(--display); font-size: .95rem; color: var(--maroon);
	margin: 0 0 .4rem;
}
.ctc-eyebrow .ctc-doodle { color: var(--accent); flex: none; }

.ctc-hero-title u {
	text-decoration: none;
	background: linear-gradient(transparent 62%, var(--brand) 62%, var(--brand) 92%, transparent 92%);
}

.ctc-hero-lede { font-size: 1.15rem; line-height: 1.45; color: var(--ink-soft); max-width: 44ch; margin: .9rem 0 0; }

.ctc-trust {
	max-width: 46ch;
	margin: 1.2rem 0 0; padding: .9rem 1rem;
	border: 2px dashed var(--green); border-radius: var(--radius);
	background: var(--card);
	font-size: .95rem; line-height: 1.5; color: var(--ink-soft);
}
.ctc-trust b { color: var(--green-2); }

/* The hero carries get_search_form(). WordPress marks that field's label with
   .screen-reader-text and expects the theme to hide it; the 0.3.0 stylesheet
   had such a rule and the reskin stylesheet does not, so "Search for:" is
   drawn as visible text inside the search box. Putting it back. */
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px;
	clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	overflow: hidden; white-space: nowrap;
}

/* --- the slab: score stamp, and the four scores that build it --------- */
.ctc-slab {
	background: var(--card);
	border: 2px solid var(--ink); border-radius: 20px;
	padding: 1.1rem 1.2rem 1.2rem;
	box-shadow: 6px 7px 0 var(--green);
	transform: rotate(.6deg);
}
.ctc-slab-title { font-size: 1.05rem; margin: 0 0 .15rem; }
.ctc-slab-by { font-family: var(--display); font-size: .74rem; letter-spacing: .03em; color: var(--ink-3); margin: 0 0 .8rem; }
.ctc-slab-who { font-family: var(--display); font-size: 1.15rem; margin: 0 0 .9rem; }
.ctc-slab-who a { color: var(--green); text-decoration: none; }
.ctc-slab-who a:hover { text-decoration: underline; }

.ctc-slab-row { display: flex; align-items: center; gap: .9rem; }

.ctc-stamp {
	position: relative; flex: none;
	width: 104px; height: 104px;
	display: grid; place-items: center; text-align: center;
	border: 2px solid var(--ink);
	border-radius: 52% 46% 48% 52% / 46% 54% 44% 56%;
	background: var(--brand); color: var(--ink);
	transform: rotate(-5deg);
}
/* the dashed ring carries the score band, so the band is visible here too */
.ctc-stamp::after {
	content: ""; position: absolute; inset: 6px;
	border: 2px dashed var(--band-col);
	border-radius: inherit; opacity: .8;
}
.ctc-stamp b { display: block; font-family: var(--display); font-size: 2.1rem; line-height: 1; }
.ctc-stamp i { display: block; font-family: var(--hand); font-style: normal; font-size: 1.05rem; color: var(--green-2); }

.ctc-jars { flex: 1; min-width: 0; }
.ctc-jar { margin: 0 0 .55rem; }
.ctc-jar p { display: flex; justify-content: space-between; gap: .5rem; margin: 0 0 .2rem; font-size: .8rem; color: var(--ink-soft); }
.ctc-jar-track { display: block; height: 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.ctc-jar-fill { display: block; height: 100%; background: var(--green); }

/* bar widths come from classes, not from inline styles in a template */
.ctc-w0 { width: 0; }      .ctc-w5 { width: 5%; }    .ctc-w10 { width: 10%; }  .ctc-w15 { width: 15%; }
.ctc-w20 { width: 20%; }   .ctc-w25 { width: 25%; }  .ctc-w30 { width: 30%; }  .ctc-w35 { width: 35%; }
.ctc-w40 { width: 40%; }   .ctc-w45 { width: 45%; }  .ctc-w50 { width: 50%; }  .ctc-w55 { width: 55%; }
.ctc-w60 { width: 60%; }   .ctc-w65 { width: 65%; }  .ctc-w70 { width: 70%; }  .ctc-w75 { width: 75%; }
.ctc-w80 { width: 80%; }   .ctc-w85 { width: 85%; }  .ctc-w90 { width: 90%; }  .ctc-w95 { width: 95%; }
.ctc-w100 { width: 100%; }

.ctc-slab-note { font-family: var(--hand); font-size: 1.2rem; line-height: 1.25; color: var(--green); margin: .8rem 0 0; }

/* --- section headings: the highlighted word, and the in-page jumps ---- */
.ctc-home .ctc-block-head h2 span {
	background: var(--sun); padding: 0 .45rem; border-radius: 5px;
	-webkit-box-decoration-break: clone; box-decoration-break: clone;
}
#ctc-doors, #ctc-cheap, #ctc-top, #ctc-rate, #ctc-reviews, #ctc-blog { scroll-margin-top: 1rem; }

/* The line that closes a section: "See every schoolâ€¦", "All articlesâ€¦".
   .ctc-block-more was used by the 0.4.0 template but had no rule of its own. */
.ctc-block-more { margin: 1rem 0 0; font-size: .92rem; }
.ctc-block-more a { color: var(--accent); font-family: var(--display); }

/* --- three doorways ---------------------------------------------------- */
.ctc-doors { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.ctc-door {
	display: block; color: inherit; text-decoration: none;
	background: var(--card);
	border: 2px solid var(--ink); border-radius: 18px;
	padding: 1.1rem 1.15rem 1.2rem;
	box-shadow: 5px 6px 0 var(--paper-3);
}
.ctc-door:nth-child(1) { transform: rotate(-1.2deg); }
.ctc-door:nth-child(2) { transform: rotate(.9deg); }
.ctc-door:nth-child(3) { transform: rotate(-.6deg); }
.ctc-door:hover { transform: rotate(0deg) translateY(-3px); }
.ctc-door-num { display: block; font-family: var(--display); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--maroon); }
.ctc-door h3 { font-size: 1.2rem; margin: 0 0 .1rem; }
.ctc-door-big { display: block; font-family: var(--display); font-size: 1.65rem; color: var(--green-2); margin: .45rem 0 .1rem; }
.ctc-door p { margin: 0; font-size: .92rem; line-height: 1.45; color: var(--ink-soft); }

/* --- the site in numbers ---------------------------------------------- */
.ctc-statgrid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); margin: 0; }
.ctc-statgrid > div {
	background: var(--card);
	border: 2px solid var(--ink); border-radius: 18px;
	padding: .9rem 1rem 1rem;
	box-shadow: var(--sticker-sm);
}
.ctc-statgrid dt { font-size: .82rem; color: var(--ink-soft); }
.ctc-statgrid dd { margin: .2rem 0 0; font-family: var(--display); font-size: 2.3rem; font-weight: 700; line-height: 1.05; color: var(--green); }

/* --- what a course actually costs ------------------------------------- */
.ctc-pricecard {
	background: var(--card);
	border: 2px solid var(--ink); border-radius: 20px;
	padding: 1.3rem 1.4rem 1.5rem;
	box-shadow: 7px 8px 0 var(--brand);
}

/* --p is set by one of the .ctc-pbar--NN classes below and both the marker and
   its label read it, so no position is written into the template */
.ctc-pbarwrap { position: relative; margin: 0 0 .9rem; padding-top: 2.4rem; }
.ctc-pbar {
	position: relative; display: block; height: 26px;
	border: 2px solid var(--ink); border-radius: 999px;
	background: linear-gradient(90deg, var(--sun), var(--brand) 58%, var(--maroon));
}
.ctc-ptick { position: absolute; top: -4px; bottom: -4px; left: var(--p, 50%); width: 4px; background: var(--ink); border-radius: 2px; }
.ctc-pcallout {
	position: absolute; left: var(--p, 50%); bottom: calc(100% + 12px);
	transform: translateX(-50%);
	font-family: var(--display); font-size: .85rem; white-space: nowrap;
	background: var(--ink); color: var(--paper);
	padding: .3rem .8rem; border-radius: 999px;
	box-shadow: 3px 3px 0 var(--brand);
}
.ctc-pcallout::after {
	content: ""; position: absolute; left: 50%; transform: translateX(-50%); top: 100%;
	border: 7px solid transparent; border-top-color: var(--ink);
}
/* when the middle sits near the right end, hang the label to the left of the
   marker so it stays inside the bar */
.ctc-pbarwrap--flip .ctc-pcallout { left: auto; right: calc(100% - var(--p, 50%)); transform: none; }
.ctc-pbarwrap--flip .ctc-pcallout::after { left: auto; right: 14px; transform: none; }

.ctc-pbar--5 { --p: 5%; }   .ctc-pbar--10 { --p: 10%; }  .ctc-pbar--15 { --p: 15%; }
.ctc-pbar--20 { --p: 20%; } .ctc-pbar--25 { --p: 25%; }  .ctc-pbar--30 { --p: 30%; }
.ctc-pbar--35 { --p: 35%; } .ctc-pbar--40 { --p: 40%; }  .ctc-pbar--45 { --p: 45%; }
.ctc-pbar--50 { --p: 50%; } .ctc-pbar--55 { --p: 55%; }  .ctc-pbar--60 { --p: 60%; }
.ctc-pbar--65 { --p: 65%; } .ctc-pbar--70 { --p: 70%; }  .ctc-pbar--75 { --p: 75%; }
.ctc-pbar--80 { --p: 80%; } .ctc-pbar--85 { --p: 85%; }  .ctc-pbar--90 { --p: 90%; }
.ctc-pbar--95 { --p: 95%; }

.ctc-pends { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .7rem; margin: .8rem 0 0; }
.ctc-pends span { font-size: .8rem; color: var(--ink-soft); background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: .25rem .75rem; }

/* --- the three cheap picks -------------------------------------------- */
.ctc-picks-title { font-size: 1.15rem; margin: 1.6rem 0 .9rem; }
.ctc-picks { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.ctc-pick {
	background: var(--card);
	border: 2px solid var(--ink); border-radius: 18px;
	padding: 1rem 1rem 1.1rem;
	box-shadow: 5px 6px 0 var(--grape);
}
.ctc-pick:nth-child(2) { box-shadow: 5px 6px 0 var(--green); }
.ctc-pick:nth-child(3) { box-shadow: 5px 6px 0 var(--maroon); }
.ctc-pick h4 { font-size: 1.15rem; margin: 0 0 .15rem; }
.ctc-pick h4 a { color: var(--ink); text-decoration: none; }
.ctc-pick h4 a:hover { color: var(--accent); }
.ctc-pick-loc { font-size: .82rem; color: var(--ink-soft); margin: 0 0 .7rem; }
.ctc-pick-money { margin: 0 0 .7rem; }
.ctc-pick-price { font-family: var(--display); font-size: 1.55rem; line-height: 1.1; color: var(--maroon); }
.ctc-pick-money em { display: block; font-style: normal; font-size: .78rem; color: var(--ink-3); }
.ctc-pick-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0 0 .8rem; }
.ctc-pick-acc { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .78rem; color: var(--ink-soft); }
.ctc-pick-acc .accreditation-meter-container { flex: 1 1 5rem; min-width: 4rem; max-width: 9rem; height: .55rem; margin: 0; }

/* the score pill always says what its colour means */
.ctc-top-score .ctc-band-word {
	display: block; font-family: var(--display); font-size: .6rem; font-weight: 600;
	letter-spacing: .05em; text-transform: uppercase; line-height: 1.2;
}

/* --- the buy button inside a pick -------------------------------------- */
.ctc-buybox { margin: 0 0 .6rem; }
.ctc-buybox .ctc-aff { margin: 0; }
/* The plugin builds <a class="ctc-aff-btn">. Outside the school-page buy box
   that class carries no styling of its own, so it is made to match .ctc-btn here. */
.ctc-buybox .ctc-aff-btn,
.ctc-buybox .ctc-btn {
	display: block; width: 100%; text-align: center;
	background: var(--accent); color: #2a1607;
	border: 2px solid var(--ink); border-radius: var(--radius-sm);
	font-family: var(--display); font-weight: 700; text-decoration: none;
	padding: .55rem 1rem; box-shadow: var(--sticker-sm);
}
.ctc-buybox .ctc-aff-btn:hover, .ctc-buybox .ctc-btn:hover { background: var(--brand); }
.ctc-pick-fine { font-size: .74rem; color: var(--ink-3); margin: 0; }

/* --- the ranked list, in bands, with the accreditation row ------------ */
.ctc-accrow { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .3rem; }
.ctc-accrow .accreditation-meter-container { flex: 1 1 6rem; min-width: 4rem; max-width: 10rem; height: .55rem; margin: 0; }
.ctc-accrow .ctc-acc-none { font-size: .78rem; }
.ctc-top-visit {
	font-family: var(--display); font-size: .8rem; text-decoration: none;
	padding: .25rem .7rem; border: 1px solid var(--line); border-radius: 999px;
	background: var(--paper-2); color: var(--ink);
}
.ctc-top-visit:hover { background: var(--sun); }

.ctc-legend { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.ctc-legend span {
	font-family: var(--display); font-size: .78rem; color: var(--ink);
	border: 2px solid var(--ink); border-radius: 999px; padding: .25rem .75rem;
	background: var(--card);
	box-shadow: inset 0 0 0 4px var(--band-soft);
}

/* --- your turn to review ---------------------------------------------- */
.ctc-revband { display: grid; gap: 1.2rem; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
.ctc-stickynote {
	background: var(--sun);
	border: 2px solid var(--ink); border-radius: 6px 18px 8px 16px;
	padding: 1.1rem 1.2rem 1.3rem;
	box-shadow: var(--sticker);
	transform: rotate(-.7deg);
}
.ctc-stickynote h3 { font-size: 1.25rem; margin: 0 0 .4rem; }
.ctc-stickynote p { margin: 0 0 .8rem; }
.ctc-stickynote .ctc-hero-actions { margin: 0; }
.ctc-review-facts {
	list-style: none; margin: 0; padding: .8rem 1rem;
	background: var(--card); border: 1px solid var(--line); border-radius: var(--blob-2);
}
.ctc-review-facts li { padding: .5rem 0; border-bottom: 1px dashed var(--line-2); font-size: .9rem; line-height: 1.45; color: var(--ink-soft); }
.ctc-review-facts li:last-child { border-bottom: 0; }
.ctc-review-facts b { display: block; font-family: var(--display); font-size: .95rem; color: var(--ink); }

/* --- blog cards, pinned with tape ------------------------------------- */
.ctc-postframe { display: block; position: relative; margin: 0 0 1rem; }
.ctc-postframe img { display: block; width: 100%; height: auto; border: 2px solid var(--ink); border-radius: 12px; }
.ctc-posttape {
	position: absolute; top: -10px; left: 16px; z-index: 1;
	width: 76px; height: 22px; border-radius: 3px;
	background: var(--brand); opacity: .85;
	transform: rotate(-4deg);
}
.ctc-card h3 { font-size: 1.2rem; margin: 0 0 .35em; }
.ctc-card h3 a { color: var(--ink); text-decoration: none; }
.ctc-card h3 a:hover { color: var(--accent); }

/* --- the dot row under the closing call to action --------------------- */
.ctc-fruitdots { display: inline-flex; gap: .5rem; margin-top: 1rem; }
.ctc-fruitdots i {
	display: inline-block; width: 14px; height: 14px;
	border: 2px solid var(--green-2); border-radius: 50%;
}
.ctc-fruitdots i:nth-child(1) { background: var(--brand); }
.ctc-fruitdots i:nth-child(2) { background: var(--sun); }
.ctc-fruitdots i:nth-child(3) { background: var(--accent); }
.ctc-fruitdots i:nth-child(4) { background: var(--green); }
.ctc-fruitdots i:nth-child(5) { background: var(--maroon); }

/* the mockup tilts these cards; tilted cards must not tilt for everyone */
@media (prefers-reduced-motion: reduce) {
	.ctc-header .ctc-nav a,
	.ctc-slab, .ctc-stamp, .ctc-door, .ctc-stickynote { transform: none; }
	.ctc-door:hover { transform: none; }
}

@media print {
	.ctc-wavy, .ctc-doors, .ctc-pricecard, .ctc-revband, .ctc-legend,
	.ctc-fruitdots, .ctc-doodle, .ctc-posttape, .search-form { display: none; }
	.ctc-slab, .ctc-door, .ctc-pick, .ctc-statgrid > div { box-shadow: none; }
}

/* ---------------------------------------------------------------------
   Narrow screens
   --------------------------------------------------------------------- */
@media (max-width: 1040px) {
	.ctc-school-layout { grid-template-columns: minmax(0, 1fr); }
	.ctc-school-side { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
	.ctc-school-head { grid-template-columns: minmax(0, 1fr); }
	.ctc-school-head h1 { margin-top: 0; }
	/* homepage (v0.5.0): the score slab gives up width before the hero stacks */
	.ctc-hero { grid-template-columns: minmax(0, 1fr) minmax(15rem, .8fr); }
	.ctc-slab-row { gap: .7rem; }
	.ctc-stamp { width: 92px; height: 92px; }
	.ctc-stamp b { font-size: 1.9rem; }
}

@media (max-width: 900px) {
	.ctc-hero { grid-template-columns: minmax(0, 1fr); }
	.ctc-proscons { grid-template-columns: minmax(0, 1fr); }
	/* no wrapper div exists around the table, so the scroll container is the page body */
	.ctc-page-body { overflow-x: auto; -webkit-overflow-scrolling: touch; }
	.ctc-ranking { min-width: 42rem; font-size: .88rem; }
	.ctc-table-why::after {
		content: " Swipe the list sideways to see every column.";
		color: var(--accent); font-family: var(--hand); font-size: 1.2rem;
	}
	.ctc-acc-detail-list li { grid-template-columns: minmax(0, 1fr); gap: .2rem; }

	/* homepage (v0.5.0): the side slab becomes a panel of its own under the
       hero, and nothing that was tilted is tilted any more. The rule above this
       block already stacks .ctc-hero into one column, so nothing is added here
       for the hero itself. */
	.ctc-slab { transform: none; box-shadow: var(--sticker); border-radius: var(--radius); }
	.ctc-door, .ctc-pick, .ctc-stickynote { transform: none; }
	.ctc-revband { grid-template-columns: minmax(0, 1fr); }
	/* on a narrow screen the middle-price label sits beside the marker, above
	   the bar, instead of balanced on top of it: it never hangs past the edge */
	.ctc-pbarwrap .ctc-pcallout,
	.ctc-pbarwrap--flip .ctc-pcallout {
		bottom: calc(100% + 8px); left: calc(var(--p, 50%) + 10px); right: auto;
		transform: none; font-size: .78rem; padding: .25rem .6rem;
	}
	.ctc-pbarwrap .ctc-pcallout::after,
	.ctc-pbarwrap--flip .ctc-pcallout::after { display: none; }
	.ctc-statgrid { grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
	.ctc-picks { grid-template-columns: minmax(0, 1fr); }
	.ctc-legend { display: grid; gap: .4rem; }
}

@media (max-width: 700px) {
	h1 { font-size: 2rem; }
	.ctc-hero { padding: 1.2rem 1.1rem 1.4rem; border-radius: var(--radius); }
	.ctc-hero h1 { font-size: 2.2rem; }
	.ctc-school-head { padding: 1rem; border-radius: var(--radius); }
	.ctc-school-head h1 { font-size: 1.8rem; }
	.ctc-score-overall strong { font-size: 2.4rem; }
	.ctc-school-main .ctc-aff-price { padding: .8rem .9rem; }
	.ctc-aff-price-value { font-size: 1.7rem; }
	.ctc-review-form { padding: 1rem; border-radius: var(--radius); }
	.ctc-home-grid, .ctc-card-grid { grid-template-columns: minmax(0, 1fr); }
	.ctc-top-item { grid-template-columns: 2rem minmax(0, 1fr); }
	.ctc-top-right { grid-column: 2; }
	.ctc-site-tagline { margin-left: 0; max-width: none; }
	.ctc-header .ctc-shell { align-items: flex-start; }

	/* homepage (v0.5.0): the masthead tightens, the three numbers stay side by
       side but small (the phone mockup draws them exactly this way), the slab
       rows wrap, and the picks stack */
	.ctc-brand { gap: .55rem; }
	.ctc-brand-text .ctc-site-tagline { margin-left: 0; max-width: none; }
	.ctc-slab { padding: 1rem 1rem 1.1rem; }
	.ctc-slab-row { flex-wrap: wrap; }
	.ctc-statgrid { display: flex; gap: .55rem; }
	.ctc-statgrid > div { flex: 1 1 0; padding: .55rem .6rem; border-radius: 12px; }
	.ctc-statgrid dt { font-size: .68rem; }
	.ctc-statgrid dd { font-size: 1.5rem; }
	.ctc-top-right { flex-wrap: wrap; }
	.ctc-pends span { font-size: .72rem; padding: .2rem .6rem; }
	.ctc-door-big { font-size: 1.4rem; }
	.ctc-trust { font-size: .9rem; }
}

@media (max-width: 480px) {
	.ctc-dist-row { grid-template-columns: 2.4rem minmax(0, 1fr) 1.6rem; gap: .4rem; font-size: .74rem; }
	.ctc-nav a { font-size: .9rem; padding: .3rem .65rem; }
	body { font-size: 16.5px; }

	/* homepage (v0.5.0): chips, the score stamp and the price scale shrink to
       fit. The masthead chips need the .ctc-header prefix here, otherwise the
       base rule for them in the v0.5.0 section is the stronger one. */
	.ctc-header .ctc-nav a { font-size: .85rem; padding: .3rem .6rem; }
	.ctc-stamp { width: 84px; height: 84px; }
	.ctc-stamp b { font-size: 1.65rem; }
	.ctc-stamp i { font-size: .9rem; }
	.ctc-pbar { height: 20px; }
	.ctc-pcallout { font-size: .72rem; padding: .2rem .55rem; }
	.ctc-statgrid dd { font-size: 1.25rem; }
	.ctc-statgrid dt { font-size: .62rem; }
	.ctc-door-big { font-size: 1.25rem; }
	.ctc-pick-price { font-size: 1.3rem; }
	.ctc-legend span { font-size: .72rem; }
	.ctc-review-facts li { font-size: .86rem; }
}

/* ---------------------------------------------------------------------
   Motion, printing
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; animation: none !important; }
	.ctc-how-card:nth-child(2n), .ctc-how-card:nth-child(3n) { transform: none; }
}

@media print {
	body { background: #fff; color: #000; font-size: 11pt; }
	.ctc-header, .ctc-footer, .ctc-cta, .ctc-review-form, .ctc-comments,
	.ctc-related, .ctc-school-side, .ctc-hero-stats, .pagination, .navigation,
	.ctc-acc-col, .ctc-review-col, .search-form { display: none; }
	.ctc-school-layout { display: block; }
	a { color: #000; text-decoration: none; }
	a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; }
	tr.ctc-acc-detail-row.is-open { display: table-row; }
}
/* --- the mockup chrome, copied verbatim from the new style.css (lines 53-63 and 210-219),
   so the masthead and footer look like the design on pages whose own mockup
   has not been ported yet. Nothing else below is new. --- */
.mast{display:flex;align-items:center;gap:16px;padding:20px 0 2px;flex-wrap:wrap}
.mast img{display:block}
.mast .sitename{font-family:var(--display);font-size:20px;margin:0;letter-spacing:.2px}
.mast .tag{font-family:var(--hand);color:var(--green);font-size:19px;margin:0;line-height:1.1}
.nav{display:flex;gap:9px;flex-wrap:wrap;padding:12px 0 0}
.nav a{font-family:var(--display);font-size:14px;text-decoration:none;border:2px solid var(--ink);border-radius:999px;padding:6px 13px;background:var(--paper-2);color:var(--ink)}
.nav a:nth-child(odd){transform:rotate(-1.1deg)}
.nav a:nth-child(even){transform:rotate(1.1deg)}
.nav a.hi{background:var(--brand)}
.wavy{height:10px;margin:22px 0 0;background:radial-gradient(circle at 5px 8px,transparent 4px,var(--line) 4px,var(--line) 5.5px,transparent 5.5px) repeat-x;background-size:14px 10px}

footer{background:var(--green-2);color:#f2ece2;margin:60px 0 0;padding:30px 0 34px}
footer .wrap{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:26px;align-items:start}
footer h4{color:#fff;font-size:20px;margin-bottom:8px}
footer p{margin:0 0 10px;font-size:15px;color:#d8cec1}
footer a{color:var(--sun)}
footer ul{list-style:none;padding:0;margin:0;display:grid;gap:7px}
.fruitdots{display:flex;gap:8px;margin-top:16px}
.fruitdots i{width:14px;height:14px;border-radius:50%;border:2px solid #f2ece2;display:inline-block}
.colophon{border-top:1px dashed #7d8f88;margin-top:22px;padding-top:14px;font-size:13.5px;color:#bdc9c3}
