/* ==========================================================================
   The Tech Journal — theme
   Dark editorial layout over a fixed full-bleed background.
   Layered on top of Bootstrap (grid + utilities only are used from it).
   Everything below is namespaced .tj- so it never fights Bootstrap.
   ========================================================================== */

:root {
  /* Brand — carried over from the existing site's royal blue identity. */
  --tj-blue:        #3D6BEA;
  --tj-blue-soft:   #6E93F5;
  --tj-blue-dark:   #1E3A8F;
  --tj-navy:        #0A1230;
  /* Sits behind the fixed backdrop; matches its overall tone so a slow
     image load does not flash a different colour. */
  --tj-canvas:      #1A47AE;
  --tj-accent:      #FF5A3C;   /* decorative only - 3.1:1 on white text */
  --tj-accent-dark: #E8421F;
  /* Buttons carry real text, so they use a deeper shade: 4.69:1 with white. */
  --tj-accent-btn:  #D63A1A;
  --tj-accent-btn-h:#BA2E12;

  /* Text on the dark ground. */
  --tj-ink:         #F2F5FC;
  --tj-body:        #C3CCE4;
  --tj-muted:       #8E9BBC;

  /* Panels. Near-opaque so long-form text stays crisp over the photo,
     while the page margins let the background show through. */
  --tj-panel:       rgba(13, 18, 34, .64);
  --tj-panel-2:     rgba(16, 22, 40, .58);
  --tj-panel-3:     rgba(255, 255, 255, .05);
  --tj-line:        rgba(255, 255, 255, .12);
  --tj-line-soft:   rgba(255, 255, 255, .07);

  --tj-radius:      14px;
  --tj-radius-sm:   9px;
  --tj-shadow:      0 10px 34px rgba(0, 0, 0, .34);
  --tj-shadow-lg:   0 18px 52px rgba(0, 0, 0, .46);

  --tj-head: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --tj-text: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --tj-header-h: 74px;
  /* Full-bleed layout: the page runs edge to edge with a 7% gutter. */
  --tj-gutter:   7%;
  /* Long-form text still needs a sane measure, however wide the screen. */
  --tj-measure:  74ch;
}

/* --------------------------------------------------------------- base */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--tj-canvas);
  /* The off-canvas nav is parked 320px to the right of the viewport. A fixed
     element out there still extends the scroll area, letting the whole page be
     dragged sideways on phones - clip it at the root. */
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/*
 * The fixed backdrop.
 *
 * Painted on a fixed pseudo-element rather than `background-attachment: fixed`,
 * which iOS Safari does not support and which forces a repaint on every scroll
 * frame elsewhere. A fixed layer is composited once and simply stays put.
 */
body.tj-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--tj-text);
  font-size: 17px;
  line-height: 1.68;
  color: var(--tj-body);
  /* Must stay transparent: body's background paints after the negative
     z-index pseudo-elements below, so any colour here hides the backdrop.
     html carries the fallback colour instead. */
  background: transparent;
  -webkit-font-smoothing: antialiased;
  /* clip, not hidden: keeps position:sticky working in descendants. */
  overflow-x: clip;
}

body.tj-body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background-color: #16459C;
  background-image: url('../img/site-bg.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  /* `screen` lightens: it lifts the artwork's dark areas to the brand blue
     while leaving its highlights intact. A plain translucent overlay averages
     instead, so it can never brighten past its own colour. */
  background-blend-mode: screen;
}

/* Darkening veil so body text keeps its contrast over the photo. */
body.tj-body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg,
      rgba(10, 28, 82, .42) 0%,
      rgba(9, 25, 76, .46) 55%,
      rgba(8, 22, 70, .50) 100%);
}

@media (max-width: 900px) {
  body.tj-body::before { background-image: url('../img/site-bg-sm.webp'); }
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--tj-head);
  color: var(--tj-ink);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
}

a { color: var(--tj-blue-soft); text-decoration: none; }
a:hover { color: #9DB6F9; text-decoration: underline; }

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

/* Full-bleed container with a 7% gutter on both sides. */
.container {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  padding-inline: var(--tj-gutter);
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Honeypot — off-screen, never announced. */
.tj-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.tj-skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--tj-accent); color: #fff; padding: 12px 20px; font-weight: 600;
}
.tj-skip:focus { left: 0; }

:where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid var(--tj-accent); outline-offset: 2px; border-radius: 4px;
}

/* ------------------------------------------------------------ buttons */

