/*
 * Blog / editorial design system
 * ---------------------------------------------------------------------------
 * Deliberately distinct from premium.css, which dresses the service and service
 * area pages. Those are marketing pages: dark gradient hero, photo card grid,
 * heavy sans headlines. The blog is for reading, so it uses a light paper
 * ground, a serif headline face, a single narrow measure and list-style indexes
 * instead of card grids. Namespaced .bl-* so the two never collide.
 */

.bl {
    --ink: #14181f;
    --ink-soft: #414b5a;
    --ink-mute: #6b7686;
    --rule: #e6e3dd;
    --paper: #fffdf9;
    --paper-alt: #f7f5f0;
    --accent: #f06b23;
    --accent-ink: #c9520f;
    --blue: #146eb8;

    --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

    font-family: var(--sans);
    color: var(--ink-soft);
    background: var(--paper);
}

.bl-wrap {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.bl-narrow {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.bl h1, .bl h2, .bl h3, .bl h4 {
    font-family: var(--serif);
    color: var(--ink);
    font-weight: 600;
    line-height: 1.22;
    letter-spacing: -.01em;
    margin: 0 0 14px;
}

.bl p { margin: 0 0 20px; line-height: 1.75; }
.bl a { color: var(--blue); text-decoration: none; }
.bl a:hover { text-decoration: underline; }

/* ------------------------------------------------------------ masthead --- */
.bl-masthead {
    border-bottom: 1px solid var(--rule);
    background: var(--paper);
    padding: 64px 0 44px;
}

.bl-kicker {
    font-family: var(--sans);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent-ink);
    margin-bottom: 16px;
}

.bl-masthead h1 {
    font-size: clamp(2.3rem, 5vw, 3.4rem);
    max-width: 16ch;
    margin-bottom: 18px;
}

.bl-masthead p {
    font-size: 1.1rem;
    max-width: 56ch;
    color: var(--ink-mute);
    margin: 0;
}

.bl-crumbs {
    font-size: .84rem;
    color: var(--ink-mute);
    margin-bottom: 26px;
    font-family: var(--sans);
}

.bl-crumbs a { color: var(--ink-mute); }
.bl-crumbs em { font-style: normal; opacity: .5; margin: 0 8px; }

/* ------------------------------------------------------------- lead post - */
.bl-lead {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 46px;
    align-items: center;
    padding: 60px 0;
    border-bottom: 1px solid var(--rule);
}

.bl-lead-media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 4px;
    background: var(--paper-alt);
}

.bl-lead-media a { display: block; width: 100%; height: 100%; }
.bl-lead-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bl-lead h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.bl-lead h2 a { color: var(--ink); }
.bl .bl-lead h2 a:hover { color: var(--accent-ink); text-decoration: none; }
.bl-lead p { font-size: 1.06rem; color: var(--ink-soft); }

/* --------------------------------------------------------------- meta ---- */
.bl-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    font-family: var(--sans);
    font-size: .82rem;
    color: var(--ink-mute);
    margin-bottom: 14px;
}

.bl-meta .bl-dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }

.bl-tag {
    font-family: var(--sans);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent-ink);
    background: rgba(240, 107, 35, .09);
    border: 1px solid rgba(240, 107, 35, .22);
    border-radius: 3px;
    padding: 5px 10px;
}

/* --------------------------------------------------- index list (rows) --- */
.bl-list { padding: 10px 0 70px; }

.bl-row {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 34px;
    align-items: start;
    padding: 36px 0;
    border-bottom: 1px solid var(--rule);
}

.bl-row:last-child { border-bottom: 0; }

.bl-row-media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 4px;
    background: var(--paper-alt);
}

.bl-row-media a { display: block; width: 100%; height: 100%; }
.bl-row-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.bl-row:hover .bl-row-media img { transform: scale(1.04); }

.bl-row h3 { font-size: 1.42rem; margin-bottom: 10px; }
.bl-row h3 a { color: var(--ink); }
.bl .bl-row h3 a:hover { color: var(--accent-ink); text-decoration: none; }
.bl-row p { font-size: .98rem; color: var(--ink-mute); margin-bottom: 12px; }

.bl .bl-more {
    font-family: var(--sans);
    font-size: .86rem;
    font-weight: 700;
    color: var(--accent-ink);
    border-bottom: 1px solid rgba(240, 107, 35, .4);
    padding-bottom: 2px;
}

.bl .bl-more:hover { text-decoration: none; border-bottom-color: var(--accent-ink); }

/* ------------------------------------------------------- article header -- */
.bl-article-head {
    padding: 56px 0 40px;
    border-bottom: 1px solid var(--rule);
    text-align: center;
}

.bl-article-head h1 {
    font-size: clamp(2rem, 4.6vw, 3.05rem);
    margin: 0 auto 20px;
    max-width: 20ch;
}

.bl-article-head .bl-meta { justify-content: center; }
.bl-article-head .bl-standfirst { font-size: 1.14rem; color: var(--ink-mute); max-width: 60ch; margin: 0 auto; }

.bl-figure { margin: 44px auto 0; max-width: 900px; padding: 0 24px; }

/* Crop to a consistent banner ratio rather than letting each source image
   dictate how much of the article it pushes off screen. */
