/* =====================================================
   TA MINI PROGRAM STYLE
   Palette kept identical to the existing site theme.
===================================================== */

:root {
    --ta-bg:        #151515;
    --ta-panel:     #1a1a1a;
    --ta-line:      #3a3425;
    --ta-gold:      #c9a84c;
    --ta-gold-dark: #957b3b;
    --ta-gold-soft: #d5b34c;
    --ta-text:      #e6e6e6;
    --ta-muted:     #9a8a72;
}


/* -----------------------------------------------------
   DARK BACKGROUND
   Scoped to the mini program page only. The old rule
   targeted a bare html selector, so it repainted every
   page on the site.
----------------------------------------------------- */

body.single-ta_mini_program,
body.single-ta_mini_program #page,
body.single-ta_mini_program .site,
body.single-ta_mini_program main,
body.single-ta_mini_program .content-area,
body.single-ta_mini_program .entry-content,
body.single-ta_mini_program .site-content {
    background: #151515 !important;
}

html:has(body.single-ta_mini_program) {
    background: #151515 !important;
}


/* -----------------------------------------------------
   MAIN CONTAINER
----------------------------------------------------- */

.ta-mini-wrap {
    width: 100%;
    max-width: 980px;
    margin: 30px auto;
    background: #151515;
    color: #d4c08a;
    border: 1px solid #3a3425;
    border-radius: 12px;
    overflow: hidden;
    font-family: Georgia, serif;
    box-sizing: border-box;
}

.ta-mini-wrap *,
.ta-mini-wrap *::before,
.ta-mini-wrap *::after {
    box-sizing: border-box;
}


/* -----------------------------------------------------
   HEADER
----------------------------------------------------- */

.ta-mini-header {
    background: #151515;
    padding: 20px 35px;
    border-bottom: 1px solid #3b3528;
}

.ta-mini-breadcrumb {
    font-size: 11px;
    color: #b89535;
    margin-bottom: 12px;
}

.ta-mini-label {
    display: block;
    font-size: 11px;
    letter-spacing: 3px;
    color: #b89535;
}

.ta-mini-header h1 {
    color: #d7b95a;
    font-size: 32px;
    line-height: 1.25;
    margin: 8px 0;
}

.ta-mini-header p {
    color: #999;
    font-style: italic;
    margin: 0;
}


/* -----------------------------------------------------
   PROGRESS ROW
----------------------------------------------------- */

.ta-mini-progress {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 35px;
    background: #151515;
    border-bottom: 1px solid #333;
    font-size: 12px;
}

.ta-mini-progress-label {
    flex-shrink: 0;
    white-space: nowrap;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #b89535;
}

.ta-mini-progress-track {
    flex: 1 1 auto;
    min-width: 0;
    height: 6px;
    background: #333;
    border-radius: 10px;
    overflow: hidden;
}

.ta-mini-progress-fill {
    height: 100%;
    width: 0;
    background: #c7a33a;
    border-radius: 10px;
    transition: width .35s ease;
}

/* Fixed width stops the bar from twitching as the number
   changes between 0%, 50% and 100%. */
.ta-mini-progress strong {
    flex: 0 0 auto;
    min-width: 46px;
    text-align: right;
    color: #d7b95a;
    font-size: 13px;
}


/* Standalone [ta_mini_progress] shortcode */

.ta-mini-progress-wrapper {
    margin: 0 0 15px;
}

.ta-mini-progress-text {
    margin-bottom: 6px;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #b89535;
}

.ta-mini-progress-bar {
    height: 6px;
    background: #333;
    border-radius: 10px;
    overflow: hidden;
}


/* -----------------------------------------------------
   MAIN GRID
   minmax(0,...) prevents the video and PDF iframe from
   forcing the columns wider than the container.
----------------------------------------------------- */

.ta-mini-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
    align-items: start;
}

.ta-mini-main {
    min-width: 0;
    padding: 25px;
    border-right: 1px solid #333;
}

.ta-mini-sidebar {
    min-width: 0;
    padding: 25px;
    background: #151515;
}


/* -----------------------------------------------------
   SECTIONS
----------------------------------------------------- */

.ta-mini-section {
    margin-bottom: 30px;
}

.ta-mini-section:last-child {
    margin-bottom: 0;
}

