/* -------------------------------------------------------------------------
   Koru Fleet theme — navy / gold / cool-gray.

   Bootstrap 5 stays as the grid + utility layer; we only override its
   theme tokens (colors, radius, fonts) and restyle a handful of
   components (navbar, cards, buttons, badges, alerts, forms).
   ------------------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* Smooth scroll for in-page anchor links (Request report → #reports-section). */
html { scroll-behavior: smooth; }

:root {
    /* --- brand tokens ---------------------------------------------------- */
    --ft-navy:       #0F1B2E;
    --ft-navy-2:     #1A2744;
    --ft-navy-3:     #2A3859;
    --ft-gold:       #C9A84C;
    --ft-gold-soft:  #E4C876;
    --ft-cream:      #F8F9FB;
    --ft-cream-2:    #EEF0F4;
    --ft-panel:      #FFFFFF;
    --ft-text:       #1A1A1A;
    --ft-muted:      #6B7280;
    --ft-border:     rgba(15, 27, 46, 0.08);
    --ft-border-strong: rgba(15, 27, 46, 0.18);
    --ft-shadow:     0 4px 20px rgba(15, 27, 46, 0.06);
    --ft-shadow-lg:  0 12px 40px rgba(15, 27, 46, 0.12);
    --ft-green:      #1F8A4C;
    --ft-green-bg:   rgba(31, 138, 76, 0.14);
    --ft-red:        #BC4B51;
    --ft-red-bg:     rgba(188, 75, 81, 0.14);

    /* --- Bootstrap 5 overrides (variables Bootstrap consumes at runtime) - */
    --bs-primary:            var(--ft-navy);
    --bs-primary-rgb:        15, 27, 46;
    --bs-primary-bg-subtle:  var(--ft-cream-2);
    --bs-primary-text-emphasis: var(--ft-navy);
    --bs-body-bg:            var(--ft-cream);
    --bs-body-color:         var(--ft-text);
    --bs-body-font-family:   'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --bs-body-font-size:     0.95rem;
    --bs-body-line-height:   1.55;
    --bs-border-radius:      12px;
    --bs-border-radius-sm:   8px;
    --bs-border-radius-lg:   16px;
    --bs-link-color:         var(--ft-navy);
    --bs-link-hover-color:   var(--ft-gold);
}

/* -------------------------------------------------------------------------
   Typography
   ------------------------------------------------------------------------- */

body {
    background: var(--ft-cream);
    color: var(--ft-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    color: var(--ft-navy);
    letter-spacing: -0.01em;
}

/* Eyebrow tag — small uppercase label above a section title */
.eyebrow {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ft-gold);
    padding-bottom: 0.15rem;
    border-bottom: 2px solid var(--ft-gold);
    margin-bottom: 0.75rem;
}

.eyebrow-light { color: var(--ft-gold-soft); }

/* Muted / secondary text */
.text-muted, small { color: var(--ft-muted) !important; }

/* -------------------------------------------------------------------------
   Navbar
   ------------------------------------------------------------------------- */

.navbar-fleettrace {
    background: linear-gradient(180deg, var(--ft-navy) 0%, var(--ft-navy-2) 100%);
    box-shadow: 0 2px 12px rgba(15, 27, 46, 0.25);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    position: relative;
}

/* Sutil línea gold en el borde inferior — evoca el detalle del hero del informe */
.navbar-fleettrace::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(201, 168, 76, 0.55) 50%,
        transparent 100%);
    pointer-events: none;
}

.navbar-fleettrace .navbar-brand {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.35rem;
    color: #fff !important;
    letter-spacing: -0.01em;
    padding-right: 0.75rem;
}

.navbar-fleettrace .navbar-brand::first-letter {
    color: var(--ft-gold-soft);
}

.navbar-fleettrace .nav-link {
    color: rgba(255, 255, 255, 0.82) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.35rem 0.85rem !important;
    border-radius: 999px;
    transition: background 0.15s ease, color 0.15s ease;
}

.navbar-fleettrace .nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08);
}

.navbar-fleettrace .navbar-user-email {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-right: 0.75rem;
}

.navbar-fleettrace .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    font-weight: 500;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
}

.navbar-fleettrace .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.navbar-fleettrace .btn-signup {
    background: var(--ft-gold);
    color: var(--ft-navy);
    border: 0;
    font-weight: 600;
    padding: 0.35rem 1.1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(201, 168, 76, 0.35);
}

.navbar-fleettrace .btn-signup:hover {
    background: var(--ft-gold-soft);
    color: var(--ft-navy);
    box-shadow: 0 4px 14px rgba(201, 168, 76, 0.5);
}

/* -------------------------------------------------------------------------
   Hero (landing / catalog top)
   ------------------------------------------------------------------------- */

.ft-hero {
    background: linear-gradient(135deg, var(--ft-navy) 0%, var(--ft-navy-2) 100%);
    color: #fff;
    padding: 3.5rem 1.5rem 3rem;
    border-radius: 0 0 24px 24px;
    margin: 0 -12px 2.5rem;
    position: relative;
    overflow: hidden;
}

.ft-hero::after {
    content: "";
    position: absolute;
    top: 0; right: 0;
    width: 320px; height: 320px;
    background: radial-gradient(circle at 70% 30%, rgba(201, 168, 76, 0.28), transparent 65%);
    pointer-events: none;
}

