/*
 * Lokadarshan public site: header, footer, home, archive and edition pages.
 * Depends on ld-base.css tokens.
 */

.ld-site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.ld-main {
    flex: 1 0 auto;
    width: 100%;
}

/* ---------------------------------------------------------------- Header */

.ld-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    border-top: 4px solid var(--ld-blue);
    border-bottom: 1px solid var(--ld-line);
    background: rgba(255, 255, 255, 0.97);
}

@supports (backdrop-filter: blur(8px)) {
    .ld-header {
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: saturate(1.4) blur(8px);
    }
}

.is-reader .ld-header {
    position: relative;
}

.ld-header__bar {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: var(--ld-header-h);
}

/* Logo with today's date set under it like a newspaper dateline. */
.ld-masthead {
    display: grid;
    flex: none;
    gap: 1px;
    min-width: 0;
}

.ld-masthead__date {
    color: var(--ld-magenta);
    font-family: var(--ld-font-display);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.15;
    white-space: nowrap;
}

.ld-brand {
    display: inline-flex;
    flex: none;
    align-items: center;
    min-width: 0;
}

.ld-brand img {
    display: block;
    width: auto;
    height: 30px;
}

@media (min-width: 600px) {
    .ld-brand img {
        height: 34px;
    }
}

.ld-nav {
    display: none;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.ld-nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    border-radius: var(--ld-radius-s);
    color: var(--ld-ink);
    font-weight: 600;
    text-decoration: none;
}

.ld-nav__link:hover {
    background: var(--ld-paper);
    color: var(--ld-ink);
}

.ld-nav__button {
    gap: 6px;
    border: 0;
    background: transparent;
    font: inherit;
    font-weight: 600;
}

.ld-nav__link[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 6px;
    height: 2px;
    border-radius: 2px;
    background: var(--ld-magenta);
}

.ld-nav .dropdown-menu {
    min-width: 220px;
    padding: 6px;
    border-color: var(--ld-line);
    border-radius: var(--ld-radius);
    box-shadow: var(--ld-shadow-2);
}

.ld-nav .dropdown-item {
    display: grid;
    padding: 8px 10px;
    border-radius: var(--ld-radius-s);
    font-weight: 600;
}

.ld-nav .dropdown-item small {
    color: var(--ld-ink-3);
    font-weight: 400;
}

.ld-nav .dropdown-item:active {
    background: var(--ld-blue);
}

.ld-datejump {
    display: none;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    padding-left: 16px;
    border-left: 1px solid var(--ld-line);
}

.ld-datejump .form-control {
    width: 160px;
    min-height: 40px;
}

.ld-header__actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.ld-menu-button {
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 1.35rem;
}

/* Link to the Lokadarshan news website, in the logo's magenta. */
.ld-newslink {
    --bs-btn-color: var(--ld-magenta);
    --bs-btn-bg: #fff;
    --bs-btn-border-color: var(--ld-magenta);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--ld-magenta);
    --bs-btn-hover-border-color: var(--ld-magenta);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #a20d5a;
    --bs-btn-active-border-color: #a20d5a;
    --bs-btn-focus-box-shadow: 0 0 0 3px rgba(200, 18, 111, 0.3);
    display: none;
    white-space: nowrap;
}

.ld-newslink--block {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    min-height: 48px;
    margin-bottom: 18px;
}

@media (min-width: 1024px) {
    .ld-header__actions .ld-newslink {
        display: inline-flex;
    }
}

/* Small laptops: tighten the header so the news-site button fits. */
@media (min-width: 1024px) and (max-width: 1199.98px) {
    .ld-brand img {
        height: 32px;
    }

    .ld-nav__link {
        padding: 0 9px;
        white-space: nowrap;
    }

    .ld-nav__link[aria-current="page"]::after {
        left: 9px;
        right: 9px;
    }

    .ld-datejump {
        margin-left: 4px;
        padding-left: 12px;
    }

    .ld-datejump .form-control {
        width: 140px;
    }
}

@media (min-width: 1024px) {
    .ld-nav,
    .ld-datejump {
        display: flex;
    }

    .ld-header__actions {
        margin-left: 8px;
    }

    .ld-menu-button {
        display: none;
    }
}

