/*
Theme Name: 新園 Nouveau Jardin (nj1997)
Theme URI: https://www.nj1997.org/
Author: 新園幼兒園
Description: Custom theme for 臺南市新園蒙特梭利幼兒園. It copies the design of the school's old Weebly site: centred logo and menu, a photo banner on each page, gold footer, and the Weebly page layouts (columns, buttons, slideshows) used in the imported pages.
Version: 1.5.25
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nj1997
*/

/* ---------- Colours and fonts (from the Weebly theme) ---------- */
:root {
	--nj-gold: #c8ae79;
	--nj-gold-dark: #b39964;
	--nj-link: #a88d2e;
	--nj-link-hover: #2a2a2a;
	--nj-text: #666666;
	--nj-heading: #080a0c;
	--nj-menu: #3b3b3b;
	--nj-line: #cccccc;
	--nj-body-font: "Open Sans", "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", sans-serif;
	--nj-ui-font: "Lato", "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", sans-serif;
	--nj-heading-font: Verdana, "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", sans-serif;
	--nj-menu-font: "Montserrat", "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", sans-serif;
}

@font-face {
	font-family: "NotoSans";
	src: url("assets/fonts/NotoSansCJKtc-Regular-Alphabetic.ttf") format("truetype");
	font-display: swap;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, body, html, p, blockquote, fieldset, input { margin: 0; padding: 0; }
a img { border: 0; }
img { max-width: 100%; height: auto; }

html { scroll-behavior: smooth; }
body {
	position: relative;
	width: 100%;
	background: var(--nj-gold);
	color: var(--nj-text);
	font-family: var(--nj-ui-font);
	font-size: 16px;
	font-weight: normal;
	line-height: 1.8em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
a { color: var(--nj-gold); text-decoration: none; transition: color 200ms ease-in; }
a:hover { color: var(--nj-gold); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 100000; top: 8px; left: 8px;
	padding: 10px 16px; background: #fff; color: var(--nj-menu);
}

.wrapper { position: relative; background: #fff; }
.container { width: 100%; max-width: 960px; margin: 0 auto; }

/* ---------- Header: logo and menu ---------- */
.header-wrap .nav-wrap {
	position: relative;
	z-index: 20;
	width: 100%;
	background: #fff;
	border-bottom: 1px solid var(--nj-line);
	text-align: center;
}
.header-wrap #logo { padding: 10px 0; line-height: 1.1; }
.header-wrap .wsite-logo { display: block; padding: 30px 0 20px; }
.header-wrap #logo a { display: inline-block; vertical-align: top; transition: opacity 300ms ease-in; }
.header-wrap #logo a:hover { opacity: 0.8; }
.header-wrap #logo img { display: block; max-width: 200px; max-height: 40px; width: auto; margin: 0 auto; }
.header-wrap .site-title-text { font-family: var(--nj-ui-font); font-size: 26px; color: #818181; letter-spacing: 2px; }

.hamburger { display: none; }

.menu {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	border-top: 1px solid rgba(116, 116, 116, 0.15);
}
.menu ul { list-style: none; }
.menu .wsite-menu-default > li {
	position: relative;
	display: inline-block;
	padding: 7px 0;
	margin-right: 40px;
}
.menu .wsite-menu-default > li:last-child { margin-right: 0; }
.menu .wsite-menu-default > li > a {
	display: inline;
	padding-bottom: 11px;
	border-bottom: 3px solid transparent;
	color: var(--nj-menu);
	font-family: var(--nj-menu-font);
	font-size: 15px;
	font-weight: 400;
	letter-spacing: 2px;
	line-height: 28.8px;
	transition: border-bottom 0.2s ease-in;
	cursor: pointer;
}
.menu .wsite-menu-default > li > a:hover,
.menu .wsite-menu-default > li:has(:focus-visible) > a,
.menu .wsite-menu-default > li.current-menu-item > a,
.menu .wsite-menu-default > li.current-menu-ancestor > a,
.menu .wsite-menu-default > li.current-page-ancestor > a {
	border-bottom-color: var(--nj-gold);
}

/* Drop-down menus */
.menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 30;
	min-width: 200px;
	text-align: left;
	visibility: hidden;
	opacity: 0;
	transition: opacity 150ms ease-in, visibility 150ms;
}
.menu .sub-menu .sub-menu { top: -1px; left: 100%; }
/* 1.5.23: a heading clicked with the mouse kept focus, so its menu stayed open after the mouse moved
   on ("sticky"). Focus now keeps a menu open only for keyboard users, and the menu under the
   mouse always wins, so only one is open at a time. */
.menu li:hover > .sub-menu,
.menu li:has(:focus-visible) > .sub-menu { visibility: visible; opacity: 1; }
.menu .wsite-menu-default:hover > li:not(:hover) > .sub-menu { visibility: hidden; opacity: 0; }
.menu .sub-menu li {
	position: relative;
	display: block;
	margin: 0;
	padding: 0;
	border: 1px solid #ebebeb;
	background: rgba(255, 255, 255, 0.95);
}
.menu .sub-menu li + li { border-top: none; }
.menu .sub-menu a {
	display: block;
	padding: 15px 30px 15px 10px;
	color: var(--nj-menu);
	font-family: var(--nj-ui-font);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	white-space: nowrap;
	cursor: pointer;
}
.menu .sub-menu a:hover { color: var(--nj-gold); }
.menu .sub-menu .menu-item-has-children > a::after {
	content: "\203A";
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 20px;
	font-weight: 400;
}

/* ---------- Page banner ---------- */
.banner-wrap { position: relative; }
.wsite-header-section {
	position: relative;
	display: flex;
	align-items: center;
	height: 450px;
	background-color: #8a8a8a;
	background-repeat: no-repeat;
	background-position: center 25%;
	background-size: cover;
}
.wsite-header-section::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.2);
}
.banner-wrap .container { position: relative; z-index: 1; }
.banner-wrap .banner { padding: 80px 0; text-align: center; }
.banner-wrap .banner h1 {
	padding-bottom: 10px;
	color: #fff;
	font-family: var(--nj-ui-font);
	font-size: 60px;
	font-weight: 300;
	letter-spacing: 5px;
	line-height: normal;
	text-transform: uppercase;
	word-wrap: break-word;
}
.banner-wrap .banner.banner-small h1 { font-size: 32px; }
.banner-wrap .banner .banner-subtitle {
	padding: 10px 0 20px;
	color: #fff;
	font-family: var(--nj-ui-font);
	font-size: 1.25em;
}

/* ---------- Main content ---------- */
#main-wrap { background: #fff; }
#main-wrap > .container { padding: 60px 1.5em; }
.no-header-page #main-wrap > .container { padding: 3em 1.5em; }

.entry-content { word-wrap: break-word; }
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content div.paragraph,
.entry-content p,
.entry-content li,
.blog-sidebar div.paragraph,
.blog-sidebar p {
	font-family: var(--nj-body-font);
	font-size: 17px;
	line-height: 33px;
	letter-spacing: 0;
	color: var(--nj-text);
}
.entry-content p { margin-bottom: 1em; }
.entry-content ul, .entry-content ol { margin: 0 0 1em 1.6em; }
.entry-content h2,
.entry-content .wsite-content-title,
.blog-title {
	padding-bottom: 10px;
	color: var(--nj-heading);
	font-family: var(--nj-heading-font);
	font-size: 35px;
	font-weight: 300;
	letter-spacing: 2px;
	line-height: 44px;
	text-transform: uppercase;
	word-wrap: break-word;
}
.entry-content h3 { color: var(--nj-heading); font-family: var(--nj-heading-font); font-size: 24px; line-height: 1.4; margin: 0 0 .5em; }
.entry-content .paragraph a,
.entry-content p a,
.entry-content li a,
.entry-content h2 a,
.entry-content blockquote a,
.blog-sidebar a { color: var(--nj-link); }
.entry-content .paragraph a:hover,
.entry-content p a:hover,
.entry-content li a:hover,
.entry-content h2 a:hover,
.entry-content blockquote a:hover,
.blog-sidebar a:hover { color: var(--nj-link-hover); }

.entry-content blockquote {
	position: relative;
	display: block;
	margin: 0 0 1em;
	padding: 0 1.5em;
	color: #a0a0a0;
	font-size: 1.35em;
	line-height: 1.65em;
}
.entry-content blockquote::before {
	content: "\201C";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--nj-gold);
	font-size: 60px;
	line-height: .95em;
}

