/* ANIMA MYSTICA / TAO article reading prototype.
   Scope is intentionally limited to .tao-reading so the shared right information navigation
   and other categories retain their current design. */

.category-mysticism.page-type-article #pagebody.tao-reading{
  --tao-paper:#f3f0e5;
  --tao-paper-deep:#e8e2d2;
  --tao-ink:#292b27;
  --tao-ink-soft:#4c5048;
  --tao-old-gold:#9a7d45;
  --tao-old-gold-deep:#755d31;
  position:relative;
  isolation:isolate;
  overflow:hidden;
  padding:28px 20px 38px;
  color:var(--tao-ink);
  background:
    linear-gradient(180deg,rgba(255,255,255,.86),rgba(244,240,227,.95)),
    radial-gradient(ellipse at 84% 8%,rgba(91,99,82,.08),transparent 38%),
    linear-gradient(180deg,var(--tao-paper),var(--tao-paper-deep));
  box-shadow:inset 0 0 0 1px rgba(117,93,49,.10);
}

.category-mysticism.page-type-article #pagebody.tao-reading .tao-section{
  position:relative;
  z-index:1;
  overflow:hidden;
  isolation:isolate;
  display:flow-root;
  margin:0 0 24px;
  padding:24px 28px 28px;
  background:linear-gradient(180deg,rgba(255,255,255,.94),rgba(247,244,234,.96));
  border:1px solid rgba(117,93,49,.14);
  border-radius:10px;
  box-shadow:0 8px 22px rgba(62,55,39,.08);
}
/* Each chapter card owns its cloud ornaments; overflow clips them inside the card. */
.category-mysticism.page-type-article #pagebody.tao-reading .tao-section::before,
.category-mysticism.page-type-article #pagebody.tao-reading .tao-section::after{
  content:"";
  position:absolute;
  z-index:-1;
  width:310px;
  height:185px;
  pointer-events:none;
  opacity:.30;
  background:url("../img/mysticism/fields/tao-cloud-b.webp") center/contain no-repeat;
  filter:grayscale(.18) sepia(.08) contrast(1.04);
  mix-blend-mode:multiply;
}
.category-mysticism.page-type-article #pagebody.tao-reading .tao-section::before{
  top:-18px;
  right:-42px;
  transform:rotate(-2deg);
}
.category-mysticism.page-type-article #pagebody.tao-reading .tao-section::after{
  left:-46px;
  bottom:-22px;
  transform:rotate(2deg) scaleX(-1);
  opacity:.25;
}
.category-mysticism.page-type-article #pagebody.tao-reading .tao-section > *{
  position:relative;
  z-index:1;
}
.category-mysticism.page-type-article #pagebody.tao-reading .tao-intro-section{padding-top:22px;}
.category-mysticism.page-type-article #pagebody.tao-reading .tao-section > h2:first-child{margin-top:0!important;}
.category-mysticism.page-type-article #pagebody.tao-reading > h1{
  position:relative;
  margin:0 0 28px!important;
  padding:4px 0 15px!important;
  color:#222721!important;
  border-bottom:1px solid rgba(117,93,49,.34);
  font-family:"Noto Serif JP","Yu Mincho",serif;
  letter-spacing:.04em;
}
.category-mysticism.page-type-article #pagebody.tao-reading > h1::after{
  content:"";position:absolute;left:0;bottom:-1px;width:84px;height:2px;background:var(--tao-old-gold);
}
.category-mysticism.page-type-article #pagebody.tao-reading .tao-section > h2{
  margin:38px 0 18px!important;
  padding:10px 14px 11px!important;
  color:#302d25!important;
  border:0!important;
  border-left:3px solid var(--tao-old-gold)!important;
  border-bottom:1px solid rgba(117,93,49,.26)!important;
  border-radius:0!important;
  background:linear-gradient(90deg,rgba(154,125,69,.11),rgba(154,125,69,.025) 58%,transparent)!important;
  box-shadow:none!important;
  text-shadow:none!important;
  font-family:"Noto Serif JP","Yu Mincho",serif;
}
.category-mysticism.page-type-article #pagebody.tao-reading .tao-section > p,
.category-mysticism.page-type-article #pagebody.tao-reading .font12{
  color:var(--tao-ink-soft);
  line-height:2;
}

