/* ===== Amamable — blog przepisów (/przepisy/) ===== */
/* Wspólne style archiwum (index.html) i pojedynczych przepisów.            */
/* Kolory, promienie i fonty biorą się z ../style.css — poniżej są tylko    */
/* odcienie, których design system jeszcze nie nazwał, i układy tych stron. */
/* Nowy przepis = sam HTML; ten plik i blog.js obsługują go bez zmian.      */

.rb {
    --rb-line: #F4EFEA;   /* linia delikatniejsza niż --border (listy, paski) */
    --rb-check: #D8D0C9;  /* obwódka nieodhaczonego checkboxa */
    --rb-dim: #C9C3BE;    /* tekst wygaszony — pozycja już odhaczona */

    background-color: var(--background);
    padding-top: 112px; /* pod stały .navbar (72px) */
    padding-bottom: 4.5rem;
}

/* blog.js chowa karty spoza strony i pusty pager atrybutem `hidden`, ale
   `.rb-card` i `.rb-pager` mają własne `display: flex`, które go przebija. */
.rb [hidden] {
    display: none !important;
}

.rb .ra-body + .rb-block {
    margin-top: 4rem;
}

.rb h1,
.rb h2,
.rb h3 {
    font-family: var(--font-display);
    letter-spacing: -0.01em;
    text-wrap: pretty;
}

.rb section + section,
.rb .rb-block + .rb-block {
    margin-top: 3.5rem;
}

/* Etykieta tylko dla czytników ekranu (pole szukania, select sortowania) */
.rb-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.rb-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary-dark);
}

/* Pigułka kategorii — wraca w hero przepisu i na kartach */
.rb-tag {
    display: inline-block;
    background: var(--primary-tint);
    color: var(--primary-dark);
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: 999px;
}

.rb-tag--solid {
    background: var(--primary-color);
    color: var(--white);
    letter-spacing: 0.1em;
}

.rb-muted {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* ===== Archiwum: hero z licznikami ===== */

.rb-hero {
    display: flex;
    gap: 3rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.rb-hero__intro {
    flex: 1;
    min-width: 320px;
}

.rb-hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    line-height: 1.04;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0.85rem 0 0;
    color: var(--secondary-color);
}

.rb-hero__lead {
    font-size: 1.06rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 1.1rem 0 0;
    max-width: 56ch;
    text-wrap: pretty;
}

.rb-stats {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    padding-bottom: 6px;
}

.rb-stat {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    min-width: 118px;
}

.rb-stat__value {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1;
}

.rb-stat__label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 4px;
}

.rb-stat--accent {
    background: var(--primary-tint);
    border-color: var(--primary-soft);
}

.rb-stat--accent .rb-stat__value,
.rb-stat--accent .rb-stat__label {
    color: var(--primary-dark);
}

/* ===== Archiwum: przepis tygodnia ===== */

.rb-featured {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.rb-featured__media {
    position: relative;
    background: var(--primary-soft);
    min-height: 340px;
}

/* Bez position:absolute komórka rośnie do naturalnej wysokości zdjęcia
   (nasze są pionowe), zamiast trzymać wysokość wiersza siatki. */
.rb-featured__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rb-featured__body {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rb-featured__head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.rb-featured h2 {
    font-size: 2.1rem;
    line-height: 1.14;
    font-weight: 700;
    margin: 1rem 0 0;
    color: var(--secondary-color);
}

.rb-featured h2 a {
    text-decoration: none;
    color: inherit;
}

.rb-featured h2 a:hover {
    color: var(--primary-dark);
}

.rb-featured p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0.75rem 0 0;
    text-wrap: pretty;
}

.rb-dotlist {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.rb-dotlist span[aria-hidden] {
    color: var(--border);
}

.rb-featured .rb-dotlist {
    margin-top: 1.25rem;
}

.rb-featured__actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 1.6rem;
}

/* ===== Archiwum: kolekcje ===== */

.rb-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.rb-section-head h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
    color: var(--secondary-color);
}

