/* =========================================================
   AI DEVELOPMENT FIELD GUIDE
   Interactive Technical Documentation
   Marsharine A. Simpson
   ========================================================= */


/* =========================================================
   DESIGN TOKENS
   ========================================================= */

:root {
    --header-height: 76px;
    --sidebar-width: 290px;
    --content-width: 1120px;

    --bg: #f6f7fb;
    --surface: #ffffff;
    --surface-soft: #eef1f7;
    --surface-strong: #e6eaf3;

    --text: #151923;
    --text-soft: #404756;
    --muted: #727989;

    --line: rgba(21, 25, 35, 0.11);
    --line-strong: rgba(21, 25, 35, 0.18);

    --navy: #111827;
    --navy-soft: #1d2737;

    --blue: #335cff;
    --blue-dark: #2444cc;
    --blue-soft: #e8edff;

    --violet: #7657d9;
    --violet-soft: #eee9ff;

    --cyan: #21869a;
    --cyan-soft: #e2f6f8;

    --green: #28765e;
    --green-soft: #e7f5ef;

    --amber: #9b6a18;
    --amber-soft: #fff4d9;

    --red: #a74444;
    --red-soft: #fceaea;

    --white: #ffffff;

    --code-bg: #111725;
    --code-text: #dbe5ff;
    --code-muted: #7886a8;
    --code-accent: #79d4ff;

    --shadow-sm:
        0 8px 24px rgba(22, 31, 53, 0.06);

    --shadow-md:
        0 18px 50px rgba(22, 31, 53, 0.10);

    --shadow-lg:
        0 28px 75px rgba(22, 31, 53, 0.15);

    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;

    --transition: 180ms ease;
}


/* =========================================================
   DARK THEME TOKENS
   ========================================================= */

html[data-theme="dark"] {
    --bg: #0d1119;
    --surface: #141a24;
    --surface-soft: #1a2230;
    --surface-strong: #202a39;

    --text: #f1f4fa;
    --text-soft: #c4cad6;
    --muted: #949dad;

    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.16);

    --navy: #f4f6fb;
    --navy-soft: #dce2ee;

    --blue: #8299ff;
    --blue-dark: #a6b4ff;
    --blue-soft: rgba(75, 104, 255, 0.13);

    --violet: #a994f4;
    --violet-soft: rgba(137, 103, 230, 0.13);

    --cyan: #6fc7d6;
    --cyan-soft: rgba(57, 160, 180, 0.12);

    --green: #78c8aa;
    --green-soft: rgba(56, 160, 125, 0.12);

    --amber: #e5b85e;
    --amber-soft: rgba(205, 143, 35, 0.12);

    --red: #ed9292;
    --red-soft: rgba(205, 72, 72, 0.12);

    --shadow-sm:
        0 8px 24px rgba(0, 0, 0, 0.17);

    --shadow-md:
        0 18px 50px rgba(0, 0, 0, 0.24);

    --shadow-lg:
        0 28px 75px rgba(0, 0, 0, 0.32);
}


/* =========================================================
   RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 22px);
}

body {
    margin: 0;

    color: var(--text);
    background: var(--bg);

    font-family:
        Inter,
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif;

    line-height: 1.65;

    transition:
        color var(--transition),
        background var(--transition);
}

body.sidebar-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
a {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
}

pre,
code {
    font-family:
        "Cascadia Code",
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;
}

::selection {
    color: var(--white);
    background: var(--blue);
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.skip-link {
    position: fixed;
    top: 10px;
    left: 12px;
    z-index: 300;

    padding: 10px 15px;

    border-radius: 8px;

    color: var(--white);
    background: var(--blue-dark);

    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;

    transform: translateY(-180%);
}

.skip-link:focus {
    transform: translateY(0);
}

.visually-hidden {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    padding: 0 !important;
    margin: -1px !important;

    overflow: hidden !important;

    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;

    border: 0 !important;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(51, 92, 255, 0.35);
    outline-offset: 3px;
}


/* =========================================================
   SITE HEADER
   ========================================================= */

.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 150;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;

    height: var(--header-height);
    padding: 0 24px;

    border-bottom: 1px solid var(--line);

    background: color-mix(
        in srgb,
        var(--surface) 92%,
        transparent
    );

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    transition:
        background var(--transition),
        border-color var(--transition);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    color: var(--text);

    text-decoration: none;
}

.brand-mark {
    display: grid;
    place-items: center;

    width: 43px;
    height: 43px;

    border-radius: 12px;

    color: var(--white);

    background:
        linear-gradient(
            135deg,
            var(--blue),
            var(--violet)
        );

    box-shadow:
        0 8px 20px rgba(51, 92, 255, 0.24);

    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.07em;
}

.brand-copy {
    display: flex;
    flex-direction: column;

    line-height: 1.05;
}

.brand-copy strong {
    font-size: 0.91rem;
    font-weight: 850;
}

.brand-copy small {
    margin-top: 4px;

    color: var(--muted);

    font-size: 0.69rem;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 9px;
}

.theme-toggle,
.github-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-height: 40px;
    padding: 8px 13px;

    border: 1px solid var(--line);
    border-radius: 10px;

    color: var(--text);
    background: var(--surface);

    font-size: 0.76rem;
    font-weight: 800;

    text-decoration: none;

    transition:
        transform var(--transition),
        border-color var(--transition),
        color var(--transition),
        background var(--transition);
}

