/* Tubelight Navbar by Ayushmaan Singh, MIT. CSS maps the author's Tailwind
   classes to this static site. Lamp geometry and spring remain in React source. */
.header.tube-header{width:calc(100% - 64px);max-width:1280px;top:24px;padding:0;min-height:0;border:0;border-radius:0;background:transparent;backdrop-filter:none;box-shadow:none;display:grid;grid-template-columns:144px minmax(0,1fr) 202px;gap:24px;color:#e5f1e9;align-items:center}
.tube-header>.brand{justify-self:start;padding:7px 11px;background:#edf1eb;border:1px solid #fff8;border-radius:16px;box-shadow:0 8px 24px #0002}
.header.tube-header .brand-original-color{width:108px;height:auto}
#author-navbar{display:none;justify-self:center;min-width:0;max-width:100%}
.tube-ready #author-navbar{display:block}.tube-ready .tube-fallback{display:none}
.tube-nav{position:relative!important;inset:auto!important;transform:none!important;z-index:2;margin:0!important;padding:0!important;isolation:isolate}
.tube-nav>div,.tube-fallback{position:relative;display:flex;align-items:center;gap:3px;padding:5px;border:1px solid #d9ecdf29;border-radius:999px;background:#101c19d9;backdrop-filter:blur(16px);box-shadow:0 12px 40px #0003,inset 0 1px 0 #ffffff05}
.tube-nav a,.tube-fallback a{position:relative;display:block;white-space:nowrap;padding:11px 16px;color:#b8c7c0;font:500 11px/1.5 var(--body);border-radius:999px;isolation:isolate;transition:color .2s}
.tube-nav a:hover,.tube-nav a:focus-visible,.tube-nav a[aria-current]{color:#edf9f1}
.tube-nav a[aria-current]{background:#d4eddf0c}
.tube-nav a>span:first-child{display:inline}.tube-nav a>span:nth-child(2){display:none}
.tube-nav a>div{position:absolute;inset:0;width:100%;background:#d6eddf08;border-radius:999px;z-index:-1;pointer-events:none}
.tube-nav a>div>div{position:absolute;top:-8px;left:50%;transform:translateX(-50%);width:32px;height:4px;background:#c3e3ce;border-radius:4px 4px 0 0;pointer-events:none}
.tube-nav a>div>div>div{position:absolute;background:#c3e3ce33;border-radius:999px;pointer-events:none}
.tube-nav a>div>div>div:nth-child(1){width:48px;height:24px;filter:blur(12px);top:-8px;left:-8px}
.tube-nav a>div>div>div:nth-child(2){width:32px;height:24px;filter:blur(12px);top:-4px;left:0}
.tube-nav a>div>div>div:nth-child(3){width:16px;height:16px;filter:blur(4px);top:0;left:8px}
.tube-header .header-actions{justify-self:end;gap:13px}
.tube-header .language{min-width:40px;min-height:44px;justify-content:center;align-items:center;border:1px solid #d9ecdf29;background:#101c19d9;backdrop-filter:blur(16px);border-radius:999px;color:#e5f1e9;padding:10px;font-size:10px}
.tube-header .header-start{background:#c5dfd1;color:#16271f;min-height:44px;padding:12px 17px;white-space:nowrap;font-size:10px}
.tube-header .header-start:hover{background:#deefe4}
.tube-header .header-start.rx-link::before{bottom:7px}
.tube-header .menu-toggle{color:#e5f1e9}
.tube-header .mobile-nav{display:none}
html[lang=ru] .tube-nav a{padding-inline:14px;font-size:10px}
@media(max-width:1150px){.header.tube-header{grid-template-columns:144px minmax(0,1fr) 44px;gap:18px}.tube-header .header-start{display:none}}
@media(max-width:820px){.header.tube-header{display:flex;width:calc(100% - 40px);max-width:none;top:18px;justify-content:space-between;gap:16px}.tube-ready #author-navbar,.tube-header .tube-fallback{display:none}.tube-header>.brand{padding:6px 9px;border-radius:14px}.header.tube-header .brand-original-color{width:98px}.tube-header .header-actions{display:flex;gap:3px;padding:4px;background:#101c19e8;border:1px solid #d9ecdf29;border-radius:999px;backdrop-filter:blur(16px);box-shadow:0 10px 30px #0003}.tube-header .language{background:transparent;border:0;backdrop-filter:none;width:42px}.tube-header .menu-toggle{background:transparent;border:0;display:flex;flex-direction:column;gap:6px;align-items:center;justify-content:center;width:44px;min-height:44px;padding:10px}.tube-header .menu-toggle span{background:#d8ecdf;width:18px;height:1px;display:block;transition:transform .2s}.tube-header .mobile-nav:not([hidden]){position:absolute;top:calc(100% + 13px);left:0;right:0;display:flex;flex-direction:column;background:#10201cf5;border:1px solid #d9ecdf29;border-radius:20px;padding:18px 23px;backdrop-filter:blur(24px);box-shadow:0 25px 70px #0008;color:#e5f1e9;max-height:calc(100dvh - 130px);overflow:auto}.tube-header .mobile-nav>a{font-size:16px;min-height:48px;padding:12px 0;border-bottom:1px solid #d9ecdf1c}.tube-header .mobile-nav .button{margin-top:18px}.tube-header .menu-toggle[aria-expanded=true] span:first-child{transform:translateY(3.5px) rotate(45deg)}.tube-header .menu-toggle[aria-expanded=true] span:last-child{transform:translateY(-3.5px) rotate(-45deg)}}
@media(max-width:480px){.header.tube-header{top:15px;width:calc(100% - 30px)}.header.tube-header .brand-original-color{width:94px}}
@supports not(backdrop-filter:blur(1px)){.tube-nav>div,.tube-header .header-actions,.tube-header .language,.tube-header .mobile-nav:not([hidden]){background:#10201c}}
@media(prefers-reduced-motion:reduce){.tube-nav *{transition:none!important}}
html[data-motion-paused=true] .tube-nav *{transition:none!important}

/* Original white artwork on the page itself; header scrolls with the hero. */
.header.tube-header{position:absolute}
.tube-header>.brand{padding:0;background:transparent;border:0;border-radius:0;box-shadow:none}
.header.tube-header .brand-original-header{width:112px;height:auto}
@media(max-width:820px){.tube-header>.brand{padding:0;border-radius:0}.header.tube-header .brand-original-header{width:92px}.tube-header .header-actions{align-self:flex-start;margin-top:12px}}
@media(max-width:480px){.header.tube-header .brand-original-header{width:92px}.hero-content{padding-top:177px}}

@media(min-width:821px){.hero-content{padding-top:175px}}

/* Larger reading size and matched controls. Original moving lamp removed in adapter. */
.header.tube-header{grid-template-columns:112px minmax(0,1fr) 236px;gap:20px}
.tube-nav>div,.tube-fallback{gap:2px;padding:5px}
.tube-nav a,.tube-fallback a{padding:12px 17px;font-size:14px;line-height:1.5;font-weight:500;color:#c3d0c9}
.tube-nav a[aria-current]{background:transparent;color:#e7f7ed}
.tube-nav a:hover,.tube-nav a:focus-visible{color:#fff}
.tube-header .header-actions{gap:12px}
.tube-header .language{width:52px;min-height:56px;padding:12px;font-size:13px;line-height:1.5}
.tube-header .header-start{display:inline-flex;min-height:56px;padding:16px 21px;font-size:13px;line-height:1.5}
html[lang=ru] .tube-nav a{padding-inline:16px;font-size:13px}
@media(min-width:821px) and (max-width:1100px){
 .header.tube-header{grid-template-columns:112px minmax(0,1fr);grid-template-rows:1fr 1fr;column-gap:24px;row-gap:8px}
 .tube-header>.brand{grid-column:1;grid-row:1 / 3}
 .tube-header .header-actions{grid-column:2;grid-row:1;align-self:end;justify-self:end}
 #author-navbar,.tube-fallback{grid-column:2;grid-row:2;align-self:start;justify-self:end}
}
@media(max-width:820px){
 .header.tube-header{gap:16px}
 .tube-header .header-actions{gap:3px}
 .tube-header .header-start{display:none}
 .tube-header .language{width:44px;min-height:48px;font-size:12px;padding:10px}
 .tube-header .menu-toggle{width:46px;min-height:48px}
}

@media(min-width:921px) and (max-width:1100px){
 .header.tube-header{grid-template-columns:112px minmax(0,1fr) 226px;grid-template-rows:auto;gap:16px}
 .tube-header>.brand,.tube-header .header-actions,#author-navbar,.tube-fallback{grid-column:auto;grid-row:auto;align-self:center}
 #author-navbar,.tube-fallback{justify-self:center}
 .tube-nav a,.tube-fallback a{font-size:13.5px;padding-inline:12px}
 html[lang=ru] .tube-nav a{font-size:13px;padding-inline:11px}
 .tube-header .header-start{padding-inline:17px;gap:10px}
}
