.hero-immersive { padding: 0; border: 0; background: var(--navy-deep); }
.hero-immersive .feature-layout { display: block; width: 100%; }
.hero-immersive .feature-carousel { position: relative; }
.hero-immersive .feature-story {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  min-height: clamp(430px, 58vh, 580px);
  padding: 34px max(32px, calc((100% - var(--container)) / 2)) 82px;
  isolation: isolate;
}
.hero-immersive .feature-image { position: absolute; z-index: -2; inset: 0; border-radius: 0; background: var(--navy-deep); }
.hero-immersive .feature-image img { width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: center 46%; }
.hero-immersive .feature-image img[src$="feature-mentoria.jpg"] { object-position: center 14%; }
.hero-immersive .feature-image img[src$="feature-tema-stf.webp"] { object-position: center 25%; }
.hero-immersive .feature-story::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, #071725c9, #07172565 42%, transparent 75%),
    linear-gradient(0deg, #071725c9, #07172535 57%, transparent 82%);
  pointer-events: none;
}
.hero-immersive .feature-copy { padding: 0; }
.hero-immersive .feature-copy :is(h1, h2) {
  max-width: min(23ch, 100%);
  color: #fff;
  font-size: clamp(29px, 3.7vw, 50px);
  font-weight: 600;
  line-height: 1.08;
  text-wrap: pretty;
}
.hero-immersive .feature-copy .eyebrow { color: #f3f5f8; font-size: 11px; letter-spacing: .07em; }
.hero-immersive .eyebrow-line { display: none; }
.hero-immersive .feature-excerpt { max-width: 47ch; margin: 12px 0 17px; color: #f0f4f8; font-size: 15px; line-height: 1.5; }
.hero-immersive .button-link { min-height: 40px; padding-inline: 14px; color: var(--navy-deep); background: white; }
.hero-immersive .button-link:is(:hover, :focus-visible) { color: var(--navy-deep); background: #e8edf2; }
.hero-immersive .button-link:focus-visible { outline-color: #fff; }
.hero-immersive .feature-controls {
  position: absolute;
  z-index: 2;
  bottom: 24px;
  left: max(32px, calc((100% - var(--container)) / 2));
  margin: 0;
}
.hero-immersive .carousel-arrow { width: 30px; height: 30px; color: #fff; border-color: #ffffff55; background: #10283e55; }
.hero-immersive .carousel-arrow:hover { background: var(--navy); }
.hero-immersive .carousel-dot.is-active { background: #fff; }

.feed-with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--editorial-sidebar-width);
  align-items: start;
  gap: 0 var(--editorial-sidebar-gap);
}
.feed-sidebar {
  padding-inline-start: 22px;
  border-inline-start: 1px solid var(--line);
}
.portal-editorial-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.portal-editorial-heading h2 { margin: 0; font-size: clamp(26px, 3vw, 38px); line-height: 1.1; }
.portal-editorial-heading a { color: var(--muted); font-size: 14px; }
.portal-editorial-heading a:is(:hover, :focus-visible) { color: var(--link-hover); text-decoration: none; }
.portal-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.portal-news .portal-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 18px; }
.portal-card { min-width: 0; margin: 0; border: 0; background: transparent; }
.portal-card .mosaic-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  background: #e8edf2;
}
.portal-card .mosaic-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portal-card .mosaic-copy { padding: 10px 0 0; }
.portal-card h3 { margin: 0; color: var(--navy); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.25; font-weight: 600; }
.portal-news-featured { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 24px; }
.portal-news-companion h3 { font-size: clamp(18px, 1.65vw, 23px); }
.portal-lead-card { position: relative; display: grid; grid-column: span 2; overflow: hidden; border-radius: 8px; }
.portal-lead-card .mosaic-image { min-height: 250px; aspect-ratio: 16 / 10; align-self: stretch; }
.portal-lead-card .mosaic-copy {
  position: absolute;
  inset: auto 0 0;
  padding: 40px clamp(14px, 2vw, 26px) clamp(14px, 2vw, 24px);
  background: linear-gradient(transparent, #091623d6 62%, #091623f0);
  pointer-events: none;
}
.portal-lead-card .post-meta { color: #e4ebf1; }
.portal-lead-card h3 { color: white; font-size: clamp(22px, 2.35vw, 34px); }
.portal-lead-card h3 a { pointer-events: auto; }
.portal-lead-card h3 a:is(:hover, :focus-visible) { color: var(--link-hover-on-dark); }
.portal-notices {
  position: relative;
  isolation: isolate;
  margin: clamp(32px, 5vw, 60px) 0;
  padding: clamp(26px, 4vw, 48px) 0;
  background: var(--navy-deep);
}
.portal-notices::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  box-shadow: 0 0 0 100vmax var(--navy-deep);
  clip-path: inset(0 -100vmax);
}
.portal-notices .portal-editorial-heading { border-color: #ffffff35; }
.portal-notices :is(h2, h3) { color: white; }
.portal-notices :is(.post-meta, .portal-editorial-heading a) { color: #d4e0e9; }
.portal-notices :is(.portal-editorial-heading a, h3 a):is(:hover, :focus-visible) { color: var(--link-hover-on-dark); }
.portal-notices .mosaic-image { background: #ffffff12; }
.feed-sidebar .top-advertising { display: flex; gap: 9px; }
.feed-sidebar .ad-label { font-size: 11px; }
.feed-sidebar .ad-image { min-height: 0; padding: 0; overflow: hidden; border-radius: 6px; }
.feed-sidebar .ad-image img { max-height: 132px; }
.feed-sidebar .partner-ad { padding: 0; margin-top: 9px; }
.feed-sidebar .partner-ad-inner {
  width: 100%;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 6px;
}
.feed-sidebar .partner-image { grid-row: 1; max-width: none; max-height: none; }
.feed-sidebar .partner-image img { width: 100%; height: auto; max-height: none; }
.feed-sidebar .partner-ad-inner > div { display: none; }
.feed-articles { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); }
.feed-articles h3 { margin: 0 0 8px; color: var(--navy); font-size: 23px; font-weight: 700; line-height: 1.2; }
.feed-articles ol { margin: 0; padding: 0; list-style: none; counter-reset: ranking; }
.feed-articles li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); counter-increment: ranking; }
.feed-articles li:last-child { border-bottom: 0; }
.feed-articles li::before { content: counter(ranking); color: var(--red); font-size: 17px; font-weight: 700; font-style: italic; line-height: 1.3; font-variant-numeric: tabular-nums; }
.feed-rank-category { display: block; margin-bottom: 4px; color: var(--navy); font-size: 11px; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; }
.feed-articles li a { display: block; color: var(--navy); font-size: 15px; line-height: 1.35; }
.feed-articles li a:is(:hover, :focus-visible) { color: var(--link-hover); text-decoration: none; }

.feed-authors { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.feed-authors h3 { margin: 0; color: var(--navy); font-size: 21px; line-height: 1.2; }
.feed-authors ul { margin: 10px 0 12px; padding: 0; list-style: none; }
.feed-authors li + li { border-top: 1px solid var(--line); }
.feed-authors li a { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 10px; padding: 11px 0; }
.feed-authors img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: center 30%; background: var(--paper); }
.feed-authors strong { display: block; color: var(--navy); font-size: 14px; font-weight: 600; line-height: 1.2; }
.feed-authors li a:is(:hover, :focus-visible) { text-decoration: none; }
.feed-authors li a:is(:hover, :focus-visible) strong { color: var(--link-hover); }
.feed-authors li a span span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.3; }

@media (max-width: 760px) {
  .hero-immersive .feature-story { min-height: 0; padding: clamp(180px, 54vw, 410px) 18px 74px; }
  .hero-immersive .feature-story::after { background: linear-gradient(0deg, #07172588, transparent 70%); }
  .hero-immersive .feature-image { inset: 0 0 auto; mask-image: linear-gradient(#000 60%, transparent); }
  .hero-immersive .feature-image img { height: auto; }
  .hero-immersive .feature-controls { left: 18px; }
  .feed-with-sidebar { grid-template-columns: minmax(0, 1fr); }
  .feed-sidebar { margin-top: 24px; padding: 20px 0 0; border: 0; border-top: 1px solid var(--line); }
  .portal-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  :is(#editoria-informativos, #editoria-cursos) > .portal-card-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: clamp(12rem, 64%, 19rem);
    margin-inline: -4px;
    padding: 4px 4px 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 4px;
  }
  :is(#editoria-informativos, #editoria-cursos) > .portal-card-grid > .portal-card { scroll-snap-align: start; }
  :is(#editoria-informativos, #editoria-cursos) > .portal-card-grid > .portal-card:last-child { scroll-snap-align: end; }
  .feed-sidebar .top-advertising { flex-direction: row; flex-wrap: wrap; gap: 10px; }
  .feed-sidebar .ad-label { flex: 0 0 100%; }
  .feed-sidebar .ad-image { flex: 1; min-width: 0; }
  .feed-sidebar .partner-ad { max-width: 360px; }
}
@media (max-width: 420px) {
  .portal-card-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 650px) {
  .portal-news-featured, .portal-news .portal-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-news-companion { grid-column: 1 / -1; }
}
