/*
Theme Name: Astra Hakkoryu
Theme URI: https://hakkoryu.com/
Description: Child theme of Astra for hakkoryu.com, redesign direction B. Design tokens, self-hosted fonts and small CSS only. Post types and shortcodes live in the Hakkoryu Site plugin.
Author: Metatractor Media
Template: astra
Version: 1.6.14
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-hakkoryu
*/

:root {
	--hk-black: #111111;
	--hk-white: #FFFFFF;
	--hk-band: #F2F2F2;
	--hk-accent: #8C3B1E;
	--hk-text: #1F1F1F;
	--hk-muted: #5C5C5C;
	--hk-border: #C9C9C9;
	--hk-font-heading: "Shippori Mincho B1", "Shippori Fallback", "Hiragino Mincho ProN", "Yu Mincho", serif;
	--hk-font-body: "IBM Plex Sans", "Plex Fallback", "Noto Sans JP", system-ui, sans-serif;
}

body,
button,
input,
select,
textarea {
	font-family: var(--hk-font-body);
	color: var(--hk-text);
	line-height: 1.6;
}

:lang(ja) {
	line-height: 1.8;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.widget-title {
	font-family: var(--hk-font-heading);
	color: var(--hk-text);
}

/* Links and buttons use the accent on white and grey. */
a {
	color: var(--hk-accent);
}

/* On black the accent fails contrast as text: links stay white with an accent underline. */
.site-header a,
.site-footer a,
.ast-builder-grid-row-container.ast-builder-grid-row a {
	color: var(--hk-white);
}

.site-footer a {
	text-decoration-color: var(--hk-accent);
	text-underline-offset: 3px;
}

/* Grey band helper for blocks. */
.hk-band {
	background: var(--hk-band);
}

/* ---------- Tokens added in 1.2.0 ---------- */
:root {
	--hk-rule: #D4D4D4;
	--hk-on-black: #BDBDBD;
	--hk-rule-black: #2A2A2A;
	--hk-menu-bg: #1F1F1F;
	--hk-edge: 1240px;
	--hk-pad: 32px;
}

/* ---------- Header (B) ---------- */
.ast-primary-header-bar,
.main-header-bar,
.main-header-bar-wrap {
	background-color: var(--hk-black);
}

.site-header .site-primary-header-wrap,
.site-header .ast-primary-header-bar .site-primary-header-wrap {
	box-sizing: border-box;
	max-width: calc(var(--hk-edge) + 2 * var(--hk-pad));
	margin-left: auto;
	margin-right: auto;
	padding: 14px var(--hk-pad);
	min-height: 0;
}

.ast-primary-header-bar,
.ast-primary-header-bar .ast-builder-grid-row {
	min-height: 0;
}

.site-header .site-title,
.site-header .site-title a {
	font-family: var(--hk-font-body);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--hk-on-black);
	text-decoration: none;
}

.site-header .site-logo-img img,
.site-header .custom-logo {
	height: 48px;
	width: auto;
	max-width: none;
	display: block;
}

.site-header .site-branding,
.site-header .ast-site-identity {
	padding: 0;
	gap: 12px;
	align-items: center;
}

#ast-desktop-header .main-header-menu {
	gap: 0;
}

#ast-desktop-header .main-header-menu > .menu-item {
	line-height: 1.4;
}

#ast-desktop-header .main-header-menu > .menu-item > .menu-link,
.ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link {
	font-family: var(--hk-font-body);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
	padding: 10px 11px;
	color: var(--hk-white);
	border-bottom: 3px solid transparent;
}

/* Dropdown carets: white, 10px, 6px after the label, centred on the label. */
#ast-desktop-header .main-header-menu > .menu-item-has-children > .menu-link {
	display: inline-flex;
	align-items: center;
}

#ast-desktop-header .main-header-menu > .menu-item > .menu-link .dropdown-menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0 -7px 0 -1px;
	padding: 0;
	width: 24px;
	height: 24px;
	line-height: 0;
	color: var(--hk-white);
	cursor: pointer;
}

#ast-desktop-header .main-header-menu > .menu-item > .menu-link .dropdown-menu-toggle .ast-icon,
#ast-desktop-header .main-header-menu > .menu-item > .menu-link .dropdown-menu-toggle .ast-arrow-svg {
	display: block;
	flex: none;
	width: 10px;
	height: 10px;
	margin: 0;
	fill: var(--hk-white);
	color: var(--hk-white);
}

#ast-desktop-header .main-header-menu > .menu-item > .menu-link .dropdown-menu-toggle:focus-visible {
	outline: 2px solid var(--hk-white);
	outline-offset: 3px;
}

/* Accent only as a bar, never as text colour on black. */
#ast-desktop-header .main-header-menu > .menu-item:hover > .menu-link,
#ast-desktop-header .main-header-menu > .menu-item:focus-within > .menu-link,
#ast-desktop-header .main-header-menu > .current-menu-item > .menu-link,
#ast-desktop-header .main-header-menu > .current-menu-ancestor > .menu-link {
	color: var(--hk-white);
	border-bottom-color: var(--hk-accent);
}

/* Dropdowns open on hover, and from the keyboard through the caret (Enter or Space sets aria-expanded). */
#ast-desktop-header .main-header-menu .sub-menu {
	background-color: var(--hk-menu-bg);
	border: 0;
	border-top: 3px solid var(--hk-accent);
	min-width: 260px;
}

#ast-desktop-header .main-header-menu > .menu-item:has(> .menu-link[aria-expanded="true"]) > .sub-menu,
#ast-desktop-header .main-header-menu > .menu-item:hover > .sub-menu {
	display: block;
	opacity: 1;
	visibility: visible;
	left: 0;
	right: auto;
}

#ast-desktop-header .main-header-menu .sub-menu .menu-link {
	font-size: 15px;
	line-height: 1.4;
	padding: 10px 16px;
	color: var(--hk-white);
	border: 0;
}

#ast-desktop-header .main-header-menu .sub-menu .menu-item:hover > .menu-link,
#ast-desktop-header .main-header-menu .sub-menu .menu-link:focus {
	color: var(--hk-white);
	text-decoration: underline;
	text-decoration-color: var(--hk-accent);
	text-underline-offset: 4px;
}

.site-header a:focus-visible,
.site-footer a:focus-visible,
.ast-mobile-popup-drawer a:focus-visible,
.ast-mobile-popup-drawer button:focus-visible,
.ast-mobile-menu-buttons button:focus-visible {
	outline: 2px solid var(--hk-white);
	outline-offset: 2px;
}

/* Mobile and tablet: 64px row, 36px logo, no title, white toggle. */
@media (max-width: 1100px) {
	#ast-mobile-header .site-primary-header-wrap,
	#ast-mobile-header .ast-primary-header-bar {
		min-height: 64px;
	}

	#ast-mobile-header .ast-primary-header-bar {
		padding: 0 var(--hk-pad);
		display: flex;
		align-items: center;
	}

	#ast-mobile-header .ast-builder-grid-row {
		width: 100%;
		align-items: center;
	}

	#ast-mobile-header .site-logo-img img,
	#ast-mobile-header .custom-logo {
		height: 36px;
		width: auto;
	}

	#ast-mobile-header .ast-site-title-wrap,
	#ast-mobile-header .site-title {
		display: none;
	}
}

body [data-section="section-header-mobile-trigger"] .ast-button-wrap .ast-mobile-menu-trigger-minimal,
body [data-section="section-header-mobile-trigger"] .ast-button-wrap .ast-mobile-menu-trigger-minimal:hover,
body [data-section="section-header-mobile-trigger"] .ast-button-wrap .ast-mobile-menu-trigger-minimal:focus,
body [data-section="section-header-mobile-trigger"] .ast-button-wrap .mobile-menu-wrap .mobile-menu,
.ast-mobile-menu-buttons .menu-toggle {
	color: var(--hk-white);
	background: transparent;
}

