:root {
  --guide-petrol-900: #183f3d;
  --guide-petrol-700: #2f625d;
  --guide-sage: #dce8e2;
  --guide-terracotta: #b85c45;
  --guide-clay: #e9c6b8;
  --guide-ivory: #fbf7f0;
  --guide-sand: #e9ddce;
  --guide-ink: #26302e;
  --guide-muted: #61706d;
  --guide-line: rgba(24, 63, 61, 0.14);
  --guide-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --guide-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --guide-container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--guide-ink);
  background: var(--guide-ivory);
  font-family: var(--guide-sans);
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: inherit;
}

img,
svg {
  max-width: 100%;
}

.guide-container {
  width: min(calc(100% - 80px), var(--guide-container));
  margin: 0 auto;
}

.guide-skip-link {
  position: absolute;
  top: -64px;
  left: 18px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--guide-ivory);
  background: var(--guide-petrol-900);
  font-size: 14px;
  text-decoration: none;
}

.guide-skip-link:focus {
  top: 12px;
}

.guide-header {
  border-bottom: 1px solid var(--guide-line);
  background: rgba(251, 247, 240, 0.97);
}

.guide-header__inner {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.guide-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--guide-petrol-900);
  font-family: var(--guide-serif);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.guide-brand__mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
}

.guide-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.guide-nav__links {
  display: flex;
  align-items: center;
  gap: 19px;
}

