/*
Theme Name: ExamNeed
Theme URI: https://examneed.com/
Author: ExamNeed
Description: A fast, mobile-friendly theme for Tamil Nadu and Central Government job notifications, with deadline tables, job cards and WhatsApp/Telegram join buttons.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: examneed
*/

/* ==========================================================
   1. Variables
   ========================================================== */
:root {
	--c-primary: #0b57d0;
	--c-primary-dark: #0842a0;
	--c-accent: #e8590c;
	--c-text: #1f2933;
	--c-muted: #5f6b7a;
	--c-bg: #f4f6f9;
	--c-card: #ffffff;
	--c-border: #dde3ea;
	--c-open: #1b7f3b;
	--c-closed: #b42318;
	--c-whatsapp: #1ea952;
	--c-telegram: #229ed9;
	--radius: 8px;
	--shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
	--container: 1280px;
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Tamil", Arial, sans-serif;
}

/* ==========================================================
   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(--c-text);
	background: var(--c-bg);
}

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

/* Keep an iframe's own height (ads and forms are cut off otherwise) */
iframe {
	max-width: 100%;
}

a {
	color: var(--c-primary);
	text-decoration: none;
}

a:hover,
a:focus {
	color: var(--c-primary-dark);
	text-decoration: underline;
}

h1, h2, h3, h4 {
	line-height: 1.3;
	margin: 0 0 0.6em;
}

p {
	margin: 0 0 1em;
}

ul,
ol {
	margin: 0 0 1em;
	padding-left: 1.3em;
}

.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 16px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 1000;
	width: auto;
	height: auto;
	margin: 0;
	padding: 10px 16px;
	clip: auto;
	background: #fff;
	color: var(--c-primary);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

[hidden] {
	display: none !important;
}

/* ==========================================================
   3. Buttons
   ========================================================== */
.join-btn {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 999px;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
}

.join-btn:hover,
.join-btn:focus {
	color: #fff;
	text-decoration: none;
	opacity: 0.9;
}

.join-whatsapp { background: var(--c-whatsapp); }
.join-telegram { background: var(--c-telegram); }

.read-more {
	display: inline-block;
	padding: 6px 14px;
	border-radius: var(--radius);
	background: var(--c-primary);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
}

.read-more:hover,
.read-more:focus {
	background: var(--c-primary-dark);
	color: #fff;
	text-decoration: none;
}

/* ==========================================================
   4. Header
   ========================================================== */
.site-header {
	background: var(--c-card);
	box-shadow: var(--shadow);
}

.topbar {
	background: #0f2a4a;
	color: #fff;
	font-size: 14px;
}

.topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-top: 6px;
	padding-bottom: 6px;
}

.topbar-join {
	display: flex;
	gap: 8px;
}

.header-main-inner {
	display: flex;
	align-items: center;
	gap: 16px;
	padding-top: 12px;
	padding-bottom: 12px;
}

.site-branding {
	flex: 1 1 auto;
	min-width: 0;
}

.site-title {
	font-size: 26px;
	font-weight: 800;
	color: var(--c-primary);
}

.site-title:hover {
	text-decoration: none;
}

.site-tagline {
	margin: 0;
	font-size: 13px;
	color: var(--c-muted);
}

.custom-logo-link img {
	max-height: 56px;
	width: auto;
}

.header-search {
	flex: 0 1 320px;
}

/* Search form (get_search_form output) */
.search-form {
	display: flex;
	gap: 6px;
}

.search-form label {
	flex: 1;
	margin: 0;
}

.search-field,
.search-form input[type="search"] {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	font: inherit;
}