.ft-hero-inner {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.ft-hero h1 {
    color: #fff;
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    line-height: 1.1;
    margin: 0 0 0.75rem;
}

.ft-hero .lead {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
    max-width: 620px;
    margin: 0 auto 0;
}

/* -------------------------------------------------------------------------
   Cards (catalog + generic panels)
   ------------------------------------------------------------------------- */

.card {
    background: var(--ft-panel);
    border: 1px solid var(--ft-border);
    border-radius: 14px !important;
    box-shadow: var(--ft-shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ft-shadow-lg);
}

.card .card-title {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    color: var(--ft-navy);
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

.card .card-footer {
    background: transparent !important;
    border-top: 1px solid var(--ft-border);
}

.card.border-primary,
.ft-card--yours {
    border: 1px solid var(--ft-border) !important;
    position: relative;
    box-shadow: 0 6px 22px rgba(201, 168, 76, 0.12);
}

/* Whole-card click target: <a> wraps the card so it acts as one big link.
   Bootstrap 5 defaults <a> to text-decoration: underline; we need to beat
   that on the anchor AND on its descendants (h5, p, small) because
   text-decoration cascades to inline children by default. */
.ft-card-link,
.ft-card-link:hover,
.ft-card-link:focus,
.ft-card-link:visited,
.ft-card-link *,
.ft-card-link *:hover {
    text-decoration: none !important;
}

.ft-card-link {
    display: block;
    color: inherit;
    cursor: pointer;
}

.ft-card-link:hover,
.ft-card-link:focus {
    color: inherit;
    /* Card's own :hover transform still fires because .card is the anchor
       itself, but reinforce the shadow for clearer feedback. */
    box-shadow: var(--ft-shadow-lg);
}

.ft-card-link:focus-visible {
    outline: 3px solid var(--ft-gold);
    outline-offset: 3px;
}

.ft-card-link .card-title { color: var(--ft-navy); }

.ft-card--dim {
    opacity: 0.55;
    border-style: dashed;
}
.ft-card--dim:hover { opacity: 0.85; }

.card.border-primary::before,
.ft-card--yours::before {
    content: "YOUR FLEET";
    position: absolute;
    /* right clears the 1.9rem corner follow-star + gap */
    top: 0.85rem; right: 3rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--ft-navy);
    background: var(--ft-gold-soft);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    z-index: 2;
}

/* Followed manually (no boat of yours detected) — same prominence as
   YOUR FLEET but honest about why it's in your events. */
.ft-card--follow {
    border: 1px solid rgba(201, 168, 76, 0.55) !important;
    position: relative;
    box-shadow: 0 6px 22px rgba(201, 168, 76, 0.08);
}

.ft-card--follow::before {
    content: "FOLLOWING";
    position: absolute;
    top: 0.85rem; right: 3rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--ft-navy);
    background: #fff;
    border: 1px solid var(--ft-gold);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    z-index: 2;
}

.ft-card--class {
    border: 1px solid var(--ft-border) !important;
    position: relative;
    box-shadow: 0 6px 22px rgba(201, 168, 76, 0.06);
    border-style: dashed !important;
}

.ft-card--class::before {
    content: "YOUR CLASS";
    position: absolute;
    top: 0.85rem; right: 3rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--ft-navy);
    background: #e8e0cc;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    z-index: 2;
}

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */

.btn {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    border-radius: 999px;
    padding: 0.5rem 1.15rem;
}

.btn-sm { padding: 0.3rem 0.85rem; font-size: 0.82rem; }
.btn-lg { padding: 0.75rem 1.6rem; font-size: 1.05rem; }

.btn-primary {
    background: var(--ft-navy);
    border-color: var(--ft-navy);
    color: #fff;
}
.btn-primary:hover,
.btn-primary:focus {
    background: var(--ft-navy-2);
    border-color: var(--ft-navy-2);
    box-shadow: 0 4px 14px rgba(15, 27, 46, 0.25);
}

.btn-outline-primary {
    color: var(--ft-navy);
    border-color: var(--ft-border-strong);
    background: transparent;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: var(--ft-navy);
    border-color: var(--ft-navy);
    color: #fff;
}

.btn-gold {
    background: var(--ft-gold);
    color: var(--ft-navy);
    border: 0;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(201, 168, 76, 0.28);
}
.btn-gold:hover, .btn-gold:focus {
    background: var(--ft-gold-soft);
    color: var(--ft-navy);
    box-shadow: 0 5px 18px rgba(201, 168, 76, 0.4);
}

.btn-outline-secondary {
    color: var(--ft-muted);
    border-color: var(--ft-border-strong);
}
.btn-outline-secondary:hover {
    background: var(--ft-cream-2);
    color: var(--ft-navy);
    border-color: var(--ft-border-strong);
}

.btn-outline-danger {
    color: var(--ft-red);
    border-color: var(--ft-red);
}
.btn-outline-danger:hover {
    background: var(--ft-red);
    color: #fff;
}

/* -------------------------------------------------------------------------
   Badges
   ------------------------------------------------------------------------- */

.badge {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    padding: 0.35em 0.7em;
    border-radius: 999px;
}

