/* Keep the home content at 1020px within the 1200px site frame. */
body.home #main { --container-max: 1020px; }

/* Use the member colour for every page rendered with the member layout. */
.page-hero:has(+ .member-layout) { background: #183057; }

/* Keep gender choices together in the membership application forms. */
.member-sex-fieldset .wpcf7-radio { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); }
.member-sex-fieldset .wpcf7-list-item { margin: 0; }

/* Separate the back-to-top control from the near-black footer. */
.pagetop { background: var(--ink-soft); }

.footer-legal > ul { display: contents; list-style: none; margin: 0; padding: 0; }
.footer-legal > ul > li { display: contents; }
.pre-footer-cta {
  background: color-mix(in srgb, var(--paper-2) 50%, var(--paper));
  width: 100%;
  margin: 0;
}
.pre-footer-cta .pre-footer-cta__action { width: 13rem; max-width: 100%; align-self: center; justify-content: center; text-align: center; }

/* Shared rounded action, matching the existing about-page button. */
.btn--round {
  border-radius: var(--radius-pill);
  border-color: var(--ink);
  gap: var(--space-3);
}
.btn--round::after { content: "→"; }
.entry-options { text-align: right; }

/* Organization activities: numbered groups, indented details, and branch subgroups. */
.data-table--organization td > ol {
  margin: 0;
  padding-inline-start: var(--space-5);
  list-style: decimal outside;
}
.data-table--organization td > ol > li + li { margin-top: var(--space-5); }
.data-table--organization td > ol > li::marker { font-weight: var(--fw-bold); }
.data-table--organization td > ol ul {
  margin: var(--space-2) 0 0;
  padding-inline-start: var(--space-5);
  list-style: disc outside;
}
.data-table--organization td > ol ul li + li { margin-top: var(--space-2); }
.data-table--organization td > ol ul ul { list-style-type: circle; }

.member-directory-section .member-category-nav a { min-width: 0; overflow-wrap: anywhere; }
.member-directory-section .jump-nav ul { margin: 0; padding: 0; }
.member-directory-section .jump-nav li { flex: 0 0 auto; }
.member-directory-section .jump-nav a,
.member-directory-section .jump-nav li > span { width: auto; min-width: 2.75rem; padding-inline: var(--space-2); white-space: nowrap; }
.member-directory-empty { margin: 0; padding: var(--space-12) var(--space-5); text-align: center; color: var(--ink-soft); }
@media (max-width: 767px) {
  .member-directory-section .member-category-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-directory-section .member-category-nav a { border-radius: var(--radius-sm); }
  .member-directory-section .member-sticky { position: static; }
}

/* Conventional external-window icon, inheriting the link colour. */
main a[target="_blank"]:not(:has(.card__link, .btn, .seminar-card__thumbnail))::after,
main a[target="_blank"] > .card__link::after,
main a[target="_blank"] > .btn::after,
.site-footer a[target="_blank"]:not(:has(svg))::after,
.footer-nav__link--external::after {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: 0 0 1em;
  margin-inline-start: 0.35em;
  vertical-align: -0.1em;
  background-color: currentColor;
  -webkit-mask: url("external-link.svg") center / contain no-repeat;
  mask: url("external-link.svg") center / contain no-repeat;
}
.member-directory a[target="_blank"] > span[aria-hidden="true"] { display: none; }

main a[target="_blank"]:has(.card__link, .btn, .seminar-card__thumbnail)::after { content: none; }
main a[target="_blank"] > .card__link > [aria-hidden="true"],
main a[target="_blank"] > .btn > [aria-hidden="true"] { display: none; }
main a[target="_blank"] > .card__link,
main a[target="_blank"] > .btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); }
/* Outline button on the dark footer, as wide as the logo above it (12.75rem at 32px tall, capped by the column),
   whether it comes from the brand widget or a custom HTML widget in the same area. Inverts on hover. */
