/* =========================================
   NOOTO SCREEN CSS
   Organized V2 - same visual rules, cleaner order
========================================= */

/* -----------------------------------------
   1. Root / Variables
----------------------------------------- */

:root {
  --menu-top: 20px;

  --nooto-action-bg:var(--site-color);
  --nooto-action-text:#fff;
  --nooto-action-border:transparent;
  --nooto-action-shadow:0 10px 30px rgba(0,0,0,.12);

  --nooto-surface:#fff;
  --nooto-surface-text:#111;

}


/* -----------------------------------------
   2. Scrollbars
----------------------------------------- */

/* Firefox */
* {
  scrollbar-color: var(--site-color) white;
}

/* Chromium / Safari */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: white;
}

::-webkit-scrollbar-thumb {
  background: var(--site-color);
  border-radius: 999px;
  border: 1px solid white;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  opacity: .85;
}








/* -----------------------------------------
   3. Base HTML
----------------------------------------- */

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: var(--site-font);
  font-weight:500;
  line-height: 1.65;
  color: #111;
  background: var(--site-color-bg);
}

a {
  color: var(--site-color);
  font-weight:600;
}




img {
  max-width: 100%;
  border-radius: 16px;
}

hr {
  border: 0;
  height: 1px;
  margin: 3rem 0;
  background: linear-gradient(to right, transparent, rgba(0,0,0,.12), transparent);
}


/* -----------------------------------------
   4. Typography / Markdown Core
----------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6{
  line-height:1.15;
  margin-top:1.5em;
  margin-bottom:.5em;
}

h1{
  font-size:clamp(1.5rem,3vw,2rem);
  margin-top:10px;
  margin-bottom:20px;
  color:var(--site-color);
}

h2{
  color:#404040;
}

h3{
  color:#404040;
}

h4{
  color:#404040;
}

h5{
  color:var(--site-color);
  font-size:1rem;
  font-weight:700;
}

h6{
  color:#cc0000;
  font-size:1rem;
  font-weight:700;
}



blockquote {
  border-left: 3px solid var(--site-color);
  padding-left: 1em;
  color: #444;
  margin-left: 5px;
}

code {
  background: #eee;
  padding: 2px 5px;
  border-radius: 5px;
}

pre {
  overflow-x: auto;
  padding: 18px;
  border-radius: 16px;
  background: #111;
  color: #f5f5f5;
}

pre code {
  display: block;
  background: transparent;
  color: inherit;
  padding: 0;
  white-space: pre-wrap;
}

table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  -webkit-overflow-scrolling: touch;
  white-space:nowrap;

}

th,
td {
  padding: 10px;
  border-bottom: 1px solid var(--site-color);
  text-align: left;
  white-space: nowrap;
}

details {padding: 1rem;}
summary {padding: 1rem;}


ruby{
  ruby-align:center;
  ruby-position:over;
}

rt{
  font-size:.48em;
  line-height:1;
  color:#aaa;
  font-weight:400;
  letter-spacing:-.02em;
  user-select:none;
}




.NootoCodeBox{
  position:relative;
}

.NootoCodeBox pre{
  max-height:300px;
  overflow:auto;
}

.NootoCodeCopy{
  position:absolute;
  top:10px;
  right:20px;
  z-index:2;

  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  padding:6px 10px;

  background: var(--site-color);
  color:#fff;

  font:inherit;
  font-size:.75rem;
  cursor:pointer;
}

.NootoCodeCopy:hover{
  background:rgba(255,255,255,.16);
}

.NootoCodeCopy.Copied{
  background:#2f8f46;
  border-color:#2f8f46;
}



/* -----------------------------------------
   ??. Noot is EMPTY
----------------------------------------- */
.NootoEmpty{
  min-height:70vh;

  display:flex;
  align-items:center;
  justify-content:center;

  text-align:center;

  width:100%;
  overflow:hidden;
}

.NootoEmptyInner{
  width:100%;
  max-width:720px;

  margin:0 auto;
  padding:48px 20px;
}

.NootoEmpty img{
  display:block;

  width:100%;
  max-width:260px;
  height:auto;

  margin:0 auto;

  object-fit:contain;
}

.NootoEmptyText{
  margin-top:22px;
  font-size:.82rem;
  letter-spacing:.04em;
  opacity:.18;
  text-align:center;
}

/* -----------------------------------------
   5. Layout
----------------------------------------- */

.wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
}

