:root {
  --bg: #f8fcff;
  --panel: #ffffff;
  --panel-alt: #fff5ea;
  --text: #14324f;
  --muted: #5d7892;
  --accent: #47a8ff;
  --accent-2: #56d7be;
  --accent-3: #f08a2d;
  --accent-4: #f7c553;
  --border: #cfe1ee;
  --code-bg: #f2f8ff;
  --shadow: 0 12px 28px rgba(56, 98, 135, 0.12);
  --header-height: 72px;
  --sunrise-gradient: linear-gradient(100deg, #f7c553 0%, #f08a2d 35%, #47a8ff 68%, #56d7be 100%);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  font-family: Inter, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: radial-gradient(circle at top right, #fff1db, #f2f8ff 36%, var(--bg) 72%);
}

a {
  color: #1f6fb1;
  text-decoration: none;
  background-image: linear-gradient(90deg, #f7c553, #f08a2d, #47a8ff, #56d7be);
  background-repeat: no-repeat;
  background-size: 100% 1.5px;
  background-position: 0 100%;
  transition: color 0.2s ease, background-size 0.2s ease, filter 0.2s ease;
}

a:hover,
a:focus-visible {
  color: #c96a13;
  background-size: 100% 3px;
  filter: saturate(1.1);
}

main {
  flex: 1 0 auto;
}

.shell {
  width: min(1440px, 96vw);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -10000px;
  top: auto;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  background: #fff;
  color: #000;
  padding: 8px 10px;
  border-radius: 8px;
  z-index: 9999;
}

.site-header {
  overflow: hidden;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(115deg, rgba(255, 248, 236, 0.96), rgba(255, 242, 223, 0.95) 34%, rgba(234, 247, 255, 0.95) 70%, rgba(235, 255, 248, 0.95));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #f0cfa5;
  box-shadow: 0 8px 26px rgba(240, 138, 45, 0.12), 0 6px 18px rgba(71, 168, 255, 0.08);
  min-height: var(--header-height);
}

.site-header::before {
  content: "";
  position: absolute;
  left: -18%;
  top: -130%;
  width: 60%;
  height: 340%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 197, 83, 0.24) 0%, rgba(240, 138, 45, 0.16) 34%, rgba(255, 255, 255, 0) 72%);
  pointer-events: none;
}

.site-header::after {
  content: "";
  position: absolute;
  right: -8%;
  top: -120%;
  width: 38%;
  height: 300%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(71, 168, 255, 0.2) 0%, rgba(86, 215, 190, 0.14) 40%, rgba(255, 255, 255, 0) 74%);
  pointer-events: none;
}

.header-shell {
  position: relative;
  z-index: 1;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
  color: #12314f;
  padding: 6px 10px;
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.brand:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 18px rgba(240, 138, 45, 0.14);
}

.brand-logo {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 4px 10px rgba(240, 138, 45, 0.22));
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.main-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  color: #355a79;
  background-image: none;
  background: rgba(255, 255, 255, 0.62);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: #12314f;
  border-color: #e7bf87;
  background: linear-gradient(110deg, rgba(247, 197, 83, 0.28), rgba(240, 138, 45, 0.24), rgba(71, 168, 255, 0.2), rgba(86, 215, 190, 0.2));
  box-shadow: 0 8px 18px rgba(240, 138, 45, 0.18), 0 6px 14px rgba(71, 168, 255, 0.12);
  transform: translateY(-1px);
}

.main-nav a[aria-current="page"] {
  font-weight: 700;
}

.hero {
  padding: 48px 0 26px;
}

.eyebrow {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-3);
}

.hero h1 {
  margin-top: 8px;
  margin-bottom: 16px;
  line-height: 1.2;
  font-size: clamp(1.9rem, 4vw, 3rem);
  color: #12314f;
  background: var(--sunrise-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 8px 24px rgba(240, 138, 45, 0.18);
}

.cta-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.cta {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid #f3d6ad;
  border-radius: 12px;
  background: linear-gradient(130deg, #fffefc 0%, #fff2df 42%, #e9f7ff 72%, #ebfff8 100%);
  color: var(--text);
  text-decoration: none;
  background-image: none;
  box-shadow: 0 12px 28px rgba(240, 138, 45, 0.16), 0 8px 20px rgba(71, 168, 255, 0.1);
  transform: translateY(0);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.cta:hover {
  transform: translateY(-3px);
  border-color: #f08a2d;
  box-shadow: 0 16px 34px rgba(240, 138, 45, 0.24), 0 12px 24px rgba(71, 168, 255, 0.18);
  filter: saturate(1.05);
}

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(247, 197, 83, 0.14), rgba(240, 138, 45, 0.12), rgba(71, 168, 255, 0.12), rgba(86, 215, 190, 0.12));
  opacity: 0.8;
  pointer-events: none;
}

.cta-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 700;
  color: #11324f;
  box-shadow: inset 0 0 0 1px rgba(17, 50, 79, 0.16);
}