/* Mobile drawer (Bootstrap offcanvas) */
.ld-drawer {
    --bs-offcanvas-width: min(340px, 88vw);
}

.ld-drawer .offcanvas-header {
    border-bottom: 1px solid var(--ld-line);
}

.ld-drawer__nav {
    display: grid;
    gap: 2px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.ld-drawer__nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 12px;
    border-radius: var(--ld-radius-s);
    color: var(--ld-ink);
    font-weight: 600;
    text-decoration: none;
}

.ld-drawer__nav a:hover,
.ld-drawer__nav a[aria-current="page"] {
    background: var(--ld-blue-soft);
    color: var(--ld-blue-ink);
}

.ld-drawer__nav small {
    margin-left: auto;
    color: var(--ld-ink-3);
    font-weight: 400;
}

.ld-drawer__section {
    margin: 0 0 8px;
    color: var(--ld-ink-3);
    font-size: 0.8125rem;
    font-weight: 600;
}

.ld-drawer__contact {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--ld-line);
    color: var(--ld-ink-2);
    font-size: 0.9375rem;
}

.ld-drawer__contact a {
    color: inherit;
}

/* Flash area */
.ld-flash-area:empty {
    display: none;
}

/* ---------------------------------------------------------------- Footer */

.ld-footer {
    margin-top: clamp(40px, 8vw, 72px);
    background: var(--ld-navy);
    color: #e7eef8;
    font-size: 0.9375rem;
}

.ld-footer a {
    color: #fff;
    text-decoration-color: rgba(255, 255, 255, 0.4);
}

.ld-footer a:hover {
    color: var(--ld-yellow);
    text-decoration-color: currentColor;
}

.ld-footer :focus-visible {
    outline-color: var(--ld-yellow);
}

.ld-footer__grid {
    display: grid;
    gap: 28px;
    padding-block: 36px 28px;
}

@media (min-width: 768px) {
    .ld-footer__grid {
        grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
        gap: 40px;
    }
}

.ld-footer__brand {
    display: inline-block;
    padding: 8px 12px;
    border-radius: var(--ld-radius);
    background: #fff;
    line-height: 0;
}

.ld-footer__brand img {
    width: auto;
    height: 36px;
}

.ld-footer__address {
    margin: 14px 0 0;
    font-style: normal;
    line-height: 1.6;
}

.ld-footer__heading {
    margin: 0 0 10px;
    color: #fff;
    font-family: var(--ld-font-display);
    font-size: 1.0625rem;
    font-weight: 700;
}

.ld-footer__links {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ld-footer__links a {
    text-decoration: none;
}

.ld-footer__links a:hover {
    text-decoration: underline;
}

.ld-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    background: var(--ld-navy-deep);
}

.ld-footer__bottom .ld-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-block: 14px;
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .ld-footer__bottom .ld-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.ld-credit a {
    font-weight: 700;
}

.is-reader .ld-footer {
    display: none;
}

/* ---------------------------------------------------------------- Shared page parts */

.ld-section {
    padding-block: clamp(28px, 6vw, 56px);
}

.ld-section--tight {
    padding-block: clamp(20px, 4vw, 36px);
}

.ld-section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 8px 16px;
    margin-bottom: 18px;
}

.ld-section__title {
    margin: 0;
    font-size: var(--ld-step-2);
    font-weight: 700;
}

.ld-section__lede {
    margin: 4px 0 0;
    color: var(--ld-ink-2);
}

.ld-pagehead {
    padding-block: clamp(24px, 5vw, 40px) 8px;
}

.ld-pagehead h1 {
    margin: 0;
    font-size: var(--ld-step-3);
    font-weight: 800;
}

.ld-pagehead p {
    max-width: 70ch;
    margin: 8px 0 0;
    color: var(--ld-ink-2);
}

.ld-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 8px;
    padding: 0;
    color: var(--ld-ink-3);
    font-size: 0.875rem;
    list-style: none;
}

.ld-breadcrumb li + li::before {
    content: "/";
    margin-right: 6px;
    color: var(--ld-line-strong);
}

.ld-breadcrumb a {
    color: var(--ld-ink-2);
}

