/* EVA Site Redesign: subpages v2.0.0 */
.eva-subpage-redesign {
    --eva-ink: #102438;
    --eva-navy: #0b1d2e;
    --eva-navy-2: #112b42;
    --eva-accent: #c8a45d;
    --eva-accent-soft: #eee4cf;
    --eva-teal: #456f72;
    --eva-paper: #ffffff;
    --eva-soft: #f5f3ee;
    --eva-line: #d9dee3;
    --eva-muted: #5d6872;
    --eva-radius: 18px;
    background: #fff;
    color: var(--eva-ink);
}

.eva-subpage-redesign *,
.eva-subpage-redesign *::before,
.eva-subpage-redesign *::after { box-sizing: border-box; }

/* Give the article page the same calm, institutional width as the homepage. */
.eva-subpage-redesign .site-main,
.eva-subpage-redesign main#primary,
.eva-subpage-redesign .content-area {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
}

.eva-subpage-redesign .entry-header,
.eva-subpage-redesign .page-header {
    width: min(980px, calc(100% - 48px));
    margin: 72px auto 34px;
    padding: 0 0 30px;
    border-bottom: 1px solid var(--eva-line);
}

.eva-subpage-redesign .entry-header::before,
.eva-subpage-redesign .page-header::before {
    content: "EQUITY VALUE ADVISORS";
    display: block;
    margin-bottom: 16px;
    color: #846d3f;
    font-size: .74rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .15em;
}

.eva-subpage-redesign .entry-title,
.eva-subpage-redesign .page-title {
    color: var(--eva-ink);
    font-size: clamp(2.35rem, 5vw, 4.7rem);
    line-height: 1.02;
    letter-spacing: -.035em;
    font-weight: 650;
    max-width: 18ch;
    margin: 0;
}

.eva-subpage-redesign .entry-meta { color: var(--eva-muted); margin-top: 14px; }
.eva-subpage-redesign .entry-content { max-width: none; margin-top: 0; }

.eva-subpage-v2 {
    color: var(--eva-ink);
    font-family: inherit;
    line-height: 1.64;
    overflow: hidden;
}

.eva-article-shell {
    width: min(980px, calc(100% - 48px));
    margin: 0 auto;
    padding: 0 0 78px;
}

.eva-article-shell > .eva-content-intro {
    margin-bottom: 26px;
    padding: 32px 36px;
    background: var(--eva-soft);
    border: 1px solid #e7e3da;
    border-left: 4px solid var(--eva-accent);
    border-radius: var(--eva-radius);
}

.eva-content-intro > :first-child { margin-top: 0 !important; }
.eva-content-intro > :last-child { margin-bottom: 0 !important; }
.eva-content-intro > p:first-of-type {
    font-size: clamp(1.08rem, 1.5vw, 1.28rem);
    line-height: 1.58;
    color: #24384a;
}

.eva-content-section {
    margin: 18px 0;
    padding: 32px 36px 34px;
    background: #fff;
    border: 1px solid #e2dfd8;
    border-radius: var(--eva-radius);
    box-shadow: 0 8px 26px rgba(11, 29, 46, .035);
    overflow: hidden;
}

