/* ==========================================================
   BODYBUILDING.DE V2 THEME 1.8.0
   CANONICAL SINGLE-TRAININGSPLAN SYSTEM
   ========================================================== */

.bb-plan-single {
    --bb-plan-reading: 940px;
    --bb-plan-section-space: 60px;
}

.bb-plan-single__content {
    padding-bottom: 72px;
}

.bb-plan-single__block {
    margin-top: var(--bb-plan-section-space);
}

.bb-plan-single__block--shell {
    width: min(var(--bb-shell), calc(100% - 48px));
    margin-inline: auto;
}

.bb-plan-single__block--reading {
    width: min(var(--bb-plan-reading), calc(100% - 48px));
    margin-inline: auto;
}

.bb-plan-single__block--quickfacts {
    margin-top: var(--bb-gap-hero-facts);
}

.bb-plan-single__block--toc {
    margin-top: 34px;
}

.bb-plan-single__block--sources {
    margin-top: 26px;
}

/* ----------------------------------------------------------
   Hero – same visual hierarchy as the final exercise single
   ---------------------------------------------------------- */
.bb-plan-detail-hero {
    grid-template-columns: minmax(0, .72fr) minmax(520px, 1.03fr);
    gap: 56px;
    align-items: center;
    padding-top: 48px;
    padding-bottom: 48px;
}

.bb-plan-single .bb-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0 0 18px;
    font-family: "Inter", Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--bb-text-muted);
}

.bb-plan-single .bb-breadcrumbs a,
.bb-plan-single .bb-breadcrumbs span {
    font: inherit !important;
    line-height: inherit !important;
}

.bb-plan-single .bb-breadcrumbs a {
    color: var(--bb-text-muted);
    text-decoration: none;
}

.bb-plan-single .bb-breadcrumbs a:hover,
.bb-plan-single .bb-breadcrumbs a:focus-visible {
    color: var(--bb-text);
}

.bb-plan-single .bb-breadcrumbs [aria-current="page"] {
    color: var(--bb-text-body);
}

.bb-plan-single .bb-breadcrumbs__sep {
    color: var(--bb-text-subtle) !important;
}

.bb-plan-single .bb-tp-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    margin: 0 0 20px;
    padding: 7px 14px;
    font-family: "Inter", Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .02em;
    text-transform: none;
    color: #D8DDE3;
    background: #0E1217;
    border: 1px solid #30363E;
    border-radius: 999px;
}

.bb-plan-detail-hero .bb-hero-content__title,
.bb-plan-detail-hero .bb-hero-content__title {
    max-width: 620px;
    margin: 0 !important;
    font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif !important;
    font-size: 56px !important;
    font-weight: 700 !important;
    line-height: 1.04 !important;
    text-transform: uppercase;
    color: var(--bb-text) !important;
}

.bb-plan-single .bb-hero-content__intro {
    max-width: 600px;
    margin-top: 22px;
    font-family: "Inter", Arial, sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--bb-text-body);
}

.bb-plan-single .bb-hero-content__intro p {
    margin: 0;
}

.bb-plan-single .bb-tp-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 18px;
    margin-top: 16px;
    font-family: "Inter", Arial, sans-serif;
    font-size: 12px;
    line-height: 1.45;
    color: var(--bb-text-muted);
}

.bb-plan-single .bb-hero-content__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
}

.bb-plan-single .bb-hero-button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 999px;
    font-family: "Inter", Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.bb-plan-single .bb-hero-button > span:first-child {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px 0 20px;
    white-space: nowrap;
}

.bb-plan-single .bb-hero-button--primary {
    color: #fff !important;
    background: var(--bb-red) !important;
    border: 1px solid var(--bb-red) !important;
}

.bb-plan-single .bb-hero-button--primary:hover,
.bb-plan-single .bb-hero-button--primary:focus-visible {
    background: var(--bb-red) !important;
    border-color: var(--bb-red) !important;
    box-shadow: 0 0 18px rgba(216, 40, 40, .13);
}

.bb-plan-single .bb-hero-button__arrow {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    border-radius: 50%;
    background: #B92020;
    font-size: 18px;
    transition: transform 160ms ease, background-color 160ms ease;
}

.bb-plan-single .bb-hero-button--primary:hover .bb-hero-button__arrow,
.bb-plan-single .bb-hero-button--primary:focus-visible .bb-hero-button__arrow {
    transform: translateX(1px);
    background: #A91D1D;
}

