@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

.azmx-app,
.azmx-app * {
    box-sizing: border-box;
}

.azmx-app [hidden] {
    display: none !important;
}

.azmx-app {
    --azmx-teal: #079c89;
    --azmx-blue: #076bdc;
    --azmx-bg: #edf3f8;
    --azmx-text: #101828;
    --azmx-muted: #667085;
    --azmx-border: #dfe7ef;
    width: min(1180px, calc(100% - 24px));
    max-width: 100%;
    margin: 24px auto;
    padding: 24px;
    color: var(--azmx-text);
    font-family: "Manrope", Arial, sans-serif;
    background:
        radial-gradient(circle at 3% 8%, rgba(0, 163, 196, 0.20), transparent 25rem),
        radial-gradient(circle at 97% 70%, rgba(0, 163, 196, 0.14), transparent 24rem),
        var(--azmx-bg);
    border-radius: 30px;
    overflow-x: hidden;
}

.azmx-app button,
.azmx-app select {
    font-family: inherit;
}

.azmx-card,
.azmx-results,
.azmx-analysis-grid,
.azmx-reading-section,
.azmx-accordions,
.azmx-info-list,
.azmx-arcana-grid {
    min-width: 0;
    max-width: 100%;
}

.azmx-card {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 26px;
    box-shadow: 0 16px 45px rgba(34, 65, 89, 0.08);
}

.azmx-date-card {
    padding: 30px;
    text-align: center;
}

.azmx-date-card h2,
.azmx-result-title h2,
.azmx-section-heading h2 {
    margin: 0;
    color: var(--azmx-text);
    font-size: clamp(22px, 3vw, 34px);
    line-height: 1.2;
}

.azmx-date-card__intro {
    margin: 10px auto 0;
    max-width: 680px;
    color: var(--azmx-muted);
    font-size: 14px;
    line-height: 1.6;
}

.azmx-date-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 760px;
    margin: 26px auto 12px;
}

.azmx-date-fields label {
    display: grid;
    min-width: 0;
    gap: 7px;
    text-align: left;
}

.azmx-date-fields label > span {
    padding-left: 10px;
    color: var(--azmx-muted);
    font-size: 12px;
    font-weight: 600;
}

.azmx-date-fields select {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding: 0 16px;
    color: #111827;
    font-size: 15px;
    font-weight: 700;
    background: #ffffff;
    border: 1px solid #cfd8e3;
    border-radius: 999px;
    outline: none;
}

.azmx-date-fields select:focus {
    border-color: #1686e7;
    box-shadow: 0 0 0 4px rgba(22, 134, 231, 0.12);
}

