/* TEMPLO-230-A31 | Estudo em destaque PT/EN | CSS isolado e progressivo.
   Usa SEMPRE a capa, o titulo, o resumo e o href originais retornados pelo Django.
   Modos claro e escuro por classes acrescentadas pelo JS, sem alterar o toggle nativo. */
section.a31-featured {
  --a31-bg: #fff;
  --a31-card: #fffcf7;
  --a31-ink: #211a14;
  --a31-text: #39322e;
  --a31-gold: #a66b14;
  --a31-line: rgba(178,121,40,.72);
  --a31-edge: #c69b56;
  --a31-shadow: 0 18px 36px rgba(65,42,20,.12);
  --a31-button-top: #f1c66e;
  --a31-button-bottom: #ae6d0c;
  --a31-button-ink: #261608;
  --a31-watermark-opacity: .48;
  position: relative !important;
  background: var(--a31-bg) !important;
  color: var(--a31-ink) !important;
  padding-block: clamp(52px,6vw,94px) !important;
  isolation: isolate;
}
section.a31-featured.a31-dark {
  --a31-bg: #111016;
  --a31-card: #1e1920;
  --a31-ink: #f6eee5;
  --a31-text: #e7d9cb;
  --a31-gold: #f2bf72;
  --a31-line: rgba(224,173,98,.65);
  --a31-edge: #987345;
  --a31-shadow: 0 18px 36px rgba(0,0,0,.38);
  --a31-button-top: #f7cc76;
  --a31-button-bottom: #c98b2c;
  --a31-button-ink: #241709;
  --a31-watermark-opacity: .20;
  color-scheme:dark;
}
section.a31-featured .a31-layout {
  display:grid!important;
  grid-template-columns: minmax(0, .97fr) minmax(0,1.03fr)!important;
  align-items:center!important;
  gap:clamp(22px,3.35vw,54px)!important;
  padding:clamp(18px,1.85vw,31px)!important;
  border:1px solid var(--a31-edge)!important;
  border-radius:18px!important;
  background:var(--a31-card)!important;
  box-shadow:var(--a31-shadow)!important;
  position:relative!important;
  isolation:isolate;
  overflow:hidden!important;
  max-width: min(100% - 32px, 1230px);
  box-sizing:border-box!important;
  margin-inline:auto!important;
}
section.a31-featured .a31-layout::before {
  content:"";
  position:absolute;
  z-index:0;
  pointer-events:none;
  width:clamp(270px,35vw,510px);
  height:clamp(210px,26vw,390px);
  right:-6%;
  top:-15%;
  opacity:var(--a31-watermark-opacity);
  background:url('/static/img/home-featured-watermark-230a31.svg') center / contain no-repeat;
}
section.a31-featured .a31-layout::after {
  content:"";
  position:absolute;
  z-index:0;
  inset:0;
  pointer-events:none;
  background:radial-gradient(ellipse at 92% 10%,rgba(210,156,74,.055),transparent 39%);
}
section.a31-featured.a31-dark .a31-layout::after {
  background:radial-gradient(ellipse at 90% 12%,rgba(214,155,72,.085),transparent 43%);
}
section.a31-featured .a31-layout > * {
  position:relative!important;
  z-index:1!important;
  min-width:0!important;
}
section.a31-featured .a31-media {
  margin:0!important;
  padding:0!important;
  min-width:0!important;
  align-self:stretch!important;
  display:flex!important;
  align-items:stretch!important;
  box-sizing:border-box!important;
}
section.a31-featured .a31-media .feature-image,
section.a31-featured .a31-media img {
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-height:clamp(300px,32vw,460px)!important;
  max-height:540px!important;
  object-fit:cover!important;
  object-position:center center!important;
  aspect-ratio: 1.46!important;
  border-radius:15px!important;
  border:1px solid rgba(180,120,36,.77)!important;
  box-shadow:0 5px 14px rgba(31,17,9,.12)!important;
  box-sizing:border-box!important;
}
section.a31-featured .a31-text {
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:center!important;
  padding:clamp(10px,1.7vw,24px) clamp(6px,1vw,18px)!important;
  min-width:0!important;
  color:var(--a31-ink)!important;
}
section.a31-featured .a31-label,
section.a31-featured .a31-text .eyebrow {
  display:inline-flex!important;
  align-items:center!important;
  gap:13px!important;
  font:750 clamp(.72rem,.93vw,.94rem)/1.35 system-ui,-apple-system,sans-serif!important;
  letter-spacing:.14em!important;
  text-transform:uppercase!important;
  color:var(--a31-gold)!important;
  margin:0 0 clamp(18px,2vw,27px)!important;
}
section.a31-featured .a31-label::before {
  content:"✦";
  font-size:1.7em;
  font-weight:400;
  line-height:1;
}
section.a31-featured .a31-label::after {
  content:"";
  width:clamp(24px,6.4vw,100px);
  height:1px;
  display:block;
  background:linear-gradient(90deg,var(--a31-line),transparent);
}
section.a31-featured .a31-heading {
  font-family:Georgia,'Times New Roman',serif!important;
  color:var(--a31-ink)!important;
  font-size:clamp(2.35rem,4.3vw,4.55rem)!important;
  font-weight:500!important;
  line-height:1.09!important;
  letter-spacing:-.045em!important;
  text-wrap:balance;
  margin:0 0 clamp(15px,1.8vw,25px)!important;
  max-width:100%!important;
}
section.a31-featured .a31-heading em {
  color:var(--a31-gold)!important;
  font-style:italic!important;
  font-weight:500!important;
}
section.a31-featured .a31-rule {
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  width:min(290px,75%)!important;
  color:var(--a31-gold)!important;
  margin:0 0 clamp(20px,2.2vw,33px)!important;
  font-size:20px;
  line-height:1;
}
section.a31-featured .a31-rule::before,
section.a31-featured .a31-rule::after {
  content:"";
  flex:1;
  height:1px;
  background:var(--a31-line);
}
section.a31-featured .a31-summary,
section.a31-featured .a31-text p {
  color:var(--a31-text)!important;
  font:400 clamp(1rem,1.23vw,1.16rem)/1.68 Georgia,'Times New Roman',serif!important;
  text-align:left!important;
  max-width:61ch!important;
  margin:0 0 clamp(22px,2.75vw,35px)!important;
  text-wrap:pretty;
}
section.a31-featured a.a31-cta {
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:13px!important;
  min-height:51px!important;
  padding:13px clamp(18px,2vw,27px)!important;
  border:1px solid #dbab55!important;
  border-radius:9px!important;
  background:linear-gradient(180deg,var(--a31-button-top),var(--a31-button-bottom))!important;
  box-shadow:inset 0 1px 0 rgba(255,247,204,.76),0 8px 16px rgba(103,61,11,.12)!important;
  color:var(--a31-button-ink)!important;
  font:750 clamp(.76rem,.9vw,.92rem)/1.3 system-ui,-apple-system,sans-serif!important;
  letter-spacing:.05em!important;
  text-transform:uppercase!important;
  text-decoration:none!important;
  text-align:center!important;
  max-width:100%!important;
  transition:transform .2s ease,box-shadow .2s ease;
}
section.a31-featured a.a31-cta:hover {
  transform:translateY(-2px);
  box-shadow:inset 0 1px 0 #fff1c8,0 12px 25px rgba(103,61,11,.22)!important;
}
section.a31-featured a.a31-cta:focus-visible {outline:3px solid var(--a31-gold)!important;outline-offset:4px!important}
section.a31-featured .a31-cta svg {width:22px!important;height:22px!important;flex:none;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
section.a31-featured.a31-no-image .a31-layout {grid-template-columns:1fr!important;max-width:min(100% - 32px,1000px)}
section.a31-featured.a31-no-image .a31-text {padding:clamp(20px,3vw,42px)!important}
@media(max-width:920px) {
 section.a31-featured .a31-layout {grid-template-columns:minmax(0,.96fr) minmax(0,1.04fr)!important;gap:22px!important}
 section.a31-featured .a31-heading{font-size:clamp(2.1rem,4.6vw,3.4rem)!important}
 section.a31-featured .a31-media img {min-height:300px!important}
}
@media(max-width:700px) {
 section.a31-featured {padding-block:42px!important}
 section.a31-featured .a31-layout {grid-template-columns:minmax(0,1fr)!important;gap:0!important;padding:14px!important;border-radius:14px!important;max-width:calc(100% - 28px)!important}
 section.a31-featured .a31-media img {aspect-ratio:16 / 10!important;min-height:0!important;max-height:none!important;height:auto!important;border-radius:11px!important}
 section.a31-featured .a31-text {padding:clamp(22px,5vw,34px) 12px 18px!important}
 section.a31-featured .a31-heading{font-size:clamp(2.25rem,8vw,3.6rem)!important}
 section.a31-featured .a31-layout::before {width:270px;height:215px;right:-34px;top:35%;opacity:.30}
 section.a31-featured.a31-dark .a31-layout::before{opacity:.13}
 section.a31-featured .a31-rule {margin-bottom:19px!important}
 section.a31-featured .a31-summary,section.a31-featured .a31-text p{font-size:1.02rem!important}
}
@media(max-width:390px){section.a31-featured a.a31-cta {width:100%!important} section.a31-featured .a31-heading{font-size:2.18rem!important}}
@media(prefers-reduced-motion:reduce){section.a31-featured a.a31-cta {transition:none!important}}
