/* Calipso Web Agency — banner sponsor (E-E-A-T, self-contained, scoped) */
.calipso-ad{--cal-red:#A21A2D;--cal-red2:#C4253A;--cal-ink:#0C0908;--cal-taupe:#60534A;--cal-cream:#F5F0E8;--cal-cream2:#EDE6D9;--cal-green:#2B8A3E;
box-sizing:border-box;max-width:980px;margin:2.5rem auto;border:1px solid var(--cal-cream2);border-radius:16px;
background:linear-gradient(135deg,var(--cal-cream) 0%,#fff 60%);box-shadow:0 6px 24px rgba(12,9,8,.08);overflow:hidden;
font-family:system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:var(--cal-ink)}
.calipso-ad *{box-sizing:border-box}
.calipso-ad__label{display:block;font-size:.62rem;letter-spacing:.14em;text-transform:uppercase;color:var(--cal-taupe);
padding:.5rem 1.1rem 0;opacity:.75}
.calipso-ad__grid{display:flex;flex-wrap:wrap;align-items:center;gap:1.1rem;padding:.6rem 1.3rem 1.2rem}
.calipso-ad__logo{flex:0 0 auto;width:52px;height:auto;display:block}
.calipso-ad__body{flex:1 1 300px;min-width:220px}
.calipso-ad__h{margin:0 0 .3rem;font-size:1.12rem;line-height:1.25;font-weight:700;color:var(--cal-ink)}
.calipso-ad__p{margin:0 0 .2rem;font-size:.95rem;line-height:1.45;color:var(--cal-taupe)}
.calipso-ad__proof{margin:.35rem 0 0;font-size:.82rem;color:var(--cal-green);font-weight:600}
.calipso-ad__cta{flex:0 0 auto;display:inline-block;background:var(--cal-red);color:#fff !important;text-decoration:none;
font-weight:700;font-size:.95rem;padding:.8rem 1.4rem;border-radius:10px;white-space:nowrap;transition:background .18s,transform .18s}
.calipso-ad__cta:hover{background:var(--cal-red2);transform:translateY(-1px)}
@media(max-width:560px){.calipso-ad__grid{flex-direction:column;align-items:flex-start;text-align:left}
.calipso-ad__cta{width:100%;text-align:center}}

/* === RESPONSIVE-SAFETY V2 START ===
   Shared guardrails for static editorial sites.
   Keep this block last so it can correct legacy inline/exported layouts. */
:root {
  --rs-gutter: clamp(1rem, 4vw, 2rem);
}

html {
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  overflow-wrap: break-word;
}

*, *::before, *::after {
  box-sizing: border-box;
}

main,
article,
section,
aside,
header,
footer,
nav {
  min-width: 0;
  max-width: 100%;
}

:is(
  .container,
  .wrap,
  .container-aww,
  .hi,
  .header-inner,
  .nav-inner,
  .hero,
  .home-hero,
  .hero-inner,
  .art-header .inner,
  .section-inner,
  .cats-section,
  .why-section,
  .post-layout,
  .legal-layout,
  .about-inner,
  .footer-inner,
  .stat-strip-inner
) {
  width: 100%;
  min-width: 0;
  padding-left: max(var(--rs-gutter), env(safe-area-inset-left));
  padding-right: max(var(--rs-gutter), env(safe-area-inset-right));
}

:where([class*="grid"], [class*="layout"], [class*="columns"], [class*="row"]) > * {
  min-width: 0;
}

:where(h1, h2, h3, h4, h5, h6, p, li, a, td, th, code) {
  overflow-wrap: anywhere;
  word-break: normal;
}

img,
picture,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}

picture {
  display: block;
}

iframe,
embed,
object {
  max-width: 100%;
}

figure {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

:where(.post-hero, .hero-image, .featured-card-main__img-wrap, .featured-card-sub__img-wrap) {
  max-width: 100%;
  overflow: hidden;
}

:where(.post-hero, .hero-image, .featured-card-main__img-wrap, .featured-card-sub__img-wrap) img {
  width: 100%;
  object-fit: cover;
}

:where(.tbl-wrap, .table-wrap, .table-responsive, [class*="table-scroll"]) {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

table {
  max-width: 100%;
  border-collapse: collapse;
}

pre {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  -webkit-overflow-scrolling: touch;
}

code {
  max-width: 100%;
}

input,
select,
textarea,
button {
  max-width: 100%;
  font: inherit;
}

:where(.hero-actions, .hero-btns, .cta-group, .actions, .ck-btns, .cookie-actions, .cookie-banner-actions) {
  flex-wrap: wrap;
}

:is(
  #ck,
  .cookie-banner,
  .cookie-consent,
  .consent-banner,
  .ce-consent,
  .ce-consent__panel
) {
  max-width: 100vw;
  padding-left: max(var(--rs-gutter), env(safe-area-inset-left));
  padding-right: max(var(--rs-gutter), env(safe-area-inset-right));
}

:where(.adsbygoogle, .ad-slot, .ad-banner, .ad-leaderboard, .ad-rectangle) {
  max-width: 100% !important;
  overflow: hidden;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  table {
    display: block;
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  :is(
    button,
    input:not([type="hidden"]),
    select,
    summary,
    [role="button"],
    header a,
    .breadcrumb a,
    .art-author a,
    .img-credit a,
    .btn,
    [class*="btn-"],
    .filter-btn,
    .nav-toggle,
    .mobile-menu-btn,
    #hb,
    #nav-toggle
  ) {
    min-height: 44px;
  }

  :is(
    button,
    input[type="button"],
    input[type="submit"],
    summary,
    [role="button"],
    header a,
    .btn,
    [class*="btn-"],
    .filter-btn,
    .nav-toggle,
    .mobile-menu-btn,
    #hb,
    #nav-toggle
  ) {
    min-width: 44px;
  }

  :is(.nav-toggle, .mobile-menu-btn, #hb, #nav-toggle) {
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  :is(a.btn, a.btn-primary, a.btn-secondary, a.btn-cta, a.nav-cta) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  :is(.breadcrumb a, .art-author a, .img-credit a) {
    display: inline-flex;
    align-items: center;
  }

  :where(.ad-rectangle, .ad-slot--rectangle) {
    min-width: 0 !important;
  }
}

@media (max-width: 520px) {
  header .wrap {
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  header .wrap .brand {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  header .wrap nav {
    flex: 1 1 100%;
    justify-content: flex-start;
  }

  :is(
    .grid,
    .cards-grid,
    .cat-grid,
    .cats-grid,
    .cat-index-grid,
    .categories-grid,
    .featured-grid,
    .features-grid,
    .tools-grid,
    .related-grid,
    .footer-grid,
    .main-layout,
    .article-grid,
    .post-layout
  ) {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  :where(.hero-actions, .hero-btns, .cta-group) > * {
    max-width: 100%;
  }

  :where(.toc, .cta-box, .newsletter-inline, .author-box, blockquote) {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* === RESPONSIVE-SAFETY V2 END === */
