/* Product pages use opaque editorial surfaces for readable, distinct presentations. */
:root {
    /* Crystalline Grid Palette (iOS 26 Concept) */
    --bg-canvas: #f5f6f7;

    /* Refined Pastel Mesh (Matches Image) */
    --bg-mesh: #f5f6f7;

    --bg-gradient: var(--bg-mesh);

    /* Glass Material - High Transparency (Global) */
    --glass-bg: rgba(255, 255, 255, 0.82);
    /* Unified High Transparency */
    --glass-blur: 12px;
    /* Stronger blur to compensate for transparency */
    --glass-saturate: 180%;

    /* Volumetric Lighting (Borders) */
    --glass-border-light: rgba(255, 255, 255, 0.6);
    --glass-border-shadow: rgba(0, 0, 0, 0.05);

    /* Shadows */
    --shadow-ambient: 0px 4px 14px rgba(0, 0, 0, 0.035);
    --shadow-direct: 0px 1px 3px rgba(0, 0, 0, 0.02);

    /* Typography */
    --font-main: 'Inter', sans-serif;
    --font-mono: "SF Mono", monospace;

    --text-primary: #1d1d1f;
    --text-secondary: #4a4a4a;
    --text-tertiary: #86868b;

    --accent-color: #007AFF;

    --card-radius: 14px;
    --transition-elastic: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --product-surface: #ffffff;
    --product-muted-surface: #f1f2f3;
    --product-line: #e1e3e5;

    /* Navbar uses global glass settings now */
    --nav-bg: var(--glass-bg);
    --nav-active-bg: #ffffff;
}

[data-theme="dark"] {
    --product-surface: #161a22;
    --product-muted-surface: #202631;
    --product-line: #343c48;
    --bg-canvas: #000000;
    --bg-gradient: #101113;

    --glass-bg: rgba(30, 30, 30, 0.4);
    --glass-border-light: rgba(255, 255, 255, 0.15);
    --glass-border-shadow: rgba(0, 0, 0, 0.3);

    --shadow-ambient: 0px 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-direct: 0px 1px 3px rgba(0, 0, 0, 0.2);

    --text-primary: #F5F5F7;
    --text-secondary: #A1A1A6;
    --text-tertiary: #86868b;

    --accent-color: #007AFF;

    --nav-bg: var(--glass-bg);
    --nav-active-bg: #3a3a3c;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background: var(--bg-gradient);
    background-color: var(--bg-canvas);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Skip Navigation Link - Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-color);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 8px 0;
    z-index: 10000;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Navbar - Floating Pill */
#navbar {
    position: fixed;
    top: 10px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1000;
    pointer-events: none;
}

.nav-links {
    display: flex;
    gap: 5px;
    align-items: center;
    background: var(--nav-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    padding: 6px 8px;
    border-radius: 100px;
    box-shadow:
        inset 0 1px 1px 0 var(--glass-border-light),
        0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    pointer-events: auto;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    padding: 8px 24px;
    border-radius: 100px;
    transition: var(--transition-elastic);
    text-decoration: none;
    opacity: 0.7;
}

.ui-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    color: currentColor;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.focus-icon, .contact-icon, .contact-channel-icon, .section-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: currentColor;
}

.focus-icon { width: 32px; height: 32px; }
.contact-icon { width: 24px; height: 24px; }
.contact-channel-icon, .section-nav-icon { width: 20px; height: 20px; }

.nav-links a:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.2);
}

.nav-links a.active {
    opacity: 1;
    color: var(--text-primary);
    background-color: var(--nav-active-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}



/* Settings Menu */
.settings-container {
    position: relative;
    margin-left: 10px;
}

.settings-btn {
    background: var(--nav-bg);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    box-shadow: inset 0 1px 1px 0 var(--glass-border-light);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-primary);

    transition: var(--transition-elastic);
    cursor: pointer;
}

.settings-btn:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.2);
}

.settings-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    width: 200px;
    background: var(--nav-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 12px;
    display: none;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.settings-dropdown.active {
    display: flex;
    animation: fadeIn 0.2s ease-out;
}

.settings-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.settings-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding-left: 4px;
}

.settings-options {
    display: flex;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
}

.settings-opt {
    flex: 1;
    border: none;
    background: transparent;
    padding: 6px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-opt:hover {
    background: rgba(255, 255, 255, 0.1);
}

.settings-opt.active {
    background: var(--nav-active-bg);
    color: var(--text-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Content */
#content {
    padding-top: 100px;
    min-height: calc(100vh - 200px);
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    color: var(--text-primary);
}

/* Filter Chips */
/* Filter Chips - Matches Navbar Architecture */
.filter-chips-container {
    display: inline-flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
    margin-top: 20px;

    /* Glass Pill Container Style */
    background: var(--nav-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    padding: 6px 8px;
    border-radius: 100px;
    box-shadow:
        inset 0 1px 1px 0 var(--glass-border-light),
        0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);

    /* Center the container itself */
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    max-width: 90%;
}

.filter-chip {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 8px 24px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-elastic);
    color: inherit;
    text-decoration: none;
    text-decoration: none;
    display: inline-block;
    opacity: 0.7;
}

.filter-chip:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.2);
    transform: none;
}

.filter-chip.active {
    background-color: var(--nav-active-bg);
    color: #000000;
    border-color: transparent;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 1;
}

/* Blog Grid */
.blog-list-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    padding: 16px 0;
}

/* Blog Card - High Transparency */
.blog-card {
    border-radius: var(--card-radius);
    background: var(--glass-bg);
    /* Use global high transparency */
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));

    box-shadow:
        inset 0 1px 1px 0 var(--glass-border-light),
        inset 0 -1px 1px 0 var(--glass-border-shadow),
        var(--shadow-ambient),
        var(--shadow-direct);

    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: var(--transition-elastic);
    color: var(--text-primary);
    text-decoration: none;
}

[data-theme="dark"] .blog-card {
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow:
        inset 0 1px 1px 0 rgba(255, 255, 255, 1),
        0 20px 50px -12px rgba(0, 0, 0, 0.12);
}

.blog-card:active {
    transform: scale(0.98);
    opacity: 0.95;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-family: var(--font-main);
    font-size: 0.75rem;
}

.blog-category {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--accent-color);
    opacity: 0.9;
}

.blog-meta span:last-child {
    color: var(--text-tertiary);
    font-family: var(--font-mono);
}

.blog-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.1;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.blog-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

/* Article Detail Styles */
.detail-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    padding: 20px;
    border-radius: var(--card-radius);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        inset 0 1px 1px 0 var(--glass-border-light),
        inset 0 -1px 1px 0 var(--glass-border-shadow),
        var(--shadow-ambient),
        var(--shadow-direct);
}

.article-container {
    max-width: 800px;
    margin: 0 auto;
}

.related-post-card {
    color: inherit;
    text-decoration: none;
}