.entry-content table { border-collapse: collapse; }
.entry-content iframe { max-width: 100%; border: 0; }
.entry-content figure { margin: 0 0 1em; }

/* Weebly blocks kept in the imported pages */
.wsite-multicol { position: relative; }
.wsite-multicol-table { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 0 !important; border: 0 !important; padding: 0 !important; }
.wsite-multicol-col { vertical-align: top; margin: 0 !important; border: 0 !important; }
.wsite-spacer { display: block; }
hr.styled-hr {
	height: 1px;
	margin: 0 auto;
	border: 0;
	background-color: rgba(0, 0, 0, 0.13);
	color: rgba(0, 0, 0, 0.13);
}
.wsite-image { position: relative; }
.wsite-image img { max-width: 100%; height: auto; }
.wsite-image-border-medium img { padding: 3px; border: 1px solid var(--nj-gold-dark); }
.wsite-caption, .wsite-image div { font-size: 90%; }
.imgPusher { display: block; overflow: hidden; height: 0; }
.wsite-map iframe { display: block; width: 100%; }

.wsite-button { display: inline-block; text-decoration: none !important; }
.wsite-button .wsite-button-inner {
	display: block;
	padding: 8px 16px;
	background: #fff;
	border: 2px solid var(--nj-gold-dark);
	color: var(--nj-gold-dark);
	font-family: "Roboto", var(--nj-ui-font);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1px;
	line-height: 1.5em;
	text-transform: uppercase;
	white-space: normal;
	transition: all 400ms ease-in;
}
.wsite-button:hover .wsite-button-inner { background: var(--nj-gold-dark); color: #fff; }

/* Slideshows (converted from Weebly; nav.js turns them into a slideshow) */
.nj-slideshow { margin: 0 0 1.5em; }
.nj-slideshow:not(.is-ready) { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.nj-slideshow:not(.is-ready) img { width: 100%; height: 160px; object-fit: cover; }
.nj-slideshow.is-ready { position: relative; overflow: hidden; background: #f4f4f4; }
.nj-slideshow.is-ready .nj-slides { position: relative; aspect-ratio: 3 / 2; }
.nj-slideshow.is-ready .nj-slides img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	opacity: 0;
	transition: opacity 600ms ease-in-out;
}
.nj-slideshow.is-ready .nj-slides img.is-active { opacity: 1; }
.nj-slide-btn {
	position: absolute;
	top: 50%;
	z-index: 2;
	width: 44px;
	height: 44px;
	margin-top: -22px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.35);
	color: #fff;
	font-size: 28px;
	line-height: 44px;
	cursor: pointer;
}
.nj-slide-btn:hover { background: rgba(0, 0, 0, 0.6); }
.nj-slide-prev { left: 10px; }
.nj-slide-next { right: 10px; }
.nj-slide-count {
	position: absolute;
	right: 10px;
	bottom: 8px;
	z-index: 2;
	padding: 0 8px;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	font-size: 12px;
	line-height: 22px;
}

/* Reminder left where a Weebly form was: shown to editors, hidden from visitors */
.nj-form-placeholder {
	padding: 12px 16px;
	border: 2px dashed var(--nj-gold-dark);
	background: #fbf7ee;
	color: #7a6430 !important;
}
body:not(.logged-in) .nj-form-placeholder { display: none; }

/* WordPress blocks and forms */
.wp-block-image img, .wp-block-gallery img { height: auto; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; text-align: center; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.wp-caption-text, figcaption { font-size: 90%; color: #888; text-align: center; }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="password"], input[type="search"], input[type="number"], input[type="date"], textarea, select {
	max-width: 100%;
	padding: 8px;
	border: 1px solid var(--nj-line);
	border-radius: 0;
	background: #fff;
	color: #626262;
	font-family: var(--nj-ui-font);
	font-size: 15px;
	line-height: normal;
	transition: border 200ms ease-in;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--nj-gold-dark); }
select { appearance: none; padding-right: 32px; background: #fff url("assets/img/select-dropdown.png") 97% center no-repeat; }
button, input[type="submit"], .wp-block-button__link, .wp-element-button {
	display: inline-block;
	padding: 8px 16px;
	border: 2px solid var(--nj-gold-dark);
	border-radius: 0;
	background: #fff;
	color: var(--nj-gold-dark);
	font-family: "Roboto", var(--nj-ui-font);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	cursor: pointer;
	transition: all 400ms ease-in;
}
button:hover, input[type="submit"]:hover, .wp-block-button__link:hover, .wp-element-button:hover { background: var(--nj-gold-dark); color: #fff; }
.post-password-form p { margin-bottom: 1em; }

/* ---------- Blogs (孩子不麻煩, 教師心得) ---------- */
.blog-layout { display: flex; gap: 40px; align-items: flex-start; }
.blog-body { flex: 1 1 auto; min-width: 0; }
.blog-sidebar { flex: 0 0 215px; padding: 0 10px; }
.blog-post { margin-bottom: 40px; }
.blog-title { color: var(--nj-heading); }
.blog-title a { display: block; margin-bottom: 10px; color: var(--nj-gold); }
.blog-title a:hover { color: var(--nj-link-hover); }
.blog-date { font-family: var(--nj-body-font); font-size: 15px; color: #999; }
.blog-separator { margin-bottom: 15px; }
.blog-post .blog-content { margin: 0; }
.blog-sidebar h2 {
	padding-bottom: 5px;
	color: var(--nj-heading);
	font-family: var(--nj-heading-font);
	font-size: 18px;
	font-weight: 300;
	letter-spacing: 2px;
	line-height: 1.5;
	text-transform: uppercase;
}
.blog-sidebar p { padding-bottom: 20px; font-size: 15px; line-height: 26px; }
.blog-sidebar ul { list-style: none; padding-bottom: 20px; }
.blog-sidebar li { font-family: var(--nj-body-font); font-size: 15px; line-height: 26px; }
.blog-page-nav { display: flex; justify-content: space-between; margin: 20px 0 0; font-family: var(--nj-body-font); }
.blog-page-nav a { color: var(--nj-link); }
.blog-back { margin-top: 20px; font-family: var(--nj-body-font); }
.blog-back a { color: var(--nj-link); }

.search-results .blog-post { margin-bottom: 30px; }
.search-form { display: flex; gap: 8px; margin: 1em 0; }
.search-form label { flex: 1; }
.search-form .search-field { width: 100%; }

/* ---------- Footer ---------- */
#footer-wrap { position: relative; border-top: 1px solid #ebebeb; background: var(--nj-gold); }
#footer-wrap .wsite-footer { padding: 60px 0; }
#footer-wrap .paragraph {
	color: #fff;
	font-size: 14px;
	letter-spacing: 1px;
	line-height: 1.6em;
	text-align: right;
}
#footer-wrap a { color: #fff; text-decoration: underline; }

/* Footer contact details (1.1.0) */
#footer-wrap .nj-footer { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.nj-footer-contact { color: #fff; font-size: 14px; line-height: 1.7em; letter-spacing: 0.5px; }
.nj-footer-contact p { margin: 0; }
.nj-footer-contact .nj-footer-name { font-size: 16px; letter-spacing: 2px; margin-bottom: 6px; }
.nj-footer-contact a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.5); }
.nj-footer-contact a:hover { border-bottom-color: #fff; }

/* Home page: next-step buttons and link cards (1.1.0) */
.nj-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 32px; }
.entry-content .nj-cta a {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 46px; padding: 10px 28px;
	border: 2px solid var(--nj-gold-dark); color: var(--nj-gold-dark); background: #fff;
	font-family: var(--nj-menu-font); font-size: 14px; letter-spacing: 2px; text-decoration: none;
	transition: all 300ms ease-in;
}
.entry-content .nj-cta a.is-primary { background: var(--nj-gold-dark); color: #fff; }
.entry-content .nj-cta a:hover, .entry-content .nj-cta a:focus-visible { background: var(--nj-gold); border-color: var(--nj-gold); color: #fff; }
.entry-content .nj-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; margin: 0 0 36px; padding: 0; }
.nj-links li { margin: 0; padding: 0; }
.entry-content .nj-links li::before { content: none; }
.entry-content .nj-links a { display: block; height: 100%; padding: 14px 0 0; border-top: 2px solid var(--nj-gold); text-decoration: none; }
.nj-links .nj-link-label { display: block; font-size: 12px; letter-spacing: 1px; color: #999; margin-bottom: 4px; }
.nj-links .nj-link-title { display: block; font-size: 18px; line-height: 1.5em; color: var(--nj-gold-dark); }
.nj-links .nj-link-title::after { content: " \2192"; }
.nj-links a:hover .nj-link-title { color: var(--nj-gold); }
.nj-survey { margin: 1.5em 0; }

/* Photo albums (1.1.0) */
.nj-album-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.nj-album-filter button {
	min-height: 40px; padding: 6px 18px; margin: 0;
	border: 1px solid var(--nj-gold-dark); background: #fff; color: var(--nj-gold-dark);
	font-size: 14px; letter-spacing: 1px; text-transform: none;
}
.nj-album-filter button.is-active { background: var(--nj-gold-dark); color: #fff; }
.entry-content .nj-album-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.entry-content .nj-album-list li, .entry-content .nj-links li { margin: 0; padding: 0; line-height: 1.5; font-size: 15px; }
.entry-content .nj-album-list li::before { content: none; }
.nj-album-list li[hidden] { display: none; }
.nj-album-list a { display: block; text-decoration: none; color: #555; }
.nj-album-cover { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #f4f4f4; margin-bottom: 10px; }
.nj-album-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.nj-album-list a:hover .nj-album-cover img { transform: scale(1.04); }
.nj-album-title { display: block; font-size: 17px; line-height: 1.5em; color: var(--nj-gold-dark); }
.nj-album-meta { display: block; font-size: 13px; color: #999; }
.nj-album-tip { font-size: 14px; color: #999; }
.nj-album-back { margin-top: 2em; }
.nj-album-page .wp-block-gallery { --wp--style--unstable-gallery-gap: 6px; gap: 6px; }
.nj-album-page .wp-block-gallery img { cursor: zoom-in; }

/* Full-screen photo viewer */
.nj-lightbox { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.92); }
.nj-lightbox[hidden] { display: none; }
.nj-lightbox img { max-width: 100vw; max-height: calc(100vh - 110px); object-fit: contain; user-select: none; }
.nj-lightbox button, .nj-lightbox a {
	position: absolute; display: flex; align-items: center; justify-content: center;
	min-width: 48px; height: 48px; margin: 0; padding: 0 14px;
	border: 0; background: rgba(255,255,255,0.12); color: #fff;
	font-size: 15px; letter-spacing: 1px; text-decoration: none; text-transform: none;
}
.nj-lightbox button:hover, .nj-lightbox a:hover { background: rgba(255,255,255,0.25); color: #fff; }
.nj-lb-close { top: 12px; right: 12px; font-size: 26px !important; }
.nj-lb-prev, .nj-lb-next { top: 50%; margin-top: -24px !important; font-size: 30px !important; }
.nj-lb-prev { left: 12px; }
.nj-lb-next { right: 12px; }
.nj-lb-download { bottom: 14px; right: 12px; }
.nj-lb-count { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; color: #ddd; font-size: 14px; pointer-events: none; }
body.nj-lightbox-open { overflow: hidden; }

/* ---------- Home page (1.2.0) ---------- */
/* 1.5.21: notice strip shows one message at a time; every few seconds the next slides up into its
   place (site.js adds .is-rotating). Without it, or with reduced motion, the messages simply stack. */
.nj-ticker-item { display: block; }
.nj-ticker.is-rotating .nj-ticker-track { position: relative; overflow: hidden; }
.nj-ticker.is-rotating .nj-ticker-item { position: absolute; left: 0; right: 0; top: 0; transform: translateY(110%); opacity: 0; transition: transform .6s ease, opacity .6s ease; }
.nj-ticker.is-rotating .nj-ticker-item.is-current { transform: translateY(0); opacity: 1; }
.nj-ticker.is-rotating .nj-ticker-item.is-leaving { transform: translateY(-110%); opacity: 0; }
.nj-home h2 { font-family: var(--nj-ui-font); font-size: 26px; line-height: 1.4em; letter-spacing: 2px; text-transform: none; color: var(--nj-heading); padding: 0; margin: 0 0 14px; }
.nj-home .nj-kicker { display: block; font-size: 14px; letter-spacing: 2px; color: var(--nj-gold-dark); margin: 0 0 4px; line-height: 1.5; }
.nj-home section { margin: 0 0 56px; }
.entry-content .nj-home p, .entry-content .nj-home li { font-size: 16px; line-height: 1.8em; }
.entry-content .nj-home ul { list-style: none; margin: 0; padding: 0; }
.entry-content .nj-home li::before { content: none; }

.nj-audience { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.nj-aud { padding: 28px 30px 30px; background: #faf6ee; border-top: 3px solid var(--nj-gold); }
.nj-aud.is-current { background: #f6f6f4; border-top-color: #8a9a7b; }
.nj-aud.is-current .nj-kicker { color: #6f7f61; }
.entry-content .nj-aud-links { margin: 6px 0 22px; }
.entry-content .nj-aud-links li { border-bottom: 1px solid rgba(0,0,0,0.08); }
.entry-content .nj-aud-links a { display: flex; justify-content: space-between; padding: 10px 2px; color: #555; text-decoration: none; }
.entry-content .nj-aud-links a::after { content: "\2192"; color: var(--nj-gold-dark); }
.entry-content .nj-aud-links a:hover { color: var(--nj-gold-dark); }
.entry-content .nj-home .nj-btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 26px; margin: 0 10px 10px 0;
	border: 2px solid var(--nj-gold-dark); background: #fff; color: var(--nj-gold-dark);
	font-family: var(--nj-menu-font); font-size: 14px; letter-spacing: 2px; text-decoration: none; transition: all 300ms ease-in;
}
.entry-content .nj-home .nj-btn.is-primary { background: var(--nj-gold-dark); color: #fff; }
.entry-content .nj-home .nj-btn:hover, .entry-content .nj-home .nj-btn:focus-visible { background: var(--nj-gold); border-color: var(--nj-gold); color: #fff; }
.entry-content .nj-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
.entry-content .nj-tiles a {
	display: flex; flex-direction: column; justify-content: center; min-height: 86px; padding: 12px 14px;
	background: #fff; border: 1px solid rgba(0,0,0,0.08); color: #444; text-decoration: none; transition: border-color 200ms, transform 200ms;
}
.entry-content .nj-tiles a:hover { border-color: #8a9a7b; transform: translateY(-2px); }
.nj-tiles .nj-tile-title { font-size: 17px; letter-spacing: 1px; color: #3f4a36; line-height: 1.4; }
.nj-tiles .nj-tile-note { font-size: 12px; color: #999; line-height: 1.5; margin-top: 2px; }

.entry-content .nj-news li { position: relative; padding: 14px 0 14px 22px; border-bottom: 1px solid #eee; color: #555; }
.entry-content .nj-news li:first-child { border-top: 1px solid #eee; }
.entry-content .nj-news li::before { content: ""; position: absolute; left: 2px; top: 27px; width: 8px; height: 8px; border-radius: 50%; background: var(--nj-gold); }

.nj-about { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.entry-content .nj-beliefs li { padding: 6px 0 6px 18px; position: relative; color: #555; }
.entry-content .nj-beliefs li::before { content: ""; position: absolute; left: 0; top: 18px; width: 8px; height: 2px; background: var(--nj-gold); }
.nj-about .nj-slideshow { margin: 0; }

.nj-posts { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.nj-posts h3 { font-size: 18px; letter-spacing: 1px; color: var(--nj-heading); margin: 0 0 8px; }
.entry-content .nj-posts .wp-block-latest-posts { margin: 0 0 10px; padding: 0; list-style: none; }
.entry-content .nj-posts .wp-block-latest-posts li { padding: 10px 0; border-bottom: 1px solid #eee; line-height: 1.6; }
.entry-content .nj-posts .wp-block-latest-posts li a { color: #444; font-size: 16px; }
.entry-content .nj-posts .wp-block-latest-posts li a:hover { color: var(--nj-gold-dark); }
.entry-content .nj-posts .wp-block-latest-posts__post-date { display: block; font-size: 12px; color: #999; }
.entry-content .nj-more { font-size: 14px; letter-spacing: 1px; }

.nj-extras { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.entry-content .nj-extra { display: flex; gap: 18px; align-items: center; padding: 18px; border: 1px solid #eee; color: #555; text-decoration: none; height: 100%; }
.entry-content .nj-extra:hover { border-color: var(--nj-gold); }
.nj-extra img { width: 80px; height: auto; flex: 0 0 auto; }
.nj-extra .nj-extra-title { display: block; font-size: 17px; color: var(--nj-gold-dark); line-height: 1.5; }
.nj-extra .nj-extra-note { display: block; font-size: 13px; color: #999; line-height: 1.6; }

.nj-visit { text-align: center; padding: 44px 24px; background: #faf6ee; }
.entry-content .nj-visit p { margin: 0 0 18px; color: #555; }

/* Home panels, compact (1.2.1) */
.nj-audience { align-items: start; }
.nj-aud .nj-slideshow { margin: 0 0 18px; }
.nj-aud .nj-slide-btn, .nj-aud .nj-slide-count { display: none !important; }
.nj-aud h3 { font-family: var(--nj-ui-font); font-size: 18px; letter-spacing: 1px; color: #3f4a36; margin: 4px 0 6px; }
.entry-content .nj-aud .nj-news { margin-bottom: 22px; }
.entry-content .nj-aud .nj-news li { padding: 8px 0 8px 18px; font-size: 15px; line-height: 1.7; }
.entry-content .nj-aud .nj-news li::before { top: 19px; width: 6px; height: 6px; }
.entry-content .nj-aud .nj-news li:first-child { border-top: 0; }
.entry-content .nj-aud .nj-beliefs { margin: 0 0 20px; }
.entry-content .nj-aud .nj-beliefs li { font-size: 15px; padding: 3px 0 3px 18px; }
.entry-content .nj-aud .nj-beliefs li::before { top: 16px; }
.entry-content .nj-aud .wp-block-latest-posts { margin: 0 0 8px; padding: 0; }
.entry-content .nj-aud .wp-block-latest-posts li { padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,0.07); line-height: 1.6; }
.entry-content .nj-aud .wp-block-latest-posts li a { color: #444; font-size: 15px; }
.entry-content .nj-aud .wp-block-latest-posts li a:hover { color: var(--nj-gold-dark); }
.entry-content .nj-aud .wp-block-latest-posts__post-date { display: block; font-size: 12px; color: #999; }
.nj-post-cat { color: #6f7f61; margin-right: 6px; }
.nj-home .nj-extras { margin-top: 36px; }

@media screen and (max-width: 767px) {
	.nj-audience, .nj-about, .nj-posts, .nj-extras { grid-template-columns: 1fr; gap: 20px; }
	.nj-aud { padding: 22px 18px; }
	.nj-home h2 { font-size: 22px; }
	.entry-content .nj-tiles { grid-template-columns: 1fr 1fr; }
	.nj-home section { margin-bottom: 40px; }
	.entry-content .nj-home .nj-btn { width: 100%; margin-right: 0; }
}

/* ---------- Mobile menu ---------- */
.navmobile-wrapper { display: none; }

@media screen and (max-width: 992px) {
	.container { padding: 0 1.5em; }
	.header-wrap .nav-wrap {
		position: fixed;
		top: 0;
		left: 0;
		height: 55px;
		background: #fff;
	}
	.admin-bar .header-wrap .nav-wrap { top: 46px; }
	.header-wrap #logo { padding: 0; height: 55px; display: flex; align-items: center; justify-content: center; }
	.header-wrap .wsite-logo { padding: 0 50px; }
	.menu { display: none; }
	.hamburger {
		position: absolute;
		top: 0;
		right: 0;
		display: block;
		width: 55px;
		height: 55px;
		padding: 0;
		border: 0;
		background: none;
		cursor: pointer;
	}
	.hamburger:hover { background: none; }
	.hamburger span, .hamburger span::before, .hamburger span::after {
		position: absolute;
		left: 17px;
		display: block;
		width: 20px;
		height: 2px;
		background: #000;
		content: "";
		transition: transform 200ms ease;
	}
	.hamburger span { top: 26px; }
	.hamburger span::before { left: 0; top: -7px; }
	.hamburger span::after { left: 0; top: 7px; }
	.nav-open .hamburger span { background: transparent; }
	.nav-open .hamburger span::before { top: 0; transform: rotate(45deg); }
	.nav-open .hamburger span::after { top: 0; transform: rotate(-45deg); }

	.navmobile-wrapper {
		position: fixed;
		top: 55px;
		right: 0;
		bottom: 0;
		z-index: 19;
		display: block;
		width: 80%;
		max-width: 360px;
		overflow-y: auto;
		background: var(--nj-gold-dark);
		transform: translateX(100%);
		visibility: hidden;
		transition: transform 400ms cubic-bezier(0, 0.8, 0.55, 1), visibility 400ms;
	}
	.admin-bar .navmobile-wrapper { top: 101px; }
	.nav-open .navmobile-wrapper { transform: none; visibility: visible; }
	.nav-open .wrapper::after {
		content: "";
		position: fixed;
		inset: 0;
		z-index: 18;
		background: rgba(0, 0, 0, 0.3);
	}
	#navmobile { padding: 18px 30px; }
	#navmobile ul { list-style: none; }
	#navmobile .sub-menu { padding-left: 15px; }
	#navmobile li a {
		display: inline-block;
		margin-bottom: 12px;
		border-bottom: 2px solid transparent;
		color: #fff;
		font-family: var(--nj-ui-font);
		font-size: 15px;
		font-weight: 700;
		letter-spacing: 0.03em;
		line-height: 24px;
		text-transform: uppercase;
	}
	#navmobile .sub-menu a { font-weight: 400; font-size: 14px; text-transform: none; }
	#navmobile li a:hover, #navmobile li.current-menu-item > a { border-bottom-color: #fff; }

	.banner-wrap { padding-top: 55px; }
	.wsite-header-section { height: auto; min-height: 300px; }
	.banner-wrap .banner { padding: 60px 0; }
	.banner-wrap .banner h1 { font-size: 2.5em; }
	.banner-wrap .banner.banner-small h1 { font-size: 1.8em; }
	.no-header-page #main-wrap { padding-top: 55px; }
	#footer-wrap .wsite-footer { padding: 40px 0; }
	.blog-layout { display: block; }
	.blog-sidebar { padding: 20px 0 0; border-top: 1px solid #ebebeb; }
}

@media screen and (max-width: 767px) {
	body { font-size: 14px; }
	.entry-content h2, .entry-content .wsite-content-title, .blog-title { font-size: 1.3em; line-height: 1.5em; }
	.entry-content div.paragraph, .entry-content p, .entry-content li { font-size: 15px; line-height: 1.7em; }
	.entry-content div.paragraph { padding: 0 0 1.5em; }
	.entry-content font[size] { font-size: inherit; }
	.entry-content h2 font[size] { font-size: inherit; }
	#main-wrap > .container { padding: 25px 1.5em; }
	.banner-wrap .banner h1 { font-size: 2em; letter-spacing: 3px; }
	.banner-wrap .banner .banner-subtitle { font-size: 1em; }
	.wsite-multicol-table-wrap { margin: 0 !important; }
	.wsite-multicol-table, .wsite-multicol-tbody, .wsite-multicol-tr { display: block; width: 100%; }
	td.wsite-multicol-col { display: block; float: none; width: 100% !important; padding: 0 !important; }
	.wsite-spacer { max-height: 30px; }
	#footer-wrap .paragraph { text-align: center; }
	#footer-wrap .nj-footer { display: block; text-align: center; }
	.nj-footer-contact { margin-bottom: 18px; }
	.nj-cta a { flex: 1 1 auto; }
	.entry-content .nj-links { grid-template-columns: 1fr; gap: 14px; }
	.entry-content .nj-album-list { grid-template-columns: 1fr 1fr; gap: 14px; }
	.nj-album-title { font-size: 15px; }
	.nj-album-page .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) { width: calc(33.333% - 4px); }
	.nj-lb-prev, .nj-lb-next { display: none !important; }
	.nj-slide-btn { width: 36px; height: 36px; margin-top: -18px; font-size: 22px; line-height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; }
}

/* Forms (1.2.3): full-width boxes, choices as pills, no boxed fieldsets */
.entry-content .contact-form .grunion-field-wrap { margin: 0 0 18px; }
.entry-content .contact-form br { display: none; }
.entry-content .contact-form .grunion-field-label { display: block; margin: 0 0 6px; font-size: 15px; font-weight: 600; color: #444; }
.entry-content .contact-form .grunion-label-required { font-weight: 400; color: #999; font-size: 12px; }
.entry-content .contact-form input[type="text"], .entry-content .contact-form input[type="email"],
.entry-content .contact-form input[type="tel"], .entry-content .contact-form textarea { width: 100%; padding: 11px 12px; font-size: 16px; }
.entry-content .contact-form textarea { min-height: 120px; }
.entry-content .contact-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.entry-content .contact-form legend { padding: 0; }
.entry-content .contact-form .grunion-radio-options, .entry-content .contact-form .grunion-checkbox-multiple-options { display: flex; flex-direction: row !important; flex-wrap: wrap; gap: 8px !important; }
.entry-content .contact-form .grunion-radio-options p, .entry-content .contact-form .grunion-checkbox-multiple-options p { margin: 0; padding: 0; position: relative; gap: 0 !important; width: auto !important; }
.entry-content .contact-form .grunion-radio-options input, .entry-content .contact-form .grunion-checkbox-multiple-options input { position: absolute !important; opacity: 0 !important; width: 1px !important; height: 1px !important; margin: 0 !important; }
.entry-content .contact-form .grunion-radio-label, .entry-content .contact-form .grunion-checkbox-multiple-label {
	display: inline-flex; align-items: center; min-height: 40px; margin: 0 !important; padding: 6px 16px; border: 1px solid var(--nj-line); background: #fff;
	font-size: 15px; color: #555; cursor: pointer; transition: all 200ms ease-in;
}
.entry-content .contact-form input:checked + label { border-color: var(--nj-gold-dark); background: var(--nj-gold-dark); color: #fff; }
.entry-content .contact-form input:focus-visible + label { outline: 2px solid var(--nj-gold-dark); outline-offset: 2px; }
.entry-content .contact-form .contact-submit button, .entry-content .contact-form input[type="submit"] { min-height: 46px; padding: 10px 34px; background: var(--nj-gold-dark); color: #fff; }
@media screen and (max-width: 767px) {
	.entry-content .contact-form .contact-submit button, .entry-content .contact-form input[type="submit"] { width: 100%; }
}
.entry-content .contact-form button[type="submit"], .entry-content .contact-form .pushbutton-wide {
	min-height: 46px; padding: 10px 34px; border-color: var(--nj-gold-dark) !important; background: var(--nj-gold-dark) !important; color: #fff !important;
}
.entry-content .contact-form button[type="submit"]:hover { opacity: 0.88; }
@media screen and (max-width: 767px) {
	.entry-content .contact-form button[type="submit"] { width: 100%; }
}
.nj-news-more { display: inline-block; margin: -10px 0 22px; }

/* Home panels (1.2.7): same height, bottom rows line up; the shorter panel grows with the other */
.nj-audience { align-items: stretch; }
.nj-aud { display: flex; flex-direction: column; }
.nj-aud > * { flex: 0 0 auto; }
.nj-aud .nj-aud-foot { margin-top: auto; padding-top: 12px; }
.entry-content .nj-aud .nj-more { display: inline-block; margin: 0 18px 10px 0; }
/* Slideshows everywhere: no arrows or photo counter, photos still change by themselves */
.nj-slide-btn, .nj-slide-count { display: none !important; }

/* ---------- 1.2.8: one-row header on computers ---------- */
@media screen and (min-width: 993px) {
	.header-wrap .nav-wrap {
		display: flex; align-items: center; justify-content: space-between; gap: 32px;
		padding: 0 max(1.5em, calc((100% - 1100px) / 2));
	}
	.header-wrap #logo { flex: 0 0 auto; padding: 10px 0; }
	.header-wrap .wsite-logo { padding: 0; }
	.header-wrap #logo img { width: 56px; height: 56px; max-height: none; }
	.menu { border-top: 0; }
	.menu .container { width: auto; max-width: none; }
	.menu .wsite-menu-default > li { padding: 22px 0; margin-right: 34px; }
	.menu .wsite-menu-default > li > a { padding-bottom: 23px; }
	/* The menu row stays at the top while scrolling */
	.header-wrap { position: sticky; top: 0; z-index: 50; }
	.admin-bar .header-wrap { top: 32px; }
}
/* Banners: a slim photo strip so content starts sooner */
.wsite-header-section { height: 240px; min-height: 0; background-position: center 40%; }
.banner-wrap .banner, .banner-wrap .banner.banner-small { padding: 30px 0; }
.banner-wrap .banner h1 { font-size: 42px; }
.banner-wrap .banner.banner-small h1 { font-size: 34px; }
@media screen and (max-width: 992px) {
	.wsite-header-section { height: 160px; min-height: 0; }
	.banner-wrap .banner, .banner-wrap .banner.banner-small { padding: 20px 0; }
	.banner-wrap .banner h1, .banner-wrap .banner.banner-small h1 { font-size: 1.6em; }
}

/* ---------- 1.5.21: English pages ----------
   The Weebly-era pages use Verdana headings. Chinese text never shows Verdana (it falls through to
   the Chinese font), but English text does, so English headings looked heavy and didn't match the
   Lato headings on the newer pages. English pages use Lato for headings, without capitals, and the
   older column pages (Admission, Contact, Meet with us) use the same 16px text as the newer ones.
   Chinese pages are unchanged. */
.nj-english { --nj-heading-font: var(--nj-ui-font); }
.nj-english .entry-content h2,
.nj-english .entry-content .wsite-content-title { font-size: clamp(22px, 5vw, 28px); line-height: 1.4; letter-spacing: 1px; text-transform: none; font-weight: 300; }
.nj-english .entry-content .wsite-multicol-col h3 { font-size: 21px; font-weight: 700; letter-spacing: .5px; color: #3f4a36; margin: 24px 0 8px; }
.nj-english .entry-content .wsite-multicol-col h3:first-child { margin-top: 0; }
.nj-english .entry-content .wsite-multicol-col p,
.nj-english .entry-content .wsite-multicol-col div.paragraph,
.nj-english .entry-content .wsite-multicol-col li { font-size: 16px; line-height: 1.9; }

/* ---------- 1.2.8: readable page layout (教學內容 and its subpages) ---------- */
.entry-content .nj-page h2 { font-size: 28px; line-height: 1.4; margin: 0 0 16px; padding: 0; }
.entry-content .nj-page h3 { font-family: var(--nj-ui-font); font-size: 19px; letter-spacing: 1px; color: #3f4a36; margin: 28px 0 8px; }
.entry-content .nj-page p, .entry-content .nj-page li { font-size: 16px; line-height: 1.9; }
.entry-content .nj-page .nj-lead { font-size: 18px; line-height: 1.9; color: #4a4a4a; }
.entry-content .nj-page strong { color: #3f4a36; }
.entry-content .nj-page ol, .entry-content .nj-page ul { margin: 0 0 1.2em 1.4em; }
.entry-content .nj-page ol ol { list-style: lower-alpha; margin-bottom: 0.3em; }
.nj-page .nj-rule { border: 0; border-top: 1px solid #e6e1d6; margin: 48px 0; }

.nj-split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: start; margin: 0 0 12px; }
.nj-split .nj-slideshow { margin: 6px 0 0; }
.nj-two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 8px 0 24px; }
.nj-box { padding: 22px 24px; background: #faf6ee; border-top: 3px solid var(--nj-gold); }
.entry-content .nj-box p:last-child { margin-bottom: 0; }

.entry-content ul.nj-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin: 10px 0 26px; padding: 0; list-style: none; }
.entry-content .nj-cards li { margin: 0; padding: 0; }
.entry-content .nj-cards li::before { content: none; }
.entry-content .nj-cards a {
	display: flex; flex-direction: column; height: 100%; padding: 16px 18px; background: #fff;
	border: 1px solid #e6e1d6; border-top: 3px solid var(--nj-gold); color: #444; text-decoration: none; transition: all 200ms ease-in;
}
.entry-content .nj-cards a:hover { border-color: var(--nj-gold-dark); box-shadow: 0 4px 14px rgba(0,0,0,0.06); }
.entry-content .nj-cards strong { font-size: 18px; color: #3f4a36; }
.entry-content .nj-cards strong::after { content: " \2192"; color: var(--nj-gold-dark); }
.entry-content .nj-cards span { margin-top: 2px; font-size: 13px; line-height: 1.5; color: #8a8a8a; }
/* 1.5.4: the arrow sits at the right edge so it never wraps onto its own line */
.entry-content ul.nj-cards { gap: 10px; }
.entry-content .nj-cards a { position: relative; justify-content: center; padding: 14px 32px 14px 14px; }
.entry-content .nj-cards strong { font-size: 17px; overflow-wrap: normal; }
.entry-content .nj-cards strong::after { content: "\2192"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }

.entry-content ul.nj-terms { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 16px; padding: 0; list-style: none; }
.entry-content .nj-terms li { margin: 0; padding: 6px 14px; background: #f6f6f4; border: 1px solid #e6e1d6; font-size: 15px; line-height: 1.6; }
.entry-content .nj-terms li::before { content: none; }

.nj-note { margin: 32px 0; padding: 20px 24px; background: #f6f6f4; border-left: 3px solid #8a9a7b; }
.entry-content .nj-note p { font-size: 15px; line-height: 1.85; color: #555; }
.entry-content .nj-note p:last-child { margin-bottom: 0; }
.nj-note-title { display: block; margin-bottom: 6px; font-size: 13px; letter-spacing: 2px; color: #6f7f61; }
.nj-story { margin: 8px 0 32px; padding: 20px 24px; background: #faf6ee; border-left: 3px solid var(--nj-gold); }
.entry-content .nj-story p { font-size: 15px; line-height: 1.85; color: #555; }
.entry-content .nj-story p:last-child { margin-bottom: 0; }

.nj-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 8px 0 0; }
.entry-content .nj-trio h3 { margin-top: 0; }

.nj-page-cta { margin: 48px 0 8px; padding: 30px 24px; text-align: center; background: #faf6ee; }
.entry-content .nj-page-cta p { margin-bottom: 14px; }
.nj-page-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin: 44px 0 0; padding-top: 18px; border-top: 1px solid #e6e1d6; font-size: 15px; }
.nj-page-nav a { text-decoration: none; }
.entry-content .nj-page .nj-btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 30px; margin: 0 6px 8px;
	border: 2px solid var(--nj-gold-dark); background: #fff; color: var(--nj-gold-dark);
	font-family: var(--nj-menu-font); font-size: 14px; letter-spacing: 2px; text-decoration: none; transition: all 300ms ease-in;
}
.entry-content .nj-page .nj-btn.is-primary { background: var(--nj-gold-dark); color: #fff; }
.entry-content .nj-page .nj-btn:hover { opacity: 0.88; }

@media screen and (max-width: 767px) {
	.nj-split, .nj-two, .nj-trio { grid-template-columns: 1fr; gap: 20px; }
	.entry-content .nj-page h2 { font-size: 22px; }
	.entry-content .nj-page .nj-lead { font-size: 16px; }
	.entry-content .nj-page .nj-btn { width: 100%; margin: 0 0 8px; }
}

/* ---------- 1.3.1: 中 | EN language switch ---------- */
.nj-lang { display: inline-flex; flex: 0 0 auto; border: 1px solid var(--nj-gold-dark); font-family: var(--nj-menu-font); font-size: 13px; letter-spacing: 1px; line-height: 1; white-space: nowrap; }
.nj-lang a, .nj-lang span { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; min-height: 30px; padding: 0 10px; }
.nj-lang .is-current { background: var(--nj-gold-dark); color: #fff; }
.nj-lang a { color: var(--nj-gold-dark); text-decoration: none; transition: background 200ms ease-in; }
.nj-lang a:hover, .nj-lang a:focus-visible { background: #faf6ee; color: var(--nj-gold-dark); }
@media screen and (max-width: 992px) {
	.nj-lang { position: absolute; top: 12px; left: 12px; }
	.nj-lang a, .nj-lang span { min-height: 30px; min-width: 34px; padding: 0 8px; }
}

/* 1.3.2: multiple-choice (checkbox) options: Jetpack wraps them in a <label>, not a <p> */
.entry-content .contact-form .grunion-checkbox-multiple-options > label { position: relative; display: inline-flex; margin: 0; padding: 0; }
.entry-content .contact-form .grunion-checkbox-multiple-options input[type="checkbox"] { position: absolute !important; top: 0; left: 0; opacity: 0 !important; width: 1px !important; height: 1px !important; margin: 0 !important; }
.entry-content .contact-form input:checked + .grunion-checkbox-multiple-label { border-color: var(--nj-gold-dark); background: var(--nj-gold-dark); color: #fff; }
.entry-content .contact-form input:focus-visible + .grunion-checkbox-multiple-label { outline: 2px solid var(--nj-gold-dark); outline-offset: 2px; }
.entry-content .contact-form input:checked + .grunion-checkbox-multiple-label::before { content: "\2713\00a0"; }

/* 1.3.3: slideshow photos fill the frame edge to edge, so they line up with the text */
.nj-slideshow.is-ready { background: none; }
.nj-slideshow.is-ready .nj-slides img { object-fit: cover; }

/* 1.3.4: help line on the 相簿 password screen */
.entry-content .nj-album-pw-help { margin: 0 0 16px; padding: 14px 18px; background: #faf6ee; border-left: 3px solid var(--nj-gold); font-size: 16px; }
/* 1.5.3: English line under the Chinese, and a tidy password row */
.entry-content .nj-album-pw-help .nj-album-pw-en { display: block; margin-top: 4px; font-size: 15px; color: #6b6b6b; }
.nj-album-pw-form p { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.nj-album-pw-form label { font-weight: 700; }
.nj-album-pw-form input[type="password"] { flex: 1 1 200px; max-width: 280px; }

/* 1.3.8: link lists on ordinary pages (e.g. 宣導資訊) */
.entry-content .nj-page .wp-block-latest-posts { list-style: none; margin: 0; padding: 0; }
.entry-content .nj-page .wp-block-latest-posts li { padding: 14px 0; border-bottom: 1px solid #e6e1d6; }
.entry-content .nj-page .wp-block-latest-posts li::before { content: none; }
.entry-content .nj-page .wp-block-latest-posts li a { font-size: 18px; text-decoration: none; }
.entry-content .nj-page .wp-block-latest-posts li a::after { content: " \2192"; }

/* 1.4.2: subject shortcuts at the top of each 教學內容 subpage */
.entry-content .nj-course-nav ul.nj-cards.is-compact { grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 0 0 36px; }
.entry-content .nj-cards.is-compact a { padding: 10px 30px 10px 12px; }
.entry-content .nj-cards.is-compact strong::after { right: 10px; }
.entry-content .nj-cards.is-compact strong { font-size: 16px; }
.entry-content .nj-cards.is-compact span { font-size: 12px; }
.entry-content .nj-cards a.is-current { background: #faf6ee; border-color: var(--nj-gold-dark); border-top-color: var(--nj-gold-dark); cursor: default; }
.entry-content .nj-cards a.is-current strong::after { content: none; }
@media screen and (max-width: 767px) {
	.entry-content .nj-course-nav ul.nj-cards.is-compact { grid-template-columns: repeat(2, 1fr); }
	.entry-content .nj-cards.is-compact span { display: none; }
}

/* 1.4.5: 宣導資訊 / 最新消息 posts: full width, no Related posts */
.nj-plain-post .blog-layout { display: block; }
.nj-plain-post .blog-body { max-width: 860px; margin: 0 auto; float: none; width: auto; }
.nj-plain-post #jp-relatedposts, .nj-plain-post .jp-relatedposts { display: none !important; }

/* ---------- 1.5.9: readability, contrast and photo sizing (UX audit, Nov 2026) ---------- */
/* Darker golds so gold text, buttons and the phone menu reach a 4.5:1 contrast ratio. */
:root { --nj-gold-dark: #836d40; --nj-link: #826d24; }
a { color: var(--nj-link); }
a:hover { color: var(--nj-link-hover); }
.blog-title a { color: var(--nj-link); }
.nj-links a:hover .nj-link-title { color: var(--nj-link-hover); }
.entry-content .nj-cta a:hover, .entry-content .nj-cta a:focus-visible,
.entry-content .nj-home .nj-btn:hover, .entry-content .nj-home .nj-btn:focus-visible { background: #6b5833; border-color: #6b5833; color: #fff; }

/* Footer: dark text on the gold band (white on gold was 2.2:1). */
#footer-wrap, #footer-wrap .paragraph, .nj-footer-contact { color: #2b2b2b; }
#footer-wrap a, .nj-footer-contact a { color: #2b2b2b; border-bottom-color: rgba(0, 0, 0, 0.45); }
.nj-footer-contact a:hover { color: #000; border-bottom-color: #000; }

/* Small grey notes: a little larger and darker. */
.nj-links .nj-link-label, .nj-album-meta, .nj-tiles .nj-tile-note, .nj-extra .nj-extra-note,
.entry-content .nj-posts .wp-block-latest-posts__post-date, .entry-content .nj-aud .wp-block-latest-posts__post-date,
.entry-content .contact-form .grunion-label-required { font-size: 14px; color: #6b6b6b; }
.entry-content .nj-cards span { color: #6b6b6b; }
.nj-note-title, .nj-aud.is-current .nj-kicker { color: #5d6b51; }
.entry-content .has-small-font-size { font-size: 14px !important; }

/* A slideshow on its own (not beside text) stays at a size its photos can fill sharply. */
.entry-content .nj-slideshow { box-sizing: border-box; width: 100%; max-width: 760px; margin-left: auto; margin-right: auto; }
.entry-content .nj-split .nj-slideshow, .entry-content .nj-aud .nj-slideshow, .entry-content .nj-about .nj-slideshow { max-width: none; margin-left: 0; margin-right: 0; }

/* 1.5.11: nothing may push the page sideways on phones. The closed phone menu waits just past
   the right edge, which iPhone Safari would otherwise let people scroll to. */
html { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
.entry-content img, .entry-content figure, .entry-content iframe, .entry-content table { max-width: 100%; }
/* Columns may always shrink to the screen, whatever is inside them. */
.nj-split > *, .nj-two > *, .nj-trio > * { min-width: 0; }
.nj-slideshow:not(.is-ready) { grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr)); }
/* A "slideshow" with one photo left is shown as a single photo, the same size as a slide. */
.nj-slideshow.is-single { display: block; background: #f4f4f4; }
.nj-slideshow.is-single img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
/* 1.5.12: last 13px text on phones (card subtitles, book references, class hours). */
.entry-content .nj-cards:not(.is-compact) span, .entry-content .nj-quotes cite, .entry-content .nj-stage-hrs { font-size: 14px; }

/* 1.5.13: avoid a lone word or two on the last line of a paragraph (e.g. 「呢?」 in blog posts). */
.entry-content { text-wrap: pretty; }

/* 1.5.18: menu headings that only open a sub-menu (no link) keep the normal arrow cursor. */
.menu .wsite-menu-default > li > a:not([href]),
a[role="button"]:not([href]) { cursor: default; }
