/* =========================================================
   Grama Dandora News — theme styles
   Mobile first · Core Web Vitals friendly · RTL ready
   ========================================================= */

:root {
	--gdn-red: #d60000;
	--gdn-red-dark: #a80000;
	--gdn-blue: #003366;
	--gdn-blue-light: #0a4c8f;
	--gdn-white: #ffffff;
	--gdn-gray: #f5f5f5;
	--gdn-border: #e4e4e4;
	--gdn-muted: #6b7280;

	--gdn-bg: var(--gdn-white);
	--gdn-surface: var(--gdn-white);
	--gdn-surface-alt: var(--gdn-gray);
	--gdn-text: var(--gdn-blue);
	--gdn-heading: var(--gdn-red);
	--gdn-line: var(--gdn-border);

	--gdn-font-head: "Ramabhadra", "Noto Sans Telugu", system-ui, sans-serif;
	--gdn-font-body: "Ramaraja", "Noto Serif Telugu", Georgia, serif;

	--gdn-radius: 8px;
	--gdn-shadow: 0 1px 3px rgba(0, 51, 102, .08), 0 6px 18px rgba(0, 51, 102, .06);
	--gdn-container: 1200px;
}

[data-gdn-theme="dark"] {
	--gdn-bg: #0d1117;
	--gdn-surface: #151b23;
	--gdn-surface-alt: #1b2530;
	--gdn-text: #e6edf3;
	--gdn-heading: #ff5252;
	--gdn-line: #263141;
	--gdn-muted: #9aa7b4;
	--gdn-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
	margin: 0;
	background: var(--gdn-bg);
	color: var(--gdn-text);
	font-family: var(--gdn-font-body);
	font-size: 20px;          /* mobile body */
	line-height: 1.7;
	overflow-x: hidden;
}

@media (min-width: 992px) {
	body { font-size: 22px; }  /* desktop body */
}

.container { max-width: var(--gdn-container); }

h1, h2, h3, h4, h5, h6,
.gdn-hero-title, .gdn-card-title, .gdn-single-title, .gdn-block-title {
	font-family: var(--gdn-font-head);
	color: var(--gdn-heading);
	line-height: 1.3;
	margin: 0 0 .5rem;
	font-weight: 400;
}

h1, .gdn-single-title, .gdn-hero-title { font-size: 22px; }

@media (min-width: 992px) {
	h1, .gdn-single-title, .gdn-hero-title { font-size: 30px; }
}

h2 { font-size: 20px; }
h3 { font-size: 19px; }

@media (min-width: 992px) {
	h2 { font-size: 26px; }
	h3 { font-size: 22px; }
}

a { color: var(--gdn-blue); text-decoration: none; }
a:hover, a:focus-visible { color: var(--gdn-red); text-decoration: underline; }
[data-gdn-theme="dark"] a { color: var(--gdn-text); }

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

:focus-visible { outline: 3px solid var(--gdn-red); 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; inset-inline-start: 1rem; top: 1rem;
	z-index: 2000; width: auto; height: auto; clip: auto; clip-path: none;
	background: var(--gdn-red); color: #fff; padding: .6rem 1rem; border-radius: var(--gdn-radius);
}

/* ---------- shared blocks ---------- */

.gdn-section { padding: 1.25rem 0; }

.gdn-panel {
	background: var(--gdn-surface);
	border: 1px solid var(--gdn-line);
	border-radius: var(--gdn-radius);
	padding: 1rem;
	box-shadow: var(--gdn-shadow);
	margin-bottom: 1.25rem;
}

.gdn-block-head {
	display: flex; align-items: center; justify-content: space-between;
	gap: 1rem; margin-bottom: .9rem;
}

.gdn-block-title {
	position: relative;
	margin: 0 0 .75rem;
	font-size: 21px;
	border-bottom: 2px solid var(--gdn-line);
	padding-bottom: .35rem;
	width: 100%;
}

.gdn-block-head .gdn-block-title { margin-bottom: 0; }

.gdn-block-title > span {
	display: inline-block;
	padding-bottom: .35rem;
	border-bottom: 3px solid var(--gdn-red);
	margin-bottom: -.38rem;
}

.gdn-more {
	white-space: nowrap;
	font-family: var(--gdn-font-head);
	font-size: 16px;
	color: var(--gdn-red);
}

