/* ==========================================================================
   SailboatVS — Complete Stylesheet
   Nautical-themed comparison site for sailboats
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #2d3748;
    background-color: #f7fafc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #2b6cb0;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #1a365d;
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    color: #1a365d;
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: 2rem; margin-bottom: 0.75rem; }
h2 { font-size: 1.5rem; margin-bottom: 0.6rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

small {
    font-size: 0.85em;
    color: #718096;
}

strong { font-weight: 600; }

ul, ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   2. Layout — Container
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.site-main {
    flex: 1;
    padding: 1.5rem 0 3rem;
}

/* --------------------------------------------------------------------------
   3. Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
    background: linear-gradient(135deg, #1a365d 0%, #2b4a7f 100%);
    color: #fff;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(26, 54, 93, 0.3);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    min-height: 56px;
}

.site-logo {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.02em;
    padding: 0.75rem 0;
    white-space: nowrap;
}

.site-logo:hover {
    color: #bee3f8;
    text-decoration: none;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.site-nav a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

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

/* --------------------------------------------------------------------------
   4. Hero Section
   -------------------------------------------------------------------------- */
.hero {
    background: linear-gradient(135deg, #1a365d 0%, #2b6cb0 60%, #38b2ac 100%);
    color: #fff;
    text-align: center;
    padding: 3rem 1.5rem;
    margin: -1.5rem -1rem 2rem;
    border-radius: 0 0 12px 12px;
}

.hero h1 {
    color: #fff;
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* --------------------------------------------------------------------------
   5. Compare Form
   -------------------------------------------------------------------------- */
.compare-form {
    max-width: 700px;
    margin: 0 auto;
}

.compare-selects {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1rem;
}

.select-group {
    flex: 1;
    min-width: 200px;
}

.select-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: inherit;
}

.select-group select,
.compare-form select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    font-size: 0.95rem;
    font-family: inherit;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.95);
    color: #2d3748;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234a5568' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.select-group select:focus,
.compare-form select:focus {
    outline: none;
    border-color: #38b2ac;
    box-shadow: 0 0 0 3px rgba(56, 178, 172, 0.3);
}

.vs-divider {
    font-size: 1.25rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem 0;
    text-align: center;
    flex-shrink: 0;
}

/* Outside hero context — dark text */
.compare-cta .vs-divider {
    color: #a0aec0;
}

.compare-cta .select-group select {
    border-color: #cbd5e0;
    background-color: #fff;
}

.compare-cta .select-group label {
    color: #4a5568;
}

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 0.65rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    line-height: 1.4;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background-color: #38b2ac;
    color: #fff;
    box-shadow: 0 2px 6px rgba(56, 178, 172, 0.35);
}

.btn-primary:hover {
    background-color: #319795;
    color: #fff;
    box-shadow: 0 4px 12px rgba(56, 178, 172, 0.4);
}

.btn-secondary {
    background-color: #edf2f7;
    color: #2d3748;
}

.btn-secondary:hover {
    background-color: #e2e8f0;
}

/* --------------------------------------------------------------------------
   7. Sections
   -------------------------------------------------------------------------- */
.section {
    margin-bottom: 2.5rem;
}

.section-intro {
    color: #718096;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

/* --------------------------------------------------------------------------
   8. Featured Comparisons Grid
   -------------------------------------------------------------------------- */
.featured-comparisons h2,
.browse-section h2,
.recent-boats h2 {
    margin-bottom: 1rem;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.comparison-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 1.25rem 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none;
    color: #2d3748;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.comparison-card:hover {
    border-color: #2b6cb0;
    box-shadow: 0 4px 16px rgba(43, 108, 176, 0.12);
    transform: translateY(-2px);
    text-decoration: none;
    color: #2d3748;
}

.comparison-card .boat-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1a365d;
}

