:root {
  --tr-bg: #ffffff;
  --tr-surface: #f7f6f2;
  --tr-tint: #f0fdfa;
  --tr-tint-border: #99f6e4;
  --tr-ink: #0f172a;
  --tr-body: #334155;
  --tr-muted: #64748b;
  --tr-line: #e2e8f0;
  --tr-accent: #0f766e;
  --tr-accent-hover: #115e59;
  --tr-warm: #ea580c;
  --tr-footer-bg: #0b1120;
  --tr-footer-ink: #f8fafc;
  --tr-footer-muted: #cbd5e1;
  --tr-font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --tr-font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --tr-radius: 12px;
  --tr-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --tr-shadow-md: 0 12px 30px rgba(15, 23, 42, 0.08);
  --tr-max: 1220px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--tr-bg);
  color: var(--tr-body);
  font-family: var(--tr-font-sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--tr-accent);
  outline-offset: 2px;
}

.tr-sr-only,
.tr-skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tr-skip:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  width: auto;
  height: auto;
  padding: 10px 16px;
  background: var(--tr-ink);
  color: #ffffff;
  clip: auto;
  border-radius: 8px;
}

.tr-container {
  width: 100%;
  max-width: var(--tr-max);
  margin: 0 auto;
  padding-inline: 20px;
}

.tr-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Slim Flat Ownership Notice Strip & Calm Single-Row Sticky Header */
.tr-notice {
  background: var(--tr-surface);
  border-bottom: 1px solid var(--tr-line);
  color: var(--tr-body);
  font-size: 12.5px;
  line-height: 1.45;
}

.tr-notice[hidden] {
  display: none;
}

.tr-notice-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 7px;
}

.tr-notice-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 0;
  min-width: 0;
}

.tr-notice-link {
  font-weight: 600;
  color: var(--tr-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.tr-notice-link:hover {
  color: var(--tr-accent-hover);
}

.tr-notice-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--tr-muted);
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
}

.tr-notice-close:hover {
  background: rgba(15, 23, 42, 0.06);
  color: var(--tr-ink);
}

.tr-notice-close .tr-icon {
  width: 15px;
  height: 15px;
}

.tr-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--tr-line);
  transition: box-shadow 0.2s ease;
}

.tr-header.is-scrolled {
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.admin-bar .tr-header {
  top: 32px;
}

.tr-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
}

.tr-header-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.tr-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

@media (min-width: 960px) {
  .tr-header-inner {
    min-height: 64px;
    gap: 24px;
  }
}

/* Calm Monogram & Upright Newsreader Wordmark */
.tr-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--tr-ink);
  line-height: 1;
}

.tr-brand--light {
  color: var(--tr-footer-ink);
}

.tr-brand-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 8px;
}

.tr-brand--compact .tr-brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.tr-wordmark {
  font-family: var(--tr-font-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.tr-wordmark > span {
  color: var(--tr-accent);
}

.tr-brand--light .tr-wordmark > span {
  color: #5eead4;
}

.tr-brand--compact .tr-wordmark {
  font-size: 19px;
}

.custom-logo-link img {
  max-height: 44px;
  width: auto;
}

/* Primary Navigation */
.tr-nav {
  display: none;
  flex: 1;
  justify-content: center;
  min-width: 0;
}

.tr-nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tr-nav-list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--tr-body);
  padding-block: 20px;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.tr-nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--tr-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease;
}

.tr-nav-list a:hover,
.tr-nav-list .current-menu-item > a {
  color: var(--tr-ink);
}

.tr-nav-list a:hover::after,
.tr-nav-list .current-menu-item > a::after {
  transform: scaleX(1);
}

.tr-header-link {
  display: none;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--tr-line);
  border-radius: 8px;
  background: var(--tr-bg);
  color: var(--tr-body);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.tr-header-link:hover {
  border-color: var(--tr-accent);
  color: var(--tr-accent);
}

.tr-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: var(--tr-bg);
  border: 1px solid var(--tr-line);
  border-radius: 8px;
  color: var(--tr-body);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.tr-icon-btn:hover {
  border-color: var(--tr-accent);
  color: var(--tr-accent);
}

@media (min-width: 960px) {
  .tr-nav { display: flex; }
  .tr-header-link { display: inline-flex; }
  .tr-menu-btn { display: none; }
}