@media (min-width: 1024px) {
  .site-footer .footer-top { column-gap: var(--space-12); }
}
.footer-brand .btn { width: min(100%, 12.75rem); margin-top: var(--space-4); background: transparent; border-color: var(--paper); color: var(--paper); }
.footer-brand .btn:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }

/* Pagination labels need more space than a single page number. */
.pagination .page-numbers {
    flex: 0 0 auto;
    white-space: nowrap;
}
.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    width: auto;
    min-width: 40px;
    padding-inline: var(--space-4);
}
.pagination .page-numbers.current {
    color: var(--paper);
    background: var(--accent);
    border-color: var(--accent);
}

:root { --container-frame: 1200px; --sidebar-width: 360px; }

/* Shared lower-page frame, using the established document/navigation components. */
#main > .breadcrumb,
.jwa-subpage #main > .page-hero > .container,
.doc-layout--subpage.container {
  width: min(var(--container-frame), calc(100% - var(--space-6) * 2));
}
.doc-layout--subpage {
  grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
  gap: var(--space-8);
  padding-block: var(--space-12);
}
.doc-layout--subpage .doc-body .container {
  width: 100%;
  max-width: none;
}
.doc-layout--subpage .doc-body > .section:not(.section--alt):first-child { padding-top: 0; }
.doc-layout--subpage .doc-body > .section:not(.section--alt):last-child { padding-bottom: 0; }
.doc-layout--subpage .doc-body h2 { border-bottom: 0; padding-bottom: 0; }
.doc-layout--subpage .doc-body .shead h2 { margin: 0; align-self: center; }
/* Japanese section headings lead; the English label follows the rule. */
.shead { grid-template-columns: minmax(0, max-content) max-content minmax(0, 1fr); column-gap: var(--space-5); }
.shead .shead__ja { grid-column: 1; grid-row: 1; display: block; align-self: center; margin: 0; padding: 0; border: 0; color: var(--ink); font-size: var(--font-size-3xl); font-weight: var(--fw-bold); line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); }
.shead .shead__rule { grid-column: 2; grid-row: 1; }
.shead .shead__en { grid-column: 3; grid-row: 1; align-self: center; color: var(--ink-2); font-size: var(--font-size-base); font-weight: var(--fw-bold); line-height: var(--leading-base); }
.shead--white .shead__ja { color: var(--paper); }
.shead--white .shead__en { color: var(--paper-alpha-70); }
body.page-id-19 .shead .shead__title,
body.page-id-11 .shead .shead__title { font-size: var(--font-size-3xl); line-height: var(--leading-tight); }
.shead.shead--philosophy { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-3); text-align: center; }
.shead.shead--philosophy .shead__en { color: var(--ink); font-size: var(--font-size-4xl); line-height: var(--leading-tight); }
.shead.shead--philosophy .shead__ja { text-align: center; }
.shead.shead--philosophy .shead__rule { display: none; }
@media (max-width: 720px) {
  .shead { grid-template-columns: minmax(0, 1fr); }
  .shead .shead__ja { grid-column: 1; grid-row: 1; }
  .shead .shead__en { grid-column: 1; grid-row: 2; }
  .shead .shead__rule { display: none; }
}

