/* ---------------------------------------------------------
   Base CSS Additions for Bootstrap 5.3
   Cross-browser + iOS stability + your typography defaults
--------------------------------------------------------- */

/* Body defaults */
html, body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.45;
    color: #1f2532;
    background-color: #fff;
    scroll-behavior: smooth; /* Cross-browser smooth scroll */
    -webkit-text-size-adjust: 100%; /* Prevents iOS font autoscaling */
    scrollbar-gutter: stable;
}

@font-face {
    font-family: 'VagaRound';
    src: url('/assets/fonts/vaga-round-regular.woff2') format('woff2'),
         url('/assets/fonts/vaga-round-regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'VagaRound';
    src: url('/assets/fonts/vaga-round-bold.woff2') format('woff2'),
         url('/assets/fonts/vaga-round-bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

body.modal-open {
    padding-right: 0 !important;
}

/* Headings */
h1 { font-size: 1.6rem; font-weight: 600; color: #1f2532; }
h2 { font-size: 1.4rem; font-weight: 600; color: #1f2532; }
h3 { font-size: 1.2rem; font-weight: 600; color: #1f2532; }
h4 { font-size: 1.1rem; font-weight: 600; color: #1f2532; }
h5 { font-size: 1.0rem; font-weight: 600; color: #1f2532; }

/* Image consistency across browsers */
img {
    display: block;          /* Removes inline gap below images */
    max-width: 100%;         /* Bootstrap sets this; block ensures stability */
    height: auto;
}

/* iOS tap highlight + blue button text fix */
button,
button * {
    -webkit-tap-highlight-color: transparent;
    -webkit-text-fill-color: inherit;
    color: inherit;
}

/* Remove blue highlight on all tappable elements (optional but recommended) */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Prevent iOS Safari zoom when focusing form controls */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
textarea,
select {
    font-size: 16px !important;
}

/* Remove default focus from elements */
input:focus,
textarea:focus,
select:focus,
button:focus {
    outline: none;
    box-shadow: none;
}

.form-control:focus,
.form-select:focus {
    border-color: #ced4da;
    box-shadow: none;
    outline: none;
}

:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

:focus-visible {
    outline: 2px solid #ff7f5f;
    outline-offset: 2px;
}

.btn:focus,
.btn:active:focus {
    box-shadow: none;
    outline: none;
}

/* Safari flexbox overflow fix (important for multi-column layouts) */
.flex-fill,
.d-flex > * {
    min-width: 0;
    min-height: 0;
}

/* GPU-optimised animations + swipe smoothness */
*, *::before, *::after {
    backface-visibility: hidden;
}

/* Fully remove all link decoration across all states and browsers */
a,
a:link,
a:visited,
a:hover,
a:focus,
a:active {
    text-decoration: none !important;
    outline: none !important;
}

/* Stable viewport height for iOS (requires small JS snippet) */
:root {
    --vh: 1vh;
}

.height-100vh {
    height: calc(var(--vh) * 100);
}

/* Header */
.search-faux {
    width:60px;
}

.header-menu-button {
    width: 40px;
    height: 40px;
    border: 0;
    background: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 36px;
    height: 40px;
}

/* menu icon styling without vertical nudge */
.header-menu-icon {
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 30px;
    line-height: 1;
    padding: 0;        /* remove padding-top */
}

/* guest icon normalised too */
.header-icon-btn i {
    font-size: 30px;
    line-height: 1;
    display: block;
}



/* Fixed widths */
.col-left {
    width: 255px;
    padding: 0px !important;
    border-right: 1px solid #eee;
    margin-right: 25px !important;
}
.col-middle {
    width: 1200px;  /* Set a large width to stop page jump on load */
    padding-bottom: 50px !important;
    padding-top: 20px !important;
    min-height:70vh;
}
.col-right {
    width: 330px;
    min-height: 100vh;
    padding-top: 20px;
    margin-top:0px !important;
    padding-left: 0px;
    border-left: 1px solid #eee;
}

.feed-padding {
    padding-top:25px !important;
    padding-left:0px !important;
    padding-right:0px !important;
}

.restrict-feed-width {
    max-width: 580px;
    margin: 0 auto;
}


/* Desktop Menu Styles */
.desktop-left-menu-fixed {
    /*height: 100vh;*/
    width: 250px;
    margin-left: 0px;
    /*position: fixed;*/
    padding-top: 10px !important;
    /*overflow-y: auto;*/
    /*padding-bottom: 110px;*/
}
/* Section titles */
.desktop-menu-title {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.desktop-menu-social-section {
    width: 250px;
    margin-left: 20px;
    position: fixed;
    bottom: 0px;
    padding-top: 10px;
    padding-bottom: 20px;
    background: #fff;
}


/* Host Menu Styles (extends the above styles) */
.host-col-left {
    /*background: #efefef !important;*/
}
.host-desktop-menu-social-section {
    /*background: #efefef !important;*/
}
.host-col-right {
    /*background: #efefef !important;*/
}

/* Links */
.desktop-menu-link {
    display: block;
    padding: 0.35rem 0;
    color: #1f2532;
    text-decoration: none;
    font-size: 1.2rem;
}

.desktop-menu-link-info {
    display: block;
    padding: 0.35rem 0;
    color: #1f2532;
    text-decoration: none;
    font-size: 1rem;
}

/* Social icons */
.desktop-menu-social-link {
    font-size: 1.35rem;
    color: #1f2532;
    text-decoration: none;
    margin-right: 11px;
}

.desktop-menu-social-link:hover {
    color: #FF7F5F;
}


.desktop-right-menu-fixed {
    width: 320px;
    position: fixed;
    /*background: #f8f9fa;*/
    border-radius: 0px;
    padding-right: 0px !important;
    font-size: 0.85rem;
}




/* ABOVE BOOTSTRAP SM BREAKPOINT */
@media (min-width: 576px) {

    .search-faux {
        width:100px;
    }
    
}
/* ABOVE BOOTSTRAP SM BREAKPOINT */


/* ABOVE BOOTSTRAP MD BREAKPOINT */
@media (min-width: 768px) {

    .search-faux {
        width:175px;
    }
}
/* ABOVE BOOTSTRAP MD BREAKPOINT */




/* ABOVE BOOTSTRAP LG BREAKPOINT */
@media (min-width: 992px) {
    
    /* Force a scrollbar on desktop to stop page jumping */
    html {
        /*overflow-y: scroll;*/
    }
    
    .header, .fixed-header-spacing {
        display: none;
    }

    .col-middle {
        padding-top:40px !important;
    }

    .host-col-middle {
        /*padding-top:20px !important;*/
    }

    .search-faux {
        width:200px;
    }

}
/* ABOVE BOOTSTRAP LG BREAKPOINT */



/* ABOVE BOOTSTRAP XL BREAKPOINT */
@media (min-width: 1200px) 
{
    /* Not sure if to do this or not?
    .container {
        max-width: 1200px;
    }
    */
    
    .col-right {
        /*order: 3;
        padding-left: 20px;*/
    }

}
/* ABOVE BOOTSTRAP XL BREAKPOINT */


/* ABOVE BOOTSTRAP XXL BREAKPOINT */
@media (min-width: 1400px) 
{


}
/* ABOVE BOOTSTRAP XL BREAKPOINT */

/* ABOVE BOOTSTRAP XXL BREAKPOINT */
@media (min-width: 1600px) 
{
    .col-left {
        width: 320px;
    }

    .col-right {
        /*width: 350px;*/
    }

    .col-middle {
        
    }

    .desktop-right-menu-fixed {
        /*width: 340px;
        position: fixed;
        background: #f8f9fa;
        border-radius: 0px;
        padding-right: 0px !important;
        font-size: 0.85rem;*/
    }
}
/* ABOVE BOOTSTRAP XL BREAKPOINT */