/* A newspaper page shown as a physical sheet */
.ld-sheet {
    display: block;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--ld-line);
    border-radius: 3px;
    background: #fff;
    box-shadow: var(--ld-shadow-paper);
    aspect-ratio: 480 / 714;
}

.ld-sheet img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.ld-sheet--placeholder {
    display: grid;
    place-items: center;
    color: var(--ld-ink-3);
}

a.ld-sheet:hover {
    border-color: var(--ld-line-strong);
}

a.ld-sheet:focus-visible {
    outline-offset: 4px;
}

/* ---------------------------------------------------------------- Home */

.ld-hero {
    border-bottom: 1px solid var(--ld-line);
    background:
        linear-gradient(180deg, #fff 0%, #fff 55%, var(--ld-paper) 100%);
}

.ld-hero__grid {
    display: grid;
    grid-template-areas:
        "text"
        "fronts"
        "jump";
    gap: 24px;
    padding-block: clamp(24px, 5vw, 56px);
}

.ld-hero__text {
    grid-area: text;
}

.ld-hero__grid > .ld-fronts {
    grid-area: fronts;
}

.ld-hero__grid > .ld-jump {
    grid-area: jump;
}

@media (min-width: 900px) {
    /* The empty rows above and below centre the text column against the front pages. */
    .ld-hero__grid {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        grid-template-rows: 1fr auto auto 1fr;
        grid-template-areas:
            ".    fronts"
            "text fronts"
            "jump fronts"
            ".    fronts";
        column-gap: clamp(32px, 5vw, 64px);
        row-gap: 0;
    }
}

/* "Is today's paper out?" answered in one line. */
.ld-issue {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 4px 12px 4px 10px;
    border: 1px solid var(--ld-line);
    border-radius: 999px;
    background: #fff;
    color: var(--ld-ink-2);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5;
}

.ld-issue__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ld-ink-3);
}

.ld-issue--live {
    border-color: rgba(17, 114, 79, 0.25);
    background: var(--ld-green-soft);
    color: var(--ld-green);
}

.ld-issue--live .ld-issue__dot {
    background: var(--ld-green);
    box-shadow: 0 0 0 3px rgba(17, 114, 79, 0.18);
}

.ld-issue--waiting .ld-issue__dot {
    background: var(--ld-magenta);
}

.ld-dateline {
    margin: 0;
    font-size: var(--ld-step-4);
    font-stretch: 75%;
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.005em;
}

.ld-dateline__weekday {
    display: block;
    margin-bottom: 0.12em;
    color: var(--ld-ink-2);
    font-size: max(1.05rem, 0.42em);
    font-stretch: 87.5%;
    font-weight: 600;
    letter-spacing: 0;
}

/*
 * The brand yellow as a printed rule under the date: one solid bar that sits
 * clear of the descenders, repeated per line if the date wraps.
 */
.ld-dateline__date {
    text-decoration-line: underline;
    text-decoration-color: var(--ld-yellow);
    text-decoration-thickness: 0.13em;
    text-underline-offset: 0.24em;
    text-decoration-skip-ink: none;
}

.ld-dateline__kannada {
    display: block;
    margin-top: 0.62em;
    color: var(--ld-magenta);
    font-size: max(1rem, 0.36em);
    font-stretch: 100%;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.3;
}

.ld-hero__status {
    max-width: 44ch;
    margin: 16px 0 0;
    color: var(--ld-ink-2);
}

.ld-jump {
    display: grid;
    gap: 10px;
    max-width: 440px;
    padding: 18px;
    border: 1px solid var(--ld-line);
    border-radius: var(--ld-radius);
    background: #fff;
    box-shadow: var(--ld-shadow-1);
}

@media (min-width: 900px) {
    .ld-jump {
        margin-top: 28px;
    }
}

.ld-jump label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.ld-jump label .bi {
    color: var(--ld-blue);
}

.ld-jump__row {
    display: flex;
    gap: 8px;
}

.ld-jump__row .form-control {
    flex: 1 1 auto;
    min-width: 0;
}

.ld-jump__more {
    width: fit-content;
    font-size: 0.9375rem;
    font-weight: 600;
}

