/*
 * 904sailing.com
 * File: /assets/css/theme-sailing.css
 * Version: 1.4
 * Generated: 2026-09-16
 * Purpose: Original sailboat visual theme inspired by classic flat marine layouts.
 */

:root {
    --bg: #eef4f5;
    --card: #ffffff;
    --ink: #15313d;
    --muted: #637881;
    --line: #d5e1e4;
    --accent: #0a7189;
    --accent-dark: #07485c;
    --soft: #e5f2f4;
    --success: #26734d;
    --warning: #9b6517;
    --navy: #062f42;
    --navy-deep: #041f2c;
    --sea: #15859d;
    --sea-light: #65c5d6;
    --sun: #f2a44a;
    --sand: #f6efe3;
    --shadow: 0 18px 50px rgba(7, 45, 61, 0.10);
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at top left, rgba(101, 197, 214, .13), transparent 34rem),
        var(--bg);
    color: var(--ink);
}

h1, h2, h3, .brand-name {
    font-family: Georgia, "Times New Roman", serif;
}

h1, h2, h3 {
    color: #0b3445;
}

/* Top mast */
.site-utility {
    background: var(--navy-deep);
    color: rgba(255,255,255,.78);
    font-size: .78rem;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.utility-inner {
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.utility-inner a {
    color: #fff;
}

.site-header {
    background: linear-gradient(90deg, rgba(6,47,66,.98), rgba(8,75,93,.97));
    border-bottom: 0;
    box-shadow: 0 8px 26px rgba(3, 30, 41, .16);
}

.header-inner {
    min-height: 78px;
}

.brand {
    align-items: center;
    gap: 11px;
    color: #fff;
}

.brand-logo {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,.14));
}

.brand-copy {
    display: grid;
    line-height: 1;
}

.brand-mark {
    color: #fff;
    font-size: 1.05rem;
    letter-spacing: .16em;
    font-family: Arial, Helvetica, sans-serif;
    text-transform: uppercase;
}

.brand-name {
    color: #fff;
    font-size: 1.48rem;
    letter-spacing: .01em;
}

.main-nav {
    gap: 2px;
}

.main-nav a {
    color: rgba(255,255,255,.86);
    padding: 10px 12px;
    border-radius: 4px;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .02em;
}

.main-nav a.active,
.main-nav a:hover {
    color: #fff;
    background: rgba(255,255,255,.12);
    text-decoration: none;
}

/* Homepage marine hero */
.sailing-hero {
    min-height: 590px;
    padding: 0;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(4,31,44,.82) 0%, rgba(4,31,44,.58) 42%, rgba(4,31,44,.16) 76%),
        url('/assets/images/sailing-hero-race.png') center center / cover no-repeat;
}

.sailing-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 72px;
    background: var(--bg);
    clip-path: polygon(0 68%, 10% 82%, 24% 66%, 38% 83%, 52% 69%, 67% 84%, 82% 70%, 100% 83%, 100% 100%, 0 100%);
}

.sailing-hero .shell {
    position: relative;
    z-index: 2;
    padding-top: 44px;
    padding-bottom: 92px;
}

.sailing-hero .hero-copy {
    max-width: 720px;
}

.sailing-hero .page-kicker {
    color: #9edce7;
}

.sailing-hero h1 {
    color: #fff;
    max-width: 700px;
    font-size: clamp(3rem, 6vw, 5.6rem);
    line-height: .94;
    letter-spacing: -.045em;
    text-shadow: 0 4px 24px rgba(0,0,0,.22);
}

.sailing-hero p {
    max-width: 650px;
    color: rgba(255,255,255,.88);
    font-size: 1.14rem;
    line-height: 1.65;
}

.sailing-hero .button {
    background: var(--sun);
    color: #1a3440;
    font-weight: 800;
}

.sailing-hero .button:hover {
    background: #ffc06d;
    text-decoration: none;
}

.sailing-hero .button.secondary {
    background: rgba(255,255,255,.1);
    color: #fff;
    border-color: rgba(255,255,255,.55);
    backdrop-filter: blur(3px);
}

/* Page styling */
.page-wrap {
    position: relative;
}

.page-wrap::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 150px;
    background: linear-gradient(180deg, #dcecef 0%, rgba(238,244,245,0) 100%);
    pointer-events: none;
    z-index: -1;
}

.page-title {
    font-size: clamp(2.1rem, 4vw, 3.4rem);
    color: var(--navy);
}

.page-kicker {
    color: var(--sea);
    letter-spacing: .14em;
}

.section {
    padding: 34px 0;
}

.section-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.card,
.feature-card,
.archive-card,
.table-wrap {
    border-color: rgba(16, 91, 111, .15);
    box-shadow: 0 12px 36px rgba(7, 45, 61, .065);
}