.doc-layout--subpage .doc-body > .section--alt { padding: var(--space-6); }
.doc-layout--subpage .doc-body .grid--cols-3,
.doc-layout--subpage .doc-body .grid--cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.doc-sidebar { display: grid; gap: var(--space-8); min-width: 0; }
.doc-sidebar .doc-sidenav { position: static; display: block; }
.doc-sidebar .doc-sidenav__label { font-family: var(--sans-jp); font-size: var(--font-size-base); color: var(--ink); }
.doc-sidebar .doc-sidenav__list { list-style: none; margin: 0; padding: 0; border-left: 0; border-top: 1px solid var(--line); }
.doc-sidebar .doc-sidenav__list a {
  display: block;
  padding: var(--space-4);
  border-bottom: 1px solid var(--line);
  font-size: var(--font-size-sm);
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}
.doc-sidebar .doc-sidenav__list a:hover,
.doc-sidebar .doc-sidenav__list a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.doc-sidebar .doc-sidenav__list a[aria-current="page"] { font-weight: var(--fw-bold); }
.doc-sidebar .pre-footer-cta { padding: 0; }
.doc-sidebar .pre-footer-cta > .container { width: 100%; }
.doc-sidebar .pre-footer-cta__grid { grid-template-columns: minmax(0, 1fr); }
.doc-sidebar .pre-footer-cta__item { min-height: 0; padding: var(--space-5); }
.doc-sidebar .pre-footer-cta__action { margin-top: var(--space-2); }
.doc-layout--subpage .doc-body { overflow-wrap: anywhere; }
@media (max-width: 1199px) {
  .doc-layout--subpage { grid-template-columns: minmax(0, 1fr); }
  .site-header .global-nav { display: none; }
  .site-header .menu-toggle { display: inline-flex; }
  .doc-sidebar .pre-footer-cta__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  #main > .breadcrumb,
  .jwa-subpage #main > .page-hero > .container,
  .doc-layout--subpage.container { width: calc(100% - var(--space-5) * 2); }
  .doc-layout--subpage { padding-block: var(--space-8); }
  .doc-sidebar .pre-footer-cta__grid,
  .doc-layout--subpage .doc-body .grid--cols-3,
  .doc-layout--subpage .doc-body .grid--cols-4 { grid-template-columns: minmax(0, 1fr); }
}

/* Homepage introduction heading. */
.content-body .about-block__title { font-size: clamp(var(--font-size-2xl), 2.5vw, var(--font-size-3xl)); }

.doc-layout--subpage .content-body > h1 { font-size: clamp(var(--font-size-2xl), 2.5vw, var(--font-size-3xl)); line-height: var(--leading-tight); color: var(--ink); margin: 0 0 var(--space-6); }

/* Event status below the thumbnail, with readable colors for each state. */
:root { --success-strong: #146b4e; }
.seminar-card__media .seminar-card__status {
  position: static;
  margin: var(--space-3) 0 0;
  justify-self: start;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--status-color, var(--slate-2));
  color: var(--paper);
  font-size: var(--font-size-sm);
  font-weight: var(--fw-bold);
  line-height: var(--leading-tight);
}
.seminar-card__status--open { --status-color: var(--accent-2); }
.seminar-card__status--live { --status-color: var(--success-strong); }
.seminar-card__status--closed { --status-color: var(--error); }
.seminar-card__status--ended { --status-color: var(--ink-soft); }

/* Preserve the approved orange hero accent in the child theme. */
:root { --hero-accent: #ff9b42; }
.page-hero__script { color: var(--hero-accent); }

/* FAQ hero: Japanese title first, with a slightly larger English label below. */
.page-hero--faq .page-hero__title { margin-bottom: var(--space-3); }
.page-hero--faq .page-hero__script { font-size: 1.625rem; margin-bottom: 0; }

/* Shared subpage hero: Japanese title above its English label, without the blue rule. */
.page-hero__inner { display: flex; flex-direction: column; align-items: flex-start; }
.page-hero__inner > .page-hero__title { order: 0; margin-bottom: var(--space-3); }
.page-hero__inner > .page-hero__script { order: 1; font-size: 1.625rem; margin-bottom: 0; }
.page-hero__inner > .page-hero__rule { display: none; }
.page-hero__inner > .page-hero__lede { order: 2; margin-top: var(--space-5); }
.product-detail__title { font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.4; margin: 0 0 var(--space-5); }
@media (max-width: 767px) { .page-hero__inner > .page-hero__script { font-size: 1.375rem; } }

/* Compact affiliation and job title within officer cards. */
.officer-card__affiliation { font-size: var(--font-size-sm); font-weight: var(--fw-bold); line-height: var(--leading-tight); }
.officer-card__affiliation p { margin: 0; font-size: inherit; font-weight: inherit; line-height: inherit; }
.officer-card__affiliation p + p { margin-top: var(--space-1); }

/* Give the contact form the home page's 1020px content width. */
body.page-id-24 .doc-layout--subpage.container {
  --container-max: 1020px;
  width: min(var(--container-max), calc(100% - var(--space-6) * 2));
  grid-template-columns: minmax(0, 1fr);
}
body.page-id-24 .doc-layout--subpage .doc-sidebar { display: none; }
@media (max-width: 720px) {
  body.page-id-24 .doc-layout--subpage.container { width: calc(100% - var(--space-5) * 2); }
}

/* Center CF7 verification and submit controls without spinner displacement. */
.wpcf7 .form-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  text-align: center;
}