main {
  background: #fff;
  padding: 24px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.site-footer {
  max-width: 1100px;
  margin: 40px auto 20px;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
  color: #777;
}

.site-footer a {
  color: inherit;
}


/* -----------------------------------------
   6. Desktop Navigation
----------------------------------------- */

.site-nav {
  position: sticky;
  top: var(--menu-top);
  align-self: start;
  height: calc(100vh - (var(--menu-top) * 2));
  overflow: hidden;
  border-radius: 18px;
}



.NootoSystemAlert{
  margin:0 0 20px;
  padding:0;

  border-radius:18px;
  background:#fff4d6;
  border:1px solid #ecd28c;
  color:#5f4700;

  overflow:hidden;
}

.NootoSystemAlertTitle{
  padding:12px 14px;

  font-weight:700;
  font-size:.92rem;
  line-height:1.45;

  cursor:pointer;
  list-style:none;
}

.NootoSystemAlertTitle::-webkit-details-marker{
  display:none;
}

.NootoSystemAlertTitle::after{
  content:"+";
  float:right;
  opacity:.6;
}

.NootoSystemAlert[open] .NootoSystemAlertTitle::after{
  content:"−";
}

.NootoSystemAlertBody{
  padding:12px 14px 14px;

  font-size:.86rem;
  line-height:1.55;
}

.NootoSystemAlert[open] .NootoSystemAlertBody{
  border-top:1px solid rgba(95,71,0,.12);
}



.NootoNavQR{

  text-align:center;
}

.NootoNavQR img{
  display:block;
  width:150px;
  height:150px;
  margin:auto;
}

.NootoNavQRUrl{
  margin-top:-25px;
  font-size:.68rem;
  line-height:1.4;
  color:rgba(0,0,0,.42);
  word-break:break-word;
}



.MenuButton {
  display: none;
}

.NootoDialog {
  display: block;
  position: static;
  width: auto;
  height: 100%;
  max-height: none;
  border: 0;
  padding: 0;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.NootoDialog::backdrop,
.NootoDialogHead {
  display: none;
}

.nav-links {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 18px 20px;
  box-sizing: border-box;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.NootoDesktopTitle {
  margin-bottom: 16px;
  font-weight: 700;
  font-size: 150%;
  line-height: 1.3;
  color: var(--site-color);
}

.nav-links a {
  display: block;
  padding: 10px 0;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #eee;
  font-size: 15px;
  font-weight: 600;


}

.nav-links a:last-child {
  border-bottom: 0;
}

.nav-links a.Active {
  color: var(--site-color);
  font-weight: 800;
}



/* =========================================================
   Search
   ========================================================= */

.NootoSearchWrap{
  position:relative;
  margin:14px 0;
}

#NootoSearch{
  width:100%;
  box-sizing:border-box;

  padding:10px 56px 10px 12px;

  border:1px solid rgba(0,0,0,.12);
  border-radius:999px;

  font:inherit;
}


#NootoSearch::-webkit-search-cancel-button{
  -webkit-appearance:none;
  appearance:none;
  display:none;
}


#NootoSearchClear{
  position:absolute;

  right:1px;
  top:50%;

  transform:translateY(-50%);

  border:0;
  background:transparent;

  color:#5d78b8;

  font-size:24px;
  line-height:1;

  cursor:pointer;

  display:none;
}

.NootoSearchWrap.HasValue #NootoSearchClear{
  display:block;
}


/* =========================================================
   Search Highlight
   ========================================================= */


.NootoSearchMark{
  position:relative;
  background:none !important;
  color:inherit;
  z-index:1;
}

.NootoSearchMark::before{
  content:'';
  position:absolute;

  left:-2px;
  right:-2px;
  top:55%;
  bottom:-2px;

background:#fff200;
opacity:.70;

  border-radius:8px 3px 6px 4px;
  transform:rotate(-0.8deg);

  z-index:-1;
}



.NootoStatusDot{
  display:inline-block;
  width:10px;
  height:10px;
  border-radius:999px;
  margin-right:10px;
  flex:none;
  box-shadow:
    0 0 0 1px rgba(0,0,0,.08),
    0 1px 3px rgba(0,0,0,.18);
}





.NootoPageNav{
  display:flex;
  justify-content:space-between;
  gap:24px;

  margin-top:56px;
  padding-top:24px;

  border-top:1px solid rgba(0,0,0,.08);
}

.NootoPageNav a{
  color:inherit;
  text-decoration:none;
  opacity:.62;
}

.NootoPageNav a:hover{
  opacity:1;
}