.ta-mini-section h3,
.ta-mini-sidebar h3 {
    font-size: 12px;
    letter-spacing: 3px;
    color: #b89535;
    text-transform: uppercase;
    margin: 0 0 20px;
}


/* -----------------------------------------------------
   VIDEO
   object-fit was cover, which cropped the edges of every
   video. contain plus a 16:9 box shows the whole frame.
----------------------------------------------------- */

.ta-mini-video-wrap {
    width: 100%;
    background: #000;
    border: 1px solid #3a3425;
    border-radius: 8px;
    overflow: hidden;
    line-height: 0;
}

.ta-mini-video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 70vh;
    background: #000;
    object-fit: contain;
}

/* Older browsers with no aspect-ratio support */
@supports not (aspect-ratio: 16 / 9) {
    .ta-mini-video {
        height: 360px;
    }
}


/* -----------------------------------------------------
   TEXT
----------------------------------------------------- */

.ta-mini-text {
    color: #ddd;
    line-height: 1.8;
}

.ta-mini-video-wrap + .ta-mini-text {
    margin-top: 20px;
}

.ta-mini-text img {
    max-width: 100%;
    height: auto;
}


/* -----------------------------------------------------
   PDF
----------------------------------------------------- */

.ta-mini-pdf {
    border: 1px solid #3a3425;
    border-radius: 8px;
    background: #222;
    overflow: hidden;
    line-height: 0;
}

.ta-mini-pdf iframe {
    display: block;
    width: 100%;
    height: min(500px, 70vh);
    border: 0;
    background: #222;
}

/* These were missing entirely, so the Download and Full
   Screen links rendered as bare unstyled anchors. */

.ta-mini-pdf-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.ta-mini-pdf-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 18px;
    background: #333;
    border: 1px solid #8d7129;
    border-radius: 5px;
    color: #d9bd65;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    line-height: 1;
}

.ta-mini-pdf-buttons a:hover,
.ta-mini-pdf-buttons a:focus {
    background: #3d3d3d;
    color: #f0d98a;
}


/* -----------------------------------------------------
   ACTIONS
----------------------------------------------------- */

.ta-mini-section-actions {
    border-top: 1px solid #333;
    padding-top: 22px;
}

.ta-mini-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.ta-mini-actions button {
    height: 44px;
    min-width: 150px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 25px;
    border: 0;
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    box-sizing: border-box;
}

.ta-mini-complete {
    background: #d2ad3c;
    color: #111;
}

.ta-mini-complete:hover:not(:disabled) {
    background: #e0bb48;
}

.ta-mini-reset {
    background: #2e2e2e;
    border: 1px solid #555 !important;
    color: #ddd;
}

.ta-mini-reset:hover:not(:disabled) {
    background: #383838;
}

.ta-mini-actions button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.ta-mini-complete.is-complete:disabled {
    opacity: 1;
    background: #4a6b3f;
    color: #eaf5e6;
    cursor: default;
}

.ta-mini-actions button:focus-visible {
    outline: 2px solid #d7b95a;
    outline-offset: 2px;
}

.ta-mini-hint {
    margin: 14px 0 0;
    color: #9a8a72;
    font-size: 13px;
    font-style: italic;
    line-height: 1.6;
}


/* -----------------------------------------------------
   SIDEBAR ACCORDION
----------------------------------------------------- */

.ta-mini-accordion {
    margin-bottom: 12px;
}

.ta-mini-accordion summary {
    background: #292929;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 12px;
    color: #d5b34c;
    cursor: pointer;
}

.ta-mini-accordion[open] summary {
    border-radius: 4px 4px 0 0;
}

.ta-mini-panel {
    background: #111;
    border: 1px solid #333;
    border-top: 0;
    border-radius: 0 0 4px 4px;
    padding: 15px;
    color: #ddd;
    overflow-wrap: break-word;
}

.ta-mini-panel img {
    max-width: 100%;
    height: auto;
}


/* -----------------------------------------------------
   RESPONSIVE
----------------------------------------------------- */

@media (max-width: 900px) {

    .ta-mini-grid {
        grid-template-columns: 1fr;
    }

    .ta-mini-main {
        border-right: none;
        border-bottom: 1px solid #333;
    }
}