.ld-fronts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 3vw, 32px);
    align-items: start;
}

.ld-fronts--single {
    grid-template-columns: minmax(0, 360px);
    justify-content: center;
}

.ld-front {
    margin: 0;
}

.ld-front figcaption {
    display: grid;
    gap: 2px;
    margin-top: 14px;
}

.ld-front__title {
    margin: 0;
    font-size: var(--ld-step-1);
    font-weight: 700;
}

.ld-front__title a {
    color: var(--ld-ink);
    text-decoration: none;
}

.ld-front__title a:hover {
    color: var(--ld-blue);
    text-decoration: underline;
}

.ld-front__meta {
    color: var(--ld-ink-3);
    font-size: 0.875rem;
}

.ld-front__today {
    display: inline-block;
    width: fit-content;
    margin-bottom: 4px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--ld-magenta);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.7;
}

.ld-front__actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.ld-front__actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
}

.ld-front__actions .btn-primary {
    flex: 1 1 auto;
}

.ld-front__download {
    flex: none;
    width: 44px;
    padding-inline: 0;
}

@media (max-width: 420px) {
    .ld-front__actions {
        gap: 6px;
    }

    .ld-front__actions .btn-primary {
        padding-inline: 0.5rem;
    }
}

/* Horizontal edition strip (home: recent editions; reader: more editions) */
.ld-strip-wrap {
    position: relative;
}

.ld-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(136px, 160px);
    gap: 16px;
    margin: 0;
    padding: 4px 2px 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 2px;
    list-style: none;
    scrollbar-width: thin;
}

@media (min-width: 768px) {
    .ld-strip {
        grid-auto-columns: minmax(160px, 184px);
        gap: 20px;
    }
}

.ld-strip > li {
    scroll-snap-align: start;
    min-width: 0;
}

.ld-strip__nav {
    display: none;
    gap: 6px;
}

@media (hover: hover) and (min-width: 768px) {
    .ld-strip__nav {
        display: flex;
    }
}

.ld-strip__nav .btn {
    width: 40px;
    padding: 0;
}

.ld-card {
    display: grid;
    gap: 8px;
    color: var(--ld-ink);
    text-decoration: none;
}

.ld-card:hover {
    color: var(--ld-ink);
}

.ld-card:hover .ld-card__title {
    color: var(--ld-blue);
    text-decoration: underline;
}

.ld-card__title {
    margin: 0;
    font-family: var(--ld-font-display);
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.2;
}

.ld-card__meta {
    color: var(--ld-ink-3);
    font-size: 0.8125rem;
}

.ld-card--current .ld-sheet {
    outline: 3px solid var(--ld-magenta);
    outline-offset: 3px;
}

/* Home archive band */
.ld-band {
    border-block: 1px solid var(--ld-line);
    background: var(--ld-surface);
}

.ld-band__grid {
    display: grid;
    gap: 24px;
}

@media (min-width: 900px) {
    .ld-band__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: center;
    }
}

.ld-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ld-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--ld-line-strong);
    border-radius: 999px;
    background: var(--ld-surface);
    color: var(--ld-ink);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.ld-chip:hover {
    border-color: var(--ld-blue);
    color: var(--ld-blue-ink);
}

.ld-chip[aria-current="true"],
.ld-chip.is-active {
    border-color: var(--ld-blue);
    background: var(--ld-blue);
    color: #fff;
}

.ld-chip--remove {
    border-color: #c8d7f8;
    background: var(--ld-blue-soft);
    color: var(--ld-blue-ink);
}

.ld-chip--remove .bi {
    font-size: 0.85em;
}

/* ---------------------------------------------------------------- Archive */

.ld-filters {
    display: grid;
    gap: 18px;
    padding: 16px;
    border: 1px solid var(--ld-line);
    border-radius: var(--ld-radius-l);
    background: var(--ld-surface);
    box-shadow: var(--ld-shadow-1);
}

@media (min-width: 768px) {
    .ld-filters {
        padding: 20px 22px;
    }
}

.ld-filters__row {
    display: grid;
    gap: 14px;
}

@media (min-width: 768px) {
    .ld-filters__row {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
        align-items: end;
    }
}