.NootoPageNavNext{
  margin-left:auto;
  text-align:right;
}





/* -----------------------------------------
   7. Forms
----------------------------------------- */


form {
  max-width: 520px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: .9rem;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 15px;
  border: 1px solid #d8d8d8;
  border-radius: 12px;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 1rem;
  outline: none;
}

textarea {
  min-height: 160px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--site-color, #111);
  box-shadow: 0 0 0 4px rgba(0,0,0,.06);
}

button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;

  background:var(--nooto-action-bg);
  color:var(--nooto-action-text);
  border:1px solid var(--nooto-action-border);
  box-shadow:var(--nooto-action-shadow);

}




button:hover,
input[type="submit"]:hover {
  opacity: .92;
}



input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder{
  color:#b8b8b8;
  font-weight: 200;
}

input::placeholder,
textarea::placeholder{
  color:#b8b8b8;
  opacity:1;
  font-weight: 200;
}



.FormError {
  margin: 0 0 18px;
  padding: 13px 15px;
  border: 1px solid #ffd2d2;
  border-radius: 12px;
  background: #fff0f0;
  color: #a40000;
}


.NootoFreeForm{
  max-width:520px;
  margin:28px 0;
}

.NootoFreeForm input{
  display:block;
  width:100%;
  margin:0 0 12px;
  padding:16px 18px;

  border:1px solid #ddd;
  border-radius:16px;

  background:#fff;
  color:#111;

  font:inherit;
  font-size:1rem;
}

.NootoFreeForm input:focus{
  outline:none;
  border-color:#111;
  box-shadow:0 0 0 4px rgba(0,0,0,.06);
}

.NootoFreeForm button{
  width:100%;
  padding:16px 20px;

  border:0;
  border-radius:16px;

  background:#111;
  color:#fff;

  font:inherit;
  font-weight:700;
  cursor:pointer;
}

.NootoFreeForm button:hover{
  transform:translateY(-1px);
}


/* -----------------------------------------
   8. Loader / Reading Resume
----------------------------------------- */

#PageLoader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.92);
  transition: opacity .25s ease, visibility .25s ease;
}

#PageLoader.Hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.PageSpinner {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 3px solid rgba(0,0,0,.08);
  border-top-color: var(--site-color);
  animation: NootoSpin .7s linear infinite;
}

.NootoContinueReading{
  --OffsetY:0px;

  position:fixed;
  right:18px;
  bottom:18px;
  z-index:9999;
  padding:10px 14px;
  border-radius:999px;
  font:inherit;
  font-size:.92rem;
  cursor:pointer;
  opacity:1;
  transform:translateY(var(--OffsetY));
  transition:
    opacity .4s ease,
    transform .4s ease;

  background:var(--nooto-action-bg);
  color:var(--nooto-action-text);
  border:1px solid var(--nooto-action-border);
  box-shadow:var(--nooto-action-shadow);

}

.NootoContinueReading:hover{
  --OffsetY:-2px;
}

.NootoContinueReading.Hide{
  opacity:0;
  --OffsetY:10px;
  pointer-events:none;
}


.NootoResumeHighlight{
  position:relative;
  border-radius:8px;
}

.NootoResumeHighlight::after{
  content:'';
  position:absolute;
  inset:-4px;
  border-radius:12px;
  border:3px solid color-mix(in srgb, var(--site-color) 40%, transparent);
  box-shadow:
    0 8px 24px color-mix(in srgb, var(--site-color) 10%, transparent);
  opacity:1;
  pointer-events:none;
  transition:
    opacity 1.8s ease;
}

.NootoResumeHighlight.Fade::after{
  opacity:0;
}




/* -----------------------------------------
   ??. Contact Form
----------------------------------------- */

.NootoContactForm{
  display:flex;
  flex-direction:column;
  gap:14px;
  margin:32px 0;
}

.NootoContactForm input,
.NootoContactForm textarea{
  width:100%;
  border:1px solid rgba(0,0,0,.12);
  border-radius:18px;
  background:#fff;
  padding:18px 20px;
  font:inherit;
}

.NootoContactForm textarea{
  min-height:180px;
  resize:vertical;
}

.NootoContactForm button{
  align-self:flex-start;
  border:0;
  border-radius:16px;
  padding:14px 24px;
  font:inherit;
  font-weight:700;
  cursor:pointer;
  background:var(--nooto-action-bg);
  color:var(--nooto-action-text);
  border:1px solid var(--nooto-action-border);
  box-shadow:var(--nooto-action-shadow);

}

