/* ==========================================================================
   IceMarket.us — public site styles
   Ice-theme marketplace. Mobile-first. No external assets.
   ========================================================================== */

:root {
    --navy: #0d2b45;
    --ice: #bfe9ff;
    --accent: #1b98e0;
    --accent-dark: #14669b;
    --frost: #f2f9fc;
    --card: #ffffff;
    --ok: #2e9e5b;
    --danger: #c8385a;
    --muted: #5b7285;
    --line: #d5e6f2;
    --radius: 10px;
    --shadow: 0 2px 10px rgba(13, 43, 69, 0.07);
    --shadow-lift: 0 8px 24px rgba(13, 43, 69, 0.14);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--frost);
    color: #223c54;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img { max-width: 100%; }

h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

a { color: var(--accent-dark); }
a:hover { color: var(--accent); }

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

.container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 16px;
}

.muted { color: var(--muted); }
.text-center { text-align: center; }

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

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--navy);
    color: #fff;
    padding: 10px 16px;
    z-index: 100;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   Buttons — min 44px touch targets, high contrast
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 8px 20px;
    border: 2px solid transparent;
    border-radius: 8px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }

.btn-outline { background: transparent; border-color: var(--accent); color: var(--accent-dark); }
.btn-outline:hover { background: var(--accent); color: #fff; }

.btn-ghost { background: transparent; color: var(--accent-dark); border-color: var(--line); }
.btn-ghost:hover { background: #e6f2fa; color: var(--accent-dark); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #a52c49; color: #fff; }

.btn-sm { min-height: 44px; padding: 6px 14px; font-size: 0.92rem; }
.btn-block { width: 100%; }

/* --------------------------------------------------------------------------
   Header / nav — sticky navy bar
   -------------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--navy);
    box-shadow: 0 2px 8px rgba(13, 43, 69, 0.35);
}

.header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 18px;
    padding-top: 10px;
    padding-bottom: 8px;
}

.brand {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.2px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
}
.brand:hover { color: var(--ice); }
.brand-tld { color: var(--ice); font-weight: 600; }

.auth-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}
.auth-nav .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.auth-nav .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.main-nav {
    order: 3;
    width: 100%;
    display: flex;
    gap: 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    scrollbar-width: none;
}
.main-nav::-webkit-scrollbar { display: none; }

.main-nav a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 600;
    padding: 9px 13px;
    border-radius: 8px;
    white-space: nowrap;
}
.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.main-nav a.active { color: #fff; box-shadow: inset 0 -3px 0 var(--ice); border-radius: 8px 8px 0 0; }

@media (min-width: 900px) {
    .main-nav { order: 0; width: auto; flex: 1; padding-bottom: 0; overflow: visible; }
}

/* User dropdown — CSS-only via <details> */

.user-menu { position: relative; }

.user-menu summary {
    list-style: none;
    cursor: pointer;
    color: #fff;
    font-weight: 600;
    padding: 9px 12px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    white-space: nowrap;
    user-select: none;
}
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary:hover,
.user-menu[open] summary { background: rgba(255, 255, 255, 0.12); }

.user-menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lift);
    min-width: 190px;
    padding: 6px;
    z-index: 60;
}
.user-menu-panel a {
    display: block;
    padding: 10px 14px;
    border-radius: 7px;
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
}
.user-menu-panel a:hover { background: var(--frost); color: var(--accent-dark); }
.user-menu-sep { border: 0; border-top: 1px solid #e3eef6; margin: 6px 0; }

/* --------------------------------------------------------------------------
   Site notice (admin-set banner)
   -------------------------------------------------------------------------- */

.site-notice {
    background: var(--ice);
    color: var(--navy);
    border-bottom: 1px solid #9bd4f2;
    font-weight: 600;
    text-align: center;
}
.site-notice .container { padding-top: 10px; padding-bottom: 10px; }

/* --------------------------------------------------------------------------
   Ad ribbon — 728x90 leaderboard rotator
   -------------------------------------------------------------------------- */

.ribbon-band {
    background: linear-gradient(180deg, #e9f5fc, #ddeef9);
    border-bottom: 1px solid var(--line);
    padding: 8px 12px 12px;
}

.ribbon-label {
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}

.ribbon-rotator {
    position: relative;
    width: 728px;
    max-width: 100%;
    aspect-ratio: 728 / 90;
    margin: 0 auto;
    border-radius: 6px;
    overflow: hidden;
    background: #cfe4f2;
}

.ribbon-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.9s ease;
    pointer-events: none;
}
.ribbon-slide.active { opacity: 1; pointer-events: auto; }

.ribbon-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --------------------------------------------------------------------------
   Flash messages
   -------------------------------------------------------------------------- */

.flash {
    border-radius: var(--radius);
    padding: 12px 16px;
    margin: 16px 0;
    font-weight: 600;
    border: 1px solid;
    transition: opacity 0.5s ease;
}
.flash-success { background: #e2f5ea; border-color: #a9dfc0; color: #1d6b3d; }
.flash-error { background: #fbe4ea; border-color: #efb3c3; color: #8f2440; }
.flash-hide { opacity: 0; }

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */

.hero {
    background:
        radial-gradient(ellipse at 20% 10%, rgba(191, 233, 255, 0.16), transparent 55%),
        radial-gradient(ellipse at 85% 90%, rgba(191, 233, 255, 0.12), transparent 50%),
        linear-gradient(135deg, var(--navy), var(--accent-dark) 58%, var(--accent));
    color: #fff;
    padding: 44px 0 52px;
}

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ice);
    margin-bottom: 8px;
}

.hero h1 {
    color: #fff;
    font-size: 2.1rem;
    margin-bottom: 10px;
}

.hero-sub {
    max-width: 620px;
    font-size: 1.06rem;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 22px;
}

.hero-search {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 620px;
}
.hero-search input[type="search"] {
    flex: 1 1 260px;
    min-height: 48px;
    padding: 10px 16px;
    border: 0;
    border-radius: 8px;
    font: inherit;
    color: var(--navy);
}
.hero-search .btn { min-height: 48px; flex: 0 0 auto; }

.hero-meta { margin: 16px 0 0; color: rgba(255, 255, 255, 0.85); font-weight: 600; }
.hero-meta a { color: var(--ice); }

@media (min-width: 700px) {
    .hero { padding: 64px 0 72px; }
    .hero h1 { font-size: 2.7rem; }
}

/* --------------------------------------------------------------------------
   Sections & cards
   -------------------------------------------------------------------------- */

.section { padding: 34px 0; }
.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 18px;
}
.section-head h2 { margin: 0; }
.section-head .more-link { font-weight: 700; text-decoration: none; }

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}

