/* King's Ranch - Custom theme overrides */

/* ---- Rounded image borders ---- */
.image.fit,
.image.main {
    border-radius: 3px;
    overflow: hidden;
}

.image img {
    border-radius: 3px;
}

/* ---- Footer background matches warm beige ---- */
#footer {
    background-color: #f0ebe0;
}

/* Warm white for main content area */
#main {
    background-color: #fdf8f0;
}

/* Mobile nav panel */
#navPanel {
    background: #fdf8f0;
}

/* Select dropdown options */
select option {
    background-color: #fdf8f0;
}

#nav ul.links li.active {
    background-color: #fdf8f0;
}

#main > .posts > article {
    display: flex;
    flex-direction: column;
}

#main > .posts > article .image.fit {
    position: relative;
    padding-top: 62%;
    overflow: hidden;
    flex-shrink: 0;
}

#main > .posts > article .image.fit img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#main > .posts > article p {
    flex-grow: 1;
}

/* ---- Nav: tabs share all available horizontal space equally ---- */
#nav ul.links li {
    flex: 1;
}

#nav ul.links li a {
    padding: 0;
    font-size: 0.75rem;
    text-align: center;
}

/* ---- Number inputs: same appearance as text/email inputs ---- */
input[type="number"] {
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    border-radius: 0;
    border: solid 2px;
    color: inherit;
    display: block;
    outline: 0;
    padding: 0 1rem;
    text-decoration: none;
    width: 100%;
    height: 3rem;
    border-color: #eeeeee;
}

input[type="number"]:focus {
    border-color: #6b8c42;
}

/* Remove browser spinner arrows on number inputs */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] { -moz-appearance: textfield; }