/*
 * BigPass TV skin for aMember Pro (solid-color theme).
 *
 * Upload to: billing/application/default/views/public/css/site.css
 * aMember loads a file with that name automatically on every customer-facing page.
 *
 * Colours and fonts mirror resources/css/app.css on the main site.
 */

@import url('https://fonts.bunny.net/css?family=anton:400|barlow-condensed:500,600,600i,700|bricolage-grotesque:400,500,600&display=swap');

:root:root {
    --bp-ink: #0a0907;
    --bp-coal: #14120e;
    --bp-ash: #1e1b16;
    --bp-chalk: #f4efe6;
    --bp-mute: #a69f92;
    --bp-flare: #ff4a1c;
    --bp-volt: #dcff3d;
    --bp-line: rgb(244 239 230 / 0.12);
    --bp-display: 'Anton', 'Haettenschweiler', 'Impact', sans-serif;
    --bp-label: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --bp-sans: 'Bricolage Grotesque', ui-sans-serif, sans-serif;
    --bp-snap: cubic-bezier(0.2, 0.9, 0.2, 1);

    /* Re-point the theme's own variables so parts not styled below still match. */
    --am_bg: var(--bp-ink);
    --am_color: var(--bp-ink);
    --am_page_bg: transparent;
    --am_page_bg_color: transparent;
    --am_text_color: var(--bp-chalk);
    --am_link_color: var(--bp-volt);
    --am_link_color_a99: rgb(220 255 61 / 0.6);
    --am_btn_color: var(--bp-flare);
    --am_menu_color: var(--bp-flare);
    --am_font_family: 'Bricolage Grotesque';
    --am_font_size_px: 16px;
    --am_content_shadow: none;
    --am_footer_text_color: var(--bp-mute);
    --am_footer_link_color: var(--bp-mute);
    --am_sm_color: var(--bp-mute);
    --am_login_legend_bg: transparent;
    --am_login_form_bg_color: transparent;
    --am_header_menu_bg_color: var(--bp-coal);
    --am_header_menu_link_color: var(--bp-chalk);
    --am_header_menu_link2_color: var(--bp-chalk);
    --color-text-primary: var(--bp-chalk);
    --color-text-secondary: var(--bp-mute);
    --color-link: var(--bp-volt);
}

/* ------------------------------------------------------------ backdrop */

html:root {
    background:
        radial-gradient(60rem 40rem at 88% -6%, rgb(255 74 28 / 0.34), transparent 62%),
        radial-gradient(46rem 36rem at -8% 40%, rgb(15 61 42 / 0.85), transparent 65%),
        radial-gradient(60rem 50rem at 20% 110%, rgb(255 74 28 / 0.2), transparent 60%),
        var(--bp-ink);
    background-attachment: fixed;
}

html body {
    position: relative;
    font-family: var(--bp-sans);
    color: var(--bp-chalk);
    -webkit-font-smoothing: antialiased;
}

/* Diagonal floodlight beams + film grain, same as the main site. */
html body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(115deg, transparent 58%, rgb(255 74 28 / 0.1) 58.2%, transparent 70%),
        repeating-linear-gradient(115deg, transparent 0 5.5rem, rgb(244 239 230 / 0.025) 5.5rem calc(5.5rem + 1px));
}

html body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    opacity: 0.11;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

html body .am-layout,
html body .am-footer {
    position: relative;
    z-index: 1;
}

html body .am-common,
html body .am-common legend {
    font-family: var(--bp-sans);
    color: var(--bp-chalk);
}

html body ::selection {
    background: var(--bp-volt);
    color: var(--bp-ink);
}

html body a {
    color: var(--bp-volt);
    text-decoration-color: rgb(220 255 61 / 0.5);
    text-underline-offset: 3px;
    transition: color 0.2s;
}

html body a:hover {
    color: var(--bp-chalk);
}

