/* Only the theme envelope. No generic button, input or heading selectors. */
.ll-theme { --ll-button-padding: 6px 16px; --ll-button-height: 40px; --ll-button-font-size: 14px; --ll-button-line-height: 1.25; }
@media (max-width: 767px), (pointer: coarse) { .ll-theme { --ll-button-height: 44px; } }
.ll-theme-header--connected .ll-theme-header__inner { gap: 12px; padding: 12px 16px; }
.ll-theme-header--connected .ll-theme-brand { display: flex; align-items: center; gap: 8px; max-width: 42%; }
.ll-theme-header--connected .ll-theme-brand img { max-height: 36px; max-width: 48px; }
.ll-theme-header--connected .ll-theme-brand__name { white-space: normal; font-size: 15px; }
.ll-theme-connected-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; min-width: 0; max-width: 100%; }
.ll-theme-profile-dropdown { position: relative; }
.ll-theme-profile-dropdown summary { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 12px; border: 1px solid #ead3bf; border-radius: 24px; background: #fff7ed; color: #2d3748; cursor: pointer; list-style: none; max-width: 180px; overflow-wrap: anywhere; }
.ll-theme-profile-dropdown summary::-webkit-details-marker { display: none; }
.ll-theme-profile-avatar { display: block; width: 32px; height: 32px; flex: 0 0 32px; object-fit: contain; }
.ll-theme-profile-name { min-width: 0; overflow-wrap: anywhere; }
.ll-theme-profile-caret { display: block; flex: 0 0 auto; width: 0; height: 0; margin-left: 2px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid currentColor; }
.ll-theme-parent-profiles { display: flex; flex-wrap: wrap; gap: 6px; max-width: 100%; }
.ll-theme-parent-profiles form { margin: 0; min-width: 0; }
/* Parent dashboard profile tabs: theme-red selection, not a child-mode switch. */
.ll-theme-header .ll-theme-parent-profiles button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; max-width: 100%; padding: 6px 12px; border: 1px solid #c63e00; border-radius: 8px; background: #fff; color: #c63e00; font: 800 .95rem/1.2 system-ui, sans-serif; text-align: center; cursor: pointer; transition: background-color .16s, border-color .16s, color .16s, transform .16s; }
.ll-theme-header .ll-theme-parent-profiles button[aria-pressed=true] { background: #c63e00; color: #fff; }
.ll-theme-header .ll-theme-parent-profiles button:is(:hover, :focus-visible) { transform: translateY(-1px); }
.ll-theme-header .ll-theme-parent-profiles button:focus-visible { outline: 3px solid #215387; outline-offset: 3px; }
.ll-theme-parent-profiles img { width: 28px; height: 28px; flex: 0 0 28px; object-fit: contain; }
.ll-theme-parent-profiles span { min-width: 0; overflow-wrap: anywhere; }
.ll-theme-profile-dropdown summary:focus-visible { outline: 3px solid #215387; outline-offset: 3px; }
.ll-theme-profile-dropdown ul { position: absolute; z-index: 1000; top: calc(100% + 8px); right: 0; width: min(270px, calc(100vw - 40px)); margin: 0; padding: 8px; list-style: none; background: #fff; border: 1px solid #ead3bf; border-radius: 12px; box-shadow: 0 8px 24px rgb(0 0 0 / 12%); }
.ll-theme-profile-dropdown a, .ll-theme-profile-dropdown button { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 10px 12px; border: 0; border-radius: 8px; background: #fff; color: #2d3748; font: inherit; text-decoration: none; text-align: left; overflow-wrap: anywhere; cursor: pointer; }
.ll-theme-profile-dropdown form { margin: 0; }
.ll-theme-profile-dropdown a:hover, .ll-theme-profile-dropdown button:hover { background: #fff7ed; }
.ll-theme-connected-badges { padding: 0; margin: 0; list-style: none; }
@media (max-width: 600px) {
 .ll-theme-header--connected { position: relative; }
 .ll-theme-profile-dropdown { position: static; }
 .ll-theme-profile-dropdown ul { left: 16px; right: 16px; width: auto; }
}
.ll-theme-profile-dropdown button:focus-visible { outline: 3px solid #215387; outline-offset: 2px; }
@media (max-width: 420px) { .ll-theme-header--connected .ll-theme-brand__name { display: none; } .ll-theme-profile-dropdown summary { max-width: 145px; } }
.ll-theme-header, .ll-theme-header *, .ll-theme-footer, .ll-theme-footer * { box-sizing: border-box; }
.ll-theme-header, .ll-theme-footer { background: #fff; color: #1a202c; font: 16px/1.5 system-ui, sans-serif; }
.ll-theme-header { border-bottom: 1px solid #f1e6d8; }
.ll-theme-header__inner, .ll-theme-footer__inner { max-width: 1290px; margin-inline: auto; padding: 16px; }
.ll-theme-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.ll-theme-brand { max-width: min(240px, 65%); }
.ll-theme-brand a { color: inherit; text-decoration: none; font-weight: 800; }
.ll-theme-brand img { display: block; max-width: 100%; width: auto; height: auto; max-height: 64px; }
.ll-theme-navigation { width: 100%; }
.ll-theme-menu, .ll-theme-menu .sub-menu, .ll-theme-footer-menu { margin: 0; padding: 0; list-style: none; }
.ll-theme-menu { display: flex; flex-direction: column; gap: 8px; }
.ll-theme-menu a, .ll-theme-footer-menu a { display: inline-flex; min-height: 42px; align-items: center; padding: 8px; color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.ll-theme-menu .sub-menu { padding-left: 16px; }
.ll-theme-footer-menu { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.ll-theme-footer { background: #2d3748; color: #f4f5f7; }
.ll-theme-footer__inner { max-width: 1000px; padding: 32px 24px 24px; }
.ll-theme-footer__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.ll-theme-footer__brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 600; }
.ll-theme-footer__brand img { display: block; width: auto; height: auto; max-width: 48px; max-height: 48px; border-radius: 10px; background: #fff; }
.ll-theme-footer .ll-theme-footer-menu { display: flex; flex-direction: column; gap: 0; font-size: 14px; }
.ll-theme-footer-menu a, .ll-theme-footer-menu span { display: flex; align-items: center; min-height: 44px; padding: 0; overflow-wrap: anywhere; }
.ll-theme-footer-menu a:hover { text-decoration: underline; }
.ll-theme-footer__copyright { border-top: 1px solid #465164; margin: 24px 0 0; padding-top: 16px; font-size: 12px; }
.ll-theme-footer a:focus-visible { outline-color: #fff; }
@media (min-width: 768px) {
	.ll-theme-footer__inner { padding-block: 32px 24px; }
	.ll-theme-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
	.ll-theme-footer__brand { align-self: center; }
}
.ll-theme-menu-toggle { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 16px; border: 1px solid #FFA126; border-radius: 8px; background: #FFA126; color: #fff; font: 800 .95rem/1.2 system-ui, sans-serif; text-align: center; text-decoration: none; transition: background .16s, border-color .16s, color .16s, transform .16s; cursor: pointer; }
.ll-theme-menu-toggle:hover, .ll-theme-menu-toggle:focus { background: #FFA126; color: #fff; transform: translateY(-1px); }
.ll-theme-header .ll-theme-menu-toggle { background: #c63e00; border-color: #c63e00; color: #fff; }
.ll-theme-header .ll-theme-menu-toggle:is(:hover, :focus-visible) { background: #a93000; border-color: #a93000; color: #fff; }
.ll-theme-header--parent.ll-theme-header--connected .ll-theme-brand__name { display: block; font-size: 14px; }
.ll-theme-header--parent.ll-theme-header--connected .ll-theme-brand { max-width: 48%; }
.ll-theme-header--child.ll-theme-header--connected .ll-theme-brand__name { display: block; font-size: 14px; }
.ll-theme-menu-toggle[hidden] { display: none; }
.ll-theme-navigation-ready .ll-theme-menu-toggle[aria-expanded="false"] + .ll-theme-navigation { display: none; }
.ll-theme-header a:focus-visible, .ll-theme-footer a:focus-visible, .ll-theme-menu-toggle:focus-visible { outline: 3px solid #215387; outline-offset: 3px; }
.ll-theme-skip { position: absolute; top: 8px; left: 8px; z-index: 100000; padding: 12px; background: #fff; color: #1a202c; transform: translateY(-200%); }
.ll-theme-skip:focus { transform: none; }
@media (min-width: 1025px) {
	.ll-theme-menu-toggle { display: none; }
	.ll-theme-navigation, .ll-theme-navigation-ready .ll-theme-menu-toggle[aria-expanded="false"] + .ll-theme-navigation { display: block; width: auto; }
	.ll-theme-menu { flex-direction: row; flex-wrap: wrap; align-items: center; }
	/* Nested links remain visible and usable by touch and keyboard in this foundation. */
	.ll-theme-menu .sub-menu { font-size: .9em; }
}
@media (prefers-reduced-motion: reduce) { .ll-theme-menu-toggle { transition: none; } }

/* Public shell inspired by the supplied Figma header; no selectors in page content. */
.ll-theme-header--public .ll-theme-header__inner { max-width: 1200px; padding: 12px 20px; gap: 12px 24px; }
.ll-theme-header--public .ll-theme-brand { display: flex; align-items: center; gap: 10px; max-width: 65%; }
.ll-theme-header--public .ll-theme-brand img { max-height: 38px; max-width: 62px; }
.ll-theme-brand__name { font-size: 18px; font-weight: 700; white-space: nowrap; }
.ll-theme-header--public .ll-theme-navigation { gap: 24px; }
.ll-theme-header--public .ll-theme-menu a { padding: 10px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; }
.ll-theme-header--public .ll-theme-menu a:hover { background: #fff7ed; color: #b93600; }
.ll-theme-public-actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin-top: 16px; }
.ll-theme-login, .ll-theme-trial { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border-radius: 8px; font-size: 14px; font-weight: 700; line-height: 1.25; text-align: center; text-decoration: none; }
.ll-theme-login { color: #215387; }
.ll-theme-trial { background: #c53b00; color: #fff; border: 1px solid #c53b00; }
.ll-theme-trial:hover { background: #a83200; color: #fff; }
.ll-theme-trial--pending { opacity: .65; cursor: not-allowed; }
/* Paired external-page actions only, never public nav/login or Core/SBO controls. */
body:is(.ll-theme-account-page, .ll-theme-membership-page) :is(.woocommerce-MyAccount-content, .pmpro_card_actions, .pmpro_actions_nav) :is(a.button + a.button, a.ll-btn + a.ll-btn, a.pmpro_btn + a.pmpro_btn),
body.ll-theme-membership-page :is(.pmpro_card_actions, .pmpro_actions_nav) a + a { background: #fff; border: 1px solid #c63e00; color: #c63e00; text-decoration: none; }
body:is(.ll-theme-account-page, .ll-theme-membership-page) :is(.woocommerce-MyAccount-content, .pmpro_card_actions, .pmpro_actions_nav) :is(a.button + a.button, a.ll-btn + a.ll-btn, a.pmpro_btn + a.pmpro_btn):is(:hover, :focus-visible),
body.ll-theme-membership-page :is(.pmpro_card_actions, .pmpro_actions_nav) a + a:is(:hover, :focus-visible) { background: #fff; border-color: #c63e00; color: #c63e00; text-decoration: none; }
.ll-theme :is(.ll-theme-login, .ll-theme-trial, .ll-theme-menu-toggle) { box-sizing: border-box; min-height: var(--ll-button-height); padding: var(--ll-button-padding); font-size: var(--ll-button-font-size); line-height: var(--ll-button-line-height); }
.ll-theme .ll-theme-badge-star { display: block; width: 28px; height: 28px; object-fit: contain; }
/* Explicit parent-detail exception: use the validated theme button, not the child dashboard preset. */
.ll-theme .llpd-parent-detail .llpd-parent-detail-return { display: inline-flex; justify-content: center; align-items: center; box-sizing: border-box; max-width: 100%; min-height: var(--ll-button-height, 42px); padding: var(--ll-button-padding, 10px 16px); border: 1px solid #c63e00; border-radius: 8px; background: #c63e00; color: #fff; font-size: var(--ll-button-font-size, .95rem); font-weight: 800; line-height: 1.2; text-align: center; text-decoration: none; white-space: normal; transition: background .16s, border-color .16s, color .16s, transform .16s; }
.ll-theme .llpd-parent-detail .llpd-parent-detail-return:is(:hover, :focus-visible) { background: #a93000; border-color: #a93000; color: #fff; text-decoration: none; transform: translateY(-1px); }
@media (min-width: 1025px) {
	.ll-theme-header--public .ll-theme-navigation,
	.ll-theme-navigation-ready .ll-theme-header--public .ll-theme-menu-toggle[aria-expanded="false"] + .ll-theme-navigation { display: flex; align-items: center; justify-content: space-between; flex: 1; }
	.ll-theme-header--public .ll-theme-menu { margin-inline: auto; }
	.ll-theme-public-actions { flex-direction: row; align-items: center; margin-top: 0; }
}