.badge.bg-primary,
.tier-badge {
    background: var(--ft-navy) !important;
    color: #fff;
}

.tier-badge-price {
    color: var(--ft-navy);
    font-weight: 600;
    margin-left: 0.4rem;
    font-size: 0.85rem;
}

/* Report status badges */
.status-queued,
.badge-status-queued {
    background: rgba(15, 27, 46, 0.06);
    color: var(--ft-muted);
}

.status-in_progress,
.badge-status-in_progress {
    background: rgba(15, 27, 46, 0.12);
    color: var(--ft-navy);
}

.status-ready,
.badge-status-ready {
    background: var(--ft-green-bg);
    color: var(--ft-green);
}

.status-failed,
.badge-status-failed {
    background: var(--ft-red-bg);
    color: var(--ft-red);
}

/* -------------------------------------------------------------------------
   Alerts (Django messages)
   ------------------------------------------------------------------------- */

.alert {
    border-radius: 12px;
    border: 1px solid var(--ft-border);
    background: var(--ft-panel);
    color: var(--ft-text);
    box-shadow: var(--ft-shadow);
    font-size: 0.92rem;
}

.alert-success {
    background: var(--ft-green-bg);
    border-color: rgba(31, 138, 76, 0.25);
    color: var(--ft-green);
}

.alert-danger, .alert-error {
    background: var(--ft-red-bg);
    border-color: rgba(188, 75, 81, 0.25);
    color: var(--ft-red);
}

.alert-warning {
    background: rgba(201, 168, 76, 0.15);
    border-color: rgba(201, 168, 76, 0.35);
    color: #8a6e1f;
}

.alert-info,
.alert-light {
    background: var(--ft-panel);
    border-color: var(--ft-border);
    color: var(--ft-text);
}

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

.form-control,
.form-select {
    border-radius: 10px;
    border-color: var(--ft-border-strong);
    padding: 0.55rem 0.9rem;
    font-size: 0.95rem;
    background: #fff;
    color: var(--ft-text);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--ft-navy);
    box-shadow: 0 0 0 0.2rem rgba(15, 27, 46, 0.12);
}

.form-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ft-navy);
    margin-bottom: 0.3rem;
}

/* -------------------------------------------------------------------------
   List groups (used by my-boats + races on event detail)
   ------------------------------------------------------------------------- */

.list-group {
    border-radius: 12px;
    overflow: hidden;
}

.list-group-item {
    background: var(--ft-panel);
    border-color: var(--ft-border);
    color: var(--ft-text);
    padding: 0.85rem 1.1rem;
}

.list-group-item strong {
    color: var(--ft-navy);
    font-weight: 600;
}

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

.ft-footer {
    background: var(--ft-navy);
    color: rgba(255, 255, 255, 0.7);
    padding: 2rem 1rem;
    margin-top: 3rem;
    text-align: center;
    font-size: 0.85rem;
}

.ft-footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}
.ft-footer a:hover {
    color: var(--ft-gold-soft);
}

.ft-footer .footer-brand {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    color: #fff;
}

.ft-footer .footer-brand-koru {
    color: var(--ft-gold-soft);
    font-weight: 600;
}

/* -------------------------------------------------------------------------
   HTMX indicators
   ------------------------------------------------------------------------- */

.htmx-indicator { opacity: 0; transition: opacity 200ms ease-in; }
.htmx-request .htmx-indicator { opacity: 1; }
.htmx-request.htmx-indicator { opacity: 1; }

/* -------------------------------------------------------------------------
   Section headings on the catalog
   ------------------------------------------------------------------------- */

.section-heading {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    margin-bottom: 1.1rem;
    margin-top: 0.5rem;
}

.section-heading .accent {
    height: 2px;
    flex-grow: 1;
    background: linear-gradient(90deg, var(--ft-gold) 0%, transparent 100%);
    opacity: 0.4;
}

/* -------------------------------------------------------------------------
   Two-column layout inside "Where your boats race": Happening now | Coming up
   ------------------------------------------------------------------------- */

.ft-column-heading {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    color: var(--ft-navy);
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    margin: 0 0 0.85rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.ft-column-count {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: var(--ft-navy);
    background: var(--ft-gold-soft);
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    line-height: 1.4;
}

.ft-column-empty {
    background: var(--ft-panel);
    border: 1px dashed var(--ft-border-strong);
    border-radius: 12px;
    padding: 1.25rem;
    color: var(--ft-muted);
    font-size: 0.9rem;
    text-align: center;
}

/* -------------------------------------------------------------------------
   Collapsible <details> — "show all other events" toggle
   ------------------------------------------------------------------------- */

.ft-details {
    margin-top: 1.5rem;
}

.ft-details-summary {
    display: inline-block;
    cursor: pointer;
    list-style: none;
    background: var(--ft-panel);
    color: var(--ft-navy);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.7rem 1.5rem;
    border-radius: 999px;
    border: 1px solid var(--ft-border-strong);
    box-shadow: var(--ft-shadow);
    transition: all 0.15s ease;
    user-select: none;
}

.ft-details-summary:hover {
    background: var(--ft-navy);
    color: #fff;
    border-color: var(--ft-navy);
    box-shadow: 0 6px 20px rgba(15, 27, 46, 0.2);
}

.ft-details-summary::-webkit-details-marker { display: none; }
.ft-details-summary::marker { content: ""; }

.ft-details-summary::before {
    content: "▸ ";
    color: var(--ft-gold);
    transition: transform 0.2s ease;
    display: inline-block;
    margin-right: 0.3rem;
}

.ft-details[open] > .ft-details-summary::before {
    content: "▾ ";
}

.ft-details[open] > .ft-details-summary {
    background: var(--ft-navy);
    color: #fff;
    border-color: var(--ft-navy);
}

.ft-details-with-search {
    margin-top: 1.5rem;
}

.ft-details-with-search > .ft-details {
    margin-top: 0;
}

/* Toolbar: search + fleet toggle + count, inside the <details> */
.ft-events-toolbar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 1rem 0 0.75rem;
    flex-wrap: wrap;
}

