/* ========================================
   Träsnidaren - user.css
   Gemensam stil för artiklar
   ======================================== */


/* ========================================
   1. RUBRIKHIERARKI
   ======================================== */

/* Rubriker inne i artiklar */

main h2 {
    font-size: 1.45rem;
    line-height: 1.3;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.85rem;
}

main h3 {
    font-size: 1.15rem;
    line-height: 1.3;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
}


/* ========================================
   2. INTRODUKTION
   ======================================== */

.ts-intro {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.ts-intro p:last-child {
    margin-bottom: 0;
}


/* ========================================
   3. GRID
   ======================================== */

.ts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1rem 0 1.5rem;
}


/* ========================================
   4. INFORMATIONSBOX
   ======================================== */

.ts-info {
    padding: 1.35rem 1.5rem;
    background: #f7f7f7;
    border-radius: 5px;
}


/* ========================================
   5. RUBRIK I BOX
   ======================================== */

/*
   Exempel:
   Fiber
   Kontakta styrelsen
   Ordinarie ledamöter
   Praktiska arbetsuppgifter
*/

.ts-info-title {
    display: block;
    font-size: 1.35rem;
    line-height: 1.25;
    font-weight: 600;
    margin: 0 0 0.85rem;
}


/* ========================================
   6. ETIKETTER OCH TEXT I BOX
   ======================================== */

/*
   Exempel:
   Leverantör
   Kontaktperson
   E-post
   Telefon
*/

.ts-info strong {
    display: block;
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.ts-info p {
    margin-top: 0;
    margin-bottom: 1rem;
}

.ts-info p:last-child {
    margin-bottom: 0;
}

.ts-info span {
    display: block;
}


/* ========================================
   7. VÄRDE / HUVUDINFORMATION
   ======================================== */

/*
   Exempel:
   3 500 kr / år
   -500 kr
   Januari
   1985
   64 fastigheter
*/

.ts-value {
    display: block;
    font-size: 1.35rem;
    line-height: 1.25;
    font-weight: 700;
    margin-bottom: 0.45rem;
}


/* ========================================
   8. NOTERING
   ======================================== */

/*
   Gemensam kompletterande information
   i slutet av ett avsnitt eller en artikel.
*/

.ts-note {
    margin-top: 2rem;
    padding: 0.75rem 1rem;
    border-left: 3px solid #b8b8b8;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.ts-note p {
    margin-top: 0;
    margin-bottom: 0.4rem;
}

.ts-note p:last-child {
    margin-bottom: 0;
}


/* ========================================
   9. LÄNKAR
   ======================================== */

.ts-article a {
    text-underline-offset: 0.15em;
}


/* ========================================
   10. INLOGGNING / MEDLEMSSIDOR
   ======================================== */

.ts-login {
    width: 100%;
    max-width: 520px;
    margin: 1.5rem auto 0;
}

.com-users-login,
.com-users-reset,
.com-users-remind {
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}


/* ========================================
   11. MOBIL
   ======================================== */

@media (max-width: 600px) {

    main h2 {
        font-size: 1.3rem;
    }

    main h3 {
        font-size: 1.1rem;
    }

    .ts-grid {
        grid-template-columns: 1fr;
    }

    .ts-info {
        padding: 1.1rem;
    }

    .ts-info-title,
    .ts-value {
        font-size: 1.25rem;
    }

    .ts-login,
    .com-users-login,
    .com-users-reset,
    .com-users-remind