/* ========================================
   TNR GOALS — FRONT-END STYLES
   ======================================== */

/* ----------------------------------------
   GENERAL / SHARED
   ---------------------------------------- */
.tnr-btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.tnr-btn-primary {
    background: #2563eb;
    color: #fff;
}

.tnr-btn-primary:hover {
    background: #1d4ed8;
    color: #fff;
}

.tnr-btn-secondary {
    background: #f1f5f9;
    color: #1e293b;
    border: 1px solid #cbd5e1;
}

.tnr-btn-secondary:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.required {
    color: #dc2626;
}

/* Status colors */
.tnr-status-planned { color: #2563eb; }
.tnr-status-active { color: #16a34a; }
.tnr-status-completed { color: #6b7280; }
.tnr-status-paused { color: #d97706; }

/* ----------------------------------------
   SUPPORT FORM
   ---------------------------------------- */
.tnr-goal-support-form-wrap {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px;
    margin: 24px 0;
}

.tnr-goal-support-form-wrap h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
}

.tnr-form-field {
    margin-bottom: 16px;
}

.tnr-form-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #334155;
}

.tnr-form-field input[type="text"],
.tnr-form-field input[type="number"],
.tnr-form-field input[type="email"],
.tnr-form-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.tnr-form-field input:focus,
.tnr-form-field textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.tnr-field-note {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #94a3b8;
}

.tnr-checkbox-field label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    cursor: pointer;
}

.tnr-goal-login-prompt {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    margin: 24px 0;
}

.tnr-goal-login-prompt p {
    margin: 0 0 16px 0;
    font-size: 15px;
    color: #92400e;
}

.tnr-goal-closed {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    margin: 24px 0;
    color: #64748b;
}

/* ----------------------------------------
   FUNDING PROGRESS
   Shared .tnr-progress-bar / .tnr-progress-fill are used by the funding
   summary, goal cards, and the upcoming-goals widget — keep them generic.
   ---------------------------------------- */
.tnr-progress-bar {
    background: #e5e7eb;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
}

.tnr-progress-fill {
    background: linear-gradient(90deg, #22c55e, #0d9488);
    height: 100%;
    border-radius: 999px;
    transition: width 0.6s ease;
    min-width: 2px;
}

.tnr-funding-summary {
    margin: 24px 0;
}

.tnr-funding-title {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
}

.tnr-funding-summary .tnr-progress-bar {
    margin-bottom: 10px;
}

.tnr-funding-stats-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #64748b;
}

.tnr-funding-raised,
.tnr-funding-supporters {
    font-weight: 700;
    color: #0f172a;
}

/* ----------------------------------------
   GOAL META (dates + status) — horizontal bar, Image 2 style
   ---------------------------------------- */
.tnr-goal-meta-box {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 0;
    padding: 14px 20px;
    margin: 16px 0;
    background: #f9f5f0;
    border: 1px solid #e8e0d5;
    border-radius: 10px;
    flex-wrap: wrap;
}

.tnr-goal-meta-box > .tnr-goal-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 0;
    min-width: 120px;
    padding: 0 16px;
    border-right: 1px solid #e2d9cc;
}

.tnr-goal-meta-box > .tnr-goal-meta-item:first-child {
    padding-left: 0;
}

.tnr-goal-meta-box > .tnr-goal-meta-item:last-child {
    border-right: none;
}

.tnr-meta-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #8b6f4e;
}

.tnr-meta-icon {
    flex-shrink: 0;
    opacity: 0.75;
}

.tnr-meta-value {
    font-size: 15px;
    font-weight: 500;
    color: #1e293b;
}

.tnr-goal-status-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tnr-goal-status-badge.tnr-goal-status-planned {
    background: #a08040;
    color: #fff;
}

.tnr-goal-status-badge.tnr-goal-status-active {
    background: #16a34a;
    color: #fff;
}

.tnr-goal-status-badge.tnr-goal-status-completed {
    background: #2563eb;
    color: #fff;
}

.tnr-goal-status-badge.tnr-goal-status-paused {
    background: #64748b;
    color: #fff;
}

/* ----------------------------------------
   SUPPORTERS LIST
   ---------------------------------------- */
.tnr-goal-supporters {
    margin: 24px 0;
}

.tnr-goal-supporters h3 {
    margin: 0 0 16px 0;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
}

.tnr-supporter-entry {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 12px;
    transition: box-shadow 0.2s;
}

