/* AMATEA TOP / only this page; preserve shared PHP navigation and footer */
.page-layout:has(.amatea-home){grid-template-columns:minmax(0,1fr) 280px;gap:26px;align-items:start}
.page-layout:has(.amatea-home) > .article-main{display:contents}
.page-layout:has(.amatea-home) .amatea-home{display:contents}
.page-layout:has(.amatea-home) .amatea-home-hero{grid-column:1/-1;grid-row:1}
.page-layout:has(.amatea-home) .amatea-home-content{grid-column:1;grid-row:2;min-width:0}
.page-layout:has(.amatea-home) > .info-nav{grid-column:2;grid-row:2;min-width:0}
.amatea-home-hero,.amatea-home-content{box-sizing:border-box;font-family:"Yu Mincho","Hiragino Mincho ProN","Noto Serif JP",serif}
.amatea-home-hero *,.amatea-home-content *{box-sizing:border-box}
.amatea-home-hero{position:relative;isolation:isolate;overflow:hidden;min-height:clamp(430px,62vw,660px);border:1px solid rgba(152,227,255,.56);border-radius:12px;background:#021224;box-shadow:0 0 38px rgba(30,158,238,.22),inset 0 0 20px rgba(51,176,255,.2)}
.amatea-home-hero-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 53%;z-index:-3}

