/*
 * Content blocks for pages edited in the Classic Editor. Also the editor style (with style.css),
 * so the blocks look the same in the Visual tab.
 *
 *   <figure class="wide"><img …></figure>          big photo, page width, never upscaled
 *   <p class="lead">…</p>                          intro
 *   <ul class="facts"><li><b>2000</b> opened</li>   numbers bar
 *   <ul class="cards"><li><b>Title</b> text …</li>  offers / items with a bold title
 *   <ul class="timeline"><li><b>2000</b> …</li>     history
 *   [gallery ids="…" columns="2"]                  image pair (lightbox)
 *   [osada_learn]                                  tuition + Kinbaku Academy close
 */

/* break out of the 720px text column */
.entry > figure.wide, .entry > ul.facts, .entry > .learn { max-width: none; }

figure.wide { margin: 0 0 44px; }
figure.wide img { display: block; width: auto; max-width: 100%; height: auto; }
figure.wide figcaption { max-width: 720px; }

ul.facts { list-style: none; margin: 8px 0 48px; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 32px; font-size: 13px; line-height: 1.45; color: var(--mute); }
ul.facts li { margin: 0; }
ul.facts b { display: block; font-family: var(--display); font-weight: 400; font-size: 46px; line-height: 1.05; color: var(--ink); margin-bottom: 6px; white-space: nowrap; }

ul.cards { list-style: none; margin: 8px 0 44px; padding: 0; border-top: 1px solid var(--ink); }
ul.cards li { margin: 0; padding: 20px 0 22px; border-bottom: 1px solid var(--line); color: #3d3832; line-height: 1.7; }
ul.cards b { display: block; font-family: var(--display); font-weight: 400; font-size: 25px; line-height: 1.2; color: var(--ink); margin-bottom: 6px; }
.lang-ja ul.cards b { font-family: var(--mincho); font-weight: 800; font-size: 20px; }

ul.timeline { list-style: none; margin: 8px 0 44px; padding: 0; font-size: 15px; color: #4a443d; line-height: 1.65; }
ul.timeline li { position: relative; margin: 0 0 14px; padding-left: 96px; }
ul.timeline b { position: absolute; left: 0; top: -2px; font-family: var(--display); font-weight: 400; font-size: 20px; color: var(--ink); }

.gallery-grid--2 { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
.gallery-grid--2 .tile, .gallery-grid--2 .tile--tall, .gallery-grid--2 .tile--wide { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }

/* the learn section inside page content: no legacy link/list styling */
.entry > .learn { margin-top: 72px; }
.entry .learn a { text-decoration: none; }
.entry .learn p { margin: 0 0 22px; }

@media (max-width: 760px) {
	ul.facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
	ul.facts b { font-size: 32px; white-space: normal; }
	ul.cards b { font-size: 22px; }
	ul.timeline li { padding-left: 68px; }
	ul.timeline b { font-size: 18px; }
	.entry > .learn { margin-top: 48px; }
}

/* Visual tab of the Classic Editor */
.mce-content-body { max-width: 900px; margin: 16px 20px; line-height: 1.75; }
.mce-content-body a { text-decoration: underline; }
.mce-content-body .lead { font-family: var(--display); font-size: 26px; line-height: 1.3; }
