/* SAR News — main stylesheet. --sar-accent is set from the Customizer. */

:root {
	--sar-accent: #0F5F5C;
	--ink: #141414;
	--ink-2: #333333;
	--muted: #555555;
	--line: #E3E3E3;
	--line-soft: #ECECEC;
	--bg: #ffffff;
	--placeholder: #E4E8EC;
	--font-body: 'Noto Sans Bengali', 'Hind Siliguri', system-ui, sans-serif;
	--font-head: 'Noto Serif Bengali', 'Noto Sans Bengali', Georgia, serif;
	--font-brand: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--wrap: 1200px;
	--gutter: 16px;
}

@media (min-width: 768px) {
	:root { --gutter: 24px; }
}

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

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.7;
}

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

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--sar-accent); text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
	outline: 3px solid var(--sar-accent);
	outline-offset: 2px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

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

.skip-link {
	position: absolute; left: 8px; top: -60px; z-index: 100;
	background: var(--ink); color: #fff; padding: 10px 16px;
}
.skip-link:focus { top: 8px; color: #fff; }

/* ---------- Header ---------- */

.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }

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

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand .custom-logo-link { display: block; flex: none; }
.brand .custom-logo { display: block; width: auto; max-height: 40px; }
.brand__text { display: flex; flex-direction: column; color: var(--ink); }
.brand__text:hover { color: var(--ink); text-decoration: none; }
.brand__name {
	margin: 0; font-family: var(--font-brand); font-weight: 800;
	font-size: 19px; line-height: 1.2; letter-spacing: -0.3px;
}
.brand__tagline { display: none; font-size: 14px; color: var(--muted); line-height: 1.4; }

.site-header__tools { display: flex; align-items: center; gap: 16px; }

.icon-btn {
	width: 44px; height: 44px; flex: none;
	display: inline-flex; align-items: center; justify-content: center;
	background: transparent; color: var(--ink);
	border: 1px solid transparent; cursor: pointer; padding: 0;
}
.icon-btn:hover { border-color: var(--line); }

.lang-nav { display: none; }
.lang-nav ul { display: flex; gap: 12px; list-style: none; margin: 0; padding: 0; font-size: 15px; }
.lang-nav .current-menu-item a { font-weight: 700; text-decoration: underline; }

.site-search { border-top: 1px solid var(--line); padding: 12px 0; }

.primary-nav { border-top: 1px solid var(--line); }
.primary-nav ul {
	display: flex; gap: 2px; list-style: none; margin: 0; padding: 0;
	overflow-x: auto; white-space: nowrap; scrollbar-width: none;
	font-size: 15px; font-weight: 600;
}
.primary-nav ul::-webkit-scrollbar { display: none; }
.primary-nav a { display: block; padding: 12px 10px; border-bottom: 3px solid transparent; }
.primary-nav .current-menu-item > a,
.primary-nav .current-category-ancestor > a,
.primary-nav .current-post-ancestor > a {
	border-bottom-color: var(--sar-accent);
}
.primary-nav.is-open ul { flex-direction: column; white-space: normal; }
.primary-nav.is-open a { border-bottom: 1px solid var(--line-soft); padding: 14px 4px; }

@media (min-width: 900px) {
	.nav-toggle { display: none; }
	.brand__name { font-size: 26px; }
	.brand .custom-logo { max-height: 48px; }
	.brand__tagline { display: block; }
	.lang-nav { display: block; }
	.site-header__bar { padding-top: 18px; padding-bottom: 18px; }
	.primary-nav ul { flex-wrap: wrap; overflow: visible; font-size: 16px; }
	.primary-nav a { padding: 14px 12px; }
}

/* ---------- Search form ---------- */

.search-form { display: flex; gap: 8px; max-width: 560px; }
.search-form input[type="search"] {
	flex: 1; min-width: 0; height: 44px; padding: 0 12px;
	font: inherit; border: 1px solid #8A8A8A; border-radius: 0;
}
.search-form button {
	height: 44px; padding: 0 18px; font: inherit; font-weight: 600;
	background: var(--ink); color: #fff; border: 0; cursor: pointer;
}

/* ---------- Shared bits ---------- */

.meta { font-size: 14px; color: var(--muted); line-height: 1.5; }
.kicker { color: var(--sar-accent); font-weight: 600; }

.section-title {
	font-family: var(--font-body); font-size: 21px; font-weight: 700; line-height: 1.3;
	margin: 0 0 12px; padding-bottom: 8px; border-bottom: 3px solid var(--sar-accent);
}
.section-head {
	display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
	border-bottom: 3px solid var(--sar-accent); margin-bottom: 16px;
}
.section-head .section-title { border-bottom: 0; margin: 0; }
.more { font-size: 15px; font-weight: 600; text-decoration: underline; }

