/* Guide editoriali — hub, articoli e collegamenti contestuali */

:root {
  --guide-ink: #102b31;
  --guide-muted: #566c70;
  --guide-teal: #00797b;
  --guide-teal-dark: #07565b;
  --guide-mint: #d9f3ef;
  --guide-coral: #f35b50;
  --guide-paper: #f5f8f6;
  --guide-line: rgba(15, 54, 59, .13);
  --guide-shadow: 0 24px 70px rgba(14, 45, 49, .11);
}

body[data-page="guide"] main {
  overflow: clip;
  overflow-wrap: anywhere;
}

/* Long editorial words must remain readable with enlarged text, without
   forcing the hero grid wider than the viewport. Break only when necessary. */
body[data-page="guide"] main :is(h1, h2, h3, h4) {
  overflow-wrap: anywhere;
}

.guide-hub-hero-grid > *,
.guide-hero-grid > *,
.guide-final-cta-inner > * {
  min-width: 0;
}

/* Email addresses and the legal row also need to reflow at 200% text size. */
.site-footer {
  overflow-wrap: anywhere;
}

.site-footer .footer-bottom.footer-legal a,
.site-footer .footer-bottom.footer-legal a:visited,
.site-footer .footer-grid a[href^="mailto:"] {
  overflow-wrap: anywhere;
}

.footer-bottom.footer-legal > *,
.footer-legal-row > *,
.footer-legal-links > *,
.footer-cookie-note > * {
  min-width: 0;
}