@media (max-width: 600px) {

    .ta-mini-wrap {
        margin: 15px auto;
        border-radius: 8px;
    }

    .ta-mini-header {
        padding: 18px 20px;
    }

    .ta-mini-header h1 {
        font-size: 24px;
    }

    .ta-mini-progress {
        padding: 15px 20px;
        gap: 12px;
    }

    /* Label on its own line so the track keeps a usable width */
    .ta-mini-progress {
        flex-wrap: wrap;
    }

    .ta-mini-progress-label {
        flex: 1 1 100%;
    }

    .ta-mini-main,
    .ta-mini-sidebar {
        padding: 20px;
    }
}

@media (max-width: 480px) {

    .ta-mini-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ta-mini-actions button {
        width: 100%;
    }
}


/* -----------------------------------------------------
   REDUCED MOTION
----------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    .ta-mini-progress-fill {
        transition: none;
    }
}


/* =====================================================
   LEARN PAGE SHORTCODE  [mini_program_progress]
   Consolidated from two competing blocks that previously
   fought each other over the same selectors.
===================================================== */

.ta-mini-learn-progress,
.ta-learn-program-box {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding: 18px 25px;
    border-radius: 10px;
    box-sizing: border-box;
}

.ta-learn-program-box {
    background: #292929;
    border: 1px solid #444;
    margin-bottom: 15px;
}

.ta-mini-learn-progress #P-Name,
.ta-learn-program-title {
    flex: 0 0 auto;
    max-width: 250px;
    color: #c7c7c7;
    font-size: 22px;
    font-weight: bold;
}

.ta-mini-learn-progress-middle,
.ta-learn-progress-wrap {
    flex: 1 1 auto;
    min-width: 0;
}

.ta-mini-learn-progress-track,
.ta-learn-progress-track {
    position: relative;
    width: 100%;
    height: 20px;
    background: #444;
    border-radius: 10px;
    overflow: hidden;
}

.ta-mini-learn-progress-fill,
.ta-learn-progress-fill {
    position: relative;
    height: 100%;
    background: #957b3b;
    border-radius: 10px;
    transition: width .35s ease;
}

/* Centre on the track, not on the fill, so the number stays
   readable at 0% and does not drift as the bar grows. */
