/* ============================================================
   HOWTOREPEL.COM — DESIGN REFRESH 2026
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* Body: line-height, text colour, link colour */
body {
    line-height: 1.75 !important;
    color: var(--htr-text, #1d1a16) !important;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
}

a { color: var(--htr-accent, #1a7f7e) !important; }
a:hover { color: var(--htr-primary-dark, #0a4a49) !important; text-decoration: underline !important; }

/* Article page: full-width reading column, no sidebar */
.single .site-content .ast-container { max-width: 900px !important; }
.single .entry-content { max-width: 760px !important; margin: 0 auto !important; }
.single #secondary, .single .widget-area { display: none !important; }
.single #primary { width: 100% !important; float: none !important; }

/* Headings */
h1, h2, h3, h4, h5, h6 { color: #1a1a18 !important; line-height: 1.3 !important; }

h2.wp-block-heading {
    border-bottom: 2px solid #e8e6df !important;
    padding-bottom: 0.35em !important;
    margin-top: 2.5rem !important;
}

h3.wp-block-heading { margin-top: 1.75rem !important; }

/* Quick Answer: teal left-border highlight box */
.wp-block-heading[id="quick-answer"] {
    color: #1a7f7e !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.07em !important;
    border-bottom: none !important;
    margin-bottom: 0.2rem !important;
}

.wp-block-heading[id="quick-answer"] + p {
    background: #f0faf9 !important;
    border-left: 4px solid #1a7f7e !important;
    padding: 1rem 1.25rem !important;
    border-radius: 0 6px 6px 0 !important;
    font-size: 1rem !important;
    line-height: 1.7 !important;
    margin-top: 0 !important;
}

/* Tables: clean modern */
.entry-content table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 0.93rem !important;
    margin: 1.5rem 0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    border: 1px solid #e0ede0 !important;
}

.entry-content table thead th {
    background: #1a7f7e !important;
    color: #ffffff !important;
    padding: 0.75rem 1rem !important;
    text-align: left !important;
    font-weight: 600 !important;
    font-size: 0.88rem !important;
}

.entry-content table tbody tr:nth-child(even) { background: #f7f9f8 !important; }

.entry-content table tbody td {
    padding: 0.65rem 1rem !important;
    border-bottom: 1px solid #e8e6df !important;
    vertical-align: top !important;
}

/* Archive cards: hover effect + featured image ratio */
.blog .ast-article-post,
.archive .ast-article-post {
    border-radius: 8px !important;
    overflow: hidden !important;
    border: 1px solid #e8e6df !important;
    transition: box-shadow 0.2s ease, transform 0.2s ease !important;
    background: #fff !important;
}

.blog .ast-article-post:hover,
.archive .ast-article-post:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,0.09) !important;
    transform: translateY(-3px) !important;
}

.blog .ast-blog-featured-section img,
.archive .ast-blog-featured-section img {
    aspect-ratio: 16 / 9 !important;
    object-fit: cover !important;
    width: 100% !important;
}

/* Archive titles */
.blog .entry-title a,
.archive .entry-title a {
    font-size: 1.05rem !important;
    color: #1a1a18 !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
}

.blog .entry-title a:hover,
.archive .entry-title a:hover { color: #1a7f7e !important; text-decoration: none !important; }

/* Archive excerpt: clamp to 3 lines */
.blog .ast-excerpt,
.archive .ast-excerpt {
    font-size: 0.9rem !important;
    color: #5a5a56 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* Sticky header shadow */
.ast-header-sticked .site-header {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}

/* Inline code */
.entry-content code {
    background: #f5f5f3 !important;
    border: 1px solid #e8e6df !important;
    border-radius: 4px !important;
    font-size: 0.88rem !important;
    padding: 1px 5px !important;
}

/* Homepage: hide Astra footer only — Astra header stays visible; custom .htr-footer replaces theme footer */
.home #colophon,
.home .site-footer,
.home .ast-footer-wrap {
    display: none !important;
}

/* Related posts section styling */
.ast-related-posts-wrap {
    margin-top: 3rem !important;
    padding-top: 2rem !important;
    border-top: 2px solid #e8e6df !important;
}

.ast-related-posts-wrap .ast-related-post-heading {
    font-size: 1.4rem !important;
    color: #1a1a18 !important;
    margin-bottom: 1.5rem !important;
}

.ast-related-posts-wrap .ast-related-post {
    border: 1px solid #e8e6df !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    transition: box-shadow 0.2s ease, transform 0.2s ease !important;
}

.ast-related-posts-wrap .ast-related-post:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.09) !important;
    transform: translateY(-2px) !important;
}

.ast-related-posts-wrap .ast-related-post .ast-related-post-featured-img img {
    aspect-ratio: 16 / 9 !important;
    object-fit: cover !important;
    width: 100% !important;
}

.ast-related-posts-wrap .ast-related-post-title a {
    font-size: 1rem !important;
    color: #1a1a18 !important;
    text-decoration: none !important;
}

.ast-related-posts-wrap .ast-related-post-title a:hover {
    color: #1a7f7e !important;
}

/* Mobile */
@media (max-width: 600px) {
    .single .entry-content { padding: 0 1rem !important; }
    .entry-content table { font-size: 0.82rem !important; }
    .entry-content table thead th,
    .entry-content table tbody td { padding: 0.5rem 0.65rem !important; }
}

/* Archive card meta row */
.htr-archive-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin: 0.35rem 0 0.75rem;
    font-size: 0.78rem;
    line-height: 1.4;
    color: #8a7960;
}

.htr-archive-cat {
    display: inline-block;
    background: #e8f4f3;
    color: #17706e !important;
    font-weight: 600;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    text-decoration: none !important;
}

.htr-archive-cat:hover {
    background: #d4ecea !important;
}

.htr-archive-time,
.htr-archive-updated {
    color: #8a7960;
}

.blog .ast-blog-featured-section,
.archive .ast-blog-featured-section {
    margin-bottom: 0.75rem !important;
}

@media (max-width: 768px) {
    h2.wp-block-heading { margin-top: 1.75rem !important; }
}
