/*
Theme Name: Copenhagen Tourism — Nyhavn Blocks
Theme URI: https://copenhagentourism.org/
Author: Copenhagen Tourism
Author URI: https://copenhagentourism.org/
Description: A bold, colour-blocked editorial theme for city guide and tourism authority sites. Nyhavn facade palette, chunky display type, colour-coded categories, and fast, clean templates built for content-heavy travel guides.
Version: 1.1.0
Requires at least: 6.3
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: copenhagen-tourism
Tags: blog, news, custom-menu, custom-logo, featured-images, translation-ready, two-columns, right-sidebar, editor-style, block-styles, wide-blocks, footer-widgets, theme-options, threaded-comments, sticky-post
*/

/* Design tokens live in assets/tokens.css so the block editor can load the
   same file. This stylesheet only consumes them. */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--ct-sand);
	color: var(--ct-ink);
	font-family: var(--ct-body);
	font-size: 17px;
	line-height: 1.6;
	text-wrap: pretty;
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--ct-ink); text-decoration: none; }
a:hover, a:focus { color: var(--ct-red); }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--ct-display);
	font-weight: 800;
	letter-spacing: -.01em;
	line-height: 1.05;
	margin: 0 0 .5em;
}
:focus-visible { outline: 3px solid var(--ct-blue); outline-offset: 2px; }
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
}
.skip-link:focus {
	position: fixed; left: 16px; top: 16px; z-index: 999;
	background: var(--ct-ink); color: var(--ct-sand);
	padding: 12px 18px; border-radius: 8px;
	width: auto; height: auto; clip: auto; clip-path: none;
}

.ct-wrap { max-width: var(--ct-wrap); margin: 0 auto; padding: 0 var(--ct-gutter); width: 100%; }

/* ---------- Header ---------- */
.ct-header {
	background: var(--ct-sand);
	border-bottom: var(--ct-border) solid var(--ct-ink);
	position: sticky; top: 0; z-index: 50;
}
.admin-bar .ct-header { top: 32px; }
@media screen and (max-width: 782px) {
	/* The admin bar is 46px tall and stops being fixed at this width. */
	.admin-bar .ct-header { top: 0; }
}
.ct-header__inner {
	display: flex; align-items: center; justify-content: space-between;
	gap: 24px;
	/* Vertical only: these elements are also .ct-wrap, and a padding shorthand
	   here would silently wipe the horizontal gutter it sets. */
	padding-top: 16px; padding-bottom: 16px;
}
.ct-brand { display: flex; align-items: center; gap: 10px; }
.ct-brand__bars { display: flex; align-items: flex-end; gap: 3px; flex: none; }
.ct-brand__bars span { width: 8px; display: block; border-radius: 1px; }
.ct-brand__bars span:nth-child(1) { height: 16px; background: var(--ct-red); }
.ct-brand__bars span:nth-child(2) { height: 26px; background: var(--ct-amber); }
.ct-brand__bars span:nth-child(3) { height: 13px; background: var(--ct-blue); }
.ct-brand__bars span:nth-child(4) { height: 21px; background: var(--ct-green); }
.ct-brand__text {
	font-family: var(--ct-display);
	font-weight: 800; font-size: 15px; line-height: .95;
	letter-spacing: .02em; text-transform: uppercase;
}
.ct-brand__text .tld { color: var(--ct-red); }
.ct-brand .custom-logo { max-height: 48px; width: auto; }