[data-theme="dark"] .detail-card {
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.article-content {
    /* Removed container constraints to let it fill the card */
    color: var(--text-primary);
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 20px;
    /* Increased top margin (more than bottom) */
    margin-bottom: 20px;
    /* Increased bottom margin */
    text-align: center;
    color: var(--text-primary);
    line-height: 1.2;
    /* Tighter line height */
}

.article-meta {
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.meta-separator {
    color: var(--text-tertiary);
}

.reading-time {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    padding: 12px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.breadcrumbs a {
    color: var(--accent-color);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.breadcrumbs a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.breadcrumb-separator {
    color: var(--text-tertiary);
    user-select: none;
}

.breadcrumb-current {
    color: var(--text-primary);
    font-weight: 500;
}

.article-content ul,
.article-content ol {
    margin-left: 10px;
    margin-bottom: 10px;
    margin-top: 10px;
    list-style-position: inside;
}

.tag-pill {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
    transition: opacity 0.2s ease;
}

.tag-pill:hover {
    opacity: 0.8;
    text-decoration: none;
}

.article-content li {
    margin-bottom: 10px;
    display: list-item;
}

.article-content h1 {
    margin-top: 15px;
    /* Very large top margin */
    margin-bottom: 5px;
    /* Large bottom margin */
    color: var(--text-primary);
}

/* Load More Button */
.load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 100px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition-elastic);
    cursor: pointer;
    box-shadow: var(--shadow-ambient);
    font-family: var(--font-main);
}

.load-more-btn:hover {
    transform: translateY(-2px) scale(1.02);
    background: #ffffff;
    color: #000000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .load-more-btn:hover {
    background: #3a3a3c;
    color: #ffffff;
}

.article-content h2 {
    margin-top: 15px;
    /* Increased top margin */
    margin-bottom: 5px;
    /* Increased bottom margin */
    color: var(--text-primary);
}

/* Responsive Images in Articles */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    margin: 30px auto;
    box-shadow: var(--shadow-ambient);
}

/* Glassmorphic Table of Contents */
.toc-container {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    padding: 0;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    overflow: hidden;
    max-width: 600px;
    /* Increased width */
    /* Limit width like a menu */
    margin-left: auto;
    margin-right: auto;
}

[data-theme="dark"] .toc-container {
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toc-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    padding: 20px 24px 10px;
    margin: 0;
    font-weight: 600;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .toc-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.toc-list a {
    display: flex;
    align-items: center;
    padding: 5px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: background-color 0.2s ease;
    font-size: 1rem;
}

.toc-list a:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .toc-list a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.toc-icon {
    margin-right: 12px;
    opacity: 0.6;
    color: var(--accent-color);
}

.toc-text {
    flex-grow: 1;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

/* Projects Grid */
.product-collection, .product-landing { font-family: 'Inter', var(--font-main); }
.product-collection-heading { max-width: 780px; padding: 20px 0 32px; }
.product-eyebrow { margin: 0 0 14px; font-size: .875rem; font-weight: 600; letter-spacing: .075em; color: var(--text-secondary); }
.product-collection-heading h1 { margin: 0 0 22px; font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 650; line-height: 1.05; letter-spacing: -.055em; }
.product-collection-heading > p:last-child { max-width: 640px; font-size: 1.125rem; line-height: 1.7; color: var(--text-secondary); }
.product-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.product-card { display: grid; grid-template-columns: 68px minmax(0, 1fr); align-items: start; gap: 14px; min-width: 0; overflow: hidden; padding: 16px; border: 1px solid var(--product-line); border-radius: 14px; background: var(--product-surface); color: var(--text-primary); text-decoration: none; transition: transform .22s, box-shadow .22s; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 16px 35px rgba(0,0,0,.09); }
.product-card-art { position: relative; display: flex; align-items: flex-start; justify-content: center; min-height: 68px; padding-top: 2px; background: transparent; }
.product-card-number { display: none; }
.product-icon { width: 56px; height: 56px; object-fit: contain; border-radius: 13px; box-shadow: 0 3px 8px rgba(0,0,0,.08); }
.product-platform { display: none; }
.product-card-body { min-width: 0; display: flex; flex-direction: column; padding: 0; }
.product-card-body .product-eyebrow { font-size: .875rem; margin-bottom: 10px; }
.product-card-body h2 { font-size: 1.2rem; margin: 0 0 8px; line-height: 1.25; letter-spacing: -.035em; }
.product-card-description { flex: 1; color: var(--text-secondary); margin: 0; font-size: 1rem; line-height: 1.65; }
.product-card-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--product-line); font-weight: 600; font-size: .875rem; }
.product-card-link > span { font-size: 1.3rem; }
.product-back { display: inline-block; color: var(--text-secondary); text-decoration: none; font-size: .875rem; margin: 16px 0 36px; }
.product-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.product-name { margin: 0 0 16px; font-size: 1.2rem; font-weight: 650; }
.product-hero h1 { font-size: clamp(2.25rem,4.2vw,3.5rem); line-height: 1.06; font-weight: 650; letter-spacing: -.06em; margin: 0 0 20px; overflow-wrap: break-word; }
.product-hero-intro { color: var(--text-secondary); font-size: 1.125rem; line-height: 1.75; max-width: 580px; }
.product-action-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.product-button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 48px; padding: 13px 21px; border-radius: 10px; background: var(--text-primary); color: var(--product-surface); font-size: .9375rem; font-weight: 600; text-decoration: none; line-height: 1.4; }
.product-button-secondary { border: 1px solid var(--product-line); background: var(--product-surface); color: var(--text-primary); }
.product-text-button { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 0; font: inherit; font-size: .9375rem; color: var(--text-primary); background: none; border: 0; cursor: pointer; text-decoration: none; }
.product-hero-art { position: relative; min-height: 450px; display: flex; align-items: center; justify-content: center; padding: 50px 36px; overflow: hidden; border-radius: 28px; background: var(--product-muted-surface); background: color-mix(in srgb,var(--product-accent) 14%,var(--product-surface)); }
.product-hero-art .product-icon { width: 200px; height: 200px; border-radius: 42px; }
.product-screen { display: block; object-fit: contain; width: auto; max-width: 100%; height: 390px; border-radius: 16px; box-shadow: 0 20px 45px rgba(0,0,0,.18); }
.product-hero-art.has-screen { min-height: 510px; }
.product-section-nav { display: flex; flex-wrap: wrap; gap: 12px 32px; padding: 26px 0; margin: 48px 0 0; border-top: 1px solid var(--product-line); border-bottom: 1px solid var(--product-line); }
.product-section-nav button { border: 0; min-height: 44px; background: none; font: inherit; font-size: .9375rem; color: var(--text-secondary); cursor: pointer; padding: 8px 0; }
.product-section-nav button:hover, .product-back:hover, .product-text-button:hover { text-decoration: underline; text-underline-offset: 5px; }
.product-section { padding: 40px 0; scroll-margin-top: 110px; }
.product-section h2, .product-closing h2 { font-size: clamp(1.8rem,3vw,2.65rem); line-height: 1.16; letter-spacing: -.045em; font-weight: 600; margin: 0 0 22px; }
.product-overview { display: grid; grid-template-columns: 1.4fr 1fr; gap: 70px; }
.product-overview p:not(.product-eyebrow), .product-note > p:not(.product-eyebrow) { color: var(--text-secondary); font-size: 1.0625rem; line-height: 1.85; margin-bottom: 0; }
.product-overview aside { padding: 28px; border-left: 3px solid var(--product-accent); background: var(--product-surface); border-radius: 0 15px 15px 0; align-self: start; }
.product-section-heading { margin-bottom: 30px; }
.product-feature-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border: 1px solid var(--product-line); border-radius: 20px; overflow: hidden; gap: 1px; background: var(--product-line); }
.product-feature-grid article { padding: 32px; background: var(--product-surface); }
.product-feature-number { display: block; color: var(--text-secondary); font-size: .875rem; margin-bottom: 28px; }
.product-feature-grid h3, .product-steps h3 { font-size: 1.2rem; line-height: 1.35; letter-spacing: -.025em; margin: 0 0 12px; }
.product-feature-grid p, .product-steps p { color: var(--text-secondary); font-size: 1rem; line-height: 1.75; margin: 0; }
.product-steps { list-style: none; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding: 0; margin: 0; gap: 36px; }
.product-steps li { border-top: 1px solid var(--product-line); padding-top: 25px; }
.product-steps li > span { display: block; font-size: 1.75rem; letter-spacing: -.04em; margin-bottom: 22px; }
.product-note { padding: 36px 40px; border: 1px solid var(--product-line); border-radius: 20px; background: var(--product-surface); }
.product-note a { display: inline-block; margin-top: 20px; color: var(--text-primary); font-size: .9375rem; }
.product-closing { margin-top: 65px; padding: 42px 0; border-top: 1px solid var(--product-line); border-bottom: 1px solid var(--product-line); }
.product-related { grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 30px; }
.product-screenshots { display: flex; gap: 28px; overflow-x: auto; padding: 0 0 16px; scroll-snap-type: x proximity; }
.product-screenshots figure { flex: 0 0 min(280px,80vw); margin: 0; scroll-snap-align: start; }
.product-screenshots img { width: 100%; max-height: 560px; object-fit: contain; border-radius: 16px; }
.product-screenshots figcaption { margin-top: 12px; font-size: .875rem; color: var(--text-secondary); line-height: 1.6; }
.product-collection a:focus-visible, .product-landing a:focus-visible, .product-landing button:focus-visible { outline: 3px solid var(--accent-color); outline-offset: 5px; }
@media (max-width: 1000px) { .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .product-hero { gap: 30px; } .product-overview { gap: 35px; } }
@media (max-width: 680px) {
    .product-grid, .product-hero, .product-overview, .product-feature-grid, .product-steps { grid-template-columns: 1fr; }
    .product-collection-heading { padding: 15px 0 30px; }
    .product-card { grid-template-columns: 60px minmax(0, 1fr); gap: 12px; padding: 14px; }
    .product-icon { width: 52px; height: 52px; }
    .product-hero-art { min-height: 300px; }
    .product-hero-art .product-icon { width: 160px; height: 160px; }
    .product-hero-art.has-screen { min-height: 440px; }
    .product-screen { height: 350px; }
    .product-section { padding: 42px 0; }
    .product-section-nav { margin-top: 32px; padding: 15px 0; gap: 8px 20px; }
    .product-feature-grid article { padding: 25px; }
    .product-feature-number { margin-bottom: 20px; }
    .product-note { padding: 28px; }
    .product-steps { gap: 26px; }
    .product-closing { margin-top: 42px; }
}
@media (prefers-reduced-motion: reduce) { .product-card { transition: none; } .product-card:hover { transform: none; } }

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    padding: 16px 0;
}