.comparison-card .vs {
    font-size: 0.75rem;
    font-weight: 700;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.comparison-card .view-count {
    font-size: 0.8rem;
    color: #a0aec0;
    margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   9. Tag Cloud / Browse Tags
   -------------------------------------------------------------------------- */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 0.875rem;
    color: #2d3748;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tag:hover {
    background-color: #2b6cb0;
    border-color: #2b6cb0;
    color: #fff;
    text-decoration: none;
}

.tag-active {
    background-color: #1a365d;
    border-color: #1a365d;
    color: #fff;
}

.tag-active:hover {
    background-color: #2b4a7f;
    border-color: #2b4a7f;
}

.tag-count {
    color: #a0aec0;
    font-size: 0.8rem;
    margin-left: 0.15rem;
}

.tag:hover .tag-count {
    color: rgba(255, 255, 255, 0.8);
}

/* --------------------------------------------------------------------------
   10. Browse Grid
   -------------------------------------------------------------------------- */
.browse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
}

.browse-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: #2d3748;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

a.browse-item:hover {
    border-color: #2b6cb0;
    box-shadow: 0 2px 8px rgba(43, 108, 176, 0.1);
    text-decoration: none;
    color: #2d3748;
}

.browse-item strong {
    color: #1a365d;
    font-size: 0.95rem;
}

.browse-item .count {
    font-size: 0.8rem;
    color: #a0aec0;
}

/* --------------------------------------------------------------------------
   11. Boat List (Recent boats, etc.)
   -------------------------------------------------------------------------- */
.boat-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.boat-list-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #edf2f7;
    text-decoration: none;
    color: #2d3748;
    transition: background-color 0.15s ease;
}

.boat-list-item:first-child {
    border-top: 1px solid #edf2f7;
}

.boat-list-item:hover {
    background-color: #edf2f7;
    text-decoration: none;
    color: #2d3748;
}

.boat-list-item strong {
    color: #1a365d;
}

.boat-meta {
    font-size: 0.85rem;
    color: #718096;
}

/* --------------------------------------------------------------------------
   12. Boat Card Grid (Similar boats)
   -------------------------------------------------------------------------- */
.boat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.boat-card {
    display: block;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none;
    color: #2d3748;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.boat-card:hover {
    border-color: #2b6cb0;
    box-shadow: 0 4px 16px rgba(43, 108, 176, 0.12);
    transform: translateY(-2px);
    text-decoration: none;
    color: #2d3748;
}

.boat-card h3 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.boat-card .boat-meta {
    font-size: 0.825rem;
    color: #718096;
}

/* --------------------------------------------------------------------------
   13. Breadcrumb
   -------------------------------------------------------------------------- */
.breadcrumb {
    font-size: 0.85rem;
    color: #a0aec0;
    margin-bottom: 1.25rem;
    padding: 0.5rem 0;
}

.breadcrumb a {
    color: #2b6cb0;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #4a5568;
}

/* --------------------------------------------------------------------------
   14. Boat Detail — Hero Specs
   -------------------------------------------------------------------------- */
.boat-detail h1 {
    margin-bottom: 1.25rem;
}

.hero-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #ebf8ff 0%, #f0fff4 100%);
    border: 1px solid #bee3f8;
    border-radius: 10px;
}

.hero-spec {
    flex: 1;
    min-width: 140px;
    text-align: center;
    padding: 0.5rem;
}

.spec-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #718096;
    margin-bottom: 0.25rem;
}

.spec-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a365d;
}

.spec-value a {
    color: #1a365d;
}

.spec-value a:hover {
    color: #2b6cb0;
}

.spec-value small {
    font-weight: 400;
    font-size: 0.8rem;
    color: #718096;
}

/* --------------------------------------------------------------------------
   15. Specs Table
   -------------------------------------------------------------------------- */
.specs-section,
.ratios-section,
.description-section,
.compare-cta,
.related-comparisons,
.similar-boats,
.specs-comparison,
.performance-comparison,
.comparison-text {
    margin-bottom: 2.5rem;
}

.specs-table,
.compare-table,
.boat-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    font-size: 0.925rem;
}

