/*
 * O Cafea Buna - site theme (November 2026). One stylesheet on top of Bootstrap 4.
 *
 * Rule of the theme: the orange (--cta) belongs to the shop links and to nothing else, so a
 * "Vezi pe Emag" button is always the loudest thing on the page. The shop links are picked by
 * their address (/site/see-url), not by a class, so every buy link in every view gets the look
 * without a change to its markup. Do not give the buttons a text-transform: the Selenium test
 * finds them by their visible text.
 *
 * /top-3-espressoare-portabile loads this file too (Iulian, 2026-11-16), but only this: its
 * markup, tags and text stay hands-off (Seo::UNTOUCHED_ROUTES). Whatever the theme does for that
 * page has to be done from here, without touching its view.
 *
 * Fonts are the reader's own (system serif for titles, system sans for text): nothing to download.
 */

:root {
    --espresso: #24150e;      /* titles, footer */
    --ink: #3a2c24;           /* text */
    --muted: #75655a;
    --coffee: #752a04;        /* the brand brown: links, our own buttons */
    --coffee-dark: #5a2003;
    --cta: #cc4a0a;           /* shop links only */
    --cta-dark: #a93b06;
    --cta-soft: #fdebdc;
    --cream: #f7f1ea;         /* page */
    --crema: #fbf6f1;         /* tinted boxes */
    --line: #eadfd3;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(60, 30, 10, .07);
    --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M11.3 3.3a1 1 0 0 1 1.4 0l6 6a1 1 0 0 1 0 1.4l-6 6a1 1 0 0 1-1.4-1.4l4.3-4.3H2a1 1 0 1 1 0-2h13.6l-4.3-4.3a1 1 0 0 1 0-1.4z'/%3E%3C/svg%3E");
}

/* ---------- base ---------- */

html {
    height: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background-color: var(--cream);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.7;
}

h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.01em;
    color: var(--espresso);
}

h5, h6, .h5, .h6, h3.h5, h3.h6 {
    font-family: var(--font-sans);
    font-weight: 700;
    letter-spacing: 0;
    color: var(--espresso);
}

a {
    color: var(--coffee);
}

a:hover {
    color: var(--cta-dark);
}

hr {
    border-top-color: var(--line);
}

img {
    max-width: 100%;
}

.text-muted {
    color: var(--muted) !important;
}

::selection {
    background: #f6d3b8;
    color: var(--espresso);
}

/* ---------- top menu ---------- */

nav.navbar {
    flex: none;
    padding: .4rem .5rem;
    background-color: #fff !important;
    border-bottom: 1px solid var(--line);
}

nav.navbar > .container {
    width: 95%;
    max-width: 1140px;
}

nav.navbar-light .navbar-brand {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--espresso);
}

nav.navbar-light .navbar-brand img {
    width: 44px;
    height: 44px;
    margin-right: .55rem;
}

.site-nav-bar .nav-link {
    padding: .45rem .8rem !important;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--ink) !important;
    transition: background-color .15s, color .15s;
}

.site-nav-bar .nav-link:hover,
.site-nav-bar .nav-link:focus {
    background-color: var(--crema);
    color: var(--coffee) !important;
}

/* "Oferte" is the page with the most shop links: it wears the shop colour */
.site-nav-bar .nav-link[href$="/oferte-cafea"] {
    background-color: var(--cta-soft);
    color: var(--cta-dark) !important;
}

.site-nav-bar .nav-link[href$="/oferte-cafea"]:hover,
.site-nav-bar .nav-link[href$="/oferte-cafea"]:focus {
    background-color: var(--cta);
    color: #fff !important;
}

.site-nav-bar .nav-link.text-success {
    color: #2c7a4b !important;
}

.navbar-light .navbar-toggler {
    border-color: var(--line);
}

@media (max-width: 991.98px) {
    .site-nav-bar {
        padding: .5rem 0;
    }

    .site-nav-bar .nav-item {
        margin: .15rem 0;
    }

    .site-nav-bar .nav-link {
        display: inline-block;
        font-size: .9rem;
    }
}

/* ---------- page frame ---------- */

.wrap {
    flex: 1 0 auto;
    margin: 0 auto;
    padding: 0 0 3rem;
    width: 100%;
}

