/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0;}main{display:block;}h1{font-size:2em;margin:.67em 0;}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace,monospace;font-size:1em;}a{background-color:transparent;}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted;}b,strong{font-weight:bolder;}code,kbd,samp{font-family:monospace,monospace;font-size:1em;}small{font-size:80%;}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline;}sub{bottom:-.25em;}sup{top:-.5em;}img{border-style:none;}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible;}button,select{text-transform:none;}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0;}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText;}fieldset{padding:.35em .75em .625em;}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline;}textarea{overflow:auto;}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0;}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto;}[type=search]{-webkit-appearance:textfield;outline-offset:-2px;}[type=search]::-webkit-search-decoration{-webkit-appearance:none;}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block;}summary{display:list-item;}template{display:none;}[hidden]{display:none;}

body, html {
    min-height: 100vh;
}

:root {
    --bg: #ffffff;
    --ink: #111;
    --muted: #555;
    --rule: #e6e6e6;
    --panel: #f6f7f8;
    --panel2: #fcfcfd;
    --accent: #4a90e2;
    --accent2: #4a90e2;
    --warn: #9b6b00;
    --shadow: 0 8px 24px rgba(0,0,0,.06);
    --radius: 14px;
    --max: 1120px;
    --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
    --serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: var(--sans);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
}

a {
    color: var(--accent2);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: #000;
    color: #fff;
    padding: 8px 10px;
    border-radius: 10px;
}

.skip-link:focus {
    left: 12px;
    top: 12px;
    z-index: 999;
}

.masthead {
    border-bottom: 1px solid var(--rule);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
}

.masthead-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 2px;
    min-width: 240px;
    color: inherit;
}

.brand-logo {
    width: 22px;
    height: 22px;
    opacity: .9;
    margin-top: -2px;
}

.brand-text {
    font-family: var(--serif);
    font-size: 20px;
    letter-spacing: .2px;
}

.topnav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--muted);
    font-size: 15px;
    margin-left: -16px;
}

.topnav a {
    color: var(--muted);
}

.topnav a:hover {
    color: var(--ink);
}

.official-link {
    margin-left: auto;
    font-size: 15px;
    color: var(--accent2);
    text-decoration: none;
    white-space: nowrap;
}

.official-link:hover {
    text-decoration: underline;
}

.topnav a[aria-current="page"] {
    color: var(--ink);
    font-weight: 700;
}

.cta {
    margin-left: auto;
    background: var(--accent);
    color: #fff !important;
    border: 0;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: .2px;
}

.cta:hover {
    text-decoration: none;
    filter: brightness(.97);
}

.layout {
    max-width: var(--max);
    margin: 0 auto;
    padding: 14px 18px 56px;
    display: grid;
    grid-template-columns: 220px 1fr 300px;
    gap: 22px;
    align-items: start;
}

@media (max-width: 1020px){
    .layout {
        grid-template-columns: 1fr;
    }

    .rail {
        position: static !important;
        top: auto !important;
    }

    .rail-left {
        display: none;
    }

    .brand {
        min-width: unset;
    }

    .brand-text::after {
        display: none;
    }

    .topnav {
        margin-left: 0;
    }

    .masthead-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .official-link {
        margin-left: 0;
        order: -1;
    }
}

.rail {
    position: sticky;
    top: 72px;
}

.rail-title {
    margin: 0 0 10px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #333;
}

.toc {
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 14px 14px 10px;
    background: var(--panel2);
}

.toc a {
    display: block;
    padding: 8px 8px;
    border-radius: 10px;
    font-size: 13px;
    color: #333;
    font-weight: 600;
}

.toc a:hover {
    background: #e6f7ff;
}

.toc a.active {
    background: #e7f3ff;
    color: var(--accent2);
    font-weight: 600;
}

.rail-box {
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 14px;
    background: var(--panel2);
}

.rail-right .rail-box {
    margin-top: 0;
}

.rail-box-title {
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
    font-weight: 600;
}

.paper-item {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--rule);
}

.paper-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.paper-featured {
    background: var(--panel);
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.paper-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
}

.paper-title a {
    color: var(--accent2);
    text-decoration: none;
}

.paper-title a:hover {
    text-decoration: underline;
}

.paper-meta {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.5;
}

.paper-featured .paper-title {
    font-size: 14px;
}

.featured-badge {
    display: inline-block;
    background: var(--accent2);
    color: white;
    font-size: 9px;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 3px;
    margin-bottom: 6px;
    font-weight: 700;
}

.rail-links {
    margin: 0;
    padding-left: 18px;
}

.rail-links li {
    margin: 8px 0;
}

.rail-right .adbox {
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 14px;
    background: var(--panel2);
    margin-top: 0;
    margin-bottom: 14px;
}

.adlabel {
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}

.adslot {
    height: 420px;
    border-radius: 12px;
    border: 1px dashed #d7d7d7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 13px;
    background: #fff;
}

.breadcrumb {
    color: var(--muted);
    font-size: 13px;
    padding-top: 2px;
    margin: 0 0 16px;
}

.breadcrumb a {
    color: var(--muted);
}

.article-hero {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--rule);
    margin-bottom: 22px;
}

.h1 {
    font-family: var(--serif);
    font-size: 44px;
    line-height: 1.08;
    margin: 0 0 10px;
    letter-spacing: -.2px;
}

.h1-subtitle {
    display: block;
    font-size: 0.65em;
    font-weight: 400;
    font-style: italic;
    color: var(--muted);
    margin-top: 0.15em;
    line-height: 1.2;
}

.deck {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.55;
    max-width: 72ch;
    margin: 0 0 14px;
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
}

.meta strong {
    color: var(--ink);
}

.meta .sep {
    opacity: .7;
}