.tj-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--tj-head); font-weight: 600; font-size: 15px;
  padding: 11px 22px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
  white-space: nowrap; text-decoration: none;
}
.tj-btn:hover { text-decoration: none; transform: translateY(-1px); }
.tj-btn--accent  { background: var(--tj-accent-btn); color: #fff; }
.tj-btn--accent:hover  { background: var(--tj-accent-btn-h); color: #fff; }
.tj-btn--primary { background: var(--tj-blue); color: #fff; }
.tj-btn--primary:hover { background: #2E56C8; color: #fff; }
.tj-btn--ghost {
  background: transparent; color: var(--tj-ink);
  box-shadow: inset 0 0 0 1.5px var(--tj-line);
}
.tj-btn--ghost:hover { background: var(--tj-panel-3); color: #fff; }

.tj-iconbtn {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; cursor: pointer;
  transition: background-color .15s ease;
  flex: 0 0 auto;
}
.tj-iconbtn:hover { background: rgba(255,255,255,.26); }

/* ------------------------------------------------------------- header */

.tj-header { position: sticky; top: 0; z-index: 200; }

.tj-header__bar {
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 2px 22px rgba(4, 8, 24, .4);
}
/*
 * The blur lives on a pseudo-element, not on .tj-header__bar itself.
 * `backdrop-filter` makes an element the containing block for any
 * position:fixed descendant, which was collapsing the mobile drawer to the
 * height of the header instead of letting it fill the viewport.
 */
.tj-header__bar::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(24, 44, 110, .96), rgba(14, 26, 72, .96));
  backdrop-filter: blur(14px);
}

.tj-header__row {
  display: flex; align-items: center; gap: 18px;
  min-height: var(--tj-header-h);
}

.tj-logo { flex: 0 0 auto; display: block; }
.tj-logo img { width: 172px; height: auto; display: block; }

.tj-nav { flex: 1 1 auto; min-width: 0; }
.tj-nav__extras, .tj-nav-backdrop { display: none; }
.tj-nav__list {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px;
  list-style: none; margin: 0; padding: 0;
}
.tj-nav__link {
  display: block; padding: 9px 12px; border-radius: 8px;
  font-family: var(--tj-head); font-weight: 500; font-size: 14px;
  letter-spacing: .03em; text-transform: uppercase; white-space: nowrap;
  color: rgba(255,255,255,.88);
  transition: background-color .15s ease, color .15s ease;
}
.tj-nav__link:hover, .tj-nav__link.is-active {
  background: rgba(255,255,255,.14); color: #fff; text-decoration: none;
}
.tj-nav__link.is-active { box-shadow: inset 0 -3px 0 var(--tj-accent); }

.tj-header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: 0 0 auto; }
.tj-header__subscribe { padding: 9px 20px; font-size: 14.5px; }
/*
 * .tj-iconbtn centres its contents with `place-items` on an inline-grid.
 * This button switches to inline-flex, where `justify-items` has no effect -
 * so the bars need `justify-content` or they stack from the top of the circle.
 */
.tj-burger { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.tj-burger span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.tj-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.tj-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.tj-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* header search */
.tj-search { background: rgba(6, 12, 32, .96); backdrop-filter: blur(14px); padding: 18px 0; border-bottom: 1px solid var(--tj-line); }
.tj-search__form { display: flex; gap: 10px; align-items: center; position: relative; }
.tj-search__icon { position: absolute; left: 16px; color: #6B7385; pointer-events: none; }
.tj-search__input {
  flex: 1; min-width: 0; padding: 13px 18px 13px 46px; border: 0; border-radius: 999px;
  font-size: 16px; font-family: var(--tj-text); background: #fff; color: #10172A;
}
.tj-search__form--page { max-width: 620px; margin-top: 20px; }
.tj-search__form--page .tj-search__input { padding-left: 20px; box-shadow: var(--tj-shadow); }
.tj-search__form--page .tj-search__icon { display: none; }

.tj-search__results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 50;
  background: #fff; border-radius: var(--tj-radius); box-shadow: var(--tj-shadow-lg);
  overflow: hidden; max-height: 60vh; overflow-y: auto;
}
.tj-suggest {
  display: flex; gap: 12px; align-items: center; padding: 12px 16px;
  border-bottom: 1px solid #E4E7EF; color: #10172A;
}
.tj-suggest:last-child { border-bottom: 0; }
.tj-suggest:hover, .tj-suggest.is-active { background: #F5F7FC; text-decoration: none; }
.tj-suggest img { width: 56px; height: 38px; object-fit: cover; border-radius: 6px; flex: 0 0 auto; }
.tj-suggest__title { font-family: var(--tj-head); font-weight: 600; font-size: 14.5px; line-height: 1.35; display: block; }
.tj-suggest__cat { font-size: 12px; color: #6B7385; text-transform: uppercase; letter-spacing: .06em; display: block; }

/* reading progress */
.tj-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 300; pointer-events: none; }
.tj-progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--tj-accent), #FFB020);
  transition: width .1s linear;
}

/* --------------------------------------------------------------- hero */

.tj-hero { padding: 26px 0 34px; }
.tj-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 24px; }

.tj-slider {
  position: relative; max-width: 100%; min-width: 0;
  border-radius: var(--tj-radius); overflow: hidden;
  background: #05091C; box-shadow: var(--tj-shadow);
}
.tj-slider__track {
  position: relative;
  /* width MUST be pinned: with aspect-ratio and only min-height set, the
     browser derives the width from the height and blows the layout out
     sideways on phones. */
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 340px;
  /* The slider stretches to the sidebar's height in the hero grid; fill it
     rather than leaving a gap below the photo. */
  height: 100%;
}

/*
 * Crossfade. The outgoing slide keeps painting underneath (.is-leaving) while
 * the incoming one fades in on top - otherwise `visibility` flips instantly
 * (it is not animatable) and the backdrop flashes through.
 */
.tj-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .5s ease;
}
.tj-slide.is-leaving { opacity: 1; visibility: visible; z-index: 1; transition: none; }
.tj-slide.is-active  { opacity: 1; visibility: visible; z-index: 2; }

.tj-slide__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tj-slide__body {
  position: absolute; inset: auto 0 0 0; padding: 28px 32px 58px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(6,12,32,.35) 22%,
    rgba(6,12,32,.72) 48%,
    rgba(6,12,32,.95) 100%);
  color: #fff;
}
.tj-slide__title {
  font-size: clamp(21px, 2.3vw, 33px); margin: 10px 0 8px;
  max-width: 100%; overflow-wrap: break-word; text-wrap: balance;
}
.tj-slide__title a { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.tj-slide__title a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.tj-slide__excerpt {
  margin: 0 0 10px; color: rgba(255,255,255,.86); font-size: 15.5px; max-width: 62ch;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Controls sit along the bottom edge: dots left, arrows right, so neither
   ever lands on top of the headline. */
.tj-slider__nav {
  position: absolute; bottom: 12px; z-index: 3;
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: rgba(10,18,42,.6); color: #fff; font-size: 22px; line-height: 1;
  cursor: pointer; backdrop-filter: blur(6px); transition: background-color .15s ease;
}
.tj-slider__nav:hover { background: var(--tj-accent); }
.tj-slider__nav--prev { right: 60px; }
.tj-slider__nav--next { right: 18px; }

.tj-slider__dots { position: absolute; bottom: 22px; left: 32px; z-index: 3; display: flex; gap: 7px; }
.tj-slider__dot {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.42); cursor: pointer; transition: all .2s ease;
}
.tj-slider__dot.is-active { background: var(--tj-accent); width: 26px; border-radius: 999px; }

.tj-hero__aside {
  background: var(--tj-panel-2); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--tj-radius); padding: 22px; min-width: 0;
  backdrop-filter: blur(20px) saturate(125%);
  -webkit-backdrop-filter: blur(20px) saturate(125%);
}

/* ------------------------------------------------------------ sections */

.tj-main { display: block; }
.tj-section { padding: 44px 0; }
.tj-section--flush { padding: 36px 0 0; }
.tj-section--band { position: relative; background: transparent; }
/* A hairline that fades out at both ends, so sections separate without a
   hard line cutting across the backdrop. */
