/* Styles for the static prose that ships in the HTML on every page.
   style.css centres a single calculator card in the viewport; these rules
   switch the document back to normal top-to-bottom flow so long-form content
   can sit under (or instead of) the calculator. */

body.doc {
    display: block;
    align-items: stretch;
    padding: 24px 16px 48px;
}

body.doc .container {
    margin: 0 auto;
}

/* Content card */
.content {
    max-width: 820px;
    margin: 28px auto 0;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 32px 36px 36px;
    color: #24292f;
    line-height: 1.65;
    font-size: 16px;
}

.content h1 {
    text-align: left;
    font-size: 30px;
    line-height: 1.25;
    margin-bottom: 14px;
    color: #2b2b6f;
}

.content h2,
.content .lede-h {
    font-size: 22px;
    line-height: 1.3;
    margin: 30px 0 10px;
    color: #2b2b6f;
}

.content h3 {
    font-size: 17px;
    margin: 20px 0 6px;
    color: #333;
}

.content p {
    margin-bottom: 14px;
}

.content .lede {
    font-size: 17px;
    color: #444;
}

.content ul,
.content ol {
    margin: 0 0 16px 22px;
}

.content li {
    margin-bottom: 7px;
}

.content a {
    color: #5a4bd6;
}

.content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.92em;
    background: #f2f2f7;
    border-radius: 4px;
    padding: 1px 5px;
}

/* Breadcrumbs */
.crumbs ol {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    font-size: 14px;
    color: #666;
}

.crumbs li {
    display: inline;
    margin: 0;
}

.crumbs li + li::before {
    content: " / ";
    color: #aaa;
}

/* Site navigation and footer */
.sitenav {
    margin-top: 34px;
    border-top: 1px solid #e6e6ef;
    padding-top: 18px;
}

.sitenav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    font-size: 14px;
}

.sitenav li {
    margin: 0;
}

.sitenav [aria-current="page"] {
    color: #888;
}

.sitefoot {
    margin-top: 18px;
    font-size: 13px;
    color: #666;
}

.sitefoot p {
    margin: 0;
}

/* The history heading is an h2 so the calculator card does not break the
   document outline; style.css targets the old h3, so it is restated here. */
.history h2 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #666;
}

@media (max-width: 560px) {
    .content {
        padding: 22px 20px 26px;
        border-radius: 14px;
    }

    .content h1 {
        font-size: 25px;
    }
}