.azmx-primary-button {
    min-width: 230px;
    min-height: 54px;
    margin-top: 8px;
    padding: 0 32px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    background: linear-gradient(135deg, #0c7beb, #0565d4);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 12px 24px rgba(5, 101, 212, 0.22);
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.azmx-primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(5, 101, 212, 0.26);
}

.azmx-form-error {
    min-height: 20px;
    margin: 0;
    color: #c62828;
    font-size: 13px;
    font-weight: 600;
}

.azmx-results {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.azmx-matrix-card {
    width: 100%;
    padding: 24px 28px 30px;
    overflow: hidden;
}

.azmx-result-title {
    margin-bottom: 14px;
    text-align: center;
}

.azmx-result-title p {
    margin: 7px 0 0;
    color: var(--azmx-muted);
    font-size: 14px;
    font-weight: 700;
}

.azmx-matrix-stage {
    width: min(100%, 780px);
    max-width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    position: relative;
    container-type: inline-size;
    overflow: visible;
}

.azmx-schema {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
}

.azmx-node {
    position: absolute;
    z-index: 3;
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1;
    color: #111111;
    font-size: clamp(8px, 2.2cqw, 17px);
    font-weight: 800;
    line-height: 1;
    background: #ffffff;
    border: 0.3cqw solid #111111;
    border-radius: 50%;
    box-shadow: 0 0 0 0.45cqw rgba(255, 255, 255, 0.78);
    transform: translate(-50%, -50%);
}

.azmx-node--main {
    width: 10.4%;
    color: #ffffff;
    font-size: clamp(14px, 4.1cqw, 33px);
    border: 0.45cqw double currentColor;
}

.azmx-node--center {
    width: 10%;
    left: 50%;
    top: 50%;
    color: #161616;
    font-size: clamp(14px, 3.9cqw, 31px);
    background: #ffd95a;
    border-color: #ca9f17;
}

.azmx-node--corner {
    width: 8.2%;
    font-size: clamp(11px, 3.2cqw, 26px);
}

.azmx-node--small {
    width: 6.05%;
    font-size: clamp(9px, 2.25cqw, 18px);
    border-width: 0.25cqw;
}

.azmx-node--mini {
    width: 5.15%;
    font-size: clamp(8px, 1.92cqw, 16px);
    border-width: 0.2cqw;
}

.azmx-node--diagonal,
.azmx-node--channel {
    width: 4.8%;
    font-size: clamp(8px, 1.82cqw, 15px);
    border-width: 0.19cqw;
    background: #ffffff;
}

.azmx-node--top { left: 50%; top: 5.3%; background: #ad37a2; border-color: #8d1c84; }
.azmx-node--right { left: 94.4%; top: 50%; background: #f04e4e; border-color: #c82d2d; }
.azmx-node--bottom { left: 50%; top: 94%; background: #f04e4e; border-color: #c82d2d; }
.azmx-node--left { left: 5.3%; top: 50%; background: #ad37a2; border-color: #8d1c84; }

.azmx-node--top-left { left: 17.8%; top: 17.8%; }
.azmx-node--top-right { left: 82.2%; top: 17.8%; }
.azmx-node--bottom-right { left: 82.2%; top: 82.1%; }
.azmx-node--bottom-left { left: 17.8%; top: 82.1%; }

.azmx-node--blue { color: #ffffff; background: #1475d4; border-color: #005eaf; }
.azmx-node--cyan { color: #ffffff; background: #10b9ea; border-color: #0798c1; }
.azmx-node--green { color: #ffffff; background: #70c768; border-color: #50a848; }
.azmx-node--orange { color: #8c4300; background: #fff7ed; border-color: #ef9d50; }
.azmx-node--white { color: #111111; background: #ffffff; border-color: #111111; }

.azmx-node--top-far { left: 50%; top: 13.4%; }
.azmx-node--top-near { left: 50%; top: 19.5%; }
.azmx-node--top-to-center { left: 50%; top: 35.7%; }
.azmx-node--left-far { left: 12.2%; top: 50%; }
.azmx-node--left-near { left: 18.1%; top: 50%; }
.azmx-node--left-to-center { left: 32.2%; top: 50%; }
.azmx-node--right-to-center { left: 58.9%; top: 50%; }
.azmx-node--right-mid { left: 65.9%; top: 50%; }
.azmx-node--right-near { left: 79.4%; top: 50%; }
.azmx-node--right-far { left: 87.6%; top: 50%; }
.azmx-node--bottom-near { left: 50%; top: 82.7%; }
.azmx-node--bottom-far { left: 50%; top: 89.1%; }
.azmx-node--tl-far { left: 21.6%; top: 22.7%; }
.azmx-node--tl-to-center { left: 26%; top: 27%; }
.azmx-node--tr-far { left: 77.3%; top: 24.3%; }
.azmx-node--tr-to-center { left: 73.5%; top: 28.6%; }
.azmx-node--bl-to-center { left: 26%; top: 74.6%; }
.azmx-node--bl-far { left: 21.6%; top: 78.9%; }
.azmx-node--br-to-center { left: 72.4%; top: 73%; }
.azmx-node--br-far { left: 76.8%; top: 77.3%; }
.azmx-node--love-code { left: 57.8%; top: 63.8%; }
.azmx-node--channel-center { left: 61.6%; top: 63.2%; }
.azmx-node--money-code { left: 69.2%; top: 63.8%; }

.azmx-age-arcanas {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.azmx-age-arcana {
    position: absolute;
    display: grid;
    place-items: center;
    min-width: 2.2%;
    min-height: 2.2%;
    padding: 0.12%;
    color: #16130d;
    font-size: clamp(7px, 1.5cqw, 12px);
    font-weight: 800;
    line-height: 1;
    text-shadow:
        -0.12cqw -0.12cqw 0 #ffffff,
         0.12cqw -0.12cqw 0 #ffffff,
        -0.12cqw  0.12cqw 0 #ffffff,
         0.12cqw  0.12cqw 0 #ffffff;
    transform: translate(-50%, -50%);
}

.azmx-analysis-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 20px;
}

.azmx-health-card,
.azmx-summary-card,
.azmx-arcana-section {
    min-width: 0;
    padding: 26px;
}

.azmx-section-heading {
    margin-bottom: 16px;
}

.azmx-section-heading p {
    margin: 6px 0 0;
    color: var(--azmx-muted);
    font-size: 13px;
    line-height: 1.55;
}

.azmx-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.azmx-chakra-table,
.azmx-year-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 13px;
}

.azmx-chakra-table th,
.azmx-chakra-table td,
.azmx-year-table th,
.azmx-year-table td {
    padding: 12px 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.72);
}

.azmx-chakra-table thead th,
.azmx-chakra-table tfoot th,
.azmx-chakra-table tfoot td,
.azmx-year-table thead th {
    color: #111827;
    background: #e9edf2;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.azmx-chakra-table tbody tr { color: #ffffff; }
.azmx-chakra-table tbody td:first-child { text-align: left; font-weight: 700; }
.azmx-chakra-table tbody tr:nth-child(1) { background: #9b2fa5; }
.azmx-chakra-table tbody tr:nth-child(2) { background: #3469e8; }
.azmx-chakra-table tbody tr:nth-child(3) { background: #31bce7; }
.azmx-chakra-table tbody tr:nth-child(4) { background: #63c95a; }
.azmx-chakra-table tbody tr:nth-child(5) { color: #392e00; background: #fff36a; }
.azmx-chakra-table tbody tr:nth-child(6) { background: #f28a22; }
.azmx-chakra-table tbody tr:nth-child(7) { background: #c13c35; }

.azmx-year-table td {
    text-align: left;
    color: #344054;
    background: #ffffff;
    border-color: #e5eaf0;
    line-height: 1.5;
}

.azmx-year-table td:first-child,
.azmx-year-table td:nth-child(2) {
    text-align: center;
    white-space: nowrap;
}

.azmx-disclaimer {
    margin: 12px 0 0;
    color: var(--azmx-muted);
    font-size: 11px;
    line-height: 1.5;
}

.azmx-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.azmx-summary-grid article { min-width: 0; }
.azmx-summary-grid h3 { margin: 0 0 7px; font-size: 17px; }
.azmx-summary-grid p { min-height: 40px; margin: 0 0 13px; color: var(--azmx-muted); font-size: 12px; line-height: 1.5; }

.azmx-formula {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
}

.azmx-formula span {
    padding: 7px 9px;
    background: #f4f7fa;
    border-radius: 10px;
}

.azmx-formula strong,
.azmx-result-badge {
    display: grid;
    place-items: center;
    width: 44px;
    aspect-ratio: 1 / 1;
    color: #111827;
    background: #ffffff;
    border: 2px solid #202936;
    border-radius: 50%;
    font-size: 16px;
}

.azmx-reading-section {
    padding: 4px 0 0;
}

.azmx-reading-heading {
    padding: 4px 4px 0;
}

.azmx-accordions {
    display: grid;
    gap: 12px;
}

.azmx-accordions details {
    min-width: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(34, 65, 89, 0.06);
}

.azmx-accordions summary {
    padding: 18px 20px;
    color: #101828;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.azmx-reading-copy {
    padding: 0 20px 20px;
}

.azmx-reading-intro {
    margin: 0 0 13px;
    color: #475467;
    font-size: 14px;
    line-height: 1.7;
}

.azmx-reading-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.azmx-reading-number {
    display: inline-grid;
    place-items: center;
    min-width: 38px;
    height: 38px;
    padding: 0 8px;
    color: #101828;
    font-size: 14px;
    font-weight: 800;
    background: #ffffff;
    border: 2px solid #202936;
    border-radius: 999px;
}

.azmx-info-list {
    display: grid;
    gap: 10px;
}

.azmx-info-block {
    min-width: 0;
    padding: 16px;
    background: #f7f9fb;
    border: 1px solid #e5eaf0;
    border-radius: 15px;
}

.azmx-info-block h4 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 10px;
    color: #101828;
    font-size: 14px;
    line-height: 1.4;
}

.azmx-info-block h4 > span {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    color: #ffffff;
    background: #0a8e7f;
    border-radius: 50%;
}

.azmx-info-block p {
    margin: 6px 0 0;
    color: #475467;
    font-size: 13px;
    line-height: 1.62;
}

.azmx-arcana-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 900px) {
    .azmx-analysis-grid {
        grid-template-columns: 1fr;
    }

    .azmx-matrix-card {
        margin-top: 0;
    }

    .azmx-arcana-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .azmx-app {
        width: 100%;
        margin: 0;
        padding: 10px;
        border-radius: 0;
    }

    .azmx-date-card {
        padding: 22px 14px;
        border-radius: 22px;
    }

    .azmx-date-card h2,
    .azmx-result-title h2,
    .azmx-section-heading h2 {
        font-size: 25px;
    }

    .azmx-date-card__intro {
        font-size: 12px;
    }

    .azmx-date-fields {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        margin-top: 20px;
    }

    .azmx-date-fields label > span {
        padding-left: 5px;
        font-size: 11px;
    }

    .azmx-date-fields select {
        min-height: 48px;
        padding: 0 7px;
        font-size: 12px;
    }

    .azmx-primary-button {
        width: 100%;
        min-width: 0;
        min-height: 52px;
        font-size: 16px;
    }

    .azmx-results {
        gap: 14px;
        margin-top: 14px;
    }

    .azmx-matrix-card {
        padding: 18px 4px 16px;
        border-radius: 22px;
    }

    .azmx-result-title {
        padding: 0 10px;
        margin-bottom: 8px;
    }

    .azmx-matrix-stage {
        width: 100%;
        max-width: 100%;
    }

    .azmx-age-arcana {
        font-size: clamp(6px, 1.7cqw, 9px);
    }

    .azmx-health-card,
    .azmx-summary-card,
    .azmx-arcana-section {
        padding: 20px 14px;
        border-radius: 22px;
    }

    .azmx-summary-grid,
    .azmx-arcana-grid {
        grid-template-columns: 1fr;
    }

    .azmx-summary-grid {
        gap: 22px;
    }

    .azmx-summary-grid p {
        min-height: 0;
    }

    .azmx-chakra-table,
    .azmx-year-table {
        min-width: 520px;
        font-size: 12px;
    }

    .azmx-reading-heading {
        padding: 0 4px;
    }

    .azmx-accordions summary {
        padding: 17px 16px;
        font-size: 14px;
        line-height: 1.45;
    }

    .azmx-reading-copy {
        padding: 0 14px 16px;
    }

    .azmx-reading-intro,
    .azmx-info-block p {
        font-size: 12px;
    }

    .azmx-info-block {
        padding: 14px;
    }
}

@media (max-width: 390px) {
    .azmx-app {
        padding-left: 6px;
        padding-right: 6px;
    }

    .azmx-date-card {
        padding-left: 10px;
        padding-right: 10px;
    }

    .azmx-date-fields {
        gap: 4px;
    }

    .azmx-date-fields select {
        padding: 0 5px;
        font-size: 11px;
    }

    .azmx-matrix-card {
        padding-left: 0;
        padding-right: 0;
    }
}


/* =========================================================
   v1.4 — desktop layout like the reference calculator,
   restored Pifagor tab and safe mobile matrix sizing.
   ========================================================= */
.azmx-app {
    width: min(980px, calc(100% - 24px));
    margin: 24px auto;
    padding: 0 0 28px;
    border-radius: 30px;
    overflow-x: clip;
}

.azmx-nav {
    width: min(760px, calc(100% - 28px));
    margin: 0 auto 26px;
    padding: 9px 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    position: sticky;
    top: 0;
    z-index: 50;
    border-radius: 0 0 26px 26px;
    background: linear-gradient(135deg, #079c89, #028d7c);
    box-shadow: 0 14px 35px rgba(5, 123, 112, 0.18);
}

.azmx-nav__item {
    min-width: 0;
    min-height: 48px;
    padding: 10px 14px;
    color: rgba(255,255,255,.9);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    background: transparent;
    border: 0;
    border-radius: 18px;
    cursor: pointer;
}

.azmx-nav__item.is-active,
.azmx-nav__item:hover {
    color: #076b62;
    background: #fff;
}

.azmx-nav__icon { margin-right: 5px; }
.azmx-view { display: none; }

.azmx-view[data-view="matrix"].is-active {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .94fr);
    grid-template-areas:
        "date health"
        "matrix summary"
        "reading reading"
        "arcana arcana";
    align-items: start;
    gap: 16px;
    padding: 0 18px;
}

.azmx-view[data-view="pythagoras"].is-active {
    display: block;
    padding: 0 18px;
}

.azmx-date-card { grid-area: date; padding: 24px; }
.azmx-results:not([hidden]) { display: contents; }
.azmx-analysis-grid { display: contents; }
.azmx-matrix-card { grid-area: matrix; padding: 8px 12px 12px; overflow: visible; margin-top: -150px; position: relative; z-index: 2; }
.azmx-health-card { grid-area: health; padding: 24px; }
.azmx-summary-card { grid-area: summary; padding: 24px; }
.azmx-reading-section { grid-area: reading; margin-top: 8px; }
.azmx-arcana-section { grid-area: arcana; }

.azmx-date-card h2,
.azmx-result-title h2,
.azmx-section-heading h2 { font-size: clamp(20px, 2.4vw, 28px); }
.azmx-date-card__intro { font-size: 12px; }
.azmx-date-fields { margin-top: 20px; }
.azmx-primary-button { min-height: 48px; min-width: 190px; }

.azmx-matrix-stage {
    width: 100%;
    max-width: 540px;
    margin: -6px auto 0;
    overflow: visible;
}
.azmx-schema { object-fit: contain !important; }

/* Age arcanas stay outside the inner rhombus line but inside the safe canvas. */
.azmx-age-arcana { z-index: 4; font-size: clamp(8px, 1.7cqw, 13px); }

.azmx-table-wrap { overflow-x: auto; }
.azmx-chakra-table { min-width: 430px; }
.azmx-summary-grid { gap: 14px; }
.azmx-summary-grid article { min-height: 125px; }

.azmx-pythagoras-layout {
    display: grid;
    grid-template-columns: minmax(330px, .82fr) minmax(0, 1.18fr);
    gap: 16px;
}
.azmx-pythagoras-intro { padding: 30px; }
.azmx-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #087f73;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.azmx-pythagoras-intro h2 {
    margin: 0;
    font-size: clamp(27px, 3.4vw, 42px);
    line-height: 1.18;
}
.azmx-pythagoras-intro > p {
    margin: 14px 0 20px;
    color: var(--azmx-muted);
    line-height: 1.7;
}
.azmx-pyth-date-fields {
    display: grid;
    grid-template-columns: .76fr 1.24fr 1fr;
    gap: 8px;
    margin: 18px 0 12px;
}
.azmx-pyth-date-fields label { display: grid; gap: 7px; text-align: left; }
.azmx-pyth-date-fields label > span {
    padding-left: 8px;
    color: var(--azmx-muted);
    font-size: 11px;
    font-weight: 600;
}
.azmx-pyth-date-fields select {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 0 12px;
    color: #111827;
    font-size: 13px;
    font-weight: 700;
    background: #fff;
    border: 1px solid #cfd8e3;
    border-radius: 999px;
}
.azmx-working-numbers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 22px;
}
.azmx-working-numbers div { padding: 14px; background: #f3f7fa; border-radius: 15px; }
.azmx-working-numbers span { display:block; margin-bottom:5px; color:var(--azmx-muted); font-size:10px; }
.azmx-working-numbers strong { font-size: 22px; }
.azmx-square-card { padding: 18px; }
.azmx-square-heading { margin-bottom: 12px; }
.azmx-square {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.azmx-square-cell {
    min-height: 120px;
    padding: 16px;
    display: grid;
    align-content: space-between;
    border: 1px solid #e2e8f0;
    border-radius: 17px;
    background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(242,247,250,.98));
}
.azmx-square-cell > span { color:#0a8e7f; font-size:14px; font-weight:800; }
.azmx-square-cell strong { word-break:break-all; font-size:clamp(20px,3vw,32px); }
.azmx-square-cell small { color:var(--azmx-muted); font-size:10px; }
.azmx-lines-card { margin-top:16px; padding:24px; }
.azmx-lines-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-top:16px; }
.azmx-line-result { padding:14px; border:1px solid #e0e8ef; border-radius:15px; background:#f9fbfc; }
.azmx-line-result h3 { margin:0 0 6px; font-size:12px; }
.azmx-line-result strong { display:block; margin-bottom:4px; color:#087f73; font-size:18px; }
.azmx-line-result > span { display:block; margin-bottom:7px; color:#344054; font-size:11px; font-weight:700; }
.azmx-line-result p { margin:0; color:var(--azmx-muted); font-size:10px; line-height:1.5; }

@media (max-width: 820px) {
    .azmx-app { width:100%; margin:0; border-radius:0; }
    .azmx-nav { width:100%; margin-bottom:16px; border-radius:0 0 20px 20px; }
    .azmx-view[data-view="matrix"].is-active {
        grid-template-columns: 1fr;
        grid-template-areas:
            "date"
            "matrix"
            "health"
            "summary"
            "reading"
            "arcana";
        padding:0 10px;
        gap:14px;
    }
    .azmx-view[data-view="pythagoras"].is-active { padding:0 10px; }
    .azmx-pythagoras-layout { grid-template-columns:1fr; }
    .azmx-lines-grid { grid-template-columns:1fr 1fr; }
    .azmx-matrix-stage { max-width:620px; }
}

@media (max-width: 520px) {
    .azmx-nav { grid-template-columns: 1fr 1fr; padding:8px; }
    .azmx-nav__item { min-height:44px; padding:8px 6px; font-size:11px; white-space:normal; line-height:1.25; }
    .azmx-date-card,
    .azmx-health-card,
    .azmx-summary-card,
    .azmx-pythagoras-intro,
    .azmx-square-card,
    .azmx-lines-card { padding:16px; }
    .azmx-date-fields,
    .azmx-pyth-date-fields { grid-template-columns:.72fr 1.18fr 1fr; gap:5px; }
    .azmx-date-fields select,
    .azmx-pyth-date-fields select { min-height:45px; padding:0 7px; font-size:11px; }
    .azmx-primary-button { width:100%; min-width:0; }
    .azmx-matrix-card { padding:5px; border-radius:18px; }
    .azmx-matrix-stage { width:100%; max-width:none; margin:0 auto; }
    .azmx-node { box-shadow:0 0 0 .35cqw rgba(255,255,255,.8); }
    .azmx-chakra-table { min-width:520px; }
    .azmx-summary-grid,
    .azmx-working-numbers,
    .azmx-lines-grid { grid-template-columns:1fr; }
    .azmx-square { gap:5px; }
    .azmx-square-cell { min-height:95px; padding:10px; border-radius:12px; }
}


/* =========================================================
   v1.5 — independent desktop columns, non-sticky navigation,
   locked matrix premium sections and full personalized Pythagoras report.
   ========================================================= */
.azmx-nav {
    position: relative !important;
    top: auto !important;
}

.azmx-view[data-view="matrix"].is-active {
    display: block !important;
    padding: 0 18px;
}

.azmx-matrix-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .94fr);
    gap: 16px;
    align-items: start;
}

.azmx-matrix-stack {
    display: grid;
    gap: 16px;
    min-width: 0;
    align-content: start;
}

.azmx-results:not([hidden]) {
    display: grid !important;
    gap: 16px;
    margin-top: 18px;
}

.azmx-reading-section,
.azmx-arcana-section {
    width: 100%;
}

.azmx-matrix-card {
    margin: 0;
}

.azmx-matrix-stage {
    max-width: 500px;
}

.azmx-accordions details.is-locked {
    position: relative;
    overflow: hidden;
}

.azmx-accordions details.is-locked summary {
    padding-right: 150px;
    cursor: default;
}

.azmx-accordions details.is-locked summary::after {
    content: "🔒 Yopiq";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #087f73;
    font-size: 11px;
    font-weight: 800;
}

.azmx-accordions details.is-locked > .azmx-reading-copy {
    display: none;
}

.azmx-locked-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 18px 18px;
}

.azmx-locked-preview p {
    margin: 0;
    color: var(--azmx-muted);
    font-size: 12px;
    line-height: 1.55;
}

.azmx-locked-preview a {
    flex: 0 0 auto;
    padding: 10px 15px;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    background: linear-gradient(135deg, #079c89, #087f73);
    border-radius: 999px;
}

.azmx-line-result {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform .16s ease, box-shadow .16s ease;
}

.azmx-line-result:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(16, 24, 40, .08);
}

.azmx-pyth-toc-card {
    margin-top: 16px;
    padding: 26px;
}

.azmx-pyth-toc {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 18px;
}

.azmx-pyth-toc-column {
    padding: 16px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
}

.azmx-pyth-toc-column h3 {
    margin: 0 0 10px;
    font-size: 15px;
}

.azmx-pyth-toc-column a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    color: #0b6f64;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px dashed #d5e0e7;
}

.azmx-pyth-toc-column a:last-child {
    border-bottom: 0;
}

.azmx-pyth-toc-column b {
    max-width: 48%;
    overflow-wrap: anywhere;
    color: #101828;
    text-align: right;
}

.azmx-pyth-full-analysis {
    margin-top: 16px;
}

.azmx-pyth-analysis-group {
    margin-bottom: 18px;
    padding: 26px;
    background: rgba(255,255,255,.97);
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 26px;
    box-shadow: 0 16px 45px rgba(34, 65, 89, .08);
}

.azmx-pyth-analysis-group > h2 {
    margin: 0;
    font-size: clamp(22px, 3vw, 30px);
}

.azmx-pyth-analysis-group > p {
    margin: 8px 0 18px;
    color: var(--azmx-muted);
    font-size: 13px;
    line-height: 1.6;
}

.azmx-pyth-detail {
    scroll-margin-top: 20px;
    margin-top: 12px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
}

.azmx-pyth-detail__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.azmx-pyth-detail__header h3 {
    margin: 3px 0 0;
    font-size: 19px;
}

.azmx-pyth-kicker {
    color: #087f73;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.azmx-pyth-code {
    flex: 0 0 auto;
    max-width: 46%;
    padding: 8px 12px;
    overflow-wrap: anywhere;
    color: #0b6f64;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    background: #e9f7f4;
    border-radius: 999px;
}

.azmx-pyth-detail p {
    margin: 10px 0;
    color: #344054;
    font-size: 13px;
    line-height: 1.75;
}

.azmx-pyth-advice {
    margin-top: 13px;
    padding: 13px 15px;
    color: #164e46;
    font-size: 12px;
    line-height: 1.65;
    background: #edf9f6;
    border-left: 4px solid #079c89;
    border-radius: 10px;
}

.azmx-pyth-line-detail {
    background: linear-gradient(145deg, #fff, #f8fbfc);
}

.azmx-pyth-disclaimer {
    margin: 14px 8px 0;
    color: var(--azmx-muted);
    font-size: 11px;
    line-height: 1.6;
}

@media (max-width: 820px) {
    .azmx-matrix-columns {
        grid-template-columns: 1fr;
    }

    .azmx-matrix-stack--right {
        order: 2;
    }

    .azmx-pyth-toc {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .azmx-view[data-view="matrix"].is-active {
        padding: 0 10px;
    }

    .azmx-matrix-columns {
        gap: 14px;
    }

    .azmx-matrix-stack {
        gap: 14px;
    }

    .azmx-matrix-stage {
        max-width: none;
    }

    .azmx-locked-preview {
        display: grid;
        gap: 10px;
    }

    .azmx-locked-preview a {
        width: 100%;
        text-align: center;
    }

    .azmx-accordions details.is-locked summary {
        padding-right: 88px;
    }

    .azmx-accordions details.is-locked summary::after {
        right: 12px;
        font-size: 9px;
    }

    .azmx-pyth-toc-card,
    .azmx-pyth-analysis-group {
        padding: 16px;
        border-radius: 20px;
    }

    .azmx-pyth-detail {
        padding: 15px;
        border-radius: 15px;
    }

    .azmx-pyth-detail__header {
        display: grid;
        gap: 8px;
    }

    .azmx-pyth-code {
        max-width: 100%;
        justify-self: start;
        font-size: 12px;
    }

    .azmx-pyth-detail p {
        font-size: 12px;
    }
}


/* =========================================================
   v1.6 — reference-like matrix layout, age arcanas outside the
   diamond, and two fully personalized free report sections.
   ========================================================= */
.azmx-app {
    width: min(1040px, calc(100% - 24px));
    padding: 0 18px 30px;
    overflow-x: clip;
}

.azmx-nav {
    width: min(820px, calc(100% - 20px));
    margin-bottom: 18px;
}

.azmx-matrix-columns {
    grid-template-columns: minmax(0, 1.03fr) minmax(360px, .97fr);
    gap: 14px;
}

.azmx-matrix-stack {
    gap: 14px;
}

.azmx-date-card {
    padding: 25px 24px 22px;
}

.azmx-date-fields {
    margin-top: 20px;
}

.azmx-matrix-card {
    padding: 16px 22px 24px;
    overflow: visible !important;
}

.azmx-matrix-stage {
    width: min(100%, 490px);
    max-width: 490px;
    overflow: visible;
}

.azmx-age-arcanas {
    z-index: 2;
    overflow: visible;
}

.azmx-age-arcana {
    min-width: 2%;
    min-height: 2%;
    padding: 0;
    font-size: clamp(6px, 1.26cqw, 10px);
    font-weight: 800;
    white-space: nowrap;
    text-shadow:
        -0.12cqw -0.12cqw 0 #fff,
         0.12cqw -0.12cqw 0 #fff,
        -0.12cqw  0.12cqw 0 #fff,
         0.12cqw  0.12cqw 0 #fff;
}

.azmx-reading-section {
    margin-top: 2px;
}

.azmx-accordions {
    gap: 10px;
}

.azmx-accordions details {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.azmx-accordions details.is-free-section {
    border: 1px solid rgba(7, 156, 137, .15);
}

.azmx-accordions details.is-free-section[open] > summary {
    color: #0b6f64;
    border-bottom: 1px solid #e4ecef;
}

.azmx-accordions details.is-free-section[open] > summary::marker {
    color: #079c89;
}

.azmx-reading-copy {
    position: relative;
    z-index: 1;
    padding: 22px;
    background: #fff;
}

.azmx-deep-intro {
    margin-bottom: 18px;
    padding: 18px 20px;
    background: #f6fafb;
    border: 1px solid #e1ecef;
    border-radius: 18px;
}

.azmx-deep-intro p {
    margin: 0 0 10px;
    color: #475467;
    font-size: 13px;
    line-height: 1.75;
}

.azmx-deep-intro p:last-child {
    margin-bottom: 0;
}

.azmx-deep-stack {
    display: grid;
    gap: 16px;
}

.azmx-deep-profile {
    padding: 22px;
    background: linear-gradient(145deg, #fff, #f8fbfc);
    border: 1px solid #dde8ed;
    border-radius: 20px;
    box-shadow: 0 10px 26px rgba(28, 68, 88, .06);
}

.azmx-deep-profile__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 15px;
}

.azmx-deep-profile__header h3 {
    margin: 4px 0 0;
    color: #101828;
    font-size: clamp(19px, 2.4vw, 25px);
    line-height: 1.25;
}

.azmx-deep-kicker {
    color: #087f73;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.azmx-deep-number {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    background: linear-gradient(135deg, #079c89, #087f73);
    border-radius: 50%;
}

.azmx-deep-profile h4 {
    margin: 20px 0 7px;
    color: #101828;
    font-size: 15px;
}

.azmx-deep-profile p {
    margin: 0 0 10px;
    color: #344054;
    font-size: 13px;
    line-height: 1.78;
}

.azmx-deep-lead {
    padding: 13px 15px;
    background: #edf8f6;
    border-left: 4px solid #079c89;
    border-radius: 10px;
}

.azmx-deep-list {
    margin: 8px 0 0;
    padding-left: 22px;
    color: #344054;
}

.azmx-deep-list li {
    margin: 7px 0;
    font-size: 13px;
    line-height: 1.6;
}

.azmx-deep-task {
    margin-top: 18px;
    padding: 14px 16px;
    color: #164e46;
    font-size: 13px;
    line-height: 1.7;
    background: #eaf8f5;
    border-radius: 13px;
}

.azmx-comfort-profile {
    background: linear-gradient(145deg, #ffffff, #f4fbfa);
}

.azmx-accordions details.is-locked {
    min-height: 60px;
    background: rgba(255, 255, 255, .98);
}

.azmx-accordions details.is-locked summary {
    min-height: 60px;
    display: flex;
    align-items: center;
    padding: 16px 112px 16px 20px;
    cursor: default;
}

.azmx-accordions details.is-locked summary::after {
    content: "🔒 Ochish";
    right: 20px;
    color: #087f73;
}

.azmx-accordions details.is-locked > .azmx-reading-copy,
.azmx-accordions details.is-locked > .azmx-locked-preview {
    display: none !important;
}

@media (max-width: 820px) {
    .azmx-app {
        width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }

    .azmx-matrix-columns {
        grid-template-columns: 1fr;
    }

    .azmx-matrix-stage {
        width: min(100%, 620px);
        max-width: 620px;
    }
}

@media (max-width: 520px) {
    .azmx-matrix-card {
        padding: 12px 11px 20px;
    }

    .azmx-matrix-stage {
        width: 100%;
        max-width: none;
    }

    .azmx-age-arcana {
        font-size: clamp(5.5px, 1.45cqw, 8px);
    }

    .azmx-reading-copy {
        padding: 13px;
    }

    .azmx-deep-intro,
    .azmx-deep-profile {
        padding: 15px;
        border-radius: 16px;
    }

    .azmx-deep-profile__header {
        gap: 10px;
    }

    .azmx-deep-number {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        font-size: 16px;
    }

    .azmx-deep-profile p,
    .azmx-deep-intro p,
    .azmx-deep-list li,
    .azmx-deep-task {
        font-size: 12px;
    }

    .azmx-accordions details.is-locked summary {
        padding-right: 92px;
        font-size: 13px;
    }

    .azmx-accordions details.is-locked summary::after {
        right: 12px;
        font-size: 9px;
    }
}


/* =========================================================
   v1.7 — stable two-column layout.
   Cards stay in normal document flow, so the chakra table can
   never sit behind the summary card or behind the matrix.
   ========================================================= */
.azmx-view[data-view="matrix"].is-active {
    display: grid !important;
    grid-template-columns: minmax(0, 1.03fr) minmax(360px, .97fr) !important;
    grid-template-areas:
        "date health"
        "matrix summary"
        "reading reading" !important;
    align-items: start !important;
    gap: 14px !important;
    padding: 0 18px !important;
}

.azmx-view[data-view="matrix"] > .azmx-date-card {
    grid-area: date !important;
}

.azmx-results:not([hidden]) {
    display: contents !important;
}

.azmx-results > .azmx-matrix-card {
    grid-area: matrix !important;
}

.azmx-results > .azmx-analysis-grid {
    display: contents !important;
}

.azmx-results .azmx-health-card {
    grid-area: health !important;
}

.azmx-results .azmx-summary-card {
    grid-area: summary !important;
}

.azmx-results > .azmx-reading-section {
    grid-area: reading !important;
}

/* Prevent inherited theme/plugin animations and old layout rules from stacking panels. */
.azmx-date-card,
.azmx-matrix-card,
.azmx-health-card,
.azmx-summary-card,
.azmx-reading-section {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    float: none !important;
    clear: none !important;
    z-index: auto !important;
}

.azmx-health-card,
.azmx-summary-card {
    overflow: hidden !important;
    background: #fff !important;
    isolation: isolate !important;
}

.azmx-health-card .azmx-table-wrap,
.azmx-health-card .azmx-chakra-table,
.azmx-summary-card .azmx-summary-grid {
    position: relative !important;
    z-index: 1 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.azmx-health-card .azmx-chakra-table {
    width: 100% !important;
}

/* Desktop proportions close to the reference: date and matrix left, chakra and summary right. */
@media (min-width: 821px) {
    .azmx-date-card,
    .azmx-health-card {
        min-height: 300px !important;
    }

    .azmx-matrix-card,
    .azmx-summary-card {
        min-height: 520px !important;
    }

    .azmx-matrix-stage {
        width: min(100%, 470px) !important;
        max-width: 470px !important;
    }
}

@media (max-width: 820px) {
    .azmx-view[data-view="matrix"].is-active {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-areas:
            "date"
            "matrix"
            "health"
            "summary"
            "reading" !important;
        padding: 0 10px !important;
        gap: 14px !important;
    }

    .azmx-health-card,
    .azmx-summary-card,
    .azmx-date-card,
    .azmx-matrix-card {
        min-height: 0 !important;
    }
}


/* =========================================================
   v1.9 — Moon Walk video background, higher/larger matrix,
   and real unlock links to the personal cabinet.
   ========================================================= */
body.azmx-has-video-background {
    background: #02050b !important;
}

body.azmx-has-video-background > .azmx-video-bg {
    position: fixed !important;
    inset: 0 !important;
    z-index: 0 !important;
    display: block !important;
    width: 100vw !important;
    height: 100vh !important;
    overflow: hidden !important;
    pointer-events: none !important;
    background: #02050b url('../images/moon-walk.jpg') center / cover no-repeat !important;
}

body.azmx-has-video-background > .azmx-page-layer {
    position: relative;
    z-index: 1;
}

.azmx-video-bg video {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    filter: brightness(.82) saturate(1.08) !important;
}

.azmx-video-bg__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 32%, rgba(0,0,0,.02), rgba(0,0,0,.20) 62%, rgba(0,0,0,.44) 100%),
        linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.30));
}

body.azmx-has-video-background .site,
body.azmx-has-video-background .site-content,
body.azmx-has-video-background .content-area,
body.azmx-has-video-background main.site-main,
body.azmx-has-video-background .wp-site-blocks,
body.azmx-has-video-background .wp-block-post-content,
body.azmx-has-video-background .entry-content {
    background: transparent !important;
}

body.azmx-has-video-background .azmx-app {
    position: relative !important;
    z-index: 2 !important;
    background:
        radial-gradient(circle at 3% 8%, rgba(0, 163, 196, .22), transparent 25rem),
        radial-gradient(circle at 97% 70%, rgba(0, 163, 196, .16), transparent 24rem),
        rgba(237, 243, 248, .88) !important;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .30);
}

body.azmx-has-video-background .azmx-card,
body.azmx-has-video-background .azmx-accordions details {
    background: rgba(255,255,255,.94) !important;
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
}

.azmx-accordions details.is-locked summary {
    padding-right: 128px !important;
    cursor: pointer !important;
}

.azmx-accordions details.is-locked summary::after {
    content: none !important;
    display: none !important;
}

.azmx-unlock-button {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 34px;
    padding: 7px 12px;
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none !important;
    background: linear-gradient(135deg, #079c89, #087f73);
    border: 1px solid rgba(255,255,255,.42);
    border-radius: 999px;
    box-shadow: 0 7px 16px rgba(8,127,115,.20);
    transition: transform .16s ease, box-shadow .16s ease;
}

.azmx-unlock-button:hover,
.azmx-unlock-button:focus-visible {
    color: #ffffff !important;
    transform: translateY(-50%) scale(1.04);
    box-shadow: 0 10px 22px rgba(8,127,115,.30);
    outline: none;
}

@media (min-width: 821px) {
    .azmx-results > .azmx-matrix-card {
        margin-top: -280px !important;
        align-self: start !important;
    }

    .azmx-results .azmx-matrix-stage {
        width: min(100%, 535px) !important;
        max-width: 535px !important;
        margin-top: -8px !important;
    }

    .azmx-results > .azmx-matrix-card {
        min-height: 560px !important;
        padding-top: 8px !important;
    }
}

@media (max-width: 820px) {
    .azmx-results > .azmx-matrix-card {
        margin-top: 0 !important;
    }

    .azmx-unlock-button {
        right: 10px;
        min-height: 31px;
        padding: 6px 9px;
        font-size: 9px;
    }

    .azmx-accordions details.is-locked summary {
        padding-right: 100px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .azmx-video-bg video {
        display: none !important;
    }
}


/* =========================================================
   v2.0 — Chakra table always fits fully inside its card.
   No horizontal scrolling and no cut-off final column.
   ========================================================= */
.azmx-health-card {
    padding-left: 18px !important;
    padding-right: 18px !important;
}

.azmx-health-card .azmx-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
}

.azmx-health-card .azmx-chakra-table {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
}

.azmx-health-card .azmx-chakra-table th,
.azmx-health-card .azmx-chakra-table td {
    min-width: 0 !important;
    padding: 11px 5px !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
}

.azmx-health-card .azmx-chakra-table th:first-child,
.azmx-health-card .azmx-chakra-table td:first-child {
    width: 42% !important;
    text-align: left !important;
    padding-left: 10px !important;
}

.azmx-health-card .azmx-chakra-table th:nth-child(2),
.azmx-health-card .azmx-chakra-table td:nth-child(2),
.azmx-health-card .azmx-chakra-table th:nth-child(3),
.azmx-health-card .azmx-chakra-table td:nth-child(3),
.azmx-health-card .azmx-chakra-table th:nth-child(4),
.azmx-health-card .azmx-chakra-table td:nth-child(4) {
    width: 19.333% !important;
    text-align: center !important;
}

@media (max-width: 480px) {
    .azmx-health-card {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .azmx-health-card .azmx-chakra-table th,
    .azmx-health-card .azmx-chakra-table td {
        padding: 9px 3px !important;
        font-size: 9.5px !important;
    }

    .azmx-health-card .azmx-chakra-table th:first-child,
    .azmx-health-card .azmx-chakra-table td:first-child {
        width: 43% !important;
        padding-left: 6px !important;
    }

    .azmx-health-card .azmx-chakra-table th:nth-child(2),
    .azmx-health-card .azmx-chakra-table td:nth-child(2),
    .azmx-health-card .azmx-chakra-table th:nth-child(3),
    .azmx-health-card .azmx-chakra-table td:nth-child(3),
    .azmx-health-card .azmx-chakra-table th:nth-child(4),
    .azmx-health-card .azmx-chakra-table td:nth-child(4) {
        width: 19% !important;
    }
}


/* v2.1 — Pifagor juftlik mosligi */
.azmx-compat-card,
.azmx-compat-squares-card,
.azmx-compat-report-card { margin-top: 18px; padding: 28px; }
.azmx-compat-forms { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.azmx-compat-forms fieldset { min-width:0; margin:0; padding:18px; border:1px solid #dbe4ec; border-radius:18px; background:rgba(255,255,255,.74); }
.azmx-compat-forms legend { padding:0 9px; font-weight:800; font-size:17px; }
.azmx-compat-date-fields { display:grid; grid-template-columns:.72fr 1.18fr 1fr; gap:8px; }
.azmx-compat-date-fields label { display:grid; gap:6px; min-width:0; }
.azmx-compat-date-fields label span { color:var(--azmx-muted); font-size:11px; font-weight:700; }
.azmx-compat-date-fields select { width:100%; min-width:0; height:48px; padding:0 10px; border:1px solid #cfd8e3; border-radius:999px; background:#fff; font-weight:700; }
.azmx-compat-results { margin-top:18px; }
.azmx-compat-squares { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.azmx-compat-person-square h3 { text-align:center; margin:0 0 12px; }
.azmx-compat-square { display:grid; grid-template-columns:repeat(3,1fr); border:1px solid #c9d1d9; }
.azmx-compat-square > div { min-height:105px; padding:12px 8px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; border:1px solid #d4dae0; }
.azmx-compat-square strong { font-size:20px; overflow-wrap:anywhere; }
.azmx-compat-square small { margin-top:8px; color:var(--azmx-muted); font-size:10px; }
.azmx-compat-report { display:grid; gap:16px; }
.azmx-compat-section { padding:22px; background:#fff; border:1px solid #e1e7ed; border-radius:18px; box-shadow:0 8px 24px rgba(34,65,89,.05); }
.azmx-compat-section header { display:flex; align-items:center; gap:12px; margin-bottom:12px; }
.azmx-compat-section header > span { display:grid; place-items:center; width:36px; height:36px; flex:0 0 36px; color:#fff; background:#079c89; border-radius:50%; font-weight:800; }
.azmx-compat-section h3 { margin:0; font-size:21px; }
.azmx-compat-section header p { margin:3px 0 0; color:var(--azmx-muted); font-size:12px; }
.azmx-compat-section > p { margin:10px 0 0; color:#344054; font-size:15px; line-height:1.8; text-align:justify; }
@media(max-width:760px){
  .azmx-compat-forms,.azmx-compat-squares{grid-template-columns:1fr}
  .azmx-compat-card,.azmx-compat-squares-card,.azmx-compat-report-card{padding:18px 12px}
  .azmx-compat-date-fields{grid-template-columns:.72fr 1.18fr 1fr;gap:5px}
  .azmx-compat-date-fields select{padding:0 6px;font-size:12px}
  .azmx-compat-square > div{min-height:88px;padding:8px 4px}
  .azmx-compat-square strong{font-size:16px}
  .azmx-compat-section{padding:18px 14px}
  .azmx-compat-section h3{font-size:18px}
  .azmx-compat-section > p{font-size:14px;line-height:1.72;text-align:left}
}


/* =========================================================
   v2.2 — reference-style typography and clearer matrix look.
   Based on the user's requested design direction.
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600;700;800;900&family=Comfortaa:wght@600;700&display=swap');

.azmx-app,
.azmx-app * {
    font-family: "Nunito Sans", Arial, sans-serif !important;
}

.azmx-date-card h2,
.azmx-result-title h2,
.azmx-section-heading h2,
.azmx-summary-grid h3,
.azmx-pythagoras-intro h2,
.azmx-deep-profile__header h3,
.azmx-compat-heading h2,
.azmx-compat-section h3,
.azmx-accordions summary {
    font-family: "Comfortaa", "Nunito Sans", Arial, sans-serif !important;
    letter-spacing: -0.015em;
}

body.azmx-has-video-background {
    background: #d8e7ef !important;
}

body.azmx-has-video-background > .azmx-video-bg {
    display: none !important;
}

body.azmx-has-video-background > .azmx-page-layer {
    min-height: 100vh;
    background:
        radial-gradient(circle at 10% 18%, rgba(2, 165, 186, 0.42), rgba(2, 165, 186, 0.12) 14%, rgba(2,165,186,0) 31%),
        linear-gradient(180deg, #d7e6ef 0%, #e3eef4 62%, #e4eff4 100%) !important;
}

body.azmx-has-video-background .azmx-app {
    width: min(1180px, calc(100% - 28px));
    margin: 26px auto;
    padding-bottom: 30px;
    border-radius: 34px;
    background: #eaf1f6 !important;
    box-shadow: 0 18px 42px rgba(69, 104, 124, 0.12);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

body.azmx-has-video-background .azmx-card,
body.azmx-has-video-background .azmx-accordions details {
    background: #ffffff !important;
    border-radius: 28px;
    box-shadow: 0 10px 30px rgba(52, 83, 107, 0.06);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.azmx-nav {
    width: min(970px, calc(100% - 30px));
    margin-bottom: 18px;
    padding: 10px 14px;
    border-radius: 0 0 34px 34px;
    background: linear-gradient(135deg, #079c89, #08a593);
}

.azmx-nav__item {
    min-height: 54px;
    font-size: 18px;
    font-weight: 900;
    border-radius: 20px;
}

.azmx-view[data-view="matrix"].is-active {
    grid-template-columns: minmax(0, 1fr) minmax(440px, 0.95fr);
    gap: 20px;
    padding: 0 22px;
}

.azmx-view[data-view="pythagoras"].is-active {
    padding: 0 22px;
}

.azmx-date-card,
.azmx-health-card,
.azmx-summary-card,
.azmx-arcana-section,
.azmx-compat-section,
.azmx-pythagoras-intro {
    padding: 30px;
}

.azmx-date-card h2,
.azmx-result-title h2,
.azmx-section-heading h2 {
    font-size: clamp(30px, 2.8vw, 48px) !important;
}

.azmx-date-card__intro,
.azmx-section-heading p,
.azmx-disclaimer,
.azmx-summary-grid p {
    font-size: 17px;
    line-height: 1.7;
    color: #65758b;
}

.azmx-date-fields label > span,
.azmx-pyth-date-fields label > span,
.azmx-compat-date-fields label > span {
    font-size: 15px;
    font-weight: 700;
    color: #7a8899;
}

.azmx-date-fields select,
.azmx-pyth-date-fields select,
.azmx-compat-date-fields select {
    height: 58px;
    padding: 0 18px;
    font-size: 18px;
    font-weight: 800;
    border-radius: 999px;
}

.azmx-primary-button,
.azmx-compat-submit {
    min-height: 60px;
    min-width: 220px;
    padding: 0 34px;
    font-size: 18px;
    font-weight: 900;
    border-radius: 999px;
}

.azmx-matrix-card {
    padding: 16px 14px 18px;
}

.azmx-result-title {
    margin-bottom: 16px;
}

.azmx-result-title p {
    font-size: 18px;
}

.azmx-matrix-stage {
    max-width: 610px !important;
    margin: 0 auto;
}

.azmx-node {
    font-family: "Nunito Sans", Arial, sans-serif !important;
    font-weight: 900;
    border-width: 0.24cqw;
    box-shadow: 0 0 0 0.34cqw rgba(255,255,255,0.92);
}

.azmx-node--main {
    width: 10.9%;
    font-size: clamp(16px, 4.45cqw, 38px);
}

.azmx-node--center {
    width: 10.2%;
    font-size: clamp(16px, 4.2cqw, 36px);
}

.azmx-node--corner {
    width: 8.5%;
    font-size: clamp(13px, 3.35cqw, 28px);
}

.azmx-node--small {
    width: 6.15%;
    font-size: clamp(10px, 2.45cqw, 21px);
}

.azmx-node--mini {
    width: 5.2%;
    font-size: clamp(9px, 2.05cqw, 17px);
}

.azmx-node--diagonal,
.azmx-node--channel {
    width: 4.95%;
    font-size: clamp(8px, 1.86cqw, 16px);
}

.azmx-age-arcana {
    min-width: 2.5%;
    min-height: 2.5%;
    font-size: clamp(9px, 1.82cqw, 14px);
    font-weight: 900;
    text-shadow: 0 1px 1px rgba(255,255,255,.95);
}

.azmx-chakra-table,
.azmx-year-table {
    min-width: 100%;
    font-size: 17px;
}

.azmx-chakra-table thead th,
.azmx-chakra-table tfoot th,
.azmx-chakra-table tfoot td,
.azmx-year-table thead th {
    font-size: 15px;
}

.azmx-chakra-table th,
.azmx-chakra-table td,
.azmx-year-table th,
.azmx-year-table td {
    padding: 14px 12px;
}

.azmx-chakra-table tbody td:first-child {
    font-size: 18px;
    font-weight: 800;
}

.azmx-summary-grid h3 {
    margin-bottom: 10px;
    font-size: 28px;
}

.azmx-summary-grid p {
    min-height: 0;
    font-size: 16px;
}

.azmx-formula span {
    font-size: 17px;
}

.azmx-formula strong,
.azmx-result-badge {
    width: 50px;
    font-size: 19px;
}

.azmx-accordions {
    gap: 14px;
}

.azmx-accordions summary {
    padding: 22px 24px;
    font-size: 22px;
    font-weight: 700;
}

.azmx-reading-copy {
    padding: 0 24px 24px;
}

.azmx-reading-intro,
.azmx-info-block p,
.azmx-deep-profile p,
.azmx-compat-prose p,
.azmx-line-result p,
.azmx-locked-preview p {
    font-size: 18px;
    line-height: 1.85;
    color: #334155;
}

.azmx-reading-numbers {
    gap: 10px;
    margin-bottom: 16px;
}

.azmx-reading-number {
    min-width: 46px;
    height: 46px;
    font-size: 18px;
}

.azmx-info-block {
    padding: 18px 18px 16px;
    border-radius: 18px;
}

.azmx-info-block h4 {
    font-size: 20px;
}

.azmx-info-block h4 > span {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
}

.azmx-deep-profile {
    padding: 24px;
    border-radius: 22px;
}

.azmx-deep-profile__header {
    gap: 14px;
}

.azmx-deep-profile__header h3 {
    font-size: 30px;
}

.azmx-deep-kicker,
.azmx-eyebrow {
    font-size: 13px;
}

.azmx-deep-number {
    min-width: 56px;
    height: 56px;
    font-size: 22px;
}

.azmx-deep-profile h4,
.azmx-compat-section h3 {
    font-size: 24px;
}

.azmx-deep-list li,
.azmx-compat-list li {
    font-size: 18px;
    line-height: 1.8;
}

.azmx-unlock-button {
    min-height: 40px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 900;
    border-radius: 999px;
}

@media (max-width: 1100px) {
    .azmx-view[data-view="matrix"].is-active {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body.azmx-has-video-background > .azmx-page-layer {
        background:
            radial-gradient(circle at 10% 10%, rgba(2, 165, 186, 0.30), rgba(2,165,186,0) 28%),
            linear-gradient(180deg, #d7e6ef 0%, #e3eef4 100%) !important;
    }

    body.azmx-has-video-background .azmx-app {
        width: 100%;
        margin: 0;
        border-radius: 0;
    }

    .azmx-nav {
        width: calc(100% - 14px);
        border-radius: 0 0 24px 24px;
    }

    .azmx-nav__item {
        min-height: 48px;
        font-size: 14px;
    }

    .azmx-date-card,
    .azmx-health-card,
    .azmx-summary-card,
    .azmx-arcana-section,
    .azmx-compat-section,
    .azmx-pythagoras-intro,
    .azmx-reading-copy {
        padding-left: 16px;
        padding-right: 16px;
    }

    .azmx-date-card h2,
    .azmx-result-title h2,
    .azmx-section-heading h2 {
        font-size: 28px !important;
    }

    .azmx-date-card__intro,
    .azmx-section-heading p,
    .azmx-reading-intro,
    .azmx-info-block p,
    .azmx-deep-profile p,
    .azmx-compat-prose p,
    .azmx-line-result p {
        font-size: 15px;
    }

    .azmx-accordions summary {
        padding: 18px 18px;
        font-size: 17px;
    }

    .azmx-chakra-table,
    .azmx-year-table {
        min-width: 560px;
        font-size: 14px;
    }

    .azmx-matrix-stage {
        max-width: 100% !important;
    }

    .azmx-node--main {
        width: 10.4%;
        font-size: clamp(14px, 4.1cqw, 30px);
    }

    .azmx-node--center {
        width: 9.8%;
        font-size: clamp(14px, 3.9cqw, 28px);
    }

    .azmx-node--corner {
        width: 8.1%;
        font-size: clamp(12px, 3.1cqw, 23px);
    }

    .azmx-node--small {
        width: 5.8%;
        font-size: clamp(9px, 2.15cqw, 17px);
    }

    .azmx-node--mini,
    .azmx-node--diagonal,
    .azmx-node--channel {
        font-size: clamp(7px, 1.8cqw, 14px);
    }
}


/* =========================================================
   v2.3 — reference navigation, clear matrix, simplified PDF
   purchase flow, fixed Pythagoras relationship compatibility.
   ========================================================= */
.azmx-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 30px 16px;
    background: #ffffff;
    border-radius: 34px 34px 0 0;
}

.azmx-brand {
    display: grid;
    gap: 2px;
    color: #0a8f82 !important;
    text-decoration: none !important;
}

.azmx-brand strong {
    font-family: "Comfortaa", "Nunito Sans", Arial, sans-serif !important;
    font-size: 32px;
    line-height: 1.05;
}

.azmx-brand span {
    color: #5f6877;
    font-size: 14px;
}

.azmx-topbar__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.azmx-account-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none !important;
    background: linear-gradient(135deg, #079c89, #078b7d);
    border: 2px solid #078f81;
    border-radius: 13px;
}

.azmx-account-button--outline {
    color: #087f73 !important;
    background: #ffffff;
}

.azmx-nav {
    width: 100% !important;
    margin: 0 0 22px !important;
    padding: 0 18px !important;
    display: flex !important;
    align-items: stretch;
    justify-content: center;
    gap: 0 !important;
    position: sticky;
    top: 0;
    overflow-x: auto;
    border-radius: 0 0 30px 30px !important;
    scrollbar-width: none;
}
.azmx-nav::-webkit-scrollbar { display: none; }

.azmx-nav__item {
    min-width: max-content;
    min-height: 62px !important;
    padding: 0 20px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-family: "Nunito Sans", Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    background: transparent !important;
    border-radius: 0 !important;
}

.azmx-nav__item.is-active,
.azmx-nav__item:hover,
.azmx-nav__item:focus-visible {
    color: #ffffff !important;
    background: rgba(0,0,0,.08) !important;
}

.azmx-nav__icon { font-size: 22px; }

.azmx-accordions--diagnostic {
    max-width: 100%;
}

.azmx-accordions--diagnostic details {
    border: 1px solid #e0e6ec !important;
    box-shadow: none !important;
}

.azmx-accordions--diagnostic details > summary {
    list-style: none;
}
.azmx-accordions--diagnostic details > summary::-webkit-details-marker { display: none; }
.azmx-accordions--diagnostic details > summary::before {
    content: "▶";
    display: inline-block;
    margin-right: 10px;
    font-size: .72em;
    transition: transform .18s ease;
}
.azmx-accordions--diagnostic details[open] > summary::before { transform: rotate(90deg); }

.azmx-pdf-diagnostic {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    margin-top: 14px;
    padding: 22px 24px;
    color: #101828 !important;
    text-decoration: none !important;
    background: linear-gradient(135deg, #ffffff, #f3fbf9);
    border: 2px solid #079c89;
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(7, 156, 137, .10);
}

.azmx-pdf-diagnostic__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    font-size: 23px;
    background: #e9f8f5;
    border-radius: 50%;
}

.azmx-pdf-diagnostic strong {
    display: block;
    margin-bottom: 4px;
    font-family: "Comfortaa", "Nunito Sans", Arial, sans-serif !important;
    font-size: 20px;
}

.azmx-pdf-diagnostic small {
    display: block;
    color: #667085;
    font-size: 14px;
    line-height: 1.55;
}

.azmx-pdf-diagnostic b {
    min-width: max-content;
    padding: 11px 15px;
    color: #ffffff;
    background: #079c89;
    border-radius: 999px;
}

/* Keep the diagram crisp and visually close to the reference proportions. */
.azmx-matrix-stage {
    max-width: 660px !important;
}
.azmx-schema {
    filter: contrast(1.12) saturate(1.04);
    image-rendering: auto;
}
.azmx-node {
    font-weight: 900 !important;
    text-rendering: geometricPrecision;
}
.azmx-age-arcana {
    color: #111111;
    font-size: clamp(10px, 1.9cqw, 15px) !important;
    font-weight: 900 !important;
}

/* Tragor-inspired long-form reading style, without ads or copied branding. */
.azmx-pyth-full-analysis,
.azmx-compat-report-card {
    background: #ffffff;
    border-radius: 28px;
}

.azmx-pyth-analysis-group {
    padding: 28px clamp(20px, 5vw, 62px) !important;
    background: #ffffff !important;
    border-radius: 28px;
}

.azmx-pyth-analysis-group > h2,
.azmx-compat-report-card > .azmx-section-heading h2 {
    text-align: center;
}

.azmx-pyth-detail {
    padding: 30px 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid #e4e7ec !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.azmx-pyth-detail:last-child { border-bottom: 0 !important; }

.azmx-pyth-detail__header {
    display: block !important;
    text-align: center;
}

.azmx-pyth-detail__header h3,
.azmx-compat-section h3 {
    margin: 5px 0 14px !important;
    text-align: center;
    font-size: clamp(24px, 2.2vw, 34px) !important;
}

.azmx-pyth-code {
    display: inline-flex !important;
    margin: 0 auto 8px;
}

.azmx-pyth-detail p,
.azmx-compat-section > p {
    margin: 14px 0 !important;
    font-size: 20px !important;
    line-height: 1.9 !important;
    text-align: justify;
    text-justify: inter-word;
}

.azmx-pyth-advice {
    margin-top: 20px;
    padding: 18px 20px;
    font-size: 18px;
    line-height: 1.75;
    background: #eff9f7;
    border-left: 5px solid #079c89;
    border-radius: 12px;
}

.azmx-compat-results {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.azmx-compat-overview {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 24px;
    margin-bottom: 24px;
    padding: 22px;
    background: #f6fafb;
    border-radius: 20px;
}

.azmx-compat-overall {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 7px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #dce8e6;
    border-radius: 18px;
}

.azmx-compat-overall strong {
    color: #079c89;
    font-size: 52px;
    line-height: 1;
}

.azmx-compat-overall span { font-weight: 800; }
.azmx-compat-overall b { color: #087f73; text-transform: capitalize; }

.azmx-compat-score-table {
    display: grid;
    gap: 7px;
}

.azmx-compat-score-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 64px 150px;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #ffffff;
    border-radius: 10px;
}

.azmx-compat-score-row strong { text-align: center; }
.azmx-compat-score-row em {
    padding: 5px 8px;
    color: #087f73;
    font-style: normal;
    text-align: center;
    background: #eaf8f5;
    border-radius: 8px;
}

.azmx-compat-section {
    padding: 30px clamp(4px, 4vw, 44px) !important;
    background: #ffffff !important;
    border: 0 !important;
    border-bottom: 1px solid #e4e7ec !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.azmx-compat-section:last-child { border-bottom: 0 !important; }
.azmx-compat-section header { justify-content: center; text-align: center; }
.azmx-compat-section header > span { display: none !important; }
.azmx-compat-section header p { font-size: 15px; color: #667085; }

@media (max-width: 920px) {
    .azmx-topbar {
        padding: 16px 18px;
    }
    .azmx-topbar__actions { display: none; }
    .azmx-nav { justify-content: flex-start; }
    .azmx-nav__item { min-height: 54px !important; padding: 0 15px !important; font-size: 13px !important; }
    .azmx-compat-overview { grid-template-columns: 1fr; }
    .azmx-compat-overall { min-height: 190px; }
}

@media (max-width: 620px) {
    .azmx-topbar { border-radius: 0; }
    .azmx-brand strong { font-size: 26px; }
    .azmx-brand span { font-size: 12px; }

    .azmx-pdf-diagnostic {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 18px 16px;
    }
    .azmx-pdf-diagnostic b {
        grid-column: 1 / -1;
        text-align: center;
    }

    .azmx-compat-forms {
        grid-template-columns: 1fr !important;
    }
    .azmx-compat-date-fields {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
    .azmx-compat-date-fields select {
        width: 100% !important;
        height: 58px !important;
        font-size: 18px !important;
    }

    .azmx-pyth-analysis-group {
        padding: 20px 16px !important;
    }
    .azmx-pyth-detail p,
    .azmx-compat-section > p {
        font-size: 17px !important;
        line-height: 1.82 !important;
        text-align: left;
    }

    .azmx-compat-score-row {
        grid-template-columns: 1fr 55px;
    }
    .azmx-compat-score-row em {
        grid-column: 1 / -1;
    }
}


/* =========================================================
   v2.4 — mobile field readability, clearer matrix nodes,
   normal-weight age arcanas and reliable Telegram opening.
   ========================================================= */
.azmx-age-arcana {
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    text-shadow:
        -0.08cqw -0.08cqw 0 #fff,
         0.08cqw -0.08cqw 0 #fff,
        -0.08cqw  0.08cqw 0 #fff,
         0.08cqw  0.08cqw 0 #fff !important;
}

.azmx-node--main {
    width: 12% !important;
    font-size: clamp(18px, 4.9cqw, 42px) !important;
    border-width: .42cqw !important;
}

.azmx-node--center {
    width: 11.2% !important;
    font-size: clamp(18px, 4.55cqw, 39px) !important;
}

.azmx-node--corner {
    width: 9.1% !important;
    font-size: clamp(14px, 3.65cqw, 31px) !important;
}

.azmx-node--small {
    width: 6.6% !important;
    font-size: clamp(10px, 2.55cqw, 22px) !important;
}

.azmx-node--mini,
.azmx-node--diagonal,
.azmx-node--channel {
    font-weight: 700 !important;
}

/* Telegram purchase links need to remain obviously clickable. */
a[data-telegram-bot-link] {
    cursor: pointer !important;
    touch-action: manipulation;
}

@media (max-width: 620px) {
    /* Full-width controls instead of three squeezed columns. */
    .azmx-date-fields,
    .azmx-pyth-date-fields,
    .azmx-compat-date-fields {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        width: 100% !important;
        max-width: none !important;
    }

    .azmx-date-fields label,
    .azmx-pyth-date-fields label,
    .azmx-compat-date-fields label {
        width: 100% !important;
        gap: 8px !important;
    }

    .azmx-date-fields label > span,
    .azmx-pyth-date-fields label > span,
    .azmx-compat-date-fields label > span {
        padding-left: 12px !important;
        font-size: 17px !important;
        font-weight: 800 !important;
    }

    .azmx-date-fields select,
    .azmx-pyth-date-fields select,
    .azmx-compat-date-fields select {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        height: 62px !important;
        min-height: 62px !important;
        padding: 0 20px !important;
        font-size: 20px !important;
        font-weight: 800 !important;
        text-overflow: ellipsis;
    }

    .azmx-pythagoras-intro,
    .azmx-date-card {
        overflow: visible !important;
    }

    .azmx-primary-button,
    .azmx-compat-submit {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 62px !important;
        font-size: 19px !important;
    }

    .azmx-matrix-card {
        padding-left: 2px !important;
        padding-right: 2px !important;
        overflow: visible !important;
    }

    .azmx-matrix-stage {
        width: 106% !important;
        max-width: 106% !important;
        margin-left: -3% !important;
    }

    .azmx-node--main {
        width: 12.2% !important;
        font-size: clamp(17px, 5cqw, 34px) !important;
    }

    .azmx-node--center {
        width: 11.4% !important;
        font-size: clamp(17px, 4.7cqw, 32px) !important;
    }

    .azmx-node--corner {
        width: 9.2% !important;
        font-size: clamp(13px, 3.7cqw, 25px) !important;
    }

    .azmx-age-arcana {
        font-size: clamp(7px, 1.72cqw, 11px) !important;
        font-weight: 500 !important;
    }
}


/* =========================================================
   v2.5 — wide mobile layout like the supplied reference.
   ========================================================= */
@media (max-width: 620px) {
    html,
    body {
        overflow-x: hidden !important;
    }

    body.azmx-has-video-background .azmx-app,
    .azmx-app {
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
        padding: 8px 4px 24px !important;
        border-radius: 0 !important;
        overflow-x: hidden !important;
    }

    .azmx-topbar,
    .azmx-nav {
        width: calc(100% - 8px) !important;
        max-width: none !important;
        margin-left: 4px !important;
        margin-right: 4px !important;
    }

    .azmx-view[data-view="matrix"].is-active,
    .azmx-view[data-view="pythagoras"].is-active {
        width: 100% !important;
        padding-left: 4px !important;
        padding-right: 4px !important;
        gap: 12px !important;
    }

    .azmx-card,
    .azmx-date-card,
    .azmx-matrix-card,
    .azmx-health-card,
    .azmx-summary-card,
    .azmx-pythagoras-intro,
    .azmx-square-card,
    .azmx-lines-card,
    .azmx-pyth-toc-card,
    .azmx-compat-card,
    .azmx-compat-squares-card,
    .azmx-compat-report-card {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 26px !important;
    }

    .azmx-date-card,
    .azmx-pythagoras-intro {
        padding: 26px 14px 24px !important;
    }

    /* Keep day, month and year on one readable row. */
    .azmx-date-fields,
    .azmx-pyth-date-fields {
        display: grid !important;
        grid-template-columns: minmax(82px, .78fr) minmax(130px, 1.18fr) minmax(112px, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .azmx-date-fields label,
    .azmx-pyth-date-fields label {
        min-width: 0 !important;
        width: 100% !important;
    }

    .azmx-date-fields label > span,
    .azmx-pyth-date-fields label > span {
        padding-left: 8px !important;
        font-size: 14px !important;
        white-space: nowrap !important;
    }

    .azmx-date-fields select,
    .azmx-pyth-date-fields select {
        width: 100% !important;
        min-width: 0 !important;
        height: 58px !important;
        min-height: 58px !important;
        padding: 0 12px !important;
        font-size: 17px !important;
        font-weight: 700 !important;
        border-radius: 999px !important;
    }

    .azmx-primary-button {
        width: min(100%, 390px) !important;
        min-height: 58px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .azmx-matrix-card {
        padding: 18px 0 20px !important;
    }

    .azmx-result-title {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .azmx-matrix-stage {
        width: 112% !important;
        max-width: 112% !important;
        margin-left: -6% !important;
        margin-right: -6% !important;
    }

    .azmx-health-card,
    .azmx-summary-card {
        padding: 24px 14px !important;
    }

    .azmx-table-wrap {
        overflow-x: visible !important;
    }

    .azmx-chakra-table {
        width: 100% !important;
        min-width: 0 !important;
        table-layout: fixed !important;
        font-size: 13px !important;
    }

    .azmx-chakra-table th,
    .azmx-chakra-table td {
        padding: 12px 5px !important;
    }

    .azmx-chakra-table th:first-child,
    .azmx-chakra-table td:first-child {
        width: 42% !important;
    }

    .azmx-summary-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 20px 12px !important;
    }

    .azmx-summary-grid h3 {
        font-size: 18px !important;
    }

    .azmx-summary-grid p {
        font-size: 12px !important;
    }

    .azmx-formula {
        gap: 6px !important;
    }

    .azmx-formula span {
        padding: 6px 7px !important;
        font-size: 12px !important;
    }

    .azmx-formula strong,
    .azmx-result-badge {
        width: 42px !important;
        font-size: 15px !important;
    }

    .azmx-compat-date-fields {
        grid-template-columns: minmax(78px, .8fr) minmax(126px, 1.2fr) minmax(105px, 1fr) !important;
        gap: 7px !important;
    }

    .azmx-compat-date-fields select {
        height: 56px !important;
        min-height: 56px !important;
        padding: 0 10px !important;
        font-size: 16px !important;
    }
}

@media (max-width: 380px) {
    .azmx-date-fields,
    .azmx-pyth-date-fields,
    .azmx-compat-date-fields {
        grid-template-columns: minmax(68px, .72fr) minmax(112px, 1.2fr) minmax(94px, 1fr) !important;
        gap: 5px !important;
    }

    .azmx-date-fields select,
    .azmx-pyth-date-fields select,
    .azmx-compat-date-fields select {
        padding: 0 8px !important;
        font-size: 15px !important;
    }
}


/* =========================================================
   v2.6 — corrected mobile width, no clipped numbers,
   one Telegram PDF lock, and no Pifagor compatibility block.
   ========================================================= */
/* Pifagor juftlik mosligi v2.7 da qayta yoqildi. */
.azmx-compat-card,
.azmx-compat-results {
    display: block;
}

.azmx-accordions--diagnostic details:not([data-free-section]) {
    display: none !important;
}

.azmx-pdf-diagnostic {
    position: relative;
    z-index: 5;
    cursor: pointer !important;
    touch-action: manipulation;
}

@media (max-width: 620px) {
    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    body.azmx-has-video-background .azmx-app,
    .azmx-app {
        width: 100% !important;
        max-width: 100% !important;
        padding: 8px 8px 24px !important;
        overflow-x: hidden !important;
    }

    .azmx-topbar,
    .azmx-nav {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .azmx-view[data-view="matrix"].is-active,
    .azmx-view[data-view="pythagoras"].is-active {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .azmx-card,
    .azmx-date-card,
    .azmx-matrix-card,
    .azmx-health-card,
    .azmx-summary-card,
    .azmx-pythagoras-intro,
    .azmx-square-card,
    .azmx-lines-card,
    .azmx-pyth-toc-card {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .azmx-matrix-card {
        padding: 18px 4px 20px !important;
    }

    .azmx-matrix-stage {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        transform: none !important;
    }

    .azmx-schema {
        width: 100% !important;
        max-width: 100% !important;
    }

    .azmx-date-fields,
    .azmx-pyth-date-fields {
        grid-template-columns: minmax(76px, .78fr) minmax(118px, 1.16fr) minmax(104px, 1fr) !important;
        gap: 7px !important;
    }

    .azmx-date-fields select,
    .azmx-pyth-date-fields select {
        padding: 0 9px !important;
        font-size: 16px !important;
    }

    .azmx-square {
        width: 100% !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .azmx-square-cell {
        min-width: 0 !important;
        padding: 14px 10px !important;
    }

    .azmx-square-cell strong {
        font-size: 25px !important;
        overflow-wrap: anywhere;
    }

    .azmx-lines-grid,
    .azmx-pyth-toc,
    .azmx-pyth-analysis-group {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .azmx-line-result {
        width: 100% !important;
        max-width: 100% !important;
        overflow-wrap: anywhere;
    }

    .azmx-pdf-diagnostic {
        display: grid !important;
        grid-template-columns: auto minmax(0, 1fr) !important;
        gap: 12px !important;
        padding: 18px 16px !important;
    }

    .azmx-pdf-diagnostic > b {
        grid-column: 1 / -1;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 380px) {
    .azmx-date-fields,
    .azmx-pyth-date-fields {
        grid-template-columns: minmax(66px, .72fr) minmax(105px, 1.18fr) minmax(90px, 1fr) !important;
        gap: 5px !important;
    }

    .azmx-date-fields select,
    .azmx-pyth-date-fields select {
        padding: 0 7px !important;
        font-size: 14px !important;
    }
}


/* v2.7 — Pifagor juftlik mosligi qayta tiklandi. */
@media (max-width: 620px) {
    .azmx-compat-card,
    .azmx-compat-squares-card,
    .azmx-compat-report-card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 18px 14px !important;
        overflow: hidden !important;
    }

    .azmx-compat-forms,
    .azmx-compat-squares {
        grid-template-columns: 1fr !important;
    }

    .azmx-compat-date-fields {
        grid-template-columns: minmax(66px, .72fr) minmax(105px, 1.18fr) minmax(90px, 1fr) !important;
        gap: 5px !important;
    }

    .azmx-compat-date-fields select {
        width: 100% !important;
        min-width: 0 !important;
        padding: 0 7px !important;
        font-size: 14px !important;
    }
}


/* =========================================================
   v2.8 — clean two-tab layout, stable mobile width,
   no decorative vertical strip, one Telegram PDF purchase.
   ========================================================= */
.azmx-topbar,
.azmx-topbar__actions,
.azmx-account-button {
    display: none !important;
}

.azmx-nav.azmx-nav--simple {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: min(760px, calc(100% - 24px)) !important;
    margin: 0 auto 20px !important;
}

/* Remove theme/decorative pseudo layers that created the cyan vertical bar. */
body.azmx-has-video-background::before,
body.azmx-has-video-background::after,
body.azmx-has-video-background .site::before,
body.azmx-has-video-background .site::after,
body.azmx-has-video-background .wp-site-blocks::before,
body.azmx-has-video-background .wp-site-blocks::after,
body.azmx-has-video-background .entry-content::before,
body.azmx-has-video-background .entry-content::after,
body.azmx-has-video-background main::before,
body.azmx-has-video-background main::after {
    content: none !important;
    display: none !important;
}

.azmx-app,
.azmx-view,
.azmx-results,
.azmx-card,
.azmx-matrix-stage,
.azmx-schema,
.azmx-health-card,
.azmx-summary-card,
.azmx-pythagoras-layout,
.azmx-compat-card,
.azmx-compat-results {
    box-sizing: border-box !important;
}

.azmx-pdf-diagnostic {
    pointer-events: auto !important;
}

@media (max-width: 620px) {
    body.azmx-has-video-background,
    body.azmx-has-video-background > .azmx-page-layer,
    body.azmx-has-video-background .site,
    body.azmx-has-video-background .wp-site-blocks,
    body.azmx-has-video-background main,
    body.azmx-has-video-background .entry-content {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: clip !important;
    }

    .azmx-app {
        width: 100% !important;
        max-width: 100% !important;
        padding: 8px 6px 24px !important;
        margin: 0 !important;
    }

    .azmx-nav.azmx-nav--simple {
        width: calc(100% - 8px) !important;
        max-width: calc(100% - 8px) !important;
        padding: 7px !important;
        gap: 4px !important;
    }

    .azmx-nav.azmx-nav--simple .azmx-nav__item {
        min-width: 0 !important;
        min-height: 48px !important;
        padding: 8px 6px !important;
        font-size: 13px !important;
        white-space: normal !important;
        line-height: 1.2 !important;
    }

    .azmx-view[data-view="matrix"].is-active,
    .azmx-view[data-view="pythagoras"].is-active {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 4px !important;
        overflow: visible !important;
    }

    .azmx-matrix-card,
    .azmx-health-card,
    .azmx-summary-card,
    .azmx-pythagoras-intro,
    .azmx-square-card,
    .azmx-lines-card,
    .azmx-pyth-toc-card,
    .azmx-compat-card,
    .azmx-compat-squares-card,
    .azmx-compat-report-card {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .azmx-matrix-stage {
        width: 100% !important;
        max-width: 100% !important;
        transform: none !important;
    }

    .azmx-schema {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
    }

    .azmx-date-fields,
    .azmx-pyth-date-fields,
    .azmx-compat-date-fields {
        width: 100% !important;
        grid-template-columns: minmax(74px, .8fr) minmax(118px, 1.2fr) minmax(100px, 1fr) !important;
        gap: 6px !important;
    }

    .azmx-date-fields select,
    .azmx-pyth-date-fields select,
    .azmx-compat-date-fields select {
        width: 100% !important;
        min-width: 0 !important;
        padding: 0 8px !important;
        font-size: 15px !important;
    }

    .azmx-table-wrap {
        width: 100% !important;
        overflow-x: auto !important;
    }

    .azmx-chakra-table {
        min-width: 560px !important;
    }
}


/* =========================================================
   v2.9 — restore the real back-to-top arrow and clean matrix.
   ========================================================= */
body.azmx-has-video-background {
    min-height: 100vh !important;
    background:
        radial-gradient(circle at 10% 18%, rgba(2, 165, 186, 0.42), rgba(2, 165, 186, 0.12) 14%, rgba(2,165,186,0) 31%),
        linear-gradient(180deg, #d7e6ef 0%, #e3eef4 62%, #e4eff4 100%) !important;
}

/* A page child must never become a 100vh strip. */
body.azmx-has-video-background > .azmx-page-layer {
    position: static !important;
    z-index: auto !important;
    min-height: 0 !important;
    background: transparent !important;
}

/* Protect common WordPress/theme back-to-top widgets from inherited page-layer rules. */
body.azmx-has-video-background #scroll-to-top,
body.azmx-has-video-background .scroll-to-top,
body.azmx-has-video-background #back-to-top,
body.azmx-has-video-background .back-to-top,
body.azmx-has-video-background #scrollUp,
body.azmx-has-video-background .scrollup,
body.azmx-has-video-background .generate-back-to-top,
body.azmx-has-video-background .ct-back-to-top,
body.azmx-has-video-background #wpfront-scroll-top-container,
body.azmx-has-video-background .wpfront-scroll-top-container,
body.azmx-has-video-background .ast-scroll-top-icon {
    min-height: 0 !important;
    max-height: 52px !important;
    background-clip: padding-box !important;
}

/* Main matrix circles are a little larger and clearer like the reference. */
.azmx-node--main {
    width: 12.8% !important;
    font-size: clamp(19px, 5.15cqw, 44px) !important;
}

.azmx-node--center {
    width: 11.8% !important;
    font-size: clamp(19px, 4.8cqw, 41px) !important;
}

.azmx-node--corner {
    width: 9.7% !important;
    font-size: clamp(15px, 3.85cqw, 33px) !important;
}

/* Age arcanas stay light, legible and clear of the large vertex circles. */
.azmx-age-arcana {
    z-index: 5 !important;
    font-size: clamp(7px, 1.42cqw, 11px) !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    text-shadow:
        -0.07cqw -0.07cqw 0 #fff,
         0.07cqw -0.07cqw 0 #fff,
        -0.07cqw  0.07cqw 0 #fff,
         0.07cqw  0.07cqw 0 #fff !important;
}

@media (max-width: 620px) {
    .azmx-node--main {
        width: 12.5% !important;
        font-size: clamp(18px, 5cqw, 38px) !important;
    }

    .azmx-node--center {
        width: 11.6% !important;
        font-size: clamp(18px, 4.65cqw, 36px) !important;
    }

    .azmx-node--corner {
        width: 9.5% !important;
        font-size: clamp(14px, 3.7cqw, 28px) !important;
    }

    .azmx-age-arcana {
        font-size: clamp(6px, 1.38cqw, 9px) !important;
        font-weight: 400 !important;
    }
}


/* =========================================================
   v3.0 — reference-proportioned matrix geometry.
   Yosh arkanalari faqat tashqi yosh konturida; qolgan barcha
   hisoblangan sonlar romb/sxema ichida joylashadi.
   ========================================================= */
.azmx-matrix-card {
    padding: 18px 20px 24px !important;
    overflow: hidden !important;
}

.azmx-matrix-stage {
    width: 94% !important;
    max-width: 650px !important;
    margin: 0 auto !important;
    overflow: visible !important;
}

.azmx-schema {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: contain !important;
    filter: contrast(1.08) saturate(1.02) !important;
}

/* Reference ko‘rinishidagi aylana proporsiyalari. */
.azmx-node {
    z-index: 8 !important;
    font-family: "Nunito Sans", Arial, sans-serif !important;
    font-weight: 800 !important;
    box-shadow: 0 0 0 .28cqw rgba(255,255,255,.94) !important;
}

.azmx-node--main {
    width: 10.7% !important;
    font-size: clamp(18px, 4.25cqw, 36px) !important;
    border-width: .34cqw !important;
}

.azmx-node--center {
    width: 10.1% !important;
    font-size: clamp(18px, 4.05cqw, 34px) !important;
    border-width: .32cqw !important;
}

.azmx-node--corner {
    width: 8.25% !important;
    font-size: clamp(14px, 3.25cqw, 27px) !important;
    border-width: .28cqw !important;
}

.azmx-node--small {
    width: 5.55% !important;
    font-size: clamp(9px, 2.15cqw, 18px) !important;
    border-width: .22cqw !important;
}

.azmx-node--mini {
    width: 4.55% !important;
    font-size: clamp(8px, 1.75cqw, 15px) !important;
    border-width: .18cqw !important;
}

.azmx-node--diagonal,
.azmx-node--channel {
    width: 4.35% !important;
    font-size: clamp(7px, 1.62cqw, 14px) !important;
    border-width: .17cqw !important;
}

/* Yosh arkanalari katta aylanalarning ostiga tushmaydi. */
.azmx-age-arcanas {
    z-index: 5 !important;
}

.azmx-age-arcana {
    z-index: 5 !important;
    min-width: 1.8% !important;
    min-height: 1.8% !important;
    padding: 0 !important;
    color: #151515 !important;
    font-family: Arial, sans-serif !important;
    font-size: clamp(7px, 1.34cqw, 11px) !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-shadow:
        -0.055cqw -0.055cqw 0 #fff,
         0.055cqw -0.055cqw 0 #fff,
        -0.055cqw  0.055cqw 0 #fff,
         0.055cqw  0.055cqw 0 #fff !important;
}

@media (max-width: 620px) {
    .azmx-matrix-card {
        padding: 18px 10px 22px !important;
        overflow: hidden !important;
    }

    .azmx-matrix-stage {
        width: 96% !important;
        max-width: 96% !important;
        margin: 0 auto !important;
        transform: none !important;
    }

    .azmx-node--main {
        width: 10.8% !important;
        font-size: clamp(17px, 4.25cqw, 31px) !important;
    }

    .azmx-node--center {
        width: 10.15% !important;
        font-size: clamp(17px, 4cqw, 29px) !important;
    }

    .azmx-node--corner {
        width: 8.3% !important;
        font-size: clamp(13px, 3.2cqw, 23px) !important;
    }

    .azmx-node--small {
        width: 5.6% !important;
        font-size: clamp(9px, 2.12cqw, 16px) !important;
    }

    .azmx-node--mini {
        width: 4.6% !important;
        font-size: clamp(7px, 1.72cqw, 13px) !important;
    }

    .azmx-node--diagonal,
    .azmx-node--channel {
        width: 4.4% !important;
        font-size: clamp(7px, 1.58cqw, 12px) !important;
    }

    .azmx-age-arcana {
        font-size: clamp(6px, 1.25cqw, 9px) !important;
        font-weight: 500 !important;
    }
}

/* =========================================================
   v3.0.1 — mobile fix for Pifagor compatibility date fields.
   Prevent the year select from overflowing outside the card.
   ========================================================= */
@media (max-width: 680px) {
    .azmx-compat-card {
        overflow: hidden !important;
    }

    .azmx-compat-forms {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .azmx-compat-forms fieldset {
        min-width: 0 !important;
        width: 100% !important;
        padding: 16px 12px 14px !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .azmx-compat-date-fields {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
        align-items: end !important;
    }

    .azmx-compat-date-fields label {
        min-width: 0 !important;
        width: 100% !important;
    }

    .azmx-compat-date-fields label > span {
        font-size: 12px !important;
        line-height: 1.2 !important;
    }

    .azmx-compat-date-fields select {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: 52px !important;
        padding: 0 28px 0 12px !important;
        font-size: 14px !important;
        line-height: 1.2 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 430px) {
    .azmx-compat-card,
    .azmx-compat-squares-card,
    .azmx-compat-report-card {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .azmx-compat-date-fields {
        gap: 6px !important;
    }

    .azmx-compat-date-fields select {
        font-size: 13px !important;
        padding: 0 24px 0 10px !important;
    }
}

/* =========================================================
   v3.1 — professional top section / remove repeated headers.
   Adds a clean hero and hides generic theme header/title on the calculator page.
   ========================================================= */
body.azmx-shortcode-mounted .site-header,
body.azmx-shortcode-mounted .page-header,
body.azmx-shortcode-mounted .entry-header,
body.azmx-shortcode-mounted .entry-title,
body.azmx-shortcode-mounted .wp-block-post-title,
body.azmx-shortcode-mounted .wp-block-query-title,
body.azmx-shortcode-mounted header.wp-block-template-part,
body.azmx-shortcode-mounted .site-branding,
body.azmx-shortcode-mounted .site-title {
    display: none !important;
}

body.azmx-shortcode-mounted .site-main,
body.azmx-shortcode-mounted main,
body.azmx-shortcode-mounted .wp-site-blocks,
body.azmx-shortcode-mounted .entry-content {
    padding-top: 0 !important;
}

.azmx-hero {
    width: min(1160px, calc(100% - 32px));
    margin: 28px auto 16px;
    padding: 22px 26px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(246,251,255,.92));
    border: 1px solid rgba(86, 113, 149, .12);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.azmx-hero__content {
    max-width: 760px;
}

.azmx-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(8, 155, 141, .10);
    color: #0b8b80;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.azmx-hero__title {
    margin: 0 0 10px;
    color: #14213d;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.05;
    font-weight: 900;
}

.azmx-hero__text {
    margin: 0;
    color: #64748b;
    font-size: 17px;
    line-height: 1.65;
    max-width: 680px;
}

.azmx-hero__badge {
    flex: 0 0 auto;
    align-self: center;
    padding: 12px 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0ca89a, #0b8b80);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    box-shadow: 0 12px 24px rgba(12, 168, 154, .22);
}

.azmx-app {
    margin-top: 14px !important;
}

@media (max-width: 900px) {
    .azmx-hero {
        flex-direction: column;
        padding: 20px 18px;
        margin: 18px auto 12px;
    }

    .azmx-hero__badge {
        align-self: flex-start;
    }
}

@media (max-width: 640px) {
    .azmx-hero {
        width: min(100%, calc(100% - 20px));
        border-radius: 22px;
        padding: 18px 16px;
    }

    .azmx-hero__eyebrow {
        font-size: 11px;
        margin-bottom: 10px;
    }

    .azmx-hero__title {
        font-size: 28px;
    }

    .azmx-hero__text {
        font-size: 15px;
        line-height: 1.55;
    }

    .azmx-hero__badge {
        font-size: 11px;
        padding: 10px 14px;
        border-radius: 14px;
    }
}


/* =========================================================
   v3.2 — recalculation flow and normal desktop card placement.
   Results never cover the date form or its Calculate button.
   ========================================================= */
@media (min-width: 821px) {
    .azmx-results > .azmx-matrix-card {
        margin-top: 0 !important;
        z-index: 1 !important;
    }

    .azmx-view[data-view="matrix"].is-active {
        grid-template-areas:
            "date health"
            "matrix summary"
            "reading reading" !important;
    }

    .azmx-date-card {
        position: relative !important;
        z-index: 2 !important;
        overflow: visible !important;
    }
}

.azmx-primary-button[data-calculate],
.azmx-primary-button[data-pythagoras-calculate] {
    position: relative !important;
    z-index: 3 !important;
}


/* =========================================================
   v3.3 — reliable recalculation and non-overlapping form.
   The calculate button always remains visible after a result,
   and clicking either top tab resets that calculator view.
   ========================================================= */
.azmx-date-card {
    position: relative !important;
    z-index: 10 !important;
    height: auto !important;
    min-height: 430px !important;
    overflow: visible !important;
}

.azmx-date-card .azmx-primary-button[data-calculate] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 20 !important;
    margin-top: 30px !important;
}

.azmx-results > .azmx-matrix-card {
    margin-top: 0 !important;
    transform: none !important;
    position: relative !important;
    inset: auto !important;
    z-index: 1 !important;
}

@media (min-width: 821px) {
    .azmx-view[data-view="matrix"].is-active {
        grid-template-areas:
            "date health"
            "matrix summary"
            "reading reading" !important;
        grid-auto-rows: auto !important;
        align-items: start !important;
    }

    .azmx-date-card {
        min-height: 455px !important;
    }

    .azmx-results > .azmx-matrix-card {
        margin-top: 0 !important;
        align-self: start !important;
    }
}

@media (max-width: 820px) {
    .azmx-date-card {
        min-height: 0 !important;
    }

    .azmx-date-card .azmx-primary-button[data-calculate] {
        width: 100% !important;
        margin-top: 22px !important;
    }
}