.theme-toggle:hover,
.github-button:hover {
    transform: translateY(-1px);

    border-color: var(--blue);

    color: var(--blue);
}

.theme-icon {
    font-size: 1rem;
}

.mobile-menu-button {
    display: none;

    width: 42px;
    height: 42px;

    padding: 9px;

    border: 1px solid var(--line);
    border-radius: 10px;

    color: var(--text);
    background: var(--surface);
}

.mobile-menu-button span {
    display: block;

    width: 100%;
    height: 2px;
    margin: 4px 0;

    border-radius: 999px;

    background: currentColor;

    transition:
        transform var(--transition),
        opacity var(--transition);
}

.mobile-menu-button.active span:nth-child(1) {
    transform:
        translateY(6px)
        rotate(45deg);
}

.mobile-menu-button.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.active span:nth-child(3) {
    transform:
        translateY(-6px)
        rotate(-45deg);
}


/* =========================================================
   READING PROGRESS
   ========================================================= */

.reading-progress {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    z-index: 149;

    height: 3px;

    background: transparent;
}

.reading-progress-bar {
    width: 0;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            var(--blue),
            var(--violet),
            var(--cyan)
        );

    transition: width 80ms linear;
}


/* =========================================================
   MAIN DOCUMENTATION LAYOUT
   ========================================================= */