.rb-section-head__note {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
}

.rb-collections {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 0.9rem;
    margin-top: 1.15rem;
}

.rb-collection {
    font-family: inherit;
    text-align: left;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 18px;
    padding: 1.25rem;
    cursor: pointer;
    transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.rb-collection:hover {
    border-color: var(--primary-color);
}

.rb-collection[aria-pressed="true"] {
    background: var(--primary-tint);
    border-color: var(--primary-color);
}

.rb-collection__name {
    display: block;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--secondary-color);
}

.rb-collection__meta {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* ===== Archiwum: pasek filtrów ===== */

.rb-toolbar {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.25rem 1.25rem 1rem;
}

.rb-toolbar__top {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.rb-search {
    flex: 1;
    min-width: 240px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--background);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 0.7rem 0.85rem;
}

.rb-search:focus-within {
    border-color: var(--primary-color);
}

.rb-search svg {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.rb-search input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    outline: none;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-color);
}

.rb-select {
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    border: 1.5px solid var(--border);
    background: var(--background);
    border-radius: 14px;
    padding: 0.7rem 0.85rem;
    cursor: pointer;
}

.rb-toggle {
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    border: 1.5px solid var(--border);
    background: var(--background);
    color: var(--text-color);
    border-radius: 14px;
    padding: 0.72rem 1.1rem;
    cursor: pointer;
    transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.rb-toggle[aria-pressed="true"] {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.rb-chiprow {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.8rem;
}

.rb-chiprow__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-right: 0.25rem;
}

.rb-chiprow__gap {
    width: 18px;
}

.rb-chip {
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    border: 1.5px solid var(--border);
    background: var(--background);
    color: var(--text-color);
    cursor: pointer;
    transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.rb-chip:hover {
    border-color: var(--primary-light);
}

.rb-chip[aria-pressed="true"] {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.rb-resultbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.4rem;
}

.rb-resultbar__count {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.rb-clear {
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary-dark);
    background: none;
    border: none;
    border-bottom: 1.5px solid var(--primary-soft);
    padding: 0;
    cursor: pointer;
}

/* Sterowanie, które bez JS nic nie zrobi (filtry, przelicznik porcji, zapisz,
   drukuj) — blog.js zdejmuje tę klasę na starcie. !important, bo część tych
   elementów ustawia sobie `display` w regułach dalej w tym pliku. */
.rb-enhance-only {
    display: none !important;
}

/* ===== Archiwum: siatka kart ===== */

.rb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.4rem;
    margin-top: 1.15rem;
}

.rb-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.rb-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -28px var(--shadow-hover);
}

.rb-card__media {
    position: relative;
}

.rb-card__media img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    background: var(--primary-soft);
}

.rb-save {
    position: absolute;
    top: 12px;
    right: 12px;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 7px 13px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.94);
    color: var(--text-color);
    box-shadow: 0 6px 16px -8px rgba(47, 45, 44, 0.5);
    cursor: pointer;
    transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.rb-save[aria-pressed="true"] {
    background: var(--primary-color);
    color: var(--white);
}

.rb-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.15rem 1.25rem 1.25rem;
}

.rb-card__head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.rb-card__title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    line-height: 1.22;
    font-weight: 600;
    margin: 0.75rem 0 0;
    text-wrap: pretty;
}

.rb-card__title a {
    color: var(--secondary-color);
    text-decoration: none;
}

.rb-card__title a:hover {
    color: var(--primary-dark);
}

.rb-card__desc {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0.5rem 0 0;
    text-wrap: pretty;
}

.rb-card__spacer {
    flex: 1;
    min-height: 14px;
}