body [data-section="section-header-mobile-trigger"] .ast-button-wrap .mobile-menu-toggle-icon .ast-mobile-svg,
body [data-section="section-header-mobile-trigger"] .ast-button-wrap .mobile-menu-toggle-icon .ast-mobile-svg path,
body [data-section="section-header-mobile-trigger"] .ast-button-wrap svg,
body [data-section="section-header-mobile-trigger"] .ast-button-wrap svg path,
body [data-section="section-header-mobile-trigger"] .ast-button-wrap .ast-mobile-svg,
.ast-mobile-menu-buttons .menu-toggle svg,
.ast-mobile-menu-buttons .menu-toggle svg path,
.ast-mobile-popup-drawer .menu-toggle-close svg,
.ast-mobile-popup-drawer .menu-toggle-close svg path,
.ast-mobile-popup-drawer .ast-menu-toggle svg,
.ast-mobile-popup-drawer .ast-menu-toggle svg path {
	fill: var(--hk-white);
	color: var(--hk-white);
}

.ast-mobile-popup-drawer .ast-mobile-popup-inner,
.ast-mobile-popup-drawer .ast-mobile-popup-header {
	background-color: var(--hk-black);
}

.ast-mobile-popup-drawer .menu-link,
.ast-mobile-popup-drawer .ast-menu-toggle,
.ast-mobile-popup-drawer .menu-toggle-close {
	color: var(--hk-white);
}

.ast-mobile-popup-drawer .current-menu-item > .menu-link,
.ast-mobile-popup-drawer .menu-link:hover {
	text-decoration: underline;
	text-decoration-color: var(--hk-accent);
	text-underline-offset: 4px;
}

/* ---------- Footer (B) ---------- */
.site-footer,
.site-footer p,
.site-footer .textwidget,
.site-footer .widget {
	color: var(--hk-on-black);
	font-size: 15px;
}

.site-footer .site-primary-footer-wrap .ast-builder-grid-row-container-inner,
.site-footer .site-below-footer-wrap .ast-builder-grid-row-container-inner {
	box-sizing: border-box;
	max-width: calc(var(--hk-edge) + 2 * var(--hk-pad));
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--hk-pad);
	padding-right: var(--hk-pad);
}

.site-footer .site-primary-footer-wrap {
	padding-top: 64px;
	padding-bottom: 40px;
}

.site-footer .site-primary-footer-wrap .ast-builder-grid-row-container-inner {
	padding-top: 0;
	padding-bottom: 0;
}

.site-footer .site-primary-footer-inner-wrap {
	column-gap: 40px;
}

.site-footer .footer-widget-area .widget {
	margin-bottom: 0;
}

.site-footer .widget-title,
.site-footer .widget-title * {
	font-family: var(--hk-font-body);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.4;
	color: var(--hk-white);
	margin: 0 0 12px;
}

.site-footer a {
	color: var(--hk-on-black);
	text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
	color: var(--hk-white);
	text-decoration: underline;
	text-decoration-color: var(--hk-accent);
	text-underline-offset: 4px;
}

.site-footer .widget_nav_menu ul,
.site-footer .widget_nav_menu li {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer .widget_nav_menu li {
	margin-bottom: 10px;
}

.site-footer .hk-footer-mark {
	display: block;
	font-family: var(--hk-font-heading);
	font-size: 32px;
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 1.3;
	color: var(--hk-white);
	margin-bottom: 8px;
}

.site-footer .site-below-footer-wrap {
	border-top: 0;
	padding: 0;
	min-height: 0;
}

.site-footer .site-below-footer-wrap .ast-builder-grid-row-container-inner {
	border-top: 1px solid var(--hk-rule-black);
	padding-top: 16px;
	padding-bottom: 28px;
}

.site-footer .ast-footer-copyright,
.site-footer .ast-footer-copyright p {
	font-size: 13px;
	line-height: 1.6;
	color: var(--hk-on-black);
	text-align: left;
}

.site-footer .ast-footer-copyright a {
	color: var(--hk-on-black);
	text-decoration: underline;
	text-decoration-color: var(--hk-accent);
	text-underline-offset: 3px;
}

/* Credit line (staging only until Sandai Soke approves). Remove the span in the copyright text to take it out. */
.site-footer .hk-credit {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	line-height: 1.4;
	color: var(--hk-on-black);
}

.site-footer .hk-credit a {
	color: var(--hk-on-black);
}

/* ---------- Home page (B) ---------- */
.home .site-content > .ast-container,
.home #primary,
.home .site-main,
.home .entry-content,
.home article.page {
	display: block;
	max-width: none;
	margin: 0;
	padding: 0;
}

.home .entry-content > * {
	max-width: none;
}

.home .entry-content > .hk-wrap {
	box-sizing: border-box;
	max-width: calc(var(--hk-edge) + 2 * var(--hk-pad));
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--hk-pad);
	padding-right: var(--hk-pad);
}

.home .entry-content > .hk-founder {
	box-sizing: border-box;
	max-width: calc(980px + 2 * var(--hk-pad));
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--hk-pad);
	padding-right: var(--hk-pad);
}

.hk-arts__cols > *,
.hk-hero__row > *,
.hk-founder > * {
	margin-top: 0;
	margin-bottom: 0;
}

.hk-wrap {
	box-sizing: border-box;
	max-width: calc(var(--hk-edge) + 2 * var(--hk-pad));
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--hk-pad);
	padding-right: var(--hk-pad);
}

.hk-hero {
	padding-top: 72px;
	padding-bottom: 64px;
}

.hk-hero__row {
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
	align-items: stretch;
}

.hk-hero__main {
	flex: 999 1 520px;
	min-width: 0;
	display: flex;
	gap: 40px;
}

.hk-hero__kanji {
	writing-mode: vertical-rl;
	font-family: var(--hk-font-heading);
	font-size: 72px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.12em;
	color: var(--hk-accent);
	margin: 0;
}

.hk-hero__text {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 22px;
	padding-bottom: 8px;
	min-width: 0;
}

.hk-hero__text > * {
	margin: 0;
}

.hk-hero__eyebrow {
	font-size: 14px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--hk-muted);
}

.home .hk-hero h1,
.home .hk-hero .wp-block-heading {
	font-family: var(--hk-font-heading);
	font-size: 64px;
	line-height: 1.08;
	font-weight: 700;
	margin: 0;
}

.hk-hero__tagline {
	font-size: 20px;
	color: #3D3D3D;
	max-width: 560px;
}

.hk-hero__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0 24px;
	font-weight: 600;
}

.hk-hero__links a {
	display: inline-block;
	padding: 10px 0;
}

.hk-photo {
	padding-bottom: 88px;
	margin-top: 0;
}

.hk-photo figure {
	margin: 0;
}

.hk-photo img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1920 / 641;
	object-fit: cover;
}

.hk-photo figcaption {
	margin-top: 12px;
	font-size: 14px;
	color: var(--hk-muted);
	text-align: left;
}

.hk-arts {
	border-top: 1px solid var(--hk-rule);
	border-bottom: 1px solid var(--hk-rule);
}