.project-card {
    border-radius: 14px;
    background: var(--glass-bg);
    /* Use global high transparency */
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));

    box-shadow:
        inset 0 1px 1px 0 var(--glass-border-light),
        inset 0 -1px 1px 0 var(--glass-border-shadow),
        var(--shadow-ambient),
        var(--shadow-direct);

    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 16px;
    /* Increased top padding for content */
    margin-top: 0;
    /* Space for the overlapping image */

    transition: var(--transition-elastic);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    position: relative;
    /* For absolute positioning of image */
    overflow: hidden;
    /* Allow image to overflow */
}

[data-theme="dark"] .project-card {
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-card,
.project-card,
.related-post-card {
    color: var(--text-primary);
    text-decoration: none;
}

.project-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow:
        inset 0 1px 1px 0 rgba(255, 255, 255, 1),
        0 20px 50px -12px rgba(0, 0, 0, 0.12);
    z-index: 10;
}

.project-image-wrapper {
    position: relative;
    width: 56px;
    height: 56px;
    grid-column: 1;
    grid-row: 1;
    z-index: 2;
}

.project-image-container {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    background: var(--card-bg);
    /* Fallback */
}

.project-image {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--glass-bg);
    /* Create a border that matches/blends or frames it */
    /* If we want it to look like a cutout, we might need the background color of the body, 
       but since the body is a mesh gradient, a solid border is safer/cleaner. */
}

.project-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-purple));
    border-radius: 50%;
    border: 4px solid var(--glass-bg);
}

.project-info-banner {
    width: 100%;
    grid-column: 2;
    grid-row: 1;
}

.project-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
    margin-top: 0;
    color: var(--accent-color);
}

.project-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* About Section */
.about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.about-profile-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: var(--shadow-ambient);
}

.about-text {
    max-width: 900px;
    text-align: left;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.about-timeline {
    position: relative;
    display: grid;
    gap: 28px;
    margin: 44px 0;
    padding-left: 28px;
}

.about-timeline::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 6px;
    width: 2px;
    background: rgba(0, 122, 255, 0.18);
}

.timeline-item {
    position: relative;
}

.timeline-item::before {
    content: "";
    position: absolute;
    top: 8px;
    left: -28px;
    width: 14px;
    height: 14px;
    border: 3px solid var(--bg-canvas);
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 0 0 1px rgba(0, 122, 255, 0.18);
}

.timeline-date {
    display: block;
    margin-bottom: 6px;
    color: var(--accent-color);
    font-size: 0.86rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

.timeline-item h3 {
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 1.08rem;
    line-height: 1.35;
}

.timeline-item p {
    margin-bottom: 0;
}

.about-education {
    margin: 48px 0 36px;
}

.about-education h3 {
    margin-bottom: 18px;
    color: var(--text-primary);
    font-size: 1.25rem;
    line-height: 1.35;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.education-grid article {
    padding: 18px;
    border-radius: 18px;
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-ambient);
}

.education-grid span {
    display: block;
    margin-bottom: 8px;
    color: var(--accent-color);
    font-size: 0.82rem;
    font-weight: 700;
}

.education-grid strong {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 0.98rem;
    line-height: 1.35;
}

.education-grid p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Contact */
.contact-container {
    text-align: center;
    padding: 60px 20px;
}

.contact-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.contact-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.contact-btn {
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 100px;
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-elastic);
    cursor: pointer;
    box-shadow: var(--shadow-ambient);
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
    background: #ffffff;
    color: #000000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Post Navigation (Previous/Next) */
.post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
    gap: 20px;
    width: 100%;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-elastic);
    cursor: pointer;
    font-size: 1rem;
    max-width: 48%;
    min-height: 48px;
    /* Minimum touch target size */
}

.nav-btn:hover {
    transform: translateY(-2px);
}

.nav-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Previous Button - Glassy/Transparent (Like "Skip") */
.nav-btn-prev {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
}

.nav-btn-prev:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

/* Next Button - Solid White (Like "Next") */
.nav-btn-next {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin-left: auto;
    /* Push to right if alone */
}

.nav-btn-next:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px) scale(1.02);
}

