/**
 * Blog listing (the Journal).
 *
 * Editorial rather than commercial: images lead, cards carry no chrome, and
 * every band wraps one .container-xl so the page lines up with the header.
 * Scoped to .hebd-journal, so the homepage blog section is untouched.
 */

.hebd-journal {
    background: var(--hebd-bg);
    font-family: var(--hebd-font-body);
    color: var(--hebd-text);
}

.hebd-journal section {
    padding-block: clamp(36px, 4vw, 64px);
}

.hebd-journal__intro {
    padding-block: clamp(28px, 3vw, 48px) clamp(20px, 2vw, 32px);
}

.hebd-journal__eyebrow {
    display: block;
    margin-bottom: 10px;
    color: var(--hebd-primary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hebd-journal__lede {
    max-width: 62ch;
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: var(--hebd-text-muted);
}

.hebd-journal h2 {
    margin: 0 0 4px;
    font-family: var(--hebd-font-heading);
    font-size: clamp(24px, 2.2vw, 32px);
    font-weight: 600;
    line-height: 1.25;
}

/* ---- Category filters ---- */

.hebd-journal__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
    padding: 0;
    list-style: none;
}

.hebd-journal__filter {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 18px;
    border: 1px solid var(--hebd-line);
    border-radius: 999px;
    background: var(--hebd-surface);
    color: var(--hebd-text);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}

.hebd-journal__filter:hover,
.hebd-journal__filter:focus-visible {
    border-color: var(--hebd-primary);
    color: var(--hebd-primary);
}

.hebd-journal__filter[aria-current="page"] {
    background: var(--hebd-primary);
    border-color: var(--hebd-primary);
    color: #fff;
}

.hebd-journal :focus-visible {
    outline: 2px solid var(--hebd-primary);
    outline-offset: 3px;
}

/* ---- Post card ---- */

/* Each post is a card: a light surface, a thin border and a soft shadow that
   lifts a little on hover. The picture sits flush at the top. */
.hebd-post {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--hebd-line);
    border-radius: 18px;
    background: var(--hebd-surface);
    box-shadow: var(--hebd-shadow-card);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.hebd-post:hover {
    transform: translateY(-3px);
    border-color: #DCD2C3;
    box-shadow: var(--hebd-shadow-card-hover);
}

.hebd-post__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 4px 20px 22px;
}

.hebd-post__media {
    display: block;
    overflow: hidden;
    background: var(--hebd-soft);
    aspect-ratio: 16 / 10;
}

.hebd-post__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.hebd-post__media:hover img,
.hebd-post__media:focus-visible img {
    transform: scale(1.02);
}

.hebd-post__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin: 14px 0 8px;
}

.hebd-post__category {
    color: var(--hebd-primary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.hebd-post__category:hover {
    text-decoration: underline;
}

.hebd-post__date {
    color: var(--hebd-text-muted);
    font-size: 13px;
}

.hebd-post__title {
    margin: 0 0 10px;
    font-family: var(--hebd-font-heading);
    font-size: 21px;
    font-weight: 600;
    line-height: 1.35;
}

.hebd-post__title a {
    color: var(--hebd-text);
    text-decoration: none;
}

.hebd-post__title a:hover {
    color: var(--hebd-primary);
}

.hebd-post__excerpt {
    margin: 0 0 14px;
    color: var(--hebd-text-muted);
    font-size: 15px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

.hebd-post__more {
    margin-top: auto;
    padding-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--hebd-primary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
}

.hebd-post__more svg {
    transition: transform .18s ease;
}

.hebd-post__more:hover svg,
.hebd-post__more:focus-visible svg {
    transform: translateX(3px);
}

/* ---- Featured block ---- */

.hebd-journal__featured {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: clamp(24px, 3vw, 44px);
    align-items: start;
}

.hebd-journal__featured .hebd-post--lead .hebd-post__media {
    aspect-ratio: 3 / 2;
}

.hebd-journal__featured .hebd-post--lead .hebd-post__body {
    padding: 8px 26px 26px;
}

.hebd-journal__featured .hebd-post--lead .hebd-post__title {
    font-size: clamp(24px, 2vw, 30px);
}

.hebd-journal__recent {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.hebd-post--row {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
}

.hebd-post--row .hebd-post__media {
    height: 100%;
    aspect-ratio: auto;
}

.hebd-post--row .hebd-post__media img {
    height: 100%;
}

.hebd-post--row .hebd-post__body {
    justify-content: center;
    padding: 16px 20px;
}

.hebd-post--row .hebd-post__meta {
    margin-top: 0;
}

.hebd-post--row .hebd-post__title {
    font-size: 17px;
    margin-bottom: 6px;
}

.hebd-post--row .hebd-post__excerpt {
    -webkit-line-clamp: 2;
    line-clamp: 2;
    margin-bottom: 0;
    font-size: 14px;
}

/* ---- Grid ---- */

.hebd-journal__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(22px, 2.4vw, 36px) clamp(18px, 2vw, 28px);
}

.hebd-journal__empty {
    padding: 60px 0;
    text-align: center;
    color: var(--hebd-text-muted);
}

/* ---- Pagination ---- */

.hebd-journal__pagination {
    display: flex;
    justify-content: center;
    margin-top: clamp(30px, 3vw, 48px);
}

.hebd-journal__pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--hebd-text);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .16s ease, color .16s ease;
}

.hebd-journal__pagination .page-numbers:hover {
    background: var(--hebd-soft);
}

.hebd-journal__pagination .page-numbers.current {
    background: var(--hebd-primary);
    color: #fff;
}

.hebd-journal__pagination .nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ---- Closing CTA ---- */

.hebd-journal__cta {
    background: var(--hebd-soft-tint);
}

.hebd-journal__cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: clamp(28px, 3vw, 44px);
    border-radius: 24px;
    background: var(--hebd-primary);
    color: #fff;
}