.hk-arts__cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.hk-art {
	padding: 56px 40px 56px 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.hk-art + .hk-art {
	padding: 56px 0 56px 40px;
	border-left: 1px solid var(--hk-rule);
}

.hk-art > * {
	margin: 0;
}

.hk-art__no {
	font-family: var(--hk-font-heading);
	font-size: 18px;
	color: var(--hk-accent);
}

.hk-art h2 {
	line-height: 1.2;
}

.hk-art h2 [lang="ja"] {
	font-size: 22px;
	font-weight: 400;
	color: var(--hk-muted);
}

.hk-art__link {
	font-weight: 600;
}

.hk-founder {
	box-sizing: border-box;
	max-width: calc(980px + 2 * var(--hk-pad));
	margin-left: auto;
	margin-right: auto;
	padding: 104px var(--hk-pad);
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
	align-items: center;
}

.hk-founder img {
	flex: 0 0 220px;
	width: 220px;
	height: 285px;
	object-fit: cover;
	display: block;
	max-width: 100%;
}

.hk-founder__fig {
	flex: 999 1 480px;
	min-width: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.hk-founder__fig blockquote {
	margin: 0;
	padding: 0;
	border: 0;
	font-family: var(--hk-font-heading);
	font-size: 27px;
	line-height: 1.55;
	font-weight: 500;
	color: var(--hk-text);
	font-style: normal;
	quotes: none;
}

.hk-founder__fig blockquote,
.hk-founder__fig blockquote p {
	border: 0;
	border-left: 0;
	padding-left: 0;
	font-style: normal;
}

.hk-founder__fig blockquote p {
	margin: 0;
	font-size: inherit;
}

.hk-founder__caption {
	font-size: 15px;
	color: var(--hk-muted);
	margin: 0;
}

.hk-founder__caption a {
	font-weight: 600;
}

.hk-news {
	background: var(--hk-band);
}

.hk-news .hk-wrap {
	padding-top: 88px;
	padding-bottom: 88px;
}

.hk-news__head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 28px;
}

.hk-news__head > * {
	margin: 0;
}

.hk-news h2,
.hk-instructors h2 {
	font-size: 34px;
	line-height: 1.2;
}

.hk-news__all {
	font-weight: 600;
}

.hk-news .wp-block-latest-posts {
	list-style: none;
	margin: 0;
	padding: 0;
	border-bottom: 1px solid var(--hk-border);
}

.hk-news .wp-block-latest-posts > li {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px 40px;
	margin: 0;
	padding: 22px 0;
	border-top: 1px solid var(--hk-border);
}

.hk-news .wp-block-latest-posts__post-date {
	order: -1;
	flex: 0 0 160px;
	font-size: 15px;
	color: var(--hk-muted);
}

.hk-news .wp-block-latest-posts__post-title {
	flex: 999 1 400px;
	font-size: var(--hk-fs-lead);
	font-weight: 500;
	line-height: 1.4;
	color: var(--hk-text);
	text-decoration: none;
}

.hk-news .wp-block-latest-posts__post-title::after {
	content: "";
	position: absolute;
	inset: 0;
}

.hk-news .wp-block-latest-posts__post-title:hover,
.hk-news .wp-block-latest-posts__post-title:focus {
	text-decoration: underline;
	text-decoration-color: var(--hk-accent);
	text-underline-offset: 4px;
}

.hk-instructors__row {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	align-items: flex-start;
	justify-content: space-between;
	padding-top: 88px;
	padding-bottom: 88px;
}

.hk-instructors__text {
	flex: 999 1 560px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.hk-instructors__text > * {
	margin: 0;
}

.hk-instructors__btns {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.hk-btn,
.hk-btn a {
	display: inline-block;
	box-sizing: border-box;
	min-height: 44px;
	font-weight: 600;
	text-decoration: none;
	line-height: 1.4;
}

.hk-btn a {
	padding: 11px 22px;
}

.hk-btn--solid a {
	background: var(--hk-accent);
	color: var(--hk-white);
	border: 2px solid var(--hk-accent);
}

.hk-btn--outline a {
	background: transparent;
	color: var(--hk-text);
	border: 2px solid var(--hk-text);
}

.hk-btn a:hover,
.hk-btn a:focus {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.hk-posts-title {
	margin: 0 0 1em;
}

@media (max-width: 1100px) {
	.hk-hero {
		padding-top: 40px;
		padding-bottom: 40px;
	}

	.home .hk-hero h1,
	.home .hk-hero .wp-block-heading {
		font-size: 40px;
	}

	.hk-hero__main {
		gap: 20px;
	}

	.hk-hero__kanji {
		font-size: 44px;
	}

	.hk-photo {
		padding-bottom: 56px;
	}

	.hk-art,
	.hk-art + .hk-art {
		padding: 40px 0;
		border-left: 0;
	}

	.hk-art + .hk-art {
		border-top: 1px solid var(--hk-rule);
	}

	.hk-founder {
		padding-top: 64px;
		padding-bottom: 64px;
	}

	.hk-founder__fig blockquote {
		font-size: 22px;
	}

	.hk-news .hk-wrap,
	.hk-instructors__row {
		padding-top: 56px;
		padding-bottom: 56px;
	}

	.hk-news .wp-block-latest-posts__post-date {
		flex-basis: 100%;
	}

}

.home .entry-content .hk-founder__fig blockquote.wp-block-quote,
.home .entry-content .hk-founder__fig blockquote.wp-block-quote p {
	font-style: normal;
	border: 0;
	padding: 0;
}

/* Mobile menu in dropdown mode: black panel, white links, visible focus. */
@media (max-width: 1100px) {
	#ast-mobile-header .main-header-bar-navigation,
	#ast-mobile-header .main-navigation,
	#ast-mobile-header .main-header-menu,
	#ast-mobile-header .main-header-menu .sub-menu {
		background-color: var(--hk-black);
	}

	#ast-mobile-header .main-header-menu .sub-menu {
		background-color: var(--hk-menu-bg);
		border: 0;
	}

	#ast-mobile-header .main-header-menu .menu-link,
	#ast-mobile-header .main-header-menu .menu-item > .menu-link,
	#ast-mobile-header .main-header-menu .ast-menu-toggle,
	#ast-mobile-header .main-header-menu .menu-item:hover > .menu-link,
	#ast-mobile-header .main-header-menu .current-menu-item > .menu-link {
		color: var(--hk-white);
	}

	#ast-mobile-header .main-header-menu .menu-item {
		border-bottom: 1px solid var(--hk-rule-black);
	}

	#ast-mobile-header .main-header-menu .ast-menu-toggle svg,
	#ast-mobile-header .main-header-menu .ast-menu-toggle svg path {
		fill: var(--hk-white);
	}

	#ast-mobile-header .main-header-menu .menu-link:hover,
	#ast-mobile-header .main-header-menu .menu-link:focus {
		text-decoration: underline;
		text-decoration-color: var(--hk-accent);
		text-underline-offset: 4px;
	}
}

@media (max-width: 1100px) {
	#ast-mobile-header .ast-mobile-header-content {
		background-color: var(--hk-black);
		border: 0;
	}
}

@media (max-width: 1100px) {
	#masthead #ast-mobile-header .ast-mobile-header-content,
	#masthead #ast-mobile-header .ast-mobile-header-content .main-header-bar-navigation {
		background-color: #111111;
	}
}

@media (max-width: 1100px) {
	#masthead #ast-mobile-header .main-header-menu .menu-item,
	#masthead #ast-mobile-header .main-header-menu .menu-link,
	#masthead #ast-mobile-header .main-header-menu .ast-menu-toggle,
	#masthead #ast-mobile-header .main-header-menu .sub-menu .menu-link {
		background-color: transparent;
		color: #FFFFFF;
	}
}

.home .entry-content > .hk-news,
.home .entry-content > .hk-instructors,
.home .entry-content > .hk-arts {
	padding-top: 0;
	padding-bottom: 0;
	padding-left: 0;
	padding-right: 0;
}

.hk-instructors__row > *,
.hk-news .hk-wrap > * {
	margin-top: 0;
	margin-bottom: 0;
}

.hk-news .hk-news__head {
	margin-bottom: 28px;
}

.site-footer .site-below-footer-wrap .ast-builder-grid-row,
.site-footer .site-below-footer-wrap .ast-builder-footer-grid-columns {
	max-width: none;
	margin-left: 0;
	margin-right: 0;
	padding-left: 0;
	padding-right: 0;
}

.site-footer .site-below-footer-wrap .ast-builder-grid-row-container-inner {
	width: 100%;
}

/* Facebook footer column (text-15): icon as a 40px block with 12px below, text under it. */
.site-footer .footer-widget-area .textwidget img {
	display: block;
	float: none;
	width: 40px;
	height: auto;
	max-width: 40px;
	margin: 0 0 12px;
}

/* ===================== Phase 3: interior pages, posts, search, 404, forms ===================== */
:root {
	--hk-link-hover: #6E2E17;
	--hk-prose: 800px;
}

/* ---------- Type and spacing scales (1.6.0, John 2026-11-19) ---------- */
:root {
	--hk-fs-meta: 14px;
	--hk-fs-ui: 15px;
	--hk-fs-table: 16px;
	--hk-fs-body: 18px;
	--hk-fs-lead: 20px;
	--hk-fs-h4: 18px;
	--hk-fs-h3: clamp(20px, 17.6px + 0.5vw, 22px);
	--hk-fs-h2: clamp(24px, 19.2px + 1.2vw, 30px);
	--hk-fs-title: clamp(30px, 22.4px + 2.2vw, 40px);
	--hk-s-1: 4px;
	--hk-s-2: 8px;
	--hk-s-3: 12px;
	--hk-s-4: 16px;
	--hk-s-5: 24px;
	--hk-s-6: 32px;
	--hk-s-7: 48px;
	--hk-s-8: 64px;
	--hk-s-9: 96px;
}

