/* ==========================================================================
   pages-about.css — 認識吉米亨利 section, 聯絡我們, 人才招募, 隱私權政策
   Prefix: .jh-pa-  · Builds on the base.css helpers (.jh-split, .jh-photo, .jh-facts, .jh-rows).
   ========================================================================== */

/* Core group blocks wrap children in .wp-block-group__inner-container on classic themes;
   let the grid of .jh-split see the real children. */
.jh-content .jh-split > .wp-block-group__inner-container { display: contents; }
.jh-content .jh-split > .wp-block-group__inner-container > * { min-width: 0; margin-top: 0; margin-bottom: 0; }
.jh-content .jh-pa-col > .wp-block-group__inner-container > :first-child,
.jh-content .jh-pa-col > :first-child { margin-top: 0; }
.jh-content .jh-pa-col > .wp-block-group__inner-container > :last-child,
.jh-content .jh-pa-col > :last-child { margin-bottom: 0; }
.jh-content .jh-split--rev > .wp-block-group__inner-container > :first-child { order: 2; }
@media (max-width: 860px) { .jh-content .jh-split--rev > .wp-block-group__inner-container > :first-child { order: 0; } }
.jh-content .jh-split .jh-photo { margin: 8px 6px; }

/* lead paragraph: first thing under the hero */
.jh-content .jh-pa-lead { font-size: 19px; line-height: 1.85; color: var(--jh-ink); }
.jh-content .jh-pa-small { font-size: 14.5px; line-height: 1.7; color: var(--jh-muted); }
@media (max-width: 767px) { .jh-content .jh-pa-lead { font-size: 17px; } }

/* fact row with long decimals (校園環境) */
.jh-content .jh-pa-facts--long dt { font-size: clamp(26px, 1.2vw + 16px, 34px); white-space: nowrap; }

/* list of sub-pages with one-line descriptions (about overview) */
.jh-content .jh-pa-toc { margin: 1.4em 0 2.4em; border-top: 1.5px solid var(--jh-ink); }
.jh-content .jh-pa-toc > li { margin: 0; padding: 18px 40px 18px 0; border-bottom: 1px solid var(--jh-line); font-size: 16px; line-height: 1.75; }
.jh-content .jh-pa-toc > li::before { content: "→"; left: auto; right: 6px; top: 50%; width: auto; height: auto; margin-top: -.9em; border-radius: 0; background: none; color: var(--jh-peri); font-size: 20px; line-height: 1.8; transition: translate .2s var(--jh-ease); }
.jh-content .jh-pa-toc > li:hover::before { translate: 4px 0; color: var(--jh-blue-900); }
.jh-content .jh-pa-toc > li > a:first-child { display: block; margin-bottom: 2px; font-size: 18px; font-weight: 700; color: var(--jh-ink) !important; text-decoration: none !important; }
.jh-content .jh-pa-toc > li > a:first-child::after { content: ""; position: absolute; inset: 0; }
.jh-content .jh-pa-toc > li:hover > a:first-child { color: var(--jh-blue-900) !important; }