.ct-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 26px; margin: 0; padding: 0; }
.ct-nav a { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.ct-nav li.current-menu-item > a,
.ct-nav li.current-menu-ancestor > a { box-shadow: inset 0 -3px 0 var(--ct-red); }
.ct-nav li { position: relative; }
.ct-nav .sub-menu {
	display: none; position: absolute; top: 100%; left: 0;
	background: var(--ct-card);
	border: 2px solid var(--ct-ink); border-radius: 10px;
	padding: 12px; flex-direction: column; gap: 10px;
	min-width: 210px; z-index: 60;
}
.ct-nav li:hover > .sub-menu,
.ct-nav li:focus-within > .sub-menu { display: flex; }

.ct-search-toggle {
	font-family: var(--ct-body); font-size: 12px; font-weight: 600;
	letter-spacing: .04em; text-transform: uppercase;
	border: 2px solid var(--ct-ink); background: transparent;
	border-radius: 99px; padding: 8px 16px; cursor: pointer;
	color: var(--ct-ink); flex: none;
}
.ct-search-toggle:hover { background: var(--ct-ink); color: var(--ct-sand); }
.ct-searchbar { display: none; padding: 0 0 18px; }
.ct-searchbar.is-open { display: block; }
.ct-menu-toggle {
	display: none; background: transparent;
	border: 2px solid var(--ct-ink); border-radius: 8px;
	padding: 9px 12px; cursor: pointer;
	font-size: 13px; font-weight: 600; color: var(--ct-ink);
}

.search-form { display: flex; gap: 10px; }
.search-form input[type="search"] {
	flex: 1; min-width: 0;
	font-family: var(--ct-body); font-size: 15px;
	padding: 12px 16px; border: 2px solid var(--ct-ink);
	border-radius: 8px; background: var(--ct-card); color: var(--ct-ink);
}
.search-form button {
	font-family: var(--ct-body); font-weight: 600; font-size: 14px;
	background: var(--ct-ink); color: var(--ct-sand);
	border: 0; border-radius: 8px; padding: 12px 22px; cursor: pointer;
}

/* ---------- Buttons ---------- */
.ct-btn {
	display: inline-block; font-weight: 600; font-size: 14px;
	padding: 14px 22px; border-radius: 8px;
	background: var(--ct-ink); color: var(--ct-sand);
	border: 2px solid var(--ct-ink);
}
.ct-btn:hover { background: var(--ct-red); border-color: var(--ct-red); color: #fff; }
.ct-btn--ghost { background: transparent; color: var(--ct-ink); }
.ct-btn--ghost:hover { background: var(--ct-ink); color: var(--ct-sand); border-color: var(--ct-ink); }

/* ---------- Breadcrumbs ---------- */
.ct-crumbs {
	font-size: 12.5px; color: var(--ct-ink-muted);
	padding: 20px 0 0; letter-spacing: .01em;
}
.ct-crumbs a { color: var(--ct-ink-muted); box-shadow: inset 0 -1px 0 var(--ct-rule); }
.ct-crumbs a:hover { color: var(--ct-red); }
.ct-crumbs__sep { margin: 0 2px; opacity: .6; }

/* ---------- Hero ---------- */
.ct-hero {
	display: grid; grid-template-columns: 1.05fr .95fr;
	gap: 44px; align-items: center; padding: 56px 0;
}
.ct-eyebrow {
	font-size: 12px; font-weight: 700; letter-spacing: .14em;
	text-transform: uppercase; color: var(--ct-red); margin-bottom: 16px;
}
.ct-hero h1 { font-size: clamp(38px, 5vw, 64px); margin-bottom: 20px; }
.ct-hero__lede { font-size: 17px; line-height: 1.55; max-width: 44ch; color: var(--ct-ink-70); }
.ct-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ct-hero__media { position: relative; }
.ct-hero__media::before {
	content: ""; position: absolute; left: -14px; top: 14px;
	width: 100%; height: 100%;
	background: var(--ct-amber); border-radius: var(--ct-radius);
}
.ct-frame {
	position: relative;
	border: var(--ct-border) solid var(--ct-ink);
	border-radius: var(--ct-radius); overflow: hidden;
	background: var(--ct-stripes);
	min-height: 320px;
	display: flex; align-items: center; justify-content: center;
}
.ct-frame img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.ct-frame__note {
	font-family: var(--ct-mono); font-size: 11px;
	background: var(--ct-sand); border: 1px solid var(--ct-ink);
	border-radius: 6px; padding: 6px 10px; color: var(--ct-ink);
}

/* ---------- Category tiles ---------- */
.ct-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding-bottom: 52px; }
.ct-tile {
	border-radius: var(--ct-radius); padding: 20px 18px;
	color: var(--ct-on-dark);
	transition: transform .15s ease;
	display: flex; flex-direction: column; gap: 6px;
}
.ct-tile:hover, .ct-tile:focus-visible { transform: translateY(-3px); color: #fff; }
.ct-tile__name { font-family: var(--ct-display); font-weight: 700; font-size: 19px; line-height: 1.1; }
/* No opacity here: it drags the small text under the contrast threshold.
   The size and weight difference carries the hierarchy instead. */
.ct-tile__meta { font-size: 12px; font-weight: 500; }
.ct-tile--c1 { background: var(--ct-red); }
.ct-tile--c2 { background: var(--ct-amber); color: var(--ct-ink); }
.ct-tile--c2:hover, .ct-tile--c2:focus-visible { color: var(--ct-ink); }
.ct-tile--c3 { background: var(--ct-blue); }
.ct-tile--c4 { background: var(--ct-green); }

/* ---------- Section heads ---------- */
.ct-sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin: 0 0 22px; }
.ct-sechead h2 { font-size: 30px; margin: 0; }
.ct-sechead a { font-size: 13px; font-weight: 600; box-shadow: inset 0 -2px 0 var(--ct-ink); flex: none; }

/* ---------- Cards ---------- */
.ct-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-bottom: 56px; }
.ct-card {
	border: var(--ct-border) solid var(--ct-ink);
	border-radius: var(--ct-radius); overflow: hidden;
	background: var(--ct-card);
	display: flex; flex-direction: column;
}
.ct-card__thumb {
	aspect-ratio: 16 / 9; background: var(--ct-stripes);
	display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.ct-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ct-card__thumb .ct-frame__note { font-size: 10px; padding: 4px 8px; }
.ct-card__body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ct-card__title { font-family: var(--ct-display); font-weight: 700; font-size: 20px; line-height: 1.12; margin: 4px 0 0; }
.ct-card__excerpt { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ct-ink-70); }
.ct-card__meta { font-size: 11.5px; color: var(--ct-ink-muted); margin-top: auto; }
.ct-card.sticky { border-color: var(--ct-red); box-shadow: 0 0 0 3px rgba(190, 59, 43, .18); }

