:root {
	--mh-blue: #0B638B;
	--mh-blue-dark: #084D6D;
	--mh-blue-soft: #EDF6F9;
	--mh-text: #182630;
	--mh-muted: #5E6B74;
	--mh-bg: #FFFFFF;
	--mh-bg-soft: #F6F8F9;
	--mh-border: #DEE6EA;
	--mh-radius: 14px;
	--mh-radius-lg: 22px;
	--mh-shadow: 0 10px 30px rgba(21, 50, 63, .07);
	--mh-container: 1180px;
	--mh-article: 800px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--mh-bg);
	color: var(--mh-text);
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--mh-blue); text-decoration-thickness: 1px; text-underline-offset: .15em; }
a:hover { color: var(--mh-blue-dark); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.site-container { width: min(var(--mh-container), calc(100% - 40px)); margin-inline: auto; }
.article-width { width: min(var(--mh-article), calc(100% - 40px)); margin-inline: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus, .skip-link:focus { clip: auto !important; width: auto; height: auto; margin: 0; padding: 10px 14px; top: 8px; left: 8px; z-index: 100000; background: #fff; color: var(--mh-blue); border-radius: 8px; box-shadow: var(--mh-shadow); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--mh-border); backdrop-filter: blur(10px); }
.admin-bar .site-header { top: 32px; }
.site-header__inner { min-height: 70px; display: flex; align-items: center; gap: 28px; }
.site-branding { flex: 0 0 auto; }
.site-title, .site-footer__brand { color: var(--mh-blue); font-size: 1.45rem; font-weight: 800; letter-spacing: -.03em; text-decoration: none; }
.custom-logo-link { display: flex; align-items: center; }
.custom-logo { max-height: 46px; width: auto; }
.primary-navigation { margin-left: auto; }
.language-switcher { display: flex; align-items: center; gap: 3px; flex: 0 0 auto; padding: 3px; border: 1px solid var(--mh-border); border-radius: 9px; background: #fff; }
.language-switcher .language-menu { display: flex; align-items: center; gap: 3px; margin: 0; padding: 0; list-style: none; }
.language-switcher .language-menu li { margin: 0; padding: 0; }
.language-switcher a { min-width: 31px; padding: 5px 6px; border-radius: 6px; color: #607079; font-size: .72rem; font-weight: 800; line-height: 1; text-align: center; text-decoration: none; }
.language-switcher a:hover { background: var(--mh-blue-soft); color: var(--mh-blue); }
.language-switcher a.is-active, .language-switcher .current-menu-item > a { background: var(--mh-blue); color: #fff; }
.primary-menu, .primary-navigation .menu { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.primary-menu li, .primary-navigation .menu li { position: relative; }
.primary-menu > li > a, .primary-navigation .menu > li > a { display: block; padding: 10px 11px; border-radius: 8px; color: var(--mh-text); font-size: .92rem; font-weight: 650; text-decoration: none; }
.primary-menu > li > a:hover, .primary-menu > li.current-menu-item > a, .primary-navigation .menu > li > a:hover { background: var(--mh-blue-soft); color: var(--mh-blue); }
.primary-menu .sub-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px; margin: 0; padding: 8px; list-style: none; border: 1px solid var(--mh-border); border-radius: 12px; background: #fff; box-shadow: var(--mh-shadow); opacity: 0; visibility: hidden; transform: translateY(5px); transition: .18s ease; }
.primary-menu li:hover > .sub-menu, .primary-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.primary-menu .sub-menu a { display: block; padding: 8px 10px; border-radius: 7px; color: var(--mh-text); font-size: .88rem; text-decoration: none; }
.primary-menu .sub-menu a:hover { background: var(--mh-bg-soft); color: var(--mh-blue); }
.primary-menu .sub-menu .sub-menu { top: -8px; left: calc(100% + 8px); }
.menu-toggle { display: none; margin-left: auto; width: 42px; height: 42px; padding: 9px; border: 1px solid var(--mh-border); border-radius: 9px; background: #fff; color: var(--mh-blue); }
.menu-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.menu-toggle__close { display: none; }
.site-header.is-menu-open .menu-toggle__open { display: none; }
.site-header.is-menu-open .menu-toggle__close { display: inline; }

/* Common */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 19px; border: 1px solid var(--mh-blue); border-radius: 9px; background: var(--mh-blue); color: #fff; font-size: .94rem; font-weight: 700; text-decoration: none; transition: .18s ease; }
.button:hover { background: var(--mh-blue-dark); border-color: var(--mh-blue-dark); color: #fff; transform: translateY(-1px); }
.button--outline { background: #fff; color: var(--mh-blue); }
.button--outline:hover { background: var(--mh-blue-soft); color: var(--mh-blue-dark); }
.button--light { background: #fff; border-color: #fff; color: var(--mh-blue); }
.button--light:hover { background: #f3f8fa; color: var(--mh-blue-dark); }
.button--ghost { background: transparent; border-color: rgba(255,255,255,.52); color: #fff; }
.button--ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--mh-blue); font-size: .91rem; font-weight: 700; text-decoration: none; }
.text-link::after { content: "→"; transition: transform .18s ease; }
.text-link:hover::after { transform: translateX(3px); }
.eyebrow { margin: 0 0 10px; color: var(--mh-blue); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.section-heading { max-width: 760px; margin: 0 auto 38px; text-align: center; }
.section-heading--left { max-width: none; margin-left: 0; text-align: left; }
.section-heading h2 { margin: 0 0 13px; font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.5rem); line-height: 1.16; letter-spacing: -.03em; }
.section-heading > p:last-child { margin: 0 auto; max-width: 700px; color: var(--mh-muted); }
.icon-box { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 11px; background: var(--mh-blue-soft); color: var(--mh-blue); }
.icon-box svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Homepage */
.home-hero { position: relative; overflow: hidden; padding: clamp(68px,8vw,108px) 0 clamp(70px,8vw,100px); background: linear-gradient(180deg,#f7fbfd 0%,#fff 100%); }
.home-hero::before { content: ""; position: absolute; top: -240px; right: -190px; width: 520px; height: 520px; border-radius: 50%; background: rgba(11,99,139,.045); }
.home-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.25fr) minmax(300px,.75fr); align-items: center; gap: clamp(40px,7vw,85px); }
.home-badge { display: inline-flex; margin: 0 0 20px; padding: 6px 10px; border: 1px solid #cee3ec; border-radius: 999px; background: #f4fafc; color: var(--mh-blue); font-size: .8rem; font-weight: 700; }
.home-hero h1 { max-width: 760px; margin: 0 0 20px; font-size: clamp(2.15rem,1.6rem + 2.5vw,3.9rem); line-height: 1.07; letter-spacing: -.05em; }
.home-hero__description { max-width: 680px; margin: 0 0 28px; color: var(--mh-muted); font-size: clamp(1.03rem,.98rem + .25vw,1.16rem); }
.home-hero__actions { display: flex; flex-wrap: wrap; gap: 11px; }
.home-hero__visual { position: relative; min-height: 350px; }
.formula-card { position: absolute; display: flex; align-items: center; justify-content: center; border: 1px solid var(--mh-border); border-radius: var(--mh-radius-lg); background: rgba(255,255,255,.95); color: var(--mh-blue); box-shadow: var(--mh-shadow); font-family: Georgia,"Times New Roman",serif; font-weight: 600; }
.formula-card--one { top: 12px; left: 0; width: 210px; height: 125px; font-size: 2.3rem; }
.formula-card--two { top: 105px; right: 0; width: 180px; height: 120px; font-size: 2rem; }
.formula-card--three { bottom: 0; left: 45px; width: 225px; height: 115px; font-size: 1.55rem; }
.home-search-wrap { position: relative; z-index: 4; margin-top: -30px; }
.home-search { max-width: 860px; margin-inline: auto; padding: 9px; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; border: 1px solid var(--mh-border); border-radius: 14px; background: #fff; box-shadow: 0 12px 30px rgba(21,50,63,.1); }
.home-search__icon { display: flex; justify-content: center; color: var(--mh-blue); }
.home-search__icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.home-search input { width: 100%; height: 48px; padding: 0 8px; border: 0; outline: 0; background: transparent; color: var(--mh-text); }
.home-search input::placeholder { color: #8b969d; }
.home-search button { height: 46px; padding: 0 21px; border: 0; border-radius: 9px; background: var(--mh-blue); color: #fff; font-weight: 700; }
.home-search button:hover { background: var(--mh-blue-dark); }
.home-section { padding: clamp(58px,7vw,88px) 0; }
.home-section--soft { background: var(--mh-bg-soft); }
.direction-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.direction-card { display: flex; flex-direction: column; min-height: 100%; padding: 23px; border: 1px solid var(--mh-border); border-radius: var(--mh-radius); background: #fff; transition: .18s ease; }
.direction-card:hover { transform: translateY(-3px); border-color: #bdd5df; box-shadow: var(--mh-shadow); }
.direction-card h3 { margin: 17px 0 8px; font-size: 1.12rem; line-height: 1.28; }
.direction-card__description { margin: 0 0 17px; color: var(--mh-muted); font-size: .88rem; }
.direction-card__topics { display: flex; flex-direction: column; gap: 4px; margin: 0 0 19px; padding: 0; list-style: none; }
.direction-card__topics a { position: relative; display: block; padding: 5px 0 5px 14px; color: #46545d; font-size: .84rem; line-height: 1.4; text-decoration: none; }
.direction-card__topics a::before { content: ""; position: absolute; top: .93em; left: 0; width: 5px; height: 5px; border-radius: 50%; background: #a9c8d5; }
.direction-card__topics a:hover { color: var(--mh-blue); }

.home-direction-widget .widget-title, .home-direction-widget .direction-card__title { margin: 17px 0 8px; font-size: 1.12rem; line-height: 1.28; }
.home-direction-widget > ul, .home-direction-widget .menu, .home-direction-widget .wp-block-navigation__container { display: flex; flex-direction: column; gap: 4px; margin: 0 0 19px; padding: 0; list-style: none; }
.home-direction-widget > ul a, .home-direction-widget .menu a, .home-direction-widget .wp-block-navigation-item__content { position: relative; display: block; padding: 5px 0 5px 14px; color: #46545d; font-size: .84rem; line-height: 1.4; text-decoration: none; }
.home-direction-widget > ul a::before, .home-direction-widget .menu a::before, .home-direction-widget .wp-block-navigation-item__content::before { content: ""; position: absolute; top: .93em; left: 0; width: 5px; height: 5px; border-radius: 50%; background: #a9c8d5; }
.home-direction-widget .wp-block-group { margin: 0; }
.home-widget-notice { max-width: 760px; margin: 0 auto; padding: 24px; border: 1px dashed var(--mh-border-strong); border-radius: var(--mh-radius); background: #fff; text-align: center; }
.home-widget-notice p { margin-top: 0; }
.tool-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.tool-card { display: flex; flex-direction: column; min-height: 205px; padding: 21px; border: 1px solid var(--mh-border); border-radius: var(--mh-radius); background: #fff; transition: .18s ease; }
.tool-card:hover { transform: translateY(-2px); border-color: #bdd5df; box-shadow: var(--mh-shadow); }
.tool-card__sign { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; margin-bottom: 16px; border-radius: 11px; background: var(--mh-blue-soft); color: var(--mh-blue); font-family: Georgia,"Times New Roman",serif; font-size: 1.14rem; font-weight: 700; }
.tool-card h3 { margin: 0 0 7px; font-size: 1.03rem; }
.tool-card p { margin: 0 0 17px; color: var(--mh-muted); font-size: .86rem; }
.tool-card .text-link { margin-top: auto; }
.section-action { margin: 30px 0 0; text-align: center; }
.route-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.route-card { padding: 24px; border: 1px solid var(--mh-border); border-radius: var(--mh-radius); background: #fff; }
.route-card__title { display: flex; align-items: center; gap: 12px; margin-bottom: 19px; }
.route-card__title h3 { margin: 0; font-size: 1.1rem; }
.route-card__path { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 20px; }
.route-step { display: inline-flex; padding: 6px 9px; border-radius: 7px; background: var(--mh-bg-soft); color: #44535c; font-size: .8rem; }
.route-arrow { color: #94a3ab; font-size: .88rem; }
.home-cta { padding: clamp(52px,7vw,76px) 0; }
.home-cta__box { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 28px; padding: clamp(32px,5vw,52px); border-radius: var(--mh-radius-lg); background: var(--mh-blue); color: #fff; }
.home-cta__box::after { content: ""; position: absolute; right: -100px; bottom: -160px; width: 300px; height: 300px; border: 55px solid rgba(255,255,255,.06); border-radius: 50%; }
.home-cta__box > * { position: relative; z-index: 1; }
.home-cta h2 { max-width: 650px; margin: 0 0 10px; color: #fff; font-size: clamp(1.55rem,1.3rem + 1vw,2.2rem); line-height: 1.2; }
.home-cta p { max-width: 680px; margin: 0; color: rgba(255,255,255,.82); }
.home-cta__actions { display: flex; flex-wrap: wrap; gap: 9px; }

/* Breadcrumbs */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; padding: 22px 0 0; color: #7a878e; font-size: .78rem; }
.breadcrumbs a { color: #66767f; text-decoration: none; }
.breadcrumbs a:hover { color: var(--mh-blue); }
.breadcrumbs-separator { color: #b2bec4; }

/* Archive + cards */
.archive-main { padding: 0 0 80px; }
.archive-header { max-width: 800px; padding: 55px 0 38px; }
.archive-header h1 { margin: 0 0 14px; font-size: clamp(2rem,1.5rem + 2vw,3.25rem); line-height: 1.12; letter-spacing: -.04em; }
.archive-description { color: var(--mh-muted); font-size: 1.02rem; }
.archive-description p:last-child { margin-bottom: 0; }
.subcategories { display: flex; flex-wrap: wrap; gap: 8px; margin: -12px 0 38px; }
.subcategories a { padding: 7px 10px; border: 1px solid var(--mh-border); border-radius: 8px; background: #fff; color: #46555e; font-size: .82rem; text-decoration: none; }
.subcategories a:hover { border-color: #bfd9e4; background: var(--mh-blue-soft); color: var(--mh-blue); }
.post-grid { display: grid; gap: 19px; }
.post-grid--three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.post-card { overflow: hidden; border: 1px solid var(--mh-border); border-radius: var(--mh-radius); background: #fff; transition: .18s ease; }
.post-card:hover { transform: translateY(-2px); border-color: #bdd5df; box-shadow: var(--mh-shadow); }
.post-card__image { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--mh-blue-soft); text-decoration: none; }
.post-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.post-card:hover .post-card__image img { transform: scale(1.02); }
.post-card__placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--mh-blue); font-family: Georgia,"Times New Roman",serif; font-size: 2rem; }
.post-card__body { padding: 19px; }
.post-card__category { display: inline-block; margin-bottom: 8px; color: var(--mh-blue); font-size: .74rem; font-weight: 750; text-decoration: none; }
.post-card__title { margin: 0 0 9px; font-size: 1.04rem; line-height: 1.35; }
.post-card__title a { color: var(--mh-text); text-decoration: none; }
.post-card__title a:hover { color: var(--mh-blue); }
.post-card__excerpt { margin: 0 0 14px; color: var(--mh-muted); font-size: .86rem; }
.navigation.pagination { margin-top: 38px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 7px; }
.page-numbers { min-width: 39px; height: 39px; padding: 7px 11px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--mh-border); border-radius: 8px; background: #fff; color: #44545d; text-decoration: none; }
.page-numbers.current, .page-numbers:hover { border-color: var(--mh-blue); background: var(--mh-blue); color: #fff; }

/* Article */
.single-main, .page-main, .calculator-page { padding-bottom: 80px; }
.article-header-layout { display: grid; grid-template-columns: minmax(0,800px) minmax(220px,260px); justify-content: center; gap: 54px; }
.article-header, .page-header, .calculator-header { padding: 48px 0 28px; text-align: left !important; }
.article-category { display: inline-block; margin: 0 0 11px; text-align: left !important; color: var(--mh-blue); font-size: .82rem; font-weight: 750; text-decoration: none; }
.article-header h1, .page-header h1, .calculator-header h1 { width: 100%; max-width: none; margin: 0 0 14px !important; text-align: left !important; font-size: clamp(2rem,1.55rem + 2vw,3.3rem); line-height: 1.1; letter-spacing: -.045em; }
.page-header p, .calculator-header p { margin-left: 0; margin-right: 0; text-align: left !important; }
.article-layout { display: grid; grid-template-columns: minmax(0,800px) minmax(220px,260px); justify-content: center; gap: 54px; align-items: start; }
.article-content-column { min-width: 0; }
.article-toc { position: sticky; top: 100px; }
.article-toc__inner { padding: 18px; border: 1px solid var(--mh-border); border-radius: 12px; background: #fafcfd; }
.article-toc__title { margin: 0 0 10px; font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--mh-blue); }
.article-toc ul { margin: 0; padding: 0; list-style: none; }
.article-toc li + li { margin-top: 3px; }
.article-toc a { display: block; padding: 5px 0; color: #52616a; font-size: .79rem; line-height: 1.35; text-decoration: none; }
.article-toc a:hover, .article-toc a.is-active { color: var(--mh-blue); }
.entry-content { min-width: 0; font-size: 1.02rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content p { margin: 0 0 1.35em; }
.entry-content h2 { margin: 2.1em 0 .75em; font-size: clamp(1.55rem,1.3rem + .8vw,2.05rem); line-height: 1.22; letter-spacing: -.025em; }
.entry-content h3 { margin: 1.8em 0 .65em; font-size: clamp(1.25rem,1.1rem + .45vw,1.55rem); line-height: 1.25; }
.entry-content h4 { margin: 1.6em 0 .6em; font-size: 1.13rem; }
.entry-content h5 { margin: 1.5em 0 .55em; font-size: 1.04rem; line-height: 1.35; }
.entry-content h6 { margin: 1.45em 0 .5em; font-size: .98rem; line-height: 1.4; }
.entry-content h3.example,
.entry-content h4.example,
.entry-content h5.example,
.entry-content h6.example {
	margin: 1.55em 0 .65em;
	font-size: 1.02rem;
	font-weight: 750;
	line-height: 1.4;
	letter-spacing: 0;
}
.entry-content h3.example mjx-container,
.entry-content h4.example mjx-container,
.entry-content h5.example mjx-container,
.entry-content h6.example mjx-container,
.entry-content h3.example .MathJax,
.entry-content h4.example .MathJax,
.entry-content h5.example .MathJax,
.entry-content h6.example .MathJax,
.entry-content h3.example .katex,
.entry-content h4.example .katex,
.entry-content h5.example .katex,
.entry-content h6.example .katex {
	font-size: 0.96em !important;
}
.entry-content a { overflow-wrap: anywhere; }
.entry-content ul, .entry-content ol { margin: 0 0 1.35em; padding-left: 1.35em; }
.entry-content li + li { margin-top: .35em; }
.entry-content blockquote { margin: 1.6em 0; padding: 18px 22px; border-left: 4px solid var(--mh-blue); background: var(--mh-blue-soft); border-radius: 0 10px 10px 0; }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content pre { overflow-x: auto; margin: 1.5em 0; padding: 18px; border: 1px solid #dbe4e8; border-radius: 10px; background: #f6f8f9; color: #22313a; font-size: .9rem; line-height: 1.55; }
.entry-content code { padding: .12em .3em; border-radius: 4px; background: #f1f4f5; font-family: ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size: .9em; }
.entry-content pre code { padding: 0; background: transparent; font-size: inherit; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .94rem; }
.entry-content th, .entry-content td { padding: 10px 12px; border: 1px solid var(--mh-border); text-align: left; vertical-align: top; }
.entry-content th { background: var(--mh-bg-soft); font-weight: 700; }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content figure { margin-top: 1.6em; margin-bottom: 1.6em; }
.entry-content figcaption { color: #738089; font-size: .82rem; text-align: center; }
.entry-content img { max-width: 100%; height: auto; border-radius: 10px; }
.entry-content p > img,
.entry-content p > a > img,
.entry-content img.alignnone { display: inline; float: none; margin: 0 .2em; vertical-align: middle; }
.entry-content img.aligncenter { display: block; float: none; margin-left: auto; margin-right: auto; }
.entry-content img.alignleft { float: left; margin: .25em 1.25em .75em 0; }
.entry-content img.alignright { float: right; margin: .25em 0 .75em 1.25em; }
.entry-content figure.wp-block-image,
.entry-content .wp-caption { max-width: 100%; margin-left: auto; margin-right: auto; text-align: center; float: none; }
.entry-content .wp-block-image img,
.entry-content .wp-caption img { margin-left: auto; margin-right: auto; }
.entry-content .alignwide { width: min(980px, calc(100vw - 40px)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content--wide { max-width: none; width: 100%; }
.entry-content--wide .alignwide, .entry-content--wide .alignfull { width: auto; max-width: 100%; margin-left: 0; transform: none; }
.entry-content mjx-container,
.entry-content .MathJax,
.entry-content .katex {
	max-width: 100%;
	font-size: 0.96em !important;
}
.entry-content .MathJax_Display,
.entry-content mjx-container[display="true"],
.entry-content .katex-display {
	overflow-x: auto;
	overflow-y: hidden;
	max-width: 100%;
	margin: 1.15em 0 !important;
	padding: .08em 0 .3em;
	-webkit-overflow-scrolling: touch;
}
.entry-content mjx-container[display="true"] > svg {
	max-width: none;
}

.article-footer-layout { display: grid; grid-template-columns: minmax(0,800px) minmax(220px,260px); justify-content: center; gap: 54px; }
.article-footer { grid-column: 1; padding-top: 42px; text-align: left; }
.article-tags { width: 100%; padding: 16px 0; border-top: 1px solid var(--mh-border); color: var(--mh-muted); font-size: .84rem; text-align: left; }
.article-tags > span { font-weight: 700; color: var(--mh-text); }
.article-tags a { margin-left: 6px; }
.page-article { padding-top: 20px; }
.page-main--wide .page-article { width: min(var(--mh-container), calc(100% - 40px)); }

/*.calculator-header { max-width: 860px; }
.calculator-header p { margin: 0; color: var(--mh-muted); font-size: 1.04rem; }
.calculator-content { width: 100%; }*/

.calculator-header {
	width: min(860px, 100%);
	max-width: 860px;
	margin-left: auto;
	margin-right: auto;
}

.calculator-header p {
	margin: 0;
	color: var(--mh-muted);
	font-size: 1.04rem;
}

.calculator-content {
	width: min(860px, 100%);
	margin-left: auto;
	margin-right: auto;
}

/* Tools directory */
.tools-directory-page { padding-bottom: 80px; }
.tools-directory-hero { padding: 44px 0 28px; background: linear-gradient(180deg,#f8fbfc 0%,#fff 100%); }
.tools-directory-header { max-width: 860px; text-align: left; }
.tools-directory-header .eyebrow { margin: 0 0 10px; color: var(--mh-blue); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tools-directory-header h1 { max-width: 860px; margin: 0 0 14px; text-align: left !important; font-size: clamp(2.15rem,1.55rem + 2.4vw,3.8rem); line-height: 1.08; letter-spacing: -.05em; }
.tools-directory-intro { max-width: 760px; margin: 0; color: var(--mh-muted); font-size: 1.06rem; }
.tools-directory-search { display: grid; grid-template-columns: 44px 1fr; align-items: center; max-width: 760px; margin-top: 28px; border: 1px solid var(--mh-border); border-radius: 12px; background: #fff; box-shadow: 0 10px 28px rgba(21,50,63,.07); }
.tools-directory-search__icon { display: flex; align-items: center; justify-content: center; color: var(--mh-blue); }
.tools-directory-search__icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tools-directory-search input { width: 100%; min-width: 0; height: 52px; padding: 0 15px 0 4px; border: 0; outline: 0; background: transparent; color: var(--mh-text); font: inherit; }
.tools-directory-content { padding: 42px 0 0; }
.tools-directory-status { margin-bottom: 18px; color: var(--mh-muted); font-size: .85rem; }
.tools-directory-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.tools-directory-card { display: flex; flex-direction: column; min-height: 240px; padding: 22px; border: 1px solid var(--mh-border); border-radius: var(--mh-radius); background: #fff; transition: transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.tools-directory-card:hover { transform: translateY(-2px); border-color: #bdd5df; box-shadow: var(--mh-shadow); }
.tools-directory-card[hidden], .tools-directory-widgets .tool-card[hidden] { display: none !important; }
.tools-directory-card__symbol, .tools-directory-widgets .tool-card__sign { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; margin-bottom: 16px; border-radius: 11px; background: var(--mh-blue-soft); color: var(--mh-blue); font-family: Georgia,"Times New Roman",serif; font-size: 1.08rem; font-weight: 700; }
.tools-directory-card__title, .tools-directory-widgets .tool-card__title { margin: 0 0 9px; font-size: 1.08rem; line-height: 1.32; }
.tools-directory-card__title a, .tools-directory-widgets .tool-card__title a { color: var(--mh-text); text-decoration: none; }
.tools-directory-card__title a:hover, .tools-directory-widgets .tool-card__title a:hover { color: var(--mh-blue); }
.tools-directory-card p, .tools-directory-widgets .tool-card p { margin: 0 0 17px; color: var(--mh-muted); font-size: .88rem; }
.tools-directory-card .text-link, .tools-directory-widgets .tool-card .text-link { margin-top: auto; }
.tools-directory-empty { max-width: 680px; margin: 0; padding: 24px; border: 1px solid var(--mh-border); border-radius: var(--mh-radius); background: var(--mh-bg-soft); color: var(--mh-muted); }
.tools-directory-fallback { max-width: 900px; }
.tools-directory-widgets .tool-card { min-height: 240px; }
.tools-directory-widgets .tool-card__title { font-size: 1.08rem; line-height: 1.32; }
.tools-directory-notice { margin-top: 8px; }


/* Search + 404 */
.search-form { display: flex; gap: 8px; max-width: 620px; margin-top: 22px; }
.search-field { flex: 1; min-width: 0; height: 46px; padding: 0 13px; border: 1px solid var(--mh-border); border-radius: 9px; outline: 0; }
.search-field:focus { border-color: var(--mh-blue); box-shadow: 0 0 0 3px rgba(11,99,139,.1); }
.search-submit { min-height: 46px; padding: 0 18px; border: 0; border-radius: 9px; background: var(--mh-blue); color: #fff; font-weight: 700; }
.no-results { max-width: 680px; padding: 30px; border: 1px solid var(--mh-border); border-radius: var(--mh-radius); background: var(--mh-bg-soft); }
.no-results h2 { margin-top: 0; }
.error-page { min-height: 65vh; display: flex; align-items: center; padding: 70px 0; }
.error-page__inner { max-width: 720px; text-align: center; }
.error-code { margin: 0; color: var(--mh-blue); font-size: clamp(5rem,12vw,9rem); font-weight: 800; line-height: 1; letter-spacing: -.06em; }
.error-page h1 { margin: 10px 0; font-size: 2.3rem; }
.error-page p { color: var(--mh-muted); }
.error-page .search-form { margin: 25px auto 20px; }

/* Comments */
.comments-wrap { margin-top: 60px; }
.comments-area { padding-top: 40px; border-top: 1px solid var(--mh-border); }
.comments-title { font-size: 1.5rem; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .children { list-style: none; margin-left: 30px; }
.comment-body { margin: 18px 0; padding: 18px; border: 1px solid var(--mh-border); border-radius: 10px; }
.comment-meta { font-size: .82rem; color: var(--mh-muted); }
.comment-author .avatar { margin-right: 8px; border-radius: 50%; vertical-align: middle; }
.comment-form input:not([type="submit"]), .comment-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--mh-border); border-radius: 8px; }
.form-submit .submit { min-height: 44px; padding: 8px 16px; border: 0; border-radius: 8px; background: var(--mh-blue); color: #fff; font-weight: 700; }

/* Widgets */
.widget-area { display: grid; gap: 20px; }
.widget { padding: 18px; border: 1px solid var(--mh-border); border-radius: 10px; }
.widget-title { margin: 0 0 12px; font-size: 1.05rem; }

/* Footer */
.site-footer { margin-top: 20px; padding: 58px 0 22px; background: #10242d; color: rgba(255,255,255,.72); }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 55px; align-items: start; }
.site-footer__brand { color: #fff; }
.site-footer p { max-width: 470px; }
.site-footer h2 { margin: 0 0 12px; color: #fff; font-size: .95rem; }
.site-footer a { color: rgba(255,255,255,.78); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-menu { margin: 0; padding: 0; list-style: none; }
.footer-menu li + li { margin-top: 7px; }
.site-footer__tools { display: flex; flex-direction: column; gap: 7px; align-items: flex-start; }
.site-footer__bottom { margin-top: 42px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: .78rem; }
.site-footer__bottom p { margin: 0; }

/* Focus */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(11,99,139,.3); outline-offset: 3px; }

@media (max-width: 1120px) {
	.tools-directory-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
	.article-footer-layout { grid-template-columns: minmax(0,800px); }
	.direction-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
	.tool-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
	.article-header-layout, .article-layout { grid-template-columns: minmax(0,800px); }
	.article-toc { display: none !important; }
}

@media (max-width: 960px) {
	.admin-bar .site-header { top: 46px; }
	.language-switcher { margin-left: auto; }
	.menu-toggle { display: flex; align-items: center; justify-content: center; margin-left: 0; }
	.primary-navigation { display: none; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 70px); overflow-y: auto; padding: 12px 20px 20px; border-top: 1px solid var(--mh-border); border-bottom: 1px solid var(--mh-border); background: #fff; box-shadow: var(--mh-shadow); }
	.site-header.is-menu-open .primary-navigation { display: block; }
	.primary-menu, .primary-navigation .menu { display: block; }
	.primary-menu > li > a, .primary-navigation .menu > li > a { padding: 10px 6px; }
	.primary-menu .sub-menu { position: static; min-width: 0; margin: 0 0 5px 14px; padding: 0 0 0 10px; border: 0; border-left: 1px solid var(--mh-border); border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
	.primary-menu .sub-menu .sub-menu { position: static; }
	.home-hero__grid { grid-template-columns: 1fr; }
	.home-hero__visual { display: none; }
	.home-cta__box { grid-template-columns: 1fr; }
	.post-grid--three { grid-template-columns: repeat(2,minmax(0,1fr)); }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.site-footer__about { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
	.tools-directory-grid { grid-template-columns: 1fr; }
	.tools-directory-hero { padding: 36px 0 24px; }
	.tools-directory-card { min-height: 0; }
	.site-container, .article-width { width: min(calc(100% - 28px), var(--mh-container)); }
	.site-header__inner { min-height: 62px; gap: 10px; }
	.language-switcher a { min-width: 28px; padding: 5px 4px; font-size: .68rem; }
	.custom-logo { max-height: 40px; }
	.home-hero { padding: 58px 0 68px; }
	.home-hero h1 { letter-spacing: -.04em; }
	.home-hero__actions { flex-direction: column; align-items: stretch; }
	.home-hero__actions .button { width: 100%; }
	.home-search-wrap { margin-top: -24px; }
	.home-search { grid-template-columns: 38px 1fr; }
	.home-search button { grid-column: 1 / -1; width: 100%; margin-top: 5px; }
	.home-section { padding: 52px 0; }
	.direction-grid, .tool-grid, .route-grid, .post-grid--three { grid-template-columns: 1fr; }
	.home-cta__box { padding: 28px 22px; }
	.home-cta__actions { display: flex; flex-direction: column; }
	.home-cta__actions .button { width: 100%; }
	.archive-header { padding-top: 42px; }
	.article-header, .page-header, .calculator-header { padding-top: 38px; }
	.entry-content { font-size: 1rem; }
	.entry-content .alignwide, .entry-content .alignfull { width: calc(100vw - 28px); }
	.search-form { flex-direction: column; }
	.site-footer__grid { grid-template-columns: 1fr; gap: 30px; }
	.site-footer__about { grid-column: auto; }
}

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

/* Expandable category lists in homepage learning-direction cards. */
.direction-card__extra {
	margin: -8px 0 18px;
	padding: 0;
}
.direction-card__toggle {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px 22px 6px 0;
	color: var(--mh-blue);
	font-size: .84rem;
	font-weight: 700;
	line-height: 1.4;
	cursor: pointer;
	list-style: none;
	user-select: none;
}
.direction-card__toggle::-webkit-details-marker {
	display: none;
}
.direction-card__toggle::after {
	content: "↓";
	position: absolute;
	right: 2px;
	transition: transform .18s ease;
}
.direction-card__extra[open] .direction-card__toggle::after {
	content: "↑";
}
.direction-card__toggle:hover {
	color: var(--mh-blue-dark);
}
.direction-card__toggle-open {
	display: none;
}
.direction-card__extra[open] .direction-card__toggle-closed {
	display: none;
}
.direction-card__extra[open] .direction-card__toggle-open {
	display: inline;
}
.direction-card__topics--extra {
	margin-top: 7px;
	margin-bottom: 0;
	padding-top: 7px;
	border-top: 1px solid var(--mh-border);
}
.direction-card__toggle:focus-visible {
	outline: 3px solid rgba(11,99,139,.25);
	outline-offset: 3px;
	border-radius: 4px;
}


/* Expand/collapse control for the full online-tools directory. */
.tools-directory-toggle-wrap {
	margin-top: 24px;
	text-align: left;
}
.tools-directory-toggle {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 24px 7px 0;
	border: 0;
	background: transparent;
	color: var(--mh-blue);
	font: inherit;
	font-size: .9rem;
	font-weight: 700;
	line-height: 1.4;
	cursor: pointer;
}
.tools-directory-toggle::after {
	content: "↓";
	position: absolute;
	right: 2px;
}
.tools-directory-toggle[aria-expanded="true"]::after {
	content: "↑";
}
.tools-directory-toggle:hover {
	color: var(--mh-blue-dark);
}
.tools-directory-toggle:focus-visible {
	outline: 3px solid rgba(11,99,139,.25);
	outline-offset: 3px;
	border-radius: 4px;
}
.tools-directory-toggle[hidden] {
	display: none !important;
}