.courses-page .page-hero,
.course-detail-page .page-hero {
  isolation: isolate;
  border-color: rgba(215, 223, 236, .12);
  color: #fff;
  background:
    radial-gradient(ellipse at 82% 18%, rgba(119, 164, 232, .18), transparent 34%),
    radial-gradient(ellipse at 12% 100%, rgba(233, 95, 60, .16), transparent 35%),
    linear-gradient(125deg, #101d32, #172f4d 62%, #1c3858);
}

.courses-page .page-hero::after,
.course-detail-page .page-hero::after {
  border-color: rgba(218, 231, 248, .12);
  box-shadow: 0 0 0 45px rgba(218, 231, 248, .025), 0 0 0 90px rgba(218, 231, 248, .018);
}

.courses-hero-layout {
  display: grid;
  max-width: 1240px;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .62fr);
  align-items: center;
  gap: clamp(36px, 8vw, 110px);
}

.courses-hero-copy { max-width: 720px; }
.courses-page .breadcrumb { color: #c3cede; }
.courses-page .breadcrumb a:hover { color: #fff; }
.courses-page .eyebrow:not(.eyebrow-light) { color: #c3cede; }
.courses-page .page-hero h1 { max-width: 760px; color: #f7f9fc; }
.courses-page .page-hero h1 span { color: #d7f58a; }
.courses-page .page-intro { max-width: 610px; color: #c3cede; }
.courses-hero-link { margin-top: 27px; }
.courses-hero-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgba(218, 231, 248, .17);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .105), rgba(255, 255, 255, .035));
  box-shadow: 0 24px 60px rgba(5, 15, 29, .2), inset 0 1px rgba(255, 255, 255, .08);
  backdrop-filter: blur(8px);
}
.courses-hero-card::after {
  position: absolute;
  right: -56px;
  bottom: -78px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(215, 245, 138, .17);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 26px rgba(215, 245, 138, .035), 0 0 0 52px rgba(215, 245, 138, .025);
}
.courses-hero-icon {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border: 1px solid rgba(215, 245, 138, .24);
  border-radius: 13px;
  color: #d7f58a;
  background: rgba(215, 245, 138, .09);
}
.courses-hero-kicker { margin: 24px 0 10px; color: #b6c4d6; font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: .12em; }
.courses-hero-card h2 { margin: 0; color: #fff; font-size: clamp(25px, 3vw, 36px); letter-spacing: -.055em; line-height: 1.2; }
.courses-hero-card h2 span { color: #d7f58a; }
.courses-hero-flow { position: relative; z-index: 1; display: flex; margin-top: 28px; padding-top: 17px; align-items: center; gap: 12px; border-top: 1px solid rgba(218, 231, 248, .16); color: #dbe3ee; font-size: 11px; font-weight: 700; }
.courses-hero-flow i { color: #d7f58a; font-size: 10px; }

.courses-page .page-section[aria-labelledby="course-list-heading"] { padding-top: 72px; }
.courses-page .section-title-row { align-items: end; }
.courses-page .section-title-row h2 { color: #172b49; }
.courses-page .section-title-row > p { max-width: 390px; }
.courses-page .catalog-controls { padding: 14px; border: 1px solid #e2e7f0; border-radius: 15px; background: rgba(255, 255, 255, .72); box-shadow: 0 8px 26px rgba(27, 44, 75, .035); }
.courses-page .catalog-search { min-width: 250px; height: 44px; border-color: #dce3ed; border-radius: 10px; background: #fff; }
.courses-page .catalog-filter { min-height: 39px; padding-inline: 16px; border-color: #e1e6ee; color: #52617a; background: #fff; transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease; }
.courses-page .catalog-filter:hover { transform: translateY(-1px); }
.courses-page .catalog-filter[aria-pressed="true"] { border-color: #172b49; color: #fff; background: #172b49; }
.courses-page .catalog-grid { gap: 20px; }
.courses-page .catalog-card {
  position: relative;
  min-height: 398px;
  padding: 25px;
  border-color: #e2e7f0;
  border-radius: 18px;
  background: linear-gradient(155deg, #fff, #fbfcfe);
  box-shadow: 0 8px 28px rgba(27, 44, 75, .055);
}
.courses-page .catalog-card::before { position: absolute; top: 0; right: 24px; left: 24px; height: 3px; border-radius: 0 0 4px 4px; background: #e95f3c; content: ""; }
.courses-page .catalog-card-dsa::before { background: #42a181; }
.courses-page .catalog-card-c::before { background: #8873c6; }
.courses-page .catalog-card:hover { border-color: #c8d4e5; box-shadow: 0 22px 48px rgba(27, 44, 75, .11); transform: translateY(-5px); }
.courses-page .course-card-top { display: flex; margin-bottom: 22px; align-items: center; justify-content: space-between; }
.courses-page .catalog-icon { width: 53px; height: 53px; margin: 0; border: 1px solid rgba(233, 95, 60, .12); border-radius: 15px; font-size: 21px; }
.courses-page .catalog-card-dsa .catalog-icon { color: #287b70; background: #e7f5ee; }
.courses-page .catalog-card-c .catalog-icon { color: #62518f; background: #eeeafb; }
.courses-page .course-level { padding: 6px 10px; border: 1px solid #e5e9f0; border-radius: 99px; color: #647189; background: #f6f8fb; font-size: 10px; font-weight: 800; }
.courses-page .catalog-eyebrow { margin-bottom: 10px; color: #77849a; font-size: 9px; font-weight: 700; letter-spacing: .11em; }
.courses-page .catalog-card h2 { min-height: 52px; color: #172b49; font-size: 20px; line-height: 1.3; }
.courses-page .catalog-card .course-description { min-height: 68px; margin: 10px 0 0; color: #637087; font-size: 12px; line-height: 1.7; }
.courses-page .card-meta { gap: 7px; margin-top: 16px; }
.courses-page .card-meta span { padding: 6px 9px; border: 1px solid #e9edf3; border-radius: 7px; color: #53617a; background: #f5f7fa; font-size: 9px; font-weight: 700; }
.courses-page .course-preview { margin-top: auto; padding-top: 19px; }
.courses-page .course-preview summary { display: inline-flex; min-height: 27px; align-items: center; gap: 8px; color: #51617b; cursor: pointer; font-size: 11px; font-weight: 800; list-style: none; }
.courses-page .course-preview summary::-webkit-details-marker { display: none; }
.courses-page .course-preview summary::after { content: "\f078"; color: #8793a7; font-family: "Font Awesome 6 Free"; font-size: 9px; transition: transform .18s ease; }
.courses-page .course-preview[open] summary::after { transform: rotate(180deg); }
.courses-page .course-preview p { margin: 7px 0 0; color: #68758a; font-size: 11px; line-height: 1.65; }
.courses-page .catalog-action { display: flex; width: 100%; min-height: 45px; margin-top: 15px; padding: 0 14px; align-items: center; justify-content: space-between; border: 1px solid #172b49; border-radius: 10px; color: #fff; background: #172b49; font-size: 11px; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.courses-page .catalog-action:hover { border-color: #263f62; color: #fff; background: #263f62; text-decoration: none; transform: translateY(-1px); }
.courses-page .catalog-action i { color: #d7f58a; }
.courses-page .catalog-empty { padding: 22px; border: 1px dashed #cbd4e2; border-radius: 12px; text-align: center; }

.course-detail-page .page-hero-content { max-width: 1180px; padding-top: 39px; padding-bottom: 42px; }
.course-detail-page .breadcrumb { margin-bottom: 16px; color: #c3cede; }
.course-detail-page .breadcrumb a:hover { color: #fff; }
.course-detail-page .eyebrow:not(.eyebrow-light) { color: #c3cede; }
.course-detail-page .page-hero h1 { max-width: 850px; color: #f7f9fc; font-size: clamp(35px, 4.7vw, 54px); }
.course-detail-page .page-hero h1 span { color: #d7f58a; }
.course-detail-page .page-intro { max-width: 650px; margin-top: 12px; color: #c3cede; font-size: 14px; }
.course-detail-page .page-section { padding-top: 48px; }
.course-detail-page .learning-layout { grid-template-columns: minmax(0, 1fr) 292px; gap: 22px; }
.course-detail-page .learning-panel { padding: clamp(22px, 3.2vw, 38px); border-color: #e2e7f0; border-radius: 20px; background: linear-gradient(155deg, #fff, #fbfcfe); box-shadow: 0 14px 42px rgba(27, 44, 75, .07); }
.course-detail-page .course-overview { display: flex; align-items: flex-start; gap: 19px; }
.course-detail-page .course-detail-icon { display: grid; width: 62px; height: 62px; flex: 0 0 62px; place-items: center; border: 1px solid #f3d9ce; border-radius: 17px; color: #d65336; background: #fff1eb; font-size: 25px; }
.course-detail-page .course-overview-dsa .course-detail-icon { border-color: #cfe9df; color: #287b70; background: #e7f5ee; }
.course-detail-page .course-overview-c-programming .course-detail-icon { border-color: #e1d9f3; color: #62518f; background: #eeeafb; }
.course-detail-page .course-overview-copy { min-width: 0; }
.course-detail-page .course-overview-eyebrow { margin: 1px 0 9px; color: #758198; }
.course-detail-page .learning-panel h2 { color: #172b49; font-size: clamp(25px, 3.2vw, 37px); letter-spacing: -.055em; line-height: 1.15; }
.course-detail-page .course-description { margin: 9px 0 0; color: #637087; font-size: 13px; line-height: 1.7; }
.course-detail-page .learning-panel .course-outline-meta { display: inline-flex; margin: 15px 0 0; padding: 7px 10px; border: 1px solid #e4e9f0; border-radius: 8px; color: #56647d; background: #f5f7fa; font-family: var(--font-mono); font-size: 10px; }
.course-detail-page .learning-status { min-height: 0; margin-top: 18px; }
.course-detail-page .course-outline-heading { display: flex; margin-top: 30px; padding-bottom: 16px; align-items: center; gap: 12px; border-bottom: 1px solid #e7ebf1; }
.course-detail-page .course-outline-heading-icon { display: grid; width: 39px; height: 39px; flex: 0 0 39px; place-items: center; border-radius: 11px; color: #a84a30; background: #fff0e9; }
.course-detail-page .course-outline-heading-copy .eyebrow { margin: 0 0 2px; color: #758198; font-size: 9px; }
.course-detail-page .course-outline-heading h3 { margin: 0; color: #172b49; font-size: 18px; letter-spacing: -.035em; }
.course-detail-page .course-outline { gap: 10px; margin-top: 16px; }
.course-detail-page .course-section { border-color: #e1e7ef; border-radius: 12px; background: #f7f9fc; transition: border-color .18s ease, box-shadow .18s ease; }
.course-detail-page .course-section[open] { border-color: #d2dbe8; box-shadow: 0 5px 16px rgba(27, 44, 75, .035); }
.course-detail-page .course-section-heading { min-height: 68px; padding: 14px 17px; color: #223755; }
.course-detail-page .course-section-copy strong { font-size: 13px; }
.course-detail-page .course-section-copy small { color: #7a8799; font-size: 9px; }
.course-detail-page .course-section-chevron { display: grid; width: 29px; height: 29px; place-items: center; border: 1px solid #e3e8ef; border-radius: 8px; color: #66748c; background: #fff; font-size: 9px; }
.course-detail-page .course-section-lessons { border-color: #e3e8ef; }
.course-detail-page .course-section .lesson-card { padding: 15px 17px; background: #fff; }
.course-detail-page .course-section .lesson-card + .lesson-card { border-color: #edf0f4; }
.course-detail-page .course-section .lesson-number { width: 31px; height: 31px; border-radius: 9px; color: #a84a30; background: #fff0e9; font-size: 10px; }
.course-detail-page .course-section .lesson-card h3 { color: #223755; font-size: 12px; letter-spacing: -.01em; }
.course-detail-page .course-section .lesson-card p { color: #738097; font-size: 10px; line-height: 1.55; }
.course-detail-page .course-section .lesson-card small { color: #8590a1; font-size: 9px; }
.course-detail-page .lesson-actions { display: flex; grid-column: 3; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.course-detail-page .lesson-open-action { color: #263f62; background: #f5f7fa; }
.course-detail-page .lesson-open-action:hover { border-color: #263f62; background: #edf2f8; }
.course-detail-page .lesson-reader { min-width: 0; grid-column: 1 / -1; padding: 20px; border: 1px solid #e3e8ef; border-radius: 12px; background: #f8fafc; }
.course-detail-page .lesson-reader h4 { margin: 0; color: #172b49; font-size: 18px; letter-spacing: -.035em; }
.course-detail-page .lesson-reader h5 { margin: 18px 0 8px; color: #223755; font-size: 12px; }
.course-detail-page .lesson-reader .lesson-reader-intro { margin: 10px 0 0; color: #53617a; font-size: 12px; line-height: 1.75; }
.course-detail-page .lesson-example { max-width: 100%; margin: 0; padding: 16px; overflow-x: auto; border: 1px solid #263a56; border-radius: 9px; color: #e8eef7; background: #14243a; font: 12px/1.7 var(--font-mono), monospace; tab-size: 2; }
.course-detail-page .lesson-example code { white-space: pre; }
.course-detail-page .lesson-practice { margin-top: 15px; padding: 13px 15px; border-left: 3px solid #e95f3c; border-radius: 0 8px 8px 0; color: #46566f; background: #fff2ec; font-size: 11px; line-height: 1.7; }
.course-detail-page .lesson-reader-navigation { display: flex; margin-top: 16px; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.course-detail-page .lesson-reader-navigation .lesson-action { max-width: 100%; min-height: 40px; }
.course-detail-page .learning-sidebar { position: sticky; top: 96px; padding: 25px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; background: linear-gradient(155deg, #1d3858, #101d32); box-shadow: 0 18px 38px rgba(16, 29, 50, .17); }
.course-detail-page .learning-progress-kicker { color: #b9c9de; font-family: var(--font-mono); font-size: 9px; font-weight: 500; letter-spacing: .12em; }
.course-detail-page .learning-sidebar h2 { margin: 9px 0 2px; color: #fff; font-size: 23px; letter-spacing: -.045em; }
.course-detail-page .learning-progress-course { color: #d5deeb; font-size: 12px; }
.course-detail-page .learning-sidebar .progress-track { height: 9px; margin: 19px 0 13px; background: rgba(255, 255, 255, .14); }
.course-detail-page .learning-sidebar .progress-track::-webkit-progress-bar { background: rgba(255, 255, 255, .14); }
.course-detail-page .learning-progress-summary { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.course-detail-page .learning-progress-summary strong { color: #d7f58a; font-size: 28px; letter-spacing: -.06em; }
.course-detail-page .learning-progress-summary .progress-label { color: #c4cfdd !important; font-family: var(--font-display), Arial, sans-serif; font-size: 10px !important; text-align: right; }
.course-detail-page .enrollment-prompt { margin-top: 18px; padding: 16px; border: 1px solid #e3e8ef; border-radius: 12px; background: #f7f9fc; }
.course-detail-page .enrollment-prompt p { margin: 0; color: #647189; font-size: 11px; line-height: 1.6; }
.course-detail-page .enrollment-prompt .button { margin-top: 12px; }

@media (max-width: 900px) {
  .courses-hero-layout { grid-template-columns: minmax(0, 1fr) minmax(230px, .7fr); gap: 34px; }
  .courses-page .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .course-detail-page .learning-layout { grid-template-columns: minmax(0, 1fr); }
  .course-detail-page .learning-sidebar { position: static; }
}

@media (max-width: 640px) {
  .courses-hero-layout { grid-template-columns: 1fr; gap: 27px; }
  .courses-hero-card { max-width: 480px; }
  .courses-page .page-hero-content { padding-top: 46px; padding-bottom: 48px; }
  .courses-page .catalog-search { width: 100%; min-width: 0; flex: 1 1 100%; }
  .courses-page .catalog-grid { grid-template-columns: 1fr; gap: 14px; }
  .courses-page .catalog-card { min-height: 0; padding: 23px; }
  .courses-page .catalog-card h2,
  .courses-page .catalog-card .course-description { min-height: 0; }
  .courses-page .catalog-controls { align-items: stretch; }
  .courses-page .catalog-filter { flex: 1 1 auto; }
  .courses-page .page-section[aria-labelledby="course-list-heading"] { padding-top: 48px; }
  .course-detail-page .page-hero-content { padding-top: 32px; padding-bottom: 35px; }
  .course-detail-page .page-section { padding-top: 34px; }
  .course-detail-page .course-overview { gap: 13px; }
  .course-detail-page .course-detail-icon { width: 48px; height: 48px; flex-basis: 48px; border-radius: 13px; font-size: 20px; }
  .course-detail-page .course-section .lesson-card { grid-template-columns: 34px minmax(0, 1fr); gap: 11px; padding: 14px; }
  .course-detail-page .lesson-actions { grid-column: 2; justify-content: flex-start; }
  .course-detail-page .lesson-reader { padding: 15px; }
  .course-detail-page .lesson-reader-navigation { display: grid; grid-template-columns: minmax(0, 1fr); }
  .course-detail-page .lesson-reader-navigation .lesson-action { width: 100%; text-align: left; }
}

html[data-theme="dark"] body .courses-page .page-hero,
html[data-theme="dark"] body .course-detail-page .page-hero {
  border-color: rgba(215, 223, 236, .12);
  background:
    radial-gradient(ellipse at 82% 18%, rgba(119, 164, 232, .14), transparent 34%),
    radial-gradient(ellipse at 12% 100%, rgba(233, 95, 60, .12), transparent 35%),
    linear-gradient(125deg, #0d1728, #142945 62%, #18314e);
}
html[data-theme="dark"] body .courses-page .section-title-row h2 { color: #edf3fa; }
html[data-theme="dark"] body .courses-page .section-title-row > p { color: #b7c3d5; }
html[data-theme="dark"] body .courses-page .catalog-controls { border-color: #2b3b53; background: rgba(20, 33, 54, .82); }
html[data-theme="dark"] body .courses-page .catalog-search { border-color: #384964; color: #edf3fa; background: #111d30; }
html[data-theme="dark"] body .courses-page .catalog-filter { border-color: #384964; color: #c5d0df; background: #16253b; }
html[data-theme="dark"] body .courses-page .catalog-filter[aria-pressed="true"] { border-color: #d7f58a; color: #17243a; background: #d7f58a; }
html[data-theme="dark"] body .courses-page .catalog-card { border-color: #2d3e56; background: linear-gradient(155deg, #192941, #142238); box-shadow: 0 12px 30px rgba(0, 0, 0, .18); }
html[data-theme="dark"] body .courses-page .catalog-card:hover { border-color: #506887; box-shadow: 0 20px 42px rgba(0, 0, 0, .28); }
html[data-theme="dark"] body .courses-page .catalog-card h2 { color: #edf3fa; }
html[data-theme="dark"] body .courses-page .catalog-eyebrow,
html[data-theme="dark"] body .courses-page .catalog-card .course-description,
html[data-theme="dark"] body .courses-page .course-preview p { color: #b6c3d5; }
html[data-theme="dark"] body .courses-page .course-level { border-color: #384964; color: #c3cee0; background: #1d304b; }
html[data-theme="dark"] body .courses-page .card-meta span { border-color: #34445c; color: #d0daea; background: #20324c; }
html[data-theme="dark"] body .courses-page .course-preview summary { color: #d0daea; }
html[data-theme="dark"] body .courses-page .course-preview summary::after { color: #aebbd0; }
html[data-theme="dark"] body .courses-page .catalog-action { border-color: #d7f58a; color: #17243a; background: #d7f58a; }
html[data-theme="dark"] body .courses-page .catalog-action:hover { border-color: #e1f9a6; color: #17243a; background: #e1f9a6; }
html[data-theme="dark"] body .courses-page .catalog-action i { color: #17243a; }
html[data-theme="dark"] body .courses-page .catalog-empty { border-color: #384964; color: #c3cee0; }
html[data-theme="dark"] body .course-detail-page .learning-panel { border-color: #2d3e56; background: linear-gradient(155deg, #192941, #142238); }
html[data-theme="dark"] body .course-detail-page .learning-panel h2,
html[data-theme="dark"] body .course-detail-page .course-outline-heading h3 { color: #edf3fa; }
html[data-theme="dark"] body .course-detail-page .course-description { color: #b6c3d5; }
html[data-theme="dark"] body .course-detail-page .course-overview-eyebrow,
html[data-theme="dark"] body .course-detail-page .course-outline-heading-copy .eyebrow { color: #aab8cd; }
html[data-theme="dark"] body .course-detail-page .learning-panel .course-outline-meta { border-color: #34445c; color: #c4cee0; background: #20324c; }
html[data-theme="dark"] body .course-detail-page .course-outline-heading { border-color: #2d3e56; }
html[data-theme="dark"] body .course-detail-page .course-outline-heading-icon { color: #f1a187; background: #382c35; }
html[data-theme="dark"] body .course-detail-page .course-section { border-color: #31435c; background: #142238; }
html[data-theme="dark"] body .course-detail-page .course-section[open] { border-color: #536985; }
html[data-theme="dark"] body .course-detail-page .course-section-heading { color: #edf3fa; }
html[data-theme="dark"] body .course-detail-page .course-section-copy small { color: #aebbd0; }
html[data-theme="dark"] body .course-detail-page .course-section-chevron { border-color: #394b65; color: #c6d1e0; background: #1d304b; }
html[data-theme="dark"] body .course-detail-page .course-section-lessons { border-color: #31435c; }
html[data-theme="dark"] body .course-detail-page .course-section .lesson-card { border-color: #293c55; background: #192941; }
html[data-theme="dark"] body .course-detail-page .course-section .lesson-card h3 { color: #e8eef7; }
html[data-theme="dark"] body .course-detail-page .course-section .lesson-card p,
html[data-theme="dark"] body .course-detail-page .course-section .lesson-card small { color: #aebbd0; }
html[data-theme="dark"] body .course-detail-page .lesson-open-action { border-color: #3a4b64; color: #d3deec; background: #1d304a; }
html[data-theme="dark"] body .course-detail-page .lesson-open-action:hover { border-color: #8ca4c5; background: #263c58; }
html[data-theme="dark"] body .course-detail-page .lesson-reader { border-color: #34445c; background: #142238; }
html[data-theme="dark"] body .course-detail-page .lesson-reader h4,
html[data-theme="dark"] body .course-detail-page .lesson-reader h5 { color: #edf3fa; }
html[data-theme="dark"] body .course-detail-page .lesson-reader .lesson-reader-intro { color: #c4cee0; }
html[data-theme="dark"] body .course-detail-page .lesson-practice { border-color: #e78363; color: #f0d7cd; background: #342b32; }
html[data-theme="dark"] body .course-detail-page .course-section .lesson-number { color: #f1a187; background: #382c35; }
html[data-theme="dark"] body .course-detail-page .course-section .lesson-card.is-complete { border-color: #39705c; background: #193329; }
html[data-theme="dark"] body .course-detail-page .course-section .lesson-card.is-complete .lesson-number { color: #9de0c2; background: #244b3a; }
html[data-theme="dark"] body .course-detail-page .enrollment-prompt { border-color: #34445c; background: #142238; }
html[data-theme="dark"] body .course-detail-page .enrollment-prompt p { color: #c3cee0; }

@media (prefers-reduced-motion: reduce) {
  .courses-page .catalog-card,
  .courses-page .catalog-filter,
  .courses-page .catalog-action,
  .course-detail-page .course-section,
  .course-detail-page .course-section-chevron { transition: none; }
}

body:has(.article-list) .page-hero,
body:has(.guide-grid) .page-hero,
body:has(#html-note) .page-hero,
body:has(.contact-grid) .page-hero {
  isolation: isolate;
  border-color: rgba(215, 223, 236, .12);
  background:
    radial-gradient(ellipse at 82% 18%, rgba(119, 164, 232, .18), transparent 34%),
    radial-gradient(ellipse at 12% 100%, rgba(233, 95, 60, .16), transparent 35%),
    linear-gradient(125deg, #101d32, #172f4d 62%, #1c3858);
}

body:has(.article-list) .page-hero::after,
body:has(.guide-grid) .page-hero::after,
body:has(#html-note) .page-hero::after,
body:has(.contact-grid) .page-hero::after {
  border-color: rgba(218, 231, 248, .12);
  box-shadow: 0 0 0 45px rgba(218, 231, 248, .025), 0 0 0 90px rgba(218, 231, 248, .018);
}

body:has(.article-list) .breadcrumb,
body:has(.guide-grid) .breadcrumb,
body:has(#html-note) .breadcrumb,
body:has(.contact-grid) .breadcrumb { color: #c3cede; }
body:has(.article-list) .breadcrumb a:hover,
body:has(.guide-grid) .breadcrumb a:hover,
body:has(#html-note) .breadcrumb a:hover,
body:has(.contact-grid) .breadcrumb a:hover { color: #fff; }
body:has(.article-list) .page-hero .eyebrow,
body:has(.guide-grid) .page-hero .eyebrow,
body:has(#html-note) .page-hero .eyebrow,
body:has(.contact-grid) .page-hero .eyebrow { color: #c3cede; }
body:has(.article-list) .page-hero h1,
body:has(.guide-grid) .page-hero h1,
body:has(#html-note) .page-hero h1,
body:has(.contact-grid) .page-hero h1 { max-width: 820px; color: #f7f9fc; }
body:has(.article-list) .page-hero h1 span,
body:has(.guide-grid) .page-hero h1 span,
body:has(#html-note) .page-hero h1 span,
body:has(.contact-grid) .page-hero h1 span { color: #d7f58a; }
body:has(.article-list) .page-intro,
body:has(.guide-grid) .page-intro,
body:has(#html-note) .page-intro,
body:has(.contact-grid) .page-intro { color: #c3cede; }

body:has(.article-list) .section-title-row h2,
body:has(.guide-grid) .section-title-row h2,
body:has(#html-note) .section-title-row h2,
body:has(.contact-grid) .section-title-row h2 { color: #172b49; }
body:has(.article-list) .section-title-row > p,
body:has(.guide-grid) .section-title-row > p,
body:has(#html-note) .section-title-row > p,
body:has(.contact-grid) .section-title-row > p { color: #637087; }

body:has(.article-list) .resource-controls,
body:has(.guide-grid) .resource-controls,
body:has(#html-note) .resource-controls {
  display: grid;
  grid-template-columns: minmax(210px, .75fr) minmax(0, 1.6fr);
  gap: 12px 16px;
  align-items: center;
  margin-bottom: 20px;
  padding: 14px;
  border-color: #e2e7f0;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(27, 44, 75, .04);
}
body:has(.article-list) .resource-controls > .sr-only,
body:has(.guide-grid) .resource-controls > .sr-only,
body:has(#html-note) .resource-controls > .sr-only { grid-area: 1 / 1; }
body:has(.article-list) .resource-controls > .catalog-search,
body:has(.guide-grid) .resource-controls > .catalog-search,
body:has(#html-note) .resource-controls > .catalog-search { width: 100%; min-width: 0; grid-area: 1 / 1; }
body:has(.article-list) .resource-filters,
body:has(.guide-grid) .resource-filters,
body:has(#html-note) .resource-filters { grid-area: 1 / 2; }
body:has(.article-list) .resource-result-count,
body:has(.guide-grid) .resource-result-count,
body:has(#html-note) .resource-result-count { grid-area: 2 / 1 / 3 / -1; margin: 0; color: #77849a; font-size: 10px; }
body:has(.article-list) .resource-controls .catalog-filter,
body:has(.guide-grid) .resource-controls .catalog-filter,
body:has(#html-note) .resource-controls .catalog-filter { min-height: 36px; }

body:has(.article-list) .article-list { gap: 12px; }
body:has(.article-list) .article-card {
  min-height: 112px;
  padding: 20px 23px;
  border-color: #e2e7f0;
  border-radius: 15px;
  box-shadow: 0 7px 24px rgba(27, 44, 75, .045);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
body:has(.article-list) .article-card:hover { transform: translateY(-2px); border-color: #c8d4e5; box-shadow: 0 15px 34px rgba(27, 44, 75, .09); }
body:has(.article-list) .article-number { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid #f1ddd5; border-radius: 13px; color: #bd4d31; background: #fff0e9; font-family: var(--font-mono); font-size: 12px; }
body:has(.article-list) .article-card h2 { color: #192e4c; font-size: 17px; }
body:has(.article-list) .article-card p { color: #637087; font-size: 12px; line-height: 1.7; }
body:has(.article-list) .article-card a { display: inline-flex; align-items: center; gap: 8px; color: #bd4d31; }
body:has(.article-list) .article-content {
  max-width: 900px;
  margin-top: 26px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid #e2e7f0;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(27, 44, 75, .045);
}
body:has(.article-list) .article-content + .article-content { margin-top: 16px; }
body:has(.article-list) .article-content h2 { color: #192e4c; font-size: clamp(23px, 3vw, 31px); }
body:has(.article-list) .article-content p,
body:has(.article-list) .article-content li { color: #59677d; font-size: 13px; line-height: 1.8; }
body:has(.article-list) .article-content pre { padding: 18px 20px; border: 1px solid #273c50; border-radius: 12px; background: #101d32; }
body:has(.article-list) .article-card { scroll-margin-top: 100px; }
body:has(.article-list) .article-content { scroll-margin-top: 100px; }

body:has(.guide-grid) .page-section[aria-labelledby="tutorials-heading"] { padding-top: 70px; }
body:has(.guide-grid) .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
body:has(.guide-grid) .catalog-card {
  position: relative;
  min-height: 340px;
  padding: 25px;
  border-color: #e2e7f0;
  border-radius: 17px;
  background: linear-gradient(155deg, #fff, #fbfcfe);
  box-shadow: 0 8px 28px rgba(27, 44, 75, .05);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
body:has(.guide-grid) .catalog-card::before { position: absolute; top: 0; right: 23px; left: 23px; height: 3px; border-radius: 0 0 4px 4px; background: #e95f3c; content: ""; }
body:has(.guide-grid) .catalog-card:nth-child(3n + 2)::before { background: #42a181; }
body:has(.guide-grid) .catalog-card:nth-child(3n)::before { background: #8873c6; }
body:has(.guide-grid) .catalog-card:hover { transform: translateY(-4px); border-color: #c8d4e5; box-shadow: 0 18px 38px rgba(27, 44, 75, .1); }
body:has(.guide-grid) .catalog-icon { width: 49px; height: 49px; margin-bottom: 20px; border: 1px solid rgba(233, 95, 60, .12); border-radius: 14px; font-size: 20px; }
body:has(.guide-grid) .catalog-card:nth-child(3n + 2) .catalog-icon { color: #287b70; background: #e7f5ee; }
body:has(.guide-grid) .catalog-card:nth-child(3n) .catalog-icon { color: #62518f; background: #eeeafb; }
body:has(.guide-grid) .catalog-eyebrow { color: #77849a; font-size: 9px; font-weight: 700; letter-spacing: .1em; }
body:has(.guide-grid) .catalog-card h2 { min-height: 30px; color: #192e4c; font-size: 21px; }
body:has(.guide-grid) .catalog-card > p:not(.catalog-eyebrow) { min-height: 64px; color: #637087; font-size: 12px; line-height: 1.7; }
body:has(.guide-grid) .catalog-card details { margin-top: auto; padding-top: 15px; border-top: 1px solid #edf0f4; }
body:has(.guide-grid) .catalog-card summary { color: #bd4d31; font-size: 11px; }
body:has(.guide-grid) .catalog-card details p { color: #637087; font-size: 11px; line-height: 1.7; }
body:has(.guide-grid) .guide-grid { gap: 17px; }
body:has(.guide-grid) .guide-card { padding: clamp(22px, 3vw, 30px); border-radius: 17px; box-shadow: 0 8px 28px rgba(27, 44, 75, .05); }
body:has(.guide-grid) .guide-card h2 { color: #192e4c; font-size: 20px; }
body:has(.guide-grid) .guide-card p { color: #637087; font-size: 12px; }
body:has(.guide-grid) .guide-card pre { border: 1px solid #273c50; border-radius: 12px; background: #101d32; }

body:has(#html-note) .page-section[aria-labelledby="notes-heading"],
body:has(#html-note) .page-section[aria-labelledby="download-notes-heading"] { padding-top: 68px; }
body:has(#html-note) .page-section.alt-surface { border-block: 1px solid #e5e9f0; }
body:has(#html-note) .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
body:has(#html-note) .catalog-card {
  position: relative;
  min-height: 300px;
  padding: 24px;
  border-color: #e2e7f0;
  border-radius: 17px;
  background: linear-gradient(155deg, #fff, #fbfcfe);
  box-shadow: 0 8px 28px rgba(27, 44, 75, .05);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
body:has(#html-note) .catalog-card:hover { transform: translateY(-3px); border-color: #c8d4e5; box-shadow: 0 16px 34px rgba(27, 44, 75, .09); }
body:has(#html-note) .catalog-icon { width: 47px; height: 47px; margin-bottom: 18px; border-radius: 14px; }
body:has(#html-note) .catalog-eyebrow { color: #77849a; font-size: 9px; font-weight: 700; letter-spacing: .1em; }
body:has(#html-note) .catalog-card h2 { color: #192e4c; font-size: 19px; }
body:has(#html-note) .catalog-card > p:not(.catalog-eyebrow) { min-height: 53px; color: #637087; font-size: 12px; line-height: 1.7; }
body:has(#html-note) .catalog-card details { margin-top: auto; padding-top: 14px; border-top: 1px solid #edf0f4; }
body:has(#html-note) .catalog-card summary { color: #bd4d31; font-size: 11px; }
body:has(#html-note) .catalog-card details p { color: #637087; font-size: 11px; line-height: 1.65; }
body:has(#html-note) .page-section.alt-surface .section-title-row { margin-bottom: 24px; }
body:has(#html-note) .article-content {
  max-width: 900px;
  margin: 16px auto 0;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid #e2e7f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(27, 44, 75, .04);
}
body:has(#html-note) .article-content h2 { color: #192e4c; font-size: 21px; }
body:has(#html-note) .article-content p { color: #59677d; font-size: 12px; line-height: 1.8; }
body:has(#html-note) .article-content pre { overflow-x: auto; padding: 17px 19px; border: 1px solid #273c50; border-radius: 11px; color: #e5f2ea; background: #101d32; font-family: var(--font-mono); font-size: 11px; line-height: 1.75; }
body:has(#html-note) .page-section[aria-labelledby="download-notes-heading"] .catalog-card { min-height: 238px; }
body:has(#html-note) .page-section[aria-labelledby="download-notes-heading"] .catalog-action { display: flex; width: 100%; min-height: 43px; margin-top: auto; padding: 0 12px; align-items: center; justify-content: space-between; border: 1px solid #172b49; border-radius: 10px; color: #fff; background: #172b49; font-size: 11px; }
body:has(#html-note) .page-section[aria-labelledby="download-notes-heading"] .catalog-action:hover { color: #fff; background: #263f62; text-decoration: none; }

body:has(.contact-grid) .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
body:has(.contact-grid) .contact-card {
  position: relative;
  display: flex;
  min-height: 265px;
  padding: clamp(23px, 3vw, 32px);
  flex-direction: column;
  align-items: flex-start;
  border-color: #e2e7f0;
  border-radius: 17px;
  background: linear-gradient(155deg, #fff, #fbfcfe);
  box-shadow: 0 8px 28px rgba(27, 44, 75, .05);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
body:has(.contact-grid) .contact-card:hover { transform: translateY(-3px); border-color: #c8d4e5; box-shadow: 0 17px 36px rgba(27, 44, 75, .09); }
body:has(.contact-grid) .contact-card > i { display: grid; width: 49px; height: 49px; place-items: center; border: 1px solid #f1ddd5; border-radius: 14px; color: #bd4d31; background: #fff0e9; font-size: 20px; }
body:has(.contact-grid) .contact-card:nth-child(2) > i { border-color: #d4e8df; color: #287b70; background: #e7f5ee; }
body:has(.contact-grid) .contact-card:nth-child(3) > i { border-color: #e1d9f3; color: #62518f; background: #eeeafb; }
body:has(.contact-grid) .contact-card:nth-child(4) > i { border-color: #d8e2f1; color: #3a6496; background: #edf3fb; }
body:has(.contact-grid) .contact-card h2 { margin: 20px 0 7px; color: #192e4c; font-size: 20px; }
body:has(.contact-grid) .contact-card p { color: #637087; font-size: 12px; line-height: 1.7; }
body:has(.contact-grid) .contact-card .button { min-height: 42px; margin-top: auto; padding-inline: 14px; font-size: 11px; }
body:has(.contact-grid) .contact-form-card { grid-row: span 2; }
body:has(.contact-grid) .contact-form-card:hover { transform: none; }
body:has(.contact-grid) .contact-form-card h2 { margin-bottom: 14px; }
body:has(.contact-grid) .contact-form { display: grid; width: 100%; gap: 13px; }
body:has(.contact-grid) .contact-field { display: grid; gap: 6px; }
body:has(.contact-grid) .contact-field label { color: #435463; font-size: 11px; font-weight: 800; }
body:has(.contact-grid) .contact-field input,
body:has(.contact-grid) .contact-field textarea { width: 100%; min-width: 0; min-height: 42px; padding: 10px 12px; border: 1px solid #d8dde0; border-radius: 8px; color: #172b49; background: #fff; font: inherit; font-size: 12px; }
body:has(.contact-grid) .contact-field textarea { min-height: 130px; resize: vertical; }
body:has(.contact-grid) .contact-field input:focus-visible,
body:has(.contact-grid) .contact-field textarea:focus-visible { border-color: #e95f3c; outline: 2px solid rgba(233, 95, 60, .2); outline-offset: 1px; }
body:has(.contact-grid) .contact-form .contact-status { min-height: 0; margin: 0; }
body:has(.contact-grid) .contact-form .button { width: fit-content; margin: 0; }
body:has(.contact-grid) .contact-form .button:disabled { cursor: wait; opacity: .7; }
body:has(.contact-grid) .contact-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

html[data-theme="dark"] body:has(.article-list) .section-title-row h2,
html[data-theme="dark"] body:has(.guide-grid) .section-title-row h2,
html[data-theme="dark"] body:has(#html-note) .section-title-row h2,
html[data-theme="dark"] body:has(.contact-grid) .section-title-row h2 { color: #edf3fa; }
html[data-theme="dark"] body:has(.article-list) .page-hero,
html[data-theme="dark"] body:has(.guide-grid) .page-hero,
html[data-theme="dark"] body:has(#html-note) .page-hero,
html[data-theme="dark"] body:has(.contact-grid) .page-hero {
  border-color: rgba(215, 223, 236, .12);
  background:
    radial-gradient(ellipse at 82% 18%, rgba(119, 164, 232, .14), transparent 34%),
    radial-gradient(ellipse at 12% 100%, rgba(233, 95, 60, .12), transparent 35%),
    linear-gradient(125deg, #0d1728, #142945 62%, #18314e);
}
html[data-theme="dark"] body:has(.article-list) .page-hero h1,
html[data-theme="dark"] body:has(.guide-grid) .page-hero h1,
html[data-theme="dark"] body:has(#html-note) .page-hero h1,
html[data-theme="dark"] body:has(.contact-grid) .page-hero h1 { color: #f7f9fc; }
html[data-theme="dark"] body:has(.article-list) .page-hero h1 span,
html[data-theme="dark"] body:has(.guide-grid) .page-hero h1 span,
html[data-theme="dark"] body:has(#html-note) .page-hero h1 span,
html[data-theme="dark"] body:has(.contact-grid) .page-hero h1 span { color: #d7f58a; }
html[data-theme="dark"] body:has(.article-list) .page-intro,
html[data-theme="dark"] body:has(.guide-grid) .page-intro,
html[data-theme="dark"] body:has(#html-note) .page-intro,
html[data-theme="dark"] body:has(.contact-grid) .page-intro,
html[data-theme="dark"] body:has(.article-list) .breadcrumb,
html[data-theme="dark"] body:has(.guide-grid) .breadcrumb,
html[data-theme="dark"] body:has(#html-note) .breadcrumb,
html[data-theme="dark"] body:has(.contact-grid) .breadcrumb,
html[data-theme="dark"] body:has(.article-list) .page-hero .eyebrow,
html[data-theme="dark"] body:has(.guide-grid) .page-hero .eyebrow,
html[data-theme="dark"] body:has(#html-note) .page-hero .eyebrow,
html[data-theme="dark"] body:has(.contact-grid) .page-hero .eyebrow { color: #c3cede; }
html[data-theme="dark"] body:has(.article-list) .section-title-row > p,
html[data-theme="dark"] body:has(.guide-grid) .section-title-row > p,
html[data-theme="dark"] body:has(#html-note) .section-title-row > p,
html[data-theme="dark"] body:has(.contact-grid) .section-title-row > p { color: #b7c3d5; }
html[data-theme="dark"] body:has(.article-list) .resource-controls,
html[data-theme="dark"] body:has(.guide-grid) .resource-controls,
html[data-theme="dark"] body:has(#html-note) .resource-controls { border-color: #2d3e56; background: #17263e; }
html[data-theme="dark"] body:has(.article-list) .resource-result-count,
html[data-theme="dark"] body:has(.guide-grid) .resource-result-count,
html[data-theme="dark"] body:has(#html-note) .resource-result-count { color: #aebbd0; }
html[data-theme="dark"] body:has(.article-list) .article-card,
html[data-theme="dark"] body:has(.article-list) .article-content,
html[data-theme="dark"] body:has(.guide-grid) .catalog-card,
html[data-theme="dark"] body:has(.guide-grid) .guide-card,
html[data-theme="dark"] body:has(#html-note) .catalog-card,
html[data-theme="dark"] body:has(#html-note) .article-content,
html[data-theme="dark"] body:has(.contact-grid) .contact-card { border-color: #2d3e56; background: linear-gradient(155deg, #192941, #142238); box-shadow: 0 10px 28px rgba(0, 0, 0, .17); }
html[data-theme="dark"] body:has(.contact-grid) .contact-field label { color: #d3deec; }
html[data-theme="dark"] body:has(.contact-grid) .contact-field input,
html[data-theme="dark"] body:has(.contact-grid) .contact-field textarea { border-color: #3a4b64; color: #edf3fa; background: #111d30; }
html[data-theme="dark"] body:has(.article-list) .article-card:hover,
html[data-theme="dark"] body:has(.guide-grid) .catalog-card:hover,
html[data-theme="dark"] body:has(#html-note) .catalog-card:hover,
html[data-theme="dark"] body:has(.contact-grid) .contact-card:hover { border-color: #506887; box-shadow: 0 18px 38px rgba(0, 0, 0, .25); }
html[data-theme="dark"] body:has(.article-list) .article-card h2,
html[data-theme="dark"] body:has(.article-list) .article-content h2,
html[data-theme="dark"] body:has(.guide-grid) .catalog-card h2,
html[data-theme="dark"] body:has(.guide-grid) .guide-card h2,
html[data-theme="dark"] body:has(#html-note) .catalog-card h2,
html[data-theme="dark"] body:has(#html-note) .article-content h2,
html[data-theme="dark"] body:has(.contact-grid) .contact-card h2 { color: #edf3fa; }
html[data-theme="dark"] body:has(.article-list) .article-card p,
html[data-theme="dark"] body:has(.article-list) .article-content p,
html[data-theme="dark"] body:has(.article-list) .article-content li,
html[data-theme="dark"] body:has(.guide-grid) .catalog-card > p:not(.catalog-eyebrow),
html[data-theme="dark"] body:has(.guide-grid) .catalog-card details p,
html[data-theme="dark"] body:has(.guide-grid) .guide-card p,
html[data-theme="dark"] body:has(#html-note) .catalog-card > p:not(.catalog-eyebrow),
html[data-theme="dark"] body:has(#html-note) .catalog-card details p,
html[data-theme="dark"] body:has(#html-note) .article-content p,
html[data-theme="dark"] body:has(.contact-grid) .contact-card p { color: #b6c3d5; }
html[data-theme="dark"] body:has(.article-list) .article-number,
html[data-theme="dark"] body:has(.guide-grid) .catalog-icon,
html[data-theme="dark"] body:has(#html-note) .catalog-icon { border-color: #493a44; color: #f1a187; background: #382c35; }
html[data-theme="dark"] body:has(.guide-grid) .catalog-card:nth-child(3n + 2) .catalog-icon,
html[data-theme="dark"] body:has(.contact-grid) .contact-card:nth-child(2) > i { border-color: #285348; color: #9de0c2; background: #1d3836; }
html[data-theme="dark"] body:has(.guide-grid) .catalog-card:nth-child(3n) .catalog-icon,
html[data-theme="dark"] body:has(.contact-grid) .contact-card:nth-child(3) > i { border-color: #494467; color: #c4b2ff; background: #2a2941; }
html[data-theme="dark"] body:has(.contact-grid) .contact-card:nth-child(4) > i { border-color: #384b68; color: #a8c7f1; background: #233750; }
html[data-theme="dark"] body:has(.guide-grid) .catalog-card details,
html[data-theme="dark"] body:has(#html-note) .catalog-card details { border-color: #2d3e56; }
html[data-theme="dark"] body:has(.guide-grid) .catalog-card summary,
html[data-theme="dark"] body:has(#html-note) .catalog-card summary { color: #f1a187; }
html[data-theme="dark"] body:has(#html-note) .page-section.alt-surface { border-color: #26364d; background: #101a2a; }
html[data-theme="dark"] body:has(#html-note) .page-section[aria-labelledby="download-notes-heading"] .catalog-action { border-color: #d7f58a; color: #17243a; background: #d7f58a; }
html[data-theme="dark"] body:has(#html-note) .page-section[aria-labelledby="download-notes-heading"] .catalog-action:hover { color: #17243a; background: #e1f9a6; }

@media (max-width: 900px) {
  body:has(.guide-grid) .catalog-grid,
  body:has(#html-note) .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body:has(.contact-grid) .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body:has(.article-list) .resource-controls,
  body:has(.guide-grid) .resource-controls,
  body:has(#html-note) .resource-controls { grid-template-columns: 1fr; }
  body:has(.article-list) .resource-controls > .sr-only,
  body:has(.article-list) .resource-controls > .catalog-search,
  body:has(.article-list) .resource-filters,
  body:has(.article-list) .resource-result-count,
  body:has(.guide-grid) .resource-controls > .sr-only,
  body:has(.guide-grid) .resource-controls > .catalog-search,
  body:has(.guide-grid) .resource-filters,
  body:has(.guide-grid) .resource-result-count,
  body:has(#html-note) .resource-controls > .sr-only,
  body:has(#html-note) .resource-controls > .catalog-search,
  body:has(#html-note) .resource-filters,
  body:has(#html-note) .resource-result-count { grid-area: auto; }
  body:has(.article-list) .resource-controls .catalog-search,
  body:has(.guide-grid) .resource-controls .catalog-search,
  body:has(#html-note) .resource-controls .catalog-search { width: 100%; }
  body:has(.guide-grid) .catalog-grid,
  body:has(#html-note) .catalog-grid,
  body:has(.contact-grid) .contact-grid { grid-template-columns: 1fr; }
  body:has(.guide-grid) .catalog-card,
  body:has(#html-note) .catalog-card { min-height: 0; }
  body:has(.guide-grid) .catalog-card h2,
  body:has(.guide-grid) .catalog-card > p:not(.catalog-eyebrow),
  body:has(#html-note) .catalog-card > p:not(.catalog-eyebrow) { min-height: 0; }
  body:has(.article-list) .article-card { grid-template-columns: 42px minmax(0, 1fr); gap: 13px; padding: 17px; }
  body:has(.article-list) .article-card a { grid-column: 2; margin-top: 3px; }
  body:has(.contact-grid) .contact-card { min-height: 235px; }
  body:has(.contact-grid) .contact-form-card { grid-row: auto; }
}

@media (prefers-reduced-motion: reduce) {
  body:has(.article-list) .article-card,
  body:has(.guide-grid) .catalog-card,
  body:has(#html-note) .catalog-card,
  body:has(.contact-grid) .contact-card { transition: none; }
}