.bb-plan-single .bb-tp-hero-pdf {
    padding-left: 0;
    color: var(--bb-text) !important;
    background: var(--bb-surface-1) !important;
    border: 1px solid #343C46 !important;
}

.bb-plan-single .bb-tp-hero-pdf::after {
    content: "↓";
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--bb-text);
    background: var(--bb-surface-1);
    font-size: 17px;
    transition: background-color 160ms ease, color 160ms ease;
}

.bb-plan-single .bb-tp-hero-pdf:hover,
.bb-plan-single .bb-tp-hero-pdf:focus-visible {
    color: #fff !important;
    background: #11171D !important;
    border-color: rgba(216, 40, 40, .55) !important;
}

.bb-plan-single .bb-tp-hero-pdf:hover::after,
.bb-plan-single .bb-tp-hero-pdf:focus-visible::after {
    color: #fff;
    background: rgba(216, 40, 40, .18);
}

.bb-plan-single .bb-tp-hero-media {
    width: 100%;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--bb-bg);
    border: 1px solid var(--bb-border);
    border-radius: 14px;
}

.bb-plan-single .bb-tp-hero-media__image {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* ----------------------------------------------------------
   Quick facts – theme-owned so plan pages no longer depend on
   exercise-single.css for icons, cards or typography.
   ---------------------------------------------------------- */
/* Kurzinfos: gemeinsame Regeln in components.css (UX-Paket 1). */

/* ----------------------------------------------------------
   Native TOC – same restrained disclosure language as exercise
   ---------------------------------------------------------- */
.bb-plan-toc-native {
    width: 100%;
    border-top: 1px solid var(--bb-border);
    border-bottom: 1px solid var(--bb-border);
}

.bb-plan-toc-native__summary {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0;
    cursor: pointer;
    list-style: none;
    font-family: "Inter", Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--bb-text-body);
}

.bb-plan-toc-native__summary::-webkit-details-marker {
    display: none;
}

.bb-plan-toc-native__icon {
    position: relative;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.bb-plan-toc-native__icon::before,
.bb-plan-toc-native__icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 11px;
    height: 1px;
    background: var(--bb-text-subtle);
    transform: translate(-50%, -50%);
    transition: transform 160ms ease;
}

.bb-plan-toc-native__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.bb-plan-toc-native[open] .bb-plan-toc-native__icon::after {
    transform: translate(-50%, -50%) rotate(0);
}

.bb-plan-toc-native__body {
    padding: 0 0 18px;
}

.bb-plan-toc-native__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 28px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: bb-plan-toc;
}

.bb-plan-toc-native__item {
    counter-increment: bb-plan-toc;
    min-width: 0;
}

.bb-plan-toc-native__item a {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 6px;
    color: var(--bb-text-muted);
    font-family: "Inter", Arial, sans-serif;
    font-size: 13px;
    line-height: 1.45;
    text-decoration: none;
}

.bb-plan-toc-native__item a::before {
    content: counter(bb-plan-toc, decimal-leading-zero);
    color: var(--bb-red);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.9;
}

.bb-plan-toc-native__item a:hover,
.bb-plan-toc-native__item a:focus-visible {
    color: var(--bb-text);
}

/* ----------------------------------------------------------
   Editorial section system
   ---------------------------------------------------------- */
.bb-plan-single .bb-tp-section,
.bb-plan-single .bb-tp-sources,
.bb-plan-single .bb-guide-entity-guides {
    width: 100%;
    margin: 0;
    scroll-margin-top: 110px;
}

.bb-plan-single .bb-tp-section__header {
    margin-bottom: 24px;
}

.bb-plan-single .bb-tp-section__title,
.bb-plan-single .bb-guide-section-title {
    margin: 0 0 18px !important;
    font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif !important;
    font-size: 34px !important;
    font-weight: 700 !important;
    line-height: 1.12 !important;
    color: var(--bb-text) !important;
}

.bb-plan-single .bb-tp-section__header .bb-tp-section__title:last-child,
.bb-plan-single .bb-tp-section > .bb-tp-section__title:last-child {
    margin-bottom: 0 !important;
}

.bb-plan-single .bb-tp-section__text,
.bb-plan-single .bb-tp-session__text,
.bb-plan-single .bb-tp-progression__item-text,
.bb-plan-single .bb-tp-progression__detail,
.bb-plan-single .bb-tp-pdf-card__text,
.bb-plan-single .bb-tp-target-card__item-text,
.bb-plan-single .bb-tp-warmup {
    font-family: "Inter", Arial, sans-serif;
    font-size: var(--bb-font-body);
    font-weight: 400;
    line-height: var(--bb-line-body);
    color: var(--bb-text-body);
}