html body :focus-visible {
    outline: 2px solid var(--bp-volt);
    outline-offset: 3px;
}

/* -------------------------------------------------------------- header */

html body .am-header {
    background: none;
    padding: 2.25rem 1.25rem 0;
}

html body .am-header .am-header-content-wrapper,
html body .am-header-line {
    background: none;
    border: 0;
}

/*
 * The uploaded logo has dark lettering that disappears on the dark background,
 * so the wordmark is drawn in type instead. Delete this block (down to the
 * "card" heading) once a light-coloured logo is uploaded in aMember.
 */
html body .am-header .am-header-content .am-header-content-logo {
    display: none;
}

html body .am-header-logo-wrapper {
    text-align: center;
}

html body .am-header-logo-wrapper a {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
    font-family: var(--bp-display);
    font-size: 2.25rem;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    color: var(--bp-chalk);
}

html body .am-header-logo-wrapper a::before {
    content: 'BigPass';
}

html body .am-header-logo-wrapper a::after {
    content: 'TV';
    padding: 0.1rem 0.4rem 0.05rem;
    background: var(--bp-flare);
    color: var(--bp-ink);
    font-size: 0.62em;
    transform: skewX(-10deg) translateY(-0.15em);
}

/* ---------------------------------------------------------------- card */

html body .am-main {
    max-width: 46rem;
}

html body .am-body {
    padding: 0 1.25rem;
}

html body .am-body .am-body-content-wrapper {
    margin: 2.25rem auto 3.5rem;
    padding: 0;
    background: rgb(20 18 14 / 0.78);
    backdrop-filter: blur(14px);
    border: 1px solid var(--bp-line);
    border-top: 4px solid var(--bp-flare);
    border-radius: 0;
    box-shadow: 0 2.5rem 6rem rgb(0 0 0 / 0.55);
}

html body .am-body-content {
    min-height: 0;
    padding: clamp(1.5rem, 5vw, 3rem);
}

html body .am-body-content-top {
    margin: 0 0 1.75rem;
    padding: 0;
    border: 0;
    background: none;
}

html body .am-body-content h1,
html body .am-body-content h2 {
    margin: 0;
    padding: 0;
    border: 0;
    font-family: var(--bp-display);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: 0.005em;
    text-transform: uppercase;
    color: var(--bp-chalk);
}

html body .am-body-content h1 {
    font-size: clamp(2.75rem, 9vw, 4.5rem);
}

html body .am-body-content h2 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
}

/* Small label above the page title, like the section eyebrows on the main site. */
html body .am-body-content-top::before {
    content: 'BigPass TV';
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
    font-family: var(--bp-label);
    font-style: italic;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--bp-volt);
}

/* ------------------------------------------------------- info / errors */

html body .am-info,
html body .am-errors,
html body .am-error,
html body .am-flash-content {
    margin: 0 0 1.75rem;
    padding: 0.9rem 1.1rem;
    background: rgb(244 239 230 / 0.05);
    border: 0;
    border-left: 3px solid var(--bp-volt);
    border-radius: 0;
    box-shadow: none;
    color: var(--bp-mute);
    font-size: 0.95rem;
    line-height: 1.5;
}

html body .am-errors,
html body .am-error,
html body .am-form .am-element .am-error,
html body .am-form span.am-error {
    border-left-color: var(--bp-flare);
    color: #ff9d82;
}

html body .am-form .am-element .am-error,
html body .am-form span.am-error {
    display: block;
    margin: 0.5rem 0 0;
    padding: 0;
    background: none;
    border: 0;
    font-size: 0.9rem;
}

/* ---------------------------------------------------------------- form */

html body .am-form form {
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

html body .am-form .am-row {
    display: block;
    margin: 0;
    padding: 1.15rem 0;
    background: none;
    border: 0;
    border-top: 1px solid var(--bp-line);
}

html body .am-form .am-row::after {
    content: '';
    display: table;
    clear: both;
}

html body .am-form .am-row .am-element-title,
html body .am-form .am-row .am-element {
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
    text-align: left;
    background: none;
    border: 0;
}

html body .am-form .am-element-title label {
    display: block;
    font-family: var(--bp-label);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bp-chalk);
}