.rb-card__foot {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.rb-card__foot span[aria-hidden] {
    color: var(--border);
}

.rb-card__more {
    margin-left: auto;
    color: var(--primary-dark);
    font-weight: 700;
    text-decoration: none;
}

/* ===== Archiwum: pusty stan i paginacja ===== */

.rb-empty {
    background: var(--white);
    border: 1.5px dashed var(--primary-soft);
    border-radius: 20px;
    padding: 3.5rem 1.5rem;
    text-align: center;
    margin-top: 1.15rem;
}

.rb-empty h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: var(--secondary-color);
}

.rb-empty p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0.6rem 0 1.25rem;
}

.rb-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 2.4rem;
}

.rb-pagebtn {
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    min-width: 42px;
    padding: 0.62rem 1rem;
    border-radius: 999px;
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--text-color);
    cursor: pointer;
}

.rb-pagebtn[aria-current="page"] {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.rb-pagebtn:disabled {
    color: var(--rb-dim);
    cursor: default;
}

/* ===== Wspólny baner CTA ===== */

.rb-cta {
    background: var(--primary-color);
    border-radius: var(--radius-lg);
    padding: 3rem;
    display: flex;
    gap: 2.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.rb-cta__text {
    flex: 1;
    min-width: 280px;
}

.rb-cta h2 {
    font-size: 2rem;
    line-height: 1.15;
    font-weight: 700;
    color: var(--white);
    margin: 0;
}

.rb-cta p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--white);
    margin: 0.75rem 0 0;
    max-width: 52ch;
}

.rb-cta .btn {
    background: var(--white);
    color: var(--primary-dark);
    font-weight: 800;
}

.rb-cta .btn:hover {
    background: var(--primary-tint);
    color: var(--primary-dark);
}

/* ===== Karta przepisu: nagłówek ===== */

.ra-breadcrumb {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
}

.ra-breadcrumb a {
    color: var(--primary-dark);
    text-decoration: none;
}

.ra-breadcrumb a:hover {
    text-decoration: underline;
}

.ra-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    gap: 2.75rem;
    align-items: start;
    margin-top: 1.4rem;
}

.ra-hero__head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.ra-hero h1 {
    font-size: clamp(2.1rem, 4.4vw, 3.25rem);
    line-height: 1.06;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 1rem 0 0;
    color: var(--secondary-color);
}

.ra-lead {
    font-size: 1.06rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 1.1rem 0 0;
    max-width: 56ch;
    text-wrap: pretty;
}

.ra-facts {
    margin: 0;
    display: flex;
    gap: 1.6rem;
    flex-wrap: wrap;
    margin-top: 1.6rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    list-style: none;
}

.ra-facts dt,
.ra-fact__label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.ra-facts dd,
.ra-fact__value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 4px 0 0;
    color: var(--secondary-color);
}

.ra-hero__media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--primary-soft);
}

.ra-hero__media img {
    width: 100%;
    height: 440px;
    object-fit: cover;
}

/* ===== Karta przepisu: układ dwukolumnowy ===== */

.ra-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 2.75rem;
    align-items: start;
    margin-top: 3.25rem;
}

.ra-main h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 2.75rem 0 0;
    color: var(--secondary-color);
}

.ra-main > h2:first-child {
    margin-top: 0;
}

.ra-main p {
    font-size: 1rem;
    line-height: 1.72;
    color: var(--text-color);
    margin: 0.9rem 0 0;
    max-width: 68ch;
    text-wrap: pretty;
}

.ra-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.ra-section-head h2 {
    margin: 0;
}

/* ----- Przelicznik porcji ----- */

