:root {
    --tac-bg: #ffffff;
    --tac-text: #171717;
    --tac-muted: #5f6670;
    --tac-dark: #0b0d10;
    --tac-dark-2: #15191e;
    --tac-light: #f4f6f8;
    --tac-border: #d9dde2;
    --tac-accent: #d6a536;
    --tac-accent-dark: #a77d1d;
    --tac-max: 1240px;
    --tac-radius: 14px;
    --tac-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
    --tac-header-bottom: 86px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--tac-bg);
    color: var(--tac-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

body.tac-menu-open,
body.tac-popup-open {
    overflow: hidden;
}

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

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #111111;
    line-height: 1.15;
    margin-top: 0;
}

p:first-child {
    margin-top: 0;
}

p:last-child {
    margin-bottom: 0;
}

.tac-skip-link {
    position: fixed;
    left: 12px;
    top: -80px;
    z-index: 10000;
    padding: 10px 14px;
    background: #ffffff;
    color: #000000;
    border-radius: 6px;
}

.tac-skip-link:focus {
    top: 12px;
}

/* =========================================================
   GLOBAL HEADER
   ========================================================= */
.tac-site-header {
    position: sticky;
    top: 0;
    z-index: 4000;
    background: rgba(11, 13, 16, 0.985);
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.admin-bar .tac-site-header {
    top: 32px;
}

.tac-header-accent {
    height: 4px;
    background: var(--tac-accent);
}

.tac-header-wrap {
    width: min(calc(100% - 36px), var(--tac-max));
    min-height: 82px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: clamp(20px, 3vw, 44px);
}

.tac-brand {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 0 0 auto;
}

.tac-brand .custom-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.tac-brand .custom-logo {
    display: block;
    width: auto;
    max-width: 210px;
    max-height: 62px;
    object-fit: contain;
}

.tac-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tac-site-title {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.16rem;
    font-weight: 850;
    letter-spacing: 0.025em;
}

.tac-site-tagline {
    color: #aeb6c0;
    font-size: 0.72rem;
    line-height: 1.3;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.tac-primary-nav {
    min-width: 0;
    margin-left: auto;
}

.tac-mobile-nav-heading {
    display: none;
}

.tac-nav-list,
.tac-primary-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
}

.tac-primary-nav li {
    position: relative;
    margin: 0;
}

.tac-primary-nav a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 9px;
    color: #edf1f5;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 720;
    line-height: 1.2;
    white-space: nowrap;
    border-radius: 8px;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.tac-primary-nav a:hover,
.tac-primary-nav a:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    outline: none;
}

.tac-primary-nav .current-menu-item > a,
.tac-primary-nav .current-menu-ancestor > a {
    color: #ffffff;
}

.tac-primary-nav .current-menu-item > a::before,
.tac-primary-nav .current-menu-ancestor > a::before {
    content: "";
    position: absolute;
    left: 9px;
    right: 9px;
    bottom: 4px;
    height: 2px;
    background: var(--tac-accent);
    border-radius: 999px;
}

.tac-primary-nav .menu-item-has-children > a {
    padding-right: 25px;
}

.tac-primary-nav .menu-item-has-children > a::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-68%) rotate(45deg);
    opacity: 0.75;
}

.tac-submenu-toggle {
    display: none;
}

.tac-primary-nav .sub-menu {
    position: absolute;
    top: calc(100% + 9px);
    left: 0;
    z-index: 20;
    min-width: 280px;
    max-width: 360px;
    padding: 9px;
    display: none;
    background: #12161b;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 12px;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.30);
}

.tac-primary-nav .sub-menu::before {
    content: "";
    position: absolute;
    left: 24px;
    top: -6px;
    width: 11px;
    height: 11px;
    background: #12161b;
    border-left: 1px solid rgba(255, 255, 255, 0.11);
    border-top: 1px solid rgba(255, 255, 255, 0.11);
    transform: rotate(45deg);
}

/*
 * Desktop hover bridge.
 * The submenu intentionally sits a few pixels below its parent item for
 * visual separation. This transparent hit area fills that gap so the
 * dropdown does not close while the pointer travels from the parent link
 * into the submenu.
 */