.tnr-supporter-entry:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.tnr-supporter-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tnr-supporter-name {
    font-weight: 700;
    font-size: 15px;
    color: #0f172a;
}

.tnr-supporter-amount {
    font-weight: 700;
    font-size: 15px;
    color: #2563eb;
}

.tnr-supporter-type {
    font-size: 12px;
    background: #eff6ff;
    color: #2563eb;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.tnr-supporter-date {
    font-size: 12px;
    color: #94a3b8;
    margin-left: auto;
}

.tnr-supporter-message {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.tnr-supporter-message p {
    margin: 0;
    font-size: 14px;
    color: #475569;
    font-style: italic;
}

.tnr-supporter-thankyou {
    margin-top: 10px;
    padding: 12px 16px;
    background: #f0fdf4;
    border-radius: 8px;
    border-left: 3px solid #16a34a;
}

.tnr-supporter-thankyou .tnr-thankyou-label {
    font-size: 12px;
    font-weight: 700;
    color: #16a34a;
    display: block;
    margin-bottom: 4px;
}

.tnr-supporter-thankyou p {
    margin: 0;
    font-size: 14px;
    color: #166534;
}

.tnr-no-supporters {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    color: #64748b;
}

/* ----------------------------------------
   SUPPORTERS SLIDER
   ---------------------------------------- */
.tnr-supporters-slider-wrap {
    margin: 24px 0;
}

.tnr-supporters-slider-wrap h3 {
    margin: 0 0 16px 0;
    font-size: 20px;
    font-weight: 700;
}

.tnr-supporter-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tnr-supporter-card-name {
    font-weight: 700;
    font-size: 16px;
    color: #0f172a;
    margin-bottom: 4px;
}

.tnr-supporter-card-amount {
    font-size: 20px;
    font-weight: 800;
    color: #2563eb;
    margin-bottom: 8px;
}

.tnr-supporter-card-amount small {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
}

.tnr-supporter-card-message {
    font-size: 14px;
    color: #475569;
    font-style: italic;
    margin-bottom: 8px;
    flex-grow: 1;
}

.tnr-supporter-card-thankyou {
    background: #f0fdf4;
    border-radius: 8px;
    padding: 10px 12px;
    margin-top: auto;
}

.tnr-supporter-card-thankyou span {
    font-size: 11px;
    font-weight: 700;
    color: #16a34a;
}

.tnr-supporter-card-thankyou p {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: #166534;
}

/* Swiper overrides */
.tnr-supporters-slider-wrap .swiper-button-prev,
.tnr-supporters-slider-wrap .swiper-button-next {
    color: #2563eb;
}

.tnr-supporters-slider-wrap .swiper-pagination-bullet-active {
    background: #2563eb;
}

/* ----------------------------------------
   GALLERIES
   ---------------------------------------- */
.tnr-goal-galleries {
    margin: 32px 0;
}

.tnr-gallery-heading {
    font-size: 22px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 3px solid #e2e8f0;
}

/* Tabs */
.tnr-gallery-tab-nav {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tnr-gallery-tab-btn {
    padding: 8px 20px;
    background: #f1f5f9;
    border: 2px solid transparent;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tnr-gallery-tab-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.tnr-gallery-tab-btn.active {
    background: #1e293b;
    color: #fff;
    border-color: #1e293b;
}

.tnr-gallery-tab-content {
    display: none;
}

.tnr-gallery-tab-content.active {
    display: block;
}

.tnr-gallery-desc {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 16px 0;
    line-height: 1.6;
}

/* Grid layout — fixed height rows, equal images */
.tnr-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

@media (max-width: 900px) {
    .tnr-gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
    .tnr-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

.tnr-gallery-item {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 4/3;
    background: #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tnr-gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.tnr-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.tnr-gallery-item:hover img {
    transform: scale(1.06);
}

/* Hover overlay with zoom icon */
.tnr-gallery-item::after {
    content: '⤢';
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    color: #fff;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    border-radius: 10px;
}

.tnr-gallery-item:hover::after {
    opacity: 1;
}

/* Single gallery wrapper */
.tnr-galleries-single {
    margin-bottom: 0;
}

/* Stacked (multi-gallery no-tabs fallback) */
.tnr-galleries-stacked .tnr-gallery-section {
    margin-bottom: 36px;
}

.tnr-galleries-stacked .tnr-gallery-section h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 14px 0;
    color: #0f172a;
}

/* ----------------------------------------
   VIDEO
   ---------------------------------------- */
.tnr-goal-video {
    margin: 32px 0;
}

.tnr-video-wrap {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    background: #000;
}

/* Responsive 16:9 container for oEmbed iframes */
.tnr-video-responsive {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 14px;
}

.tnr-video-responsive iframe,
.tnr-video-responsive embed,
.tnr-video-responsive object {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 14px;
}

/* Uploaded video file */
.tnr-video-file video {
    width: 100%;
    display: block;
    border-radius: 14px;
    max-height: 560px;
    background: #000;
}

/* ----------------------------------------
   GOAL CARDS (archive grid)
   ---------------------------------------- */
.tnr-goal-cards {
    display: grid;
    align-items: stretch;
    gap: 24px;
    margin: 24px 0;
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
}

/* Column classes — must match the "tnr-goal-cards-col-X" class printed by the
   [goal_cards] shortcode (previously mismatched as "tnr-goal-cols-X", which is
   why the columns attribute had no effect). */
.tnr-goal-cards.tnr-goal-cards-col-1 { grid-template-columns: 1fr; }
.tnr-goal-cards.tnr-goal-cards-col-2 { grid-template-columns: repeat(2, 1fr); }
.tnr-goal-cards.tnr-goal-cards-col-3 { grid-template-columns: repeat(3, 1fr); }
.tnr-goal-cards.tnr-goal-cards-col-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .tnr-goal-cards.tnr-goal-cards-col-2,
    .tnr-goal-cards.tnr-goal-cards-col-3,
    .tnr-goal-cards.tnr-goal-cards-col-4 {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .tnr-goal-cards.tnr-goal-cards-col-3,
    .tnr-goal-cards.tnr-goal-cards-col-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.tnr-goal-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
    transition: box-shadow 0.2s, transform 0.2s;
}

.tnr-goal-card:hover {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
    transform: translateY(-2px);
}

.tnr-goal-card-image {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    flex-shrink: 0;
}

.tnr-goal-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.tnr-goal-card:hover .tnr-goal-card-image img {
    transform: scale(1.05);
}

.tnr-goal-card-video-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
}

.tnr-goal-card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 16px 20px 20px;
}

.tnr-goal-card-funding,
.tnr-goal-card-stats {
    margin-top: auto;
}

.tnr-goal-card-status {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.tnr-goal-card-title {
    margin: 0 0 6px 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.tnr-goal-card-title a {
    color: #0f172a;
    text-decoration: none;
}

.tnr-goal-card-title a:hover {
    color: #2563eb;
}

.tnr-goal-card-dates {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
}

.tnr-goal-card-excerpt {
    font-size: 14px;
    color: #475569;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.tnr-goal-card-funding {
    margin-bottom: 12px;
}

.tnr-goal-card-funding .tnr-progress-bar {
    height: 8px;
    margin-bottom: 4px;
}

.tnr-goal-card-funding-text {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 12px;
}

/* ----------------------------------------
   UPCOMING GOALS LIST
   ---------------------------------------- */
.tnr-goal-upcoming-list {
    margin: 24px 0;
}

.tnr-goal-upcoming-list h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 700;
}

.tnr-goal-upcoming-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tnr-goal-upcoming-list li {
    border-bottom: 1px solid #f1f5f9;
    padding: 10px 0;
}

.tnr-goal-upcoming-list li:last-child {
    border-bottom: none;
}

.tnr-goal-upcoming-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #1e293b;
    font-size: 15px;
}

.tnr-goal-upcoming-list a:hover {
    color: #2563eb;
}

.tnr-upcoming-date {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 400;
}

/* ----------------------------------------
   CALENDAR
   ---------------------------------------- */
.tnr-goals-calendar-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.tnr-goals-calendar-container h1 {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 24px 0;
    color: #0f172a;
}

.tnr-goals-calendar {
    margin: 24px 0;
}

.tnr-calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 4px;
}