.cta-icon-a {
  background: radial-gradient(circle at 30% 30%, #fff8d7, #f7c553 65%, #efae2b 100%);
}

.cta-icon-b {
  background: radial-gradient(circle at 30% 30%, #fff0df, #f08a2d 65%, #df6f10 100%);
}

.cta-icon-c {
  background: radial-gradient(circle at 30% 30%, #eaf6ff, #47a8ff 65%, #2f85d6 100%);
}

.quick-links {
  padding-bottom: 34px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.card {
  position: relative;
  padding: 14px;
  border: 1px solid #cfe1ee;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
  text-decoration: none;
  background-image: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-3px);
  border-color: #47a8ff;
  box-shadow: 0 12px 28px rgba(71, 168, 255, 0.2), 0 8px 20px rgba(240, 138, 45, 0.16);
}

.quick-links .card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #f7c553, #f08a2d, #47a8ff, #56d7be);
}

.quick-links .card::after {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -44px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(86, 215, 190, 0.2), rgba(71, 168, 255, 0.08) 55%, rgba(255, 255, 255, 0));
  pointer-events: none;
}

.article-layout {
  padding-top: 24px;
  padding-bottom: 34px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  margin-bottom: 12px;
}

.article-content > h1:first-child {
  position: relative;
  margin-top: 0;
  margin-bottom: 20px;
  padding-bottom: 14px;
  font-size: clamp(1.7rem, 2.5vw, 2.6rem);
  color: #153858;
  background: var(--sunrise-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 8px 22px rgba(71, 168, 255, 0.14);
}

.article-content > h1:first-child::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(280px, 40%);
  height: 4px;
  border-radius: 999px;
  background: var(--sunrise-gradient);
}


.article-content h2,
.article-content h3,
.article-content h4 {
  color: #204766;
}

.article-content h2,
.article-content h3 {
  position: relative;
  padding-bottom: 6px;
  letter-spacing: 0.01em;
}

.article-content h2 {
  background: linear-gradient(95deg, #f08a2d 0%, #47a8ff 65%, #56d7be 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.article-content h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 120px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f7c553, #f08a2d, #47a8ff);
}

.article-content h3::before {
  content: "";
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  margin-right: 0.45em;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff6d6, #f7c553 42%, #f08a2d 100%);
  box-shadow: 0 0 0 3px rgba(247, 197, 83, 0.18);
  transform: translateY(-0.02em);
}

.article-content h3 {
  color: #266184;
}

.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.heading-anchor {
  margin-left: 8px;
  color: var(--muted);
  text-decoration: none;
  background-image: none;
}

.article-content pre {
  position: relative;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 42px 12px 12px;
  overflow: auto;
}

/* Prism token colors for Eleventy syntax highlighting plugin output. */
.article-content code[class*="language-"],
.article-content pre[class*="language-"] {
  color: #1d3557;
  text-shadow: none;
}

.article-content .token.comment,
.article-content .token.prolog,
.article-content .token.doctype,
.article-content .token.cdata {
  color: #6f8498;
  font-style: italic;
}

.article-content .token.punctuation {
  color: #4e647a;
}

.article-content .token.property,
.article-content .token.tag,
.article-content .token.constant,
.article-content .token.symbol,
.article-content .token.deleted {
  color: #db6d20;
}

.article-content .token.boolean,
.article-content .token.number {
  color: #0f8d9a;
}

.article-content .token.selector,
.article-content .token.attr-name,
.article-content .token.string,
.article-content .token.char,
.article-content .token.builtin,
.article-content .token.inserted {
  color: #1d8a6f;
}

.article-content .token.operator,
.article-content .token.entity,
.article-content .token.url,
.article-content .language-css .token.string,
.article-content .style .token.string {
  color: #3d7dc1;
}

.article-content .token.atrule,
.article-content .token.attr-value,
.article-content .token.keyword {
  color: #0f5fb5;
  font-weight: 600;
}

.article-content .token.function,
.article-content .token.class-name {
  color: #9a5a0b;
}

.article-content .token.regex,
.article-content .token.important,
.article-content .token.variable {
  color: #c95b58;
}

.copy-button {
  position: absolute;
  right: 10px;
  top: 10px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: #154260;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 0.8rem;
  cursor: pointer;
}

.code-language-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  border: 1px solid var(--border);
  background: #fff8ec;
  color: #7c4c00;
  border-radius: 8px;
  padding: 3px 8px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.copy-button:hover {
  border-color: var(--accent-3);
}

.article-content :not(pre) > code {
  background: #eef6ff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.1em 0.35em;
}

.article-content ul,
.article-content ol {
  margin: 1rem 0 1.2rem;
  padding-left: 1.45rem;
}

.article-content li {
  margin: 0.42rem 0;
}

.article-content ul:not(.contains-task-list) {
  list-style: disc;
}

.article-content ul:not(.contains-task-list) li::marker {
  color: #f08a2d;
}

.article-content ol li::marker {
  color: #47a8ff;
  font-weight: 700;
}

.article-content li > ul,
.article-content li > ol {
  margin-top: 0.35rem;
}

.article-content .task-list-item {
  list-style: none;
  margin-left: -1.25rem;
}

.article-content .task-list-item input[type="checkbox"] {
  margin-right: 8px;
}

.article-content table {
  width: 100%;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  display: table;
  overflow-x: visible;
  border: 1px solid #bdd7e8;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
  box-shadow: 0 10px 24px rgba(71, 168, 255, 0.1);
}

.article-content th,
.article-content td {
  border-bottom: 1px solid #d6e6f2;
  padding: 11px 12px;
  text-align: left;
  white-space: normal;
  vertical-align: top;
}

.article-content th {
  background: linear-gradient(90deg, rgba(247, 197, 83, 0.2), rgba(240, 138, 45, 0.2), rgba(71, 168, 255, 0.14), rgba(86, 215, 190, 0.16));
  color: #18405f;
  font-weight: 700;
}

.article-content tr:nth-child(even) {
  background: #f7fbff;
}

.article-content tbody tr:hover {
  background: #eef7ff;
}

.article-content table::-webkit-scrollbar {
  height: 10px;
}

.article-content table::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #f7c553, #f08a2d, #47a8ff, #56d7be);
  border-radius: 999px;
}

.article-content table::-webkit-scrollbar-track {
  background: #e9f3fb;
}

@media (max-width: 900px) {
  .article-content table {
    width: max-content;
    min-width: 100%;
    display: block;
    overflow-x: auto;
  }
}

.related-links {
  margin-top: 26px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.related-links ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
}

.related-links li {
  display: flex;
}

.related-links a {
  position: relative;
  display: block;
  width: 100%;
  background: linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
  border: 1px solid #cfe1ee;
  border-radius: 12px;
  padding: 14px;
  text-decoration: none;
  background-image: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

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

@media (max-width: 680px) {
  .related-links ul {
    grid-template-columns: 1fr;
  }
}

.related-links a:hover {
  transform: translateY(-3px);
  border-color: #47a8ff;
  box-shadow: 0 12px 28px rgba(71, 168, 255, 0.2), 0 8px 20px rgba(240, 138, 45, 0.16);
}

.related-links a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #f7c553, #f08a2d, #47a8ff, #56d7be);
}

.related-links a::after {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -44px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(86, 215, 190, 0.2), rgba(71, 168, 255, 0.08) 55%, rgba(255, 255, 255, 0));
  pointer-events: none;
}