/* J4: phone side padding 32 to 24 below 601px. Header, content and footer all read --hk-pad. */
@media (max-width: 600px) {
	:root {
		--hk-pad: 24px;
	}
}

body {
	background: var(--hk-white);
}

/* Content edge lines up with the header at 1440 (100px). */
.site-content > .ast-container,
.ast-container {
	box-sizing: border-box;
	max-width: calc(var(--hk-edge) + 2 * var(--hk-pad));
	padding-left: var(--hk-pad);
	padding-right: var(--hk-pad);
}

.site-header .ast-container,
.site-footer .ast-container {
	padding-left: var(--hk-pad);
	padding-right: var(--hk-pad);
}

body:not(.home) .site-content {
	background: var(--hk-white);
}

/* !important: Astra's inline rule .ast-plain-container.ast-no-sidebar #primary outranks this selector and zeroed the padding at 1100px and below. */
body:not(.home) #primary,
body:not(.home) #secondary {
	padding-top: var(--hk-s-7) !important;
	padding-bottom: var(--hk-s-8) !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

/* J1 and J2 (John, 2026-11-19): desktop 64 above the title and 96 below the last block, every template. */
@media (min-width: 1101px) {
	body:not(.home) #primary,
	body:not(.home) #secondary {
		padding-top: var(--hk-s-8) !important;
		padding-bottom: var(--hk-s-9) !important;
	}
}

/* Title: one H1, 56px above and 32px below. */
body:not(.home) .entry-header {
	margin: 0 0 32px;
	padding: 0;
}

body:not(.home) .entry-title,
body:not(.home) .page-title,
body:not(.home) h1.hk-posts-title {
	font-family: var(--hk-font-heading);
	font-size: var(--hk-fs-title);
	font-weight: 700;
	line-height: 1.2;
	color: var(--hk-black);
	margin: 0;
}

body:not(.home) .entry-title a {
	color: var(--hk-black);
	text-decoration: none;
}

/* Prose. */
.entry-content,
.entry-summary,
.textwidget {
	font-size: var(--hk-fs-body);
	line-height: 1.7;
	color: var(--hk-text);
}

.entry-content > *,
.ast-archive-description,
.search-no-results .page-content > * {
	max-width: var(--hk-prose);
}

.entry-content > .alignwide,
.entry-content > table,
.entry-content > .hk-wide,
.entry-content > .hk-aside,
.entry-content > .wp-block-table {
	max-width: var(--hk-edge);
}

.entry-content h2 {
	font-family: var(--hk-font-heading);
	font-size: var(--hk-fs-h2);
	line-height: 1.25;
	font-weight: 700;
	margin: var(--hk-s-7) 0 var(--hk-s-4);
}

.entry-content h3 {
	font-family: var(--hk-font-heading);
	font-size: var(--hk-fs-h3);
	line-height: 1.3;
	font-weight: 700;
	margin: var(--hk-s-6) 0 var(--hk-s-3);
}

.entry-content h4 {
	font-family: var(--hk-font-heading);
	font-size: var(--hk-fs-h4);
	line-height: 1.4;
	font-weight: 700;
	margin: var(--hk-s-5) 0 var(--hk-s-2);
}

.entry-content h2:first-child,
.entry-content h3:first-child {
	margin-top: 0;
}

.entry-content a,
.textwidget a,
.entry-summary a,
.comment-content a {
	color: var(--hk-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.entry-content a:hover,
.entry-content a:focus,
.textwidget a:hover,
.textwidget a:focus {
	color: var(--hk-link-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 2px solid var(--hk-accent);
	outline-offset: 2px;
}

.entry-content ul,
.entry-content ol {
	margin: 0 0 1.2em 1.4em;
	padding: 0;
}

.entry-content li {
	margin-bottom: 0.4em;
}

/* Block-layout pages 1.5.7: Astra's block layout (.entry-content[data-ast-blocks-layout] > *) sets max-width 1240px and
   margin auto on every top-level child, so text on those pages ran 1240px wide and the 800px prose rule lost. Same prose
   column as the other pages, left aligned. Wide items keep the width the other pages give them; the home page is excluded. */
body:not(.home) .entry-content[data-ast-blocks-layout] > :not(.alignwide):not(.alignfull):not(.hk-wide):not(.hk-aside):not(.wp-block-table):not(table):not(ul):not(ol):not(.wp-block-gallery):not(.hakkoryu-tabs):not(.hakkoryu-instructor-tabs) {
	max-width: var(--hk-prose);
	margin-left: 0;
	margin-right: auto;
}

body:not(.home) .entry-content[data-ast-blocks-layout] > .hk-aside {
	max-width: var(--hk-edge);
	margin-left: 0;
	margin-right: 0;
}

body:not(.home) .entry-content[data-ast-blocks-layout] > ul,
body:not(.home) .entry-content[data-ast-blocks-layout] > ol {
	max-width: var(--hk-prose);
	margin-left: 1.4em;
	margin-right: auto;
}

/* Lists 1.5.6: Astra's block layout rule (.entry-content[data-ast-blocks-layout] > *) sets margin-left: auto on top-level
   children and outranks the rule above, so lists on those pages sat flush with the column and their bullets hung outside it.
   Same indent as every other page. Nested lists take the same step again from the rule above. */
.entry-content[data-ast-blocks-layout] > ul,
.entry-content[data-ast-blocks-layout] > ol {
	margin-left: 1.4em;
}

.entry-content blockquote {
	margin: 1.6em 0;
	padding: 0 0 0 24px;
	border: 0;
	border-left: 3px solid var(--hk-accent);
	font-style: normal;
	color: var(--hk-text);
}

.entry-content hr,
.entry-content .wp-block-separator {
	border: 0;
	border-top: 1px solid var(--hk-rule);
	background: none;
	height: 0;
	margin: 2em 0;
}

/* Legacy images: never wider than the column, never stretched. Floats stack under 600px. */
.entry-content img {
	max-width: 100%;
	height: auto;
}

.entry-content .alignleft {
	float: left;
	margin: 0.3em 24px 1em 0;
}

.entry-content .alignright {
	float: right;
	margin: 0.3em 0 1em 24px;
}

.entry-content .aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.entry-content .wp-caption {
	max-width: 100%;
}

.entry-content .wp-caption-text,
.entry-content figcaption {
	font-size: 14px;
	color: var(--hk-muted);
}

@media (max-width: 600px) {
	.entry-content .alignleft,
	.entry-content .alignright {
		float: none;
		display: block;
		margin: 0 0 1em;
	}
}

/* Embedded media scale to the width at 16:9. */
.entry-content iframe,
.entry-content video,
.entry-content embed,
.entry-content object {
	max-width: 100%;
}

.entry-content iframe[src*="youtube"],
.entry-content iframe[src*="vimeo"],
.entry-content iframe[src*="youtu.be"] {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
}

/* Tables in content scroll inside themselves at narrow widths. */
.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--hk-fs-table);
	margin: 0 0 var(--hk-s-5);
}

.entry-content th,
.entry-content td {
	border: 1px solid var(--hk-rule);
	padding: 12px;
	text-align: left;
	vertical-align: top;
}

.entry-content th {
	background: var(--hk-band);
	font-weight: 600;
}

@media (max-width: 1100px) {
	.entry-content table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}

/* Instructor list. */
#shihan-list,
table.hk-instructors {
	width: 100%;
}

#shihan-list tr.row-data td,
table.hk-instructors td {
	border: 0;
	border-top: 1px solid var(--hk-rule);
}

#shihan-list tr:nth-child(odd),
#shihan-list tr:nth-child(even) {
	background: transparent;
}

#shihan-list tr.row-header th,
table.hk-instructors th {
	background: var(--hk-band);
	border: 1px solid var(--hk-rule);
	border-left: 0;
	border-right: 0;
}

/* Old shortcodes in B (these win over the plugin's stylesheet). */
.entry-content span.dropcap {
	font-family: var(--hk-font-heading);
	font-size: 300%;
	font-weight: 700;
	line-height: 0.75;
	color: var(--hk-accent);
	background: transparent;
}

