/*
Theme Name: GeneratePress Tokita
Description: Child theme for the Tokita Brass Method website.
Author: Tokita Brass Method
Template: generatepress
Version: 0.1.0
Requires at least: 6.7
Requires PHP: 7.4
Text Domain: generatepress-tokita
*/

:root {
	--tokita-navy: #0c2b45;
	--tokita-navy-light: #183f5b;
	--tokita-gold: #b99a54;
	--tokita-ivory: #fffdf7;
	--tokita-paper: #f8f5ed;
	--tokita-text: #243746;

/* Footer legal links contrast */
#text-5 a {
  color: var(--tokita-navy) !important;
  text-decoration-color: var(--tokita-gold);
  text-underline-offset: 4px;
}

}

/* Desktop home layout polish */
@media (min-width: 1025px) {
  body.page-id-5539 .inside-article {
    max-width: 1120px;
  }
}


body {
	background: var(--tokita-paper);
	color: var(--tokita-text);
	font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
	font-size: 16px;
	line-height: 1.85;
}

.site-header {
	background: var(--tokita-ivory);
	border-bottom: 1px solid rgba(185, 154, 84, 0.25);
}

.site-header .inside-header {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 0;
}

.site-header #site-navigation {
	order: -1;
	width: 100%;
}

.site-header #site-navigation .inside-navigation {
	justify-content: center;
}

.site-logo {
	padding: 34px 24px 30px;
}

.site-logo img,
.header-image {
	width: min(560px, 82vw) !important;
	max-width: none !important;
	max-height: none;
	height: auto;
}

.main-navigation,
.main-navigation ul ul {
	background: var(--tokita-navy);
}

.main-navigation .main-nav ul li a,
.menu-toggle,
.main-navigation .menu-bar-item > a {
	color: var(--tokita-ivory);
}

.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li:focus-within > a,
.main-navigation .main-nav ul li[class*="current-menu-"] > a {
	background: var(--tokita-navy-light);
	color: #fff;
}

.site-content {
	padding-top: 38px;
	padding-bottom: 54px;
}

.home #primary {
	float: none;
	width: 100%;
}

.home #right-sidebar {
	display: none;
}

.home .inside-article {
	max-width: 860px;
	margin-right: auto;
	margin-left: auto;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.home .entry-header,
.home .entry-content > div:first-of-type:not(.tokita-home) {
	display: none !important;
}

.page:not(.home) .entry-header {
	display: none;
}

.inside-article,
.widget,
.comments-area {
	border: 1px solid rgba(185, 154, 84, 0.18);
	border-radius: 7px;
	background: var(--tokita-ivory);
	box-shadow: 0 8px 24px rgba(12, 43, 69, 0.05);
}

.entry-title,
.entry-title a,
h1,
h2,
h3 {
	color: var(--tokita-navy);
}

.entry-content a:not(.button) {
	text-decoration-color: rgba(185, 154, 84, 0.72);
	text-underline-offset: 0.18em;
}

button,
html input[type="button"],
input[type="reset"],
input[type="submit"],
.button,
.wp-block-button__link {
	border-radius: 6px;
	background: var(--tokita-navy);
	color: #fff;
}

.site-footer {
	background: var(--tokita-navy);
	color: var(--tokita-ivory);
}

.site-footer a {
	color: #fff;
}

@media (max-width: 768px) {
	body {
		font-size: 15px;
	}

	.site-content {
		padding: 20px 12px 84px;
	}

	.site-header .inside-header {
		align-items: stretch;
	}

	.site-logo {
		align-self: center;
		padding: 22px 16px;
	}

	.inside-article,
	.widget,
	.comments-area {
		padding: 24px 20px;
	}
}


/* Mobile finish and legacy-home cleanup — 2026-09-15 */
.home .entry-content > div:not(.tokita-home):not(.sharedaddy) {
	display: none !important;
}

@media (max-width: 768px) {
	.single .entry-title {
		margin-bottom: 18px !important;
		font-size: 27px !important;
		line-height: 1.45 !important;
		letter-spacing: -0.02em !important;
		text-wrap: balance;
		overflow-wrap: anywhere;
	}

	.single .entry-content h2 {
		margin-top: 1.9em;
		font-size: 23px;
		line-height: 1.55;
	}

	.single .entry-content h3 {
		font-size: 19px;
		line-height: 1.55;
	}

	.single .inside-article {
		padding: 24px 18px !important;
	}

	.entry-content img {
		max-width: 100%;
		height: auto;
	}

	.menu-toggle,
	.main-navigation .menu-bar-item > a,
	.tokita-line-cta {
		white-space: nowrap !important;
		word-break: keep-all !important;
		overflow-wrap: normal !important;
	}

	.tokita-line-cta {
		min-height: 56px !important;
		padding: 10px 14px !important;
		font-size: 13px !important;
		line-height: 1.35 !important;
		letter-spacing: 0.01em !important;
	}

	.tokita-line-cta br {
		display: none !important;
	}

	.site-footer #mailpoet_form-2,
	.site-footer #mailpoet_form_2,
	.site-footer #mailpoet_form_2 .mailpoet_form {
		box-sizing: border-box !important;
		width: 100% !important;
		max-width: 100% !important;
	}

	.site-footer #mailpoet_form-2 {
		padding: 22px 18px !important;
	}

	.site-footer #mailpoet_form_2 .mailpoet_form {
		margin: 12px 0 18px !important;
		padding: 20px 16px !important;
		border: 1px solid #b99a54 !important;
		border-radius: 12px !important;
		background: #fffdf7 !important;
		box-shadow: none !important;
	}

	.site-footer #mailpoet_form_2 .mailpoet_paragraph {
		width: 100% !important;
		margin: 0 0 10px !important;
		padding: 0 !important;
	}

	.site-footer #mailpoet_form_2 .mailpoet_text,
	.site-footer #mailpoet_form_2 .mailpoet_submit {
		box-sizing: border-box !important;
		width: 100% !important;
		min-height: 50px !important;
		margin: 0 !important;
		border-radius: 8px !important;
		font-size: 16px !important;
	}

	.site-footer #mailpoet_form_2 .mailpoet_text {
		padding: 11px 14px !important;
		border: 1px solid #cfc5b3 !important;
		background: #fff !important;
	}

	.site-footer #mailpoet_form_2 .mailpoet_submit {
		border: 0 !important;
		background: #0c2b45 !important;
		color: #fff !important;
		font-weight: 700 !important;
	}
}


