/*
Theme Name: Samanantar
Theme URI: https://digitaldang.com/
Author: Narayan Adhikari
Author URI: https://digitaldang.com/
Description: A fast, secure, mobile-first Nepali news theme. No jQuery, no Bootstrap, no third-party scripts. Devanagari-optimised typography, news-article schema, most-read lists, dynamic homepage blocks.
Version: 2.0.0
Requires at least: 5.8
Tested up to: 6.8
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: samanantar
Tags: news, blog, two-columns, custom-menu, custom-logo, featured-images, translation-ready, rtl-language-support
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
	--red: #c4161c;
	--red-dark: #9e0f14;
	--navy: #0f2a43;
	--navy-2: #163a5c;
	--ink: #16181d;
	--ink-2: #4a5160;
	--line: #e3e6eb;
	--bg: #ffffff;
	--bg-soft: #f4f6f9;
	--radius: 6px;
	--wrap: 1200px;
	--gap: 24px;
	--font: 'Mukta', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--font-head: 'Noto Serif Devanagari', 'Mukta', Georgia, serif;
	--shadow: 0 1px 2px rgba(15, 42, 67, .06), 0 4px 14px rgba(15, 42, 67, .06);
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	font-size: 18px;
	line-height: 1.7; /* Devanagari needs generous leading */
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.4; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
.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 {
	position: absolute; left: 8px; top: -60px; z-index: 1000; background: var(--red); color: #fff;
	padding: 10px 16px; border-radius: 0 0 var(--radius) var(--radius); transition: top .15s;
}
.skip-link:focus { top: 0; color: #fff; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.site-main { min-height: 50vh; padding-bottom: 40px; }

/* ==========================================================================
   3. Header
   ========================================================================== */
.topbar { background: var(--navy); color: #d7e1ec; font-size: 15px; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 12px; }
.topbar__social { display: flex; gap: 16px; list-style: none; }
.topbar__social a:hover { color: #fff; text-decoration: underline; }

.masthead { background: #fff; }
.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 16px; padding-bottom: 16px; }
.masthead__logo img, .site-logo img, .custom-logo { width: auto; max-height: 76px; height: auto; }
.masthead__search { width: min(340px, 100%); }

.search-form { display: flex; width: 100%; }
.search-form__input {
	flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 9px 14px; color: var(--ink);
	border: 1px solid var(--line); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); background: #fff;
}
.search-form__input:focus { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(15, 42, 67, .15); }
.search-form__btn {
	font: inherit; font-weight: 600; font-size: 16px; padding: 9px 18px; cursor: pointer; color: #fff;
	background: var(--red); border: 1px solid var(--red); border-radius: 0 var(--radius) var(--radius) 0;
}
.search-form__btn:hover { background: var(--red-dark); border-color: var(--red-dark); }

.main-nav {
	background: var(--red); color: #fff; position: sticky; top: 0; z-index: 50;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}
.admin-bar .main-nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .main-nav { top: 46px; } }
.main-nav .menu, .main-nav ul { list-style: none; display: flex; flex-wrap: wrap; }
.main-nav a { display: block; padding: 11px 15px; font-size: 19px; font-weight: 600; color: #fff; white-space: nowrap; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current-cat > a { background: var(--red-dark); color: #fff; }
.main-nav .menu-item-has-children { position: relative; }
.main-nav .sub-menu {
	display: none; position: absolute; left: 0; top: 100%; min-width: 200px; flex-direction: column;
	background: var(--navy); box-shadow: var(--shadow); z-index: 10;
}
.main-nav .menu-item-has-children:hover > .sub-menu,
.main-nav .menu-item-has-children:focus-within > .sub-menu { display: flex; }
.main-nav .sub-menu a { font-size: 17px; font-weight: 400; }
.nav-toggle { display: none; }

.ticker { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.ticker__inner { display: flex; align-items: center; gap: 14px; overflow: hidden; }
.ticker__label {
	flex: none; background: var(--navy); color: #fff; font-weight: 700; font-size: 15px;
	padding: 2px 14px; margin: 7px 0; border-radius: 3px;
}
.ticker__track { overflow: hidden; flex: 1; min-width: 0; }
.ticker__move { display: flex; width: max-content; animation: ticker 55s linear infinite; }
.ticker__list { display: flex; gap: 40px; padding: 6px 40px 6px 0; list-style: none; white-space: nowrap; }
.ticker__track:hover .ticker__move, .ticker__track:focus-within .ticker__move { animation-play-state: paused; }
.ticker__list a { font-size: 17px; font-weight: 600; }
.ticker__list li::before { content: '▪'; color: var(--red); margin-right: 10px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==========================================================================
   4. Layout helpers
   ========================================================================== */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; margin-top: 8px; }
.layout__side { display: flex; flex-direction: column; gap: 24px; }
.cols { display: grid; gap: 32px; margin-top: 12px; }
.cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid { display: grid; gap: var(--gap); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.list { display: flex; flex-direction: column; }

.block { margin: 28px 0; }
.band { margin: 36px 0; padding: 4px 0 28px; }
.band--dark { background: var(--navy); color: #fff; }
.band--dark .section-title, .band--dark .section-title a { color: #fff; }
.band--dark .section-more { color: #c9d6e4; }
.band--dark .card__title a { color: #fff; }
.band--dark .card__time { color: #aab9ca; }

/* Section heading */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; border-bottom: 2px solid var(--line); }
.section-title {
	font-family: var(--font-head); font-size: 25px; position: relative; padding: 0 0 8px 16px; margin-bottom: -2px;
	border-bottom: 3px solid var(--red);
}
.section-title::before { content: ''; position: absolute; left: 0; top: 9px; width: 6px; height: 24px; background: var(--red); border-radius: 2px; }
.band--dark .section-head { border-color: rgba(255, 255, 255, .2); }
.section-more { font-size: 16px; font-weight: 600; color: var(--red); white-space: nowrap; padding-bottom: 6px; }
.section-more:hover { text-decoration: underline; }

/* ==========================================================================
   5. Cards
   ========================================================================== */
.card { position: relative; min-width: 0; }
.card__media { display: block; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-soft); aspect-ratio: 16 / 10; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.thumb-placeholder {
	display: flex; width: 100%; height: 100%; align-items: center; justify-content: center;
	font-family: var(--font-head); font-weight: 700; font-size: 22px; color: rgba(255, 255, 255, .85);
	background: linear-gradient(135deg, var(--navy), var(--navy-2) 55%, var(--red));
}
.card__body { padding-top: 10px; }
.card__title { font-size: 19px; line-height: 1.5; }
.card__title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .25s; }
.card:hover .card__title a { background-size: 100% 2px; }
.card__excerpt { color: var(--ink-2); font-size: 17px; margin: 6px 0 0; }
.card__time { display: block; color: var(--ink-2); font-size: 14.5px; margin-top: 4px; }
.kicker {
	display: inline-block; font-size: 14px; font-weight: 700; color: var(--red); text-transform: none;
	letter-spacing: .02em; margin-bottom: 2px;
}
.kicker--plain { margin: 0; }

.card--row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.card--row:first-child { padding-top: 0; }
.card--row .card__body { padding-top: 0; }
.card--row .card__title { font-size: 18px; }
.list .card--row { grid-template-columns: 260px minmax(0, 1fr); gap: 20px; padding: 20px 0; }
.list .card--row:first-child { padding-top: 4px; }
.list .card--row .card__title { font-size: 23px; font-family: var(--font-head); }

.card--lead .card__title { font-family: var(--font-head); font-size: 27px; line-height: 1.45; }

.card--overlay { border-radius: var(--radius); overflow: hidden; background: var(--navy); }
.card--overlay .card__media { border-radius: 0; aspect-ratio: 16 / 9; }
.card--overlay .card__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 20, 33, .92) 0%, rgba(8, 20, 33, .35) 48%, transparent 75%); }
.card--overlay .card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 28px; color: #fff; }
.card--overlay .card__title { font-family: var(--font-head); font-size: 34px; line-height: 1.4; }
.card--overlay .card__title a, .card--overlay .card__excerpt, .card--overlay .card__time { color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }
.card--overlay .kicker { background: var(--red); color: #fff; padding: 0 10px; border-radius: 3px; margin-bottom: 8px; }
.card--overlay .card__time { color: #dce5ee; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 28px; margin: 22px 0 6px; }
.hero__side { display: flex; flex-direction: column; }
.hero__side .card--row { grid-template-columns: 110px minmax(0, 1fr); padding: 12px 0; }
.hero__side .card--row:first-child { padding-top: 0; }
.hero__side .card--row:last-child { border-bottom: 0; }

.lead-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; }
.lead-grid__side { display: flex; flex-direction: column; }
.lead-grid__side .card--row:last-child { border-bottom: 0; }

.dark-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; }
.dark-grid__side { display: flex; flex-direction: column; justify-content: center; }
.dark-grid .card--row { border-color: rgba(255, 255, 255, .15); }
.dark-grid .card--row:last-child { border-bottom: 0; }

.title-list { list-style: none; margin-top: 10px; }
.title-list li { padding: 9px 0 9px 18px; border-bottom: 1px solid var(--line); position: relative; font-weight: 600; line-height: 1.5; }
.title-list li::before { content: ''; position: absolute; left: 0; top: 20px; width: 7px; height: 7px; background: var(--red); border-radius: 50%; }
.title-list li:last-child { border-bottom: 0; }

/* ==========================================================================
   6. Widgets / sidebar / ads
   ========================================================================== */
.widget { margin: 0; }
.widget-title { font-family: var(--font-head); font-size: 21px; border-bottom: 2px solid var(--line); margin-bottom: 14px; }
.widget-title span { display: inline-block; padding-bottom: 6px; border-bottom: 3px solid var(--red); margin-bottom: -2px; }
.widget ul { list-style: none; }
.widget li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.popular { list-style: none; counter-reset: pop; }
.popular li { counter-increment: pop; position: relative; padding: 11px 0 11px 44px; border-bottom: 1px solid var(--line); font-weight: 600; line-height: 1.5; }
.popular li::before {
	content: counter(pop, devanagari); position: absolute; left: 0; top: 8px; width: 32px; height: 32px; line-height: 32px;
	text-align: center; font-family: var(--font-head); font-size: 18px; color: #fff; background: var(--navy); border-radius: 50%;
}
.popular li:nth-child(-n+3)::before { background: var(--red); }

.ad { position: relative; margin: 22px auto; text-align: center; max-width: 100%; }
.ad img { margin: 0 auto; border-radius: 3px; max-width: 100%; height: auto; }
.ad__label { display: block; font-size: 11px; letter-spacing: .1em; color: #8a92a0; margin-bottom: 3px; }
.ad--box { margin: 0 auto; }
.layout__side .ad img { width: 100%; }

/* ==========================================================================
   7. Article
   ========================================================================== */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 15px; color: var(--ink-2); padding: 16px 0 6px; }
.breadcrumb .sep { color: #b3bac6; }
.breadcrumb a:hover { text-decoration: underline; }

.article { min-width: 0; }
.article__title { font-family: var(--font-head); font-size: 40px; line-height: 1.45; margin: 6px 0 14px; letter-spacing: -.005em; }
.article__head .kicker { font-size: 16px; }
.byline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.byline__author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.byline__avatar, .author-box__avatar, .author-head__avatar { border-radius: 50%; object-fit: cover; }
.byline__meta { color: var(--ink-2); font-size: 15.5px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.dot { color: #b3bac6; font-size: 10px; }
.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0; }
.share__label { font-weight: 700; font-size: 15px; margin-right: 4px; }
.share__btn {
	font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; background: var(--bg-soft); color: var(--ink);
	border: 1px solid var(--line); border-radius: 999px; padding: 3px 16px; line-height: 1.6;
}
.share__btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

.article__figure { margin: 18px 0 24px; }
.article__figure img { width: 100%; border-radius: var(--radius); }
.article__figure figcaption { font-size: 15px; color: var(--ink-2); padding-top: 8px; }

.entry { font-size: 20px; line-height: 1.95; overflow-wrap: anywhere; }
.entry > * { max-width: 100%; }
.entry p { margin-bottom: 1.2em; }
.entry h2, .entry h3, .entry h4 { font-family: var(--font-head); margin: 1.6em 0 .6em; }
.entry h2 { font-size: 28px; }
.entry h3 { font-size: 24px; }
.entry a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.entry img, .entry figure { border-radius: var(--radius); }
.entry figure { margin: 1.5em 0; }
.entry figcaption, .wp-caption-text { font-size: 15px; color: var(--ink-2); padding-top: 6px; }
.entry blockquote {
	margin: 1.6em 0; padding: 6px 0 6px 22px; border-left: 5px solid var(--red); font-family: var(--font-head);
	font-size: 23px; color: var(--navy); line-height: 1.7;
}
.entry ul, .entry ol { margin: 0 0 1.2em 1.4em; }
.entry li { margin-bottom: .4em; }
.entry table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.entry th, .entry td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.entry th { background: var(--bg-soft); }
.entry iframe { width: 100%; }
.alignwide, .alignfull { max-width: 100%; }
.alignleft { float: left; margin: .3em 1.2em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.2em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.page-links { margin: 20px 0; font-weight: 600; }

.tags { margin: 28px 0 8px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tags a { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; font-size: 15.5px; }
.tags a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.tags__label { font-weight: 700; }

.author-box { display: flex; gap: 16px; align-items: center; background: var(--bg-soft); border-radius: var(--radius); padding: 18px 20px; margin: 28px 0; }
.author-box__name { font-weight: 700; font-size: 20px; margin: 0; }
.author-box__bio { margin: 2px 0 0; color: var(--ink-2); font-size: 16.5px; line-height: 1.6; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0; }
.post-nav a { display: block; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; line-height: 1.5; }
.post-nav a:hover { border-color: var(--red); }
.post-nav__next { text-align: right; }

/* Archives */
.archive-head { padding: 26px 0 12px; border-bottom: 2px solid var(--line); margin-bottom: 18px; }
.archive-title { font-family: var(--font-head); font-size: 36px; line-height: 1.4; }
.archive-title::after { content: ''; display: block; width: 72px; height: 4px; background: var(--red); margin-top: 8px; border-radius: 2px; }
.archive-desc { color: var(--ink-2); margin: 10px 0 0; max-width: 720px; }
.author-head { display: flex; gap: 22px; align-items: center; }
.archive-head .search-form { max-width: 520px; margin-top: 14px; }
.empty { padding: 30px 0; color: var(--ink-2); }

.pagination { margin: 32px 0 10px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.page-numbers {
	min-width: 42px; text-align: center; padding: 4px 14px; border: 1px solid var(--line); border-radius: var(--radius);
	font-weight: 600; background: #fff;
}
a.page-numbers:hover { border-color: var(--red); }
.page-numbers.current { background: var(--red); border-color: var(--red); color: #fff; }

.error-404 { text-align: center; padding: 48px 0 32px; }
.error-404__code { font-family: var(--font-head); font-size: 110px; line-height: 1.1; color: var(--red); margin: 0; }
.error-404 .archive-title::after { margin-left: auto; margin-right: auto; }
.error-404 .archive-desc { margin-left: auto; margin-right: auto; }
.error-404 .search-form { max-width: 480px; margin: 18px auto 0; }

/* Comments */
.comments { margin-top: 36px; }
.comments__title { font-family: var(--font-head); font-size: 24px; margin-bottom: 14px; }
.comment-list { list-style: none; }
.comment-list .comment { padding: 14px 0; border-bottom: 1px solid var(--line); }
.comment-list .children { list-style: none; margin-left: 28px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius);
}
.comment-form .submit { font: inherit; font-weight: 700; color: #fff; background: var(--red); border: 0; border-radius: var(--radius); padding: 10px 24px; cursor: pointer; }

/* ==========================================================================
   8. Footer
   ========================================================================== */
.site-footer { background: var(--navy); color: #c9d6e4; margin-top: 30px; font-size: 16.5px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1.1fr 1fr .8fr; gap: 36px; padding-top: 44px; padding-bottom: 36px; }
.footer-col p { margin: 14px 0 0; line-height: 1.8; }
.footer-col--brand img { max-height: 64px; width: auto; filter: brightness(0) invert(1); opacity: .95; }
.footer-title { font-family: var(--font-head); color: #fff; font-size: 20px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--red); display: inline-block; }
.footer-list { list-style: none; }
.footer-list li { padding: 3px 0; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .14); background: #0a1f33; font-size: 15px; }
.footer-bottom__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 20px; padding-top: 14px; padding-bottom: 14px; }
.to-top {
	position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 46px; height: 46px; border-radius: 50%; border: 0;
	background: var(--red); color: #fff; font-size: 22px; cursor: pointer; box-shadow: var(--shadow);
}
.to-top[hidden] { display: none; }

/* ==========================================================================
   9. Responsive
   ========================================================================== */
@media (max-width: 1080px) {
	.layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; }
	.grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.card--overlay .card__title { font-size: 28px; }
}

@media (max-width: 860px) {
	body { font-size: 17px; }
	.layout { grid-template-columns: minmax(0, 1fr); }
	.layout__side { margin-top: 12px; }
	.hero, .lead-grid, .dark-grid { grid-template-columns: minmax(0, 1fr); }
	.cols--2, .cols--3 { grid-template-columns: minmax(0, 1fr); }
	.article__title { font-size: 31px; }
	.archive-title { font-size: 29px; }
	.entry { font-size: 19px; line-height: 1.9; }
	.masthead__search { display: none; }
	.masthead__inner { justify-content: center; }

	/* Mobile menu */
	.main-nav__inner { padding: 0; }
	.nav-toggle {
		display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 16px; font: inherit; font-weight: 700;
		font-size: 19px; color: #fff; background: transparent; border: 0; cursor: pointer;
	}
	.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
		display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; position: relative; content: '';
	}
	.nav-toggle__bars::before { position: absolute; top: -7px; }
	.nav-toggle__bars::after { position: absolute; top: 7px; }
	.main-nav__menu { display: none; border-top: 1px solid rgba(255, 255, 255, .25); background: var(--red-dark); max-height: 70vh; overflow-y: auto; }
	.main-nav.is-open .main-nav__menu { display: block; }
	.main-nav .menu, .main-nav ul { flex-direction: column; }
	.main-nav a { padding: 12px 18px; border-bottom: 1px solid rgba(255, 255, 255, .12); white-space: normal; }
	.main-nav .sub-menu { display: block; position: static; background: rgba(0, 0, 0, .15); box-shadow: none; }
	.main-nav .sub-menu a { padding-left: 34px; }
}

@media (max-width: 600px) {
	body { font-size: 17px; }
	.topbar__social { display: none; }
	.topbar__inner { justify-content: center; }
	.grid--4 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
	.card__title { font-size: 17px; }
	.card--overlay .card__body { padding: 16px; }
	.card--overlay .card__title { font-size: 22px; }
	.card--overlay .card__excerpt { display: none; }
	.card--lead .card__title { font-size: 23px; }
	.list .card--row { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 14px 0; }
	.list .card--row .card__title { font-size: 18px; }
	.list .card--row .card__excerpt { display: none; }
	.section-title { font-size: 22px; }
	.footer-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 32px; }
	.author-head { flex-direction: column; text-align: center; }
	.author-box { flex-direction: column; text-align: center; }
	.post-nav { grid-template-columns: 1fr; }
	.post-nav__next { text-align: left; }
	.error-404__code { font-size: 80px; }
	.alignleft, .alignright { float: none; margin: 1em auto; }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.ticker__move { animation: none; }
	.ticker__list[aria-hidden="true"] { display: none; }
	.ticker__track { overflow-x: auto; }
	.card__media img, .card__title a { transition: none; }
}

@media print {
	.topbar, .masthead__search, .main-nav, .ticker, .ad, .share, .layout__side, .site-footer, .to-top, .post-nav, .related { display: none !important; }
	body { font-size: 12pt; color: #000; }
	.layout { display: block; }
	.entry a::after { content: ' (' attr(href) ')'; font-size: 10pt; }
}

/* Default WordPress block widgets inside the sidebar */
.layout__side .wp-block-heading, .layout__side .wp-block-search__label, .layout__side h2:not(.widget-title) {
	font-family: var(--font-head); font-size: 21px; margin: 0 0 12px; padding-bottom: 6px; border-bottom: 2px solid var(--line); position: relative;
}
.layout__side .wp-block-search__inside-wrapper { display: flex; gap: 0; }
.layout__side .wp-block-search__input { flex: 1; min-width: 0; font: inherit; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius) 0 0 var(--radius); }
.layout__side .wp-block-search__button { font: inherit; font-weight: 600; color: #fff; background: var(--red); border: 0; padding: 8px 16px; border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer; margin: 0; }
.layout__side .wp-block-latest-posts, .layout__side .wp-block-latest-comments, .layout__side .wp-block-categories, .layout__side .wp-block-archives { list-style: none; margin: 0 0 24px; }
.layout__side .wp-block-latest-posts li, .layout__side .wp-block-categories li, .layout__side .wp-block-archives li { padding: 8px 0; border-bottom: 1px solid var(--line); font-weight: 600; line-height: 1.5; }