.wpcf7 .form-actions .wpcf7-spinner {
  position: absolute;
  left: calc(50% + 100px);
  margin: 0;
}

.wpcf7 .form-actions .wpcf7-submit {
  margin-left: 0;
  margin-right: 0;
}


/* WooCommerce cart and checkout use the same 1200px frame as other lower pages. */
#main > .page-hero--commerce > .container,
.commerce-flow__inner.container { width: min(var(--container-frame), calc(100% - var(--space-6) * 2)); }
.commerce-flow { padding-block: var(--space-10) var(--space-16); }
.commerce-flow__inner > .wp-block-woocommerce-cart,
.commerce-flow__inner > .wp-block-woocommerce-checkout { width: 100%; max-width: none; margin: 0; }
.commerce-flow .wc-block-components-sidebar-layout { margin: 0; }
.commerce-flow .wc-block-components-main { min-width: 0; }
.commerce-flow .wc-block-components-sidebar { background: var(--paper-2); border: 1px solid var(--line-soft); border-radius: var(--radius-md); padding: var(--space-5); }
.commerce-flow .wc-block-components-button.wc-block-cart__submit-button,
.commerce-flow .wc-block-components-button.wc-block-components-checkout-place-order-button { min-height: 3.5rem; border: 1px solid var(--ink); border-radius: var(--radius-pill); background: var(--ink); color: var(--paper); font-weight: var(--fw-bold); }
.commerce-flow .wc-block-components-button.wc-block-cart__submit-button:hover,
.commerce-flow .wc-block-components-button.wc-block-components-checkout-place-order-button:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.commerce-flow .wc-block-components-button:focus-visible { outline: 3px solid var(--hero-accent); outline-offset: 3px; }

/* A clear empty state for the application cart. */
.commerce-flow .wp-block-woocommerce-empty-cart-block {
  width: min(100%, 52rem);
  margin-inline: auto;
  padding: var(--space-8);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--paper-2);
  text-align: center;
}
.commerce-flow .wc-block-cart__empty-cart__title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: var(--fw-bold);
  line-height: var(--leading-tight);
  text-align: center;
}
.commerce-flow .wc-block-cart__empty-cart__title::before { display: none; }
.commerce-flow .wp-block-woocommerce-empty-cart-block p { margin: var(--space-4) 0 0; color: var(--ink-2); text-align: center; }
.commerce-flow .wp-block-woocommerce-empty-cart-block .wp-block-buttons { display: flex; justify-content: center; margin-top: var(--space-6); }
.commerce-flow .wp-block-woocommerce-empty-cart-block .wp-block-button__link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3.25rem;
  padding: var(--space-3) var(--space-6);
  border: 1px solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--paper);
  font-weight: var(--fw-bold);
  text-decoration: none;
}
.commerce-flow .wp-block-woocommerce-empty-cart-block .wp-block-button__link:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.commerce-flow .wp-block-woocommerce-empty-cart-block .wp-block-button__link:focus-visible { outline: 3px solid var(--hero-accent); outline-offset: 3px; }
@media (max-width: 720px) {
  .commerce-flow .wp-block-woocommerce-empty-cart-block { padding: var(--space-6) var(--space-5); }
  .commerce-flow .wp-block-woocommerce-empty-cart-block .wp-block-button,
  .commerce-flow .wp-block-woocommerce-empty-cart-block .wp-block-button__link { width: 100%; }
}