.specs-table thead,
.compare-table thead,
.boat-table thead {
    background: #1a365d;
    color: #fff;
}

.specs-table th,
.compare-table th,
.boat-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.specs-table td,
.compare-table td,
.boat-table td {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid #edf2f7;
    vertical-align: top;
}

/* Alternating row backgrounds */
.specs-table tbody tr:nth-child(even):not(.spec-group-header),
.boat-table tbody tr:nth-child(even) {
    background-color: #f7fafc;
}

.specs-table tbody tr:hover:not(.spec-group-header),
.compare-table tbody tr:hover:not(.spec-group-header),
.boat-table tbody tr:hover {
    background-color: #edf2f7;
}

/* Group headers within tables */
.spec-group-header td {
    background: #edf2f7;
    font-weight: 700;
    font-size: 0.85rem;
    color: #1a365d;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.6rem 1rem;
    border-bottom: 2px solid #e2e8f0;
}

/* Links in tables */
.boat-table td a {
    color: #2b6cb0;
}

.boat-table td a:hover {
    color: #1a365d;
}

/* Responsive table wrapper */
.boat-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 2rem;
    border-radius: 10px;
}

/* --------------------------------------------------------------------------
   16. Compare Table — Better Cell Highlighting
   -------------------------------------------------------------------------- */
.compare-table {
    table-layout: fixed;
}

.compare-table th:first-child,
.compare-table td:first-child {
    width: 25%;
    font-weight: 600;
    color: #4a5568;
}

.compare-table th:nth-child(2),
.compare-table th:nth-child(3),
.compare-table td:nth-child(2),
.compare-table td:nth-child(3) {
    width: 37.5%;
}

.cell-better {
    background-color: #c6f6d5 !important;
    font-weight: 600;
}

/* Alternating rows for compare table */
.compare-table tbody tr:nth-child(even):not(.spec-group-header) {
    background-color: #f7fafc;
}

.compare-table tbody tr:nth-child(even):not(.spec-group-header) .cell-better {
    background-color: #b2f0c5 !important;
}

/* --------------------------------------------------------------------------
   17. Performance Bars (Compare page)
   -------------------------------------------------------------------------- */
.perf-bars {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.perf-metric {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.25rem;
}

.perf-label {
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.perf-label small {
    font-weight: 400;
    font-size: 0.8rem;
    color: #a0aec0;
}

.perf-bar-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.perf-boat-name {
    flex: 0 0 140px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #4a5568;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.perf-bar {
    flex: 1;
    height: 28px;
    background: #edf2f7;
    border-radius: 6px;
    overflow: hidden;
}

.perf-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #2b6cb0, #4299e1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    padding: 0 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    min-width: fit-content;
    transition: width 0.6s ease;
    white-space: nowrap;
}

.perf-bar-fill.bar-winner {
    background: linear-gradient(90deg, #38a169, #48bb78);
}

/* --------------------------------------------------------------------------
   18. Ratio Cards (Boat detail page)
   -------------------------------------------------------------------------- */
.ratio-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.ratio-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.5rem;
}

.ratio-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}

.ratio-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1a365d;
    margin-bottom: 0.75rem;
}

.ratio-bar {
    height: 8px;
    background: #edf2f7;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.ratio-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #2b6cb0, #38b2ac);
    border-radius: 4px;
    transition: width 0.6s ease;
}

.ratio-bar-inverted {
    background: linear-gradient(90deg, #38b2ac, #2b6cb0);
}

.ratio-interpretation {
    font-size: 0.9rem;
    color: #4a5568;
    margin-bottom: 0.25rem;
}

.ratio-note {
    margin-bottom: 0;
}

.ratio-note small {
    color: #a0aec0;
    font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   19. Badges
   -------------------------------------------------------------------------- */
.badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 0.35rem;
}

.badge-green {
    background-color: #c6f6d5;
    color: #22543d;
}

.badge-blue {
    background-color: #bee3f8;
    color: #2a4365;
}

.badge-red {
    background-color: #fed7d7;
    color: #742a2a;
}

/* --------------------------------------------------------------------------
   20. Comparison Text (Compare page narrative)
   -------------------------------------------------------------------------- */
.comparison-text h2 {
    margin-bottom: 1rem;
}

.comparison-text h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #1a365d;
    font-size: 1.15rem;
}

