/* ==========================================================================
   Wealth Building Financial — /profile/
   Loaded only on the profile page (see layouts/partials/headers.html).
   ========================================================================== */

/* ==========================================================================
   About page — long-form prose layout
   ========================================================================== */

/* /zh/profile/ is the longest run of continuous prose on the site outside the
   knowledge centre: four stacked sections of paragraphs and lists, with no
   cards or images to break the column. It inherits `col-md-10 col-md-offset-1`,
   which leaves a ~920px measure — roughly 54 Chinese glyphs a line, well past
   the 30–45 where the eye still lands reliably on the start of the next one.
   `.content-section` has never had a rule anywhere in the stylesheets either,
   so the four sections ran together on nothing but the heading's 20px margin.

   The scale below is deliberately the one `.knowledge-article-body` already
   uses (17px/1.9 body, ~24px headings). That is the site's other long-form
   page, built the same way, and the two should read the same way.

   Every rule goes through `.content-section` rather than `.page-profile`
   alone: that body class also covers the English about page, which is a grid
   of `.box-simple` cards and must not pick any of this up. */
.page-profile .content-section {
    max-width: 720px;
    margin: 0 auto 52px;
}

/* Sections after the first announce themselves with a rule rather than with
   whitespace alone — four unbroken blocks of text otherwise read as one. */
.page-profile .content-section + .content-section {
    padding-top: 48px;
    border-top: 1px solid var(--color-border);
}

/* The theme leaves bare headings at the UA size in a 900 weight, so the
   section titles were both small (24px) and heavy. Larger and lighter scans
   better at the top of a screen of text. */
.page-profile .content-section h2 {
    margin: 0 0 22px;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--color-primary);
}

.page-profile .content-section h3 {
    margin: 0 0 14px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--color-primary);
}

.page-profile .content-section p {
    margin: 0 0 20px;
    font-size: 17px;
    line-height: 1.9;
}

/* The section's own bottom margin already spaces it from the next one. */
.page-profile .content-section p:last-child {
    margin-bottom: 0;
}

/* The theme's .lead is 21px on the body's 1.65 leading, which sets a dense
   slab of Chinese exactly where a section should be opening up. One step over
   the body size, with room to breathe, does the same job. */
.page-profile .content-section .lead {
    margin-bottom: 26px;
    font-size: 19px;
    line-height: 1.85;
    color: var(--color-muted-3);
}

/* Both lists on this page are label-plus-explanation rows that wrap, so they
   want the prose leading rather than the tighter list default, and the ✓ has
   to be re-hung against the taller line box and the new row padding. */
.page-profile .content-section .resource-list {
    margin: 0 0 26px;
}

.page-profile .content-section .resource-list li {
    padding: 13px 0 13px 28px;
    font-size: 17px;
    line-height: 1.9;
    color: var(--color-text);
    /* --color-border-light is #f1f5f9, which all but disappears against the
       warm canvas this page sits on. */
    border-bottom-color: var(--color-border);
}

.page-profile .content-section .resource-list li:before {
    top: 13px;
}

.page-profile .content-section .resource-list strong {
    color: var(--color-primary);
    font-weight: 700;
}

@media (max-width: 767px) {
    .page-profile .content-section {
        margin-bottom: 40px;
    }

    .page-profile .content-section + .content-section {
        padding-top: 36px;
    }

    .page-profile .content-section h2 {
        margin-bottom: 18px;
        font-size: 21px;
    }

    .page-profile .content-section h3 {
        font-size: 20px;
    }

    .page-profile .content-section p,
    .page-profile .content-section .resource-list li {
        font-size: 16px;
        line-height: 1.85;
    }

    .page-profile .content-section .lead {
        font-size: 17px;
    }
}