html body .am-form .am-element-title .required {
    color: var(--bp-flare);
}

html body .am-form .am-element-title .comment {
    margin-top: 0.2rem;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--bp-mute);
}

html body .am-form .am-element {
    margin-top: 0.6rem;
    line-height: 1.5;
    color: var(--bp-chalk);
}

html body .am-form .am-element > br {
    display: none;
}

html body .am-form input[type='text'],
html body .am-form input[type='password'],
html body .am-form input[type='email'],
html body .am-form input[type='tel'],
html body .am-form input[type='number'],
html body .am-form select,
html body .am-form textarea {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    padding: 0.85rem 1rem;
    background: rgb(10 9 7 / 0.7);
    border: 1px solid rgb(244 239 230 / 0.2);
    border-radius: 0;
    box-shadow: none;
    font-family: var(--bp-sans);
    font-size: 1rem;
    line-height: 1.3;
    color: var(--bp-chalk);
    transition:
        border-color 0.2s,
        background-color 0.2s,
        box-shadow 0.2s;
}

html body .am-form input::placeholder,
html body .am-form textarea::placeholder {
    color: rgb(166 159 146 / 0.7);
}

html body .am-form input[type='text']:hover,
html body .am-form input[type='password']:hover,
html body .am-form input[type='email']:hover,
html body .am-form select:hover,
html body .am-form textarea:hover {
    border-color: rgb(244 239 230 / 0.4);
}

html body .am-form input[type='text']:focus,
html body .am-form input[type='password']:focus,
html body .am-form input[type='email']:focus,
html body .am-form input[type='tel']:focus,
html body .am-form input[type='number']:focus,
html body .am-form select:focus,
html body .am-form textarea:focus {
    outline: 0;
    background: var(--bp-ink);
    border-color: var(--bp-volt);
    box-shadow: 0 0 0 3px rgb(220 255 61 / 0.18);
}

/*
 * Browser autofill paints fields a light colour, which hides the light text.
 * The inset shadow covers that fill; it has to survive :hover and :focus too,
 * so it is repeated here with the focus ring instead of being replaced by it.
 */
html body .am-form input:-webkit-autofill,
html body .am-form input:-webkit-autofill:hover,
html body .am-form input:autofill {
    -webkit-text-fill-color: var(--bp-chalk) !important;
    box-shadow: 0 0 0 100px var(--bp-ink) inset !important;
    caret-color: var(--bp-chalk);
    transition: background-color 9999s;
}

html body .am-form input:-webkit-autofill:focus,
html body .am-form input:autofill:focus {
    -webkit-text-fill-color: var(--bp-chalk) !important;
    box-shadow:
        0 0 0 100px var(--bp-ink) inset,
        0 0 0 3px rgb(220 255 61 / 0.18) !important;
    caret-color: var(--bp-chalk);
}

html body .am-form input[type='radio'],
html body .am-form input[type='checkbox'] {
    width: auto;
    margin-right: 0.5rem;
    accent-color: var(--bp-flare);
}

/* The password-strength script wraps its field; keep it full width. */
html body .am-form .am-element > :has(> input.am-pass-indicator) {
    display: block;
    width: 100%;
}

html body .am-form input.am-pass-indicator {
    display: block;
    width: 100% !important;
}

/* First + last name side by side. */
html body .am-form .am-element.group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

html body .am-form .am-element.group > input[type='text'] {
    flex: 1 1 12rem;
    width: auto;
}

/* ---------------------------------------------- plan + payment summary */