.tr-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: var(--tr-accent);
  transition: width 0.08s linear;
}

/* Mobile Drawer & Search Dialog */
.tr-drawer[hidden] {
  display: none;
}

.tr-drawer {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  justify-content: flex-end;
}

.tr-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.56);
}

.tr-drawer-panel {
  position: relative;
  z-index: 1;
  width: min(350px, 90vw);
  height: 100%;
  background: var(--tr-bg);
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: -10px 0 32px rgba(0, 0, 0, 0.18);
}

.tr-drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tr-drawer-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tr-drawer-list a {
  display: block;
  padding: 11px 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--tr-ink);
  border-bottom: 1px solid var(--tr-line);
}

.tr-drawer-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 8px;
  font-size: 14px;
  color: var(--tr-muted);
}

.tr-drawer-meta a:hover {
  color: var(--tr-accent);
}

.tr-search-dialog {
  width: min(580px, calc(100vw - 32px));
  margin: 12vh auto auto;
  padding: 0;
  border: 1px solid var(--tr-line);
  border-radius: 16px;
  background: var(--tr-bg);
  color: var(--tr-ink);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.25);
}

.tr-search-dialog::backdrop {
  background: rgba(15, 23, 42, 0.58);
}

.tr-search-dialog-inner {
  padding: 22px;
}

.tr-search-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-weight: 700;
  color: var(--tr-ink);
}

.tr-search-hint {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--tr-muted);
}

.tr-search-form {
  display: flex;
  gap: 8px;
  width: 100%;
}

.tr-search-input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--tr-line);
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  color: var(--tr-ink);
  background: var(--tr-bg);
}

.tr-search-submit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: var(--tr-accent);
  color: #ffffff;
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
}

.tr-search-submit:hover {
  background: var(--tr-accent-hover);
}


@media (max-width: 782px) {
  .admin-bar .tr-header {
    top: 46px;
  }
}

@media (max-width: 600px) {
  .admin-bar .tr-header {
    top: 0;
  }
}

/* ==========================================================================
   Design system v2.7: one overline, one panel, one card, one page head.
   ========================================================================== */
:root {
  --tr-radius-lg: 20px;
  --tr-radius-md: 14px;
  --tr-panel-shadow: 0 18px 44px rgba(15, 23, 42, 0.07);
}

.tr-narrow {
  max-width: 880px;
}

/* Overline: teal caps with a short rule, used above every heading */
.tr-overline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  color: var(--desk-color, var(--tr-accent));
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tr-overline::before {
  content: "";
  flex-shrink: 0;
  width: 28px;
  height: 2px;
  background: currentColor;
}

.tr-overline--plain::before {
  display: none;
}

.tr-overline-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--desk-soft, var(--tr-tint));
}

.tr-overline-icon .tr-icon {
  width: 16px;
  height: 16px;
}

.tr-overline:has(.tr-overline-icon)::before {
  display: none;
}

/* Desk label: small coloured caps above card titles */
.tr-desk-label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--desk-color, var(--tr-accent));
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

a.tr-desk-label:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Buttons */
.tr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.2;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.tr-btn .tr-icon {
  width: 16px;
  height: 16px;
}

.tr-btn--primary {
  background: var(--tr-accent);
  border: 1px solid var(--tr-accent);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(15, 118, 110, 0.22);
}

.tr-btn--primary:hover {
  background: var(--tr-accent-hover);
  border-color: var(--tr-accent-hover);
  transform: translateY(-1px);
}

.tr-btn--secondary {
  background: var(--tr-bg);
  border: 1px solid var(--tr-line);
  color: var(--tr-ink);
}

.tr-btn--secondary:hover {
  border-color: var(--tr-accent);
  color: var(--tr-accent);
}

.tr-actions,
.tr-relaunch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tr-arrow-link,
.tr-section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--tr-accent);
  font-size: 14px;
  font-weight: 700;
}

.tr-arrow-link .tr-icon,
.tr-section-link .tr-icon {
  width: 15px;
  height: 15px;
  transition: transform 0.15s ease;
}

.tr-arrow-link:hover .tr-icon,
.tr-section-link:hover .tr-icon {
  transform: translateX(3px);
}

