/* articles, the list of them, prices and "about" (the pages of guests for search engines): the card of legal.css, text easy to
   read on a phone, tables that scroll inside themselves instead of the page */
.guest-bar .guest-links {
    display: flex;
    align-items: center;
    gap: 4px 16px;
    flex-wrap: wrap;
}

.guest-bar .guest-links a {
    font-weight: 400;
    font-size: 16px;
}

.guest-bar .guest-links a[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 6px;
}

.crumbs {
    margin: 0 0 12px 0;
    color: var(--text-muted);
    font-size: 14px;
}

.crumbs a {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    color: var(--brand);
}

.article-title, .blog-title {
    margin: 0 0 8px 0;
    font-size: 26px;
    line-height: 1.25;
}

.blog-title {
    margin-bottom: 12px;
}

.article-meta {
    margin: 0 0 16px 0;
    color: var(--text-muted);
    font-size: 14px;
}

.article-text {
    overflow-wrap: anywhere;
}

.article-text h2, .prices-page .article h2 {
    margin: 28px 0 10px 0;
    font-size: 20px;
    line-height: 1.3;
    color: var(--brand-strong);
}

.article h3 {
    margin: 20px 0 6px 0;
    font-size: 17px;
}

.article-text p, .article p {
    margin: 0 0 12px 0;
}

.article-text ul, .article-text ol {
    margin: 0 0 12px 0;
    padding-left: 24px;
}

.article-text li {
    margin-bottom: 6px;
}

.article a {
    color: var(--brand);
}

.article-text code {
    padding: 1px 5px;
    border-radius: 4px;
    background-color: var(--page);
    font-size: 0.92em;
}

.table-wrap {
    margin: 0 0 16px 0;
    overflow-x: auto;
}

.article-text table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.article-text th, .article-text td {
    /* whole words in the cells: a column is never narrower than its longest word (the text of the article may break
       anywhere, so long links do not widen the page; a table scrolls inside itself instead) */
    overflow-wrap: normal;
    word-break: normal;
    padding: 8px 10px;
    border: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.article-text th {
    background-color: var(--page);
}

.article-text .note {
    margin: 0 0 14px 0;
    padding: 12px 16px;
    border-left: 4px solid var(--brand);
    border-radius: 0 var(--radius) var(--radius) 0;
    background-color: var(--brand-soft);
}

.article-toc {
    margin: 0 0 20px 0;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--page);
}

.article-toc p {
    margin: 0 0 4px 0;
    font-weight: 700;
}

.article-toc ol {
    margin: 0;
    padding-left: 22px;
}

.article-toc li {
    margin: 4px 0;
}

.article-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin: 20px 0;
    padding: 16px;
    border: 1px solid var(--brand);
    border-radius: var(--radius);
    background-color: var(--brand-soft);
}

.article-cta p {
    margin: 0;
}

.article-cta .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: var(--radius);
    color: #ffffff;
    background-color: var(--action);
    font-weight: 600;
    text-decoration: none;
}

.article-more {
    margin: 20px 0 0 0;
}

.article-more h2 {
    margin: 0 0 8px 0;
    font-size: 18px;
}

.article-more ul {
    margin: 0;
    padding-left: 20px;
}

.article-more li {
    margin: 0 0 8px 0;
}

.article-more a {
    color: var(--brand);
}

.blog-lead {
    margin: 0 0 16px 0;
}