.article {
    max-width: 78ch;
}

/* Scroll offset for sticky header */
.maincol h2,
.maincol h3 {
    scroll-margin-top: 90px;
}

.sec {
    padding: 16px 0;
    border-bottom: 1px solid var(--rule);
}

.sec:last-child {
    border-bottom: 0;
}

.sec h2 {
    font-family: var(--serif);
    font-size: 26px;
    margin: 0 0 10px;
    letter-spacing: -.1px;
    scroll-margin-top: 90px;
}

.sec h3 {
    font-family: var(--serif);
    font-size: 20px;
    margin: 28px 0 8px;
    scroll-margin-top: 90px;
}

.sec h3:first-of-type {
    margin-top: 14px;
}

.subsec h3 {
    font-family: var(--serif);
    font-size: 20px;
    margin: 14px 0 8px;
    scroll-margin-top: 90px;
}

p {
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 1.7;
    list-style-type: circle;
}

.big-answer {
    font-size: 22px;
    font-weight: 700;
    font-family: var(--serif);
    margin-bottom: 16px;
}

ul,
ol {
    line-height: 1.7;
}

.key-takeaways {
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background: var(--panel);
    padding: 16px 18px;
    box-shadow: var(--shadow);
    margin: 0 0 18px;
}

.key-takeaways h2 {
    font-family: var(--serif);
    font-size: 18px;
    margin: 0 0 10px;
}

.key-takeaways ul {
    margin: 0;
    padding-left: 18px;
}

.key-takeaways li {
    margin: 8px 0;
}

.fast-fact {
    border: 1px solid #f0e3bf;
    background: #fffaf0;
    border-radius: var(--radius);
    padding: 12px 14px;
    margin: 14px 0 18px;
}

.fast-fact-label {
    display: inline-block;
    font-size: 12px;
    letter-spacing: .10em;
    text-transform: uppercase;
    color: var(--warn);
    margin-right: 8px;
}

.related-card {
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 14px;
    background: #fff;
    box-shadow: var(--shadow);
    margin-top: 14px;
}

.related-title {
    font-weight: 700;
    margin: 0 0 6px;
}

.related-sub {
    color: var(--muted);
    font-size: 13px;
    margin: 0 0 10px;
}

.related-card a.btn {
    display: inline-block;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid var(--rule);
    background: #fff;
    font-weight: 800;
    font-size: 13px;
    color: #222;
}

.related-card a.btn.primary {
    border-color: transparent;
    background: var(--accent);
    color: #fff;
}

/* Hierarchical related list */
.related-grid {
    position: relative;
    padding-left: 24px;
    border-left: 2px solid #e0e0e0;
    list-style: none;
    margin: 0;
}

.related-grid .related-card {
    position: relative;
    display: block;
    margin-bottom: 16px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.related-grid .related-card::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #e0e0e0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.related-grid .related-card:hover {
    transform: translateX(4px);
    border-color: var(--accent2);
}

.related-grid .related-card:hover::before {
    background: var(--accent2);
    transform: translateY(-50%) scale(1.2);
}

.footer {
    margin-top: 34px;
    padding-top: 18px;
    border-top: 1px solid var(--rule);
    color: var(--muted);
    font-size: 13px;
}

.footer-inner {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px 22px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-left {
    min-width: 220px;
}

.footer-brand {
    font-weight: 900;
    color: var(--ink);
    font-size: 14px;
}

.footer-fine {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
}

.footer-nav a {
    color: var(--accent2);
    font-weight: 700;
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 10px;
}

.footer-nav a:hover {
    background: #eef5ff;
    text-decoration: none;
}

/* ticker */
.ticker-wrap {
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 14px;
    background: #fff;
    box-shadow: var(--shadow);
    margin: 2px 0 24px;
}

.ticker-label {
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}

.ticker-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.ticker-price {
    font-family: var(--serif);
    font-size: 22px;
}

.ticker-meta,
.ticker-status {
    color: var(--muted);
    font-size: 13px;
}

.rail-p {
    margin: 0 0 10px;
    color: #222;
    font-size: 14px;
    line-height: 1.55;
}

.rail-fine {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.rail-button {
    display: inline-block;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--accent);
    color: #fff !important;
    font-weight: 700;
}

.rail-button:hover {
    text-decoration: none;
    filter: brightness(.97);
}

.rail-link {
    color: var(--accent2);
    font-weight: 800;
}

.sitemap-list {
    columns: 2;
    column-gap: 26px;
    padding-left: 18px;
}

@media (max-width: 700px){
    .sitemap-list {
        columns: 1;
    }
}

/* link-weight */
.article a,
.related-card {
    font-weight: 700;
}

.token-kicker {
    font-size: 13px;
    color: var(--muted);
    margin: 20px 0 2px;
}

.token-kicker strong {
    color: var(--ink);
    font-weight: 800;
}

.token-kicker a {
    color: var(--accent2);
    font-weight: 400;
}

/* optical top alignment: align rail-box top border with top of first-line text in other columns */
@media (min-width: 900px){
    .rail-right {
        padding-top: 7px;
    }
}

/* Callout boxes (e.g., Important / Alert) */
.callout{
    margin: 14px 0;
    border: 1px solid var(--rule);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    padding: 12px 14px;
    background: var(--panel2);
}
.callout-title{
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-size: 12px;
    color: var(--muted);
    margin: 0 0 6px 0;
}
.callout p{ margin: 0; }
.callout p + p{ margin-top: 10px; }

/* Variants */
.callout--important{ border-left-color: var(--accent); }
.callout--important .callout-title{ color: var(--accent); }

.callout--alert{ border-left-color: var(--warn); }
.callout--alert .callout-title{ color: var(--warn); }

