/*
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.3.3
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
*/

/* ---------------------------------------------------------------------
   Tokens
   --------------------------------------------------------------------- */
:root {
	--ink: #2a2118;
	--ink-soft: #5b4c3c;
	--paper: #fffaf1;
	--card: #ffffff;
	--line: #e6d8c2;
	--accent: #ff9217;
	--accent-soft: #f6ecd9;
	--star: #a8720d;
	--warn: #c9a227;
	--paper-2: #fff6e6;
	--paper-3: #f6ecd9;
	--brand: #ffac00;
	--brand-2: #ffb601;
	--green: #005548;
	--link: var(--green);
	--green-2: #01483b;
	--maroon: #620000;
	--sun: #ffc93c;
	--radius: 10px;
	--measure: 42rem;
	--shadow: 0 1px 2px rgba(42, 33, 24, .05), 0 6px 18px rgba(42, 33, 24, .04);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 18px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	word-break: break-word;
}

h1, h2, h3, h4 {
	font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
	line-height: 1.22;
	letter-spacing: -0.01em;
	margin: 1.6em 0 .5em;
}

h1 { font-size: 2.1rem; margin-top: 0; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }

a { color: var(--link); text-underline-offset: .18em; }
a:hover { color: var(--link); }

p, ul, ol { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.35em; }

img { max-width: 100%; height: auto; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

small, .ctc-meta { color: var(--ink-soft); font-size: .85rem; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: .5rem; top: .5rem; background: var(--card); padding: .5rem .8rem; z-index: 100; }

/* ---------------------------------------------------------------------
   Shell
   --------------------------------------------------------------------- */
.ctc-shell { max-width: 1120px; margin: 0 auto; padding: 0 1.1rem; }

.ctc-header {
	border-bottom: 1px solid var(--line);
	background: var(--card);
}
.ctc-header .ctc-shell { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.5rem; padding-top: 1rem; padding-bottom: 1rem; }
.ctc-site-name { font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: 1.35rem; font-weight: 600; }
.ctc-site-name a { color: var(--ink); text-decoration: none; }
.ctc-site-tagline { color: var(--ink-soft); font-size: .85rem; margin-left: auto; }

.ctc-nav ul { display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; list-style: none; margin: 0; padding: 0; }
.ctc-nav a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.ctc-nav a:hover { color: var(--link); }
.ctc-nav .current-menu-item > a { font-weight: 600; border-bottom: 2px solid var(--link); }

.ctc-footer { border-top: 1px solid var(--line); margin-top: 3rem; padding: 1.5rem 0 2.5rem; color: var(--ink-soft); font-size: .85rem; }
.ctc-footer a { color: var(--ink-soft); }

main { padding: 2rem 0 1rem; }

/* ---------------------------------------------------------------------
   Lists of posts
   --------------------------------------------------------------------- */
.ctc-archive-title { margin-bottom: .3em; }
.ctc-archive-note { color: var(--ink-soft); margin-bottom: 2rem; }

.ctc-card { border-bottom: 1px solid var(--line); padding: 1.4rem 0; }
.ctc-card h2 { margin: 0 0 .3em; font-size: 1.3rem; }
.ctc-card h2 a { color: var(--ink); text-decoration: none; }
.ctc-card h2 a:hover { color: var(--link); }
.ctc-card .ctc-meta { display: block; margin-bottom: .5em; }
.ctc-card p:last-child { margin-bottom: 0; }

.pagination { display: flex; gap: .4rem; flex-wrap: wrap; margin: 2rem 0; }
.pagination .nav-links { display: flex; gap: .4rem; flex-wrap: wrap; }
.page-numbers { padding: .4rem .7rem; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; }
.page-numbers.current { background: var(--brand); border-color: var(--brand); color: var(--ink); }

/* ---------------------------------------------------------------------
   School page
   --------------------------------------------------------------------- */
.ctc-school-layout { display: grid; gap: 2rem; }
@media (min-width: 900px) {
	.ctc-school-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
	.ctc-school-side { position: sticky; top: 1rem; }
}

.ctc-school-tagline { color: var(--ink-soft); font-size: 1.1rem; margin: 0 0 1.2rem; }
.ctc-school-body { max-width: var(--measure); }
.ctc-school-body > *:last-child { margin-bottom: 0; }

.ctc-side-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1.1rem; box-shadow: var(--shadow); }
.ctc-side-card h2, .ctc-side-card h3 { margin-top: 0; font-size: 1.05rem; }