.ta-mini-learn-progress-track .perc,
.ta-learn-progress-percent {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.ta-mini-learn-progress .ta-mini-progress-button {
    flex: 0 0 auto;
}

.ta-mini-learn-progress .ta-mini-open-btn,
.ta-mini-learn-progress .btn,
.ta-learn-program-btn {
    display: inline-block;
    background-color: #957b3b !important;
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: 5px !important;
    font-weight: bold;
    text-decoration: none !important;
    white-space: nowrap;
}

.ta-mini-learn-progress .ta-mini-open-btn:hover,
.ta-learn-program-btn:hover {
    background-color: #a98d4a !important;
}

@media (max-width: 768px) {

    .ta-mini-learn-progress,
    .ta-learn-program-box {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .ta-mini-learn-progress #P-Name,
    .ta-learn-program-title {
        max-width: none;
        font-size: 18px;
    }

    .ta-mini-learn-progress .ta-mini-progress-button,
    .ta-mini-learn-progress .ta-mini-open-btn,
    .ta-learn-program-btn {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
}


/* =====================================================
   FRONTEND ADMIN PANEL  [mini_program_admin]
   Unchanged.
===================================================== */

.ta-mini-admin-panel {
    background: #1a1a1a !important;
    border: 1px solid rgba(201,168,76,.25);
    padding: 25px;
    border-radius: 10px;
    color: #e6e6e6;
}

.ta-mini-eyebrow {
    color: #957B3B !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 6px;
}

.ta-mini-admin-panel h2 {
    color: #c9a84c !important;
}

.ta-mini-admin-panel input[type="text"],
.ta-mini-admin-panel input[type="url"] {
    padding: 10px;
    background: #111 !important;
    border: 1px solid #444 !important;
    color: #ddd !important;
    border-radius: 4px;
    box-sizing: border-box;
}

.ta-mini-create-form > button,
.ta-mini-form-actions > button,
.ta-mini-media-row > button,
.ta-mini-delete-form > button {
    background: #b08d32 !important;
    color: #fff !important;
    border: 0;
    padding: 10px 18px;
    border-radius: 5px;
    cursor: pointer;
}

.ta-mini-create-box {
    margin: 20px 0 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(201,168,76,.18);
}

.ta-mini-create-desc {
    color: #9A8A72 !important;
    font-size: 13px;
    margin: 0 0 10px;
}

.ta-mini-create-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.ta-mini-create-form input {
    flex: 1 1 260px;
}

.ta-mini-create-form button {
    flex-shrink: 0;
}

.ta-mini-admin-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid rgba(201,168,76,.22);
    border-radius: 8px;
    overflow: hidden;
}

.ta-mini-admin-table thead th {
    text-align: left;
    color: #c9a84c !important;
    font-size: 14px;
    font-weight: bold;
    padding: 14px 18px;
    background: #242424 !important;
    border: 0 !important;
}

.ta-mini-admin-th-actions {
    text-align: right !important;
}

.ta-mini-admin-table tbody td {
    padding: 14px 18px;
    border: 0 !important;
    border-top: 1px solid rgba(255,255,255,.06) !important;
    vertical-align: middle;
    background: transparent !important;
    color: #e6e6e6 !important;
}

.ta-mini-admin-table tbody tr {
    background: transparent !important;
}

.ta-mini-admin-table tbody tr:hover {
    background: rgba(201,168,76,.06) !important;
}

.ta-mini-admin-td-title {
    color: #e6e6e6 !important;
    font-weight: bold;
}

.ta-mini-admin-td-actions {
    text-align: right;
}

.ta-mini-admin-item-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.ta-mini-delete-form {
    margin: 0;
    display: inline-block;
}

.ta-mini-admin-btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    line-height: 1.2;
    min-width: 70px;
    text-align: center;
}

.ta-mini-admin-btn-edit {
    background: transparent !important;
    color: #c9a84c !important;
    border: 1px solid #c9a84c !important;
}

.ta-mini-admin-btn-edit:hover {
    background: rgba(201,168,76,.1) !important;
}

.ta-mini-admin-btn-open {
    background: #957B3B !important;
    color: #fff !important;
    border: 1px solid #957B3B !important;
}

.ta-mini-admin-btn-open:hover {
    background: #a98d4a !important;
}

.ta-mini-delete-btn {
    background: #7a2e2e !important;
    color: #fff !important;
    border: 1px solid #7a2e2e !important;
}

.ta-mini-delete-btn:hover {
    background: #933939 !important;
}

@media screen and (max-width: 640px) {

    .ta-mini-create-form {
        flex-direction: column;
        align-items: stretch;
    }

    .ta-mini-admin-table thead {
        display: none;
    }

    .ta-mini-admin-table,
    .ta-mini-admin-table tbody,
    .ta-mini-admin-table tr,
    .ta-mini-admin-table td {
        display: block;
        width: 100%;
    }

    .ta-mini-admin-table tr {
        margin-bottom: 15px;
        background: #242424 !important;
        border-radius: 8px;
        padding: 12px;
    }

    .ta-mini-admin-table td {
        border-top: 0 !important;
        padding: 6px 0;
        text-align: left !important;
    }

    .ta-mini-admin-td-title {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .ta-mini-admin-td-actions {
        text-align: left;
    }

    .ta-mini-admin-item-actions {
        display: flex;
        width: 100%;
    }

    .ta-mini-admin-btn {
        flex: 1;
        width: auto;
        box-sizing: border-box;
        text-align: center;
    }
}

.ta-mini-admin-success {
    padding: 10px;
    margin-bottom: 15px;
    background: #243524;
}

.ta-mini-admin-panel h3 {
    color: #c9a84c;
    margin-top: 20px;
}

.ta-mini-edit-form input[type="text"],
.ta-mini-edit-form textarea {
    background: #111;
    border: 1px solid #444;
    color: #ddd;
    padding: 8px;
    border-radius: 4px;
    box-sizing: border-box;
}

.ta-mini-edit-form label {
    color: #ddd;
    display: inline-block;
    margin: 4px 0;
}

.ta-mini-edit-form button[type="submit"] {
    margin-top: 15px;
}

.ta-mini-edit-form a {
    color: #c9a84c;
}

/* =====================================================
   VERSION 1.4 - MODULE CONTENT, CARDS AND ALIGNMENT FIXES
===================================================== */

/* Rich text is intentionally displayed on a light reading surface so
   black headings, pasted formatting and normal editor text stay legible. */
.ta-mini-text {
    padding: 24px;
    background: #f6f3ea;
    border: 1px solid #d8ccb0;
    border-radius: 8px;
    color: #242424 !important;
    font-family: Arial, sans-serif;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.ta-mini-text > :first-child {
    margin-top: 0 !important;
}

.ta-mini-text > :last-child {
    margin-bottom: 0 !important;
}

.ta-mini-text h1:not([style*="color"]),
.ta-mini-text h2:not([style*="color"]),
.ta-mini-text h3:not([style*="color"]),
.ta-mini-text h4:not([style*="color"]),
.ta-mini-text h5:not([style*="color"]),
.ta-mini-text h6:not([style*="color"]),
.ta-mini-text p:not([style*="color"]),
.ta-mini-text li:not([style*="color"]),
.ta-mini-text blockquote:not([style*="color"]),
.ta-mini-text td:not([style*="color"]),
.ta-mini-text th:not([style*="color"]),
.ta-mini-text strong:not([style*="color"]),
.ta-mini-text em:not([style*="color"]),
.ta-mini-text span:not([style*="color"]) {
    color: inherit !important;
}

.ta-mini-text h1,
.ta-mini-text h2,
.ta-mini-text h3,
.ta-mini-text h4,
.ta-mini-text h5,
.ta-mini-text h6 {
    letter-spacing: normal;
    text-transform: none;
    line-height: 1.25;
}

.ta-mini-text a {
    color: #7c5d12;
    text-decoration: underline;
}

.ta-mini-text ul,
.ta-mini-text ol {
    padding-left: 1.5em;
}

.ta-mini-text table {
    width: 100%;
    border-collapse: collapse;
}

.ta-mini-text td,
.ta-mini-text th {
    padding: 8px 10px;
    border: 1px solid #cfc6b2;
}

/* Frontend editor fields */
.ta-mini-admin-panel .ta-mini-card-details-fieldset {
    padding: 20px;
    background: #202020;
    border: 1px solid rgba(201,168,76,.26);
    border-radius: 8px;
}

.ta-mini-admin-panel .ta-mini-text-input,
.ta-mini-admin-panel .ta-mini-media-input,
.ta-mini-admin-panel .ta-mini-select-input,
.ta-mini-admin-panel select {
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    background: #111 !important;
    border: 1px solid #4c4c4c !important;
    border-radius: 5px;
    color: #f0f0f0 !important;
    box-sizing: border-box;
}

.ta-mini-admin-panel select option {
    background: #111;
    color: #f0f0f0;
}

.ta-mini-admin-panel .ta-mini-media-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
}

.ta-mini-admin-panel .ta-mini-media-input {
    flex: 1 1 420px;
    min-width: 0;
}

.ta-mini-admin-panel .ta-mini-media-row .button,
.ta-mini-admin-panel .ta-mini-media-pick,
.ta-mini-admin-panel .ta-mini-media-clear {
    display: inline-flex !important;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    height: 44px;
    margin: 0 !important;
    padding: 0 18px !important;
    white-space: nowrap;
    line-height: 1 !important;
}

.ta-mini-admin-panel .ta-mini-media-clear {
    background: #4d3030 !important;
}

.ta-mini-admin-panel .ta-mini-media-image {
    display: block;
    width: 100%;
    max-width: 520px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 1px solid #4b4433;
    border-radius: 6px;
}

.ta-mini-admin-panel .ta-mini-rich-editor-field .wp-editor-wrap,
.ta-mini-admin-panel .ta-mini-rich-editor-field .wp-editor-container,
.ta-mini-admin-panel .ta-mini-rich-editor-field .mce-edit-area {
    background: #fff !important;
}

.ta-mini-admin-panel .ta-mini-rich-editor-field textarea.wp-editor-area {
    background: #fff !important;
    color: #1f2937 !important;
}

.ta-mini-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding-top: 6px;
}

.ta-mini-edit-form .ta-mini-form-actions button[type="submit"],
.ta-mini-form-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    min-height: 44px;
    margin: 0 !important;
    padding: 0 20px !important;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    text-decoration: none !important;
}