.eva-content-section:nth-of-type(even) { background: #fcfbf8; }

.eva-article-shell h1,
.eva-article-shell h2,
.eva-article-shell h3,
.eva-article-shell h4 { color: var(--eva-ink); letter-spacing: -.02em; }

.eva-article-shell h1 {
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    line-height: 1.05;
    margin: 0 0 22px;
    font-weight: 650;
}

.eva-content-section > h2:first-child,
.eva-content-section > .wp-block-heading:first-child {
    margin: 0 0 20px;
    padding-bottom: 17px;
    border-bottom: 1px solid var(--eva-line);
    font-size: clamp(1.55rem, 2.8vw, 2.25rem);
    line-height: 1.12;
    font-weight: 650;
}

.eva-article-shell h3 {
    margin: 28px 0 10px;
    padding-left: 14px;
    border-left: 3px solid var(--eva-accent);
    font-size: clamp(1.12rem, 1.8vw, 1.35rem);
    line-height: 1.28;
    font-weight: 700;
}

.eva-article-shell h4 { margin: 24px 0 8px; font-size: 1.04rem; font-weight: 750; }
.eva-article-shell p { color: #344656; margin: 0 0 1.05em; }
.eva-article-shell p:last-child { margin-bottom: 0; }
.eva-article-shell strong { color: var(--eva-ink); }

.eva-article-shell a {
    color: #765b29;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.eva-article-shell a:hover { color: var(--eva-navy); }

.eva-article-shell ul,
.eva-article-shell ol { margin: 16px 0 22px; padding-left: 1.35rem; color: #263a4b; }
.eva-article-shell li { margin: 8px 0; padding-left: 4px; }
.eva-article-shell li::marker { color: #9a7a40; font-weight: 700; }

.eva-article-shell blockquote,
.eva-article-shell .wp-block-quote {
    margin: 24px 0;
    padding: 22px 26px;
    background: var(--eva-soft);
    border: 0;
    border-left: 4px solid var(--eva-teal);
    border-radius: 0 12px 12px 0;
    color: #26394a;
}

.eva-article-shell blockquote p:last-child { margin-bottom: 0; }

.eva-article-shell table,
.eva-article-shell .wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 22px 0 26px;
    font-size: .94rem;
    background: #fff;
}
.eva-article-shell th {
    background: var(--eva-navy);
    color: #fff;
    text-align: left;
    font-weight: 700;
    padding: 13px 15px;
    border: 1px solid #2c4052;
}
.eva-article-shell td { padding: 13px 15px; border: 1px solid var(--eva-line); vertical-align: top; color: #334656; }
.eva-article-shell tr:nth-child(even) td { background: #f8f7f3; }
.eva-article-shell .wp-block-table { overflow-x: auto; }

.eva-article-shell img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}
.eva-article-shell figure { margin: 26px 0; }
.eva-article-shell figcaption { color: var(--eva-muted); font-size: .82rem; line-height: 1.45; margin-top: 8px; }

.eva-article-shell hr { border: 0; border-top: 1px solid var(--eva-line); margin: 30px 0; }

/* Existing WordPress buttons inherit the same button language as the homepage. */
.eva-article-shell .wp-block-button__link,
.eva-article-shell a.wp-element-button,
.eva-article-shell a.button,
.eva-article-shell input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 18px;
    border-radius: 999px;
    border: 1px solid var(--eva-navy);
    background: var(--eva-navy);
    color: #fff !important;
    font-weight: 700;
    text-decoration: none !important;
}

/* Bottom newsletter band, shared by every sub-URL. */
.eva-subpage-brief {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto 86px;
}

.eva-subpage-brief-card {
    background: #f3f1ec;
    border: 1px solid var(--eva-line);
    border-radius: 24px;
    overflow: hidden;
}

.eva-subpage-brief-copy { padding: 46px 52px 38px; }
.eva-subpage-eyebrow {
    margin: 0 0 16px;
    color: #846d3f;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}
.eva-subpage-brief-copy h2 {
    color: var(--eva-ink);
    font-size: clamp(1.8rem, 3.4vw, 3rem);
    line-height: 1.08;
    letter-spacing: -.025em;
    margin: 0 0 16px;
    max-width: none;
}
.eva-subpage-brief-copy > p:not(.eva-subpage-eyebrow) { color: var(--eva-muted); max-width: 88ch; margin-bottom: 14px; }
.eva-subpage-brief-copy > a { color: #765b29; font-weight: 750; text-decoration: none; }
.eva-subpage-brief-copy > a:hover { text-decoration: underline; text-underline-offset: 3px; }

.eva-subpage-brief-signup {
    width: 100%;
    background: #fff;
    border-top: 1px solid var(--eva-line);
    padding: 16px 52px 12px;
}
.eva-subpage-brief-signup iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 150px;
    border: 1px solid #e2dfd8;
    background: #fff;
    border-radius: 10px;
}
.eva-subpage-brief-signup > p { margin: 8px 4px 0; color: var(--eva-muted); font-size: .77rem; line-height: 1.4; }
.eva-subpage-brief-signup a { color: #765b29; }

/* Remove theme spacing that can make the new article shell feel double-padded. */
.eva-subpage-redesign .entry-content > .eva-subpage-v2 { margin-top: 0; }
.eva-subpage-redesign .post-thumbnail { width: min(980px, calc(100% - 48px)); margin-left: auto; margin-right: auto; }

@media (max-width: 760px) {
    .eva-subpage-redesign .entry-header,
    .eva-subpage-redesign .page-header,
    .eva-article-shell,
    .eva-subpage-brief,
    .eva-subpage-redesign .post-thumbnail { width: min(100% - 28px, 980px); }

    .eva-subpage-redesign .entry-header,
    .eva-subpage-redesign .page-header { margin-top: 48px; padding-bottom: 22px; }
    .eva-subpage-redesign .entry-title,
    .eva-subpage-redesign .page-title { font-size: clamp(2rem, 10vw, 3rem); max-width: none; }
    .eva-article-shell { padding-bottom: 54px; }
    .eva-article-shell > .eva-content-intro,
    .eva-content-section { padding: 24px 22px; border-radius: 15px; }
    .eva-content-section { margin: 14px 0; }
    .eva-article-shell h3 { padding-left: 11px; }
    .eva-article-shell table,
    .eva-article-shell .wp-block-table table { font-size: .88rem; }
    .eva-article-shell th,
    .eva-article-shell td { padding: 10px 11px; }
    .eva-subpage-brief { margin-bottom: 64px; }
    .eva-subpage-brief-card { border-radius: 18px; }
    .eva-subpage-brief-copy { padding: 32px 24px 26px; }
    .eva-subpage-brief-signup { padding: 12px 24px 10px; }
}