.tj-section--band::before,
.tj-section--dark::before {
  content: '';
  position: absolute; inset: 0 0 auto 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg,
    transparent 0%, rgba(255,255,255,.18) 18%, rgba(255,255,255,.18) 82%, transparent 100%);
}
.tj-section--dark { position: relative; }
.tj-section--dark { background: transparent; }

.tj-section__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 12px; margin-bottom: 24px;
}
.tj-section__title {
  font-size: clamp(21px, 2.2vw, 29px); margin: 0;
  position: relative; padding-left: 16px;
  text-shadow: 0 2px 4px rgba(3,8,24,.75), 0 3px 16px rgba(3,8,24,.5);
}
.tj-section__title::before {
  content: ''; position: absolute; left: 0; top: .16em; bottom: .16em;
  width: 5px; border-radius: 3px; background: var(--band, var(--tj-accent));
}
.tj-section__title--tight { padding-left: 0; font-size: 20px; margin-bottom: 14px; }
.tj-section__title--tight::before { display: none; }
.tj-section__sub {
  margin: 6px 0 0; color: #E1E8F8; font-size: 15px; width: 100%;
  text-shadow: 0 1px 3px rgba(3,8,24,.8);
}
.tj-section__more {
  font-family: var(--tj-head); font-weight: 600; font-size: 14.5px;
  color: #CFDCFF; white-space: nowrap; text-shadow: 0 1px 3px rgba(3,8,24,.85);
}

/* -------------------------------------------------------------- layout */

.tj-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 38px; align-items: start; }
.tj-layout__main { min-width: 0; }

.tj-grid { display: grid; gap: 24px; }
.tj-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tj-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tj-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tj-grid__full { grid-column: 1 / -1; }

.tj-lead { display: grid; grid-template-columns: 1.35fr 1fr; gap: 26px; }
.tj-lead__side {
  display: flex; flex-direction: column; gap: 16px; min-width: 0;
  /* Text here sits straight on the artwork otherwise. */
  background: var(--tj-panel-2); border: 1px solid var(--tj-line);
  border-radius: var(--tj-radius); padding: 20px;
  backdrop-filter: blur(20px) saturate(125%); -webkit-backdrop-filter: blur(20px) saturate(125%);
  /* Stretch to the lead card's height and spread any slack between the items,
     so headlines of differing lengths never leave a dead block at the bottom. */
  align-self: stretch;
  justify-content: space-between;
}

.tj-stack { display: flex; flex-direction: column; gap: 14px; }

/* --------------------------------------------------------------- cards */

.tj-card {
  display: flex; flex-direction: column; gap: 14px; min-width: 0;
  background: var(--tj-panel-2); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--tj-radius); overflow: hidden;
  backdrop-filter: blur(20px) saturate(125%);
  -webkit-backdrop-filter: blur(20px) saturate(125%);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tj-card:hover { transform: translateY(-3px); box-shadow: var(--tj-shadow); border-color: rgba(110,147,245,.5); }

