@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap');

body.guides-page {
  --ink: #073b43;
  --muted: #507279;
  --mint: #b3f4cd;
  --paper: #f5fbfa;
  --line: #d3e5e3;
  --white: #fff;
  margin: 0;
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

.guides-page *,
.guides-page *::before,
.guides-page *::after,
.guide-home-section *,
.guide-home-section *::before,
.guide-home-section *::after {
  box-sizing: border-box;
}

.guides-page .wrap {
  width: min(1240px, calc(100% - 96px));
  margin-inline: auto;
}

.guides-page h1,
.guides-page h2,
.guides-page h3,
.guide-home-section h2 {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  font-weight: 750;
}

.guides-page p { margin: 0; }
.guides-page a { color: inherit; text-underline-offset: 4px; }
.guides-page img { max-width: 100%; }

.guides-page a:focus-visible,
.guides-page summary:focus-visible,
.guide-home-section a:focus-visible {
  outline: 3px solid #147e74;
  outline-offset: 5px;
  border-radius: 3px;
}

.guide-skip-link {
  position: absolute;
  z-index: 100;
  left: 20px;
  top: 12px;
  padding: 10px 18px;
  color: #073b43;
  background: #b3f4cd;
  border: 1px solid #073b43;
  border-radius: 8px;
  transform: translateY(-200%);
}

.guide-skip-link:focus { transform: translateY(0); }

.guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 112px;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}

.guides-page .brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.guides-page .brand > span {
  font-family: 'Manrope', sans-serif;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.85px;
}