.ctc-score-panel .ctc-score-heading { margin: 0 0 .4em; font-size: 1.05rem; }
.ctc-score-overall { font-size: 2rem; line-height: 1; margin: 0 0 .6rem; }
.ctc-score-overall span { font-size: 1rem; color: var(--ink-soft); }
.ctc-score-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.ctc-score-table th { text-align: left; font-weight: 500; padding: .25rem .5rem .25rem 0; color: var(--ink-soft); }
.ctc-score-table td { padding: .25rem 0; }
.ctc-bar { display: block; height: 8px; background: var(--paper-3); border-radius: 4px; overflow: hidden; min-width: 60px; }
.ctc-bar-fill { background: var(--brand); }
.ctc-bar-num { text-align: right; width: 3em; font-variant-numeric: tabular-nums; }
.ctc-score-visitors { margin: .8rem 0 0; font-size: .85rem; }

.ctc-facts { width: 100%; border-collapse: collapse; font-size: .88rem; }
.ctc-facts th, .ctc-facts td { text-align: left; padding: .35rem 0; vertical-align: top; border-bottom: 1px solid var(--line); }
.ctc-facts th { width: 42%; color: var(--ink-soft); font-weight: 500; }
.ctc-facts tr:last-child th, .ctc-facts tr:last-child td { border-bottom: 0; }

.ctc-aff { margin: 0 0 .4rem; }
.ctc-aff-btn {
	display: block; text-align: center; background: var(--accent); color: var(--ink) !important;
	padding: .75rem 1rem; border-radius: 8px; text-decoration: none; font-weight: 600;
}
.ctc-aff-btn:hover { background: var(--brand-2); }
.ctc-disclosure { font-size: .78rem; color: var(--ink-soft); margin: .4rem 0 0; }
.ctc-aff-price { margin: 0 0 .55rem; font-size: .95rem; }
.ctc-aff-price-label { color: var(--ink-soft); }
.ctc-aff-price-value { color: var(--maroon); font-size: 1.2rem; }

.ctc-proscons { display: grid; gap: 1.2rem; margin: 1.6rem 0; }
@media (min-width: 620px) { .ctc-proscons { grid-template-columns: 1fr 1fr; } }
.ctc-pros, .ctc-cons { background: var(--card); border: 1px solid var(--line); border-left-width: 4px; border-radius: var(--radius); padding: .9rem 1.1rem; }
.ctc-pros { border-left-color: var(--link); }
.ctc-cons { border-left-color: var(--band-bad); }
.ctc-pros h3, .ctc-cons h3 { margin: 0 0 .4em; font-size: 1rem; }
.ctc-pros ul, .ctc-cons ul { margin: 0; padding-left: 1.1em; }

/* ---------------------------------------------------------------------
   Stars and the ranking table
   --------------------------------------------------------------------- */
.ctc-stars { white-space: nowrap; letter-spacing: .04em; }
.ctc-star { color: var(--line); }
.ctc-star.on { color: var(--star); }
.ctc-stars-none { color: var(--ink-soft); font-size: .85rem; }
.ctc-votes { color: var(--ink-soft); font-size: .82rem; margin-left: .35em; }