.ra-portions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ra-portions__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.ra-portion {
    font-family: inherit;
    min-width: 38px;
    text-align: center;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--text-color);
    transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.ra-portion[aria-pressed="true"] {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

/* ----- Składniki ----- */

.ra-ingredients {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0.5rem 1.25rem;
    margin-top: 1rem;
}

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

.ra-ingredient {
    border-bottom: 1px solid var(--rb-line);
}

.ra-ingredient label {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.85rem 0;
    cursor: pointer;
}

.ra-ingredient input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ra-ingredient__box {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--rb-check);
    background: var(--white);
    color: var(--white);
    transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.ra-ingredient__box svg {
    width: 13px;
    height: 13px;
    opacity: 0;
}

.ra-ingredient input:checked + .ra-ingredient__box {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.ra-ingredient input:checked + .ra-ingredient__box svg {
    opacity: 1;
}

.ra-ingredient input:focus-visible + .ra-ingredient__box {
    outline: 3px solid rgba(198, 124, 78, 0.35);
    outline-offset: 2px;
}

.ra-ingredient__name {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
}

.ra-ingredient__qty {
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
    color: var(--text-secondary);
}

.ra-ingredient input:checked ~ .ra-ingredient__name {
    color: var(--text-muted);
    text-decoration: line-through;
}

.ra-ingredient input:checked ~ .ra-ingredient__qty {
    color: var(--rb-dim);
}

.ra-ingredients__foot {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 1rem 0 0.9rem;
}

.ra-ingredients__foot .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
}

.ra-linkbtn {
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary-dark);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.ra-linkbtn:hover {
    text-decoration: underline;
}

.ra-checked {
    margin-left: auto;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
}

.ra-note {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    background: var(--primary-tint);
    border: 1px solid var(--primary-soft);
    border-radius: var(--radius);
    padding: 1rem 1.15rem;
    margin-top: 1rem;
}

.ra-note::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: var(--primary-color);
    margin-top: 7px;
    flex: none;
}

.ra-note p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* ----- Kroki ----- */

.ra-steps {
    list-style: none;
    margin: 1.15rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    counter-reset: ra-step;
}

.ra-step {
    counter-increment: ra-step;
}

.ra-step label {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.15rem 1.25rem;
    cursor: pointer;
    transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.ra-step input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ra-step__num {
    width: 30px;
    height: 30px;
    border-radius: 15px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    font-weight: 800;
    background: var(--primary-tint);
    color: var(--primary-dark);
}

.ra-step__num::before {
    content: counter(ra-step);
}

.ra-step__num svg {
    display: none;
    width: 14px;
    height: 14px;
}

.ra-step__text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    text-wrap: pretty;
}

.ra-step input:checked ~ .ra-step__text {
    color: var(--text-muted);
}

.ra-step:has(input:checked) label {
    background: var(--primary-tint);
    border-color: var(--primary-soft);
}

.ra-step input:checked + .ra-step__num {
    background: var(--primary-color);
    color: var(--white);
}

.ra-step input:checked + .ra-step__num::before {
    content: none;
}

.ra-step input:checked + .ra-step__num svg {
    display: block;
}

.ra-step input:focus-visible + .ra-step__num {
    outline: 3px solid rgba(198, 124, 78, 0.35);
    outline-offset: 2px;
}

.ra-progress {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-top: 1rem;
}

.ra-progress__track {
    flex: 1;
    height: 6px;
    background: var(--rb-line);
    border-radius: 3px;
    overflow: hidden;
}

.ra-progress__bar {
    height: 100%;
    width: 0;
    background: var(--primary-color);
    border-radius: 3px;
    transition: width 0.25s var(--ease);
}

.ra-progress__label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
}

.ra-source {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 1.15rem;
}

.ra-source a {
    color: var(--primary-dark);
    font-weight: 700;
}

/* ----- Panel boczny ----- */

.ra-aside {
    position: sticky;
    top: 86px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ra-panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 1.5rem;
}

.ra-panel h2 {
    margin: 0;
}

.ra-panel__title {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--secondary-color);
}

.ra-panel p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0.65rem 0 0;
}

.ra-panel .btn {
    width: 100%;
    border-radius: 14px;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    margin-top: 1rem;
}

.ra-panel .btn + .btn {
    margin-top: 0.6rem;
}