@media (max-width: 900px) {
  /* Keep the mobile menu clear when the reader enlarges the brand text. */
  .site-header .brand,
  .site-header .brand-copy {
    min-width: 0;
  }

  .site-header .brand img,
  .site-header .nav-toggle {
    flex-shrink: 0;
  }

  .site-header .brand-name {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* La voce aggiuntiva resta compatta anche alle larghezze desktop intermedie. */
@media (min-width: 901px) {
  .site-nav {
    gap: 1px;
  }

  /* Let enlarged navigation text use another row without hiding any links. */
  .site-header .site-nav {
    min-width: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .site-header .site-nav > * {
    flex-shrink: 0;
  }

  .site-nav > .nav-group > .nav-group-toggle,
  .site-nav > a.nav-primary-link:not(.button),
  .site-nav > a.nav-primary-link:not(.button):visited {
    padding-right: 11px;
    padding-left: 11px;
  }

  .nav-group[data-nav-section="guide"] .nav-submenu {
    width: min(390px, calc(100vw - 40px));
    max-height: calc(100vh - 96px);
    max-height: calc(100svh - 96px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  /* Dropdowns must fit below the header even when its links use more rows. */
  .site-header .site-nav > .nav-group > .nav-submenu {
    max-height: calc(100vh - var(--site-header-clearance, 96px) - 16px);
    max-height: calc(100svh - var(--site-header-clearance, 96px) - 16px);
    translate: var(--nav-submenu-shift, 0px) 0;
  }
}

@media (min-width: 901px) and (max-width: 1120px) {
  .site-nav > .nav-group > .nav-group-toggle,
  .site-nav > a.nav-primary-link:not(.button),
  .site-nav > a.nav-primary-link:not(.button):visited {
    padding-right: 8px;
    padding-left: 8px;
    font-size: .76rem;
  }

  .site-nav > .mobile-nav-cta {
    padding-right: 14px;
    padding-left: 14px;
  }
}

/* Cinque colonne reali nel footer: brand, servizi, guide, agenzia, territorio. */
@media (min-width: 1271px) {
  .footer-grid {
    grid-template-columns: minmax(238px, 1.12fr) repeat(3, minmax(124px, .54fr)) minmax(180px, .76fr);
    gap: clamp(16px, 2vw, 32px);
  }

  .footer-grid > div:not(.footer-brand) {
    padding-left: clamp(16px, 1.8vw, 25px);
  }
}

@media (min-width: 641px) and (max-width: 1270px) {
  .footer-grid > div:last-child {
    grid-column: auto;
  }
}

/* Hub */
.guide-hero,
.guide-hub-hero {
  /* Account for the fixed header when the reader enlarges the text. */
  --guide-header-clearance: var(--site-header-clearance, calc(3rem + 24px));
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  align-items: center;
  padding: max(clamp(116px, 14svh, 150px), var(--guide-header-clearance)) 0 clamp(40px, 7svh, 72px);
  color: #f8fffd;
  background:
    radial-gradient(circle at 82% 26%, rgba(121, 215, 213, .2), transparent 28rem),
    radial-gradient(circle at 12% 78%, rgba(243, 91, 80, .13), transparent 24rem),
    linear-gradient(138deg, #071a1f 0%, #10383e 54%, #0b272c 100%);
}

.guide-hub-hero::after,
.guide-hero::after {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  pointer-events: none;
}

.guide-hub-hero .container,
.guide-hero .container {
  position: relative;
  min-width: 0;
  z-index: 1;
}

.guide-hub-hero-grid,
.guide-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(310px, .72fr);
  align-items: center;
  gap: clamp(32px, 5vw, 68px);
}

.guide-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: var(--guide-teal-dark);
  font-size: .75rem;
  font-weight: 760;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.guide-hero .guide-kicker,
.guide-hub-hero .guide-kicker {
  color: #a7f4ef;
}

:is(.guide-hero, .guide-hub-hero, .guide-final-cta) :focus-visible {
  outline-color: var(--focus-ring-light, #c0eff2);
}

.guide-kicker::before {
  width: 31px;
  height: 2px;
  border-radius: 99px;
  background: var(--guide-coral);
  content: "";
}

.guide-hub-hero h1,
.guide-hero h1 {
  max-width: 930px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.55rem, min(5.1vw, 7.9svh), 5.35rem);
  line-height: 1.04;
  letter-spacing: -.06em;
  text-wrap: balance;
}

.guide-hero h1 {
  font-size: clamp(2.35rem, min(4.5vw, 7svh), 4.55rem);
}

.guide-hub-lead,
.guide-hero-lead {
  max-width: 780px;
  margin: clamp(19px, 2.5svh, 25px) 0 0;
  color: #c7d9d7;
  font-size: clamp(1rem, min(1.45vw, 2.35svh), 1.18rem);
  line-height: 1.58;
}

.guide-hub-index,
.guide-hero-panel {
  padding: clamp(25px, 3vw, 36px);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 25px;
  background: rgba(255, 255, 255, .055);
  box-shadow: inset 0 1px rgba(255, 255, 255, .08);
  backdrop-filter: blur(14px);
}

.guide-hub-index strong,
.guide-hero-panel > strong {
  display: block;
  margin-bottom: 15px;
  color: #fff;
  font-size: 1.02rem;
}

.guide-hub-index nav {
  display: grid;
  gap: 8px;
}

.guide-hub-index a,
.guide-hub-index a:visited {
  display: flex;
  min-height: 45px;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  color: #dff7f4;
  font-size: .9rem;
  font-weight: 680;
  text-decoration: none;
}

.guide-hub-index a:last-child {
  border-bottom: 0;
}

.guide-hub-index a::after {
  color: #ff8178;
  content: "\2193";
}

.guide-hub-intro {
  padding: clamp(60px, 8vw, 108px) 0 clamp(30px, 4vw, 52px);
  background: #fff;
}

.guide-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  gap: clamp(30px, 7vw, 90px);
}

.guide-intro-grid h2,
.guide-group-heading h2,
.guide-related-heading h2,
.guide-home-heading h2,
.guide-context-copy h2 {
  margin: 0;
  color: var(--guide-ink);
  font-size: clamp(2rem, 4vw, 4.15rem);
  line-height: 1.02;
  letter-spacing: -.052em;
  text-wrap: balance;
}

.guide-intro-copy {
  max-width: 760px;
  color: var(--guide-muted);
  font-size: 1.03rem;
  line-height: 1.8;
}

.guide-intro-copy p:first-child {
  margin-top: 0;
}

.guide-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.guide-principle {
  padding: 20px;
  border: 1px solid var(--guide-line);
  border-radius: 17px;
  background: var(--guide-paper);
}

.guide-principle b {
  display: block;
  margin-bottom: 5px;
  color: var(--guide-teal-dark);
  line-height: 1.25;
}

.guide-principle small {
  display: block;
  color: var(--guide-muted);
  font-size: .83rem;
  line-height: 1.45;
}

.guide-hub-groups {
  padding-bottom: clamp(75px, 9vw, 128px);
  background: #fff;
}

.guide-group {
  padding-top: clamp(58px, 7vw, 92px);
  scroll-margin-top: 104px;
}

.guide-group + .guide-group {
  margin-top: clamp(55px, 7vw, 92px);
  border-top: 1px solid var(--guide-line);
}

.guide-group-heading,
.guide-related-heading,
.guide-home-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, .65fr);
  align-items: end;
  gap: 30px;
  margin-bottom: 36px;
}

.guide-group-heading p,
.guide-related-heading p,
.guide-home-heading p {
  margin: 0;
  color: var(--guide-muted);
  line-height: 1.75;
}

.guide-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
}

.guide-sector-clusters {
  display: grid;
  gap: clamp(52px, 6vw, 78px);
}

.guide-sector-cluster + .guide-sector-cluster {
  padding-top: clamp(42px, 5vw, 64px);
  border-top: 1px solid var(--guide-line);
}

.guide-sector-cluster-heading {
  margin-bottom: 24px;
}

.guide-sector-cluster-heading span {
  display: block;
  margin-bottom: 7px;
  color: var(--guide-teal);
  font-size: .72rem;
  font-weight: 760;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.guide-sector-cluster-heading h3 {
  margin: 0;
  color: var(--guide-ink);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.18;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.guide-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--guide-line);
  border-radius: 24px;
  color: var(--guide-ink);
  background: #fff;
  box-shadow: 0 13px 36px rgba(17, 57, 61, .07);
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.guide-card:visited {
  color: var(--guide-ink);
}

.guide-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #d9e5e2;
}

.guide-card-media::after {
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(transparent, rgba(5, 24, 27, .3));
  content: "";
}

.guide-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.guide-image-picture {
  display: block;
}

.guide-card-media .guide-image-picture {
  width: 100%;
  height: 100%;
}

.guide-card-media .guide-image-picture img {
  object-position: var(--guide-image-position, top center);
}

.guide-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(22px, 2.4vw, 29px);
}

.guide-card-tag {
  margin-bottom: 13px;
  color: var(--guide-teal);
  font-size: .7rem;
  font-weight: 780;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.guide-card h3,
.guide-card h4 {
  margin: 0;
  color: var(--guide-ink);
  font-size: clamp(1.2rem, 1.7vw, 1.52rem);
  line-height: 1.18;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.guide-card p {
  margin: 14px 0 22px;
  color: var(--guide-muted);
  font-size: .91rem;
  line-height: 1.68;
}

.guide-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--guide-teal-dark);
  font-size: .84rem;
  font-weight: 760;
}