.gdn-meta {
	font-family: var(--gdn-font-head);
	font-size: 14px;
	color: var(--gdn-muted);
	display: flex; flex-wrap: wrap; gap: .75rem; align-items: center;
}

.gdn-byline { color: var(--gdn-muted); }
.gdn-byline a { color: var(--gdn-muted); }

.gdn-cat-badge {
	display: inline-block;
	background: var(--gdn-red);
	color: #fff !important;
	font-family: var(--gdn-font-head);
	font-size: 13px;
	line-height: 1;
	padding: .35rem .6rem;
	border-radius: 4px;
	margin-bottom: .45rem;
	text-decoration: none !important;
}

.gdn-btn {
	display: inline-block;
	background: var(--gdn-red);
	color: #fff !important;
	font-family: var(--gdn-font-head);
	padding: .6rem 1.2rem;
	border-radius: var(--gdn-radius);
	border: 0;
	text-decoration: none !important;
	min-height: 44px;
}
.gdn-btn:hover { background: var(--gdn-red-dark); }

.gdn-input, textarea.gdn-input, input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea {
	width: 100%;
	padding: .55rem .75rem;
	border: 1px solid var(--gdn-line);
	border-radius: var(--gdn-radius);
	background: var(--gdn-surface);
	color: var(--gdn-text);
	font-family: var(--gdn-font-body);
	font-size: 17px;
}

/* placeholder image keeps aspect ratio → no CLS */
.gdn-img { display: block; width: 100%; height: auto; }
.gdn-img--placeholder {
	background: linear-gradient(135deg, var(--gdn-surface-alt), var(--gdn-line));
	aspect-ratio: 16 / 9;
}

/* ---------- ticker ---------- */

