/*
Theme Name: Bastar Impact
Theme URI: https://bastarimpact.org
Author: Sanket Mahapatra
Description: Fast, minimal Hindi news theme for Bastar Impact. Cream and ink palette, e-paper strip, lead story with side list, three category blocks, most-read sidebar and a mobile tab bar. No page builder, no jQuery, no view-counter writes.
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: bastar-impact
*/

:root {
	--bg: #FBF8F3;
	--ink: #14110F;
	--accent: #B42318;
	--muted: #5B554D;
	--line: #D9D2C5;
	--sand: #F3E9DA;
	--sand-line: #D9C9B0;
	--green: #1F7A3E;
	--ph-a: #E7DFD2;
	--ph-b: #EFE8DC;
	--wrap: 1152px;
	/* Headings: Martel (serif, newspaper feel). Text: Mukta (clean, easy to read). */
	--font-head: 'Martel', 'Noto Serif Devanagari', 'Nirmala UI', Georgia, serif;
	--font: 'Mukta', 'Noto Sans Devanagari', 'Nirmala UI', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::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: 400 16px/1.5 var(--font); }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, p, ol, ul { margin: 0; }
h1, h2, h3, .brand-name, .es-title, .foot-name { font-family: var(--font-head); }
button { font: inherit; color: inherit; cursor: pointer; }

.screen-reader-text { position: absolute; 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: -9999px; top: 8px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 8px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 32px); margin: 0 auto; padding: 0 16px; }

