/* ============================================================
   AMANITAMARKET.COM — custom.css
   Always loaded last — overrides all theme styles.
   Version: auto (filemtime via functions.php)
   ============================================================ */


/* ============================================================
   1. CSS VARIABLES
   ============================================================ */

:root {

    /* Brand */
    --primary:           #1B3A2D;
    --primary-hover:     #2A5540;
    --primary-light:     #3D7A5C;
    --primary-subtle:    #E8F2EC;

    --secondary:         #8B1A1A;
    --secondary-hover:   #A82020;
    --secondary-active:  #6E1414;
    --secondary-subtle:  #FAEAEA;

    --accent:            #DC9814;

    /* Backgrounds */
    --bg-body:           #F5F0E8;
    --bg-hero:           #D4E6D4;
    --bg-card:           #FFFFFF;
    --bg-subtle:         #EDE8E0;

    /* Text */
    --text-body:         #3A3530;
    --text-heading:      #1B3A2D;
    --text-muted:        #6B6560;
    --text-placeholder:  #9A9490;
    --text-inverse:      #F5F0E8;

    /* Borders */
    --border:            #D8D3CB;
    --border-focus:      #3D7A5C;

    /* Navigation */
    --nav-bg:            #1B3A2D;
    --nav-link:          #F5F0E8;
    --nav-link-hover:    #DC9814;
    --nav-hover-bg:      #2A5540;

    /* Footer */
    --footer-bg:         #1B3A2D;
    --footer-text:       #F5F0E8;
    --footer-link:       #A8D5B5;
    --footer-link-hover: #DC9814;
    --footer-heading:    #DC9814;

    /* Buttons */
    --btn-bg:            #8B1A1A;
    --btn-text:          #F5F0E8;
    --btn-hover:         #A82020;

    /* Links */
    --link:              #1B3A2D;
    --link-hover:        #DC9814;

    /* Status */
    --success:           #3D7A5C;
    --danger:            #8B1A1A;
    --info-bg:           #E8F2EC;
    --info-border:       #1B3A2D;
    --warning-bg:        #FAEAEA;
    --warning-border:    #8B1A1A;
}

a.btn {
    text-decoration: none !important;
}

p {
    color: var(--text-body);
}

.header-widget-region p {
    color: var(--btn-text);
}

.product_page.additional_information_tab p {
    color: var(--text-body);
}

.product_page.additional_information_tab .title {
    color: var(--text-heading);
}

.summary h1 {
    color: var(--text-heading);
}

.summary h2 {
    color: var(--text-heading);
}

.product p.price {
    font-size: 32px;
}

/* ============================================================
   2. BLOG POSTS — .am-article
   ============================================================ */

.am-article {
    max-width: 780px;
    margin: 0 auto;
    font-family: inherit;
    color: var(--text-body);
    line-height: 1.75;
}

.am-article .am-lead {
    font-size: 1.15em;
    line-height: 1.8;
    border-left: 4px solid var(--primary);
    padding-left: 18px;
    margin-bottom: 2em;
    color: var(--text-body);
}

.am-article h2 {
    color: var(--text-heading);
    margin-top: 2em;
    margin-bottom: 0.5em;
    font-size: 1.35em;
}

.am-article p {
    margin-bottom: 1.2em;
}

.am-article ul,
.am-article ol {
    padding-left: 1.5em;
    margin-bottom: 1.2em;
}

.am-article li {
    margin-bottom: 0.4em;
}

.am-article a:not(.am-btn) {
    color: var(--link);
    text-decoration: underline;
}

.am-article a:not(.am-btn):hover {
    color: var(--link-hover);
}

.am-article .am-highlight {
    background: var(--info-bg);
    border-left: 4px solid var(--info-border);
    padding: 16px 20px;
    margin: 2em 0;
    border-radius: 0 6px 6px 0;
}

.am-article .am-highlight strong {
    display: block;
    color: var(--primary);
    font-size: 1em;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.am-article .am-highlight p {
    margin: 0;
    font-size: 0.97em;
}

.am-article .am-disclaimer {
    background: var(--bg-subtle);
    border-left: 4px solid var(--text-placeholder);
    padding: 14px 18px;
    margin: 1.5em 0;
    border-radius: 0 4px 4px 0;
    font-size: 0.88em;
    color: var(--text-muted);
}

.am-article .am-disclaimer strong {
    color: var(--text-body);
}

.am-article .am-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.8em 0;
    font-size: 0.95em;
}

.am-article .am-table thead tr {
    background: var(--primary);
    color: var(--text-inverse);
}

.am-article .am-table thead th {
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
}

.am-article .am-table tbody tr:nth-child(odd) {
    background: var(--bg-body);
}

.am-article .am-table tbody tr:nth-child(even) {
    background: var(--bg-subtle);
}

.am-article .am-table tbody td {
    padding: 9px 14px;
    border-bottom: 1px solid var(--border);
}

.am-article .am-table .am-legal {
    color: var(--success);
    font-weight: 600;
}

.am-article .am-table .am-illegal {
    color: var(--danger);
    font-weight: 600;
}