.tr-text-link {
  color: var(--tr-accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tr-chip {
  display: inline-flex;
  padding: 5px 12px;
  border: 1px solid var(--tr-line);
  border-radius: 999px;
  background: var(--tr-bg);
  color: var(--tr-body);
  font-size: 13px;
  font-weight: 600;
}

.tr-chip:hover {
  border-color: var(--tr-accent);
  color: var(--tr-accent);
}

/* Meta line */
.tr-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  color: var(--tr-muted);
  font-size: 13px;
  line-height: 1.5;
}

.tr-meta a {
  color: var(--tr-ink);
  font-weight: 600;
}

.tr-meta a:hover {
  color: var(--tr-accent);
}

.tr-meta-sep {
  color: #cbd5e1;
}

.tr-author-chip {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--tr-ink);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* Panel: the white bordered card used everywhere */
.tr-panel {
  min-width: 0;
  border: 1px solid var(--tr-line);
  border-radius: var(--tr-radius-lg);
  background: var(--tr-bg);
  box-shadow: var(--tr-panel-shadow);
}

.tr-panel--narrow {
  max-width: 640px;
}

.tr-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px 8px;
}

.tr-panel-head h2 {
  margin: 0;
  color: var(--tr-ink);
  font-family: var(--tr-font-serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
}

.tr-panel-head span {
  color: var(--tr-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tr-panel-label {
  margin: 0 0 10px;
  color: var(--tr-muted);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Desk directory list */
.tr-desk-list {
  margin: 0;
  padding: 0 10px 10px;
  list-style: none;
}

.tr-desk-list a,
.tr-deskcol-head {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 14px;
  padding: 11px 12px;
  border-radius: 12px;
  transition: background 0.15s ease;
}

.tr-desk-list li + li {
  border-top: 1px solid var(--tr-line);
}

.tr-desk-list a:hover,
.tr-deskcol-head:hover {
  background: var(--desk-soft);
}

.tr-desk-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--desk-soft);
  color: var(--desk-color);
}

.tr-desk-icon .tr-icon {
  width: 19px;
  height: 19px;
}

.tr-desk-text {
  min-width: 0;
}

.tr-desk-text strong,
.tr-deskcol-head strong {
  display: block;
  color: var(--tr-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.tr-desk-text small {
  display: block;
  overflow: hidden;
  color: var(--tr-muted);
  font-size: 13px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tr-desk-go {
  color: var(--tr-muted);
  transition: color 0.15s ease, transform 0.15s ease;
}

.tr-desk-go .tr-icon {
  width: 16px;
  height: 16px;
}

.tr-desk-list a:hover .tr-desk-go,
.tr-deskcol-head:hover .tr-desk-go {
  color: var(--desk-color);
  transform: translateX(3px);
}

/* Sections */
.tr-section {
  padding-block: clamp(48px, 6vw, 72px);
}

.tr-section + .tr-section {
  padding-top: 0;
}

.tr-section--tint,
.tr-section--tint + .tr-section,
.tr-section + .tr-section--tint {
  padding-top: clamp(48px, 6vw, 72px);
}

.tr-section--tint {
  background: var(--tr-surface);
  border-block: 1px solid var(--tr-line);
}

.tr-section--line {
  border-top: 1px solid var(--tr-line);
  padding-top: clamp(48px, 6vw, 72px) !important;
}

.tr-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 28px;
}

.tr-section-head .tr-overline {
  margin-bottom: 10px;
}

.tr-section-title {
  margin: 0;
  color: var(--tr-ink);
  font-family: var(--tr-font-serif);
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

/* ==========================================================================
   Homepage hero (both states)
   ========================================================================== */
.tr-front {
  background: var(--tr-surface);
  border-bottom: 1px solid var(--tr-line);
}

.tr-front-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(44px, 6vw, 80px);
}

.tr-front-grid--posts {
  align-items: start;
}

.tr-front-copy {
  min-width: 0;
}

.tr-front-copy .tr-overline {
  margin-bottom: 22px;
}

.tr-front-title {
  margin: 0;
  max-width: 11ch;
  color: var(--tr-ink);
  font-family: var(--tr-font-serif);
  font-size: clamp(46px, 5.6vw, 76px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.tr-front-title em {
  color: var(--tr-accent);
  font-style: italic;
  font-weight: 500;
}

.tr-front-lead {
  max-width: 52ch;
  margin: 24px 0 30px;
  color: var(--tr-body);
  font-size: 18px;
  line-height: 1.6;
}

.tr-front-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tr-front-proof {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 10px 28px;
  margin: 34px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid rgba(15, 23, 42, 0.12);
  list-style: none;
}

.tr-front-proof li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--tr-ink);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}

.tr-front-proof .tr-icon {
  width: 18px;
  height: 18px;
  padding: 3px;
  border-radius: 999px;
  background: var(--tr-tint);
  color: var(--tr-accent);
}

.tr-front-desks {
  overflow: hidden;
}

.tr-front-desks-media {
  margin: 0;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: #e7edeb;
}

.tr-front-desks-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

/* Populated hero: lead story + latest list */
.tr-lead {
  min-width: 0;
}

.tr-lead-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--tr-radius-lg);
  background: #e7edeb;
  box-shadow: var(--tr-panel-shadow);
}

.tr-lead-media img,
.tr-lead-media .tr-card-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.tr-lead:hover .tr-lead-media img {
  transform: scale(1.03);
}

.tr-lead-body {
  padding-top: 24px;
}

.tr-lead-title {
  margin: 0 0 12px;
  color: var(--tr-ink);
  font-family: var(--tr-font-serif);
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.tr-lead-title a:hover,
.tr-card-title a:hover,
.tr-numbered h3 a:hover,
.tr-deskcol h3 a:hover {
  color: var(--tr-accent);
}

.tr-lead-excerpt {
  max-width: 60ch;
  margin: 0 0 16px;
  color: var(--tr-body);
  font-size: 17px;
  line-height: 1.6;
}

.tr-numbered {
  margin: 0;
  padding: 4px 22px 14px;
  list-style: none;
}

.tr-numbered li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 0;
}

.tr-numbered li + li {
  border-top: 1px solid var(--tr-line);
}

.tr-numbered-num {
  color: var(--desk-color);
  font-family: var(--tr-font-serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
}

.tr-numbered .tr-desk-label {
  margin-bottom: 4px;
}

.tr-numbered h3 {
  margin: 0 0 6px;
  color: var(--tr-ink);
  font-family: var(--tr-font-serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

/* ==========================================================================
   Cards and grids
   ========================================================================== */
.tr-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.tr-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--tr-line);
  border-radius: var(--tr-radius-md);
  background: var(--tr-bg);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.tr-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--tr-panel-shadow);
  transform: translateY(-2px);
}

.tr-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e7edeb;
}

.tr-card-media img,
.tr-card-media .tr-card-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.tr-card:hover .tr-card-media img {
  transform: scale(1.04);
}

.tr-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 22px 22px;
}

