/* Only the requested hero arabesque and the Shingon chapter navigation. */
body:is(.page-shingon,.page-kobo-daishi,.page-kobo-timeline,.page-koyasan) .sub-hero::after{background:url('assets/floral-line-fill.webp') -220px -250px/700px 700px no-repeat;opacity:.07}
.page-shingon .family-jumps{display:flex;flex-wrap:wrap;gap:18px 32px;margin:0;padding:25px 7%;background:transparent;border-bottom:1px solid var(--sub-line)}
.page-shingon .family-jumps a{font-size:12px;line-height:1.8;letter-spacing:.08em}
@media(max-width:700px){
 body:is(.page-shingon,.page-kobo-daishi,.page-kobo-timeline,.page-koyasan) .sub-hero::after{background-size:480px;background-position:calc(100% + 150px) -190px;opacity:.07}
 .page-shingon .family-jumps{padding:20px 7%;gap:12px 22px}
 .page-shingon .family-jumps a{font-size:11px}
}
/* The chapter menu supplies this boundary; avoid a second line immediately below it. */
.page-shingon .family-jumps + .reading-section::before{content:none}

/* Approved chronology chapter-menu styling, scoped to the other three pages. */
:is(.page-shingon .family-jumps,.page-kobo-daishi .story-jumps,.page-koyasan .koyasan-jumps){display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:0 max(7%,calc((100% - 1120px)/2));margin:0;justify-content:normal;background:transparent}
.page-shingon .family-jumps{grid-template-columns:repeat(5,minmax(0,1fr))}
:is(.page-shingon .family-jumps,.page-kobo-daishi .story-jumps,.page-koyasan .koyasan-jumps) a{min-width:0;line-height:1.8;position:relative;justify-content:center;text-align:center;padding-left:24px!important;padding-right:24px!important}
:is(.page-shingon .family-jumps,.page-kobo-daishi .story-jumps,.page-koyasan .koyasan-jumps) a::before{position:absolute;left:12px}
:is(.page-shingon .family-jumps,.page-kobo-daishi .story-jumps,.page-koyasan .koyasan-jumps) a>span{position:absolute;right:12px;margin:0;color:#b39a62}
:is(.page-shingon .family-jumps,.page-kobo-daishi .story-jumps,.page-koyasan .koyasan-jumps) a:hover{background:#baa77226}
@media(max-width:700px){:is(.page-shingon .family-jumps,.page-kobo-daishi .story-jumps,.page-koyasan .koyasan-jumps){grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Shingon: the four annotated dividers and body-heading accents only. */
.page-shingon .shingon-karma-line{display:flex;align-items:center;justify-content:center;gap:27px;width:100%;height:55px;background:transparent;pointer-events:none}
.page-shingon .shingon-karma-line::before,.page-shingon .shingon-karma-line::after{content:'';height:1px;flex:1;background:#ab8d4d55}
.page-shingon .shingon-karma-line img{display:block;width:47px;height:47px;object-fit:contain;flex:0 0 47px;opacity:.7;mix-blend-mode:normal;filter:brightness(0) saturate(100%) invert(62%) sepia(22%) saturate(626%) hue-rotate(3deg) brightness(94%) contrast(86%)}
.page-shingon :is(#shingon-sanmitsu,#shingon-mandala)>.shingon-karma-line:first-child{position:absolute;top:0;left:7%;width:86%;transform:translateY(-50%)}
.page-shingon :is(#shingon-sanmitsu,#shingon-mandala)::before{content:none}
.page-shingon .doctrine-inset{border-top:0;padding-top:0}
.page-shingon .doctrine-inset>.shingon-karma-line{margin-bottom:24px}
.page-shingon #shingon-mandala>.shingon-karma-line+.mandala-pair{margin-top:18px}
.page-shingon .mandala-pair article{border-top:0;padding-top:0}
.page-shingon #shingon-mandala>.reading-wide+.shingon-karma-line{margin-top:30px}
.page-shingon .family-chapter h2,.page-shingon .doctrine-inset h3,.page-shingon .mandala-pair h3{border-left:2px solid #ab8d4d;padding-left:.55em}
.page-shingon .shingon-meditation h2{border-left-color:#c7b582}
.page-shingon .mandala-pair article>h3{display:block;width:fit-content;margin-left:auto;margin-right:auto}
@media(max-width:700px){
 .page-shingon .shingon-karma-line{gap:18px;height:40px}
 .page-shingon .shingon-karma-line img{width:35px;height:35px;flex-basis:35px}
 .page-shingon .doctrine-inset>.shingon-karma-line{margin-bottom:20px}
}

@media(max-width:700px){.page-shingon .foundation-layout h2{font-size:clamp(17px,4.6vw,22px);letter-spacing:.02em}}

/* Daishi: replace the four chapter-range labels with heading-height vertical rules. */
.page-kobo-daishi .story-chapter>header h2{border-left:2px solid #ab8d4d;padding-left:.55em}
@media(max-width:700px){.page-kobo-daishi .story-chapter>header h2{margin-top:0}}

/* Daishi tablet only: keep four menu labels whole and the hero in two balanced columns. */
@media(min-width:701px) and (max-width:1100px){
 .page-kobo-daishi .teaching-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;padding:0 7%}
 .page-kobo-daishi .teaching-nav a{margin:0;padding:20px 6px;font-size:clamp(11px,1.6vw,14px);letter-spacing:.02em;white-space:nowrap;text-align:center}
 .page-kobo-daishi .teaching-nav .nav-index{margin-right:7px}
 .page-kobo-daishi .teaching-nav a[aria-current]::after{left:6px;right:6px}
 .page-kobo-daishi .sub-hero.has-art{grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:6%;padding:56px 7% 64px;min-height:440px}
 .page-kobo-daishi .sub-hero h1{font-size:clamp(32px,4.7vw,48px);letter-spacing:.08em;line-height:1.6;white-space:nowrap}
 .page-kobo-daishi .sub-hero h1 span{padding-left:.7em}
 .page-kobo-daishi .sub-hero figure{margin:0;padding:12px 0 12px 12px;min-width:0}
 .page-kobo-daishi .sub-lead{font-size:12px;letter-spacing:.04em;line-height:2.2}
}

/* Koyasan body headings only: match the approved gold vertical accent. */
.page-koyasan .koyasan-chapter h2,.page-koyasan .koyasan-copy h3{border-left:2px solid #ab8d4d;padding-left:.55em}

/* Koyasan tablet: give two-line chapter headings enough width for the vertical accent. */
@media(min-width:701px) and (max-width:1100px){
 .page-koyasan .koyasan-chapter{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6%}
 .page-koyasan .koyasan-chapter h2{font-size:clamp(25px,2.8vw,30px);letter-spacing:.05em;line-height:1.8}
 .page-koyasan .teaching-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;padding:0 7%}
 .page-koyasan .teaching-nav a{margin:0;padding:20px 6px;font-size:clamp(11px,1.6vw,14px);letter-spacing:.02em;white-space:nowrap;text-align:center}
 .page-koyasan .teaching-nav .nav-index{margin-right:7px}
 .page-koyasan .teaching-nav a[aria-current]::after{left:6px;right:6px}
}