.NootoContactForm.Success [data-contact-status]{
  color:#0498cc;
}

.NootoContactForm.Error [data-contact-status]{
  color:#cc0000;
}







/* -----------------------------------------
   9. Images / Covers
----------------------------------------- */

main img{
  background:linear-gradient(
    110deg,
    #f2f2f2 8%,
    #e8e8e8 18%,
    #f2f2f2 33%
  );
  background-size:200% 100%;
  animation:NootoImgLoading 1.2s linear infinite;
}

main img.NootoImgLoaded{
  background:none;
  animation:none;
  opacity:1;
}

.NootoHeroCover{
  margin:-8px -8px 32px;
  overflow:hidden;
  border-radius:18px;
  background:#f3f3f3;
}

.NootoHeroCover img{
  display:block;
  width:100%;
  height:auto;
}

/* end default cover  */



.NootoHero{
  position:relative;
  overflow:hidden;

  border-radius:24px;
}

.NootoHeroImage{
  display:block;
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
}





.NootoHeroOverlay{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  align-items:flex-start;

  padding:28px 40px;

  background:
    linear-gradient(
      to top,
      rgba(0,0,0,.72) 0%,
      rgba(0,0,0,.45) 22%,
      rgba(0,0,0,.12) 45%,
      rgba(0,0,0,0) 70%
    );
}

.NootoHeroOverlay h2{
  margin:0;
  font-size:clamp(3rem,6vw,5rem);
  line-height:.88;
  color: white;
  font-weight: 700;
  text-shadow:0 3px 18px rgba(0,0,0,.55);

}


.NootoHeroOverlay p{
  margin:.4rem 0 0 1rem;
  font-size:clamp(1.7rem,4vw,3rem);
  line-height:1.1;
  color: white;
  font-weight: 600;
  text-shadow:0 2px 12px rgba(0,0,0,.65);

}

.NootoHeroButton{
  display:inline-block;
  margin-top:.9rem;
  padding:.9rem 1.4rem;
  border-radius:999px;
  background:#fff;
  color:#111;
  text-decoration:none;
  font-weight:700;
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    background .18s ease;
  box-shadow:0 8px 24px rgba(0,0,0,.18);
}


.NootoHeroButton:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.92);
  box-shadow:0 12px 32px rgba(0,0,0,.26);
}

@media (max-width:800px){

  .NootoHero{
    border-radius:20px;
  }

  .NootoHeroImage{
    aspect-ratio:4/5;
  }

  .NootoHeroOverlay{
    padding:24px;
  }

  .NootoHeroOverlay h2{
    font-size:clamp(2.1rem,10vw,3rem);
  }

  .NootoHeroOverlay p{
    margin:.45rem 0 0 .25rem;
    font-size:1.1rem;
  }

}





/* -----------------------------------------
   10. Buttons
----------------------------------------- */

.NootoButtonWrap{
  margin:28px 0;
}

.NootoButton{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:35px;
  padding:0.5rem 1rem;
  border-radius:20px;
  background:var(--site-color);
  text-decoration:none;
  font-weight:600;
  transition:.18s ease;

  background:var(--nooto-action-bg);
  color:var(--nooto-action-text);
  border:1px solid var(--nooto-action-border);
  box-shadow:var(--nooto-action-shadow);

}

.NootoButton:hover{
  transform:translateY(-2px);
  opacity:.92;
}



/* -----------------------------------------
   ??. Strip / Box 
----------------------------------------- */


.NootoBlock{
  width:100%;
  margin:32px 0;
  box-sizing:border-box;
}



.NootoBlock > :first-child{
  margin-top:0;
}

.NootoBlock > :last-child{
  margin-bottom:0;
}

.NootoBlock-strip{
  padding:22px;
  border-top:1px solid rgba(0,0,0,.06);
  border-bottom:1px solid rgba(0,0,0,.06);
}

.NootoBlock-box{
  padding:22px;
  border:1px solid rgba(0,0,0,.06);
  border-radius:14px;
}




/* -----------------------------------------
   11. Cards
----------------------------------------- */

.NootoCards{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(240px, 1fr));
  gap:24px;
  margin:32px 0;
}

.NootoCard{
  position:relative;
  display:block;
  overflow:hidden;
  min-height:100%;
  border-radius:24px;
  background:#fff;
  color:inherit;
  text-decoration:none;
  box-shadow:0 10px 40px rgba(0,0,0,.08);
  transition:transform .22s ease, box-shadow .22s ease;
}

