/* Detail page styles (content.html) */

.page-hero{
  position: relative;
  background: var(--blue);
  padding: 56px 0 44px 0;
  overflow: hidden;
}

.page-hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-bg-desktop, var(--hero-bg, url("")));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: .20;
  pointer-events: none;
}

@media (max-width: 760px){
  .page-hero::before{
    background-image: var(--hero-bg-mobile, var(--hero-bg-desktop, var(--hero-bg, url(""))));
  }
}

.page-hero > .container{ position: relative; z-index: 1; }

.hero-top{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-labels{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.breadcrumbs{
  font-size: 13px;
  line-height: 1.35;
  color: rgba(255,255,255,.82);
  margin: 0 0 10px 0;
}
.breadcrumbs a{ color: rgba(255,255,255,.86); text-decoration: underline; }

.page-hero h1{
  margin: 0 0 10px 0;
  color: #fff;
  font-size: clamp(30px, 3.0vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero-sub{
  margin: 0;
  color: rgba(255,255,255,.86);
  font-size: var(--body);
  line-height: var(--body-lh);
  max-width: 75ch;
  font-weight: 300;
}

.meta-row{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 13px;
  color: rgba(255,255,255,.78);
}
.meta-dot{ opacity:.7; }

.content-wrap{ background:#fff; padding: 34px 0 56px 0; }
.content-grid{
  display:grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items:start;
}
@media (max-width: 980px){
  .content-grid{ grid-template-columns: 1fr; }
}

.article{ min-width: 0; }
.article h2{
  margin: 26px 0 12px 0;
  color: var(--blue);
  font-size: 24px;
  line-height: 1.2;
}
.article h3{
  margin: 18px 0 10px 0;
  color: var(--blue);
  font-size: 18px;
  line-height: 1.25;
}
.article p{
  margin: 0 0 14px 0;
  color: rgba(27,27,27,.82);
  font-size: var(--body);
  line-height: var(--body-lh);
  font-weight: 300;
}

/* TOC */
.toc{
  border: 1px solid rgba(27,27,27,.18);
  border-radius: var(--radius);
  padding: 14px 14px;
  background:#fff;
  margin-bottom: 18px;
}
.toc-title{
  margin:0 0 10px 0;
  font-weight:700;
  color: var(--blue);
  font-size: 14px;
  letter-spacing: .01em;
}
.toc ol{
  margin:0;
  padding-left: 18px;
  display:flex;
  flex-direction: column;
  gap: 8px;
  color: rgba(27,27,27,.78);
  font-size: 14px;
}
.toc ol ol{ margin-top: 8px; }
.toc a{
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* H3 items in TOC (indented) */
.toc li.toc-sub{ margin-left: 12px; }

/* Callout */
.callout{
  background: #F5F5F5;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px;
  margin: 18px 0;
}
.callout strong{ color: var(--black); }

/* Sidebar boxes (static for now) */
.side{ display:flex; flex-direction: column; gap: 26px; }
.side-box{
  background:#fff;
  border: 1px solid rgba(27,27,27,.18);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow:none;
}
.side-box h4{
  margin: 0 0 10px 0;
  color: var(--blue);
  font-size: 16px;
  line-height: 1.25;
  font-weight: 700;
}
.side-box p{
  margin: 0 0 12px 0;
  color: rgba(27,27,27,.78);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 300;
}

/* Newsletter box (sidebar) */
.newsletter{
  background:#fff;
  border: 1px solid rgba(27,27,27,.18);
  border-radius: var(--radius);
  box-shadow:none;
  overflow:hidden;
}
.newsletter summary{ display:none; }
.nl-head{
  padding: 16px 14px;
  color: var(--blue);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.25;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
}
.nl-left{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 0;
}
.nl-icon{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(1,138,156,.08);
  display:flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 28px;
}
.nl-icon svg{
  width: 16px;
  height: 16px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nl-title{
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}
.nl-body{
  padding: 0 14px 16px 14px;
  color: rgba(27,27,27,.82);
  font-size: var(--body);
  line-height: var(--body-lh);
  font-weight: 300;
}
.nl-body p{ margin: 0 0 12px 0; }
.nl-form{
  display:flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.nl-input{
  width:100%;
  padding: 12px 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(27,27,27,.18);
  background:#fff;
  font: inherit;
  font-weight: 300;
  outline:none;
}
.nl-input::placeholder{ color: rgba(27,27,27,.55); }
.nl-btn{
  width:100%;
  justify-content:center;
}

/* Sidebar CTA box (blue background) */
.side-cta{
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow:none;
}
.side-cta .cta-head{
  display:flex;
  align-items:center;
  gap: 12px;
  margin-bottom: 10px;
}
.side-cta .cta-icon{
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  display:flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 32px;
}
.side-cta .cta-icon svg{
  width: 18px;
  height: 18px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .95;
}
.side-cta h4{
  margin:0;
  color:#fff;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 700;
}
.side-cta p{
  margin:0 0 14px 0;
  color: rgba(255,255,255,.86);
  font-size: var(--body);
  line-height: var(--body-lh);
  font-weight: 300;
}
.side-cta .cta-btn{
  width:100%;
  background: transparent;
  border: 1px solid rgba(255,255,255,.85);
  color: #fff;
  border-radius: var(--radius);
  padding: 12px 14px;
  font-weight: 500;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition: background .12s ease, border-color .12s ease;
}
.side-cta .cta-btn:hover{
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.95);
}

/* Sidebar related articles (no box, no outline) */
.side-articles{
  display:flex;
  flex-direction: column;
  gap: 14px;
}
.side-article{
  display:grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items:center;
  text-decoration:none;
  color: inherit;
  height: 62px;
  overflow:hidden;
}
.side-article img{
  width: 92px;
  height: 62px;
  object-fit: cover;
  border-radius: var(--radius);
  display:block;
  flex: 0 0 auto;
}
.side-article > div{ min-width:0; }
.side-article-title{
  margin:0 0 4px 0;
  color: var(--black);
  font-weight:500;
  font-size:13px;
  line-height:1.15;
  letter-spacing:-0.01em;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space: normal;
}
.side-article-date{
  font-size:12px;
  line-height:1.2;
  color: rgba(27,27,27,.65);
  margin:0;
  font-weight:300;
  white-space: nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.side-article:hover .side-article-title{
  text-decoration: underline;
  text-underline-offset: 3px;
}

.side-articles-heading{
  margin: 0 0 10px 0;
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.25;
  letter-spacing: .01em;
}

/* Unified sidebar heading style (matches content.html) */
.newsletter .nl-title,
.side-cta h4,
.side-box h4,
.side-articles-heading{
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;

  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  min-width: 0;
}

/* Buttons: full-width inside sidebar boxes */
.side-box .btn{
  width: 100%;
  justify-content: center;
}

/* Author box */
.author-box{
  margin-top: 28px;
  background:#fff;
  border: 1px solid rgba(27,27,27,.18);
  border-radius: var(--radius);
  box-shadow:none;
  padding: 18px;
}
.author-top{ display:flex; align-items:center; gap: 14px; margin-bottom: 12px; width: 100%; }
.author-photo{ width: 64px; height: 64px; border-radius: var(--radius); object-fit: cover; flex: 0 0 64px; }
.author-meta{ flex: 1; min-width: 0; }
.author-role-row{ display:flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 4px 0; width: 100%; }
.author-role{ font-size: 13px; line-height: 1.35; color: rgba(27,27,27,.60); margin: 0; font-weight: 300; font-style: italic; }
.author-viewposts{ color: var(--blue); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; font-size: 14px; line-height: 1.35; white-space: nowrap; }
.author-line{ margin:0; font-size: 14px; line-height: 1.35; color: rgba(27,27,27,.70); font-weight: 300; }
.author-line strong{ font-weight: 700; color: var(--black); }
.author-bio{ margin:0; color: rgba(27,27,27,.82); font-size: var(--body); line-height: var(--body-lh); font-weight: 300; }

/* Sticky sidebar on desktop (matches design) */
@media (min-width: 981px){
  .side{ position: sticky; top: calc(var(--sticky-header) + 26px); align-self: start; }
}