.ta-mini-form-view {
    background: transparent;
    border: 1px solid #c9a84c;
    color: #c9a84c !important;
}

.ta-mini-form-view:hover {
    background: rgba(201,168,76,.1);
}

.ta-mini-admin-table-wrap,
.ta-mini-shortcodes-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.ta-mini-admin-th-category,
.ta-mini-admin-td-category {
    width: 31%;
    color: #bcb29d !important;
}

.ta-mini-admin-item-actions {
    justify-content: flex-end;
    flex-wrap: nowrap;
}

.ta-mini-admin-btn,
.ta-mini-delete-form .ta-mini-delete-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    min-height: 38px;
    height: 38px;
    margin: 0 !important;
    padding: 0 15px !important;
    line-height: 1 !important;
    box-sizing: border-box;
}

.ta-mini-delete-form {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.ta-mini-shortcodes-box {
    margin-top: 28px;
    padding: 22px;
    background: #202020;
    border: 1px solid rgba(201,168,76,.22);
    border-radius: 8px;
}

.ta-mini-shortcodes-box h3 {
    margin: 0 0 8px;
}

.ta-mini-shortcodes-box p {
    margin: 0 0 16px;
    color: #bcb29d;
}

.ta-mini-shortcodes-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
}

.ta-mini-shortcodes-table th,
.ta-mini-shortcodes-table td {
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,.08);
    text-align: left;
    vertical-align: middle;
}