/* Slot grid + cards */

.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 16px;
}

.slot-card {
    display: flex;
    align-items: stretch;
    gap: 14px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.slot-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lift);
    border-color: var(--accent);
    color: inherit;
}

.date-badge {
    flex: 0 0 auto;
    width: 72px;
    background: var(--navy);
    color: #fff;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    text-align: center;
    line-height: 1.15;
}
.date-badge .db-month {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--ice);
}
.date-badge .db-day { font-size: 1.7rem; font-weight: 800; }
.date-badge .db-dow { font-size: 0.72rem; color: rgba(255, 255, 255, 0.8); font-weight: 600; }

.date-badge-lg { width: 88px; padding: 12px 6px; }
.date-badge-lg .db-day { font-size: 2.1rem; }

.slot-card-body { flex: 1 1 auto; min-width: 0; }
.slot-card-time { font-weight: 700; color: var(--accent-dark); font-size: 0.95rem; }
.slot-card-rink {
    font-weight: 700;
    color: var(--navy);
    margin: 2px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.slot-card-city { color: var(--muted); font-size: 0.92rem; }

.slot-card-side {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 6px;
}
.slot-card-price { font-weight: 800; color: var(--navy); font-size: 1.05rem; white-space: nowrap; }
.slot-card-price.offer { color: var(--accent-dark); font-size: 0.9rem; }

/* Status chips */

.chip {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
.chip-open { background: #e2f5ea; color: #1d6b3d; }
.chip-pending { background: #fdf1dc; color: #91650f; }
.chip-sold { background: var(--navy); color: #fff; }
.chip-expired, .chip-removed { background: #e8edf2; color: var(--muted); }

/* Empty state */

.empty-state {
    text-align: center;
    padding: 48px 24px;
    background: var(--card);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
}
.empty-state .empty-ico { font-size: 2.4rem; display: block; margin-bottom: 8px; }
.empty-state p { max-width: 460px; margin: 0 auto 16px; color: var(--muted); }

/* --------------------------------------------------------------------------
   Filter bar (slots browse)
   -------------------------------------------------------------------------- */

.filter-bar { margin-bottom: 22px; }

.filter-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
@media (min-width: 640px) { .filter-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
    .filter-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr auto; align-items: end; }
}
.filter-actions { display: flex; gap: 8px; align-items: end; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.field { margin-bottom: 14px; }
.filter-grid .field { margin-bottom: 0; }

.field label {
    display: block;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 5px;
    font-size: 0.94rem;
}
.field .hint { font-weight: 400; color: var(--muted); font-size: 0.85rem; }

input[type="text"],
input[type="search"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="url"],
input[type="tel"],
select,
textarea {
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid #c2daea;
    border-radius: 8px;
    font: inherit;
    color: #223c54;
    background: #fff;
}
textarea { resize: vertical; min-height: 88px; }

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(27, 152, 224, 0.18);
}

.field-error {
    color: var(--danger);
    font-size: 0.86rem;
    font-weight: 600;
    margin-top: 4px;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--danger); }

/* --------------------------------------------------------------------------
   Slot detail
   -------------------------------------------------------------------------- */

.back-link {
    display: inline-block;
    font-weight: 700;
    text-decoration: none;
    margin: 18px 0 12px;
}

.slot-detail { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 34px; }
@media (min-width: 900px) {
    .slot-detail { grid-template-columns: 1fr 360px; align-items: start; }
}

.slot-head {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}
.slot-head h1 { font-size: 1.45rem; margin: 0 0 2px; }
.slot-head .slot-loc { color: var(--muted); font-weight: 600; margin: 0; }

.slot-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin: 0 0 18px;
    padding: 16px;
    background: var(--frost);
    border-radius: 8px;
}
.slot-facts dt {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    margin-bottom: 2px;
}
.slot-facts dd { margin: 0; font-weight: 700; color: var(--navy); }

.slot-desc { white-space: normal; }
.slot-meta { font-size: 0.88rem; margin-bottom: 0; }

.status-banner {
    border-radius: 8px;
    padding: 12px 16px;
    font-weight: 700;
    margin-bottom: 16px;
}
.status-banner.pending { background: #fdf1dc; color: #91650f; }
.status-banner.sold { background: var(--navy); color: #fff; }
.status-banner.expired { background: #e8edf2; color: var(--muted); }

.action-panel h2 { font-size: 1.15rem; }
.action-panel .trust-note {
    font-size: 0.86rem;
    color: var(--muted);
    margin: 14px 0 0;
}
.action-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }

.open-bid-note {
    background: var(--frost);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.92rem;
    margin-bottom: 14px;
}

/* --------------------------------------------------------------------------
   Pagination (CI4 default pager markup)
   -------------------------------------------------------------------------- */

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 28px 0;
}
.pagination li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 13px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--accent-dark);
    font-weight: 700;
    text-decoration: none;
}
.pagination li a:hover { border-color: var(--accent); color: var(--accent); }
.pagination li.active a {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* --------------------------------------------------------------------------
   How-it-works / steps
   -------------------------------------------------------------------------- */

.step-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}
.step {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--ice);
    color: var(--navy);
    font-weight: 800;
    margin-bottom: 10px;
}
.step h3 { margin-bottom: 6px; }
.step p { margin-bottom: 0; color: #3a5570; font-size: 0.96rem; }

.prose { max-width: 760px; }
.prose h2 { margin-top: 34px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }

/* CTA band */

.cta-band {
    background: linear-gradient(135deg, var(--navy), var(--accent-dark));
    color: #fff;
    border-radius: var(--radius);
    padding: 30px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.cta-band h2 { color: #fff; margin: 0 0 4px; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, 0.88); }
.cta-band .cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
    margin-top: auto;
    background: var(--navy);
    color: rgba(255, 255, 255, 0.78);
    padding: 34px 0 24px;
    font-size: 0.94rem;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}
.footer-cols h3 {
    color: var(--ice);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: 7px; }
.footer-cols a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.footer-cols a:hover { color: #fff; text-decoration: underline; }

.traffic-badge {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 14px;
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 10px;
    font-size: 0.86rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
}
.traffic-badge .tb-sep { color: rgba(255, 255, 255, 0.25); }
.traffic-badge a {
    color: var(--ice);
    font-weight: 600;
    text-decoration: none;
}
.traffic-badge a:hover { text-decoration: underline; }

.footer-bottom {
    text-align: center;
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.55);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.75); }

/* ------------------------------------------------------------------ */
/* Account, My Slots, My Bids, forms — module C class vocabulary.      */
/* These views render outside .container, so page-level blocks center  */
/* themselves.                                                         */
/* ------------------------------------------------------------------ */

.page-head,
.my-slot-list,
.my-bid-list,
.request-list {
    width: min(1080px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.page-head { margin: 26px auto 18px; }
.page-head h1 { margin: 0 0 4px; }
.page-head-split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

/* Auth pages: narrow centered card */
.auth-wrap {
    width: min(480px, calc(100% - 32px));
    margin: 40px auto 56px;
}
.auth-card { padding: 26px 24px; }
.auth-card h1 { margin: 0 0 6px; font-size: 1.5rem; }
.auth-links {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 0.92rem;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
}

/* Cards that sit at page level */
.form-card,
.notice-card {
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto 22px;
}
.form-card { max-width: 760px; padding: 24px; }
.notice-card {
    border-left: 4px solid var(--accent);
    background: #eef7fd;
}

/* Forms */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0 18px;
}
.form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}
.form-error {
    background: #fbe9ee;
    color: var(--danger);
    border: 1px solid #f0c4d0;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 14px;
    font-size: 0.95rem;
}
.field-hint {
    display: block;
    margin-top: 4px;
    font-size: 0.84rem;
    color: var(--muted);
}
.field-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0 14px;
}
.field-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

/* Status chips (slot + request lifecycle) */
.status-chip {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}
.status-active,
.status-open { background: #e2f5ea; color: #1d6b3d; }
.status-accepted { background: var(--ok); color: #fff; }
.status-pending { background: #fdf1dc; color: #91650f; }
.status-sold { background: var(--navy); color: #fff; }
.status-declined { background: #fbe9ee; color: var(--danger); }
.status-withdrawn,
.status-expired,
.status-removed { background: #e8edf2; color: var(--muted); }

/* My Slots / My Bids lists */
.my-slot-list,
.my-bid-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}
.my-slot-card,
.my-bid-card { padding: 18px 20px; }
.my-slot-head,
.my-bid-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.my-slot-head h2,
.my-bid-head h2 { margin: 0; font-size: 1.12rem; }
.my-slot-meta,
.my-bid-meta {
    color: var(--muted);
    font-size: 0.92rem;
    margin: 4px 0 10px;
    display: flex;
    gap: 6px 14px;
    flex-wrap: wrap;
}
.my-slot-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.price-tag {
    font-weight: 800;
    color: var(--navy);
    font-size: 1.05rem;
    white-space: nowrap;
}

/* Offer / request rows inside a slot card */
.request-list { width: 100%; margin-top: 12px; }
.request-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}
.request-info { flex: 1 1 260px; min-width: 0; }
.request-amount {
    font-weight: 800;
    color: var(--navy);
    white-space: nowrap;
}
.request-message {
    color: var(--muted);
    font-size: 0.92rem;
    margin: 4px 0 0;
    overflow-wrap: anywhere;
}

/* Inline action buttons (accept / decline / withdraw) */
.inline-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.inline-actions form { display: inline; margin: 0; }

/* Accepted-offer contact exchange callout */
.accepted-box {
    background: #e2f5ea;
    border: 1px solid #bfe5cd;
    border-left: 4px solid var(--ok);
    border-radius: 8px;
    padding: 14px 16px;
    margin-top: 12px;
}
.accepted-box h3 { margin: 0 0 6px; font-size: 1rem; }

/* --------------------------------------------------------------------------
   v1.2 — Weather & Traffic page (/weather-traffic)
   Weather card + 7-day strip, ODOT camera grid + large-view modal,
   drive-time board, credits line. Same ice-theme tokens as everything above.
   -------------------------------------------------------------------------- */

.wt-intro { max-width: 700px; color: #3a5570; margin-bottom: 26px; }
.wt-section { margin: 0 0 40px; }

.wt-rink-pick { flex: 1 1 260px; max-width: 380px; }
.wt-rink-pick select { width: 100%; }
@media (max-width: 639px) {
    .wt-rink-pick { max-width: none; }
}

/* Shared loading dimmer while JSON swaps happen */
.is-busy { opacity: 0.55; transition: opacity 0.15s ease; pointer-events: none; }

/* Current-conditions card — the hero of the page */

.wx-card {
    background: linear-gradient(135deg, var(--navy), var(--accent-dark) 62%, var(--accent));
    color: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px 24px;
    margin-bottom: 14px;
}

.wx-now {
    display: flex;
    align-items: center;
    gap: 10px 20px;
    flex-wrap: wrap;
}

.wx-icon { font-size: 3.1rem; line-height: 1; }

.wx-temp { font-size: 2.6rem; font-weight: 800; line-height: 1.05; }
.wx-label { color: var(--ice); font-weight: 700; margin-top: 4px; }

.wx-facts {
    display: flex;
    gap: 10px 26px;
    flex-wrap: wrap;
    margin: 0 0 0 auto;
}
.wx-facts dt {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 2px;
}
.wx-facts dd { margin: 0; font-weight: 800; font-size: 1.08rem; }

@media (max-width: 639px) {
    .wx-facts { margin-left: 0; width: 100%; }
}

.wx-updated {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.85rem;
    font-weight: 600;
}

/* 7-day strip — equal cards, scrolls sideways on narrow screens */

.wx-strip {
    list-style: none;
    display: flex;
    gap: 10px;
    padding: 0 0 6px;
    margin: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.wx-day {
    flex: 1 0 96px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 12px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.wx-day.is-today { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }

.wx-day-dow {
    font-weight: 800;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--navy);
}
.wx-day-icon { font-size: 1.5rem; line-height: 1.2; }
.wx-day-temps { font-size: 0.95rem; }
.wx-hi { font-weight: 800; color: var(--navy); }
.wx-lo { color: var(--muted); font-weight: 600; }
.wx-day-precip {
    font-size: 0.78rem;
    color: var(--accent-dark);
    font-weight: 700;
    min-height: 1.2em;
}

/* Camera grid */

.cam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}
.cam-grid .empty-state { grid-column: 1 / -1; }

.cam-tile {
    margin: 0;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.cam-tile:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lift);
    border-color: var(--accent);
}
.cam-tile.cam-dead { display: none; }

.cam-btn {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: var(--navy);
    cursor: zoom-in;
    line-height: 0;
}

.cam-img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.cam-cap { padding: 10px 12px; }
.cam-loc {
    display: block;
    font-weight: 700;
    color: var(--navy);
    font-size: 0.92rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cam-meta { color: var(--muted); font-size: 0.82rem; font-weight: 600; }

.cam-note { font-size: 0.86rem; margin: 12px 0 0; }

/* Camera large-view modal */

.cam-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.cam-modal[hidden] { display: none; }

.cam-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(13, 43, 69, 0.74);
    cursor: pointer;
}

.cam-modal-body {
    position: relative;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lift);
    max-width: min(920px, 100%);
    max-height: 92vh;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cam-modal-body img {
    max-width: 100%;
    max-height: calc(92vh - 96px);
    object-fit: contain;
    border-radius: 6px;
    background: var(--navy);
}

.cam-modal-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-lift);
}
.cam-modal-close:hover { background: var(--accent-dark); }

.cam-modal-cap {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    gap: 8px 16px;
    flex-wrap: wrap;
}
.cam-modal-cap a { font-weight: 700; text-decoration: none; white-space: nowrap; }

/* Travel board */

.board-controls { margin-bottom: 16px; }

.board-loc-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.board-or {
    color: var(--muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 1.5px;
}

.board-geoform {
    display: flex;
    gap: 8px;
    flex: 1 1 280px;
    max-width: 440px;
}
.board-geoform input { flex: 1 1 auto; min-width: 0; }

.board-privacy { font-size: 0.82rem; margin: 10px 0 0; }
.board-status { margin: 10px 0 0; font-weight: 600; }
.board-status.is-error { color: var(--danger); }

.board-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.board-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}
.board-table th {
    text-align: left;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--muted);
    padding: 12px 14px;
    border-bottom: 2px solid var(--line);
    white-space: nowrap;
}
.board-table td {
    padding: 11px 14px;
    border-bottom: 1px solid #e8f1f8;
    vertical-align: top;
}
.board-table tbody tr:last-child td { border-bottom: 0; }
.board-table tbody tr:hover { background: var(--frost); }
.board-table .num { text-align: right; white-space: nowrap; }

.board-rink { font-weight: 700; color: var(--navy); }
.board-time strong { color: var(--navy); }
.board-base { color: var(--muted); font-weight: 600; font-size: 0.85rem; margin-left: 4px; }
.board-factors { color: #3a5570; font-size: 0.9rem; }

.badge-est {
    display: inline-block;
    background: #fdf1dc;
    color: #91650f;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-radius: 999px;
    padding: 2px 8px;
    margin-left: 4px;
    vertical-align: middle;
}

.board-note { font-size: 0.86rem; margin: 12px 0 0; }

/* Credits (required attribution) */

.wt-credits {
    text-align: center;
    color: var(--muted);
    font-size: 0.82rem;
    margin: 6px 0 44px;
}
.wt-credits a { color: var(--muted); text-decoration: underline; }
.wt-credits a:hover { color: var(--accent-dark); }

/* ------------------------------------------------------------------ */
/* Ribbon — AdEngine network mode (v1.3). tag.js appends an <a><img>  */
/* into the <ins> and hides the slot on no-fill; :has() then hides    */
/* the whole band so no empty strip is left behind.                   */
/* ------------------------------------------------------------------ */

.ribbon-ae ins.adengine {
    display: block;
    text-decoration: none;
}
.ribbon-ae .ribbon-label { display: block; }
.ribbon-ae ins.adengine > a {
    display: block;
    width: 728px;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 6px;
    overflow: hidden;
}
.ribbon-ae .ribbon-noscript {
    display: block;
    width: 728px;
    max-width: 100%;
    margin: 0 auto;
}
.ribbon-ae .ribbon-noscript img { width: 100%; height: auto; display: block; border-radius: 6px; }
.ribbon-ae:has(ins.adengine[style*="display: none"]) { display: none; }