.NootoCard:hover{
  transform:translateY(-4px);
  box-shadow:0 20px 60px rgba(0,0,0,.14);
}

.NootoCardCover{
  overflow:hidden;
  aspect-ratio:16/9;
  background:#eee;
  border-radius:24px 24px 0 0;
}

.NootoCardCover img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  border-radius:0;
}

.NootoCardBody{
  padding:22px 52px 44px 22px;
}

.NootoCardBody h1,
.NootoCardBody h2,
.NootoCardBody h3{
  margin:0 0 12px;
  font-size:1.05rem;
  line-height:1.25;
}

.NootoCardBody p{
  margin:0;
  opacity:.72;
  line-height:1.55;
}

.NootoCardArrow{
  position:absolute;
  right:22px;
  bottom:18px;
  opacity:.28;
  font-size:1.35rem;
  line-height:1;
  transition:transform .18s ease, opacity .18s ease;
}

.NootoCard:hover .NootoCardArrow{
  transform:translateX(3px);
  opacity:.55;
}

.NootoCardStatic{
  cursor:default;
}

.NootoCardStatic:hover{
  transform:none;
  box-shadow:0 10px 40px rgba(0,0,0,.08);
}


/* -----------------------------------------
   12. Gallery / Lightbox
----------------------------------------- */

.NootoGallery{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(180px, 1fr));
  gap:12px;
  margin:28px 0;
}

.NootoGalleryItem{
  position:relative;
  display:block;
  overflow:hidden;
  aspect-ratio:1/1;
  border-radius:18px;
  background:#eee;
  isolation:isolate;
}

.NootoGalleryItem img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  opacity:0;
  transform:translateZ(0) scale(1);
  backface-visibility:hidden;
  will-change:transform, opacity;
  transition:
    opacity .35s ease,
    transform .35s ease;
}

.NootoGalleryItem img.NootoImgLoaded{
  opacity:1;
}

.NootoGalleryItem:hover img.NootoImgLoaded{
  transform:translateZ(0) scale(1.04);
}

.NootoGalleryItem span{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  z-index:2;
  padding:28px 14px 14px;
  color:#fff;
  font-size:13px;
  line-height:1.35;
  background:linear-gradient(to top, rgba(0,0,0,.68), transparent);
  pointer-events:none;
}

.NootoLightbox{
  position:fixed;
  inset:0;
  z-index:9999;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.92);
}

.NootoLightbox.Open{
  display:flex;
}

.NLBImage{
  max-width:90vw;
  max-height:84vh;
  border-radius:16px;
  box-shadow:0 20px 80px rgba(0,0,0,.5);
}

.NLBCaption{
  position:absolute;
  left:20px;
  right:20px;
  bottom:24px;
  color:#fff;
  text-align:center;
  font-size:15px;
}

.NLBClose,
.NLBPrev,
.NLBNext{
  position:absolute;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  border:0;
  color:#fff;
  background:rgba(0,0,0,.38);
  cursor:pointer;
  line-height:1;
  box-shadow:0 8px 28px rgba(0,0,0,.28);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}

.NLBClose:hover,
.NLBPrev:hover,
.NLBNext:hover{
  background:rgba(0,0,0,.55);
}

.NLBClose{
  top:18px;
  right:18px;
  width:44px;
  height:44px;
  border-radius:50%;
}

.NLBPrev,
.NLBNext{
  top:50%;
  width:54px;
  height:72px;
  border-radius:18px;
  transform:translateY(-50%);
}

.NLBPrev{ left:18px; }
.NLBNext{ right:18px; }

.NLBClose svg{
  width:24px;
  height:24px;
}

.NLBPrev svg,
.NLBNext svg{
  width:36px;
  height:36px;
}

.NLBClose svg,
.NLBPrev svg,
.NLBNext svg{
  display:block;
}