/* Image placeholder when a post has no featured image. */
.ph { display: block; width: 100%; height: 100%; background: repeating-linear-gradient(135deg, var(--ph-a), var(--ph-a) 12px, var(--ph-b) 12px, var(--ph-b) 24px); }
.media, .row-media { display: block; overflow: hidden; background: var(--ph-a); }
.media { aspect-ratio: 16 / 9; }
.media img, .row-media img { width: 100%; height: 100%; object-fit: cover; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; background: var(--accent); color: #fff; font-weight: 700; font-size: 15px; border: 0; }
.btn:hover { text-decoration: none; filter: brightness(.92); }
.btn-outline { min-height: 48px; padding: 0 38px; background: transparent; border: 2px solid var(--ink); font-weight: 700; font-size: 16px; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-outline:disabled { opacity: .6; cursor: wait; }
.btn-white { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; background: #fff; color: var(--ink); font-weight: 700; }

.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 0; padding: 0; }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: #fff; font-size: 13px; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; min-height: 30px; padding-top: 4px; padding-bottom: 4px; }
.social { display: flex; gap: 18px; }
.social a:hover { text-decoration: underline; }

/* ---------- Masthead ---------- */
.masthead { border-bottom: 1px solid var(--ink); }
.masthead-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: stretch; gap: 14px; min-width: 0; }
.brand:hover { text-decoration: none; }
.brand-bar { width: 10px; background: var(--accent); flex: none; }
.brand-text { display: flex; flex-direction: column; justify-content: center; }
.brand-name { font-size: 40px; line-height: 1.15; font-weight: 800; }
.brand-tag { font-size: 14px; color: var(--muted); }
.brand-logo img { max-height: 64px; width: auto; }
.tools { display: flex; align-items: center; gap: 16px; }
.m-tools { display: none; }

.searchform { display: flex; align-items: center; gap: 10px; width: 300px; height: 46px; padding: 0 14px; border: 1px solid var(--ink); background: #fff; }
.searchform svg { flex: none; }
.searchform input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font: inherit; font-size: 15px; color: var(--ink); }
.searchform input:focus { outline: none; }
.searchform:focus-within { outline: 3px solid var(--accent); outline-offset: 1px; }

/* ---------- Primary navigation ---------- */
.primary-nav { border-bottom: 1px solid var(--ink); background: var(--bg); }
.primary-nav .menu { display: flex; gap: 32px; list-style: none; padding: 0; }
.primary-nav .menu > li { position: relative; }
.primary-nav .menu > li > a { display: block; padding: 14px 0 12px; font-weight: 700; font-size: 15px; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.primary-nav .menu > li > a:hover { text-decoration: none; border-bottom-color: var(--line); }
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a,
.primary-nav .current-menu-parent > a,
.primary-nav .current_page_item > a { border-bottom-color: var(--accent) !important; }
.primary-nav .menu-item-has-children > a::after { content: ""; display: inline-block; margin-left: 7px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.primary-nav .sub-menu { display: none; position: absolute; left: -14px; top: 100%; min-width: 220px; margin: 0; padding: 6px 0; list-style: none; background: #fff; border: 1px solid var(--ink); z-index: 40; }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { display: block; }
.primary-nav .sub-menu a { display: block; padding: 10px 16px; font-size: 15px; font-weight: 600; }
.primary-nav .sub-menu a:hover { background: var(--sand); text-decoration: none; }

/* ---------- E-paper strip ---------- */
.epaper-strip { background: var(--sand); border-bottom: 1px solid var(--sand-line); }
.es-inner { display: flex; align-items: center; gap: 24px; padding-top: 24px; padding-bottom: 24px; }
.es-thumb { flex: none; width: 94px; height: 130px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--ink); font-size: 12px; color: var(--muted); text-align: center; overflow: hidden; }
.es-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.es-text { min-width: 0; }
.es-kicker { font-size: 12px; font-weight: 700; color: var(--accent); }
.es-title { font-size: 27px; line-height: 1.35; font-weight: 800; }
.es-sub { font-size: 14px; color: var(--muted); }
.es-btn-m { display: none; margin-top: 6px; }
.es-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.es-old { font-size: 14px; color: var(--muted); }
.es-date { height: 44px; padding: 0 12px; border: 1px solid var(--ink); background: #fff; font: inherit; font-size: 15px; color: var(--ink); }

/* ---------- Auto slider (below the e-paper strip) ---------- */
.slider { margin-top: 26px; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.slides::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 21 / 9; overflow: hidden; background: var(--ink); }
.slide-media { position: absolute; inset: 0; display: block; }
.slide-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.slide-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 80px 32px 26px; color: #fff; background: linear-gradient(to top, rgba(20, 17, 15, .92) 0, rgba(20, 17, 15, .62) 55%, rgba(20, 17, 15, 0) 100%); }
.slide-cap .kicker { display: inline-block; margin: 0 0 10px; padding: 1px 10px; background: var(--accent); color: #fff; }
.slide-title { max-width: 920px; font-size: 30px; line-height: 1.5; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.slide-date { display: block; margin-top: 8px; font-size: 14px; color: #E6DFD2; }
.s-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; }
.s-dots { display: flex; flex-wrap: wrap; }
.s-dot { width: 28px; height: 44px; padding: 0; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; }
.s-dot::before { content: ""; width: 22px; height: 4px; background: var(--line); transition: width .3s ease, background-color .3s ease; }
.s-dot:hover::before { background: var(--muted); }
.s-dot[aria-current="true"]::before { width: 36px; background: var(--accent); }
.s-btns { display: flex; gap: 8px; }
.s-btn { width: 44px; height: 44px; padding: 0; border: 1px solid var(--ink); background: transparent; display: flex; align-items: center; justify-content: center; transition: background-color .2s, color .2s; }
.s-btn:hover { background: var(--ink); color: #fff; }
.s-pause .i-resume, .slider.is-paused .s-pause .i-pause { display: none; }
.slider.is-paused .s-pause .i-resume { display: flex; }

/* ---------- Home hero ---------- */
.home .hero { display: grid; grid-template-columns: minmax(0, 1fr) 424px; gap: 32px; padding-top: 30px; padding-bottom: 44px; }
.kicker { font-size: 12px; font-weight: 700; color: var(--accent); margin-top: 12px; line-height: 1.5; }
.lead-title { font-size: 34px; line-height: 1.4; font-weight: 800; margin-top: 2px; }
.lead-ex { margin-top: 10px; color: var(--muted); font-size: 16px; }

.side-list .row { padding: 18px 0; border-bottom: 1px solid var(--line); }
.side-list .row:first-child { padding-top: 0; }
.side-list .row:last-child { border-bottom: 0; }

/* ---------- Rows (thumb left) ---------- */
.row { display: flex; gap: 14px; align-items: flex-start; }
.row-media { flex: none; width: 104px; aspect-ratio: 104 / 72; }
.row-body { min-width: 0; }
.row-body .kicker { margin-top: 0; }
.row-title { font-size: 17px; line-height: 1.45; font-weight: 700; }
.row-ex { margin-top: 6px; color: var(--muted); font-size: 15px; }
.row-date { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.row-list .row { padding: 16px 0; border-bottom: 1px solid var(--line); }
.row-list.big .row-media { width: 200px; aspect-ratio: 16 / 10; }
.row-list.big .row-title { font-size: 19px; }

/* ---------- Layout with sidebar ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.page-top { padding-top: 30px; padding-bottom: 20px; }
.page-narrow { max-width: 860px; }

/* ---------- Sections ---------- */
.section { margin-bottom: 38px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 8px; margin-bottom: 18px; border-bottom: 2px solid var(--ink); }
.sec-title { display: flex; align-items: center; gap: 10px; font-size: 22px; line-height: 1.3; font-weight: 800; }
.sec-title::before { content: ""; width: 6px; height: 24px; background: var(--accent); flex: none; }
.sec-more { font-size: 13px; font-weight: 700; }
.sec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.card-title { margin-top: 10px; font-size: 17px; line-height: 1.45; font-weight: 700; }
.sec-list .li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.sec-list .li:first-child { padding-top: 0; }
.sec-list .li:last-child { border-bottom: 0; }
.li-title { font-size: 17px; line-height: 1.5; font-weight: 600; }
.arch-head { margin-bottom: 20px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.arch-desc { margin-top: 10px; color: var(--muted); }

.more-wrap { text-align: center; margin: 14px 0 44px; }

/* ---------- Sidebar ---------- */
.side-col > * + * { margin-top: 28px; }
.box { padding: 20px; border: 1px solid var(--ink); }
.box-title { font-size: 20px; line-height: 1.4; font-weight: 800; }
.box-title.plain { margin-bottom: 12px; }
.pop-list { list-style: none; padding: 0; margin-top: 8px; counter-reset: pop; }
.pop-list li { counter-increment: pop; display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 700; line-height: 1.5; }
.pop-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.pop-list li::before { content: counter(pop); flex: none; width: 24px; font-size: 24px; line-height: 1.2; font-weight: 800; color: var(--accent); }
.yt-wrap { aspect-ratio: 16 / 9; background: var(--ink); position: relative; }
.yt { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: var(--ink); overflow: hidden; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; }
.yt-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.caption { margin-top: 8px; font-size: 13px; color: var(--muted); }
.box-wa { background: var(--green); color: #fff; padding: 22px; }
.wa-title { color: #fff; }
.box-wa .btn-white { margin-top: 14px; }

/* ---------- Single story / page ---------- */
.entry-title { font-size: 36px; line-height: 1.35; font-weight: 800; margin: 4px 0 12px; }
.entry-meta { font-size: 14px; color: var(--muted); padding-bottom: 14px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.entry-media { margin: 0 0 22px; }
.entry-media img { width: 100%; }
.entry-media figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }
.entry-content { font-size: 19px; line-height: 1.85; overflow-wrap: break-word; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2, .entry-content h3 { line-height: 1.4; font-weight: 800; margin-top: 1.6em; }
.entry-content h2 { font-size: 26px; }
.entry-content h3 { font-size: 22px; }
.entry-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.entry-content img, .entry-content video, .entry-content iframe { max-width: 100%; }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content blockquote { margin-left: 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--accent); color: var(--muted); }
.entry-content table { display: block; overflow-x: auto; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 8px 12px; }
.tags { margin-top: 26px; font-size: 14px; color: var(--muted); }
.tags a { display: inline-block; margin: 0 6px 6px 0; padding: 4px 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.share { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 40px; }
.share a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--ink); font-size: 14px; font-weight: 700; }
.share a:hover { text-decoration: none; background: var(--ink); color: #fff; }
.share .share-wa { background: var(--green); border-color: var(--green); color: #fff; }

.fullwidth { width: 100%; max-width: 1600px; margin: 0 auto; padding: 16px; }
.fullwidth > * { max-width: 100%; }

/* Pagination */
.pagination { margin: 32px 0 20px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.page-numbers { min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ink); font-weight: 700; }
a.page-numbers:hover { background: var(--sand); text-decoration: none; }
.page-numbers.current { background: var(--ink); color: #fff; }
.page-numbers.dots { border-color: transparent; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 50px; background: var(--ink); color: #fff; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 38px; padding-bottom: 30px; }
.foot-name { font-size: 26px; line-height: 1.3; font-weight: 800; }
.foot-brand p { font-size: 14px; color: #E2DBCF; }
.foot-nav .menu { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; padding: 0; font-size: 14px; }
.copy { padding-top: 14px; padding-bottom: 20px; border-top: 1px solid #3a3530; font-size: 13px; color: #CFC8BB; }

/* ---------- Mobile-only parts ---------- */
.tabbar, .m-search, .drawer { display: none; }

@media (max-width: 999px) {
	.layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.side-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
	.side-col > * + * { margin-top: 0; }
	.home .hero { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.es-inner { flex-wrap: wrap; }
}

@media (max-width: 699px) {
	body { padding-bottom: 58px; }
	.topbar { display: none; }
	.tools { display: none; }
	.m-tools { display: flex; gap: 4px; }
	.masthead { border-bottom: 1px solid var(--ink); }
	.masthead-in { padding-top: 8px; padding-bottom: 8px; }
	.brand-bar { width: 8px; }
	.brand-name { font-size: 24px; line-height: 1.2; font-weight: 800; }
	.brand-tag { display: none; }

	.m-search { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); background: #fff; }
	.m-search[hidden] { display: none; }
	.m-search .searchform { width: 100%; }

	/* Pill menu */
	.primary-nav { border-bottom: 1px solid var(--line); }
	.primary-nav .wrap { padding-top: 10px; padding-bottom: 10px; }
	.primary-nav .menu { gap: 8px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
	.primary-nav .menu::-webkit-scrollbar { display: none; }
	.primary-nav .menu > li { flex: none; }
	.primary-nav .menu > li > a { display: inline-flex; align-items: center; height: 44px; padding: 0 16px; margin: 0; border: 1px solid var(--ink); font-size: 15px; font-weight: 600; }
	.primary-nav .menu > li > a:hover { border-bottom-color: var(--ink); }
	.primary-nav .current-menu-item > a,
	.primary-nav .current-menu-ancestor > a,
	.primary-nav .current-menu-parent > a,
	.primary-nav .current_page_item > a { background: var(--ink); color: #fff; border-color: var(--ink) !important; }
	.primary-nav .menu-item-has-children > a::after { display: none; }
	.primary-nav .sub-menu { display: none !important; }

	/* Slider */
	.slider { margin-top: 0; }
	.slide { aspect-ratio: 4 / 3; }
	.slide-cap { padding: 50px 16px 16px; }
	.slide-title { font-size: 19px; line-height: 1.5; }
	.slide-date { font-size: 13px; margin-top: 6px; }
	.s-prev, .s-next { display: none; }
	.s-dot { width: 24px; }
	.s-dot::before { width: 16px; }
	.s-dot[aria-current="true"]::before { width: 28px; }

	/* E-paper card */
	.epaper-strip { margin: 16px; border: 1px solid var(--sand-line); }
	.es-inner { flex-wrap: nowrap; gap: 14px; padding: 14px; }
	.es-thumb { width: 64px; height: 90px; }
	.es-title { font-size: 18px; }
	.es-sub, .es-actions { display: none; }
	.es-btn-m { display: inline-flex; }

	/* Home */
	.home .hero { padding-top: 0; padding-bottom: 8px; gap: 8px; }
	.lead-title { font-size: 22px; }
	.lead-ex { display: none; }
	.side-list .row { padding: 14px 0; }
	.side-list .row:first-child { padding-top: 14px; }
	.side-list .row:last-child { border-bottom: 1px solid var(--line); }
	.side-list .row-media, .row-media { width: 92px; aspect-ratio: 92 / 64; }
	.side-list .kicker { display: none; }
	.row-title { font-size: 16px; }
	.row-list.big .row-media { width: 92px; aspect-ratio: 92 / 64; }
	.row-list.big .row-title { font-size: 16px; }
	.row-ex { display: none; }

	.section { margin-bottom: 26px; }
	.sec-title { font-size: 20px; }
	.sec-title::before { width: 5px; height: 22px; }
	.sec-grid { display: block; }
	.sec-grid .card + .card { margin-top: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
	.sec-grid .card + .card .media { display: none; }
	.sec-grid .card + .card .card-title { margin-top: 0; font-size: 16px; font-weight: 600; line-height: 1.5; }
	.sec-grid .card:first-child .card-title { font-size: 17px; }
	.sec-list .li { padding: 12px 0; }
	.li-title { font-size: 16px; }
	.related .sec-grid .card + .card .media { display: block; }

	.side-col { display: block; }
	.widget-popular, .widget-video { display: none; }
	.side-col .box-wa { margin-top: 0; }

	.entry-title { font-size: 26px; }
	.entry-content { font-size: 17.5px; line-height: 1.8; }
	.entry-content h2 { font-size: 22px; }
	.fullwidth { padding: 8px; }

	.site-footer { margin-top: 30px; }
	.foot { flex-direction: column; align-items: flex-start; }

	.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; background: #fff; border-top: 1px solid var(--ink); }
	.tabbar a, .tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; padding: 0; border: 0; background: transparent; font-size: 12px; font-weight: 600; }
	.tabbar a:hover { text-decoration: none; }
	.tabbar .is-current { color: var(--accent); font-weight: 700; }

	/* Slide-over menu */
	.drawer { position: fixed; inset: 0; z-index: 100; display: block; overflow-y: auto; padding: 0 16px 28px; background: var(--bg); }
	.drawer[hidden] { display: none; }
	.drawer-head { display: flex; align-items: center; justify-content: space-between; min-height: 60px; border-bottom: 1px solid var(--ink); }
	.drawer-head .brand-name { font-size: 22px; }
	.drawer .menu { list-style: none; padding: 0; }
	.drawer .menu a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 700; }
	.drawer .sub-menu { list-style: none; padding: 0 0 0 16px; }
	.drawer .sub-menu a { font-size: 16px; font-weight: 600; color: var(--muted); }
	.drawer-btn { margin-top: 22px; width: 100%; }
}

@media (min-width: 700px) and (max-width: 999px) {
	.row-title { font-size: 17px; }
}

/* ---------- Motion: light, CSS-only, switched off for reduced-motion users ---------- */
@keyframes biRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes biKen { from { transform: scale(1); } to { transform: scale(1.06); } }

.epaper-strip, .slider { animation: biRise .6s ease both; }
.slide.is-active .slide-cap { animation: biRise .7s .15s ease both; }
.slide.is-active .slide-media img { animation: biKen 8s ease-out both; }

.btn, .btn-white, .btn-outline { transition: filter .2s, transform .2s, background-color .2s, color .2s; }
.primary-nav .menu > li > a { transition: border-color .2s; }

/* Headlines get an underline that draws in on hover. */
.lead-title a, .row-title a, .card-title a, .li-title a, .pop-list a, .slide-title a {
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
	transition: background-size .35s ease;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	padding-bottom: 1px;
}
.lead-title a:hover, .row-title a:hover, .card-title a:hover, .li-title a:hover, .pop-list a:hover, .slide-title a:hover { background-size: 100% 1.5px; text-decoration: none; }

@media (hover: hover) {
	.btn:hover, .btn-white:hover { transform: translateY(-1px); }
	.media img, .row-media img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
	.media:hover img, .row-media:hover img { transform: scale(1.05); }
}

/* Cards fade up as they scroll into view (browsers without support just show them). */
@supports (animation-timeline: view()) {
	.card, .sec-list .li, .row-list .row, .box, .box-video, .box-wa, .side-list .row {
		animation: biRise linear both;
		animation-timeline: view();
		animation-range: entry 0% entry 40%;
	}
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
	.topbar, .primary-nav, .tabbar, .share, .site-footer, .side-col, .epaper-strip { display: none !important; }
}