.am-article .am-sources {
    background: var(--info-bg);
    padding: 18px 22px;
    margin: 2.5em 0 1.5em;
    border-radius: 6px;
}

.am-article .am-sources h3 {
    color: var(--primary);
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0;
    margin-bottom: 10px;
}

.am-article .am-sources ul {
    margin: 0;
    padding-left: 18px;
}

.am-article .am-sources li {
    font-size: 0.88em;
    margin-bottom: 5px;
}

.am-article .am-sources a {
    color: var(--link);
    text-decoration: underline;
}

.am-article .am-sources a:hover {
    color: var(--link-hover);
}

.am-article .am-cta {
    background: var(--primary);
    color: var(--text-inverse);
    padding: 24px 26px;
    margin: 2.5em 0;
    border-radius: 8px;
    text-align: center;
}

.am-article .am-cta p {
    margin: 0 0 18px;
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-inverse);
}

.am-article .am-cta a.btn {
    display: inline-block;
    background: var(--btn-bg);
    color: var(--btn-text);
    padding: 12px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1em;
    letter-spacing: 0.03em;
    transition: background 0.2s ease;
}

.am-article .am-cta a.btn:hover {
    background: var(--btn-hover);
    color: var(--btn-text);
    text-decoration: none;
}


/* ============================================================
   3. STANDALONE CTA BLOCK — product pages & outside articles
   Structure: <div class="am-cta"><p>text</p><p><a>btn</a></p></div>
   ============================================================ */

.am-cta {
    background: var(--primary);
    color: var(--text-inverse);
    border-radius: 10px;
    padding: 28px 32px;
    margin: 48px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.am-cta p {
    margin: 0;
    font-size: 1em;
    line-height: 1.5;
    color: var(--text-inverse);
    opacity: 0.92;
}

.am-cta p:first-child {
    flex: 1;
}

.am-cta p:last-child {
    flex-shrink: 0;
    text-align: end;
}

.am-cta a.btn {
    display: inline-block;
    background: var(--btn-bg);
    color: var(--btn-text);
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1em;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.am-cta a.btn:hover {
    opacity: 0.88;
    color: var(--btn-text);
    text-decoration: none;
}

@media (max-width: 767px) {
    .am-cta {
        display: block;
    }
    .am-cta p:last-child {
        text-align: center;
    }
    .am-cta a {
        display: block;
        width: 100%;
        text-align: center;
        margin-top: 20px;
        box-sizing: border-box;
    }
}


/* ============================================================
   4. LEGAL PAGES — .al
   ============================================================ */

.al {
    max-width: 780px;
    margin: 0 auto;
    font-family: inherit;
    color: var(--text-body);
    line-height: 1.75;
}

.al h2 {
    color: var(--text-heading);
    font-size: 1.15em;
    margin-top: 2em;
    margin-bottom: 0.4em;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--info-bg);
}

.al p {
    margin-bottom: 1em;
}

.al ul,
.al ol {
    padding-left: 1.5em;
    margin-bottom: 1em;
}

.al li {
    margin-bottom: 0.3em;
}

.al a {
    color: var(--link);
    text-decoration: underline;
}

.al a:hover {
    color: var(--secondary);
}

.al .ai {
    background: var(--info-bg);
    border-left: 4px solid var(--info-border);
    padding: 14px 18px;
    margin-bottom: 2em;
    border-radius: 0 6px 6px 0;
    font-size: 0.97em;
    color: var(--primary);
}

.al .ab {
    background: var(--bg-subtle);
    padding: 16px 20px;
    border-radius: 6px;
    margin: 1.5em 0;
    font-size: 0.95em;
}

.al .ab strong {
    display: block;
    color: var(--text-heading);
    margin-bottom: 6px;
}

.al .aw {
    background: var(--warning-bg);
    border-left: 4px solid var(--warning-border);
    padding: 14px 18px;
    border-radius: 0 4px 4px 0;
    margin: 1.5em 0;
    font-size: 0.9em;
    color: #4A1414;
}

.al .aw strong {
    display: block;
    margin-bottom: 4px;
    color: var(--danger);
}

.al .an {
    background: var(--info-bg);
    border-radius: 6px;
    padding: 16px 20px;
    margin: 1.5em 0;
    font-size: 0.95em;
    color: var(--primary);
}

.al .an strong {
    display: block;
    margin-bottom: 6px;
}

.al .agrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin: 1.5em 0;
}

.al .acard {
    background: var(--bg-subtle);
    border-radius: 8px;
    padding: 14px 16px;
}

.al .acard strong {
    display: block;
    color: var(--text-heading);
    margin-bottom: 4px;
    font-size: 0.93em;
}

.al .acard span {
    font-size: 0.9em;
    color: var(--text-body);
}


/* ============================================================
   4. MOBILE
   ============================================================ */

@media (max-width: 600px) {

    .am-article .am-cta {
        padding: 20px 18px;
    }

    .am-article .am-lead {
        font-size: 1.05em;
    }

    .am-article .am-table {
        font-size: 0.85em;
    }

    .am-article .am-table thead th,
    .am-article .am-table tbody td {
        padding: 7px 10px;
    }

    .al .agrid {
        grid-template-columns: 1fr;
    }
}