.category-mysticism.page-type-article #pagebody.tao-reading .tao-image-caption{
  margin:.5rem auto 0;
  max-width:38rem;
  color:#756d61;
  font-size:.88rem;
  line-height:1.7;
  text-align:center;
}
.category-mysticism.page-type-article #pagebody.tao-reading a{color:#5d543b;text-underline-offset:3px;}
.category-mysticism.page-type-article #pagebody.tao-reading img{max-width:100%;height:auto;}
@media(max-width:760px){
  .category-mysticism.page-type-article #pagebody.tao-reading{padding:22px 8px 30px;}
  .category-mysticism.page-type-article #pagebody.tao-reading .tao-section{padding:20px 16px 23px;margin-bottom:18px;border-radius:8px;}
  .category-mysticism.page-type-article #pagebody.tao-reading .tao-section::before,
  .category-mysticism.page-type-article #pagebody.tao-reading .tao-section::after{width:225px;height:135px;opacity:.27;}
  .category-mysticism.page-type-article #pagebody.tao-reading .tao-section::before{top:-12px;right:-58px;}
  .category-mysticism.page-type-article #pagebody.tao-reading .tao-section::after{left:-62px;bottom:-16px;opacity:.22;}
  .category-mysticism.page-type-article #pagebody.tao-reading .tao-section > h2{margin-top:32px!important;padding:9px 11px 10px!important;}
}

/* Tao-only table of contents: stronger text contrast on a pure white background. */
.category-mysticism.page-type-article #pagebody.tao-reading .article-toc{
  background:#fff;
}

.category-mysticism.page-type-article #pagebody.tao-reading .article-toc-label{
  color:#65543f;
}

.category-mysticism.page-type-article #pagebody.tao-reading .article-toc-title{
  color:#2f2922;
}

.category-mysticism.page-type-article #pagebody.tao-reading .article-toc li{
  color:#51483d;
}

.category-mysticism.page-type-article #pagebody.tao-reading .article-toc a{
  color:#3f372f;
}

.category-mysticism.page-type-article #pagebody.tao-reading .article-toc a:hover{
  color:#181512;
}



/* ==========================================================================
   TAO HUB / INDEX
   ========================================================================== */
