/* Tech Journal Now (Foxiz "Monster" look) on top of Magazine. Every rule is scoped to tjn- classes
   or to elements only this theme renders. */
:root {
  --tjn-ink: #282828; --tjn-meta: #666; --tjn-bg: #fff; --tjn-card: #000;
  --tjn-line: rgba(136,136,136,.15); --tjn-fill: rgba(136,136,136,.07);
  --tjn-h: "Khand", "Oswald", Arial, sans-serif; --tjn-b: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --tjn-o: "Oswald", "Khand", Arial, sans-serif;
}
html.tjn-dark { --tjn-ink: #fff; --tjn-meta: #bbb; --tjn-bg: #0e0e0e; --tjn-line: rgba(136,136,136,.28); --tjn-fill: rgba(136,136,136,.14); color-scheme: dark; }
body { background: var(--tjn-bg); color: var(--tjn-ink); font: 400 17px/1.7 var(--tjn-b); }
.site-main { padding: 0; }
.tjn-wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.tjn-t { font-family: var(--tjn-h); font-weight: 700; color: var(--tjn-ink); overflow-wrap: break-word; }
.tjn-t a { background: linear-gradient(rgba(255,31,48,.9), rgba(255,31,48,.9)) no-repeat 0 100% / 0 2px; transition: background-size .2s cubic-bezier(.32,.74,.57,1); }
.tjn-t a:hover { background-size: 100% 2px; }
.tjn-img { display: block; position: relative; overflow: hidden; border-radius: 3px; background: rgba(136,136,136,.15); }
.tjn-img img, .tjn-img .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tjn-ex { font: 400 14px/1.7 var(--tjn-b); color: var(--tjn-meta); }

/* Reading progress */
.tjn-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 200; pointer-events: none; }
.tjn-progress span { display: block; width: 0; height: 100%; background: linear-gradient(to right, #ff0084, #2c2cf8); border-radius: 0 5px 5px 0; }

/* ---------- Header (not sticky, like the original) ---------- */
.tjn-head { position: relative; z-index: 90; background: var(--header); color: #fff; }
.tjn-bar-top { position: relative; display: flex; align-items: center; height: 157px; padding-top: 10px; padding-bottom: 10px; }
.tjn-bar-l, .tjn-bar-r { flex: 1 1 0; display: flex; align-items: center; min-width: 0; }
.tjn-bar-r { justify-content: flex-end; }
.tjn-logo { flex: none; display: block; width: 506px; }
.tjn-logo img { width: 100%; height: auto; }
.tjn-logo-white, html.tjn-dark .tjn-logo-red { display: none; }
html.tjn-dark .tjn-logo-white { display: block; }
.tjn-logo .logo-text { font: 700 48px/1 var(--tjn-h); color: #fff; }
.tjn-ib { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; }
.tjn-search { position: relative; }
.tjn-bar-l .tjn-search { margin-right: 15px; }
.tjn-subbtn { display: inline-flex; align-items: center; height: 39px; padding: 0 24px; border: 1px solid #fff; border-radius: 3px; font: 700 13px/1 var(--tjn-o); color: #fff; transition: background .2s, color .2s; }
.tjn-subbtn:hover { background: #fff; color: #000; }
.tjn-hsoc { display: flex; align-items: center; }
.tjn-hsoc a { display: grid; place-items: center; height: 51px; padding: 0 5px; color: #fff; }
.tjn-hsoc a svg { width: 22px; height: 22px; }
.tjn-hsoc a:nth-child(2) svg { width: 32px; height: 32px; }
.tjn-hsoc a:hover { color: var(--accent); }
.tjn-sdrop { position: absolute; top: calc(100% + 10px); left: -10px; width: 340px; padding: 5px; border-radius: 7px; background: linear-gradient(to right, var(--header), #fff); box-shadow: 0 4px 30px #0000001f; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; z-index: 5; }
.tjn-search.open .tjn-sdrop { opacity: 1; visibility: visible; transform: none; }
.tjn-sdrop .tjn-sform { height: 41px; border-radius: 5px; background: #fff; }
.tjn-sform { display: flex; align-items: center; height: 51px; padding: 0 0 0 10px; }
.tjn-sform-ic { display: grid; place-items: center; flex: none; width: 27px; color: var(--tjn-ink); }
.tjn-sform-ic svg { width: 17px; height: 17px; }
.tjn-sform input { flex: 1; min-width: 0; height: 100%; padding: 0 10px; border: 0; background: none; color: #282828; font: 400 14px/1 var(--tjn-b); outline: 0; }
.tjn-sform input::placeholder { color: #777; }
.tjn-sform input::-webkit-search-cancel-button { display: none; }
.tjn-sform button { display: grid; place-items: center; flex: none; width: 36px; height: 36px; padding: 0; border: 0; background: none; color: #282828; cursor: pointer; }
.tjn-sdrop .tjn-sform-ic, .tjn-sdrop .tjn-sform button { color: #282828; }
/* Dark-mode switch */
.tjn-mode { position: relative; flex: none; width: 80px; height: 36px; margin-left: 0; padding: 0 0 0 20px; border: 0; background: none; cursor: pointer; }
.tjn-mode::before { content: ""; position: absolute; left: 20px; right: 0; top: 5px; height: 26px; border-radius: 34px; background: rgba(136,136,136,.15); }
.tjn-knob { position: absolute; top: 0; left: 20px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: #282828; box-shadow: 0 1px 4px #0000001f; transition: transform .25s cubic-bezier(.23,1,.32,1), background .25s; }
.tjn-knob i { display: grid; place-items: center; font-style: normal; }
.tjn-knob .i-moon, html.tjn-dark .tjn-knob .i-sun { display: none; }
html.tjn-dark .tjn-knob .i-moon { display: grid; }
html.tjn-dark .tjn-knob { transform: translateX(24px); background: var(--accent); color: #fff; }
/* Nav row */
.tjn-nav { height: 60px; }
.tjn-nav > ul { display: flex; justify-content: center; flex-wrap: wrap; height: 60px; overflow: hidden; }
.tjn-nav li { position: relative; }
.tjn-nav > ul > li > a { display: flex; align-items: center; height: 60px; padding: 0 22px; font: 700 28px/42px var(--tjn-h); letter-spacing: -.56px; color: #fff; white-space: nowrap; }
.tjn-nav > ul > li > a span { position: relative; }
.tjn-nav > ul > li > a span::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 3px; border-radius: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s cubic-bezier(.23,1,.32,1); }
.tjn-nav > ul > li > a:hover span::after, .tjn-nav > ul > li.active > a span::after, .k-home .tjn-nav > ul > li > a[href="/"] span::after { transform: none; }
.tjn-nav .sub { position: absolute; top: 100%; left: 0; min-width: 200px; padding: 10px 0; border-radius: 0 0 7px 7px; background: var(--header); box-shadow: 0 4px 30px #0000001f; opacity: 0; visibility: hidden; transition: opacity .15s; z-index: 5; }
.tjn-nav li:hover > .sub { opacity: 1; visibility: visible; }
.tjn-nav .sub a { display: block; padding: 8px 20px; font: 700 16px/1.4 var(--tjn-h); color: #fff; }
@media (max-width: 1240px) { .tjn-logo { width: 420px; } .tjn-nav > ul > li > a { padding: 0 14px; font-size: 25px; } }

/* Mobile header */
.tjn-mbar { display: none; }
@media (max-width: 1024px) {
  .tjn-bar { display: none; }
  .tjn-mbar { display: block; box-shadow: 0 4px 30px rgba(0,0,0,.07); }
  .tjn-mrow { display: flex; align-items: center; height: 42px; padding: 0 20px; }
  .tjn-burger { position: relative; flex: none; width: 24px; height: 16px; margin-right: 10px; padding: 0; border: 0; background: none; cursor: pointer; }
  .tjn-burger span { position: absolute; left: 0; height: 2px; border-radius: 2px; background: #fff; transition: transform .2s, opacity .2s, width .2s; }
  .tjn-burger span:nth-child(1) { top: 0; width: 24px; }
  .tjn-burger span:nth-child(2) { top: 7px; width: 16px; }
  .tjn-burger span:nth-child(3) { top: 14px; width: 10px; }
  html:has(#menu.open) .tjn-burger span:nth-child(1) { width: 24px; transform: translateY(7px) rotate(45deg); }
  html:has(#menu.open) .tjn-burger span:nth-child(2) { opacity: 0; }
  html:has(#menu.open) .tjn-burger span:nth-child(3) { width: 24px; transform: translateY(-7px) rotate(-45deg); }
  .tjn-mlogo { display: block; height: 42px; min-width: 0; }
  .tjn-mlogo img { width: auto; height: 100%; }
  .tjn-mtools { display: flex; align-items: center; margin-left: auto; }
  .tjn-mtools .tjn-ib { width: 29px; height: 32px; }
  .tjn-mtools .tjn-ib svg { width: 19px; height: 19px; }
  .tjn-mtools .tjn-sdrop { position: fixed; top: 85px; left: 0; right: 0; width: auto; border-radius: 0; transform: none; background: var(--header); }
  .tjn-mtools .tjn-mode { width: 61px; height: 24px; margin-left: 5px; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.12); }
  .tjn-mtools .tjn-mode::before { left: 21px; top: 5px; height: 14px; border-radius: 22px; }
  .tjn-mtools .tjn-knob { left: 21px; width: 24px; height: 24px; }
  .tjn-mtools .tjn-knob svg { width: 14px; height: 14px; }
  html.tjn-dark .tjn-mtools .tjn-knob { transform: translateX(16px); }
  .tjn-qview { height: 43px; border-top: 1px solid rgba(255,255,255,.1); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tjn-qview::-webkit-scrollbar { display: none; }
  .tjn-qview-in { display: flex; height: 100%; white-space: nowrap; }
  .tjn-qview a { display: flex; align-items: center; flex: none; padding: 0 15px; font: 700 16px/1 var(--tjn-h); letter-spacing: -.32px; color: #fff; }
}

/* Mobile menu (drops under the header, white like the original) */
.tjn-oc { top: 85px; z-index: 80; }
.tjn-oc::before { display: none; }
.tjn-oc .offcanvas-panel { inset: 0; width: auto; transform: none; opacity: 0; transition: opacity .2s; background: var(--tjn-bg); color: var(--tjn-ink); display: flex; flex-direction: column; }
.tjn-oc.open .offcanvas-panel { opacity: 1; }
.tjn-oc-sec { padding: 15px 20px 15px; }
.tjn-oc-label { display: block; margin-bottom: 10px; font: 700 14px/1.5 var(--tjn-h); color: var(--tjn-ink); }
.tjn-oc .tjn-sform { height: 40px; border: 1px solid var(--tjn-line); border-radius: 5px; padding-left: 5px; }
.tjn-oc .tjn-sform input, .tjn-oc .tjn-sform-ic, .tjn-oc .tjn-sform button { color: var(--tjn-ink); }
.tjn-oc-nav { padding: 0 20px 20px; background-image: radial-gradient(var(--tjn-line) 1px, transparent 1.5px); background-size: 6px 3px; background-repeat: repeat-x; background-position: 0 100%; }
.tjn-oc-nav a { display: flex; align-items: center; min-height: 48px; font: 700 18.7px/1.5 var(--tjn-h); letter-spacing: -.37px; color: var(--tjn-ink); }
.tjn-oc-nav ul a { min-height: 38px; padding-left: 15px; font-size: 16px; }
.tjn-oc-follow { display: flex; align-items: center; justify-content: space-between; margin: 0 20px; padding: 15px 0 20px; }
.tjn-oc-follow .tjn-oc-label { margin: 0; }
.tjn-oc-soc { display: flex; }
.tjn-oc-soc a { display: grid; place-items: center; height: 29px; padding: 0 12px; color: var(--tjn-ink); }
.tjn-oc-soc a svg { width: 17px; height: 17px; }
.tjn-oc-foot { flex: 1; padding: 15px; background: rgba(40,40,40,.125); }
.tjn-oc-foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; font: 700 15px/1.6 var(--tjn-h); }
.tjn-oc-foot p { margin-top: 10px; font: 400 11.9px/1.7 var(--tjn-b); color: var(--tjn-ink); opacity: .85; }
@media (min-width: 1025px) { .tjn-oc { display: none; } }

/* ---------- Shared pieces ---------- */
.tjn-bh { margin: 0 0 20px; }
.tjn-bh h2 { display: flex; align-items: center; font: 700 28px/1 var(--tjn-h); color: var(--tjn-ink); }
.tjn-bh h2::before { content: ""; flex: none; width: 17px; height: 17px; margin-right: 7px; border-radius: 50%; background: var(--accent); }
.tjn-aside .tjn-bh h2 { font-size: 22px; }
.tjn-aside .tjn-bh h2::before { width: 13px; height: 13px; }

.tjn-cat { position: relative; z-index: 1; display: inline-block; padding: 8px 14px; font: 700 11.5px/11.5px var(--tjn-o); letter-spacing: .7px; text-transform: uppercase; color: #fff; }
.tjn-cat::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 3px; background: var(--accent); transform: skewX(-25deg); }
.tjn-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; font: 400 13px/22px var(--tjn-b); color: var(--tjn-meta); }
.tjn-meta-in { display: flex; align-items: center; flex-wrap: wrap; min-width: 0; }
.tjn-av { flex: none; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; object-fit: cover; }
.tjn-au { display: inline-flex; align-items: center; color: var(--tjn-ink); }
.tjn-meta-in > * + .date::before, .tjn-meta-in > * + .tjn-rd::before { content: ""; display: inline-block; width: 1px; height: 6px; margin: 0 9px; vertical-align: middle; background: currentColor; opacity: .3; }
.tjn-meta .date { display: inline-flex; align-items: center; margin: 0; color: inherit; font: inherit; white-space: nowrap; }
.tjn-meta-in > * { flex: none; }
.tjn-bm { flex: none; display: grid; place-items: center; width: 20px; height: 22px; padding: 0; border: 0; background: none; color: var(--tjn-ink); cursor: pointer; }
.tjn-feat { position: relative; }
.tjn-feat .tjn-cat { position: absolute; left: -5px; bottom: 4px; }

/* Overlay card */
.tjn-ov { position: relative; overflow: hidden; border-radius: 3px; background: #191c20; color: #fff; }
.tjn-ov > .tjn-img { position: absolute; inset: 0; border-radius: 0; }
.tjn-ov-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 20px 25px; background: linear-gradient(to top, #191c20 0, rgba(25,28,32,.95) 50%, rgba(25,28,32,.5) 75%, transparent); }
.tjn-ov .tjn-cat { padding: 7px 12px; font-size: 10px; line-height: 10px; margin-bottom: 10px; margin-left: 4px; }
.tjn-ov .tjn-t { font-size: 28px; line-height: 35px; color: #fff; }
.tjn-ov .tjn-meta { margin-top: 10px; color: #ddd; }
.tjn-ov .tjn-au, .tjn-ov .tjn-bm { color: #fff; }

/* Red lead box */
.tjn-lead { display: flex; overflow: hidden; border-radius: 3px; background: var(--tjn-box); color: #fff; }
.tjn-lead-body { flex: 0 0 50%; display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 30px 30px 30px 64px; }
.tjn-lead .tjn-cat { align-self: flex-start; margin-bottom: 15px; margin-left: 4px; }
.tjn-lead .tjn-t { font-size: 52px; line-height: 1.2; color: #fff; }
.tjn-lead .tjn-meta { margin-top: 14px; color: #eee; }
.tjn-lead .tjn-au, .tjn-lead .tjn-bm { color: #fff; }
.tjn-lead-img { flex: 1; min-height: 100%; border-radius: 3px; }

/* Dark box */
.tjn-dbox { display: flex; flex-direction: column; overflow: hidden; border-radius: 3px; background: var(--tjn-card); color: #fff; }
.tjn-dbox .tjn-feat { padding-bottom: 4px; }
.tjn-dbox .tjn-feat .tjn-img { aspect-ratio: 2 / 1; border-radius: 3px 3px 0 0; }
.tjn-dbox .tjn-feat .tjn-cat { left: 20px; bottom: -2px; }
.tjn-dbox-body { flex: 1; display: flex; flex-direction: column; padding: 12px 20px 25px; }
.tjn-dbox .tjn-t { font-size: 22px; line-height: 28.6px; color: #fff; }
.tjn-dbox .tjn-meta { margin-top: auto; padding-top: 10px; color: #eee; }
.tjn-dbox .tjn-au, .tjn-dbox .tjn-bm { color: #fff; }
.tjn-dbig .tjn-dbox-body { padding: 12px 40px 40px; }
.tjn-dbig .tjn-feat .tjn-cat { left: 40px; }
.tjn-dbig .tjn-t { font-size: 40px; line-height: 48px; }
html.tjn-dark .tjn-dbox { background: #1a1a1a; }

/* Bordered card */
.tjn-bcard { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--tjn-line); border-radius: 3px; background: var(--tjn-bg); }
.tjn-bcard .tjn-feat .tjn-img { aspect-ratio: 5 / 3; border-radius: 3px 3px 0 0; }
.tjn-bcard .tjn-feat .tjn-cat { left: 14px; bottom: -7px; }
.tjn-bcard-body { flex: 1; display: flex; flex-direction: column; padding: 16px 14px 19px; }
.tjn-bcard .tjn-t { font-size: 22px; line-height: 28.6px; }
.tjn-bcard .tjn-ex { margin-top: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tjn-bcard .tjn-meta { margin-top: 12px; }

/* List row */
.tjn-lis { display: flex; flex-direction: column; gap: 40px; }
.tjn-li { display: flex; align-items: center; gap: 30px; }
.tjn-li > .tjn-feat { flex: 0 0 307px; }
.tjn-li > .tjn-feat .tjn-img { aspect-ratio: 5 / 3; }
.tjn-li-body { flex: 1; min-width: 0; }
.tjn-li .tjn-t { font-size: 28px; line-height: 35px; }
.tjn-li .tjn-ex { margin-top: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tjn-li .tjn-meta { margin-top: 15px; }
.tjn-lis-r .tjn-li { flex-direction: row-reverse; }

/* Square grid */
.tjn-g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 31px; }
.tjn-g1 .tjn-feat { padding-bottom: 4px; }
.tjn-g1 .tjn-feat .tjn-img { aspect-ratio: 1 / 1; }
.tjn-g1 .tjn-feat .tjn-cat { left: 0; bottom: -1px; padding: 6.3px 10.8px; font-size: 9px; line-height: 9px; }
.tjn-g1 .tjn-t { margin-top: 6px; font-size: 16px; line-height: 23.2px; }
.tjn-g1 .tjn-meta { margin-top: 8px; }

/* ---------- Home ---------- */
.tjn-top { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; padding-bottom: 29px; }
.tjn-ov2s { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tjn-ov2s .tjn-ov { aspect-ratio: 2 / 1; }
.tjn-top .tjn-lead { height: 372px; }
.tjn-g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tjn-g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.site-main > .tjn-grid4, .tjn-wrap > .tjn-grid4 { margin-top: 20px; margin-bottom: 20px; }
.site-main > .tjn-grid4 { max-width: 1280px; margin-left: auto; margin-right: auto; padding: 0 20px; }

.tjn-adrow { padding-top: 10px; padding-bottom: 10px; }
.tjn-ad { margin: 0 auto 20px; text-align: center; line-height: 0; }
.tjn-ad > * { margin-left: auto; margin-right: auto; }
.tjn-ad img, .tjn-ad iframe { display: inline-block; max-width: 100%; height: auto; border-radius: 5px; }
.tjn-ad-lbl { display: block; margin-bottom: 10px; font: 400 13px/1 var(--tjn-b); color: var(--tjn-meta); }

.tjn-layout { display: grid; grid-template-columns: minmax(0, 1fr) 367px; gap: 60px; align-items: start; }
.tjn-layout.no-side { grid-template-columns: minmax(0, 1fr); }
.tjn-layout.side-left { grid-template-columns: 367px minmax(0, 1fr); }
.tjn-layout.side-left > .tjn-main { order: 2; }
.tjn-layout.side-left > .tjn-aside { order: 1; }
.tjn-home-row { padding-top: 20px; padding-bottom: 30px; }
.tjn-blk { margin-bottom: 40px; }
.tjn-main > .tjn-blk:last-child { margin-bottom: 0; }
.tjn-aside .tjn-blk { margin-bottom: 20px; }
.tjn-sticky { position: sticky; top: 20px; }

/* Full-screen banner */
.tjn-banner { position: relative; display: flex; align-items: center; justify-content: center; height: 100vh; min-height: 560px; max-height: 1000px; margin: 0 0 50px; overflow: hidden; background: #0d1520; color: #fff; text-align: center; }
.tjn-banner-bg span { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; animation: tjn-slides 12s infinite; }
.tjn-banner-bg span:nth-child(1) { opacity: 1; animation-delay: 0s; }
.tjn-banner-bg span:nth-child(2) { animation-delay: 4s; }
.tjn-banner-bg span:nth-child(3) { animation-delay: 8s; }
@keyframes tjn-slides { 0% { opacity: 0; transform: scale(1); } 8% { opacity: 1; } 33% { opacity: 1; } 42% { opacity: 0; transform: scale(1.12); } 100% { opacity: 0; } }
.tjn-banner-bg span:nth-child(1) { animation-name: tjn-slides-first; }
@keyframes tjn-slides-first { 0% { opacity: 1; transform: scale(1); } 33% { opacity: 1; } 42% { opacity: 0; transform: scale(1.12); } 92% { opacity: 0; transform: scale(1); } 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tjn-banner-bg span { animation: none; } }
.tjn-banner::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.18); }
.tjn-banner-in { position: relative; z-index: 1; max-width: 1140px; padding: 10px 20px; }
.tjn-banner h2 { font: 700 72px/72px var(--tjn-h); color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.tjn-banner-btn { display: inline-block; margin-top: 20px; padding: 15px 30px; border: 3px solid #fff; border-radius: 7px; font: 700 16px/16px var(--tjn-o); color: #fff; transition: background .2s, color .2s; }
.tjn-banner-btn:hover { background: #fff; color: #000; }
.tjn-solo-h { padding-top: 0; padding-bottom: 20px; }
.tjn-solo-h .tjn-bh { margin: 0; }

/* More News feed */
.tjn-feed .tjn-dbig + .tjn-lis, .tjn-feed .tjn-lis + .tjn-dbig { margin-top: 20px; }
.tjn-more-wrap { margin-top: 40px; text-align: center; }
.tjn-more { display: inline-flex; align-items: center; height: 34px; padding: 0 40px; border-radius: 7px; background: var(--tjn-fill); font: 700 12px/1 var(--tjn-o); color: var(--tjn-ink); transition: background .2s, color .2s; }
.tjn-more:hover { background: var(--accent); color: #fff; }

/* Category rows */
.tjn-cboxes { display: flex; flex-direction: column; gap: 10px; }
.tjn-cbox { display: block; padding: 10px 15px; border-radius: 7px; background: var(--tjn-fill); }
.tjn-cbox b { display: block; font: 700 16px/23.2px var(--tjn-h); color: var(--tjn-ink); }
.tjn-cbox span { display: block; margin-top: 2px; font: 400 13px/22px var(--tjn-b); color: var(--tjn-meta); }
.tjn-cbox:hover b { color: var(--accent); }

/* ---------- Article ---------- */
.tjn-art-head { padding-top: 20px; padding-bottom: 10px; }
.tjn-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; margin-bottom: 20px; font: 400 13px/19.5px var(--tjn-b); color: var(--tjn-ink); }
.tjn-crumbs a:hover { color: var(--accent); }
.tjn-cat-big { margin-left: 5px; }
.tjn-art-title { margin: 14px 0 20px; font: 700 50px/60px var(--tjn-h); color: var(--tjn-ink); overflow-wrap: break-word; }
.tjn-art-meta { display: flex; align-items: center; justify-content: space-between; gap: 15px; flex-wrap: wrap; }
.tjn-art-by { display: flex; align-items: center; gap: 10px; font: 400 14.95px/25.4px var(--tjn-b); }
.tjn-art-av { flex: none; width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.tjn-art-au a { text-decoration: underline; text-underline-offset: 3px; }
.tjn-art-extra { display: flex; align-items: center; gap: 15px; }
.tjn-art-share { display: flex; align-items: center; gap: 7px; }
.tjn-share-lbl { display: inline-flex; align-items: center; gap: 5px; font: 400 13.6px/1 var(--tjn-b); color: var(--tjn-meta); }
.tjn-share-lbl em { font-style: normal; }
.tjn-ico { display: flex; }
.tjn-ico > * { display: grid; place-items: center; width: 30px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; }
.tjn-ico span, .tjn-rail-box span { display: none; }
.tjn-ico .fb, .tjn-rail-box .fb { color: #89abfc; } .tjn-ico .tw, .tjn-rail-box .tw { color: var(--tjn-ink); } .tjn-ico .em, .tjn-rail-box .em { color: #e8b04f; } .tjn-ico .pr, .tjn-rail-box .pr { color: #4082f1; }
.tjn-art-read { font: 400 14.95px/25px var(--tjn-b); color: var(--tjn-meta); }
.tjn-art-layout { grid-template-columns: minmax(0, 1fr) 373px; gap: 60px; padding-top: 30px; padding-bottom: 40px; }
.tjn-art-image { margin: 0 0 40px; overflow: hidden; border-radius: 5px; }
.tjn-art-image img { width: 100%; }
.tjn-art-body { display: flex; gap: 30px; align-items: flex-start; }
.tjn-rail { flex: none; width: 48px; align-self: stretch; }
.tjn-rail-in { position: sticky; top: 30px; }
.tjn-rail-lbl { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 10px; font: 400 13px/1 var(--tjn-b); text-transform: uppercase; color: var(--tjn-ink); }
.tjn-rail-lbl em { font-style: normal; }
.tjn-rail-box { display: flex; flex-direction: column; overflow: hidden; border-radius: 5px; background: var(--tjn-bg); box-shadow: 0 5px 30px #00000012; }
.tjn-rail-box > * { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; background: none; cursor: pointer; }
html.tjn-dark .tjn-rail-box { background: #1c1c1c; }
.tjn-art-text { flex: 1; min-width: 0; }
.tjn-body.post-content { font: 400 17px/1.7 var(--tjn-b); color: var(--tjn-ink); }
.tjn-body.post-content > *, .tjn-body.post-content > div > * { margin-bottom: 15px; }
.tjn-body.post-content h2 { font: 700 28px/35px var(--tjn-h); color: var(--tjn-ink); margin-top: 1em; }
.tjn-body.post-content h3 { font: 700 22px/28.6px var(--tjn-h); color: var(--tjn-ink); margin-top: 1em; }
.tjn-body.post-content h4 { font: 700 18px/1.4 var(--tjn-h); color: var(--tjn-ink); }
.tjn-body.post-content > div > h2:first-child, .tjn-body.post-content > h2:first-child { margin-top: 0; }
.tjn-body.post-content a { color: var(--tjn-ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.tjn-body.post-content a:hover { color: var(--accent); }
.tjn-body.post-content blockquote { border-left-color: var(--accent); font-family: var(--tjn-h); font-weight: 600; font-style: normal; color: var(--tjn-ink); }
.tjn-body.post-content .oe-source { margin-top: 15px; padding-top: 0; border-top: 0; font: 400 17px/1.7 var(--tjn-b); color: var(--tjn-ink); }
.tjn-body.post-content .oe-source a { color: var(--tjn-ink); font-weight: 700; letter-spacing: 0; }
.tjn-also { margin-top: 30px; }
.tjn-also .tjn-bh { margin-bottom: 15px; }
.tjn-also .tjn-bh h2 { font-size: 22px; }
.tjn-also .tjn-bh h2::before { width: 13px; height: 13px; }
.tjn-also ul { display: flex; flex-direction: column; gap: 8px; }
.tjn-also li { display: flex; gap: 10px; align-items: baseline; }
.tjn-also li svg { flex: none; position: relative; top: 1px; }
.tjn-also a { font: 700 16px/1.45 var(--tjn-h); color: var(--tjn-ink); }
.tjn-also a:hover { color: var(--accent); }
.tjn-sharebar { display: flex; align-items: center; justify-content: space-between; gap: 15px; flex-wrap: wrap; margin-top: 30px; padding: 18px 0 15px; background-image: radial-gradient(var(--tjn-line) 1px, transparent 1.5px); background-size: 6px 3px; background-repeat: repeat-x; background-position: 0 0; }
.tjn-sharebar-t { display: inline-flex; align-items: center; gap: 6px; font: 700 16px/1.45 var(--tjn-h); }
.tjn-fill { display: flex; gap: 7px; }
.tjn-fill > * { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; min-width: 42px; padding: 0 12px; border: 0; border-radius: 3px; color: #fff; font: 700 12px/1 var(--tjn-o); cursor: pointer; }
.tjn-fill .fb { background: #89abfc; padding: 0 20px; } .tjn-fill .tw { background: #000; padding: 0 20px; } .tjn-fill .em { background: #e8b04f; } .tjn-fill .pr { background: #4082f1; }
.tjn-fill > *:hover, .tjn-ico > *:hover, .tjn-rail-box > *:hover { filter: brightness(1.08); }
html.tjn-dark .tjn-fill .tw { background: #333; }

/* Pages */
.tjn-page-head { padding-top: 20px; padding-bottom: 10px; }
.tjn-page-title { font: 700 50px/60px var(--tjn-h); color: var(--tjn-ink); }
.tjn-page-wrap { max-width: 840px; margin: 0 auto; padding: 20px 20px 60px; }

/* ---------- Category / search ---------- */
.tjn-arch-head { position: relative; padding: 20px 0; }
.tjn-arch-head::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(#282828 1px, transparent 1px); background-size: 15px 15px; opacity: .15; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, #000, transparent); mask-image: linear-gradient(to bottom, #000, transparent); }
html.tjn-dark .tjn-arch-head::before { background-image: radial-gradient(#fff 1px, transparent 1px); }
.tjn-arch-head .tjn-wrap { position: relative; }
.tjn-arch-head .tjn-crumbs { margin-bottom: 5px; }
.tjn-arch-title { font: 700 40px/48px var(--tjn-h); color: var(--tjn-ink); }
.tjn-arch-desc { margin-top: 10px; font: 400 16px/1.5 var(--tjn-b); color: var(--tjn-meta); }
.tjn-arch-top { padding-top: 0; padding-bottom: 10px; }
.tjn-arch-top .tjn-lead { height: 456px; }
.tjn-arch-top + .tjn-adrow { padding-top: 10px; }
.tjn-arch { padding-top: 20px; padding-bottom: 60px; }
.tjn-arch .tjn-lis:not(.tjn-lis-r) .tjn-li { flex-direction: row; }
.tjn-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 40px; }
.tjn-pager a, .tjn-pager .dots { display: grid; place-items: center; min-width: 30px; height: 34px; padding: 0 9px; border: 1px solid var(--tjn-fill); border-radius: 7px; box-shadow: 0 1px 3px rgba(0,0,0,.06); font: 700 12px/1 var(--tjn-o); color: var(--tjn-ink); }
.tjn-pager .dots { border: 0; box-shadow: none; }
.tjn-pager a.on, .tjn-pager a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.tjn-empty { padding: 20px 0; color: var(--tjn-meta); }
.tjn-search-head { padding: 40px 0; }
.tjn-search-head-in { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.tjn-search-sub { margin-top: 6px; font: 400 16px/1.5 var(--tjn-b); color: var(--tjn-meta); }
.tjn-search-form, .tjn-404-form { width: 100%; max-width: 480px; }
.tjn-search-form .tjn-sform, .tjn-404-form .tjn-sform { height: 50px; border: 1px solid var(--tjn-line); border-radius: 7px; background: var(--tjn-bg); }
.tjn-search-form .tjn-sform *, .tjn-404-form .tjn-sform * { color: var(--tjn-ink); }
.tjn-arch-full { padding-top: 20px; padding-bottom: 60px; }
.tjn-sgrid { gap: 40px 20px; }
.tjn-404 { display: flex; flex-direction: column; align-items: center; padding-top: 40px; padding-bottom: 80px; text-align: center; }
.tjn-404-big { font: 700 180px/1 var(--tjn-h); color: var(--accent); }
.tjn-404-title { margin-top: 10px; font: 700 40px/1.2 var(--tjn-h); }
.tjn-404-desc { max-width: 620px; margin: 15px 0 25px; font: 400 16px/1.6 var(--tjn-b); color: var(--tjn-meta); }
.tjn-404-btn { display: inline-flex; align-items: center; height: 40px; margin-top: 25px; padding: 0 25px; border-radius: 3px; background: var(--accent); color: #fff; font: 700 13px/1 var(--tjn-o); }

/* ---------- Footer ---------- */
.tjn-foot { position: relative; margin-top: 130px; padding-bottom: 50px; background: var(--header); color: #fff; }
.tjn-news-wrap { position: relative; top: -80px; margin-bottom: -80px; }
.tjn-news { display: flex; align-items: center; gap: 36px; padding: 20px; border-radius: 10px; background-color: #1a0f2e; background-size: cover; background-position: center; box-shadow: 0 0 30px rgba(0,0,0,.3); color: #fff; }
.tjn-news-txt { flex: 0 0 324px; }
.tjn-news-txt h2 { font: 700 28px/35px var(--tjn-h); color: #fff; }
.tjn-news-txt p { margin-top: 10px; font: 400 15.64px/26.6px var(--tjn-b); }
.tjn-news-form { flex: 1; min-width: 0; }
.tjn-news-row { display: flex; gap: 5px; }
.tjn-news-row input { flex: 1; min-width: 0; height: 51px; padding: 0 20px; border: 0; border-radius: 3px; background: rgba(136,136,136,.25); color: #fff; font: 400 15.64px/1 var(--tjn-b); outline: 0; }
.tjn-news-row input::placeholder { color: rgba(255,255,255,.85); }
.tjn-news-row button { flex: none; height: 47px; margin: 2px 0; padding: 0 40px; border: 0; border-radius: 3px; background: var(--accent); color: #fff; font: 700 15.64px/1 var(--tjn-o); cursor: pointer; }
.tjn-news-ok { display: flex; align-items: center; gap: 7px; margin-top: 10px; font: 400 13px/1.5 var(--tjn-b); color: #fff; cursor: pointer; }
.tjn-news-ok input { width: 13px; height: 13px; margin: 0; }
.tjn-news-msg { margin-top: 8px; font: 700 13px/1.5 var(--tjn-b); color: #9effa9; }
.tjn-news-msg.err { color: #ffb3b9; }
.tjn-foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding-top: 70px; }
.tjn-foot-h { margin-bottom: 20px; font: 700 22px/22px var(--tjn-h); color: #fff; }
.tjn-foot-soc { display: flex; flex-wrap: wrap; gap: 7px; }
.tjn-foot-soc a { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: #fff; transition: transform .2s; }
.tjn-foot-soc a:hover { transform: scale(1.1); }
.tjn-foot-soc .fb { background: #3b5998; } .tjn-foot-soc .yt { background: #cd201f; } .tjn-foot-soc .st { background: #00adee; } .tjn-foot-soc .tw { background: #6441a5; } .tjn-foot-soc .un { background: #69727d; }
.tjn-foot-soc svg { width: 24px; height: 24px; }
.tjn-copy { margin-top: 20px; font: 400 13px/22.1px var(--tjn-b); color: #fff; }
.tjn-foot-brand { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.tjn-foot-logo { display: block; width: 365px; max-width: 100%; }
.tjn-foot-logo img { width: 100%; height: auto; }
.tjn-foot-pad { display: grid; place-items: center; height: 50px; color: #fff; }
.tjn-foot-links { text-align: right; }
.tjn-foot-links nav { display: flex; flex-direction: column; align-items: flex-end; }
.tjn-foot-links nav a { font: 500 16px/27.2px var(--tjn-h); color: #fff; }
.tjn-foot-links nav a:hover { color: var(--accent); }
.tjn-foot-links .tjn-foot-h { margin-bottom: 10px; }
.tjn-totop { position: fixed; right: 20px; bottom: 20px; z-index: 70; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--tjn-bg); color: var(--tjn-ink); box-shadow: 0 4px 30px #0000001f; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s, transform .2s, visibility .2s; }
.tjn-totop.show { opacity: 1; visibility: visible; transform: none; }
html.tjn-dark .tjn-totop { background: #1c1c1c; }

/* Contact form */
.tjn-body .oe-contact input, .tjn-body .oe-contact textarea { max-width: none; border: 0; border-radius: 3px; background: var(--tjn-fill); color: var(--tjn-ink); font: 400 14px/1.5 var(--tjn-b); }
.tjn-body .oe-contact textarea { border-radius: 7px; padding: 15px 20px; }
.tjn-body .oe-contact input { height: 48px; padding: 0 20px; }
.tjn-body .oe-contact label { font: 400 15px/1.7 var(--tjn-b); color: var(--tjn-ink); }
.tjn-body .oe-contact button { height: 44px; padding: 0 30px; border-radius: 3px; background: var(--accent); font: 700 14px/44px var(--tjn-o); text-transform: none; letter-spacing: 0; }

/* ---------- Tablet (Elementor stacks columns at 1024) ---------- */
@media (max-width: 1024px) {
  body { font-size: 16px; }
  .tjn-ov .tjn-t { font-size: 20px; line-height: 25px; }
  .tjn-ov-body { padding: 50px 20px 20px; }
  .tjn-top .tjn-lead { height: 239px; }
  .tjn-lead-body { padding: 20px 20px 20px 38px; }
  .tjn-lead .tjn-t { font-size: 29px; line-height: 34.8px; }
  .tjn-dbox-body { padding: 12px 15px 20px; }
  .tjn-dbox .tjn-feat .tjn-cat { left: 15px; }
  .tjn-dboxes .tjn-t { font-size: 17px; line-height: 22.1px; }
  .tjn-g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
  .tjn-bcard .tjn-t { font-size: 18px; line-height: 23.4px; }
  .tjn-li .tjn-t { font-size: 22px; line-height: 27.5px; }
  .tjn-bh h2 { font-size: 24px; }
  .tjn-aside .tjn-bh h2 { font-size: 20px; }
  .tjn-layout, .tjn-layout.side-left, .tjn-art-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .tjn-layout.side-left > .tjn-main, .tjn-layout.side-left > .tjn-aside { order: 0; }
  .tjn-aside { width: 100%; max-width: 410px; margin: 0 auto; }
  .tjn-sticky { position: static; }
  .tjn-li > .tjn-feat { flex-basis: 273px; }
  .tjn-li .tjn-t { font-size: 24px; line-height: 30px; }
  .tjn-dbig .tjn-t { font-size: 32px; line-height: 40px; }
  .tjn-dbig .tjn-dbox-body { padding: 12px 30px 30px; }
  .tjn-dbig .tjn-feat .tjn-cat { left: 30px; }
  .tjn-banner h2 { font-size: 52px; line-height: 56px; }
  .tjn-art-title, .tjn-page-title { font-size: 42px; line-height: 50px; }
  .tjn-arch-top .tjn-lead { height: 300px; }
  .tjn-news { flex-direction: column; align-items: stretch; gap: 20px; }
  .tjn-news-txt { flex: none; }
  .tjn-foot-cols { gap: 20px; }
  .tjn-foot-logo { width: 100%; }
}
/* ---------- Phones ---------- */
@media (max-width: 767px) {
  .tjn-ov2s { grid-template-columns: minmax(0, 1fr); }
  .tjn-ov2s .tjn-ov { aspect-ratio: 350 / 196; }
  .tjn-ov .tjn-t { font-size: 18px; line-height: 23.4px; }
  .tjn-ov-body { padding: 40px 15px 15px; }
  .tjn-top .tjn-lead, .tjn-arch-top .tjn-lead { flex-direction: column-reverse; height: auto; }
  .tjn-lead-img { flex: none; aspect-ratio: 5 / 3; border-radius: 3px 3px 0 0; }
  .tjn-lead-body { flex: none; padding: 20px 20px 25px; }
  .tjn-lead .tjn-cat { margin-top: -34px; }
  .tjn-lead .tjn-t { font-size: 26px; line-height: 33.8px; }
  .tjn-g3 { grid-template-columns: minmax(0, 1fr); }
  .tjn-dbox .tjn-feat .tjn-img { aspect-ratio: 350 / 196; }
  .tjn-dboxes .tjn-t { font-size: 18px; line-height: 25.2px; }
  .tjn-g4 { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .tjn-bh h2 { font-size: 21px; }
  .tjn-aside .tjn-bh h2, .tjn-also .tjn-bh h2 { font-size: 17px; }
  .tjn-bh h2::before { width: 13px; height: 13px; }
  .tjn-aside { max-width: none; }
  .tjn-li, .tjn-lis-r .tjn-li, .tjn-arch .tjn-lis:not(.tjn-lis-r) .tjn-li { flex-direction: column; align-items: stretch; gap: 12px; }
  .tjn-li > .tjn-feat { flex: none; }
  .tjn-li .tjn-t { font-size: 21px; line-height: 27.3px; }
  .tjn-li .tjn-ex { display: none; }
  .tjn-li .tjn-meta { margin-top: 10px; }
  .tjn-lis { gap: 30px; }
  .tjn-g2 { grid-template-columns: minmax(0, 1fr); gap: 25px; }
  .tjn-g1 .tjn-feat .tjn-img { aspect-ratio: 350 / 196; }
  .tjn-g1 .tjn-t { font-size: 15px; line-height: 21.75px; }
  .tjn-dbig .tjn-feat .tjn-img { aspect-ratio: 2 / 1; }
  .tjn-dbig .tjn-dbox-body { padding: 12px 20px 20px; }
  .tjn-dbig .tjn-feat .tjn-cat { left: 20px; }
  .tjn-dbig .tjn-t { font-size: 21px; line-height: 27.3px; }
  .tjn-banner { height: 633px; min-height: 0; }
  .tjn-banner h2 { font-size: 30px; line-height: 33px; }
  .tjn-art-title, .tjn-page-title { font-size: 27px; line-height: 35.1px; margin: 12px 0 15px; }
  .tjn-crumbs { font-size: 11px; line-height: 16.5px; }
  .tjn-art-head .tjn-crumbs { flex-wrap: nowrap; white-space: nowrap; overflow: hidden; margin-bottom: 15px; }
  .tjn-art-head .tjn-crumbs > span:last-child { overflow: hidden; text-overflow: ellipsis; }
  .tjn-art-meta { flex-direction: column-reverse; align-items: stretch; }
  .tjn-art-extra { justify-content: space-between; padding: 7px 15px; border-radius: 5px; background: var(--tjn-fill); }
  .tjn-art-extra .tjn-share-lbl em { display: none; }
  .tjn-art-av { width: 42px; height: 42px; }
  .tjn-art-by { font-size: 12px; line-height: 20.4px; }
  .tjn-art-read { font-size: 12px; }
  .tjn-art-layout { padding-top: 15px; }
  .tjn-art-image { margin-bottom: 30px; }
  .tjn-body.post-content { font-size: 16px; }
  .tjn-body.post-content h2 { font-size: 21px; line-height: 27.3px; }
  .tjn-rail { position: fixed; left: 50%; bottom: 0; z-index: 60; width: auto; transform: translateX(-50%); }
  .tjn-rail-in { position: static; }
  .tjn-rail-lbl { display: none; }
  .tjn-rail-box { flex-direction: row; box-shadow: 0 5px 30px rgba(0,0,0,.12); }
  .tjn-rail-box > * { width: 42px; height: 42px; }
  .tjn-sharebar { justify-content: space-between; }
  .tjn-sharebar-t { font-size: 0; gap: 0; }
  .tjn-fill .fb { padding: 0 14px; } .tjn-fill .tw { padding: 0 12px; }
  .tjn-fill .tw span { display: none; }
  .tjn-arch-title { font-size: 27px; line-height: 35px; }
  .tjn-search-head { padding: 25px 0; }
  .tjn-foot { margin-top: 90px; }
  .tjn-news-wrap { top: -60px; margin-bottom: -60px; }
  .tjn-cbox { text-align: center; }
  .tjn-news-txt h2 { font-size: 21px; line-height: 27.3px; }
  .tjn-news-txt p { font-size: 11.9px; line-height: 20.2px; }
  .tjn-news-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .tjn-news-row input { width: 100%; flex: none; height: 44px; }
  .tjn-news-row button { height: 36px; padding: 0 20px; font-size: 13px; }
  .tjn-foot-cols { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 0; }
  .tjn-foot-brand { order: -1; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.19); }
  .tjn-foot-follow { padding-top: 20px; }
  .tjn-foot-h { font-size: 17px; line-height: 17px; }
  .tjn-foot-links { padding-top: 30px; text-align: left; }
  .tjn-foot-links nav { align-items: flex-start; }
  .tjn-404-big { font-size: 120px; }
  .tjn-404-title { font-size: 28px; }
  .tjn-totop { display: none; }
  body.k-post .tjn-foot { padding-bottom: 72px; }
}
@media (max-width: 400px) {
  .tjn-mlogo { height: 38px; }
  .tjn-foot-soc a { width: 46px; height: 46px; }
}
