.editorial {
    width: min(var(--shell-width), 100% - clamp(2rem, 7vw, 7rem));
    padding-block: clamp(1.5rem, 5vw, 3.4rem) 1rem;
    color: var(--forest);
}

.editorial-intro {
    max-width: 56rem;
    margin-bottom: clamp(1.75rem, 5vw, 3rem);
}

.editorial-intro h1 {
    margin: .2em 0;
    max-width: 19ch;
    font-weight: 400;
    font-size: clamp(3.2rem, 7.2vw, 6.8rem);
    letter-spacing: -.042em;
    line-height: 1.02;
    overflow-wrap: anywhere;
}

.editorial-intro > p:not(.editorial-topic) {
    max-width: 58ch;
    color: var(--muted);
    font-size: clamp(1.08rem, 2.2vw, 1.32rem);
}

.editorial-topic {
    margin: 0;
    color: var(--green);
    font-size: .79rem;
    font-weight: 750;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.editorial-cards {
    display: grid;
    gap: clamp(1rem, 3vw, 1.75rem);
}

.editorial-card > a {
    display: grid;
    height: 100%;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 1.15rem;
    color: var(--ink);
    text-decoration: none;
    overflow: hidden;
}

.editorial-card > a:hover h2,
.editorial-card > a:focus-visible h2 {
    color: var(--green);
    text-decoration: underline;
}

.editorial-card img {
    aspect-ratio: 3 / 2;
    object-fit: cover;
    background: var(--pale);
}

.editorial-card-copy {
    padding: clamp(1.2rem, 3vw, 2.3rem);
}

.editorial-card-copy h2 {
    margin: .35rem 0;
    font-weight: 400;
    font-size: clamp(1.6rem, 3.15vw, 2.75rem);
    letter-spacing: -.035em;
}

.editorial-read {
    display: inline-flex;
    align-items: center;
    color: var(--green);
    font-weight: 700;
}

.editorial-back a,
.editorial-related a,
.editorial-sources a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: .5rem;
}

.editorial-back { margin-bottom: 1.25rem; }

.editorial-cover {
    margin: 0;
    align-self: stretch;
    display: flex;
    flex-direction: column;
}

.editorial-cover img {
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 1rem;
    background: var(--pale);
}

.editorial-cover figcaption,
.editorial-note,
.editorial-chart small {
    color: var(--muted);
    font-size: .9rem;
}

.editorial-cover figcaption { margin-top: .5rem; }

.editorial-prose,
.editorial-related {
    max-width: 45rem;
    margin-inline: auto;
}

.editorial-prose { font-size: 1.075rem; line-height: 1.75; }
.editorial-prose h2 { margin: 2rem 0 .55rem; }
.editorial-prose p { margin: 0 0 1.12rem; }

.editorial-facts,
.editorial-models {
    display: grid;
    gap: .75rem;
    margin: 1.6rem 0;
}

.editorial-facts div,
.editorial-models div {
    padding: 1rem 1.2rem;
    border-radius: .75rem;
    background: var(--pale);
}

.editorial-facts dd,
.editorial-models dd {
    margin: 0;
}

.editorial-facts dt { font-size: .925rem; line-height: 1.4; }
.editorial-facts dd { color: var(--green); font: 700 clamp(1.5rem, 4vw, 2.1rem)/1.4 Georgia, serif; }
.editorial-models dt { font-weight: 750; margin-bottom: .3rem; }

.editorial-chart,
.editorial-callout {
    margin: 1.7rem 0;
    padding: clamp(.85rem, 3vw, 1.55rem);
    border: 1px solid var(--line);
    border-radius: .85rem;
    background: var(--white);
}

.editorial-chart figcaption,
.editorial-callout > strong {
    color: var(--green);
    font-size: 1.13rem;
    font-weight: 750;
}

.editorial-chart small { display: block; font-weight: 400; }
.editorial-chart select { display: block; min-height: 44px; margin-block: .2rem .65rem; }
.chart-filter { margin-top: .9rem; }
.chart-filter:not([hidden]) { display: block; }
.chart-bars { list-style: none; padding: 0; margin: .95rem 0 0; }
.chart-bars li {
    display: grid;
    grid-template-columns: 3.2rem minmax(0, 1fr) 2.7rem;
    align-items: center;
    gap: .48rem;
    padding: .3rem .28rem;
    border: 1px solid transparent;
    border-radius: .35rem;
    font-size: .94rem;
    font-variant-numeric: tabular-nums;
}