.documentation-layout {
    display: grid;
    grid-template-columns:
        var(--sidebar-width)
        minmax(0, 1fr);

    min-height: 100vh;
    padding-top: var(--header-height);
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.docs-sidebar {
    position: fixed;
    top: var(--header-height);
    bottom: 0;
    left: 0;
    z-index: 100;

    width: var(--sidebar-width);

    overflow-y: auto;

    border-right: 1px solid var(--line);

    background: var(--surface);

    transition:
        transform 220ms ease,
        background var(--transition),
        border-color var(--transition);
}

.sidebar-inner {
    padding: 24px 18px 35px;
}


/* =========================================================
   DOCUMENTATION SEARCH
   ========================================================= */

.documentation-search {
    margin-bottom: 27px;
}

.search-label {
    display: block;

    margin-bottom: 8px;

    color: var(--muted);

    font-size: 0.67rem;
    font-weight: 850;

    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.search-box {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;

    min-height: 44px;
    padding: 0 10px;

    border: 1px solid var(--line);
    border-radius: 10px;

    background: var(--bg);

    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

.search-box:focus-within {
    border-color: var(--blue);

    box-shadow:
        0 0 0 3px rgba(51, 92, 255, 0.09);
}

.search-icon {
    color: var(--muted);
}

.search-box input {
    min-width: 0;
    width: 100%;

    padding: 9px 0;

    border: 0;
    outline: 0;

    color: var(--text);
    background: transparent;

    font-size: 0.79rem;
}

.search-box input::placeholder {
    color: var(--muted);
}

.search-box kbd {
    padding: 2px 6px;

    border: 1px solid var(--line);
    border-bottom-width: 2px;
    border-radius: 5px;

    color: var(--muted);
    background: var(--surface);

    font-size: 0.66rem;
}

.search-results {
    display: none;

    margin-top: 8px;

    overflow: hidden;

    border: 1px solid var(--line);
    border-radius: 10px;

    background: var(--surface);

    box-shadow: var(--shadow-md);
}

.search-results.active {
    display: block;
}

.search-result-link {
    display: block;

    padding: 10px 12px;

    border-bottom: 1px solid var(--line);

    color: var(--text);

    font-size: 0.77rem;
    font-weight: 700;

    text-decoration: none;
}

.search-result-link:last-child {
    border-bottom: 0;
}

.search-result-link:hover {
    color: var(--blue);
    background: var(--blue-soft);
}

.search-empty {
    margin: 0;
    padding: 12px;

    color: var(--muted);

    font-size: 0.76rem;
}


/* =========================================================
   SIDEBAR NAVIGATION
   ========================================================= */

.docs-navigation {
    display: flex;
    flex-direction: column;
}

.navigation-label {
    margin:
        23px
        10px
        7px;

    color: var(--muted);

    font-size: 0.61rem;
    font-weight: 900;

    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.navigation-label:first-child {
    margin-top: 0;
}

.docs-nav-link {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 4px;
    align-items: center;

    min-height: 39px;
    padding: 8px 10px;

    border-radius: 8px;

    color: var(--text-soft);

    font-size: 0.78rem;
    font-weight: 690;

    text-decoration: none;

    transition:
        color var(--transition),
        background var(--transition),
        transform var(--transition);
}

.docs-nav-link span {
    color: var(--muted);

    font-size: 0.6rem;
    font-weight: 900;
}

.docs-nav-link:hover {
    color: var(--blue);
    background: var(--blue-soft);

    transform: translateX(2px);
}

.docs-nav-link.active {
    color: var(--blue);
    background: var(--blue-soft);

    font-weight: 850;
}

.docs-nav-link.active span {
    color: var(--blue);
}


/* =========================================================
   SIDEBAR NOTE
   ========================================================= */

.sidebar-note {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;

    margin-top: 30px;
    padding: 14px;

    border: 1px solid var(--line);
    border-radius: 12px;

    background: var(--surface-soft);
}

.sidebar-note-icon {
    color: var(--violet);

    font-size: 1rem;
}

.sidebar-note strong {
    display: block;

    margin-bottom: 4px;

    font-size: 0.76rem;
}

.sidebar-note p {
    margin: 0;

    color: var(--muted);

    font-size: 0.7rem;
}


/* =========================================================
   MAIN CONTENT
   ========================================================= */

.docs-main {
    grid-column: 2;

    min-width: 0;
}

.documentation-section,
.project-closing {
    width: min(
        calc(100% - 80px),
        var(--content-width)
    );

    margin: 0 auto;
    padding: 105px 0;

    border-bottom: 1px solid var(--line);
}

.documentation-section:first-child {
    padding-top: 76px;
}


/* =========================================================
   COMMON TYPE
   ========================================================= */

.eyebrow,
.code-label,
.step-label,
.comparison-label,
.prompt-type {
    margin: 0;

    color: var(--blue);

    font-size: 0.67rem;
    font-weight: 900;

    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-heading {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 24px;

    max-width: 910px;
    margin-bottom: 47px;
}

.section-number {
    margin: 6px 0 0;

    color: var(--blue);

    font-size: 0.72rem;
    font-weight: 900;

    letter-spacing: 0.1em;
}

.section-heading h2 {
    max-width: 760px;
    margin: 8px 0 0;

    color: var(--text);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(2.3rem, 4vw, 4rem);
    font-weight: 500;

    letter-spacing: -0.045em;
    line-height: 1.03;
}

.section-heading > div > p:last-child {
    max-width: 720px;
    margin: 15px 0 0;

    color: var(--muted);
}


/* =========================================================
   HERO
   ========================================================= */

.hero-section {
    padding-bottom: 85px;
}

.hero-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(370px, 0.72fr);

    align-items: center;
    gap: clamp(50px, 7vw, 90px);
}

.hero-copy h1 {
    max-width: 720px;
    margin: 13px 0 0;

    color: var(--text);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(3.6rem, 6.5vw, 6.4rem);
    font-weight: 500;

    letter-spacing: -0.065em;
    line-height: 0.89;
}

.hero-copy h1 span {
    display: block;

    color: var(--blue);
}

.hero-subtitle {
    margin: 23px 0 0;

    color: var(--violet);

    font-size: 1.03rem;
    font-weight: 850;
}

.hero-description {
    max-width: 700px;
    margin: 18px 0 0;

    color: var(--muted);

    font-size: 1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-top: 27px;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 7px;

    min-height: 46px;
    padding: 10px 18px;

    border-radius: 9px;

    font-size: 0.79rem;
    font-weight: 850;

    text-decoration: none;

    transition:
        transform var(--transition),
        color var(--transition),
        border-color var(--transition),
        background var(--transition);
}

.primary-button {
    border: 1px solid var(--blue);

    color: var(--white);

    background:
        linear-gradient(
            135deg,
            var(--blue-dark),
            var(--violet)
        );

    box-shadow:
        0 10px 24px rgba(51, 92, 255, 0.17);
}

.primary-button:hover {
    transform: translateY(-2px);
}

.secondary-button {
    border: 1px solid var(--line-strong);

    color: var(--text);
    background: var(--surface);
}

.secondary-button:hover {
    transform: translateY(-2px);

    border-color: var(--blue);

    color: var(--blue);
}

.hero-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;

    margin: 25px 0 0;
    padding: 0;

    list-style: none;
}

.hero-topics li {
    padding: 5px 9px;

    border: 1px solid var(--line);
    border-radius: 999px;

    color: var(--muted);
    background: var(--surface);

    font-size: 0.65rem;
    font-weight: 750;
}


/* =========================================================
   HERO WORKFLOW VISUAL
   ========================================================= */

.hero-visual {
    position: relative;
}

.hero-visual::before {
    position: absolute;
    top: -25px;
    right: -25px;
    z-index: -1;

    width: 170px;
    height: 170px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(118, 87, 217, 0.16),
            transparent 67%
        );

    content: "";
}

.workflow-window {
    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);

    background: var(--code-bg);

    box-shadow: var(--shadow-lg);
}

.workflow-window-header {
    display: flex;
    align-items: center;
    gap: 7px;

    min-height: 45px;
    padding: 0 14px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    background: #171e2d;
}

.workflow-window-header > span {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #59647d;
}

.workflow-window-header > span:first-child {
    background: #e16f6f;
}

.workflow-window-header > span:nth-child(2) {
    background: #d9ab50;
}

.workflow-window-header > span:nth-child(3) {
    background: #67ad85;
}

.workflow-window-header strong {
    margin-left: auto;

    color: #8b97b2;

    font-size: 0.67rem;
    font-weight: 650;
}

.workflow-code {
    padding: 29px 24px;
}

.workflow-code > div {
    display: flex;
    gap: 14px;

    margin: 0 0 15px;

    color: var(--code-text);

    font-family:
        "Cascadia Code",
        Consolas,
        monospace;

    font-size: 0.81rem;
}

.workflow-code > div:last-child {
    margin-bottom: 0;
}

.code-keyword {
    min-width: 72px;

    color: var(--code-accent);

    font-weight: 800;
}

.workflow-status {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 13px 21px;

    border-top: 1px solid rgba(255, 255, 255, 0.08);

    color: #9da8bf;

    font-size: 0.7rem;
}

.status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #63d495;

    box-shadow:
        0 0 0 4px rgba(99, 212, 149, 0.09);
}