/* Each plan is a compact row: marker, name, price on the right, blurb below. */
html body .am-form .am-element > label {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    gap: 0.1rem 1rem;
    margin: 0 0 0.5rem;
    padding: 0.7rem 0.95rem;
    background: linear-gradient(150deg, var(--bp-flare), #ff7a2e);
    border: 1px solid transparent;
    color: var(--bp-ink);
    cursor: pointer;
}

html body .am-form .am-element > label:last-of-type {
    margin-bottom: 0;
}

/* With several plans, only the picked one gets the orange fill. */
html body .am-form .am-element > label:has(input[type='radio']),
html body .am-form .am-element > label:has(input[type='checkbox']) {
    grid-template-columns: auto 1fr auto;
    column-gap: 0.8rem;
    background: rgb(244 239 230 / 0.04);
    border-color: var(--bp-line);
    color: var(--bp-chalk);
    transition:
        background-color 0.2s,
        border-color 0.2s,
        color 0.2s;
}

html body .am-form .am-element > label:has(input[type='radio']):hover,
html body .am-form .am-element > label:has(input[type='checkbox']):hover {
    border-color: rgb(244 239 230 / 0.45);
}

html body .am-form .am-element > label:has(input:checked) {
    background: linear-gradient(150deg, var(--bp-flare), #ff7a2e);
    border-color: transparent;
    color: var(--bp-ink);
}

html body .am-form .am-element > label:has(input:focus-visible) {
    outline: 2px solid var(--bp-volt);
    outline-offset: 3px;
}

/* The browser's own radio is hidden (still keyboard-usable); a diamond marker stands in. */
html body .am-form .am-element > label > input[type='radio'],
html body .am-form .am-element > label > input[type='checkbox'] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

html body .am-form .am-element > label:has(input[type='radio'])::before,
html body .am-form .am-element > label:has(input[type='checkbox'])::before {
    content: '';
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    box-sizing: border-box;
    width: 0.8rem;
    height: 0.8rem;
    margin: 0 0.15rem;
    border: 2px solid rgb(244 239 230 / 0.5);
    transform: rotate(45deg);
    transition:
        background-color 0.2s,
        border-color 0.2s;
}

html body .am-form .am-element > label:has(input:checked)::before {
    background: var(--bp-ink);
    border-color: var(--bp-ink);
}

html body .am-form .am-product-title {
    min-width: 0;
    font-family: var(--bp-display);
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

html body .am-form .am-product-terms {
    font-family: var(--bp-label);
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.25;
    letter-spacing: 0.06em;
    text-align: right;
    text-transform: uppercase;
    color: inherit;
}

html body .am-form .am-product-desc {
    grid-column: 1 / -1;
    font-size: 0.82rem;
    font-style: normal;
    line-height: 1.4;
    color: inherit;
    opacity: 0.72;
}

html body .am-form .am-element > label:has(input[type='radio']) .am-product-desc,
html body .am-form .am-element > label:has(input[type='checkbox']) .am-product-desc {
    grid-column: 2 / -1;
}

/* On phones the price drops under the plan name. */
@media (max-width: 34rem) {
    html body .am-form .am-product-terms {
        grid-column: 1 / -1;
        text-align: left;
    }

    html body .am-form .am-element > label:has(input[type='radio']) .am-product-terms,
    html body .am-form .am-element > label:has(input[type='checkbox']) .am-product-terms {
        grid-column: 2 / -1;
    }
}

/*
 * Payment methods reuse the plan rows above, but their markup is different
 * (a loose space, a name and a note), so the pieces are placed by hand.
 */
html body .am-form #row-paysys_id .am-element > label {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0 0.8rem;
    margin: 0 0 0.5rem;
    padding: 0.7rem 0.95rem;
    font-size: 0;
    line-height: 1.2;
}

/*
 * aMember's script shows and hides payment methods by writing "display" onto
 * each row, which would undo the grid. Force the grid back on, except for rows
 * the script has hidden because they do not suit the chosen plan.
 */
html body .am-form #row-paysys_id .am-element > label:not([style*='display: none']):not([style*='display:none']) {
    display: grid !important;
}

html body .am-form #row-paysys_id .am-element > label:last-of-type {
    margin-bottom: 0;
}

