/* Blog listing and article template.
   Prose styles live here rather than inline, so every post — existing or new —
   is typeset the same way without the author having to style anything. */

.ez-breadcrumb {
    padding: 16px var(--gutter) 0;
    font-size: 13.5px;
    color: var(--ink-3);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ez-breadcrumb-current {
    color: var(--ink);
}

.ez-article-page {
    max-width: 1320px;
    width: 100%;
    margin: 0 auto;
    padding: clamp(24px, 4vw, 40px) var(--gutter) clamp(48px, 7vw, 72px);
}

.ez-article-head {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 56ch;
    margin-bottom: clamp(28px, 4vw, 40px);
}

.ez-article-head h1 {
    font-size: clamp(33px, 4.2vw, 54px);
    line-height: 1.04;
}

.ez-standfirst {
    font-size: 19px;
    line-height: 1.6;
    color: var(--ink-2);
    text-wrap: pretty;
}

.ez-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.ez-chip-tag-sun {
    background: var(--sun);
    border-color: var(--sun);
    color: var(--on-sun);
    font-weight: 500;
}

.ez-byline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    align-items: center;
    font-size: 14px;
    color: var(--ink-3);
    border-top: 1px solid var(--line);
    padding-top: 16px;
}

.ez-article-hero {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    aspect-ratio: 21 / 9;
    margin-bottom: clamp(32px, 5vw, 48px);
}

.ez-article-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Article and sidebar, straight from the handoff. auto-fit with a 600px minimum
   means two columns only above roughly 1400px; below that the aside drops under
   the article and spans the full width, where its own grid lays the three boxes
   out in a row. That wide row is the intended layout, not a fallback. */
.ez-article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 600px), 1fr));
    gap: clamp(32px, 4vw, 56px);
    align-items: start;
}


/* --- prose ------------------------------------------------------------- */

.ez-article {
    min-width: 0;
    max-width: 70ch;
}

.ez-article p {
    margin: 0 0 18px;
    font-size: 17.5px;
    line-height: 1.72;
    color: var(--ink-2);
    text-wrap: pretty;
}

.ez-article h2 {
    margin: 42px 0 14px;
    font-size: clamp(25px, 2.6vw, 32px);
    line-height: 1.16;
    font-weight: 700;
    scroll-margin-top: 90px;
}

.ez-article h3 {
    margin: 30px 0 12px;
    font-size: clamp(19px, 2vw, 23px);
    font-weight: 700;
    scroll-margin-top: 90px;
}

.ez-article > h2:first-child {
    margin-top: 0;
}

.ez-article a {
    font-weight: 600;
    border-bottom: 1px solid var(--accent-tint-line);
}

.ez-article ul,
.ez-article ol {
    margin: 0 0 18px;
    padding-left: 22px;
    font-size: 17.5px;
    line-height: 1.72;
    color: var(--ink-2);
}

.ez-article li {
    margin-bottom: 8px;
}

.ez-article img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    border: 1px solid var(--line);
    margin: 8px 0 20px;
}

.ez-article blockquote {
    margin: 0 0 20px;
    padding: 4px 0 4px 20px;
    border-left: 4px solid var(--accent);
    font-size: 18px;
    line-height: 1.65;
    color: var(--ink);
}

.ez-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 20px;
    font-size: 16px;
}

.ez-article th,
.ez-article td {
    border: 1px solid var(--line);
    padding: 10px 12px;
    text-align: left;
    color: var(--ink-2);
}

.ez-article th {
    background: var(--surface-muted);
    color: var(--ink);
    font-weight: 700;
}

/* --- boxes ------------------------------------------------------------- */

.ez-box-kicker {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 12px;
}

.ez-answer-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: 14px;
    padding: 24px 26px;
    margin-bottom: 26px;
}

.ez-answer-box p:last-child {
    margin-bottom: 0;
}

.ez-toc {
    background: var(--surface-muted);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px 24px;
    margin-bottom: 34px;
}

.ez-toc-links {
    display: flex;
    flex-direction: column;
    gap: 9px;
    font-size: 15.5px;
}

/* --- FAQ --------------------------------------------------------------- */

.ez-faq {
    margin-top: 44px;
    scroll-margin-top: 90px;
}

.ez-faq details {
    border-bottom: 1px solid var(--line);
    padding: 4px 0;
}

.ez-faq summary {
    cursor: pointer;
    list-style: none;
    padding: 16px 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
}

.ez-faq summary::-webkit-details-marker {
    display: none;
}

.ez-faq summary::after {
    content: '+';
    float: right;
    margin-left: 16px;
    font-weight: 400;
    color: var(--ink-3);
}

.ez-faq details[open] summary::after {
    content: '–';
}

.ez-faq-answer {
    padding: 0 0 18px;
    font-size: 16.5px;
    line-height: 1.68;
    color: var(--ink-2);
    max-width: 68ch;
}

/* --- sidebar ----------------------------------------------------------- */

.ez-article-aside {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 20px;
    align-items: start;
    min-width: 0;
}

/* Carries the sticky behaviour so the heading and the boxes move together, while
   the boxes keep their own grid exactly as before. */
.ez-aside-wrap {
    position: sticky;
    top: 96px;
    min-width: 0;
}

/* Heading over the apply form and guides, flush left with the first box. */
.ez-aside-heading {
    margin: 0 0 20px;
    font-size: clamp(25px, 2.6vw, 32px);
    line-height: 1.16;
    font-weight: 700;
}

/* The site-wide `.ez-page h2 { margin: 0 }` out-ranks the class above and left the heading
   touching the apply box. This keeps a clear gap between "Contact Information" and the box. */
.ez-page .ez-aside-heading {
    margin: 0 0 28px;
}

/* --- keep reading / listing -------------------------------------------- */

.ez-keep-reading {
    margin-top: clamp(48px, 6vw, 72px);
    border-top: 1px solid var(--line);
    padding-top: clamp(28px, 4vw, 40px);
}

.ez-keep-reading h2 {
    font-size: clamp(23px, 2.6vw, 30px);
    margin-bottom: 20px;
}

.ez-blog-index {
    max-width: var(--page-max);
    margin: 0 auto;
    padding: clamp(28px, 5vw, 48px) var(--gutter) clamp(48px, 7vw, 72px);
}

.ez-blog-index-head {
    max-width: 56ch;
    margin-bottom: clamp(28px, 4vw, 40px);
    display: flex;
    flex-direction: column;
    gap: 14px;
}


/* ---------------------------------------------------------------------------
   Article sidebar blocks that sit under the apply form.
   --------------------------------------------------------------------------- */
.ez-express-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--accent-btn);
    border-radius: 18px;
    padding: 24px;
    color: #FFFFFF;
}

.ez-express-title {
    font-family: var(--display);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
}

.ez-express-sub {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.55;
    color: #E4F1E8;
}

.ez-express-price {
    display: flex;
    align-items: baseline;
    gap: 11px;
    flex-wrap: wrap;
}

.ez-price-was {
    position: relative;
    display: inline-block;
    font-size: 24px;
    font-weight: 800;
}

/* The strike is drawn rather than using line-through so it can sit at an angle,
   as the handoff has it. */
.ez-price-was::after {
    content: "";
    position: absolute;
    left: -10%;
    right: -10%;
    top: 52%;
    height: 3px;
    border-radius: 2px;
    background: #FF6B5B;
    transform: rotate(-11deg);
}

.ez-price-now {
    font-family: 'Caveat', cursive;
    font-size: 27px;
    font-weight: 700;
    color: var(--sun);
}

.ez-guide-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 15.5px;
    line-height: 1.45;
}