/* =========================================================
   OVERVIEW GRID
   ========================================================= */

.overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    margin-top: 70px;

    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.overview-grid article {
    padding: 28px;

    border-right: 1px solid var(--line);
}

.overview-grid article:first-child {
    padding-left: 0;
}

.overview-grid article:last-child {
    padding-right: 0;

    border-right: 0;
}

.overview-number {
    display: block;

    color: var(--blue);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 2.4rem;
}

.overview-grid h2 {
    margin: 5px 0;

    font-size: 0.95rem;
}

.overview-grid p {
    margin: 0;

    color: var(--muted);

    font-size: 0.78rem;
}


/* =========================================================
   LEARNING PATH
   ========================================================= */

.learning-path {
    position: relative;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.learning-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;

    min-height: 200px;
    padding: 24px;

    border: 1px solid var(--line);
    border-radius: var(--radius-md);

    background: var(--surface);

    box-shadow: var(--shadow-sm);

    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.learning-step:hover {
    transform: translateY(-3px);

    border-color: rgba(51, 92, 255, 0.32);

    box-shadow: var(--shadow-md);
}

.step-number {
    display: grid;
    place-items: center;

    width: 40px;
    height: 40px;

    border-radius: 10px;

    color: var(--blue);
    background: var(--blue-soft);

    font-size: 0.68rem;
    font-weight: 900;
}

.learning-step h3 {
    margin: 6px 0 7px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.35rem;
    font-weight: 500;
}

.learning-step p:not(.step-label) {
    margin: 0;

    color: var(--muted);

    font-size: 0.82rem;
}

.learning-step a {
    display: inline-block;

    margin-top: 15px;

    color: var(--blue);

    font-size: 0.75rem;
    font-weight: 850;

    text-decoration: none;
}

.learning-step a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}


/* =========================================================
   CONCEPT CARDS
   ========================================================= */

.concept-grid {
    border-top: 1px solid var(--line);
}

.concept-card {
    border-bottom: 1px solid var(--line);
}

.concept-toggle {
    display: grid;
    grid-template-columns: 55px 1fr auto;
    gap: 15px;
    align-items: center;

    width: 100%;
    padding: 21px 4px;

    border: 0;

    color: var(--text);
    background: transparent;

    text-align: left;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.26rem;
    font-weight: 500;
}

.concept-toggle:hover {
    color: var(--blue);
}

.concept-index {
    color: var(--blue);

    font-family:
        Inter,
        "Segoe UI",
        sans-serif;

    font-size: 0.66rem;
    font-weight: 900;
}

.concept-plus {
    display: grid;
    place-items: center;

    width: 34px;
    height: 34px;

    border: 1px solid var(--line);
    border-radius: 50%;

    color: var(--blue);

    font-family:
        Inter,
        sans-serif;

    transition:
        transform var(--transition),
        color var(--transition),
        background var(--transition);
}

.concept-toggle[aria-expanded="true"]
.concept-plus {
    transform: rotate(45deg);

    color: var(--white);
    background: var(--blue);
}

.concept-content {
    display: none;

    max-width: 790px;
    padding:
        0
        55px
        25px;
}

.concept-card.open .concept-content {
    display: block;
}

.concept-content > p {
    margin: 0;

    color: var(--muted);
}

.concept-note {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;

    margin-top: 15px;
    padding: 11px 13px;

    border-left: 3px solid var(--blue);

    color: var(--text-soft);
    background: var(--blue-soft);

    font-size: 0.77rem;
}


/* =========================================================
   AI HIERARCHY
   ========================================================= */

.hierarchy-visual {
    max-width: 770px;
    margin: 58px auto 0;
}

.hierarchy-level {
    padding: 23px;

    border: 1px solid rgba(51, 92, 255, 0.28);
    border-radius: 18px;

    color: var(--text);
    background: var(--blue-soft);

    text-align: center;
}

.hierarchy-level strong {
    display: block;

    margin-bottom: 18px;
}

.level-ml {
    margin: 0 auto;

    width: 84%;

    border-color: rgba(118, 87, 217, 0.32);

    background: var(--violet-soft);
}

.level-dl {
    width: 78%;
    margin: 0 auto;

    border-color: rgba(33, 134, 154, 0.32);

    background: var(--cyan-soft);
}

.level-genai {
    width: 70%;
    margin: 0 auto;

    border-color: rgba(40, 118, 94, 0.32);

    background: var(--green-soft);
}

.level-genai strong {
    margin-bottom: 0;
}


/* =========================================================
   WORKFLOW TIMELINE
   ========================================================= */

.workflow-timeline {
    display: grid;
    grid-template-columns: repeat(7, 1fr);

    overflow: hidden;

    border: 1px solid var(--line);
    border-radius: var(--radius-md);

    background: var(--surface);
}