.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: auto;
  border-top: 1px solid #f2cda0;
  background: linear-gradient(135deg, #fff7ea 0%, #fff1de 32%, #edf7ff 68%, #ebfff7 100%);
  box-shadow: 0 -10px 28px rgba(240, 138, 45, 0.12), 0 -6px 18px rgba(71, 168, 255, 0.08);
  flex-shrink: 0;
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #f7c553, #f08a2d, #47a8ff, #56d7be);
}

.site-footer::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 197, 83, 0.24), rgba(240, 138, 45, 0.16) 40%, rgba(71, 168, 255, 0.1) 60%, rgba(255, 255, 255, 0));
  pointer-events: none;
}

.footer-shell {
  position: relative;
  z-index: 1;
  padding: 20px 0 28px;
}

.footer-title {
  margin: 0 0 8px;
  color: #345b78;
  font-weight: 700;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-nav a {
  position: relative;
  text-decoration: none;
  color: #174667;
  background: linear-gradient(120deg, #ffffff, #fff5e9 44%, #eef9ff);
  border: 1px solid #d8e7f3;
  border-radius: 999px;
  padding: 8px 14px;
  background-image: none;
  box-shadow: 0 6px 16px rgba(71, 168, 255, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.footer-nav a:hover {
  transform: translateY(-1px);
  color: #9b520f;
  border-color: #efba78;
  box-shadow: 0 10px 18px rgba(240, 138, 45, 0.16), 0 8px 14px rgba(71, 168, 255, 0.12);
}

.article-content a:not(.heading-anchor),
.breadcrumbs a {
  font-weight: 600;
}

.article-content a:not(.heading-anchor):hover,
.breadcrumbs a:hover {
  color: #a95a12;
}

@media (max-width: 760px) {
  .header-shell {
    padding: 10px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  :root {
    --header-height: 110px;
  }
}