html body .am-form #row-paysys_id .am-element > label::before {
    grid-row: 1 / span 2;
}

html body .am-form .am-paysystem-title {
    grid-column: 2;
    grid-row: 1;
    font-family: var(--bp-display);
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: inherit;
}

html body .am-form .am-paysystem-desc {
    display: block;
    grid-column: 2;
    grid-row: 2;
    margin: 0.2rem 0 0;
    font-size: 0.82rem;
    font-style: normal;
    line-height: 1.4;
    color: inherit;
    opacity: 0.72;
}

/* A single payment method is shown as plain text, with no row around it. */
html body .am-form #row-paysys_id .am-element > .am-paysystem-title {
    display: block;
    color: var(--bp-chalk);
}

html body .am-form #row-paysys_id .am-element > .am-paysystem-desc {
    color: var(--bp-mute);
    opacity: 1;
}

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

html body .am-form .am-row#row-buttons {
    padding-bottom: 0;
}

html body .am-body-content input[type='submit'],
html body .am-body-content input[type='button'],
html body .am-body-content button,
html body .am-body-content a.button,
html body .am-popup input[type='submit'],
html body .am-popup input[type='button'],
html body .am-popup button,
html body .am-popup a.button {
    display: inline-block;
    height: auto;
    margin: 0;
    padding: 1rem 2.4rem;
    background: var(--bp-flare);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    clip-path: polygon(0.9rem 0, 100% 0, calc(100% - 0.9rem) 100%, 0 100%);
    font-family: var(--bp-label);
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.2;
    letter-spacing: 0.12em;
    text-decoration: none;
    text-shadow: none;
    text-transform: uppercase;
    color: var(--bp-ink);
    cursor: pointer;
    transition:
        translate 0.25s var(--bp-snap),
        background-color 0.25s,
        color 0.25s;
}

html body .am-body-content input[type='submit']:hover,
html body .am-body-content input[type='button']:hover,
html body .am-body-content button:hover,
html body .am-body-content a.button:hover,
html body .am-popup input[type='submit']:hover,
html body .am-popup input[type='button']:hover,
html body .am-popup button:hover,
html body .am-popup a.button:hover {
    translate: 4px 0;
    background: var(--bp-volt);
    border: 0;
    color: var(--bp-ink);
}

html body .am-body-content input[type='submit']:active,
html body .am-body-content input[type='button']:active,
html body .am-body-content button:active,
html body .am-body-content a.button:active,
html body .am-popup input[type='submit']:active,
html body .am-popup button:active {
    translate: 1px 0;
    background: var(--bp-chalk);
    color: var(--bp-ink);
}

html body .am-body-content input[type='submit']:disabled,
html body .am-body-content button:disabled {
    translate: none;
    background: var(--bp-ash);
    border: 0;
    color: var(--bp-mute);
    cursor: not-allowed;
}

html body .am-form .am-row#row-buttons input[type='submit'] {
    width: 100%;
}

/* -------------------------------------------------- login + password */

html body .am-login-form-wrapper,
html body .am-sendpass-form-wrapper {
    margin-top: 0;
    background: none;
}

html body .am-form.am-auth-form {
    width: 100%;
    max-width: none;
    margin: 0;
}

html body .am-form fieldset legend {
    margin: 0 0 1.25rem;
    padding: 0;
    background: none;
    border: 0;
    font-family: var(--bp-display);
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 400;
    line-height: 1;
    text-align: left;
    text-transform: uppercase;
    color: var(--bp-chalk);
}

html body .am-form.am-auth-form .am-row {
    background: none;
}

html body .am-form.am-auth-form div.am-element-title,
html body .am-popup .am-form.am-auth-form div.am-element-title {
    width: auto;
    margin: 0;
    padding: 0;
}