.entry-content .woo-sc-hr {
	border: 0;
	border-bottom: 1px solid var(--hk-rule);
	padding-top: 0;
	margin: 2em 0;
}

.entry-content .woo-sc-box.woo-sc-box {
	background: var(--hk-band);
	border: 1px solid var(--hk-rule);
	border-radius: 0;
	padding: 16px 20px;
	color: var(--hk-text);
}

/* Aside (text of the old sidebar widget, at the end of three pages). */
.hk-aside {
	box-sizing: border-box;
	margin-top: 3em;
	padding: 24px;
	background: var(--hk-band);
	border: 1px solid var(--hk-rule);
}

.hk-aside h2 {
	margin: 0 0 var(--hk-s-2);
	font-size: var(--hk-fs-h3);
}

.hk-aside p {
	margin: 0;
}

/* ---------- Posts, archives and search: ruled list ---------- */
.blog .ast-row,
.archive .ast-row,
.search .ast-row,
.blog #main > .ast-row {
	display: block;
	margin: 0;
}

.ast-article-post,
.ast-article-post .post-content {
	background: transparent;
	box-shadow: none;
	border-radius: 0;
	padding: 0;
	margin: 0;
	border: 0;
}

.blog .ast-article-post,
.archive .ast-article-post,
.search .ast-article-post {
	position: relative;
	display: block;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 22px 0;
	border-top: 1px solid var(--hk-border);
}

.blog #main > .ast-article-post:last-of-type,
.archive #main > .ast-article-post:last-of-type,
.search #main > .ast-article-post:last-of-type {
	border-bottom: 1px solid var(--hk-border);
}

.blog .ast-article-post .post-content,
.archive .ast-article-post .post-content,
.search .ast-article-post .post-content {
	display: grid;
	grid-template-columns: 160px 1fr;
	column-gap: 40px;
	align-items: baseline;
}

.blog .ast-article-post .entry-header,
.archive .ast-article-post .entry-header,
.search .ast-article-post .entry-header {
	display: contents;
}

.ast-article-post .entry-meta {
	grid-column: 1;
	grid-row: 1;
	margin: 0;
	font-size: 15px;
	font-weight: 400;
	color: var(--hk-muted);
}

.ast-article-post .entry-meta * {
	color: var(--hk-muted);
	font-weight: 400;
}

.ast-article-post .entry-title {
	grid-column: 2;
	grid-row: 1;
	margin: 0;
	font-size: var(--hk-fs-lead);
	font-weight: 500;
	line-height: 1.4;
	font-family: var(--hk-font-body);
}

.ast-article-post .entry-title a {
	color: var(--hk-text);
	text-decoration: none;
}

.ast-article-post .entry-title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.ast-article-post .entry-title a:hover,
.ast-article-post .entry-title a:focus {
	text-decoration: underline;
	text-decoration-color: var(--hk-accent);
	text-underline-offset: 4px;
}

.ast-article-post .entry-content,
.ast-article-post .entry-summary {
	grid-column: 2;
	grid-row: 2;
	margin-top: 8px;
	font-size: 15px;
	color: var(--hk-muted);
}

.ast-article-post .entry-content p,
.ast-article-post .entry-summary p {
	margin: 0;
	color: var(--hk-muted);
}

.ast-article-post .ast-blog-featured-section,
.ast-article-post .post-thumb-img-content {
	display: none;
}

.ast-pagination,
.ast-pagination .nav-links,
.navigation.pagination {
	margin-top: 32px;
}

.ast-pagination .page-numbers,
.navigation.pagination .page-numbers {
	min-width: 44px;
	min-height: 44px;
	line-height: 44px;
	display: inline-block;
	text-align: center;
	color: var(--hk-accent);
	border: 1px solid var(--hk-rule);
	margin: 0 4px 4px 0;
	text-decoration: none;
}

.ast-pagination .page-numbers.current,
.navigation.pagination .page-numbers.current {
	background: var(--hk-accent);
	border-color: var(--hk-accent);
	color: var(--hk-white);
}

@media (max-width: 1100px) {
	.blog .ast-article-post .post-content,
	.archive .ast-article-post .post-content,
	.search .ast-article-post .post-content {
		grid-template-columns: 1fr;
	}

	.ast-article-post .entry-meta,
	.ast-article-post .entry-title,
	.ast-article-post .entry-content,
	.ast-article-post .entry-summary {
		grid-column: 1;
	}

	.ast-article-post .entry-meta {
		grid-row: 1;
		margin-bottom: 4px;
	}

	.ast-article-post .entry-title {
		grid-row: 2;
	}

	.ast-article-post .entry-content,
	.ast-article-post .entry-summary {
		grid-row: 3;
	}

	.hk-posts-title {
		margin-bottom: 24px;
	}
}

/* Single post meta (Posted in, Date posted: wording the old theme showed). */
.hk-post-meta {
	margin: 12px 0 0;
	font-size: 15px;
	line-height: 1.5;
	color: var(--hk-muted);
}

.hk-post-meta div {
	margin: 0;
}

.hk-post-meta a {
	color: var(--hk-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.post-navigation,
.ast-single-post .post-navigation {
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--hk-rule);
}

.post-navigation a {
	color: var(--hk-accent);
	min-height: 44px;
	display: inline-flex;
	align-items: center;
}

/* Sidebar below the content on phones, widgets styled to match. */
#secondary .widget-title {
	font-size: var(--hk-fs-h3);
	font-weight: 700;
	margin: 0 0 12px;
}

#secondary .widget {
	margin-bottom: 36px;
}

#secondary a {
	color: var(--hk-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

#secondary .wp-block-latest-posts__post-date {
	display: block;
	color: var(--hk-muted);
	font-size: 14px;
	margin-bottom: 10px;
}

/* ---------- Search form and 404 ---------- */
.search-form,
.widget_search form {
	display: flex;
	gap: 8px;
	max-width: 520px;
}

.search-form .search-field,
input[type="search"] {
	min-height: 44px;
	height: 44px;
	border: 1px solid #8C8C8C;
	border-radius: 0;
	padding: 0 12px;
	font-size: var(--hk-fs-body);
	flex: 1;
	background: var(--hk-white);
}

.search-form .search-submit,
.search-form button[type="submit"],
input[type="submit"].search-submit {
	min-height: 44px;
	min-width: 44px;
	border: 2px solid var(--hk-accent);
	background: var(--hk-accent);
	color: var(--hk-white);
	border-radius: 0;
	padding: 0 18px;
	font-weight: 600;
}

.error404 .page-title,
.search-no-results .page-title {
	margin-bottom: 16px;
}

/* ---------- Gravity Forms (display only) ---------- */
.entry-content .gform_wrapper {
	max-width: var(--hk-prose);
}

.gform_wrapper .gfield_label,
.gform_wrapper label.gform-field-label {
	display: block;
	font-weight: 600;
	font-size: 16px;
	margin-bottom: 6px;
	color: var(--hk-text);
}

.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper input[type="url"],
.gform_wrapper input[type="number"],
.gform_wrapper select,
.gform_wrapper textarea {
	width: 100%;
	box-sizing: border-box;
	min-height: 44px;
	border: 1px solid #8C8C8C;
	border-radius: 0;
	padding: 8px 12px;
	font-size: var(--hk-fs-body);
	background: var(--hk-white);
	color: var(--hk-text);
}

.gform_wrapper input:focus,
.gform_wrapper select:focus,
.gform_wrapper textarea:focus {
	outline: 2px solid var(--hk-accent);
	outline-offset: 0;
	border-color: var(--hk-accent);
}

.gform_wrapper .gform_button,
.gform_wrapper input[type="submit"],
.gform_wrapper button[type="submit"] {
	min-height: 44px;
	min-width: 44px;
	padding: 10px 28px;
	border: 2px solid var(--hk-accent);
	background: var(--hk-accent);
	color: var(--hk-white);
	border-radius: 0;
	font-weight: 600;
	font-size: var(--hk-fs-body);
	cursor: pointer;
}

.gform_wrapper .gfield_error input,
.gform_wrapper .gfield_error textarea,
.gform_wrapper .gfield_error select {
	border: 2px solid #A00000;
}

.gform_wrapper .gfield_validation_message,
.gform_wrapper .validation_message,
.gform_wrapper .gform_validation_errors {
	color: #A00000;
	font-weight: 600;
}

