:root {
    --brand-orange: #FF7A00;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #6b6b6b;
    --bg-page: #ffffff;
    --bg-card: #f3f3f5;
    --footer-bg: #111111;
    --footer-text: #bdbdbd;
    --link-blue: #2563eb;
    --border-subtle: #e5e5e7;
    --max-width: 1080px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-primary);
    background: var(--bg-page);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: max(800px, 100vh);
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
    width: 100%;
    padding: .625rem 7.25rem .625rem 7.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
}

.logo-image {
    width: 56px;
    height: 33px;
    display: block;
    object-fit: contain;
}

.header-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
    min-width: 160px;
    max-height: 320px;
    overflow-y: auto;
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.dropdown[data-dropdown="currency"] .dropdown-menu {
    min-width: 200px;
}

.dropdown.is-open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 9px 16px;
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
    transition: background 0.12s ease, color 0.12s ease;
    white-space: nowrap;
}

.dropdown-menu li:hover,
.dropdown-menu li:focus {
    background: #f7f7f8;
    outline: none;
}

.dropdown-menu li.is-active {
    color: var(--brand-orange);
    font-weight: 600;
}

.dropdown.is-open .nav-select .caret {
    transform: rotate(180deg);
}

.nav-select {
    background: transparent;
    border: 0;
    font-size: 15px;
    color: var(--text-primary);
    cursor: pointer;
    padding: 4px 2px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    transition: color 0.15s ease;
}

.nav-select:hover {
    color: var(--brand-orange);
}

.nav-select .caret {
    width: 10px;
    height: 7px;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.nav-select:hover .caret {
    color: var(--brand-orange);
}

.page {
    flex: 1 0 auto;
    padding: 56px 32px 80px;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.page-title {
    font-size: 38px;
    font-weight: 800;
    margin: 0 0 24px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

/* Title introducing the second (supplemental) card as its own section */
.supplemental-title {
    margin-top: 60px;
}

.page-intro {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 36px;
    max-width: 980px;
}

.rules-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 40px 56px 28px;
}

.rules-card-content {
    position: relative;
    overflow: hidden;
    max-height: 8000px;
    transition: max-height 0.45s ease;
}

/* Fade-out gradient shown over the clipped preview when collapsed */
.rules-card-content::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    background: linear-gradient(to bottom, rgba(243, 243, 245, 0), var(--bg-card) 92%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.rules-card.is-collapsed .rules-card-content {
    max-height: 520px;
}

.rules-card.is-collapsed .rules-card-content::after {
    opacity: 1;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 20px;
    color: var(--text-primary);
}

.section-title:not(:first-child) {
    margin-top: 44px;
}

/* Mid-level sub-heading within a section (e.g. "Single-Day Charter"), sits between section-title and rule-title */
.rule-subhead {
    font-size: 17px;
    font-weight: 700;
    margin: 34px 0 14px;
    color: var(--text-primary);
}

.rule-title {
    font-size: 15px;
    font-weight: 700;
    margin: 22px 0 10px;
    color: var(--text-primary);
}

.rule-body {
    margin: 0 0 16px;
    color: var(--text-secondary);
    font-size: 14.5px;
    line-height: 1.75;
}

.rule-list {
    list-style: disc;
    padding-left: 22px;
    margin: 6px 0 16px;
    color: var(--text-secondary);
    font-size: 14.5px;
    line-height: 1.9;
}

.inline-link {
    color: var(--link-blue);
    text-decoration: none;
}

.inline-link:hover {
    text-decoration: underline;
}

.toggle-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 28px auto 4px;
    background: transparent;
    border: 1px solid var(--brand-orange);
    border-radius: 10px;
    color: var(--brand-orange);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    padding: 11px 26px;
    font-family: inherit;
    transition: background 0.18s ease, color 0.18s ease;
}

.toggle-button:hover {
    background: var(--brand-orange);
    color: #ffffff;
}

.toggle-icon {
    width: 11px;
    height: 8px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

/* Caret points up when expanded (Show Less) */
.rules-card:not(.is-collapsed) .toggle-icon {
    transform: rotate(180deg);
}

.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 28px 32px;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
}

.copyright {
    margin: 0;
    font-size: 13.5px;
    color: var(--footer-text);
    text-align: center;
}

@media (max-width: 1024px) {
    .header-inner {
        padding: 16px 24px;
    }

    .page {
        padding: 44px 24px 64px;
    }

    .rules-card {
        padding: 36px 36px 36px;
    }

    .page-title {
        font-size: 32px;
    }
}

@media (max-width: 760px) {
    .header-inner {
        padding: 12px 16px;
    }

    .logo-image {
        width: 42px;
        height: 25px;
    }

    .header-nav {
        gap: 14px;
    }

    .nav-select {
        font-size: 14px;
    }

    .page {
        padding: 28px 16px 48px;
    }

    .page-title {
        font-size: 26px;
        margin-bottom: 18px;
    }

    .supplemental-title {
        margin-top: 40px;
    }

    .page-intro {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .rules-card {
        padding: 24px 18px 24px;
        border-radius: 12px;
    }

    .section-title {
        font-size: 18px;
        margin-bottom: 14px;
    }

    .section-title:not(:first-child) {
        margin-top: 32px;
    }

    .rule-subhead {
        font-size: 16px;
        margin-top: 26px;
    }

    .rule-body,
    .rule-list {
        font-size: 14px;
        line-height: 1.65;
    }

    .toggle-button {
        margin-top: 24px;
    }

    .site-footer {
        padding: 28px 16px 24px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 26px;
        width: 100%;
    }

    .copyright {
        font-size: 13.5px;
        margin-top: 4px;
    }
}

@media (max-width: 420px) {
    .header-inner {
        padding: 10px 14px;
    }

    .logo-image {
        width: 36px;
        height: 21px;
    }

    .header-nav {
        gap: 10px;
    }

    .nav-select {
        font-size: 13px;
        padding: 4px 0;
    }

    .page {
        padding: 22px 14px 40px;
    }

    .page-title {
        font-size: 22px;
    }

    .page-intro {
        font-size: 13.5px;
    }

    .rules-card {
        padding: 20px 14px 20px;
        border-radius: 10px;
    }

    .section-title {
        font-size: 17px;
    }

    .rule-list {
        padding-left: 18px;
    }
}

@media (hover: none) {
    .nav-select,
    .toggle-button,
    .inline-link {
        -webkit-tap-highlight-color: transparent;
    }
}