.tnr-calendar-prev,
.tnr-calendar-next {
    font-size: 14px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}

.tnr-calendar-prev:hover,
.tnr-calendar-next:hover {
    color: #1d4ed8;
}

.tnr-calendar-month-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
}

.tnr-calendar-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.tnr-calendar-table thead th {
    padding: 10px 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    text-align: center;
    border-bottom: 2px solid #e2e8f0;
}

.tnr-calendar-table td {
    border: 1px solid #f1f5f9;
    vertical-align: top;
    padding: 6px;
    min-height: 80px;
    height: 100px;
}

.tnr-calendar-empty {
    background: #fafafa;
}

.tnr-calendar-day-number {
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 4px;
}

.tnr-calendar-today {
    background: #eff6ff;
}

.tnr-calendar-today .tnr-calendar-day-number {
    color: #2563eb;
    font-weight: 800;
}

.tnr-calendar-has-goals {
    background: #fefce8;
}

.tnr-calendar-today.tnr-calendar-has-goals {
    background: #eff6ff;
}

.tnr-calendar-day-goals {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tnr-calendar-goal-dot {
    display: block;
    text-decoration: none;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.2s;
}

.tnr-calendar-goal-dot:hover {
    opacity: 0.8;
}

.tnr-calendar-goal-dot.tnr-status-planned {
    background: #dbeafe;
    color: #1e40af;
}

.tnr-calendar-goal-dot.tnr-status-active {
    background: #dcfce7;
    color: #166534;
}

.tnr-calendar-goal-dot.tnr-status-completed {
    background: #f1f5f9;
    color: #475569;
}

.tnr-calendar-goal-dot.tnr-status-paused {
    background: #fef3c7;
    color: #92400e;
}

.tnr-calendar-goal-label {
    font-weight: 600;
}

.tnr-calendar-goal-cont {
    font-weight: 400;
    opacity: 0.6;
}

/* Calendar legend */
.tnr-calendar-legend {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.tnr-calendar-legend h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #0f172a;
}

.tnr-calendar-legend ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tnr-calendar-legend li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.tnr-calendar-legend li:last-child {
    border-bottom: none;
}

.tnr-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tnr-legend-dot.tnr-status-planned { background: #2563eb; }
.tnr-legend-dot.tnr-status-active { background: #16a34a; }
.tnr-legend-dot.tnr-status-completed { background: #6b7280; }
.tnr-legend-dot.tnr-status-paused { background: #d97706; }

.tnr-calendar-legend a {
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
}

.tnr-calendar-legend a:hover {
    color: #2563eb;
}

.tnr-legend-dates {
    font-size: 12px;
    color: #94a3b8;
}

.tnr-legend-status {
    font-size: 11px;
    font-weight: 600;
    margin-left: auto;
}

/* Calendar responsive */
@media (max-width: 768px) {
    .tnr-calendar-table td {
        height: 60px;
        padding: 4px;
    }

    .tnr-calendar-goal-label {
        display: none;
    }

    .tnr-calendar-goal-dot {
        font-size: 0;
        width: 8px;
        height: 8px;
        padding: 0;
        border-radius: 50%;
        display: inline-block;
    }

    .tnr-calendar-goal-cont {
        display: none;
    }

    .tnr-calendar-day-goals {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 3px;
    }

    .tnr-goal-meta-box {
        flex-direction: column;
        gap: 0;
        padding: 12px 16px;
    }

    .tnr-goal-meta-box > .tnr-goal-meta-item {
        flex: 1 1 100%;
        padding: 10px 0;
        border-right: none;
        border-bottom: 1px solid #e2d9cc;
    }

    .tnr-goal-meta-box > .tnr-goal-meta-item:last-child {
        border-bottom: none;
    }

    .tnr-supporter-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .tnr-supporter-date {
        margin-left: 0;
    }

    .tnr-funding-raised,
    .tnr-funding-supporters {
        font-size: 15px;
    }
}

/* ========================================
   DONATION OPTIONS (Support Form)
   ======================================== */
.tnr-donation-option-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.tnr-donation-option {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px 14px;
    transition: border-color .15s ease, background .15s ease;
}

.tnr-donation-option.active {
    border-color: #2271b1;
    background: #f0f6fb;
}

.tnr-donation-option-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
}

.tnr-donation-option-price {
    margin-left: auto;
    color: #2271b1;
    font-weight: 700;
}

.tnr-donation-tier-options {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    padding-left: 26px;
}

.tnr-tier-option {
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 4px 14px;
    cursor: pointer;
    font-weight: 600;
}

.tnr-donation-custom-amount {
    margin-top: 8px;
    padding-left: 26px;
}

.tnr-donation-custom-amount input {
    width: 120px;
    margin-left: 6px;
}

.tnr-supporter-item,
.tnr-slider-item {
    font-size: 13px;
    color: #666;
    margin-top: 2px;
}

/* ========================================
   PROGRESS UPDATES TIMELINE
   ======================================== */
.tnr-goal-updates-timeline {
    margin-top: 24px;
}

.tnr-updates-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 3px solid #2271b1;
}

.tnr-update-entry {
    padding: 10px 0 10px 18px;
    position: relative;
    margin-bottom: 4px;
}

.tnr-update-entry::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 16px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #2271b1;
}

.tnr-update-header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-weight: 600;
}

.tnr-update-date {
    color: #888;
    font-weight: 400;
    font-size: 13px;
    white-space: nowrap;
}

.tnr-update-body {
    margin-top: 4px;
    color: #444;
}

/* ========================================
   UPCOMING GOALS WIDGET + COUNTDOWN
   ======================================== */
.tnr-upcoming-goals {
    margin: 24px 0;
}

.tnr-upcoming-countdown-wrap {
    text-align: center;
    margin-bottom: 20px;
}

.tnr-upcoming-countdown-label {
    font-size: 15px;
    margin-bottom: 8px;
}

.tnr-goal-countdown {
    display: flex;
    justify-content: center;
    gap: 14px;
}

.tnr-countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 48px;
}

