/* books.html: the Forex Series overview (hand-built v3 page).
   Source: scratchpad gen; every rule is scoped to :root.page-books. */

:root.page-books body main.bks > section { padding: 104px 0; }
:root.page-books body .bks h2.display { font-size: clamp(32px, 3.8vw, 48px); margin: 14px 0 0; line-height: 1.08; }
:root.page-books body .bks .display em { font-style: italic; color: var(--blue); }
:root.page-books body .bks .lede { font-size: 19px; color: var(--ink-2); margin: 18px 0 0; }
:root.page-books body .bks-head { max-width: 760px; margin: 0 0 56px; }

/* ---- top ---- */
:root.page-books body main.bks > section.bks-top {
    position: relative;
    overflow: hidden;
    padding: 40px 0 0;
    background: linear-gradient(180deg, #fff 0%, var(--paper) 70%);
    border-bottom: 1px solid var(--rule);
}
:root.page-books body .bks-top::before {           /* faint chart grid */
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(7,24,39,.045) 1px, transparent 1px) 0 0 / 100% 64px;
    pointer-events: none;
}
:root.page-books body .bks-top .wrap { position: relative; }
:root.page-books body .bks-top-copy { max-width: 860px; margin: 20px auto 0; text-align: center; display: flex; flex-direction: column; align-items: center; }
:root.page-books body .bks-top h1.display { font-size: clamp(36px, 4.6vw, 60px); margin: 20px 0 0; line-height: 1.06; }
:root.page-books body .bks-top .lede { margin: 20px auto 0; max-width: 36em; }
:root.page-books body .bks-cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 32px; }
:root.page-books body .bks-shelf {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: center;
    align-items: end;
    gap: 72px;
    margin: 64px auto 0;
    padding: 0 0 56px;
}
:root.page-books body .bks-pick { display: flex; flex-direction: column; align-items: center; color: var(--ink); text-align: center; position: relative; z-index: 1; }
:root.page-books body .bks-pick .b3d { margin-bottom: 0; position: relative; z-index: 1; }
:root.page-books body .bks-ledge {
    display: block;
    width: calc(100% + 72px);
    height: 12px;
    margin: -2px 0 22px;
    background: linear-gradient(180deg, #ECE7DB, #DCD4C2);
    border-top: 1px solid #fff;
    box-shadow: 0 16px 24px -16px rgba(7,24,39,.4);
}
:root.page-books body .bks-pick:nth-child(2) .b3d { --w: 214px; }
:root.page-books body .bks-pick-l { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lv-t); }
:root.page-books body .bks-pick-l i { width: 18px; height: 3px; background: var(--lv); }
:root.page-books body .bks-pick-t { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--navy); margin-top: 4px; }
:root.page-books body .bks-pick:hover .bks-pick-t { color: var(--blue-text); }
:root.page-books body .bks-pick .b3d-obj { animation: bks-float 7s ease-in-out infinite; }
:root.page-books body .bks-pick:nth-child(2) .b3d-obj { animation-delay: -2.3s; }
:root.page-books body .bks-pick:nth-child(3) .b3d-obj { animation-delay: -4.6s; }
@keyframes bks-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* ---- the three volumes ---- */
:root.page-books body main.bks > section.bks-series { background: #fff; border-bottom: 1px solid var(--rule); }
:root.page-books body .bks-vol {
    position: relative;
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 72px;
    align-items: center;
    padding: 64px 0;
    border-top: 1px solid var(--rule);
    scroll-margin-top: 90px;
}
:root.page-books body .bks-vol:nth-of-type(even) { grid-template-columns: minmax(0, 1fr) 360px; }
:root.page-books body .bks-vol:nth-of-type(even) .bks-vol-art { order: 2; }
:root.page-books body .bks-vol-art {
    display: grid;
    place-items: center;
    background: radial-gradient(70% 60% at 50% 45%, var(--lv-bg), rgba(255,255,255,0) 72%);
    padding: 24px 0 36px;
}
:root.page-books body .bks-vol-art { position: relative; }
:root.page-books body .bks-vol-text { position: relative; max-width: 620px; }
:root.page-books body .bks-num {
    position: absolute;
    right: 0; top: -6px;
    font-family: var(--serif);
    font-size: 140px;
    line-height: 1;
    font-weight: 700;
    color: var(--lv);
    opacity: .16;
    font-variant-numeric: lining-nums;
    pointer-events: none;
}
:root.page-books body .bks-level { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lv-t); }
:root.page-books body .bks-level i { width: 26px; height: 3px; background: var(--lv); }
:root.page-books body .bks-vol h3 { font-family: var(--serif); font-size: clamp(30px, 3vw, 40px); line-height: 1.1; margin: 12px 0 6px; }
:root.page-books body .bks-vol h3 a { color: var(--navy); }
:root.page-books body .bks-vol h3 a:hover { color: var(--blue-text); }
:root.page-books body .bks-sub { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--ink-2); margin: 0 0 16px; }
:root.page-books body .bks-vol-text > p:not(.bks-sub) { color: var(--ink-2); margin: 0 0 22px; font-size: 17px; }
:root.page-books body .bks-facts { list-style: none; margin: 0 0 26px; padding: 14px 0; display: flex; flex-wrap: wrap; gap: 10px 32px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
:root.page-books body .bks-facts li { display: flex; flex-direction: column; font-weight: 600; color: var(--navy); font-size: 15px; }
:root.page-books body .bks-facts span { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
:root.page-books body .bks-buy { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
:root.page-books body .bks-buy .btn { min-height: 48px; }
:root.page-books body .bks-more { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; }
:root.page-books body .bks-more li { display: inline-flex; align-items: center; gap: 10px; min-height: 32px; }
:root.page-books body .bks-free { font-size: 12px; font-weight: 700; color: var(--level-2); background: rgba(31,157,116,.1); padding: 4px 9px; border-radius: 999px; }
:root.page-books body .bks-note { margin: 8px 0 0; padding-top: 28px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--ink-3); text-align: center; }

/* ---- comparison table ---- */
:root.page-books body main.bks > section.bks-compare { background: var(--paper); }
:root.page-books body .bks-table { overflow-x: auto; border: 1px solid var(--rule); background: #fff; box-shadow: 0 30px 60px -44px rgba(7,24,39,.4); }
:root.page-books body .bks-table:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
:root.page-books body .bks-table table { width: 100%; min-width: 720px; margin: 0; border-collapse: collapse; font-size: 15.5px; background: #fff; }
:root.page-books body .bks-table th, :root.page-books body .bks-table td { padding: 18px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); background: transparent; }
:root.page-books body .bks-table tr:nth-child(even) td { background: transparent; }
:root.page-books body .bks-table thead th { background: var(--navy); color: #fff; font-family: var(--serif); font-size: 21px; font-weight: 700; line-height: 1.2; border-bottom: 0; vertical-align: bottom; }
:root.page-books body .bks-table thead th:first-child { font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #9FB0C2; font-weight: 600; }
:root.page-books body .bks-table thead th span { display: block; font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lv); margin-bottom: 6px; filter: brightness(1.35); }
:root.page-books body .bks-table thead th.l1, :root.page-books body .bks-table thead th.l2, :root.page-books body .bks-table thead th.l3 { border-top: 4px solid var(--lv); }
:root.page-books body .bks-table tbody th { font-weight: 600; color: var(--navy); font-size: 14px; width: 18%; background: var(--cloud); }
:root.page-books body .bks-table td { color: var(--ink-2); border-left: 1px solid var(--rule); width: 27.3%; }
:root.page-books body .bks-table td em { font-family: var(--serif); font-style: italic; color: var(--navy); font-size: 17px; }
:root.page-books body .bks-table td a:not([class]) { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:root.page-books body .bks-buyrow td { background: var(--cloud) !important; }
:root.page-books body .bks-tbtn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 14px; margin: 0 6px 8px 0; background: var(--navy); color: #fff; border: 1.5px solid var(--navy); border-radius: 4px; font-weight: 600; font-size: 14px; transition: background .25s, color .25s; }
:root.page-books body .bks-tbtn:hover { background: var(--blue-text); border-color: var(--blue-text); color: #fff; }
:root.page-books body .bks-tbtn.ghost { background: transparent; color: var(--navy); }
:root.page-books body .bks-tbtn.ghost:hover { background: var(--navy); color: #fff; }
:root.page-books body .bks-tlink { display: block; font-weight: 600; font-size: 14px; margin-top: 2px; }
:root.page-books body .bks-help { margin: 24px 0 0; color: var(--ink-3); font-size: 15px; }
:root.page-books body .bks-help a { font-weight: 600; }

/* ---- included ---- */
:root.page-books body main.bks > section.bks-inc { background: #fff; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
:root.page-books body .bks-inclist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
:root.page-books body .bks-inclist li { padding: 36px 32px 34px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); transition: background .4s; }
:root.page-books body .bks-inclist li:hover { background: var(--paper); }
:root.page-books body .bks-inclist svg { width: 34px; height: 34px; color: var(--blue); margin-bottom: 18px; }
:root.page-books body .bks-inclist h3 { font-size: 21px; margin: 0 0 8px; }
:root.page-books body .bks-inclist p { margin: 0; font-size: 15.5px; color: var(--ink-2); }
:root.page-books body .bks-inclist p a { font-weight: 600; }

/* ---- courses (reuses the home .course component) ---- */
:root.page-books body main.bks > section.bks-courses { background: var(--paper); }
:root.page-books body .bks-courses .course-top img { height: 250px; width: auto; }
:root.page-books body .bks-courses .course-body h3 { font-size: 22px; }
:root.page-books body .bks-dubai {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--rule);
    border-left: 3px solid var(--gold);
    padding: 30px 34px;
}
:root.page-books body .bks-dubai h3 { font-size: 24px; margin: 10px 0 6px; }
:root.page-books body .bks-dubai p { margin: 0; color: var(--ink-2); max-width: 40em; }
:root.page-books body .bks-dubai-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- end band ---- */
:root.page-books body main.bks > section.bks-end {
    background: radial-gradient(1200px 400px at 85% 0%, rgba(47,128,237,.25), transparent 60%), var(--navy-2);
    padding: 88px 0;
}
:root.page-books body .bks-end .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
:root.page-books body .bks-end .eyebrow { color: var(--blue-light); }
:root.page-books body .bks-end h2.display { color: #fff; }
:root.page-books body .bks-end h2.display em { color: var(--blue-light); }
:root.page-books body .bks-end p { color: #C7D6E2; margin: 16px 0 0; font-size: 17px; }
:root.page-books body .bks-end-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; }
:root.page-books body .bks-end .btn-light { background: #fff; color: var(--navy); border-color: #fff; }
:root.page-books body .bks-end .btn-light:hover { background: var(--blue-light); border-color: var(--blue-light); color: var(--navy); }
:root.page-books body .bks-btn-out { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
:root.page-books body .bks-btn-out:hover { background: #fff; color: var(--navy); border-color: #fff; }
:root.page-books body .bks-end .bks-risk { flex-basis: 100%; text-align: right; font-size: 13px; color: #9FB0C2; margin: 4px 0 0; }

/* ---- responsive ---- */
@media (max-width: 1080px) {
    :root.page-books body .bks-shelf { gap: 40px; }
    :root.page-books body .bks-pick .b3d { --w: 160px; }
    :root.page-books body .bks-pick:nth-child(2) .b3d { --w: 180px; }
    :root.page-books body .bks-vol, :root.page-books body .bks-vol:nth-of-type(even) { grid-template-columns: 280px minmax(0, 1fr); gap: 48px; }
    :root.page-books body .bks-vol:nth-of-type(even) .bks-vol-art { order: 0; }
    :root.page-books body .bks-inclist { grid-template-columns: repeat(2, 1fr); }
    :root.page-books body .bks-end .wrap { grid-template-columns: 1fr; }
    :root.page-books body .bks-end-actions { justify-content: flex-start; }
    :root.page-books body .bks-end .bks-risk { text-align: left; }
}
@media (max-width: 860px) {
    :root.page-books body main.bks > section { padding: 72px 0; }
    :root.page-books body .bks-head { margin-bottom: 40px; }
    :root.page-books body .bks-vol, :root.page-books body .bks-vol:nth-of-type(even) { grid-template-columns: 1fr; gap: 28px; padding: 48px 0; }
    :root.page-books body .bks-vol-art { padding: 12px 0 24px; }
    :root.page-books body .bks-num { font-size: 96px; }
    :root.page-books body .bks-dubai { grid-template-columns: 1fr; padding: 26px 24px; }
}
@media (max-width: 600px) {
    :root.page-books body main .wrap { padding: 0 16px; }
    :root.page-books body main.bks > section.bks-top { padding-top: 28px; }
    :root.page-books body .bks-top-copy { text-align: left; align-items: flex-start; }
    :root.page-books body .bks-cta-row { justify-content: flex-start; }
    :root.page-books body .bks-cta-row .btn { width: 100%; justify-content: center; }
    :root.page-books body .bks-shelf { gap: 10px; margin-top: 44px; padding-bottom: 30px; grid-template-columns: repeat(3, 1fr); }
    :root.page-books body .bks-ledge { width: calc(100% + 10px); height: 8px; margin-bottom: 14px; }
    :root.page-books body .bks-pick .b3d, :root.page-books body .bks-pick:nth-child(2) .b3d { --w: 92px; --d: 10px; }
    :root.page-books body .bks-pick-l { font-size: 10px; letter-spacing: .08em; }
    :root.page-books body .bks-pick-l i { display: none; }
    :root.page-books body .bks-pick-t { font-size: 16px; }
    :root.page-books body .bks-buy .btn { flex: 1 1 100%; justify-content: center; }
    :root.page-books body .bks-inclist { grid-template-columns: 1fr; }
    :root.page-books body .bks-inclist li { padding: 28px 22px; }
    :root.page-books body .bks-end-actions .btn { width: 100%; justify-content: center; }
    :root.page-books body .bks-table th, :root.page-books body .bks-table td { padding: 14px 14px; }
}
