/* 250mm showcase: Apple-inspired editorial motion, not Apple UI or Liquid Glass. */
:root {
  --guide-ink: #10121b;
  --guide-accent: #175cd3;
  --guide-muted: #555c6c;
  --guide-line: #e1e4eb;
  --guide-soft: #edf3ff;
}
body { background: #f5f6f9; color: var(--guide-ink); }
.guide-site-header {
  background: rgb(19 21 32 / .91);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid rgb(255 255 255 / .12);
}
.guide-nav { max-width: 1200px; height: 62px; }
.guide-logo { letter-spacing: -.055em; font-size: 20px; }
.guide-logo span { color: #a8c8ff; }
.guide-nav-links a { color: #e8ebf4; font-weight: 500; transition: color .2s ease; }
.guide-main { max-width: 1200px; padding-top: 0; }

/* One visual moment: colored light behind real editorial copy. */
.guide-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 480px; display: flex; flex-direction: column; justify-content: center;
  margin: 24px 0 0; padding: 72px clamp(30px, 6vw, 84px);
  color: #fff; border-radius: 30px;
  background: radial-gradient(ellipse at 88% 34%, #333f84 0%, transparent 40%),
    linear-gradient(120deg, #101322 20%, #212c4c 70%, #171b32);
}
.guide-hero::before {
  content: ""; position: absolute; z-index: -1; width: 490px; aspect-ratio: 1;
  right: 0; top: 50%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e2efff 0%, #79a9fa 17%, #6770cf 41%, #ba66bc 62%, #343e78 82%);
  box-shadow: inset -40px -45px 90px rgb(13 19 53 / .65), 0 0 100px rgb(119 152 246 / .33);
  transform: translate(18%, -50%); animation: guide-orbit 1.4s cubic-bezier(.2,.8,.2,1) both;
}
.guide-hero::after {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(90deg, #101322 8%, rgb(16 19 34 / .96) 42%, rgb(16 19 34 / .70) 72%, transparent 98%);
}
.guide-hero .guide-eyebrow { color: #c5d8ff; font-size: 13px; letter-spacing: .01em; }
.guide-hero h1 {
  max-width: 740px; margin: 16px 0 22px; color: #fff;
  font-size: clamp(38px, 5.2vw, 72px); line-height: 1.13;
  letter-spacing: -.055em; font-weight: 750; text-wrap: balance;
  animation: guide-arrive .8s both;
}
.guide-hero p {
  max-width: 610px; color: #e4e8f2; font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.7; animation: guide-arrive .9s .12s both;
}
@keyframes guide-arrive { from { opacity: 0; transform: translateY(20px); } }
@keyframes guide-orbit {
  from { transform: translate(18%, -48%) scale(.97); }
  to { transform: translate(14%, -52%) scale(1.04); }
}
/* Scroll reveals enhance the list only in browsers that support view timelines. */
@supports (animation-timeline: view()) {
  .guide-section > .guide-item, .guide-tag-list > .guide-item {
    animation: guide-arrive both linear;
    animation-timeline: view();
    animation-range: entry 0% entry 22%;
  }
}

.guide-categories {
  border: 0; gap: 12px; margin: 14px 0 76px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.guide-categories a {
  position: relative; overflow: hidden; min-height: 140px;
  padding: 22px; border: 1px solid var(--guide-line) !important; border-radius: 20px;
  background: #fff; display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .28s ease, box-shadow .28s ease;
}
.guide-categories a::before {
  content: ""; position: absolute; width: 130px; height: 130px;
  right: -44px; top: -64px; border-radius: 50%;
  background: radial-gradient(circle, #c8d9ff, transparent 72%); opacity: .85;
  transition: transform .35s ease;
}
.guide-categories a:nth-child(2)::before { background: radial-gradient(circle, #badfed, transparent 72%); }
.guide-categories a:nth-child(3)::before { background: radial-gradient(circle, #d4c9fb, transparent 72%); }
.guide-categories a:nth-child(4)::before { background: radial-gradient(circle, #f5d3e4, transparent 72%); }
.guide-categories a:hover, .guide-categories a:focus-visible,
.guide-item:hover, .guide-item:focus-visible {
  transform: translateY(-4px); box-shadow: 0 20px 35px rgb(19 31 61 / .09);
}
.guide-categories a:hover::before { transform: scale(1.35); }
.guide-categories strong { position: relative; font-size: 18px; letter-spacing: -.025em; }
.guide-categories span { position: relative; font-size: 13px; }
.guide-categories a:hover { background: #fff; }

.guide-section { max-width: none; }
.guide-section-heading { align-items: end; margin-bottom: 22px; }
.guide-section-heading h2 { font-size: clamp(26px, 3vw, 38px); letter-spacing: -.045em; }
.guide-section-heading span { font-size: 13px; }
.guide-section:has(> .guide-section-heading) {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
}
.guide-section-heading { grid-column: 1 / -1; }
.guide-section > .guide-item {
  min-width: 0; display: flex; flex-direction: column; align-items: stretch;
  justify-content: space-between; gap: 26px; margin: 0;
  padding: clamp(24px, 3vw, 38px); border: 1px solid var(--guide-line);
  background: #fff; border-radius: 24px;
  transition: transform .28s ease, box-shadow .28s ease;
}
.guide-section:has(> .guide-section-heading) > .guide-item:last-child:nth-of-type(2) { grid-column: 1 / -1; }
.guide-section:has(> .guide-section-heading) > .guide-item:last-child:nth-of-type(2) h3,
.guide-section:has(> .guide-section-heading) > .guide-item:last-child:nth-of-type(2) p { max-width: 800px; }
.guide-section:has(> .guide-section-heading) > .guide-item:first-of-type {
  grid-column: 1 / -1; min-height: 310px;
  background: linear-gradient(125deg, #182d5a, #3b509d 56%, #6564ab);
  border-color: transparent; color: #fff;
}
.guide-section:has(> .guide-section-heading) > .guide-item:first-of-type h3,
.guide-section:has(> .guide-section-heading) > .guide-item:first-of-type p,
.guide-section:has(> .guide-section-heading) > .guide-item:first-of-type .guide-item-end,
.guide-section:has(> .guide-section-heading) > .guide-item:first-of-type .guide-item-end span { color: #fff; }
.guide-section:has(> .guide-section-heading) > .guide-item:first-of-type h3 { max-width: 740px; font-size: clamp(27px, 3vw, 40px); }
.guide-section:has(> .guide-section-heading) > .guide-item:first-of-type p { color: #e6ebfa; }
.guide-tag { border-radius: 100px; background: var(--guide-soft); color: #174da9; padding: 7px 12px; }
.guide-section:has(> .guide-section-heading) > .guide-item:first-of-type .guide-tag { background: rgb(255 255 255 / .17); color: #fff; }
.guide-item h2, .guide-item h3 { font-size: clamp(20px, 2vw, 25px); letter-spacing: -.035em; }
.guide-item-end { display: flex; justify-content: space-between; align-items: end; width: 100%; text-align: left; }
.guide-item-end span { margin: 0; color: #175cd3; }
.guide-empty { grid-column: 1 / -1; border-radius: 20px; }
.guide-ad { margin: 64px auto; }

.guide-tag-page { padding: 40px 0; }
.guide-tag-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.guide-tag-list .guide-item { display: flex; flex-direction: column; align-items: stretch; justify-content: space-between; gap: 26px; margin: 0; border-radius: 24px; padding: 32px; transition: transform .28s ease, box-shadow .28s ease; }
.guide-tag-list .guide-empty { grid-column: 1 / -1; }
.guide-category-intro { padding: 32px 0 36px; }
.guide-category-intro h1 { font-size: clamp(38px, 5vw, 62px); letter-spacing: -.055em; }
.guide-category-tabs { gap: 10px; padding: 22px 0 30px; }
.guide-category-tabs a { border-radius: 999px; padding: 10px 18px; }
.guide-category-tabs a[aria-current="page"] { background: #202943; border-color: #202943; }
.guide-breadcrumb { padding-top: 8px; }
.guide-post-layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 32px; }
.guide-article { border: 1px solid var(--guide-line); border-radius: 24px; padding: clamp(24px, 4vw, 56px); }
.guide-article-header h1 { font-size: clamp(30px, 3.5vw, 47px); line-height: 1.24; }
.guide-sidebar > div { border-radius: 20px; box-shadow: none; }
.guide-toc { background: #f5f7fb; border-radius: 14px; }
#rendered-html { color: #343b49 !important; }
#rendered-html h2, #rendered-html h3 { color: #17243d !important; }
#rendered-html strong { color: #17243d !important; background: none !important; padding: 0 !important; }
#rendered-html blockquote { background: #f2f5fc !important; border-left-color: #4676dc !important; box-shadow: none !important; }
#rendered-html img { box-shadow: none !important; }
#rendered-html th { background: #eef3fc !important; color: #182f55 !important; }
#rendered-html tr:nth-child(even) td { background: #f7f9fd !important; }
footer { background: #111520 !important; }
footer button[onclick] { display: flex !important; }

@media (max-width: 760px) {
  .guide-main { padding: 0 16px 40px; }
  .guide-hero { min-height: 490px; margin-top: 14px; border-radius: 24px; padding: 36px 28px 165px; justify-content: flex-start; }
  .guide-hero::before { width: 245px; right: -18px; top: auto; bottom: -94px; transform: none; animation: none; }
  .guide-hero::after { background: linear-gradient(#101322 4%, rgb(16 19 34 / .72) 65%, transparent); }
  .guide-hero h1 { font-size: clamp(32px, 8vw, 43px); line-height: 1.2; }
  .guide-hero p { font-size: 15px; }
  .guide-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 52px; }
  .guide-categories a { min-height: 122px; padding: 17px; border: 1px solid var(--guide-line) !important; }
  .guide-categories strong { font-size: 15px; }
  .guide-section:has(> .guide-section-heading) { grid-template-columns: 1fr; gap: 12px; }
  .guide-section-heading { margin-bottom: 6px; }
  .guide-section:has(> .guide-section-heading) > .guide-item:first-of-type { grid-column: auto; min-height: 280px; }
  .guide-section > .guide-item { padding: 24px; }
  .guide-tag-list { grid-template-columns: 1fr; }
  .guide-tag-list .guide-item { padding: 24px; }
  .guide-post-layout { grid-template-columns: 1fr; }
  .guide-article { padding: 24px 20px; }
  .guide-sidebar > div + div { display: none; }
}
@media (max-width: 360px) {
  .guide-categories { gap: 8px; }
  .guide-categories a { padding: 14px; }
  .guide-logo small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .guide-hero::before, .guide-hero h1, .guide-hero p,
  .guide-section > .guide-item, .guide-tag-list > .guide-item { animation: none !important; }
  .guide-categories a, .guide-categories a::before, .guide-section > .guide-item,
  .guide-tag-list .guide-item, .guide-nav-links a { transition: none !important; }
  .guide-categories a:hover, .guide-categories a:focus-visible,
  .guide-item:hover, .guide-item:focus-visible { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .guide-site-header { background: #131520; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