.NLBClose path,
.NLBPrev path,
.NLBNext path{
  fill:none;
  stroke:currentColor;
  stroke-width:2.6;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* -----------------------------------------
   13. Maps
----------------------------------------- */

.MapCard{
  display:flex;
  gap:16px;
  align-items:center;
  padding:18px;
  margin:24px 0;
  border-radius:22px;
  background:#f6f6f6;
  color:inherit;
  text-decoration:none;
  box-shadow:0 8px 30px rgba(0,0,0,.08);
}

.MapCard:hover{
  transform:translateY(-2px);
}

.MapThumb{
  width:64px;
  height:64px;
  display:grid;
  place-items:center;
  border-radius:18px;
  background:#fff;
  font-size:30px;
}

.MapCard strong{
  display:block;
}

.MapCard small{
  display:block;
  opacity:.65;
  margin-top:4px;
}

.MapEmbed{
  overflow:hidden;
  margin:24px 0;
  border-radius:24px;
  aspect-ratio:16/9;
  box-shadow:0 10px 40px rgba(0,0,0,.14);
}

.MapEmbed iframe{
  width:100%;
  height:100%;
  border:0;
  display:block;
}


.MapThumb{
  width:64px;
  height:64px;
  flex:none;
}

.MapThumb img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  border-radius:12px;
}

/* -----------------------------------------
   14. TOC
----------------------------------------- */

.NootoTOC{
  margin:32px 0;
  padding:24px;
  border-radius:20px;
  background:#FAFAFA;
}

.NootoTOC ul{
  margin:0;
  padding:0;
  list-style:none;
}

.NootoTOC li{
  margin:10px 0;
}

.NootoTOC a{
  display:flex;
  gap:12px;
  align-items:flex-start;
  color:inherit;
  text-decoration:none;
  line-height:1.45;
}

.NootoTOC a:hover{
  color:var(--site-color);
}

.TOCNumber{
  flex:0 0 42px;
  opacity:.45;
  font-variant-numeric:tabular-nums;
}

.TOCText{
  flex:1;
}

.TOC-H1 a{
  font-weight:700;
}

.TOC-H2{
  padding-left:18px;
}

.TOC-H3{
  padding-left:36px;
  opacity:.72;
  font-size:.95em;
}




/* -----------------------------------------
   ??. Disclosure
----------------------------------------- */

.NootoDisclosure{
  border-top:1px solid rgba(0,0,0,.08);
}

.NootoDisclosure:last-child{
  border-bottom:1px solid rgba(0,0,0,.08);
}

.NootoDisclosureSummary{
  position:relative;
  cursor:pointer;
  list-style:none;
  padding:15px 30px 15px 0;
  transition:opacity .2s ease;
}

.NootoDisclosureSummary:hover{
  opacity:.72;
}

.NootoDisclosureSummary::-webkit-details-marker{
  display:none;
}

.NootoDisclosureSummary::after{
  content:"+";
  position:absolute;
  top:18px;
  right:0;
  font-size:1.1rem;
  line-height:1;
  opacity:.38;
  transition:opacity .2s ease;
}

.NootoDisclosure[open] .NootoDisclosureSummary::after{
  content:"−";
  opacity:.72;
}

.NootoDisclosure[open]{
  background:rgba(0,0,0,.02);
  border:1px solid rgba(0,0,0,.08);

}

.NootoDisclosureDate{
  display:block;
  margin-bottom:6px;
  font-size:.76rem;
  font-weight:600;
  letter-spacing:.04em;
  opacity:.42;
}

.NootoDisclosureTitle{
  display:block;
  font-size:1.02rem;
  line-height:1.25;
}

.NootoDisclosureSubtitle{
  display:block;
  margin-top:5px;
  font-size:.92rem;
  line-height:1.45;
  opacity:.68;
}

.NootoDisclosureBody{
  padding:0 0 20px;
  font-size:.96rem;
  line-height:1.75;
}


/* -----------------------------------------
   15. Timeline
----------------------------------------- */

.NootoTimeline{
  position:relative;
  margin:40px 0;
  padding-left:32px;
}

.NootoTimeline::before{
  content:"";
  position:absolute;
  left:10px;
  top:8px;
  bottom:8px;
  width:2px;
  background:#e5e5e5;
}

.NootoTimelineItem{
  position:relative;
  margin:0 0 28px;
}

.NootoTimelineItem::before{
  content:"";
  position:absolute;
  left:-30px;
  top:8px;
  width:14px;
  height:14px;
  border-radius:50%;
  background:var(--site-color);
  box-shadow:0 0 0 5px #fff;
}

.NootoTimelineDate{
  margin-bottom:8px;
  font-size:.82rem;
  font-weight:700;
  letter-spacing:.04em;
  color:var(--site-color);
  text-transform:uppercase;
}

.NootoTimelineBody{
  padding:20px;
  border-radius:22px;
  background:#fff;
  box-shadow:0 8px 28px rgba(0,0,0,.06);
}

.NootoTimelineBody h1{
  font-size:1.4rem;
  line-height:1.1;
  margin:0 0 12px;
  letter-spacing:-.03em;
}