.bb-plan-single .bb-tp-section__text {
    max-width: 100%;
}

/* ----------------------------------------------------------
   Weekly schedule
   ---------------------------------------------------------- */
.bb-plan-single .bb-tp-subtitle,
.bb-plan-single .bb-tp-session__title {
    margin: 0;
    font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
    font-weight: 700;
    color: var(--bb-text);
}

.bb-plan-single .bb-tp-subtitle {
    margin-bottom: 18px;
    font-size: 24px;
    line-height: 1.15;
}

.bb-plan-single .bb-tp-week {
    margin: 30px 0 44px;
}

.bb-plan-single .bb-tp-week__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.bb-plan-single .bb-tp-week__item {
    min-width: 0;
    min-height: 94px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 15px 14px;
    background: var(--bb-surface-1);
    border: 1px solid var(--bb-border);
    border-radius: 10px;
}

.bb-plan-single .bb-tp-week__day {
    font-family: "Inter", Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .045em;
    text-transform: uppercase;
    color: var(--bb-text-muted);
}

.bb-plan-single .bb-tp-week__session {
    font-family: "Inter", Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--bb-text);
}

.bb-plan-single .bb-tp-week__note {
    font-family: "Inter", Arial, sans-serif;
    font-size: 11px;
    line-height: 1.35;
    color: var(--bb-text-subtle);
}

/* ----------------------------------------------------------
   Training sessions + table
   ---------------------------------------------------------- */
.bb-plan-single .bb-tp-session + .bb-tp-session {
    margin-top: 54px;
}

.bb-plan-single .bb-tp-session__title {
    margin-bottom: 14px;
    font-size: 27px;
    line-height: 1.12;
}

.bb-plan-single .bb-tp-session__text {
    max-width: 820px;
    margin-bottom: 22px;
}

.bb-plan-single .bb-tp-table-wrap {
    width: 100%;
    overflow: hidden;
    background: var(--bb-surface-1);
    border: 1px solid var(--bb-border);
    border-radius: 12px;
}

.bb-plan-single .bb-tp-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    table-layout: auto;
    font-family: "Inter", Arial, sans-serif;
}

.bb-plan-single .bb-tp-table thead th {
    padding: 14px 16px;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    letter-spacing: .055em !important;
    text-align: left;
    text-transform: uppercase;
    color: var(--bb-text-muted) !important;
    background: #0D1116;
    border-bottom: 1px solid var(--bb-border);
}

.bb-plan-single .bb-tp-table tbody th,
.bb-plan-single .bb-tp-table tbody td {
    padding: 15px 16px;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    text-align: left;
    vertical-align: middle;
    color: var(--bb-text-body) !important;
    border-bottom: 1px solid var(--bb-border-soft);
}

.bb-plan-single .bb-tp-table tbody th,
.bb-plan-single .bb-tp-table tbody th a,
.bb-plan-single .bb-tp-table tbody th .bb-tp-exercise-link {
    font-weight: 500 !important;
    color: var(--bb-text) !important;
}

.bb-plan-single .bb-tp-table tbody tr:last-child > * {
    border-bottom: 0;
}

.bb-plan-single .bb-tp-table__cell--group {
    width: 145px;
}

.bb-plan-single .bb-tp-group-badge {
    display: inline !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--bb-text-body) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.bb-plan-single .bb-tp-exercise-link {
    color: var(--bb-text) !important;
    text-decoration: underline;
    text-decoration-color: #414A55;
    text-underline-offset: 3px;
}

.bb-plan-single .bb-tp-exercise-link:hover,
.bb-plan-single .bb-tp-exercise-link:focus-visible {
    color: #fff !important;
    text-decoration-color: var(--bb-red);
}

.bb-plan-single .bb-tp-cell-value,
.bb-plan-single .bb-tp-cell-label {
    font-weight: 400 !important;
}

.bb-plan-single .bb-tp-cell-label {
    display: none;
}

/* ----------------------------------------------------------
   Graphic + PDF
   ---------------------------------------------------------- */
.bb-plan-single .bb-tp-media__grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr);
    align-items: stretch;
    gap: 22px;
}

.bb-plan-single .bb-tp-media__figure {
    margin: 0;
    overflow: hidden;
    background: var(--bb-surface-1);
    border: 1px solid var(--bb-border);
    border-radius: 12px;
}