.gform_wrapper .gfield_validation_message::before,
.gform_wrapper .validation_message::before {
	content: "Error: ";
}

/* ---------- Facebook icon (widget text-15) ---------- */
.site-footer .hk-fb {
	display: block;
	width: 40px;
	height: 40px;
	margin: 0 0 12px;
	color: var(--hk-on-black);
	text-decoration: none;
}

.site-footer .hk-fb svg {
	display: block;
	width: 40px;
	height: 40px;
}

.site-footer .hk-fb:hover,
.site-footer .hk-fb:focus {
	color: var(--hk-white);
	text-decoration: none;
}

/* Astra free forces its 3-column card grid on the posts page, archives and search; this turns it into the ruled list. */
body .ast-row {
	display: block;
	margin-left: 0;
	margin-right: 0;
}

body .ast-row > .ast-article-post.ast-article-post {
	display: block;
	float: none;
	width: 100%;
	max-width: none;
	flex: none;
	margin: 0;
	padding: 22px 0;
	background: none;
	border: 0;
	border-top: 1px solid var(--hk-border);
	box-shadow: none;
	position: relative;
}

body .ast-row > .ast-article-post:last-of-type {
	border-bottom: 1px solid var(--hk-border);
}

body .ast-article-post .ast-article-inner,
body .ast-article-post .post-content {
	background: none;
	box-shadow: none;
	border: 0;
	border-radius: 0;
	padding: 0;
	margin: 0;
}

body .ast-article-post .post-content {
	display: grid;
	grid-template-columns: 160px 1fr;
	column-gap: 40px;
	align-items: baseline;
}

body .ast-article-post .entry-header {
	display: contents;
}

body .ast-article-post .entry-meta {
	grid-column: 1;
	grid-row: 1;
}

body .ast-article-post .entry-title {
	grid-column: 2;
	grid-row: 1;
}

body .ast-article-post .ast-excerpt-container {
	grid-column: 2;
	grid-row: 2;
	margin-top: 8px;
	font-size: 15px;
	color: var(--hk-muted);
}

body .ast-article-post .ast-excerpt-container p {
	margin: 0;
	color: var(--hk-muted);
}

body .ast-article-post .entry-content.clear {
	display: none;
}

@media (max-width: 1100px) {
	body .ast-article-post .post-content {
		grid-template-columns: 1fr;
	}

	body .ast-article-post .entry-meta,
	body .ast-article-post .entry-title,
	body .ast-article-post .ast-excerpt-container {
		grid-column: 1;
	}

	body .ast-article-post .entry-meta {
		grid-row: 1;
		margin-bottom: 4px;
	}

	body .ast-article-post .entry-title {
		grid-row: 2;
	}

	body .ast-article-post .ast-excerpt-container {
		grid-row: 3;
	}
}

/* Footer widget links stay light on black (the content link rule must not reach the footer). */
.site-footer .textwidget a,
.site-footer .widget a {
	color: var(--hk-on-black);
	text-decoration: none;
}

.site-footer .textwidget a:hover,
.site-footer .textwidget a:focus,
.site-footer .widget a:hover,
.site-footer .widget a:focus {
	color: var(--hk-white);
	text-decoration: underline;
	text-decoration-color: var(--hk-accent);
}

body:not(.home) .ast-article-post .entry-title {
	font-family: var(--hk-font-body);
	font-size: var(--hk-fs-lead);
	font-weight: 500;
	line-height: 1.4;
}

.hk-posts-title {
	margin-bottom: 24px;
}

/* Visible keyboard focus on controls that Astra or Gravity Forms leave without a ring. */
#ast-scroll-top:focus-visible {
	outline: 2px solid var(--hk-white);
	outline-offset: 2px;
	box-shadow: 0 0 0 5px var(--hk-black);
}

.gform_wrapper .gform_button:focus-visible,
.gform_wrapper input[type="submit"]:focus-visible,
.gform_wrapper button[type="submit"]:focus-visible {
	outline: 3px solid var(--hk-black);
	outline-offset: 3px;
}

/* Between 1101px and 1279px the eight menu items need the room the site title uses; the logo stays. */
@media (min-width: 1101px) and (max-width: 1279px) {
	#masthead #ast-desktop-header .ast-site-title-wrap {
		display: none;
	}
}

/* ==========================================================================
   Polish 1.4.2
   One block per root cause. Each can be removed alone.
   ========================================================================== */

/* P1 (High) Solid button text took the content link colour and vanished on the accent fill. */
.entry-content .hk-btn--solid a,
.entry-content .hk-btn--solid a:hover,
.entry-content .hk-btn--solid a:focus {
	color: var(--hk-white);
	text-decoration: none;
}

.entry-content .hk-btn--outline a,
.entry-content .hk-btn--outline a:hover,
.entry-content .hk-btn--outline a:focus {
	color: var(--hk-text);
	text-decoration: none;
}

.entry-content .hk-btn--solid a:hover,
.entry-content .hk-btn--solid a:focus {
	background: var(--hk-link-hover);
	border-color: var(--hk-link-hover);
}

/* P2 (High) Home arts columns forced a 320px minimum and overflowed a 320px screen. */
.hk-arts__cols {
	grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
}

/* P3 (High) The reCAPTCHA widget is 304px wide and overflowed a 320px screen. */
@media (max-width: 359px) {
	.gform_wrapper .ginput_recaptcha {
		transform: scale(0.85);
		transform-origin: 0 0;
	}
}

/* P4 (Medium) Archive and search titles sat 48px in from the edge and at 32px, unlike other page titles. */
body:not(.home) .ast-archive-description,
body.search:not(.home) .ast-archive-description,
body.search-results:not(.home) .ast-archive-description {
	padding-left: 0;
	padding-right: 0;
}

body:not(.home) .ast-archive-description .ast-archive-title,
body.search:not(.home) .ast-archive-description .ast-archive-title {
	font-size: var(--hk-fs-title);
	line-height: 1.2;
}

/* P5 (Medium) Tap targets under 44px at phone width: logo, menu button, news titles, archive select. */
@media (max-width: 1100px) {
	.ast-mobile-menu-buttons .menu-toggle,
	.main-header-menu-toggle {
		min-width: 44px;
		min-height: 44px;
	}

	#masthead .custom-logo-link {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}

	.hk-news .wp-block-latest-posts__post-title,
	.wp-block-latest-posts__post-title {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}

	.widget_archive select {
		min-height: 44px;
	}
}

/* P6 (Low) Balanced heading wraps remove one-word last lines. */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-title,
.page-title,
.hk-art h2 {
	text-wrap: balance;
}

/* ==========================================================================
   Polish 1.4.3
   ========================================================================== */

/* Q1 (Medium) WordPress block-gap gave the second home button a 24px top margin inside a flex row, so it sat lower than the first. */
.hk-instructors__btns {
	align-items: flex-start;
}

.hk-instructors__btns > * {
	margin-block-start: 0;
	margin-block-end: 0;
}

/* Q2 (Medium) Same block-gap margin pushed the home hero text 24px below the Japanese title column. */
.hk-hero__main > * {
	margin-block-start: 0;
	margin-block-end: 0;
}

/* ==========================================================================
   Polish 1.4.4
   ========================================================================== */

/* R1 (Medium) Legacy aligned images belong to the 800px prose column, not the 1240px container.
   Right floats sit at the column's right edge with the same 24px gutter as left floats; centered
   figures centre on the column axis and never exceed it. The 50% and 400px terms keep this correct
   inside a paragraph (an 800px parent) and in narrow containers. */
body:not(.home) .entry-content .alignright {
	margin-right: max(0px, calc(100% - var(--hk-prose)));
}

body:not(.home) .entry-content .aligncenter {
	display: block;
	max-width: min(100%, var(--hk-prose));
	margin-left: min(50%, calc(var(--hk-prose) / 2));
	margin-right: 0;
	transform: translateX(-50%);
}

body:not(.home) .entry-content .alignleft,
body:not(.home) .entry-content .alignright {
	max-width: min(100%, var(--hk-prose));
}