.search-submit,
.search-form input[type="submit"] {
	padding: 9px 16px;
	border: 0;
	border-radius: var(--radius);
	background: var(--c-primary);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.search-submit:hover,
.search-form input[type="submit"]:hover {
	background: var(--c-primary-dark);
}

/* Mobile menu button */
.menu-toggle {
	display: none;
	padding: 10px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	background: #fff;
	cursor: pointer;
}

.menu-toggle-bar {
	display: block;
	width: 22px;
	height: 2px;
	margin: 4px 0;
	background: var(--c-text);
}

/* ==========================================================
   5. Navigation
   ========================================================== */
.main-navigation {
	background: var(--c-primary);
}

.main-navigation .menu {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-navigation .menu li {
	position: relative;
}

.main-navigation .menu a {
	display: block;
	padding: 12px 16px;
	color: #fff;
	font-weight: 600;
	font-size: 15px;
}

.main-navigation .menu a:hover,
.main-navigation .menu a:focus,
.main-navigation .current-menu-item > a {
	background: var(--c-primary-dark);
	text-decoration: none;
}

/* Dropdown */
.main-navigation .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 50;
	display: none;
	min-width: 220px;
	margin: 0;
	padding: 0;
	list-style: none;
	background: var(--c-primary-dark);
}

.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu {
	display: block;
}

/* ==========================================================
   6. News ticker
   ========================================================== */
.news-ticker {
	background: #fff8e6;
	border-bottom: 1px solid #f1dfa6;
	font-size: 14px;
}

.ticker-inner {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-top: 7px;
	padding-bottom: 7px;
}

.ticker-label {
	flex: 0 0 auto;
	padding: 2px 10px;
	border-radius: 4px;
	background: var(--c-accent);
	color: #fff;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 12px;
}

.ticker-track {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
}

.ticker-list {
	display: inline-flex;
	gap: 40px;
	margin: 0;
	padding: 0 0 0 100%;
	list-style: none;
	animation: examneed-ticker 40s linear infinite;
}

.ticker-track:hover .ticker-list {
	animation-play-state: paused;
}

.ticker-list a {
	color: var(--c-text);
}

@keyframes examneed-ticker {
	from { transform: translateX(0); }
	to   { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
	.ticker-list {
		animation: none;
		padding-left: 0;
		overflow-x: auto;
	}
	html {
		scroll-behavior: auto;
	}
}

/* ==========================================================
   7. Layout
   ========================================================== */
.content-area {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 24px;
	padding-top: 24px;
	padding-bottom: 32px;
}

/* Add the "has-left-sidebar" class to .content-area for 3 columns */
.content-area.has-left-sidebar {
	grid-template-columns: 240px minmax(0, 1fr) 300px;
}

.primary-column {
	min-width: 0;
}

.page-header {
	margin-bottom: 20px;
	padding: 18px 20px;
	background: var(--c-card);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.page-title {
	margin: 0 0 6px;
	font-size: 26px;
}

.archive-description,
.archive-count,
.search-count {
	margin: 0;
	color: var(--c-muted);
}

.section-title {
	margin: 0 0 12px;
	padding-left: 10px;
	border-left: 4px solid var(--c-accent);
	font-size: 20px;
}

/* ==========================================================
   8. Post cards (index and search)
   ========================================================== */
.post-list {
	display: grid;
	gap: 16px;
}

.post-card {
	display: flex;
	gap: 16px;
	padding: 16px;
	background: var(--c-card);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.post-card-thumb {
	flex: 0 0 160px;
}

.post-card-thumb img {
	width: 100%;
	height: 100%;
	max-height: 120px;
	object-fit: cover;
	border-radius: 6px;
}

.post-card-body {
	flex: 1 1 auto;
	min-width: 0;
}

.post-card-cat,
.entry-cat {
	display: inline-block;
	margin-bottom: 4px;
	padding: 1px 8px;
	border-radius: 4px;
	background: #e7efff;
	color: var(--c-primary);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

.post-card-title {
	margin: 0 0 6px;
	font-size: 18px;
}

.post-card-title a {
	color: var(--c-text);
}

.post-card-title a:hover {
	color: var(--c-primary);
}

.post-card-meta,
.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin-bottom: 8px;
	font-size: 13px;
	color: var(--c-muted);
}

.post-card-excerpt {
	margin-bottom: 10px;
	font-size: 15px;
}

.meta-last-date.is-open,
.is-open { color: var(--c-open); font-weight: 600; }
.meta-last-date.is-expired,
.is-expired { color: var(--c-closed); }

/* ==========================================================
   9. Archive / deadline table
   ========================================================== */
.table-wrap {
	overflow-x: auto;
	background: var(--c-card);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.job-table,
.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.job-table th,
.job-table td,
.entry-content th,
.entry-content td {
	padding: 10px 14px;
	border-bottom: 1px solid var(--c-border);
	text-align: left;
	vertical-align: top;
}

.job-table thead th,
.entry-content thead th {
	background: #eef3fb;
	font-weight: 700;
}

.job-table tbody tr:hover {
	background: #f8fbff;
}

.job-table tr.is-expired .col-title a {
	color: var(--c-muted);
}

.job-table .col-posted,
.job-table .col-last-date {
	white-space: nowrap;
}

.entry-content table {
	display: block;
	overflow-x: auto;
	margin: 0 0 1.2em;
	background: #fff;
}

.entry-content th,
.entry-content td {
	border: 1px solid var(--c-border);
}

/* ==========================================================
   10. Single post and page
   ========================================================== */
.single-article,
.single-page {
	padding: 22px;
	background: var(--c-card);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.entry-title {
	margin: 6px 0 10px;
	font-size: 28px;
}

.entry-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.entry-thumbnail {
	margin: 16px 0;
}

.entry-thumbnail img {
	width: 100%;
	border-radius: var(--radius);
}

.quick-facts {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	margin-top: 8px;
	padding: 8px 14px;
	border-radius: var(--radius);
	background: #eaf7ee;
	border: 1px solid #bfe3c9;
}

.quick-facts.is-expired {
	background: #fdeceb;
	border-color: #f3c1bd;
}

.quick-facts-label {
	font-size: 13px;
	color: var(--c-muted);
}

.quick-facts-value {
	font-size: 17px;
}

.quick-facts-status {
	font-weight: 700;
	color: var(--c-closed);
}

.join-box {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
	margin: 16px 0;
	padding: 12px 14px;
	border: 1px dashed var(--c-border);
	border-radius: var(--radius);
	background: #fafcff;
}

.join-box-text {
	margin: 0 6px 0 0;
	font-weight: 600;
}

.entry-content {
	font-size: 17px;
	overflow-wrap: break-word;
}

.entry-content h2 { font-size: 22px; margin-top: 1.4em; }
.entry-content h3 { font-size: 19px; margin-top: 1.2em; }

.entry-content img {
	border-radius: 6px;
}

.candidate-notice {
	margin: 20px 0;
	padding: 12px 14px;
	border-left: 4px solid var(--c-accent);
	background: #fff4ec;
	font-size: 15px;
}

.entry-footer {
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid var(--c-border);
}

.share-buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
}

.share-label {
	font-weight: 600;
}

.share-btn {
	padding: 5px 12px;
	border-radius: 999px;
	background: #eef1f5;
	color: var(--c-text);
	font-size: 13px;
	font-weight: 600;
}

.share-btn:hover {
	text-decoration: none;
	color: #fff;
}

.share-whatsapp:hover { background: var(--c-whatsapp); }
.share-telegram:hover { background: var(--c-telegram); }
.share-facebook:hover { background: #1877f2; }
.share-x:hover { background: #111; }

.entry-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 12px;
	font-size: 14px;
}

.post-navigation {
	margin: 20px 0;
}

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.post-navigation a {
	display: block;
	padding: 12px 14px;
	background: var(--c-card);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	color: var(--c-text);
}

.post-navigation .nav-sub {
	display: block;
	font-size: 12px;
	text-transform: uppercase;
	color: var(--c-muted);
}

.post-navigation .nav-next {
	text-align: right;
}

.related-posts {
	margin-top: 24px;
	padding: 18px 20px;
	background: var(--c-card);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.related-list,
.closing-list,
.latest-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.related-list li,
.closing-list li,
.latest-list li {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 4px 12px;
	padding: 8px 0;
	border-bottom: 1px solid var(--c-border);
}

.related-list li:last-child,
.closing-list li:last-child,
.latest-list li:last-child {
	border-bottom: 0;
}

.related-date,
.closing-date,
.latest-date {
	font-size: 13px;
	color: var(--c-muted);
	white-space: nowrap;
}

.closing-date {
	color: var(--c-closed);
	font-weight: 600;
}

/* ==========================================================
   11. Sidebars and widgets
   ========================================================== */
.widget {
	margin-bottom: 20px;
	padding: 16px;
	background: var(--c-card);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.widget-title {
	margin: 0 0 12px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--c-primary);
	font-size: 17px;
}

.widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.widget li {
	padding: 6px 0;
	border-bottom: 1px solid var(--c-border);
}

.widget li:last-child {
	border-bottom: 0;
}

.widget-join .join-btn {
	display: block;
	margin-bottom: 8px;
	text-align: center;
}

.quick-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.widget .quick-links {
	display: block;
}

.quick-links a {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 999px;
	background: #eef3fb;
	font-size: 14px;
}

.widget .quick-links li {
	padding: 4px 0;
	border: 0;
}

.widget .quick-links a {
	display: block;
	border-radius: 6px;
}

/* ==========================================================
   12. Pagination
   ========================================================== */
.pagination,
.navigation.pagination {
	margin: 24px 0 0;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
}

.pagination .page-numbers {
	min-width: 38px;
	padding: 7px 12px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	background: var(--c-card);
	color: var(--c-text);
	text-align: center;
}

.pagination .page-numbers.current,
.pagination a.page-numbers:hover {
	background: var(--c-primary);
	border-color: var(--c-primary);
	color: #fff;
	text-decoration: none;
}

.page-links {
	margin: 16px 0;
}

/* ==========================================================
   13. 404 and no results
   ========================================================== */
.no-results,
.error-404 {
	padding: 24px;
	background: var(--c-card);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.error-404 .page-header {
	margin: 0 0 16px;
	padding: 0;
	box-shadow: none;
	text-align: center;
}

.error-code {
	margin: 0;
	font-size: 72px;
	font-weight: 800;
	line-height: 1;
	color: var(--c-primary);
}

.error-links,
.error-closing {
	margin-top: 24px;
}

/* ==========================================================
   13b. Homepage template (templates/template-home.php)
   ========================================================== */
.home-intro {
	margin-bottom: 20px;
	padding: 18px 20px;
	background: var(--c-card);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.home-intro .page-title {
	margin-bottom: 8px;
}

.home-intro-text {
	margin-bottom: 12px;
	color: var(--c-muted);
}

.home-join {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.home-deadlines {
	margin-bottom: 24px;
}

.home-empty {
	padding: 16px;
	background: var(--c-card);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.job-table .col-details a {
	font-weight: 600;
}

.category-boxes {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 16px;
	margin-bottom: 20px;
}

.cat-box {
	display: flex;
	flex-direction: column;
	background: var(--c-card);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
}

.box-title {
	margin: 0;
	padding: 10px 14px;
	background: var(--c-primary);
	color: #fff;
	font-size: 16px;
}

.box-list {
	flex: 1 1 auto;
	margin: 0;
	padding: 6px 14px;
	list-style: none;
}

.box-list li {
	padding: 7px 0;
	border-bottom: 1px solid var(--c-border);
	font-size: 15px;
	line-height: 1.4;
}

.box-list li:last-child {
	border-bottom: 0;
}

.view-more {
	display: block;
	padding: 10px 14px;
	border-top: 1px solid var(--c-border);
	font-weight: 600;
	text-align: right;
}

/* ==========================================================
   13c. Archive grid layout (layouts/archive/grid.php)
   ========================================================== */
.post-list.layout-grid {
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
}

.layout-grid .post-card {
	flex-direction: column;
	gap: 12px;
}

.layout-grid .post-card-thumb {
	flex: 0 0 auto;
}

.layout-grid .post-card-thumb img {
	width: 100%;
	height: auto;
	max-height: none;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.layout-grid .post-card-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
}

.layout-grid .post-card-excerpt {
	flex: 1 1 auto;
}

.layout-grid .read-more {
	align-self: flex-start;
}

/* ==========================================================
   14. Footer
   ========================================================== */
.site-footer {
	margin-top: 8px;
	background: #0f2a4a;
	color: #d5deea;
	font-size: 15px;
}

.site-footer a {
	color: #fff;
}

.footer-widgets-inner {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	padding-top: 32px;
	padding-bottom: 16px;
}

.site-footer .widget {
	margin: 0;
	padding: 0;
	background: transparent;
	box-shadow: none;
}

.site-footer .widget-title {
	color: #fff;
	border-bottom-color: var(--c-accent);
}

.site-footer .widget li {
	border-bottom-color: rgba(255, 255, 255, 0.12);
}

.footer-links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-join-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 12px;
	padding-top: 16px;
	padding-bottom: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-join-text {
	margin: 0 6px 0 0;
	font-weight: 600;
}

.footer-notice {
	padding: 10px 0;
	background: rgba(0, 0, 0, 0.18);
	font-size: 13px;
}

.footer-notice p {
	margin: 0;
}

.footer-bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	padding-top: 14px;
	padding-bottom: 14px;
}

.copyright {
	margin: 0;
}

.footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* ==========================================================
   15. Back to top
   ========================================================== */
.back-to-top {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 90;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 50%;
	background: var(--c-primary);
	color: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.back-to-top:hover {
	background: var(--c-primary-dark);
}

/* ==========================================================
   16. Comments (basic)
   ========================================================== */
.comments-area {
	margin-top: 24px;
	padding: 18px 20px;
	background: var(--c-card);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	font: inherit;
}

.comment-form .submit {
	padding: 9px 18px;
	border: 0;
	border-radius: var(--radius);
	background: var(--c-primary);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

/* ==========================================================
   17. Responsive
   ========================================================== */
@media (max-width: 1024px) {
	.content-area,
	.content-area.has-left-sidebar {
		grid-template-columns: minmax(0, 1fr) 280px;
	}

	.content-area.has-left-sidebar > .sidebar-left {
		grid-column: 1 / -1;
		order: 3;
	}
}

@media (max-width: 800px) {
	.content-area,
	.content-area.has-left-sidebar {
		grid-template-columns: minmax(0, 1fr);
	}

	.footer-widgets-inner {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Header: show menu button, hide search beside logo */
	.menu-toggle {
		display: block;
	}

	.header-search {
		display: none;
	}

	.main-navigation {
		display: none;
	}

	/* JS adds "toggled" to #site-navigation when the button is pressed */
	.main-navigation.toggled {
		display: block;
	}

	.main-navigation .menu {
		flex-direction: column;
	}

	.main-navigation .menu a {
		border-top: 1px solid rgba(255, 255, 255, 0.15);
	}

	.main-navigation .sub-menu {
		position: static;
		display: block;
		background: rgba(0, 0, 0, 0.15);
	}

	.topbar-text {
		display: none;
	}

	.topbar-inner {
		justify-content: center;
	}

	.post-card {
		flex-direction: column;
	}

	.post-card-thumb {
		flex-basis: auto;
	}

	.post-card-thumb img {
		max-height: 200px;
	}

	.page-title,
	.entry-title {
		font-size: 22px;
	}

	.single-article,
	.single-page {
		padding: 16px;
	}

	.post-navigation .nav-links {
		grid-template-columns: 1fr;
	}

	/* Archive table: stack each row into labelled lines */
	.job-table thead {
		position: absolute;
		left: -9999px;
	}

	.job-table,
	.job-table tbody,
	.job-table tr,
	.job-table td {
		display: block;
		width: 100%;
	}

	.job-table tr {
		padding: 10px 14px;
		border-bottom: 1px solid var(--c-border);
	}

	.job-table td {
		padding: 2px 0;
		border: 0;
	}

	.job-table td[data-label]::before {
		content: attr(data-label) ": ";
		font-size: 13px;
		color: var(--c-muted);
	}
}

@media (max-width: 480px) {
	body {
		font-size: 15px;
	}

	.entry-content {
		font-size: 16px;
	}

	.site-title {
		font-size: 22px;
	}
}

@media print {
	.topbar,
	.main-navigation,
	.news-ticker,
	.sidebar,
	.site-footer,
	.join-box,
	.share-buttons,
	.back-to-top {
		display: none !important;
	}

	body {
		background: #fff;
	}
}
