/* ==========================================================================
   DriveThruPrices.com — Custom CSS
   Paste into: WordPress Dashboard > Appearance > Customize > Additional CSS
   Works with GeneratePress, Astra, Kadence (free versions).
   ========================================================================== */

/* ---------- 1. Typography & readability ---------- */
body {
    font-size: 17px;
    line-height: 1.75;
    color: #2b2b2b;
}
.entry-content h2 {
    font-size: 1.65rem;
    margin: 2.2em 0 0.8em;
    line-height: 1.3;
}
.entry-content h3 {
    font-size: 1.3rem;
    margin: 1.8em 0 0.6em;
    line-height: 1.35;
}
.entry-content p, .entry-content li {
    margin-bottom: 1.1em;
}
.entry-content a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- 2. Responsive tables (price & nutrition) ---------- */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.95rem;
    display: block;
    overflow-x: auto;          /* horizontal scroll on small screens */
    -webkit-overflow-scrolling: touch;
}
.entry-content thead { display: table-header-group; }
.entry-content tbody { display: table-row-group; }
.entry-content tr { display: table-row; }
.entry-content th, .entry-content td {
    display: table-cell;
    border: 1px solid #dcdcdc;
    padding: 0.7em 0.9em;
    text-align: left;
    white-space: nowrap;
}
.entry-content thead th {
    background: #b3391f;      /* brand terracotta */
    color: #fff;
    font-weight: 700;
}
.entry-content tbody tr:nth-child(even) { background: #faf7f2; }

/* ---------- 3. Ad placeholder slots (labeled, non-intrusive) ---------- */
.dtp-ad {
    border: 1px dashed #c9c9c9;
    background: #f7f7f7;
    border-radius: 8px;
    padding: 1.4em 1em;
    margin: 2em auto;
    max-width: 728px;
    text-align: center;
    min-height: 90px;
}
.dtp-ad-label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8a8a8a;
    margin-bottom: 0.6em;
}

/* ---------- 4. Calculator widget ---------- */
.dtp-calc {
    border: 1px solid #e3ddd2;
    background: #fffdf9;
    border-radius: 12px;
    padding: 1.6em;
    margin: 2em 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.dtp-calc-title { margin-top: 0 !important; font-size: 1.35rem; }
.dtp-calc-note { font-size: 0.85rem; color: #6b6b6b; }
.dtp-calc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1em;
    margin: 1.2em 0;
}
.dtp-calc-grid label { font-weight: 600; font-size: 0.92rem; display: block; }
.dtp-calc-grid select {
    width: 100%;
    margin-top: 0.4em;
    padding: 0.65em 0.8em;
    border: 1px solid #cfcfcf;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
}
.dtp-calc-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.8em;
    margin-top: 1em;
}
.dtp-result {
    background: #fff;
    border: 1px solid #e3ddd2;
    border-radius: 8px;
    padding: 0.9em;
    text-align: center;
}
.dtp-result span { display: block; font-size: 0.8rem; color: #6b6b6b; margin-bottom: 0.3em; }
.dtp-result strong { font-size: 1.25rem; color: #b3391f; }
.dtp-calc-fine { font-size: 0.78rem; color: #8a8a8a; margin-bottom: 0; }

/* ---------- 5. Disclaimer & reading time ---------- */
.dtp-disclaimer {
    font-size: 0.85rem;
    color: #6b6b6b;
    border-top: 1px solid #e3ddd2;
    padding-top: 1em;
    margin-top: 2.5em;
}
.dtp-reading-time {
    font-size: 0.85rem;
    color: #8a8a8a;
    margin-bottom: 1.2em;
}

/* ---------- 6. Mobile tightening ---------- */
@media (max-width: 600px) {
    body { font-size: 16px; }
    .entry-content h2 { font-size: 1.4rem; }
    .dtp-calc { padding: 1.1em; }
}