.ft-events-search {
    flex: 1 1 200px;
    max-width: 320px;
    height: auto;
    padding: 0.5rem 1rem;
    font-size: 0.88rem;
    background: var(--ft-panel);
    border: 1px solid var(--ft-border-strong);
    border-radius: 999px;
    color: var(--ft-text);
    box-shadow: var(--ft-shadow);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ft-events-search:focus {
    outline: none;
    border-color: var(--ft-navy);
    box-shadow: 0 0 0 0.2rem rgba(15, 27, 46, 0.12);
}

.ft-events-search::placeholder {
    color: var(--ft-muted);
}

.ft-fleet-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--ft-border-strong);
    background: var(--ft-panel);
    color: var(--ft-navy);
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    user-select: none;
}

.ft-fleet-filter-btn:hover {
    border-color: var(--ft-gold);
    background: var(--ft-gold-soft);
}

.ft-fleet-filter-btn--active {
    background: var(--ft-gold);
    border-color: var(--ft-gold);
    color: var(--ft-navy);
    box-shadow: 0 2px 8px rgba(201, 168, 76, 0.25);
}

.ft-fleet-filter-btn--active:hover {
    background: var(--ft-gold-soft);
}

.ft-events-match-count {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    color: var(--ft-muted);
    white-space: nowrap;
}

@media (max-width: 600px) {
    .ft-events-search { max-width: 100%; flex-basis: 100%; }
}

/* -------------------------------------------------------------------------
   Event detail — back link
   ------------------------------------------------------------------------- */

.ft-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ft-muted);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    transition: all 0.15s ease;
    margin-bottom: 1rem;
}

.ft-back-link:hover {
    background: var(--ft-panel);
    color: var(--ft-navy);
    border-color: var(--ft-border);
    box-shadow: var(--ft-shadow);
}

/* -------------------------------------------------------------------------
   Event detail — compact hero
   ------------------------------------------------------------------------- */

.ft-hero--compact {
    padding: 2.5rem 1.5rem 2rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.ft-hero--compact h1 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    line-height: 1.1;
    margin: 0.25rem 0 0.75rem;
}

/* Slim variant — even less vertical presence for detail pages. */
.ft-hero--slim {
    padding: 1.75rem 1.5rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 0 0 18px 18px;
}

.ft-hero--slim h1 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin-bottom: 0.5rem;
}

.ft-hero--slim::after {
    /* smaller decorative blob so the slim hero doesn't feel top-heavy */
    width: 220px;
    height: 220px;
    background: radial-gradient(circle at 70% 30%, rgba(201, 168, 76, 0.20), transparent 65%);
}

/* -------------------------------------------------------------------------
   Event detail hero — cover image with navy overlay (TracTrac-style)
   ------------------------------------------------------------------------- */

.ft-event-hero {
    position: relative;
    isolation: isolate;              /* keep overlay's z-index local */
    min-height: clamp(240px, 28vw, 340px);
    padding: 2.75rem 1.75rem 2.25rem;
    margin: 0 -12px 2rem;
    border-radius: 0 0 22px 22px;
    background: linear-gradient(135deg, var(--ft-navy) 0%, var(--ft-navy-2) 100%);
    color: #fff;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

/* When a cover image is provided, layer it under the overlay. */
.ft-event-hero--covered {
    background-image: var(--ft-cover);
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
}

/* Navy gradient overlay — keeps text legible against any cover photo.
   Stronger on the bottom-left where the text sits, softer top-right so a
   tiny amount of the image still shows through. */
.ft-event-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg,
            rgba(15, 27, 46, 0.88) 0%,
            rgba(15, 27, 46, 0.72) 50%,
            rgba(15, 27, 46, 0.55) 100%),
        radial-gradient(circle at 88% 12%, rgba(201, 168, 76, 0.22), transparent 55%);
    z-index: -1;
}

/* No-cover fallback: no image needed, use the navy gradient from the parent
   and add a subtle gold blob for warmth. */
.ft-event-hero:not(.ft-event-hero--covered) .ft-event-hero-overlay {
    background: radial-gradient(circle at 75% 25%,
        rgba(201, 168, 76, 0.20), transparent 60%);
}

.ft-event-hero-inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.ft-event-hero h1 {
    color: #fff;
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.015em;
    margin: 0.35rem 0 1rem;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.ft-event-hero .hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.95rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.ft-event-hero .hero-meta-item {
    display: inline-flex;
    align-items: center;
}

.ft-event-hero .hero-meta-item + .hero-meta-item::before {
    content: "·";
    color: var(--ft-gold-soft);
    margin-right: 0.75rem;
    font-weight: 700;
}

.ft-event-hero .hero-source-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.ft-hero--compact .hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
}

