.astro {
    --chart-ink: #f5edf9;
    --chart-muted: #c9bcd3;
    --chart-line: #695276;
    --chart-gold: #ebc99b;
    --chart-mono: ui-monospace, SFMono-Regular, Consolas, monospace;
    isolation: isolate;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #533761;
    color: var(--chart-ink);
    background:
        radial-gradient(ellipse at 72% 48%, #362247 0%, transparent 48%),
        linear-gradient(113deg, #160c21, #160e27 53%, #110c1f);
}
.astro-shell { width: min(1380px, calc(100% - 80px)); margin: auto; }
.astro-main { display: grid; grid-template-columns: minmax(265px, .86fr) minmax(0, 1.9fr); grid-template-areas: '. plot' 'title plot' 'story plot' '. plot'; grid-template-rows: 1fr auto auto 1fr; column-gap: clamp(12px, 2vw, 40px); align-items: center; padding: clamp(28px, 3vw, 52px) 0 25px; }
.astro .astro-title { grid-area: title; align-self: end; margin: 0; font: 400 clamp(1.5rem, 2.25vw, 2.05rem)/1.14 Georgia, 'Times New Roman', serif; letter-spacing: -.035em; text-wrap: balance; }
.astro-story { grid-area: story; align-self: start; }
.astro-caption, .astro-status, .astro-totals dt {
    font: 600 .76rem/1.5 var(--chart-mono);
    letter-spacing: .13em;
    text-transform: uppercase;
}
.astro-lede { max-width: 37ch; margin: 24px 0 0; color: var(--chart-muted); font: 400 1.0625rem/1.65 Inter, sans-serif; }
.astro-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 28px; font: 650 .9rem/1.4 Inter, sans-serif; }
.astro-open { padding: 13px 18px; border: 1px solid #ac78ce; border-radius: 4px; background: linear-gradient(115deg, #784097, #543071); color: #fff; }
.astro-open:hover { background: #764393; }
.astro-council { color: #e3cde9; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #876796; }
.astro-chart { grid-area: plot; align-self: start; container-type: inline-size; isolation: isolate; position: relative; margin: 0; min-width: 0; }
.astro-caption, .astro-plot-footer { display: flex; align-items: center; gap: 14px; }
.astro-caption { color: #d4bfdc; padding: 6px 0 9px; font-size: .75rem; }
.astro-scale { height: 5px; flex: 1; border-bottom: 1px solid #64516d; background: repeating-linear-gradient(90deg, #64516d 0 1px, transparent 1px 13px) left bottom / auto 3px repeat-x; }
.astro-view { color: var(--chart-gold); }
.astro-chart::before {
    content: ''; position: absolute; z-index: -1; pointer-events: none; inset: 9% 1% 8%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='510'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.008 .024' numOctaves='4' seed='12'/%3E%3CfeColorMatrix values='0 0 0 .36 0 0 0 0 .25 0 0 0 0 .53 0 1.4 0 0 0 -.25'/%3E%3C/filter%3E%3Cpath fill='%23976ba8' filter='url(%23n)' d='M0 0h800v510H0z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    mask-image: radial-gradient(ellipse closest-side, #000 20%, transparent 96%);
}
.astro-bearings { fill: #cbb390; font: 11px var(--chart-mono); letter-spacing: .08em; }
.astro-plot { display: block; width: 100%; height: auto; overflow: visible; }
.astro-grid { fill: none; stroke: #b195c4; stroke-width: 1; stroke-opacity: .34; }
.astro-grid ellipse { stroke-opacity: .22; }
.astro-grid .astro-perimeter { stroke-opacity: .3; stroke-dasharray: 1 5; }
.astro-spoke { stroke-opacity: .18; stroke-dasharray: 2 6; }
.astro-cross-orbit { stroke: #debc8e; stroke-dasharray: 4 6; }
.astro-link { fill: none; stroke-width: 1.55; stroke-opacity: .75; }
.astro-link.planned { stroke-width: 1.2; stroke-opacity: .53; stroke-dasharray: 4 4; }
.astro-star { cursor: pointer; }
.astro-beacon { fill: currentColor; }
.astro-core { fill: #fff6f7; filter: drop-shadow(0 0 2px currentColor); }
.astro-aura { fill: currentColor; opacity: .14; }
.astro-mark { pointer-events: none; }
.astro-star text {
    fill: #f2eaf7; stroke: #1c122a; stroke-width: 4px; paint-order: stroke;
    font: 600 13px/1 var(--chart-mono); letter-spacing: .04em;
}
.astro-star[data-project="parallax"] text { font-size: 16px; letter-spacing: .15em; }
.astro-star[data-project="parallax"] .astro-location { fill: var(--chart-gold); letter-spacing: 0; }
.astro-star:hover .astro-aura { opacity: .44; }
.astro-plot.is-focused .astro-link:not(.is-connected) { opacity: .12; }
.astro-plot.is-focused .astro-star:not(.is-connected):not([data-project="parallax"]) { opacity: .32; }
.astro-link.is-connected { stroke-width: 2.5; stroke-opacity: 1; }
.astro-star[aria-current="true"] .astro-aura { opacity: .6; }
.astro-plot-footer { justify-content: space-between; border-top: 1px solid #624969; padding: 8px 0 0; }
.astro-legend { display: flex; align-items: center; gap: 17px; color: #cebed9; font: .81rem/1.4 var(--chart-mono); }
.astro-legend span { display: flex; align-items: center; gap: 6px; }
.astro-legend span::before { content: ''; width: 26px; border-top: 2px solid #d7c0eb; }
.astro-legend span:last-child::before { border-top-style: dashed; }
.astro-picker { position: relative; }
.astro-picker::after { content: ''; position: absolute; right: 10px; top: calc(50% - 4px); width: 7px; height: 7px; border: solid #cbb0da; border-width: 0 1px 1px 0; transform: rotate(45deg); pointer-events: none; }
.astro-picker select, .astro-clear { color: #ebdbf5; border: 1px solid #735881; border-radius: 4px; background: #20132d; font: .875rem/1.35 Inter, sans-serif; }
.astro-picker select { appearance: none; width: 11.75rem; padding: 8px 23px 8px 10px; cursor: pointer; text-overflow: ellipsis; }
.astro :is(select, button, a):focus-visible { outline: 2px solid var(--chart-gold); outline-offset: 3px; }
.astro-readout { padding: 21px 0 24px; border-top: 1px solid #523c60; }
.astro-totals { display: flex; flex-wrap: wrap; gap: 1.1rem 3.2rem; margin: 0; }
.astro-totals > div { display: flex; flex-direction: row-reverse; align-items: center; gap: 11px; }
.astro-totals dt { color: #c4aecf; letter-spacing: .09em; }
.astro-totals dd { margin: 0; font: 400 2rem/1 Georgia, serif; color: #f2e1f7; font-variant-numeric: lining-nums tabular-nums; }
.astro-detail { margin-top: 20px; border-top: 1px solid var(--chart-line); padding-top: 13px; }
.astro-detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.astro-connections { margin: 9px 0 0; font: .875rem/1.5 Inter, sans-serif; }
.astro-connections summary { color: #e4cbf3; cursor: pointer; }
.astro-connections summary:focus-visible { outline: 2px solid var(--chart-gold); outline-offset: 2px; }
.astro-status { color: var(--chart-gold); }
.astro-detail h2 { color: var(--chart-ink); font: 500 1.2rem/1.35 Inter, sans-serif; margin: 5px 0 0; }
.astro-detail p { color: #e0d1e7; font: 400 1rem/1.55 Inter, sans-serif; margin: 0; }
.astro-detail .astro-neighbors { font-size: .875rem; margin-top: 7px; color: #baacca; white-space: pre-line; }
.astro-clear { padding: 8px 12px; white-space: nowrap; cursor: pointer; }
.astro [hidden] { display: none; }
.astro-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 900px) {
    .astro-shell { width: calc(100% - 40px); }
    .astro-main { grid-template-columns: minmax(230px, .8fr) minmax(0, 1.4fr); }
    .astro-actions { gap: 16px; }
}
@media (max-width: 720px) {
    .astro-shell { width: calc(100% - 34px); }
    .astro-main { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'title' 'plot' 'story'; grid-template-rows: auto; padding: 22px 0 20px; gap: 13px; }
    .astro-lede { max-width: 53ch; font-size: 1rem; line-height: 1.5; margin-top: 2px; }
    .astro-actions { margin-top: 14px; }
    .astro-open { padding: 10px 14px; }
    .astro-legend { gap: 10px; }
    .astro-legend span::before { width: 17px; }
    .astro-picker select { width: 9.25rem; min-height: 40px; }
    .astro-readout { padding: 17px 0; }
    .astro-totals { gap: 1rem; justify-content: space-between; }
    .astro-totals > div { flex-direction: column-reverse; align-items: start; gap: 4px; }
    .astro-totals dt { font-size: .75rem; letter-spacing: 0; text-transform: none; }
    .astro-detail { border: 0; padding: 0; margin-top: 3px; }
}
@container (max-width: 480px) {
    .astro-plot .astro-star text { font-size: 23px; }
    .astro-plot .astro-star[data-project="parallax"] text { font-size: 24px; }
    .astro-star:not([aria-current="true"]) text.astro-secondary-label { display: none; }
    .astro-link { stroke-width: 2; }
    .astro-link.planned { stroke-width: 1.7; stroke-dasharray: 6 5; }
}
@container (max-width: 355px) {
    .astro-plot-footer { gap: 6px; flex-wrap: wrap; }
    .astro-legend { font-size: .75rem; }
    .astro-picker select { width: 8.5rem; }
}