.tj-card__media { position: relative; display: block; overflow: hidden; background: #0B1330; }
/* One crop for the whole site: every card image is a 16:9 rectangle. */
.tj-card__media img {
  width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.tj-card:hover .tj-card__media img { transform: scale(1.04); }

.tj-card__body { padding: 0 18px 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tj-card__title { font-size: 18px; margin: 0; line-height: 1.34; overflow-wrap: break-word; }
.tj-card__title a { color: var(--tj-ink); }
.tj-card__title a:hover { color: var(--tj-blue-soft); text-decoration: none; }
.tj-card__excerpt { margin: 0; font-size: 15px; color: var(--tj-muted); }
.tj-card__meta {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  font-size: 13px; color: var(--tj-muted); margin-top: auto;
}
.tj-card__meta a { color: var(--tj-muted); font-weight: 500; }
.tj-card__meta a:hover { color: var(--tj-blue-soft); }
.tj-card__meta--light, .tj-card__meta--light a { color: rgba(255,255,255,.8); }

.tj-card__kicker {
  font-family: var(--tj-head); font-weight: 700; font-size: 11.5px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--chip, var(--tj-blue-soft));
  filter: brightness(1.35);
}
.tj-card__kicker:hover { text-decoration: none; opacity: .8; }

/* variants */
.tj-card--wide .tj-card__title { font-size: clamp(19px, 2vw, 25px); }
/*
 * feed: the workhorse listing card. Image on top at full column width, so the
 * 16:9 crop is large enough to read. Beside the text in a two-up grid the
 * image ends up ~170px wide, which is why `list` is reserved for a
 * single-column full-width context.
 */
.tj-card--feed .tj-card__title { font-size: 19px; }
.tj-card--feed .tj-card__excerpt { font-size: 14.5px; }

/* list: image beside the text. Only sensible in one full-width column. */
.tj-card--list { flex-direction: row; align-items: flex-start; }
.tj-card--list .tj-card__media { flex: 0 0 42%; min-width: 0; }
.tj-card--list .tj-card__media img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.tj-card--list .tj-card__body { padding: 18px 20px 18px 0; justify-content: flex-start; }
.tj-card--mini {
  flex-direction: row; gap: 12px; border: 0; border-radius: 0; backdrop-filter: none;
  border-bottom: 1px solid var(--tj-line-soft); padding-bottom: 14px; background: none;
}
.tj-card--mini:last-child { border-bottom: 0; padding-bottom: 0; }
.tj-card--mini:hover { transform: none; box-shadow: none; }
.tj-card--mini .tj-card__body { padding: 0; gap: 4px; }
.tj-card--mini .tj-card__title { font-size: 15.5px; line-height: 1.4; }

.tj-chip {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  background: var(--chip, var(--tj-blue)); color: #fff;
  font-family: var(--tj-head); font-weight: 700; font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase;
}
.tj-card__media .tj-chip { position: absolute; top: 12px; left: 12px; }
.tj-chip:hover { color: #fff; text-decoration: none; filter: brightness(1.12); }
.tj-chip--lg { font-size: 12px; padding: 7px 16px; }

/* ranked list (popular) */
.tj-ranked { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.tj-ranked__item { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.tj-ranked__num {
  font-family: var(--tj-head); font-weight: 800; font-size: 24px; line-height: 1;
  color: rgba(255,255,255,.22); flex: 0 0 auto; min-width: 26px;
}
.tj-ranked__title { font-size: 15.5px; line-height: 1.4; margin: 2px 0 0; overflow-wrap: break-word; }
.tj-ranked__title a { color: var(--tj-ink); }
.tj-ranked__title a:hover { color: var(--tj-blue-soft); }

/* ------------------------------------------------------------- sidebar */

.tj-sidebar { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.tj-widget {
  background: var(--tj-panel-2); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--tj-radius); padding: 22px; min-width: 0;
  backdrop-filter: blur(20px) saturate(125%);
  -webkit-backdrop-filter: blur(20px) saturate(125%);
}
.tj-widget__title {
  font-size: 17px; margin: 0 0 16px; padding-bottom: 12px;
  border-bottom: 2px solid var(--tj-line); position: relative;
}
.tj-widget__title::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 52px; height: 2px;
  background: var(--tj-accent);
}
.tj-widget__blurb { font-size: 14.5px; color: var(--tj-muted); margin: 0 0 14px; }
.tj-widget--news {
  background: linear-gradient(160deg, rgba(61,107,234,.9), rgba(10,18,48,.95));
  border-color: rgba(110,147,245,.4);
}
.tj-widget--news .tj-widget__blurb { color: rgba(255,255,255,.85); }

.tj-sticky { position: sticky; top: calc(var(--tj-header-h) + 16px); }

/* ------------------------------------------------------------ article */

.tj-article__head { padding: 30px 0 20px; }
.tj-article__title {
  font-size: clamp(27px, 3.6vw, 44px); margin: 14px 0 12px; letter-spacing: -.025em;
  overflow-wrap: break-word;
  text-shadow: 0 1px 2px rgba(3,8,24,.95), 0 2px 8px rgba(3,8,24,.9), 0 4px 24px rgba(3,8,24,.75);
}
.tj-article__standfirst {
  font-size: clamp(17px, 1.5vw, 20px); color: #EAEFFB; margin: 0 0 20px;
  max-width: var(--tj-measure); text-shadow: 0 1px 3px rgba(3,8,24,.85), 0 2px 14px rgba(3,8,24,.6);
}

.tj-crumbs { margin-bottom: 14px; }
.tj-crumbs ol {
  display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0;
  font-size: 13.5px; color: #E4EAF8; text-shadow: 0 1px 3px rgba(3,8,24,.9);
}
.tj-crumbs li + li::before { content: '/'; margin-right: 8px; color: rgba(255,255,255,.45); }
.tj-crumbs a { color: #E4EAF8; }
.tj-crumbs a:hover { color: var(--tj-blue-soft); }

.tj-byline { display: flex; align-items: center; gap: 12px; }
/* Fixed box: without flex:0 0 auto the avatar squashes into an oval. */
.tj-byline__avatar {
  width: 44px; height: 44px; flex: 0 0 44px; aspect-ratio: 1;
  border-radius: 50%; object-fit: cover; background: rgba(255,255,255,.1);
}
.tj-byline__name { font-family: var(--tj-head); font-weight: 600; color: var(--tj-ink); font-size: 15.5px; }
.tj-byline__meta {
  display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: #C4CFE9;
  text-shadow: 0 1px 3px rgba(3,8,24,.8);
}

.tj-article__hero { margin: 0 0 26px; }
.tj-article__hero img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--tj-radius); background: #0B1330;
}

/*
 * The reading column. Translucent rather than solid, so the backdrop still
 * reads through it - the blur is what keeps that legible, turning the artwork
 * behind into soft colour instead of detail competing with the text.
 */
.tj-article .tj-layout__main {
  background: var(--tj-panel);
  backdrop-filter: blur(26px) saturate(125%);
  -webkit-backdrop-filter: blur(26px) saturate(125%);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--tj-radius);
  padding: 30px 34px 34px;
  box-shadow: 0 18px 50px rgba(3, 8, 24, .30);
}

/* table of contents */
.tj-toc {
  background: rgba(255,255,255,.05); border: 1px solid var(--tj-line);
  border-left: 4px solid var(--tj-accent);
  border-radius: var(--tj-radius-sm); margin: 0 0 30px; overflow: hidden;
}
.tj-toc__toggle {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  padding: 15px 20px; background: none; border: 0; cursor: pointer;
  font-family: var(--tj-head); font-weight: 700; font-size: 16px; color: var(--tj-ink);
}
.tj-toc__toggle svg { transition: transform .2s ease; }
.tj-toc__toggle[aria-expanded="false"] svg { transform: rotate(-90deg); }
/*
 * Number the sections only. Default <ol> numbering ran through the
 * sub-headings too ("3. Key Features"), reading as if every one were a
 * section of its own.
 */
.tj-toc__list { margin: 0; padding: 0 20px 18px 22px; counter-reset: toc; list-style: none; }
.tj-toc__list[hidden] { display: none; }
.tj-toc__item { margin: 7px 0; font-size: 15px; }
.tj-toc__item--h2 { counter-increment: toc; }
.tj-toc__item--h2 > a::before {
  content: counter(toc) ". ";
  color: var(--tj-muted); font-weight: 600; font-variant-numeric: tabular-nums;
}
.tj-toc__item--h3 { padding-left: 24px; font-size: 14.5px; }
.tj-toc__item--h3 > a::before { content: '– '; color: rgba(255,255,255,.28); }
.tj-toc__item a { color: var(--tj-body); }
.tj-toc__item a:hover, .tj-toc__item.is-active a { color: var(--tj-blue-soft); font-weight: 600; }

/* prose */
/*
 * The reading measure is applied to the text elements, not to .tj-prose
 * itself. Putting it on the container forced media to opt out with
 * `max-width: none`, which let wide tables and fixed-width WordPress images
 * escape the page and cause horizontal scrolling on phones.
 */
.tj-prose { font-size: 17.5px; line-height: 1.8; color: var(--tj-body); max-width: 100%; }
.tj-prose > :where(p, ul, ol, dl, h2, h3, h4, h5, h6, blockquote) { max-width: var(--tj-measure); }
.tj-prose > p { margin: 0 0 1.25em; }
.tj-prose h2 { font-size: clamp(22px, 2.4vw, 29px); margin: 1.9em 0 .6em; scroll-margin-top: calc(var(--tj-header-h) + 20px); }
.tj-prose h3 { font-size: clamp(18px, 2vw, 22px); margin: 1.6em 0 .5em; scroll-margin-top: calc(var(--tj-header-h) + 20px); }
.tj-prose h4, .tj-prose h5, .tj-prose h6 { font-size: 17.5px; margin: 1.4em 0 .4em; scroll-margin-top: calc(var(--tj-header-h) + 20px); }
.tj-prose a { color: var(--tj-blue-soft); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.tj-prose strong { color: var(--tj-ink); }
.tj-prose ul, .tj-prose ol { margin: 0 0 1.3em; padding-left: 1.4em; }
.tj-prose li { margin: .45em 0; }
.tj-prose li::marker { color: var(--tj-blue-soft); }
/* Media runs the full column width, but never wider than it. */
.tj-prose img, .tj-prose figure, .tj-prose .tj-table-wrap, .tj-prose .tj-embed {
  margin: 1.8em 0; border-radius: var(--tj-radius-sm); max-width: 100%;
}
.tj-prose figure { width: 100%; }
/* WordPress ships inline width/height on images; the processor strips those,
   this is the safety net. */
.tj-prose img { height: auto; }
.tj-prose .tj-table-wrap { width: 100%; }
.tj-prose figure img { margin: 0; }
.tj-prose figcaption { font-size: 14px; color: var(--tj-muted); text-align: center; margin-top: 10px; }
.tj-prose blockquote {
  margin: 1.8em 0; padding: 20px 26px;
  background: rgba(255,255,255,.05); border-left: 4px solid var(--tj-accent);
  border-radius: 0 var(--tj-radius-sm) var(--tj-radius-sm) 0;
  font-size: 19px; font-style: italic; color: var(--tj-ink);
}
.tj-prose blockquote p:last-child { margin-bottom: 0; }
.tj-prose code {
  background: rgba(255,255,255,.1); padding: .15em .45em; border-radius: 4px;
  font-size: .9em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #E6EAF5;
}
.tj-prose pre { background: #05091C; color: #E6EAF5; padding: 20px; border-radius: var(--tj-radius-sm); overflow-x: auto; border: 1px solid var(--tj-line); }
.tj-prose pre code { background: none; padding: 0; color: inherit; }

.tj-table-wrap { border: 1px solid var(--tj-line); border-radius: var(--tj-radius-sm); overflow-x: auto; }
.tj-prose .tj-table { margin: 0; font-size: 15.5px; color: var(--tj-body); border-collapse: collapse; width: 100%; min-width: 520px; table-layout: auto; }
.tj-prose .tj-table th, .tj-prose .tj-table td {
  padding: 12px 14px; vertical-align: top; border-bottom: 1px solid var(--tj-line-soft);
  background: transparent; color: inherit;
}
.tj-prose .tj-table th, .tj-prose .tj-table strong { color: var(--tj-ink); }
.tj-prose .tj-table tr:first-child td { background: rgba(255,255,255,.06); font-weight: 600; }
.tj-embed { overflow: hidden; }

/* share */
.tj-share {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 14px 0; margin: 0 0 24px; border-block: 1px solid var(--tj-line);
}
.tj-share__label { font-family: var(--tj-head); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--tj-muted); margin-right: 4px; }
.tj-share__link {
  padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  background: rgba(255,255,255,.08); color: var(--tj-body); border: 0; cursor: pointer;
  font-family: var(--tj-head); transition: all .15s ease;
}
.tj-share__link:hover { background: var(--tj-blue); color: #fff; text-decoration: none; }
.tj-share__link--whatsapp:hover { background: #25D366; }
.tj-share__link--x:hover { background: #000; }
.tj-share__link--facebook:hover { background: #1877F2; }
.tj-share__link--linkedin:hover { background: #0A66C2; }
.tj-share__link--telegram:hover { background: #229ED9; }

/* tags */
.tj-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 30px 0; }
.tj-tags__label { font-family: var(--tj-head); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--tj-muted); }
.tj-tag {
  padding: 6px 13px; border-radius: 999px; font-size: 13.5px;
  background: rgba(255,255,255,.06); color: var(--tj-body); border: 1px solid var(--tj-line);
}
.tj-tag:hover { background: var(--tj-blue); color: #fff; border-color: var(--tj-blue); text-decoration: none; }

/* author box */
.tj-authorbox {
  display: flex; gap: 20px; padding: 26px; margin: 34px 0;
  background: rgba(255,255,255,.05); border: 1px solid var(--tj-line);
  border-radius: var(--tj-radius);
}
/* Fixed box, or flex squashes the avatar into an oval. */
.tj-authorbox img {
  width: 72px; height: 72px; flex: 0 0 72px; aspect-ratio: 1;
  border-radius: 50%; object-fit: cover; background: rgba(255,255,255,.1);
}
.tj-authorbox__eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--tj-muted); font-weight: 600; }
.tj-authorbox__name { font-size: 20px; margin: 4px 0 2px; }
.tj-authorbox__name a { color: var(--tj-ink); }
.tj-authorbox__role { font-size: 14px; color: var(--tj-blue-soft); font-weight: 600; margin: 0 0 8px; }
.tj-authorbox__bio { font-size: 15px; margin: 0 0 10px; }
.tj-authorbox__more { font-family: var(--tj-head); font-weight: 600; font-size: 14.5px; }

/* prev / next */
.tj-neighbours { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 34px 0; }
.tj-neighbour {
  padding: 18px 20px; border: 1px solid var(--tj-line); border-radius: var(--tj-radius);
  display: flex; flex-direction: column; gap: 6px; transition: all .18s ease; min-width: 0;
}
.tj-neighbour:hover { border-color: var(--tj-blue-soft); background: rgba(255,255,255,.05); text-decoration: none; transform: translateY(-2px); }
.tj-neighbour--next { text-align: right; }
.tj-neighbour__label { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--tj-accent); font-weight: 700; }
.tj-neighbour__title { font-family: var(--tj-head); font-weight: 600; font-size: 16px; color: var(--tj-ink); line-height: 1.35; }

/* next-article auto-load */
.tj-next { margin: 40px 0 0; }
.tj-next__block { padding: 30px 0; border-top: 4px solid var(--tj-line); margin-top: 30px; }
.tj-next__eyebrow {
  display: inline-block; font-family: var(--tj-head); font-weight: 700; font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--tj-accent); margin-bottom: 8px;
}
.tj-next__title { font-size: clamp(21px, 2.6vw, 30px); margin: 0 0 10px; }
.tj-next__title a { color: var(--tj-ink); }
.tj-next__media { display: block; margin: 18px 0; }
.tj-next__media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--tj-radius); }
.tj-next__excerpt { font-size: 17px; margin: 0 0 18px; }
.tj-next__loading { text-align: center; padding: 26px; color: var(--tj-muted); font-size: 15px; }

/* ----------------------------------------------------------- comments */

.tj-comments { margin: 44px 0 0; padding-top: 30px; border-top: 1px solid var(--tj-line); }
.tj-comments__list { list-style: none; margin: 22px 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.tj-comment { background: rgba(255,255,255,.05); border: 1px solid var(--tj-line); border-radius: var(--tj-radius-sm); padding: 18px 20px; }
.tj-comment--reply { margin-left: 32px; border-left: 3px solid var(--tj-blue); }
.tj-comment__head { display: flex; gap: 10px; align-items: baseline; font-size: 14px; margin-bottom: 6px; color: var(--tj-ink); }
.tj-comment__head time { color: var(--tj-muted); font-size: 13px; }
.tj-comment__body { margin: 0 0 8px; font-size: 15.5px; }
.tj-comment__reply { background: none; border: 0; padding: 0; color: var(--tj-blue-soft); font-weight: 600; font-size: 13.5px; cursor: pointer; }

.tj-cform { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; max-width: var(--tj-measure); }
.tj-cform__title { font-size: 20px; margin: 0; }
.tj-cform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tj-cform label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--tj-ink); font-family: var(--tj-head); }
.tj-cform label small { font-weight: 400; color: var(--tj-muted); }
.tj-cform input, .tj-cform textarea {
  padding: 12px 14px; border: 1px solid var(--tj-line); border-radius: var(--tj-radius-sm);
  font: inherit; font-weight: 400; color: var(--tj-ink); background: rgba(255,255,255,.06); width: 100%;
}
.tj-cform input::placeholder, .tj-cform textarea::placeholder { color: var(--tj-muted); }
.tj-cform input:focus, .tj-cform textarea:focus { border-color: var(--tj-blue-soft); outline: none; box-shadow: 0 0 0 3px rgba(61,107,234,.25); }
.tj-cform button { align-self: flex-start; }
.tj-cform__replying { font-size: 14px; color: var(--tj-muted); margin: 0; }
.tj-cform__replying button { background: none; border: 0; color: var(--tj-accent); font-weight: 600; cursor: pointer; }

.tj-contact { margin-top: 40px; }
.tj-contact__email { margin-top: 18px; color: var(--tj-muted); }

/* subscribe */
.tj-subscribe__row { display: flex; gap: 8px; }
.tj-subscribe__input {
  flex: 1; min-width: 0; padding: 12px 16px; border: 1px solid var(--tj-line);
  border-radius: 999px; font: inherit; background: rgba(255,255,255,.1); color: #fff;
}
.tj-subscribe__input::placeholder { color: rgba(255,255,255,.55); }
.tj-subscribe--compact .tj-subscribe__row { flex-direction: column; }
.tj-subscribe--compact .tj-btn { width: 100%; }
.tj-subscribe__note { font-size: 12.5px; margin: 8px 0 0; opacity: .72; }
.tj-formmsg { margin: 10px 0 0; padding: 10px 14px; border-radius: var(--tj-radius-sm); font-size: 14px; }
.tj-formmsg--ok  { background: rgba(16,163,110,.18); color: #7BE8BE; border: 1px solid rgba(16,163,110,.4); }
.tj-formmsg--err { background: rgba(220,53,69,.16); color: #FFAEA6; border: 1px solid rgba(220,53,69,.4); }

/* ------------------------------------------------------------ archive */

.tj-archive__head {
  padding: 36px 0 30px;
  position: relative;
}
.tj-archive__head::after {
  content: '';
  position: absolute; inset: auto 0 0 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg,
    transparent 0%, rgba(255,255,255,.18) 18%, rgba(255,255,255,.18) 82%, transparent 100%);
}
.tj-archive__eyebrow {
  display: inline-block; font-family: var(--tj-head); font-weight: 700; font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase; color: #FFFFFF;
  text-shadow: 0 1px 3px rgba(3,8,24,.9);
}
.tj-archive__title {
  font-size: clamp(27px, 3.6vw, 41px); margin: 6px 0 8px;
  text-shadow: 0 1px 2px rgba(3,8,24,.95), 0 2px 8px rgba(3,8,24,.9), 0 4px 24px rgba(3,8,24,.75);
}
.tj-archive__sub {
  color: #EAEFFB; margin: 0; max-width: var(--tj-measure); font-size: 16px;
  text-shadow: 0 1px 3px rgba(3,8,24,.85);
}

.tj-authorhero { display: flex; gap: 22px; align-items: flex-start; }
.tj-authorhero img {
  width: 96px; height: 96px; flex: 0 0 96px; aspect-ratio: 1;
  border-radius: 50%; object-fit: cover; background: rgba(255,255,255,.1);
}
.tj-authorhero__role { color: var(--tj-blue-soft); font-weight: 600; margin: 0 0 6px; }
.tj-authorhero__count { font-size: 14px; color: var(--tj-muted); margin: 10px 0 0; }

.tj-empty { padding: 40px 0; color: var(--tj-muted); }

/* pagination */
.tj-pager { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin: 40px 0 0; }
.tj-pager__link {
  min-width: 44px; height: 44px; padding: 0 14px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--tj-line); border-radius: var(--tj-radius-sm);
  font-family: var(--tj-head); font-weight: 600; font-size: 15px; color: var(--tj-body);
  background: rgba(255,255,255,.04);
  transition: all .15s ease;
}
.tj-pager__link:hover { background: var(--tj-blue); border-color: var(--tj-blue); color: #fff; text-decoration: none; }
.tj-pager__link.is-current { background: var(--tj-blue); border-color: var(--tj-blue); color: #fff; }
.tj-pager__gap { color: var(--tj-muted); padding: 0 4px; }

/* 404 */
.tj-404 { padding: 60px 0; text-align: center; }
.tj-404__code { font-family: var(--tj-head); font-weight: 800; font-size: clamp(56px, 12vw, 110px); line-height: 1; color: var(--tj-accent); }
.tj-404__title { font-size: clamp(24px, 3.4vw, 38px); margin: 8px 0; }
.tj-404__sub { color: var(--tj-muted); margin: 0 auto 10px; max-width: 52ch; }
.tj-404 .tj-search__form--page { margin-inline: auto; }

/* ----------------------------------------------------------------- ads */

/*
 * Every unit reserves its height before the creative arrives. This is the
 * single most important rule on the page for CLS - an ad that pushes content
 * down after load costs both ranking and accidental clicks.
 *
 * AdSense creatives usually assume a light page, so units sit on a light
 * plate rather than directly on the dark ground.
 */
.tj-ad {
  display: block; margin: 28px auto; text-align: center;
  max-width: 100%; overflow: hidden;
}
/* `margin: auto` beats align-items:stretch inside a flex column, which
   collapsed the sidebar unit to the width of its own label - far under the
   minimum AdSense will fill. Stretch it back. */
.tj-sidebar > .tj-ad { width: 100%; margin-inline: 0; }
.tj-ad__label {
  display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--tj-muted); margin-bottom: 6px; font-family: var(--tj-head);
}
/* The reserved box is visible whenever a unit does not fill - staging, an ad
   blocker, unsold inventory - so it is a translucent panel like the rest of
   the furniture rather than a white slab on a dark page. A served creative
   covers it completely. */
.tj-ad__body {
  display: block; min-height: 90px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--tj-radius-sm); overflow: hidden;
}
.tj-ad__body:empty { display: none; }

/* app.js sets this once a unit has come back with nothing - see watchFill().
   Hiding the wrapper takes the "Advertisement" label with it, which is the
   whole point: a label over empty space is worse than no ad at all. */
.tj-ad.is-unfilled { display: none !important; }
.tj-ad__body :where(ins, iframe, img) { max-width: 100%; }

/* Reserved heights are the whole CLS story: an ad that arrives into an
   unsized box shoves the article down and the layout-shift score with it.
   Every active placement gets the height its unit actually renders at. */
.tj-ad--header      .tj-ad__body { min-height: 90px; }
.tj-ad--post_top    .tj-ad__body,
.tj-ad--post_bottom .tj-ad__body,
.tj-ad--post_content .tj-ad__body,
.tj-ad--home_hero   .tj-ad__body,
.tj-ad--archive_top .tj-ad__body { min-height: 250px; }
.tj-ad--sidebar_top .tj-ad__body,
.tj-ad--sidebar_sticky .tj-ad__body { min-height: 250px; }
.tj-ad--home_feed    .tj-ad__body,
.tj-ad--archive_feed .tj-ad__body,
.tj-ad--next_article .tj-ad__body { min-height: 250px; }
.tj-ad--post_related .tj-ad__body,
.tj-ad--footer       .tj-ad__body { min-height: 300px; }

.tj-ad--next_article { margin-top: 0; }

/* These three render outside a .container, so they would otherwise run
   edge-to-edge and break the 7% gutter the rest of the site keeps. */
.tj-ad--header, .tj-ad--home_hero, .tj-ad--footer { padding-inline: var(--tj-gutter); }

.tj-ad--post_content { margin: 34px auto; padding: 18px 0; border-block: 1px solid var(--tj-line); }
.tj-ad--home_feed, .tj-ad--archive_feed { padding: 18px; background: rgba(255,255,255,.05); border-radius: var(--tj-radius); }

/* Anchor unit: pinned, and the body gets bottom padding so it never covers
   the last line of text. */
.tj-ad--anchor {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 190; margin: 0;
  background: rgba(8, 14, 36, .97); backdrop-filter: blur(8px);
  border-top: 1px solid var(--tj-line); padding: 6px 0 4px;
  box-shadow: 0 -4px 18px rgba(0,0,0,.4);
}
.tj-ad--anchor .tj-ad__body { min-height: 50px; }
body.has-anchor-ad { padding-bottom: 96px; }

/* -------------------------------------------------------------- footer */

.tj-footer {
  background: rgba(4, 8, 24, .8); backdrop-filter: blur(10px);
  border-top: 1px solid var(--tj-line);
  color: var(--tj-body); padding: 52px 0 24px;
}
.tj-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 34px; }
.tj-footer__col { min-width: 0; }
.tj-footer__logo { width: 178px; height: auto; margin-bottom: 14px; }
.tj-footer__blurb { font-size: 14.5px; margin: 0 0 16px; color: var(--tj-muted); }
.tj-footer__title { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 16px; }
.tj-footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tj-footer__list a { color: var(--tj-body); font-size: 14.5px; }
.tj-footer__list a:hover { color: #fff; }
.tj-footer__bottom {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--tj-line);
  font-size: 13.5px; color: var(--tj-muted);
}
.tj-footer__bottom p { margin: 0; }
.tj-footer__made { opacity: .6; }