.ft-hero--compact .hero-meta-item {
    display: inline-flex;
    align-items: center;
}

.ft-hero--compact .hero-meta-item + .hero-meta-item::before {
    content: "·";
    color: var(--ft-gold-soft);
    margin-right: 0.75rem;
    font-weight: 700;
}

.hero-source-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.25rem;
}

.hero-source-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1.15rem;
    background: var(--ft-navy);           /* solid navy — no more grey wash */
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(15, 27, 46, 0.35);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease,
                box-shadow 0.15s ease, transform 0.15s ease;
}

.hero-source-link:hover {
    background: var(--ft-gold);
    border-color: var(--ft-gold);
    color: var(--ft-navy);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(201, 168, 76, 0.45);
}

/* Follow-event toggle in the hero — a hero-source-link rendered as <button>.
   Active (following) state is solid gold; hover on active hints removal. */
.ft-follow-form {
    display: inline-block;
    margin: 0;
    padding: 0;
}

.ft-follow-btn {
    cursor: pointer;
}

.ft-follow-btn--active {
    background: var(--ft-gold);
    border-color: var(--ft-gold);
    color: var(--ft-navy);
    font-weight: 600;
}

.ft-follow-btn--active:hover {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.92);
    color: #a13c2f;
    box-shadow: 0 2px 8px rgba(15, 27, 46, 0.35);
}

/* Auto-detected variant: same gold look as --active but rendered as a
   static <span> — no hover state, no cursor. Mirrors the static card star. */
.ft-follow-btn--auto {
    background: var(--ft-gold);
    border-color: var(--ft-gold);
    color: var(--ft-navy);
    font-weight: 600;
    cursor: default;
}

.ft-follow-btn--auto:hover {
    background: var(--ft-gold);
    border-color: var(--ft-gold);
    color: var(--ft-navy);
    transform: none;
    box-shadow: 0 2px 8px rgba(15, 27, 46, 0.35);
}

/* Corner follow-star on event cards — toggle without opening the event.
   Sits above the card <a> (sibling, absolutely positioned in the col). */
.ft-card-follow {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;   /* now measured from the card edge, not the col */
    z-index: 2;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.ft-card-follow-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--ft-border);
    color: var(--ft-muted);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(15, 27, 46, 0.08);
    transition: color 0.15s ease, border-color 0.15s ease,
                box-shadow 0.15s ease, transform 0.15s ease;
}

.ft-card-follow-btn:hover {
    color: var(--ft-gold);
    border-color: var(--ft-gold);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(201, 168, 76, 0.3);
}

.ft-card-follow-btn--active {
    color: var(--ft-gold);
    border-color: var(--ft-gold);
    background: #fff;
}

.ft-card-follow-btn--active:hover {
    color: #a13c2f;
    border-color: #a13c2f;
}

/* Auto-detected variant: same look as the followed button, but a static
   <span> — no cursor, no hover state. User can't remove it from here;
   the event is here because a boat from their fleet races in it. */
.ft-card-follow-static {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--ft-gold);
    color: var(--ft-gold);
    font-size: 1rem;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(15, 27, 46, 0.08);
    cursor: default;
}

/* Keep long card titles from running under the corner star. */
.ft-card-link .card-title {
    padding-right: 1.9rem;
}

/* Signed-in balance line on the pricing page. */
.ft-credits-balance {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.45rem 1.1rem;
    background: var(--ft-gold-soft);
    border-radius: 999px;
    color: var(--ft-navy);
    font-size: 0.9rem;
}

.hero-source-link--gold {
    background: var(--ft-gold);
    border-color: var(--ft-gold);
    color: var(--ft-navy);
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(201, 168, 76, 0.4);
}

.hero-source-link--gold:hover {
    background: var(--ft-gold-soft);
    border-color: var(--ft-gold-soft);
    color: var(--ft-navy);
    box-shadow: 0 6px 18px rgba(201, 168, 76, 0.55);
}

.hero-source-link span {
    font-size: 0.95em;
    font-weight: 700;
    line-height: 1;
}

/* -------------------------------------------------------------------------
   Event detail — buy card
   ------------------------------------------------------------------------- */

.buy-card {
    background: var(--ft-panel);
    border-radius: 16px;
    border: 1px solid var(--ft-border);
    box-shadow: var(--ft-shadow);
    padding: 1.75rem 1.75rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 2rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.buy-card::before {
    /* subtle gold accent stripe on the left */
    content: "";
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--ft-gold) 0%, var(--ft-gold-soft) 100%);
}

