/* ==========================================================================
   LokVichar News – public stylesheet
   Clean newspaper design · mobile-first · no framework dependency
   ========================================================================== */
:root {
  --red: #d9101c;
  --red-d: #b30d17;
  --ink: #0f1419;
  --text: #1c2430;
  --muted: #5f6b7a;
  --line: #e4e7ec;
  --soft: #f4f5f7;
  --radius: 10px;
  --container: 1200px;
  --nav-h: 48px;
  --font-head: 'Noto Serif Devanagari', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Hind', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans Devanagari', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.7; color: var(--text);
  background: #fff; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.4; margin: 0; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid rgba(217, 16, 28, .45); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 200; border-radius: 6px; }
.skip-link:focus { left: 8px; }

/* ---------- Reading progress ---------- */
.read-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--red); z-index: 120; transition: width .08s linear; }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: #c4ccd8; font-size: 13px; line-height: 1; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; min-height: 36px; gap: 12px; }
.topbar-date i { margin-right: 6px; color: #8a94a3; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-link { color: #fff; font-weight: 600; display: none; }
.topbar-link:hover { color: #ffd0d3; }
@media (min-width: 640px) { .topbar-link { display: inline; } }
.social { display: flex; gap: 8px; flex-wrap: wrap; }
.social a { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.08); color: #fff; transition: background .2s, transform .2s; }
.social a:hover { background: var(--red); transform: translateY(-2px); }
.social--sm { gap: 4px; }
.social--sm a { width: 26px; height: 26px; font-size: 12px; background: transparent; }
.social--sm a:hover { background: var(--red); }

/* ---------- Masthead ---------- */
.masthead { background: #fff; }
.masthead-in { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; padding-top: 12px; padding-bottom: 12px; }
.brand img { height: 44px; width: auto; }
@media (min-width: 768px) { .brand img { height: 62px; } .masthead-in { padding-top: 16px; padding-bottom: 16px; } }
.search { display: none; flex: 1 1 100%; order: 3; position: relative; }
.masthead.search-open .search { display: flex; }
@media (min-width: 768px) { .search { display: flex; flex: 0 1 420px; order: 0; } .search-toggle { display: none !important; } }
.search input { width: 100%; padding: 11px 48px 11px 16px; border: 1.5px solid var(--line); border-radius: 999px; font: inherit; font-size: 15px; background: var(--soft); transition: border-color .2s, background .2s; }
.search input:focus { outline: none; border-color: var(--red); background: #fff; }
.search button { position: absolute; right: 4px; top: 4px; bottom: 4px; width: 40px; border: 0; border-radius: 50%; background: var(--red); color: #fff; cursor: pointer; }
.search button:hover { background: var(--red-d); }
.search-toggle { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }

/* ---------- Main navigation ---------- */
.mainnav { position: sticky; top: 0; z-index: 90; background: #fff; border-top: 1px solid var(--line); border-bottom: 2px solid var(--red); box-shadow: 0 2px 8px rgba(15, 20, 25, .04); }
.mainnav-list { display: flex; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.mainnav-list::-webkit-scrollbar { display: none; }
.mainnav-list a { display: flex; align-items: center; height: var(--nav-h); padding: 0 14px; font-weight: 600; font-size: 16px; white-space: nowrap; color: var(--ink); position: relative; transition: color .2s; }
.mainnav-list a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -2px; height: 3px; background: var(--red); transform: scaleX(0); transition: transform .2s; }
.mainnav-list a:hover { color: var(--red); }
.mainnav-list a:hover::after, .mainnav-list a.is-active::after { transform: scaleX(1); }
.mainnav-list a.is-active { color: var(--red); }

/* ---------- Ticker ---------- */
.ticker { background: var(--soft); border-bottom: 1px solid var(--line); }
.ticker-in { display: flex; align-items: stretch; min-height: 42px; }
.ticker-label { flex: none; display: flex; align-items: center; background: var(--red); color: #fff; font-weight: 700; font-size: 14px; padding: 0 14px; letter-spacing: .02em; }
.ticker-track { flex: 1; overflow: hidden; display: flex; align-items: center; mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%); }
.ticker-move { display: inline-flex; white-space: nowrap; animation: lv-tick var(--tick-dur, 80s) linear infinite; will-change: transform; }
.ticker-track:hover .ticker-move, .ticker-track:focus-within .ticker-move { animation-play-state: paused; }
.ticker-move a { padding: 0 22px; font-size: 15px; font-weight: 500; position: relative; color: var(--ink); }
.ticker-move a::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--red); }
.ticker-move a:hover { color: var(--red); }
@keyframes lv-tick { to { transform: translateX(-50%); } }

/* ---------- Ads (visitors never see timers – ads simply appear/disappear) ---------- */
.ad-band { margin-top: 16px; margin-bottom: 0; }
.ad-slot { position: relative; margin: 22px auto; text-align: center; min-height: var(--ad-min, 90px); background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 20px 8px 8px; overflow: hidden; max-width: 100%; }
.ad-label { position: absolute; top: 3px; left: 8px; font-size: 10px; letter-spacing: .08em; color: #98a2b3; }
.ad-body { display: flex; justify-content: center; align-items: center; min-height: calc(var(--ad-min, 90px) - 28px); }
.ad-body img { margin: 0 auto; max-width: 100%; height: auto; }
.ad-body > ins, .ad-body > a, .ad-body > div { max-width: 100%; }
.ad-pending { background: transparent; border-color: transparent; }
.ad-pending .ad-label, .ad-pending .ad-close { display: none; }
.ad-dev-desktop { display: none; }
@media (min-width: 768px) { .ad-dev-desktop { display: block; } .ad-dev-mobile { display: none; } }
.ad-sticky-wrap { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: none; }
@media (max-width: 767px) { .ad-sticky-wrap { display: block; } body.has-sticky-ad { padding-bottom: 76px; } .to-top { bottom: 84px !important; } }
.ad-sticky-wrap .ad-slot { margin: 0; border-radius: 0; border-width: 1px 0 0; background: #fff; box-shadow: 0 -4px 14px rgba(0,0,0,.08); padding-top: 14px; }
.ad-close { position: absolute; top: 0; right: 0; width: 30px; height: 26px; border: 0; background: rgba(15,20,25,.75); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; border-bottom-left-radius: 8px; z-index: 2; }
.ad-slot.ad-gone { display: none !important; }

/* ---------- Section headings ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; border-bottom: 2px solid var(--ink); margin: 0 0 18px; }
.section-title { font-size: 22px; font-weight: 800; position: relative; padding-bottom: 8px; margin-bottom: -2px; border-bottom: 3px solid var(--red); }
.section-more { font-size: 14px; font-weight: 600; color: var(--red); padding-bottom: 8px; white-space: nowrap; }
.section-more:hover { text-decoration: underline; }
.section-more i { font-size: 12px; margin-left: 4px; }

/* ---------- Layout ---------- */
.layout { display: grid; gap: 32px; margin-top: 24px; margin-bottom: 48px; }
.layout > * { min-width: 0; }
@media (min-width: 992px) { .layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 44px; } }
.page-gap { margin-top: 24px; margin-bottom: 48px; }

/* ---------- Cards ---------- */
.card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card-img { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: #e8ebef; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.card-title { font-size: 19px; font-weight: 700; line-height: 1.62; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-title a:hover { color: var(--red); }
.card-excerpt { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pill { align-self: flex-start; font-size: 12.5px; font-weight: 700; color: var(--red); letter-spacing: .01em; }
.pill:hover { text-decoration: underline; }
.meta { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.meta i { font-size: 12px; opacity: .8; }
.meta-dot { opacity: .5; }
.tag-breaking { align-self: flex-start; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 3px; letter-spacing: .02em; }

.card--row { flex-direction: row; align-items: flex-start; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.card--row:first-child { padding-top: 0; }
.card--row .card-img { flex: 0 0 36%; max-width: 280px; }
.card--row .card-title { font-size: 17.5px; -webkit-line-clamp: 3; }
.card--row .card-excerpt { display: none; }
@media (min-width: 640px) {
  .card--row { gap: 22px; padding: 20px 0; }
  .card--row .card-img { flex-basis: 280px; }
  .card--row .card-title { font-size: 21px; }
  .card--row .card-excerpt { display: -webkit-box; }
}
.card--mini { flex-direction: row; gap: 12px; align-items: flex-start; }
.card--mini .card-img { flex: 0 0 112px; border-radius: 6px; }
.card--mini .card-title { font-size: 15.5px; line-height: 1.6; font-weight: 600; margin-bottom: 2px; }
.card--lead .card-title { font-size: clamp(22px, 2.2vw, 27px); }
.card--lead .card-excerpt { -webkit-line-clamp: 3; }
.mini-list { display: grid; gap: 14px; }
.mini-list .card--mini + .card--mini { padding-top: 14px; border-top: 1px solid var(--line); }

.grid-3 { display: grid; gap: 26px 22px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

/* ---------- Hero ---------- */
.hero { display: grid; gap: 18px; margin-top: 20px; margin-bottom: 8px; }
.hero > * { min-width: 0; }
@media (min-width: 992px) { .hero { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 26px; } }
.hero-main { position: relative; width: 100%; margin: 0; border-radius: var(--radius); overflow: hidden; background: #111; }
.hero-slide { display: block; position: relative; aspect-ratio: 4 / 3; }
@media (min-width: 560px) { .hero-slide { aspect-ratio: 16 / 10; } }
@media (min-width: 992px) { .hero-slide { aspect-ratio: auto; height: 100%; min-height: 440px; } }
.hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.85) 0, rgba(0,0,0,.4) 42%, rgba(0,0,0,0) 72%); }
.hero-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 18px 18px 38px; color: #fff; }
@media (min-width: 768px) { .hero-cap { padding: 28px 30px 44px; } }
.hero-cap h2 { color: #fff; font-size: clamp(20px, 2.8vw, 32px); font-weight: 800; line-height: 1.4; margin: 8px 0 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.hero-cap .meta { color: rgba(255,255,255,.85); }
.pill--solid { display: inline-block; background: var(--red); color: #fff; font-size: 12.5px; font-weight: 700; padding: 2px 10px; border-radius: 4px; }
.hero-main:not(.swiper-initialized) .swiper-slide:nth-child(n+2) { display: none; }
.hero-main .swiper-pagination { bottom: 12px !important; text-align: right; padding-right: 18px; }
.hero-main .swiper-pagination-bullet { background: #fff; opacity: .55; width: 8px; height: 8px; }
.hero-main .swiper-pagination-bullet-active { background: var(--red); opacity: 1; width: 22px; border-radius: 4px; }
.hero-main { --swiper-theme-color: #fff; --swiper-navigation-size: 20px; }
.hero-main .swiper-button-prev, .hero-main .swiper-button-next { display: none; width: 42px; height: 42px; background: rgba(15,20,25,.55); border-radius: 50%; }
.hero-main .swiper-button-prev:hover, .hero-main .swiper-button-next:hover { background: var(--red); }
@media (min-width: 992px) { .hero-main .swiper-button-prev, .hero-main .swiper-button-next { display: flex; } }
.hero-side { display: grid; align-content: start; gap: 0; }
.hero-side .card--mini { padding: 14px 0; border-bottom: 1px solid var(--line); }
.hero-side .card--mini:first-of-type { padding-top: 0; }
.hero-side .card--mini:last-child { border-bottom: 0; }
.hero-side .card--mini .card-img { flex-basis: 128px; }
.hero-side .card--mini .card-title { font-size: 16.5px; }
@media (min-width: 992px) { .hero-side .card--mini .card-img { flex-basis: 140px; } }

/* ---------- Category blocks on home ---------- */
.cat-block { margin-bottom: 40px; }
.cat-block-grid { display: grid; gap: 22px; }
@media (min-width: 768px) { .cat-block-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; } }
.cat-block-side { display: grid; gap: 14px; align-content: start; }
.cat-block-side .card--mini + .card--mini { padding-top: 14px; border-top: 1px solid var(--line); }

/* ---------- Pagination ---------- */
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; margin: 34px 0 0; }
.pager-num, .pager-btn, .pager-gap { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border-radius: 8px; font-weight: 600; font-size: 15px; }
.pager-num, .pager-btn { border: 1.5px solid var(--line); background: #fff; color: var(--ink); transition: all .2s; }
.pager-num:hover, .pager-btn:hover { border-color: var(--red); color: var(--red); }
.pager-num.is-active { background: var(--red); border-color: var(--red); color: #fff; }
.pager-gap { color: var(--muted); }
@media (max-width: 520px) { .pager-num:not(.is-active) { display: none; } .pager-num.is-active { display: inline-flex; } }

/* ---------- Sidebar ---------- */
.sidebar { display: block; }
.widget { margin-bottom: 32px; }
.widget-title { font-size: 19px; font-weight: 800; border-bottom: 2px solid var(--ink); margin: 0 0 16px; }
.widget-title span { display: inline-block; padding-bottom: 8px; margin-bottom: -2px; border-bottom: 3px solid var(--red); }
.rank-list { counter-reset: none; display: grid; gap: 14px; }
.rank-list li { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.rank-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.rank-num { font-family: var(--font-head); font-weight: 800; font-size: 30px; line-height: 1; color: #ccd1d9; min-width: 30px; }
.rank-list li:nth-child(-n+3) .rank-num { color: var(--red); }
.rank-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; font-size: 16px; line-height: 1.6; margin-bottom: 3px; }
.rank-title:hover { color: var(--red); }
.cat-list li a { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); font-weight: 600; }
.cat-list li a:hover { color: var(--red); }
.cat-list em { font-style: normal; font-size: 12px; background: var(--soft); border-radius: 999px; padding: 1px 10px; color: var(--muted); }
.follow-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.follow-list a { display: flex; gap: 8px; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; font-weight: 600; }
.follow-list a:hover { border-color: var(--red); color: var(--red); }
.sticky-box { position: sticky; top: calc(var(--nav-h) + 16px); }

/* ---------- Article ---------- */
.breadcrumbs { font-size: 13.5px; color: var(--muted); margin: 0 0 12px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.breadcrumbs li + li::before { content: "›"; margin-right: 8px; opacity: .6; }
.breadcrumbs a:hover { color: var(--red); }
.article-title { font-size: clamp(26px, 4.2vw, 40px); font-weight: 800; line-height: 1.38; margin: 8px 0 14px; letter-spacing: -.005em; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; color: var(--muted); font-size: 14px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.article-meta b { color: var(--ink); font-weight: 600; }
.article-meta i { margin-right: 5px; opacity: .8; }
.article-hero { margin: 0 0 22px; }
.article-hero img { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; background: #e8ebef; }
.article-body { font-size: 19px; line-height: 2; color: #19212c; overflow-wrap: anywhere; }
.article-body p { margin: 0 0 1.15em; }
.article-body h2, .article-body h3, .article-body h4 { margin: 1.5em 0 .6em; font-weight: 800; }
.article-body h2 { font-size: 1.45em; }
.article-body h3 { font-size: 1.25em; }
.article-body img { max-width: 100% !important; height: auto !important; margin: 1.2em auto; border-radius: 8px; }
.article-body iframe, .article-body video, .article-body embed { max-width: 100% !important; width: 100%; aspect-ratio: 16 / 9; height: auto !important; border: 0; border-radius: 8px; margin: 1.2em auto; display: block; }
.article-body table { display: block; overflow-x: auto; border-collapse: collapse; max-width: 100%; }
.article-body td, .article-body th { border: 1px solid var(--line); padding: 8px 12px; }
.article-body blockquote { margin: 1.4em 0; padding: .6em 1.2em; border-left: 4px solid var(--red); background: var(--soft); border-radius: 0 8px 8px 0; }
.article-body a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.article-body ul, .article-body ol { margin: 0 0 1.15em 1.4em; list-style: revert; }
.article-body * { max-width: 100%; }
/* Old posts carry pasted Word/Office styling – normalise it so every story reads the same */
.article-body [style*="font-family"] { font-family: inherit !important; }
.article-body [style*="font-size"]:not(h1):not(h2):not(h3):not(h4) { font-size: inherit !important; }
.article-body [style*="line-height"] { line-height: inherit !important; }
.article-body [style*="background"] { background: transparent !important; }
.article-body [style*="justify"] { text-align: left !important; }
.article-body [style*="width"]:not(img):not(iframe):not(table):not(td):not(th) { width: auto !important; }
.article-body .MsoNormal { margin: 0 0 1.15em; }
.article-updated { font-size: 13.5px; color: var(--muted); margin: 0 0 8px; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 26px 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share-label { font-weight: 700; margin-right: 6px; font-family: var(--font-head); }
.share-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 0; color: #fff; font-size: 14.5px; font-weight: 600; cursor: pointer; transition: transform .15s, filter .15s; }
.share-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.share-btn--wa { background: #25d366; }
.share-btn--fb { background: #1877f2; }
.share-btn--x { background: #111; }
.share-btn--tg { background: #229ed9; }
.share-btn--copy { background: #475467; }
.share-btn--print { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.share-btn--print:hover { border-color: var(--ink); }
@media (max-width: 520px) { .share-btn span { display: none; } .share-btn { padding: 11px 15px; } .share-btn--wa span { display: inline; } }

.related { margin-top: 36px; }
.author-box { display: flex; gap: 14px; align-items: center; margin: 0 0 6px; }
.author-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-head); }

/* ---------- Comments & forms ---------- */
.comments { margin-top: 40px; }
.comment { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--soft); color: var(--red); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-head); }
.comment-name { font-weight: 700; color: var(--ink); }
.comment-date { font-size: 12.5px; color: var(--muted); margin-left: 8px; }
.comment-text { margin: 4px 0 0; color: #333d4b; white-space: pre-line; }
.form-card { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-top: 24px; }
.form-card h3 { font-size: 20px; margin-bottom: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 5px; }
.field input, .field textarea, .field select { width: 100%; padding: 12px 14px; border: 1.5px solid #cfd4dc; border-radius: 8px; font: inherit; font-size: 16px; background: #fff; color: var(--text); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(217,16,28,.12); }
.hp { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; width: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border: 0; border-radius: 8px; background: var(--red); color: #fff; font-weight: 700; font-size: 16px; cursor: pointer; transition: background .2s, transform .15s; }
.btn:hover { background: var(--red-d); transform: translateY(-1px); }
.btn--ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn--ghost:hover { background: #fff; border-color: var(--ink); }
.notice { padding: 12px 16px; border-radius: 8px; margin: 0 0 18px; font-weight: 500; }
.notice--ok { background: #ecfdf3; border: 1px solid #abefc6; color: #067647; }
.notice--err { background: #fef3f2; border: 1px solid #fecdca; color: #b42318; }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty h2 { margin-bottom: 8px; }

/* ---------- Static pages ---------- */
.page { max-width: 860px; margin: 28px auto 56px; }
.page-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin: 6px 0 20px; }
.prose { font-size: 18px; line-height: 1.95; }
.prose h2, .prose h3, .prose h4 { margin: 1.4em 0 .5em; }
.prose a { color: var(--red); text-decoration: underline; }
.prose ul, .prose ol { margin: 0 0 1em 1.4em; list-style: revert; }
.prose [style*="font-family"] { font-family: inherit !important; }
.prose [style*="font-size"]:not(h1):not(h2):not(h3):not(h4) { font-size: inherit !important; }
.prose [style*="line-height"] { line-height: inherit !important; }
.prose [style*="justify"] { text-align: left !important; }
.prose img { border-radius: 8px; margin: 1em auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; background: #fff; overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 16px 20px; font-weight: 700; font-family: var(--font-head); list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 24px; color: var(--red); line-height: 1; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { border-bottom: 1px solid var(--line); background: var(--soft); }
.faq-item > div { padding: 16px 20px; color: #333d4b; }
.contact-grid { display: grid; gap: 28px; margin-top: 8px; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #aab3c0; margin-top: 24px; }
.footer-grid { display: grid; gap: 32px; padding-top: 44px; padding-bottom: 36px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 44px; } }
.footer-logo img { height: 56px; width: auto; filter: brightness(0) invert(1); opacity: .95; margin-bottom: 14px; }
.footer-brand p { font-size: 15px; line-height: 1.75; margin-bottom: 16px; }
.site-footer h3 { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--red); display: inline-block; }
.site-footer ul li { margin-bottom: 8px; font-size: 15px; }
.site-footer a:hover { color: #fff; }
.footer-contact i { width: 20px; color: var(--red); }
.footer-bottom { background: #0a0e12; font-size: 13.5px; }
.footer-bottom-in { display: flex; flex-wrap: wrap; gap: 4px 20px; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #fff; }
.to-top { position: fixed; right: 16px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--red); color: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.25); cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(10px); transition: all .25s; z-index: 80; }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }

/* ---------- Search page ---------- */
.search-head { margin: 8px 0 18px; }
.search-head h1 { font-size: clamp(22px, 3vw, 30px); }
.search-head p { color: var(--muted); margin: 6px 0 0; }
.search-box-lg { display: flex; gap: 8px; margin: 14px 0 6px; }
.search-box-lg input { flex: 1; padding: 12px 16px; border: 1.5px solid #cfd4dc; border-radius: 8px; font: inherit; }
.search-box-lg input:focus { outline: none; border-color: var(--red); }

/* ---------- 404 ---------- */
.nf { text-align: center; padding: 56px 16px 40px; }
.nf-code { font-family: var(--font-head); font-size: clamp(72px, 16vw, 140px); font-weight: 800; color: var(--red); line-height: 1; }
.nf h1 { margin: 10px 0; }
.nf p { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-move { animation: none; }
  .ticker-track { overflow-x: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

@media print {
  .topbar, .masthead, .mainnav, .ticker, .sidebar, .site-footer, .share, .comments, .ad-slot, .ad-band, .to-top, .read-progress, .related, .ad-sticky-wrap, .breadcrumbs { display: none !important; }
  body { font-size: 12pt; }
  .layout { display: block; }
}