/* Persistent reminder only while the visitor still has products in the cart. */
body.jwa-has-cart-reminder { padding-bottom: 5rem; }
.cart-reminder { position: fixed; inset: auto 0 0; z-index: 1000; background: var(--ink-2); color: var(--paper); border-top: 3px solid var(--hero-accent); box-shadow: var(--shadow-lg); }
.cart-reminder__inner.container { width: min(var(--container-frame), calc(100% - var(--space-6) * 2)); display: flex; align-items: center; gap: var(--space-4); padding-block: var(--space-3); }
.cart-reminder__mark { display: grid; place-items: center; flex: 0 0 1.75rem; width: 1.75rem; height: 1.75rem; border-radius: var(--radius-circle); background: var(--hero-accent); color: var(--ink); font-weight: var(--fw-bold); }
.cart-reminder__message { margin: 0; color: var(--paper); font-size: var(--font-size-sm); font-weight: var(--fw-semi); line-height: var(--leading-base); }
.cart-reminder__link { flex: 0 0 auto; margin-inline-start: auto; padding: var(--space-2) var(--space-5); border: 1px solid var(--paper); border-radius: var(--radius-pill); color: var(--paper); font-size: var(--font-size-sm); font-weight: var(--fw-bold); text-decoration: none; }
.cart-reminder__link:hover { background: var(--paper); color: var(--ink); }
.cart-reminder__link:focus-visible { outline: 3px solid var(--hero-accent); outline-offset: 3px; }
@media (max-width: 720px) {
  #main > .page-hero--commerce > .container,
  .commerce-flow__inner.container,
  .cart-reminder__inner.container { width: calc(100% - var(--space-5) * 2); }
  .commerce-flow { padding-block: var(--space-8); }
  .commerce-flow .wc-block-components-sidebar { padding: var(--space-4); }
  body.jwa-has-cart-reminder { padding-bottom: 8rem; }
  .cart-reminder__inner.container { flex-wrap: wrap; gap: var(--space-2) var(--space-3); }
  .cart-reminder__message { flex: 1 1 calc(100% - 3rem); }
  .cart-reminder__link { margin-inline-start: 0; width: 100%; text-align: center; }
}

/* Keep the back-to-top control reachable above the fixed cart reminder. */
.jwa-has-cart-reminder .pagetop { bottom: calc(5rem + var(--space-4)); }
@media (max-width: 720px) {
  .jwa-has-cart-reminder .pagetop { bottom: calc(8rem + var(--space-4)); }
}