@media (max-width: 720px) {
    .buy-card {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

.buy-card-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.buy-card-price .tier-pill {
    display: inline-block;
    background: var(--ft-navy);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
}

.buy-card-price .price-figure {
    font-family: 'Fraunces', serif;
    color: var(--ft-navy);
    font-size: 2.6rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.02em;
}

.buy-card-price .price-figure small {
    font-size: 1rem;
    font-weight: 500;
    color: var(--ft-muted);
    margin-left: 0.3rem;
}

.buy-card-price .price-caption {
    display: block;
    max-width: 22rem;
}

.buy-card-action {
    padding-left: 0;
    border-left: 1px solid var(--ft-border);
    padding-left: 2rem;
}

@media (max-width: 720px) {
    .buy-card-action {
        border-left: 0;
        padding-left: 0;
        padding-top: 0.5rem;
        border-top: 1px solid var(--ft-border);
    }
}

.buy-card-form .form-select {
    min-width: 180px;
    max-width: 260px;
}

.buy-card-signin p,
.buy-card-warn p {
    color: var(--ft-text);
    font-size: 0.95rem;
}

/* -------------------------------------------------------------------------
   Event detail — fleet pills
   ------------------------------------------------------------------------- */

.fleet-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.boat-pill {
    display: inline-block;
    background: var(--ft-panel);
    border: 1px solid var(--ft-border);
    color: var(--ft-navy);
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    box-shadow: 0 1px 3px rgba(15, 27, 46, 0.04);
}

.boat-pill--yours {
    background: linear-gradient(135deg, var(--ft-gold) 0%, var(--ft-gold-soft) 100%);
    color: var(--ft-navy);
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(201, 168, 76, 0.35);
}

.boat-pill--yours::before {
    content: "★ ";
    color: var(--ft-navy);
}

/* When the yours-pill is a button (event fleet), clicking removes the boat.
   Hover flips the star to × and dims the gold to signal the removal. */
button.boat-pill--yours {
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

button.boat-pill--yours:hover,
button.boat-pill--yours:focus-visible {
    background: linear-gradient(135deg, var(--ft-gold-soft) 0%, var(--ft-panel) 100%);
    border-color: var(--ft-border);
    box-shadow: 0 1px 4px rgba(15, 27, 46, 0.12);
    transform: translateY(-1px);
}

button.boat-pill--yours:hover::before,
button.boat-pill--yours:focus-visible::before {
    content: "\00d7 ";  /* × */
    color: #a13c2f;
}

.boat-pill--more {
    background: transparent;
    border-style: dashed;
    color: var(--ft-muted);
}

/* Interactive pill: click to add this boat to the user's fleet. */
.boat-pill-form {
    display: inline-block;
    margin: 0;
    padding: 0;
    line-height: 0;   /* prevents extra whitespace under the button */
}

.boat-pill--add {
    background: var(--ft-panel);
    border: 1px solid var(--ft-border);
    color: var(--ft-navy);
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.35rem 0.85rem 0.35rem 0.7rem;
    border-radius: 999px;
    box-shadow: 0 1px 3px rgba(15, 27, 46, 0.04);
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1.4;   /* undo the form's line-height:0 for the label */
}

.boat-pill--add:hover,
.boat-pill--add:focus {
    background: var(--ft-gold-soft);
    border-color: var(--ft-gold);
    color: var(--ft-navy);
    box-shadow: 0 3px 10px rgba(201, 168, 76, 0.35);
    transform: translateY(-1px);
}

.boat-pill--add:focus-visible {
    outline: 2px solid var(--ft-gold);
    outline-offset: 2px;
}

.boat-pill-add-plus {
    display: inline-block;
    width: 1em;
    text-align: center;
    color: var(--ft-gold);
    font-weight: 700;
    margin-right: 0.15rem;
    transition: color 0.15s ease;
}

.boat-pill--add:hover .boat-pill-add-plus,
.boat-pill--add:focus .boat-pill-add-plus {
    color: var(--ft-navy);
}

/* -------------------------------------------------------------------------
   Event detail — Race list Request buttons
   ------------------------------------------------------------------------- */

/* -------------------------------------------------------------------------
   Event detail — request footer (inside races card)
   ------------------------------------------------------------------------- */

.ft-request-footer {
    background: var(--ft-cream);
    border-top: 1px solid var(--ft-border);
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    color: var(--ft-text);
}

/* -------------------------------------------------------------------------
   Event detail — flush list-group inside a card
   ------------------------------------------------------------------------- */

.card .list-group-flush .list-group-item {
    border-color: var(--ft-border);
    background: transparent;
}

.card .list-group-flush .list-group-item:first-child { border-top: 0; }
.card .list-group-flush .list-group-item:last-child { border-bottom: 0; }

/* =========================================================================
   HOME PAGE
   ========================================================================= */

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.ft-home-hero {
    position: relative;
    background: linear-gradient(135deg, var(--ft-navy) 0%, var(--ft-navy-2) 60%, #1e3350 100%);
    color: #fff;
    padding: 5rem 1.5rem 4.5rem;
    overflow: hidden;
}

.ft-home-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 75% 25%, rgba(201, 168, 76, 0.22), transparent 55%);
    pointer-events: none;
}

.ft-home-hero-inner {
    max-width: 780px;
    position: relative;
    z-index: 1;
}

.ft-home-hero h1 {
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.08;
    margin: 0.5rem 0 1rem;
}

.ft-home-hero-sub {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.1rem;
    max-width: 580px;
    margin-bottom: 1.5rem;
    line-height: 1.55;
}

.ft-home-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ── Step cards (How it works) ────────────────────────────────────────────── */

.ft-step-card {
    background: var(--ft-panel);
    border: 1px solid var(--ft-border);
    border-radius: 14px;
    padding: 2rem 1.5rem;
    box-shadow: var(--ft-shadow);
    height: 100%;
}

.ft-step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--ft-navy);
    color: var(--ft-gold-soft);
    font-family: 'Fraunces', serif;
    font-size: 1.3rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(15, 27, 46, 0.18);
}