@media (min-width: 1025px) {
    .tac-primary-nav .sub-menu::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: -16px;
        height: 16px;
        background: transparent;
        pointer-events: auto;
    }

    /* Nested flyout menus use a horizontal gap instead of a vertical one. */
    .tac-primary-nav .sub-menu .sub-menu::after {
        left: -16px;
        right: auto;
        top: 0;
        width: 16px;
        height: 100%;
    }
}

.tac-primary-nav li:hover > .sub-menu,
.tac-primary-nav li:focus-within > .sub-menu {
    display: block;
}

.tac-primary-nav .sub-menu li,
.tac-primary-nav .sub-menu a {
    width: 100%;
}

.tac-primary-nav .sub-menu a {
    min-height: 0;
    padding: 12px 13px;
    white-space: normal;
    font-size: 0.88rem;
    border-radius: 8px;
}

.tac-primary-nav .sub-menu a:hover,
.tac-primary-nav .sub-menu a:focus-visible {
    background: rgba(255, 255, 255, 0.08);
}

.tac-primary-nav .sub-menu .sub-menu {
    top: -9px;
    left: calc(100% + 10px);
}

.tac-primary-nav .sub-menu .sub-menu::before {
    display: none;
}

.tac-primary-nav a.tac-nav-cta-link {
    margin-left: 8px;
    padding: 11px 15px;
    background: var(--tac-accent);
    color: #111111;
    border: 1px solid var(--tac-accent);
    font-weight: 850;
    box-shadow: 0 8px 22px rgba(214, 165, 54, 0.16);
}

.tac-primary-nav a.tac-nav-cta-link:hover,
.tac-primary-nav a.tac-nav-cta-link:focus-visible {
    background: #e1b64a;
    color: #111111;
    transform: translateY(-1px);
}

.tac-primary-nav a.tac-nav-cta-link::before,
.tac-primary-nav a.tac-nav-cta-link::after {
    display: none;
}

.tac-menu-toggle {
    display: none;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 9px 12px 9px 14px;
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    color: #ffffff;
    cursor: pointer;
}

.tac-menu-toggle:hover,
.tac-menu-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.40);
    outline: none;
}

.tac-menu-toggle-label {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.tac-menu-icon {
    display: block;
    width: 25px;
}

.tac-menu-icon > span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background: #ffffff;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.tac-menu-toggle[aria-expanded="true"] .tac-menu-icon > span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.tac-menu-toggle[aria-expanded="true"] .tac-menu-icon > span:nth-child(2) {
    opacity: 0;
}

.tac-menu-toggle[aria-expanded="true"] .tac-menu-icon > span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.tac-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 3500;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    cursor: default;
}

.tac-menu-overlay[hidden] {
    display: none !important;
}

/* Page shell */
.tac-page-shell {
    min-height: 55vh;
}

.tac-page-content {
    margin: 0;
}

.tac-page-content > :where(:not(.alignfull):not(.alignwide):not(.tac-page):not(.tac-full-width)) {
    width: min(calc(100% - 32px), 820px);
    margin-left: auto;
    margin-right: auto;
}

.tac-content-width {
    width: min(calc(100% - 32px), 900px);
    margin: 0 auto;
    padding: 64px 0;
}

.tac-standard-section {
    padding: 72px 0;
}

.tac-eyebrow {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--tac-accent-dark);
}

.tac-button,
a.tac-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 20px;
    background: var(--tac-accent);
    color: #111111;
    border: 1px solid var(--tac-accent);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
}

.tac-button:hover,
.tac-button:focus-visible {
    background: #e0b84f;
}

.tac-post-card {
    padding: 28px 0;
    border-bottom: 1px solid var(--tac-border);
}

/* =========================================================
   GLOBAL FOOTER
   ========================================================= */
.tac-site-footer {
    position: relative;
    background: #0b0d10;
    color: #d9dee5;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tac-footer-accent {
    height: 4px;
    background: var(--tac-accent);
}