.bl-figure img {
    width: 100%;
    aspect-ratio: 16 / 8;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

/* -------------------------------------------------------- article body --- */
.bl-body { padding: 52px 0 70px; font-size: 1.09rem; }
.bl-body > p:first-of-type { font-size: 1.2rem; color: var(--ink-soft); }

.bl-body > p:first-of-type::first-letter {
    float: left;
    font-family: var(--serif);
    font-size: 3.5em;
    line-height: .82;
    font-weight: 600;
    color: var(--ink);
    padding: .06em .1em 0 0;
}

.bl-body h2 { font-size: 1.72rem; margin: 46px 0 16px; }
.bl-body h3 { font-size: 1.28rem; margin: 34px 0 12px; }

.bl-body ul { list-style: none; padding: 0; margin: 0 0 26px; }

.bl-body ul li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 12px;
    line-height: 1.7;
}

.bl-body ul li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: .68em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

/* Callouts written into the post content. */
.bl-body .pm-callout {
    display: block;
    background: var(--paper-alt);
    border: 0;
    border-left: 3px solid var(--accent);
    border-radius: 0;
    padding: 24px 28px;
    margin: 34px 0;
    font-size: 1rem;
}

.bl-body .pm-callout i { display: none; }
.bl-body .pm-callout p { margin: 0; }

/* Step blocks written into the post content read as a numbered list here. */
.bl-body .pm-steps { counter-reset: blstep; margin: 30px 0; }

.bl-body .pm-step {
    position: relative;
    padding: 0 0 0 52px;
    margin-bottom: 26px;
    background: none;
    border: 0;
}

.bl-body .pm-step::before {
    counter-increment: blstep;
    content: counter(blstep);
    position: absolute;
    left: 0;
    top: -2px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--sans);
    font-weight: 700;
    font-size: .86rem;
}

.bl-body .pm-step h3 { font-size: 1.1rem; margin: 0 0 6px; }
.bl-body .pm-step p { margin: 0; color: var(--ink-mute); font-size: 1rem; }

/* FAQ written into the post content. */
.bl-body .pm-faq { margin: 26px 0 0; }

.bl-body .pm-faq details {
    border: 0;
    border-bottom: 1px solid var(--rule);
    border-radius: 0;
    padding: 0;
}

.bl-body .pm-faq summary {
    list-style: none;
    cursor: pointer;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.12rem;
    color: var(--ink);
    padding: 20px 34px 20px 0;
    position: relative;
}

.bl-body .pm-faq summary::-webkit-details-marker { display: none; }

.bl-body .pm-faq summary::after {
    content: "+";
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--sans);
    font-size: 1.3rem;
    color: var(--accent-ink);
}

.bl-body .pm-faq details[open] summary::after { content: "\2013"; }
.bl-body .pm-faq details p { padding-bottom: 20px; margin: 0; font-size: 1rem; }

/* --------------------------------------------------------------- rail ---- */
.bl-signoff {
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 30px 0;
    margin: 46px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}

.bl-signoff p { margin: 0; font-size: .98rem; max-width: 46ch; }
.bl-signoff strong { color: var(--ink); font-family: var(--serif); }

.bl-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--sans);
    font-weight: 700;
    font-size: .92rem;
    padding: 13px 26px;
    border-radius: 3px;
    background: var(--ink);
    color: var(--paper);
    white-space: nowrap;
}

.bl .bl-btn { color: var(--paper); }
.bl .bl-btn:hover { background: var(--accent-ink); color: var(--paper); text-decoration: none; }

/* ------------------------------------------------------------- related --- */
.bl-related { background: var(--paper-alt); padding: 62px 0; border-top: 1px solid var(--rule); }
.bl-related h2 { font-size: 1.5rem; margin-bottom: 30px; }
.bl-related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }

.bl-related-item { border-top: 2px solid var(--ink); padding-top: 18px; }
.bl-related-item h3 { font-size: 1.16rem; margin-bottom: 8px; }
.bl-related-item h3 a { color: var(--ink); }
.bl-related-item h3 a:hover { color: var(--accent-ink); text-decoration: none; }
.bl-related-item p { font-size: .94rem; color: var(--ink-mute); margin: 0; }

/* -------------------------------------------------------------- pager ---- */
.bl-pager { display: flex; justify-content: center; gap: 8px; padding: 20px 0 70px; font-family: var(--sans); }

.bl-pager .page-numbers {
    min-width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0 12px;
    border: 1px solid var(--rule);
    border-radius: 3px;
    font-weight: 700;
    font-size: .9rem;
    color: var(--ink-soft);
}

.bl-pager .page-numbers.current,
.bl-pager .page-numbers:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); text-decoration: none; }

/* --------------------------------------------------- reading progress ---- */
.bl-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: var(--accent);
    z-index: 9998;
    transition: width .1s linear;
}

/* ---------------------------------------------------------- responsive --- */
@media (max-width: 900px) {
    .bl-lead { grid-template-columns: 1fr; gap: 26px; padding: 44px 0; }
    .bl-lead-media { order: -1; }
    .bl-related-grid { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 640px) {
    .bl-masthead { padding: 44px 0 32px; }
    .bl-row { grid-template-columns: 1fr; gap: 16px; }
    .bl-row-media { aspect-ratio: 16 / 9; }
    .bl-article-head { padding: 40px 0 30px; text-align: left; }
    .bl-article-head h1 { max-width: none; }
    .bl-article-head .bl-meta { justify-content: flex-start; }
    .bl-article-head .bl-standfirst { margin-left: 0; }
    .bl-body { font-size: 1.05rem; padding: 38px 0 54px; }
    .bl-signoff { flex-direction: column; align-items: flex-start; }
}