.wrap > .container {
    padding: 2rem 15px 1.25rem;
}

.spacer {
    height: 1.25rem;
}

/* the white sheet every article (and the "Ce urmeaza" box) sits on */
.wrap > .container.article {
    width: auto;
    max-width: 900px;
    padding: 1.25rem 2.5rem 2.25rem;
    background-color: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow) !important;
}

/* hub pages are grids of cards: let them breathe */
.wrap > .container.article:has(> .card-grid) {
    max-width: 1100px;
}

.article > .container-fluid {
    padding-left: 0;
    padding-right: 0;
}

/* the equipment hub nests a .row straight inside a .row: no second negative margin, or phones scroll sideways */
.article .row > .row {
    flex: 0 0 100%;
    margin-left: 0;
    margin-right: 0;
}

@media (max-width: 991.98px) {
    .wrap > .container.article {
        margin-left: .75rem;
        margin-right: .75rem;
    }
}

@media (max-width: 575.98px) {
    .spacer {
        height: 0;
    }

    .wrap > .container.article {
        margin-left: 0;
        margin-right: 0;
        padding: .75rem 1rem 1.75rem;
        border-left: 0;
        border-right: 0;
        border-radius: 0;
    }

    .wrap > .next-steps {
        margin-top: 1rem;
    }
}

/* ---------- article text ---------- */

.article-breadcrumbs,
.article-breadcrumbs a {
    color: var(--muted);
}

.article-breadcrumbs a:hover {
    color: var(--coffee);
}

.entry-header {
    margin: .75rem 0 1.5rem !important;
}

.entry-title {
    font-size: 2.5rem;
}

@media (max-width: 767.98px) {
    .entry-title,
    h1.display-4 {
        font-size: 1.85rem;
        font-weight: 700;
    }
}

.article h2 {
    margin: 2.5rem 0 .85rem;
    font-size: 1.65rem;
}

.article h3 {
    margin: 2rem 0 .6rem;
    font-size: 1.35rem;
}

.article h3.h5,
.article h3.h6 {
    margin: 1.4rem 0 .35rem;
    font-size: 1.0625rem;
    line-height: 1.4;
}

.article h4 {
    margin: 1.5rem 0 .5rem;
    font-size: 1.15rem;
}

@media (max-width: 575.98px) {
    .article h2 {
        font-size: 1.45rem;
    }

    .article h3 {
        font-size: 1.25rem;
    }
}

.article .entry-header h1,
.article .card-grid h2,
.article .card-grid h3 {
    margin-top: 0;
}

.article p a:not(.btn),
.article li a:not(.btn),
.article td a:not(.btn) {
    text-decoration: underline;
    text-decoration-color: rgba(117, 42, 4, .35);
    text-underline-offset: 3px;
}

.article p a:not(.btn):hover,
.article li a:not(.btn):hover,
.article td a:not(.btn):hover {
    text-decoration-color: currentColor;
}

.article ul:not(.fa-ul):not(.nav) > li,
.article ol > li {
    margin-bottom: .4rem;
}

.article .fa-hand-point-right {
    color: var(--coffee);
}

.article-image {
    margin: 1rem 0;
}

.article-image .img-wrapper {
    margin: auto;
}

.article img.rounded,
.card-grid img,
.article-image img {
    border-radius: 12px !important;
}

.img-credits {
    display: block;
    margin-top: .3rem;
    font-size: .75rem;
}

.article .table {
    color: var(--ink);
}

.article .table td,
.article .table th {
    border-top-color: var(--line);
}

.article .table thead th {
    border-bottom: 2px solid var(--line);
}

.article .table-striped tbody tr:nth-of-type(odd) {
    background-color: var(--crema);
}