.ra-panel__row {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.9rem;
}

.ra-panel__row button {
    flex: 1;
    font-family: inherit;
    text-align: center;
    border-radius: 12px;
    padding: 0.7rem;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--text-color);
    transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.ra-panel__row button:hover {
    border-color: var(--primary-light);
}

.ra-panel__row button[aria-pressed="true"] {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.ra-panel__label {
    font-family: var(--font);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.ra-kcal {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.ra-kcal__value {
    font-family: var(--font-display);
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1;
    color: var(--secondary-color);
}

.ra-kcal__unit {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.ra-macros {
    list-style: none;
    margin: 1.15rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ra-macro__head {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-color);
}

.ra-macro__head span:last-child {
    color: var(--text-secondary);
}

.ra-macro__track {
    height: 6px;
    background: var(--rb-line);
    border-radius: 3px;
    margin-top: 6px;
    overflow: hidden;
}

.ra-macro__bar {
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
}

.ra-panel__fine {
    font-size: 0.75rem;
    line-height: 1.55;
    color: var(--text-muted);
    margin-top: 1rem;
}

/* ===== Responsywność ===== */

@media (max-width: 980px) {
    .ra-hero,
    .ra-body {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    .ra-hero__media {
        order: -1;
    }

    .ra-hero__media img {
        height: 320px;
    }

    .ra-aside {
        position: static;
    }

    .rb-featured {
        grid-template-columns: minmax(0, 1fr);
    }

    .rb-featured__media {
        min-height: 260px;
        height: 260px;
    }

    .rb-featured__body {
        padding: 1.75rem;
    }
}

@media (max-width: 768px) {
    .rb {
        padding-top: 96px;
    }

    .rb section + section,
    .rb .rb-block + .rb-block {
        margin-top: 2.5rem;
    }

    .rb-stats {
        width: 100%;
    }

    .rb-stat {
        flex: 1;
        min-width: 0;
        padding: 0.85rem 1rem;
    }

    /* Trzy kafle dzielą szerokość telefonu — „30 min" nie ma się łamać */
    .rb-stat__value {
        font-size: 1.5rem;
        white-space: nowrap;
    }

    .rb-cta {
        padding: 2rem;
    }

    .rb-cta h2 {
        font-size: 1.6rem;
    }

    .rb-cta .btn {
        width: 100%;
    }

    .ra-facts {
        gap: 1.1rem 1.6rem;
    }

    .ra-main h2,
    .rb-featured h2 {
        font-size: 1.5rem;
    }

    .rb-toolbar {
        padding: 1rem 1rem 0.85rem;
    }

    .rb-toolbar__top > .rb-select,
    .rb-toolbar__top > .rb-toggle {
        flex: 1;
    }

    .rb-chiprow__gap {
        width: 100%;
        height: 0;
    }
}

@media (max-width: 480px) {
    .ra-hero__media img {
        height: 240px;
    }

    .ra-ingredients {
        padding: 0.5rem 1rem;
    }

    .ra-ingredients__foot .btn {
        width: 100%;
    }

    .ra-checked {
        margin-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rb-card:hover {
        transform: none;
    }

    .ra-progress__bar {
        transition: none;
    }
}

/* ===== Druk — przycisk „Drukuj" w panelu bocznym ===== */

@media print {
    .navbar,
    .footer,
    .cookie-consent,
    .rb-cta,
    .ra-aside,
    .ra-breadcrumb,
    .ra-portions,
    .ra-ingredients__foot,
    .ra-progress {
        display: none !important;
    }

    .rb {
        padding-top: 0;
    }

    .ra-hero,
    .ra-body {
        display: block;
    }

    .ra-hero__media img {
        height: 220px;
    }

    .ra-step label,
    .ra-ingredients {
        border-color: #CCC;
        break-inside: avoid;
    }

    .ra-main p {
        max-width: none;
    }
}
