:root {
  color-scheme: light;
  --accent: #6f3fc7;
  --ink: #24212a;
  --muted: #6d6875;
  --surface: #ffffff;
  --background: #f7f4fb;
  --section-accent-odd: #6f3fc7;
  --section-accent-even: #0f766e;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--ink); font: 17px/1.65 system-ui, sans-serif; }
nav { display: flex; gap: 1.25rem; padding: 1rem max(1rem, calc((100% - 900px) / 2)); background: var(--surface); }
nav a, main a { color: var(--accent); }
main { width: min(900px, calc(100% - 2rem)); margin: 2rem auto 4rem; }
main > header, main > section { margin-bottom: 1.25rem; padding: clamp(1rem, 3vw, 2rem); background: var(--surface); border-radius: 16px; }
.page-section-nav { flex-wrap: wrap; gap: .4rem; max-width: 100%; margin-bottom: 1.25rem; padding: .55rem; overflow: hidden; border: 1px solid #e7e0ef; border-radius: 14px; background: #fffffff2; box-shadow: 0 .4rem 1.2rem #30254012; }
.page-section-nav a { flex: 0 1 auto; min-width: 0; padding: .3rem .6rem; border-radius: 999px; background: #f1ebf8; font-size: .8rem; font-weight: 700; line-height: 1.25; text-decoration: none; overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.2; }
h1 { margin-top: 0; font-size: clamp(2rem, 6vw, 4rem); }
.summary, .meta { color: var(--muted); }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); justify-content: center; gap: 1.5rem; }
.section-videos { width: min(1100px, calc(100vw - 2rem)); margin: 2rem 0 2rem 50%; padding: 1.5rem; transform: translateX(-50%); border: 1px solid #e7e0ef; border-radius: 16px; background: #fbf9fd; box-shadow: 0 4px 16px rgba(111, 63, 199, 0.05); }
.section-videos h4 { margin-top: 0; margin-bottom: 1rem; font-size: 1.15rem; color: var(--ink); text-align: center; }
.section-videos .video-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.video-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid #e7e0ef; border-radius: 14px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.04); transition: transform .2s ease, box-shadow .2s ease; }
.video-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(111, 63, 199, 0.12); }
.video-card > :not(.video-thumbnail) { margin-inline: 1.15rem; }
.video-card h3 { margin-block: .85rem .4rem; font-size: 1.02rem; line-height: 1.35; font-weight: 700; }
.video-meta { margin-block: 0 1rem; color: var(--muted); font-size: .82rem; line-height: 1.4; }
.video-thumbnail { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #0a0a0a; text-decoration: none; }
.video-thumbnail img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .25s ease; }
.video-thumbnail:hover img { transform: scale(1.03); }
.play-badge { position: absolute; left: 50%; top: 50%; display: grid; width: 3.8rem; height: 2.6rem; transform: translate(-50%, -50%); place-items: center; border-radius: .75rem; background: rgba(230, 33, 23, 0.95); color: #fff; font-size: 1.35rem; line-height: 1; box-shadow: 0 .3rem 1.2rem rgba(0, 0, 0, 0.45); transition: background .2s ease, transform .2s ease; }
.video-thumbnail:hover .play-badge { background: #f00; transform: translate(-50%, -50%) scale(1.08); }
img { max-width: 100%; height: auto; }
.sourced-image { margin: 1.5rem 0; }
.sourced-image a { display: block; overflow: hidden; border-radius: 14px; background: #111; }
.sourced-image img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .2s ease; }
.sourced-image a:hover img { transform: scale(1.015); }
.sourced-image figcaption { margin-top: .5rem; color: var(--muted); font-size: .9rem; }
.markdown-body { padding: 0; background: transparent; }
.markdown-intro, .markdown-section { margin-bottom: 1.25rem; padding: clamp(1rem, 3vw, 2rem); background: var(--surface); border-radius: 16px; }
.markdown-section { --section-accent: var(--section-accent-odd); border-inline-start: .45rem solid var(--section-accent); }
.markdown-section:nth-of-type(even) { --section-accent: var(--section-accent-even); }
.page-content-section--even { --section-accent: var(--section-accent-even); }
.section-heading { margin-top: 0; }
.section-heading::before, .section-heading::after { color: var(--section-accent); font-weight: 800; }
.section-heading::before { content: "| "; }
.section-heading::after { content: " |"; }
.markdown-intro > :first-child, .markdown-section > :first-child { margin-top: 0; }
.markdown-intro > :last-child, .markdown-section > :last-child { margin-bottom: 0; }
.amazon-product-card { display: grid; grid-template-columns: minmax(220px, 42%) 1fr; margin: 1.5rem 0; overflow: hidden; border: 1px solid #e7e0ef; border-radius: 14px; background: #fbf9fd; box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05); transition: transform .2s ease, box-shadow .2s ease; }
.amazon-product-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08); }
.amazon-product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.amazon-product-grid .amazon-product-card { grid-template-columns: 1fr; margin: 0; }
.amazon-product-grid .amazon-product-image { min-height: 210px; }
.amazon-product-grid .amazon-product-image img { max-height: 230px; }
.amazon-product-image { display: grid; min-height: 230px; padding: 1rem; place-items: center; background: #fff; }
.amazon-product-image img { display: block; width: 100%; max-height: 280px; object-fit: contain; transition: transform .2s ease; }
.amazon-product-image:hover img { transform: scale(1.015); }
.amazon-product-copy { align-self: center; padding: 1.25rem; }
.amazon-product-copy h4 { margin: .4rem 0 1rem; font-size: 1.1rem; line-height: 1.35; }
.amazon-product-copy .meta { margin: 0; font-size: .9rem; }
.amazon-product-copy .amazon-product-badges { margin: 0.35rem 0 0.65rem; font-size: 0.92rem; color: #334155; background: #f8f5ff; border: 1px solid #e9d5ff; border-radius: 8px; padding: 0.35rem 0.65rem; display: inline-block; }
.amazon-product-copy .amazon-product-badges strong { color: #0f766e; font-size: 1.05rem; }
.amazon-product-link { display: inline-flex; align-items: center; width: fit-content; margin-top: 0.25rem; padding: 0.45rem 1rem; border-radius: 999px; background: var(--accent); color: #ffffff !important; font-weight: 700; font-size: 0.9rem; text-decoration: none !important; box-shadow: 0 2px 6px rgba(91, 33, 182, 0.2); }
.section-heading[id], .amazon-product-card[id] { scroll-margin-top: 6rem; }
.amazon-product-card:target { border-color: var(--accent); box-shadow: 0 0 0 3px #6f3fc733; }
.markdown-body blockquote { margin-inline: 0; padding-left: 1rem; border-left: 4px solid #d7c7ed; color: var(--muted); }
.markdown-section blockquote { margin: 0.65rem 0; padding: 0.7rem 1rem; background: linear-gradient(135deg, #faf7ff 0%, #fffdf9 100%); border-left: 4px solid var(--accent); border-radius: 0 10px 10px 0; color: #1e293b; font-size: 0.95rem; }
.markdown-section blockquote p { margin: 0; }
.markdown-table-wrap { margin: 1rem 0; overflow-x: auto; }
.markdown-table-wrap table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.markdown-table-wrap th,
.markdown-table-wrap td { padding: .7rem .8rem; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.markdown-table-wrap th { color: var(--ink); background: var(--soft); font-weight: 700; }
.markdown-body pre { overflow-x: auto; padding: 1rem; border-radius: 10px; background: #24212a; color: #f7f4fb; }
.markdown-body code { padding: .12em .3em; border-radius: 4px; background: #eee8f5; }
.markdown-body pre code { padding: 0; background: transparent; }
.page-notice-header { display: flex; align-items: center; gap: .5rem; margin-top: .75rem; padding: .45rem .85rem; border-radius: 8px; background: #f1ebf8; color: var(--muted); font-size: .82rem; line-height: 1.4; border-inline-start: 3px solid var(--accent); }
.page-disclaimer-footer { margin-top: 2rem; padding: 1rem 1.25rem; border-radius: 12px; background: #fbf9fd; border: 1px solid #e7e0ef; color: var(--muted); font-size: .8rem; line-height: 1.5; text-align: center; }
.page-disclaimer-footer p { margin: .25rem 0; }
@media (max-width: 600px) {
  .markdown-section { padding: 1rem; border-inline-start-width: .3rem; border-radius: 12px; }
}
@media (max-width: 480px) { .video-grid, .section-videos .video-grid { grid-template-columns: 1fr; } .section-videos { width: calc(100vw - 1rem); padding: .75rem; } }
@media (max-width: 640px) { .amazon-product-card, .amazon-product-grid { grid-template-columns: 1fr; } .amazon-product-image { min-height: 190px; } }
.page-fundamental-summary { margin-bottom: 1.25rem; padding: clamp(1rem, 2.5vw, 1.5rem); background: #fbfdfc; border: 1px solid #d1fae5; border-inline-start: 5px solid #0f766e; border-radius: 14px; box-shadow: 0 2px 10px rgba(15, 118, 110, 0.06); }
.page-fundamental-summary .fundamental-title { margin-bottom: .5rem; font-size: 1.05rem; font-weight: 800; color: #0f766e; }
.page-fundamental-summary .fundamental-body p { margin: 0; color: var(--ink); font-size: .95rem; line-height: 1.6; }