.ld-fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.ld-fieldset legend {
    float: none;
    width: auto;
    margin-bottom: 0.35rem;
    font-size: 1rem;
    font-weight: 600;
}

.ld-seg {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ld-seg label {
    position: relative;
    display: inline-flex;
}

.ld-seg input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ld-seg span {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--ld-line-strong);
    border-radius: var(--ld-radius-s);
    background: var(--ld-surface);
    font-weight: 600;
    cursor: pointer;
}

.ld-seg input:checked + span {
    border-color: var(--ld-blue);
    background: var(--ld-blue-soft);
    color: var(--ld-blue-ink);
    box-shadow: inset 0 0 0 1px var(--ld-blue);
}

.ld-seg input:focus-visible + span {
    outline: 3px solid var(--ld-blue);
    outline-offset: 2px;
}

.ld-filters__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ld-filters__ranges {
    display: grid;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--ld-line);
}

@media (min-width: 768px) {
    .ld-filters__ranges {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
    }
}

.ld-range {
    margin: 0;
}

.ld-range summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    color: var(--ld-blue);
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.ld-range summary::-webkit-details-marker {
    display: none;
}

.ld-range summary .bi {
    transition: transform 0.15s ease;
}

.ld-range[open] summary .bi {
    transform: rotate(90deg);
}

.ld-range__fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
    gap: 10px;
    margin-top: 8px;
    max-width: 520px;
}

@media (prefers-reduced-motion: reduce) {
    .ld-range summary .bi {
        transition: none;
    }
}

.ld-results-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    margin: 22px 0 16px;
}

.ld-results-bar__count {
    margin: 0;
    color: var(--ld-ink-2);
    font-weight: 600;
}

.ld-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.ld-days {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
}

.ld-day {
    padding: 16px;
    border: 1px solid var(--ld-line);
    border-radius: var(--ld-radius-l);
    background: var(--ld-surface);
}

.ld-day__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
}

.ld-day__date {
    margin: 0;
    font-size: var(--ld-step-1);
    font-weight: 700;
}

.ld-day__weekday {
    color: var(--ld-ink-3);
    font-size: 0.875rem;
    white-space: nowrap;
}

.ld-day__weekday.is-today {
    color: var(--ld-magenta);
    font-weight: 700;
}

.ld-day__editions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ld-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.ld-pager__status {
    padding: 0 8px;
    color: var(--ld-ink-2);
    font-weight: 600;
}

.ld-errors {
    margin: 0 0 16px;
}

/* ---------------------------------------------------------------- Edition page */

.ld-edition-head {
    display: grid;
    gap: 16px;
}

@media (min-width: 768px) {
    .ld-edition-head {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
    }
}

.ld-edition-head__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ld-pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(46%, 170px), 1fr));
    gap: 20px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ld-notice {
    display: flex;
    gap: 10px;
    margin: 16px 0 0;
    padding: 12px 14px;
    border: 1px solid #c8d7f8;
    border-radius: var(--ld-radius);
    background: var(--ld-blue-soft);
    color: var(--ld-blue-ink);
}

/* ---------------------------------------------------------------- Static pages */

.ld-prose {
    max-width: 72ch;
    padding: clamp(20px, 4vw, 36px);
    border: 1px solid var(--ld-line);
    border-radius: var(--ld-radius-l);
    background: var(--ld-surface);
    line-height: 1.7;
}

.ld-prose ol {
    padding-left: 1.4rem;
}

.ld-prose li + li {
    margin-top: 0.5rem;
}

.ld-prose ol ol {
    margin-top: 0.5rem;
    list-style: lower-alpha;
}

/* ---------------------------------------------------------------- Error pages */

.ld-error {
    display: grid;
    justify-items: start;
    gap: 12px;
    max-width: 640px;
    padding-block: clamp(40px, 10vw, 96px);
}

.ld-error__code {
    color: var(--ld-magenta);
    font-family: var(--ld-font-display);
    font-weight: 700;
}

.ld-error h1 {
    margin: 0;
    font-size: var(--ld-step-3);
}

.ld-error p {
    margin: 0;
    color: var(--ld-ink-2);
}

