/* Astro components and accessible interactions. Base proportions match myWpTheme. */
svg { display: inline-block; vertical-align: middle; flex-shrink: 0; }
button { cursor: pointer; }
button, a, summary, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #a8cff5; outline-offset: 2px; }
[id] { scroll-margin-top: 90px; }
.skip-link:focus { position: fixed; }
.brand-subtitle { padding-left: 17px; margin-left: 18px; color: #8993a2; border-left: 1px solid var(--nl-line); font-size: 12px; letter-spacing: .1em; }
.mobile-navigation { display: none; }
.language-switch { position: relative; padding-left: 12px; border-left: 1px solid var(--nl-line); white-space: nowrap; }
.language-switch summary { display: flex; align-items: center; gap: 7px; padding: 7px 9px; color: #56657a; border-radius: 5px; font-size: 12px; font-weight: 550; line-height: 1.5; list-style: none; cursor: pointer; transition: color 150ms ease, background 150ms ease; }
.language-switch summary::-webkit-details-marker { display: none; }
.language-switch summary:hover { color: var(--nl-blue-dark); background: #f2f7fc; }
.language-switch[open] summary { color: var(--nl-blue-dark); background: var(--nl-blue-soft); }
.language-switch summary > svg { color: #8996a8; transition: transform 150ms ease; }
.language-switch[open] summary > svg { color: var(--nl-blue-dark); transform: rotate(180deg); }
.language-switch summary:focus-visible { outline: 2px solid #9cccfa; outline-offset: 2px; }
.language-options { position: absolute; z-index: 110; top: calc(100% + 10px); right: 0; width: 152px; padding: 5px; background: #fff; border: 1px solid #e4eaf2; border-radius: 8px; box-shadow: 0 8px 28px rgba(25, 46, 72, .12); }
.language-options a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 11px; color: #526176; border-radius: 5px; font-size: 13px; font-weight: 450; line-height: 1.5; }
.language-options a + a { margin-top: 3px; }
.language-options a:hover, .language-options a:focus-visible { color: var(--nl-blue-dark); background: #f2f7fc; outline: none; }
.language-options a[aria-checked="true"] { color: var(--nl-blue-dark); background: var(--nl-blue-soft); font-weight: 600; }
html[lang="en"] .hero-title { font-size: clamp(27px, 3.1vw, 41px); }
html[lang="en"] .hero-copy { padding-top: 30px; padding-bottom: 30px; }
html[lang="en"] .section-title { white-space: nowrap; }
html[lang="en"] .site-stats span { font-size: 11px; }
.post-body { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.posts-column, .section-categories { min-width: 0; }
.post-meta-primary time { white-space: nowrap; }
.post-meta > span { white-space: nowrap; }
.post-title { overflow-wrap: anywhere; }
.hero-title { font-weight: 750; }
.hero-copy { width: min(640px, 68%); }
.hero-excerpt { max-width: 480px; }
.eyebrow { font-size: 11px; letter-spacing: .18em; }
.carousel-arrow { padding: 0; }
.carousel-controls { position: absolute; z-index: 4; right: 22px; bottom: 14px; display: flex; align-items: center; gap: 14px; }
.carousel-dots { position: static; }
.carousel-dot { position: relative; height: 4px; }
.carousel-dot::before { position: absolute; inset: -12px 0; content: ''; }
.carousel-pause { display: inline-flex; align-items: center; gap: 4px; padding: 4px; color: #fff; background: none; border: 0; font-size: 11px; opacity: .85; }
.carousel-pause:hover { opacity: 1; }
.carousel-pause svg.paused { opacity: .45; }
.hero-carousel:focus-within { outline-offset: 4px; }
.site-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 20px 0 16px; text-align: center; }
.site-stats a { display: flex; flex-direction: column; gap: 1px; line-height: 1.6; }
.site-stats a + a { border-left: 1px solid var(--nl-line); }
.site-stats strong { font-size: 19px; font-weight: 650; }
.site-stats span { color: var(--nl-muted); font-size: 12px; }
.site-stats a:hover strong { color: var(--nl-blue); }
.about-rss { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px; background: var(--nl-blue-soft); color: var(--nl-blue-dark); border-radius: 5px; font-size: 12px; }
.about-rss:hover { background: #dceeff; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { padding: 4px 10px; color: #66758a; background: #f3f6fa; border-radius: 4px; font-size: 12px; }
.tag-cloud a:hover, .single-tags a:hover { color: var(--nl-blue-dark); background: var(--nl-blue-soft); }
.text-button { padding: 0; border: 0; background: none; color: inherit; font-size: 13px; }
.text-button:hover { color: #fff; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; }
.pagination-note { color: var(--nl-muted); font-size: 12px; }
.blue-link { color: var(--nl-blue-dark); }
.blue-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 18px; color: #8190a2; font-size: 12px; }
.breadcrumb a:hover { color: var(--nl-blue-dark); }
.single-layout > .sidebar { position: static; }
.single-title { font-weight: 600; }
.entry-content { overflow-wrap: anywhere; }
.entry-content pre { max-width: 100%; max-height: 460px; overflow: auto; font-size: 13px; line-height: 1.8; overscroll-behavior: contain; }
.entry-content :not(pre) > code { padding: 2px 5px; background: #f0f4f8; color: #23689c; border-radius: 4px; font-size: .88em; }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 14px; }
.entry-content th, .entry-content td { padding: 10px 14px; border: 1px solid var(--nl-line); text-align: left; }
.entry-content th { color: var(--nl-ink); background: #f6f8fb; }
.entry-content ul, .entry-content ol { padding-left: 1.5em; }
.entry-content li { padding-left: 4px; }
.entry-content hr { margin: 30px 0; border: 0; border-top: 1px solid var(--nl-line); }
.toc-list { margin: 0; padding-left: 19px; color: #7b8a9b; font-size: 13px; }
.toc-list li { margin: 9px 0; }
.toc-list a { display: inline-block; color: #59697d; line-height: 1.65; }
.toc-list a:hover { color: var(--nl-blue); }
.toc-list .toc-sub { margin-left: 10px; font-size: 12px; }
.article-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 24px; margin-top: 25px; border-top: 1px solid var(--nl-line); color: var(--nl-muted); font-size: 12px; }
.copy-link { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid var(--nl-line); border-radius: 5px; background: #fff; color: #586b81; font-size: 12px; }
.copy-link:hover { color: var(--nl-blue-dark); border-color: var(--nl-blue); }
.copy-status { margin: 7px 0 0; color: var(--nl-blue-dark); font-size: 12px; }
.copy-status:empty { display: none; }
.neighbor-label { display: block; color: #9099a8; margin-bottom: 6px; font-size: 12px; }
.search-dialog { margin: min(14vh, 120px) auto auto; padding: 28px; max-height: 75dvh; color: var(--nl-ink); border: 1px solid var(--nl-line); border-radius: 12px; transform: none; overscroll-behavior: contain; }
.search-dialog::backdrop { background: rgba(8, 20, 36, .68); backdrop-filter: blur(6px); }
.search-dialog-head h2 { margin: 0; font-size: 20px; }
.search-results { display: grid; gap: 10px; }
.search-result { display: block; padding: 15px; background: #f7f9fc; border: 1px solid var(--nl-line); border-radius: 7px; }
.search-result:hover { background: var(--nl-blue-soft); border-color: #b9dbfb; }
.search-result h3 { margin: 0 0 7px; font-size: 16px; }
.search-result p { margin: 0 0 8px; color: var(--nl-muted); font-size: 13px; }
.search-result > span { color: #7a8da2; font-size: 11px; }
.search-hint { margin-bottom: 16px; }
.header-search-wrap { position: relative; }
.search-popover { position: absolute; z-index: 115; top: calc(100% + 12px); right: 0; width: 440px; max-height: calc(100dvh - 95px); overflow: auto; overscroll-behavior: contain; padding: 16px; background: #fff; border: 1px solid #e4eaf2; border-radius: 9px; box-shadow: 0 10px 35px rgba(25, 46, 72, .14); }
.search-popover[hidden] { display: none; }
.search-popover-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 15px; }
.search-popover-head h2 { margin: 0; font-size: 14px; font-weight: 600; }
.search-dismiss { display: grid; width: 26px; height: 26px; place-items: center; padding: 0; background: transparent; border: 0; border-radius: 4px; color: #8996a8; }
.search-dismiss:hover { color: var(--nl-blue-dark); background: #f2f7fc; }
.search-popover .search-field { height: 40px; padding: 0 11px; font-size: 13px; border-radius: 5px; }
.search-popover .search-field:focus, .search-popover .search-field:focus-visible { outline: none; border-color: #bdcbdc; box-shadow: none; }
.search-popover .search-submit { height: 40px; padding-inline: 15px; font-size: 13px; border-radius: 5px; }
.search-popover .search-status { margin: 11px 0 0; color: var(--nl-muted); font-size: 12px; }
.search-popover .search-status:empty { display: none; }
.search-popover .search-results { gap: 0; margin-top: 10px; max-height: min(420px, calc(100dvh - 245px)); overflow-y: auto; }
.search-popover .search-results:empty { margin-top: 0; }
.search-popover .search-result { padding: 12px 7px; background: transparent; border: 0; border-top: 1px solid var(--nl-line); border-radius: 0; }
.search-popover .search-result:hover { background: #f5f9fd; }
.search-popover .search-result h3 { font-size: 14px; line-height: 1.5; }
.search-popover .search-result p { display: -webkit-box; overflow: hidden; font-size: 12px; line-height: 1.7; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.archive-panel { align-self: start; }
.archive-description { margin-bottom: 0; }
.archive-taxonomy { padding: 28px 30px; }
.archive-taxonomy .section-title { margin-bottom: 18px; }
.category-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.category-chips a { display: inline-flex; align-items: center; gap: 15px; padding: 7px 12px; color: #52647a; font-size: 13px; background: #f5f8fb; border: 1px solid var(--nl-line); border-radius: 5px; }
.category-chips a:hover { border-color: var(--nl-blue); color: var(--nl-blue-dark); }
.category-chips span { color: #93a1b1; font-size: 11px; }
.timeline { padding: 0 30px; }
.timeline-group { margin-bottom: 22px; }
.timeline-group h2 { display: flex; align-items: center; gap: 14px; margin: 0; padding: 18px 0; border-top: 1px solid var(--nl-line); font-size: 20px; }
.timeline-group h2 span { color: #98a2b2; font-size: 12px; font-weight: 400; }
.timeline-group ul { margin: 0; padding: 0; list-style: none; }
.timeline-group li { display: flex; align-items: baseline; gap: 15px; padding: 13px 0; border-bottom: 1px dashed var(--nl-line); font-size: 14px; }
.timeline-group time { flex-shrink: 0; color: #93a1b1; font-size: 12px; font-variant-numeric: tabular-nums; }
.timeline-group li a:hover { color: var(--nl-blue); }
.timeline-category { margin-left: auto; flex-shrink: 0; color: #96a2b1; font-size: 11px; }
.about-intro { margin-bottom: 0; color: var(--nl-muted); font-size: 14px; }
.not-found { min-height: 65vh; padding-top: 100px; padding-bottom: 100px; }
.not-found h1 { font-size: clamp(28px, 4vw, 44px); }
.not-found > p:not(.section-kicker) { color: var(--nl-muted); }
.not-found > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 25px; }
@media (max-width: 1120px) {
  .brand-subtitle { display: none; }
}
@media (max-width: 980px) {
  .mobile-navigation { display: block; }
  .mobile-navigation summary { display: grid; place-items: center; width: 40px; height: 40px; list-style: none; cursor: pointer; }
  .mobile-navigation summary::-webkit-details-marker { display: none; }
  .mobile-navigation nav { position: absolute; top: calc(var(--nl-header) - 1px); inset-inline: 0; padding: 16px 20px; background: #fff; border-bottom: 1px solid var(--nl-line); box-shadow: 0 18px 24px rgba(23,32,51,.06); }
  .mobile-navigation nav a { display: block; padding: 10px 0; color: #526278; font-size: 14px; }
  .mobile-navigation nav a[aria-current], .mobile-navigation nav a:hover { color: var(--nl-blue); }
  .single-layout .toc-panel { display: none; }
}
@media (max-width: 720px) {
  .search-popover { position: fixed; top: calc(var(--nl-header) + 8px); right: 12px; left: 12px; width: auto; padding: 14px; max-height: calc(100dvh - var(--nl-header) - 24px); }
  .language-switch { padding-left: 0; margin-right: 3px; border-left: 0; }
  .language-switch summary { padding-inline: 7px; font-size: 12px; }
  .language-options { width: 144px; }
  html[lang="en"] .hero-title { font-size: 25px; }
  html[lang="en"] .hero-copy { padding-top: 50px; padding-bottom: 35px; }
  html[lang="en"] .section-categories { gap: 9px; }
  html[lang="en"] .section-categories a { font-size: 10px; }
  html[lang="en"] .section-title { font-size: 15px; }
  .hero-copy { width: 100%; padding: 50px 20px 35px; }
  .eyebrow { margin-bottom: 9px; font-size: 9px; }
  .hero-title { font-size: 23px; }
  .carousel-controls { right: 14px; bottom: 7px; gap: 10px; }
  .carousel-pause { font-size: 10px; }
  .post-body { justify-content: space-between; }
  .post-meta { flex-wrap: nowrap; gap: 4px; }
  .post-meta-primary time { font-size: 10px; }
  .post-meta-primary > :not(:last-child) { display: none; }
  .post-meta > span { font-size: 10px; gap: 3px; }
  .post-meta svg { width: 11px !important; height: 11px !important; }
  .section-categories { gap: 12px; }
  .section-categories a { font-size: 11px; }
  .section-note { display: none; }
  .pagination { margin-top: 18px; }
  .pagination .page-numbers { min-width: 36px; height: 36px; padding: 0 9px; font-size: 13px; }
  .pagination .nav-links { gap: 6px; }
  .pagination-note { font-size: 11px; }
  .footer-bottom { flex-direction: column; gap: 4px; }
  .footer-bottom p { font-size: 10px; }
  .footer-bottom p:last-child { color: #8290a5; }
  .archive-header { padding-top: 25px; padding-bottom: 9px; }
  .archive-title { font-size: 27px; }
  .archive-description { font-size: 13px; }
  .archive-taxonomy { padding: 22px 18px; }
  .timeline { padding: 0 18px; }
  .timeline-category { display: none; }
  .timeline-group li { gap: 11px; font-size: 13px; }
  .timeline-group h2 { font-size: 18px; }
  .breadcrumb { margin-inline: 15px; margin-bottom: 10px; }
  .single-article { border-radius: 0; }
  .single-title { font-size: 24px; }
  .entry-content h2 { font-size: 21px; }
  .entry-content h3 { font-size: 18px; }
  .search-dialog { width: calc(100% - 24px); margin-top: 65px; padding: 20px; max-height: calc(100dvh - 100px); }
  .search-dialog-head { gap: 10px; margin-bottom: 17px; }
  .search-dialog-head h2 { font-size: 18px; }
  .search-form-row { grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
  .search-field { height: 45px; padding-inline: 10px; font-size: 13px; }
  .search-submit { width: auto; height: 45px; padding-inline: 15px; font-size: 13px; }
  .search-result { padding: 12px; }
  .search-result h3 { font-size: 15px; }
  .search-hint { font-size: 12px; }
  .not-found { padding-top: 65px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-delay: 0ms !important; }
  .carousel-pause { display: none; }
}
