/*
Theme Name: ExpressBusMalaysia Guide
Theme URI: https://www.expressbusmalaysia.com/
Author: BusOnlineTicket IT
Author URI: https://www.busonlineticket.com/
Description: Full-width, dependency-free WordPress theme for large express bus timetable guides. State and route-corridor templates, collapsible operator timetables with live filtering and column sorting, built-in SEO meta and JSON-LD, and automatic referer_id + UTM tagging on outbound booking links. No plugins required.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: expressbusmalaysia
Tags: travel, custom-menu, custom-logo, responsive-layout, one-column, full-width-template, translation-ready, block-styles
*/

/* ==========================================================================
   1. Tokens — emerald + amber
   ========================================================================== */
:root {
	--green: #0d6b4e;
	--green-dark: #084c37;
	--green-deep: #063527;
	--green-mid: #13866a;
	--green-tint: #e7f4ef;
	--green-tint2: #f2f9f6;

	--amber: #eb9612;
	--amber-dark: #c87a06;
	--amber-tint: #fdf3e2;

	--ink: #16211d;
	--ink-soft: #41544c;
	--muted: #6c807a;
	--line: #dde7e3;
	--line-soft: #ecf2ef;
	--bg: #ffffff;
	--bg-soft: #f5f9f7;
	--ok: #0d7a52;
	--star: #e8a91b;

	--radius: 12px;
	--radius-sm: 7px;
	--shadow: 0 1px 2px rgba(6, 53, 39, .05), 0 6px 18px rgba(6, 53, 39, .07);
	--shadow-lg: 0 10px 34px rgba(6, 53, 39, .15);

	--wrap: 1180px;

	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
		Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
	--num: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.22; color: var(--ink); margin: 0 0 .55em; font-weight: 750; letter-spacing: -.018em; }
h1 { font-size: clamp(1.75rem, 1.25rem + 1.9vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 1.12rem + .85vw, 1.72rem); margin-top: 2em; }
h3 { font-size: 1.14rem; margin-top: 1.6em; }
h4 { font-size: 1rem; margin-top: 1.3em; }