.comparison-text p {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   21. Comparison List (Related / Popular comparisons)
   -------------------------------------------------------------------------- */
.comparison-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comparison-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid #edf2f7;
}

.comparison-list li:last-child {
    border-bottom: none;
}

.comparison-list a {
    font-weight: 500;
    color: #2b6cb0;
}

.comparison-list a:hover {
    color: #1a365d;
}

.comparison-list .view-count {
    font-size: 0.825rem;
    color: #a0aec0;
    margin-left: 0.35rem;
}

/* --------------------------------------------------------------------------
   22. Compare CTA Section
   -------------------------------------------------------------------------- */
.compare-cta {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 2rem;
}

.compare-cta h2 {
    margin-bottom: 0.5rem;
}

.compare-cta p {
    color: #718096;
    margin-bottom: 1rem;
}

.compare-cta .compare-selects {
    justify-content: flex-start;
}

/* --------------------------------------------------------------------------
   23. Description Section (Boat detail)
   -------------------------------------------------------------------------- */
.description-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 2rem;
}

.description-section p {
    color: #4a5568;
    line-height: 1.75;
}

/* --------------------------------------------------------------------------
   24. Length Nav (Browse by length page)
   -------------------------------------------------------------------------- */
.length-nav {
    margin-top: 2rem;
}

.length-nav h3 {
    margin-bottom: 0.75rem;
    color: #4a5568;
}

/* --------------------------------------------------------------------------
   25. Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: #1a365d;
    color: rgba(255, 255, 255, 0.7);
    padding: 2rem 0;
    margin-top: auto;
    text-align: center;
    font-size: 0.875rem;
}

.site-footer p {
    margin-bottom: 0.35rem;
}

.site-footer p:last-child {
    margin-bottom: 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
}

/* --------------------------------------------------------------------------
   26. Error / 404 Page
   -------------------------------------------------------------------------- */