.ct-cat {
	display: inline-block; font-size: 10.5px; font-weight: 700;
	letter-spacing: .08em; text-transform: uppercase;
	border-radius: 99px; padding: 4px 10px; align-self: flex-start;
	color: var(--ct-on-dark); background: var(--ct-ink);
}
.ct-cat--c1 { background: var(--ct-red); }
.ct-cat--c2 { background: var(--ct-amber); color: var(--ct-ink); }
.ct-cat--c3 { background: var(--ct-blue); }
.ct-cat--c4 { background: var(--ct-green); }
.ct-cat:hover { color: #fff; }
.ct-cat--c2:hover { color: var(--ct-ink); }

/* ---------- Archive / list ---------- */
.ct-page-head {
	padding: 30px 0; border-bottom: var(--ct-border) solid var(--ct-ink);
	margin-bottom: 36px;
}
.ct-page-head h1 { font-size: clamp(34px, 4.4vw, 52px); margin: 0; }
.ct-page-head .ct-cat { margin-bottom: 14px; }
.ct-page-head p { margin: 14px 0 0; color: var(--ct-ink-70); max-width: 60ch; }
.ct-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; padding-bottom: 60px; }
.ct-layout--wide { grid-template-columns: minmax(0, 1fr); }

/* ---------- Single ---------- */
.ct-article {
	background: var(--ct-card);
	border: var(--ct-border) solid var(--ct-ink);
	border-radius: var(--ct-radius);
	padding: 38px 40px 44px;
	overflow-wrap: break-word;
}
.ct-article--empty { padding: 30px 34px; }
.ct-article__meta {
	font-size: 12.5px; color: var(--ct-ink-muted);
	display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px;
}
.ct-article__meta a { color: var(--ct-ink-muted); box-shadow: inset 0 -1px 0 var(--ct-rule); }