.guide-nav__links a {
  color: var(--guide-muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.guide-nav__links a[aria-current="page"] {
  color: var(--guide-petrol-900);
  text-decoration: underline;
  text-decoration-color: var(--guide-terracotta);
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}

.guide-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 19px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--guide-ivory);
  background: var(--guide-petrol-900);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.guide-button:hover,
.guide-button:focus-visible {
  background: var(--guide-petrol-700);
}

.guide-button--light {
  color: var(--guide-petrol-900);
  background: var(--guide-ivory);
}

.guide-button--outline {
  color: var(--guide-petrol-900);
  border-color: var(--guide-petrol-900);
  background: transparent;
}

.guide-button--outline:hover,
.guide-button--outline:focus-visible {
  color: var(--guide-ivory);
  background: var(--guide-petrol-900);
}

.guide-eyebrow {
  margin: 0 0 15px;
  color: var(--guide-terracotta);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.guide-hero {
  padding: 84px 0 72px;
  background:
    radial-gradient(circle at 86% 19%, rgba(233, 198, 184, 0.74) 0 92px, transparent 93px),
    linear-gradient(120deg, var(--guide-ivory) 8%, #f1f5ef 100%);
}

.guide-hero h1,
.guide-heading,
.guide-card__title,
.guide-detail__title,
.guide-cta h2 {
  color: var(--guide-petrol-900);
  font-family: var(--guide-serif);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.guide-hero h1 {
  max-width: 800px;
  margin: 0 0 19px;
  font-size: clamp(2.7rem, 5.4vw, 4.7rem);
  line-height: 0.98;
}

.guide-hero__lead {
  max-width: 730px;
  margin: 0;
  color: var(--guide-muted);
  font-size: 1.08rem;
}

.guide-library {
  padding: 80px 0 92px;
}

.guide-library__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}

.guide-heading {
  max-width: 620px;
  margin: 0;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1.08;
}

.guide-library__note {
  max-width: 286px;
  margin: 0;
  color: var(--guide-muted);
  font-size: 0.9rem;
}

.guide-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.guide-card {
  display: grid;
  min-height: 508px;
  grid-template-rows: 250px 1fr;
  overflow: hidden;
  border: 1px solid var(--guide-line);
  border-radius: 25px;
  background: #fffdf9;
  box-shadow: 0 18px 42px rgba(24, 63, 61, 0.08);
}

.guide-card__cover {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 27px 29px 25px;
  color: var(--guide-ivory);
  background: var(--guide-petrol-900);
}

.guide-card--crisi .guide-card__cover {
  color: var(--guide-petrol-900);
  background: linear-gradient(135deg, var(--guide-sage), #eef3ee);
}

.guide-card__cover-label,
.guide-card__cover-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: inherit;
}

.guide-card__cover-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.guide-card__number {
  display: inline-grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--guide-serif);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
}

.guide-card__cover h2 {
  max-width: 360px;
  margin: 0;
  color: inherit;
  font-family: var(--guide-serif);
  font-size: clamp(1.85rem, 3vw, 2.7rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.guide-card__cover-foot {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.guide-card__line {
  width: 98px;
  height: 2px;
  background: currentColor;
  opacity: 0.72;
}

.guide-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 31px 31px 30px;
}

.guide-card__title {
  margin: 0 0 11px;
  font-size: 1.78rem;
  line-height: 1.08;
}

.guide-card__body p {
  margin: 0 0 24px;
  color: var(--guide-muted);
  font-size: 0.95rem;
}

.guide-text-link {
  margin-top: auto;
  color: var(--guide-petrol-900);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.guide-text-link span {
  color: var(--guide-terracotta);
  font-size: 1.12em;
}

.guide-cta {
  padding: 0 0 88px;
}

.guide-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 38px;
  padding: 47px 50px;
  border-radius: 27px;
  color: var(--guide-ivory);
  background: var(--guide-petrol-900);
}

.guide-cta .guide-eyebrow {
  color: var(--guide-clay);
}

.guide-cta h2 {
  margin: 0 0 9px;
  color: inherit;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1.04;
}

.guide-cta p:not(.guide-eyebrow) {
  max-width: 620px;
  margin: 0;
  color: rgba(251, 247, 240, 0.82);
  font-size: 0.96rem;
}

.guide-footer {
  padding: 28px 0;
  border-top: 1px solid var(--guide-line);
  color: var(--guide-muted);
  background: var(--guide-ivory);
  font-size: 0.8rem;
}

.guide-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.guide-footer a {
  color: inherit;
}

.guide-detail-hero {
  padding: 66px 0 60px;
  background: linear-gradient(120deg, var(--guide-ivory) 8%, #f1f5ef 100%);
}

.guide-breadcrumb {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--guide-petrol-700);
  font-size: 0.87rem;
  font-weight: 800;
  text-decoration: none;
}

.guide-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.52fr);
  align-items: end;
  gap: 52px;
}

.guide-detail__title {
  margin: 0;
  font-size: clamp(2.5rem, 4.7vw, 4.25rem);
  line-height: 0.99;
}

.guide-detail__intro {
  margin: 0;
  color: var(--guide-muted);
  font-size: 1.03rem;
}

.guide-reader-section {
  padding: 74px 0;
}

.guide-reader-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 26px;
}

.guide-reader-heading h2 {
  margin: 0;
  color: var(--guide-petrol-900);
  font-family: var(--guide-serif);
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.guide-reader-heading p {
  max-width: 340px;
  margin: 0;
  color: var(--guide-muted);
  font-size: 0.9rem;
}

.guide-reader {
  overflow: hidden;
  border: 1px solid var(--guide-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(24, 63, 61, 0.07);
}

.guide-reader iframe {
  display: block;
  width: 100%;
  height: 780px;
  border: 0;
}

.guide-reader__fallback {
  padding: 24px;
  color: var(--guide-muted);
}

.guide-reader-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 20px;
}

.guide-reader-actions p {
  width: 100%;
  margin: 0;
  color: var(--guide-muted);
  font-size: 0.88rem;
}

.guide-context {
  padding: 72px 0;
  background: var(--guide-sage);
}

.guide-context__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 64px;
}

.guide-context h2 {
  margin: 0;
  color: var(--guide-petrol-900);
  font-family: var(--guide-serif);
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.guide-context p {
  margin: 0 0 18px;
  color: var(--guide-petrol-900);
}

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

.guide-context li {
  position: relative;
  padding-left: 25px;
}

.guide-context li::before {
  position: absolute;
  top: 0.64em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--guide-terracotta);
  content: "";
}

@media (max-width: 900px) {
  .guide-header__inner {
    gap: 18px;
  }

  .guide-nav__links {
    gap: 13px;
  }

  .guide-nav__links a {
    font-size: 0.77rem;
  }

  .guide-detail-layout,
  .guide-context__grid {
    gap: 34px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .guide-container {
    width: min(calc(100% - 32px), var(--guide-container));
  }

  .guide-header__inner {
    min-height: 68px;
  }

  .guide-brand {
    font-size: 1rem;
  }

  .guide-brand__mark {
    width: 34px;
    height: 34px;
  }

  .guide-nav__links {
    display: none;
  }

  .guide-button {
    min-height: 44px;
    padding: 9px 14px;
    font-size: 0.75rem;
  }

  .guide-hero {
    padding: 56px 0 50px;
    background:
      radial-gradient(circle at 92% 8%, rgba(233, 198, 184, 0.68) 0 58px, transparent 59px),
      linear-gradient(120deg, var(--guide-ivory) 8%, #f1f5ef 100%);
  }

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

  .guide-hero__lead {
    font-size: 1rem;
  }

  .guide-library {
    padding: 52px 0 58px;
  }

  .guide-library__heading,
  .guide-reader-heading {
    display: block;
    margin-bottom: 24px;
  }

  .guide-library__heading h2,
  .guide-reader-heading h2 {
    margin-bottom: 12px;
  }

  .guide-library__note,
  .guide-reader-heading p {
    max-width: none;
  }

  .guide-card-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .guide-card {
    min-height: 0;
    grid-template-rows: 225px auto;
  }

  .guide-card__cover,
  .guide-card__body {
    padding-right: 23px;
    padding-left: 23px;
  }

  .guide-card__body {
    min-height: 238px;
  }

  .guide-cta {
    padding-bottom: 58px;
  }

  .guide-cta__inner {
    grid-template-columns: 1fr;
    gap: 27px;
    padding: 33px 26px;
  }

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

  .guide-footer__inner {
    display: block;
  }

  .guide-footer__inner span + span {
    display: block;
    margin-top: 6px;
  }

  .guide-detail-hero {
    padding: 46px 0 48px;
  }

  .guide-detail-layout,
  .guide-context__grid {
    grid-template-columns: 1fr;
  }

  .guide-detail-layout {
    gap: 22px;
  }

  .guide-reader-section,
  .guide-context {
    padding: 52px 0;
  }

  .guide-reader {
    border-radius: 17px;
  }

  .guide-reader iframe {
    height: 590px;
  }

  .guide-reader-actions {
    display: grid;
  }

  .guide-reader-actions .guide-button {
    width: 100%;
  }

  .guide-context__grid {
    gap: 26px;
  }
}

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