.gdn-ticker { background: var(--gdn-red); color: #fff; }
.gdn-ticker a { color: #fff; }

.gdn-ticker-inner {
	display: flex; align-items: center; gap: .75rem;
	min-height: 42px;
}

.gdn-ticker-label {
	background: var(--gdn-blue);
	font-family: var(--gdn-font-head);
	font-size: 15px;
	padding: .3rem .75rem;
	border-radius: 4px;
	white-space: nowrap;
}

.gdn-ticker-viewport { flex: 1 1 auto; overflow: hidden; height: 42px; position: relative; }

.gdn-ticker-track { list-style: none; margin: 0; padding: 0; transition: transform .45s ease; }
.gdn-ticker-track li {
	height: 42px; display: flex; align-items: center;
	font-family: var(--gdn-font-head); font-size: 16px;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gdn-ticker-track li a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.gdn-ticker-controls button {
	background: rgba(255, 255, 255, .18);
	border: 0; color: #fff; width: 30px; height: 30px; border-radius: 50%;
	line-height: 1; cursor: pointer;
}

/* ---------- header ---------- */

.gdn-header { background: var(--gdn-surface); border-bottom: 1px solid var(--gdn-line); }
.gdn-header--sticky { position: sticky; top: 0; z-index: 1030; }

.gdn-utility { background: var(--gdn-surface-alt); border-bottom: 1px solid var(--gdn-line); }
.gdn-utility-inner {
	display: flex; flex-wrap: wrap; gap: .5rem;
	align-items: center; justify-content: space-between;
	padding: .35rem 0;
}
.gdn-utility-left, .gdn-utility-right { display: flex; align-items: center; gap: .75rem; }
.gdn-date, .gdn-weather { font-family: var(--gdn-font-head); font-size: 14px; color: var(--gdn-muted); }

.gdn-theme-toggle {
	width: 44px; height: 36px; border: 1px solid var(--gdn-line);
	background: var(--gdn-surface); border-radius: var(--gdn-radius); cursor: pointer;
}
.gdn-toggle-icon {
	display: inline-block; width: 14px; height: 14px; border-radius: 50%;
	background: var(--gdn-blue);
	box-shadow: inset -4px -2px 0 0 var(--gdn-surface);
}
[data-gdn-theme="dark"] .gdn-toggle-icon { background: #ffc93c; box-shadow: none; }

.gdn-branding { padding: .85rem 0; }
.gdn-branding--center { text-align: center; }
.gdn-branding--center .gdn-logo img { margin-inline: auto; }
.gdn-logo img { max-height: 72px; width: auto; }
.gdn-site-title { margin: 0; font-family: var(--gdn-font-head); font-size: 30px; }
.gdn-site-title a { color: var(--gdn-red); text-decoration: none; }
.gdn-site-desc { margin: .15rem 0 0; font-size: 15px; color: var(--gdn-muted); }

.gdn-navbar { background: var(--gdn-blue); padding: 0; }
.gdn-navbar .container { display: flex; align-items: center; }
.gdn-nav { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.gdn-nav > li > .nav-link {
	color: #fff; font-family: var(--gdn-font-head); font-size: 17px;
	padding: .8rem 1rem; display: block; min-height: 44px;
}
.gdn-nav > li > .nav-link:hover,
.gdn-nav > li.current-menu-item > .nav-link { background: var(--gdn-red); color: #fff; text-decoration: none; }

.gdn-navbar .dropdown-menu {
	border: 0; border-top: 3px solid var(--gdn-red); border-radius: 0;
	background: var(--gdn-surface); box-shadow: var(--gdn-shadow); padding: .5rem;
}
.gdn-navbar .dropdown-item { font-family: var(--gdn-font-head); font-size: 16px; color: var(--gdn-text); }
.gdn-navbar .dropdown-item:hover { background: var(--gdn-surface-alt); color: var(--gdn-red); }

/* mega menu: multi-column dropdown for top-level items */
@media (min-width: 992px) {
	.gdn-navbar .gdn-mega {
		width: min(100%, var(--gdn-container));
		column-count: 3; column-gap: 1.5rem;
	}
	.gdn-navbar .gdn-mega > li { break-inside: avoid; }
	.gdn-navbar .gdn-mega .dropdown-menu {
		display: block; position: static; box-shadow: none;
		border: 0; padding-inline-start: .75rem;
	}
}

.gdn-burger { border: 0; background: transparent; padding: .6rem .75rem; }
.gdn-burger-bar { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; }

/* ---------- search ---------- */

.gdn-search { position: relative; min-width: 220px; }
.gdn-search-row { display: flex; align-items: stretch; gap: 0; }
.gdn-search-cat {
	max-width: 110px; border: 1px solid var(--gdn-line);
	border-inline-end: 0; border-radius: var(--gdn-radius) 0 0 var(--gdn-radius);
	background: var(--gdn-surface); color: var(--gdn-text); font-size: 14px; padding: 0 .4rem;
}
.gdn-search-input { border-radius: 0; font-size: 16px; min-height: 40px; }
.gdn-search-btn {
	background: var(--gdn-red); color: #fff; border: 0; min-width: 44px;
	border-radius: 0 var(--gdn-radius) var(--gdn-radius) 0; cursor: pointer;
}
.gdn-search-results {
	position: absolute; z-index: 1200; inset-inline: 0; top: calc(100% + 6px);
	background: var(--gdn-surface); border: 1px solid var(--gdn-line);
	border-radius: var(--gdn-radius); box-shadow: var(--gdn-shadow);
	max-height: 60vh; overflow-y: auto; padding: .35rem;
}
.gdn-result {
	display: flex; gap: .6rem; align-items: center; padding: .45rem;
	border-radius: 6px; color: var(--gdn-text); text-decoration: none;
}
.gdn-result:hover, .gdn-result:focus { background: var(--gdn-surface-alt); text-decoration: none; }
.gdn-result img { width: 80px; height: 60px; object-fit: cover; border-radius: 4px; flex: 0 0 auto; }
.gdn-result-title { font-family: var(--gdn-font-head); font-size: 16px; display: block; }
.gdn-result-meta { font-size: 13px; color: var(--gdn-muted); }
.gdn-result-status { padding: .6rem; font-size: 15px; color: var(--gdn-muted); }

/* ---------- hero ---------- */

.gdn-hero { background: var(--gdn-surface); border: 1px solid var(--gdn-line); border-radius: var(--gdn-radius); overflow: hidden; box-shadow: var(--gdn-shadow); }
.gdn-hero-media { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.gdn-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.gdn-hero-media .gdn-cat-badge { position: absolute; inset-inline-start: 12px; top: 12px; margin: 0; }
.gdn-hero-body { padding: 1rem; }
.gdn-hero-title a { color: var(--gdn-heading); }

.gdn-trending-list { list-style: none; margin: 0; padding: 0; counter-reset: gdn; }
.gdn-trending-item { display: flex; gap: .6rem; align-items: flex-start; padding: .6rem 0; border-bottom: 1px dashed var(--gdn-line); }
.gdn-trending-item:last-child { border-bottom: 0; }
.gdn-trending-num { font-family: var(--gdn-font-head); font-size: 22px; color: var(--gdn-red); line-height: 1; min-width: 28px; }
.gdn-trending-thumb { flex: 0 0 80px; }
.gdn-trending-thumb img, .gdn-trending-thumb .gdn-img--placeholder { width: 80px; height: 60px; object-fit: cover; border-radius: 4px; aspect-ratio: 4/3; }
.gdn-trending-title { font-family: var(--gdn-font-head); font-size: 16px; display: block; color: var(--gdn-text); }
.gdn-trending-body .gdn-meta { font-size: 13px; }

/* ---------- cards ---------- */

.gdn-card {
	background: var(--gdn-surface); border: 1px solid var(--gdn-line);
	border-radius: var(--gdn-radius); overflow: hidden; box-shadow: var(--gdn-shadow);
	display: flex; flex-direction: column; height: 100%;
}
.gdn-card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.gdn-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gdn-card:hover .gdn-card-media img { transform: scale(1.03); }
.gdn-card-body { padding: .85rem; display: flex; flex-direction: column; gap: .3rem; flex: 1 1 auto; }
.gdn-card-title { font-size: 19px; margin: 0; }
.gdn-card-title a { color: var(--gdn-heading); }
.gdn-card-excerpt { font-size: 17px; margin: 0; color: var(--gdn-text); opacity: .85; }
.gdn-card-meta { margin-top: auto; padding-top: .4rem; font-size: 13px; }

/* ---------- small lists (80x60) ---------- */

.gdn-small-list { list-style: none; margin: 0; padding: 0; }
.gdn-small-item { display: flex; gap: .6rem; align-items: center; padding: .55rem 0; border-bottom: 1px dashed var(--gdn-line); }
.gdn-small-item:last-child { border-bottom: 0; }
.gdn-small-thumb { flex: 0 0 80px; }
.gdn-small-thumb img, .gdn-small-thumb .gdn-img--placeholder {
	width: 80px; height: 60px; object-fit: cover; border-radius: 4px; aspect-ratio: 4 / 3;
}
.gdn-small-title { font-family: var(--gdn-font-head); font-size: 16px; color: var(--gdn-text); display: block; }
.gdn-small-body .gdn-meta { font-size: 12px; }

.gdn-cat-block { background: var(--gdn-surface); border: 1px solid var(--gdn-line); border-radius: var(--gdn-radius); padding: 1rem; box-shadow: var(--gdn-shadow); }

/* ---------- rank / most read ---------- */

.gdn-rank-item { display: flex; gap: .6rem; align-items: center; background: var(--gdn-surface); border: 1px solid var(--gdn-line); border-radius: var(--gdn-radius); padding: .55rem; height: 100%; }
.gdn-rank-num { font-family: var(--gdn-font-head); font-size: 24px; color: var(--gdn-red); min-width: 30px; }
.gdn-rank-thumb img, .gdn-rank-thumb .gdn-img--placeholder { width: 80px; height: 60px; object-fit: cover; border-radius: 4px; aspect-ratio: 4/3; }
.gdn-rank-title { font-family: var(--gdn-font-head); font-size: 16px; color: var(--gdn-text); }

/* ---------- galleries ---------- */

.gdn-videos, .gdn-photos, .gdn-editors, .gdn-mostread, .gdn-latest-stories { background: var(--gdn-surface-alt); }
.gdn-video-card { background: var(--gdn-surface); border: 1px solid var(--gdn-line); border-radius: var(--gdn-radius); overflow: hidden; height: 100%; }
.gdn-video-media { position: relative; display: block; aspect-ratio: 16/9; }
.gdn-video-media img { width: 100%; height: 100%; object-fit: cover; }
.gdn-play {
	position: absolute; inset: 0; margin: auto; width: 48px; height: 48px;
	display: grid; place-items: center; border-radius: 50%;
	background: rgba(214, 0, 0, .9); color: #fff; font-size: 18px;
}
.gdn-video-title { font-size: 17px; padding: .6rem; margin: 0; }

.gdn-photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 768px) { .gdn-photo-grid { grid-template-columns: repeat(3, 1fr); } }
.gdn-photo-item { position: relative; display: block; border-radius: var(--gdn-radius); overflow: hidden; aspect-ratio: 16/9; }
.gdn-photo-item img { width: 100%; height: 100%; object-fit: cover; }
.gdn-photo-caption {
	position: absolute; inset-inline: 0; bottom: 0; padding: .5rem;
	background: linear-gradient(transparent, rgba(0, 51, 102, .9));
	color: #fff; font-family: var(--gdn-font-head); font-size: 15px;
}

/* ---------- breadcrumb ---------- */

.gdn-breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .9rem; padding: 0; font-size: 14px; font-family: var(--gdn-font-head); }
.gdn-breadcrumb li + li::before { content: "›"; margin-inline-end: .4rem; color: var(--gdn-muted); }
.gdn-breadcrumb a { color: var(--gdn-muted); }

/* ---------- single ---------- */

.gdn-archive-header { margin-bottom: 1rem; }
.gdn-archive-title { border-bottom: 3px solid var(--gdn-red); display: inline-block; padding-bottom: .3rem; }

.gdn-single { background: var(--gdn-surface); border: 1px solid var(--gdn-line); border-radius: var(--gdn-radius); padding: 1rem; box-shadow: var(--gdn-shadow); }
.gdn-single-media { margin: 0 0 1rem; }
.gdn-single-media img { width: 100%; height: auto; border-radius: var(--gdn-radius); aspect-ratio: 16/9; object-fit: cover; }
.gdn-single-media figcaption { font-size: 14px; color: var(--gdn-muted); padding-top: .35rem; }
.gdn-single-meta { margin: .5rem 0 1rem; }

.gdn-share { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; padding: .5rem 0 1rem; border-block: 1px solid var(--gdn-line); margin-bottom: 1rem; }
.gdn-share-label { font-family: var(--gdn-font-head); font-size: 15px; color: var(--gdn-muted); }
.gdn-share-btn {
	font-family: var(--gdn-font-head); font-size: 14px;
	background: var(--gdn-blue); color: #fff !important; border: 0;
	padding: .45rem .75rem; border-radius: 4px; cursor: pointer; min-height: 40px;
	text-decoration: none !important;
}
.gdn-share-btn:hover { background: var(--gdn-red); }

.gdn-content p { margin: 0 0 1.1rem; }
.gdn-content img { border-radius: var(--gdn-radius); height: auto; }
.gdn-content blockquote {
	border-inline-start: 4px solid var(--gdn-red);
	margin: 1rem 0; padding: .5rem 1rem; background: var(--gdn-surface-alt);
}
.gdn-content ul, .gdn-content ol { padding-inline-start: 1.4rem; }

.gdn-tags { margin-top: 1rem; font-size: 15px; }
.gdn-tags a {
	display: inline-block; background: var(--gdn-surface-alt); color: var(--gdn-text);
	padding: .25rem .6rem; border-radius: 4px; margin: 0 .25rem .35rem 0; font-size: 14px;
}

.gdn-post-nav { display: grid; gap: .75rem; margin: 1.25rem 0; }
@media (min-width: 768px) { .gdn-post-nav { grid-template-columns: 1fr 1fr; } }
.gdn-post-nav-item { background: var(--gdn-surface); border: 1px solid var(--gdn-line); border-radius: var(--gdn-radius); padding: .75rem; display: block; }
.gdn-post-nav-item span { display: block; font-size: 13px; color: var(--gdn-red); font-family: var(--gdn-font-head); }
.gdn-post-nav-item strong { font-family: var(--gdn-font-head); font-weight: 400; font-size: 17px; color: var(--gdn-text); }
.gdn-post-nav-next { text-align: end; }

/* Author box intentionally hidden: byline only. */
.author-info, .author-bio, .entry-author-box { display: none !important; }

/* ---------- comments ---------- */

.gdn-comment-list, .gdn-comment-list .children { list-style: none; padding-inline-start: 0; margin: 0; }
.gdn-comment-list .children { padding-inline-start: 1.25rem; }
.gdn-comment-list li.comment { border-bottom: 1px solid var(--gdn-line); padding: .85rem 0; }
.comment-meta { font-size: 14px; color: var(--gdn-muted); font-family: var(--gdn-font-head); }
.comment-author img { border-radius: 50%; margin-inline-end: .5rem; }

/* ---------- sidebar / widgets ---------- */

.gdn-sidebar .widget {
	background: var(--gdn-surface); border: 1px solid var(--gdn-line);
	border-radius: var(--gdn-radius); padding: 1rem; margin-bottom: 1.25rem;
	box-shadow: var(--gdn-shadow);
}
.gdn-sidebar ul { list-style: none; margin: 0; padding: 0; }
.gdn-sidebar li { padding: .3rem 0; }

.gdn-socials { display: flex; flex-wrap: wrap; gap: .4rem; }
.gdn-social {
	width: 40px; height: 40px; display: grid; place-items: center;
	border-radius: 50%; background: var(--gdn-blue); color: #fff !important;
	font-family: var(--gdn-font-head); text-decoration: none !important;
}
.gdn-social:hover { background: var(--gdn-red); }

.gdn-weather-widget { display: flex; align-items: baseline; gap: .6rem; font-family: var(--gdn-font-head); }
.gdn-weather-temp { font-size: 26px; color: var(--gdn-red); }

.gdn-ad { margin: 1rem auto; text-align: center; }
.gdn-ad:empty { display: none; }

/* ---------- footer ---------- */

.gdn-footer { background: var(--gdn-blue); color: #fff; padding-top: 2rem; margin-top: 1.5rem; }
.gdn-footer a, .gdn-footer .gdn-small-title { color: #e7eef7; }
.gdn-footer a:hover { color: #fff; }
.gdn-footer .gdn-block-title { color: #fff; border-bottom-color: rgba(255, 255, 255, .2); }
.gdn-footer .gdn-block-title > span { border-bottom-color: var(--gdn-red); }
.gdn-footer-list { list-style: none; margin: 0; padding: 0; }
.gdn-footer-list li { padding: .25rem 0; font-size: 17px; }
.gdn-footer-about { font-size: 17px; color: #dbe6f2; }
.gdn-copyright { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 1.5rem; padding: .9rem 0; font-size: 15px; text-align: center; }
.gdn-copyright p { margin: 0; }

/* ---------- mobile bottom nav ---------- */

.gdn-bottom-nav {
	position: fixed; inset-inline: 0; bottom: 0; z-index: 1040;
	background: var(--gdn-surface); border-top: 1px solid var(--gdn-line);
	box-shadow: 0 -2px 10px rgba(0, 0, 0, .08);
}
.gdn-bottom-list { display: flex; list-style: none; margin: 0; padding: 0; }
.gdn-bottom-list li { flex: 1 1 0; }
.gdn-bottom-list a, .gdn-bottom-list button {
	display: flex; align-items: center; justify-content: center;
	min-height: 52px; width: 100%; border: 0; background: transparent;
	font-family: var(--gdn-font-head); font-size: 15px; color: var(--gdn-text);
	text-decoration: none;
}
.gdn-bottom-list a:hover { color: var(--gdn-red); }

@media (max-width: 991.98px) { body { padding-bottom: 56px; } }

/* ---------- offcanvas ---------- */

.gdn-offcanvas { background: var(--gdn-surface); color: var(--gdn-text); }
.gdn-mobile-menu { list-style: none; margin: 1rem 0; padding: 0; }
.gdn-mobile-menu li a { display: block; padding: .7rem .25rem; min-height: 44px; border-bottom: 1px solid var(--gdn-line); font-family: var(--gdn-font-head); font-size: 18px; }
.gdn-mobile-menu .sub-menu { list-style: none; padding-inline-start: 1rem; }

/* ---------- pagination ---------- */

.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; margin-top: 1.25rem; }
.page-numbers {
	display: grid; place-items: center; min-width: 44px; min-height: 44px;
	padding: 0 .6rem; border: 1px solid var(--gdn-line); border-radius: var(--gdn-radius);
	font-family: var(--gdn-font-head); color: var(--gdn-text); background: var(--gdn-surface);
}
.page-numbers.current, .page-numbers:hover { background: var(--gdn-red); color: #fff; text-decoration: none; border-color: var(--gdn-red); }

/* ---------- back to top ---------- */

.gdn-to-top {
	position: fixed; inset-inline-end: 16px; bottom: 70px; z-index: 1035;
	width: 44px; height: 44px; border-radius: 50%; border: 0;
	background: var(--gdn-red); color: #fff; font-size: 18px; cursor: pointer;
	opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.gdn-to-top.is-visible { opacity: 1; pointer-events: auto; }

/* ---------- 404 ---------- */

.gdn-404-code { font-family: var(--gdn-font-head); font-size: 64px; color: var(--gdn-red); margin: 0; line-height: 1; }

/* ---------- RTL ---------- */

[dir="rtl"] .gdn-post-nav-next { text-align: start; }
[dir="rtl"] .gdn-breadcrumb li + li::before { content: "‹"; }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
