/* The existing tariff controls now contain eight Lockup plans and one Daily Flow. */
.calc .calc__grid--sc2 {grid-template-columns:repeat(4,minmax(0,1fr))}
.calc .calc__grid--sc2 > .radio-card--tariff:nth-child(n) {grid-column:auto}
.calc .calc__grid--elite {grid-template-columns:minmax(0,1fr)}
@media(max-width:680px){.calc .calc__grid--sc2 {grid-template-columns:repeat(2,minmax(0,1fr))}}
/* A closed desktop panel must not slide over content when entering mobile. */
@media(max-width:1438px){.header__panel:not(.is-open){visibility:hidden;pointer-events:none}}
/* Preserve warning icons beside long translated explanations. */
.cycle__alert::before {flex:0 0 20px;align-self:flex-start}
.cycle__alert > span {min-width:0;overflow-wrap:break-word}
/* Logged-in review must not put the site header under the WordPress toolbar. */
body.admin-bar .header {top:32px}
@media(max-width:782px){body.admin-bar .header {top:46px}}
@media(max-width:600px){body.admin-bar #wpadminbar {position:fixed}}
/* Keep the six-column comparison readable instead of shrinking text to 8px. */
@media(max-width:1024px){
 .example .table-wrapper {max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
 .table-default--tariffs {min-width:900px}
 .table-default--tariffs thead th {font-size:14px;line-height:1.4;padding:12px}
 .table-default--tariffs tbody td {font-size:16px;line-height:1.5;padding:16px 12px}
 .table-default--tariffs .text-table {font-size:14px;line-height:1.4}
 .table-default--tariffs .table-name {gap:12px;flex-direction:row;align-items:center}
 .table-default--tariffs .badge {flex:0 0 64px;width:64px;height:64px;order:0}
}

/* Leave the mobile menu inside the viewport below the admin toolbar. */
@media (max-width:1438px) {
 body.admin-bar .header__nav {max-height:calc(100dvh - 140px);overflow-y:auto}
}

/* Do not let a long card heading enlarge the single-column grid on phones. */
.cycle__wrapper > *, .cycle__group, .calc__left, .calc__right {min-width:0}
@media (max-width:480px) {
 body {min-width:0}
 .cycle__head {display:grid;grid-template-columns:48px minmax(0,1fr)}
 .cycle__head .b-badges {grid-column:2;justify-self:start;margin-left:0}
}

/* The dated archive caption must remain legible on the dark background. */
html.dark-theme [data-sc2-dashboard="archive"] {color:#f0f0f0;background:#161616;border-radius:6px;padding:8px}
