/* css/newsletter.css — newsletter editor and public display */

.newsletter-container,
.newsletter-editor {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
}

.ckc-newsletter {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    background: #fff;
}

.ckc-newsletter--branded {
    border: 1px solid #d8deea;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(49, 65, 119, 0.08);
}

.newsletter-brand-header {
    position: relative;
    background: linear-gradient(135deg, #314177 0%, #283566 45%, #1e2848 100%);
    padding: 24px 20px 28px;
    margin-bottom: 0;
    overflow: visible;
}

.newsletter-brand-header::before,
.newsletter-brand-header::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.newsletter-brand-header::before {
    width: 320px;
    height: 320px;
    top: -140px;
    left: -80px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
}

.newsletter-brand-header::after {
    width: 260px;
    height: 260px;
    bottom: -120px;
    right: 12%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 72%);
}

.newsletter-brand-header-accent {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 48px 48px,
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 48px 48px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 85%);
}

.newsletter-brand-capsule {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    max-width: 920px;
    margin: 0 auto;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.2));
}

.newsletter-brand-capsule-body {
    flex: 1 1 auto;
    min-width: 0;
    color: #fff;
    border: 4px solid rgba(255, 255, 255, 0.95);
    border-right: none;
    border-radius: 100vmax 0 0 100vmax;
    padding: 14px 20px 14px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 100%);
    backdrop-filter: blur(2px);
}

.newsletter-brand-eyebrow {
    margin: 0;
    padding-left: 15px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.newsletter-brand-capsule-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-left: 15px;
}

.newsletter-brand-capsule-title {
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.01em;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
    text-decoration-color: rgba(255, 255, 255, 0.85);
}

.newsletter-brand-capsule-edition {
    flex-shrink: 0;
    display: inline-block;
    padding: 5px 12px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.newsletter-brand-capsule-lead {
    margin: 0;
    padding-left: 15px;
    font-size: 15px;
    line-height: 1.55;
    font-style: italic;
    color: rgba(255, 255, 255, 0.94);
    max-width: 62ch;
}

.newsletter-brand-capsule-logo {
    position: relative;
    flex: 0 0 124px;
    width: 124px;
    height: 124px;
    border: 3px solid rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin-left: -2px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.newsletter-brand-capsule-logo img {
    display: block;
    width: 110%;
    height: 110%;
    min-width: 0;
    min-height: 0;
    border: none;
    outline: none;
    object-fit: cover;
    object-position: center center;
}

.newsletter-brand-footer {
    margin-top: 0;
    padding: 24px 20px;
    background: #f4f6fb;
    border-top: 3px solid #314177;
    text-align: center;
}

.newsletter-brand-footer-inner {
    max-width: 900px;
    margin: 0 auto;
}

.newsletter-brand-footer-social {
    margin: 0 0 8px;
    font-size: 15px;
    color: #334155;
}

.newsletter-brand-footer-social a {
    color: #314177;
    font-weight: 600;
    text-decoration: none;
}

.newsletter-brand-footer-social a:hover {
    text-decoration: underline;
}

.newsletter-brand-footer-link {
    margin: 0 0 8px;
    font-size: 15px;
}

.newsletter-brand-footer-link a {
    color: #314177;
    font-weight: 600;
    text-decoration: none;
}

.newsletter-brand-footer-link a:hover {
    text-decoration: underline;
}

.newsletter-brand-footer-copy {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

.newsletter-container .ckc-newsletter--branded {
    padding: 0;
}

.newsletter-container .ckc-newsletter--branded .newsletter-section {
    margin: 12px 0;
    padding: 8px 24px;
}

.newsletter-container .ckc-newsletter--branded .newsletter-section:first-of-type {
    padding-top: 20px;
}

.newsletter-container .ckc-newsletter--branded .newsletter-section:last-of-type {
    padding-bottom: 20px;
}

.newsletter-container .ckc-newsletter--branded .newsletter-section h2 {
    margin-bottom: 8px;
    padding-bottom: 6px;
}

.newsletter-container .ckc-newsletter--branded .newsletter-content-wrapper {
    margin-top: 8px;
    gap: 16px;
}

.newsletter-container .ckc-newsletter--branded .newsletter-text p {
    margin: 0 0 0.75em;
}

.newsletter-container .ckc-newsletter--branded .newsletter-text p:last-child {
    margin-bottom: 0;
}

/* Legacy header classes (editor partial previews) */
.newsletter-header {
    text-align: center;
    padding: 30px 0;
    border-bottom: 3px solid #314177;
    margin-bottom: 30px;
}

.newsletter-logo img {
    max-width: 150px;
    height: auto;
}

.newsletter-header h1 {
    color: #314177;
    font-size: 36px;
    margin: 15px 0 5px;
}

.newsletter-subtitle,
.newsletter-tagline {
    color: #666;
    font-size: 18px;
    margin: 0;
}

.newsletter-section {
    margin: 30px 0;
    padding: 20px 0;
}

.newsletter-section h2 {
    color: #314177;
    font-size: 24px;
    margin-bottom: 15px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

.fixtures-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
}

.fixtures-table th,
.fixtures-table td {
    padding: 10px 12px;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: middle;
}

.fixtures-table thead th {
    background: #314177;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.02em;
    border-color: #25325f;
}

.fixtures-table tbody td {
    color: #333;
}

.fixtures-table tbody tr:nth-child(even) {
    background: #f9f9f9;
}

.newsletter-highlights-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
}

.newsletter-totm,
.newsletter-potm,
.newsletter-milestones-tile {
    flex: none;
    width: 100%;
    box-sizing: border-box;
}

.newsletter-totm {
    padding: 16px;
    border: 1px solid #d8deea;
    border-radius: 8px;
    background: #f8faff;
}

.newsletter-totm-heading {
    margin: 0 0 14px;
    color: #314177;
    font-size: 20px;
}

.newsletter-totm-layout {
    display: flex;
    gap: 24px;
    align-items: center;
}

.newsletter-totm-summary {
    flex: 0 0 180px;
    text-align: center;
    padding: 12px 16px;
    border-right: 1px solid #d8deea;
}

.newsletter-totm-summary-goals {
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    color: #314177;
}

.newsletter-totm-summary-goals-label {
    font-size: 16px;
    font-weight: 600;
    color: #314177;
    margin-top: 4px;
}

.newsletter-totm-summary-record {
    margin-top: 10px;
    font-size: 14px;
    color: #555;
}

.newsletter-milestones-tile {
    padding: 16px;
    border: 1px solid #d8deea;
    border-radius: 8px;
    background: #f8faff;
}

.newsletter-milestones-heading {
    margin: 0 0 14px;
    color: #314177;
    font-size: 20px;
}

.newsletter-milestone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}

.newsletter-milestone-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    background: #fff;
    text-align: center;
}