.ct-entry { font-size: 17.5px; line-height: 1.7; }
/* Constrain body copy, but let deliberately wide blocks be wide. Without the
   :not() guard, alignwide and alignfull are capped at the measure and the
   alignment silently does nothing. */
.ct-entry > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright) {
	max-width: var(--ct-content);
}
.ct-entry > .alignwide {
	max-width: none;
	margin-left: -20px;
	margin-right: -20px;
}
.ct-entry > .alignfull {
	max-width: none;
	margin-left: -40px;
	margin-right: -40px;
	width: calc(100% + 80px);
	border-radius: 0;
}
.ct-entry > .alignfull img { border-radius: 0; border-left: 0; border-right: 0; }
.ct-entry h2 { font-size: 30px; margin: 1.6em 0 .5em; scroll-margin-top: 90px; }
.ct-entry h3 { font-size: 23px; margin: 1.5em 0 .4em; scroll-margin-top: 90px; }
.ct-entry h4 { font-size: 19px; margin: 1.4em 0 .4em; }
.ct-entry a { box-shadow: inset 0 -2px 0 var(--ct-amber); }
.ct-entry blockquote,
.ct-entry .wp-block-quote {
	margin: 1.6em 0; padding: 20px 24px;
	background: var(--ct-sand); border-left: 0;
	border-radius: 10px; border: 2px solid var(--ct-ink);
	font-family: var(--ct-display); font-weight: 500;
	font-size: 21px; line-height: 1.35;
}
.ct-entry blockquote p:last-child { margin: 0; }
.ct-entry blockquote cite {
	display: block; margin-top: 10px;
	font-family: var(--ct-body); font-size: 13px; font-style: normal;
	font-weight: 600; color: var(--ct-ink-muted);
}
.ct-entry ul, .ct-entry ol { padding-left: 1.3em; }
.ct-entry li { margin-bottom: .5em; }
.ct-entry img, .ct-entry .wp-block-image img {
	border-radius: 10px; border: var(--ct-border) solid var(--ct-ink);
}
.ct-entry figcaption,
.ct-entry .wp-element-caption {
	font-family: var(--ct-mono); font-size: 11.5px;
	color: var(--ct-ink-muted); margin-top: 8px;
}
.ct-entry table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ct-entry th, .ct-entry td { border: 1px solid var(--ct-rule); padding: 10px 12px; text-align: left; }
.ct-entry th { background: var(--ct-sand); font-weight: 700; }
.ct-entry code {
	font-family: var(--ct-mono); font-size: .9em;
	background: var(--ct-sand); padding: 2px 6px; border-radius: 4px;
}
.ct-entry pre {
	font-family: var(--ct-mono); font-size: 14px;
	background: var(--ct-sand); border: 2px solid var(--ct-ink);
	border-radius: 10px; padding: 18px 20px; overflow-x: auto;
}
.ct-entry pre code { background: none; padding: 0; }
.ct-entry > *:first-child { margin-top: 0; }

.ct-hero-figure { margin: 0 0 30px; }

.ct-toc {
	background: var(--ct-sand); border: 2px dashed var(--ct-ink);
	border-radius: 10px; padding: 18px 22px; margin: 0 0 28px;
	max-width: var(--ct-content);
}
.ct-toc__label {
	font-family: var(--ct-mono); font-size: 10.5px;
	letter-spacing: .12em; text-transform: uppercase;
	color: var(--ct-ink-muted); margin: 0 0 8px;
}
.ct-toc ol { margin: 0; padding-left: 1.2em; font-size: 15px; }
.ct-toc li { margin-bottom: 5px; }
.ct-toc a { box-shadow: inset 0 -1px 0 var(--ct-rule); }
.ct-toc a:hover { box-shadow: inset 0 -1px 0 var(--ct-red); }