/* Mobile header layout repair — 2026-09-15 */
@media (max-width: 768px) {
	.site-header .inside-header {
		position: relative;
		display: block;
		padding: 0 !important;
	}

	.site-header .site-logo {
		box-sizing: border-box;
		width: 100%;
		max-width: none;
		padding: 18px 72px 18px 16px !important;
	}

	.site-header .site-logo img {
		display: block;
		width: 100%;
		max-width: 360px;
		height: auto;
		margin: 0 auto;
	}

	.site-header #mobile-menu-control-wrapper {
		position: absolute !important;
		top: 50%;
		right: 14px;
		transform: translateY(-50%);
		margin: 0 !important;
		width: 46px !important;
		height: 46px !important;
		background: transparent !important;
	}

	.site-header #mobile-menu-control-wrapper .menu-toggle {
		display: flex !important;
		align-items: center;
		justify-content: center;
		width: 46px !important;
		height: 46px !important;
		min-width: 46px;
		padding: 0 !important;
		border: 1px solid rgba(185, 154, 84, 0.7) !important;
		border-radius: 50% !important;
		background: #fffdf7 !important;
		color: #0c2b45 !important;
		line-height: 1 !important;
	}

	.site-header #mobile-menu-control-wrapper .menu-toggle .gp-icon {
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.site-header #mobile-menu-control-wrapper .menu-toggle svg {
		width: 20px;
		height: 20px;
		fill: currentColor !important;
	}
}

@media (max-width: 400px) {
	.site-header .site-logo {
		padding-right: 66px !important;
		padding-left: 14px !important;
	}

	.site-header .site-logo img {
		max-width: 300px;
	}
}


/* Header contrast correction — 2026-09-21 */
.site-header {
  background: #fffdf7 !important;
}
@media (min-width: 769px) {
  body .site-header .main-navigation .main-nav ul li a,
  body .site-header .main-navigation .menu-bar-item > a {
    color: #0c2b45 !important;
  }
}


/* Sidebar banners and legal links repair — 2026-09-22 */
#text-7 a {
  display: block;
}

#text-7 a + a {
  margin-top: 18px;
}

#text-7 img {
  display: block;
  width: 100%;
  height: auto;
}