.bb-plan-single .bb-tp-media__image-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.bb-plan-single .bb-tp-media__image {
    display: block;
    width: 100%;
    height: auto;
}

.bb-plan-single .bb-tp-media__figure figcaption {
    padding: 10px 14px 12px;
    font-family: "Inter", Arial, sans-serif;
    font-size: 11px;
    line-height: 1.45;
    color: var(--bb-text-subtle);
    border-top: 1px solid var(--bb-border);
}

.bb-plan-single .bb-tp-pdf-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 26px;
    background: #0E1318;
    border: 1px solid var(--bb-border);
    border-radius: 12px;
}

.bb-plan-single .bb-tp-pdf-card__icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-family: "Inter", Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
    color: #fff;
    background: var(--bb-red);
    border-radius: 10px;
}

.bb-plan-single .bb-tp-pdf-card__title {
    margin: 0 0 10px !important;
    font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    line-height: 1.12 !important;
    color: var(--bb-text) !important;
}

.bb-plan-single .bb-tp-pdf-card__button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: auto;
    padding: 0 18px;
    font-family: "Inter", Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #fff !important;
    background: var(--bb-red);
    border: 1px solid var(--bb-red);
    border-radius: 9px;
    text-decoration: none !important;
}

.bb-plan-single .bb-tp-pdf-card__text + .bb-tp-pdf-card__button {
    margin-top: 22px;
}

.bb-plan-single .bb-tp-pdf-card__button:hover,
.bb-plan-single .bb-tp-pdf-card__button:focus-visible {
    background: var(--bb-red-hover);
    border-color: var(--bb-red-hover);
    box-shadow: 0 0 18px rgba(216, 40, 40, .16);
}

/* ----------------------------------------------------------
   Target group
   ---------------------------------------------------------- */
.bb-plan-single .bb-tp-target__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.bb-plan-single .bb-tp-target-card {
    padding: 24px;
    background: var(--bb-surface-1);
    border: 1px solid var(--bb-border);
    border-radius: 12px;
}

.bb-plan-single .bb-tp-target-card--less {
    background: rgba(216, 40, 40, .045);
    border-color: rgba(216, 40, 40, .28);
}

.bb-plan-single .bb-tp-target-card__title {
    margin: 0 0 18px !important;
    font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif !important;
    font-size: 25px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    color: var(--bb-text) !important;
}

.bb-plan-single .bb-tp-target-card__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bb-plan-single .bb-tp-target-card__item {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    padding: 14px 0;
    border-top: 1px solid var(--bb-border-soft);
}

.bb-plan-single .bb-tp-target-card__item:first-child {
    padding-top: 0;
    border-top: 0;
}

.bb-plan-single .bb-tp-target-card__item:last-child {
    padding-bottom: 0;
}

.bb-plan-single .bb-tp-target-card__mark {
    color: var(--bb-red);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
}

.bb-plan-single .bb-tp-target-card--good .bb-tp-target-card__mark {
    color: #46C37B;
}

.bb-plan-single .bb-tp-target-card__item-title {
    margin: 0 0 5px !important;
    font-family: "Inter", Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    color: var(--bb-text) !important;
}

.bb-plan-single .bb-tp-target-card__item-text {
    font-size: 15px;
    line-height: 1.6;
}

/* ----------------------------------------------------------
   Progression
   ---------------------------------------------------------- */
.bb-plan-single .bb-tp-progression__list {
    border-top: 1px solid var(--bb-border);
}

.bb-plan-single .bb-tp-progression__item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 14px;
    padding: 22px 0;
    border-bottom: 1px solid var(--bb-border);
}

.bb-plan-single .bb-tp-progression__number {
    font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--bb-red);
}

.bb-plan-single .bb-tp-progression__item-title {
    margin: 0 0 7px !important;
    font-family: "Inter", Arial, sans-serif !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    color: var(--bb-text) !important;
}

.bb-plan-single .bb-tp-progression__detail {
    margin-top: 28px;
}

/* ----------------------------------------------------------
   Exercise swaps
   ---------------------------------------------------------- */
.bb-plan-single .bb-tp-alternatives__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bb-plan-single .bb-tp-swap {
    padding: 17px 18px;
    background: var(--bb-surface-1);
    border: 1px solid var(--bb-border);
    border-radius: 10px;
}

.bb-plan-single .bb-tp-swap__route {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    font-family: "Inter", Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--bb-text);
}

.bb-plan-single .bb-tp-swap__route a {
    color: inherit !important;
    text-decoration: underline;
    text-decoration-color: #414A55;
    text-underline-offset: 3px;
}