/* ── Example report section ───────────────────────────────────────────────── */

.ft-home-example {
    background: var(--ft-cream-2);
}

.ft-report-frame-wrapper {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--ft-shadow-lg);
}

.ft-report-placeholder {
    background: var(--ft-panel);
    border: 2px dashed var(--ft-border-strong);
    border-radius: 14px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.ft-report-placeholder-inner {
    padding: 2rem;
}

/* ── Feature cards (What's included) ──────────────────────────────────────── */

.ft-feature-card {
    background: var(--ft-panel);
    border: 1px solid var(--ft-border);
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: var(--ft-shadow);
    height: 100%;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ft-feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ft-shadow-lg);
}

/* ── Data sources section ─────────────────────────────────────────────────── */

.ft-home-sources {
    background: var(--ft-cream-2);
}

.ft-sources-logos {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.ft-source-logo-box {
    background: var(--ft-panel);
    border: 1px solid var(--ft-border);
    border-radius: 14px;
    padding: 1.75rem 2.5rem;
    box-shadow: var(--ft-shadow);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 160px;
}

.ft-source-logo-text {
    font-family: 'Fraunces', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--ft-navy);
    letter-spacing: -0.01em;
}

/* ── CTA + pricing teaser ─────────────────────────────────────────────────── */

.ft-home-cta {
    background: linear-gradient(135deg, var(--ft-navy) 0%, var(--ft-navy-2) 100%);
    color: #fff;
}

.ft-home-cta h2 {
    color: #fff;
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    margin-bottom: 0.75rem;
}

.ft-home-cta-price {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.ft-home-cta-price strong {
    color: var(--ft-gold-soft);
}

/* =========================================================================
   PRICING PAGE
   ========================================================================= */

.ft-pricing-card {
    background: var(--ft-panel);
    border: 1px solid var(--ft-border);
    border-radius: 16px;
    padding: 2rem 1.75rem;
    box-shadow: var(--ft-shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ft-pricing-card--featured {
    border-color: var(--ft-gold);
    box-shadow: 0 8px 30px rgba(201, 168, 76, 0.18);
    position: relative;
}

.ft-pricing-card--featured::before {
    content: "MOST POPULAR";
    position: absolute;
    top: -0.7rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ft-gold);
    color: var(--ft-navy);
    font-family: 'Inter', sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    padding: 0.25rem 0.85rem;
    border-radius: 999px;
    white-space: nowrap;
}

.ft-pricing-price {
    font-family: 'Fraunces', serif;
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--ft-navy);
    line-height: 1;
    margin: 0.75rem 0 0.5rem;
}

.ft-pricing-price small {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ft-muted) !important;
}

.ft-pricing-features {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0;
    flex-grow: 1;
}

.ft-pricing-features li {
    padding: 0.4rem 0;
    font-size: 0.92rem;
    color: var(--ft-text);
    border-bottom: 1px solid var(--ft-border);
}

.ft-pricing-features li:last-child {
    border-bottom: 0;
}

.ft-pricing-features li::before {
    content: "\2713\00a0";
    color: var(--ft-green);
    font-weight: 700;
}

/* ── FAQ ──────────────────────────────────────────────────────────────────── */

.ft-faq {
    max-width: 720px;
    margin: 0 auto;
}

.ft-faq-item {
    background: var(--ft-panel);
    border: 1px solid var(--ft-border);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    box-shadow: var(--ft-shadow);
    overflow: hidden;
}

.ft-faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1rem 1.25rem;
    font-weight: 500;
    color: var(--ft-navy);
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.ft-faq-item summary::-webkit-details-marker { display: none; }
.ft-faq-item summary::marker { content: ""; }

.ft-faq-item summary::after {
    content: "+";
    font-size: 1.2rem;
    color: var(--ft-gold);
    font-weight: 700;
    flex-shrink: 0;
    margin-left: 1rem;
    transition: transform 0.2s ease;
}

.ft-faq-item[open] summary::after {
    content: "\2212";
}

.ft-faq-item .ft-faq-body {
    padding: 0 1.25rem 1rem;
    color: var(--ft-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* =========================================================================
   ABOUT PAGE
   ========================================================================= */

.ft-about-section {
    max-width: 740px;
    margin: 0 auto;
}

.ft-about-highlight {
    background: var(--ft-panel);
    border: 1px solid var(--ft-border);
    border-radius: 14px;
    padding: 1.5rem 1.75rem;
    box-shadow: var(--ft-shadow);
    text-align: center;
}

/* =========================================================================
   ACCOUNT / SETTINGS
   ========================================================================= */

.ft-settings-tabs {
    gap: 0.35rem;
}

.ft-settings-tabs .nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--ft-muted);
    border-radius: 999px;
    padding: 0.45rem 1.1rem;
    transition: all 0.15s ease;
}

.ft-settings-tabs .nav-link:hover {
    color: var(--ft-navy);
    background: var(--ft-cream-2);
}

.ft-settings-tabs .nav-link.active {
    background: var(--ft-navy);
    color: #fff;
}