.ta-mini-shortcodes-table th {
    background: #282828;
    color: #c9a84c;
}

.ta-mini-shortcodes-table code {
    display: inline-block;
    padding: 6px 9px;
    background: #111;
    border: 1px solid #444;
    border-radius: 4px;
    color: #f0d98a;
    white-space: nowrap;
}

/* Uniform module cards */
.ta-mini-card-section {
    width: 100%;
    box-sizing: border-box;
}

.ta-mini-card-section-title {
    margin: 0 0 18px;
    color: #c9a84c;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.2;
}

.ta-mini-card-kicker {
    margin: 0 0 10px;
    color: #957b3b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.8px;
    line-height: 1.2;
    text-transform: uppercase;
}

.ta-mini-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
}

.ta-mini-module-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #303030;
    border: 1px solid #4a4a4a;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.22);
    color: #ededed;
}

.ta-mini-card-banner {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #171717;
    text-decoration: none;
}

.ta-mini-card-banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .25s ease;
}

.ta-mini-module-card:hover .ta-mini-card-banner img {
    transform: scale(1.025);
}

.ta-mini-card-banner-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #c9a84c;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #171717, #34301f);
}

.ta-mini-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 20px;
}

.ta-mini-card-title {
    margin: 0 0 12px;
    color: #fff !important;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: none;
    letter-spacing: normal;
}

.ta-mini-card-subheading {
    margin: 0;
    color: #d0d0d0 !important;
    font-size: 15px;
    line-height: 1.65;
}

.ta-mini-card-actions {
    display: flex;
    justify-content: center;
    margin-top: auto;
    padding-top: 24px;
}

.ta-mini-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    min-height: 46px;
    padding: 0 22px;
    background: #a98936;
    border: 1px solid #b89842;
    border-radius: 5px;
    color: #151515 !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    text-decoration: none !important;
}

.ta-mini-card-button:hover,
.ta-mini-card-button:focus {
    background: #c1a04b;
    color: #111 !important;
}

.ta-mini-card-empty {
    padding: 20px;
    background: #242424;
    border: 1px solid #444;
    border-radius: 6px;
    color: #ddd;
}

@media (max-width: 980px) {
    .ta-mini-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .ta-mini-admin-panel .ta-mini-media-input {
        flex-basis: 100%;
    }

    .ta-mini-admin-panel .ta-mini-media-row .button,
    .ta-mini-admin-panel .ta-mini-media-pick,
    .ta-mini-admin-panel .ta-mini-media-clear {
        flex: 1 1 calc(50% - 5px);
    }

    .ta-mini-card-grid {
        grid-template-columns: 1fr;
    }

    .ta-mini-form-actions,
    .ta-mini-edit-form .ta-mini-form-actions button[type="submit"],
    .ta-mini-form-view {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .ta-mini-admin-item-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .ta-mini-admin-th-category,
    .ta-mini-admin-td-category {
        width: auto;
    }
}

/* =====================================================
   DROPDOWN INDICATOR
   Re-apply the arrow after the frontend dark select styles,
   whose background shorthand can otherwise clear it.
===================================================== */
.ta-mini-admin-panel select,
.ta-mini-admin-panel select:focus,
.ta-mini-admin-panel select:active {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    padding-right: 38px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.25 7 7.25 13 1.25' fill='none' stroke='%23c9a84c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 14px 9px !important;
    cursor: pointer;
}