.tr-card-title {
  margin: 0 0 10px;
  color: var(--tr-ink);
  font-family: var(--tr-font-serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
}

.tr-card-excerpt {
  display: -webkit-box;
  margin: 0 0 16px;
  overflow: hidden;
  color: var(--tr-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.tr-card .tr-meta {
  margin-top: auto;
}

.tr-card-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--desk-soft, var(--tr-tint));
  color: var(--desk-color, var(--tr-accent));
}

.tr-card-placeholder-mark .tr-icon {
  width: 34px;
  height: 34px;
}

.tr-card-placeholder-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Desk columns */
.tr-deskcols {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.tr-deskcol {
  padding: 8px;
}

.tr-deskcol ul {
  margin: 0;
  padding: 0 12px 6px;
  list-style: none;
}

.tr-deskcol li {
  padding: 14px 0;
  border-top: 1px solid var(--tr-line);
}

.tr-deskcol h3 {
  margin: 0 0 6px;
  color: var(--tr-ink);
  font-family: var(--tr-font-serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

/* How we work steps */
.tr-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tr-step {
  padding: 26px;
}

.tr-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.tr-step-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--tr-tint);
  color: var(--tr-accent);
}

.tr-step-icon .tr-icon {
  width: 22px;
  height: 22px;
}

.tr-step-num {
  color: #cbd5e1;
  font-family: var(--tr-font-serif);
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
}

.tr-step h3 {
  margin: 0 0 8px;
  color: var(--tr-ink);
  font-family: var(--tr-font-serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
}

.tr-step p {
  margin: 0;
  color: var(--tr-body);
  font-size: 15px;
  line-height: 1.6;
}

/* Start here link cards */
.tr-link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.tr-link-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.tr-link-card:hover {
  border-color: var(--tr-tint-border);
  box-shadow: var(--tr-panel-shadow);
  transform: translateY(-2px);
}

.tr-link-card-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
  border-radius: 11px;
  background: var(--tr-tint);
  color: var(--tr-accent);
}

.tr-link-card strong {
  color: var(--tr-ink);
  font-family: var(--tr-font-serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

.tr-link-card-copy {
  flex: 1;
  color: var(--tr-body);
  font-size: 14.5px;
  line-height: 1.55;
}

.tr-link-card-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: var(--tr-accent);
  font-size: 14px;
  font-weight: 700;
}

.tr-link-card-go .tr-icon {
  width: 15px;
  height: 15px;
  transition: transform 0.15s ease;
}

.tr-link-card:hover .tr-link-card-go .tr-icon {
  transform: translateX(3px);
}

/* ==========================================================================
   Page head (pages, posts, archives, search, 404)
   ========================================================================== */
.tr-pagehead {
  padding-block: clamp(36px, 5vw, 60px) clamp(32px, 4vw, 48px);
  background: var(--tr-surface);
  border-bottom: 1px solid var(--tr-line);
}

.tr-pagehead--center .tr-pagehead-inner {
  text-align: center;
}

.tr-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-bottom: 22px;
  color: var(--tr-muted);
  font-size: 13.5px;
}

.tr-breadcrumb a:hover {
  color: var(--tr-accent);
}

.tr-breadcrumb-sep {
  color: #cbd5e1;
}

.tr-breadcrumb [aria-current] {
  color: var(--tr-ink);
  font-weight: 600;
}

.tr-pagehead-title {
  max-width: 22ch;
  margin: 0;
  color: var(--tr-ink);
  font-family: var(--tr-font-serif);
  font-size: clamp(36px, 4.6vw, 56px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.tr-pagehead-lead {
  max-width: 62ch;
  margin: 18px 0 0;
  color: var(--tr-body);
  font-size: 18px;
  line-height: 1.6;
}

.tr-pagehead-meta {
  margin: 16px 0 0;
  color: var(--tr-muted);
  font-size: 14px;
}

.tr-pagehead-search {
  max-width: 560px;
  margin-top: 24px;
}

.tr-pagehead .tr-actions {
  margin-top: 18px;
}

.tr-article-meta {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  font-size: 14px;
}

.tr-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 6px 12px;
  border: 1px solid var(--tr-line);
  border-radius: 999px;
  background: var(--tr-bg);
  color: var(--tr-ink);
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.tr-copy-btn .tr-icon {
  width: 14px;
  height: 14px;
}

.tr-copy-btn:hover,
.tr-copy-btn.is-copied {
  border-color: var(--tr-accent);
  color: var(--tr-accent);
}

/* ==========================================================================
   Article and page body
   ========================================================================== */
.tr-single,
.tr-page-article {
  padding-bottom: clamp(48px, 6vw, 72px);
}

.tr-article-hero {
  margin: 36px 0 0;
}

.tr-article-hero img {
  width: 100%;
  max-height: 560px;
  border-radius: var(--tr-radius-lg);
  object-fit: cover;
}

.tr-article-hero figcaption {
  margin-top: 10px;
  color: var(--tr-muted);
  font-size: 13px;
  text-align: center;
}

.tr-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
  padding-top: 44px;
}

.tr-article-main,
.tr-article-sidebar {
  min-width: 0;
}

.tr-sidebar-sticky {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 18px;
}

.tr-sidebar-sticky > .tr-panel {
  padding: 20px 22px;
  box-shadow: none;
}

.tr-toc-list,
.tr-pubnav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tr-toc-list li + li,
.tr-pubnav li + li {
  margin-top: 2px;
}

.tr-toc-list a,
.tr-pubnav a {
  display: block;
  padding: 7px 10px;
  border-left: 2px solid var(--tr-line);
  color: var(--tr-body);
  font-size: 14px;
  line-height: 1.4;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.tr-toc-list a:hover,
.tr-pubnav a:hover {
  color: var(--tr-accent);
}

.tr-toc-list a.is-active,
.tr-pubnav a.is-current {
  border-left-color: var(--tr-accent);
  background: var(--tr-tint);
  color: var(--tr-ink);
  font-weight: 700;
}

.tr-note {
  background: var(--tr-surface) !important;
}

.tr-note-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: var(--tr-bg);
  color: var(--tr-accent);
}

.tr-note p:not(.tr-panel-label) {
  margin: 0 0 12px;
  color: var(--tr-body);
  font-size: 14.5px;
  line-height: 1.55;
}

/* Prose */
.tr-prose {
  max-width: 72ch;
  color: var(--tr-body);
  font-size: 17.5px;
  line-height: 1.75;
  overflow-wrap: break-word;
}

.tr-prose > :first-child {
  margin-top: 0;
}

.tr-prose h2 {
  margin: 2em 0 0.6em;
  color: var(--tr-ink);
  font-family: var(--tr-font-serif);
  font-size: clamp(26px, 2.6vw, 31px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  scroll-margin-top: 100px;
}

.tr-prose h3 {
  margin: 1.6em 0 0.5em;
  color: var(--tr-ink);
  font-family: var(--tr-font-serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}

.tr-prose h4 {
  margin: 1.4em 0 0.4em;
  color: var(--tr-ink);
  font-size: 17px;
  font-weight: 700;
}

.tr-prose p {
  margin: 0 0 1.2em;
}

.tr-prose strong {
  color: var(--tr-ink);
}

.tr-prose ul,
.tr-prose ol {
  margin: 0 0 1.3em;
  padding-left: 1.3em;
}

.tr-prose li {
  margin-bottom: 0.45em;
  padding-left: 0.2em;
}

.tr-prose li::marker {
  color: var(--tr-accent);
  font-weight: 700;
}

.tr-prose a {
  color: var(--tr-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.tr-prose a:hover {
  color: var(--tr-accent-hover);
  text-decoration-thickness: 2px;
}

.tr-prose blockquote {
  margin: 1.8em 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--tr-accent);
  color: var(--tr-ink);
  font-family: var(--tr-font-serif);
  font-size: 21px;
  line-height: 1.5;
}

.tr-prose blockquote p:last-child {
  margin-bottom: 0;
}

.tr-prose hr {
  margin: 2.4em 0;
  border: 0;
  border-top: 1px solid var(--tr-line);
}

.tr-prose img {
  border-radius: var(--tr-radius-md);
}

.tr-prose figure {
  margin: 2em 0;
}

.tr-prose figcaption,
.tr-prose .wp-caption-text {
  margin-top: 8px;
  color: var(--tr-muted);
  font-size: 13.5px;
  text-align: center;
}

.tr-prose code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--tr-surface);
  font-size: 0.9em;
}

.tr-prose .aligncenter {
  margin-inline: auto;
}

.tr-table-wrap {
  width: 100%;
  margin: 1.8em 0;
  overflow-x: auto;
  border: 1px solid var(--tr-line);
  border-radius: var(--tr-radius-md);
}

.tr-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}

.tr-table-wrap th,
.tr-table-wrap td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--tr-line);
  text-align: left;
  vertical-align: top;
}

.tr-table-wrap th {
  background: var(--tr-surface);
  color: var(--tr-ink);
  font-weight: 700;
}

.tr-table-wrap tr:last-child td {
  border-bottom: 0;
}

.tr-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.tr-author-box {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-top: 40px;
  padding: 24px;
  box-shadow: none;
}

.tr-author-avatar {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--tr-ink);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
}