html body .am-form.am-auth-form div.am-element,
html body .am-popup .am-form.am-auth-form div.am-element {
    width: auto;
    margin: 0.6rem 0 0;
    padding: 0;
}

html body .am-popup .am-form.am-auth-form,
html body .am-popup .am-form.am-auth-form div.am-row {
    width: auto;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
}

html body .am-form.am-auth-form .am-row-buttons {
    padding-bottom: 0;
}

html body .am-form.am-auth-form .am-row-buttons .am-element {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
}

html body .am-form-login-switch-wrapper {
    font-size: 0.95rem;
}

html body .am-signup-link {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--bp-line);
    color: var(--bp-mute);
    text-align: center;
}

/* --------------------------------------------------------- member area */

/* Logged-in pages get a wider card and a calmer page title. */
html body.am-logged-in .am-main {
    max-width: 60rem;
}

html body.am-logged-in .am-body-content h1 {
    margin-top: 1.5rem;
    font-size: clamp(2.1rem, 6vw, 3.5rem);
}

html body .am-account-toolbar {
    margin: 0 0 1.25rem;
}

html body .am-account-toolbar-items {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    overflow: visible;
}

html body .am-user-identity-block {
    float: none;
    margin-left: auto;
    font-family: var(--bp-label);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bp-chalk);
}

html body .am-user-identity-block a {
    margin-left: 0.75rem;
    font-weight: 600;
    color: var(--bp-volt);
}

/* On phones aMember turns the toolbar into a light strip with dark icons. */
html body .am-account-toolbar .am-account-toolbar-items {
    background: none;
}

html body .am-account-toolbar-fixed .am-account-toolbar-items {
    background: var(--bp-coal);
    border-bottom: 1px solid var(--bp-line);
}

html body .am-tabs-narrow-switch,
html body .am-tabs-narrow-dashboard,
html body .am-tabs-narrow-switch::before,
html body .am-tabs-narrow-dashboard::before {
    color: var(--bp-chalk);
}

html body .am-tabs-narrow-switch::before,
html body .am-tabs-narrow-dashboard::before {
    width: 1.35rem;
    height: 1.35rem;
    vertical-align: middle;
}

@media all and (max-width: 500px) {
    html body .am-account-toolbar .am-account-toolbar-items {
        padding: 0.6rem 0.75rem;
        background: rgb(244 239 230 / 0.05);
        border: 1px solid var(--bp-line);
    }
}

/* Section menu: dark bar, orange for the page you are on. */
html body ul.am-tabs {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    background: rgb(244 239 230 / 0.04);
    border: 1px solid var(--bp-line);
    border-radius: 0;
    overflow: visible;
}

html body ul.am-tabs > li {
    float: none;
    background: none;
}

html body ul.am-tabs a {
    height: auto;
    padding: 0.75rem 1.15rem;
    border-right: 1px solid var(--bp-line);
    font-family: var(--bp-label);
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.3;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bp-mute);
    transition:
        background-color 0.2s,
        color 0.2s;
}

html body ul.am-tabs li.normal:hover,
html body ul.am-tabs li.am-tabs__tab_open {
    background: rgb(244 239 230 / 0.08);
}

html body ul.am-tabs li.normal > a:hover,
html body ul.am-tabs li.normal:hover > a,
html body ul.am-tabs li.am-tabs__tab_open > a {
    border-color: var(--bp-line);
    color: var(--bp-chalk);
}

html body ul.am-tabs li.active {
    background: var(--bp-flare);
}

html body ul.am-tabs li.active > a {
    border-color: transparent;
    color: var(--bp-ink);
}

html body ul.am-tabs li ul {
    background: var(--bp-coal);
    border: 1px solid var(--bp-line);
    border-radius: 0;
    box-shadow: 0 1.5rem 3rem rgb(0 0 0 / 0.6);
}