.chart-bars .chart-selected { border-color: var(--green); background: var(--pale); }
.chart-bars meter { display: block; width: 100%; height: 1rem; accent-color: var(--green); }
.chart-bars meter::-webkit-meter-bar { background: var(--line); border: 0; }
.chart-bars meter::-webkit-meter-optimum-value { background: var(--green); }
.chart-bars meter::-moz-meter-bar { background: var(--green); }
.editorial-chart .chart-detail { margin: .8rem 0 0; font-size: .94rem; }
.chart-detail:empty { margin: 0; }
.editorial-callout { border-inline-start: .3rem solid var(--green); }
.editorial-sources { padding-inline-start: 1.2rem; }
.editorial-related { border-top: 1px solid var(--line); margin-top: 2.25rem; padding-top: 1.2rem; }
.editorial-related ul { list-style: none; padding: 0; }
.editorial-related .icon { flex: 0 0 auto; }

.editorial-feature {
    display: grid;
    align-items: center;
    gap: clamp(1.15rem, 3vw, 2rem);
    padding-bottom: 1.15rem;
    border-bottom: 1px solid var(--rule);
}
.editorial-feature .editorial-intro { margin: 0; }
.editorial-feature h1 { font-size: clamp(2.25rem, 4.65vw, 4.85rem); }
.editorial-feature .editorial-intro p { margin-block: .45rem; }
.editorial-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .45rem .7rem;
    margin-top: .8rem;
    color: var(--muted);
    font-size: .9rem;
}
.editorial-share button { border-radius: 2rem; }
.editorial-share button[hidden] { display: none; }
.editorial-layout { display: grid; gap: 1.25rem; margin-top: 1.6rem; }
.editorial-toc {
    align-self: start;
    max-width: 45rem;
    width: 100%;
    margin-inline: auto;
    padding: .8rem 1rem;
    border: 1px solid var(--rule);
    border-radius: .85rem;
    background: var(--surface);
}
.editorial-toc ul { margin-block: .2rem 0; padding: 0; list-style: none; }
.editorial-toc a { display: inline-flex; min-height: 36px; align-items: center; padding-block: .25rem; }
.editorial-prose h2 { scroll-margin-block-start: 1.5rem; }
.editorial-card:first-child > a { background: var(--forest); color: var(--surface); }
.editorial-card:first-child :is(.editorial-topic, .editorial-read, a:hover h2, a:focus-visible h2) { color: var(--lime); }
.editorial-card:first-child a:focus-visible { outline-offset: 3px; }
.editorial-card-copy > p:not(.editorial-topic) { max-width: 45ch; }

@media (min-width: 701px) {
    .editorial-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .editorial-card:first-child { grid-column: 1 / -1; }
    .editorial-card:first-child > a { grid-template-columns: 1.12fr 1fr; align-items: center; }
    .editorial-card:first-child img { height: 100%; }
}

@media (min-width: 560px) {
    .editorial-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 851px) {
    .editorial-feature { grid-template-columns: minmax(0, .94fr) minmax(0, 1fr); }
    .editorial-cover img { flex: 1; min-height: 20rem; max-height: 31rem; }
    .editorial-layout:has(.editorial-toc:not([hidden])) {
        grid-template-columns: minmax(10rem, 14rem) minmax(0, 45rem);
        justify-content: center;
    }
    .editorial-toc { position: sticky; top: 1.25rem; }
    .editorial-layout:has(.editorial-toc:not([hidden])) .editorial-prose { margin-inline: 0; }
}

@media (prefers-reduced-motion: no-preference) {
    .editorial-card img { transition: filter .2s ease-out; }
    .editorial-card a:hover img { filter: brightness(1.09); }
}

