Spaces:
Running
Running
File size: 6,161 Bytes
6afedde cafe265 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 | /* ============================================================================ */
/* Layout – 3-column grid (Table of Contents / Article / Aside) */
/* ============================================================================ */
.content-grid {
max-width: 1280px;
margin: 0 auto;
padding: 0 var(--content-padding-x);
margin-top: 40px;
display: grid;
grid-template-columns: 260px minmax(0, 680px) 260px;
gap: 32px;
align-items: start;
}
.content-grid>main {
max-width: 100%;
margin: 0;
padding: 0;
}
.content-grid>main>*:first-child {
margin-top: 0;
}
@media (--bp-content-collapse) {
.content-grid {
overflow: hidden;
display: block;
margin-top: var(--spacing-2);
}
.content-grid {
grid-template-columns: 1fr;
}
.table-of-contents {
position: static;
display: none;
}
.table-of-contents-mobile {
display: block;
}
.footer-inner {
grid-template-columns: 1fr;
gap: 16px;
}
.footer-inner>h3 {
grid-column: auto;
margin-top: 16px;
}
.footer-inner {
display: block;
padding: 40px 16px;
}
}
/* ============================================================================ */
/* Width helpers – slightly wider than main column, and full-width to viewport */
/* ---------------------------------------------------------------------------- */
.wide,
.full-width {
box-sizing: border-box;
position: relative;
z-index: var(--z-elevated);
background-color: var(--background-color);
}
.wide {
/* Target up to ~1100px while staying within viewport minus page gutters */
width: min(1100px, 100vw - var(--content-padding-x) * 4);
margin-left: 50%;
transform: translateX(-50%);
padding: calc(var(--content-padding-x)*4);
border-radius: calc(var(--button-radius)*4);
background-color: var(--page-bg);
-webkit-mask:
linear-gradient(to right, transparent 0px, black 20px, black calc(100% - 20px), transparent 100%),
linear-gradient(to bottom, transparent 0px, black 20px, black calc(100% - 20px), transparent 100%);
-webkit-mask-composite: intersect;
mask:
linear-gradient(to right, transparent 0px, black 20px, black calc(100% - 20px), transparent 100%),
linear-gradient(to bottom, transparent 0px, black 20px, black calc(100% - 20px), transparent 100%);
mask-composite: intersect;
}
.wide>* {
margin-bottom: 0 !important;
}
.full-width {
/* Span the full viewport width and center relative to viewport */
width: 100vw;
margin-left: calc(50% - 50vw);
margin-right: calc(50% - 50vw);
padding: calc(var(--content-padding-x)*4);
border-radius: calc(var(--button-radius)*4);
background-color: var(--page-bg);
-webkit-mask:
linear-gradient(to bottom, transparent 0px, black 20px, black calc(100% - 20px), transparent 100%);
mask:
linear-gradient(to bottom, transparent 0px, black 20px, black calc(100% - 20px), transparent 100%);
}
.full-width figure figcaption {
text-align: center !important;
}
@media (--bp-content-collapse) {
.wide,
.full-width {
width: 100%;
margin-left: 0;
margin-right: 0;
padding: 0;
transform: none;
}
}
/* ============================================================================ */
/* Theme toggle placement */
/* ============================================================================ */
#theme-toggle {
position: absolute;
top: var(--spacing-4);
left: var(--spacing-3);
margin: 0;
z-index: var(--z-overlay);
}
/* ------------------------------------------------------------------------- */
/* Hero meta bar responsiveness */
/* Two columns at collapse breakpoint, then one column below small screens */
/* ------------------------------------------------------------------------- */
@media (--bp-sm) {
header.meta .meta-container {
display: flex;
flex-wrap: wrap;
row-gap: 12px;
column-gap: 8px;
max-width: 100%;
padding: 0 var(--spacing-4);
}
header.meta .meta-container .meta-container-cell {
flex: 1 1 calc(50% - 8px);
min-width: 0;
}
}
@media (--bp-xxs) {
header.meta .meta-container .meta-container-cell {
flex-basis: 100%;
text-align: center;
}
/* Center ordered list numbers within meta (e.g., affiliations) */
header.meta .affiliations {
list-style-position: inside;
padding-left: 0;
margin-left: 0;
}
header.meta .affiliations li {
text-align: center;
}
}
/* ------------------------------------------------------------------------- */
/* D3 neural embed responsiveness */
/* Stack canvas (left) over network (right) on small screens */
/* ------------------------------------------------------------------------- */
@media (--bp-md) {
.d3-neural .panel {
flex-direction: column;
}
.d3-neural .panel .left {
flex: 0 0 auto;
width: 100%;
}
.d3-neural .panel .right {
flex: 0 0 auto;
width: 100%;
min-width: 0;
}
}
/* ============================================================================ */
/* Bibliography/References - hide inline sections that should be in footer */
/* ---------------------------------------------------------------------------- */
/* References sections with data-built-refs are generated per-chapter by
rehype-citation. The Footer.astro script consolidates them into the footer.
These styles ensure inline refs don't display in the main content area. */
/* References in main content should not be displayed - they belong in footer.
The Footer.astro script moves them; this CSS is a visual safeguard. */
main [data-built-refs],
main #references:not(.footer-processed),
main section.references:not(ol),
main div.references:not(ol),
main .bibliography:not(ol) {
/* Collapse to zero height to prevent layout impact, but keep in DOM for JS */
max-height: 0;
overflow: hidden;
margin: 0 !important;
padding: 0 !important;
border: none !important;
opacity: 0;
pointer-events: none;
}
/* Once moved to footer, these styles don't apply (not inside main) */ |