.amatea-home-hero-copy{padding:clamp(32px,4.5vw,64px) 20px 100px;text-align:center;color:#f2fcff;text-shadow:0 2px 10px #001224,0 0 20px rgba(50,167,243,.6)}
.amatea-home-eyebrow{font-size:clamp(9px,1.1vw,13px);letter-spacing:.26em;color:#c7eeff;margin:0 0 6px}
.page-type-article #pagebody.amatea-home h1,.amatea-home-hero h1{margin:0 !important;padding:0 !important;border:0 !important;background:none !important;color:#f2fcff !important;font-family:Georgia,"Times New Roman",serif !important;font-weight:400 !important;font-size:clamp(48px,7.6vw,94px) !important;letter-spacing:.14em !important;line-height:1.1 !important;text-shadow:0 0 13px #4fc9ff,0 3px 18px #00142c !important}








.amatea-home-content{color:#e5f5ff;min-width:0;background:radial-gradient(ellipse at 95% 3%,rgba(34,103,158,.2),transparent 35%),linear-gradient(160deg,#06172b,#03101f);padding:32px clamp(15px,3vw,34px) 40px;border:1px solid rgba(76,161,212,.3);border-radius:12px}
.amatea-home-content a{color:#d9f6ff}
.amatea-home-intro{text-align:center;margin:0 auto 26px;max-width:720px}
.amatea-home-kicker{font-family:Arial,sans-serif;color:#78d6ff;font-size:11px;letter-spacing:.19em}
.amatea-home-intro h2,.amatea-home-section h2{border:0!important;background:none!important;box-shadow:none!important;color:#e9faff!important;font-weight:500!important;font-size:clamp(20px,2.8vw,28px)!important;padding:0!important;margin:6px 0 15px!important;line-height:1.5!important;text-align:left!important;font-family:"Yu Mincho","Hiragino Mincho ProN","Noto Serif JP",serif!important}
.amatea-home-intro h2{text-align:center!important}
.amatea-home-intro p,.amatea-home-section p{line-height:1.95}






.amatea-home-section{margin:18px 0;padding:24px clamp(15px,2.5vw,25px);border:2px solid rgba(92,172,224,.55);border-radius:12px;background:radial-gradient(circle at 96% 0,rgba(42,126,181,.16),transparent 40%),#071d33;box-shadow:inset 0 0 20px rgba(30,110,166,.1),0 0 16px rgba(17,109,176,.1)}

.amatea-home-link-list{margin:10px 0 0!important;padding:0!important;list-style:none!important;display:grid;gap:8px}
.amatea-home-link-list li{margin:0!important;padding:0!important;line-height:1.7}
.amatea-home-link-list a,.amatea-home-text-link{display:inline-block;padding:6px 2px;color:#c2edff!important;text-decoration:none!important;border-bottom:1px solid rgba(110,204,253,.45)}
.amatea-home-link-list a:hover,.amatea-home-text-link:hover{text-decoration:underline!important;color:#fff!important}
.amatea-home-link-list a::before,.amatea-home-text-link::before{content:"›";color:#83dbff;margin-right:8px}
.amatea-home-levels{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}
.amatea-home-levels>div{padding:14px;background:rgba(5,30,56,.8);border:1px solid rgba(82,153,204,.42);border-radius:9px}
.amatea-home-levels h3{color:#d7f6ff!important;font-size:17px!important;margin:0 0 8px!important;padding:0!important;border:0!important}
.amatea-home-levels h3 small{font-size:12px;font-weight:normal;display:block;margin-top:5px;color:#a7cbe1}
.amatea-home-future-levels{padding-left:20px!important;margin:16px 0!important;color:#bed9ec;line-height:1.8}
.amatea-home-status{font-size:12px;color:#c2d2df;display:inline-block}
.amatea-home-back{text-align:center;margin:32px 0 0}.amatea-home-back a{border-bottom:1px solid #80cafa;text-decoration:none}
@media(max-width:980px){.page-layout:has(.amatea-home){display:block}.page-layout:has(.amatea-home)>.article-main{display:block}.page-layout:has(.amatea-home) .amatea-home{display:block}.page-layout:has(.amatea-home) .amatea-home-hero{min-height:clamp(450px,68vw,640px)}.page-layout:has(.amatea-home)>.info-nav{margin-top:26px}}
@media(max-width:620px){.amatea-home-hero{min-height:550px!important;border-radius:8px}.amatea-home-hero-image{object-position:50% 50%}.amatea-home-hero-copy{padding:35px 10px 80px}.amatea-home-eyebrow{font-size:9px;letter-spacing:.1em}.amatea-home-content{padding:24px 13px}.amatea-home-levels{grid-template-columns:1fr}.amatea-home-section{padding:20px 15px}}

/* Prevent generic site image rules from collapsing the full-bleed hero image to its intrinsic aspect height. */
.amatea-home-hero > img.amatea-home-hero-image{height:100%!important;max-height:none!important;max-width:none!important}
/* Restore the custom heading treatment where core.css uses decorative heading pseudo elements. */
.amatea-home-content h2::before,.amatea-home-content h2::after,.amatea-home-content h3::before,.amatea-home-content h3::after{content:none!important;display:none!important}
@media(max-width:620px){
  .amatea-home-hero{min-height:650px!important}
  .amatea-home-hero-copy{min-height:600px;display:flex;flex-direction:column;align-items:center;padding:32px 10px 67px}
  
  .amatea-home-hero-image{object-position:50% 50%}
}


/* AMATEA TOP / second draft: desktop information navigation enters after the full hero,
   then follows scrolling without covering the hero or changing shared site navigation. */
@media (min-width:981px){
  .page-layout:has(.amatea-home) > .info-nav{
    position:sticky;
    top:clamp(12px,7vw,84px);
    align-self:start;
    max-height:calc(100vh - 100px);
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-width:thin;
  }
}
@media (max-width:980px){
  .page-layout:has(.amatea-home) > .info-nav{
    position:static;
    max-height:none;
    overflow:visible;
  }
}
/* Keep all surrounding devices visible on narrow screens instead of enlarging
   the central network symbol via object-fit:cover. */
@media (max-width:620px){
  .page-layout:has(.amatea-home) .amatea-home-hero{
    min-height:560px!important;
    background:#03132b;
  }
  .page-layout:has(.amatea-home) .amatea-home-hero > img.amatea-home-hero-image{
    top:192px;
    bottom:auto;
    left:0;
    width:100%;
    height:auto!important;
    aspect-ratio:16/9;
    object-fit:contain;
    object-position:center;
    max-width:100%!important;
  }
  
  .amatea-home-hero-copy{
    min-height:0;
    display:block;
    padding:24px 10px 125px;
  }
  .page-type-article #pagebody.amatea-home h1,
  .amatea-home-hero h1{font-size:clamp(40px,12vw,56px)!important;}
  
  
  
  
  
}


/* AMATEA old-top-style native accordions: top-level entry cards open inline.
   Scoped to this page; do not change the shared nav or global heading rules. */
.amatea-home-accordions{display:grid;grid-template-columns:minmax(0,1fr);gap:13px;margin:24px 0 30px;min-width:0}
.amatea-home-accordion{min-width:0;border:1px solid rgba(131,217,255,.72);border-radius:12px;overflow:hidden;background:linear-gradient(115deg,rgba(13,61,100,.9),rgba(3,19,39,.97));box-shadow:inset 0 0 13px rgba(56,173,240,.15),0 0 14px rgba(17,121,209,.13)}
.amatea-home-accordion[open]{border-color:rgba(171,239,255,.92);box-shadow:0 0 22px rgba(48,164,246,.22),inset 0 0 18px rgba(45,163,240,.16)}
.amatea-home-accordion > summary.amatea-home-accordion-toggle{display:flex!important;align-items:center!important;gap:13px;min-height:85px;padding:14px 23px!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#f5fcff!important;cursor:pointer;list-style:none!important;user-select:none;text-decoration:none!important}
.amatea-home-accordion > summary.amatea-home-accordion-toggle::-webkit-details-marker{display:none}
.amatea-home-accordion > summary.amatea-home-accordion-toggle::marker{content:""}
.amatea-home-accordion > summary.amatea-home-accordion-toggle:hover,.amatea-home-accordion > summary.amatea-home-accordion-toggle:focus-visible{background:rgba(48,155,227,.18)!important;outline-offset:-3px}
.amatea-home-accordion-label{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px;text-align:left}
.amatea-home-accordion-label strong{font-size:clamp(16px,1.7vw,21px);letter-spacing:.05em;font-weight:600;color:#f1fbff}
.amatea-home-accordion-label small{font-size:12px;color:#b3dcec;line-height:1.6}
.amatea-home-accordion-chevron{width:12px;height:12px;border-right:2px solid #a5eaff;border-bottom:2px solid #a5eaff;transform:rotate(45deg);transition:transform .17s ease;flex:none;margin-left:auto}
.amatea-home-accordion[open] .amatea-home-accordion-chevron{transform:rotate(225deg)}
.amatea-home-accordion-panel{padding:0 14px 14px;border-top:1px solid rgba(123,206,252,.23)}
.amatea-home-accordion-panel .amatea-home-section{margin:13px 0 0}

@media(max-width:620px){
  .amatea-home-accordions{gap:10px}
  .amatea-home-accordion > summary.amatea-home-accordion-toggle{min-height:75px;padding:12px 12px!important;gap:9px}
  .amatea-home-accordion-label strong{font-size:16px}
  .amatea-home-accordion-label small{font-size:11px}
  .amatea-home-accordion-panel{padding:0 7px 8px}
}
@media(prefers-reduced-motion:reduce){.amatea-home-accordion-chevron{transition:none}}

/* AMATEA desktop sidebar recovery (2026-11-20): core.css's compact-landscape
   rule hides .info-nav even on small desktop/laptop windows (e.g. 1024x768).
   Restore it for fine-pointer desktop viewports only; preserve touch/mobile
   drawer behavior. Hero spans both columns, content/nav start in row 2. */
@media (min-width:761px) and (hover:hover) and (pointer:fine) {
  .page-layout:has(.amatea-home) {
    display:grid !important;
    grid-template-columns:minmax(0,1fr) minmax(250px,280px) !important;
    gap:22px !important;
    align-items:start;
  }
  .page-layout:has(.amatea-home) > .article-main,
  .page-layout:has(.amatea-home) .amatea-home { display:contents !important; }
  .page-layout:has(.amatea-home) .amatea-home-hero {
    grid-column:1 / -1;
    grid-row:1;
  }
  .page-layout:has(.amatea-home) .amatea-home-content {
    grid-column:1;
    grid-row:2;
    min-width:0;
  }
  .page-layout:has(.amatea-home) > .info-nav {
    display:block !important;
    grid-column:2;
    grid-row:2;
    min-width:0;
    position:sticky !important;
    top:clamp(12px,7vw,84px);
    align-self:start;
    max-height:calc(100vh - 100px);
    overflow-y:auto;
    overscroll-behavior:contain;
  }
  .info-nav-button { display:none !important; }
}

/* AMATEA hero sizing aligned with landscape category hubs (AURA/SPIRIT/TAO):
   desktop image frame 390px, compact/mobile image frame 250px.
   Keep all surrounding connected devices in view on narrow screens. */
@media (min-width:621px){
  .page-layout:has(.amatea-home) .amatea-home-hero{
    height:390px!important; min-height:390px!important; max-height:390px;
  }
  .page-layout:has(.amatea-home) .amatea-home-hero > img.amatea-home-hero-image{
    inset:0; width:100%; height:100%!important; object-fit:cover; object-position:center 52%;
  }
  .page-layout:has(.amatea-home) .amatea-home-hero-copy{
    padding:18px 18px 60px;
  }
  
}
@media (max-width:620px){
  .page-layout:has(.amatea-home) .amatea-home-hero{
    height:445px!important; min-height:445px!important; max-height:none;
  }
  .page-layout:has(.amatea-home) .amatea-home-hero > img.amatea-home-hero-image{
    position:absolute; inset:125px 0 auto; width:100%; height:250px!important;
    max-height:250px!important; object-fit:contain; object-position:center;
  }
  .page-layout:has(.amatea-home) .amatea-home-hero-copy{
    min-height:0; padding:19px 10px 0;
  }
  
  
}


/* AMATEA category-hub alignment (draft): other hubs use a hero image on top,
   followed by a separate title/description band. Retain AMATEA's blue theme,
   current accordions, and shared PHP info navigation. */
.page-layout:has(.amatea-home) .amatea-home-hero{
  display:block!important;position:relative!important;isolation:isolate;
  height:auto!important;min-height:0!important;max-height:none!important;
  margin:0 0 26px!important;overflow:hidden;
  border-radius:8px;
}
.page-layout:has(.amatea-home) .amatea-home-hero-figure{
  position:relative!important;inset:auto!important;
  display:block!important;overflow:hidden;margin:0!important;
  width:100%;height:390px;background:#03142c;
}
.page-layout:has(.amatea-home) .amatea-home-hero-figure > img.amatea-home-hero-image{
  position:static!important;display:block!important;inset:auto!important;
  width:100%!important;height:100%!important;max-height:none!important;
  max-width:none!important;object-fit:contain!important;object-position:center!important;
  filter:none;
}
.page-layout:has(.amatea-home) .amatea-home-hero-copy{
  position:relative!important;display:block!important;z-index:1!important;
  min-height:0!important;width:100%!important;margin:0!important;
  padding:19px 26px 22px!important;
  background:linear-gradient(115deg,#051326,#0b2741)!important;
  border-top:1px solid rgba(154,221,255,.35);
  text-align:center;
}



/* At desktop-like CSS widths a touch device may still be in desktop-site mode.
   Do not use hover:hover / pointer:fine as requirements for the shared sidebar. */
@media(min-width:761px){
  .page-layout:has(.amatea-home){
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(250px,280px)!important;
    gap:22px!important;align-items:start!important;
  }
  .page-layout:has(.amatea-home) > .article-main,
  .page-layout:has(.amatea-home) .amatea-home{display:contents!important}
  .page-layout:has(.amatea-home) .amatea-home-hero{grid-column:1/-1;grid-row:1}
  .page-layout:has(.amatea-home) .amatea-home-content{
    grid-column:1;grid-row:2;min-width:0;
  }
  .page-layout:has(.amatea-home) > .info-nav{
    display:block!important;visibility:visible!important;
    grid-column:2;grid-row:2;min-width:0;
    position:sticky!important;top:clamp(12px,7vw,84px);
    align-self:start;max-height:calc(100vh - 100px);
    overflow-y:auto;overscroll-behavior:contain;
  }
  .page-layout:has(.amatea-home) .info-nav-button{display:none!important}
}
@media(max-width:760px){
  .page-layout:has(.amatea-home){display:block!important}
  .page-layout:has(.amatea-home) > .article-main,
  .page-layout:has(.amatea-home) .amatea-home{display:block!important}
  .page-layout:has(.amatea-home) > .info-nav{display:none!important}
}
@media(max-width:620px){
  .page-layout:has(.amatea-home) .amatea-home-hero-figure{height:250px!important}
  .page-layout:has(.amatea-home) .amatea-home-hero-copy{
    padding:18px 12px 20px!important;
  }
  
  
}

/* AMATEA 2026-11-20: keep only eyebrow + h1 under hero image.
   Override old mobile min-height and hero-copy padding rules. */
.page-layout:has(.amatea-home) .amatea-home-hero-copy{
  min-height:0!important; padding:14px 20px 18px!important;
  display:block!important;
}
.page-layout:has(.amatea-home) .amatea-home-eyebrow{margin:0 0 4px!important}
.page-layout:has(.amatea-home) .amatea-home-hero{margin-bottom:16px!important}
@media(max-width:620px){
 .page-layout:has(.amatea-home) .amatea-home-hero-copy{padding:12px 10px 15px!important}
}

/* AMATEA top: remove the common left-bar heading treatment throughout this page.
   Keep heading texts needed for LEVEL0/LEVEL1, without decorative stripes. */
.page-type-article #pagebody.amatea-home .amatea-home-content h2,
.page-type-article #pagebody.amatea-home .amatea-home-content h3 {
  border-left:0!important; border-inline-start:0!important;
  background-image:none!important; box-shadow:none!important;
  padding-left:0!important; padding-inline-start:0!important;
}
.page-type-article #pagebody.amatea-home .amatea-home-content h2::before,
.page-type-article #pagebody.amatea-home .amatea-home-content h2::after,
.page-type-article #pagebody.amatea-home .amatea-home-content h3::before,
.page-type-article #pagebody.amatea-home .amatea-home-content h3::after{
  content:none!important; display:none!important; border:0!important;
}

/* Match ordinary body copy on the AMATEA hub to the shared site font.
   Headings and accordion labels intentionally retain their design fonts. */
body #pagebody.amatea-home .amatea-home-intro > p:not(.amatea-home-kicker),
body #pagebody.amatea-home .amatea-home-accordion-panel p,
body #pagebody.amatea-home .amatea-home-accordion-panel li {
  font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
}


/* 2026-11-21: Match the site's other category hubs.  The hero, title and
   accordion belong to article-main (left column), while the existing shared
   info-nav occupies the right column from the first row. Do not flatten the
   article and inner wrapper with display:contents. */
@media (min-width:761px){
  body .page-layout:has(.amatea-home){
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 300px!important;
    gap:18px!important;
    align-items:start!important;
  }
  body .page-layout:has(.amatea-home) > .article-main{
    display:block!important;grid-column:1!important;grid-row:1!important;min-width:0;
  }
  body .page-layout:has(.amatea-home) .amatea-home{
    display:block!important;min-width:0;
  }
  body .page-layout:has(.amatea-home) .amatea-home-hero,
  body .page-layout:has(.amatea-home) .amatea-home-content{
    display:block!important;grid-column:auto!important;grid-row:auto!important;
    width:100%!important;min-width:0;
  }
  body .page-layout:has(.amatea-home) > .info-nav{
    grid-column:2!important;grid-row:1!important;
    display:block!important;min-width:0;
    position:sticky!important;top:92px!important;
    max-height:calc(100dvh - 108px);overflow-y:auto;
  }
}
@media (min-width:1101px){
  body .page-layout:has(.amatea-home){grid-template-columns:minmax(0,1fr) 340px!important;gap:20px!important}
}
/* Respect the shared site's compact-landscape drawer mode. */
@media (orientation:landscape) and (max-height:800px) and (max-width:1100px){
  body .page-layout:has(.amatea-home){grid-template-columns:minmax(0,1fr)!important}
  body .page-layout:has(.amatea-home) > .info-nav{display:none!important}
  body .page-layout:has(.amatea-home) .info-nav-button{display:block!important}
}
@media (max-width:760px){
  body .page-layout:has(.amatea-home){display:block!important;grid-template-columns:minmax(0,1fr)!important}
  body .page-layout:has(.amatea-home) > .article-main,
  body .page-layout:has(.amatea-home) .amatea-home{display:block!important}
  body .page-layout:has(.amatea-home) > .info-nav{display:none!important}
}