.error-page {
    text-align: center;
    padding: 4rem 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.error-page h1 {
    font-size: 2.5rem;
    color: #1a365d;
    margin-bottom: 1rem;
}

.error-page p {
    color: #718096;
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
}

.error-page a {
    color: #2b6cb0;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   27. Utility Classes
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

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

/* --------------------------------------------------------------------------
   28. Responsive — Tablet (768px+)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.65rem; }

    .hero {
        padding: 4rem 2rem;
        margin: -1.5rem -1.5rem 2.5rem;
    }

    .hero h1 {
        font-size: 2.75rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .compare-selects {
        flex-wrap: nowrap;
    }

    .compare-table {
        table-layout: fixed;
    }

    .perf-boat-name {
        flex: 0 0 180px;
    }

    .ratio-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .browse-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .boat-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

/* --------------------------------------------------------------------------
   29. Responsive — Desktop (1024px+)
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }

    .site-main {
        padding: 2rem 0 4rem;
    }

    .hero {
        padding: 5rem 2rem;
        margin: -2rem -2rem 3rem;
        border-radius: 0 0 16px 16px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .comparison-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ratio-cards {
        grid-template-columns: repeat(4, 1fr);
    }

    .hero-specs {
        gap: 0;
    }

    .hero-spec {
        border-right: 1px solid #d3e8f5;
        padding: 0.5rem 1.5rem;
    }

    .hero-spec:last-child {
        border-right: none;
    }
}

/* --------------------------------------------------------------------------
   30. Responsive — Small screens (< 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .site-header .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .site-nav {
        width: 100%;
        padding-bottom: 0.5rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
    }

    .site-nav a {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }

    .hero {
        padding: 2rem 1rem;
        margin: -1.5rem -1rem 1.5rem;
        border-radius: 0;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .select-group {
        min-width: 100%;
    }

    .vs-divider {
        font-size: 1rem;
        padding: 0.25rem 0;
    }

    /* Stacked hero specs on mobile */
    .hero-specs {
        flex-direction: column;
        gap: 0;
    }

    .hero-spec {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        padding: 0.6rem 0.5rem;
        border-bottom: 1px solid #d3e8f5;
    }

    .hero-spec:last-child {
        border-bottom: none;
    }

    .spec-label {
        margin-bottom: 0;
    }

    /* Responsive tables: horizontal scroll */
    .specs-table,
    .compare-table,
    .boat-table {
        font-size: 0.85rem;
    }

    .specs-section,
    .specs-comparison {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .compare-table {
        table-layout: auto;
        min-width: 520px;
    }

    .boat-table {
        min-width: 580px;
    }

    .specs-table th,
    .compare-table th,
    .boat-table th,
    .specs-table td,
    .compare-table td,
    .boat-table td {
        padding: 0.5rem 0.6rem;
    }

    /* Performance bars on mobile */
    .perf-bar-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .perf-boat-name {
        flex: none;
        text-align: left;
        font-size: 0.8rem;
    }

    .perf-bar {
        width: 100%;
    }

    /* Ratio cards stacked */
    .ratio-cards {
        grid-template-columns: 1fr;
    }

    /* Compare CTA */
    .compare-cta {
        padding: 1.25rem;
    }

    /* Browse grid */
    .browse-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .boat-grid {
        grid-template-columns: 1fr;
    }

    /* Boat detail description */
    .description-section {
        padding: 1.25rem;
    }
}

/* --------------------------------------------------------------------------
   31. Accessibility & Focus States
   -------------------------------------------------------------------------- */
:focus-visible {
    outline: 3px solid #38b2ac;
    outline-offset: 2px;
}

.btn:focus-visible {
    outline: 3px solid #2b6cb0;
    outline-offset: 2px;
}

select:focus-visible {
    outline: none;
    border-color: #38b2ac;
    box-shadow: 0 0 0 3px rgba(56, 178, 172, 0.3);
}

/* --------------------------------------------------------------------------
   32. Selection & Scrollbar
   -------------------------------------------------------------------------- */
::selection {
    background-color: #bee3f8;
    color: #1a365d;
}

/* Custom scrollbar for webkit */
::-webkit-scrollbar {
    height: 6px;
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #edf2f7;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* --------------------------------------------------------------------------
   33. Boat Images
   -------------------------------------------------------------------------- */
.boat-hero-image {
    margin: 1.5rem 0;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f4f8;
    text-align: center;
    max-height: 450px;
}

.boat-hero-image img {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    display: block;
}

/* Compare page hero images */
.compare-hero-images {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0 2rem;
    flex-wrap: wrap;
}

.compare-hero-boat {
    flex: 1;
    min-width: 200px;
    max-width: 400px;
    text-align: center;
}

.compare-hero-boat img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    background: #f0f4f8;
}

.compare-hero-boat span {
    display: block;
    margin-top: 0.5rem;
    font-weight: 600;
    color: #1a365d;
}

.compare-hero-vs {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2b6cb0;
    padding: 0 0.5rem;
}

/* Thumbnails in tables/lists */
.boat-thumb {
    width: 80px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    background: #f0f4f8;
    vertical-align: middle;
}

.boat-list-thumb {
    width: 100px;
    height: 65px;
    object-fit: cover;
    border-radius: 8px;
    background: #f0f4f8;
    margin-right: 1rem;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .compare-hero-images {
        flex-direction: column;
    }
    .compare-hero-boat {
        max-width: 100%;
    }
    .compare-hero-boat img {
        height: 150px;
    }
    .boat-thumb {
        width: 60px;
        height: 40px;
    }
}