.hebd-journal__cta-inner h2,
.hebd-journal__cta-inner p {
    color: #fff;
    margin: 0;
}

.hebd-journal__cta-inner p {
    margin-top: 8px;
    max-width: 52ch;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .88);
}

.hebd-journal__cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* The site button, on the green panel: same shape and weight as the
   homepage's "SEE ALL", with the fill and outline swapped. */
.hebd-journal__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 32px;
    border: 2px solid #fff;
    border-radius: 8px;
    background: #fff;
    color: var(--hebd-primary-dark);
    font-family: var(--hebd-font-body);
    font-size: 17px;
    font-weight: 500;
    line-height: 32px;
    text-transform: uppercase;
    letter-spacing: .02em;
    text-decoration: none;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.hebd-journal__btn--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, .75);
    color: #fff;
}

.hebd-journal__btn:hover,
.hebd-journal__btn:focus-visible {
    background: var(--hebd-soft);
    border-color: var(--hebd-soft);
    color: var(--hebd-primary-dark);
}

/* ---- Breakpoints ---- */

@media (max-width: 1199.98px) {
    .hebd-journal__featured {
        grid-template-columns: minmax(0, 1fr);
    }

    .hebd-journal__recent {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 991.98px) {
    .hebd-journal__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {

    .hebd-journal__recent,
    .hebd-journal__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hebd-post--row {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .hebd-post__title {
        font-size: 19px;
    }

    .hebd-journal__filters {
        /* One swipeable row rather than a stack of pills. */
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .hebd-journal__filters::-webkit-scrollbar {
        display: none;
    }

    .hebd-journal__filter {
        flex: 0 0 auto;
    }

    .hebd-journal__cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {

    .hebd-post__media img,
    .hebd-post__more svg {
        transition: none;
    }

    .hebd-post__media:hover img {
        transform: none;
    }
}

/* ------------------------------------------------------------------ */
/* Single article                                                      */
/*                                                                     */
/* Full-width bands, each holding the site container, with a readable   */
/* column inside it. Every feature the post had is still here; only its */
/* presentation changed.                                                */
/* ------------------------------------------------------------------ */

.hebd-article {
    /* Wide enough to feel like the rest of the site, short enough to read. */
    --hebd-article-measure: 1100px;

    background: var(--hebd-bg);
    color: var(--hebd-text);
    font-family: var(--hebd-font-body);
}

.hebd-article__column {
    max-width: var(--hebd-article-measure);
    margin-inline: auto;
}

/* Structural blocks - the picture, the tag/share row, the post navigation -
   use the page container, so the article sits in the same frame as every
   other page. Only the prose keeps a measure. */
.hebd-article__wide {
    width: 100%;
}

.hebd-article__header {
    padding-block: clamp(36px, 4vw, 64px) clamp(20px, 2vw, 28px);
    text-align: center;
}

.hebd-article__categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--hebd-primary);
}

.hebd-article__categories a {
    color: inherit;
    text-decoration: none;
}

.hebd-article__categories a:hover {
    text-decoration: underline;
}

.hebd-article__categories span {
    color: var(--hebd-line);
}

.hebd-article .hebd-article__title {
    margin: 0 0 16px;
    font-family: var(--hebd-font-heading);
    font-size: clamp(28px, 3.2vw, 46px);
    font-weight: 600;
    line-height: 1.22;
    color: var(--hebd-text);
    overflow-wrap: anywhere;
}

.hebd-article__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    color: var(--hebd-text-muted);
}

/* ---- Featured image ---- */

.hebd-article__figure {
    margin: 0;
    padding-block: clamp(8px, 1vw, 16px);
}

.hebd-article__figure img {
    display: block;
    width: 100%;
    max-height: 640px;
    margin-inline: auto;
    object-fit: cover;
    border-radius: 18px;
}

/* ---- Article body ---- */

.hebd-article__content {
    padding-block: clamp(28px, 3vw, 48px);
}

.hebd-article .ghee-text {
    font-size: 17px;
    line-height: 1.8;
    color: #33403a;
}

.hebd-article .ghee-text > *:first-child {
    margin-top: 0;
}

.hebd-article .ghee-text p {
    margin: 0 0 22px;
}

.hebd-article .ghee-text h1,
.hebd-article .ghee-text h2,
.hebd-article .ghee-text h3,
.hebd-article .ghee-text h4,
.hebd-article .ghee-text h5,
.hebd-article .ghee-text h6 {
    margin: 40px 0 14px;
    font-family: var(--hebd-font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--hebd-text);
}

.hebd-article .ghee-text h2 {
    font-size: 27px;
}

.hebd-article .ghee-text h3 {
    font-size: 22px;
}

.hebd-article .ghee-text h4 {
    font-size: 19px;
}

.hebd-article .ghee-text ul,
.hebd-article .ghee-text ol {
    margin: 0 0 22px;
    padding-left: 22px;
}

.hebd-article .ghee-text li {
    margin-bottom: 10px;
}

.hebd-article .ghee-text li::marker {
    color: var(--hebd-primary);
}

.hebd-article .ghee-text a {
    color: var(--hebd-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hebd-article .ghee-text a:hover,
.hebd-article .ghee-text a:focus-visible {
    color: var(--hebd-primary-dark);
}

.hebd-article .ghee-text img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    margin-block: 8px 24px;
}

.hebd-article .ghee-text figure {
    margin: 28px 0;
}

.hebd-article .ghee-text figcaption,
.hebd-article .ghee-text .wp-caption-text {
    margin-top: 8px;
    font-size: 14px;
    color: var(--hebd-text-muted);
    text-align: center;
}

.hebd-article .ghee-text blockquote {
    margin: 28px 0;
    padding: 4px 0 4px 22px;
    border-left: 3px solid var(--hebd-primary);
    font-size: 19px;
    line-height: 1.7;
    color: var(--hebd-text);
}

.hebd-article .ghee-text blockquote p:last-child {
    margin-bottom: 0;
}

.hebd-article .ghee-text table {
    width: 100%;
    margin: 0 0 24px;
    border-collapse: collapse;
    font-size: 15px;
}

.hebd-article .ghee-text th,
.hebd-article .ghee-text td {
    padding: 10px 12px;
    border: 1px solid var(--hebd-line);
    text-align: left;
}

.hebd-article .ghee-text th {
    background: var(--hebd-soft-tint);
    font-weight: 600;
}

.hebd-article .ghee-text iframe,
.hebd-article .ghee-text video {
    max-width: 100%;
    border-radius: 14px;
}

/* ---- Tags and sharing ---- */

.hebd-article__footer {
    padding-block: clamp(20px, 2vw, 28px);
}

.hebd-article__footer-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-block: 22px;
    border-top: 1px solid var(--hebd-line);
    border-bottom: 1px solid var(--hebd-line);
}

.hebd-article__label {
    display: inline-block;
    margin-right: 10px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--hebd-text-muted);
}

.hebd-article__tags,
.hebd-article__share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hebd-article .tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.hebd-article__tag {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border: 1px solid var(--hebd-line);
    border-radius: 999px;
    background: var(--hebd-surface);
    color: var(--hebd-text);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: border-color .16s ease, color .16s ease;
}

.hebd-article__tag:hover,
.hebd-article__tag:focus-visible {
    border-color: var(--hebd-primary);
    color: var(--hebd-primary);
}

.hebd-article__share-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--hebd-surface);
    border: 1px solid var(--hebd-line);
    transition: border-color .16s ease, background-color .16s ease, transform .16s ease;
}