.tao-reading--index{background:#f7f5ef}

.tao-hub-hero{
  position:relative;
  overflow:hidden;
  min-height:390px;
  margin:0 0 38px;
  border:1px solid rgba(94,82,58,.24);
  background:#20241f;
  isolation:isolate;
}
.tao-hub-hero-figure{position:absolute;inset:0;margin:0}
.tao-hub-hero-figure::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(90deg,rgba(17,22,18,.83) 0%,rgba(22,27,22,.64) 42%,rgba(22,27,22,.18) 76%,rgba(22,27,22,.10) 100%);
}
.tao-hub-hero-figure img{width:100%;height:100%;object-fit:cover;object-position:76% 52%;filter:brightness(.88) saturate(.94)}
.tao-hub-hero-copy{
  position:relative;z-index:1;box-sizing:border-box;
  width:min(620px,66%);padding:74px 54px 64px;color:#fff;
  text-shadow:0 2px 16px rgba(0,0,0,.38);
}
.tao-hub-kicker,.tao-hub-section-kicker{
  margin:0 0 9px;font-size:11px;letter-spacing:.18em;font-weight:700 !important;
}
.tao-hub-kicker{color:#e4dcc5}
.tao-hub-hero h1{margin:0 0 20px;color:#fff;font:400 44px/1.2 Georgia,"Yu Mincho",serif;letter-spacing:.08em}
.tao-hub-hero-copy>p:last-child{margin:0;max-width:34em;font-size:15px;line-height:2}

.tao-hub-introduction,.tao-hub-contents{max-width:920px;margin-left:auto;margin-right:auto}
.tao-hub-introduction{
  box-sizing:border-box;margin-bottom:44px;padding:30px 34px 28px;
  border:1px solid rgba(105,94,72,.18);background:#fff;
}
.tao-hub-section-kicker{color:#75664e}
.tao-hub-introduction h2,.tao-hub-section-heading h2{
  margin:0 0 18px;color:#302b24;font:400 27px/1.45 Georgia,"Yu Mincho",serif;
}
.tao-hub-introduction p:not(.tao-hub-section-kicker){line-height:2}

.tao-hub-section-heading{margin:0 0 20px;padding:0 18px}
.tao-hub-section-heading>p{margin:0 0 4px;color:#78694f;font-size:10px;font-weight:700 !important;letter-spacing:.18em}

.tao-hub-chapter{margin:0 0 28px;border:1px solid rgba(100,88,65,.19);background:#fff}
.tao-hub-chapter-heading{
  display:grid;grid-template-columns:118px 1fr;gap:20px;align-items:center;
  padding:22px 26px;border-bottom:1px solid rgba(100,88,65,.15);
  background:linear-gradient(135deg,#f4f1e8,#fff);
}
.tao-hub-chapter-heading>span{color:#78694f;font-size:10px;font-weight:700 !important;letter-spacing:.14em}
.tao-hub-chapter-heading h3{margin:0 0 4px;color:#332e27;font:400 22px/1.4 Georgia,"Yu Mincho",serif}
.tao-hub-chapter-heading p{margin:0;color:#675f54;font-size:13px;line-height:1.7}
.tao-hub-index a{
  display:grid;grid-template-columns:minmax(190px,.75fr) 1.4fr 28px;gap:20px;align-items:center;
  padding:17px 24px;border-bottom:1px solid rgba(100,88,65,.11);
  color:#3d362e;text-decoration:none;transition:background .18s ease;
}
.tao-hub-index a:last-child{border-bottom:0}
.tao-hub-index a:hover{background:#faf8f2}
.tao-hub-index strong{font-size:14px;font-weight:600}
.tao-hub-index span{color:#655e55;font-size:12.5px;line-height:1.65}
.tao-hub-index b{color:#887656;font-size:18px;font-weight:400;text-align:right}

@media (max-width:700px){
  .tao-hub-hero{min-height:360px;margin-bottom:28px}
  .tao-hub-hero-figure::after{background:linear-gradient(90deg,rgba(17,22,18,.80),rgba(20,25,21,.45))}
  .tao-hub-hero-figure img{object-position:70% 52%}
  .tao-hub-hero-copy{width:82%;padding:58px 25px 48px}
  .tao-hub-hero h1{font-size:34px}
  .tao-hub-hero-copy>p:last-child{font-size:13px;line-height:1.9}
  .tao-hub-introduction{padding:24px 20px}
  .tao-hub-chapter-heading{grid-template-columns:1fr;gap:5px;padding:18px 19px}
  .tao-hub-index a{grid-template-columns:1fr 22px;gap:5px 12px;padding:15px 18px}
  .tao-hub-index strong{grid-column:1}
  .tao-hub-index span{grid-column:1;color:#6a6258}
  .tao-hub-index b{grid-column:2;grid-row:1 / span 2;align-self:center}
}


/* Tao hub — proposal 3 inspired horizontal list groups */
.tao-hub-list-group{
  overflow:hidden;
  border-radius:6px;
  box-shadow:0 2px 10px rgba(54,48,37,.055);
}
.tao-hub-list-group .tao-hub-chapter-heading{
  position:relative;
  grid-template-columns:54px 118px 1fr;
  gap:16px;
  min-height:74px;
  padding:14px 24px;
  background:
    linear-gradient(90deg,rgba(255,255,255,.98),rgba(249,247,239,.95)),
    url("../img/mysticism/fields/tao-cloud-b.webp") right 35% / 250px auto no-repeat;
}
.tao-hub-list-group .tao-hub-chapter-heading i{
  display:grid;place-items:center;width:44px;height:44px;
  border:1px solid rgba(118,101,69,.34);border-radius:50%;
  background:#fff;color:#67593e;
  font:400 19px/1 Georgia,"Yu Mincho",serif;font-style:normal;
}
.tao-hub-list-group .tao-hub-chapter-heading>span{align-self:center}
.tao-hub-list-group .tao-hub-chapter-heading h3{font-size:21px}
.tao-hub-list-group .tao-hub-index{
  padding:0 18px 8px;background:#fff;
}
.tao-hub-list-group .tao-hub-index a{
  grid-template-columns:minmax(210px,.8fr) 1.4fr 28px;
  margin:0;padding:13px 10px;
}
.tao-hub-list-group .tao-hub-index a:hover{
  background:linear-gradient(90deg,#fbfaf6,#f5f1e7);
}
@media (max-width:700px){
  .tao-hub-list-group .tao-hub-chapter-heading{
    grid-template-columns:44px 1fr;gap:4px 12px;padding:14px 16px;
    background:linear-gradient(90deg,rgba(255,255,255,.98),rgba(249,247,239,.94));
  }
  .tao-hub-list-group .tao-hub-chapter-heading i{grid-row:1 / span 2;width:38px;height:38px;font-size:16px}
  .tao-hub-list-group .tao-hub-chapter-heading>span{grid-column:2;font-size:9px}
  .tao-hub-list-group .tao-hub-chapter-heading>div{grid-column:2}
  .tao-hub-list-group .tao-hub-index{padding:0 10px 6px}
  .tao-hub-list-group .tao-hub-index a{grid-template-columns:1fr 20px;padding:13px 8px}
}


/* Tao hub hero: Jung-style image first, title/copy below the image. */
.tao-reading--index .tao-hub-hero{
  display:block;
  min-height:0;
  overflow:visible;
  background:#fff;
}
.tao-reading--index .tao-hub-hero-figure{
  position:relative;
  inset:auto;
  height:420px;
}
.tao-reading--index .tao-hub-hero-figure::after{display:none}
.tao-reading--index .tao-hub-hero-figure img{
  display:block;
  width:100%;
  height:100%;
  max-height:none;
  object-fit:cover;
  object-position:center;
  filter:none;
}
.tao-reading--index .tao-hub-hero-copy{
  position:relative;
  z-index:auto;
  box-sizing:border-box;
  width:100%;
  padding:22px 30px 25px;
  background:#fff;
  color:#332e27;
  text-shadow:none;
  border-top:1px solid rgba(100,88,65,.14);
}
.tao-reading--index .tao-hub-kicker{color:#78694f}
.tao-reading--index .tao-hub-hero h1{
  margin:0 0 10px;
  color:#302b24;
  font-size:34px;
}
.tao-reading--index .tao-hub-hero-copy>p:last-child{
  max-width:none;
  color:#655e55;
  font-size:14px;
  line-height:1.85;
}
@media (max-width:700px){
  .tao-reading--index .tao-hub-hero{min-height:0}
  .tao-reading--index .tao-hub-hero-figure{height:260px}
  .tao-reading--index .tao-hub-hero-copy{width:100%;padding:18px 19px 20px}
  .tao-reading--index .tao-hub-hero h1{font-size:29px}
  .tao-reading--index .tao-hub-hero-copy>p:last-child{font-size:13px}
}


/* Tao hub list surface.
   The Neijing Tu is a real DOM image below; obsolete pseudo/background-image variants were removed. */
.tao-reading--index .tao-hub-contents{
  position:relative;
  isolation:isolate;
  overflow:hidden;
}
.tao-reading--index .tao-hub-hero{
  border:1px solid rgba(92,80,58,.34);
  box-shadow:none;
}
.tao-reading--index .tao-hub-list-group{
  position:relative;
  z-index:1;
  isolation:isolate;
  background:rgba(255,255,255,.72);
}
.tao-reading--index .tao-hub-list-group .tao-hub-index{
  position:relative;
  z-index:auto;
  background:rgba(255,255,255,.36);
  background-image:none;
}
.tao-reading--index .tao-hub-list-group .tao-hub-index a{
  background:rgba(255,255,255,.12);
}
.tao-reading--index .tao-hub-list-group .tao-hub-index a:hover{
  background:rgba(248,245,237,.78);
}
@media (max-width:700px){
  .tao-reading--index .tao-hub-list-group{background:rgba(255,255,255,.78)}
  .tao-reading--index .tao-hub-list-group .tao-hub-index{background:rgba(255,255,255,.44);background-image:none}
}


/* Neijing Tu: real DOM image. */
.tao-reading--index .tao-hub-neijing{
  display:block !important;
  position:absolute;
  z-index:3;
  top:82px;
  right:42px;
  width:230px;
  height:auto;
  max-width:none;
  opacity:.18;
  mix-blend-mode:multiply;
  pointer-events:none;
  visibility:visible !important;
}
.tao-reading--index .tao-hub-section-heading,
.tao-reading--index .tao-hub-list-group .tao-hub-chapter-heading,
.tao-reading--index .tao-hub-list-group .tao-hub-index a{
  position:relative;
  z-index:4;
}
@media (max-width:700px){
  .tao-reading--index .tao-hub-neijing{
    top:74px;
    right:6px;
    width:145px;
    height:auto;
    opacity:.14;
  }
}


/* Tao hub refinements: training-record Neijing start, rounded cards, stronger intro copy. */
.tao-reading--index .tao-hub-introduction p:not(.tao-hub-section-kicker){
  color:#403a33;
}
.tao-reading--index .tao-hub-list-group{
  border-radius:12px;
}
.tao-reading--index .tao-hub-index--training{
  position:relative;
}
.tao-reading--index .tao-hub-index--training .tao-hub-neijing{
  top:0;
  right:42px;
}
@media (max-width:700px){
  .tao-reading--index .tao-hub-index--training .tao-hub-neijing{
    top:0;
    right:6px;
  }
}

/* Tao hub chapter mark: cropped Bagua/Taiji from legacy hakke01.gif.
   Display softly so it remains a secondary visual cue. */
.tao-reading--index .tao-hub-chapter-heading .tao-hub-hakke{
  display:flex;
  align-items:center;
  justify-content:center;
  width:46px;
  height:46px;
  border:0;
  border-radius:0;
  background:transparent;
  overflow:visible;
}
.tao-reading--index .tao-hub-chapter-heading .tao-hub-hakke img{
  display:block;
  width:44px;
  height:44px;
  object-fit:contain;
  opacity:.24;
  filter:grayscale(1);
}
@media (max-width:700px){
  .tao-reading--index .tao-hub-chapter-heading .tao-hub-hakke{
    width:40px;
    height:40px;
  }
  .tao-reading--index .tao-hub-chapter-heading .tao-hub-hakke img{
    width:38px;
    height:38px;
    opacity:.22;
  }
}

/* Center the Neijing Tu vertically within the TRAINING RECORD link list. */
.tao-reading--index .tao-hub-index--training .tao-hub-neijing{
  top:50%;
  transform:translateY(-50%);
  right:42px;
}
@media (max-width:700px){
  .tao-reading--index .tao-hub-index--training .tao-hub-neijing{
    top:50%;
    transform:translateY(-50%);
    right:6px;
  }
}


/* Legacy Tao article image wrapping.
   Preserve original .imgr intent on renewed article pages; release on narrow screens. */
.category-mysticism.page-type-article #pagebody.tao-reading .imgr{
  float:right;
  width:auto;
  max-width:min(42%, 320px);
  margin:.2rem 0 1rem 1.4rem;
}
.category-mysticism.page-type-article #pagebody.tao-reading .imgr img{
  display:block;
  width:auto;
  max-width:100%;
  height:auto;
}
@media (max-width:700px){
  .category-mysticism.page-type-article #pagebody.tao-reading .imgr{
    float:none;
    width:auto;
    max-width:100%;
    margin:1rem auto;
    text-align:center !important;
  }
  .category-mysticism.page-type-article #pagebody.tao-reading .imgr img{
    margin-inline:auto;
  }
}

/* Tao bibliography / Amazon Associates */
.mysticism-tao-affiliate-notice{margin:1rem 0 1.5rem;padding:.85rem 1rem;border:1px solid #d9c8ad;background:#fff8ed;color:#4b3b2a;font-size:.92rem;line-height:1.7}
.mysticism-tao-book-list{display:grid;gap:1.15rem;margin:1.5rem 0}
.mysticism-tao-book{padding:1.2rem 1.3rem;border:1px solid #ddd4c8;background:#fff}
.category-mysticism.page-type-article #pagebody .mysticism-tao-book > h2{
  position:relative !important;
  display:block !important;
  width:auto !important;
  margin:0 .25rem 1rem !important;
  padding:.72rem 1.35rem .68rem !important;
  border:1px solid #bda77f !important;
  border-left:3px double #9d8258 !important;
  border-right:3px double #9d8258 !important;
  border-radius:2px !important;
  background:
    linear-gradient(90deg,rgba(113,82,43,.07),transparent 12%,transparent 88%,rgba(113,82,43,.07)),
    linear-gradient(180deg,#fbf4df 0%,#f3e6c5 52%,#f8efd7 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.75),
    inset 0 -1px 0 rgba(121,91,52,.12),
    0 2px 5px rgba(67,48,26,.10) !important;
  color:#49351f !important;
  font-family:"Yu Mincho","Hiragino Mincho ProN","Noto Serif JP",serif;
  font-size:1.18rem !important;
  font-weight:700 !important;
  line-height:1.55 !important;
  letter-spacing:.045em !important;
  text-align:center !important;
  text-shadow:0 1px 0 rgba(255,255,255,.65);
}
.category-mysticism.page-type-article #pagebody .mysticism-tao-book > h2::before,
.category-mysticism.page-type-article #pagebody .mysticism-tao-book > h2::after{
  content:"";
  position:absolute;
  top:5px;
  bottom:5px;
  width:5px;
  border-top:1px solid rgba(112,80,42,.38);
  border-bottom:1px solid rgba(112,80,42,.38);
  pointer-events:none;
}
.category-mysticism.page-type-article #pagebody .mysticism-tao-book > h2::before{left:5px;border-left:1px solid rgba(112,80,42,.38)}
.category-mysticism.page-type-article #pagebody .mysticism-tao-book > h2::after{right:5px;border-right:1px solid rgba(112,80,42,.38)}
.mysticism-tao-book-detail p:last-child{margin-bottom:.75rem}
.mysticism-tao-book-purchase{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin:18px 0 0;padding-top:13px;border-top:1px solid rgba(157,130,88,.22)}
.mysticism-tao-book-purchase a{display:inline;color:#76552d;font-size:14px;font-weight:700 !important;line-height:1.65;padding:0;border:0;background:none;text-decoration:underline;text-decoration-color:rgba(118,85,45,.42);text-underline-offset:4px}
.mysticism-tao-book-purchase a:hover,.mysticism-tao-book-purchase a:focus-visible{background:none;color:#4d3418;text-decoration-color:currentColor}
.mysticism-tao-book-ad-label{font-size:.78rem;color:#654f3d;font-weight:700}
.mysticism-tao-book-no-link{font-size:.9rem;color:#666}
@media (max-width:700px){
  .mysticism-tao-book{padding:1rem}
  .category-mysticism.page-type-article #pagebody .mysticism-tao-book > h2{
    margin:0 0 .85rem !important;
    padding:.65rem .95rem .62rem !important;
    font-size:1.08rem !important;
    line-height:1.5;
  }
}