.newsletter-milestone-card-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
    border: 1px solid #ddd;
    background: #fff;
}

.newsletter-milestone-card-name {
    font-size: 14px;
    font-weight: 700;
    color: #314177;
    line-height: 1.2;
    margin-bottom: 6px;
}

.newsletter-milestone-card-name a {
    color: inherit;
    text-decoration: none;
}

.newsletter-milestone-card-name a:hover {
    text-decoration: underline;
}

.newsletter-milestone-card-text {
    font-size: 12px;
    color: #444;
    line-height: 1.35;
}

.newsletter-milestone-card-text div + div {
    margin-top: 4px;
}

.newsletter-milestones-empty {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.newsletter-totm-team {
    flex: 1 1 0;
    min-width: 0;
}

.newsletter-totm-team-heading {
    margin: 0 0 10px;
    color: #314177;
    font-size: 16px;
    font-weight: 700;
}

.newsletter-totm-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.newsletter-totm-trophy {
    font-size: 42px;
    line-height: 1;
    flex-shrink: 0;
}

.newsletter-totm-body {
    min-width: 0;
}

.newsletter-totm-name {
    font-size: 20px;
    font-weight: 700;
    color: #314177;
    line-height: 1.2;
    margin-bottom: 6px;
}

.newsletter-totm-points {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
    color: #111;
    margin-bottom: 6px;
}

.newsletter-totm-points-goals {
    font-size: 16px;
    font-weight: 600;
    color: #444;
}

.newsletter-totm-record {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.newsletter-totm-match-stats {
    font-size: 14px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}

.newsletter-totm-breakdown {
    font-size: 13px;
    color: #666;
}

.newsletter-potm {
    margin-top: 0;
    padding: 16px;
    border: 1px solid #d8deea;
    border-radius: 8px;
    background: #f8faff;
}

.newsletter-potm-heading {
    margin: 0 0 14px;
    color: #314177;
    font-size: 20px;
}

.newsletter-potm-layout {
    display: flex;
    gap: 20px;
    align-items: center;
}

.newsletter-potm-winner {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1 1 58%;
    min-width: 0;
}

.newsletter-potm-winner-body {
    min-width: 0;
}

.newsletter-potm-photo {
    object-fit: cover;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ddd;
    flex-shrink: 0;
}

.newsletter-potm-photo--winner {
    width: 100px;
    height: 100px;
}

.newsletter-potm-photo--runner {
    width: 42px;
    height: 42px;
}

.newsletter-potm-name {
    font-size: 20px;
    font-weight: 700;
    color: #314177;
    margin-bottom: 6px;
    line-height: 1.2;
}

.newsletter-potm-total {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 6px;
    color: #111;
}

.newsletter-potm-breakdown {
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.newsletter-potm-caption {
    margin-top: 4px;
    font-size: 13px;
    color: #666;
}

.newsletter-potm-profile-link {
    margin-top: 8px;
    font-size: 14px;
}

.newsletter-potm-runners {
    flex: 1 1 38%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-potm-runner {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    gap: 8px;
    align-items: center;
    padding: 8px 0;
    border-top: 1px solid #e2e8f0;
}

.newsletter-potm-runner:first-child {
    border-top: none;
    padding-top: 0;
}

.newsletter-potm-place {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    color: #314177;
}

.newsletter-potm-runner-body {
    min-width: 0;
    font-size: 14px;
}

.newsletter-potm-runner-body a {
    font-weight: 600;
    text-decoration: none;
}

.newsletter-potm-runner-body a:hover {
    text-decoration: underline;
}

.newsletter-potm-runner-total {
    font-size: 16px;
    font-weight: 700;
    color: #111;
}

.newsletter-potm-fallback {
    margin: 0;
    font-size: 16px;
}

.newsletter-content-wrapper {
    display: flex;
    gap: 24px;
    margin-top: 15px;
    align-items: flex-start;
}

/* Text first in DOM; images column on the right */
.newsletter-layout--text-left {
    flex-direction: row;
}

/* Images column on the left */
.newsletter-layout--text-right {
    flex-direction: row-reverse;
}

/* Full-width stack — text above image (DOM order: text, then image) */
.newsletter-layout--stacked {
    flex-direction: column;
}

/* Full-width stack — image above text (DOM order: image, then text) */
.newsletter-layout--stacked-image-top {
    flex-direction: column;
}

.newsletter-layout--text-only {
    flex-direction: column;
}

.newsletter-images {
    flex: 0 0 min(42%, 360px);
    min-width: 0;
}

.newsletter-layout--stacked .newsletter-images,
.newsletter-layout--stacked-image-top .newsletter-images,
.newsletter-layout--text-only .newsletter-images {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
}

.newsletter-images--grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.newsletter-images img {
    width: 100%;
    height: auto;
    margin-bottom: 0;
    border-radius: 4px;
    display: block;
}

.newsletter-text {
    flex: 1 1 0;
    min-width: 0;
}

.newsletter-empty {
    color: #999;
    font-style: italic;
    padding: 20px;
    text-align: center;
}

.newsletter-nav {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    padding: 15px;
    background: #f0f0f0;
    border-radius: 4px;
}

.newsletter-nav a {
    color: #314177;
    text-decoration: none;
    font-weight: bold;
}

.newsletter-nav-left,
.newsletter-nav-right {
    flex: 1;
}

.newsletter-nav-right {
    text-align: right;
}

.newsletter-nav-center {
    flex: 1;
    text-align: center;
}

.newsletter-actions {
    text-align: center;
    margin: 20px 0;
}

.newsletter-actions a {
    margin: 0 10px;
}

.newsletter-reactions-wrap {
    margin: 0 0 24px;
    text-align: center;
}

.newsletter-reactions-wrap .ckc-reaction-bar {
    justify-content: center;
}

.newsletters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.newsletter-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.newsletter-card-header h3 {
    color: #314177;
    margin: 0 0 5px;
}

.newsletter-card-date {
    color: #666;
    font-size: 14px;
    margin: 0 0 15px;
}

.newsletter-card-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-pdf {
    font-size: 14px;
    text-decoration: none;
    color: #314177;
}

.pagination {
    text-align: center;
    margin: 30px 0;
}

.page-link,
.page-current {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #314177;
}

.page-current {
    background: #314177;
    color: #fff;
    border-color: #314177;
}

/* Editor */
.form-section {
    margin: 20px 0;
    padding: 10px 20px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
}

.form-section h2 {
    margin-top: 0;
    margin-bottom: 12px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px;
}

.form-row .form-group {
    margin-bottom: 15px;
}

.form-row--month-year .form-group select {
    width: auto;
}

.form-row--month-year .form-group:first-child select {
    min-width: 160px;
}

.form-row--month-year .form-group:last-child select {
    min-width: 90px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group select,
.form-group textarea {
    width: 100%;
    max-width: 400px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-group textarea.wysiwyg-content {
    max-width: 100%;
    min-height: 300px;
}

.preview-box {
    background: #fff;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 10px;
}

.help-text {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

.add-section-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.add-section-buttons button.btn-primary,
.add-section-buttons button.btn-secondary {
    margin: 0;
    padding: 8px 18px;
    font-size: 14px;
    min-height: 38px;
    white-space: nowrap;
}

.add-section-buttons--prominent {
    padding: 16px;
    margin: 12px 0 20px;
    background: #eef2fb;
    border: 2px dashed #314177;
    border-radius: 8px;
}

.form-section--content {
    border: 2px solid #314177;
    background: #fafbff;
}

.form-section--content h2 {
    color: #314177;
}

.form-section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #666;
    background: #eee;
    padding: 2px 8px;
    border-radius: 999px;
    vertical-align: middle;
    margin-left: 8px;
}

.newsletter-sections-empty {
    color: #666;
    font-style: italic;
    padding: 20px;
    text-align: center;
    background: #fff;
    border: 1px dashed #ccc;
    border-radius: 6px;
    margin: 0;
}

.newsletter-editor-intro a {
    color: #314177;
    font-weight: 600;
}

.form-actions {
    margin-top: 30px;
    padding: 20px;
    background: #f0f0f0;
    border-radius: 4px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.form-actions-top {
    margin-top: 0;
    margin-bottom: 24px;
    position: sticky;
    top: 0;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.form-actions-unpublish {
    margin-left: auto;
}

.newsletter-editor-intro {
    background: #f8f9fc;
    border: 1px solid #d8deeb;
    border-radius: 6px;
    padding: 16px 18px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.newsletter-editor-intro p {
    margin: 0 0 8px;
}

.newsletter-editor-intro p:last-child {
    margin-bottom: 0;
}

.newsletter-notice {
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-weight: 600;
}

.newsletter-notice--success {
    background: #d4edda;
    border: 1px solid #28a745;
    color: #155724;
}

.newsletter-notice--info {
    background: #e7f1ff;
    border: 1px solid #314177;
    color: #253060;
}

.newsletter-notice--error {
    background: #f8d7da;
    border: 1px solid #dc3545;
    color: #721c24;
}

.newsletter-notice--warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
}

.newsletter-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin-bottom: 16px;
}

.newsletter-page-header-brand {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1 1 auto;
}

.newsletter-page-header-brand .title1 {
    margin: 0;
}

.newsletter-page-header-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 14px;
    flex-shrink: 0;
}

.newsletter-page-header-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.newsletter-page-header-reactions .ckc-reaction-bar {
    margin-top: 0;
}

.newsletter-stage-pill {
    flex-shrink: 0;
    align-self: flex-start;
    display: inline-block;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
    color: #fff;
}

.newsletter-stage-pill--draft {
    background: #64748b;
}

.newsletter-stage-pill--preview {
    background: #2563eb;
}

.newsletter-stage-pill--published {
    background: #314177;
}

.newsletter-status-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #6c757d;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.newsletter-status-badge--published {
    background: #28a745;
}

.preview-box--compact .newsletter-section {
    margin: 0;
    padding: 0;
}

.preview-box--compact .newsletter-section h2 {
    display: none;
}

.form-section--auto {
    background: #fafafa;
}

.news-hub-drafts,
.newsletters-drafts {
    margin: 30px 0;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

.news-hub-drafts h2,
.newsletters-drafts h2 {
    color: #314177;
    margin-top: 0;
}

.news-hub-draft-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
}

.news-hub-draft-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.news-hub-draft-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.news-hub-draft-info {
    flex: 1 1 200px;
    min-width: 0;
}

.news-hub-draft-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.newsletter-card-manage {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.news-hub-draft-list li:last-child {
    border-bottom: none;
}

.news-hub-draft-list a {
    font-weight: 600;
}

.news-hub-draft-meta {
    color: #666;
    font-size: 14px;
    margin-left: 8px;
}

.newsletter-create-draft-form {
    margin: 12px 0;
}

.newsletter-create-draft-fields {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
}

.newsletter-create-draft-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.newsletter-create-draft-label select {
    min-width: 120px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-weight: normal;
}

.newsletters-create-draft {
    margin: 0 0 24px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

.newsletters-create-draft h2 {
    color: #314177;
    margin-top: 0;
}

.hub-card .btn-secondary {
    margin-top: 8px;
    margin-right: 10px;
}

.form-actions button,
.form-actions a {
    margin: 0;
}

.form-actions.newsletter-actions a {
    margin: 0;
}

.btn-primary,
a.btn-primary,
button.btn-primary,
.btn-secondary,
a.btn-secondary,
button.btn-secondary,
.btn-preview,
button.btn-preview,
.btn-tertiary,
a.btn-tertiary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 42px;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.2;
    text-decoration: none;
    vertical-align: middle;
    margin: 0;
}

button.btn-primary,
button.btn-secondary,
button.btn-preview {
    appearance: none;
    -webkit-appearance: none;
}

.btn-primary,
a.btn-primary,
button.btn-primary {
    background: #314177;
    color: #fff !important;
    border: 1px solid transparent;
}

a.btn-primary:link,
a.btn-primary:visited,
a.btn-primary:hover,
a.btn-primary:active {
    color: #fff !important;
    text-decoration: none;
}

a.btn-primary:hover,
button.btn-primary:hover {
    background: #253060;
}

.btn-secondary,
a.btn-secondary,
button.btn-secondary {
    background: #6c757d;
    color: #fff !important;
    border: 1px solid transparent;
}

a.btn-secondary:link,
a.btn-secondary:visited,
a.btn-secondary:hover,
a.btn-secondary:active {
    color: #fff !important;
    text-decoration: none;
}

a.btn-secondary:hover,
button.btn-secondary:hover {
    background: #5a6268;
}

.btn-preview,
button.btn-preview {
    background: #2563eb;
    color: #fff !important;
    border: 1px solid transparent;
}

button.btn-preview:hover {
    background: #1d4ed8;
}

.btn-tertiary,
a.btn-tertiary {
    background: #fff;
    color: #333 !important;
    border: 1px solid #ccc;
}

a.btn-tertiary:link,
a.btn-tertiary:visited,
a.btn-tertiary:hover,
a.btn-tertiary:active {
    color: #333 !important;
    text-decoration: none;
}

a.btn-tertiary:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

.newsletter-section-edit {
    border: 2px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
    background: #fff;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.section-header h3 {
    margin: 0;
    color: #314177;
}

.section-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.section-controls button,
.section-move-btn,
.section-remove-btn {
    background: #6c757d;
    color: #fff !important;
    border: none;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

.section-existing-images-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.section-existing-image img {
    max-width: 120px;
    max-height: 120px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: block;
}

.section-remove-btn {
    background: #b91c1c;
}

.section-move-btn:hover,
.section-remove-btn:hover {
    filter: brightness(1.08);
}

.section-media-row {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-top: 4px;
}

.section-media-upload {
    flex: 1 1 280px;
    min-width: 0;
}

.section-media-upload .form-group:last-child {
    margin-bottom: 0;
}

.section-layout-picker {
    flex: 0 0 176px;
    min-width: 168px;
}

.section-layout-picker-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.section-layout-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.section-layout-option {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 8px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: #fafafa;
    transition: border-color 0.15s ease, background 0.15s ease;
    min-width: 0;
    box-sizing: border-box;
}

.section-layout-option:hover {
    border-color: #94a3b8;
}

.section-layout-option:has(input:checked) {
    border-color: #314177;
    background: #eef2ff;
}

.section-layout-option:has(input:focus-visible) {
    outline: 2px solid #314177;
    outline-offset: 2px;
}

.section-layout-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.section-layout-preview {
    display: flex;
    gap: 3px;
    width: 100%;
    height: 46px;
    flex-shrink: 0;
    padding: 5px;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    box-sizing: border-box;
    overflow: hidden;
}

.section-layout-preview--text-left {
    flex-direction: row;
}

.section-layout-preview--text-right {
    flex-direction: row-reverse;
}

.section-layout-preview--stacked {
    flex-direction: column;
}

.section-layout-preview--stacked-image-top {
    flex-direction: column-reverse;
}

.section-layout-preview-text,
.section-layout-preview-img {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    min-width: 0;
    min-height: 0;
    border-radius: 2px;
    padding: 3px;
    box-sizing: border-box;
    overflow: hidden;
}

.section-layout-preview-text {
    flex: 1 1 0;
    background: #eef2ff;
    border: 1px solid #314177;
    justify-content: center;
}

.section-layout-preview-img {
    flex: 0 0 34%;
    background: #f8fafc;
    border: 1px solid #64748b;
    justify-content: center;
    align-items: stretch;
}

.section-layout-preview-lines {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 1px;
    width: 100%;
    box-sizing: border-box;
}

.section-layout-preview-lines i {
    display: block;
    height: 2px;
    background: #314177;
    opacity: 0.45;
    border-radius: 1px;
}

.section-layout-preview-lines i:nth-child(2) {
    width: 88%;
    align-self: flex-start;
}

.section-layout-preview-lines i:nth-child(3) {
    width: 62%;
    align-self: flex-start;
}

.section-layout-preview-photo-icon {
    display: block;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    height: 100%;
    margin: 0;
    border-radius: 2px;
    background:
        radial-gradient(circle at 72% 28%, #fbbf24 0 16%, transparent 17%),
        linear-gradient(145deg, #64748b 0 42%, #94a3b8 42% 58%, #cbd5e1 58% 100%);
}

.section-layout-preview--stacked .section-layout-preview-text,
.section-layout-preview--stacked-image-top .section-layout-preview-text,
.section-layout-preview--stacked .section-layout-preview-img,
.section-layout-preview--stacked-image-top .section-layout-preview-img {
    flex: 1 1 0;
    width: auto;
}

.section-layout-preview--stacked .section-layout-preview-img,
.section-layout-preview--stacked-image-top .section-layout-preview-img {
    flex: 1 1 0;
}

.news-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.hub-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
}

.hub-card h2 {
    color: #314177;
    margin-top: 0;
}

.hub-card a {
    display: inline-block;
    margin: 10px 10px 0 0;
}

@media (max-width: 768px) {
    .newsletter-brand-header {
        padding: 22px 14px 26px;
    }

    .newsletter-brand-capsule {
        flex-direction: column-reverse;
        align-items: stretch;
        min-height: 0;
        filter: none;
    }

    .newsletter-brand-capsule-body {
        border: 4px solid rgba(255, 255, 255, 0.95);
        border-radius: 24px;
        border-top: none;
        margin-top: -20px;
        padding: 24px 18px 18px;
        backdrop-filter: none;
    }

    .newsletter-brand-capsule-logo {
        flex: 0 0 104px;
        width: 104px;
        height: 104px;
        margin: 0 auto;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    }

    .newsletter-brand-capsule-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .newsletter-brand-capsule-lead {
        max-width: none;
    }

    .newsletter-content-wrapper,
    .newsletter-layout--text-left,
    .newsletter-layout--text-right {
        flex-direction: column;
    }

    .newsletter-images {
        flex: 1 1 auto;
        width: 100%;
        max-width: 100%;
    }

    .fixtures-table {
        font-size: 12px;
    }

    .fixtures-table th,
    .fixtures-table td {
        padding: 5px;
    }

    .newsletters-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-nav {
        flex-direction: column;
        gap: 10px;
    }

    .newsletter-nav-left,
    .newsletter-nav-right {
        text-align: center;
    }

    .newsletter-potm-layout {
        flex-direction: column;
        align-items: stretch;
    }

    .newsletter-highlights-row {
        flex-direction: column;
    }

    .newsletter-totm-layout {
        flex-direction: column;
        align-items: stretch;
    }

    .newsletter-totm-summary {
        flex: none;
        border-right: none;
        border-bottom: 1px solid #d8deea;
        padding-bottom: 16px;
    }

    .newsletter-potm-winner {
        flex-basis: auto;
    }

    .newsletter-potm-runners {
        width: 100%;
    }

    .section-media-row {
        flex-direction: column;
    }

    .section-layout-picker {
        flex: 1 1 100%;
        width: 100%;
    }
}

@media print {
    .newsletter-nav,
    .newsletter-actions {
        display: none;
    }

    .newsletter-container {
        max-width: 100%;
    }
}