.tr-author-box .tr-overline {
  margin-bottom: 6px;
  color: var(--tr-muted);
  font-size: 11px;
}

.tr-author-name {
  margin: 0 0 6px;
  color: var(--tr-ink);
  font-family: var(--tr-font-serif);
  font-size: 22px;
  font-weight: 600;
}

.tr-author-name a:hover {
  color: var(--tr-accent);
}

.tr-author-bio {
  margin: 0;
  color: var(--tr-body);
  font-size: 15px;
  line-height: 1.6;
}

.tr-related {
  margin-top: clamp(56px, 7vw, 88px);
  padding-top: clamp(40px, 5vw, 56px);
  border-top: 1px solid var(--tr-line);
}

/* ==========================================================================
   Archives, empty states, pagination
   ========================================================================== */
.tr-empty {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.tr-empty-copy p {
  max-width: 52ch;
  margin: 14px 0 0;
  color: var(--tr-body);
  font-size: 17px;
  line-height: 1.6;
}

.tr-search-inline {
  max-width: 480px;
  margin-top: 24px;
}

.tr-pagination {
  margin-top: 44px;
}

.tr-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.tr-pagination .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--tr-line);
  border-radius: 10px;
  background: var(--tr-bg);
  color: var(--tr-ink);
  font-size: 14px;
  font-weight: 700;
}