#text-5,
#text-5 p,
#text-5 strong,
#text-5 a {
  color: #0c2b45 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

#text-5 a {
  display: block;
  text-decoration-color: #b99a54;
  text-underline-offset: 4px;
}

#text-5 a + a {
  margin-top: 8px;
}

/* Final design polish — 2026-09-21
 * Refines typography, header integration, and responsive page rhythm
 * without changing content, structure, SEO, or CTA destinations.
 */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
    "Yu Gothic Medium", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.9;
  letter-spacing: 0.012em;
}

h1, h2, h3,
.entry-title,
.entry-title a {
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Yu Gothic",
    Meiryo, sans-serif;
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: 0.012em;
}

.entry-content p {
  margin-bottom: 1.6em;
}

button,
html input[type="button"],
input[type="reset"],
input[type="submit"],
.button,
.wp-block-button__link,
.tokita-lp .btn {
  font-weight: 600;
  letter-spacing: 0.025em;
}

/* Integrate the desktop header instead of showing navigation as a pasted-on bar. */
@media (min-width: 769px) {
  .site-header .inside-header {
    gap: 0;
  }

  .site-header #site-navigation {
    order: initial;
    width: 100%;
    border-top: 1px solid rgba(185, 154, 84, 0.22);
    background: transparent;
  }

  .site-logo {
    padding: 26px 24px 22px;
  }

  .site-logo img,
  .header-image {
    width: min(500px, 78vw) !important;
  }

  .main-navigation,
  .main-navigation .inside-navigation {
    background: transparent;
  }

  .main-navigation .main-nav ul li a {
    min-height: 54px;
    padding-right: 22px;
    padding-left: 22px;
    background: transparent;
    color: var(--tokita-navy);
    font-size: 15px;
    font-weight: 600;
    line-height: 54px;
    letter-spacing: 0.035em;
  }

  .main-navigation .main-nav ul li:hover > a,
  .main-navigation .main-nav ul li:focus-within > a,
  .main-navigation .main-nav ul li[class*="current-menu-"] > a {
    background: rgba(185, 154, 84, 0.08);
    color: var(--tokita-navy);
    box-shadow: inset 0 -2px 0 rgba(185, 154, 84, 0.72);
  }
}

/* Let purpose-built fixed pages use their own spacing instead of nesting it
   inside a second padded card. */
.page-template-page-noside .inside-article:has(.tokita-lp) {
  padding: 0;
  overflow: hidden;
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
    line-height: 1.9;
    letter-spacing: 0.008em;
  }

  .site-content {
    padding: 18px 12px 84px;
  }

  .site-header {
    box-shadow: 0 3px 16px rgba(12, 43, 69, 0.045);
  }

  .site-header .site-logo {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
  }

  .site-header #mobile-menu-control-wrapper .menu-toggle {
    border-color: rgba(185, 154, 84, 0.58) !important;
    box-shadow: 0 3px 12px rgba(12, 43, 69, 0.07);
  }

  .page:not(.home) .inside-article:not(:has(.tokita-lp)),
  .single .inside-article {
    padding: 24px 18px !important;
  }

  .page:not(.home) .entry-content > p,
  .single .entry-content > p {
    margin-bottom: 1.65em;
    line-height: 1.95;
  }

  .entry-content h2,
  .tokita-post-profile h2 {
    font-size: 26px;
    line-height: 1.5;
  }

  .entry-content h3 {
    font-size: 21px;
    line-height: 1.55;
  }

  .tokita-lp section {
    padding: 40px 18px;
  }

  .tokita-lp .hero {
    padding: 42px 18px;
    border-radius: 0;
    box-shadow: none;
  }

  .tokita-lp .hero h2 {
    font-size: clamp(27px, 7.6vw, 33px) !important;
    line-height: 1.48 !important;
    letter-spacing: -0.018em !important;
  }

  .tokita-lp h3 {
    font-size: clamp(22px, 6vw, 27px) !important;
    line-height: 1.52 !important;
    letter-spacing: -0.012em !important;
  }

  .tokita-lp .lead {
    line-height: 1.9;
  }

  .tokita-lp .btn {
    min-height: 54px;
    padding: 12px 18px;
    font-size: 15px !important;
    line-height: 1.5 !important;
  }

  .tokita-lp .card,
  .tokita-lp .soft,
  .tokita-lp .cta {
    border-radius: 14px;
  }
}