.tnr-countdown-unit strong {
    font-size: 26px;
    line-height: 1;
}

.tnr-countdown-unit em {
    font-style: normal;
    font-size: 11px;
    text-transform: uppercase;
    color: #888;
}

.tnr-countdown-live {
    font-size: 18px;
    font-weight: 700;
    color: #2271b1;
}

.tnr-upcoming-goals-grid {
    display: grid;
    align-items: stretch;
    gap: 20px;
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
}

.tnr-upcoming-goals-grid.tnr-goal-cards-col-1 { grid-template-columns: 1fr; }
.tnr-upcoming-goals-grid.tnr-goal-cards-col-2 { grid-template-columns: repeat(2, 1fr); }
.tnr-upcoming-goals-grid.tnr-goal-cards-col-4 { grid-template-columns: repeat(4, 1fr); }

.tnr-upcoming-goal-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
    transition: box-shadow 0.2s, transform 0.2s;
}

.tnr-upcoming-goal-card:hover {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
    transform: translateY(-2px);
}

/* Fixed aspect ratio so every card's image is the same size regardless of the
   source graphic's original dimensions. */
.tnr-upcoming-goal-image {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    flex-shrink: 0;
}

.tnr-upcoming-goal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.tnr-upcoming-goal-card:hover .tnr-upcoming-goal-image img {
    transform: scale(1.05);
}