.section-rule { border-top: 1px solid var(--line); padding-top: 28px; margin-top: 28px; }

/* ---------- Cards ---------- */

.card { min-width: 0; }
.card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--placeholder); }
.card__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card__title {
	font-family: var(--font-head); font-weight: 700; margin: 10px 0 6px;
	font-size: 18px; line-height: 1.5;
}
.card__title a { color: var(--ink); }
.card__excerpt { margin: 0 0 8px; color: var(--ink-2); font-size: 17px; line-height: 1.75; }

.card--noimg .card__title { margin-top: 0; }
.card--noimg { border-top: 3px solid var(--sar-accent); padding-top: 12px; }

.card--lead .card__title { font-size: 26px; line-height: 1.4; margin-top: 14px; }
.card--lead .card__excerpt { font-size: 18px; }
.card--medium .card__title { font-size: 20px; line-height: 1.45; }

.card--row { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.card--row .card__media { flex: 0 0 120px; height: 68px; aspect-ratio: auto; order: 2; }
.card--row .card__body { flex: 1; min-width: 0; }
.card--row .card__title { margin-top: 0; font-size: 18px; }
.card--row .card__excerpt { display: none; }
.card--row.card--noimg { border-top: 0; padding-top: 16px; }

@media (min-width: 768px) {
	.card--lead .card__title { font-size: 34px; line-height: 1.35; }
	.card--lead .card__excerpt { font-size: 19px; }
	.card--row .card__media { flex-basis: 240px; height: 135px; order: 0; }
	.card--row .card__excerpt { display: block; }
	.card--row .card__title { font-size: 21px; }
}

/* ---------- Home ---------- */

.home { padding-top: 20px; padding-bottom: 48px; }

.home-top { display: grid; gap: 24px; }
.home-top__side { display: grid; gap: 20px; }
.home-top__side .card { border-top: 1px solid var(--line); padding-top: 16px; }

.grid-2, .grid-3, .grid-4, .cat-block__grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }

.home-split { display: grid; gap: 32px; }

.latest-list { list-style: none; margin: 0; padding: 0; }
.latest-list li { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.latest-list a { font-weight: 600; line-height: 1.55; }
.latest-list__time { font-size: 14px; color: var(--muted); order: 2; }
.latest-list--numbered { counter-reset: n; }
.latest-list--numbered li { flex-direction: row; gap: 14px; }
.latest-list--numbered li::before {
	counter-increment: n; content: counter(n);
	font-family: var(--font-brand); font-weight: 800; font-size: 26px; line-height: 1;
	color: var(--sar-accent); min-width: 26px;
}

@media (min-width: 600px) {
	.grid-2, .grid-4, .grid-3, .cat-block__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
	.home { padding-top: 32px; }
	.home-top { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; }
	.home-top__side .card:first-child { border-top: 0; padding-top: 0; }
	.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.cat-block__grid { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); }
	.home-split { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; }
	.latest-list li { flex-direction: row; gap: 14px; }
	.latest-list__time { order: 0; min-width: 84px; }
}

/* ---------- Listings ---------- */

.listing { padding-top: 24px; padding-bottom: 48px; max-width: 900px; }
.listing__head { margin-bottom: 8px; }
.listing__title { font-family: var(--font-head); font-size: 30px; line-height: 1.35; margin: 0 0 12px; }
.listing__desc { color: var(--ink-2); }

.pagination { margin-top: 32px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--line);
}
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

.breadcrumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--muted); text-decoration: underline; }

/* ---------- Story ---------- */

.story-layout { display: grid; gap: 40px; padding-top: 20px; padding-bottom: 48px; }
.page-layout { padding-top: 20px; padding-bottom: 48px; max-width: 808px; }
.story { min-width: 0; max-width: 760px; }

.story__title {
	font-family: var(--font-head); font-weight: 700;
	font-size: 28px; line-height: 1.4; margin: 6px 0 14px;
}
.story__standfirst { font-size: 19px; line-height: 1.7; font-weight: 600; color: var(--ink-2); margin: 0 0 18px; }

.byline {
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
	padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
	margin-bottom: 24px;
}
.byline__avatar { border-radius: 50%; width: 44px; height: 44px; }
.byline__text { display: flex; flex-direction: column; flex: 1 1 200px; line-height: 1.5; }
.byline__author { font-weight: 700; }
.byline__dates { font-size: 14px; color: var(--muted); }

.share { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.share a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border: 1px solid #CFCFCF;
	font-family: var(--font-brand); font-weight: 700; font-size: 14px;
}