.bb-plan-single .bb-tp-swap__route a:hover,
.bb-plan-single .bb-tp-swap__route a:focus-visible {
    text-decoration-color: var(--bb-red);
}

.bb-plan-single .bb-tp-swap__arrow {
    text-align: center;
    color: var(--bb-red);
    font-size: 18px;
}

.bb-plan-single .bb-tp-swap__note {
    margin: 8px 0 0;
    font-family: "Inter", Arial, sans-serif;
    font-size: 13px;
    line-height: 1.55;
    color: var(--bb-text-muted);
}

/* ----------------------------------------------------------
   Related plans
   ---------------------------------------------------------- */
.bb-plan-single .bb-tp-related__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.bb-plan-single .bb-tp-related-card__link {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: inherit !important;
    text-decoration: none !important;
    background: var(--bb-surface-1);
    border: 1px solid var(--bb-border);
    border-radius: 12px;
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.bb-plan-single .bb-tp-related-card__link:hover,
.bb-plan-single .bb-tp-related-card__link:focus-visible {
    background: #11171D;
    border-color: rgba(216, 40, 40, .42);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .16);
}

.bb-plan-single .bb-tp-related-card__media {
    width: 100%;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--bb-bg);
    border-bottom: 1px solid var(--bb-border);
}

.bb-plan-single .bb-tp-related-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bb-plan-single .bb-tp-related-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.bb-plan-single .bb-tp-related-card__meta {
    margin-bottom: 8px;
    font-family: "Inter", Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .045em;
    text-transform: uppercase;
    color: var(--bb-text-muted);
}

.bb-plan-single .bb-tp-related-card__title {
    margin: 0 0 18px !important;
    font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 1.12 !important;
    color: var(--bb-text) !important;
}

.bb-plan-single .bb-tp-related-card__cta {
    margin-top: auto;
    font-family: "Inter", Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--bb-red-hover);
}

.bb-plan-single .bb-tp-related-card:only-child .bb-tp-related-card__link {
    display: grid;
    grid-template-columns: minmax(0, 34%) minmax(0, 1fr);
    min-height: 230px;
}

.bb-plan-single .bb-tp-related-card:only-child .bb-tp-related-card__media {
    height: 100%;
    min-height: 230px;
    aspect-ratio: auto;
    border-right: 1px solid var(--bb-border);
    border-bottom: 0;
}

.bb-plan-single .bb-tp-related-card:only-child .bb-tp-related-card__body {
    justify-content: center;
    padding: 26px 28px;
}

/* ----------------------------------------------------------
   Related guides – loaded on plan pages without guide.css
   ---------------------------------------------------------- */
.bb-plan-single .bb-guide-entity-guides {
    width: 100%;
}

.bb-plan-single .bb-guide-link-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bb-plan-single .bb-guide-link-card a {
    min-height: 104px;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) 42px;
    align-items: center;
    overflow: hidden;
    color: inherit !important;
    text-decoration: none !important;
    background: var(--bb-surface-1);
    border: 1px solid var(--bb-border);
    border-radius: 12px;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.bb-plan-single .bb-guide-link-card a:hover,
.bb-plan-single .bb-guide-link-card a:focus-visible {
    background: #11171D;
    border-color: var(--bb-border-hover);
}

.bb-plan-single .bb-guide-link-card__media {
    width: 150px;
    height: 104px;
    margin: 0;
    overflow: hidden;
    background: var(--bb-bg);
    border-right: 1px solid var(--bb-border);
}

.bb-plan-single .bb-guide-link-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bb-plan-single .bb-guide-link-card__body {
    min-width: 0;
    padding: 15px 20px;
}

.bb-plan-single .bb-guide-link-card__meta {
    display: block;
    margin-bottom: 5px;
    font-family: "Inter", Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .045em;
    text-transform: uppercase;
    color: var(--bb-text-muted);
}

.bb-plan-single .bb-guide-link-card h3 {
    margin: 0 !important;
    font-family: "Inter", Arial, sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    color: var(--bb-text) !important;
}

.bb-plan-single .bb-guide-link-card__arrow {
    color: var(--bb-red);
    font-size: 18px;
}

/* ----------------------------------------------------------
   Review + sources – same compact language as exercise single
   ---------------------------------------------------------- */
.bb-plan-single .bb-tp-review {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-bottom: 14px;
    padding-top: 14px;
    font-family: "Inter", Arial, sans-serif;
    font-size: 11px;
    line-height: 1.45;
    color: var(--bb-text-subtle);
    border-top: 1px solid var(--bb-border);
}