/* The same menu as a drop-down on phones. */
html body ul.am-tabs-narrow,
html body ul.am-tabs-narrow ul,
html body .am-tabs-narrow-wrapper .am-tabs-narrow-wrapper-tail {
    background: var(--bp-ash);
}

html body ul.am-tabs-narrow {
    border: 1px solid var(--bp-line);
    box-shadow: 0 1.5rem 3rem rgb(0 0 0 / 0.6);
}

html body ul.am-tabs-narrow a {
    padding: 0.5rem 0;
    font-family: var(--bp-label);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
    color: var(--bp-chalk);
}

html body ul.am-tabs-narrow li.active > a {
    color: var(--bp-flare);
}

html body ul.am-tabs-narrow ul div.am-tab-close {
    color: var(--bp-chalk);
}

/* Dashboard columns: drop the light panel and its divider image. */
html body .am-layout-two-coll,
html body .am-layout-two-coll .am-layout-two-coll-top,
html body .am-layout-two-coll .am-layout-two-coll-bottom {
    height: auto;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

html body .am-layout-two-coll .am-coll-left .am-coll-content,
html body .am-layout-two-coll .am-coll-right .am-coll-content {
    margin: 0;
}

@media all and (min-width: 750px) {
    html body .am-layout-two-coll {
        display: grid;
        grid-template-columns: 1.5fr 1fr;
        gap: 0 2rem;
    }

    html body .am-layout-two-coll .am-coll-left,
    html body .am-layout-two-coll .am-coll-right {
        float: none;
        width: auto;
        min-width: 0;
    }

    html body .am-layout-two-coll .am-layout-two-coll-top,
    html body .am-layout-two-coll .am-layout-two-coll-bottom {
        display: none;
    }
}

html body .am-widget {
    margin-bottom: 1.75rem;
}

html body .am-body-content .am-widget h2 {
    margin: 0 0 0.75rem;
    font-family: var(--bp-label);
    font-style: italic;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3;
    letter-spacing: 0.18em;
    color: var(--bp-volt);
}

html body .am-block {
    margin: 0;
    padding: 1.1rem 1.25rem;
    background: rgb(244 239 230 / 0.04);
    border: 1px solid var(--bp-line);
    border-radius: 0;
    box-shadow: none;
    color: var(--bp-chalk);
    line-height: 1.5;
}

html body .am-block li {
    margin: 0;
}

/* Subscriptions */
html body .am-list-subscriptions > li + li {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--bp-line);
}

html body .am-list-subscriptions .am-list-subscriptions-title {
    display: block;
    font-family: var(--bp-display);
    font-size: 1.5rem;
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--bp-chalk);
}

html body .am-list-subscriptions .am-list-subscriptions-title strong {
    font-weight: 400;
}

html body .am-list-subscriptions .am-list-subscriptions-title::after {
    content: none;
}

html body .am-list-subscriptions .am-list-subscriptions-date {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.15rem 0.6rem;
    background: var(--bp-flare);
    color: var(--bp-ink);
    font-family: var(--bp-label);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

html body .am-list-subscriptions .am-list-subscriptions-link a {
    margin-left: 0.75rem;
    font-size: 0.9rem;
}

html body .am-list-subscriptions .am-list-subscriptions-desc {
    margin-top: 0.7rem;
    overflow: visible;
    white-space: normal;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--bp-mute);
    opacity: 1;
}

/* Link lists */
html body .am-list-links > li + li {
    border-top: 1px solid var(--bp-line);
}

html body .am-list-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0;
    text-decoration: none;
    color: var(--bp-chalk);
    transition:
        color 0.2s,
        padding-left 0.3s var(--bp-snap);
}

html body .am-list-links > li:first-child a {
    padding-top: 0;
}

html body .am-list-links > li:last-child a {
    padding-bottom: 0;
}