.story__figure { margin: 0 0 28px; }
.story__figure .card__img { width: 100%; height: auto; }
.story__figure figcaption {
	font-size: 14px; line-height: 1.6; color: var(--muted);
	padding: 8px 0; border-bottom: 1px solid var(--line);
}

.entry-content { font-size: 18px; line-height: 1.85; color: #1F1F1F; overflow-wrap: break-word; }
.entry-content p { margin: 0 0 1.2em; }
.entry-content a { color: var(--sar-accent); text-decoration: underline; }
.entry-content h2, .entry-content h3 { font-family: var(--font-head); line-height: 1.45; margin: 1.6em 0 0.6em; }
.entry-content h2 { font-size: 24px; }
.entry-content h3 { font-size: 21px; }
.entry-content blockquote {
	margin: 1.5em 0; padding: 2px 0 2px 18px; border-left: 4px solid var(--sar-accent);
	font-family: var(--font-head); font-size: 20px;
}
.entry-content figure { margin: 1.5em 0; }
.entry-content figcaption, .wp-caption-text { font-size: 14px; color: var(--muted); }
.entry-content iframe { width: 100%; }
.entry-content .wp-block-embed__wrapper iframe, .entry-content iframe[src*="youtube"] { aspect-ratio: 16 / 9; height: auto; }

.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 20px 0; border-top: 1px solid var(--line); }
.tags__label { font-size: 14px; color: var(--muted); }
.tags a { font-size: 14px; padding: 8px 14px; border: 1px solid #CFCFCF; }

.related { margin-top: 16px; }

/* Sidebar widgets (classic and block widgets) */
.story-aside .widget { margin-bottom: 32px; }
.story-aside .widget h2,
.story-aside .wp-block-heading,
.story-aside .wp-block-search__label {
	display: block; font-family: var(--font-body); font-size: 20px; font-weight: 700; line-height: 1.3;
	margin: 0 0 12px; padding-bottom: 8px; border-bottom: 3px solid var(--sar-accent);
}
.story-aside ul, .story-aside ol { list-style: none; margin: 0; padding: 0; }
.story-aside li { padding: 10px 0; border-bottom: 1px solid var(--line-soft); line-height: 1.55; }
.story-aside li a { font-weight: 600; }
.wp-block-search__inside-wrapper { display: flex; gap: 8px; }
.wp-block-search__input {
	flex: 1; min-width: 0; height: 44px; padding: 0 12px; font: inherit;
	border: 1px solid #8A8A8A; border-radius: 0;
}
.wp-block-search__button {
	height: 44px; padding: 0 16px; margin: 0; font: inherit; font-weight: 600;
	background: var(--ink); color: #fff; border: 0; border-radius: 0; cursor: pointer;
}

/* Comments */
.comments { margin-top: 40px; }
.comment-list { list-style: none; margin: 0 0 24px; padding: 0; }
.comment-list .comment { padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-meta { font-size: 14px; color: var(--muted); }
.comment-reply-title { font-size: 20px; margin: 0 0 8px; }
.comment-form p { margin: 0 0 14px; }
.comment-form label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	display: block; width: 100%; max-width: 560px; padding: 10px 12px; font: inherit;
	border: 1px solid #8A8A8A; border-radius: 0;
}
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"] { height: 44px; }
.comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { font-weight: 400; }
.comment-form input[type="checkbox"] { width: 20px; height: 20px; margin-top: 4px; }
.comment-form .submit {
	height: 44px; padding: 0 20px; font: inherit; font-weight: 600;
	background: var(--ink); color: #fff; border: 0; cursor: pointer;
}

@media (min-width: 768px) {
	body { font-size: 18px; }
	.story__title { font-size: 38px; line-height: 1.35; }
	.story__standfirst { font-size: 21px; }
	.entry-content { font-size: 19px; }
	.listing__title { font-size: 36px; }
}

@media (min-width: 1024px) {
	.story-layout { grid-template-columns: minmax(0, 760px) minmax(0, 1fr); gap: 48px; }
}

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: #E6E6E6; }
.site-footer__inner {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px;
	padding-top: 32px; padding-bottom: 32px; font-size: 15px;
}
.site-footer__brand { display: flex; flex-direction: column; gap: 6px; }
.site-footer__name { font-family: var(--font-brand); font-weight: 800; font-size: 20px; color: #fff; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; margin: 0; padding: 0; }
.site-footer a { color: #E6E6E6; text-decoration: underline; }
.site-footer a:hover { color: #fff; }

/* ---------- WordPress core classes ---------- */

.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }

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