.bb-plan-single .bb-sources-section {
    width: 100%;
    margin: 0;
}

.bb-plan-single .bb-sources-section__details {
    width: 100%;
}

.bb-plan-single .bb-sources-section__summary {
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    cursor: pointer;
    list-style: none;
    border-top: 1px solid var(--bb-border);
}

.bb-plan-single .bb-sources-section__summary::-webkit-details-marker {
    display: none;
}

.bb-plan-single .bb-sources-section__title {
    margin: 0 !important;
    font-family: "Inter", Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: var(--bb-text-muted) !important;
}

.bb-plan-single .bb-sources-section__count {
    font-family: "Inter", Arial, sans-serif;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    color: var(--bb-text-subtle);
}

.bb-plan-single .bb-sources-section__count::before { content: "("; }
.bb-plan-single .bb-sources-section__count::after { content: ")"; }

.bb-plan-single .bb-sources-section__icon {
    position: relative;
    width: 14px;
    height: 14px;
    margin-left: auto;
    flex: 0 0 14px;
}

.bb-plan-single .bb-sources-section__icon::before,
.bb-plan-single .bb-sources-section__icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 1px;
    background: var(--bb-text-subtle);
    transform: translate(-50%, -50%);
}

.bb-plan-single .bb-sources-section__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.bb-plan-single .bb-sources-section__details[open] .bb-sources-section__icon::after {
    transform: translate(-50%, -50%) rotate(0);
}

.bb-plan-single .bb-sources-section__body {
    padding-top: 6px;
}

.bb-plan-single .bb-sources-section__list {
    margin: 0;
    padding: 8px 0 0;
    list-style: none;
    counter-reset: bb-plan-source;
    border-top: 1px solid var(--bb-border);
}

.bb-plan-single .bb-sources-section__item {
    counter-increment: bb-plan-source;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 6px;
    padding: 3px 0;
}

.bb-plan-single .bb-sources-section__number::before {
    content: "[" counter(bb-plan-source) "]";
    font-family: "Inter", Arial, sans-serif;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.55;
    color: var(--bb-text-subtle);
}

.bb-plan-single .bb-sources-section__source {
    font-family: "Inter", Arial, sans-serif;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.55;
    color: var(--bb-text-subtle);
}