.NootoTimelineBody h2{
  font-size:1.15rem;
}

.NootoTimelineBody h3{
  font-size:1rem;
}

.NootoTimelineBody > *:first-child{
  margin-top:0;
}

.NootoTimelineBody > *:last-child{
  margin-bottom:0;
}


/* -----------------------------------------
   16. Social Buttons
----------------------------------------- */

.NootoSocial{
  display:flex;
  justify-content:flex-start;
  flex-wrap:wrap;
  gap:10px;
  margin:28px 0 36px;
}

.NootoSocialButton{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 16px;
  border-radius:10px;
  background:
    linear-gradient(
      to bottom,
      rgba(255,255,255,.92),
      rgba(255,255,255,.78)
    );
  border:1px solid color-mix(
    in srgb,
    var(--site-color) 14%,
    rgba(0,0,0,.06)
  );
  color:#111;
  text-decoration:none;
  font-size:.92rem;
  font-weight:650;
  line-height:1;
  white-space:nowrap;
  box-shadow:
    0 6px 18px rgba(0,0,0,.045),
    inset 0 1px 0 rgba(255,255,255,.7);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease,
    color .18s ease;
}

.NootoSocialButton:hover{
  transform:translateY(-2px);
  color:var(--site-color);
  border-color:color-mix(
    in srgb,
    var(--site-color) 40%,
    transparent
  );
  box-shadow:
    0 12px 28px rgba(0,0,0,.09),
    0 0 0 1px color-mix(
      in srgb,
      var(--site-color) 12%,
      transparent
    );
}

.NootoSocialButton:active{
  transform:translateY(0);
}


/* -----------------------------------------
   17. Media Embeds
----------------------------------------- */

.NootoAudio {
  margin: 2rem 0;
  padding: 18px;
  background: #f7f7f4;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  position: sticky;
  top: 85px;
  z-index: 20;
}

.NootoAudioTitle {
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--site-color);
}

.NootoAudio audio {
  width: 100%;
  display: block;
}

.NootoVideo {
  margin: 32px 0;
}

.NootoVideoTitle {
  margin: 0 0 12px 4px;
  font-weight: 700;
  color: var(--site-color);
}

.NootoVideo iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
  border-radius: 24px;
  background: #000;
  box-shadow: 0 10px 40px rgba(0,0,0,.12);
}


/* -----------------------------------------
   18. Books
----------------------------------------- */

.NootoBooks{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:38px 26px;
  margin:42px 0;
}

.NootoBook{
  display:block;
  color:inherit;
  text-decoration:none;
}

.NootoBookCover{
  position:relative;
  display:block;
  aspect-ratio:2/3;
  overflow:visible;
  background:transparent;
  transition:transform .22s ease;
}

.NootoBookCover::before{
  content:"";
  position:absolute;
  left:50%;
  bottom:-8px;
  transform:translateX(-50%);
  width:82%;
  height:24px;
  background:radial-gradient(
    ellipse at center,
    rgba(0,0,0,.46) 0%,
    rgba(0,0,0,.28) 42%,
    rgba(0,0,0,.12) 68%,
    transparent 90%
  );
  filter:blur(16px);
  z-index:0;
  pointer-events:none;
}

.NootoBookCover::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:2;
  pointer-events:none;
  background:
    linear-gradient(
      to right,
      rgba(255,255,255,.78) 0,
      rgba(255,255,255,.36) 2px,
      transparent 5px
    ),
    linear-gradient(
      to right,
      rgba(0,0,0,.28) 0,
      rgba(0,0,0,.14) 6px,
      rgba(0,0,0,.05) 14px,
      transparent 48px
    ),
    linear-gradient(
      110deg,
      transparent 0%,
      rgba(255,255,255,.035) 38%,
      rgba(255,255,255,.075) 52%,
      rgba(255,255,255,.02) 66%,
      transparent 100%
    );
}

.NootoBookCover img{
  position:relative;
  z-index:1;
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:1px 5px 5px 1px;
  box-shadow:0 8px 18px rgba(0,0,0,.20);
}

.NootoBook:hover .NootoBookCover{
  transform:translateY(-1px);
}