html body .am-list-links a::after {
    content: '\2192';
    color: var(--bp-flare);
}

html body .am-list-links a:hover {
    padding-left: 0.4rem;
    color: var(--bp-volt);
}

html body .am-block > label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--bp-chalk);
    cursor: pointer;
}

html body .am-block input[type='checkbox'],
html body .am-block input[type='radio'] {
    width: 1.05rem;
    height: 1.05rem;
    margin: 0;
    accent-color: var(--bp-flare);
}

html body .am-block-nodata {
    color: var(--bp-mute);
}

/* Cancel-subscription prompt */
html body .cancel-subscription-popup-text {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

html body .cancel-subscription-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
}

/* Tables such as payment history */
html body .am-grid-container,
html body .am-grid,
html body .am-body-content table {
    background: none;
    border-color: var(--bp-line);
    box-shadow: none;
    color: var(--bp-chalk);
}

html body .am-body-content table th {
    padding: 0.75rem 0.9rem;
    background: rgb(244 239 230 / 0.06);
    border-color: var(--bp-line);
    font-family: var(--bp-label);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-align: left;
    text-transform: uppercase;
    color: var(--bp-chalk);
}

html body .am-body-content table td,
html body .am-grid tr.am-grid-row > td {
    padding: 0.75rem 0.9rem;
    background: none;
    border-color: var(--bp-line);
    color: var(--bp-chalk);
}

html body .am-grid tr.am-grid-row.odd,
html body .am-grid tr.am-grid-row.even,
html body .am-grid tr.am-grid-row.selected,
html body .am-grid tr.am-grid-row.emphasis {
    background: none;
}

html body .am-grid tr.am-grid-row.odd {
    background: rgb(244 239 230 / 0.03);
}

/* --------------------------------------------------------------- popup */

/* Dim the page behind a popup or notice instead of washing it out in grey. */
html body #mask,
html body .am-flash-mask {
    background: var(--bp-ink);
    opacity: 0.82;
}

html body .am-popup {
    padding: 1.5rem;
    background: var(--bp-coal);
    border: 1px solid var(--bp-line);
    border-top: 4px solid var(--bp-flare);
    border-radius: 0;
    box-shadow: 0 2.5rem 6rem rgb(0 0 0 / 0.7);
    color: var(--bp-chalk);
}

html body .am-popup .am-popup-header {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 2.25rem;
    margin: 0 0 1rem;
    padding: 0;
    background: none;
    border: 0;
    overflow: visible;
    font-family: var(--bp-label);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bp-mute);
}

/* The close button: aMember draws a dark X, which vanished on the dark popup. */
html body .am-popup .am-popup-close-icon {
    float: none;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    background: rgb(244 239 230 / 0.08);
    text-decoration: none;
    transition:
        background-color 0.2s,
        rotate 0.3s var(--bp-snap);
}

html body .am-popup .am-popup-close-icon::after {
    color: var(--bp-chalk);
    font-size: 1.1rem;
    line-height: 1;
    transition: color 0.2s;
}

html body .am-popup .am-popup-close-icon:hover {
    background: var(--bp-flare);
    rotate: 90deg;
}

html body .am-popup .am-popup-close-icon:hover::after {
    color: var(--bp-ink);
}

html body .am-popup .am-popup-content {
    color: var(--bp-chalk);
}

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

html body .am-footer {
    background: none;
    padding: 0 1.25rem 2rem;
    color: var(--bp-mute);
    font-size: 0.875rem;
}

html body .am-footer a,
html body .am-footer .am-credits,
html body .am-footer .am-credits a,
html body .am-footer-text {
    color: var(--bp-mute);
}

html body .am-footer a:hover,
html body .am-footer .am-credits a:hover {
    color: var(--bp-volt);
}

@media (prefers-reduced-motion: reduce) {
    html body *,
    html body *::before,
    html body *::after {
        transition-duration: 0.01ms !important;
    }
}