.guide-card-cta::after {
  content: "\2192";
}

.guide-card:is(:hover, :focus-visible) {
  border-color: rgba(0, 121, 123, .32);
  box-shadow: 0 24px 55px rgba(15, 54, 59, .14);
  transform: translateY(-5px);
}

.guide-card:is(:hover, :focus-visible) img {
  transform: scale(1.035);
}

/* Articolo */
.guide-hero-side {
  display: grid;
  min-width: 0;
  gap: clamp(14px, 2.2svh, 22px);
}

.guide-hero-panel dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr));
  gap: 18px;
  margin: 0;
}

.guide-hero-panel div {
  min-width: 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.guide-hero-panel dt {
  color: #a7cbc8;
  font-size: .69rem;
  font-weight: 730;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.guide-hero-panel dd {
  margin: 6px 0 0;
  color: #f6fffd;
  font-size: .9rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.guide-hero-panel dd a,
.guide-hero-panel dd a:visited {
  color: inherit;
  text-underline-offset: 4px;
}

.guide-hero-visual {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: clamp(22px, 3vw, 34px);
  background: #17363a;
  box-shadow: 0 32px 90px rgba(0, 0, 0, .34);
}

.guide-hero-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7.15;
  object-fit: cover;
  object-position: var(--guide-image-position, top center);
}

.guide-hero-visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 22, 25, .18), transparent 50%);
  content: "";
  pointer-events: none;
}

.guide-article-shell {
  padding: clamp(64px, 8vw, 112px) 0 clamp(78px, 10vw, 140px);
  background: var(--guide-paper);
}

.guide-article-layout {
  display: grid;
  grid-template-columns: minmax(245px, .44fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(42px, 7vw, 104px);
}

.guide-toc {
  --guide-toc-top: max(112px, var(--site-header-clearance, 112px));
  position: sticky;
  min-width: 0;
  top: var(--guide-toc-top);
  padding: 27px 25px 25px;
  border: 1px solid var(--guide-line);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .94), rgba(247, 252, 250, .84));
  box-shadow: 0 18px 44px rgba(15, 54, 59, .08);
  backdrop-filter: blur(10px);
}

