/* wins-tracker.css - Sweepstakes Win Tracker
   Install at: /home/sweepsad/public_html/css/wins-tracker.css
   Matches the newer sitemap card look: #2773ae blue, #d5e4f0 borders, 12px radius. */

.wt-page { padding-bottom: 28px; }
.wt-page h1 { font-size: 2.6rem; color: #0f5489; font-weight: bold; margin: 15px 0 10px; line-height: 1.2; }
.wt-page h2 { font-size: 2rem; color: #0f5489; font-weight: bold; margin: 0 0 10px; line-height: 1.3; }
.wt-page h3 { font-size: 1.6rem; color: #333; font-weight: bold; margin: 16px 0 4px; }
.wt-lead { font-size: 1.6rem; line-height: 1.6; color: #444; max-width: 52em; margin: 0 0 16px; }
.wt-section { background: #fff; border: 1px solid #d5e4f0; border-radius: 12px; padding: 18px 20px; margin: 0 0 18px;
    box-shadow: 0 1px 3px rgba(20, 60, 90, 0.06); font-size: 1.5rem; line-height: 1.6; color: #333; }
.wt-section p { margin: 0 0 10px; }
.wt-section a, .wt-help a { color: #2773ae; font-weight: 600; }
.wt-columns { margin: 0 0 10px; padding-left: 20px; }
.wt-columns li { margin-bottom: 6px; }
/* public hero: intro text left, sample image right (desktop); stacked on phones */
.wt-hero--media { display: flex; flex-direction: column; gap: 14px; margin: 0 0 18px; }
.wt-hero--media .wt-lead { margin-bottom: 0; }
.wt-hero-media { margin: 0; }
.wt-shot { display: block; width: 100%; max-width: 640px; height: auto; aspect-ratio: 640 / 400; margin: 0 auto;
    border: 1px solid #d5e4f0; border-radius: 12px; box-shadow: 0 2px 8px rgba(20, 60, 90, 0.10); background: #f4f8fb; }
@media (min-width: 768px) {
    .wt-hero--media { flex-direction: row; align-items: flex-start; gap: 24px; }
    .wt-hero--media .wt-hero-text { flex: 1 1 55%; min-width: 0; }
    .wt-hero--media .wt-hero-media { flex: 0 1 42%; max-width: 420px; }
}
.wt-notice { background: #eef6fc; border: 1px solid #d5e4f0; border-radius: 8px; padding: 10px 14px; margin: 0 0 14px; font-size: 1.5rem; }

/* upgrade banner (same look as the holiday theme pages) */
.wt-upgrade { clear: both; margin: 18px 0 22px; padding: 16px 18px; border-radius: 6px; background: #fff7e6; border: 2px solid #f0a020; text-align: center; }
.wt-upgrade strong { display: block; font-size: 1.8rem; color: #0f5489; margin-bottom: 6px; }
.wt-upgrade p { margin: 0 0 10px; font-size: 1.5rem; }
.wt-upgrade .btn { font-size: 1.5rem; font-weight: bold; padding: 8px 22px; }

/* table (example + tool) */
.wt-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.wt-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid #d5e4f0; border-radius: 12px; font-size: 1.4rem; }
.wt-table caption { caption-side: top; text-align: left; color: #666; font-style: italic; padding: 0 0 8px; font-size: 1.35rem; }
.wt-table th { background: #4a9ad4; color: #fff; font-weight: 600; padding: 8px; text-align: left; white-space: nowrap; }
.wt-table th:first-child { border-top-left-radius: 11px; }
.wt-table th:last-child { border-top-right-radius: 11px; }
.wt-table td { padding: 6px 8px; border-top: 1px solid #e6eef5; vertical-align: top; }
.wt-table tbody tr:nth-child(even) td { background: #f9fbfd; }
.wt-example td { padding: 9px 8px; }
.wt-flag { display: none; margin-top: 3px; background: #fdecea; color: #b3261e; border: 1px solid #f3b8b2; border-radius: 10px;
    padding: 1px 8px; font-size: 1.2rem; font-weight: 700; white-space: nowrap; }
.wt-flagged .wt-flag, .wt-example .wt-flag { display: inline-block; }
.wt-flag-demo { background: #fdecea; color: #b3261e; border-radius: 10px; padding: 0 6px; font-weight: 700; }
.wt-saved-demo { color: #1e7e34; font-weight: 700; }

/* tool */
.wt-sort { background: none; border: 0; color: #fff; font-weight: 600; padding: 0; cursor: pointer; white-space: nowrap; }
.wt-sort::after { content: " \2195"; opacity: .55; font-size: 1.1rem; }
th[aria-sort="ascending"] .wt-sort::after { content: " \25B2"; opacity: 1; }
th[aria-sort="descending"] .wt-sort::after { content: " \25BC"; opacity: 1; }
.wt-sort:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.wt-app input[type=text], .wt-app input[type=date], .wt-app select, .wt-app textarea {
    width: 100%; min-width: 0; border: 1px solid #d5e4f0; border-radius: 6px; padding: 5px 6px; font-size: 1.4rem; background: #fff; box-sizing: border-box; }
.wt-app input:focus, .wt-app select:focus, .wt-app textarea:focus { border-color: #2773ae; outline: 2px solid rgba(39,115,174,.25); }
.wt-app textarea { resize: vertical; min-height: 32px; }
.wt-c-sponsor { min-width: 170px; }
.wt-c-prize { min-width: 170px; }
.wt-c-received { min-width: 140px; }
.wt-c-value { width: 100px; }
.wt-c-notes { min-width: 150px; }
.wt-c-1099 { text-align: center; }
.wt-c-1099 input { width: 18px; height: 18px; }
.wt-c-actions { white-space: nowrap; }
.wt-row-err td { background: #fff4f2 !important; }

.wt-howto { background: #eef6fc; border: 1px solid #d5e4f0; border-radius: 12px; padding: 10px 16px; margin: 0 0 14px; font-size: 1.45rem; }
.wt-howto summary { cursor: pointer; font-weight: 700; color: #2773ae; }
.wt-howto ol { margin: 10px 0 4px; padding-left: 22px; line-height: 1.6; }

.wt-totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 14px; }
.wt-total { background: #fff; border: 1px solid #d5e4f0; border-radius: 12px; padding: 12px 14px; text-align: center; box-shadow: 0 1px 3px rgba(20,60,90,.06); }
.wt-total-num { display: block; font-size: 2.4rem; font-weight: 700; color: #2773ae; line-height: 1.2; }
.wt-total-label { display: block; color: #555; font-size: 1.3rem; }
.wt-total-wide { grid-column: 1 / -1; text-align: left; }
.wt-cat-chips { margin-top: 6px; }
.wt-chip { display: inline-block; margin: 0 6px 6px 0; padding: 3px 10px; background: #f1f5f9; border-radius: 12px; font-size: 1.3rem; }
.wt-chip-empty { color: #888; }

.wt-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 10px; }
.wt-year { font-weight: 600; margin: 0; }
.wt-year select { width: auto !important; display: inline-block; margin-left: 4px; }
.wt-help-link { color: #2773ae; font-weight: 600; }
.wt-status { color: #1e7e34; font-size: 1.35rem; }
.wt-status-err { color: #b3261e; font-weight: 700; }

.wt-ac { position: relative; }
.wt-ac-list { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; min-width: 260px; max-height: 260px; overflow-y: auto; margin: 2px 0 0; padding: 4px 0;
    list-style: none; background: #fff; border: 1px solid #2773ae; border-radius: 8px; box-shadow: 0 4px 14px rgba(20,60,90,.18); }
.wt-ac-list li { padding: 6px 10px; cursor: pointer; line-height: 1.3; }
.wt-ac-list li small { color: #666; }
.wt-ac-list li:hover, .wt-ac-list li:focus { background: #eef6fc; outline: none; }
.wt-linked { margin-top: 3px; font-size: 1.2rem; color: #2773ae; }
.wt-unlink { border: 0; background: none; color: #999; font-size: 1.5rem; line-height: 1; padding: 0 4px; cursor: pointer; }

.wt-empty { text-align: center; border: 2px dashed #d5e4f0; border-radius: 12px; padding: 26px 16px; margin: 10px 0; font-size: 1.5rem; color: #444; }
.wt-loading { color: #666; font-size: 1.4rem; }

.wt-help { margin-top: 24px; }
.wt-help details { background: #fff; border: 1px solid #d5e4f0; border-radius: 8px; padding: 10px 14px; margin-bottom: 8px; font-size: 1.45rem; line-height: 1.6; }
.wt-help summary { cursor: pointer; font-weight: 700; color: #2773ae; }
.wt-help details p { margin: 8px 0 0; }

/* modal */
.wt-modal { position: fixed; inset: 0; z-index: 2000; background: rgba(10, 30, 50, .55); display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 30px 10px; }
.wt-modal[hidden] { display: none; }
.wt-modal-open { overflow: hidden; }
.wt-modal-box { position: relative; background: #fff; border-radius: 12px; width: 100%; max-width: 620px; padding: 20px 22px; box-shadow: 0 10px 40px rgba(0,0,0,.3); font-size: 1.45rem; }
.wt-modal-close { position: absolute; top: 8px; right: 12px; border: 0; background: none; font-size: 2.6rem; line-height: 1; color: #666; cursor: pointer; }
.wt-modal-box label { display: block; font-weight: 700; margin: 12px 0 4px; }
.wt-modal-box input[type=text], .wt-modal-box textarea { width: 100%; border: 1px solid #d5e4f0; border-radius: 6px; padding: 7px 8px; font-size: 1.5rem; box-sizing: border-box; }
.wt-hint { color: #666; font-size: 1.3rem; margin: 4px 0 0; }
.wt-warn { color: #8a5a00; }
.wt-req { color: #b3261e; font-weight: 400; }
.wt-opt { color: #666; font-weight: 400; }
.wt-ok { color: #1e7e34; font-weight: 700; }
.wt-privacy { border: 1px solid #d5e4f0; border-radius: 8px; padding: 6px 12px 10px; margin: 14px 0 0; }
.wt-privacy legend { font-size: 1.4rem; font-weight: 700; border: 0; width: auto; margin: 0; padding: 0 4px; }
.wt-privacy label { font-weight: 400; margin: 6px 0 0; }
.wt-preview { border: 1px solid #d5e4f0; border-radius: 8px; margin: 14px 0 0; overflow: hidden; }
.wt-preview-head { background: #4a9ad4; color: #fff; font-weight: 600; padding: 6px 12px; }
.wt-preview-body { padding: 10px 12px; max-height: 260px; overflow-y: auto; }
.wt-pv-title { font-weight: 700; font-size: 1.6rem; }
.wt-pv-by { color: #666; font-size: 1.25rem; margin-bottom: 8px; }
.wt-pv-story { white-space: pre-wrap; margin-bottom: 8px; }
.wt-pv-photo { color: #2773ae; margin-bottom: 8px; }
.wt-preview-body ul { margin: 4px 0 8px; padding-left: 20px; }
.wt-confirm { font-weight: 400 !important; background: #fff7e6; border: 1px solid #f0a020; border-radius: 8px; padding: 8px 10px; }
.wt-error { color: #b3261e; font-weight: 700; margin: 10px 0 0; }
.wt-modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }

/* phones and small tablets: rows become cards */
@media (max-width: 767px) {
    .wt-page h1 { font-size: 2.3rem; }
    .wt-totals { grid-template-columns: 1fr 1fr; }
    .wt-total:nth-child(3) { grid-column: 1 / -1; }
    .wt-table, .wt-table tbody, .wt-table tr, .wt-table td { display: block; width: 100%; }
    .wt-table { border: 0; background: none; }
    .wt-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .wt-table tr { background: #fff; border: 1px solid #d5e4f0; border-radius: 12px; margin: 0 0 12px; padding: 8px 12px; box-shadow: 0 1px 3px rgba(20,60,90,.06); box-sizing: border-box; }
    .wt-table tbody tr:nth-child(even) td { background: none; }
    .wt-table td { border: 0; padding: 4px 0; min-width: 0 !important; width: 100% !important; text-align: left !important; }
    .wt-table td[data-label]:not([data-label=""])::before { content: attr(data-label); display: block; font-size: 1.2rem; font-weight: 700; color: #2773ae; margin-bottom: 2px; }
    .wt-flagged { border-color: #f3b8b2 !important; }
    .wt-c-actions { padding-top: 8px !important; }
    .wt-c-actions .btn { font-size: 1.4rem; padding: 6px 14px; }
    .wt-modal { padding: 0; }
    .wt-modal-box { border-radius: 0; min-height: 100%; }
}