/* Article share page (/clip/{id}) */
.ld-clip-page {
    padding-bottom: clamp(32px, 6vw, 64px);
}

.ld-clip-page__title {
    font-family: var(--ld-font-display);
    overflow-wrap: anywhere;
}

.ld-clip-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.ld-clip-page__actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ld-clip-page__figure {
    max-width: 1000px;
    margin: 0 auto;
}

.ld-clip-page__figure img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin-inline: auto;
    background: #fff;
    box-shadow: var(--ld-shadow-paper);
}

.ld-clip-page__nav {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    max-width: 1000px;
    margin: 16px auto 0;
}

@media print {
    .ld-header,
    .ld-footer,
    .ld-filters,
    .ld-pager,
    .ld-clip-page__actions,
    .ld-clip-page__nav {
        display: none !important;
    }
}

/* ------------------------------------------------------ Archive passes */

/* Header account button: icon only until there is room for the label. */
.ld-account-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 44px;
    height: 44px;
    padding: 0 10px;
    white-space: nowrap;
}

.ld-account-link .bi {
    font-size: 1.2rem;
}

.ld-account-link__text {
    display: none;
}

@media (min-width: 1024px) {
    .ld-nav__link {
        white-space: nowrap;
    }
}

/* Narrow laptops: the pass link lives in the footer and on locked pages. */
@media (min-width: 1024px) and (max-width: 1279.98px) {
    .ld-nav__link--pass {
        display: none;
    }
}

@media (min-width: 1400px) {
    .ld-account-link {
        height: auto;
        min-height: 40px;
    }

    .ld-account-link__text {
        display: inline;
    }
}

/* "Free" / "Pass" badge on edition covers. */
.ld-access {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.5;
}

.ld-sheet > .ld-access {
    position: absolute;
    top: 8px;
    left: 8px;
    box-shadow: var(--ld-shadow-1);
}

.ld-access--free {
    background: var(--ld-green-soft);
    color: #0b5539;
}

.ld-access--locked {
    background: var(--ld-ink);
    color: #fff;
}

/* Plans */
.ld-plans__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ld-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 16px 16px;
    border: 1px solid var(--ld-line);
    border-radius: var(--ld-radius);
    background: var(--ld-surface);
    box-shadow: var(--ld-shadow-1);
}

.ld-plan .btn {
    margin-top: auto;
}

.ld-plan--best {
    border-color: var(--ld-blue);
    box-shadow: 0 0 0 1px var(--ld-blue), var(--ld-shadow-2);
}

.ld-plan--chosen {
    border-color: var(--ld-magenta);
    box-shadow: 0 0 0 2px var(--ld-magenta), var(--ld-shadow-2);
}

.ld-plan__flag {
    position: absolute;
    top: -11px;
    left: 14px;
    padding: 1px 10px;
    border-radius: 999px;
    background: var(--ld-blue);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}

.ld-plan__name {
    margin: 0;
    font-family: var(--ld-font-display);
    font-size: 1.125rem;
    font-weight: 700;
}

.ld-plan__price {
    margin: 0;
    font-family: var(--ld-font-display);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
}

.ld-plan__currency {
    margin-right: 2px;
    font-size: 1.25rem;
    vertical-align: 0.45em;
}

.ld-plan__meta {
    margin: 0 0 10px;
    color: var(--ld-ink-3);
    font-size: 0.875rem;
}

.ld-plans__active,
.ld-plans__signin {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0 0 16px;
    padding: 0.75rem 1rem;
    border: 1px solid #b7e0cc;
    border-radius: var(--ld-radius-s);
    background: var(--ld-green-soft);
    color: #0b5539;
}

.ld-plans__signin {
    border-color: var(--ld-line);
    background: var(--ld-surface);
    color: var(--ld-ink-2);
}

.ld-plans__status {
    margin: 16px 0 0;
    padding: 0.75rem 1rem;
    border: 1px solid #c8d7f8;
    border-radius: var(--ld-radius-s);
    background: var(--ld-blue-soft);
    color: var(--ld-blue-ink);
    font-weight: 500;
}

.ld-plans__status[data-tone="error"] {
    border-color: #f2c1c1;
    background: var(--ld-red-soft);
    color: #8c1b1b;
}

