/* Main colors used across the website */
:root {
    --brown-900: #3b2a1e;
    --brown-700: #5a4636;
    --brown-500: #7a6c5d;
    --green-700: #4f6349;
    --green-800: #3e4f3a;
    --tan-300: #d9c7a8;
    --tan-100: #f3ecdd;
}

/* Main page layout and text style */
body {
    font-family: "Mulish", system-ui, sans-serif;
    color: var(--brown-900);
    background-color: var(
        --site-bg
    ); /* personalised color from base.html.twig */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
/* Style main elements. */
main {
    flex: 1;
}

/* Headings and brand font */
h1,
h2,
h3,
h4,
/* Style .navbar-brand elements. */
.navbar-brand {
    font-family: "Bitter", Georgia, serif;
    color: var(--brown-900);
}

/* Header and navigation */
.site-header .navbar {
    background: #fff;
    border-bottom: 1px solid var(--tan-300);
}
/* Style .navbar-brand elements. */
.navbar-brand {
    font-weight: 700;
}
/* Style .nav-link elements. */
.nav-link {
    font-weight: 700;
    color: var(--brown-700);
}
/* Style .nav-link.active elements. */
.nav-link.active {
    color: var(--site-primary, var(--green-700));
    border-bottom: 2px solid var(--green-700);
}

/* White cards and title blocks */
.card-site,
/* Style .title-bubble elements. */
.title-bubble {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 14px rgba(59, 42, 30, 0.09);
    padding: 22px;
    height: auto;
}
/* Style .title-bubble elements. */
.title-bubble {
    height: auto;
    padding: 14px 22px;
}

/* Buttons and hover state */
.btn-site {
    background: var(--site-primary, var(--green-700));
    color: #fff;
    font-weight: 700;
    border-radius: 8px;
    padding: 12px 24px;
}
/* Style .btn-site:hover elements. */
.btn-site:hover {
    background: color-mix(
        in srgb,
        var(--site-primary, var(--green-700)) 82%,
        black
    );
    color: #fff;
}

/* Style .btn-site:focus-visible elements. */
.btn-site:focus-visible {
    outline: 3px solid var(--tan-300);
    outline-offset: 3px;
}

/* Footer style */
.site-footer {
    background: var(--brown-900);
    color: var(--tan-100);
    padding: 26px 0;
    font-size: 0.85rem;
}
/* Keep footer links readable against the dark background. */
.footer-link {
    color: var(--tan-100);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-link:hover {
    color: #fff;
}

/* Style .horse-card elements. */
.horse-card {
    padding: 0;
    overflow: hidden;
}
.horse-card h2,
/* Style .horse-card p elements. */
.horse-card p {
    padding: 0 22px;
}
/* Style .horse-card p:last-child elements. */
.horse-card p:last-child {
    padding-bottom: 22px;
}
/* Style .horse-photo elements. */
.horse-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}
/* Style .horse-photo--empty elements. */
.horse-photo--empty {
    background: var(--tan-100);
}

/* Style .badge-season elements. */
.badge-season {
    background: var(--tan-100);
    border: 1.5px solid var(--tan-300);
    color: var(--brown-700);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

/* Style .rate-card elements. */
.rate-card {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}
/* Style .rate-name elements. */
.rate-name {
    font-weight: 700;
}
/* Style .rate-detail elements. */
.rate-detail {
    font-size: 0.8rem;
    color: var(--brown-500);
    margin-top: 2px;
}
/* Style .rate-price elements. */
.rate-price {
    font-family: "Bitter", Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--site-primary, var(--green-700));
    white-space: nowrap;
}

/* Style .card-note elements. */
.card-note {
    height: auto;
    font-size: 0.85rem;
    color: var(--brown-700);
    line-height: 1.55;
}

/* Style .article-card elements. */
.article-card {
    height: auto;
}
/* Style .article-cover elements. */
.article-cover {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}
/* Style .article-cover--empty elements. */
.article-cover--empty {
    background: var(--tan-100);
}
/* Style .article-meta elements. */
.article-meta {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--site-primary, var(--green-700));
}
/* Style .article-link elements. */
.article-link {
    color: var(--brown-900);
    text-decoration: none;
}
/* Style .article-link:hover elements. */
.article-link:hover {
    color: var(--site-primary, var(--green-700));
}

/* Style .card-article elements. */
.card-article {
    height: auto;
}
/* Style .article-photo elements. */
.article-photo {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}
/* Style .article-thumb elements. */
.article-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}
/* Style .article-likes elements. */
.article-likes {
    font-weight: 700;
    color: var(--brown-700);
}
/* Style .back-link elements. */
.back-link {
    color: var(--brown-700);
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    background: #fff;
    border-radius: 12px;
    padding: 8px 14px;
    box-shadow: 0 2px 14px rgba(59, 42, 30, 0.09);
}

/* Style .comment elements. */
.comment {
    padding: 12px 0;
    border-bottom: 1px solid var(--tan-100);
}
/* Style .comment:last-child elements. */
.comment:last-child {
    border-bottom: 0;
}
