/* ==========================================================================
   jcByte — public site styles
   Typeface: SolaimanLipi (Bangla + Latin), self-hosted.
   ========================================================================== */

@font-face {
  font-family: "SolaimanLipi";
  src: url("../fonts/solaimanlipi-normal-v1.0.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SolaimanLipi";
  src: url("../fonts/solaimanlipi-bold-v1.0.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --jc-blue: #0b4fb3;
  --jc-blue-dark: #083a85;
  --jc-blue-soft: #eaf1fc;
  --jc-navy: #0c1a2c;
  --jc-navy-2: #13243b;
  --jc-orange: #f37021;
  --jc-orange-dark: #d85a0d;
  --jc-teal: #0e8fa3;
  --jc-red: #d7262e;
  --jc-ink: #141821;
  --jc-text: #2b303b;
  --jc-muted: #667085;
  --jc-line: #e4e7ec;
  --jc-bg: #f3f4f6;
  --jc-card: #ffffff;
  --jc-radius: 10px;
  --jc-radius-sm: 6px;
  --jc-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --jc-shadow-lg: 0 12px 32px -12px rgba(16, 24, 40, .25);
  --jc-font: "SolaimanLipi", "Noto Sans Bengali", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --jc-max: 1240px;

  --bs-body-font-family: var(--jc-font);
  --bs-body-color: var(--jc-text);
  --bs-body-bg: var(--jc-bg);
  --bs-link-color: var(--jc-blue);
  --bs-link-color-rgb: 11, 79, 179;
  --bs-link-hover-color: var(--jc-blue-dark);
  --bs-primary: var(--jc-blue);
  --bs-primary-rgb: 11, 79, 179;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--jc-font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--jc-text);
  background: var(--jc-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--jc-font); color: var(--jc-ink); font-weight: 700; line-height: 1.35; }
a { color: var(--jc-blue); text-decoration: none; }
a:hover { color: var(--jc-blue-dark); }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font-family: inherit; }
:focus-visible { outline: 3px solid rgba(243, 112, 33, .55); outline-offset: 2px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; background: var(--jc-orange); color: #fff; padding: .5rem 1rem; }
.skip-link:focus { left: 1rem; top: 1rem; color: #fff; }
.jc-container { width: 100%; max-width: var(--jc-max); margin: 0 auto; padding: 0 16px; }
.visually-hidden-focusable:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Top bar ---------- */
.jc-topbar { background: var(--jc-navy); color: #c8d1de; font-size: 13.5px; }
.jc-topbar .jc-container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 36px; }
.jc-topbar a { color: #dfe6f0; }
.jc-topbar a:hover { color: #fff; }
.jc-topbar__date { display: flex; align-items: center; gap: .6rem; white-space: nowrap; overflow: hidden; min-width: 0; text-overflow: ellipsis; }
.jc-topbar__links { flex: none; }
.jc-topbar__date .sep { opacity: .4; }
.jc-topbar__links { display: flex; align-items: center; gap: 1.1rem; }
.jc-topbar__social { display: flex; gap: .75rem; }
.jc-topbar__social a { opacity: .85; }

/* ---------- Masthead ---------- */
.jc-masthead { background: #fff; border-bottom: 1px solid var(--jc-line); }
.jc-masthead .jc-container { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding-top: 14px; padding-bottom: 14px; }
.jc-logo { flex: none; }
.jc-logo img { height: 52px; width: auto; display: block; }
.jc-search { flex: 1; max-width: 440px; position: relative; }
.jc-search input {
  width: 100%; height: 44px; border: 1px solid var(--jc-line); border-radius: 999px; background: #f7f8fa;
  padding: 0 52px 0 18px; font-size: 15.5px; color: var(--jc-ink); transition: border-color .15s, box-shadow .15s, background .15s;
}
.jc-search input:focus { outline: none; background: #fff; border-color: var(--jc-blue); box-shadow: 0 0 0 4px rgba(11, 79, 179, .12); }
.jc-search button {
  position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: var(--jc-blue); color: #fff; display: grid; place-items: center;
}
.jc-search button:hover { background: var(--jc-blue-dark); }
.jc-mast-actions { display: flex; align-items: center; gap: .6rem; }
.jc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 42px; padding: 0 18px;
  border-radius: 999px; font-weight: 700; font-size: 15px; border: 1px solid transparent; transition: all .15s ease; white-space: nowrap; cursor: pointer;
}
.jc-btn--primary { background: var(--jc-orange); color: #fff; }
.jc-btn--primary:hover { background: var(--jc-orange-dark); color: #fff; }
.jc-btn--blue { background: var(--jc-blue); color: #fff; }
.jc-btn--blue:hover { background: var(--jc-blue-dark); color: #fff; }
.jc-btn--ghost { background: #fff; color: var(--jc-ink); border-color: var(--jc-line); }
.jc-btn--ghost:hover { border-color: var(--jc-blue); color: var(--jc-blue); }
.jc-icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--jc-line); background: #fff; color: var(--jc-ink); display: none; place-items: center; }

/* ---------- Main navigation ---------- */
.jc-nav { background: var(--jc-blue); position: sticky; top: 0; z-index: 1020; box-shadow: 0 2px 10px rgba(8, 58, 133, .25); }
.jc-nav .jc-container { display: flex; align-items: stretch; }
.jc-nav__list { display: flex; align-items: stretch; gap: 0; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; flex: 1; mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
.jc-nav__list::-webkit-scrollbar { display: none; }
.jc-nav__list a {
  display: flex; align-items: center; height: 48px; padding: 0 14px; color: #fff; font-weight: 700; font-size: 15.5px;
  white-space: nowrap; position: relative; opacity: .95;
}
.jc-nav__list a:hover { background: rgba(255, 255, 255, .1); color: #fff; opacity: 1; }
.jc-nav__list a.active::after, .jc-nav__list a:hover::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; background: var(--jc-orange); border-radius: 3px 3px 0 0;
}
.jc-nav__home { font-size: 17px !important; }
.jc-nav__menu { border: 0; background: rgba(255, 255, 255, .08); color: #fff; width: 48px; height: 48px; display: grid; place-items: center; font-size: 19px; flex: none; margin-right: 4px; }
.jc-nav__menu:hover { background: rgba(255, 255, 255, .18); }

/* ---------- Ticker ---------- */
.jc-ticker { background: #fff; border-bottom: 1px solid var(--jc-line); }
.jc-ticker .jc-container { display: flex; align-items: center; gap: 12px; height: 44px; overflow: hidden; }
.jc-ticker__label {
  flex: none; background: var(--jc-red); color: #fff; font-weight: 700; font-size: 13.5px; padding: 3px 12px; border-radius: 4px;
  display: inline-flex; align-items: center; gap: 6px; letter-spacing: .02em;
}
.jc-ticker__label .dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: jc-pulse 1.4s infinite; }
.jc-ticker__viewport { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.jc-ticker__track { display: inline-flex; gap: 2.5rem; white-space: nowrap; animation: jc-marquee 60s linear infinite; padding-left: 100%; }
.jc-ticker:hover .jc-ticker__track { animation-play-state: paused; }
.jc-ticker__track a { color: var(--jc-ink); font-size: 15.5px; }
.jc-ticker__track a::before { content: "■"; color: var(--jc-orange); font-size: 9px; margin-right: 10px; vertical-align: 2px; }
.jc-ticker__track a:hover { color: var(--jc-blue); }
@keyframes jc-marquee { to { transform: translateX(-100%); } }
@keyframes jc-pulse { 50% { opacity: .25; } }

/* ---------- Layout ---------- */
.jc-main { flex: 1; padding: 22px 0 40px; }
.jc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; }
.jc-grid > * { min-width: 0; }
.jc-sidebar { display: flex; flex-direction: column; gap: 22px; }
.jc-sticky { position: sticky; top: 64px; }
.jc-panel { background: var(--jc-card); border-radius: var(--jc-radius); box-shadow: var(--jc-shadow); padding: 24px; }
.jc-section { margin-bottom: 30px; }

/* Section heading */
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 2px solid var(--jc-ink); margin-bottom: 16px; }
.sec-head h2, .sec-head h3 {
  margin: 0; font-size: 21px; display: inline-flex; align-items: center; gap: 10px; padding: 0 0 8px; position: relative;
}
.sec-head h2::before, .sec-head h3::before { content: ""; width: 6px; height: 22px; background: var(--jc-orange); border-radius: 2px; }
.sec-head a.more { font-size: 14.5px; font-weight: 700; color: var(--jc-blue); padding-bottom: 6px; white-space: nowrap; }
.sec-head a.more:hover { color: var(--jc-orange-dark); }

/* ---------- Story cards ---------- */
.story { position: relative; display: flex; flex-direction: column; background: var(--jc-card); border-radius: var(--jc-radius); overflow: hidden; box-shadow: var(--jc-shadow); height: 100%; transition: box-shadow .2s ease, transform .2s ease; }
.story:hover { box-shadow: var(--jc-shadow-lg); transform: translateY(-2px); }
.story__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, #e8edf5, #f4f6fa); }
.story__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.story:hover .story__media img { transform: scale(1.04); }
.story__ph { position: absolute; inset: 0; display: grid; place-items: center; color: #9aa7bb; font-weight: 700; letter-spacing: .04em; }
.story__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.kicker { font-size: 13px; font-weight: 700; color: var(--jc-orange-dark); text-transform: uppercase; letter-spacing: .04em; }
a.kicker:hover { color: var(--jc-blue); }
.story__title { font-size: 18.5px; line-height: 1.4; margin: 0; overflow-wrap: anywhere; }
.story__title a { color: var(--jc-ink); }
.story__title a:hover { color: var(--jc-blue); }
.story__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.story .kicker { position: relative; z-index: 2; }
.story__excerpt { color: var(--jc-muted); font-size: 15.5px; line-height: 1.6; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; color: var(--jc-muted); font-size: 13.5px; margin-top: auto; padding-top: 4px; }
.meta i { margin-right: 4px; opacity: .8; }

/* Lead story */
.story--lead .story__media { aspect-ratio: 16 / 10; }
.story--lead .story__title { font-size: 30px; line-height: 1.3; }
.story--lead .story__excerpt { -webkit-line-clamp: 3; font-size: 16.5px; }
@media (min-width: 992px) {
  .story--overlay { min-height: 100%; }
  .story--overlay .story__media { aspect-ratio: auto; position: absolute; inset: 0; }
  .story--overlay .story__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 14, 26, 0) 35%, rgba(8, 14, 26, .88) 100%); }
  .story--overlay .story__body { position: relative; justify-content: flex-end; min-height: 460px; padding: 26px 28px; color: #fff; }
  .story--overlay .story__title a, .story--overlay .story__excerpt, .story--overlay .meta { color: #fff; }
  .story--overlay .story__excerpt { opacity: .88; }
  .story--overlay .kicker { color: #fff; background: var(--jc-orange); align-self: flex-start; padding: 2px 10px; border-radius: 4px; }
  .story--overlay .meta { margin-top: 4px; }
  .story--overlay .story__title { text-shadow: 0 1px 12px rgba(0, 0, 0, .45); }
  .story--overlay .story__media::after { background: linear-gradient(180deg, rgba(8, 14, 26, .05) 20%, rgba(8, 14, 26, .55) 55%, rgba(8, 14, 26, .92) 100%); }
}

/* Horizontal / compact cards */
.story--row { flex-direction: row; gap: 0; }
.story--row .story__media { flex: none; width: 38%; max-width: 260px; aspect-ratio: 4 / 3; }
.story--row .story__title { font-size: 17.5px; }
.story--compact { flex-direction: row; box-shadow: none; background: transparent; border-radius: 0; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--jc-line); }
.story--compact:hover { box-shadow: none; transform: none; }
.story--compact:last-child { border-bottom: 0; }
.story--compact .story__media { flex: none; width: 112px; aspect-ratio: 4 / 3; border-radius: var(--jc-radius-sm); align-self: flex-start; }
.story--compact .story__body { padding: 0; gap: 4px; }
.story--compact .story__title { font-size: 16px; line-height: 1.45; }

/* Secondary column next to the lead */
.lead-side { display: flex; flex-direction: column; gap: 14px; }
.lead-side .story--row .story__media { width: 132px; aspect-ratio: 4 / 3; }
.lead-side .story--row .story__body { padding: 10px 14px; }
.lead-side .story--row .story__title { font-size: 16.5px; }

/* Category block */
.cat-block { background: var(--jc-card); border-radius: var(--jc-radius); box-shadow: var(--jc-shadow); padding: 18px; height: 100%; }
.cat-block .sec-head { margin-bottom: 12px; }
.cat-block .story--feature { box-shadow: none; border-radius: var(--jc-radius-sm); }
.cat-block .story--feature .story__body { padding: 12px 0 4px; }
.cat-block .story--feature:hover { transform: none; }

/* ---------- Widgets ---------- */
.widget { background: var(--jc-card); border-radius: var(--jc-radius); box-shadow: var(--jc-shadow); padding: 18px; }
.widget .sec-head { margin-bottom: 8px; }
.widget .sec-head h3 { font-size: 18px; }
.rank-list { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.rank-list li { counter-increment: rank; display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--jc-line); }
.rank-list li:last-child { border-bottom: 0; }
.rank-list li::before {
  content: counter(rank); flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; color: var(--jc-orange); background: #fff3eb; font-size: 17px;
}
.rank-list a { color: var(--jc-ink); font-weight: 700; font-size: 15.5px; line-height: 1.45; display: block; overflow-wrap: anywhere; }
.rank-list li > div { min-width: 0; }
.rank-list a:hover { color: var(--jc-blue); }
.rank-list small { color: var(--jc-muted); font-size: 12.5px; }
.cat-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--jc-blue-soft);
  color: var(--jc-blue); font-size: 14px; font-weight: 700; border: 1px solid transparent;
}
.chip:hover { background: var(--jc-blue); color: #fff; }
.chip .n { font-size: 12px; opacity: .75; }
.chip--orange { background: #fff3eb; color: var(--jc-orange-dark); }
.chip--orange:hover { background: var(--jc-orange); color: #fff; }
.widget--cta { background: linear-gradient(135deg, var(--jc-blue) 0%, var(--jc-blue-dark) 100%); color: #e7eefc; }
.widget--cta h3 { color: #fff; font-size: 20px; }
.widget--cta p { font-size: 15px; margin-bottom: 14px; }

/* ---------- Ads ---------- */
.ad-slot { text-align: center; margin: 0 auto; width: 100%; }
.ad-slot__label { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #98a2b3; margin-bottom: 4px; }
.ad-slot ins.adsbygoogle { display: block; min-height: 90px; background: transparent; }
.ad-slot--rect ins.adsbygoogle { min-height: 250px; }
.ad-slot--tall ins.adsbygoogle { min-height: 600px; }
.ad-slot--banner { padding: 14px 0; }
.ad-slot--inarticle { margin: 26px auto; padding: 10px 0; border-top: 1px solid var(--jc-line); border-bottom: 1px solid var(--jc-line); }
.ad-slot:has(ins[data-ad-status="unfilled"]) { display: none; }

/* ---------- Article ---------- */
.crumbs { font-size: 14px; color: var(--jc-muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
.crumbs a { color: var(--jc-muted); }
.crumbs a:hover { color: var(--jc-blue); }
.crumbs i { font-size: 10px; opacity: .6; }
.article { background: var(--jc-card); border-radius: var(--jc-radius); box-shadow: var(--jc-shadow); padding: 30px 36px 34px; }
.article__title { font-size: 36px; line-height: 1.3; margin: 8px 0 12px; letter-spacing: -.005em; }
.article__dek { font-size: 19px; color: #475467; line-height: 1.6; margin-bottom: 18px; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--jc-line); border-bottom: 1px solid var(--jc-line); margin-bottom: 22px; }
.byline { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 18px;
  background: linear-gradient(135deg, var(--jc-teal), var(--jc-blue)); flex: none; text-transform: uppercase;
}
.byline strong { display: block; color: var(--jc-ink); font-size: 16px; }
.byline span { color: var(--jc-muted); font-size: 13.5px; }
.share { display: flex; gap: 8px; align-items: center; }
.share a, .share button {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--jc-line);
  color: var(--jc-ink); background: #fff; font-size: 15px; transition: all .15s;
}
.share a:hover, .share button:hover { color: #fff; border-color: transparent; }
.share .fb:hover { background: #1877f2; } .share .x:hover { background: #000; } .share .wa:hover { background: #25d366; }
.share .li:hover { background: #0a66c2; } .share .cp:hover { background: var(--jc-orange); }
.article__figure { margin: 0 0 24px; }
.article__figure img { width: 100%; border-radius: var(--jc-radius-sm); display: block; }
.article__figure figcaption { font-size: 13.5px; color: var(--jc-muted); margin-top: 8px; }

.prose { font-size: 18.5px; line-height: 1.9; color: #1f2430; overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.05em; }
.prose p { margin: 0 0 1.05em; text-align: left !important; }
.prose h1, .prose h2, .prose h3, .prose h4 { margin: 1.6em 0 .6em; line-height: 1.4; }
.prose h1 { font-size: 28px; } .prose h2 { font-size: 25px; } .prose h3 { font-size: 21.5px; } .prose h4 { font-size: 19px; }
.prose h2 span, .prose h3 span { color: inherit !important; }
.prose a { color: var(--jc-blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose img { display: block; max-width: 100% !important; height: auto !important; margin: 1.4em auto; border-radius: var(--jc-radius-sm); }
.prose ul, .prose ol { padding-left: 1.4em; margin-bottom: 1.05em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { border-left: 4px solid var(--jc-orange); background: #fff8f3; margin: 1.5em 0; padding: 14px 20px; font-size: 19px; color: var(--jc-ink); border-radius: 0 var(--jc-radius-sm) var(--jc-radius-sm) 0; }
.prose table { width: 100% !important; border-collapse: collapse; font-size: 16px; margin: 1.4em 0; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--jc-line); padding: 8px 10px; }
.prose iframe, .prose video { max-width: 100%; border-radius: var(--jc-radius-sm); }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; }
.prose sub, .prose sup { font-size: 70%; }
.prose strong { color: var(--jc-ink); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--jc-line); }
.tags .lbl { font-weight: 700; color: var(--jc-ink); margin-right: 4px; }
.author-box { display: flex; gap: 16px; align-items: center; background: #f7f9fc; border: 1px solid var(--jc-line); border-radius: var(--jc-radius); padding: 18px; margin-top: 24px; }
.author-box .avatar { width: 60px; height: 60px; font-size: 24px; }
.author-box h4 { margin: 0 0 2px; font-size: 18px; }
.author-box p { margin: 0; color: var(--jc-muted); font-size: 15px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.post-nav a { display: block; background: #fff; border: 1px solid var(--jc-line); border-radius: var(--jc-radius); padding: 14px 16px; color: var(--jc-ink); font-weight: 700; line-height: 1.45; }
.post-nav a:hover { border-color: var(--jc-blue); color: var(--jc-blue); }
.post-nav small { display: block; color: var(--jc-muted); font-weight: 400; font-size: 13px; margin-bottom: 4px; }
.post-nav .next { text-align: right; }
.reading-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--jc-orange); z-index: 1100; transition: width .1s linear; }

/* ---------- Listing page ---------- */
.page-head { background: var(--jc-card); border-radius: var(--jc-radius); box-shadow: var(--jc-shadow); padding: 22px 26px; margin-bottom: 22px; border-left: 6px solid var(--jc-orange); }
.page-head .kicker { display: block; margin-bottom: 2px; }
.page-head h1 { font-size: 30px; margin: 0; }
.page-head p { margin: 6px 0 0; color: var(--jc-muted); }
.list-stack { display: flex; flex-direction: column; gap: 16px; }
.filters { display: grid; grid-template-columns: 2fr 1fr auto; gap: 10px; margin-top: 16px; }
.filters input, .filters select { height: 44px; border: 1px solid var(--jc-line); border-radius: var(--jc-radius-sm); padding: 0 12px; background: #fff; font-size: 15.5px; width: 100%; }
.filters input:focus, .filters select:focus { outline: none; border-color: var(--jc-blue); box-shadow: 0 0 0 3px rgba(11, 79, 179, .12); }

.jc-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 26px 0 6px; }
.jc-pager a, .jc-pager span {
  min-width: 42px; height: 42px; padding: 0 12px; border-radius: var(--jc-radius-sm); display: inline-grid; place-items: center;
  background: #fff; border: 1px solid var(--jc-line); color: var(--jc-ink); font-weight: 700;
}
.jc-pager a:hover { border-color: var(--jc-blue); color: var(--jc-blue); }
.jc-pager .current { background: var(--jc-blue); border-color: var(--jc-blue); color: #fff; }
.jc-pager .gap { border: 0; background: transparent; }

.empty { text-align: center; padding: 48px 20px; color: var(--jc-muted); }
.empty i { font-size: 40px; color: #c0c8d6; margin-bottom: 10px; display: block; }

/* ---------- Static pages ---------- */
.doc { background: var(--jc-card); border-radius: var(--jc-radius); box-shadow: var(--jc-shadow); padding: 34px 40px; }
.doc h1 { font-size: 32px; margin-bottom: 6px; }
.doc .updated { color: var(--jc-muted); font-size: 14px; margin-bottom: 22px; }
.doc h2 { font-size: 22px; margin-top: 28px; }
.doc p, .doc li { font-size: 17px; line-height: 1.85; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 22px 0; }
.feature { border: 1px solid var(--jc-line); border-radius: var(--jc-radius); padding: 18px; }
.feature i { font-size: 22px; color: var(--jc-orange); margin-bottom: 8px; display: block; }
.feature h3 { font-size: 18px; margin: 0 0 4px; }
.feature p { font-size: 15px; color: var(--jc-muted); margin: 0; line-height: 1.6; }

/* ---------- Auth ---------- */
.auth-wrap { display: grid; grid-template-columns: 1.05fr 1fr; max-width: 980px; margin: 10px auto; background: #fff; border-radius: 14px; box-shadow: var(--jc-shadow-lg); overflow: hidden; }
.auth-aside { background: linear-gradient(150deg, var(--jc-blue) 0%, var(--jc-navy) 100%); color: #dbe5f5; padding: 40px 36px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; position: relative; overflow: hidden; }
.auth-aside::after { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; right: -120px; bottom: -120px; background: rgba(243, 112, 33, .25); }
.auth-aside h2 { color: #fff; font-size: 28px; }
.auth-aside ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; position: relative; z-index: 1; }
.auth-aside li i { color: var(--jc-orange); margin-right: 8px; }
.auth-aside .logo-chip { background: #fff; border-radius: 10px; padding: 8px 12px; align-self: flex-start; }
.auth-aside .logo-chip img { height: 40px; width: auto; display: block; }
.auth-form { padding: 40px 36px; }
.auth-form h1 { font-size: 26px; margin-bottom: 4px; }
.auth-form .sub { color: var(--jc-muted); margin-bottom: 22px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: 14.5px; color: var(--jc-ink); margin-bottom: 6px; }
.field .ctl { position: relative; }
.field .ctl i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #98a2b3; }
.field input { width: 100%; height: 46px; border: 1px solid var(--jc-line); border-radius: 8px; padding: 0 14px 0 40px; font-size: 16px; background: #fbfcfd; }
.field input:focus { outline: none; border-color: var(--jc-blue); background: #fff; box-shadow: 0 0 0 4px rgba(11, 79, 179, .12); }
.field .err { color: var(--jc-red); font-size: 13.5px; margin-top: 4px; display: block; }
.field .hint { color: var(--jc-muted); font-size: 13px; margin-top: 4px; display: block; }
.auth-form .jc-btn { width: 100%; height: 48px; font-size: 16px; margin-top: 6px; }
.auth-alt { text-align: center; margin-top: 18px; color: var(--jc-muted); }

.jc-alert { border-radius: 8px; padding: 12px 14px; margin-bottom: 14px; font-size: 15px; display: flex; gap: 10px; align-items: flex-start; border: 1px solid; }
.jc-alert--error { background: #fef3f2; border-color: #fecdca; color: #b42318; }
.jc-alert--success { background: #ecfdf3; border-color: #abefc6; color: #067647; }
.jc-alert--info, .jc-alert--warning { background: #fffaeb; border-color: #fedf89; color: #b54708; }
.jc-messages { max-width: var(--jc-max); margin: 14px auto 0; padding: 0 16px; }

/* ---------- Footer ---------- */
.jc-footer { background: var(--jc-navy); color: #aeb9c9; margin-top: auto; }
.jc-footer__top { padding: 44px 0 26px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.jc-footer h4 { color: #fff; font-size: 17px; margin-bottom: 14px; }
.jc-footer a { color: #cfd8e5; }
.jc-footer a:hover { color: var(--jc-orange); }
.jc-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15.5px; }
.jc-footer .logo-chip { display: inline-block; background: #fff; border-radius: 10px; padding: 8px 12px; margin-bottom: 14px; }
.jc-footer .logo-chip img { height: 42px; width: auto; display: block; }
.jc-footer p { font-size: 15.5px; line-height: 1.75; }
.jc-social { display: flex; gap: 10px; margin-top: 14px; }
.jc-social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--jc-navy-2); color: #fff; }
.jc-social a:hover { background: var(--jc-orange); color: #fff; }
.jc-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 16px 0; font-size: 14px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.to-top {
  position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%; background: var(--jc-orange); color: #fff;
  border: 0; box-shadow: var(--jc-shadow-lg); display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .25s ease; z-index: 1030;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }

/* ---------- Mobile drawer ---------- */
.jc-drawer { position: fixed; inset: 0; z-index: 1060; visibility: hidden; }
.jc-drawer__backdrop { position: absolute; inset: 0; background: rgba(12, 26, 44, .55); opacity: 0; transition: opacity .25s; }
.jc-drawer__panel {
  position: absolute; top: 0; left: 0; bottom: 0; width: min(86vw, 340px); background: #fff; transform: translateX(-100%);
  transition: transform .28s ease; display: flex; flex-direction: column; overflow-y: auto;
}
.jc-drawer.open { visibility: visible; }
.jc-drawer.open .jc-drawer__backdrop { opacity: 1; }
.jc-drawer.open .jc-drawer__panel { transform: none; }
.jc-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--jc-line); }
.jc-drawer__head img { height: 38px; width: auto; }
.jc-drawer__close { border: 0; background: var(--jc-bg); width: 38px; height: 38px; border-radius: 50%; font-size: 18px; }
.jc-drawer nav a { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; color: var(--jc-ink); font-weight: 700; border-bottom: 1px solid #f1f2f4; }
.jc-drawer nav a:hover { background: var(--jc-blue-soft); color: var(--jc-blue); }
.jc-drawer nav a .n { color: var(--jc-muted); font-weight: 400; font-size: 13px; }
.jc-drawer__section { padding: 14px 18px 6px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--jc-muted); font-weight: 700; }
.jc-drawer__actions { padding: 16px 18px; display: grid; gap: 10px; margin-top: auto; border-top: 1px solid var(--jc-line); }
body.no-scroll { overflow: hidden; }

/* Mobile search panel */
.jc-msearch { display: none; background: #fff; border-bottom: 1px solid var(--jc-line); padding: 10px 16px; }
.jc-msearch.open { display: block; }
.jc-msearch .jc-search { max-width: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .jc-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; }
  .story--lead .story__title { font-size: 27px; }
}
@media (max-width: 991.98px) {
  .jc-grid { grid-template-columns: minmax(0, 1fr); }
  .jc-sticky { position: static; }
  .jc-search, .jc-mast-actions .jc-btn { display: none; }
  .jc-icon-btn { display: inline-grid; }
  .jc-footer__top { grid-template-columns: 1fr 1fr; }
  .article { padding: 22px 20px 26px; }
  .article__title { font-size: 29px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .ad-slot--tall ins.adsbygoogle { min-height: 250px; }
}
@media (max-width: 767.98px) {
  body { font-size: 16.5px; }
  .jc-topbar__links .hide-sm, .jc-topbar__social { display: none; }
  .jc-logo img { height: 42px; }
  .jc-masthead .jc-container { padding-top: 10px; padding-bottom: 10px; }
  .story--lead .story__title { font-size: 23px; }
  .story--row .story__media { width: 120px; }
  .story--row .story__title { font-size: 16px; }
  .story--row .story__excerpt { display: none; }
  .story--row .story__body { padding: 10px 12px; }
  .article__title { font-size: 25px; }
  .article__dek { font-size: 17px; }
  .prose { font-size: 17.5px; line-height: 1.85; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { text-align: left; }
  .filters { grid-template-columns: 1fr; }
  .doc { padding: 24px 20px; }
  .feature-grid { grid-template-columns: 1fr; }
  .jc-footer__top { grid-template-columns: 1fr; gap: 24px; }
  .page-head h1 { font-size: 24px; }
  .auth-form { padding: 28px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .jc-ticker__track { padding-left: 0; }
}
@media print {
  .jc-topbar, .jc-masthead, .jc-nav, .jc-ticker, .jc-footer, .jc-sidebar, .ad-slot, .share, .to-top, .post-nav { display: none !important; }
  .jc-grid { display: block; }
  .article { box-shadow: none; padding: 0; }
}

/* =====================================================================
   v2 polish: brand gradients, smooth motion, image loading, mobile app bar
   ===================================================================== */
:root {
  --jc-grad: linear-gradient(100deg, #083a85 0%, #0b4fb3 40%, #0a6fd0 72%, #0e8fa3 100%);
  --jc-grad-warm: linear-gradient(135deg, #f37021 0%, #ff8f3a 100%);
  --jc-grad-night: linear-gradient(180deg, #0c1a2c 0%, #08121f 100%);
  --jc-bg: #f4f6fb;
  --jc-radius: 14px;
  --jc-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 3px 10px rgba(16, 24, 40, .06);
  --jc-shadow-lg: 0 20px 40px -18px rgba(11, 79, 179, .38);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }
::selection { background: rgba(11, 79, 179, .18); }
html { scrollbar-color: #b7c4da transparent; }
:focus-visible { outline: 3px solid rgba(11, 79, 179, .4); outline-offset: 2px; }
a, button { -webkit-tap-highlight-color: transparent; }

/* Bars */
.jc-topbar { background: linear-gradient(90deg, #0a1524 0%, #13243b 55%, #0a1524 100%); }
.jc-nav { background: var(--jc-grad); box-shadow: 0 6px 18px -12px rgba(8, 58, 133, .7); transition: box-shadow .3s var(--ease); }
.jc-nav.is-stuck { box-shadow: 0 12px 28px -14px rgba(8, 58, 133, .85); }
.jc-nav__list { scroll-snap-type: x proximity; }
.jc-nav__list li { scroll-snap-align: start; }
.jc-nav__list a { transition: background .25s var(--ease), opacity .25s; }
.jc-nav__list a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0;
  background: var(--jc-grad-warm); transform: scaleX(0); transform-origin: center; transition: transform .3s var(--ease);
}
.jc-nav__list a:hover::after, .jc-nav__list a.active::after { transform: scaleX(1); }
.jc-nav__list a.active { background: rgba(255, 255, 255, .14); }
.jc-nav__menu { transition: background .25s var(--ease); }
.jc-ticker__label { background: var(--jc-grad-warm); }
.reading-progress { background: var(--jc-grad-warm); }
.sec-head h2::before, .sec-head h3::before { background: linear-gradient(180deg, #ff8f3a, #f37021); }

/* Buttons */
.jc-btn { transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s; }
.jc-btn--primary { background: var(--jc-grad-warm); box-shadow: 0 8px 18px -10px rgba(243, 112, 33, .9); }
.jc-btn--primary:hover { background: var(--jc-grad-warm); filter: brightness(1.06); transform: translateY(-1px); }
.jc-btn--blue { background: var(--jc-grad); box-shadow: 0 8px 18px -10px rgba(11, 79, 179, .8); }
.jc-btn--blue:hover { background: var(--jc-grad); filter: brightness(1.08); transform: translateY(-1px); }
.jc-search button { background: var(--jc-grad); }
.to-top { background: var(--jc-grad-warm); }

/* Cards and images */
.story { border: 1px solid rgba(16, 24, 40, .045); transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.story:hover { transform: translateY(-4px); }
.story__media img { transition: transform .9s var(--ease), opacity .6s var(--ease), filter .6s var(--ease); }
.story:hover .story__media img { transform: scale(1.06); }
.story:not(.story--overlay) .story__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s var(--ease);
  background: linear-gradient(180deg, rgba(12, 26, 44, 0) 55%, rgba(12, 26, 44, .32) 100%);
}
.story:not(.story--overlay):hover .story__media::after { opacity: 1; }
.story__title a { background-image: linear-gradient(currentColor, currentColor); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .35s var(--ease), color .2s; }
.story__title a:hover { background-size: 100% 2px; }
.story__media.is-loading { background: linear-gradient(110deg, #e4eaf4 30%, #f5f8fd 50%, #e4eaf4 70%) 0 0 / 220% 100%; animation: jc-shimmer 1.3s linear infinite; }
img.is-loading { opacity: 0; filter: blur(10px); transform: scale(1.04); }
.prose img { transition: opacity .6s var(--ease), filter .6s var(--ease), transform .8s var(--ease); border-radius: 10px; }
@keyframes jc-shimmer { to { background-position: -220% 0; } }

/* Scroll reveal (only below-the-fold elements get .reveal, from jc.js) */
.reveal { opacity: 0; translate: 0 22px; transition: opacity .7s var(--ease), translate .7s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease); }
.reveal.in { opacity: 1; translate: 0 0; }

/* Footer */
.jc-footer { position: relative; background: radial-gradient(900px 320px at 8% 0%, rgba(11, 79, 179, .28), transparent 65%), var(--jc-grad-night); }
.jc-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, #0b4fb3, #0e8fa3 50%, #f37021); }
.jc-social a { transition: transform .2s var(--ease), background .2s; }
.jc-social a:hover { transform: translateY(-2px); background: var(--jc-grad-warm); }
.jc-drawer__panel { overscroll-behavior: contain; }

/* Mobile app bar */
.jc-appbar { display: none; }
@media (max-width: 991.98px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .jc-appbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; display: grid; grid-template-columns: repeat(5, 1fr);
    height: calc(62px + env(safe-area-inset-bottom)); padding: 0 6px env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
    border-top: 1px solid rgba(16, 24, 40, .07); box-shadow: 0 -10px 28px -18px rgba(16, 24, 40, .45); transition: transform .35s var(--ease);
  }
  .jc-appbar.is-hidden { transform: translateY(105%); }
  .jc-appbar a, .jc-appbar button {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    border: 0; background: none; padding: 0; color: #6b7588; font: 700 11.5px/1 var(--jc-font); letter-spacing: .01em;
  }
  .jc-appbar i { font-size: 19px; transition: transform .25s var(--ease), color .2s; }
  .jc-appbar a:active i, .jc-appbar button:active i { transform: scale(.86); }
  .jc-appbar .active { color: var(--jc-blue); }
  .jc-appbar .active::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 4px 4px; background: var(--jc-grad); }
  .jc-appbar__write i {
    width: 46px; height: 46px; margin-top: -22px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 18px;
    background: var(--jc-grad-warm); box-shadow: 0 10px 20px -8px rgba(243, 112, 33, .85), 0 0 0 4px #fff;
  }
  .jc-appbar__write { color: var(--jc-orange-dark) !important; }
  .to-top { bottom: calc(76px + env(safe-area-inset-bottom)); right: 14px; }
  .jc-nav__list a { height: 46px; }
}
@media (max-width: 575.98px) {
  .story__body { padding: 12px 14px 14px; }
  .story:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; translate: none; }
  .story__media.is-loading { animation: none; }
  img.is-loading { filter: none; transform: none; }
}
@media print { .jc-appbar { display: none !important; } body { padding-bottom: 0; } }

/* Cards inside blocks, lists and widgets keep their natural height
   (height:100% made the first card fill the whole block and pushed the rest out). */
.cat-block .story, .list-stack .story, .widget .story { height: auto; }
.story__ph { background: var(--jc-grad); color: rgba(255, 255, 255, .92); font-size: 20px; letter-spacing: .06em; }