/* Floats release at 768px and below: stacked, centered, same spacing above and below. */
@media (max-width: 768px) {
	body:not(.home) .entry-content .alignleft,
	body:not(.home) .entry-content .alignright,
	body:not(.home) .entry-content .aligncenter {
		float: none;
		display: block;
		max-width: 100%;
		margin: 0 auto 1.5em;
		transform: none;
	}
}

/* ==========================================================================
   Plugin run 2
   ========================================================================== */

/* Instructor list: heading, filter, rows hidden by the filter. */
.hakkoryu-list-title {
	margin: 0 0 0.75em;
}

.hakkoryu-filter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin: 0 0 16px;
}

.hakkoryu-filter label {
	font-weight: 600;
}

.hakkoryu-filter input[type="text"] {
	flex: 1 1 220px;
	max-width: 360px;
	min-height: 44px;
}

.hakkoryu-filter button {
	min-height: 44px;
	padding: 0 16px;
	background: transparent;
	color: var(--hk-text);
	border: 1px solid var(--hk-text);
	border-radius: 0;
	cursor: pointer;
}

.hakkoryu-filter button:hover {
	background: var(--hk-band);
}

.hakkoryu-filter__count {
	flex-basis: 100%;
	margin: 0;
	min-height: 0;
	color: var(--hk-muted);
}

.hakkoryu-instructors tr[hidden] {
	display: none;
}

/* Under 768px each row becomes a card; cells are labelled by data-label. */
@media (max-width: 767px) {
	table.hakkoryu-instructors {
		display: block;
		overflow: visible;
	}

	table.hakkoryu-instructors thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	table.hakkoryu-instructors tbody,
	table.hakkoryu-instructors tr.row-data {
		display: block;
	}

	table.hakkoryu-instructors tr.row-data {
		margin: 0 0 16px;
		padding: 12px 16px;
		background: var(--hk-white);
		border: 1px solid var(--hk-rule);
	}

	table.hakkoryu-instructors tr.row-data[hidden] {
		display: none;
	}

	#shihan-list tr.row-data td,
	table.hakkoryu-instructors tr.row-data td {
		display: block;
		padding: 6px 0;
		border: 0;
		border-top: 0;
		text-align: left;
	}

	table.hakkoryu-instructors tr.row-data td:first-child {
		font-size: 1.125em;
		font-weight: 600;
		padding-top: 0;
	}

	table.hakkoryu-instructors tr.row-data td:not(:first-child):not(:empty)::before {
		content: attr(data-label) ": ";
		font-weight: 600;
		color: var(--hk-muted);
	}

	table.hakkoryu-instructors tr.row-data td:not(:first-child):empty {
		display: none;
	}
}

/* The old align and nowrap attributes are gone; these rules keep the same look above 768px. */
@media (min-width: 768px) {
	table.hakkoryu-instructors td:nth-child(2),
	table.hakkoryu-instructors td:nth-child(3) {
		white-space: nowrap;
	}

	table.hakkoryu-instructors td:nth-child(4) {
		text-align: center;
	}
}

/* ==========================================================================
   Plugin run 3
   ========================================================================== */

/* Tabs on the Instructor List. Selected tab: black fill, white text, heavier weight (more than colour). */
.hakkoryu-tabs__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 24px;
	padding: 0;
	border-bottom: 2px solid var(--hk-black);
}

.hakkoryu-tab {
	min-height: 44px;
	margin: 0 0 -2px;
	padding: 10px 20px;
	font: inherit;
	font-weight: 600;
	color: var(--hk-black);
	background: var(--hk-white);
	border: 2px solid var(--hk-black);
	border-bottom: 0;
	border-radius: 0;
	cursor: pointer;
}

.hakkoryu-tab:hover {
	background: var(--hk-band);
}

.hakkoryu-tab[aria-selected="true"] {
	font-weight: 700;
	color: var(--hk-white);
	background: var(--hk-black);
	padding-bottom: 12px;
}

.hakkoryu-tab__count {
	font-weight: 400;
}

.hakkoryu-tab:focus-visible,
.hakkoryu-panel:focus-visible {
	outline: 3px solid var(--hk-accent);
	outline-offset: 2px;
}

.hakkoryu-panel[hidden],
.hakkoryu-tabs__list[hidden] {
	display: none;
}

.hakkoryu-panel + .hakkoryu-panel {
	margin-top: 48px;
}

.is-enhanced .hakkoryu-panel + .hakkoryu-panel {
	margin-top: 0;
}

.entry-content > .hakkoryu-tabs {
	max-width: var(--hk-edge);
}

.hakkoryu-tabs .hakkoryu-panel__bar {
	margin: 0;
	padding: 14px 16px;
	font-family: var(--hk-font-body);
	font-size: var(--hk-fs-h4);
	font-weight: 700;
	line-height: 1.4;
	color: var(--hk-black);
	background: var(--hk-band);
}

.hakkoryu-tabs .hakkoryu-panel__intro {
	margin: 0;
	padding: 12px 16px 0;
	max-width: var(--hk-prose);
}

.hakkoryu-panel .hakkoryu-filter {
	margin-top: 16px;
}

.hakkoryu-panel .hakkoryu-instructors {
	margin-top: 0;
}

/* Single instructor page: name and details beside the photo, no gap above the name. */
.hakkoryu-shihan > article > header {
	display: flow-root;
	max-width: var(--hk-prose);
}

.hakkoryu-shihan > article > header img.alignright {
	float: right;
	margin: 0 0 24px 32px;
	max-width: 40%;
	height: auto;
}

.hakkoryu-shihan > article > header h1,
.hakkoryu-shihan > article > header h3 {
	clear: none;
}

.hakkoryu-shihan > article > header h1 {
	margin: 0 0 4px;
}

.hakkoryu-shihan > article > header h3 {
	margin: 0 0 16px;
	font-weight: 500;
}

.hakkoryu-shihan .header-data > div {
	margin: 0 0 6px;
}

.hakkoryu-shihan > article > .entry {
	max-width: var(--hk-prose);
	margin-top: 24px;
}

@media (max-width: 767px) {
	.hakkoryu-tab {
		flex: 1 1 auto;
		padding: 10px 12px;
	}

	.hakkoryu-shihan > article > header img.alignright {
		float: none;
		display: block;
		max-width: 100%;
		margin: 0 0 16px;
	}
}

/* Header and icon run (1.5.4) */
.hk-nowrap {
	white-space: nowrap;
}

/* ==========================================================================
   Type and spacing 1.6.0 (John, 2026-11-19: scale approved; J1, J2, J4 at 24px yes; J3 no, prose stays 800; table cells 16)
   Values above now read the tokens. This block holds what has to outrank Astra's own inline CSS.
   ========================================================================== */

/* Meta, captions, dates, copyright, credit: one step (14, line 1.5). The theme prints 13.6, 13.8 and 12.4 in inline CSS, hence !important. */
.entry-content figcaption,
.entry-content .wp-caption-text,
.hk-post-meta,
.ast-article-post .entry-meta,
#secondary .wp-block-latest-posts__post-date,
.hk-news .wp-block-latest-posts__post-date,
.site-footer .ast-footer-copyright,
.site-footer .ast-footer-copyright p,
.site-footer .hk-credit,
.single .post-navigation a .ast-post-nav,
.gform_wrapper .gfield_description {
	font-size: var(--hk-fs-meta) !important;
	line-height: 1.5 !important;
}

/* Footer text and links share one line height. */
.site-footer .widget,
.site-footer .widget p,
.site-footer .menu-link {
	line-height: 1.6;
}

.entry-content table td,
.entry-content table th {
	line-height: 1.5;
}

/* Shihan entry title is a page title like every other. */
body .hakkoryu-shihan > article > header h1 {
	font-size: var(--hk-fs-title);
	line-height: 1.2;
}

/* One block gap in running text. */
.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote,
.entry-content figure {
	margin-bottom: var(--hk-s-5);
}

/* Aside and band boxes: 48, 32, 24 (Astra's block padding variable gave 51, 34 and 25.5). */
.entry-content > .wp-block-group.hk-aside {
	padding: var(--hk-s-7);
	margin-top: var(--hk-s-7);
}

@media (max-width: 768px) {
	.entry-content > .wp-block-group.hk-aside {
		padding: var(--hk-s-6);
	}
}