.workflow-timeline article {
    position: relative;

    min-height: 195px;
    padding: 21px 17px;

    border-right: 1px solid var(--line);
}

.workflow-timeline article:last-child {
    border-right: 0;
}

.workflow-timeline span {
    color: var(--blue);

    font-size: 0.63rem;
    font-weight: 900;
}

.workflow-timeline h3 {
    margin: 28px 0 5px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.1rem;
    font-weight: 500;
}

.workflow-timeline p {
    margin: 0;

    color: var(--muted);

    font-size: 0.72rem;
}


/* =========================================================
   CODE EXAMPLES
   ========================================================= */

.code-example {
    overflow: hidden;

    margin-top: 40px;

    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-md);

    background: var(--code-bg);

    box-shadow: var(--shadow-md);
}

.code-example-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    padding: 17px 20px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    background: #171e2d;
}

.code-example-heading h3 {
    margin: 3px 0 0;

    color: var(--code-text);

    font-size: 0.86rem;
}

.code-label {
    color: #8190b2;
}

.copy-button {
    padding: 7px 11px;

    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 7px;

    color: #cad4eb;
    background: rgba(255, 255, 255, 0.05);

    font-size: 0.7rem;
    font-weight: 800;

    transition:
        color var(--transition),
        border-color var(--transition),
        background var(--transition);
}

.copy-button:hover {
    border-color: var(--code-accent);

    color: var(--code-accent);
}

.code-example pre {
    margin: 0;
    padding: 25px;

    overflow-x: auto;

    color: var(--code-text);

    font-size: 0.79rem;
    line-height: 1.8;

    tab-size: 4;
}


/* =========================================================
   CALLOUTS
   ========================================================= */

.callout {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;

    margin-top: 28px;
    padding: 17px;

    border: 1px solid rgba(51, 92, 255, 0.20);
    border-radius: 12px;

    background: var(--blue-soft);
}

.callout-important {
    border-color: rgba(155, 106, 24, 0.22);

    background: var(--amber-soft);
}

.callout-icon {
    display: grid;
    place-items: center;

    width: 29px;
    height: 29px;

    border-radius: 50%;

    color: var(--white);
    background: var(--blue);

    font-size: 0.72rem;
    font-weight: 900;
}

.callout-important .callout-icon {
    background: var(--amber);
}

.callout strong {
    display: block;

    margin-bottom: 3px;

    font-size: 0.8rem;
}

.callout p {
    margin: 0;

    color: var(--text-soft);

    font-size: 0.78rem;
}


/* =========================================================
   MACHINE LEARNING COMPARISON
   ========================================================= */

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.comparison-grid article {
    padding: 25px;

    border: 1px solid var(--line);
    border-radius: var(--radius-md);

    background: var(--surface);

    box-shadow: var(--shadow-sm);
}

.comparison-icon {
    display: grid;
    place-items: center;

    width: 43px;
    height: 43px;
    margin-bottom: 27px;

    border-radius: 12px;

    color: var(--white);

    background:
        linear-gradient(
            135deg,
            var(--blue),
            var(--violet)
        );

    font-weight: 900;
}

.comparison-grid h3 {
    margin: 7px 0 8px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.35rem;
    font-weight: 500;
}

.comparison-grid p:not(.comparison-label) {
    margin: 0;

    color: var(--muted);

    font-size: 0.79rem;
}

.comparison-grid ul {
    margin: 20px 0 0;
    padding: 15px 0 0 17px;

    border-top: 1px solid var(--line);

    color: var(--text-soft);

    font-size: 0.75rem;
}


/* =========================================================
   DATA SPLIT
   ========================================================= */

.data-split-card {
    display: grid;
    grid-template-columns:
        minmax(0, 0.8fr)
        minmax(400px, 1.2fr);

    gap: 50px;
    align-items: center;

    margin-top: 38px;
    padding: 34px;

    border: 1px solid var(--line);
    border-radius: var(--radius-md);

    background: var(--surface-soft);
}

.data-split-card h3 {
    margin: 7px 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.7rem;
    font-weight: 500;
}

.data-split-card > div:first-child > p:last-child {
    margin: 0;

    color: var(--muted);

    font-size: 0.83rem;
}

.data-split-visual {
    display: grid;
    grid-template-columns: 6fr 2fr 2fr;

    min-height: 115px;

    overflow: hidden;

    border-radius: 12px;

    box-shadow: var(--shadow-sm);
}

.data-split-visual > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    color: var(--white);

    text-align: center;
}

.split-training {
    background: var(--blue);
}

.split-validation {
    background: var(--violet);
}

.split-testing {
    background: var(--cyan);
}

.data-split-visual strong {
    font-size: 0.82rem;
}

.data-split-visual span {
    margin-top: 2px;

    font-size: 0.65rem;
    opacity: 0.76;
}


/* =========================================================
   GENERATIVE AI
   ========================================================= */

.generation-flow {
    display: grid;
    grid-template-columns:
        1fr
        auto
        1fr
        auto
        1fr;

    gap: 18px;
    align-items: center;
}

.generation-stage {
    min-height: 180px;
    padding: 24px;

    border: 1px solid var(--line);
    border-radius: var(--radius-md);

    background: var(--surface);

    text-align: center;
}

.generation-stage.highlighted {
    border-color: rgba(118, 87, 217, 0.35);

    background: var(--violet-soft);
}