.blog-lead a {
    color: var(--brand);
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.blog-item h2 {
    margin: 4px 0 8px 0;
    font-size: 19px;
    line-height: 1.3;
}

.blog-item h2 a {
    color: var(--brand-strong);
}

.blog-item p {
    margin: 0 0 8px 0;
}

.blog-category {
    color: var(--text-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.prices-page .site-section {
    padding: 0;
    margin: 0 0 16px 0;
}

@media (max-width: 600px) {
    .legal-card.article, .legal-card.blog-item {
        padding: 18px 16px;
    }

    .article-title, .blog-title {
        font-size: 22px;
    }
}

/* a link that stands alone in a line of a list (contents, sources, more articles) is a target for a finger: the area of the
   tap is 44px high, the lines stay where they are (the padding of an inline box does not move them) */
.article-toc a, .article-more a, .article-text li > a {
    padding: 13px 0;
}

.article-toc li, .article-more li {
    margin: 10px 0;
}

/* the first heading of a card has no line above it */
.legal-card > h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.guest-bar .guest-brand {
    white-space: nowrap;
}

/* a phone: the name and the sections stay in one line */
@media (max-width: 480px) {
    .guest-bar {
        gap: 8px;
        padding: 0 12px;
    }

    .guest-bar .guest-brand {
        font-size: 16px;
    }

    .guest-bar .guest-links {
        flex-wrap: nowrap;
        gap: 12px;
    }

    .guest-bar .guest-links a {
        font-size: 15px;
    }
}

/* a screenshot of the site in an article */
.article-figure {
    margin: 4px 0 16px 0;
}

.article-figure img {
    display: block;
    max-width: 100%;
    max-height: 640px;
    width: auto;
    height: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.article-figure figcaption {
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 14px;
}

/* a checklist: the box of each item is its mark */
.article-text ul.checklist {
    padding-left: 4px;
    list-style: none;
}

/* the button that prints an article (a checklist): a target for a finger */
.article-print {
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--brand);
    border-radius: var(--radius);
    background-color: var(--surface);
    color: var(--brand);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

/* the address of the article: only on paper, so a printed checklist leads to the site */
.print-only {
    display: none;
}

/* paper: only the text of the article, links without colours, no menus, buttons or boxes of the registration */
@media print {
    .guest-bar, .crumbs, footer, .article-cta, .article-more, .legal-back, .article-toc, .article-print-line, .consent, .no-print {
        display: none !important;
    }

    body, main.legal-page {
        background: #ffffff;
    }

    main.legal-page {
        max-width: none;
        padding: 0;
    }

    .legal-card.article {
        padding: 0;
        border: none;
        font-size: 10pt;
        line-height: 1.3;
    }

    .article-title {
        font-size: 15pt;
    }

    .article-text .note {
        display: none;
    }

    .article-text p, .article-text li {
        margin-bottom: 2pt;
    }

    .article-text table {
        font-size: 9.5pt;
    }

    .article-text th, .article-text td {
        padding: 3pt 6pt;
    }

    .article a {
        color: inherit;
        text-decoration: none;
    }

    .article-text h2 {
        margin-top: 8pt;
        margin-bottom: 3pt;
        font-size: 12pt;
        padding-top: 0;
        border-top: none;
        break-after: avoid;
    }

    .article-text li, .article-text tr {
        break-inside: avoid;
    }

    .print-only {
        display: block;
        margin-top: 8pt;
        color: #555555;
        font-size: 9pt;
    }
}

/* the state of PUESC: the badge of now, the bars of the last day (one per 10 minutes), the legend */
.puesc-now {
    margin: 8px 0 16px 0;
    padding: 14px 16px;
    border-left: 6px solid var(--text-muted);
    border-radius: var(--radius);
    background-color: var(--page);
}

.puesc-now p {
    margin: 0 0 6px 0;
}

.puesc-badge {
    font-size: 22px;
    font-weight: 700;
}

.puesc-now.puesc-up { border-left-color: #218838; }
.puesc-now.puesc-up .puesc-badge { color: #1b6e2e; }
.puesc-now.puesc-slow { border-left-color: #c77700; }
.puesc-now.puesc-slow .puesc-badge { color: #9a5c00; }
.puesc-now.puesc-down { border-left-color: #dc3545; }
.puesc-now.puesc-down .puesc-badge { color: #b02a37; }

.puesc-chart {
    display: flex;
    align-items: flex-end;
    gap: 1px;
    height: 90px;
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--surface);
}

.puesc-bar {
    flex: 1 1 0;
    min-width: 0;
    border-radius: 1px;
}

.puesc-hours {
    display: flex;
    gap: 1px;
    padding: 2px 4px 0 4px;
    color: var(--text-muted);
    font-size: 11px;
}

.puesc-hours span {
    flex: 1 1 0;
    min-width: 0;
    overflow: visible;
    white-space: nowrap;
}

.bar-up { background-color: #2e9e4a; }
.bar-slow { background-color: #e8c33a; }
.bar-part { background-color: #f08a24; }
.bar-down { background-color: #dc3545; }
.bar-none { background-color: #cfd6de; }

.legal-card ul.puesc-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin: 10px 0 0 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    color: var(--text-muted);
}

.puesc-legend span {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 6px;
    border-radius: 2px;
    vertical-align: -1px;
}
