/* ============================================================
   Trustus Consultants — blog inner page
   Loads after styles.css and reuses its tokens, type scale and
   panel treatments. Nothing here overrides the home page.
   ============================================================ */

/* --- Reading progress ---------------------------------------------- */
.read-progress {
  position: fixed;
  z-index: 120;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--orange-gradient);
  will-change: transform;
  pointer-events: none;
}

/* --- Hero ----------------------------------------------------------- */
.article-hero { padding: calc(var(--header-height) + 74px) 0 0; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 0 0 30px;
  color: #8b8b90;
  font-size: 13px;
}
.crumbs a:hover { color: var(--orange); }
.crumbs span[aria-hidden] { color: #c6c6ca; }
.crumbs [aria-current] { color: #3d3d43; }

.article-title {
  max-width: 920px;
  margin: 0;
  font-size: clamp(46px, 5.6vw, 84px);
  line-height: .84;
  letter-spacing: -.06em;
  font-weight: 700;
  background-image: var(--navy-gradient);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.article-title span {
  background-image: var(--orange-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.article-lead {
  max-width: 640px;
  margin: 28px 0 0;
  color: #6a6b70;
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.32;
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 26px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid #d6d7da;
  color: #85858b;
  font-size: 13px;
}
.byline-author { display: flex; align-items: center; gap: 11px; color: #303035; }
.byline-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy-gradient);
  color: #fff;
  font-size: 12px;
  letter-spacing: .02em;
}

/* Hero artwork: a small drip, a stain far wider than the drip. */
.hero-art {
  position: relative;
  height: clamp(230px, 31vw, 370px);
  margin-top: 40px;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(160deg, #f3f5f6, #d7e2e7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}
.hero-art .pipe-lg {
  position: absolute;
  left: calc(50% - 39px);
  top: -26px;
  width: 78px;
  height: 44%;
  border-radius: 0 0 24px 24px;
  background: linear-gradient(90deg, #5b6067, #e2eaee 46%, #666b73);
  transform: rotate(6deg);
  box-shadow: 0 16px 26px rgba(20,28,36,.16);
}
.hero-art .drop-lg {
  position: absolute;
  left: 50%;
  width: 22px;
  height: 31px;
  margin-left: -9px;
  border-radius: 55% 45% 60% 40%;
  background: linear-gradient(180deg, #8fb0c1, #5f8296);
  transform: rotate(30deg);
}
.hero-art .dl2 { top: 64%; width: 17px; height: 24px; margin-left: -15px; }
.hero-art .dl1 { top: 51%; }
.hero-art .dl3 { top: 75%; width: 13px; height: 19px; margin-left: -1px; }
.hero-art .stain {
  position: absolute;
  left: 50%;
  bottom: -46px;
  width: min(80%, 640px);
  height: 155px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 42%, rgba(36,35,65,.32), rgba(36,35,65,.06) 66%, transparent 72%);
}

/* --- Body layout ----------------------------------------------------- */
.article-main { padding: 62px 0 30px; }
.article-layout {
  display: grid;
  grid-template-columns: .56fr 1.44fr;
  gap: 78px;
  align-items: start;
}

.article-rail {
  position: sticky;
  top: calc(var(--header-height) + 42px);
  display: grid;
  gap: 30px;
}
.rail-label { margin: 0 0 14px; color: #8d8d92; font-size: 13px; }
.toc {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid #d7d8db;
}
.toc a {
  display: block;
  margin-left: -1px;
  padding: 9px 0 9px 17px;
  border-left: 1px solid transparent;
  color: #7d7e84;
  font-size: 14px;
  line-height: 1.22;
  transition: color .2s ease, border-color .2s ease;
}
.toc a:hover { color: #18181c; }
.toc a.is-current { color: #16161a; border-left-color: var(--orange); }

.share { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn {
  padding: 9px 14px;
  border: 1px solid #d7d9dd;
  border-radius: 999px;
  background: #f4f6f7;
  color: #6f7076;
  font-size: 12px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.share-btn:hover { background: #111; border-color: #111; color: #fff; }
.share-note { min-height: 16px; margin: 10px 0 0; color: #85858b; font-size: 12px; }

/* --- Prose ----------------------------------------------------------- */
.article-body {
  max-width: 640px;
  color: #4e4f54;
  font-size: 18px;
  line-height: 1.62;
  font-weight: 300;
}
.article-body p { margin: 0 0 20px; }
.article-body h2 {
  margin: 52px 0 16px;
  color: var(--navy);
  font-size: clamp(30px, 3.1vw, 42px);
  line-height: .96;
  letter-spacing: -.045em;
  font-weight: 500;
  scroll-margin-top: calc(var(--header-height) + 46px);
}
.article-body h3 {
  margin: 32px 0 10px;
  color: #232328;
  font-size: 21px;
  letter-spacing: -.02em;
  font-weight: 500;
}
.article-body strong { font-weight: 500; color: #1c1c21; }
.article-body a:not(.button) {
  border-bottom: 1px solid var(--orange);
  padding-bottom: 1px;
}
.article-body a:not(.button):hover { color: var(--orange); }
.article-body ul:not(.check-list) {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
.article-body ul:not(.check-list) li { position: relative; padding-left: 26px; }
.article-body ul:not(.check-list) li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .66em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange-gradient);
}

/* A bare <blockquote> gets the same treatment, so the Quote button in
   the admin editor produces the designed panel without extra markup. */
.pull-quote,
.article-body blockquote {
  margin: 42px 0;
  padding: 34px 34px 30px;
  border-radius: 28px;
  background: linear-gradient(135deg, #e9eef1, #d7dfe4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.pull-quote p,
.article-body blockquote p {
  margin: 0;
  color: #24242a;
  font-size: clamp(22px, 2.4vw, 31px);
  line-height: 1.08;
  letter-spacing: -.04em;
  font-weight: 400;
}
.pull-quote cite,
.article-body blockquote cite {
  display: block;
  margin-top: 18px;
  color: #83848a;
  font-size: 13px;
  font-style: normal;
}

.check-panel {
  margin: 42px 0;
  padding: 30px 30px 27px;
  border-radius: 28px;
  background: linear-gradient(135deg, #e9eef1, #d7dfe4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.check-panel h3 {
  margin: 0 0 18px;
  color: #1e1e23;
  font-size: 22px;
  letter-spacing: -.03em;
  font-weight: 400;
}
.check-list { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.check-list li {
  position: relative;
  padding-left: 37px;
  color: #3f3f43;
  font-size: 15px;
  line-height: 1.3;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #08080a;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

/* --- Foot of the article --------------------------------------------- */
.article-foot { padding: 0 0 20px; }
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}
.tag-list li {
  padding: 8px 13px;
  border: 1px solid #d7d9dd;
  border-radius: 999px;
  color: #7d7e84;
  font-size: 12px;
}

.author-card {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 24px;
  align-items: center;
  padding: 20px;
  border-radius: 26px;
  background: linear-gradient(135deg, #e9eef1, #d7dfe4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.author-photo {
  display: grid;
  place-items: center;
  height: 118px;
  border-radius: 20px;
  background: var(--navy-gradient);
  color: #fff;
  font-size: 34px;
  letter-spacing: -.03em;
}
.author-kicker { margin: 0 0 6px; color: #85868c; font-size: 13px; }
.author-copy h2 {
  margin: 0 0 10px;
  color: #1c1c21;
  font-size: 26px;
  letter-spacing: -.035em;
  font-weight: 500;
}
.author-copy h2 small { color: #7e7f85; font-size: 12px; font-weight: 400; }
.author-copy p { margin: 0; max-width: 620px; color: #66676c; font-size: 15px; line-height: 1.35; }

.article-cta {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 34px;
  align-items: center;
  margin-top: 34px;
  padding: clamp(32px, 4.4vw, 54px);
  border-radius: 34px;
  background: var(--navy-gradient-deep);
  color: #fff;
}
.article-cta h2 {
  margin: 0;
  font-size: clamp(36px, 3.9vw, 54px);
  line-height: .86;
  letter-spacing: -.055em;
  font-weight: 700;
}
.article-cta h2 span {
  background-image: var(--orange-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.article-cta p {
  max-width: 430px;
  margin: 16px 0 0;
  color: rgba(255,255,255,.62);
  font-size: 16px;
  line-height: 1.25;
}
.article-cta-actions { display: grid; gap: 14px; justify-items: start; }
/* .button-light uses color:inherit, which would be white inside this panel. */
.article-cta-actions .button-light { width: 100%; color: #101014; }
.cta-line { color: rgba(255,255,255,.72); font-size: 15px; }
.cta-line:hover { color: #fff; }

/* --- Related articles ------------------------------------------------ */
.related { padding-top: 96px; }
.related-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 6px;
}
.related-all { color: #7d7e84; font-size: 14px; border-bottom: 1px solid #c9cacd; padding-bottom: 3px; }
.related-all:hover { color: var(--orange); border-color: var(--orange); }
.related .article-grid { margin-top: 34px; }
.article-link { display: block; }
.article-link h3 { transition: color .2s ease; }
.article-link:hover h3 { color: var(--orange); }
.article-link:focus-visible { outline: 2px solid var(--orange); outline-offset: 6px; }

/* --- Uploaded cover images ------------------------------------------- */
/* A post with a cover image uses the photo in place of the CSS artwork. */
.article-visual.has-cover { background: #e4e9ed; }
.article-visual.has-cover img { width: 100%; height: 100%; object-fit: cover; }
.hero-art.has-cover { background: #e4e9ed; }
.hero-art.has-cover img { width: 100%; height: 100%; object-fit: cover; }

/* --- The Ideas index page -------------------------------------------- */
.ideas-index { padding-top: calc(var(--header-height) + 74px); }
.ideas-index .eyebrow { color: #85858b; }

.ideas-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
  padding-bottom: 22px;
  border-bottom: 1px solid #d3d4d8;
}

.topic-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border: 1px solid #d7d9dd;
  border-radius: 999px;
  color: #6f7076;
  font-size: 13px;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.topic-nav a span { color: #a9aaaf; font-size: 11px; }
.topic-nav a:hover { border-color: #9a9ba1; color: #1c1c21; }
.topic-nav a.is-current { background: #111; border-color: #111; color: #fff; }
.topic-nav a.is-current span { color: rgba(255,255,255,.55); }

.ideas-search { position: relative; display: flex; align-items: center; }
.ideas-search input {
  width: min(280px, 60vw);
  min-height: 42px;
  padding: 0 46px 0 16px;
  border: 1px solid #d7d9dd;
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  color: #1c1c21;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ideas-search input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(244,95,45,.13); }
.ideas-search button {
  position: absolute;
  right: 5px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #111;
  color: #fff;
  cursor: pointer;
  transition: background .2s ease;
}
.ideas-search button:hover { background: var(--orange); }
.ideas-search svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.result-line { margin: 26px 0 0; color: #85858b; font-size: 14px; }
.result-line a { border-bottom: 1px solid currentColor; }
.result-line a:hover { color: var(--orange); }

.ideas-index .featured-articles { margin-top: 36px; border-top: 0; padding-top: 0; }
.ideas-index .article-grid { margin-top: 44px; }

.ideas-empty { padding: 72px 0 40px; text-align: center; }
.ideas-empty h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: -.04em;
  font-weight: 500;
}
.ideas-empty p { margin: 0 auto 26px; max-width: 460px; color: #77777c; font-size: 16px; line-height: 1.4; }

.ideas-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  margin-top: 46px;
  padding-top: 30px;
  border-top: 1px solid #d3d4d8;
}
.ideas-pager a { color: #3d3d43; font-size: 15px; border-bottom: 1px solid #c9cacd; padding-bottom: 3px; }
.ideas-pager a:hover { color: var(--orange); border-color: var(--orange); }
.pager-count { color: #8d8d92; font-size: 13px; }

/* --- Responsive ------------------------------------------------------ */
@media (max-width: 1100px) {
  .article-layout { grid-template-columns: .68fr 1.32fr; gap: 46px; }
}

@media (max-width: 850px) {
  .article-hero { padding-top: calc(var(--header-height) + 46px); }
  .article-title { max-width: none; font-size: clamp(40px, 11vw, 66px); }
  .article-layout { grid-template-columns: 1fr; gap: 34px; }
  .article-rail {
    position: static;
    top: auto;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    align-items: start;
  }
  .article-main { padding-top: 48px; }
  .article-body { max-width: none; font-size: 17px; }
  .author-card { grid-template-columns: 1fr; }
  .author-photo { height: 96px; }
  .article-cta { grid-template-columns: 1fr; }
  .article-cta-actions { justify-items: stretch; }
  .related { padding-top: 72px; }
  .ideas-index { padding-top: calc(var(--header-height) + 46px); }
  .ideas-toolbar { flex-direction: column; align-items: stretch; }
}

@media (max-width: 560px) {
  .article-rail { grid-template-columns: 1fr; }
  .ideas-search input { width: 100%; }
  .ideas-search { width: 100%; }
  .ideas-pager { gap: 14px; flex-wrap: wrap; }
  .hero-art { border-radius: 20px; }
  .pull-quote, .check-panel { padding: 24px 20px 22px; border-radius: 22px; }
  .article-cta { border-radius: 26px; }
  .related-head { flex-direction: column; align-items: start; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .read-progress { transition: none; }
  .toc a, .share-btn, .article-link h3 { transition: none; }
}