/* Order confirmation uses the same framed layout and controls as the application flow. */
.commerce-flow--complete .commerce-flow__inner > :not(.commerce-flow__actions) {
  width: min(100%, 56rem);
  margin-inline: auto;
  padding: var(--space-8);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.commerce-flow--complete .wc-block-order-confirmation-status,
.commerce-flow--complete .woocommerce-thankyou-order-received {
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  font-size: var(--font-size-lg);
  font-weight: var(--fw-bold);
  text-align: center;
}
.commerce-flow--complete .jwa-confirmation__title { display: block; font-size: 1.5rem; line-height: var(--leading-base); }
.commerce-flow--complete .jwa-confirmation__body { display: block; margin-top: var(--space-4); font-size: var(--font-size-base); font-weight: var(--fw-regular); line-height: var(--leading-base); }
.commerce-flow--complete .jwa-confirmation__note { display: block; margin-top: var(--space-2); color: var(--ink-2); font-size: var(--font-size-sm); font-weight: var(--fw-regular); line-height: var(--leading-base); }
.commerce-flow--complete .woocommerce ul.woocommerce-order-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: var(--space-8) 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--paper-2);
  list-style: none;
}
.commerce-flow--complete .woocommerce ul.woocommerce-order-overview::before,
.commerce-flow--complete .woocommerce ul.woocommerce-order-overview::after { content: none; display: none; }
.commerce-flow--complete .woocommerce ul.woocommerce-order-overview > li {
  float: none;
  min-width: 0;
  margin: 0;
  padding: var(--space-4) var(--space-5);
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-2);
  font-size: var(--font-size-sm);
  line-height: var(--leading-base);
  text-transform: none;
}
.commerce-flow--complete .woocommerce ul.woocommerce-order-overview > li:nth-child(odd):not(:last-child) { border-right: 1px solid var(--line-soft); }
.commerce-flow--complete .woocommerce ul.woocommerce-order-overview > li:last-child { grid-column: 1 / -1; border-bottom: 0; }
.commerce-flow--complete .woocommerce ul.woocommerce-order-overview > li strong {
  display: block;
  margin-top: var(--space-1);
  color: var(--ink);
  font-size: var(--font-size-base);
  font-weight: var(--fw-bold);
  overflow-wrap: anywhere;
}
@media (max-width: 720px) {
  .commerce-flow--complete .woocommerce ul.woocommerce-order-overview { grid-template-columns: minmax(0, 1fr); }
  .commerce-flow--complete .woocommerce ul.woocommerce-order-overview > li { padding: var(--space-3) var(--space-4); }
  .commerce-flow--complete .woocommerce ul.woocommerce-order-overview > li:nth-child(odd):not(:last-child) { border-right: 0; }
  .commerce-flow--complete .woocommerce ul.woocommerce-order-overview > li:last-child { grid-column: auto; }
}
.commerce-flow--complete h2 { margin-block: var(--space-8) var(--space-4); }
.commerce-flow--complete table { width: 100%; border-collapse: collapse; }
.commerce-flow--complete th,
.commerce-flow--complete td { padding: var(--space-3); border-bottom: 1px solid var(--line-soft); text-align: left; }
.commerce-flow__actions { display: flex; justify-content: center; margin-top: var(--space-8); }
.commerce-flow__actions .btn { min-width: 13rem; text-align: center; }
@media (max-width: 720px) {
  .commerce-flow--complete .commerce-flow__inner > :not(.commerce-flow__actions) { padding: var(--space-5); }
  .commerce-flow--complete th,
  .commerce-flow--complete td { padding-inline: var(--space-2); }
  .commerce-flow__actions .btn { width: 100%; }
}


/* Featured seminar status sits on its image; listing cards retain their below-image labels. */
body.home .seminar-card--featured .seminar-card__status {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  z-index: 2;
  margin: 0;
}

/* Match membership application choices to the member directory tabs. */
.jwa-form-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-1);
  margin: 0 0 var(--space-6);
  border-bottom: 2px solid var(--accent);
}
.jwa-form-options a.btn {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: var(--space-4) var(--space-2);
  border: 0;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: var(--paper-2);
  color: var(--ink-soft);
  font-size: var(--font-size-sm);
  font-weight: var(--fw-semi);
  line-height: var(--leading-base);
  text-align: center;
  overflow-wrap: anywhere;
}
.jwa-form-options a.btn[aria-current="page"],
.jwa-form-options a.btn:hover { background: var(--accent); color: var(--paper); }
.jwa-form-options + h3 { display: none; }

/* Keep the purchase action in the brand palette instead of WooCommerce purple. */
.single-product .buybox__body button.single_add_to_cart_button:where(:not(.disabled, :disabled)):is(:hover, :focus-visible) {
  background: var(--accent-2);
  color: var(--paper);
}