.ct-tags {
	display: flex; flex-wrap: wrap; gap: 8px;
	margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--ct-rule);
}
.ct-tags a {
	font-size: 12px; font-weight: 600;
	border: 2px solid var(--ct-ink); border-radius: 99px; padding: 5px 12px;
}
.ct-tags a:hover { background: var(--ct-ink); color: var(--ct-sand); }

.ct-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 30px 0 0; }
.ct-prevnext a {
	border: var(--ct-border) solid var(--ct-ink); border-radius: var(--ct-radius);
	padding: 18px 20px; background: var(--ct-card);
}
.ct-prevnext a:hover { border-color: var(--ct-red); }
.ct-prevnext span {
	display: block; font-size: 11px; font-weight: 700;
	letter-spacing: .1em; text-transform: uppercase;
	color: var(--ct-ink-muted); margin-bottom: 6px;
}
.ct-prevnext strong { font-family: var(--ct-display); font-weight: 700; font-size: 17px; line-height: 1.2; }
.ct-prevnext__next { grid-column: 2; text-align: right; }

.ct-related { margin-top: 44px; }

/* ---------- Sidebar / widgets ---------- */
.ct-sidebar .widget {
	background: var(--ct-card);
	border: var(--ct-border) solid var(--ct-ink);
	border-radius: var(--ct-radius);
	padding: 22px; margin-bottom: 20px;
}
.ct-sidebar .widget-title { font-family: var(--ct-display); font-weight: 800; font-size: 17px; margin: 0 0 14px; }
.ct-sidebar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.ct-sidebar li a { box-shadow: inset 0 -1px 0 var(--ct-rule); }
.ct-sidebar .wp-block-search__button,
.ct-sidebar .search-form button { flex: none; }