/* Keep long editorial indexes fully usable on medium-height desktop screens. */
@media (min-width: 1271px) and (min-height: 821px) {
  .guide-toc {
    max-height: calc(100vh - var(--guide-toc-top) - 24px);
    max-height: calc(100svh - var(--guide-toc-top) - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }
}

.guide-toc-title {
  display: block;
  margin-bottom: 16px;
  color: var(--guide-ink);
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .085em;
  text-transform: uppercase;
}

.guide-toc ol {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.guide-toc li {
  min-width: 0;
  counter-increment: toc;
}

.guide-toc ol a,
.guide-toc ol a:visited {
  position: relative;
  display: grid;
  min-height: 48px;
  height: 100%;
  grid-template-columns: max(30px, 1.875rem) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 0 -9px;
  padding: 9px;
  border-bottom: 1px solid rgba(15, 54, 59, .08);
  border-radius: 12px;
  color: #4e676b;
  font-size: clamp(.94rem, .18vw + .88rem, .98rem);
  font-weight: 680;
  line-height: 1.38;
  text-decoration: none;
  transition:
    color .2s ease,
    background-color .2s ease,
    box-shadow .2s ease,
    transform .2s ease;
}

.guide-toc ol a::before {
  display: grid;
  width: max(28px, 1.75rem);
  height: max(28px, 1.75rem);
  place-items: center;
  border: 1px solid rgba(0, 121, 123, .16);
  border-radius: 999px;
  background: rgba(217, 243, 239, .5);
  color: var(--guide-teal);
  content: counter(toc, decimal-leading-zero);
  font-size: .68rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition:
    color .2s ease,
    border-color .2s ease,
    background-color .2s ease,
    box-shadow .2s ease;
}

.guide-toc li:last-child a {
  border-bottom-color: transparent;
}

.guide-toc ol a:is(:hover, :focus-visible),
.guide-toc ol a.is-active,
.guide-toc ol a[aria-current="location"] {
  color: var(--guide-ink);
}

.guide-toc ol a:is(.is-active, [aria-current="location"]) {
  border-bottom-color: transparent;
  background: linear-gradient(135deg, rgba(217, 243, 239, .92), rgba(232, 247, 244, .58));
  box-shadow:
    inset 3px 0 0 var(--guide-coral),
    0 9px 22px rgba(0, 92, 94, .1);
  font-weight: 760;
  transform: translateX(3px);
}

.guide-toc ol a:is(.is-active, [aria-current="location"])::before {
  border-color: var(--guide-teal);
  background: var(--guide-teal);
  box-shadow: 0 5px 12px rgba(0, 121, 123, .24);
  color: #fff;
}

.guide-toc ol a:focus-visible {
  outline: 3px solid var(--guide-teal);
  outline-offset: 2px;
  border-bottom-color: transparent;
  background: rgba(217, 243, 239, .58);
}

@media (hover: hover) {
  .guide-toc ol a:not([aria-current="location"]):hover {
    border-bottom-color: transparent;
    background: rgba(217, 243, 239, .28);
    transform: translateX(2px);
  }
}

.guide-toc-contact {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 20px;
  color: var(--guide-teal-dark);
  font-size: .87rem;
  font-weight: 760;
}

.guide-article {
  min-width: 0;
  max-width: 850px;
}

.guide-summary {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(240px, .55fr);
  gap: 28px;
  margin-bottom: clamp(48px, 6vw, 76px);
  padding: clamp(27px, 4vw, 42px);
  border: 1px solid rgba(0, 121, 123, .18);
  border-radius: 25px;
  background: linear-gradient(135deg, #fff, #eaf6f3);
  box-shadow: var(--guide-shadow);
}

.guide-summary h2 {
  margin: 0 0 13px;
  color: var(--guide-ink);
  font-size: clamp(1.55rem, 2.7vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -.04em;
}

.guide-summary p {
  margin: 0;
  color: var(--guide-muted);
  line-height: 1.75;
}

.guide-summary ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-summary li {
  position: relative;
  padding-left: 23px;
  color: #294d50;
  font-size: .88rem;
  font-weight: 660;
  line-height: 1.5;
}

.guide-summary li::before {
  position: absolute;
  top: .55em;
  left: 0;
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--guide-coral);
  box-shadow: 0 0 0 1px rgba(243, 91, 80, .4);
  content: "";
}

.guide-section {
  padding: 0 0 clamp(52px, 7vw, 82px);
  scroll-margin-top: 116px;
}

.guide-section + .guide-section {
  padding-top: clamp(47px, 6vw, 70px);
  border-top: 1px solid var(--guide-line);
}

.guide-section-number {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--guide-teal);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.guide-section h2 {
  margin: 0 0 23px;
  color: var(--guide-ink);
  font-size: clamp(1.85rem, 3.4vw, 3.35rem);
  line-height: 1.06;
  letter-spacing: -.048em;
  text-wrap: balance;
}

.guide-section h3 {
  margin: 34px 0 13px;
  color: #173b40;
  font-size: clamp(1.18rem, 2vw, 1.48rem);
  line-height: 1.22;
  letter-spacing: -.025em;
}

.guide-section p,
.guide-section li {
  color: #435f63;
  font-size: clamp(.98rem, 1.2vw, 1.055rem);
  line-height: 1.86;
}

.guide-section p {
  margin: 0 0 19px;
}

.guide-section ul,
.guide-section ol {
  display: grid;
  gap: 11px;
  margin: 24px 0;
  padding-left: 23px;
}

.guide-section li::marker {
  color: var(--guide-teal);
  font-weight: 800;
}

.guide-section a,
.guide-section a:visited,
.guide-sources a,
.guide-sources a:visited {
  color: #006c70;
  font-weight: 680;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.guide-callout {
  position: relative;
  margin: 30px 0;
  padding: 26px 28px 26px 31px;
  overflow: hidden;
  border: 1px solid rgba(0, 121, 123, .17);
  border-radius: 18px;
  color: #21484c;
  background: #e8f5f2;
}

.guide-callout::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--guide-teal);
  content: "";
}

.guide-callout strong {
  display: block;
  margin-bottom: 6px;
  color: var(--guide-ink);
}

.guide-callout p:last-child {
  margin-bottom: 0;
}

.guide-checklist {
  margin: 29px 0;
  padding: clamp(25px, 4vw, 36px);
  border-radius: 22px;
  color: #ecfffc;
  background: #0d363b;
  box-shadow: 0 20px 55px rgba(6, 35, 39, .18);
}

.guide-checklist h3 {
  margin: 0 0 18px;
  color: #fff;
}

.guide-checklist ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-checklist li {
  position: relative;
  padding-left: 25px;
  color: #d9eeeb;
  font-size: .91rem;
  line-height: 1.58;
}

.guide-checklist li::before {
  position: absolute;
  top: .15em;
  left: 0;
  color: #79d7d5;
  content: "✓";
  font-weight: 900;
}

.guide-table-wrap {
  margin: 30px 0;
  overflow-x: auto;
  border: 1px solid var(--guide-line);
  border-radius: 17px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.guide-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: .88rem;
  /* La tabella scorre nel proprio contenitore: conserva parole intere
     nel calcolo delle colonne, senza ereditare il wrapping della pagina. */
  overflow-wrap: normal;
  word-break: normal;
}

.guide-table caption {
  padding: 16px 18px;
  color: var(--guide-ink);
  font-weight: 700;
  text-align: left;
}

.guide-table th,
.guide-table td {
  padding: 17px 18px;
  border-bottom: 1px solid var(--guide-line);
  color: #405d61;
  line-height: 1.55;
  text-align: left;
  vertical-align: top;
}

.guide-table th {
  color: #183b40;
  background: #edf6f4;
  font-size: .75rem;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.guide-table tr:last-child td {
  border-bottom: 0;
}

.guide-sources {
  margin-top: 10px;
  padding: clamp(26px, 4vw, 38px);
  border: 1px solid var(--guide-line);
  border-radius: 21px;
  background: #fff;
}

.guide-sources h2 {
  margin: 0 0 12px;
  color: var(--guide-ink);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  letter-spacing: -.035em;
}

.guide-sources > p {
  margin: 0 0 16px;
  color: var(--guide-muted);
  font-size: .89rem;
  line-height: 1.65;
}

.guide-sources ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.guide-sources li {
  color: #536b6f;
  font-size: .84rem;
  line-height: 1.55;
}

.guide-related {
  padding: clamp(72px, 9vw, 122px) 0;
  background: #fff;
}

.guide-related .guide-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-final-cta {
  padding: 0 0 clamp(76px, 10vw, 130px);
  background: #fff;
}

.guide-final-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .5fr);
  align-items: center;
  gap: 36px;
  padding: clamp(34px, 6vw, 72px);
  border-radius: clamp(24px, 3vw, 35px);
  color: #f1fffc;
  background:
    radial-gradient(circle at 90% 10%, rgba(121, 215, 213, .2), transparent 20rem),
    #0b3035;
  box-shadow: 0 28px 78px rgba(6, 35, 39, .2);
}

.guide-final-cta h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -.052em;
  text-wrap: balance;
}

