/* Shared reading and accessibility rules for the two Bootstrap editions. */
.tech-site { --line: #c9c8c4; --accent: #263c3b; --muted: #515454; }
.tech-site :is(h1,h2,h3,a) { overflow-wrap: break-word; }
.tech-site a:focus-visible, .tech-site summary:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.tech-skip { position: absolute; z-index: 10; top: .6rem; left: .6rem; padding: .7rem 1rem; color: #111; background: #fff; transform: translateY(-150%); }
.tech-skip:focus { transform: translateY(0); }
.tech-block { border-top: 1px solid var(--line); padding-block: clamp(2rem,5vw,4rem); }
.tech-block-head { margin-bottom: 1.5rem; }
.tech-page-head { padding-block: clamp(2rem,6vw,5rem) clamp(1.8rem,4vw,3rem); }
.tech-lead { max-width: 60ch; font-size: 1.2rem; }
.tech-cards, .tech-steps { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,270px),1fr)); gap: clamp(1rem,3vw,2.5rem); }
.tech-card { display: block; min-width: 0; text-decoration: none; color: inherit; }
.tech-card img { display: block; width: 100%; height: auto; aspect-ratio: 1.85; object-fit: cover; margin-bottom: 1.2rem; }
.tech-card-link:hover :is(h2,h3) { text-decoration: underline; text-underline-offset: .12em; }
.tech-article-image { display: block; width: 100%; height: auto; max-height: 32rem; object-fit: cover; }
.tech-prose { max-width: 66ch; font-size: 1.125rem; line-height: 1.75; margin: clamp(2rem,5vw,4rem) auto; }
.tech-prose h2 { margin: 1.4em 0 .5em; }
.tech-prose a { text-decoration: underline; text-underline-offset: .18em; }
.tech-prose img { max-width: 100%; height: auto; }
.tech-topics, .tech-pager { display: flex; flex-wrap: wrap; gap: 1rem; margin-block: 1rem; }
.tech-topics a[aria-current] { font-weight: 700; }

.technology-expanded { border-top: 1px solid var(--line); padding-block: clamp(2.75rem,6vw,5.5rem); }
.technology-expanded header p { max-width: 35ch; }
.technology-expanded header h2 { font-size: clamp(2rem,4vw,3.35rem); }
.technology-expanded :is(.technology-step,.technology-question) { border-top: 1px solid var(--line); padding-block: 1.2rem; }
.technology-expanded :is(.technology-step,.technology-question):last-child { border-bottom: 1px solid var(--line); }
.technology-expanded :is(.technology-step,.technology-question) p { max-width: 65ch; margin-bottom: 0; }
.technology-question summary { display: flex; gap: 1rem; justify-content: space-between; align-items: center; font-weight: 650; font-size: 1.12rem; cursor: pointer; list-style: none; }
.technology-question summary::-webkit-details-marker { display: none; }
.technology-question summary::after { content: '+'; color: var(--accent); font-weight: 500; font-size: 1.4rem; }
.technology-question[open] summary::after { content: '−'; }
.technology-question[open] p { margin-top: .8rem; }

.tech-article-index { max-width: 66ch; margin: 2rem auto 0; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: .5rem; }
.tech-article-index summary { cursor: pointer; font-weight: 650; }
.tech-article-index ol { margin-block: .75rem 0; }
.tech-article-index a { color: inherit; text-underline-offset: .2em; }
.tech-prose [id] { scroll-margin-top: 2rem; }

.tech-article-reading { align-items: start; margin-top: 1.5rem; margin-bottom: 3rem; }
.tech-article-reading > [class^="col"] { min-width: 0; }
.tech-article-reading .tech-prose { margin: 0; overflow-wrap: anywhere; }
.tech-article-reading .tech-prose > h2:first-child { margin-top: 0; }
.tech-article-index { margin: 0; background: var(--surface, #fff); }
.tech-article-index nav { padding-top: .35rem; }
.tech-article-index ol { display: grid; gap: .28rem; padding-left: 1.35rem; }
.tech-article-index a { display: block; padding: .2rem .3rem; line-height: 1.4; }
.tech-article-index a[aria-current="location"] { font-weight: 700; color: var(--accent); }
.tech-prose :target { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: .08em; text-underline-offset: .22em; }
@media (min-width: 992px) {
    .tech-article-reading aside { position: sticky; top: 1.5rem; }
    .tech-article-index[open] nav { max-height: calc(100dvh - 7rem); overflow-y: auto; }
}