.not-set {
    color: #c55;
    font-style: italic;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: var(--muted);
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* ---------- buttons ---------- */

.btn {
    border-radius: 10px;
    font-weight: 600;
}

.btn-lg {
    border-radius: 12px;
}

/* our own buttons (quiz, order): the brand brown */
.btn-coffee {
    background-color: var(--coffee);
    border-color: var(--coffee);
    color: #fff;
}

.btn-coffee:hover,
.btn-coffee:focus {
    background-color: var(--coffee-dark);
    border-color: var(--coffee-dark);
    color: #fff;
}

.btn-coffee:focus-visible {
    box-shadow: 0 0 0 .2rem rgba(117, 42, 4, .3);
}

.btn-coffee:disabled,
.btn-coffee.disabled {
    background-color: #b9a79b;
    border-color: #b9a79b;
    color: #fff;
}

.btn-outline-coffee {
    background-color: transparent;
    border: 2px solid var(--coffee);
    color: var(--coffee);
}

.btn-outline-coffee:hover,
.btn-outline-coffee:focus {
    background-color: var(--coffee);
    color: #fff;
}

/*
 * The shop button. Everything that goes to the shop through /site/see-url and is a .btn.
 * Big, the only orange thing on the page, with an arrow that says "this leaves for the shop".
 */
a.btn[href*="/site/see-url"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 15rem;
    padding: .85rem 1.5rem;
    border: 0;
    border-radius: 12px;
    background-color: var(--cta);
    color: #fff;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.25;
    white-space: normal;
    box-shadow: 0 6px 16px rgba(204, 74, 10, .32);
    transition: background-color .15s, box-shadow .15s, transform .15s;
}

a.btn[href*="/site/see-url"]::after {
    content: "";
    flex: none;
    width: 1em;
    height: 1em;
    margin-left: .55em;
    background-color: currentColor;
    -webkit-mask: var(--arrow) center / contain no-repeat;
    mask: var(--arrow) center / contain no-repeat;
    transition: transform .15s;
}

a.btn[href*="/site/see-url"]:hover,
a.btn[href*="/site/see-url"]:focus {
    background-color: var(--cta-dark);
    color: #fff;
    box-shadow: 0 10px 22px rgba(169, 59, 6, .38);
    transform: translateY(-1px);
}

a.btn[href*="/site/see-url"]:hover::after,
a.btn[href*="/site/see-url"]:focus::after {
    transform: translateX(3px);
}

a.btn[href*="/site/see-url"]:active {
    transform: none;
    box-shadow: 0 3px 8px rgba(169, 59, 6, .35);
}

a.btn[href*="/site/see-url"]:focus-visible {
    outline: 3px solid var(--espresso);
    outline-offset: 2px;
}

/* the compact ones: "Pe scurt" box, offers table, a button at the end of a list line */
a.btn.btn-sm[href*="/site/see-url"],
li > a.btn[href*="/site/see-url"] {
    min-width: 0;
    padding: .55rem 1rem;
    border-radius: 10px;
    font-size: .95rem;
    box-shadow: 0 4px 10px rgba(204, 74, 10, .26);
}

li > a.btn[href*="/site/see-url"] {
    margin: .25rem 0 .25rem .5rem;
}

/* phones: the shop button is as wide as the page, easy for a thumb */
@media (max-width: 575.98px) {
    .article p > a.btn[href*="/site/see-url"],
    .buy-buttons > a.btn[href*="/site/see-url"] {
        display: flex;
        width: 100%;
        min-width: 0;
        padding-top: .95rem;
        padding-bottom: .95rem;
    }
}

/* shop links inside a sentence */
.article a[href*="/site/see-url"]:not(.btn):not(.product-link) {
    color: var(--cta-dark);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(204, 74, 10, .45);
    text-underline-offset: 3px;
}

.article a[href*="/site/see-url"]:not(.btn):not(.product-link):hover {
    color: var(--cta);
    text-decoration-color: currentColor;
}

/* ---------- a product in a buying guide: photo + shop button | pro / contra ---------- */

.article .row > .border-right {
    border-right-color: var(--line) !important;
}

.article .row:has(> .border-right) {
    margin: 1.25rem 0 .5rem;
    padding: 1.25rem .25rem 1rem;
    background-color: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 4px 14px rgba(60, 30, 10, .05);
}

/* photo and button centred in their half, whatever the height of the pro / contra lists */
.article .row > .border-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article .row > .border-right + [class*="col-"] {
    align-self: center;
}

/* desktop: a bit less room for the photo, a bit more for the two lists */
@media (min-width: 768px) {
    .article .row > .col-md-6.border-right {
        flex: 0 0 42%;
        max-width: 42%;
    }

    .article .row > .col-md-6.border-right + .col-md-6 {
        flex: 0 0 58%;
        max-width: 58%;
    }
}

/* the photo gets the whole left half, not a narrow column inside it */
.article .row > .border-right .img-wrapper {
    flex: 0 0 100%;
    max-width: 100%;
}

.article .row > .border-right .img-wrapper img {
    width: auto;
    max-width: 88%;
    max-height: 300px;
    object-fit: contain;
}

.article .row > .border-right > p:last-child {
    margin-bottom: .5rem;
}

@media (max-width: 767.98px) {
    .article .row > .border-right {
        border-right: 0 !important;
        border-bottom: 1px solid var(--line);
        margin-bottom: 1rem;
        padding-bottom: .75rem;
    }

    .article .row > .border-right .img-wrapper img {
        max-height: 260px;
    }
}

/* "Pro" / "Contra" */
.article .row .row > [class*="col-"] > h5 {
    margin: .25rem 0 .5rem;
    font-size: .8rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

.article .fa-ul {
    margin-left: 1.9em;
}

.article .fa-ul > li {
    margin-bottom: .4rem;
    line-height: 1.5;
}

/* product photo and name go to the shop like the button does */
.article a.product-link,
.article a.product-link:hover {
    color: inherit;
}

.article h2 a.product-link,
.article h3 a.product-link {
    text-decoration: underline;
    text-decoration-color: rgba(204, 74, 10, .4);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.article h2 a.product-link:hover,
.article h3 a.product-link:hover {
    color: var(--cta-dark);
    text-decoration-color: currentColor;
}

.article a.product-link img {
    transition: transform .2s;
}

.article a.product-link:hover img {
    transform: scale(1.04);
}

.article a.product-link:focus:not(:focus-visible) {
    outline: none;
}

.article a.product-link:focus-visible {
    outline: 2px solid var(--cta);
    outline-offset: 2px;
}

/* ---------- "Pe scurt: alegerile noastre" (views/article/_top-picks.php) ---------- */

.top-picks {
    counter-reset: pick;
    margin: 1.75rem 0 !important;
    padding: 1.25rem 1.25rem .5rem !important;
    background-color: var(--crema);
    border: 1px solid #e6d3c2;
    border-top: 4px solid var(--cta);
    border-radius: var(--radius) !important;
}

.top-picks .top-picks-title {
    margin-bottom: .5rem !important;
    font-family: var(--font-serif);
    font-size: 1.35rem;
}

.top-picks .top-pick {
    padding: .9rem 0 !important;
}

.top-picks .top-pick + .top-pick {
    border-top: 1px solid #ecdccd;
}

.top-picks .top-pick::before {
    counter-increment: pick;
    content: counter(pick);
    flex: none;
    align-self: flex-start;
    width: 1.9rem;
    height: 1.9rem;
    margin: .15rem .8rem 0 0;
    border-radius: 50%;
    background-color: var(--espresso);
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    line-height: 1.9rem;
    text-align: center;
}

.top-picks .top-pick-label {
    color: var(--cta-dark);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.top-picks .top-pick-text {
    flex: 1 1 55%;
    line-height: 1.45;
}

.top-picks .top-pick-text strong {
    font-size: 1.1rem;
    color: var(--espresso);
}

.top-picks .top-pick-text .text-muted {
    font-size: .92rem;
}

@media (max-width: 575.98px) {
    .top-picks {
        padding: 1rem 1rem .25rem !important;
    }

    .top-picks .top-pick > a.btn {
        display: flex;
        flex: 1 0 100%;
        margin-top: .6rem;
        padding-top: .75rem;
        padding-bottom: .75rem;
    }
}

/* ---------- "Raspuns scurt" (views/article/_short-answer.php) ---------- */

.short-answer {
    background-color: var(--crema);
    border-left: 4px solid var(--coffee);
    border-radius: 0 12px 12px 0 !important;
    padding: 1.1rem 1.25rem !important;
}

/* ---------- "Ce alegi, in functie de ce cauti" (views/article/_by-need.php) ---------- */

.by-need-table th[scope="row"] {
    width: 26%;
    font-weight: 600;
    color: var(--espresso);
}

.by-need-table td:nth-child(2) {
    width: 30%;
}

.by-need-table td,
.by-need-table th {
    padding: .7rem .6rem;
}

.by-need-table thead th {
    border-top: 0;
    background-color: var(--crema);
    color: var(--coffee);
    font-size: .78rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.article .by-need-table a.need-link {
    color: var(--coffee);
    font-weight: 700;
    text-decoration: underline;
}

.article .by-need-table a.need-link[href*="/site/see-url"] {
    color: var(--cta-dark);
    text-decoration-color: rgba(204, 74, 10, .45);
}

.article .by-need-table a.need-link[href*="/site/see-url"]::after {
    content: "";
    display: inline-block;
    width: .8em;
    height: .8em;
    margin-left: .35em;
    background-color: currentColor;
    -webkit-mask: var(--arrow) center / contain no-repeat;
    mask: var(--arrow) center / contain no-repeat;
}

.article .by-need-table a.need-link[href*="/site/see-url"]:hover {
    color: var(--cta);
}

/* phones: three columns do not fit, so each row becomes a small block and the shop link gets its own line */
@media (max-width: 575.98px) {
    .by-need-table thead {
        display: none;
    }

    .by-need-table,
    .by-need-table tbody,
    .by-need-table tr,
    .by-need-table th[scope="row"],
    .by-need-table td {
        display: block;
        width: auto !important;
    }

    .by-need-table tr {
        padding: .8rem 0;
        border-top: 1px solid var(--line);
    }

    .by-need-table th[scope="row"],
    .by-need-table td {
        padding: .1rem 0;
        border: 0;
    }

    .by-need-table th[scope="row"] {
        font-size: .8rem;
        letter-spacing: .05em;
        text-transform: uppercase;
        color: var(--muted);
    }

    .by-need-table td:nth-child(2) {
        font-size: 1.1rem;
    }

    .by-need-table td:nth-child(3) {
        font-size: .95rem;
    }
}

/* ---------- offers page table (views/article/deals.php) ---------- */

.deals-table td {
    padding: .85rem .6rem;
    vertical-align: middle;
}

.deals-table thead th {
    font-size: .78rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}

.article .deals-table h3.h6 {
    margin: 0 0 .2rem;
    font-size: 1.02rem;
}

.deals-table small {
    font-size: .9rem;
    color: var(--muted);
}

/* phones: the shop button goes under the product, as wide as the row */
@media (max-width: 575.98px) {
    .deals-table thead {
        display: none;
    }

    .deals-table,
    .deals-table tbody,
    .deals-table tr,
    .deals-table td {
        display: block;
        width: auto;
    }

    .deals-table tr {
        padding: .6rem .35rem .9rem;
        border-top: 1px solid var(--line);
    }

    .deals-table td {
        padding: .3rem .5rem;
        border: 0;
    }

    .deals-table td > a.btn[href*="/site/see-url"] {
        display: flex;
        width: 100%;
        padding-top: .7rem;
        padding-bottom: .7rem;
    }
}

/* ---------- card grids: hub pages and the "Ce urmeaza" box ---------- */

.card-grid img.img-fluid {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    transition: transform .25s, box-shadow .25s;
}

.card-grid a:hover > img.img-fluid {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(60, 30, 10, .16);
}

.card-grid [class*="col-"] {
    padding-bottom: 1.25rem !important;
}

.card-grid h2,
.card-grid h3 {
    margin-top: .75rem !important;
    font-size: 1.3rem;
}

.card-grid h2 a,
.card-grid h3 a {
    color: inherit;
    text-decoration: none;
}

.card-grid h2 a:hover,
.card-grid h3 a:hover {
    color: var(--coffee);
}

.card-grid p {
    font-size: .98rem;
    line-height: 1.55;
}

.card-grid [class*="col-"] > a:not(:first-child) {
    font-weight: 600;
}

.wrap > .next-steps {
    margin-top: 2rem;
}

.next-steps > h2 {
    margin-top: .75rem;
}

.next-steps-quiz {
    margin: 1rem 0 1.75rem;
    padding: 1.25rem 1rem;
    background-color: var(--crema);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.next-steps-quiz .lead {
    font-size: 1.1rem;
}

/* ---------- home page ---------- */

.home-hero {
    background: linear-gradient(180deg, #fff 0%, var(--cream) 100%);
}

.home-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 3rem;
    align-items: center;
    max-width: 1140px;
    margin: 0 auto;
    padding: 3rem 1.25rem 2.5rem;
}

.home-hero h1 {
    margin-bottom: 1rem;
    font-size: clamp(2.2rem, 3.4vw + .6rem, 3.4rem);
    line-height: 1.08;
}

.home-hero .lead {
    margin-bottom: 1.75rem;
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--ink);
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.home-hero-actions .btn {
    padding: .7rem 1.2rem;
    font-size: 1.1rem;
}

.home-hero-media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 24px 48px rgba(60, 30, 10, .2);
}

@media (max-width: 767.98px) {
    .home-hero-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
        padding: 1rem 1rem 1.75rem;
        text-align: center;
    }

    .home-hero-media {
        order: -1;
    }

    .home-hero-media img {
        aspect-ratio: 16 / 10;
        border-radius: 16px;
        box-shadow: 0 12px 24px rgba(60, 30, 10, .16);
    }

    .home-hero .lead {
        margin-bottom: 1.25rem;
        font-size: 1.1rem;
    }

    .home-hero-actions .btn {
        flex: 1 0 100%;
    }
}

.site-index {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.home-section {
    margin-top: 3.5rem;
}

.home-section > h2 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
    text-align: center;
}

.home-section > h2::after {
    content: "";
    display: block;
    width: 3rem;
    height: 3px;
    margin: .75rem auto 0;
    border-radius: 2px;
    background-color: var(--cta);
}

@media (max-width: 575.98px) {
    .site-index {
        padding: 0 1rem;
    }

    .home-section {
        margin-top: 2.5rem;
    }

    .home-section > h2 {
        font-size: 1.6rem;
    }
}

/* three facts under the hero */
.home-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1rem;
    background-color: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.home-fact {
    padding: 1.4rem 1.25rem;
    text-align: center;
}

.home-fact + .home-fact {
    border-left: 1px solid var(--line);
}

.home-fact h2 {
    margin-bottom: .25rem;
    font-size: 1.45rem;
}

.home-fact p {
    margin: 0;
    font-size: .98rem;
    color: var(--muted);
}

@media (max-width: 767.98px) {
    .home-facts {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-fact {
        padding: 1rem;
    }

    .home-fact + .home-fact {
        border-left: 0;
        border-top: 1px solid var(--line);
    }
}

/* guide cards */
.guide-card,
.top-articles {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background-color: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    text-decoration: none;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

.guide-card:hover,
.top-articles:hover {
    color: var(--ink);
    text-decoration: none;
    border-color: #dcc6b3;
    box-shadow: 0 14px 30px rgba(60, 30, 10, .13);
    transform: translateY(-3px);
}

.guide-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.guide-card-wide .guide-card-img {
    height: 260px;
}

.guide-card-body {
    padding: 1rem 1.15rem 1.15rem;
}

.guide-card-body h3 {
    margin: 0 0 .35rem;
    font-size: 1.3rem;
}

.guide-card:hover h3,
.top-articles:hover h3 {
    color: var(--coffee);
}

.guide-card-body p {
    margin: 0;
    font-size: .98rem;
    line-height: 1.55;
    color: var(--muted);
}

.more-guides-title {
    margin: 1rem 0 .75rem;
    font-family: var(--font-sans);
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-align: center;
    color: var(--muted);
}

.more-guides .nav-link {
    margin: .25rem;
    padding: .35rem .95rem;
    background-color: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .95rem;
    color: var(--coffee);
    transition: background-color .15s, border-color .15s, color .15s;
}

.more-guides .nav-link:hover {
    background-color: var(--coffee);
    border-color: var(--coffee);
    color: #fff;
}

/* the quiz, in three steps */
.home-quiz {
    padding: 2.5rem 1.5rem;
    background-color: var(--espresso);
    border-radius: 22px;
    color: #eadfd3;
    text-align: center;
}

.home-quiz > h2 {
    color: #fff;
}

.home-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 0 auto 1.5rem;
    max-width: 900px;
}

.home-step {
    padding: 1.1rem 1rem;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--radius);
    background-color: rgba(255, 255, 255, .05);
}

.home-step h3 {
    margin-bottom: .35rem;
    font-family: var(--font-sans);
    font-size: .8rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #e9b48c;
}

.home-step .lead {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 400;
    color: #fff;
}

.home-quiz-text {
    max-width: 640px;
    margin: 0 auto 1.25rem;
}

.btn-cream {
    background-color: #fff;
    border-color: #fff;
    color: var(--espresso);
}

.btn-cream:hover,
.btn-cream:focus {
    background-color: var(--cta-soft);
    border-color: var(--cta-soft);
    color: var(--espresso);
}

@media (max-width: 767.98px) {
    .home-quiz {
        padding: 2rem 1rem;
        border-radius: 16px;
    }

    .home-steps {
        grid-template-columns: minmax(0, 1fr);
        gap: .6rem;
    }
}

.home-faq {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    padding: 1.75rem 2rem 1.25rem;
    background-color: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.home-faq h2 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
    text-align: center;
}

.home-faq h3.h5 {
    margin: 1.25rem 0 .3rem;
    font-size: 1.0625rem;
    line-height: 1.4;
}

@media (max-width: 575.98px) {
    .home-faq {
        padding: 1.25rem 1rem .75rem;
    }
}

/* ---------- plain pages (contact, login, errors, cafeaua saptamanii) ---------- */

.site-error,
.site-about,
.site-contact,
.site-login {
    max-width: 720px;
    margin: 2rem auto 0;
    padding: 1.5rem 1.75rem;
    background-color: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

@media (max-width: 767.98px) {
    .site-error,
    .site-about,
    .site-contact,
    .site-login {
        margin: 1rem .75rem 0;
        padding: 1.25rem 1rem;
    }
}

.site-index .container {
    background-color: transparent;
}

.fp-info hr {
    width: 95%;
}

.coffees hr {
    width: 100%;
}

.voted > i.fa {
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-size: 4rem;
}

.voted > i.fa > i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    left: 1.25rem;
}

img.coffee-award {
    width: 75px;
    position: absolute;
    top: 10px;
    right: 30px;
}

.jumbotron {
    text-align: center;
    background-color: transparent;
}

/* the logout "link" (a button in a form) of the menu */
.nav li > form > button.logout {
    padding: 15px;
    border: none;
}

@media (max-width: 767px) {
    .nav li > form > button.logout {
        display: block;
        text-align: left;
        width: 100%;
        padding: 10px 15px;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.grid-view th {
    white-space: nowrap;
}

/* ---------- footer ---------- */

footer.bg-dark {
    flex: none;
    padding: 1.25rem 0 1rem;
    background-color: var(--espresso) !important;
    color: #eadfd3;
}

footer h5 {
    margin: .25rem 0;
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-style: italic;
    font-weight: 400;
    color: #f6ece2 !important;
}

footer hr {
    border-top-color: rgba(255, 255, 255, .14);
}

footer .nav-link {
    font-size: .95rem;
    color: #eadfd3 !important;
    transition: color .15s;
}

footer .nav-link:hover,
footer .nav-link:focus {
    color: #fff !important;
    text-decoration: underline;
}

/* ---------- cookie notice: a quiet strip, so it does not sit on top of the shop buttons ---------- */

body .cc_banner-wrapper .cc_container {
    padding: .6rem 1rem;
    background: var(--espresso);
    font-family: var(--font-sans);
    font-size: 15px;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, .15);
}

body .cc_banner-wrapper .cc_container .cc_message {
    margin-top: 0;
    font-size: .85em;
    line-height: 1.4;
    color: #eadfd3;
}

body .cc_banner-wrapper .cc_container .cc_btn,
body .cc_banner-wrapper .cc_container .cc_btn:visited {
    padding: .5rem .9rem;
    border-radius: 8px;
    background-color: #fff;
    color: var(--espresso);
    font-size: .9em;
    font-weight: 700;
}

body .cc_banner-wrapper .cc_container .cc_btn:hover,
body .cc_banner-wrapper .cc_container .cc_btn:active {
    background-color: var(--cta-soft);
    color: var(--espresso);
}

@media (max-width: 575.98px) {
    body .cc_banner-wrapper .cc_container {
        padding: .5rem .75rem;
    }

    body .cc_banner-wrapper .cc_container .cc_message {
        font-size: 12px;
        line-height: 1.35;
    }
}

@media print {
    nav.navbar,
    footer,
    .next-steps {
        display: none;
    }

    body {
        background: #fff;
    }
}