.hebd-article__share-links a:hover,
.hebd-article__share-links a:focus-visible {
    border-color: var(--hebd-primary);
    background: var(--hebd-soft-tint);
    transform: translateY(-1px);
}

/* The network marks keep their own colours; only the size is set here. */
.hebd-article__share-links svg {
    width: 18px;
    height: 18px;
}

/* ---- Previous / next ---- */

.hebd-article__nav {
    padding-block: clamp(24px, 3vw, 44px);
}

.hebd-article__nav-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: stretch;
    gap: 16px;
}

.hebd-article__nav-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px;
    border: 1px solid var(--hebd-line);
    border-radius: 16px;
    background: var(--hebd-surface);
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.hebd-article__nav-card:hover,
.hebd-article__nav-card:focus-visible {
    border-color: var(--hebd-primary);
    box-shadow: var(--hebd-shadow-card);
}

.hebd-article__nav-card.is-empty {
    border: 0;
    background: none;
}

.hebd-article__nav-card--next {
    text-align: right;
}

.hebd-article .hebd-article__nav-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--hebd-primary);
}

.hebd-article__nav-card--next .hebd-article__nav-label {
    justify-content: flex-end;
}

.hebd-article .hebd-article__nav-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--hebd-text);
    overflow-wrap: anywhere;
}

