/* Limblong blog additions */
.blog-article__meta a { color: inherit; }
.page-body > .toc { align-self: start; }
.page-body > .prose, .page-body--single > .prose { grid-column: 2; }
.page-body--single > article.prose { grid-column: 2; }
.page-body--single > .post-list { grid-column: 2; }
.prose .rank-math-list { display: grid; gap: 0; }
.prose .rank-math-list-item { border-top: 1px solid var(--line); padding: 20px 0 10px; }
.prose .rank-math-list-item:last-child { border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.prose .rank-math-question { font-size: 1.25rem; margin: 0 0 8px; }
.prose .rank-math-answer { color: var(--muted); }
.prose .rank-math-answer p { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; }
.prose th { text-align: left; }
.prose .limblong-est { white-space: nowrap; }
.related { padding-block: var(--space-lg); border-top: 1px solid var(--line); }
.related__grid { display: grid; gap: var(--space-md); grid-template-columns: repeat(3, 1fr); margin-top: var(--space-sm); }
.related .post-card h2 { font-size: 1.35rem; line-height: 1.2; }
@media (max-width: 900px) {
	.related__grid { grid-template-columns: 1fr; }
	.page-body > .prose, .page-body--single > .prose, .page-body--single > article.prose, .page-body--single > .post-list { grid-column: auto; }
	.prose table { display: block; overflow-x: auto; }
}

/* Language switcher (primary menu) */
.nav__list .lang-switch { position: relative; list-style: none; }
.lang-switch details { position: relative; }
.lang-switch summary { cursor: pointer; list-style: none; font-size: 0.8125rem; letter-spacing: 0.08em; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius, 4px); }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch ul { position: absolute; right: 0; top: calc(100% + 8px); min-width: 140px; margin: 0; padding: 8px 0; list-style: none; background: var(--surface, #fff); border: 1px solid var(--line); border-radius: var(--radius, 4px); z-index: 50; }
.lang-switch li a { display: block; padding: 6px 16px; white-space: nowrap; }
.lang-switch li a[aria-current] { color: var(--accent); }
@media (max-width: 900px) { .lang-switch ul { position: static; border: 0; padding: 4px 0 0; } }
.lang-chips a.is-current { text-decoration: underline; }

.nav__list > li > a, .nav__cta { white-space: nowrap; }

/* ---------- Blog: chips, cards, grid, feature, homepage section ---------- */
.blog-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-md, 32px); }
.blog-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.9375rem; color: var(--ink); text-decoration: none; transition: border-color .2s, background-color .2s, color .2s; }
.blog-chip span { font-size: 0.75rem; color: var(--muted); }
.blog-chip:hover { border-color: var(--accent); }
.blog-chip.is-current { background: var(--accent); border-color: var(--accent); color: #fff; }
.blog-chip.is-current span { color: rgba(255,255,255,.75); }
.blog-body { padding-block: var(--space-md, 32px) var(--section, 120px); }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; margin-top: 48px; }
.bcard { display: flex; flex-direction: column; gap: 18px; }
.bcard__media { display: block; overflow: hidden; border-radius: var(--radius, 4px); background: var(--surface, #ebe7de); aspect-ratio: 4 / 3; }
.bcard__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.bcard:hover .bcard__img { transform: scale(1.04); }
.bcard__body { display: flex; flex-direction: column; gap: 10px; }
.bcard__meta { margin: 0; }
.bcard__title { margin: 0; font-size: 1.4rem; line-height: 1.22; }
.bcard__title a { color: inherit; text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .35s; }
.bcard__title a:hover { background-size: 100% 1px; }
.bcard__excerpt { margin: 0; color: var(--muted); font-size: 0.975rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bcard__more { align-self: flex-start; margin-top: 4px; }
.bcard--feature { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: center; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.bcard--feature .bcard__media { aspect-ratio: 16 / 10; }
.bcard--feature .bcard__title { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.12; }
.bcard--feature .bcard__excerpt { -webkit-line-clamp: 5; font-size: 1.0625rem; }
.blog-pagination { margin-top: 64px; }
.blog-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.blog-pagination .page-numbers { display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius, 4px); text-decoration: none; color: var(--ink); }
.blog-pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.journal__head { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: end; }
.journal__intro p { color: var(--muted); margin: 0 0 12px; }
.journal .blog-grid { margin-top: 56px; }
.related .blog-grid { margin-top: 24px; }
@media (max-width: 1000px) {
	.blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bcard--feature, .journal__head { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
	.blog-grid { grid-template-columns: 1fr; gap: 40px; }
	.blog-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
	.blog-chip { flex: 0 0 auto; }
}

/* ---------- Science: straight femur ---------- */
.bone--photo.bone--straight { width: min(100%, 245px); }
@media (max-width: 1023px) { .bone--photo.bone--straight { width: 155px; } }

/* ---------- Four quarter-turns a day ---------- */
.turns__grid { display: grid; grid-template-columns: 5fr 6fr; gap: var(--space-lg, 64px); align-items: center; }
.turns__visual { display: grid; justify-items: center; gap: 28px; }
.dial { width: min(100%, 380px); height: auto; overflow: visible; }
.dial__track { fill: none; stroke: var(--line); stroke-width: 2; }
.dial__progress { fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round; }
.dial__ticks line { stroke: var(--muted); stroke-width: 1.5; opacity: .55; }
.dial__ticks line.is-major { stroke: var(--ink); stroke-width: 3; opacity: 1; }
.dial__face { fill: var(--surface, #fff); stroke: var(--line); stroke-width: 1.5; }
.dial__pointer line { stroke: var(--ink); stroke-width: 5; stroke-linecap: round; }
.dial__pointer circle { fill: #B8893A; }
.dial__hub { fill: var(--ink); }
.dial__value { font-family: var(--font-body, inherit); font-size: 26px; fill: var(--ink); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.turns__quarters { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, auto); gap: 10px 22px; font-size: .875rem; color: var(--muted); }
.turns__quarters li { display: flex; align-items: center; gap: 8px; transition: color .3s; }
.turns__quarters span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); font-size: .75rem; transition: background-color .3s, border-color .3s, color .3s; }
.turns__quarters li.is-done { color: var(--ink); }
.turns__quarters li.is-done span { background: var(--accent); border-color: var(--accent); color: #fff; }
.turns__quarters li.is-now span { box-shadow: 0 0 0 5px rgba(184,137,58,.25); }
.mmbar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; max-width: 360px; margin: 28px 0 8px; }
.mmbar span { height: 10px; border-radius: 2px; background: var(--line); transition: background-color .4s; }
.mmbar span.is-on { background: #B8893A; }

/* ---------- X-ray series ---------- */
.xseries { background: #0E1714; color: #E9ECE6; }
.xseries .section__title { color: #F3F1EB; }
.xseries .label { color: #9FB0A6; }
.xseries .label::before { background: #9FB0A6; }
.xseries__head { display: grid; grid-template-columns: 7fr 5fr; gap: var(--space-lg, 64px); align-items: end; margin-bottom: 56px; }
.xseries__head p { color: #AEB8B1; margin: 0; }
.xseries__row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; align-items: end; }
.xfig { margin: 0; display: grid; justify-items: center; gap: 18px; opacity: .35; transition: opacity .6s; }
.xfig.is-in { opacity: 1; }
.xfig__bone { width: min(100%, 120px); height: auto; overflow: visible; }
.xfig__bone image { filter: grayscale(1) brightness(1.15) contrast(1.15) drop-shadow(0 0 10px rgba(220,235,240,.18)); opacity: .92; }
.xfig__regen { fill: #DDE7E8; }
.xfig.is-solid .xfig__regen { fill: #EDEAE2; }
.xfig__nail { stroke: #FFFFFF; stroke-width: 9; stroke-linecap: round; stroke-opacity: .38; opacity: 0; }
.xfig figcaption { display: grid; justify-items: center; gap: 2px; text-align: center; }
.xfig figcaption strong { font-weight: 500; color: #F3F1EB; }
.xfig figcaption span { font-size: .875rem; color: #B8893A; }
.xseries__note { color: #7F8C85; margin-top: 40px; }
@media (max-width: 1023px) {
	.turns__grid, .xseries__head { grid-template-columns: 1fr; gap: 32px; }
	.xseries__row { grid-template-columns: repeat(5, minmax(64px, 1fr)); gap: 10px; overflow-x: auto; }
	.turns__quarters { grid-template-columns: repeat(2, auto); }
}

.dial__readout { margin: -8px 0 0; font-family: var(--font-display, inherit); font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.dial__readout span { display: inline-block; min-width: 5.2ch; text-align: center; }
@media (max-width: 1023px) {
	.xseries__row { grid-template-columns: repeat(5, 116px); gap: 14px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
	.xfig { scroll-snap-align: start; }
	.xfig__bone { width: 96px; }
	.xfig figcaption strong { font-size: .9rem; white-space: nowrap; }
	.xfig figcaption span { font-size: .8rem; white-space: nowrap; }
}