.guide-final-cta p {
  max-width: 750px;
  margin: 0;
  color: #bdd2cf;
  line-height: 1.72;
}

.guide-final-cta-action {
  display: grid;
  justify-items: start;
  gap: 13px;
}

.guide-final-cta-note {
  color: #91aaa7;
  font-size: .77rem;
  line-height: 1.45;
}

/* Richiami inseriti in homepage, servizi e case study. */
.guide-home-section {
  padding: clamp(74px, 9vw, 126px) 0;
  background: #eef5f2;
}

.guide-home-section .guide-card-grid {
  margin-bottom: 30px;
}

.guide-home-actions {
  display: flex;
  justify-content: center;
}

.guide-context-section {
  padding: clamp(58px, 7vw, 92px) 0;
  border-top: 1px solid var(--guide-line);
  background: #edf5f2;
}

.guide-context-inner {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(330px, 1.15fr);
  align-items: center;
  gap: clamp(32px, 7vw, 86px);
}

.guide-context-copy h2 {
  font-size: clamp(1.8rem, 3.2vw, 3rem);
}

.guide-context-copy p {
  max-width: 640px;
  margin: 18px 0 0;
  color: var(--guide-muted);
  line-height: 1.75;
}

.guide-context-links {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  overflow-wrap: anywhere;
}

.guide-context-links a,
.guide-context-links a:visited {
  display: grid;
  min-height: 66px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 15px 19px;
  border: 1px solid var(--guide-line);
  border-radius: 15px;
  color: var(--guide-ink);
  background: #fff;
  box-shadow: 0 9px 26px rgba(15, 54, 59, .055);
  font-size: .91rem;
  font-weight: 720;
  line-height: 1.35;
  text-decoration: none;
}

.guide-context-links a::after {
  color: var(--guide-coral);
  content: "\2192";
  font-size: 1.1rem;
}

.guide-context-all {
  justify-self: start;
  margin-top: 4px;
  color: var(--guide-teal-dark) !important;
  background: transparent !important;
  box-shadow: none !important;
}

@media (max-width: 1050px) {
  .guide-card-grid,
  .guide-related .guide-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-hub-hero-grid,
  .guide-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(270px, .62fr);
    gap: 38px;
  }
}

@media (min-width: 901px) and (max-height: 760px) {
  .guide-hub-hero,
  .guide-hero {
    padding-top: max(96px, var(--guide-header-clearance));
    padding-bottom: 24px;
  }

  .guide-kicker {
    margin-bottom: 14px;
  }

  .guide-hub-hero h1 {
    font-size: clamp(2.55rem, min(4.6vw, 8.4svh), 4.25rem);
  }

  .guide-hero h1 {
    font-size: clamp(2.35rem, min(4.1vw, 7.6svh), 3.85rem);
  }

  .guide-hub-lead,
  .guide-hero-lead {
    margin-top: 16px;
    font-size: clamp(1rem, min(1.35vw, 2.55svh), 1.08rem);
    line-height: 1.5;
  }

  .guide-hub-index,
  .guide-hero-panel {
    padding: 20px 22px;
    border-radius: 20px;
  }

  .guide-hub-index strong,
  .guide-hero-panel > strong {
    margin-bottom: 11px;
  }

  .guide-hero-panel dl {
    gap: 10px 14px;
  }

  .guide-hero-panel div {
    padding-top: 10px;
  }

  .guide-hero-side {
    gap: 12px;
  }

  .guide-hero-visual img {
    aspect-ratio: 16 / 6.4;
  }
}

@media (min-width: 901px) and (max-height: 590px) {
  .guide-hub-hero,
  .guide-hero {
    padding-top: max(88px, var(--guide-header-clearance));
    padding-bottom: 12px;
  }

  .guide-kicker {
    margin-bottom: 8px;
  }

  .guide-hub-hero h1 {
    font-size: clamp(2.25rem, min(3.8vw, 8.8svh), 3.35rem);
  }

  .guide-hero h1 {
    font-size: clamp(2.15rem, min(3.3vw, 8svh), 3rem);
  }

  .guide-hub-lead,
  .guide-hero-lead {
    margin-top: 10px;
    font-size: .94rem;
    line-height: 1.38;
  }

  .guide-hub-index,
  .guide-hero-panel {
    padding: 13px 15px;
    border-radius: 16px;
  }

  .guide-hub-index strong,
  .guide-hero-panel > strong {
    margin-bottom: 6px;
    font-size: .9rem;
  }

  .guide-hero-panel dl {
    gap: 6px 10px;
  }

  .guide-hero-panel div {
    padding-top: 6px;
  }

  .guide-hero-panel dd {
    margin-top: 3px;
    font-size: .82rem;
    line-height: 1.28;
  }

  .guide-hub-index nav {
    gap: 3px;
  }

  .guide-hub-index a,
  .guide-hub-index a:visited {
    min-height: 34px;
    padding-block: 4px;
    font-size: .82rem;
  }

  .guide-hero-side {
    gap: 8px;
  }

  .guide-hero-visual {
    height: clamp(54px, 12svh, 68px);
  }

  .guide-hero-visual :is(.guide-image-picture, img) {
    display: block;
    width: 100%;
    height: 100%;
  }

  .guide-hero-visual img {
    aspect-ratio: auto;
  }
}

