.has-cosmos-article .projection-layer { display: none; }
.cosmos-article .article-header { margin-bottom: 2.5rem; }
.cosmos-article__intro { font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.5; }
.cosmos-article__navigation, .cosmos-article__footer { width: min(100%, var(--measure)); margin: 0 auto 3rem; }
.cosmos-article__navigation details { border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; padding: 1rem 0; }
.cosmos-article__navigation summary { cursor: pointer; font-size: 1.1rem; }
.cosmos-article__navigation summary span { margin-left: .75rem; font-size: .8rem; opacity: .7; }
.cosmos-article__navigation ol { list-style: none; padding: 0; margin: 1.25rem 0 .5rem; }
.cosmos-article__navigation li { break-inside: avoid; padding: .3rem 0; line-height: 1.4; }
.cosmos-article__navigation a, .cosmos-article__footer a { text-decoration: none; }
.cosmos-article__navigation a { display: block; position: relative; padding-left: 1.2rem; opacity: .72; }
.cosmos-article__navigation a[aria-current="location"] { font-weight: 700; opacity: 1; }
.cosmos-article__navigation a[aria-current="location"]::before { content: "→"; position: absolute; left: 0; }
.cosmos-article__navigation a:hover, .cosmos-article__footer a:hover { text-decoration: underline; }
.cosmos-article a:focus-visible, .cosmos-article summary:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.cosmos-article__content [id] { scroll-margin-top: 0; }
.cosmos-article__content details { border-block: 1px solid currentColor; padding: 1rem 0; }
.cosmos-article__content summary { cursor: pointer; font-weight: 700; }
.cosmos-article__content details > :not(summary) { margin-top: 1.25rem; }
.cosmos-article__content .alignwide { width: min(90vw, 1100px); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.cosmos-article__footer { margin-top: 4rem; padding-top: 1rem; border-top: 1px solid currentColor; }
@media (max-width: 640px) {
    .cosmos-article__navigation ol { columns: 1; }
    .cosmos-article__navigation summary span { display: block; margin: .5rem 0 0; }
    .cosmos-article__content .alignwide { width: 100%; margin-left: 0; transform: none; }
}
@media print {
    .cosmos-article__navigation, .cosmos-article__footer { display: none; }
    .cosmos-article__content .alignwide { width: 100%; margin-left: 0; transform: none; }
}

@media (min-width: 1100px) {
    .cosmos-article { width: min(100%, 1500px); }
    .cosmos-article__story { display: grid; grid-template-columns: minmax(210px, 260px) minmax(0, 1fr); column-gap: clamp(2rem, 4vw, 5rem); }
    .cosmos-article .article-header, .cosmos-article__content, .cosmos-article__footer { grid-column: 2; width: 100%; max-width: var(--measure); }
    .cosmos-article .article-header { grid-row: 1; margin-top: 0; }
    .cosmos-article__content { grid-row: 2; }
    .cosmos-article__footer { grid-row: 3; }
    .cosmos-article__navigation { grid-column: 1; grid-row: 1 / 4; position: sticky; top: var(--content-anchor-offset); align-self: start; width: 100%; margin: 0; max-height: calc(100svh - var(--content-anchor-offset) - 2rem); overflow-y: auto; scrollbar-width: thin; }
    .cosmos-article__navigation details { border-bottom: 0; }
    .cosmos-article__navigation summary { pointer-events: none; list-style: none; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
    .cosmos-article__navigation summary::-webkit-details-marker { display: none; }
    .cosmos-article__navigation summary span { display: none; }
    .cosmos-article__navigation li { font-size: .9rem; padding: .45rem 0; }
    .cosmos-article__content .alignwide { width: 100%; margin-left: 0; transform: none; }
}

/* Explanatory article components, scoped to this draft's template. */
.cosmos-widget { border-block: 1px solid rgba(255,255,255,.35); padding: 1.5rem 0; }
.cosmos-widget figcaption { margin: 0 0 1.5rem; font-size: 1.35rem; line-height: 1.3; }
.cosmos-widget__eyebrow { display: block; margin-bottom: .7rem; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.cosmos-widget button { font: inherit; color: inherit; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.12); border-radius: 0; cursor: pointer; padding: .75rem 1rem; line-height: 1.35; }
.cosmos-widget button:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.cosmos-widget button[aria-pressed="true"] { color: #390c0a; background: #fff; border-color: #fff; font-weight: 700; }
.cosmos-widget button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.cosmos-widget [hidden] { display: none !important; }
.cosmos-widget__steps { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; font-size: .86rem; }
.cosmos-widget__steps button { flex: 1 1 90px; }
.cosmos-widget__readout { margin-top: 1.5rem; padding: 1.25rem; border-left: 2px solid rgba(255,255,255,.6); background: rgba(0,0,0,.12); min-height: 8rem; font-size: 1rem; }
.cosmos-widget__readout p { margin: .65rem 0 0; }
.cosmos-widget__readout a { display: inline-block; margin-top: 1rem; }
.cosmos-widget .cosmos-widget__note { font-size: .8rem; line-height: 1.5; opacity: .7; margin: 1rem 0 0; }
.cosmos-widget__pipeline { padding-bottom: 1.25rem; border-bottom: 1px solid rgba(255,255,255,.2); }
.cosmos-widget__controls { display: flex; flex-wrap: wrap; gap: .65rem; margin: 1.5rem 0; font-size: .85rem; }
.cosmos-world { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
.cosmos-world__actors { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.cosmos-world__ego { border: 1px dashed rgba(255,255,255,.55); padding: 1rem; text-align: center; }
.cosmos-world__actors button { position: relative; min-height: 95px; }
.cosmos-world__actors button small, .cosmos-world__ego small { display: block; font-size: .75rem; font-weight: 400; margin-top: .35rem; }
.cosmos-world__actors button[data-in-focus="true"]::after { content: 'IN FOCUS'; display: block; font-size: .6rem; letter-spacing: .1em; margin-top: .4rem; }
.cosmos-world .cosmos-widget__readout { margin-top: 0; }
.cosmos-world__state { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.2); font-size: .75rem; }
.cosmos-world__state span { border: 1px solid rgba(255,255,255,.25); padding: .45rem .6rem; }
.cosmos-world__state strong { margin-left: auto; }
.cosmos-stack { display: grid; gap: .65rem; }
.cosmos-stack button { display: grid; grid-template-columns: 100px 1fr 1.5fr; text-align: left; align-items: center; gap: 1rem; }
.cosmos-stack button span { font-size: .8rem; }
.cosmos-stack button small { font-weight: 400; font-size: .85rem; }
@media (max-width: 640px) {
    .cosmos-world { grid-template-columns: 1fr; }
    .cosmos-stack button { grid-template-columns: 75px 1fr; gap: .5rem; }
    .cosmos-stack button small { grid-column: 2; }
    .cosmos-widget__steps { gap: .4rem; }
    .cosmos-widget__steps button { padding: .65rem .5rem; }
    .cosmos-world__state strong { margin: .5rem 0 0; width: 100%; }
}
.cosmos-encounter__invitation { max-width: 42rem; font-size: 1rem; }
.cosmos-encounter__controls { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.25rem 0; font-size: .85rem; }
.cosmos-encounter__scene { display: block; width: 100%; height: auto; background: rgba(15,5,5,.45); border: 1px solid rgba(255,255,255,.2); }
.cosmos-encounter__scene [data-motion-actor] > circle:first-child { fill: #aaa5a0; stroke: #fff; stroke-width: 1.5; }
.cosmos-encounter__scene [data-motion-actor] text { font: 15px sans-serif; fill: #eee; text-anchor: middle; }
.cosmos-encounter__scene [data-motion-actor] .cosmos-encounter__letter { fill: #251b19; font-weight: 700; }
.cosmos-encounter__scene [data-motion-actor] .cosmos-encounter__ego { fill: #fff !important; }
.cosmos-encounter__direction { stroke: #451713; stroke-width: 2; fill: none; }
.cosmos-encounter__trails { stroke: #ded8d2; opacity: .45; }
.cosmos-encounter__halo { fill: none; stroke: #ffd79a; stroke-width: 2; opacity: 0; }
.cosmos-encounter__scene .is-relevant > circle:first-child { fill: #ffd79a; stroke: #ffd79a; }
.cosmos-encounter__scene .is-relevant .cosmos-encounter__halo { opacity: 1; }
.cosmos-encounter__crossing { fill: rgba(255,215,154,.08); stroke: #ffd79a; stroke-width: 1; stroke-dasharray: 4 7; }
.cosmos-encounter__link { fill: none; stroke: #ffd79a; stroke-width: 1.5; stroke-dasharray: 4 6; }
.cosmos-encounter__annotation { fill: #ffd79a; font: 15px sans-serif; }
.cosmos-encounter__timeline { padding: 1rem 0; }
.cosmos-encounter__timeline label { display: flex; justify-content: space-between; font-size: .85rem; }
.cosmos-encounter__timeline input { width: 100%; margin: 1rem 0 .5rem; cursor: pointer; accent-color: #fff; }
.cosmos-encounter__timeline > div { display: flex; justify-content: space-between; font-size: .7rem; opacity: .7; }
.cosmos-encounter__insight { border-left: 2px solid #ffd79a; padding: .5rem 1.1rem; min-height: 6rem; font-size: 1rem; }
.cosmos-encounter__insight p { margin: .5rem 0 0; }
.cosmos-encounter__compression { display: grid; grid-template-columns: 1.3fr auto 1fr; gap: 1rem; align-items: center; margin-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.25); padding-top: 1.25rem; }
.cosmos-encounter__compression p { margin: .5rem 0 0; font-size: .8rem; }
.cosmos-encounter__states { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .75rem; }
.cosmos-encounter__states span { border: 1px solid rgba(255,255,255,.3); padding: .5rem; }
.cosmos-encounter__states .is-relevant { border-color: #ffd79a; color: #ffd79a; }
@media (max-width: 640px) {
    .cosmos-encounter__compression { grid-template-columns: 1fr; }
    .cosmos-encounter__compression > span { transform: rotate(90deg); justify-self: center; }
    .cosmos-encounter__controls button { flex: 1 1 100px; padding: .65rem; }
}

/* Post 410: retain the TLDR table grid without an enclosing border. */
.postid-410 .cosmos-article__content > .wp-block-table:first-of-type table { border: 0; }
.postid-410 .cosmos-article__content > .wp-block-table:first-of-type thead > tr:first-child > * { border-top: 0; }
.postid-410 .cosmos-article__content > .wp-block-table:first-of-type tr > :first-child { border-left: 0; }
.postid-410 .cosmos-article__content > .wp-block-table:first-of-type tr > :last-child { border-right: 0; }
.postid-410 .cosmos-article__content > .wp-block-table:first-of-type tbody > tr:last-child > * { border-bottom: 0; }
/* The article navigation is reserved for the existing desktop sidebar layout. */
@media (max-width: 1099.98px) {
    .postid-410 .cosmos-article__navigation { display: none; }
}

/* Temporarily hide the TLDR result visual; retain its markup and data. */
.postid-410 #cosmos-results { display: none; }