table.ctc-ranking { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ctc-ranking th, .ctc-ranking td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line); font-size: .92rem; }
.ctc-ranking thead th { background: var(--paper-3); font-size: .82rem; }
.ctc-ranking thead a { color: var(--ink-soft); text-decoration: none; }
.ctc-rank-col { width: 2.5rem; color: var(--ink-soft); }
.ctc-school-cell a { font-weight: 600; }
.ctc-loc { display: block; color: var(--ink-soft); font-size: .8rem; }
.ctc-score { font-variant-numeric: tabular-nums; font-weight: 600; }
.ctc-ranking-filters { font-size: .88rem; }
.ctc-ranking-filters a { margin-right: .4rem; }

/* ---------------------------------------------------------------------
   Reviews
   --------------------------------------------------------------------- */
.ctc-reviews { list-style: none; margin: 0; padding: 0; }
.ctc-review { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 1rem 1.1rem; margin-bottom: .9rem; }
.ctc-review-head { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.ctc-review-date { color: var(--ink-soft); font-size: .8rem; }
.ctc-review-pros, .ctc-review-cons { font-size: .92rem; margin: .6rem 0 0; }
.ctc-review-pros strong { color: var(--link); }
.ctc-review-cons strong { color: var(--band-bad); }
.ctc-review-body { margin-top: .6rem; }
.ctc-review-body p:last-child { margin-bottom: 0; }
.ctc-no-reviews { color: var(--ink-soft); }

.ctc-review-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin-top: 1.4rem; }
.ctc-review-form label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .25rem; }
.ctc-review-form input[type=text], .ctc-review-form input[type=email], .ctc-review-form textarea {
	width: 100%; max-width: 34rem; padding: .55rem .65rem; border: 1px solid var(--line); border-radius: 6px; font: inherit; background: var(--card);
}
.ctc-review-form p { margin: 0 0 1rem; }
.ctc-review-submit { background: var(--accent); color: var(--ink); border: 0; border-radius: 8px; padding: .7rem 1.2rem; font: inherit; font-weight: 600; cursor: pointer; }
.ctc-review-submit:hover { background: var(--brand-2); }
.ctc-review-note, .ctc-review-closed { font-size: .82rem; color: var(--ink-soft); }
.ctc-review-notice { background: var(--accent-soft); border-radius: 8px; padding: .8rem 1rem; margin: 1rem 0; }
.ctc-review-error { background: var(--paper-3); border-left: 4px solid var(--band-bad); border-radius: 6px; padding: .6rem 1rem; margin: 1rem 0; }
.ctc-review-error ul { margin: 0; padding-left: 1.2em; }
.ctc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.ctc-stars-input { display: inline-flex; flex-direction: row-reverse; gap: .12em; font-size: 1.7em; line-height: 1; }
.ctc-stars-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ctc-stars-input label { color: var(--line); cursor: pointer; margin: 0; }
.ctc-stars-input label:hover,
.ctc-stars-input label:hover ~ label,
.ctc-stars-input input:checked ~ label { color: var(--star); }
.ctc-stars-input input:focus-visible + label { outline: 2px solid var(--link); outline-offset: 2px; }

/* ---------------------------------------------------------------------
   Blog post
   --------------------------------------------------------------------- */
.ctc-post { max-width: var(--measure); }
.ctc-post .ctc-meta { margin-bottom: 1.4rem; }
.ctc-post .wp-post-image { border-radius: var(--radius); margin-bottom: 1.4rem; }
.ctc-post p, .ctc-post li { line-height: 1.7; }
.ctc-post blockquote { border-left: 3px solid var(--link); margin: 1.4rem 0; padding: .2rem 0 .2rem 1.1rem; color: var(--ink-soft); font-style: italic; }
.ctc-post table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.ctc-post th, .ctc-post td { border: 1px solid var(--line); padding: .45rem .6rem; text-align: left; }
.ctc-post th { background: var(--paper-3); }
.ctc-toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.1rem; margin-bottom: 1.6rem; font-size: .9rem; }

.ctc-related { margin-top: 2.5rem; }
.ctc-related h2 { font-size: 1.2rem; }

/* ---------------------------------------------------------------------
   Front page
   --------------------------------------------------------------------- */