.generation-stage > span {
    color: var(--blue);

    font-size: 0.63rem;
    font-weight: 900;
}

.generation-stage strong {
    display: block;

    margin: 25px 0 8px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.35rem;
    font-weight: 500;
}

.generation-stage p {
    margin: 0;

    color: var(--muted);

    font-size: 0.76rem;
}

.generation-arrow {
    color: var(--blue);

    font-size: 1.3rem;
}

.two-column-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;

    margin-top: 40px;
}

.two-column-content article {
    padding: 28px;

    border: 1px solid var(--line);
    border-radius: var(--radius-md);

    background: var(--surface);
}

.two-column-content h3 {
    margin: 7px 0 20px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.5rem;
    font-weight: 500;
}

.check-list,
.warning-list {
    margin: 0;
    padding: 0;

    list-style: none;
}

.check-list li,
.warning-list li {
    position: relative;

    margin: 0 0 11px;
    padding-left: 25px;

    color: var(--text-soft);

    font-size: 0.8rem;
}

.check-list li::before,
.warning-list li::before {
    position: absolute;
    left: 0;

    font-weight: 900;
}

.check-list li::before {
    color: var(--green);

    content: "✓";
}

.warning-list li::before {
    color: var(--amber);

    content: "!";
}


/* =========================================================
   PROMPT ENGINEERING
   ========================================================= */

.prompt-formula {
    display: grid;
    grid-template-columns:
        1fr auto
        1fr auto
        1fr auto
        1fr;

    gap: 12px;
    align-items: center;
}

.prompt-formula article {
    min-height: 145px;
    padding: 20px;

    border: 1px solid var(--line);
    border-radius: var(--radius-md);

    background: var(--surface);

    text-align: center;
}

.prompt-formula article > span {
    color: var(--blue);

    font-size: 0.62rem;
    font-weight: 900;
}

.prompt-formula strong {
    display: block;

    margin: 22px 0 4px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.1rem;
    font-weight: 500;
}

.prompt-formula p {
    margin: 0;

    color: var(--muted);

    font-size: 0.72rem;
}

.prompt-formula > div {
    color: var(--blue);

    font-size: 1.2rem;
    font-weight: 400;
}

.prompt-example {
    display: grid;
    grid-template-columns:
        1fr auto 1fr;

    gap: 18px;
    align-items: stretch;

    margin-top: 40px;
}

.prompt-example-column {
    padding: 26px;

    border: 1px solid var(--line);
    border-radius: var(--radius-md);

    background: var(--surface);
}

.weak-prompt {
    border-color: rgba(167, 68, 68, 0.21);

    background: var(--red-soft);
}

.strong-prompt {
    border-color: rgba(40, 118, 94, 0.23);

    background: var(--green-soft);
}

.weak-prompt .prompt-type {
    color: var(--red);
}

.strong-prompt .prompt-type {
    color: var(--green);
}

.prompt-example blockquote {
    margin: 19px 0 0;

    color: var(--text);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.05rem;
    line-height: 1.55;
}

.prompt-improvement-arrow {
    display: grid;
    place-items: center;

    color: var(--blue);

    font-size: 1.4rem;
}


/* =========================================================
   RAG DIAGRAM
   ========================================================= */

.rag-diagram {
    display: grid;
    grid-template-columns:
        1fr auto
        1fr auto
        1fr auto
        1fr;

    gap: 13px;
    align-items: center;
}

.rag-diagram article {
    min-height: 145px;
    padding: 20px;

    border: 1px solid var(--line);
    border-radius: var(--radius-md);

    background: var(--surface);

    text-align: center;
}

.rag-diagram article > span {
    display: grid;
    place-items: center;

    width: 30px;
    height: 30px;
    margin: 0 auto 18px;

    border-radius: 50%;

    color: var(--white);
    background: var(--blue);

    font-size: 0.67rem;
    font-weight: 900;
}

.rag-diagram strong {
    display: block;

    font-size: 0.84rem;
}

.rag-diagram small {
    display: block;

    margin-top: 5px;

    color: var(--muted);

    font-size: 0.67rem;
}

.rag-arrow {
    color: var(--blue);

    font-size: 1.1rem;
}


/* =========================================================
   EVALUATION
   ========================================================= */

.evaluation-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.evaluation-grid article {
    padding: 24px;

    border: 1px solid var(--line);
    border-radius: var(--radius-md);

    background: var(--surface);
}

.evaluation-icon {
    display: grid;
    place-items: center;

    width: 42px;
    height: 42px;

    border-radius: 12px;

    color: var(--blue);
    background: var(--blue-soft);

    font-size: 1rem;
}

.evaluation-grid h3 {
    margin: 25px 0 8px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.15rem;
    font-weight: 500;
}

.evaluation-grid p {
    margin: 0;

    color: var(--muted);

    font-size: 0.75rem;
}

.evaluation-cycle {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;

    margin-top: 38px;
}

.evaluation-cycle div {
    padding: 9px 15px;

    border: 1px solid var(--line);
    border-radius: 999px;

    color: var(--text-soft);
    background: var(--surface);

    font-size: 0.74rem;
    font-weight: 800;
}

.evaluation-cycle span {
    color: var(--blue);
}


