/* A quieter CTI layer using the existing Amuneth navy and blue palette. */
.cti-home {
  --cti-line: rgba(136, 183, 240, .16);
  --cti-line-strong: rgba(145, 198, 255, .28);
  --cti-surface: #0a1528;
  --cti-text: #f0f6ff;
  --cti-muted: #a5b9d2;
}

.cti-home .cti-top-layout {
  width: min(1380px, calc(100% - 48px));
  grid-template-columns: 228px minmax(0, 1fr);
  gap: 28px;
}

.cti-home .cti-sidebar {
  position: sticky;
  top: 22px;
  padding: 20px 12px 14px;
  border: 1px solid var(--cti-line);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(14, 32, 58, .98), rgba(6, 16, 32, .99) 72%);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .18);
}

.cti-home .cti-sidebar-brand {
  gap: 11px;
  padding: 2px 12px 21px;
  border-bottom: 1px solid rgba(145, 198, 255, .12);
}

.cti-home .cti-sidebar-brand-mark {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid rgba(138, 208, 255, .36);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(23, 101, 223, .28), rgba(20, 183, 210, .08));
  color: #a7dfff;
  font-size: 21px;
  line-height: 1;
}

.cti-home .cti-sidebar-brand-copy {
  display: grid;
  gap: 2px;
}

.cti-home .cti-sidebar-brand strong {
  font-size: 17px;
  line-height: 1.05;
  letter-spacing: -.025em;
}

.cti-home .cti-sidebar-brand small {
  color: #82bde8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .23em;
}

.cti-home .cti-sidebar-nav {
  gap: 5px;
  margin-top: 15px;
}

.cti-home .cti-sidebar-link {
  gap: 11px;
  min-height: 47px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #aebfd7;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.cti-home .cti-sidebar-link:hover {
  border-color: rgba(139, 190, 255, .16);
  background: rgba(89, 145, 220, .08);
  color: #f3f8ff;
}

.cti-home .cti-sidebar-link.is-active {
  border-color: rgba(98, 161, 248, .33);
  background: linear-gradient(115deg, rgba(30, 93, 194, .34), rgba(35, 114, 177, .10));
  box-shadow: inset 2px 0 0 #78baff;
  color: #fff;
}

.cti-home .cti-sidebar-link-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 0;
  background: none;
  color: #8fb9e4;
}

.cti-home .cti-sidebar-link-icon svg {
  width: 19px;
  height: 19px;
}