p { margin: 0 0 1.05em; }
ul, ol { margin: 0 0 1.05em; padding-left: 1.3em; }
li { margin-bottom: .38em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 3px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: -9999px; top: 0; background: var(--green); color: #fff;
	padding: .7em 1.2em; z-index: 999; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   3. Layout — full width, no sidebar
   ========================================================================== */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.wrap--narrow { max-width: 860px; }
.site-main { padding: 0 0 64px; }
.content { min-width: 0; }

/* ==========================================================================
   4. Header + mega menu
   ========================================================================== */
.topbar { background: var(--green-deep); color: #a9cfc0; font-size: .81rem; }
.topbar .wrap {
	display: flex; align-items: center; justify-content: space-between;
	gap: 16px; min-height: 36px; flex-wrap: wrap;
}
.topbar p { margin: 0; padding: 5px 0; }
.topbar a { color: #fff; font-weight: 600; }

.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 60; }
.site-header .wrap { display: flex; align-items: center; gap: 22px; min-height: 72px; }

.brand { display: flex; align-items: center; gap: 11px; min-width: 0; margin-right: auto; }
.brand:hover { text-decoration: none; }
.brand__mark {
	width: 40px; height: 40px; flex: none; border-radius: 11px;
	background: linear-gradient(150deg, var(--green) 0%, var(--green-mid) 100%);
	display: grid; place-items: center; color: #fff;
}
.brand__mark svg { width: 23px; height: 23px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.18; min-width: 0; }
.brand__name {
	font-weight: 800; font-size: 1.05rem; color: var(--ink); letter-spacing: -.025em;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand__tag {
	font-size: .71rem; color: var(--muted); text-transform: uppercase; letter-spacing: .09em;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.nav-toggle {
	display: none; flex: none; align-items: center; gap: 8px; cursor: pointer;
	background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm);
	padding: 9px 12px; font: inherit; font-size: .87rem; font-weight: 650; color: var(--ink);
}
.nav-toggle__bars { display: block; width: 17px; height: 2px; background: currentColor; position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after {
	content: ""; position: absolute; left: 0; width: 17px; height: 2px; background: currentColor;
}
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }

.primary-nav > ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.primary-nav li { margin: 0; position: relative; }
.primary-nav > ul > li > a {
	display: block; padding: 9px 14px; border-radius: var(--radius-sm);
	font-weight: 650; font-size: .93rem; color: var(--ink-soft);
}
.primary-nav > ul > li > a:hover,
.primary-nav > ul > li.current-menu-item > a,
.primary-nav > ul > li.current-page-ancestor > a {
	background: var(--green-tint); color: var(--green-dark); text-decoration: none;
}

/* mega dropdown: multi-column panel */
.primary-nav ul ul {
	display: none; position: absolute; top: calc(100% + 2px); left: 0;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	box-shadow: var(--shadow-lg); padding: 12px; z-index: 70; margin: 0; list-style: none;
	min-width: 260px;
}
.primary-nav > ul > li:hover > ul,
.primary-nav > ul > li:focus-within > ul { display: block; column-gap: 10px; }
.primary-nav > ul > li.menu-mega:hover > ul,
.primary-nav > ul > li.menu-mega:focus-within > ul { columns: 3; width: 620px; }
.primary-nav ul ul li { break-inside: avoid; }
.primary-nav ul ul a {
	display: block; padding: 7px 11px; border-radius: var(--radius-sm);
	font-size: .885rem; color: var(--ink-soft);
}
.primary-nav ul ul a:hover { background: var(--green-tint2); color: var(--green-dark); text-decoration: none; }

/* ==========================================================================
   5. Buttons
   ========================================================================== */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 11px 21px; border-radius: 100px; font-weight: 700; font-size: .92rem;
	line-height: 1.2; border: 1px solid transparent; cursor: pointer; text-decoration: none;
	transition: background-color .15s ease, border-color .15s ease, transform .05s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--amber); color: #3a2200; }
.btn--primary:hover { background: var(--amber-dark); color: #2b1900; }
.btn--brand { background: var(--green); color: #fff; }
.btn--brand:hover { background: var(--green-dark); color: #fff; }
.btn--ghost { background: #fff; color: var(--green-dark); border-color: var(--line); }
.btn--ghost:hover { background: var(--green-tint); border-color: #bcd8cd; }
.btn--onDark { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.3); }
.btn--onDark:hover { background: rgba(255,255,255,.24); color: #fff; }
.btn--sm { padding: 7px 15px; font-size: .84rem; }
.btn--block { display: flex; width: 100%; }

/* ==========================================================================
   6. Hero + page head
   ========================================================================== */
.hero {
	background:
		radial-gradient(1100px 380px at 88% -10%, rgba(255,255,255,.13), transparent 60%),
		linear-gradient(120deg, var(--green-deep) 0%, var(--green) 58%, var(--green-mid) 100%);
	color: #fff; padding: 58px 0 62px;
}
.hero h1 { color: #fff; margin-bottom: .38em; max-width: 18ch; }
.hero p { font-size: 1.09rem; color: #cbe6da; margin-bottom: 1.6em; max-width: 60ch; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.page-head { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 20px 0 26px; }
.page-head h1 { margin-bottom: .28em; }
.page-head__sub { color: var(--ink-soft); margin: 0; max-width: 78ch; font-size: 1.02rem; }

/* stat tiles */
.stats {
	display: grid; gap: 12px; margin: 22px 0 0;
	grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
}
.stat {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	padding: 13px 16px; border-left: 4px solid var(--green);
}
.stat--price { border-left-color: var(--amber); }
.stat__n {
	font-size: 1.42rem; font-weight: 800; line-height: 1.12; letter-spacing: -.03em;
	font-variant-numeric: tabular-nums;
}
.stat--price .stat__n { color: var(--ok); }
.stat__l { font-size: .78rem; color: var(--muted); margin-top: 2px; text-transform: uppercase; letter-spacing: .06em; }

.hero .stats { margin-top: 34px; }
.hero .stat { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); border-left-color: var(--amber); }
.hero .stat__n { color: #fff; }
.hero .stat--price .stat__n { color: #ffd79a; }
.hero .stat__l { color: #bcdccd; }

/* ==========================================================================
   7. Breadcrumbs
   ========================================================================== */
.breadcrumbs { font-size: .82rem; color: var(--muted); padding: 12px 0 2px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; }
.breadcrumbs li { margin: 0; display: flex; align-items: center; gap: 7px; }
.breadcrumbs li + li::before { content: "/"; color: #b3c6bf; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--green); }
.breadcrumbs [aria-current] { color: var(--ink-soft); font-weight: 650; }

/* ==========================================================================
   8. Content
   ========================================================================== */
.entry-content { max-width: none; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content a { text-decoration: underline; text-underline-offset: 2px; }
.lead { font-size: 1.08rem; color: var(--ink-soft); max-width: 78ch; }
.entry-content p, .entry-content ul, .entry-content ol { max-width: 82ch; }

.notice {
	background: var(--amber-tint); border: 1px solid #f2ddb6; border-left: 4px solid var(--amber);
	border-radius: var(--radius-sm); padding: 13px 17px; font-size: .89rem; color: #6b4a11;
	margin: 1.5em 0; max-width: none;
}
.notice p { margin: 0; max-width: none; }

.callout {
	background: linear-gradient(120deg, var(--green-tint2), #fff);
	border: 1px solid var(--line); border-left: 4px solid var(--green);
	border-radius: var(--radius); padding: 20px 22px; margin: 1.8em 0;
}
.callout h3 { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

/* ==========================================================================
   9. Cards
   ========================================================================== */
.card-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); margin: 1.4em 0 2em; }
.card-grid--wide { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.card {
	position: relative; background: #fff; border: 1px solid var(--line);
	border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px;
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.card:hover { border-color: #b9d7ca; box-shadow: var(--shadow); transform: translateY(-2px); }
.card__title { font-size: 1.02rem; font-weight: 750; margin: 0; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card:hover .card__title a { color: var(--green); }
.card__meta { font-size: .82rem; color: var(--muted); margin: 0; }
.card__price { font-size: .88rem; font-weight: 750; color: var(--ok); margin: 0; font-variant-numeric: tabular-nums; }
.card__foot {
	margin-top: auto; padding-top: 9px; border-top: 1px solid var(--line-soft);
	font-size: .79rem; color: var(--muted); display: flex; justify-content: space-between; gap: 8px;
}

.op-card { flex-direction: row; gap: 13px; align-items: flex-start; }
.op-card__logo {
	width: 58px; height: 58px; flex: none; border-radius: 9px; border: 1px solid var(--line-soft);
	background: #fff; object-fit: contain; padding: 5px;
}
.op-card__body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }

.rating { display: inline-flex; align-items: center; gap: 4px; font-size: .82rem; color: var(--ink-soft); }
.rating__star { color: var(--star); }

.badge {
	display: inline-block; font-size: .71rem; font-weight: 700; text-transform: uppercase;
	letter-spacing: .05em; padding: 3px 9px; border-radius: 4px;
	background: var(--green-tint); color: var(--green-dark);
}

/* ==========================================================================
   10. Tables — schedules + summaries
   ========================================================================== */
.sched {
	border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden; margin: 1.3em 0 2em; background: #fff;
}
.sched__head {
	display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
	padding: 14px 18px; background: var(--green-tint2); border-bottom: 1px solid var(--line);
}
.sched__logo {
	width: 52px; height: 52px; flex: none; border-radius: 9px; background: #fff;
	border: 1px solid var(--line); object-fit: contain; padding: 4px;
}
.sched__id { min-width: 0; flex: 1 1 230px; }
.sched__id h3 { margin: 0 0 2px; font-size: 1.04rem; }
.sched__id h3 a { color: var(--ink); text-decoration: none; }
.sched__id h3 a:hover { color: var(--green); }
.sched__id p { margin: 0; font-size: .81rem; color: var(--muted); }
.sched__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.sched__tools {
	display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
	padding: 11px 18px; border-bottom: 1px solid var(--line-soft); background: #fff;
}
.sched__search {
	flex: 1 1 230px; min-width: 0; padding: 9px 13px; border: 1px solid var(--line);
	border-radius: 100px; font: inherit; font-size: .88rem; color: var(--ink); background: #fff;
}
.sched__search:focus { border-color: var(--green-mid); }
.sched__count { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table.sched__table { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.sched__table th, table.sched__table td {
	padding: 10px 15px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top;
}
table.sched__table thead th {
	background: #fff; font-size: .73rem; text-transform: uppercase; letter-spacing: .06em;
	color: var(--green-dark); font-weight: 750; white-space: nowrap;
	border-bottom: 2px solid var(--green-tint); position: sticky; top: 0; z-index: 2;
}
table.sched__table thead th.is-sortable { cursor: pointer; user-select: none; }
table.sched__table thead th.is-sortable:hover { color: var(--green); }
table.sched__table thead th.is-sortable::after { content: "↕"; margin-left: 5px; opacity: .35; }
table.sched__table thead th[aria-sort="ascending"]::after { content: "↑"; opacity: 1; }
table.sched__table thead th[aria-sort="descending"]::after { content: "↓"; opacity: 1; }
table.sched__table tbody tr:nth-child(even) { background: #fbfdfc; }
table.sched__table tbody tr:hover { background: var(--green-tint2); }
table.sched__table tbody tr:last-child td { border-bottom: 0; }

.t-route { font-weight: 650; color: var(--ink); }
.t-price { font-weight: 750; color: var(--ok); white-space: nowrap; font-variant-numeric: tabular-nums; }
.t-coach { white-space: nowrap; font-size: .82rem; color: var(--ink-soft); }
.t-num { font-variant-numeric: tabular-nums; }

.times { display: flex; flex-wrap: wrap; gap: 4px; }
.time-pill {
	display: inline-block; background: var(--green-tint); color: var(--green-dark);
	border-radius: 4px; padding: 2px 7px; font-size: .79rem;
	font-variant-numeric: tabular-nums; white-space: nowrap;
}
.time-pill--night { background: #e9e6f6; color: #493c86; }

.sched__empty { padding: 22px 18px; color: var(--muted); font-size: .89rem; display: none; }
.sched.is-empty .sched__empty { display: block; }
.sched.is-empty .table-scroll, .sched.is-empty .sched__group { display: none; }

.sched__foot {
	padding: 12px 18px; background: var(--green-tint2); border-top: 1px solid var(--line);
	display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .82rem; color: var(--muted);
}
.sched__foot .btn { margin-left: auto; }

/* collapsible groups inside a schedule (operator pages) */
.sched__group { border-top: 1px solid var(--line-soft); }
.sched__group > summary {
	padding: 12px 18px; cursor: pointer; font-weight: 700; font-size: .93rem;
	list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px;
	background: #fff;
}
.sched__group > summary::-webkit-details-marker { display: none; }
.sched__group > summary:hover { background: var(--green-tint2); }
.sched__group > summary::after { content: "+"; font-size: 1.25rem; color: var(--green); font-weight: 400; line-height: 1; }
.sched__group[open] > summary::after { content: "−"; }
.sched__group[open] > summary { border-bottom: 1px solid var(--line-soft); background: var(--green-tint2); }
.sched__group .g-meta { font-size: .8rem; color: var(--muted); font-weight: 400; margin-left: auto; }

/* generic content tables */
.entry-content table:not(.sched__table) {
	width: 100%; border-collapse: collapse; font-size: .9rem; margin: 1.4em 0;
	border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.entry-content table:not(.sched__table) th,
.entry-content table:not(.sched__table) td {
	padding: 9px 14px; border-bottom: 1px solid var(--line-soft); text-align: left;
}
.entry-content table:not(.sched__table) thead th {
	background: var(--green-tint2); font-size: .76rem; text-transform: uppercase;
	letter-spacing: .05em; color: var(--green-dark);
}

/* ==========================================================================
   11. Definition rows, gallery, FAQ, chips
   ========================================================================== */
.dl-rows { margin: 1.2em 0; max-width: 760px; }
.dl-rows dl { display: grid; grid-template-columns: 190px minmax(0, 1fr); margin: 0; }
.dl-rows dt { padding: 9px 0; font-weight: 700; font-size: .86rem; color: var(--ink-soft); border-bottom: 1px solid var(--line-soft); }
.dl-rows dd { padding: 9px 0; margin: 0; font-size: .9rem; border-bottom: 1px solid var(--line-soft); }

.bus-gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 1.4em 0 1.9em; }
.bus-gallery figure { margin: 0; }
.bus-gallery img {
	width: 100%; height: 170px; object-fit: cover; border-radius: var(--radius);
	border: 1px solid var(--line); background: var(--bg-soft);
}

.faq { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 1.4em 0 2em; max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line-soft); background: #fff; }
.faq details:last-child { border-bottom: 0; }
.faq summary {
	padding: 14px 18px; cursor: pointer; font-weight: 650; font-size: .95rem; list-style: none;
	display: flex; justify-content: space-between; gap: 14px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--green); font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { background: var(--green-tint2); }
.faq__body { padding: 0 18px 15px; font-size: .92rem; color: var(--ink-soft); }
.faq__body p:last-child { margin-bottom: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; margin: .9em 0 1.6em; padding: 0; list-style: none; max-width: none; }
.chips li { margin: 0; }
.chips a, .chips span {
	display: inline-block; padding: 5px 13px; border-radius: 100px; border: 1px solid var(--line);
	background: #fff; font-size: .84rem; color: var(--ink-soft); text-decoration: none;
}
.chips a:hover { background: var(--green-tint); border-color: #bcd8cd; color: var(--green-dark); text-decoration: none; }

/* in-page jump nav */
.jumpnav {
	position: sticky; top: 72px; z-index: 40; background: rgba(255,255,255,.95);
	backdrop-filter: saturate(150%) blur(6px);
	border-bottom: 1px solid var(--line); margin: 0 0 24px; padding: 9px 0;
}
.jumpnav ul { display: flex; gap: 4px; overflow-x: auto; list-style: none; margin: 0; padding: 0; max-width: none; }
.jumpnav li { margin: 0; }
.jumpnav a {
	display: block; white-space: nowrap; padding: 6px 13px; border-radius: 100px;
	font-size: .85rem; font-weight: 600; color: var(--ink-soft); text-decoration: none;
}
.jumpnav a:hover { background: var(--green-tint); color: var(--green-dark); }

/* ==========================================================================
   12. Ads / footer / misc
   ========================================================================== */
.ad-slot { margin: 24px 0; text-align: center; }
.ad-slot__label { font-size: .67rem; text-transform: uppercase; letter-spacing: .1em; color: #a8bab3; margin-bottom: 5px; }

.site-footer { background: var(--green-deep); color: #a8ccbc; padding: 46px 0 26px; margin-top: 44px; font-size: .89rem; }
.footer-grid {
	display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.13);
}
.site-footer h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 13px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: #a8ccbc; }
.site-footer a:hover { color: #fff; }
.site-footer p { margin: 0 0 .8em; max-width: none; }
.footer-bottom { padding-top: 20px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .81rem; color: #86ab9a; }
.footer-bottom p { margin: 0; }

.pagination { display: flex; gap: 6px; flex-wrap: wrap; margin: 2em 0; }
.pagination .page-numbers {
	display: inline-block; padding: 8px 14px; border: 1px solid var(--line);
	border-radius: 100px; color: var(--ink-soft); text-decoration: none; font-size: .9rem;
}
.pagination .page-numbers:hover { background: var(--bg-soft); }
.pagination .page-numbers.current { background: var(--green); border-color: var(--green); color: #fff; }

.search-form { display: flex; gap: 8px; max-width: 480px; }
.search-form input[type="search"] {
	flex: 1; padding: 10px 15px; border: 1px solid var(--line); border-radius: 100px;
	font: inherit; font-size: .9rem; min-width: 0;
}

.post-list { list-style: none; margin: 1.4em 0; padding: 0; max-width: 860px; }
.post-list li { padding: 15px 0; border-bottom: 1px solid var(--line-soft); margin: 0; }
.post-list h2 { font-size: 1.08rem; margin: 0 0 4px; }
.post-list p { margin: 0; font-size: .89rem; color: var(--ink-soft); }

.err-404 { text-align: center; padding: 44px 0 20px; }
.err-404 .code { font-size: 4.6rem; font-weight: 800; color: var(--green-tint); line-height: 1; }

.alignleft { float: left; margin: .4em 1.5em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: .79rem; color: var(--muted); margin-top: 6px; }
.sticky, .gallery-caption, .bypostauthor { display: block; }

/* ==========================================================================
   13. Responsive
   ========================================================================== */
@media (max-width: 980px) {
	.nav-toggle { display: inline-flex; }
	.primary-nav {
		display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff;
		border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
		padding: 10px 22px 18px; max-height: 78vh; overflow-y: auto;
	}
	.primary-nav.is-open { display: block; }
	.primary-nav > ul { flex-direction: column; gap: 1px; }
	.primary-nav ul ul,
	.primary-nav > ul > li.menu-mega:hover > ul,
	.primary-nav > ul > li.menu-mega:focus-within > ul {
		display: block; position: static; border: 0; box-shadow: none; padding: 2px 0 6px 14px;
		min-width: 0; width: auto; columns: 1; border-left: 2px solid var(--green-tint);
	}
	.jumpnav { top: 0; }
}

@media (max-width: 620px) {
	body { font-size: 15.5px; }
	.wrap { padding: 0 16px; }
	.hero { padding: 36px 0 40px; }
	.stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.stat__n { font-size: 1.22rem; }
	.dl-rows dl { grid-template-columns: minmax(0, 1fr); }
	.dl-rows dt { border-bottom: 0; padding-bottom: 0; }
	.dl-rows dd { padding-top: 2px; }
	.sched__head { padding: 12px 14px; gap: 11px; }
	.sched__logo { width: 44px; height: 44px; }
	.sched__actions { margin-left: 0; width: 100%; }
	.sched__actions .btn { flex: 1; }
	table.sched__table th, table.sched__table td { padding: 9px 12px; }
	.card-grid { grid-template-columns: minmax(0, 1fr); }
	.bus-gallery { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 480px) {
	.site-header .wrap { gap: 10px; min-height: 62px; }
	.brand__mark { width: 34px; height: 34px; border-radius: 9px; }
	.brand__mark svg { width: 20px; height: 20px; }
	.brand__name { font-size: .9rem; }
	.brand__tag { font-size: .63rem; letter-spacing: .06em; }
	.nav-toggle { padding: 8px 10px; }
	.nav-toggle > span:not(.nav-toggle__bars) { display: none; }
	.topbar { font-size: .75rem; }
	.primary-nav { padding: 10px 16px 16px; }
}

@media print {
	.site-header, .topbar, .site-footer, .ad-slot, .sched__tools,
	.sched__actions, .hero__actions, .nav-toggle, .jumpnav { display: none !important; }
	body { font-size: 11pt; }
	.sched__group { display: block !important; }
	.sched__group > summary { display: none; }
	a[href]::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; word-break: break-all; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important;
	}
	.card:hover { transform: none; }
}
