.tmd-ed {
    color: var(--tmd-ink, #182631);
    background: var(--tmd-bg, #f4f7f6);
}

.tmd-ed__hero {
    padding: clamp(2.75rem, 6vw, 5rem) 0;
    border-bottom: 1px solid var(--tmd-line, #dae5e2);
    background: radial-gradient(ellipse at 88% 15%, #e3f7ed 0, transparent 54%), #f5f8f6;
}

.tmd-ed__hero-shell,
.tmd-ed__list-intro > *,
.tmd-ed__reading > *,
.tmd-ed__article-intro > * {
    min-width: 0;
}

.tmd-ed__crumb,
.tmd-ed-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .38rem .75rem;
    color: var(--tmd-muted, #516172);
    font-size: .82rem;
    font-weight: 650;
}

.tmd-ed__crumb {
    margin-bottom: 1rem;
}

.tmd-ed__crumb a,
.tmd-ed-card__meta a {
    color: #286455;
    text-decoration: none;
}

.tmd-ed__crumb a:hover,
.tmd-ed-card__meta a:hover {
    text-decoration: underline;
}

.tmd-ed__hero h1,
.tmd-ed__missing h1 {
    max-width: 23ch;
    margin: 0;
    padding: 0;
    color: var(--tmd-ink, #182631);
    font-size: clamp(2.4rem, 5.45vw, 4.8rem);
    line-height: 1.05;
    letter-spacing: -.055em;
    overflow-wrap: anywhere;
}

.tmd-ed__hero h1 + p {
    max-width: 60ch;
    margin: .95rem 0 0;
    padding: 0;
    color: var(--tmd-muted, #516172);
    font-size: clamp(1rem, 1.35vw, 1.16rem);
    line-height: 1.7;
}

.tmd-ed__list-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    align-items: end;
    gap: 1.5rem clamp(2rem, 6vw, 5rem);
}

.tmd-ed__search {
    max-width: 500px;
}

.tmd-ed__search label {
    display: block;
    margin-bottom: .42rem;
    color: var(--tmd-ink, #182631);
    font-size: .9rem;
    font-weight: 760;
}

.tmd-ed__search > div {
    display: flex;
    align-items: stretch;
    gap: .45rem;
}

.tmd-ed__search input {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: .65rem .82rem;
    border: 1px solid #b5c9c3;
    border-radius: .65rem;
    background: var(--tmd-paper, #fff);
    color: var(--tmd-ink, #182631);
    font: inherit;
}

.tmd-ed__search button {
    flex: none;
    cursor: pointer;
}

.tmd-ed__results,
.tmd-ed__after {
    padding-block: clamp(2.65rem, 6vw, 5rem);
}

.tmd-ed__results-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .4rem 1rem;
    margin-bottom: 1.25rem;
}

.tmd-ed__results-heading h2,
.tmd-ed__callout h2,
.tmd-ed__empty h2 {
    margin: 0;
    padding: 0;
    color: var(--tmd-ink, #182631);
    font-size: clamp(1.38rem, 2.6vw, 2.05rem);
    line-height: 1.18;
    letter-spacing: -.032em;
}

.tmd-ed__results-heading p,
.tmd-ed__results-heading a {
    margin: 0;
    padding: 0;
    color: #42685d;
    font-size: .9rem;
    font-weight: 675;
}

.tmd-ed__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(.85rem, 2.2vw, 1.45rem);
}

.tmd-ed-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--tmd-line, #dae5e2);
    border-radius: 1rem;
    background: var(--tmd-paper, #fff);
    box-shadow: 0 2px 5px #203d320a;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.tmd-ed-card:hover {
    border-color: #94b8a9;
    box-shadow: 0 8px 25px #203d3212;
}

.tmd-ed-card__photo {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #dae9e3;
}

.tmd-ed-card__photo img,
.tmd-ed__featured-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tmd-ed-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: .68rem;
    min-width: 0;
    padding: clamp(1.05rem, 2vw, 1.45rem);
}

.tmd-ed-card__body h3 {
    margin: 0;
    padding: 0;
    color: var(--tmd-ink, #182631);
    font-size: clamp(1.07rem, 1.65vw, 1.32rem);
    line-height: 1.32;
    letter-spacing: -.022em;
    overflow-wrap: anywhere;
}

.tmd-ed-card__body h3 a {
    color: inherit;
    text-decoration: none;
}

.tmd-ed-card__body h3 a:hover {
    color: #265d50;
    text-decoration: underline;
    text-underline-offset: .18em;
}

.tmd-ed-card__body > p {
    margin: 0;
    padding: 0;
    color: var(--tmd-muted, #516172);
    font-size: .93rem;
    line-height: 1.66;
    overflow-wrap: anywhere;
}

.tmd-ed-card__read {
    display: inline-flex;
    align-items: center;
    gap: .47rem;
    min-height: 36px;
    margin-top: auto;
    padding-top: .36rem;
    color: #235e50;
    font-size: .9rem;
    font-weight: 750;
    text-decoration: none;
}

.tmd-ed-card__read:hover {
    text-decoration: underline;
    text-underline-offset: .2em;
}

.tmd-ed-card--featured {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr);
    background: #ebf7f0;
}

.tmd-ed-card--featured .tmd-ed-card__photo {
    min-height: 220px;
    aspect-ratio: auto;
}

.tmd-ed-card--featured .tmd-ed-card__body {
    justify-content: center;
    gap: .8rem;
    padding: clamp(1.4rem, 4vw, 2.7rem);
}

.tmd-ed-card--featured h3 {
    max-width: 31ch;
    font-size: clamp(1.5rem, 2.75vw, 2.38rem);
    line-height: 1.17;
    letter-spacing: -.042em;
}

.tmd-ed-card--featured .tmd-ed-card__read {
    margin-top: .35rem;
}

.tmd-ed__pagination {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: 1.85rem;
}

.tmd-ed__pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: .42rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tmd-ed__pagination li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tmd-ed__pagination :is(a, .page-numbers, .post-page-numbers) {
    display: inline-flex;
    min-height: 44px;
    min-width: 44px;
    align-items: center;
    justify-content: center;
    padding: .4rem .74rem;
    border: 1px solid var(--tmd-line, #dae5e2);
    border-radius: .54rem;
    color: #275b4d;
    background: var(--tmd-paper, #fff);
    font-size: .9rem;
    font-weight: 725;
    text-decoration: none;
}

.tmd-ed__pagination :is(.current, a:hover) {
    border-color: #80aa99;
    background: #ddf4e9;
    color: var(--tmd-ink, #182631);
}

.tmd-ed__pagination a > .post-page-numbers {
    min-height: 0;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.tmd-ed__callout,
.tmd-ed__empty {
    border: 1px solid var(--tmd-line, #dae5e2);
    border-radius: 1rem;
    padding: clamp(1.3rem, 3.55vw, 2.6rem);
}

.tmd-ed__callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem 1.7rem;
    margin: 0;
    background: #e3f4eb;
}

.tmd-ed__results > .tmd-ed__callout {
    margin-top: clamp(2rem, 5vw, 4rem);
}

.tmd-ed__callout > a,
.tmd-ed__callout > .tmd-ed__actions {
    flex-shrink: 0;
}

.tmd-ed__callout p,
.tmd-ed__empty > p {
    max-width: 58ch;
    margin: .48rem 0 0;
    padding: 0;
    color: var(--tmd-muted, #516172);
}

.tmd-ed__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem;
}

.tmd-ed__empty {
    background: var(--tmd-paper, #fff);
}

.tmd-ed__empty .tmd-ed__actions {
    margin-top: 1.15rem;
}

.tmd-ed__missing-shell {
    padding-block: clamp(2.75rem, 8vw, 6.5rem);
}

.tmd-ed__missing {
    width: min(100%, 780px);
    margin-inline: auto;
}

.tmd-ed__missing .tmd-kicker {
    margin: 0 0 .65rem;
    color: #31695b;
}

.tmd-ed__missing .tmd-ed__search {
    margin-top: 1.35rem;
}

.tmd-ed__article-intro {
    display: grid;
    align-items: center;
    gap: 1rem clamp(2rem, 5vw, 4rem);
}

.tmd-ed__article-intro--media {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
}

.tmd-ed__article-intro .tmd-ed-card__meta {
    margin-bottom: .95rem;
}

.tmd-ed__article-intro h1 {
    font-size: clamp(2.15rem, 4.45vw, 4.1rem);
}

.tmd-ed__featured-image {
    overflow: hidden;
    margin: 0;
    border: 1px solid var(--tmd-line, #dae5e2);
    border-radius: .95rem;
    aspect-ratio: 16 / 11;
    background: #deebe6;
}

.tmd-ed__reading {
    display: grid;
    grid-template-columns: minmax(200px, 255px) minmax(0, 760px);
    justify-content: center;
    align-items: start;
    gap: clamp(1.2rem, 4.2vw, 3.5rem);
    padding-top: clamp(2rem, 4.8vw, 3.85rem);
}

.tmd-ed__reading--solo {
    grid-template-columns: minmax(0, 780px);
}

.tmd-ed__aside {
    position: sticky;
    top: calc(104px + var(--wp-admin--admin-bar--height, 0px));
}

.tmd-ed__toc {
    border: 1px solid var(--tmd-line, #dae5e2);
    border-radius: .85rem;
    background: var(--tmd-paper, #fff);
}

.tmd-ed__toc summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    min-height: 46px;
    padding: .65rem .95rem;
    list-style: none;
    font-weight: 770;
    cursor: pointer;
}

.tmd-ed__toc summary::-webkit-details-marker {
    display: none;
}

.tmd-ed__toc[open] summary > span {
    transform: rotate(180deg);
}

.tmd-ed__toc nav {
    max-height: 57vh;
    overflow-y: auto;
    padding: .05rem .95rem .8rem;
}

.tmd-ed__toc ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tmd-ed__toc li {
    padding: .27rem 0;
    list-style: none;
}

.tmd-ed__toc li.tmd-ed__toc-nested {
    padding-left: .65rem;
}

.tmd-ed__toc a {
    display: block;
    color: #325c50;
    font-size: .88rem;
    line-height: 1.42;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.tmd-ed__toc a:hover {
    text-decoration: underline;
}

.tmd-ed__entry {
    min-width: 0;
    color: var(--tmd-ink, #182631);
    font-size: clamp(1rem, 1.28vw, 1.085rem);
    line-height: 1.78;
    overflow-wrap: anywhere;
}

.tmd-ed__entry :is(h2, h3, h4) {
    margin: 1.5em 0 .45em;
    padding: 0;
    color: var(--tmd-ink, #182631);
    line-height: 1.22;
}

.tmd-ed__entry h2 {
    font-size: clamp(1.42rem, 2.45vw, 1.95rem);
    letter-spacing: -.032em;
}

.tmd-ed__entry h3 {
    font-size: clamp(1.15rem, 1.85vw, 1.4rem);
}

.tmd-ed__entry :is(p, ul, ol, figure, table, blockquote) {
    margin: 0 0 1.15rem;
}

.tmd-ed__entry :is(ul, ol) {
    padding: 0 0 0 1.35rem;
}

.tmd-ed__entry > :first-child {
    margin-top: 0;
}

.tmd-ed__entry a {
    color: #235e50;
    text-decoration: underline;
    text-underline-offset: .16em;
}

.tmd-ed__entry :is(img, iframe, video, svg) {
    max-width: 100%;
}

.tmd-ed__entry :is(img, video) {
    height: auto;
}

.tmd-ed__entry table {
    display: block;
    width: max-content;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.tmd-ed__entry :is(th, td) {
    padding: .55rem .7rem;
    border: 1px solid var(--tmd-line, #dae5e2);
}

.tmd-ed__entry blockquote {
    padding: .75rem 1rem;
    border-left: .25rem solid #61a58e;
    background: #e9f7ef;
}

.tmd-ed__entry blockquote > :last-child {
    margin-bottom: 0;
}

.tmd-ed__entry .et_pb_row {
    width: 100%;
    max-width: none;
}

.tmd-ed__entry .et_pb_section:not(.et_pb_with_background),
.tmd-ed__entry .et_pb_section:not(.et_pb_with_background) > .et_pb_row {
    padding-block: .65rem;
}

.tmd-ed__tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1.8rem;
}

.tmd-ed__tags a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: .35rem .7rem;
    border: 1px solid var(--tmd-line, #dae5e2);
    border-radius: 2rem;
    background: var(--tmd-paper, #fff);
    font-size: .87rem;
    text-decoration: none;
}

.tmd-ed__tags a:hover {
    border-color: #84af9d;
    background: #e2f5ec;
}

.tmd-ed__related {
    margin-top: clamp(2rem, 4.65vw, 3.75rem);
}

.tmd-ed__after :is(#comments, #respond) {
    width: min(100%, 780px);
    margin: 2rem auto 0;
}

.tmd-ed__after :is(#comments, #respond) :is(input, textarea) {
    max-width: 100%;
}

.tmd-ed :focus-visible {
    outline: 2px solid #2f8170;
    outline-offset: 3px;
}

@media (max-width: 940px) {
    .tmd-ed__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .tmd-ed__callout {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 720px) {
    .tmd-ed__list-intro,
    .tmd-ed__article-intro--media,
    .tmd-ed__reading {
        grid-template-columns: minmax(0, 1fr);
    }
    .tmd-ed__aside {
        position: static;
    }
    .tmd-ed__toc nav {
        max-height: 230px;
    }
}

@media (max-width: 560px) {
    .tmd-ed__grid,
    .tmd-ed-card--featured {
        grid-template-columns: minmax(0, 1fr);
    }
    .tmd-ed-card--featured .tmd-ed-card__photo {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }
    .tmd-ed__hero h1,
    .tmd-ed__missing h1 {
        font-size: clamp(2rem, 10vw, 2.75rem);
    }
    .tmd-ed__featured-image {
        aspect-ratio: 16 / 10;
    }
}