.cti-home .cti-sidebar-link.is-active .cti-sidebar-link-icon { color: #bfe6ff; }
.cti-home .cti-sidebar-link-arrow { margin-left: auto; color: #6687ad; font-size: 19px; font-weight: 400; }
.cti-home .cti-sidebar-link.is-active .cti-sidebar-link-arrow { color: #bfe6ff; }
.cti-home .cti-sidebar-link:focus-visible,
.cti-home .cti-panel-cta:focus-visible,
.cti-home .cti-report-link:focus-visible { outline: 2px solid #8bcfff; outline-offset: 3px; }

.cti-home .cti-stage {
  padding: 24px;
  border: 1px solid var(--cti-line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(8, 20, 39, .96), rgba(5, 14, 29, .98));
  box-shadow: 0 22px 56px rgba(0, 0, 0, .17);
}

.cti-home .cti-stage-topbar {
  min-height: 72px;
  margin: 0 0 22px;
  padding: 0 2px 17px;
  border-bottom: 1px solid var(--cti-line);
}

.cti-home .cti-stage-heading { display: grid; gap: 6px; }
.cti-home .cti-stage-eyebrow {
  color: #82bde8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.cti-home .cti-stage-crumb { color: var(--cti-text); font-size: clamp(21px, 2vw, 27px); font-weight: 700; letter-spacing: -.035em; line-height: 1.15; }
.cti-home .cti-stage-search { min-height: 39px; min-width: 230px; border-color: var(--cti-line); border-radius: 10px; background: rgba(255, 255, 255, .025); }
.cti-home .cti-stage-search svg { width: 16px; height: 16px; flex: 0 0 auto; }
.cti-home .cti-stage-search:focus-within { border-color: #76b9f1; box-shadow: 0 0 0 3px rgba(81, 153, 242, .11); }

.cti-home .cti-stage-panel,
.cti-home .cti-inline-book-banner,
.cti-home .cti-report-feed-card {
  border: 1px solid var(--cti-line);
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(13, 30, 53, .77), rgba(7, 18, 34, .88));
  box-shadow: none;
}

.cti-home .cti-stage-panel { margin-top: 18px; padding: 22px; }
.cti-home .cti-stage > .cti-stage-panel:first-of-type { margin-top: 0; }
.cti-home .cti-panel-head { align-items: center; margin-bottom: 19px; }
.cti-home .cti-panel-title-row h2 { font-size: clamp(23px, 2.5vw, 31px); line-height: 1.15; letter-spacing: -.04em; }
.cti-home .cti-panel-head p { max-width: 62ch; line-height: 1.55; }
.cti-home .cti-panel-icon { width: 23px; height: 23px; border-radius: 7px; }
.cti-home .cti-panel-cta { min-height: 38px; padding: 0 14px; border-color: var(--cti-line-strong); border-radius: 10px; color: #d8eaff; font-size: 12px; font-weight: 700; transition: background .18s, border-color .18s, transform .18s; }
.cti-home .cti-panel-cta:hover { transform: translateY(-1px); border-color: #73b5f3; background: rgba(49, 113, 200, .17); }

.cti-home .cti-news-card-grid,
.cti-home .cti-report-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cti-home .cti-news-card,
.cti-home .cti-report-feature-card {
  min-width: 0;
  border: 1px solid rgba(137, 185, 244, .18);
  border-radius: 15px;
  background: rgba(8, 21, 39, .88);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.cti-home .cti-news-card:hover,
.cti-home .cti-report-feature-card:hover { transform: translateY(-2px); border-color: rgba(143, 204, 255, .38); box-shadow: 0 14px 26px rgba(0, 0, 0, .16); }
.cti-home .cti-news-card-media { height: 150px; }
.cti-home .cti-news-card-body,
.cti-home .cti-report-feature-body { gap: 8px; padding: 16px 18px 18px; }
.cti-home .cti-news-card h3,
.cti-home .cti-report-feature-body h3 { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.28; letter-spacing: -.02em; }
.cti-home .cti-news-card p,
.cti-home .cti-report-feature-body p { color: var(--cti-muted); font-size: 13px; line-height: 1.58; }
.cti-home .cti-news-card-meta,
.cti-home .cti-news-card-date,
.cti-home .cti-report-feature-meta { font-size: 11px; }
.cti-home .cti-report-link { color: #96d1ff; font-size: 12px; font-weight: 700; letter-spacing: .035em; }
.cti-home .cti-report-link:hover { color: #d3edff; }

.cti-home .cti-book-interlude,
.cti-home .cti-reports-band { width: 100%; margin: 18px 0 0; }
.cti-home .cti-inline-book-banner { grid-template-columns: minmax(0, 1fr) 76px auto; gap: 16px; padding: 17px 20px; }
.cti-home .cti-inline-book-banner-copy h3 { font-size: 19px; line-height: 1.2; }
.cti-home .cti-inline-book-banner-copy p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 12px; }
.cti-home .cti-inline-book-banner-cover { padding: 7px; border-radius: 10px; }
.cti-home .cti-inline-book-banner-cover img { max-width: 48px; }
.cti-home .cti-report-subhead { margin: 21px 0 12px; color: #c3d8ee; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.cti-home .cti-report-feature-card { display: grid; grid-template-columns: 34% minmax(0, 1fr); min-height: 176px; }
.cti-home .cti-report-feature-media { height: 100%; min-height: 176px; border-right: 1px solid var(--cti-line); border-bottom: 0; }
.cti-home .cti-report-feature-body { justify-content: center; }
.cti-home .cti-report-feature-body p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.cti-home .cti-report-table { border-color: var(--cti-line); border-radius: 12px; }
.cti-home .cti-report-table-head { background: rgba(110, 161, 221, .055); font-weight: 700; }
.cti-home .cti-report-table-row { font-size: 13px; line-height: 1.5; }
.cti-home .cti-report-table-row:nth-child(even) { background: rgba(255, 255, 255, .018); }
.cti-home .cti-panel-footer-link { justify-content: flex-end; padding-top: 15px; }
.cti-home .cti-panel-footer-link a { color: #93ceff; font-size: 12px; }
.cti-home .cti-topic-card-grid { gap: 12px; }
.cti-home .cti-topic-card,
.cti-home .cti-topic-matrix-row { padding: 16px; border-color: var(--cti-line); border-radius: 13px; background: rgba(8, 22, 41, .72); }
.cti-home .cti-topic-card h3 { font-size: 19px; line-height: 1.28; }
.cti-home .cti-topic-card p,
.cti-home .cti-topic-matrix-row p { color: var(--cti-muted); font-size: 13px; line-height: 1.6; }
.cti-home .cti-topic-metric { border-color: var(--cti-line); border-radius: 13px; background: rgba(8, 22, 41, .72); }

.cti-home [hidden] { display: none !important; }

/* The report library has page-local legacy styles, so its refinements are scoped here. */
.cti-home .cti-report-feed-card { padding: 22px; }
.cti-home .cti-report-feed-head h2 { font-size: clamp(23px, 2.5vw, 31px); letter-spacing: -.035em; }
.cti-home .cti-report-carousel { margin: 14px 0 22px; border-color: var(--cti-line); border-radius: 16px; background: #0a192e; }
.cti-home .cti-report-carousel-slide { grid-template-columns: minmax(160px, 240px) minmax(0, 1fr); gap: 22px; padding: 18px; }
.cti-home .cti-report-carousel-media { min-height: 220px; border-radius: 12px; }
.cti-home .cti-report-carousel-body h3 { font-size: clamp(22px, 2.7vw, 31px); line-height: 1.15; }
.cti-home .cti-report-carousel-body p { font-size: 14px; line-height: 1.58; }
.cti-home .cti-report-feed-list { gap: 8px; }
.cti-home .cti-report-feed-row { grid-template-columns: 80px 52px minmax(0, 1fr) auto; gap: 14px; padding: 13px 15px; border: 1px solid var(--cti-line); border-radius: 13px; background: rgba(9, 24, 43, .75); box-shadow: none; }
.cti-home .cti-report-feed-row.is-case,
.cti-home .cti-report-feed-row.is-trend { background: rgba(9, 24, 43, .75); box-shadow: none; }
.cti-home .cti-report-feed-row:hover { background: rgba(18, 43, 70, .86); border-color: var(--cti-line-strong); }
.cti-home .cti-report-date { color: #91b8da; font-size: 12px; }
.cti-home .cti-report-thumb { width: 52px; height: 52px; border-radius: 9px; }
.cti-home .cti-report-title { gap: 8px; font-size: 18px; line-height: 1.25; }
.cti-home .cti-report-summary { font-size: 12px; line-height: 1.48; }
.cti-home .cti-report-badge { min-width: 44px; padding: 4px 7px; font-size: 10px; }
.cti-home .cti-report-admin-stats,
.cti-home .cti-report-hover-hint { font-size: 11px; }
.cti-home .cti-report-admin-card { border-color: var(--cti-line); border-radius: 16px; box-shadow: none; }

@media (min-width: 1025px) {
  .cti-home .cti-top-layout { grid-template-columns: 228px minmax(0, 1fr); }
}

@media (max-width: 1024px) {
  .cti-home .cti-top-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .cti-home .cti-sidebar { position: static; padding: 10px 12px; }
  .cti-home .cti-sidebar-brand { display: none; }
  .cti-home .cti-sidebar-nav { display: flex; gap: 5px; margin: 0; }
  .cti-home .cti-sidebar-link { flex: 1 1 0; justify-content: center; white-space: nowrap; }
  .cti-home .cti-sidebar-link-arrow { display: none; }
}

@media (max-width: 760px) {
  .cti-home .cti-top-layout { width: calc(100% - 24px) !important; max-width: none !important; }
  .cti-home .cti-book-interlude,
  .cti-home .cti-reports-band { width: 100% !important; max-width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }
  .cti-home .cti-stage { padding: 16px; border-radius: 18px; }
  .cti-home .cti-stage-topbar { min-height: 0; margin-bottom: 17px; padding-bottom: 15px; }
  .cti-home .cti-stage-panel { padding: 17px !important; border-radius: 15px; }
  .cti-home .cti-sidebar-nav { display: flex; overflow-x: auto; }
  .cti-home .cti-sidebar-link { flex: 0 0 auto; min-height: 40px; padding: 0 10px; font-size: 12px; }
  .cti-home .cti-sidebar-link-icon { width: 18px; height: 18px; }
  .cti-home .cti-sidebar-link-icon svg { width: 16px; height: 16px; }
  .cti-home .cti-news-card-grid,
  .cti-home .cti-report-grid { grid-template-columns: minmax(0, 1fr); }
  .cti-home .cti-news-card-media { height: 170px; }
  .cti-home .cti-report-feature-card { grid-template-columns: 34% minmax(0, 1fr); min-height: 160px; }
  .cti-home .cti-report-feature-media { min-height: 160px; }
  .cti-home .cti-inline-book-banner { grid-template-columns: minmax(0, 1fr) 54px !important; }
  .cti-home .cti-inline-book-banner .cti-panel-cta { grid-column: 1 / -1; justify-self: start; }
  .cti-home .cti-report-carousel-slide { grid-template-columns: minmax(0, 1fr); }
  .cti-home .cti-report-carousel-media { min-height: 190px; max-height: 250px; }
  .cti-home .cti-report-feed-row { grid-template-columns: 64px minmax(0, 1fr); gap: 10px; }
  .cti-home .cti-report-feed-row .cti-report-date { grid-column: 1 / -1; }
  .cti-home .cti-report-feed-row .cti-report-actions { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .cti-home .cti-sidebar-link,
  .cti-home .cti-news-card,
  .cti-home .cti-report-feature-card,
  .cti-home .cti-panel-cta { transition: none; }
}

@media (max-width: 480px) {
  .cti-home .cti-report-feature-card { grid-template-columns: minmax(0, 1fr); }
  .cti-home .cti-report-feature-media { height: 180px; min-height: 0; border-right: 0; border-bottom: 1px solid var(--cti-line); }
}