@media (min-width: 901px) and (max-height: 820px) {
  .guide-toc {
    position: static;
  }
}

@media (min-width: 901px) and (max-width: 1270px) {
  .guide-article-layout {
    grid-template-columns: 1fr;
  }

  .guide-toc {
    position: static;
    order: -1;
  }

  .guide-toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
  }

  .guide-article {
    width: 100%;
    max-width: 850px;
    justify-self: center;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .guide-intro-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .guide-hub-hero,
  .guide-hero {
    padding-top: max(122px, var(--guide-header-clearance));
  }

  .guide-hub-hero-grid,
  .guide-hero-grid,
  .guide-intro-grid,
  .guide-group-heading,
  .guide-related-heading,
  .guide-home-heading,
  .guide-context-inner,
  .guide-final-cta-inner {
    grid-template-columns: 1fr;
  }

  .guide-hub-index,
  .guide-hero-panel {
    width: min(100%, 630px);
  }

  .guide-principles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .guide-article-layout {
    grid-template-columns: 1fr;
  }

  .guide-toc {
    position: static;
    order: -1;
  }

  .guide-toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
  }

  .guide-article {
    max-width: none;
  }

  .guide-context-links {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .guide-toc ol {
    grid-template-columns: 1fr;
  }

  .guide-toc ol a,
  .guide-toc ol a:visited {
    min-height: 50px;
    font-size: .96rem;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .guide-hub-hero-grid,
  .guide-hero-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(250px, .68fr);
    align-items: center;
    gap: 28px;
  }

  .guide-hub-index,
  .guide-hero-panel {
    width: 100%;
    padding: 22px;
    border-radius: 20px;
  }

  .guide-hub-index strong,
  .guide-hero-panel > strong {
    margin-bottom: 12px;
  }

  .guide-hero-panel dl {
    gap: 12px;
  }

  .guide-hero-panel div {
    padding-top: 12px;
  }

  .guide-hub-hero h1 {
    font-size: clamp(2.55rem, 5.8vw, 3.55rem);
  }

  .guide-hero h1 {
    font-size: clamp(2.3rem, 5vw, 3.1rem);
  }

  .guide-hub-lead,
  .guide-hero-lead {
    margin-top: 20px;
    font-size: 1rem;
    line-height: 1.52;
  }

  .guide-hero-side {
    gap: 16px;
  }
}

/* Nel pannello editoriale tablet il dominio deve restare su una sola riga
   dopo il punto di interruzione esplicito tra "Siti" e "Professionali.net". */
@media (min-width: 641px) and (max-width: 839px) {
  .guide-hero-panel a[rel="author"] {
    font-size: .76rem;
    letter-spacing: -.025em;
  }
}

@media (min-width: 641px) and (max-width: 900px) and (max-height: 760px) {
  .guide-hub-hero,
  .guide-hero {
    padding-top: max(92px, var(--guide-header-clearance));
    padding-bottom: 20px;
  }

  .guide-kicker {
    margin-bottom: 12px;
  }

  .guide-hub-hero h1 {
    font-size: clamp(2.35rem, 5.5vw, 3.2rem);
  }

  .guide-hero h1 {
    font-size: clamp(2.2rem, 4.6vw, 2.8rem);
  }

  .guide-hub-lead,
  .guide-hero-lead {
    margin-top: 14px;
    font-size: .95rem;
    line-height: 1.45;
  }

  .guide-hub-index,
  .guide-hero-panel {
    padding: 17px 19px;
    border-radius: 18px;
  }

  .guide-hub-index strong,
  .guide-hero-panel > strong {
    margin-bottom: 8px;
  }

  .guide-hero-panel dl {
    gap: 8px 10px;
  }

  .guide-hero-panel div {
    padding-top: 8px;
  }

  .guide-hub-index nav {
    gap: 4px;
  }

  .guide-hub-index a,
  .guide-hub-index a:visited {
    min-height: 38px;
    padding-block: 5px;
    font-size: .84rem;
  }

  .guide-hero-side {
    gap: 10px;
  }

  .guide-hero-visual img {
    aspect-ratio: 16 / 6.4;
  }
}

@media (min-width: 641px) and (max-width: 900px) and (max-height: 650px) {
  .guide-hub-hero,
  .guide-hero {
    padding-top: max(88px, var(--guide-header-clearance));
    padding-bottom: 12px;
  }

  .guide-kicker {
    margin-bottom: 8px;
  }

  .guide-hub-hero-grid,
  .guide-hero-grid {
    grid-template-columns: minmax(0, 1.16fr) minmax(235px, .64fr);
    gap: 22px;
  }

  .guide-hub-hero h1 {
    font-size: clamp(2.25rem, 5vw, 3rem);
  }

  .guide-hero h1 {
    font-size: clamp(2.1rem, 4.3vw, 2.55rem);
  }

  .guide-hub-lead,
  .guide-hero-lead {
    margin-top: 10px;
    font-size: .94rem;
    line-height: 1.38;
  }

  .guide-hub-index,
  .guide-hero-panel {
    padding: 13px 15px;
    border-radius: 16px;
  }

  .guide-hub-index strong,
  .guide-hero-panel > strong {
    margin-bottom: 6px;
    font-size: .9rem;
  }

  .guide-hero-panel dl {
    gap: 6px 8px;
  }

  .guide-hero-panel div {
    padding-top: 6px;
  }

  .guide-hero-panel dd {
    margin-top: 3px;
    font-size: .82rem;
    line-height: 1.28;
  }

  .guide-hub-index nav {
    gap: 3px;
  }

  .guide-hub-index a,
  .guide-hub-index a:visited {
    min-height: 34px;
    padding-block: 4px;
    font-size: .82rem;
  }

  .guide-hero-side {
    gap: 8px;
  }

  .guide-hero-visual {
    height: clamp(54px, 12svh, 68px);
  }

  .guide-hero-visual :is(.guide-image-picture, img) {
    display: block;
    width: 100%;
    height: 100%;
  }

  .guide-hero-visual img {
    aspect-ratio: auto;
  }
}