/* =========================================================
   RESPONSIBLE AI
   ========================================================= */

.responsibility-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.responsibility-grid article {
    min-height: 195px;
    padding: 23px;

    border: 1px solid var(--line);
    border-radius: var(--radius-md);

    background: var(--surface);

    transition:
        transform var(--transition),
        border-color var(--transition);
}

.responsibility-grid article:hover {
    transform: translateY(-3px);

    border-color: rgba(51, 92, 255, 0.28);
}

.responsibility-grid article > span {
    color: var(--blue);

    font-size: 0.62rem;
    font-weight: 900;
}

.responsibility-grid h3 {
    margin: 25px 0 7px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.25rem;
    font-weight: 500;
}

.responsibility-grid p {
    margin: 0;

    color: var(--muted);

    font-size: 0.77rem;
}

.responsibility-quote {
    margin: 40px 0 0;
    padding: 30px;

    border-left: 4px solid var(--violet);
    border-radius:
        0
        var(--radius-md)
        var(--radius-md)
        0;

    background: var(--violet-soft);
}

.responsibility-quote p {
    margin: 0;

    color: var(--text);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(1.25rem, 2vw, 1.7rem);
    line-height: 1.5;
}


/* =========================================================
   GLOSSARY
   ========================================================= */

.glossary-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    margin-bottom: 24px;
}

.glossary-toolbar input {
    width: min(100%, 400px);
    min-height: 45px;
    padding: 9px 13px;

    border: 1px solid var(--line);
    border-radius: 10px;
    outline: 0;

    color: var(--text);
    background: var(--surface);
}

.glossary-toolbar input:focus {
    border-color: var(--blue);

    box-shadow:
        0 0 0 3px rgba(51, 92, 255, 0.09);
}

#glossary-count {
    color: var(--muted);

    font-size: 0.74rem;
    font-weight: 750;
}

.glossary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 13px;

    margin: 0;
}

.glossary-item {
    min-height: 165px;
    padding: 22px;

    border: 1px solid var(--line);
    border-radius: var(--radius-md);

    background: var(--surface);
}

.glossary-item.hidden {
    display: none;
}

.glossary-item dt {
    color: var(--text);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.2rem;
    font-weight: 500;
}

.glossary-item dd {
    margin: 12px 0 0;

    color: var(--muted);

    font-size: 0.76rem;
}


/* =========================================================
   PROJECT CLOSING
   ========================================================= */

.project-closing {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 27px;

    border-bottom: 0;
}

.project-closing h2 {
    max-width: 760px;
    margin: 8px 0 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(2.5rem, 4.5vw, 4.3rem);
    font-weight: 500;

    letter-spacing: -0.045em;
    line-height: 1;
}

.project-closing > div:first-child > p:last-child {
    max-width: 720px;
    margin: 17px 0 0;

    color: var(--muted);
}

.project-technology-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-technology-list span {
    padding: 7px 11px;

    border: 1px solid var(--line);
    border-radius: 999px;

    color: var(--text-soft);
    background: var(--surface);

    font-size: 0.7rem;
    font-weight: 750;
}

.project-closing .primary-button {
    justify-self: start;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;

    padding:
        35px
        max(25px, calc((100vw - 1400px) / 2));

    color: #adb6c8;
    background: #0b1019;
}

.site-footer p {
    margin: 3px 0 0;

    font-size: 0.72rem;
}

.site-footer > div:last-child {
    text-align: right;
}

.site-footer a {
    display: inline-block;

    margin-top: 5px;

    color: #b9c8ff;

    font-size: 0.72rem;
    font-weight: 800;

    text-decoration: none;
}

.site-footer a:hover {
    color: var(--white);
}


/* =========================================================
   MOBILE SIDEBAR OVERLAY
   ========================================================= */

.sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;

    display: none;

    padding: 0;
    border: 0;

    background: rgba(6, 10, 17, 0.52);

    cursor: default;
}

.sidebar-overlay.active {
    display: block;
}


/* =========================================================
   COPY NOTIFICATION
   ========================================================= */

.copy-notification {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 250;

    padding: 10px 15px;

    border-radius: 9px;

    color: var(--white);
    background: #182032;

    box-shadow: var(--shadow-md);

    font-size: 0.76rem;
    font-weight: 800;

    opacity: 0;

    pointer-events: none;

    transform: translateY(15px);

    transition:
        opacity var(--transition),
        transform var(--transition);
}

.copy-notification.show {
    opacity: 1;

    transform: translateY(0);
}


/* =========================================================
   SEARCH HIGHLIGHT
   ========================================================= */