.ctc-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 2rem;
	align-items: start;
	padding: 2.2rem 0 2.6rem;
	border-bottom: 1px solid var(--line);
}
.ctc-hero h1 { font-size: 2.5rem; line-height: 1.15; }
.ctc-hero-tag { margin: 0 0 1rem; font-size: 1.15rem; color: var(--ink-soft); }
.ctc-hero-note { max-width: var(--measure); }
.ctc-hero-note p:last-child { margin-bottom: 0; }
.ctc-hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.3rem 0 1.1rem; }

.ctc-btn {
	display: inline-block;
	padding: .6rem 1.05rem;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--card);
	color: var(--ink);
	font-size: .95rem;
	text-decoration: none;
}
.ctc-btn:hover { border-color: var(--link); color: var(--link); }
.ctc-btn-primary { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.ctc-btn-primary:hover { background: var(--brand-2); border-color: var(--brand-2); color: var(--ink); }

.ctc-home .search-form { display: flex; gap: .4rem; max-width: 27rem; }
.ctc-home .search-field { flex: 1; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.ctc-home .search-submit { padding: .55rem .95rem; border: 0; border-radius: 8px; background: var(--ink); color: #fff; cursor: pointer; font: inherit; }

.ctc-hero-stats {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1.1rem 1.2rem;
	box-shadow: var(--shadow);
}
.ctc-hero-stats h2 { margin: 0 0 .6rem; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.ctc-hero-stats dl { margin: 0; }
.ctc-hero-stats dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.ctc-hero-stats dt { font-size: .92rem; color: var(--ink-soft); }
.ctc-hero-stats dd { margin: 0; font-size: 1.5rem; font-weight: 700; }
.ctc-fine { margin: .9rem 0 0; font-size: .82rem; color: var(--ink-soft); }

.ctc-home-block { padding: 2.2rem 0; border-bottom: 1px solid var(--line); }
.ctc-block-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 1.2rem; margin-bottom: 1.1rem; }
.ctc-block-head h2 { margin: 0; font-size: 1.6rem; }
.ctc-block-note, .ctc-block-more { margin: 0; font-size: .92rem; color: var(--ink-soft); }
.ctc-block-more a { color: var(--link); }

.ctc-top-list { list-style: none; margin: 0; padding: 0; }
.ctc-top-item { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: .8rem .3rem; border-bottom: 1px solid var(--line); }
.ctc-top-rank { color: var(--ink-soft); font-size: .95rem; font-variant-numeric: tabular-nums; }
.ctc-top-name { font-weight: 600; color: var(--ink); text-decoration: none; }
.ctc-top-name:hover { color: var(--link); }
.ctc-top-meta { display: block; font-size: .85rem; color: var(--ink-soft); }
.ctc-top-right { display: flex; align-items: center; gap: .6rem; }
.ctc-top-score {
	display: inline-block;
	min-width: 2.7em;
	padding: .25rem .45rem;
	border-radius: 8px;
	background: var(--accent-soft);
	color: var(--ink);
	font-size: .92rem;
	font-weight: 700;
	text-align: center;
}

.ctc-how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.ctc-how-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.ctc-how-card h3 { margin: 0 0 .4em; font-size: 1.05rem; }
.ctc-how-card p { margin: 0; font-size: .93rem; color: var(--ink-soft); }

.ctc-home-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.ctc-home-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem 1.2rem; }
.ctc-home-card h3 { margin: 0 0 .3em; font-size: 1.1rem; }
.ctc-home-card h3 a { color: var(--ink); text-decoration: none; }
.ctc-home-card h3 a:hover { color: var(--link); }
.ctc-home-card img { width: 100%; height: auto; border-radius: 6px; margin: 0 0 .7rem; }
.ctc-home-card p { font-size: .92rem; }
.ctc-home-card p:last-child { margin-bottom: 0; }

.ctc-cta { padding: 2.4rem 0 2.8rem; text-align: center; }
.ctc-cta h2 { margin: 0 0 .4em; }
.ctc-cta p { max-width: var(--measure); margin: 0 auto 1.1rem; color: var(--ink-soft); }

@media (max-width: 899px) {
	.ctc-hero { grid-template-columns: 1fr; gap: 1.4rem; }
	.ctc-hero-stats { order: 2; }
	.ctc-how-grid, .ctc-home-grid { grid-template-columns: 1fr; }
	.ctc-top-item { grid-template-columns: 1.8rem minmax(0, 1fr); row-gap: .4rem; }
	.ctc-top-right { grid-column: 2; }
}

/* WordPress defaults we want to keep sane */
.alignwide { max-width: 56rem; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-block-button__link { background: var(--accent); color: var(--ink); border-radius: 8px; }
.bypostauthor { display: block; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 619px) {
	body { font-size: 17px; }
	h1 { font-size: 1.7rem; }
	.ctc-site-tagline { display: none; }
}

/* Articles about this school, on the school page. */
.ctc-school-articles { margin-top: 2.2rem; }
.ctc-article-list { list-style: none; margin: 0; padding: 0; }
.ctc-article-list li { padding: .7rem .2rem; border-bottom: 1px solid var(--line); }
.ctc-article-list li:last-child { border-bottom: 0; }
.ctc-article-list a { font-weight: 600; }
.ctc-article-list .ctc-meta { display: block; margin-top: .15rem; }


/* Accreditation in the tables: names, the no-accreditation label, the score expander. */
.ctc-acc-names, .ctc-acc-none { display: block; margin-top: .35rem; font-size: .8rem; color: var(--ink-soft); }
.ctc-acc-none { font-style: italic; }
.ctc-acc-details { margin-top: .4rem; font-size: .8rem; }
.ctc-acc-details summary { cursor: pointer; color: var(--link); }
.ctc-acc-detail-list { margin: .45rem 0 0; padding-left: 1.1rem; }
.ctc-acc-detail-list li { margin: 0 0 .4rem; }
.ctc-acc-points { color: var(--ink-soft); }

/* Schools in the master list that have no review written yet. */
.ctc-unreviewed { font-style: italic; font-size: .8rem; color: var(--ink-soft); }

/* Ranking table: accreditation detail opens in a merged row under the school. */
.ctc-acc-detail-row { display: none; }
.ctc-acc-detail-row.is-open { display: table-row; }
.ctc-acc-detail-row td { background: var(--paper-2); padding: .9rem 1rem 1rem; }
.ctc-acc-row-score { margin: 0 0 .5rem; font-size: .85rem; color: var(--ink-soft); }
.ctc-acc-detail-list { margin: 0 0 .6rem; padding-left: 1.1rem; }
.ctc-acc-detail-list li { margin: 0 0 .5rem; font-size: .88rem; }
.ctc-acc-points { color: var(--ink-soft); font-style: italic; }
.ctc-acc-row-desc { display: block; color: var(--ink-soft); font-size: .85rem; }
.ctc-acc-toggle, .ctc-acc-close { display: inline-block; margin-top: .3rem; font-size: .78rem; color: var(--link); }
.ctc-visit-link { white-space: nowrap; font-size: .85rem; }
.ctc-visit-col { text-align: center; }
.ctc-hours { white-space: nowrap; font-size: .9rem; }
.ctc-price { white-space: nowrap; font-size: .9rem; color: var(--maroon); }
.ctc-price-none { color: var(--ink-soft); }
.ctc-read-more { font-size: .88rem; white-space: nowrap; }

.ctc-archive-school {
	margin: .35rem 0 1.5rem;
	font-weight: 600;
}

.ctc-score-heading a { color: inherit; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }

.ctc-table-why { font-size: .85rem; color: var(--ink-soft); margin: 0 0 .7rem; }

/* -----------------------------------------------------------------
 * Score bands. The four bands come from the published rating guide,
 * which is stored behind Tools -> Score bands. A score mark carries
 * band-hi / band-mid / band-low / band-bad, chosen from the stored
 * number, never from text typed into a template. Each mark carries
 * its own band, so a strong criterion can sit beside a weak one in
 * the same panel. This block colours score marks only.
 * ----------------------------------------------------------------- */
:root {
    --band-hi: #005548;
    --band-mid: #c9a227;
    --band-low: #ff9217;
    --band-bad: #c0392b;
}
.band-hi { --band-col: var(--band-hi); }
.band-mid { --band-col: var(--band-mid); }
.band-low { --band-col: var(--band-low); }
.band-bad { --band-col: var(--band-bad); }

/* Bars: the fill takes the colour of its own criterion's band. */
.ctc-bar[class*="band-"] > .ctc-bar-fill { background: var(--band-col); }

/* The overall number, and the word the settings attach to it. */
.ctc-score-panel[class*="band-"] .ctc-score-overall { color: var(--band-col); }
.ctc-score-band { margin: 0 0 .7rem; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--band-col); }

/* A score cell in any ranking table carries the colour of that
   school's band. No table header is filled with a band colour. */
.ctc-score[class*="band-"] { color: var(--band-col); }

/* Legend on the rating guide page. [rating_bands] builds it from the same
   band values the score marks use, so the words and colours cannot drift. */
.ctc-band-legend { margin: 1.2rem 0 1.4rem; padding: 0; border-top: 1px solid var(--line); }
.ctc-band-row { display: grid; grid-template-columns: 8.5rem 1fr; gap: .5rem 1rem; padding: .65rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.ctc-band-row dt { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.ctc-band-row dd { margin: 0; }
.ctc-band-word { font-weight: 600; color: var(--band-col); }
.ctc-band-note { color: var(--ink-soft); }
@media (max-width: 480px) {
    .ctc-band-row { grid-template-columns: 1fr; gap: .15rem; }
}


/* The front page chip is filled with the school's own band colour. Text
   flips per band: white reads 8.78 on the green and 5.44 on the red, ink
   reads 6.53 on the amber and 7.05 on the orange. */
.ctc-top-score[class*="band-"] { background: var(--band-col); border-color: transparent; }
.ctc-top-score.band-hi, .ctc-top-score.band-bad { color: #fff; }
.ctc-top-score.band-mid, .ctc-top-score.band-low { color: var(--ink); }

/* Reader-rating bars are a quality scale, so they take the band colours. */
.ctc-dist { list-style: none; margin: 1rem 0 1.5rem; padding: 0; display: grid; gap: .45rem; }
.ctc-dist-row { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) 2rem; gap: .6rem; align-items: center; font-size: .8rem; color: var(--ink-soft); }
.ctc-dist-bar { height: 12px; border: 2px solid var(--line); border-radius: 999px; background: var(--paper-3); overflow: hidden; }
.ctc-dist-bar > span { display: block; height: 100%; background: var(--ink-soft); }
.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(--warn); }
.ctc-dist-row.s2 .ctc-dist-bar > span { background: var(--accent); }
.ctc-dist-row.s1 .ctc-dist-bar > span { background: var(--band-bad); }
.ctc-dist-count { text-align: right; }
@media (max-width: 480px) { .ctc-dist-row { grid-template-columns: 2.6rem minmax(0, 1fr) 1.6rem; gap: .4rem; font-size: .74rem; } }

.ctc-closed-tag {
	display: inline-block;
	margin-left: .45rem;
	padding: .12rem .5rem;
	border: 1px solid var(--line);
	border-radius: 3px;
	background: var(--paper-3);
	color: var(--ink-soft);
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .03em;
	text-transform: uppercase;
	vertical-align: middle;
}

.ctc-closed-notice {
	margin: 0 0 1.3rem;
	padding: .85rem 1.1rem;
	border: 1px solid var(--line);
	border-left: 4px solid var(--ink-soft);
	border-radius: 4px;
	background: var(--paper-3);
	color: var(--ink);
}
