/*
 * The Special Support page.
 *
 * Written to read as a privilege rather than as a helpdesk. The page has to do two jobs at once: let a
 * subscriber ask for help without friction, and tell somebody who is not a subscriber what they are missing -
 * so the promises come before the form and are styled to be read rather than skipped.
 */

.hss {
    /*
     * border-box so the figure means what it says.
     *
     * With the theme's content-box default, max-width: 760px plus 16px of padding each side rendered at 792 -
     * close enough not to notice and wrong enough to misalign against anything measured from the same number.
     */
    box-sizing: border-box;
    max-width: 880px;
    margin: 0 auto;
    padding: 24px 16px 48px;
    font-family: Arial, Helvetica, sans-serif;
    color: #1c1c21;
}

.hss *,
.hss *::before,
.hss *::after {
    box-sizing: border-box;
}

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

/*
 * The header is a card, like the two blocks under it.
 *
 * It used to be bare text sitting on the page background, which made the page read as one floating heading
 * followed by two unrelated panels - and because the page background is #fafafa and the panels are #fff, the
 * difference was just big enough to look like a rendering fault rather than a decision. Three blocks of the
 * same width, with the same radius and border, read as a designed page.
 */
.hss-head {
    padding: 24px;
    margin-bottom: 14px;
    border: 1px solid #e3e8ee;
    border-radius: 12px;
    background: #fff;
}

.hss-eyebrow {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: #6b7a46;
}

.hss-title {
    margin: 0 0 10px;
    font-size: 30px;
    line-height: 1.15;
}

/*
 * No 58ch cap.
 *
 * It measured 484px inside a 760px column, so the lead broke after the fourth word of each line and left a
 * third of the card empty - the thing that made the page look cramped. A readable measure matters, but 58ch at
 * this font size was tighter than the text needed and tighter than anything else on the page, so it read as a
 * mistake rather than as typography. The card's own width is now the measure.
 */
.hss-lead {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #4a5260;
}

/* ------------------------------------------------------------------ promises */

/*
 * Two columns of short claims. A benefit nobody can describe is a benefit nobody values, and this is the only
 * page where Special Support gets described at all - so it is set as content, not as a sidebar.
 */
.hss-promises {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
    margin: 0 0 14px;
    padding: 20px 24px;
    list-style: none;
    border-radius: 12px;
    background: #f5f8ee;
    border: 1px solid #e2ead0;
}

.hss-promises li {
    margin: 0;
    list-style: none;
}

.hss-promises strong {
    display: block;
    font-size: 13px;
    line-height: 1.3;
}

.hss-promises span {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.45;
    color: #5c6470;
}

@media (max-width: 599px) {
    .hss-promises {
        grid-template-columns: 1fr;
    }
}

/* ---------------------------------------------------------------------- gate */

.hss-gate,
.hss-form {
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #d9e0e8;
    background: #fff;
}

.hss-gate__text {
    margin: 0 0 14px;
    font-size: 15px;
    line-height: 1.55;
}

.hss-gate__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 12px;
}

.hss-gate__alt {
    margin: 0;
    font-size: 12.5px;
    color: #5c6470;
}

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

.hss-known {
    margin: 0 0 18px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #f2f5f8;
    font-size: 13px;
    color: #4a5260;
}

.hss-known strong {
    color: #1c1c21;
}

.hss-field {
    margin: 0 0 18px;
}

.hss-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 599px) {
    .hss-row {
        grid-template-columns: 1fr;
    }
}

.hss-field label,
.hss-field .hss-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
}

.hss-field select,
.hss-field textarea,
.hss-field input[type="tel"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #c8d0d9;
    border-radius: 8px;
    background: #fff;
    font: inherit;
    font-size: 14px;
    line-height: 1.35;
    color: #1c1c21;
    /* box-sizing so a 100% width field does not overflow its container once padding is added. */
    box-sizing: border-box;
}

/*
 * The theme's own height has to be beaten, explicitly.
 *
 * local.css carries `select { height: 29px; padding: 4px 25px 4px 3px }`. This rule set padding and no height,
 * so 29px won and the field had 10px of padding top and bottom inside a 29px box - nine pixels left for a 14px
 * line. Every dropdown rendered with its text sliced in half, which is what the owner saw: "Escolha um
 * assunto" cut off at the waist.
 *
 * height: auto rather than a fixed figure, so the box is whatever the text and the padding need and a longer
 * font stack or a zoomed browser cannot clip it again. min-height keeps it the same size as the textarea and
 * comfortably past the 44px touch target.
 */
.hss-field select {
    height: auto;
    min-height: 44px;
    /* The theme's asymmetric 25px right padding was for its own arrow; this field draws the native one. */
    padding: 10px 12px;
}

.hss-field textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.5;
}

.hss-field select:focus,
.hss-field textarea:focus,
.hss-field input:focus {
    border-color: #8fae2f;
    outline: 2px solid rgba(143, 174, 47, .25);
    outline-offset: 0;
}

.hss-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.45;
    color: #6b7280;
}

/*
 * Radios as rows rather than a tight inline group: the labels here are sentences, and an inline group wraps
 * them into something where it is genuinely unclear which text belongs to which control.
 */
.hss-radio {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0 0 7px;
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.45;
    cursor: pointer;
}

.hss-radio input {
    margin: 2px 0 0;
    flex: 0 0 auto;
}

.hss-field [hidden] {
    display: none;
}

.hss-actions {
    margin: 24px 0 0;
}

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

.hss-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border: 1px solid #c8d0d9;
    border-radius: 999px;
    background: #fff;
    color: #1c1c21;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.hss-btn:hover {
    border-color: #8fae2f;
    color: #1c1c21;
    text-decoration: none;
}

.hss-btn--primary {
    border-color: #a8df00;
    background: #a8df00;
    color: #0a0d14;
}

.hss-btn--primary:hover {
    background: #b9ee16;
    border-color: #b9ee16;
}

.hss-btn:focus-visible {
    outline: 2px solid #1c1c21;
    outline-offset: 2px;
}

/* -------------------------------------------------------------------- history */

.hss-history {
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid #e3e8ee;
}

.hss-history__title {
    margin: 0 0 12px;
    font-size: 16px;
}

.hss-history__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hss-history__item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    padding: 10px 12px;
    margin: 0 0 8px;
    list-style: none;
    border: 1px solid #e3e8ee;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
}

.hss-history__when {
    color: #6b7280;
    font-size: 12px;
}

.hss-history__topic {
    font-weight: 700;
    flex: 1 1 auto;
    min-width: 0;
}

.hss-history__status {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #6b7280;
}

/* An answered request reads as settled; an open one as still owed. */
.hss-history__item.is-open {
    border-left: 3px solid #e0a500;
}

.hss-history__item.is-answered,
.hss-history__item.is-closed {
    border-left: 3px solid #8fae2f;
}