.tac-footer-main {
    background:
        radial-gradient(circle at 10% 0%, rgba(214, 165, 54, 0.09), transparent 30%),
        linear-gradient(180deg, #11151a 0%, #0b0d10 100%);
}

.tac-footer-grid {
    width: min(calc(100% - 36px), var(--tac-max));
    margin: 0 auto;
    padding: clamp(52px, 7vw, 78px) 0 clamp(44px, 6vw, 64px);
    display: grid;
    grid-template-columns: minmax(260px, 1.55fr) repeat(3, minmax(150px, 0.8fr));
    gap: 38px clamp(28px, 4vw, 54px);
    align-items: start;
}

.tac-footer-brand {
    max-width: 430px;
}

.tac-footer-brand-mark {
    margin-bottom: 18px;
}

.tac-footer-brand .custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.tac-footer-brand .custom-logo {
    display: block;
    width: auto;
    max-width: 220px;
    max-height: 72px;
    object-fit: contain;
}

.tac-footer-site-name {
    color: #ffffff;
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    font-weight: 850;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.tac-footer-tagline {
    margin: 0 0 14px;
    color: var(--tac-accent);
    font-size: 0.82rem;
    font-weight: 850;
    letter-spacing: 0.13em;
    line-height: 1.4;
    text-transform: uppercase;
}

.tac-footer-summary {
    max-width: 420px;
    margin: 0 0 24px;
    color: #aeb6c0;
    font-size: 0.95rem;
    line-height: 1.75;
}

.tac-footer-cta {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 48px;
    padding: 12px 17px;
    background: var(--tac-accent);
    color: #101010;
    border: 1px solid var(--tac-accent);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(214, 165, 54, 0.13);
    text-decoration: none;
    font-weight: 850;
    line-height: 1.2;
    transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.tac-footer-cta:hover,
.tac-footer-cta:focus-visible {
    background: #e0b84f;
    color: #101010;
    transform: translateY(-1px);
    box-shadow: 0 13px 28px rgba(214, 165, 54, 0.18);
    outline: none;
}

.tac-footer-cta-arrow {
    font-size: 1.2rem;
    line-height: 1;
}

.tac-footer-heading {
    margin: 2px 0 18px;
    padding-bottom: 10px;
    color: #ffffff;
    font-size: 0.83rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.tac-footer-heading::after {
    content: "";
    display: block;
    width: 34px;
    height: 2px;
    margin-top: 10px;
    margin-bottom: -12px;
    background: var(--tac-accent);
    border-radius: 999px;
}

.tac-footer-menu,
.tac-social-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tac-footer-menu {
    display: grid;
    gap: 10px;
}

.tac-footer-menu li,
.tac-social-menu li {
    margin: 0;
    padding: 0;
}

.tac-footer-menu a,
.tac-social-menu a,
.tac-footer-site-link {
    color: #cbd1d8;
    text-decoration: none;
    font-size: 0.92rem;
    line-height: 1.45;
    transition: color 0.16s ease, transform 0.16s ease;
}

.tac-footer-menu a {
    display: inline-block;
}

.tac-footer-menu a:hover,
.tac-footer-menu a:focus-visible,
.tac-social-menu a:hover,
.tac-social-menu a:focus-visible,
.tac-footer-site-link:hover,
.tac-footer-site-link:focus-visible {
    color: var(--tac-accent);
    outline: none;
}

.tac-footer-menu a:hover,
.tac-footer-menu a:focus-visible {
    transform: translateX(2px);
}

.tac-footer-handle {
    margin: 0 0 16px;
    color: #ffffff;
    font-weight: 760;
}

.tac-social-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.tac-social-menu a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.035);
}

.tac-social-menu a:hover,
.tac-social-menu a:focus-visible {
    border-color: rgba(214, 165, 54, 0.55);
    background: rgba(214, 165, 54, 0.08);
}

.tac-footer-site-link {
    display: inline-block;
    color: #aeb6c0;
    word-break: break-word;
}

.tac-footer-partners {
    display: grid;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.tac-footer-partners-label {
    margin: 0;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.tac-tactical-hyve-badge {
    display: inline-block;
    width: min(100%, 190px);
    line-height: 0;
}

.tac-tactical-hyve-badge img {
    display: block;
    width: 100%;
    height: auto;
    border: 0;
}

.tac-footer-aor-link {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: min(100%, 230px);
    padding: 11px 13px;
    color: #101010;
    background: var(--tac-accent);
    border: 1px solid var(--tac-accent);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 850;
    line-height: 1.2;
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.tac-footer-aor-link small {
    font-size: 0.72rem;
    font-weight: 700;
    opacity: 0.78;
}

.tac-footer-aor-link:hover,
.tac-footer-aor-link:focus-visible {
    color: #101010;
    background: #e0b84f;
    transform: translateY(-1px);
    outline: none;
}

.tac-footer-bottom {
    background: #080a0c;
    border-top: 1px solid rgba(255, 255, 255, 0.075);
}

.tac-footer-bottom-inner {
    width: min(calc(100% - 36px), var(--tac-max));
    min-height: 72px;
    margin: 0 auto;
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px 30px;
}

.tac-footer-copyright,
.tac-footer-credit {
    margin: 0;
    color: #7f8994;
    font-size: 0.8rem;
    line-height: 1.5;
}

.tac-footer-credit {
    text-align: right;
}

/* =========================================================
   GLOBAL SITE POPUP
   ========================================================= */
.tac-popup-backdrop[hidden] {
    display: none !important;
}

.tac-popup-backdrop {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: grid;
    place-items: center;
    padding: clamp(12px, 2vw, 24px);
    background: rgba(5, 7, 9, 0.82);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    overflow-y: auto;
}

.tac-popup {
    position: relative;
    width: min(100%, 820px);
    max-height: calc(100dvh - 32px);
    overflow: auto;
    overscroll-behavior: contain;
    background: #ffffff;
    color: #14171a;
    border: 1px solid rgba(214, 165, 54, 0.34);
    border-radius: 16px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
    scrollbar-gutter: stable;
}

.tac-popup:focus {
    outline: none;
}

.tac-popup-has-image {
    display: grid;
    grid-template-columns: minmax(250px, 0.82fr) minmax(0, 1.18fr);
    width: min(100%, 980px);
}

.tac-popup-media {
    min-height: 100%;
    background: #101317;
    overflow: hidden;
    border-radius: 15px 0 0 15px;
}

.tac-popup-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
}

/* Popup image display options. "Contain" is ideal for flyers/posters because
   the entire artwork stays visible. "Cover" keeps the original fill/crop look. */
.tac-popup-image-contain .tac-popup-media {
    min-height: 0;
    aspect-ratio: 1 / 1;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tac-popup-image-contain .tac-popup-media img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    object-position: center;
}

.tac-popup-image-cover .tac-popup-media img {
    object-fit: cover;
    object-position: center;
}

.tac-popup-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(30px, 5vw, 56px);
}

.tac-popup-eyebrow {
    margin: 0 0 10px;
    color: #8b6713;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.14em;
    line-height: 1.3;
    text-transform: uppercase;
}

.tac-popup h2 {
    margin: 0 58px 16px 0;
    color: #111418;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.tac-popup-copy {
    margin: 0 0 24px;
    color: #424951;
    font-size: clamp(0.98rem, 1.7vw, 1.08rem);
    line-height: 1.68;
}

.tac-popup-copy > :first-child {
    margin-top: 0;
}

.tac-popup-copy > :last-child {
    margin-bottom: 0;
}

.tac-popup-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tac-popup-primary,
.tac-popup-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 820;
    line-height: 1.2;
    text-decoration: none;
    transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.tac-popup-primary {
    background: var(--tac-accent);
    color: #15120a;
    border: 1px solid var(--tac-accent);
}

.tac-popup-primary:hover,
.tac-popup-primary:focus-visible {
    background: #e2b64d;
    border-color: #e2b64d;
    transform: translateY(-1px);
    outline: none;
}

.tac-popup-secondary {
    background: transparent;
    color: #171a1e;
    border: 1px solid #c7ccd2;
}

.tac-popup-secondary:hover,
.tac-popup-secondary:focus-visible {
    background: #f1f3f5;
    border-color: #9da5ad;
    transform: translateY(-1px);
    outline: none;
}

.tac-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: #111418;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
    font-family: Arial, sans-serif;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    touch-action: manipulation;
}

.tac-popup-close span {
    display: block;
    transform: translateY(-1px);
}

.tac-popup-close:hover,
.tac-popup-close:focus-visible {
    background: var(--tac-accent);
    color: #111418;
    border-color: var(--tac-accent);
    outline: 3px solid rgba(214, 165, 54, 0.28);
    outline-offset: 2px;
}

body.tac-popup-open {
    overflow: hidden;
}

@media (max-width: 760px) {
    .tac-popup-backdrop {
        align-items: end;
        padding: 10px;
    }

    .tac-popup,
    .tac-popup-has-image {
        display: block;
        width: 100%;
        max-height: calc(100dvh - 20px);
        border-radius: 14px;
    }

    .tac-popup-media {
        height: min(30vh, 220px);
        min-height: 0;
        border-radius: 13px 13px 0 0;
    }

    .tac-popup-media img {
        min-height: 0;
    }


    .tac-popup-image-contain .tac-popup-media {
        width: 100%;
        height: auto;
        max-height: none;
        aspect-ratio: 1 / 1;
        min-height: 0;
    }

    .tac-popup-image-contain .tac-popup-media img {
        width: 100%;
        height: 100%;
        min-height: 0;
        object-fit: contain;
        object-position: center;
    }

    .tac-popup-content {
        padding: 28px 22px 26px;
    }

    .tac-popup h2 {
        margin-right: 54px;
        font-size: clamp(1.65rem, 8vw, 2.25rem);
    }

    .tac-popup-actions {
        flex-direction: column;
    }

    .tac-popup-primary,
    .tac-popup-secondary {
        width: 100%;
        min-height: 50px;
    }

    .tac-popup-close {
        width: 50px;
        height: 50px;
        top: 10px;
        right: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tac-popup-primary,
    .tac-popup-secondary {
        transition: none;
    }
}

/* Generic helpers for hand-coded pages */
.tac-wrap {
    width: min(calc(100% - 32px), var(--tac-max));
    margin-inline: auto;
}

.tac-section {
    padding: clamp(52px, 8vw, 96px) 0;
}

.tac-section-light {
    background: #ffffff;
    color: #171717;
}

.tac-section-muted {
    background: var(--tac-light);
    color: #171717;
}

.tac-section-dark {
    background: var(--tac-dark);
    color: #ffffff;
}

.tac-section-dark h1,
.tac-section-dark h2,
.tac-section-dark h3,
.tac-section-dark h4,
.tac-section-dark h5,
.tac-section-dark h6 {
    color: #ffffff;
}

/* =========================================================
   TABLET / MOBILE NAVIGATION
   ========================================================= */
@media (max-width: 1180px) {
    .tac-header-wrap {
        min-height: 78px;
    }

    .tac-menu-toggle {
        display: inline-flex;
    }

    .tac-primary-nav {
        position: fixed;
        top: var(--tac-header-bottom);
        right: 0;
        bottom: 0;
        z-index: 4100;
        width: min(92vw, 430px);
        margin: 0;
        padding: 0 20px 28px;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: #0e1115;
        border-left: 1px solid rgba(255, 255, 255, 0.10);
        box-shadow: -18px 0 48px rgba(0, 0, 0, 0.26);
        transform: translateX(102%);
        visibility: hidden;
        opacity: 0;
        transition: transform 0.22s ease, visibility 0.22s ease, opacity 0.22s ease;
    }

    .tac-primary-nav.is-open {
        transform: translateX(0);
        visibility: visible;
        opacity: 1;
    }

    .tac-mobile-nav-heading {
        position: sticky;
        top: 0;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 68px;
        margin: 0 -20px 8px;
        padding: 0 20px;
        background: #0e1115;
        border-bottom: 1px solid rgba(255, 255, 255, 0.09);
        color: #ffffff;
        font-size: 0.78rem;
        font-weight: 850;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    .tac-mobile-nav-close {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 50%;
        background: transparent;
        color: #ffffff;
        font-size: 1.8rem;
        line-height: 1;
        cursor: pointer;
    }

    .tac-nav-list,
    .tac-primary-nav ul {
        display: block;
    }

    .tac-primary-nav li {
        width: 100%;
    }

    .tac-primary-nav a {
        min-height: 54px;
        padding: 15px 48px 15px 8px;
        font-size: 1rem;
        white-space: normal;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 0;
    }

    .tac-primary-nav a:hover,
    .tac-primary-nav a:focus-visible {
        background: transparent;
        color: var(--tac-accent);
    }

    .tac-primary-nav .current-menu-item > a::before,
    .tac-primary-nav .current-menu-ancestor > a::before {
        left: 8px;
        right: auto;
        bottom: 8px;
        width: 36px;
    }

    .tac-primary-nav .menu-item-has-children > a {
        padding-right: 54px;
    }

    .tac-primary-nav .menu-item-has-children > a::after {
        display: none;
    }

    .tac-submenu-toggle {
        position: absolute;
        top: 5px;
        right: 0;
        z-index: 1;
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #ffffff;
        cursor: pointer;
    }

    .tac-submenu-toggle span {
        width: 9px;
        height: 9px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: translateY(-2px) rotate(45deg);
        transition: transform 0.18s ease;
    }

    .submenu-open > .tac-submenu-toggle span {
        transform: translateY(2px) rotate(225deg);
    }

    .tac-primary-nav .sub-menu {
        position: static;
        display: none !important;
        min-width: 0;
        max-width: none;
        margin: 0;
        padding: 3px 0 8px 16px;
        background: transparent;
        border: 0;
        border-left: 2px solid rgba(214, 165, 54, 0.42);
        border-radius: 0;
        box-shadow: none;
    }

    .tac-primary-nav .sub-menu::before {
        display: none;
    }

    .tac-primary-nav .submenu-open > .sub-menu {
        display: block !important;
    }

    .tac-primary-nav .sub-menu a {
        min-height: 48px;
        padding: 12px 44px 12px 12px;
        color: #cbd2da;
        font-size: 0.93rem;
        border-bottom-color: rgba(255, 255, 255, 0.055);
    }

    .tac-primary-nav .sub-menu .sub-menu {
        position: static;
        margin-left: 8px;
    }

    .tac-primary-nav a.tac-nav-cta-link {
        justify-content: center;
        min-height: 50px;
        margin: 18px 0 4px;
        padding: 14px 18px;
        color: #111111;
        border: 0;
        border-radius: 9px;
    }
}

@media (max-width: 782px) {
    .admin-bar .tac-site-header {
        top: 46px;
    }
}

@media (max-width: 700px) {
    .tac-header-wrap {
        width: min(calc(100% - 24px), var(--tac-max));
        min-height: 70px;
        gap: 14px;
    }

    .tac-brand .custom-logo {
        max-width: 170px;
        max-height: 51px;
    }

    .tac-site-title {
        font-size: 1rem;
    }

    .tac-site-tagline {
        display: none;
    }

    .tac-menu-toggle {
        min-width: 50px;
        min-height: 46px;
        padding: 9px 11px;
    }

    .tac-menu-toggle-label {
        display: none;
    }

    .tac-primary-nav {
        width: min(100%, 430px);
    }

    .tac-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px 30px;
    }

    .tac-footer-brand {
        grid-column: 1 / -1;
        max-width: 620px;
    }

    .tac-footer-bottom-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .tac-footer-credit {
        text-align: left;
    }

}

@media (max-width: 680px) {
    .tac-footer-grid {
        grid-template-columns: 1fr;
        padding-top: 48px;
    }

    .tac-footer-brand {
        grid-column: auto;
    }

    .tac-footer-column {
        padding-top: 4px;
    }

    .tac-footer-brand .custom-logo {
        max-width: 190px;
        max-height: 64px;
    }

    .tac-footer-cta {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .tac-brand .custom-logo {
        max-width: 150px;
    }
}

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

/* =========================================================
   PAGE CONTENT NOTE
   Page-specific layouts now live in WordPress page content.
   No Home/About/Policies/Refunds page CSS is baked into the theme.
   ========================================================= */

/* =========================================================
   MOBILE NAVIGATION HARDENING — v1.8.1
   Fixes mobile Safari/Chrome hamburger interaction and stacking.
   ========================================================= */
@media (max-width: 1180px) {
    /* Safari can behave unpredictably with fixed descendants inside
       a sticky element that uses backdrop-filter. Disable it only
       while the off-canvas mobile navigation is active. */
    .tac-site-header {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .tac-menu-toggle {
        position: relative;
        z-index: 4305;
        display: inline-flex !important;
        pointer-events: auto !important;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .tac-primary-nav {
        top: var(--tac-header-bottom) !important;
        right: 0 !important;
        bottom: 0 !important;
        left: auto !important;
        z-index: 4300 !important;
        max-height: calc(100dvh - var(--tac-header-bottom));
        -webkit-overflow-scrolling: touch;
        pointer-events: none;
        transform: translate3d(102%, 0, 0) !important;
    }

    .tac-primary-nav.is-open {
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: translate3d(0, 0, 0) !important;
    }

    .tac-mobile-nav-close,
    .tac-submenu-toggle {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .tac-menu-overlay {
        z-index: 3900 !important;
        pointer-events: auto;
        touch-action: manipulation;
    }

    body.tac-menu-open .tac-menu-overlay:not([hidden]) {
        display: block !important;
    }
}

/* =========================================================
   TAC PAGE INTERACTION STABILITY — v1.9.2

   Purpose:
   Keep normal website cards and registration/scheduling buttons
   visually fixed on desktop hover, focus and click.

   This is intentionally scoped to normal site page wrappers and
   does NOT target the Triple A Classroom interface.
   ========================================================= */

/* Normal standalone/generic page cards */
.tac-generic-page .tac-card,
.tac-generic-page .tac-card:hover,
.tac-generic-page .tac-card:focus,
.tac-generic-page .tac-card:focus-visible,
.tac-generic-page .tac-card:focus-within,
.tac-generic-page .tac-card:active,
.tac-generic-page .tac-benefit,
.tac-generic-page .tac-benefit:hover,
.tac-generic-page .tac-benefit:focus,
.tac-generic-page .tac-benefit:focus-within,
.tac-generic-page .tac-benefit:active,
.tac-generic-page .tac-event-card,
.tac-generic-page .tac-event-card:hover,
.tac-generic-page .tac-event-card:focus,
.tac-generic-page .tac-event-card:focus-within,
.tac-generic-page .tac-event-card:active,
.tac-generic-page .tac-city-card,
.tac-generic-page .tac-city-card:hover,
.tac-generic-page .tac-city-card:focus,
.tac-generic-page .tac-city-card:focus-within,
.tac-generic-page .tac-city-card:active,
.tac-generic-page .tac-process-card,
.tac-generic-page .tac-process-card:hover,
.tac-generic-page .tac-process-card:focus,
.tac-generic-page .tac-process-card:focus-within,
.tac-generic-page .tac-process-card:active {
    transform: none !important;
    translate: none !important;
    scale: 1 !important;
    rotate: none !important;
    animation: none !important;
    will-change: auto !important;
    box-sizing: border-box !important;
}

/* Content-page cards */
.tac-content-page .tac-card,
.tac-content-page .tac-card:hover,
.tac-content-page .tac-card:focus,
.tac-content-page .tac-card:focus-visible,
.tac-content-page .tac-card:focus-within,
.tac-content-page .tac-card:active,
.tac-content-page .tac-cta-box,
.tac-content-page .tac-cta-box:hover,
.tac-content-page .tac-cta-box:focus,
.tac-content-page .tac-cta-box:focus-within,
.tac-content-page .tac-cta-box:active {
    transform: none !important;
    translate: none !important;
    scale: 1 !important;
    rotate: none !important;
    animation: none !important;
    will-change: auto !important;
    box-sizing: border-box !important;
}

/* Home/service page cards */
.tac-page .tac-service-card,
.tac-page .tac-service-card:hover,
.tac-page .tac-service-card:focus,
.tac-page .tac-service-card:focus-visible,
.tac-page .tac-service-card:focus-within,
.tac-page .tac-service-card:active,
.tac-page .tac-principle-card,
.tac-page .tac-principle-card:hover,
.tac-page .tac-principle-card:focus,
.tac-page .tac-principle-card:focus-within,
.tac-page .tac-principle-card:active,
.tac-page .tac-feature-box,
.tac-page .tac-feature-box:hover,
.tac-page .tac-feature-box:focus,
.tac-page .tac-feature-box:focus-within,
.tac-page .tac-feature-box:active {
    transform: none !important;
    translate: none !important;
    scale: 1 !important;
    rotate: none !important;
    animation: none !important;
    will-change: auto !important;
    box-sizing: border-box !important;
}

/* Registration/scheduling buttons on normal pages */
.tac-generic-page .tac-btn,
.tac-generic-page .tac-btn:hover,
.tac-generic-page .tac-btn:focus,
.tac-generic-page .tac-btn:focus-visible,
.tac-generic-page .tac-btn:active,
.tac-content-page .tac-btn,
.tac-content-page .tac-btn:hover,
.tac-content-page .tac-btn:focus,
.tac-content-page .tac-btn:focus-visible,
.tac-content-page .tac-btn:active,
.tac-content-page .tac-placeholder-btn,
.tac-content-page .tac-placeholder-btn:hover,
.tac-content-page .tac-placeholder-btn:focus,
.tac-content-page .tac-placeholder-btn:focus-visible,
.tac-content-page .tac-placeholder-btn:active,
.tac-page .tac-btn,
.tac-page .tac-btn:hover,
.tac-page .tac-btn:focus,
.tac-page .tac-btn:focus-visible,
.tac-page .tac-btn:active,
.tac-page .tac-service-link,
.tac-page .tac-service-link:hover,
.tac-page .tac-service-link:focus,
.tac-page .tac-service-link:focus-visible,
.tac-page .tac-service-link:active {
    transform: none !important;
    translate: none !important;
    scale: 1 !important;
    rotate: none !important;
    zoom: 1 !important;
    animation: none !important;
    will-change: auto !important;
    box-sizing: border-box !important;
}

/* Do not let hover/focus transitions animate geometry. */
.tac-generic-page .tac-btn,
.tac-content-page .tac-btn,
.tac-content-page .tac-placeholder-btn,
.tac-page .tac-btn,
.tac-page .tac-service-link {
    transition-property: background-color, color, border-color, box-shadow, opacity !important;
}

/* Keep keyboard focus visible without resizing/moving controls. */
.tac-generic-page .tac-btn:focus-visible,
.tac-content-page .tac-btn:focus-visible,
.tac-content-page .tac-placeholder-btn:focus-visible,
.tac-page .tac-btn:focus-visible,
.tac-page .tac-service-link:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

/* Desktop-only reinforcement for mouse hover. */
@media (hover: hover) and (pointer: fine) {
    .tac-generic-page .tac-card:hover,
    .tac-generic-page .tac-benefit:hover,
    .tac-generic-page .tac-event-card:hover,
    .tac-generic-page .tac-city-card:hover,
    .tac-generic-page .tac-process-card:hover,
    .tac-content-page .tac-card:hover,
    .tac-content-page .tac-cta-box:hover,
    .tac-page .tac-service-card:hover,
    .tac-page .tac-principle-card:hover,
    .tac-page .tac-feature-box:hover,
    .tac-generic-page .tac-btn:hover,
    .tac-content-page .tac-btn:hover,
    .tac-content-page .tac-placeholder-btn:hover,
    .tac-page .tac-btn:hover,
    .tac-page .tac-service-link:hover {
        transform: none !important;
        translate: none !important;
        scale: 1 !important;
        rotate: none !important;
        animation: none !important;
    }
}