.ld-plans__status[data-tone="success"] {
    border-color: #b7e0cc;
    background: var(--ld-green-soft);
    color: #0b5539;
}

.ld-plans__note {
    margin: 16px 0 0;
    color: var(--ld-ink-3);
    font-size: 0.875rem;
}

/* A past edition behind the paywall */
.ld-locked__grid {
    display: grid;
    gap: 24px;
    align-items: start;
}

@media (min-width: 720px) {
    .ld-locked__grid {
        grid-template-columns: minmax(200px, 280px) 1fr;
        gap: 40px;
    }
}

.ld-locked__cover {
    max-width: min(55vw, 200px);
    margin: 0;
}

@media (min-width: 720px) {
    .ld-locked__cover {
        max-width: 280px;
    }
}

.ld-locked__cover figcaption {
    margin-top: 8px;
    color: var(--ld-ink-3);
    font-size: 0.875rem;
}

.ld-locked__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 8px;
    color: var(--ld-magenta);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.ld-locked__title {
    margin: 0;
    font-size: var(--ld-step-3);
    font-weight: 800;
}

.ld-locked__date {
    margin: 4px 0 16px;
    color: var(--ld-ink-2);
    font-size: var(--ld-step-1);
}

.ld-locked__lede {
    max-width: 60ch;
    color: var(--ld-ink-2);
}

.ld-locked__plans-title {
    margin: 0 0 18px;
    font-size: var(--ld-step-2);
    font-weight: 800;
}

/* Questions on the passes page */
.ld-faq dt {
    margin-top: 14px;
    font-weight: 700;
}

.ld-faq dd {
    margin: 4px 0 0;
    color: var(--ld-ink-2);
}

/* Reader account */
.ld-account__check {
    margin-top: 12px;
    padding: 12px 16px;
    border: 1px dashed var(--ld-line-strong);
    border-radius: var(--ld-radius-s);
    background: var(--ld-surface);
}

.ld-account__table {
    --bs-table-bg: var(--ld-surface);
    border: 1px solid var(--ld-line);
}

/* Buying a month of past papers */
.ld-buymonth {
    margin: 4px 0 20px;
    padding: 18px 20px;
    border: 1px solid var(--ld-blue);
    border-radius: var(--ld-radius);
    background: var(--ld-surface);
    box-shadow: 0 0 0 1px var(--ld-blue), var(--ld-shadow-2);
}

.ld-buymonth__title {
    margin: 0;
    font-size: var(--ld-step-1);
    font-weight: 800;
}

.ld-buymonth__meta {
    margin: 4px 0 12px;
    color: var(--ld-ink-2);
}

.ld-buymonth__action {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.ld-buymonth__signin {
    margin: 12px 0 0;
    color: var(--ld-ink-2);
    font-size: 0.9375rem;
}

.ld-buymonth .ld-plans__note {
    margin-top: 12px;
}

/* Months on sale */
.ld-months + .ld-months {
    margin-top: 22px;
}

.ld-months__year {
    margin: 0 0 8px;
    font-size: var(--ld-step-2);
    font-weight: 800;
}

.ld-months__list {
    margin: 0;
    padding: 0;
    border: 1px solid var(--ld-line);
    border-radius: var(--ld-radius);
    background: var(--ld-surface);
    list-style: none;
}

.ld-months__row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 8px 16px;
    padding: 10px 14px;
}

.ld-months__row + .ld-months__row {
    border-top: 1px solid var(--ld-line);
}

.ld-months__name a {
    color: var(--ld-ink);
    font-weight: 700;
}

.ld-months__meta {
    display: block;
    color: var(--ld-ink-3);
    font-size: 0.8125rem;
}

.ld-months__price {
    font-family: var(--ld-font-display);
    font-size: 1.25rem;
    font-weight: 800;
}

.ld-months__action {
    min-width: 7.5rem;
    text-align: right;
}

.ld-months__action .btn {
    width: 100%;
}

[data-ld-chosen] {
    box-shadow: 0 0 0 3px var(--ld-magenta);
}

/* Months a reader owns */
.ld-owned {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}
