/* Native Anymag repairs. No new page masthead, palette or body typography. */
body.ae-repairs:not(.ae-modern) .post-entry {
  min-width: 0; container-type: inline-size; container-name: ae-reader;
}
body.ae-repairs:not(.ae-modern) .content-area,
body.ae-repairs:not(.ae-modern) .post-content { min-width:0; }
body.ae-repairs:not(.ae-modern) .post-content :is(.slide-title,.feat-title,.random-ttl,.post-title) {
  max-width:100%; min-width:0; overflow-wrap:anywhere; word-break:normal;
}
/* Real content height, not an absolutely-positioned headline trapped in a fixed box. */
body.ae-repairs:not(.ae-modern) .slider-area .slide-item {
  display:grid; grid-template-columns:minmax(0,1fr); align-items:end;
  position:relative; height:auto!important; min-height:360px; width:100%; isolation:isolate;
}
body.ae-repairs:not(.ae-modern) .slider-area .slide-content {
  position:absolute; inset:0; width:100%; height:100%;
}
body.ae-repairs:not(.ae-modern) .slider-area .slide-content > a {
  display:block; width:100%; height:100%;
}
body.ae-repairs:not(.ae-modern) .slider-area .post-overlay {
  pointer-events:none; z-index:1;
  background:linear-gradient(180deg,rgba(0,0,0,.02) 12%,rgba(0,0,0,.82) 100%); opacity:1;
}
body.ae-repairs:not(.ae-modern) .slider-area .slide-text {
  position:relative; inset:auto; z-index:2; grid-area:1/1; min-width:0;
  box-sizing:border-box; padding:100px 28px 28px; width:100%;
}
body.ae-repairs:not(.ae-modern) .slider-area .slide-title {width:100%;}
body.ae-repairs:not(.ae-modern) .slider-area .slide-title :is(h2,h3) {
  margin:12px 0; font-size:clamp(1.65rem,4.8cqi,2.6rem); line-height:1.16;
}
body.ae-repairs:not(.ae-modern) .slider-area .slide-title :is(h2,h3) a {
  font-size:inherit!important; line-height:inherit!important; overflow-wrap:anywhere;
}
body.ae-repairs:not(.ae-modern) .slider-area .post-meta {
  display:flex; align-items:center; flex-wrap:wrap; gap:8px;
  width:auto; height:auto; padding:0; margin:16px 0 0; list-style:none;
}
body.ae-repairs:not(.ae-modern) .slider-area .post-meta li {margin:0; float:none; max-width:100%;}
body.ae-repairs:not(.ae-modern) .slider-area .post-meta li::after {display:none;}
body.ae-repairs:not(.ae-modern) .slider-area .post-meta .author-avatar {flex:0 0 30px; margin:0;}
body.ae-repairs:not(.ae-modern) .slider-area .post-meta img {width:30px; height:30px!important; object-fit:cover; border-radius:50%;}
/* No-JS/failed-carousel fallback remains a legible stack, not invisible content. */
body.ae-repairs:not(.ae-modern) .featured-carousel:not(.owl-loaded) {display:block;}
body.ae-repairs:not(.ae-modern) .featured-carousel:not(.owl-loaded) > .slide-item + .slide-item {margin-top:24px;}
/* Featured-category block: a lead story plus content-sized supporting rows. */
body.ae-repairs:not(.ae-modern) .feat-category {
  display:grid; grid-template-columns:minmax(0,1.12fr) minmax(0,1fr); gap:20px; overflow:visible;
}
body.ae-repairs:not(.ae-modern) .feat-category > .section-title {grid-column:1/-1; margin:0 0 8px;}
body.ae-repairs:not(.ae-modern) .feat-category .feat-categ-item {
  display:grid; grid-template-columns:76px minmax(0,1fr); gap:14px; align-items:start;
  float:none; width:auto; height:auto!important; margin:0; min-width:0; grid-column:2;
}
body.ae-repairs:not(.ae-modern) .feat-category .image-part {
  position:relative; float:none; margin:0; width:100%; height:96px;
}
body.ae-repairs:not(.ae-modern) .feat-category .image-part img {
  display:block; width:100%; height:100%!important; object-fit:cover;
}
body.ae-repairs:not(.ae-modern) .feat-category .content-part,
body.ae-repairs:not(.ae-modern) .feat-category .content-part .the-content {
  position:static; display:block; float:none; width:auto; height:auto; margin:0; min-width:0;
}
body.ae-repairs:not(.ae-modern) .feat-category .content-part h5 {margin:0 0 8px; line-height:1.3;}
body.ae-repairs:not(.ae-modern) .feat-category .content-part h5 a {font-size:1.1rem; line-height:1.3;}
body.ae-repairs:not(.ae-modern) .feat-category .post-meta {
  display:flex; flex-wrap:wrap; align-items:center; gap:6px; list-style:none; padding:0; margin:8px 0 0;
}
body.ae-repairs:not(.ae-modern) .feat-category .post-meta li {margin:0; font-size:.72rem; float:none;}
body.ae-repairs:not(.ae-modern) .feat-category .post-meta li::after {display:none;}
body.ae-repairs:not(.ae-modern) .feat-category .feat-categ-item.first {
  grid-column:1; grid-row:span 3; grid-template-columns:minmax(0,1fr); align-items:end;
  gap:0; min-height:380px; isolation:isolate; position:relative;
}
body.ae-repairs:not(.ae-modern) .feat-category .first .image-part {
  position:absolute; inset:0; height:100%; z-index:-1;
}
body.ae-repairs:not(.ae-modern) .feat-category .first .overlay {
  display:block; opacity:1; background:linear-gradient(transparent,rgba(0,0,0,.84)); pointer-events:none;
}
body.ae-repairs:not(.ae-modern) .feat-category .first .content-part {padding:90px 22px 22px; box-sizing:border-box;}
body.ae-repairs:not(.ae-modern) .feat-category .first .content-part h5 a {font-size:clamp(1.35rem,3.8cqi,2rem); line-height:1.18;}
body.ae-repairs:not(.ae-modern) .feat-category .first .post-meta a {font-size:inherit;}
@container ae-reader (max-width: 640px) {
  body.ae-repairs:not(.ae-modern) .feat-category {grid-template-columns:minmax(0,1fr);}
  body.ae-repairs:not(.ae-modern) .feat-category .feat-categ-item,
  body.ae-repairs:not(.ae-modern) .feat-category .feat-categ-item.first {grid-column:1; grid-row:auto;}
  body.ae-repairs:not(.ae-modern) .feat-category .feat-categ-item.first {display:block; min-height:0;}
  body.ae-repairs:not(.ae-modern) .feat-category .first .image-part {position:relative; inset:auto; z-index:auto; height:auto; aspect-ratio:16/10;}
  body.ae-repairs:not(.ae-modern) .feat-category .first .overlay {display:none;}
  body.ae-repairs:not(.ae-modern) .feat-category .first .content-part {padding:18px 0 10px; color:inherit;}
  body.ae-repairs:not(.ae-modern) .feat-category .first .content-part :is(a,.widget-date,li) {color:inherit!important;}
}
@container ae-reader (max-width: 540px) {
  body.ae-repairs:not(.ae-modern) .slider-area .slide-item {display:block; min-height:0;}
  body.ae-repairs:not(.ae-modern) .slider-area .slide-content {position:relative; height:auto; aspect-ratio:16/10;}
  body.ae-repairs:not(.ae-modern) .slider-area .post-overlay {display:none;}
  body.ae-repairs:not(.ae-modern) .slider-area .slide-text {padding:20px 0 14px;}
  body.ae-repairs:not(.ae-modern) .slider-area .slide-title :is(h2,h3) a,
  body.ae-repairs:not(.ae-modern) .slider-area .slide-text .post-meta :is(a,span,li) {color:inherit!important;}
}
/* Navigation uses its own overlay; the existing main column never shrinks on open. */
body:not(.ae-modern).ae-has-drawer #content-header {align-items:center; gap:18px;}
body:not(.ae-modern).ae-has-drawer #content-header > .ae-trigger-wrap {flex:0 1 auto; max-width:280px;}
body:not(.ae-modern).ae-has-drawer #content-header .header-social-links {margin-right:0; flex:0 0 auto;}
body:not(.ae-modern).ae-has-drawer #content-header .hidden-sidebar-button {display:none;}
body:not(.ae-modern).ae-has-drawer #content-header .ae-explore-trigger,
body:not(.ae-modern).ae-has-drawer #content-header .ae-nav-fallback {
  font-size:.85rem; min-height:44px; padding:9px 12px;
}
@media(max-width:960px) {
  body:not(.ae-modern).ae-has-drawer #content-header > .ae-trigger-wrap {margin-left:auto; max-width:calc(100vw - 100px);}
}
/* Only affects explicitly chosen sidebar-free native templates. */
body.ae-native-reading .post-entry {max-width:850px; margin-inline:auto; float:none;}
.ae-native-saved-lines .cover-title h3 {font-size:clamp(1.3rem,2.15vw,2.3rem); line-height:1.2;}
.ae-native-saved-lines .cover-title a {color:#fff; text-decoration:none;}
body.ae-repairs .cover-title :is(h1,h3), body.ae-repairs .cover-title a {overflow-wrap:anywhere; word-break:normal;}
/* Generated (empty-body) retained editions use the same native typography. */
.ae-native-generated .ae-story-grid {display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr)); gap:24px;}
.ae-native-generated .ae-story-card {min-width:0;}
.ae-native-generated .ae-story-card img {width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;}
.ae-native-generated .ae-story-card h3 {font-family:inherit;font-size:1.25rem;line-height:1.3;margin:12px 0;overflow-wrap:anywhere;}
.ae-native-generated .ae-native-section {margin:36px 0;}
.ae-native-generated .ae-carousel {container-type:inline-size;}
.ae-native-generated .ae-feature-link {min-height:340px;}
.ae-native-generated .ae-feature-copy h2 {font-family:inherit;line-height:1.2;overflow-wrap:anywhere;}
.ae-native-generated [hidden] {display:none!important;}
@media(max-width:540px) {
  .ae-native-generated .ae-feature-link {display:block;min-height:0;}
  .ae-native-generated .ae-feature-photo {position:relative;aspect-ratio:16/10;height:auto;}
  .ae-native-generated .ae-feature-copy {position:relative;padding:20px 0;color:inherit;}
}

@media(prefers-reduced-motion:reduce) {
 body.ae-repairs:not(.ae-modern) .site-wrapper:not(.f-width) .magcontent #main-area {
   animation:none!important; left:0;
 }
}