.tj-social { display: flex; flex-wrap: wrap; gap: 8px; }
.tj-social__link {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #fff; transition: all .18s ease; flex: 0 0 auto;
}
.tj-social__link:hover { color: #fff; transform: translateY(-2px); }
.tj-social__link--facebook:hover  { background: #1877F2; }
.tj-social__link--instagram:hover { background: linear-gradient(45deg,#F58529,#DD2A7B,#8134AF); }
.tj-social__link--youtube:hover   { background: #FF0000; }
.tj-social__link--linkedin:hover  { background: #0A66C2; }
.tj-social__link--twitter:hover   { background: #000; }
.tj-social__link--pinterest:hover { background: #E60023; }

/* back to top */
.tj-totop {
  position: fixed; right: 20px; bottom: 20px; z-index: 180;
  width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: var(--tj-blue); color: #fff; cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--tj-shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .25s ease;
}
.tj-totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.tj-totop:hover { background: var(--tj-accent); }
body.has-anchor-ad .tj-totop { bottom: 108px; }

/* ---------------------------------------------------------- responsive */

/* Wide screens: 7% of a 2560px display is a lot, so cap the gutter. */
@media (min-width: 1800px) {
  :root { --tj-gutter: 9%; }
}

@media (max-width: 1400px) {
  .tj-layout    { grid-template-columns: minmax(0, 1fr) 320px; gap: 30px; }
  .tj-hero__grid { grid-template-columns: minmax(0, 1fr) 320px; }
}

@media (max-width: 1150px) {
  :root { --tj-gutter: 5%; }
  .tj-layout      { grid-template-columns: 1fr; }
  .tj-hero__grid  { grid-template-columns: 1fr; }
  .tj-sidebar     { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .tj-grid--4     { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tj-nav__link   { padding: 8px 10px; font-size: 13px; }
  .tj-logo img    { width: 150px; }
  .tj-sticky      { position: static; }
}

@media (max-width: 900px) {
  :root { --tj-gutter: 4.5%; }
  .tj-burger { display: inline-flex; }
  .tj-header__subscribe { display: none; }

  .tj-nav {
    position: fixed;
    top: var(--tj-header-h); right: 0; bottom: 0; left: auto;
    width: min(330px, 86vw);
    display: flex; flex-direction: column; gap: 18px;
    background: #0A1128;
    padding: 22px; overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(100%);
    /* visibility keeps the links out of the tab order while parked off-screen;
       the delay lets the slide-out finish before it disappears. */
    visibility: hidden;
    transition: transform .28s ease, visibility 0s linear .28s;
    z-index: 210;
    border-left: 1px solid var(--tj-line);
    box-shadow: -18px 0 46px rgba(0, 0, 0, .5);
  }
  .tj-nav.is-open { transform: none; visibility: visible; transition: transform .28s ease, visibility 0s; }
  .tj-nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .tj-nav__link { padding: 13px 16px; font-size: 15px; border-radius: var(--tj-radius-sm); }
  /* An underline reads as a mistake in a vertical list - mark the current
     item with a leading accent bar instead. */
  .tj-nav__link.is-active {
    box-shadow: inset 3px 0 0 var(--tj-accent);
    border-radius: 0 var(--tj-radius-sm) var(--tj-radius-sm) 0;
  }

  /* Dimming layer behind the drawer. */
  .tj-nav-backdrop {
    position: fixed; inset: 0; z-index: 205;
    background: rgba(4, 8, 22, .58);
    opacity: 0; visibility: hidden;
    transition: opacity .28s ease, visibility 0s linear .28s;
  }
  .tj-nav-backdrop.is-open { opacity: 1; visibility: visible; transition: opacity .28s ease, visibility 0s; }

  /* Extras that only exist inside the flyout. */
  .tj-nav__extras { display: flex; flex-direction: column; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--tj-line); }
  /* Direct child only: the search form's Go button must stay its own size,
     or it takes the full row and squashes the input to nothing. */
  .tj-nav__extras > .tj-btn { width: 100%; }
  .tj-nav__search { display: flex; gap: 8px; }
  .tj-nav__search input {
    flex: 1 1 auto; min-width: 0; width: 100%;
    padding: 11px 14px; border: 1px solid var(--tj-line);
    border-radius: 999px; font: inherit; font-size: 15px;
    background: rgba(255,255,255,.08); color: var(--tj-ink);
  }
  .tj-nav__search input::placeholder { color: var(--tj-muted); }
  .tj-nav__search .tj-btn { flex: 0 0 auto; padding-inline: 18px; }

  .tj-lead        { grid-template-columns: 1fr; }
  .tj-grid--3     { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tj-section     { padding: 34px 0; }
  .tj-article .tj-layout__main { padding: 24px 22px 28px; }
}

@media (max-width: 700px) {
  :root { --tj-gutter: 5%; }
  body.tj-body { font-size: 16px; }

  .tj-grid, .tj-grid--2, .tj-grid--3, .tj-grid--4 { grid-template-columns: 1fr; gap: 20px; }
  .tj-sidebar { grid-template-columns: 1fr; }

  .tj-card--list { flex-direction: column; }
  .tj-card--list .tj-card__media { flex: none; }
  .tj-card--list .tj-card__media img { min-height: 0; aspect-ratio: 16/9; }
  .tj-card--list .tj-card__body { padding: 0 16px 16px; }

  .tj-slider__track { min-height: 400px; }
  .tj-slide__body { padding: 20px 18px 52px; }
  .tj-slide__excerpt { display: none; }
  .tj-slider__dots { left: 18px; bottom: 16px; }
  .tj-slider__nav { bottom: 10px; }
  .tj-slider__nav--prev { right: 54px; }
  .tj-slider__nav--next { right: 14px; }

  .tj-neighbours   { grid-template-columns: 1fr; }
  .tj-neighbour--next { text-align: left; }
  .tj-cform__grid  { grid-template-columns: 1fr; }
  .tj-authorbox    { flex-direction: column; gap: 14px; }
  .tj-authorhero   { flex-direction: column; gap: 14px; }
  .tj-footer__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .tj-footer__col--brand, .tj-footer__col--news { grid-column: 1 / -1; }

  .tj-prose { font-size: 17px; }
  .tj-comment--reply { margin-left: 14px; }
  .tj-article .tj-layout__main { padding: 20px 16px 24px; border-radius: var(--tj-radius); }

  /* The share row is NOT sticky on phones: pinned under a sticky header it
     covered the first lines of the article. */
  .tj-share { gap: 6px; }
  .tj-share__label { display: none; }
  .tj-share__link { padding: 6px 11px; font-size: 12.5px; }
}

@media (max-width: 420px) {
  .tj-header__row { gap: 10px; }
  .tj-logo img { width: 128px; }
}

@media print {
  body.tj-body::before, body.tj-body::after { display: none; }
  .tj-header, .tj-footer, .tj-sidebar, .tj-ad, .tj-share, .tj-totop,
  .tj-comments, .tj-next, .tj-neighbours, .tj-progress { display: none !important; }
  .tj-layout { grid-template-columns: 1fr; }
  body.tj-body { font-size: 12pt; color: #000; background: #fff; }
  .tj-article .tj-layout__main { background: none; border: 0; padding: 0; }
  .tj-prose, .tj-article__title { color: #000; }
}