.card,
.feature-card,
.archive-card {
    border-radius: 7px;
}

.card:hover,
.archive-card:hover {
    border-color: rgba(21,133,157,.33);
}

.card-grid .card {
    position: relative;
    overflow: hidden;
}

.card-grid .card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(var(--sea-light), var(--sea));
}

.stat {
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.35rem;
}

.button,
button {
    border-radius: 4px;
    background: var(--sea);
    font-weight: 700;
    box-shadow: 0 5px 14px rgba(21,133,157,.14);
}

.button:hover,
button:hover {
    background: var(--accent-dark);
    text-decoration: none;
}

.button.secondary {
    border-color: #b9cdd2;
    background: #fff;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="date"],
input[type="time"],
input[type="number"],
input[type="url"],
select,
textarea {
    border-radius: 4px;
    border-color: #c9d9dd;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid rgba(21,133,157,.22);
    outline-offset: 1px;
    border-color: var(--sea);
}

.table-wrap {
    border-radius: 7px;
}

th {
    background: #e8f2f4;
    color: #335765;
}

tbody tr:hover {
    background: #f8fbfb;
}

.badge {
    background: #dff0f3;
    color: #0a6075;
    border-radius: 3px;
}

.club-pill {
    border-radius: 3px;
    background: #f8fbfb;
}

.event-item {
    border-bottom-color: #d9e5e7;
}

.event-date {
    color: var(--sea);
}

.breadcrumbs a,
.breadcrumbs {
    color: #758991;
}

/* Footer inspired by marina/harbor blocks */
.site-footer {
    position: relative;
    background: linear-gradient(135deg, var(--navy-deep), var(--navy));
    border-top: 0;
    color: rgba(255,255,255,.84);
    margin-top: 70px;
}

.site-footer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -28px;
    height: 30px;
    background: var(--navy-deep);
    clip-path: polygon(0 70%, 8% 48%, 16% 72%, 24% 50%, 32% 72%, 40% 49%, 48% 72%, 56% 50%, 64% 72%, 72% 49%, 80% 72%, 88% 50%, 100% 72%, 100% 100%, 0 100%);
}

.footer-inner {
    min-height: 145px;
}

.site-footer strong {
    color: #fff;
}

.site-footer .muted,
.site-footer a {
    color: rgba(255,255,255,.68);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand img {
    width: 46px;
    height: 46px;
}

/* Admin keeps the same identity, but stays work-oriented */
.admin-body {
    background: #edf2f3;
}

.admin-body .site-utility {
    background: #031b27;
}

.admin-body .site-header {
    position: relative;
    background: #07394c;
}

.admin-body .main-nav a {
    font-size: .82rem;
    padding: 8px 9px;
}

.admin-body .page-wrap::before {
    height: 110px;
}

.admin-body .card,
.admin-body .feature-card,
.admin-body .archive-card,
.admin-body .table-wrap {
    box-shadow: 0 7px 22px rgba(7,45,61,.045);
}

.alert-success {
    border-color: #9dcfb0;
    background: #edf8f1;
}

.alert-error {
    border-color: #e2b3b3;
    background: #fff3f3;
}

@media (max-width: 900px) {
    .site-utility {
        display: none;
    }

    .site-header {
        position: relative;
    }

    .header-inner {
        align-items: flex-start;
        padding: 14px 0;
    }

    .main-nav {
        width: 100%;
    }

    .main-nav a {
        background: rgba(255,255,255,.06);
    }

    .sailing-hero {
        min-height: 540px;
        background-position: 60% 50%;
    }

    .sailing-hero h1 {
        font-size: clamp(2.7rem, 11vw, 4.4rem);
    }
}

@media (max-width: 600px) {
    .sailing-hero {
        min-height: 510px;
        background:
            linear-gradient(90deg, rgba(4,31,44,.84), rgba(4,31,44,.47)),
            url('/assets/images/sailing-hero.svg') 57% 50% / cover no-repeat;
    }

    .sailing-hero .shell {
        padding-bottom: 76px;
    }

    .brand-logo {
        width: 40px;
        height: 40px;
    }
}


/* v1.4 historical migration tooling */
.migration-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.migration-steps > div {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
}

.migration-steps strong {
    display: grid;
    place-items: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
}

.migration-json-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 18px;
}

.code-textarea {
    width: 100%;
    font-family: Consolas, "Courier New", monospace;
    font-size: .82rem;
    line-height: 1.45;
    min-height: 360px;
    white-space: pre;
}

@media (max-width: 900px) {
    .migration-steps,
    .migration-json-grid {
        grid-template-columns: 1fr;
    }
}