/* Keep the application action visibly unavailable until a plan is selected. */
body.single-product .buybox__body button.single_add_to_cart_button:is(.disabled, :disabled),
body.single-product .buybox__body button.single_add_to_cart_button:is(.disabled, :disabled):is(:hover, :focus, :focus-visible) {
  background: var(--line);
  border-color: var(--line);
  color: var(--ink-soft);
  opacity: 1;
  cursor: not-allowed;
  box-shadow: none;
  transition: none;
}

/* Complete the borders on content tables, including one-row contact tables. */
.data-table { border: 1px solid var(--line); }
.data-table th, .data-table td { border: 1px solid var(--line); }

/* The selected membership category is already shown in the tabs. */
body.page-id-25 .wpcf7 form > legend { display: none; }

/* Give the three philosophy item titles one step more emphasis. */
body.page-id-8 .philosophy__heading h3 { font-size: var(--font-size-lg); }

/* Follow the Sitemap menu in a single column with nested items indented. */
.sitemap-links {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  padding: 0;
}
.sitemap-links .sub-menu {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2);
  margin-block: var(--space-2) var(--space-4);
  padding-inline-start: var(--space-4);
  border-inline-start: 1px solid var(--line);
  list-style: none;
}

/* Use the same accent-and-underline treatment as other body links. */
.doc-body p a:not(.btn) {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Mobile application flow for the Web Analyst product. */
.product-detail__mobile-bar { display: none; }
@media (max-width: 767px) {
  body.postid-1163 .site-footer { padding-bottom: calc(var(--space-8) + var(--space-4) + env(safe-area-inset-bottom)); }
  body.postid-1163 .product-detail__buybox {
    order: 0;
    scroll-margin-top: calc(var(--header-height, 0px) + var(--space-4));
  }
  body.postid-1163 .product-detail__mobile-bar {
    position: fixed;
    z-index: 800;
    inset-inline: 0;
    bottom: 0;
    display: block;
    padding: var(--space-3) calc(3rem + var(--space-3) + var(--space-4)) max(var(--space-3), env(safe-area-inset-bottom)) var(--space-4);
    background: var(--ink);
    box-shadow: var(--shadow-sm);
  }
  body.postid-1163 .product-detail__mobile-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-pill);
    background: var(--accent);
    color: var(--paper);
    font-weight: var(--fw-bold);
    text-align: center;
  }
  body.postid-1163 .pagetop {
    right: var(--space-4);
    bottom: max(var(--space-3), env(safe-area-inset-bottom));
  }
}

