/*
Theme Name: Hindustan Hunt Newsroom
Theme URI: https://hindustanhunt.com/
Author: Hindustan Hunt
Description: Classic newsroom theme for Hindustan Hunt â€” compact news homepage, article page with downloadable news cards, and contact page. Works with Rank Math, Site Kit and the News E-Paper plugin.
Version: 1.0.3
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: hindustan-hunt
*/

:root { --saffron: #E85D00; --saffron-soft: #FFF3EA; --green: #2E9E1F; --ink: #121212; --text: #222; --muted: #6b6b6b; --line: #e6e6e6; --bg: #fff; --alt: #f6f6f4; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Inter, system-ui, sans-serif; font-size: 14px; color: var(--text); background: var(--bg); line-height: 1.45; }
a { color: inherit; text-decoration: none; }
a:hover .h, a.h:hover { color: var(--saffron); }
img { display: block; max-width: 100%; height: auto; }
.card-img, .card-img img { width: 100%; object-fit: cover; background: #eee; }
ul { list-style: none; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.serif, .h { font-family: Merriweather, Georgia, serif; font-weight: 700; color: var(--ink); }
.kicker { color: var(--saffron); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.meta { color: var(--muted); font-size: 11.5px; margin-top: 4px; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.btn { background: var(--saffron); color: #fff; font-weight: 700; font-size: 12.5px; padding: 8px 14px; border: 0; cursor: pointer; text-transform: uppercase; letter-spacing: .04em; font-family: inherit; display: inline-flex; align-items: center; gap: 7px; }
.btn.dark { background: var(--ink); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; left: 8px; top: 8px; width: auto; height: auto; clip: auto; background: #fff; padding: 8px 12px; z-index: 100; }
.noimg-ph { background: linear-gradient(135deg, #f3ece3, #e9efe6); display: grid; place-items: center; color: #b9a58f; font-family: Merriweather, serif; font-weight: 900; font-size: 22px; }

/* Utility bar */
.util { background: var(--ink); color: #cfcfcf; font-size: 12px; }
.util .wrap { display: flex; justify-content: space-between; align-items: center; height: 32px; gap: 12px; }
.util nav { display: flex; gap: 16px; }
.util a:hover, .util a.on { color: #fff; }
.util .epaper-link { color: #FFB27A; font-weight: 700; }
.tricolor { height: 3px; background: linear-gradient(90deg, var(--saffron) 33.3%, #fff 33.3% 66.6%, var(--green) 66.6%); }

/* Masthead */
.mast .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-top: 12px; padding-bottom: 12px; }
.mast .logo img { height: 64px; width: auto; }
.mast .logo .site-name { font-family: Merriweather, serif; font-weight: 900; font-size: 30px; color: var(--saffron); }
.mast .left { display: flex; gap: 10px; align-items: center; }
.mast .right { display: flex; gap: 10px; justify-content: flex-end; align-items: center; }
.iconbtn { width: 34px; height: 34px; border: 1px solid var(--line); display: none; place-items: center; cursor: pointer; font-size: 15px; background: #fff; }
.m-only { display: none; }
form.search { display: flex; border: 1px solid var(--line); height: 34px; }
form.search input { border: 0; padding: 0 10px; font: inherit; font-size: 13px; width: 200px; outline: 0; }
form.search button { border: 0; background: none; padding: 0 10px; cursor: pointer; }
.insta { background: linear-gradient(45deg, #F58529, #DD2A7B 50%, #8134AF); color: #fff; font-weight: 700; font-size: 12.5px; padding: 8px 14px; display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .04em; }
.insta svg { width: 16px; height: 16px; }
.insta:hover { filter: brightness(1.08); }

/* Main nav */
nav.main { border-top: 1px solid var(--line); border-bottom: 3px double var(--ink); position: sticky; top: 0; background: #fff; z-index: 30; }
.admin-bar nav.main { top: 32px; }
nav.main .wrap { display: flex; align-items: center; }
nav.main ul { display: flex; overflow-x: auto; scrollbar-width: none; flex: 1; }
nav.main ul::-webkit-scrollbar { display: none; }
nav.main ul ul { display: none; }
nav.main a { display: block; padding: 10px 11px; font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
nav.main a:hover, nav.main li.on > a, nav.main li.current-menu-item > a, nav.main li.current-cat > a { color: var(--saffron); box-shadow: inset 0 -3px 0 var(--saffron); }
nav.main .home { font-size: 16px; padding: 8px 12px 8px 0; }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 99999; display: none; }
.drawer.open { display: block; }
.drawer .shade { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.drawer .panel { position: absolute; right: 0; top: 0; bottom: 0; width: 280px; background: #fff; padding: 16px; overflow-y: auto; }
.drawer .panel img { height: 44px; width: auto; margin-bottom: 14px; }
.drawer .panel a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 700; text-transform: uppercase; font-size: 13px; }
.drawer .panel form.search { margin-bottom: 10px; }
.drawer .panel form.search input { width: 100%; }

/* Section header */
.sh { display: flex; align-items: center; gap: 10px; margin: 26px 0 14px; }
.sh h2 { font-family: Merriweather, serif; font-size: 18px; white-space: nowrap; color: var(--ink); }
.sh h2::before { content: ""; display: inline-block; width: 4px; height: 16px; background: var(--saffron); margin-right: 8px; vertical-align: -2px; }
.sh::after { content: ""; flex: 1; height: 1px; background: var(--ink); }
.sh a.more { order: 3; font-size: 12px; font-weight: 700; color: var(--saffron); white-space: nowrap; }

.ad-slot { text-align: center; }
.ad-slot.leader { margin: 24px auto 0; max-width: 970px; }
.ad-slot .widget { margin: 0 auto; }

/* Footer */
footer.site { background: var(--ink); color: #b5b5b5; margin-top: 40px; font-size: 13px; }
footer.site .tricolor { height: 4px; }
footer.site .main { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 24px; padding: 32px 16px 20px; }
footer.site .logo { display: inline-block; background: #fff; padding: 6px 10px; }
footer.site .logo img { height: 44px; width: auto; }
footer.site h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
footer.site li { padding: 3px 0; }
footer.site a:hover { color: #fff; }
footer.site .insta { margin-top: 14px; }
footer.site .bottom { border-top: 1px solid #2c2c2c; padding: 14px 16px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12px; }
footer.site .bottom ul, footer.site .bottom nav { display: flex; gap: 14px; flex-wrap: wrap; }
.totop { position: fixed; right: 18px; bottom: 18px; width: 40px; height: 40px; background: var(--saffron); color: #fff; display: grid; place-items: center; font-size: 18px; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 40; border: 0; }
.totop.show { opacity: 1; pointer-events: auto; }

/* ---------- Homepage ---------- */
.trend { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.trend b { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.trend a { font-size: 12.5px; font-weight: 600; padding: 3px 10px; background: var(--alt); border-radius: 999px; }
.trend a:hover { background: var(--saffron-soft); color: var(--saffron); }
.ticker { display: flex; align-items: center; border-bottom: 1px solid var(--line); font-size: 13px; overflow: hidden; }
.ticker b { position: relative; z-index: 2; background: #C8102E; color: #fff; padding: 7px 12px; white-space: nowrap; text-transform: uppercase; font-size: 11px; letter-spacing: .08em; }
.ticker .track { white-space: nowrap; animation: hh-scroll 70s linear infinite; padding-left: 100%; }
.ticker:hover .track { animation-play-state: paused; }
.ticker .track a { margin-right: 40px; font-weight: 500; }
.ticker .track a::before { content: "â—"; color: var(--saffron); margin-right: 8px; font-size: 9px; }
@keyframes hh-scroll { to { transform: translateX(-100%); } }

.home-top { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 20px; padding-top: 18px; align-items: start; }
.home-top > div + div { border-left: 1px solid var(--line); padding-left: 20px; }
.mini { display: grid; grid-template-columns: 1fr 86px; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mini:first-child { padding-top: 0; }
.mini .card-img { aspect-ratio: 4/3; }
.mini .h { font-size: 13.5px; line-height: 1.32; }
.must { margin-top: 14px; background: var(--alt); padding: 12px 14px; }
.must h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; color: var(--ink); }
.must h3::before { content: "â˜… "; color: var(--saffron); }
.must a { display: block; padding: 8px 0; border-top: 1px solid #e2e2de; font-weight: 600; font-size: 13px; line-height: 1.35; }
.must a:first-of-type { border-top: 0; }
.must a:hover { color: var(--saffron); }
.lead .card-img { aspect-ratio: 16/9; }
.lead .h { font-size: 26px; line-height: 1.22; margin: 8px 0 6px; font-weight: 900; }
.lead p { color: #444; font-size: 14.5px; }
.lead .rel { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.lead .rel a { display: block; padding: 4px 0 4px 14px; position: relative; font-weight: 600; font-size: 13.5px; }
.lead .rel a::before { content: ""; position: absolute; left: 0; top: 11px; width: 6px; height: 6px; background: var(--saffron); }
.lead .rel a:hover { color: var(--saffron); }
.subleads { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.subleads .card-img { aspect-ratio: 16/10; margin-bottom: 6px; }
.subleads .h { font-size: 15px; line-height: 1.3; }
.live-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.live-head span { font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.live-head span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #C8102E; margin-right: 6px; animation: hh-blink 1.4s infinite; }
@keyframes hh-blink { 50% { opacity: .2; } }
.timeline li { position: relative; padding: 0 0 11px 16px; border-left: 2px solid var(--line); margin-left: 4px; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 3px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--saffron); }
.timeline time { font-size: 11px; font-weight: 700; color: var(--saffron); }
.timeline a { display: block; font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.timeline a:hover { color: var(--saffron); }
.epaper-promo { display: flex; gap: 12px; align-items: center; margin-top: 12px; padding: 12px; border: 1px solid var(--ink); background: #faf7f0; }
.epaper-promo .cover { width: 54px; height: 70px; background: #fff; border: 1px solid #ccc; padding: 4px; flex: none; box-shadow: 2px 2px 0 #ddd; }
.epaper-promo .cover img { width: 100%; height: auto; }
.epaper-promo .cover i { display: block; height: 3px; background: #ccc; margin-top: 4px; }
.epaper-promo b { font-family: Merriweather, serif; font-size: 13px; display: block; }
.epaper-promo span { font-size: 12px; color: var(--muted); }

.row5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.row5 .card-img { aspect-ratio: 3/2; margin-bottom: 7px; }
.row5 .h { font-size: 13.5px; line-height: 1.32; }

.blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 24px; }
.block .sh { margin-top: 22px; }
.block .big .card-img { aspect-ratio: 16/9; margin-bottom: 7px; }
.block .big .h { font-size: 16px; line-height: 1.3; }
.block .big p { font-size: 13px; color: #555; margin-top: 4px; }
.block ul { margin-top: 8px; }
.block li a { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); align-items: start; }
.block li .card-img { aspect-ratio: 1; }
.block li .h { font-size: 13px; line-height: 1.32; font-weight: 700; }

.band { background: var(--ink); color: #fff; margin-top: 30px; padding: 6px 0 26px; }
.band .sh h2 { color: #fff; }
.band .sh::after { background: #444; }
.band .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.band .card-img { aspect-ratio: 16/10; margin-bottom: 8px; }
.band .h { color: #fff; font-size: 14.5px; line-height: 1.32; }
.band a:hover .h { color: #FF9A4D; }
.band .q { display: inline-block; background: var(--saffron); color: #fff; font-size: 10px; font-weight: 800; padding: 2px 6px; letter-spacing: .08em; margin-bottom: 6px; }

.two { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; }
.feed > a { display: grid; grid-template-columns: 1fr 170px; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.feed > a:first-child { padding-top: 0; }
.feed .card-img { aspect-ratio: 3/2; }
.feed .h { font-size: 17px; line-height: 1.3; margin: 3px 0 5px; }
.feed p { color: #555; font-size: 13px; }
.loadmore { display: block; width: 100%; margin-top: 16px; padding: 10px; background: #fff; border: 1px solid var(--ink); font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: .06em; cursor: pointer; text-align: center; font-family: inherit; }
.loadmore:hover { background: var(--ink); color: #fff; }
aside .card { border: 1px solid var(--line); padding: 14px; margin-bottom: 18px; }
aside .card h3, aside .widget-title { font-family: Merriweather, serif; font-size: 15px; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 2px solid var(--saffron); display: inline-block; color: var(--ink); }
aside .widget { margin-bottom: 18px; }
.mostread li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mostread li:last-child { border: 0; }
.mostread .n { font-family: Merriweather, serif; font-weight: 900; font-size: 22px; color: var(--saffron); line-height: 1; min-width: 22px; }
.mostread .h { font-size: 13px; line-height: 1.35; }
.astro { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; }
.astro a { border: 1px solid var(--line); padding: 7px 2px; font-size: 11px; font-weight: 600; }
.astro a span { display: block; font-size: 18px; color: var(--saffron); }
.astro a:hover { border-color: var(--saffron); }
.side-list li a { display: block; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; line-height: 1.35; }
.side-list li:last-child a { border: 0; }
.side-list li a:hover { color: var(--saffron); }
.follow-card { text-align: center; background: linear-gradient(135deg, #fff5f9, #fff8ef); }
.follow-card p { font-size: 13px; color: #555; margin-bottom: 10px; }

.partner { background: var(--alt); margin-top: 30px; padding: 4px 0 24px; }
.partner .note { font-size: 11px; color: var(--muted); margin: -8px 0 12px; }
.partner .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.partner a { background: #fff; display: block; }
.partner .card-img { aspect-ratio: 16/10; }
.partner .h { font-size: 13.5px; line-height: 1.32; margin: 10px 12px 12px; }

.cols4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 24px; }
.col-list .first .card-img { aspect-ratio: 16/9; margin-bottom: 6px; }
.col-list .first .h { font-size: 14px; line-height: 1.3; }
.col-list li a { display: block; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; line-height: 1.35; }
.col-list li a:hover { color: var(--saffron); }
.col-list ul { margin-top: 8px; }

/* ---------- Article page ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--saffron); width: 0; z-index: 70; }
.crumbs { font-size: 12px; color: var(--muted); padding: 14px 0 0; }
.crumbs a:hover { color: var(--saffron); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; margin-top: 10px; }
article.post-full .kicker { display: inline-block; margin-top: 6px; }
article.post-full h1 { font-family: Merriweather, serif; font-weight: 900; font-size: 34px; line-height: 1.2; color: var(--ink); margin: 8px 0 10px; }
article.post-full .standfirst { font-size: 17px; color: #444; line-height: 1.5; border-left: 3px solid var(--saffron); padding-left: 12px; }
.byline { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 0; margin: 16px 0; }
.byline .who { display: flex; gap: 10px; align-items: center; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--saffron); color: #fff; display: grid; place-items: center; font-weight: 800; overflow: hidden; flex: none; }
.avatar { position: relative; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.byline b { font-size: 13px; display: block; }
.byline span { font-size: 12px; color: var(--muted); }
.share { display: flex; gap: 6px; }
.share a { width: 32px; height: 32px; border: 1px solid var(--line); display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.share a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.share a.dl { background: var(--saffron); border-color: var(--saffron); color: #fff; }
.share a.dl svg { width: 16px; height: 16px; }
.share a.dl.busy { opacity: .6; pointer-events: none; }
figure.hero-img img { width: 100%; height: auto; max-height: 520px; object-fit: contain; background: var(--alt); }
figure.hero-img figcaption { font-size: 12px; color: var(--muted); padding: 6px 0; border-bottom: 1px solid var(--line); }
.content { font-family: Merriweather, Georgia, serif; font-size: 17px; line-height: 1.8; color: #1d1d1d; margin-top: 18px; overflow-wrap: break-word; }
.content p { margin-bottom: 1.1em; }
.content > p:first-of-type::first-letter { float: left; font-size: 3.4em; line-height: .9; font-weight: 900; color: var(--saffron); margin: 6px 8px 0 0; }
.content h2, .content h3, .content h4 { font-family: Merriweather, serif; color: var(--ink); line-height: 1.3; margin: 1.4em 0 .6em; }
.content h2 { font-size: 23px; }
.content h3 { font-size: 19px; }
.content a { color: var(--saffron); text-decoration: underline; }
.content img { height: auto; margin: 1em 0; }
.content figure { margin: 1em 0; }
.content figcaption { font-family: Inter, sans-serif; font-size: 12px; color: var(--muted); }
.content ul, .content ol { margin: 0 0 1.1em 1.4em; }
.content ul { list-style: disc; }
.content ol { list-style: decimal; }
.content blockquote { border-left: 4px solid var(--saffron); background: var(--saffron-soft); padding: 12px 16px; font-style: italic; margin: 1.2em 0; }
.content table { width: 100%; border-collapse: collapse; margin: 1em 0; font-family: Inter, sans-serif; font-size: 14px; }
.content th, .content td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; }
.content iframe, .content video { max-width: 100%; }
.content .ad-slot { margin: 1.4em 0; font-family: Inter, sans-serif; }
.also { border: 1px solid var(--line); border-left: 4px solid var(--saffron); padding: 10px 14px; margin: 1.4em 0; font-family: Inter, sans-serif; }
.also b { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--saffron); }
.also a { display: block; font-weight: 700; font-size: 15px; line-height: 1.4; text-decoration: none !important; color: var(--ink) !important; margin-top: 2px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.tags a { border: 1px solid var(--line); padding: 5px 10px; font-size: 12px; font-weight: 600; }
.tags a:hover { border-color: var(--saffron); color: var(--saffron); }
.follow { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: linear-gradient(135deg, #fff5f9, #fff8ef); padding: 16px; border: 1px solid #f6dce6; }
.follow b { font-family: Merriweather, serif; font-size: 16px; }
.authorbox { display: flex; gap: 14px; border: 1px solid var(--line); padding: 16px; margin-top: 20px; }
.authorbox .avatar { width: 56px; height: 56px; font-size: 20px; }
.authorbox p { font-size: 13px; color: #555; margin-top: 4px; }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.prevnext a { border: 1px solid var(--line); padding: 12px; }
.prevnext a.next { text-align: right; grid-column: 2; }
.prevnext span { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.prevnext .h { font-size: 14px; line-height: 1.35; margin-top: 4px; }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related .card-img { aspect-ratio: 16/10; margin-bottom: 6px; }
.related .h { font-size: 14px; line-height: 1.32; }
.side-mini a { display: grid; grid-template-columns: 1fr 76px; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.side-mini a:last-child { border: 0; }
.side-mini .card-img { aspect-ratio: 4/3; }
.side-mini .h { font-size: 13px; line-height: 1.32; }
.sticky-side { position: sticky; top: 60px; }
.cardmodal { position: fixed; inset: 0; z-index: 99999; background: rgba(0,0,0,.75); display: none; align-items: center; justify-content: center; padding: 20px; }
.cardmodal.open { display: flex; }
.cardmodal .box { background: #fff; max-width: 460px; width: 100%; padding: 14px; text-align: center; }
.cardmodal img { width: 100%; height: auto; display: block; }
.cardmodal .row { display: flex; gap: 8px; margin-top: 12px; }
.cardmodal button, .cardmodal a { flex: 1; padding: 10px; font: 700 13px Inter, sans-serif; border: 1px solid var(--ink); background: #fff; cursor: pointer; text-align: center; }
.cardmodal a { background: var(--ink); color: #fff; }
.comments-area { margin-top: 26px; }
.comments-area .comment-list { margin: 10px 0; }
.comments-area .comment-body { border-bottom: 1px solid var(--line); padding: 12px 0; }
.comments-area textarea, .comments-area input[type=text], .comments-area input[type=email], .comments-area input[type=url] { width: 100%; border: 1px solid #d6d6d6; padding: 8px 10px; font: inherit; margin-top: 4px; }
.comments-area .submit { background: var(--saffron); color: #fff; border: 0; padding: 10px 18px; font-weight: 700; cursor: pointer; margin-top: 8px; }

/* ---------- Archive / search / pages ---------- */
.arch-head { background: var(--alt); border-bottom: 1px solid var(--line); padding: 26px 0 22px; }
.arch-head h1 { font-family: Merriweather, serif; font-weight: 900; font-size: 30px; color: var(--ink); }
.arch-head .desc { color: #555; margin-top: 6px; max-width: 720px; font-size: 15px; }
.arch-head .crumbs { padding: 0 0 6px; }
.pagination { margin: 22px 0; }
.pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.pagination .page-numbers { border: 1px solid var(--line); padding: 7px 12px; font-weight: 700; font-size: 13px; }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty { padding: 50px 0; text-align: center; color: var(--muted); font-size: 16px; }
.page-body { max-width: 860px; }
.page-body h1 { font-family: Merriweather, serif; font-weight: 900; font-size: 32px; color: var(--ink); margin: 18px 0 10px; }
.e404 { text-align: center; padding: 60px 0 30px; }
.e404 b { font-family: Merriweather, serif; font-size: 90px; color: var(--saffron); line-height: 1; display: block; }
.e404 form.search { max-width: 420px; margin: 18px auto 0; }
.e404 form.search input { flex: 1; }

/* ---------- Contact page ---------- */
.c-hero { background: var(--alt); border-bottom: 1px solid var(--line); padding: 34px 0 30px; }
.c-hero .crumbs { margin-bottom: 8px; padding: 0; }
.c-hero h1 { font-family: Merriweather, serif; font-weight: 900; font-size: 34px; color: var(--ink); }
.c-hero p { font-size: 16px; color: #444; max-width: 640px; margin-top: 6px; }
.depts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 26px; }
.dept { border: 1px solid var(--line); border-top: 3px solid var(--saffron); padding: 18px; }
.dept .ic { font-size: 22px; }
.dept h3 { font-family: Merriweather, serif; font-size: 16px; margin: 8px 0 4px; color: var(--ink); }
.dept p { font-size: 13px; color: #555; min-height: 54px; }
.dept a { display: inline-block; margin-top: 8px; font-weight: 700; color: var(--saffron); font-size: 13px; word-break: break-all; }
.c-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; margin-top: 10px; }
form.contact { border: 1px solid var(--line); padding: 22px; }
form.contact .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form.contact label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin: 12px 0 5px; }
form.contact input, form.contact select, form.contact textarea { width: 100%; border: 1px solid #d6d6d6; padding: 10px 12px; font: inherit; font-size: 14px; background: #fff; }
form.contact input:focus, form.contact select:focus, form.contact textarea:focus { outline: 2px solid var(--saffron); outline-offset: -1px; border-color: var(--saffron); }
form.contact textarea { min-height: 140px; resize: vertical; }
form.contact .check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: #555; margin: 14px 0; text-transform: none; letter-spacing: 0; font-weight: 400; }
form.contact .check input { width: auto; margin-top: 3px; }
form.contact .btn { padding: 12px 22px; font-size: 13px; }
form.contact .hp { position: absolute; left: -9999px; }
.c-ok { background: #EAF7E7; border: 1px solid #BFE5B7; color: #1d6b12; padding: 12px; margin-bottom: 12px; font-weight: 600; }
.c-err { background: #FDECEC; border: 1px solid #F3BDBD; color: #9b1c1c; padding: 12px; margin-bottom: 12px; font-weight: 600; }
.info { border: 1px solid var(--line); padding: 20px; margin-bottom: 18px; }
.info h3 { font-family: Merriweather, serif; font-size: 16px; color: var(--ink); margin-bottom: 10px; padding-bottom: 6px; border-bottom: 2px solid var(--saffron); display: inline-block; }
.info li { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.info li:last-child { border: 0; }
.info li span:first-child { width: 22px; text-align: center; }
.info small { display: block; color: var(--muted); font-size: 12px; }
.c-map iframe { width: 100%; height: 220px; border: 1px solid var(--line); display: block; }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { font-weight: 700; cursor: pointer; font-size: 15px; color: var(--ink); }
.faq p { margin-top: 8px; color: #555; font-size: 14px; }
.adv { background: var(--ink); color: #ddd; margin-top: 34px; padding: 30px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; }
.adv h2 { font-family: Merriweather, serif; color: #fff; font-size: 24px; }
.adv ul { margin-top: 10px; }
.adv li { padding: 4px 0; }
.adv li::before { content: "âœ“ "; color: var(--saffron); font-weight: 800; }
.adv .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.adv .stats div { border: 1px solid #333; padding: 14px; text-align: center; }
.adv .stats b { display: block; font-family: Merriweather, serif; font-size: 22px; color: #FFB27A; }
.page-extra { margin-top: 24px; }

/* E-paper plugin: keep its toolbar below the sticky category bar. */
.nep { --nep-top: 45px; }
.admin-bar .nep { --nep-top: 77px; }

@media (max-width: 1000px) {
  .iconbtn { display: grid; }
  .m-only { display: inline-flex; }
  .d-only { display: none; }
  .mast form.search, .util nav .hide-m { display: none; }
  footer.site .main { grid-template-columns: 1fr 1fr; }
  .home-top { grid-template-columns: 1fr; }
  .home-top > div + div { border-left: 0; padding-left: 0; }
  .home-top .lead { order: -1; }
  .row5 { grid-template-columns: repeat(3, 1fr); }
  .blocks, .cols4 { grid-template-columns: 1fr 1fr; }
  .band .grid, .partner .grid { grid-template-columns: 1fr 1fr; }
  .two, .layout, .c-grid, .adv { grid-template-columns: 1fr; }
  .related { grid-template-columns: 1fr 1fr; }
  .depts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 782px) { .admin-bar nav.main { top: 0; } }
@media (max-width: 640px) {
  .mast .wrap { grid-template-columns: auto 1fr auto; gap: 8px; }
  .mast .logo { justify-self: center; }
  .mast .logo img { height: 46px; }
  .insta span { display: none; }
  .insta { padding: 8px 10px; }
  .lead .h { font-size: 21px; }
  .row5 { grid-template-columns: 1fr 1fr; }
  .blocks, .cols4, .subleads, .related, .prevnext, .depts, form.contact .row { grid-template-columns: 1fr; }
  .prevnext a.next { grid-column: auto; }
  .feed > a { grid-template-columns: 1fr 110px; }
  .feed .h { font-size: 15px; }
  .feed p { display: none; }
  article.post-full h1 { font-size: 25px; }
  .content { font-size: 16px; }
  .c-hero h1, .arch-head h1 { font-size: 26px; }
  footer.site .main { grid-template-columns: 1fr; }
}