.tr-pagination .page-numbers:hover {
  border-color: var(--tr-accent);
  color: var(--tr-accent);
}

.tr-pagination .page-numbers.current {
  border-color: var(--tr-accent);
  background: var(--tr-accent);
  color: #ffffff;
}

.tr-pagination .page-numbers.dots {
  border: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.tr-footer {
  padding-block: 64px 28px;
  background: var(--tr-footer-bg);
  color: var(--tr-footer-muted);
}

.tr-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}

.tr-footer-about {
  max-width: 42ch;
  margin: 16px 0 12px;
  font-size: 14.5px;
  line-height: 1.65;
}

.tr-footer-indep {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #5eead4;
  font-size: 13.5px;
  font-weight: 700;
}

.tr-footer-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 16px;
  color: var(--tr-footer-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tr-footer-heading::before {
  content: "";
  width: 18px;
  height: 2px;
  background: #2dd4bf;
}

.tr-footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  font-size: 14.5px;
  list-style: none;
}

.tr-footer-links a:hover {
  color: #ffffff;
}

.tr-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13.5px;
}

.tr-footer-bottom p {
  margin: 0;
}

.tr-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: transparent;
  color: var(--tr-footer-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.tr-top-btn .tr-icon {
  width: 15px;
  height: 15px;
}

.tr-top-btn:hover {
  border-color: #5eead4;
  color: #5eead4;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .tr-front-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tr-front-title {
    max-width: 14ch;
  }

  .tr-front-desks,
  .tr-front-side {
    max-width: 640px;
  }

  .tr-article-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .tr-sidebar-sticky {
    position: static;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }

  .tr-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tr-empty {
    grid-template-columns: minmax(0, 1fr);
  }

  .tr-empty .tr-panel {
    max-width: 560px;
  }
}