.guides-page .brand-dot { color: #269b79; }
.guides-page .brand small { font-size: 0.7rem; font-weight: 650; letter-spacing: 4px; }

.guide-nav {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 26px;
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.5;
}

.guide-nav > a { text-decoration: none; }
.guide-nav > a:not(.guide-book):hover { text-decoration: underline; }
.guide-nav > a[aria-current='page'] { text-decoration: underline; text-decoration-thickness: 2px; }

.guide-book {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid #073b43;
  border-radius: 999px;
  color: #b3f4cd;
  background: #073b43;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.5;
  text-decoration: none;
}

.guides-page a.guide-book { color: var(--mint); text-decoration: none; }
.guide-book:hover { background: #145b62; }

.guide-breadcrumbs { padding-top: 26px; color: var(--muted); }
.guide-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 7px 12px; padding: 0; margin: 0; list-style: none; }
.guide-breadcrumbs li { font-size: 0.8125rem; line-height: 1.6; }
.guide-breadcrumbs li + li::before { content: '/'; margin-right: 12px; color: #6b898b; }
.guide-breadcrumbs a { text-decoration: underline; text-decoration-color: #a7c9bf; }
.guide-breadcrumbs a:hover { color: var(--ink); text-decoration-color: currentColor; }

.guide-index-hero { max-width: 960px; padding-block: 48px 44px; }
.guides-page .eyebrow,
.guide-home-section .eyebrow {
  color: #176b60;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.guide-index-hero h1,
.guide-article-header h1 {
  font-size: clamp(2.55rem, 4.3vw, 3.75rem);
  line-height: 1.14;
  letter-spacing: -2px;
  text-wrap: balance;
}

.guide-index-hero h1 { margin-top: 15px; }
.guide-lede { max-width: 800px; margin-top: 24px !important; color: var(--muted); font-size: 1.125rem; line-height: 1.8; }

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

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

.guide-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line, #d3e5e3);
  border-radius: 18px;
  background: var(--white, #fff);
  transition: border-color 160ms ease;
}

.guide-card:hover { border-color: #87b7aa; }
.guide-card-image { display: block; overflow: hidden; background: #dcefeb; }
.guide-card-image img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: center; }
.guide-card-image:focus-visible { outline-offset: -6px !important; }
.guide-card-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 24px; }
.guide-category { color: #176b60; font-size: 0.75rem; line-height: 1.6; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.guide-card h2 { margin: 12px 0 14px; font-size: 1.35rem; line-height: 1.4; font-weight: 750; letter-spacing: -0.55px; text-wrap: balance; }
.guide-card h2 a { color: #073b43; text-decoration: none; }
.guide-card h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.guide-card-description { color: var(--muted, #507279); font-size: 0.9375rem; line-height: 1.7; }
.guide-card-meta { margin-top: 20px !important; color: #49696b; font-size: 0.75rem; line-height: 1.6; }
.guide-card-link { display: inline-flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 20px; color: #176b60 !important; font-size: 0.875rem; line-height: 1.5; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }

.guide-home-section { padding-block: 70px; border-bottom: 1px solid var(--line, #d3e5e3); }
.guide-home-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 14px 36px; margin-bottom: 30px; }
.guide-home-heading .eyebrow { grid-column: 1 / -1; }
.guide-home-heading h2 { max-width: 720px; font-size: clamp(1.9rem, 3.3vw, 2.7rem); line-height: 1.2; letter-spacing: -1.25px; }
.guide-home-heading > p:not(.eyebrow) { grid-column: 1; max-width: 630px; color: var(--muted, #507279); font-size: 1rem; line-height: 1.75; }
.guide-home-heading .guide-text-link { grid-column: 2; grid-row: 2 / 4; align-self: center; color: #176b60; font-size: 0.875rem; line-height: 1.7; font-weight: 650; text-decoration: underline; text-underline-offset: 5px; }
.guide-home-section .guide-card-grid { padding-bottom: 0; }
.guide-home-section .guide-card h2 { font-size: 1.2rem; }
.guide-home-section .guide-card-copy { padding: 23px; }
.guide-home-section .guide-card-image img { aspect-ratio: 16 / 9; }
.footer a.guide-text-link { color: #176b60; font-size: 0.8125rem; text-decoration: underline; text-underline-offset: 4px; }

.guide-article-header { max-width: 1030px; padding-block: 34px 35px; }
.guide-article-header h1 { margin-top: 16px; }
.guide-byline { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 22px !important; color: #49696b; font-size: 0.8125rem; line-height: 1.7; }
.guide-hero { margin: 0 auto 54px; }
.guide-hero img { display: block; width: 100%; height: clamp(320px, 39vw, 535px); object-fit: cover; object-position: center; border: 1px solid #bfd9d3; border-radius: 20px; background: #dcefeb; }
.guide-hero figcaption { max-width: 800px; margin-top: 12px; color: #49696b; font-size: 0.8rem; line-height: 1.7; }

.guide-reading-layout { display: grid; grid-template-columns: 225px minmax(0, 730px); justify-content: center; align-items: start; gap: 68px; }
.guide-toc { position: sticky; top: 28px; padding: 20px 0 0; border-top: 2px solid #9cbfb5; }
.guide-toc h2 { margin-bottom: 12px; font-size: 0.875rem; line-height: 1.5; letter-spacing: 0; }
.guide-toc ol { display: grid; gap: 0; padding: 0; margin: 0; list-style: none; }
.guide-toc li { border-bottom: 1px solid var(--line); }
.guide-toc a { display: block; padding: 12px 0; color: #49696b; font-size: 0.8125rem; line-height: 1.6; text-decoration: none; }
.guide-toc a:hover { color: var(--ink); text-decoration: underline; }
.guide-body { min-width: 0; }
.guide-section { margin-bottom: 42px; scroll-margin-top: 28px; }
.guide-section h2,
.guide-faq > h2 { margin-bottom: 18px; font-size: clamp(1.45rem, 2.3vw, 1.85rem); line-height: 1.35; letter-spacing: -0.7px; text-wrap: balance; }
.guide-section p { margin-top: 17px; font-size: 1.0625rem; line-height: 1.85; }
.guide-section h2 + p { margin-top: 0; }
.guide-section ul { padding-left: 24px; margin: 20px 0 0; }
.guide-section li { padding-left: 5px; margin-block: 10px; font-size: 1.0625rem; line-height: 1.8; }
.guide-body a:not(.guide-book) { color: #176b60; text-decoration: underline; text-underline-offset: 4px; }
.guide-faq { margin-top: 8px; margin-bottom: 44px; scroll-margin-top: 28px; }
.guide-faq details { border-bottom: 1px solid #bed6cf; }
.guide-faq details:first-of-type { border-top: 1px solid #bed6cf; }
.guide-faq summary { padding: 19px 8px 19px 0; font-family: 'Manrope', sans-serif; font-size: 1rem; font-weight: 650; line-height: 1.6; cursor: pointer; }
.guide-faq details p { padding-bottom: 22px; color: var(--muted); font-size: 1rem; line-height: 1.8; }

.guide-inline-cta { margin-top: 38px; padding: 30px; border: 1px solid #bad8ca; border-radius: 18px; background: #e5f7ec; }
.guide-inline-cta h2 { margin-top: 12px; max-width: 540px; font-size: 1.75rem; line-height: 1.3; letter-spacing: -0.8px; }
.guide-inline-cta p:not(.eyebrow) { margin-top: 15px; color: var(--muted); font-size: 1rem; line-height: 1.75; }
.guide-inline-cta a.guide-book { margin-top: 22px; border-radius: 10px; }
.guide-sources { margin-top: 42px; padding-top: 27px; border-top: 1px solid var(--line); scroll-margin-top: 28px; }
.guide-sources h2 { font-size: 1.2rem; line-height: 1.5; letter-spacing: -0.3px; }
.guide-sources ul { display: grid; gap: 10px; padding-left: 20px; margin: 18px 0; }
.guide-sources li { padding-left: 4px; font-size: 0.875rem; line-height: 1.7; overflow-wrap: anywhere; }
.guide-source-note { color: var(--muted); font-size: 0.8125rem; line-height: 1.75; }
.guide-related { margin-top: 64px; padding-block: 48px 0; border-top: 1px solid var(--line); }
.guide-related > h2 { margin-bottom: 28px; font-size: 2rem; line-height: 1.3; letter-spacing: -1px; }
.guide-related .guide-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.guide-related .guide-card h2 { font-size: 1.25rem; }

.guide-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 30px 38px; border-top: 1px solid var(--line); }
.guide-footer .brand > span { font-size: 1rem; }
.guide-footer .brand small { font-size: 0.7rem; letter-spacing: 2.5px; }
.guide-footer p { max-width: 310px; color: var(--muted); font-size: 0.8rem; line-height: 1.7; }
.guide-footer nav { display: flex; flex-wrap: wrap; gap: 12px 20px; font-size: 0.8125rem; line-height: 1.7; }
.guide-footer nav a { text-decoration: underline; }

@media (max-width: 1100px) {
  .guides-page .wrap { width: calc(100% - 56px); }
  .guide-card-grid,
  .guide-related .guide-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .guide-reading-layout { grid-template-columns: 190px minmax(0, 730px); gap: 36px; }
  .guide-home-heading { gap: 14px 24px; }
  .guide-header { gap: 20px; }
  .guide-nav { gap: 18px; }
}

@media (max-width: 900px) {
  .guide-reading-layout { grid-template-columns: minmax(0, 730px); gap: 32px; }
  .guide-toc { position: static; padding: 22px; border: 1px solid #c7dfd5; border-radius: 14px; background: #edf8f2; }
  .guide-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 25px; }
  .guide-toc a { padding-block: 10px; }
  .guide-footer { flex-wrap: wrap; }
}

@media (max-width: 760px) {
  .guides-page .wrap { width: calc(100% - 40px); }
  .guide-header { flex-wrap: wrap; min-height: 100px; padding-block: 20px; gap: 18px 24px; }
  .guide-header .brand { flex-basis: 100%; }
  .guide-header .brand > span { font-size: 1.1rem; }
  .guide-nav { width: 100%; justify-content: space-between; gap: 12px; }
  .guide-nav .guide-book { min-height: 44px; padding: 10px 15px; font-size: 0.8125rem; }
  .guide-breadcrumbs { padding-top: 21px; }
  .guide-breadcrumbs li { font-size: 0.75rem; }
  .guide-index-hero { padding-block: 32px; }
  .guide-index-hero h1,
  .guide-article-header h1 { font-size: clamp(2.1rem, 7.8vw, 3rem); line-height: 1.15; letter-spacing: -1.3px; }
  .guide-lede { font-size: 1.0625rem; line-height: 1.8; margin-top: 20px !important; }
  .guide-card-grid,
  .guide-related .guide-card-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-bottom: 42px; }
  .guide-card-copy { padding: 24px; }
  .guide-card h2 { font-size: 1.35rem; }
  .guide-card-description { font-size: 1rem; }
  .guide-card-image img { aspect-ratio: 16 / 9; }
  .guide-home-section { padding-block: 46px; }
  .guide-home-heading { grid-template-columns: minmax(0, 1fr); gap: 13px; margin-bottom: 25px; }
  .guide-home-heading h2 { font-size: 2rem; letter-spacing: -0.9px; }
  .guide-home-heading > p:not(.eyebrow) { font-size: 0.95rem; }
  .guide-home-heading .guide-text-link { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 5px; }
  .guide-home-section .guide-card-copy { padding: 23px; }
  .guide-home-section .guide-card h2 { font-size: 1.25rem; }
  .guide-article-header { padding-block: 28px; }
  .guide-byline { margin-top: 18px !important; font-size: 0.75rem; }
  .guide-hero { margin-bottom: 33px; }
  .guide-hero img { height: auto; min-height: 220px; max-height: 380px; aspect-ratio: 4 / 3; border-radius: 15px; }
  .guide-hero figcaption { font-size: 0.75rem; }
  .guide-toc { padding: 20px; }
  .guide-toc ol { grid-template-columns: minmax(0, 1fr); }
  .guide-toc a { font-size: 0.875rem; }
  .guide-reading-layout { gap: 32px; }
  .guide-section { margin-bottom: 34px; }
  .guide-section h2,
  .guide-faq > h2 { margin-bottom: 16px; font-size: 1.5rem; letter-spacing: -0.55px; }
  .guide-section p,
  .guide-section li { font-size: 1rem; line-height: 1.85; }
  .guide-faq summary { font-size: 0.95rem; }
  .guide-inline-cta { padding: 24px; }
  .guide-inline-cta h2 { font-size: 1.6rem; }
  .guide-inline-cta a.guide-book { width: 100%; }
  .guide-related { margin-top: 44px; padding-top: 34px; }
  .guide-related > h2 { font-size: 1.7rem; margin-bottom: 23px; }
  .guide-footer { align-items: flex-start; flex-direction: column; gap: 20px; padding-block: 27px 32px; }
  .guide-footer .brand > span { font-size: 0.95rem; }
}

@media (max-width: 370px) {
  .guides-page .wrap { width: calc(100% - 28px); }
  .guide-header .brand > span { font-size: 0.95rem; }
  .guide-nav { gap: 8px; font-size: 0.8125rem; }
  .guide-card-copy { padding: 21px; }
  .guide-toc { padding: 17px; }
  .guide-inline-cta { padding: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  .guide-card { transition: none; }
}