.portal-page { max-width: 62rem; }
.portal-links { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin-block: 1rem; }
.portal-links h2 { flex-basis: 100%; margin-bottom: .15rem; }
.portal-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    max-width: 100%;
    padding: .4rem .8rem;
    border-radius: 2rem;
    border: 1px solid var(--rule);
    background: var(--surface);
    font-weight: 650;
    overflow-wrap: anywhere;
}
.portal-links :is(a:hover, a[aria-current]) { background: var(--pale); }
.portal-filter { display: flex; flex-wrap: wrap; align-items: end; gap: .65rem; margin-block: 1rem 1.5rem; }
.portal-filter label { flex: 1 1 10rem; min-width: 0; }
.portal-filter button, .portal-tool button { border-radius: 2rem; }
.portal-tools-grid { margin-bottom: 0; }
.portal-tools-grid a { display: inline-flex; min-height: 44px; align-items: center; gap: .45rem; }
.editorial-feature.editorial-feature-text { grid-template-columns: minmax(0, 1fr); }
.editorial-card:first-child > a:not(:has(img)) { grid-template-columns: minmax(0, 1fr); }
.portal-process { display: grid; gap: .45rem; padding-left: 1.6rem; }
.portal-process li { padding: .45rem .65rem; border-radius: .4rem; background: var(--pale); }
.portal-comparison { width: 100%; table-layout: fixed; border-collapse: collapse; line-height: 1.5; font-size: .92rem; }
.portal-comparison :is(td, th) { padding: .5rem; border: 1px solid var(--rule); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.portal-comparison thead { background: var(--pale); }
.portal-tool {
    margin-block: .9rem 2rem;
    padding: clamp(.85rem, 3vw, 1.5rem);
    border: 1px solid var(--rule);
    border-radius: 1rem;
    background: var(--surface);
}
.portal-tool form { width: 100%; max-width: none; margin-block: .65rem; }
.portal-tool form p { margin: 0; }
.portal-tool details { margin-bottom: .85rem; }
.portal-tool summary { cursor: pointer; min-height: 44px; }
.portal-fields { display: grid; gap: .65rem; }
.portal-fields > label { min-width: 0; }
.portal-wide { grid-column: 1 / -1; }
.portal-row { margin: .65rem 0; padding: .6rem; border: 1px solid var(--rule); border-radius: .65rem; min-width: 0; }
.portal-row button { margin-top: .65rem; }
.portal-results:empty, .portal-error:empty { display: none; }
.portal-results dd { font-size: clamp(1.05rem, 2vw, 1.65rem); overflow-wrap: anywhere; }
.portal-error { color: #962e20; font-weight: 650; }
.calendar-products, .portal-admin-list { display: grid; gap: .65rem; padding: 0; list-style: none; }
.calendar-products h3 { margin-bottom: .35rem; }
.calendar-products span { display: inline-block; margin: .15rem .2rem .15rem 0; padding: .18rem .45rem; border-radius: 1rem; background: var(--pale); }
.calendar-products span.current-month { background: var(--forest); color: var(--surface); }
.portal-admin-list li { display: flex; align-items: baseline; flex-wrap: wrap; gap: .3rem .8rem; border-bottom: 1px solid var(--rule); }
.portal-admin-list a { display: inline-flex; min-height: 44px; align-items: center; }
.portal-admin form { max-width: 60rem; }
.portal-admin textarea { font: .9rem/1.5 ui-monospace, monospace; }
@media (min-width: 620px) {
    .portal-fields, .calendar-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media print {
    .portal-tool form button, .portal-tool summary, .site-header, .site-footer { display: none; }
}

.egg-figure { margin: 1.15rem 0; }
.editorial-prose:has(.egg-figure) { min-width: 0; width: 100%; }
.egg-figure img { border-radius: .75rem; }
.editorial-card img.egg-illustration,
.editorial-cover img.egg-illustration {
    aspect-ratio: 1200 / 680;
    object-fit: contain;
    min-height: 0;
    height: auto;
    max-height: none;
    flex: none;
}
.egg-table-scroll { max-width: 100%; overflow-x: auto; margin-block-end: 1rem; }
.egg-table-scroll table { min-width: 31rem; }
.portal-tool .egg-space-summary { margin-block: .9rem .35rem; }
[data-egg-space] input[type="range"] { padding-inline: 0; accent-color: var(--green); }
#egg-space-note { margin: .75rem 0 0; }
.egg-estimate-announcement {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.editorial-compact { max-width: 54rem; }
.editorial-compact .editorial-feature,
.editorial-compact .editorial-layout:has(.editorial-toc:not([hidden])) { grid-template-columns: minmax(0, 1fr); }
.editorial-compact .editorial-toc { position: static; }
.editorial-compact .editorial-prose { margin-inline: auto; }
.editorial-prose { min-width: 0; width: 100%; }
.editorial-prose figure img { border-radius: .75rem; }
.editorial-prose table:not(.portal-comparison) { width: 100%; border-collapse: collapse; table-layout: fixed; }
.editorial-prose table:not(.portal-comparison) :is(td, th) { padding: .5rem; border: 1px solid var(--rule); overflow-wrap: anywhere; vertical-align: top; }
.article-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: .75rem; }
.article-gallery figure { margin: 0; }