/* ---------- Pagination ---------- */
.ct-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; padding: 10px 0 60px; }
.ct-pagination .page-numbers {
	display: inline-block; font-weight: 600; font-size: 14px;
	padding: 10px 16px; border: 2px solid var(--ct-ink); border-radius: 8px;
}
.ct-pagination .page-numbers.current { background: var(--ct-ink); color: var(--ct-sand); }
.ct-pagination a.page-numbers:hover { background: var(--ct-red); border-color: var(--ct-red); color: #fff; }
.ct-pagination--pages { padding-bottom: 0; justify-content: flex-start; }

/* ---------- Footer ---------- */
.ct-footer { background: var(--ct-ink); color: var(--ct-on-dark); margin-top: auto; }
.ct-footer a { color: var(--ct-on-dark); }
.ct-footer a:hover { color: var(--ct-amber); }
.ct-footer__cols { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 36px; padding-top: 48px; padding-bottom: 40px; }
.ct-footer .widget-title {
	font-family: var(--ct-display); font-weight: 800; font-size: 15px;
	letter-spacing: .02em; text-transform: uppercase; margin: 0 0 14px;
}
.ct-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.ct-footer__blurb { font-size: 14px; line-height: 1.6; color: var(--ct-on-dark-70); max-width: 34ch; margin-top: 14px; }
.ct-footer__bar {
	border-top: 1px solid #34302A;
	display: flex; align-items: center; justify-content: space-between;
	gap: 18px; padding-top: 18px; padding-bottom: 18px; font-size: 12px;
}
.ct-footer__bar ul { flex-direction: row; flex-wrap: wrap; gap: 18px; font-size: 12px; }
.ct-footer .ct-brand__text { color: var(--ct-on-dark); }
.ct-footer .ct-brand__text .tld { color: var(--ct-amber); }

/* ---------- Comments ---------- */
.ct-comments {
	margin-top: 36px; background: var(--ct-card);
	border: var(--ct-border) solid var(--ct-ink);
	border-radius: var(--ct-radius); padding: 30px 34px;
}
.ct-comments h2 { font-size: 22px; }
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-list li { border-bottom: 1px solid var(--ct-rule); padding: 16px 0; }
.comment-list .children { list-style: none; padding-left: 24px; border-left: 2px solid var(--ct-rule); margin-left: 4px; }
.comment-list .children li:last-child { border-bottom: 0; padding-bottom: 0; }
.comment-meta { font-size: 12.5px; color: var(--ct-ink-muted); }
.comment-form input, .comment-form textarea {
	font-family: var(--ct-body); font-size: 15px; width: 100%;
	padding: 12px 14px; border: 2px solid var(--ct-ink);
	border-radius: 8px; background: var(--ct-sand); color: var(--ct-ink);
}
.comment-form p { margin-bottom: 14px; }
.comment-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.comment-form .comment-form-cookies-consent { display: flex; align-items: center; gap: 8px; }
.comment-form .comment-form-cookies-consent input { width: auto; }
.comment-form .comment-form-cookies-consent label { margin: 0; font-weight: 400; }
.comment-form input[type="submit"] {
	width: auto; background: var(--ct-ink); color: var(--ct-sand);
	font-weight: 600; cursor: pointer; padding: 14px 22px;
}
.comment-form input[type="submit"]:hover { background: var(--ct-red); border-color: var(--ct-red); }

/* ---------- Core blocks ---------- */
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { max-width: none; }
.wp-block-button__link { border-radius: 8px; font-weight: 600; padding: 14px 22px; }
.wp-block-button.is-style-outline .wp-block-button__link { border-width: 2px; }
.wp-block-separator { border: 0; border-top: 2px solid var(--ct-rule); max-width: 100%; }
.wp-block-pullquote {
	border-top: var(--ct-border) solid var(--ct-ink);
	border-bottom: var(--ct-border) solid var(--ct-ink);
	padding: 28px 0; font-family: var(--ct-display);
}
.wp-block-cover { border-radius: var(--ct-radius); overflow: hidden; }
.ct-entry .wp-block-gallery img { border-radius: 8px; }
.wp-block-embed figcaption { text-align: left; }
.wp-block-details {
	border: 2px solid var(--ct-ink); border-radius: 10px;
	padding: 16px 20px; margin: 0 0 14px; background: var(--ct-sand);
}
.wp-block-details summary {
	font-family: var(--ct-display); font-weight: 700; font-size: 18px;
	cursor: pointer;
}
.wp-block-details[open] summary { margin-bottom: 12px; }
.wp-block-media-text { border-radius: var(--ct-radius); overflow: hidden; }

/* Colour utility classes matching the theme.json palette */
.has-ct-red-color { color: var(--ct-red); }
.has-ct-red-background-color { background-color: var(--ct-red); }
.has-ct-amber-color { color: var(--ct-amber); }
.has-ct-amber-background-color { background-color: var(--ct-amber); }
.has-ct-blue-color { color: var(--ct-blue); }
.has-ct-blue-background-color { background-color: var(--ct-blue); }
.has-ct-green-color { color: var(--ct-green); }
.has-ct-green-background-color { background-color: var(--ct-green); }
.has-ct-sand-background-color { background-color: var(--ct-sand); }
.has-ct-card-background-color { background-color: var(--ct-card); }
.has-ct-ink-color { color: var(--ct-ink); }
.has-ct-ink-background-color { background-color: var(--ct-ink); }

/* ---------- Block style variations ---------- */
.is-style-ct-panel {
	background: var(--ct-sand);
	border: 2px solid var(--ct-ink);
	border-radius: var(--ct-radius);
	padding: 24px 28px;
}
.is-style-ct-panel > *:last-child { margin-bottom: 0; }

.is-style-ct-note {
	background: var(--ct-sand);
	border: 2px dashed var(--ct-ink);
	border-radius: 10px;
	padding: 20px 24px;
}
.is-style-ct-note > *:last-child { margin-bottom: 0; }
.is-style-ct-note .ct-note__label {
	font-family: var(--ct-mono); font-size: 10.5px;
	letter-spacing: .12em; text-transform: uppercase;
	color: var(--ct-ink-muted); margin-bottom: 8px;
}

.ct-entry .is-style-ct-plain img { border: 0; border-radius: 0; }

.is-style-ct-ticks { list-style: none; padding-left: 0; }
.is-style-ct-ticks li { position: relative; padding-left: 26px; }
.is-style-ct-ticks li::before {
	content: ""; position: absolute; left: 0; top: .55em;
	width: 10px; height: 10px; border-radius: 2px;
	background: var(--ct-green);
}

.is-style-ct-fares { overflow-x: auto; }
.is-style-ct-fares table { font-size: 14.5px; }
.is-style-ct-fares th {
	background: var(--ct-ink); color: var(--ct-on-dark);
	font-family: var(--ct-display); border-color: var(--ct-ink);
}
.is-style-ct-fares tbody tr:nth-child(even) { background: var(--ct-sand); }

.is-style-ct-bars {
	border: 0; height: 26px; max-width: 100px;
	background:
		linear-gradient(var(--ct-red) 0 0) 0 40% / 8px 60% no-repeat,
		linear-gradient(var(--ct-amber) 0 0) 15px 0 / 8px 100% no-repeat,
		linear-gradient(var(--ct-blue) 0 0) 30px 50% / 8px 50% no-repeat,
		linear-gradient(var(--ct-green) 0 0) 45px 20% / 8px 80% no-repeat;
	margin: 2.2em 0;
}

/* The horizontal nav runs out of room well before the phone breakpoint once a
   site has four or five long category names, so it collapses at 900px rather
   than waiting for 768px and overflowing in between. */
@media (max-width: 900px) {
	.ct-header__inner { flex-wrap: wrap; gap: 12px; }
	.ct-brand { order: 1; flex: 1 1 100%; }
	.ct-menu-toggle { display: block; order: 2; }
	.ct-search-toggle { order: 3; }
	.ct-nav { display: none; width: 100%; order: 4; }
	.ct-nav.is-open { display: block; }
	.ct-nav ul { flex-direction: column; gap: 14px; padding: 16px 0 4px; }
	/* Submenus stack inline on touch: there is no hover to reveal them, and an
	   absolutely positioned panel would cover the rest of the menu. */
	.ct-nav .sub-menu {
		display: flex; position: static;
		background: transparent;
		border: 0; border-left: 2px solid var(--ct-rule);
		border-radius: 0; padding: 10px 0 0 14px; margin-top: 10px;
	}
	/* Four footer columns are too narrow to hold a link list at this width. */
	.ct-footer__cols { grid-template-columns: 1fr 1fr; gap: 26px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.ct-hero { grid-template-columns: 1fr; gap: 32px; }
	.ct-tiles { grid-template-columns: repeat(2, 1fr); }
	.ct-grid { grid-template-columns: repeat(2, 1fr); }
	.ct-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
	body { font-size: 16px; }
	.ct-wrap { padding: 0 20px; }
	.ct-grid { grid-template-columns: 1fr; }
	.ct-footer__cols { grid-template-columns: 1fr 1fr; gap: 26px; }
	.ct-article { padding: 26px 22px 30px; }
	.ct-entry > .alignwide,
	.ct-entry > .alignfull {
		margin-left: -22px; margin-right: -22px; width: calc(100% + 44px);
	}
	.ct-prevnext { grid-template-columns: 1fr; }
	.ct-prevnext__next { grid-column: 1; text-align: left; }
	.ct-footer__bar { flex-direction: column; align-items: flex-start; }
	.ct-comments { padding: 22px 20px; }
}
@media (max-width: 480px) {
	.ct-tiles { grid-template-columns: 1fr; }
	.ct-footer__cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Print ---------- */
@media print {
	.ct-header, .ct-footer, .ct-sidebar, .ct-prevnext, .ct-related,
	.ct-comments, .ct-pagination, .ct-tiles, .skip-link { display: none !important; }
	body { background: #fff; font-size: 11pt; }
	.ct-article { border: 0; padding: 0; background: #fff; }
	.ct-layout { display: block; }
	.ct-entry > * { max-width: none; }
	.ct-entry a::after { content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }
	.ct-entry a { box-shadow: none; }
}