/* Dark theme adjustments */
[data-theme="dark"] .nav-btn-next {
    background: #ffffff;
    color: #000000;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {

    /* Typography & Spacing */
    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    #content {
        padding-top: 80px;
        padding-left: 10px;
        /* Reduced side padding */
        padding-right: 10px;
    }

    .blog-card,
    .detail-card {
        padding: 24px;
    }

    .project-card { padding: 16px; }

    /* Grid Adjustments for Mobile */
    .blog-list-container,
    .projects-container {
        grid-template-columns: 1fr;
        /* Force single column */
        gap: 16px;
    }

    /* Tag Menu - Horizontal Scroll */
    .filter-chips-container {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        max-width: 100%;
        left: 0;
        transform: none;
        margin: 80px 0 30px 0;
        padding: 6px 15px;
        /* Hide scrollbar */
        -ms-overflow-style: none;
        scrollbar-width: none;
        /* Ensure pill shape is maintained visually */
        border-radius: 100px;
        /* Allow scrolling to edges */
        width: 100%;
        box-sizing: border-box;
    }

    .filter-chips-container::-webkit-scrollbar {
        display: none;
    }

    .filter-chip {
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Navbar Adjustments - Better touch targets */
    .nav-links {
        padding: 6px 8px;
        gap: 4px;
    }

    .nav-links a {
        padding: 8px 12px;
        /* Improved touch target */
        font-size: 0.85rem;
        /* More readable */
        min-height: 36px;
        /* Minimum touch target */
        display: flex;
        align-items: center;
    }
}

/* Glassmorphic Table */
.table-container {
    overflow-x: auto;
    margin: 30px 0;
    border-radius: 16px;
    box-shadow: var(--shadow-ambient);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    border-radius: 16px;
    overflow: hidden;
}

th,
td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
}

th {
    background-color: rgba(255, 255, 255, 0.3);
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

[data-theme="dark"] th {
    background-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] th,
[data-theme="dark"] td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

tr:last-child td {
    border-bottom: none;
}

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding: 20px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

.cookie-consent-banner.show {
    transform: translateY(0);
}

[data-theme="dark"] .cookie-consent-banner {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1;
    min-width: 300px;
}

.cookie-consent-text p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-consent-text p:first-child {
    color: var(--text-primary);
    margin-bottom: 8px;
}

.cookie-consent-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: var(--accent-color);
    color: white;
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.cookie-btn-decline {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-decline:hover {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent-actions {
        width: 100%;
    }

    .cookie-btn {
        flex: 1;
    }
}

/* Additional Mobile Optimizations */
@media (max-width: 768px) {

    /* Breadcrumbs - Horizontal scroll on mobile */
    .breadcrumbs {
        overflow-x: auto;
        white-space: nowrap;
        padding: 12px 4px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .breadcrumbs::-webkit-scrollbar {
        display: none;
    }

    /* Article Title - Smaller on mobile */
    .article-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    /* Reading time and meta - Better wrapping */
    .article-meta {
        font-size: 0.85rem;
    }

    /* Settings button - Larger touch target */
    .settings-btn {
        width: 44px;
        height: 44px;
    }

    /* Post navigation - Stack vertically with better spacing */
    .post-navigation {
        flex-direction: column-reverse;
        /* Next button appears first (top), Previous button second (bottom) */
        gap: 16px;
    }

    .nav-btn {
        width: 100%;
        max-width: 100%;
        text-align: center;
        padding: 16px 32px;
        font-size: 1rem;
        min-height: 52px;
        /* Larger touch target on mobile */
    }

    .nav-btn-next {
        margin-left: 0;
        /* Remove auto margin on mobile */
    }

    /* About profile image - Smaller */
    .about-profile-img {
        width: 150px;
        height: 150px;
    }

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

    /* Back link - Larger touch target */
    .back-link {
        display: inline-block;
        padding: 8px 0;
        margin-bottom: 16px;
    }

    /* TOC - Full width on mobile */
    .toc-container {
        max-width: 100%;
    }

    /* Cookie consent - Smaller text */
    .cookie-consent-text p {
        font-size: 0.85rem;
    }

    .cookie-btn {
        padding: 12px 20px;
        font-size: 0.85rem;
    }

    /* Load More button - Larger touch target */
    .load-more-btn {
        padding: 16px 40px;
        font-size: 1rem;
        min-height: 52px;
        width: 100%;
        max-width: 300px;
    }

    /* Improved touch highlight for all interactive elements */
    a,
    button,
    .blog-card,
    .project-card,
    .filter-chip {
        -webkit-tap-highlight-color: rgba(0, 122, 255, 0.2);
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .section-title {
        font-size: 1.6rem;
    }

    .article-title {
        font-size: 1.5rem;
    }

    .breadcrumbs {
        font-size: 0.75rem;
    }

    .nav-links a {
        min-height: 44px;
        padding: 8px 3px;
        gap: 3px;
        font-size: 0.65rem;
    }

    .nav-links {
        width: calc(100% - 12px);
        justify-content: space-between;
        gap: 1px;
        padding: 4px 5px;
    }

    .nav-links > .nav-link {
        flex: 1 1 0;
        min-width: 0;
    }

    .nav-links .nav-icon {
        width: 14px;
        height: 14px;
    }

    .settings-container {
        flex: 0 0 auto;
        margin-left: 2px;
    }

    .settings-btn {
        width: 44px;
        height: 44px;
    }
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 10001;
    pointer-events: none;
}

.reading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), #00d4ff);
    width: 0%;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(0, 122, 255, 0.5);
}

[data-theme="dark"] .reading-progress-bar {
    box-shadow: 0 0 10px rgba(0, 122, 255, 0.8);
}

/* Blog Search */
.blog-search-container {
    max-width: 600px;
    margin: 0 auto 20px;
    position: relative;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 16px;
    color: var(--text-tertiary);
    pointer-events: none;
}

.blog-search-input {
    width: 100%;
    padding: 14px 45px 14px 48px;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    color: var(--text-primary);
    font-family: var(--font-main);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-ambient);
}

.blog-search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.blog-search-input::placeholder {
    color: var(--text-tertiary);
}

.search-clear {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s ease;
}

.search-clear:hover {
    color: var(--text-primary);
}

/* Search Results */
.search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-height: 500px;
    overflow-y: auto;
    z-index: 1000;
}

[data-theme="dark"] .search-results {
    border-color: rgba(255, 255, 255, 0.1);
}