.hebd-article__nav-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    align-self: center;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--hebd-line);
    border-radius: 50%;
    background: var(--hebd-surface);
    color: var(--hebd-text-muted);
    transition: border-color .16s ease, color .16s ease;
}

.hebd-article__nav-all:hover,
.hebd-article__nav-all:focus-visible {
    border-color: var(--hebd-primary);
    color: var(--hebd-primary);
}

/* ---- Comments ---- */

.hebd-article__comments {
    padding-block: clamp(24px, 3vw, 48px) clamp(40px, 5vw, 80px);
}

.hebd-article__comments .comment-reply-title,
.hebd-article__comments .comments-title {
    margin: 0 0 8px;
    font-family: var(--hebd-font-heading);
    font-size: 24px;
    font-weight: 600;
    color: var(--hebd-text);
}

.hebd-article__comments .comment-notes,
.hebd-article__comments .logged-in-as {
    margin: 0 0 20px;
    font-size: 14px;
    color: var(--hebd-text-muted);
}

.hebd-article__comments .comment-form p {
    margin-bottom: 16px;
}

.hebd-article__comments .comment-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--hebd-text);
}

.hebd-article__comments .comment-form input[type="text"],
.hebd-article__comments .comment-form input[type="email"],
.hebd-article__comments .comment-form input[type="url"],
.hebd-article__comments .comment-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--hebd-line);
    border-radius: 12px;
    background: var(--hebd-surface);
    font-family: var(--hebd-font-body);
    font-size: 15px;
    color: var(--hebd-text);
}

.hebd-article__comments .comment-form textarea {
    min-height: 160px;
    resize: vertical;
}

.hebd-article__comments .comment-form input:focus-visible,
.hebd-article__comments .comment-form textarea:focus-visible {
    outline: none;
    border-color: var(--hebd-primary);
    box-shadow: 0 0 0 3px rgba(46, 112, 70, .14);
}

.hebd-article__comments .comment-form .submit {
    padding: 10px 32px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    background: var(--primary-color);
    color: #fff;
    font-family: var(--hebd-font-body);
    font-size: 17px;
    font-weight: 500;
    line-height: 32px;
    text-transform: uppercase;
    letter-spacing: .02em;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease;
}

.hebd-article__comments .comment-form .submit:hover,
.hebd-article__comments .comment-form .submit:focus-visible {
    background: var(--secondery-color);
    border-color: var(--secondery-color);
}

.hebd-article__comments .comment-list {
    margin: 0 0 32px;
    padding: 0;
    list-style: none;
}

.hebd-article__comments .comment-list li {
    padding: 20px 0;
    border-bottom: 1px solid var(--hebd-line);
}

.hebd-article :focus-visible {
    outline: 2px solid var(--hebd-primary);
    outline-offset: 3px;
}

/* ---- Breakpoints ---- */

@media (max-width: 767.98px) {
    .hebd-article__nav-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .hebd-article__nav-card--next {
        text-align: left;
    }

    .hebd-article__nav-card--next .hebd-article__nav-label {
        justify-content: flex-start;
    }

    .hebd-article__nav-all {
        order: 3;
        margin-inline: auto;
    }

    .hebd-article__nav-card.is-empty {
        display: none;
    }

    .hebd-article .ghee-text {
        font-size: 16px;
    }

    .hebd-article__footer-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {

    .hebd-article__share-links a,
    .hebd-article__nav-card {
        transition: none;
    }

    .hebd-article__share-links a:hover {
        transform: none;
    }
}