.tnr-upcoming-goal-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 12px 14px;
}

.tnr-upcoming-goal-date {
    color: #888;
    font-size: 13px;
    margin-bottom: 8px;
}

.tnr-upcoming-goal-body > .tnr-progress-bar {
    margin-top: auto;
}

.tnr-upcoming-goal-stats {
    font-size: 13px;
    margin-top: 6px;
}

.tnr-goal-event-link {
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
}

@media (max-width: 700px) {
    .tnr-upcoming-goals-grid,
    .tnr-upcoming-goals-grid.tnr-goal-cards-col-3,
    .tnr-upcoming-goals-grid.tnr-goal-cards-col-4 {
        grid-template-columns: 1fr;
    }

    .tnr-goal-countdown {
        gap: 8px;
    }
}

/* ========================================
   AUTO SINGLE-GOAL TEMPLATE WRAPPER
   ======================================== */
/* Outer wrap — just vertical padding, no width constraint. Width is
   controlled entirely by the two wrapper elements below it, each
   centered independently. */
.tnr-goal-single-wrap {
    padding: 40px 0;
}

/* Wrapper #1 — caps the title and all shortcode body content at the
   normal 1100px content width. Used on both the header and the body. */
.tnr-goal-content-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.tnr-goal-single-title {
    margin-bottom: 20px;
}

/* Wrapper #2 — caps the featured image at a wider 1600px on its own,
   independent of the 1100px content wrapper above/below it. */
.tnr-goal-image-wrap {
    max-width: 1600px;
    margin: 0 auto 24px;
    padding: 0 20px;
}

.tnr-goal-single-thumb img {
    width: 100%;
    height: auto;
    max-height: 620px;
    object-fit: cover;
    display: block;
}

.tnr-goal-single-body > * {
    margin-bottom: 28px;
}

/* Goal description (renders the goal's main editor content) */
.tnr-goal-description {
    line-height: 1.6;
}
.tnr-goal-description p:last-child {
    margin-bottom: 0;
}