/* label + description rows inside a normal list (親職教育, 師資資格, 照片原則) */
.jh-content .jh-pa-defs { margin: 1.2em 0 1.8em; }
.jh-content .jh-pa-defs > li { margin: 0; padding: 14px 0 14px 30px; border-bottom: 1px dashed var(--jh-line-2, #D6DBEC); }
.jh-content .jh-pa-defs > li:last-child { border-bottom: 0; }
.jh-content .jh-pa-defs > li::before { top: 1.55em; }
.jh-content .jh-pa-defs > li > strong:first-child { display: block; color: var(--jh-ink); }

/* closing call-to-action panel */
.jh-content .jh-pa-cta { margin: 3.2em 0 0; padding: 28px 32px; border: 1.5px solid var(--jh-line); border-radius: var(--jh-radius); background: var(--jh-cream); }
.jh-content .jh-pa-cta p { margin: 0 0 16px; color: var(--jh-ink); }
.jh-content .jh-pa-cta .wp-block-buttons { gap: 12px; margin: 0; }
@media (max-width: 767px) { .jh-content .jh-pa-cta { padding: 22px 20px; } }

/* 園長的信 */
.jh-content .jh-pa-letter-wrap { margin-top: 0; grid-template-columns: 2fr 1fr; gap: 48px; }
@media (max-width: 860px) { .jh-content .jh-pa-letter-wrap { grid-template-columns: 1fr; gap: 20px; } }
.jh-content .jh-pa-letter { position: relative; padding: 36px 40px 30px; border: 1.5px solid var(--jh-line); border-radius: 4px; background: var(--jh-paper, #FFFDF8); box-shadow: 0 1px 2px rgba(23, 32, 77, .04); line-height: 1.95; }
.jh-content .jh-pa-letter p { margin: 0 0 1em; color: var(--jh-ink); }
.jh-content .jh-pa-letter .jh-pa-letter__hi { font-family: var(--jh-font-display); font-size: 20px; color: var(--jh-blue-900); }
.jh-content .jh-pa-letter .jh-pa-sign { margin: 1.6em 0 0; text-align: right; font-family: var(--jh-font-display); font-size: 17px; line-height: 1.7; color: var(--jh-blue-900); }
.jh-content .jh-pa-portrait { align-self: start; margin-top: 24px; }
@media (max-width: 860px) {
	.jh-content .jh-pa-portrait { max-width: 240px; margin: 8px 0 4px 6px; }
	.jh-content .jh-pa-letter { padding: 26px 20px 22px; }
}

/* 教育願景: big word + description rows */
.jh-content .jh-pa-vision { margin: 1.2em 0 2em; border-top: 1.5px solid var(--jh-ink); }
.jh-content .jh-pa-vision > li { display: grid; grid-template-columns: 120px 1fr; align-items: baseline; gap: 4px 20px; margin: 0; padding: 18px 0; border-bottom: 1px solid var(--jh-line); }
.jh-content .jh-pa-vision > li::before { display: none; }
.jh-content .jh-pa-vision > li > strong { font-family: var(--jh-font-display); font-weight: 400; font-size: 32px; line-height: 1.2; color: var(--jh-blue-900); }
.jh-content .jh-pa-vision > li:nth-child(2) > strong { color: var(--jh-aqua-ink, #0A7486); }
.jh-content .jh-pa-vision > li:nth-child(3) > strong { color: #4E8A0E; }
@media (max-width: 520px) { .jh-content .jh-pa-vision > li { grid-template-columns: 1fr; } }

/* 教育目標 in two columns on desktop */
@media (min-width: 768px) { .jh-content .jh-pa-cols { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, auto); grid-auto-flow: column; column-gap: 40px; } }

/* table: first column as label */
.jh-content .jh-pa-table td:first-child { width: 8.5em; font-weight: 700; color: var(--jh-ink); white-space: nowrap; }

/* rows (base .jh-rows) with longer values: left-align and give the label a fixed column */
.jh-content .jh-pa-rows > div { display: grid; grid-template-columns: 9.5em 1fr; gap: 4px 24px; }
.jh-content .jh-pa-rows dd { text-align: left; }
@media (max-width: 560px) { .jh-content .jh-pa-rows > div { grid-template-columns: 1fr; padding: 14px 0; } }
.jh-content .jh-pa-contact dd { font-size: 17px; color: var(--jh-ink); }
.jh-content .jh-pa-contact a { word-break: break-all; }

/* 校園環境 photo grid */
.jh-content .jh-pa-grid { margin: 2.2em 0 1em; }
.jh-content .jh-pa-grid > .wp-block-group__inner-container,
.jh-content .jh-pa-grid:not(:has(> .wp-block-group__inner-container)) { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 32px; }
.jh-content .jh-pa-grid .jh-photo { margin: 0; }
.jh-content .jh-pa-grid .jh-photo img { aspect-ratio: 4 / 3; }
@media (max-width: 520px) {
	.jh-content .jh-pa-grid > .wp-block-group__inner-container,
	.jh-content .jh-pa-grid:not(:has(> .wp-block-group__inner-container)) { gap: 24px 16px; }
	.jh-content .jh-pa-grid .jh-photo { padding: 6px 6px 8px; }
	.jh-content .jh-pa-grid .jh-photo figcaption { font-size: 14px; margin-top: 6px; }
}

/* 評鑑 timeline */
.jh-content .jh-pa-timeline { position: relative; margin: 1.4em 0 1.6em; }
.jh-content .jh-pa-timeline::before { content: ""; position: absolute; left: 7px; top: 14px; bottom: 14px; width: 2px; background: var(--jh-line); }
.jh-content .jh-pa-timeline > li { margin: 0; padding: 4px 0 26px 40px; }
.jh-content .jh-pa-timeline > li:last-child { padding-bottom: 0; }
.jh-content .jh-pa-timeline > li::before { left: 0; top: 14px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--jh-peri); box-shadow: none; }
.jh-content .jh-pa-timeline > li:first-child::before { border-color: var(--jh-orange-600); background: var(--jh-orange); }
.jh-content .jh-pa-timeline > li > strong:first-child { display: block; font-family: var(--jh-font-display); font-weight: 400; font-size: 26px; line-height: 1.4; color: var(--jh-blue-900); }

/* Google map */
.jh-content .jh-pa-map { position: relative; margin: 1.2em 0 .6em; aspect-ratio: 16 / 10; border: 1.5px solid var(--jh-line); border-radius: var(--jh-radius); overflow: hidden; background: var(--jh-sky); }
.jh-content .jh-pa-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; }
@media (max-width: 560px) { .jh-content .jh-pa-map { aspect-ratio: 4 / 5; } }

/* 人才招募: the five words */
.jh-content .jh-pa-words { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: .4em 0 1.2em; font-family: var(--jh-font-display); font-size: clamp(26px, 2vw + 14px, 34px); line-height: 1.4; color: var(--jh-blue-900); }
.jh-content .jh-pa-words span:nth-child(2) { color: var(--jh-aqua-ink, #0A7486); }
.jh-content .jh-pa-words span:nth-child(4) { color: #4E8A0E; }

/* 隱私權政策: calmer headings for a long legal text */
.jh-content .jh-pa-legal h2 { margin: 2em 0 .6em; font-size: clamp(22px, .6vw + 18px, 26px); }
.jh-content .jh-pa-legal h2::after { display: none; }
.jh-content .jh-pa-rows--stack > div { grid-template-columns: 4.5em 1fr; }
@media (max-width: 560px) { .jh-content .jh-pa-rows--stack > div { grid-template-columns: 1fr; } }