@media (max-width: 600px) {
	.entry-content > .wp-block-group.hk-aside {
		padding: var(--hk-s-5);
	}

	/* Title to first content: 24 on phones (32 above 600px). */
	body:not(.home) .entry-header {
		margin-bottom: var(--hk-s-5);
	}
}

/* Menu items: 10 and 12. */
#ast-desktop-header .main-header-menu > .menu-item > .menu-link,
.ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link {
	padding: 10px var(--hk-s-3);
}

/* Footer: 64 above, 32 below; stacked columns 32 apart. */
.site-footer .site-primary-footer-wrap {
	padding-bottom: var(--hk-s-6);
}

/* Headings Astra prints in inline CSS: sidebar widget title line, shihan sub-title, H5. */
#secondary .widget-title {
	line-height: 1.3;
}

body .hakkoryu-shihan > article > header h3 {
	font-size: var(--hk-fs-h3);
	line-height: 1.3;
}

.entry-content h5 {
	font-size: var(--hk-fs-h4);
	line-height: 1.4;
	margin: var(--hk-s-5) 0 var(--hk-s-2);
}

/* ---------- News photo (1.6.1, John 2026-11-19): Mount Fuji under the News title; 3:1 wide, 2:1 on phones ---------- */
.hk-news-photo {
	margin: var(--hk-s-6) 0;
}
.hk-news-photo picture,
.hk-news-photo img {
	display: block;
	width: 100%;
}
.hk-news-photo img {
	height: auto;
	aspect-ratio: 3 / 1;
	object-fit: cover;
}
@media (max-width: 600px) {
	.hk-news-photo {
		margin: var(--hk-s-5) 0;
	}
	.hk-news-photo img {
		aspect-ratio: 2 / 1;
	}
}

/* ---------- Contact page layout (1.6.4, John 2026-11-19): form column with a right sidebar like News; phones read notice, form, instructors, photo ---------- */
.entry-content > .wp-block-group.hk-contact {
	padding: 0;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--hk-s-6);
}
.hk-contact > * {
	margin: 0;
}
.hk-contact h2 {
	margin: 0 0 var(--hk-s-3);
}
.hk-contact .hk-contact-notice h2,
.hk-contact .hk-contact-people h2 {
	font-size: var(--hk-fs-h4);
	line-height: 1.3;
}
.hk-contact .hk-contact-notice p,
.hk-contact .hk-contact-people p {
	font-size: 16px;
	line-height: 1.6;
	margin: 0;
}
.hk-contact .hk-contact-photo {
	max-width: 480px;
}
.hk-contact .hk-contact-photo img {
	display: block;
	width: 100%;
	height: auto;
}
.hk-contact .hk-contact-main h2 + p {
	margin-bottom: var(--hk-s-5);
}
@media (min-width: 1101px) {
	.entry-content > .wp-block-group.hk-contact {
		grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
		grid-template-rows: auto auto 1fr;
		gap: 0;
	}
	.hk-contact .hk-contact-main {
		grid-column: 1;
		grid-row: 1 / span 3;
		padding-right: 60px;
	}
	.hk-contact .hk-contact-people,
	.hk-contact .hk-contact-notice,
	.hk-contact .hk-contact-photo {
		grid-column: 2;
		padding-left: 60px;
		border-left: 1px solid var(--hk-border);
	}
	.hk-contact .hk-contact-people { grid-row: 1; padding-bottom: var(--hk-s-6); }
	.hk-contact .hk-contact-notice { grid-row: 2; padding-bottom: var(--hk-s-6); }
	.hk-contact .hk-contact-photo { grid-row: 3; align-self: stretch; max-width: none; }
}

/* ---------- Content polish (1.6.7, John 2026-11-19): lifted headings keep their old look; captioned figures fit the column; people lists ---------- */
.entry-content h2.hk-look-h3 {
	font-family: var(--hk-font-heading);
	font-size: var(--hk-fs-h3);
	line-height: 1.3;
	font-weight: 700;
	margin: var(--hk-s-6) 0 var(--hk-s-3);
}
.entry-content h3.hk-look-h4 {
	font-family: var(--hk-font-heading);
	font-size: var(--hk-fs-h4);
	line-height: 1.4;
	font-weight: 700;
	margin: var(--hk-s-5) 0 var(--hk-s-2);
}
.entry-content h2.hk-look-h3:first-child,
.entry-content h3.hk-look-h4:first-child {
	margin-top: 0;
}
.entry-content h2.hk-look-h3:last-child,
.entry-content h3.hk-look-h4:last-child {
	margin-bottom: 0;
}
.entry-content .has-text-align-center {
	text-align: center;
}
.entry-content .wp-caption {
	max-width: 100%;
	margin-bottom: var(--hk-s-5);
}
.entry-content .wp-caption img {
	max-width: 100%;
	height: auto;
}
@media (max-width: 600px) {
	.entry-content .wp-caption {
		width: auto !important;
	}
}
/* Organization Outside Of Japan (page 2113): roles are headings, people are a plain list underneath */
.entry-content ul.hk-people,
body:not(.home) .entry-content[data-ast-blocks-layout] > ul.hk-people {
	list-style: none;
	margin: 0 0 var(--hk-s-5);
	padding: 0;
}
.entry-content ul.hk-people li {
	margin: 0;
	padding: var(--hk-s-1) 0;
}

/* Single Shihan entries (1.6.10, John 2026-11-19): the body sits in section.entry, not .entry-content, so its links took no underline (axe link-in-text-block). Same rule as content links. */
.hakkoryu-shihan section.entry a {
	color: var(--hk-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.hakkoryu-shihan section.entry a:hover,
.hakkoryu-shihan section.entry a:focus {
	color: var(--hk-link-hover);
}

/* ---------- Footer privacy links and consent bar (1.6.11) ---------- */
.site-footer .hk-footer-links {
	white-space: nowrap;
}
.site-footer .hk-footer-links .hk-sep {
	margin: 0 8px;
}
.site-footer .hk-footer-links a,
.site-footer .hk-cookie-settings {
	color: var(--hk-on-black);
	font: inherit;
	line-height: inherit;
	text-decoration: underline;
	text-decoration-color: var(--hk-accent);
	text-underline-offset: 3px;
}
.site-footer .hk-cookie-settings {
	display: inline;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	min-height: 0;
}
.site-footer .hk-cookie-settings:hover,
.site-footer .hk-cookie-settings:focus {
	color: var(--hk-white);
	background: none;
}
.site-footer .hk-cookie-settings:focus-visible {
	outline: 2px solid var(--hk-white);
	outline-offset: 2px;
}
.hk-consent {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9990;
	padding: 8px 24px;
	background: var(--hk-black);
	border-top: 1px solid var(--hk-rule-black);
	color: var(--hk-white);
	font-family: var(--hk-font-body);
	font-size: var(--hk-fs-meta);
	line-height: 20px;
	text-align: center;
}
.hk-consent[hidden] {
	display: none;
}
.hk-consent__text {
	display: inline;
	margin: 0;
}
.hk-consent a {
	color: var(--hk-white);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.hk-consent__actions {
	display: inline-flex;
	gap: 8px;
	margin-left: 16px;
	vertical-align: middle;
	white-space: nowrap;
}
.hk-consent .hk-consent__btn {
	min-width: 80px;
	min-height: 32px;
	margin: 0;
	padding: 4px 14px;
	border: 1px solid var(--hk-white);
	border-radius: 2px;
	background: transparent;
	color: var(--hk-white);
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
}
.hk-consent .hk-consent__btn:hover,
.hk-consent .hk-consent__btn:focus {
	background: var(--hk-white);
	color: var(--hk-black);
}
.hk-consent a:focus-visible,
.hk-consent .hk-consent__btn:focus-visible {
	outline: 2px solid var(--hk-white);
	outline-offset: 2px;
}
@media (max-width: 767px) {
	.hk-consent {
		padding: 8px 16px;
		text-align: left;
	}
	.hk-consent__actions {
		margin-left: 10px;
	}
	.hk-consent .hk-consent__btn {
		min-width: 72px;
		padding: 4px 10px;
	}
}

/* Child page lists on Events, Library and Organization (1.6.14) */
.entry-content .hk-child-pages {
	margin-top: 0;
}
.entry-content .hk-child-pages li {
	margin-bottom: 8px;
}