.NootoBookCoverBlank{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  box-sizing:border-box;
  background:color-mix(in srgb, var(--site-color) 10%, #fff);
  border:1px solid color-mix(in srgb, var(--site-color) 20%, #ddd);
  color:var(--site-color);
  text-align:center;
  font-weight:800;
  border-radius:2px;
  box-shadow:0 8px 18px rgba(0,0,0,.16);
}

.NootoBookTitle{
  margin-left: 5px;
  margin-top:15px;
  font-weight:700;
  line-height:1.25;
}

.NootoBookAuthor{
  margin-left: 5px;
  margin-top:5px;
  font-size:.92rem;
  opacity:.68;
  line-height:1.35;
}


/* -----------------------------------------
   19. States / Utilities
----------------------------------------- */

  .NootoSection{
    margin-top:-1px;    
    margin-bottom:70px;

    border-bottom:1px solid rgba(0,0,0,.05);
  }

.NootoSectionHidden {
  display: none !important;
}


/* -----------------------------------------
   20. Animations
----------------------------------------- */

@keyframes NootoImgLoading{
  to{
    background-position-x:-200%;
  }
}

@keyframes NootoSpin {
  to { transform: rotate(360deg); }
}


/* -----------------------------------------
   21. Responsive: Tablet
----------------------------------------- */

@media (max-width: 900px){
  .NootoBooks{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}


/* -----------------------------------------
   22. Responsive: Mobile Small
----------------------------------------- */

@media (max-width: 640px){
  .NootoBooks{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:28px 18px;
  }

  .NootoBookTitle{
    font-size:.98rem;
  }

  .NootoBookAuthor{
    font-size:.86rem;
  }
}


/* -----------------------------------------
   23. Responsive: Mobile Main
----------------------------------------- */

@media (max-width: 800px) {

  .wrap {
    display: block;
    padding: 0;
  }

  main {
    margin: 5px;
    margin-top: -1px;
    padding: 22px;
    border-radius: 0;
    box-shadow: 0 1px 8px rgba(0,0,0,.20);
  }

  .site-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: auto;
    overflow: visible;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 1px 8px rgba(0,0,0,.06);
  }


.MenuButton{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  width:100%;
  height:56px;
  padding:0 20px;
  border:0;
  border-radius:0;
  background:#fff;
  color:var(--site-color);
  font:inherit;
}

.MenuButtonTitle{
  flex:1;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  text-align:left;
}

.MenuButtonRight{
  display:flex;
  align-items:center;
  gap:10px;
}

.MenuButtonAlert,
.MenuButtonIcon{
  flex:0 0 35px;

  width:35px;
  height:35px;

  display:flex;
  align-items:center;
  justify-content:center;

  padding:0;
  margin:0;

  line-height:1;
}

.MenuButtonIcon{
  font-size:24px;
  transform:translateY(-3px);

}

.MenuButtonAlert{
  color:#d49a00;
  font-size:20px;
}



  .NootoDialogHead button{
    width:35px;
    height:35px;
    font-size:20px;
  }

  .NootoDesktopTitle {
    display: none;
  }

  .NootoDesktopTitle{
    text-align:center;
  }

  .NootoDesktopTitle img{
    width:70% !important;
    max-width:200px;
    height:auto;
    margin:0 auto;
    display:block;
  }

  .NootoDialog:not([open]) {
    display: none !important;
  }

  .NootoDialog[open] {
    display: flex !important;
    flex-direction: column;
  }

  .NootoDialog {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    overflow: hidden;
  }

  .NootoDialog::backdrop {
    background: rgba(0,0,0,.25);
    backdrop-filter: blur(4px);
  }

.NootoDialogHead{
  display:flex;
  flex:0 0 56px;
  height:56px;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  padding:0 20px;
  background:#fff;
  border-bottom:1px solid #eee;
  box-sizing:border-box;
}

.NootoDialogHead button{
  flex:0 0 35px;
  width:35px;
  height:35px;

  display:flex;
  align-items:center;
  justify-content:center;

  padding:0;
  margin:0;

  border:none !important;
  outline:none !important;
  box-shadow:none !important;

  border-radius:999px;
  background:transparent;

  color:var(--site-color);

  font:inherit;
  font-size:24px;
  line-height:1;

  appearance:none;
  -webkit-appearance:none;

  cursor:pointer;
}




  .NootoDialog .nav-links {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px 20px 140px;
    box-sizing: border-box;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links a {
    padding: 13px 0;
    font-size: 15px;
    font-weight: 700;
  }

  h1 {
    font-size: 2rem;
  }





  .NootoSocial{
    display:grid;
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:14px;
  }

  .site-footer {
    display: block;
    text-align: center;
    line-height: 1.8;
    padding: 0 20px 30px;
  }
}