.search-result-item {
    display: block;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background 0.2s ease;
    color: inherit;
    text-decoration: none;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-result-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.search-result-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.search-result-preview {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 6px;
}

.search-result-date {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.search-no-results {
    padding: 32px 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.error-container {
    max-width: 640px;
    margin: 64px auto;
    padding: 32px;
    text-align: center;
    border-radius: var(--card-radius);
    background: var(--glass-bg);
    box-shadow: var(--shadow-ambient);
}

.project-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.error-container {
    max-width: 640px;
    margin: 64px auto;
    padding: 32px;
    text-align: center;
    border-radius: var(--card-radius);
    background: var(--glass-bg);
    box-shadow: var(--shadow-ambient);
}

.project-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.search-more {
    padding: 12px 20px;
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Highlight */
.search-result-title mark,
.search-result-preview mark {
    background: rgba(0, 122, 255, 0.2);
    color: var(--accent-color);
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .blog-search-container {
        max-width: 100%;
        padding: 0 10px;
    }

    .blog-search-input {
        font-size: 0.9rem;
        padding: 12px 40px 12px 44px;
    }

    .search-results {
        max-height: 400px;
    }
}

/* Enhanced Footer with Social Links */
#footer {
    margin-top: 80px;
    padding: 40px 20px 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.social-links {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-ambient);
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.social-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.social-text {
    font-size: 0.85rem;
}

/* RSS special color */
.rss-link {
    color: #FF6600;
}

.rss-link:hover {
    border-color: #FF6600;
    background: rgba(255, 102, 0, 0.1);
}

.rss-link svg {
    fill: #FF6600;
}

.footer-copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
}

@media (max-width: 768px) {
    .social-links {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .social-link {
        width: 100%;
        justify-content: center;
    }

    #footer {
        margin-top: 60px;
    }
}

/* Formula Block - For displaying mathematical formulas */
.formula-block {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.1rem;
    font-style: italic;
    text-align: center;
    padding: 16px 24px;
    margin: 20px 0;
    background: rgba(0, 122, 255, 0.05);
    border-left: 4px solid var(--accent-color);
    border-radius: 8px;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

/* Website-presentation: original rental-business demonstration */
.website-presentation-route {
    background: #f4f6f8;
}

.website-presentation-route #navbar,
.website-presentation-route #footer {
    display: none;
}

.website-presentation-route #content {
    max-width: none;
    padding: 0;
}

.rental-demo {
    --rental-ink: #102333;
    --rental-muted: #5e6c76;
    --rental-navy: #092438;
    --rental-orange: #ff6236;
    --rental-line: #d9e1e4;
    --rental-sand: #eef2f1;
    color: var(--rental-ink);
    background: #fff;
    font-family: var(--font-main);
    overflow: hidden;
}

.rental-demo * { box-sizing: border-box; }
.rental-demo a { color: inherit; }
.rental-demo button, .rental-demo input, .rental-demo select { font: inherit; }
.rental-demo button { cursor: pointer; }
.rental-demo button:focus-visible, .rental-demo a:focus-visible, .rental-demo input:focus-visible, .rental-demo select:focus-visible { outline: 3px solid #1678b7; outline-offset: 3px; }

.rental-demo-notice {
    min-height: 38px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: #ffede7;
    color: #81331d;
    font-size: .78rem;
    font-weight: 600;
    text-align: center;
}

.rental-demo-notice span {
    padding: 3px 7px;
    border-radius: 4px;
    background: var(--rental-orange);
    color: white;
    font-size: .68rem;
    letter-spacing: .09em;
}

.rental-header, .rental-booking, .rental-section, .rental-locations, .rental-contact, .rental-footer {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.rental-header {
    display: flex;
    min-height: 82px;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.rental-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 700; letter-spacing: -.02em; }
.rental-brand img { width: 34px; height: 34px; object-fit: contain; }
.rental-brand span { font-size: .78rem; font-weight: 600; color: var(--rental-muted); letter-spacing: .02em; text-transform: uppercase; }
.rental-header nav { display: flex; align-items: center; gap: 29px; }
.rental-header nav a { color: var(--rental-muted); text-decoration: none; font-size: .9rem; font-weight: 700; }
.rental-header nav a:hover { color: var(--rental-orange); }
.rental-header-cta { border-bottom: 2px solid var(--rental-orange); text-decoration: none; font-weight: 800; font-size: .88rem; padding-bottom: 3px; }

.rental-hero { position: relative; isolation: isolate; min-height: 620px; display: grid; align-items: end; color: white; }
.rental-hero > img, .rental-hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.rental-hero > img { object-fit: cover; object-position: center; z-index: -2; }
.rental-hero-shade { z-index: -1; background: linear-gradient(90deg, rgba(5, 22, 35, .92) 0%, rgba(5, 22, 35, .66) 37%, rgba(5, 22, 35, .14) 75%), linear-gradient(0deg, rgba(5, 22, 35, .42), transparent 48%); }
.rental-hero-content { width: min(1180px, calc(100% - 48px)); margin: 0 auto 88px; max-width: min(1180px, calc(100% - 48px)); }
.rental-hero-content > p:first-child, .rental-overline { color: var(--rental-orange); text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 800; }
.rental-hero h1 { max-width: 650px; margin: 15px 0 18px; font-size: clamp(3rem, 6.7vw, 5.8rem); line-height: .96; letter-spacing: -.065em; }
.rental-hero-text { max-width: 490px; font-size: 1.08rem; line-height: 1.65; color: rgba(255,255,255,.86); margin-bottom: 31px; }
.rental-primary-button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 20px; padding: 13px 21px; border: 0; border-radius: 0; background: var(--rental-orange); color: white; text-decoration: none; font-weight: 800; font-size: .9rem; transition: transform .2s ease, background .2s ease; }
.rental-primary-button:hover { background: #e94c24; transform: translateY(-2px); }
.rental-primary-button span { font-size: 1.25rem; line-height: 1; }
.rental-hero-proof { position: absolute; bottom: 32px; right: max(24px, calc((100% - 1180px) / 2)); display: grid; gap: 3px; padding-left: 18px; border-left: 2px solid var(--rental-orange); }
.rental-hero-proof strong { font-size: 1.6rem; letter-spacing: -.05em; }.rental-hero-proof span { font-size: .78rem; color: rgba(255,255,255,.76); }

.rental-booking { position: relative; z-index: 1; display: grid; grid-template-columns: .8fr 1.7fr; gap: 35px; padding: 37px 42px 28px; margin-top: -52px; background: white; box-shadow: 0 18px 46px rgba(11, 36, 52, .18); }
.rental-booking h2, .rental-section h2, .rental-locations h2, .rental-contact h2 { margin-top: 7px; font-size: clamp(1.75rem, 3vw, 2.7rem); letter-spacing: -.05em; line-height: 1.05; }
.rental-booking-form { display: grid; grid-template-columns: 1.25fr 1fr 1fr auto; align-items: end; gap: 13px; }
.rental-booking label { display: grid; gap: 8px; color: var(--rental-muted); font-size: .76rem; font-weight: 800; }
.rental-booking input, .rental-booking select { min-height: 50px; padding: 0 11px; border: 1px solid var(--rental-line); background: white; color: var(--rental-ink); border-radius: 0; }
.rental-booking .rental-primary-button { min-width: 140px; }.rental-form-feedback { grid-column: 2 / -1; min-height: 20px; color: #17674e; font-size: .82rem; font-weight: 600; }

.rental-section { padding-top: 110px; }.rental-section-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: 45px; align-items: end; }.rental-section-heading > p { color: var(--rental-muted); line-height: 1.65; max-width: 390px; }
.rental-categories { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 42px; }
.rental-category-card { display: grid; gap: 12px; min-height: 225px; padding: 25px; border: 1px solid var(--rental-line); background: white; color: var(--rental-ink); text-align: left; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }.rental-category-card:hover { transform: translateY(-5px); border-color: var(--rental-orange); box-shadow: 0 14px 30px rgba(9,36,56,.1); }.rental-category-card > span:first-child { color: var(--rental-orange); font-size: 2.1rem; line-height: 1; }.rental-category-card strong { font-size: 1.05rem; letter-spacing: -.03em; }.rental-category-card small { flex: 1; color: var(--rental-muted); font-size: .82rem; line-height: 1.55; }.rental-category-link { color: var(--rental-orange); font-size: .8rem; font-weight: 800; }.rental-category-link b { padding-left: 4px; font-size: 1rem; }

.rental-results { padding-bottom: 8px; }.rental-results-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 25px; }.rental-filter { display: flex; gap: 6px; flex-wrap: wrap; }.rental-filter button { min-height: 37px; padding: 7px 12px; background: transparent; border: 1px solid var(--rental-line); color: var(--rental-muted); font-size: .75rem; font-weight: 800; }.rental-filter button.is-active, .rental-filter button:hover { color: white; background: var(--rental-navy); border-color: var(--rental-navy); }
.rental-vehicles { display: grid; gap: 12px; }.rental-vehicle { display: grid; grid-template-columns: 185px 1fr auto; align-items: stretch; min-height: 172px; border-top: 1px solid var(--rental-line); border-bottom: 1px solid var(--rental-line); background: white; }.rental-vehicle + .rental-vehicle { border-top: 0; }.rental-vehicle-art { display: grid; place-items: center; color: white; background: linear-gradient(135deg, #1d4c64, #092438); }.rental-vehicle-art--aerial { background: linear-gradient(135deg, #7c421f, #e65a2d); }.rental-vehicle-art--earth { background: linear-gradient(135deg, #49654d, #17362f); }.rental-vehicle-art span { font-size: 4rem; filter: grayscale(1) brightness(2); }.rental-vehicle-copy { padding: 23px; }.rental-vehicle-copy > p { color: var(--rental-orange); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }.rental-vehicle-copy h3 { margin: 4px 0 14px; font-size: 1.35rem; letter-spacing: -.04em; }.rental-vehicle-copy ul { display: flex; gap: 18px; padding: 0; list-style: none; color: var(--rental-muted); font-size: .78rem; }.rental-vehicle-copy li::before { content: '✓'; color: var(--rental-orange); margin-right: 5px; }.rental-vehicle-price { min-width: 175px; padding: 25px; display: grid; justify-items: start; align-content: center; border-left: 1px solid var(--rental-line); }.rental-vehicle-price span, .rental-vehicle-price small { color: var(--rental-muted); font-size: .72rem; }.rental-vehicle-price strong { font-size: 1.8rem; line-height: 1; letter-spacing: -.06em; }.rental-outline-button { min-height: 37px; margin-top: 15px; padding: 7px 11px; border: 1px solid var(--rental-navy); background: transparent; color: var(--rental-navy); font-size: .75rem; font-weight: 800; }.rental-outline-button:hover { background: var(--rental-navy); color: white; }.rental-empty { padding: 30px; text-align: center; color: var(--rental-muted); }

.rental-service-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 110px; background: var(--rental-navy); color: white; }.rental-service-grid article { min-height: 280px; padding: 42px max(30px, calc((100vw - 1180px) / 2)); padding-right: 44px; border-right: 1px solid rgba(255,255,255,.18); }.rental-service-grid article + article { padding-left: 42px; }.rental-service-grid article:last-child { border-right: 0; }.rental-service-grid span { color: var(--rental-orange); font-size: .75rem; font-weight: 800; letter-spacing: .11em; }.rental-service-grid h2 { margin: 48px 0 12px; font-size: 1.65rem; letter-spacing: -.045em; }.rental-service-grid p { max-width: 280px; color: rgba(255,255,255,.68); line-height: 1.62; font-size: .9rem; }

.rental-locations { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; padding-top: 110px; padding-bottom: 110px; }.rental-locations > div > p:last-child { margin-top: 17px; max-width: 420px; color: var(--rental-muted); line-height: 1.62; }.rental-location-list { display: grid; grid-template-columns: repeat(2, 1fr); align-content: center; border-top: 1px solid var(--rental-line); }.rental-location-list span { padding: 17px 0; border-bottom: 1px solid var(--rental-line); font-size: 1.1rem; font-weight: 800; }.rental-location-list span:nth-child(odd) { border-right: 1px solid var(--rental-line); padding-right: 20px; }.rental-location-list span:nth-child(even) { padding-left: 20px; }
.rental-contact { padding: 70px min(9vw, 105px); margin-bottom: 0; background: #e7efec; }.rental-contact h2 { max-width: 740px; margin-bottom: 16px; font-size: clamp(2.1rem, 4vw, 3.7rem); }.rental-contact > p:not(.rental-overline) { max-width: 590px; color: var(--rental-muted); line-height: 1.65; margin-bottom: 28px; }.rental-footer { display: flex; justify-content: space-between; gap: 20px; padding: 26px 0 35px; color: var(--rental-muted); font-size: .78rem; }.rental-footer a { color: var(--rental-ink); text-decoration: none; font-weight: 800; }

/* Presentation refinements: guided choice, tangible fleet imagery and trust signals. */
.rental-need-picker { grid-column: 1 / -1; margin: 0; padding: 0 0 16px; border: 0; }.rental-need-picker legend { margin-bottom: 9px; color: var(--rental-muted); font-size: .76rem; font-weight: 800; }.rental-need-picker > div { display: flex; flex-wrap: wrap; gap: 7px; }.rental-need-picker button { min-height: 37px; padding: 7px 12px; border: 1px solid var(--rental-line); background: white; color: var(--rental-muted); font-size: .75rem; font-weight: 800; }.rental-need-picker button:hover, .rental-need-picker button.is-selected { border-color: var(--rental-orange); background: #fff2ed; color: var(--rental-orange); }
.rental-fulfilment-picker { grid-column: 1 / -1; margin: 0; padding: 0 0 3px; border: 0; }.rental-fulfilment-picker legend { margin-bottom: 9px; color: var(--rental-muted); font-size: .76rem; font-weight: 800; }.rental-fulfilment-picker > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }.rental-fulfilment-picker button { display: grid; justify-items: start; gap: 3px; min-height: 58px; padding: 10px 12px; border: 1px solid var(--rental-line); background: white; color: var(--rental-ink); text-align: left; }.rental-fulfilment-picker button strong { font-size: .8rem; }.rental-fulfilment-picker button small { color: var(--rental-muted); font-size: .7rem; }.rental-fulfilment-picker button:hover, .rental-fulfilment-picker button.is-selected { border-color: var(--rental-orange); background: #fff2ed; }.rental-fulfilment-picker button.is-selected strong { color: var(--rental-orange); }
.rental-vehicle-art { overflow: hidden; }.rental-vehicle-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }.rental-vehicle:hover .rental-vehicle-art img { transform: scale(1.045); }.rental-vehicle-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: -4px 0 13px; color: var(--rental-muted); font-size: .74rem; font-weight: 700; }.rental-status { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 8px; border-radius: 999px; font-size: .68rem; font-weight: 800; }.rental-status--available { background: #e9f5ef; color: #17674e; }.rental-status--onRequest { background: #fff2e8; color: #9a4a1f; }
.rental-text-button { margin-top: 11px; padding: 0; border: 0; background: transparent; color: var(--rental-orange); font-size: .75rem; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }.rental-text-button:hover { color: #b7391a; }.rental-vehicle-price .rental-outline-button { margin-top: 10px; }
.rental-detail-dialog { position: relative; width: min(760px, calc(100% - 30px)); max-height: min(760px, calc(100vh - 30px)); padding: 0; border: 0; background: white; color: var(--rental-ink); box-shadow: 0 24px 90px rgba(0,0,0,.35); }.rental-detail-dialog::backdrop { background: rgba(5, 20, 31, .74); backdrop-filter: blur(3px); }.rental-detail-dialog[open] { display: grid; grid-template-columns: .9fr 1.1fr; }.rental-dialog-image { min-height: 100%; background: var(--rental-navy); }.rental-dialog-image img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }.rental-dialog-copy { display: grid; align-content: center; padding: 44px; }.rental-dialog-copy h2 { margin: 8px 0 13px; font-size: clamp(1.8rem, 4vw, 2.7rem); letter-spacing: -.06em; line-height: 1.02; }.rental-dialog-copy > p:not(.rental-overline) { color: var(--rental-muted); line-height: 1.58; }.rental-dialog-copy ul { display: grid; gap: 9px; margin: 24px 0 28px; padding: 0; list-style: none; color: var(--rental-muted); font-size: .84rem; }.rental-dialog-copy li::before { content: '✓'; margin-right: 7px; color: var(--rental-orange); font-weight: 900; }.rental-dialog-close { position: absolute; z-index: 1; top: 12px; right: 12px; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: white; color: var(--rental-navy); font-size: 1.6rem; line-height: 1; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.rental-trust { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; width: min(100% - 48px, 1180px); margin: 96px auto 0; }.rental-testimonial, .rental-partners { padding: clamp(28px, 4vw, 48px); }.rental-testimonial { background: #e7efec; }.rental-testimonial blockquote { max-width: 610px; margin: 19px 0 30px; font-size: clamp(1.55rem, 2.6vw, 2.45rem); font-weight: 800; letter-spacing: -.05em; line-height: 1.13; }.rental-testimonial footer { display: grid; gap: 3px; color: var(--rental-muted); font-size: .82rem; }.rental-testimonial footer strong { color: var(--rental-ink); }.rental-partners { display: grid; align-content: center; gap: 20px; background: var(--rental-navy); color: white; }.rental-partners > p { max-width: 280px; font-size: 1.15rem; font-weight: 800; letter-spacing: -.035em; line-height: 1.2; }.rental-partners > div { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }.rental-partners span { padding: 10px 0; border-top: 1px solid rgba(255,255,255,.22); color: rgba(255,255,255,.82); font-size: .73rem; font-weight: 800; letter-spacing: .08em; }.rental-partners small { color: rgba(255,255,255,.52); font-size: .67rem; }

@media (max-width: 900px) {
    .rental-header nav { gap: 15px; }.rental-booking { grid-template-columns: 1fr; }.rental-booking-form { grid-template-columns: repeat(3, 1fr); }.rental-booking .rental-primary-button { width: 100%; }.rental-form-feedback { grid-column: 1 / -1; }.rental-categories { grid-template-columns: repeat(2, 1fr); }.rental-service-grid article { padding: 35px 25px; }.rental-service-grid article + article { padding-left: 25px; }.rental-trust { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .rental-header, .rental-booking, .rental-section, .rental-locations, .rental-contact, .rental-footer { width: min(100% - 30px, 1180px); }.rental-header { min-height: 72px; }.rental-brand span, .rental-header nav { display: none; }.rental-header-cta { font-size: .76rem; }.rental-hero { min-height: 560px; }.rental-hero-content { width: calc(100% - 30px); margin-bottom: 70px; }.rental-hero h1 { font-size: clamp(3rem, 14vw, 4.45rem); }.rental-hero-proof { bottom: 24px; right: 16px; }.rental-booking { width: calc(100% - 30px); padding: 27px 20px 20px; margin-top: -32px; }.rental-booking-form { grid-template-columns: 1fr; }.rental-fulfilment-picker > div { grid-template-columns: 1fr; }.rental-form-feedback { grid-column: 1; }.rental-section { padding-top: 75px; }.rental-section-heading, .rental-locations { grid-template-columns: 1fr; gap: 22px; }.rental-categories { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 30px; }.rental-category-card { min-height: 200px; padding: 17px; }.rental-results-heading { align-items: start; flex-direction: column; }.rental-vehicle { grid-template-columns: 108px 1fr; }.rental-vehicle-art { min-height: 125px; }.rental-vehicle-art span { font-size: 2.8rem; }.rental-vehicle-copy { padding: 17px; }.rental-vehicle-copy h3 { font-size: 1.1rem; }.rental-vehicle-copy ul { display: none; }.rental-vehicle-price { grid-column: 1 / -1; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 4px 8px; min-width: 0; padding: 13px 16px; border-top: 1px solid var(--rental-line); border-left: 0; }.rental-vehicle-price span { grid-column: 1 / -1; }.rental-vehicle-price small { align-self: end; }.rental-vehicle-price .rental-outline-button { margin: 0; }.rental-service-grid { grid-template-columns: 1fr; margin-top: 75px; }.rental-service-grid article, .rental-service-grid article + article { min-height: 210px; padding: 30px 24px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }.rental-service-grid article:last-child { border-bottom: 0; }.rental-service-grid h2 { margin-top: 28px; }.rental-locations { padding-top: 75px; padding-bottom: 75px; }.rental-trust { width: calc(100% - 30px); margin-top: 70px; }.rental-testimonial, .rental-partners { padding: 28px 24px; }.rental-testimonial blockquote { font-size: 1.6rem; }.rental-detail-dialog[open] { grid-template-columns: 1fr; overflow: auto; }.rental-dialog-image img { min-height: 220px; max-height: 280px; }.rental-dialog-copy { padding: 30px 24px; }.rental-contact { width: calc(100% - 30px); padding: 45px 25px; }.rental-footer { flex-direction: column; }.rental-demo-notice { font-size: .68rem; }
}

[data-theme="dark"] .formula-block {
    background: rgba(0, 122, 255, 0.1);
}

/* Mobile-first interaction refinements for the rental presentation. */
.rental-mini-content { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: clamp(70px, 10vw, 130px) 0; }.rental-mini-content > h1 { max-width: 760px; margin: 10px 0 18px; font-size: clamp(2.6rem, 6vw, 5.3rem); letter-spacing: -.065em; line-height: .96; }.rental-mini-content > p:not(.rental-overline) { max-width: 610px; color: var(--rental-muted); font-size: 1.05rem; line-height: 1.65; }.rental-mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 48px 0; }.rental-mini-grid article, .rental-mini-locations { border: 1px solid var(--rental-line); background: white; }.rental-mini-grid article { display: grid; align-content: start; gap: 12px; min-height: 210px; padding: 25px; }.rental-mini-grid article > p { color: var(--rental-orange); font-size: .75rem; font-weight: 800; letter-spacing: .1em; }.rental-mini-grid h3 { font-size: 1.25rem; letter-spacing: -.04em; }.rental-mini-grid span { color: var(--rental-muted); line-height: 1.55; }.rental-mini-grid strong { margin-top: auto; font-size: .9rem; }.rental-mini-locations { display: grid; grid-template-columns: repeat(3, 1fr); margin: 48px 0; }.rental-mini-locations span { padding: 22px; border-right: 1px solid var(--rental-line); border-bottom: 1px solid var(--rental-line); font-size: 1.05rem; font-weight: 800; }.rental-mini-locations span:nth-child(3n) { border-right: 0; }.rental-mini-locations span:nth-child(n + 4) { border-bottom: 0; }
.rental-header-cta { display: inline-flex; min-height: 44px; align-items: center; padding: 0 4px; }
.rental-filter button, .rental-need-picker button, .rental-outline-button, .rental-text-button { min-height: 44px; font-size: .78rem; }
.rental-text-button { margin-top: 7px; }
.rental-vehicle-price .rental-outline-button { margin-top: 7px; }
.rental-fulfilment-picker button { min-height: 64px; }
.rental-fulfilment-picker button strong { font-size: .88rem; }
.rental-fulfilment-picker button small, .rental-vehicle-price span, .rental-vehicle-price small, .rental-vehicle-meta { font-size: .78rem; }
.rental-dialog-close { width: 44px; height: 44px; }
.rental-quote-page > p:not(.rental-overline) { max-width: 680px; }.rental-quote-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; max-width: 780px; margin-top: 42px; padding: clamp(24px, 4vw, 42px); background: white; box-shadow: 0 18px 46px rgba(11, 36, 52, .12); }.rental-quote-form label { display: grid; gap: 8px; color: var(--rental-muted); font-size: .84rem; font-weight: 800; }.rental-quote-form input, .rental-quote-form select, .rental-quote-form textarea { width: 100%; min-height: 50px; padding: 11px; border: 1px solid var(--rental-line); border-radius: 0; background: white; color: var(--rental-ink); font: inherit; }.rental-quote-form textarea { resize: vertical; }.rental-quote-notes { grid-column: 1 / -1; }.rental-quote-form .rental-primary-button { justify-self: start; min-width: 170px; }.rental-quote-feedback { min-height: 24px; margin-top: 16px; color: #17674e !important; font-weight: 700; }

@media (max-width: 640px) {
    .rental-header { gap: 10px; }.rental-header-cta { font-size: .72rem; }.rental-mini-content { width: calc(100% - 30px); padding: 70px 0; }.rental-mini-grid, .rental-mini-locations, .rental-quote-form { grid-template-columns: 1fr; margin: 32px 0; }.rental-mini-grid article { min-height: 170px; }.rental-mini-locations span, .rental-mini-locations span:nth-child(3n) { border-right: 0; border-bottom: 1px solid var(--rental-line); }.rental-mini-locations span:last-child { border-bottom: 0; }.rental-quote-form { gap: 15px; padding: 24px 20px; }.rental-quote-notes { grid-column: 1; }.rental-quote-form .rental-primary-button { width: 100%; }
}

/* Keyboard and pointer hint for the icon-only settings control. */
html:not([data-style="minimal"]) #settings-btn { position: relative; }
html:not([data-style="minimal"]) .settings-tooltip:not([hidden]) {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    padding: 6px 8px;
    border: 1px solid var(--product-line);
    border-radius: 6px;
    background: var(--product-surface);
    color: var(--text-primary);
    font: 500 .8125rem/1.4 var(--font-main);
    white-space: nowrap;
    pointer-events: auto;
    z-index: 2;
}

/* Small, pointer-only interaction feedback for the main portfolio UI. */
.settings-dropdown.active { animation: settingsFadeIn 120ms ease-out both; }
@keyframes settingsFadeIn { from { opacity: 0; } to { opacity: 1; } }

html:not([data-style="minimal"]) :is(.product-card, .project-card, .blog-card, .editorial-card--featured,
    .related-post-card, .contact-channel, .contact-email-card, .social-link) {
    transition: transform 160ms ease, border-color 160ms ease, background-color 120ms ease;
}
html:not([data-style="minimal"]) :is(.btn, .nav-btn, .product-button, .product-button-secondary,
    .settings-btn, .settings-opt) {
    transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}
.product-card-link > span, .editorial-read span, .nav-btn svg { transition: transform 160ms ease; }

@media (hover: hover) and (pointer: fine) {
    html:not([data-style="minimal"]) :is(.product-card, .project-card, .blog-card, .editorial-card--featured,
        .related-post-card, .contact-channel, .contact-email-card, .social-link):hover {
        transform: translateY(-2px);
        border-color: var(--text-secondary);
        box-shadow: var(--shadow-ambient);
    }
    .product-card:hover .product-card-link > span,
    .editorial-card:hover .editorial-read span,
    .nav-btn:hover svg { transform: translateX(2px); }
    html:not([data-style="minimal"]) :is(.btn, .nav-btn, .product-button, .product-button-secondary, .settings-btn, .settings-opt):hover {
        border-color: var(--text-secondary);
        transform: none;
    }
}

:where(.product-card, .editorial-card, .contact-channel, .contact-email-card, .social-link,
    .btn, .nav-btn, .product-button, .product-button-secondary, .settings-btn, .settings-opt):focus-visible {
    border-color: var(--text-secondary);
}
:where(.btn, .nav-btn, .product-button, .product-button-secondary, .settings-btn, .settings-opt):active {
    background-color: var(--product-muted-surface);
}
html:not([data-style="minimal"]) :is(.product-button, .nav-btn-next, .cookie-btn-accept):active {
    background-color: var(--text-primary);
    color: var(--product-surface);
}
html:not([data-style="minimal"]) :is(.product-button-secondary, .btn-secondary, .nav-btn-prev):active {
    background-color: var(--product-muted-surface);
    color: var(--text-primary);
}
html:not([data-style="minimal"]) :is(.product-card, .project-card, .blog-card, .editorial-card--featured,
    .related-post-card, .contact-channel, .contact-email-card, .social-link, .btn, .nav-btn,
    .product-button, .product-button-secondary, .settings-btn, .settings-opt):focus-visible {
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .settings-dropdown.active { animation: none; }
    :where(.product-card, .project-card, .blog-card, .editorial-card--featured, .related-post-card,
        .contact-channel, .contact-email-card, .social-link,
        .btn, .nav-btn, .product-button, .product-button-secondary, .settings-btn, .settings-opt,
        .product-card-link > span, .editorial-read span, .nav-btn svg) {
        transition: none !important;
    }
    html:not([data-style="minimal"]) :is(.product-card, .project-card, .blog-card, .editorial-card--featured,
        .related-post-card, .contact-channel, .contact-email-card, .social-link):hover,
    .product-card:hover .product-card-link > span,
    .editorial-card:hover .editorial-read span,
    .nav-btn:hover svg { transform: none; }
    html:not([data-style="minimal"]) :is(.btn, .nav-btn, .product-button, .product-button-secondary,
        .settings-btn, .settings-opt):hover { transform: none !important; }
}

@media (hover: none), (pointer: coarse) {
    html:not([data-style="minimal"]) :is(.product-card, .project-card, .blog-card, .editorial-card--featured,
        .related-post-card, .contact-channel, .contact-email-card, .social-link):hover {
        transform: none;
        box-shadow: none;
        border-color: var(--product-line);
    }
    html:not([data-style="minimal"]) .product-card:hover .product-card-link > span,
    html:not([data-style="minimal"]) .editorial-card:hover .editorial-read span,
    html:not([data-style="minimal"]) .nav-btn:hover svg { transform: none; }
    html:not([data-style="minimal"]) :is(.btn, .nav-btn, .product-button, .product-button-secondary,
        .settings-btn, .settings-opt):hover { transform: none; box-shadow: none; }
    html:not([data-style="minimal"]) .btn:hover { background: var(--glass-bg); color: var(--text-primary); }
    html:not([data-style="minimal"]) .btn-secondary:hover { background: rgba(255, 255, 255, 0.1); color: var(--text-secondary); }
    html:not([data-style="minimal"]) .nav-btn-prev:hover { background: rgba(255, 255, 255, 0.1); color: var(--text-secondary); }
    html:not([data-style="minimal"]) .nav-btn-next:hover { background: #fff; color: #000; }
    html:not([data-style="minimal"]) .settings-btn:hover { background: var(--nav-bg); }
    html:not([data-style="minimal"]) .settings-opt:hover { background: transparent; }
}