/* Center the brand block in the single-column mobile footer. */
@media (max-width: 599px) {
  .site-footer .footer-brand { align-items: center; text-align: center; }
  .site-footer .footer-brand .textwidget {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .site-footer .footer-brand .btn { margin-inline: auto; }
}

/* News lists: keep date and arrow inset while the full row changes color. */
.news-row { padding-inline: var(--space-4); }
.news-row:hover,
.news-row:focus-visible {
  background: var(--paper-2);
  padding-inline: var(--space-4);
}
.home .news-row:hover,
.home .news-row:focus-visible { background: var(--paper); }
.news-row__arrow {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  background: transparent;
  font-size: 0;
  transition: color var(--transition-fast);
}
.news-row__arrow::after {
  content: '\f061';
  font-family: 'Font Awesome 7 Free';
  font-weight: 900;
  font-size: var(--font-size-lg);
  line-height: 1;
  transition: transform var(--transition-fast);
}
.news-row:hover .news-row__arrow,
.news-row:focus-visible .news-row__arrow {
  color: var(--accent);
  transform: none;
}
.news-row:hover .news-row__arrow::after,
.news-row:focus-visible .news-row__arrow::after {
  transform: translateX(3px);
}
@media (prefers-reduced-motion: reduce) {
  .news-row__arrow::after { transition: none; }
  .news-row:hover .news-row__arrow::after,
  .news-row:focus-visible .news-row__arrow::after { transform: none; }
}
@media (max-width: 720px) {
  .news-row__arrow { display: none; }
}

/* Use Font Awesome for common navigation controls. */
.menu-toggle > span,
.seminar-card__action > span[aria-hidden="true"],
.pagetop { font-size: 0; }
.menu-toggle > span::after,
.seminar-card__action > span[aria-hidden="true"]::after,
.pagetop::after,
.about-block .content-body > .btn::after,
.btn--round::after,
summary.faq-item__question::after {
  font-family: 'Font Awesome 7 Free';
  font-style: normal;
  font-weight: 900;
  font-synthesis: none;
  line-height: 1;
}
.menu-toggle > span::after { content: '\f0c9'; font-size: var(--font-size-xl); }
.seminar-card__action > span[aria-hidden="true"]::after { content: '\f061'; font-size: var(--font-size-sm); }
.pagetop::after { content: '\f062'; font-size: var(--font-size-base); }
.about-block .content-body > .btn::after,
.btn--round::after { content: '\f061'; }
summary.faq-item__question::after { content: '\f067'; font-size: var(--font-size-sm); }
.faq-item[open] summary.faq-item__question::after { content: '\f068'; }
.card__link { gap: var(--space-2); }

/* Keep membership fees and labels on one line; only eligibility may wrap. */
body.page-id-18 .data-table { min-width: 46rem; }
body.page-id-18 .data-table th,
body.page-id-18 .data-table td { padding-inline: var(--space-3); }
body.page-id-18 .data-table tr > :nth-child(-n+5) {
  white-space: nowrap;
  overflow-wrap: normal;
}
body.page-id-18 .data-table tr > :nth-child(6) {
  white-space: normal;
  overflow-wrap: normal;
}

/* Mobile breadcrumbs stay on one line; the final title is truncated. */
@media (max-width: 767px) {
  #main > .breadcrumb { overflow: hidden; }
  .breadcrumb__list { flex-wrap: nowrap; min-width: 0; overflow: hidden; }
  .breadcrumb__item { min-width: 0; white-space: nowrap; }
  .breadcrumb__item:not(:last-child) { flex: 0 0 auto; }
  .breadcrumb__item:last-child { display: block; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; }
  .jwa-subpage .page-hero__title,
  .jwa-subpage .page-hero h1,
  .jwa-subpage .content-body > h1 { font-size: 1.5rem; line-height: 1.35; }
}

/* Place member-page actions at the right edge of the content column. */
.member-layout .member-portal-actions,
.member-layout .jwa-cert-summary > p:last-child {
  display: flex;
  justify-content: flex-end;
}

/* Keep single-select arrows aligned across public forms. */
select.form-select:not([multiple]),
select.form-input:not([multiple]),
select.listing-sort__select:not([multiple]),
.woocommerce-ordering select:not([multiple]),
.buybox__body table.variations select:not([multiple]),
.woocommerce select.country_select:not(.select2-hidden-accessible),
.woocommerce select.state_select:not(.select2-hidden-accessible) {
  appearance: none;
  background-image: url("select-chevron.svg");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  background-size: 12px 8px;
  padding-right: var(--space-8);
}

/* Compact seminar application panels and separate the following content. */
.single-jwa_seminar .content-body > .entry-support.section__cta {
  padding-block: 24px;
  margin-bottom: 32px;
}

/* Align event-card headings with the top of their thumbnails. */
.seminar-card .seminar-card__content > .seminar-card__title {
  margin-top: 0;
}

/* Keep officer titles and names together, without article heading margins. */
.officer-card .officer-card__identity {
  gap: var(--space-1);
}
.officer-card .officer-card__identity > .officer-card__role {
  margin: 0;
  font-size: var(--font-size-sm);
}
.officer-card .officer-card__identity > .officer-card__name {
  margin: 0;
  font-size: var(--font-size-lg);
}