/* Placeholder block (billing/credits/notifications coming-soon) */
.ft-placeholder-block {
    background: var(--ft-cream);
    border: 1px dashed var(--ft-border-strong);
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
}

/* Notification toggles */
.ft-notif-toggle {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--ft-border);
}

.ft-notif-toggle:last-of-type {
    border-bottom: 0;
}

/* =========================================================================
   MY BOATS
   ========================================================================= */

.ft-boat-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ft-boat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ft-shadow-lg);
}

.ft-boat-stats {
    display: flex;
    gap: 1.25rem;
}

.ft-boat-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ft-boat-stat-value {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ft-navy);
    line-height: 1;
}

.ft-boat-stat-label {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--ft-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.2rem;
}

/* =========================================================================
   REPORTS DASHBOARD
   ========================================================================= */

.ft-report-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ft-report-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ft-shadow-lg);
}

/* =========================================================================
   VIEW TOGGLE (list / calendar)
   ========================================================================= */

.ft-view-toggle {
    display: flex;
    gap: 0.25rem;
    background: var(--ft-cream-2);
    border-radius: 10px;
    padding: 0.2rem;
}

.ft-view-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 32px;
    border-radius: 8px;
    color: var(--ft-muted);
    text-decoration: none;
    transition: all 0.15s ease;
}

.ft-view-toggle-btn:hover {
    color: var(--ft-navy);
    background: var(--ft-panel);
    text-decoration: none;
}

.ft-view-toggle-btn--active {
    color: var(--ft-navy);
    background: var(--ft-panel);
    box-shadow: 0 1px 3px rgba(15, 27, 46, 0.08);
}

/* =========================================================================
   CALENDAR
   ========================================================================= */

.ft-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.ft-cal-title {
    font-family: 'Fraunces', serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--ft-navy);
    margin: 0;
}

.ft-cal-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--ft-border-strong);
    background: var(--ft-panel);
    color: var(--ft-navy);
    font-size: 1rem;
    cursor: pointer;
    box-shadow: var(--ft-shadow);
    transition: all 0.15s ease;
}

.ft-cal-nav:hover {
    background: var(--ft-navy);
    color: #fff;
    border-color: var(--ft-navy);
}

.ft-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    margin-bottom: 1px;
}

.ft-cal-weekdays span {
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ft-muted);
    padding: 0.5rem 0;
}

.ft-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--ft-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--ft-shadow);
}

.ft-cal-day {
    background: var(--ft-panel);
    min-height: 90px;
    padding: 0.4rem;
    display: flex;
    flex-direction: column;
}

.ft-cal-day--outside {
    background: var(--ft-cream);
}

.ft-cal-day--outside .ft-cal-day-num {
    color: var(--ft-border-strong);
}

.ft-cal-day--today .ft-cal-day-num {
    background: var(--ft-navy);
    color: #fff;
}

.ft-cal-day-num {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--ft-text);
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    margin-bottom: 0.25rem;
    flex-shrink: 0;
}

.ft-cal-day-events {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
    flex-grow: 1;
}

.ft-cal-event {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 500;
    line-height: 1.3;
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    background: rgba(15, 27, 46, 0.07);
    color: var(--ft-navy);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background 0.12s ease;
}

.ft-cal-event:hover {
    background: rgba(15, 27, 46, 0.14);
    color: var(--ft-navy);
    text-decoration: none;
}

.ft-cal-event--yours {
    background: rgba(201, 168, 76, 0.18);
    color: var(--ft-navy);
    font-weight: 600;
}

.ft-cal-event--yours:hover {
    background: rgba(201, 168, 76, 0.32);
}

.ft-cal-overflow {
    font-family: 'Inter', sans-serif;
    font-size: 0.62rem;
    font-weight: 500;
    color: var(--ft-muted);
    padding: 0.1rem 0.35rem;
}

/* =========================================================================
   RESPONSIVE TWEAKS
   ========================================================================= */

@media (max-width: 768px) {
    .ft-home-hero {
        padding: 3.5rem 1rem 3rem;
    }

    .ft-sources-logos {
        flex-direction: column;
        align-items: center;
    }

    .ft-source-logo-box {
        width: 100%;
        max-width: 280px;
    }

    .ft-pricing-price {
        font-size: 2.2rem;
    }

    .ft-cal-day {
        min-height: 60px;
        padding: 0.25rem;
    }

    .ft-cal-event {
        font-size: 0.6rem;
        padding: 0.1rem 0.2rem;
    }

    .ft-cal-day-num {
        font-size: 0.7rem;
        width: 20px;
        height: 20px;
        line-height: 20px;
    }

    .ft-cal-weekdays span {
        font-size: 0.6rem;
    }
}

/* -- Auth card (sign in / sign up) ---------------------------------------- */
.ft-auth-card {
    border: none;
    border-radius: var(--ft-radius);
    box-shadow: var(--ft-shadow);
    margin-top: 1rem;
}

.ft-auth-card .form-label {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--ft-navy);
}

.ft-auth-card .form-control {
    border-radius: 10px;
    padding: 0.625rem 0.875rem;
    border: 1.5px solid var(--ft-border);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ft-auth-card .form-control:focus {
    border-color: var(--ft-gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.ft-auth-card .btn-primary {
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
}