@media (max-width: 700px) {
  .guide-card-grid,
  .guide-related .guide-card-grid,
  .guide-principles,
  .guide-summary,
  .guide-checklist ul {
    grid-template-columns: 1fr;
  }

  .guide-summary {
    gap: 24px;
  }

  .guide-final-cta-action .button {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .guide-hero-visual img {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 520px) {
  .guide-hub-hero,
  .guide-hero {
    padding: max(110px, var(--guide-header-clearance)) 0 62px;
  }

  .guide-hub-hero h1,
  .guide-hero h1 {
    line-height: 1.05;
  }

  .guide-hub-hero h1 {
    font-size: clamp(2.1rem, 9vw, 2.55rem);
  }

  .guide-hero h1 {
    font-size: clamp(2.1rem, 9vw, 2.35rem);
  }

  .guide-hub-lead,
  .guide-hero-lead {
    margin-top: 21px;
    font-size: .98rem;
  }

  .guide-hub-index,
  .guide-hero-panel,
  .guide-summary,
  .guide-toc,
  .guide-sources {
    padding: 22px 19px;
    border-radius: 18px;
  }

  .guide-hero-panel dl,
  .guide-toc ol {
    grid-template-columns: 1fr;
  }

  .guide-hero-panel div {
    padding-top: 12px;
  }

  .guide-hero-visual img {
    aspect-ratio: 4 / 3;
  }

  .guide-card {
    border-radius: 19px;
  }

  .guide-article-shell {
    padding-top: 48px;
  }

  .guide-section {
    scroll-margin-top: 88px;
  }

  .guide-callout {
    padding: 22px 20px 22px 24px;
  }

  .guide-table {
    min-width: 560px;
  }

  .guide-final-cta-inner {
    padding: 30px 22px;
  }

  .guide-context-links a,
  .guide-context-links a:visited {
    min-height: 58px;
    padding: 13px 15px;
    font-size: .85rem;
  }

}

@media (max-width: 360px) {
  .guide-card-body {
    padding: 20px 17px;
  }

  .guide-context-links a,
  .guide-context-links a:visited {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}

/* Il pannello editoriale usa lo spazio pareggiato dalla griglia per offrire
   un punto chiave specifico e un collegamento diretto alla sezione utile. */
.guide-hero-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.guide-hero-insight {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: clamp(132px, 12vw, 176px);
  flex: 1 1 auto;
  align-content: center;
  gap: 10px;
  margin-top: clamp(22px, 3vw, 30px);
  padding: clamp(18px, 2vw, 24px);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(167, 244, 239, .18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(167, 244, 239, .15), rgba(167, 244, 239, 0) 88px),
    linear-gradient(135deg, rgba(167, 244, 239, .13), rgba(68, 174, 173, .055));
  box-shadow: inset 0 1px rgba(255, 255, 255, .07);
}

.guide-hero-insight h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #b9efea;
  font-size: .71rem;
  font-weight: 790;
  letter-spacing: .11em;
  line-height: 1.25;
  text-transform: uppercase;
}

.guide-hero-insight h2 .ui-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  color: #8ce5df;
}

body[data-page="guide"] .guide-hero-insight p {
  margin: 0;
  color: #f7fffd;
  font-size: clamp(.92rem, .3vw + .84rem, 1rem);
  font-weight: 570;
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.guide-hero-insight a,
.guide-hero-insight a:visited {
  display: inline-flex;
  width: fit-content;
  min-height: 32px;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  color: #b9efea;
  font-size: .81rem;
  font-weight: 760;
  line-height: 1.35;
  text-decoration-color: rgba(185, 239, 234, .58);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  overflow-wrap: anywhere;
}

.guide-hero-insight a .ui-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  transition: transform .2s ease;
}

.guide-hero-insight a:is(:hover, :focus-visible) {
  color: #fff;
  text-decoration-color: currentColor;
}

.guide-hero-insight a:is(:hover, :focus-visible) .ui-icon {
  transform: translateX(3px);
}

@media (min-width: 641px) and (max-height: 760px) {
  .guide-hero-insight {
    min-height: 0;
    gap: 6px;
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 14px;
  }

  .guide-hero-insight h2 {
    gap: 7px;
    font-size: .64rem;
  }

  .guide-hero-insight h2 .ui-icon {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
  }

  body[data-page="guide"] .guide-hero-insight p {
    font-size: .86rem;
    line-height: 1.34;
  }

  .guide-hero-insight a,
  .guide-hero-insight a:visited {
    font-size: .76rem;
  }
}

@media (max-width: 640px) {
  .guide-hero-insight {
    min-height: 0;
    flex: none;
    margin-top: 20px;
    padding: 18px;
  }

  .guide-hero-insight a,
  .guide-hero-insight a:visited {
    min-height: 44px;
  }
}

@media (max-width: 360px) {
  .guide-hero-insight {
    padding: 16px;
    border-radius: 15px;
  }

  body[data-page="guide"] main .guide-hero-insight h2 {
    font-size: .66rem !important;
    letter-spacing: .08em;
  }

  body[data-page="guide"] .guide-hero-insight p {
    font-size: .9rem;
  }
}

/* Nelle guide l'immagine editoriale occupa una riga completa della hero.
   Le sorgenti sono 16:9 su desktop/tablet e 4:3 su mobile: mantenendo il loro
   rapporto reale mostriamo l'intera scena senza tagli o ingrandimenti. */
.guide-hero-grid {
  align-items: start;
  row-gap: clamp(24px, 3vw, 38px);
}

.guide-hero-grid > .guide-hero-side {
  display: contents;
}

.guide-hero-grid > .guide-hero-side > .guide-hero-panel {
  min-width: 0;
  align-self: stretch;
}

.guide-hero-grid > .guide-hero-side > .guide-hero-visual {
  grid-column: 1 / -1;
  width: 100%;
  height: auto;
}

.guide-hero-grid > .guide-hero-side > .guide-hero-visual .guide-image-picture {
  display: block;
  width: 100%;
  height: auto;
}

.guide-hero-grid > .guide-hero-side > .guide-hero-visual img {
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

/* Follow the editorial panel within their shared row, releasing before the
   full-width photo. The measured offset keeps tall introductions readable. */
.guide-hero-grid > .guide-hero-copy-track {
  min-width: 0;
  align-self: stretch;
}

@media screen and (min-width: 768px) {
  .guide-hero-copy-track > .guide-hero-copy {
    position: sticky;
    top: var(--guide-hero-copy-top);
  }
}

/* Keep the hub photo complete too: its shared visual class otherwise inherits
   the 54px banner intended by earlier short-screen overrides. */
.guide-hub-hero-grid .guide-hub-visual,
.guide-hub-hero-grid .guide-hub-visual .guide-image-picture {
  width: 100%;
  height: auto;
}

.guide-hub-hero-grid .guide-hub-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

@media (max-width: 520px) {
  .guide-hero-grid > .guide-hero-side > .guide-hero-visual .guide-image-picture--mobile-4x3 img,
  .guide-hub-hero-grid .guide-hub-visual .guide-image-picture--mobile-4x3 img {
    aspect-ratio: 4 / 3;
  }
}

/* Compact spacing on short landscape screens while preserving the complete
   editorial photo. A fixed banner height would crop faces and project details. */
@media (min-width: 641px) and (max-height: 760px) {
  .guide-hero-grid {
    row-gap: 12px;
  }

}

@media (min-width: 641px) and (max-width: 900px) and (max-height: 760px) {
  .guide-hero-grid {
    row-gap: 10px;
  }
}

@media (min-width: 901px) and (max-height: 590px),
       (min-width: 641px) and (max-width: 900px) and (max-height: 650px) {
  .guide-hero-grid {
    row-gap: 8px;
  }

}

/* Website screenshots retain their complete 16:9 composition at every viewport. */
.guide-hero-grid > .guide-hero-side > .guide-hero-visual--uncropped,
.guide-hero-grid > .guide-hero-side > .guide-hero-visual--uncropped .guide-image-picture {
  height: auto;
}

.guide-hero-grid > .guide-hero-side > .guide-hero-visual--uncropped img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
}

/* Preserve a readable single-column hero through the narrow-tablet range. */
@media (min-width: 641px) and (max-width: 767.98px) {
  .guide-hub-hero-grid,
  .guide-hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guide-card,
  .guide-card img,
  .guide-hero-insight a .ui-icon,
  .guide-toc ol a,
  .guide-toc ol a::before {
    transition-duration: .01ms !important;
    transform: none !important;
  }
}

@media (forced-colors: active) {
  .guide-hero-insight {
    border-color: CanvasText;
  }

  .guide-toc ol a:is(.is-active, [aria-current="location"]) {
    outline: 2px solid Highlight;
    outline-offset: -2px;
  }
}

@media print {
  .guide-toc,
  .guide-related,
  .guide-final-cta,
  .guide-context-section,
  .site-header,
  .site-footer {
    display: none !important;
  }

  .guide-hero,
  .guide-hub-hero {
    display: block;
    min-height: 0;
    padding: 24px 0;
    color: #111;
    background: #fff;
  }

  .guide-hero h1,
  .guide-hub-hero h1,
  .guide-hero-lead,
  .guide-hub-lead {
    color: #111;
  }

  .guide-hero-panel,
  .guide-hero-insight {
    border-color: #bbb;
    color: #111;
    background: #fff;
    box-shadow: none;
    backdrop-filter: none;
  }

  .guide-hero-panel > strong,
  .guide-hero-panel :is(dt, dd),
  body[data-page="guide"] .guide-hero-insight :is(h2, p, a, a:visited) {
    color: #111;
  }

  .guide-article-shell {
    padding: 30px 0;
    background: #fff;
  }

  .guide-article-layout {
    display: block;
  }
}

/* Return from each article to its editorial category. */
.guide-category-return { margin: 0 0 22px; color: var(--guide-muted); }
.guide-category-return a { color: var(--guide-teal-dark); text-underline-offset: 4px; font-weight: 700; }

/* Long category names must fit the navigation, including enlarged text. */
.nav-group[data-nav-section="guide"] .nav-submenu-link > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (min-width: 561px) and (max-width: 900px) {
  html.js-enabled .site-nav .nav-group[data-nav-section="guide"] .nav-submenu-list {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  }
}