@media (max-width: 900px) {
  .tr-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tr-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .tr-footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tr-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .tr-front-grid {
    gap: 32px;
    padding-block: 32px 36px;
  }

  .tr-front-copy .tr-overline {
    margin-bottom: 14px;
  }

  .tr-overline {
    gap: 10px;
    font-size: 11px;
  }

  .tr-overline::before {
    width: 22px;
  }

  .tr-front-title {
    font-size: clamp(38px, 11vw, 46px);
  }

  .tr-front-lead {
    margin: 16px 0 22px;
    font-size: 16px;
  }

  .tr-front-actions .tr-btn,
  .tr-pagehead .tr-actions .tr-btn {
    flex: 1 1 100%;
  }

  .tr-front-proof {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 26px;
    padding-top: 18px;
  }

  .tr-front-proof li {
    white-space: normal;
  }

  .tr-panel {
    border-radius: 16px;
  }

  .tr-panel-head {
    padding: 16px 16px 6px;
  }

  .tr-desk-list {
    padding: 0 6px 6px;
  }

  .tr-desk-list a {
    gap: 12px;
    padding: 10px;
  }

  .tr-desk-text small {
    white-space: normal;
  }

  .tr-numbered {
    padding: 0 16px 8px;
  }

  .tr-card-grid,
  .tr-link-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .tr-section-head {
    margin-bottom: 22px;
  }

  .tr-pagehead-title {
    font-size: clamp(32px, 9vw, 40px);
  }

  .tr-pagehead-lead {
    font-size: 16px;
  }

  .tr-breadcrumb {
    margin-bottom: 16px;
    font-size: 13px;
  }

  .tr-article-layout {
    padding-top: 32px;
  }

  .tr-article-hero {
    margin-top: 24px;
  }

  .tr-copy-btn {
    margin-left: 0;
  }

  .tr-prose {
    font-size: 16.5px;
  }

  .tr-author-box {
    flex-direction: column;
    gap: 12px;
    padding: 20px;
  }

  .tr-footer {
    padding-top: 48px;
  }

  .tr-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