.search-highlight {
    border-radius: 3px;

    color: inherit;
    background: var(--amber-soft);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1180px) {

    :root {
        --sidebar-width: 255px;
    }

    .documentation-section,
    .project-closing {
        width: min(
            calc(100% - 55px),
            var(--content-width)
        );
    }

    .hero-grid {
        grid-template-columns: 1fr 0.72fr;

        gap: 45px;
    }

    .workflow-timeline {
        grid-template-columns: repeat(4, 1fr);
    }

    .workflow-timeline article {
        border-bottom: 1px solid var(--line);
    }

    .workflow-timeline article:nth-child(4) {
        border-right: 0;
    }

    .workflow-timeline article:nth-last-child(-n + 3) {
        border-bottom: 0;
    }

    .evaluation-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================================================
   MOBILE SIDEBAR / LAYOUT
   ========================================================= */

@media (max-width: 900px) {

    :root {
        --sidebar-width: 285px;
    }

    .site-header {
        padding: 0 16px;
    }

    .mobile-menu-button {
        display: block;
    }

    .theme-label {
        display: none;
    }

    .github-button {
        padding-inline: 11px;
    }

    .documentation-layout {
        display: block;
    }

    .docs-sidebar {
        z-index: 120;

        transform: translateX(-105%);

        box-shadow: var(--shadow-lg);
    }

    .docs-sidebar.open {
        transform: translateX(0);
    }

    .docs-main {
        width: 100%;
    }

    .documentation-section,
    .project-closing {
        width: min(
            calc(100% - 36px),
            var(--content-width)
        );
    }

    .hero-grid {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .hero-visual {
        max-width: 650px;
    }

    .overview-grid {
        grid-template-columns: 1fr;
    }

    .overview-grid article,
    .overview-grid article:first-child,
    .overview-grid article:last-child {
        padding: 22px 0;

        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .overview-grid article:last-child {
        border-bottom: 0;
    }

    .learning-path {
        grid-template-columns: 1fr;
    }

    .workflow-timeline {
        grid-template-columns: repeat(2, 1fr);
    }

    .workflow-timeline article,
    .workflow-timeline article:nth-child(4),
    .workflow-timeline article:nth-last-child(-n + 3) {
        border-right: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
    }

    .workflow-timeline article:nth-child(even) {
        border-right: 0;
    }

    .workflow-timeline article:last-child {
        border-bottom: 0;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .data-split-card {
        grid-template-columns: 1fr;

        gap: 30px;
    }

    .generation-flow {
        grid-template-columns: 1fr;
    }

    .generation-arrow {
        transform: rotate(90deg);

        text-align: center;
    }

    .prompt-formula,
    .rag-diagram {
        grid-template-columns: 1fr;
    }

    .prompt-formula > div,
    .rag-arrow {
        transform: rotate(90deg);

        text-align: center;
    }

    .responsibility-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .glossary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 620px) {

    :root {
        --header-height: 70px;
    }

    .site-header {
        height: var(--header-height);
    }

    .brand-copy small {
        display: none;
    }

    .brand-copy strong {
        font-size: 0.8rem;
    }

    .brand-mark {
        width: 39px;
        height: 39px;
    }

    .github-button {
        display: none;
    }

    .documentation-section,
    .project-closing {
        width: min(
            calc(100% - 28px),
            var(--content-width)
        );

        padding: 75px 0;
    }

    .documentation-section:first-child {
        padding-top: 50px;
    }

    .hero-copy h1 {
        font-size: clamp(3.4rem, 17vw, 5rem);
    }

    .hero-description {
        font-size: 0.92rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
    }

    .workflow-code {
        padding: 23px 18px;
    }

    .workflow-code > div {
        font-size: 0.72rem;
    }

    .section-heading {
        grid-template-columns: 1fr;

        gap: 7px;
    }

    .section-number {
        margin: 0;
    }

    .section-heading h2 {
        font-size: clamp(2.2rem, 12vw, 3.4rem);
    }

    .learning-step {
        grid-template-columns: 40px 1fr;

        padding: 20px;
    }

    .concept-toggle {
        grid-template-columns: 38px 1fr auto;

        font-size: 1.08rem;
    }

    .concept-content {
        padding:
            0
            0
            23px
            38px;
    }

    .hierarchy-level {
        padding: 17px;
    }

    .level-ml {
        width: 90%;
    }

    .level-dl {
        width: 87%;
    }

    .level-genai {
        width: 84%;
    }

    .workflow-timeline {
        grid-template-columns: 1fr;
    }

    .workflow-timeline article,
    .workflow-timeline article:nth-child(even),
    .workflow-timeline article:nth-child(4),
    .workflow-timeline article:nth-last-child(-n + 3) {
        min-height: auto;

        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .workflow-timeline article:last-child {
        border-bottom: 0;
    }

    .code-example-heading {
        align-items: flex-start;
    }

    .code-example pre {
        padding: 20px 17px;

        font-size: 0.7rem;
    }

    .data-split-card {
        padding: 23px;
    }

    .data-split-visual {
        grid-template-columns: 1fr;
    }

    .data-split-visual > div {
        min-height: 75px;
    }

    .two-column-content {
        grid-template-columns: 1fr;
    }

    .prompt-example {
        grid-template-columns: 1fr;
    }

    .prompt-improvement-arrow {
        transform: rotate(90deg);
    }

    .evaluation-grid,
    .responsibility-grid,
    .glossary-grid {
        grid-template-columns: 1fr;
    }

    .glossary-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .glossary-toolbar input {
        width: 100%;
    }

    .responsibility-quote {
        padding: 23px;
    }

    .site-footer {
        flex-direction: column;
        align-items: flex-start;

        padding: 30px 20px;
    }

    .site-footer > div:last-child {
        text-align: left;
    }

    .copy-notification {
        right: 14px;
        bottom: 14px;
        left: 14px;

        text-align: center;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