/* Tokita mobile finishing — 2026-09-23 BEGIN
 * Append-only; remove this block to restore the previous design.
 * No desktop, content, link, form, or SEO changes.
 */
@media (max-width: 768px) {
  body.page-id-5539 #main .inside-article { padding: 0 !important; }
  body.page-id-5539 #tokita-main-title span {
    display: block;
    max-width: 100%;
    white-space: normal !important;
    text-wrap: balance !important;
    word-break: normal !important;
    line-break: strict;
  }
  body.page-id-5539 #tokita-main-title br { display: none !important; }
  body.page-id-5539 .tokita-btn {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    padding-right: 8px;
    padding-left: 8px;
    letter-spacing: .025em;
  }
  body.page .entry-content :is(h1, h2, h3, h4),
  .tokita-post-profile .tokita-post-profile__next,
  .site-footer .widget-title {
    text-wrap: balance;
    word-break: normal;
    overflow-wrap: break-word;
    line-break: strict;
  }
  body.page .tokita-optin-page { padding-right: 12px; padding-left: 12px; }
  body.page .contact-lp { margin-right: -18px; margin-left: -18px; }
  body.page .contact-lp .choice { padding-right: 18px; padding-left: 18px; }
  body.page .contact-lp .btn { padding-right: 12px; padding-left: 12px; }
  body.page .contact-lp .form-wrap { padding-right: 12px; padding-left: 12px; }
  body.page .contact-lp .hero h2 br { display: block !important; }
  body.page-id-1861 .entry-content > h1:not(:has(img)) {
    font-size: clamp(28px, 7.2vw, 32px);
    line-height: 1.5;
  }
  body .site-header .site-logo img {
    width: 100% !important;
    max-width: 360px !important;
  }
}
@media (max-width: 360px) {
  body.page-id-5539 .tokita-home .tokita-section {
    padding-right: 16px !important;
    padding-left: 16px !important;
  }
  body.page-id-5539 .tokita-learning-grid article {
    padding-right: 12px !important;
    padding-left: 12px !important;
  }
}
/* Phrase-aware wrapping where supported; balanced normal wrapping elsewhere. */
@supports (word-break: auto-phrase) {
  @media (max-width: 768px) {
    body.page .entry-content :is(h1, h2, h3, h4),
    body.page-id-5539 #tokita-main-title span,
    .tokita-post-profile .tokita-post-profile__next {
      word-break: auto-phrase !important;
    }
  }
}
@media (max-width: 768px) {
  body.page-id-5539 .tokita-learning-grid article { padding-bottom: 28px !important; }
  body.page-id-5539 .tokita-learning-grid article > p:last-child { margin-bottom: 0; }
  .tokita-post-profile .tokita-post-profile__next {
    max-width: 12em;
    text-wrap: wrap;
    word-break: normal !important;
  }
}
@media (max-width: 768px) {
  body.page .tokita-mobile-phrase { display: inline-block; white-space: nowrap; }
  body.page-id-4095 .tokita-lp .hero h2,
  body.page-id-739 .curriculum-lp .hero h2 { color: #fff; }
  body.page-id-1861 .story-birth-moment {
    word-break: normal !important;
    overflow-wrap: break-word;
    text-wrap: balance;
  }
}
@media (max-width: 768px) {
  body .main-navigation.toggled .main-nav ul li a { color: #26384a; }
}
@media (max-width: 768px) {
  body.page-id-739 .curriculum-lp .btn { padding-right: 12px; padding-left: 12px; text-wrap: balance; flex-wrap: wrap; column-gap: 0; row-gap: 0; }
}
@supports (word-break: auto-phrase) {
  @media (max-width: 768px) {
    body.page-id-739 .curriculum-lp .btn { word-break: auto-phrase; }
  }
}
/* Tokita mobile finishing — 2026-09-23 END */

/* Tokita header background integration — 2026-09-23 BEGIN
 * Match the existing logo PNG background; preserve its original colors and geometry.
 */
body .site-header { background-color: #f7f3ea !important; }
/* Tokita header background integration — 2026-09-23 END */

/* Related articles: mobile titles use the full row when no thumbnail is available. */
@media (max-width: 767px) {
  .tokita-related article a > span:only-child { grid-column: 1 / -1; }
}