.bb-plan-single .bb-sources-section__link {
    color: var(--bb-text-muted) !important;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.bb-plan-single .bb-sources-section__link:hover,
.bb-plan-single .bb-sources-section__link:focus-visible {
    color: var(--bb-text) !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bb-plan-single .bb-sources-section__note {
    margin-top: 1px;
    font-family: "Inter", Arial, sans-serif;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--bb-text-subtle);
}

/* ----------------------------------------------------------
   Tablet
   ---------------------------------------------------------- */
@media (max-width: 1024px) {
    .bb-plan-single {
        --bb-plan-section-space: 54px;
    }

    .bb-plan-detail-hero {
        grid-template-columns: minmax(0, .9fr) minmax(380px, 1.1fr);
        gap: 34px;
    }

    .bb-plan-detail-hero .bb-hero-content__title,
    .bb-plan-detail-hero .bb-hero-content__title {
        font-size: 48px !important;
    }

    .bb-plan-single .bb-tp-target__grid,
    .bb-plan-single .bb-tp-media__grid {
        grid-template-columns: 1fr;
    }
}

/* ----------------------------------------------------------
   Mobile
   ---------------------------------------------------------- */
@media (max-width: 767px) {
    .bb-plan-single {
        --bb-plan-section-space: 46px;
    }

    .bb-plan-single__content {
        padding-bottom: 52px;
    }

    .bb-plan-single__block--shell,
    .bb-plan-single__block--reading {
        width: calc(100% - 40px);
    }

    .bb-plan-single__block--quickfacts {
        margin-top: 28px;
    }

    .bb-plan-single__block--toc {
        margin-top: 24px;
    }

    .bb-plan-detail-hero {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-top: 30px;
        padding-bottom: 36px;
    }

    .bb-plan-detail-hero .bb-hero-content__title,
    .bb-plan-detail-hero .bb-hero-content__title {
        font-size: 32px !important;
        line-height: 1.06 !important;
    }

    .bb-plan-single .bb-breadcrumbs {
        margin-bottom: 14px;
        font-size: 12px;
    }

    .bb-plan-single .bb-tp-kicker {
        min-height: 30px;
        margin-bottom: 16px;
        font-size: 10px;
    }

    .bb-plan-single .bb-hero-content__intro {
        margin-top: 18px;
        font-size: 15px;
        line-height: 1.65;
    }

    .bb-plan-single .bb-tp-hero-meta {
        margin-top: 14px;
        font-size: 11px;
    }

    .bb-plan-single .bb-hero-content__actions {
        gap: 10px;
        margin-top: 22px;
    }

    .bb-plan-single .bb-hero-button,
    .bb-plan-single .bb-hero-button > span:first-child,
    .bb-plan-single .bb-hero-button__arrow,
    .bb-plan-single .bb-tp-hero-pdf::after {
        min-height: 44px;
        height: 44px;
    }

    .bb-plan-single .bb-hero-button {
        font-size: 14px !important;
    }

    .bb-plan-single .bb-hero-button > span:first-child {
        padding: 0 15px 0 17px;
    }

    .bb-plan-single .bb-hero-button__arrow,
    .bb-plan-single .bb-tp-hero-pdf::after {
        width: 44px;
        flex-basis: 44px;
    }

    .bb-plan-single .bb-tp-hero-media {
        border-radius: 10px;
    }

    .bb-plan-toc-native__summary {
        min-height: 52px;
        font-size: 13px;
    }

    .bb-plan-toc-native__list {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .bb-plan-single .bb-tp-section__title,
    .bb-plan-single .bb-guide-section-title {
        font-size: 28px !important;
        line-height: 1.12 !important;
    }

    .bb-plan-single .bb-tp-section__text,
    .bb-plan-single .bb-tp-session__text,
    .bb-plan-single .bb-tp-progression__item-text,
    .bb-plan-single .bb-tp-progression__detail,
    .bb-plan-single .bb-tp-pdf-card__text,
    .bb-plan-single .bb-tp-target-card__item-text {
        font-size: 15px;
        line-height: 1.65;
    }

    .bb-plan-single .bb-tp-week {
        margin: 26px 0 36px;
    }

    .bb-plan-single .bb-tp-week__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .bb-plan-single .bb-tp-week__item {
        min-height: 76px;
        gap: 3px;
        padding: 11px 12px;
    }

    .bb-plan-single .bb-tp-week__day {
        font-size: 9px;
    }

    .bb-plan-single .bb-tp-week__session {
        font-size: 14px;
    }

    .bb-plan-single .bb-tp-week__note {
        font-size: 10px;
    }

    .bb-plan-single .bb-tp-session + .bb-tp-session {
        margin-top: 42px;
    }

    .bb-plan-single .bb-tp-session__title {
        font-size: 24px;
    }

    .bb-plan-single .bb-tp-table-wrap {
        overflow: visible;
        background: transparent;
        border: 0;
        border-radius: 0;
    }

    .bb-plan-single .bb-tp-table,
    .bb-plan-single .bb-tp-table tbody,
    .bb-plan-single .bb-tp-table tr,
    .bb-plan-single .bb-tp-table th,
    .bb-plan-single .bb-tp-table td {
        width: 100%;
    }

    .bb-plan-single .bb-tp-table thead {
        display: none;
    }

    .bb-plan-single .bb-tp-table tbody {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .bb-plan-single .bb-tp-table__row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto auto auto;
        grid-template-rows: auto auto auto;
        align-items: center;
        column-gap: 10px;
        row-gap: 10px;
        padding: 14px 16px !important;
        background: var(--bb-surface-1) !important;
        border: 1px solid var(--bb-border) !important;
        border-radius: 12px !important;
    }

    .bb-plan-single .bb-tp-table__row > th,
    .bb-plan-single .bb-tp-table__row > td {
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
    }

    .bb-plan-single .bb-tp-table__row > th {
        grid-column: 1 / 4;
        grid-row: 1;
        min-width: 0;
        font-size: 15px !important;
        line-height: 1.35 !important;
    }

    .bb-plan-single .bb-tp-table__row > th a,
    .bb-plan-single .bb-tp-table__row > th .bb-tp-exercise-link {
        display: block;
        min-width: 0;
        font-size: 15px !important;
        line-height: 1.35 !important;
        text-decoration: none !important;
        overflow-wrap: anywhere;
    }

    .bb-plan-single .bb-tp-table__cell--group {
        grid-column: 4;
        grid-row: 1;
        width: auto !important;
        min-width: 0;
        text-align: right;
        white-space: nowrap;
    }

    .bb-plan-single .bb-tp-group-badge {
        font-size: 12px !important;
        line-height: 1.3 !important;
        color: var(--bb-text-muted) !important;
        white-space: nowrap;
    }

    .bb-plan-single .bb-tp-table__cell--sets {
        grid-column: 1;
        grid-row: 2;
    }

    .bb-plan-single .bb-tp-table__cell--reps {
        grid-column: 2;
        grid-row: 2;
    }

    .bb-plan-single .bb-tp-table__cell--rest {
        grid-column: 3 / 5;
        grid-row: 2;
    }

    .bb-plan-single .bb-tp-table__cell--sets,
    .bb-plan-single .bb-tp-table__cell--reps,
    .bb-plan-single .bb-tp-table__cell--rest {
        display: inline-flex !important;
        align-items: baseline;
        gap: 4px;
        white-space: nowrap;
        font-size: 12px !important;
        line-height: 1.35 !important;
    }

    .bb-plan-single .bb-tp-table .bb-tp-cell-value {
        font-size: 12px !important;
        line-height: 1.35 !important;
        color: var(--bb-text-body) !important;
    }

    .bb-plan-single .bb-tp-table .bb-tp-cell-label {
        display: inline !important;
        font-size: 10px !important;
        line-height: 1.35 !important;
        color: var(--bb-text-muted) !important;
    }

    .bb-plan-single .bb-tp-table__cell--note {
        grid-column: 1 / -1;
        grid-row: 3;
        white-space: normal !important;
        font-size: 11px !important;
        color: var(--bb-text-muted) !important;
    }

    .bb-plan-single .bb-tp-pdf-card {
        padding: 22px 20px;
    }

    .bb-plan-single .bb-tp-pdf-card__title {
        font-size: 25px !important;
    }

    .bb-plan-single .bb-tp-target-card {
        padding: 20px;
    }

    .bb-plan-single .bb-tp-target-card__title {
        font-size: 23px !important;
    }

    .bb-plan-single .bb-tp-progression__item {
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 10px;
        padding: 19px 0;
    }

    .bb-plan-single .bb-tp-progression__item-title {
        font-size: 16px !important;
    }

    .bb-plan-single .bb-tp-swap__route {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .bb-plan-single .bb-tp-swap__arrow {
        width: max-content;
        transform: rotate(90deg);
        transform-origin: center;
    }

    .bb-plan-single .bb-tp-related__grid {
        grid-template-columns: 1fr;
    }

    .bb-plan-single .bb-tp-related-card:only-child .bb-tp-related-card__link {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .bb-plan-single .bb-tp-related-card:only-child .bb-tp-related-card__media {
        min-height: 0;
        aspect-ratio: 4 / 3;
        border-right: 0;
        border-bottom: 1px solid var(--bb-border);
    }

    .bb-plan-single .bb-tp-related-card:only-child .bb-tp-related-card__body {
        padding: 20px;
    }

    .bb-plan-single .bb-guide-link-card a {
        min-height: 88px;
        grid-template-columns: 96px minmax(0, 1fr) 34px;
    }

    .bb-plan-single .bb-guide-link-card__media {
        width: 96px;
        height: 88px;
    }

    .bb-plan-single .bb-guide-link-card__body {
        padding: 12px;
    }

    .bb-plan-single .bb-guide-link-card h3 {
        font-size: 16px !important;
    }

    .bb-plan-single .bb-sources-section__item {
        grid-template-columns: 20px minmax(0, 1fr);
        gap: 5px;
    }
}

@media (max-width: 380px) {
    .bb-plan-single__block--shell,
    .bb-plan-single__block--reading {
        width: calc(100% - 32px);
    }

    .bb-plan-detail-hero .bb-hero-content__title,
    .bb-plan-detail-hero .bb-hero-content__title {
        font-size: 30px !important;
    }

    .bb-plan-single .bb-tp-week__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bb-plan-single .bb-tp-table__row {
        grid-template-columns: minmax(0, 1fr) auto auto;
        column-gap: 8px;
        padding: 13px 14px !important;
    }

    .bb-plan-single .bb-tp-table__row > th {
        grid-column: 1 / 3;
    }

    .bb-plan-single .bb-tp-table__cell--group {
        grid-column: 3;
    }

    .bb-plan-single .bb-tp-table__cell--sets { grid-column: 1; }
    .bb-plan-single .bb-tp-table__cell--reps { grid-column: 2; }
    .bb-plan-single .bb-tp-table__cell--rest { grid-column: 3; }
}
