/* Lettura e approfondimenti Shotokan: colori e caratteri del sito. */
.shotokan-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.shotokan-intro h2, .shotokan-columns h2 { font-family: var(--f-display); font-size: clamp(1.65rem, 3vw, 2.4rem); line-height: 1.2; margin-bottom: 1.25rem; }
.shotokan-intro p { max-width: 55ch; margin-bottom: 1.8rem; }
.shotokan-intro img { width: 100%; height: auto; }
.shotokan-intro figcaption { margin-top: .75rem; font-size: .9rem; }
.shotokan-directory { background: var(--cream); }
.shotokan-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.shotokan-links { list-style: none; margin: 0; padding: 0; }
.shotokan-links li + li { border-top: 1px solid var(--line); }
.shotokan-links a { display: block; padding: .9rem 0; color: var(--blue-deep); text-underline-offset: .25em; }
.shotokan-links a:hover { text-decoration: underline; }
.shotokan-layout { display: grid; grid-template-columns: minmax(0, 72ch) minmax(220px, 1fr); gap: 5rem; align-items: start; }
.shotokan-copy { font-size: 1.08rem; line-height: 1.85; overflow-wrap: anywhere; }
.shotokan-copy > div > div > div { margin-bottom: 1rem; }
.shotokan-copy a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: .25em; }
.shotokan-copy strong { font-weight: 700; }
.shotokan-copy ul, .shotokan-copy ol { padding-left: 1.5rem; }
.shotokan-figure { margin: 2.5rem 0; }
.shotokan-figure img { width: auto; max-width: 100%; height: auto; max-height: 900px; object-fit: contain; margin-inline: auto; }
.shotokan-aside { padding: 1.5rem; background: var(--cream); }
.shotokan-aside h2 { font-family: var(--f-display); font-size: 1.3rem; line-height: 1.3; margin-bottom: .5rem; }
.shotokan-aside .shotokan-links a { font-size: .95rem; padding: .7rem 0; }
.shotokan-pagination { display: flex; justify-content: space-between; gap: 2rem; padding-bottom: 4rem; color: var(--blue-deep); }
.shotokan-pagination a { max-width: 45%; text-decoration: underline; text-underline-offset: .25em; }
.shotokan-pagination a:last-child { text-align: right; }
.shotokan-links a:focus-visible, .shotokan-back:focus-visible, .shotokan-pagination a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
@media (max-width: 900px) {
 .shotokan-intro, .shotokan-columns, .shotokan-layout { grid-template-columns: 1fr; gap: 2.5rem; }
 .shotokan-copy { font-size: 1rem; }
 .shotokan-aside { padding: 1.25rem; }
}
footer { color: #c3cfe6; }
.partners a { font-size: inherit; }
/* Indice a sinistra e testi suddivisi per la lettura. */
.shotokan-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 4rem; }
.shotokan-aside { position: sticky; top: 100px; max-height: calc(100dvh - 125px); overflow-y: auto; }
.shotokan-index summary { font-family: var(--f-display); font-size: 1.3rem; line-height: 1.35; cursor: pointer; padding-bottom: 12px; }
.shotokan-aside .shotokan-links a { padding: .65rem 0; }
.shotokan-links a[aria-current="page"] { color: var(--red-deep); font-weight: 700; }
.shotokan-copy { max-width: none; line-height: 1.8; }
.shotokan-copy > p { margin-bottom: 1.25rem; }
.shotokan-copy h2 { clear: both; font-family: var(--f-display); font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.25; margin: 2.75rem 0 1.1rem; }
.shotokan-copy h2:first-child { margin-top: 0; }
.shotokan-copy h3 { font-size: 1.15rem; line-height: 1.5; margin: 2rem 0 .75rem; }
.shotokan-portrait { float: right; width: 210px; max-width: 40%; margin: .25rem 0 1.5rem 2rem; }
.shotokan-portrait img { max-height: 270px; width: auto; margin-inline: auto; }
.shotokan-copy figcaption { font-size: .85rem; line-height: 1.5; color: var(--muted); margin-top: .75rem; }
.shotokan-numbered { padding-block: .75rem; border-bottom: 1px solid var(--line); }
.dojo-chant { color: var(--blue-deep); margin-top: 1.75rem; }
.dojo-meaning { font-size: .95rem; }
.kata-entry { padding-block: .5rem; margin-bottom: 0 !important; border-bottom: 1px solid var(--line); }
@media (max-width: 900px) {
 .shotokan-layout { grid-template-columns: 1fr; gap: 2rem; }
 .shotokan-aside { position: static; max-height: none; }
 .shotokan-index summary { padding-bottom: 0; }
 .shotokan-index[open] summary { padding-bottom: 12px; }
 .shotokan-copy { max-width: 100%; }
}
@media (max-width: 500px) { .shotokan-portrait { float: none; max-width: 100%; margin: 1rem auto 1.5rem; } }

/* Didascalie centrate rispetto alle fotografie e gruppi dei kata. */
.shotokan-intro figcaption, .shotokan-copy figcaption { text-align: center; }
.kata-group { padding: 2rem 0 0; margin-top: 2rem; border-top: 1px solid var(--line); }
.kata-group h2 { margin: 0 0 1.5rem; }
.kata-group-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 2.5rem; padding-left: 1.5rem; }
.kata-group-list li { padding-left: .25rem; }
.kata-group-list li::marker { font-weight: 700; color: var(--blue-deep); }
@media (max-width: 600px) { .kata-group-list { grid-template-columns: 1fr; } }

