/*
Theme Name: Peptide Clean
Description: Clean, EEAT-forward theme for a peptide vendor deals & review site. Requires the Peptide Deals Engine plugin.
Version: 1.0.0
Author: Your Team
License: GPL-2.0+
Text Domain: peptide-clean
*/

:root {
	--ink: #10222e;
	--ink-soft: #3f5866;
	--paper: #fafcfc;
	--mist: #eaf1f2;
	--line: #d5e0e2;
	--teal: #0e7c7b;
	--teal-deep: #0a5c5b;
	--amber: #d98e2b;
	--amber-soft: #fdf3e3;
	--verify: #1f8a4c;
	--warn: #b3541e;
	--danger: #b02a2a;
	--radius: 10px;
	--display: "Archivo", system-ui, sans-serif;
	--body: "Inter", system-ui, sans-serif;
	--mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	--wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
	margin: 0;
	font-family: var(--body);
	font-size: 1rem;
	line-height: 1.65;
	color: var(--ink);
	background: var(--paper);
}

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-weight: 700; margin-top: 2.2rem; }
h3 { font-size: 1.15rem; font-weight: 700; }
a { color: var(--teal); }
a:hover { color: var(--teal-deep); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.pd-muted { color: var(--ink-soft); font-size: 0.92rem; }

/* ===== Header ===== */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 64px; }
.site-brand { font-family: var(--display); font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.site-brand em { font-style: normal; color: var(--teal); }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; gap: 1.4rem; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a { text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: 0.95rem; }
.site-nav a:hover { color: var(--teal); }

/* ===== Disclosure bars ===== */
.pd-disclosure { background: var(--amber-soft); border: 1px solid #ecd3a8; border-radius: var(--radius); padding: 0.7rem 1rem; font-size: 0.88rem; color: #6a4a13; margin: 1.2rem 0; }
.pd-disclosure--research { background: var(--mist); border-color: var(--line); color: var(--ink-soft); }
.pd-topbar { background: var(--ink); color: #cfe4e4; font-size: 0.8rem; text-align: center; padding: 0.4rem 1rem; }
.pd-topbar a { color: #9fd6d5; }

/* ===== Hero ===== */
.pd-hero { background: linear-gradient(180deg, #ffffff 0%, var(--mist) 100%); border-bottom: 1px solid var(--line); padding: 3.5rem 0 3rem; }
.pd-hero h1 { max-width: 720px; margin: 0 0 0.6rem; }
.pd-hero h1 mark { background: none; color: var(--amber); }
.pd-hero p.lede { max-width: 640px; color: var(--ink-soft); font-size: 1.08rem; margin: 0 0 1.6rem; }
.pd-search { display: flex; max-width: 620px; gap: 0; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; background: #fff; }
.pd-search input[type=search] { flex: 1; border: 0; padding: 0.9rem 1.3rem; font-size: 1rem; font-family: var(--body); }
.pd-search input[type=search]:focus { outline: none; }
.pd-search button { border: 0; background: var(--ink); color: #fff; font-weight: 700; padding: 0 1.6rem; cursor: pointer; font-family: var(--display); }
.pd-search button:hover { background: var(--teal-deep); }
.pd-trust { display: flex; gap: 1.6rem; flex-wrap: wrap; margin-top: 1.4rem; font-size: 0.88rem; color: var(--ink-soft); }
.pd-trust span::before { content: "✓ "; color: var(--verify); font-weight: 700; }

/* ===== Stats band (only renders past real thresholds) ===== */
.pd-stats { background: var(--ink); color: #fff; padding: 2rem 0; }
.pd-stats .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.2rem; text-align: center; }
.pd-stat b { display: block; font-family: var(--mono); font-size: 1.7rem; color: #ffd9a0; }
.pd-stat span { font-size: 0.85rem; color: #b9d3d3; }

/* ===== Sections & grids ===== */
.pd-home-section { padding: 2.6rem 0 0.6rem; }
.pd-home-section .pd-more { font-weight: 700; text-decoration: none; }
.pd-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); margin: 1.2rem 0; }
.pd-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.45rem; }
.pd-card h3 { margin: 0; }
.pd-card h3 a { text-decoration: none; color: var(--ink); }
.pd-card h3 a:hover { color: var(--teal); }
.pd-card .pd-card__meta { font-size: 0.82rem; color: var(--ink-soft); margin-top: auto; }
.pd-card--vendor img.vendor-logo { max-height: 42px; width: auto; align-self: flex-start; }

/* ===== Signature: vial coupon card ===== */
.pd-coupons { display: flex; flex-direction: column; gap: 1.1rem; margin: 1.4rem 0; }
.pd-coupon { display: flex; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 3px rgba(16,34,46,0.05); }
.pd-coupon__cap { width: 14px; flex: 0 0 14px; background: linear-gradient(180deg, var(--amber) 0%, #b9741c 100%); }
.pd-coupon__body { padding: 1.1rem 1.3rem; flex: 1; }
.pd-coupon__title { margin: 0.25rem 0; }
.pd-coupon__desc { margin: 0 0 0.6rem; color: var(--ink-soft); font-size: 0.95rem; }
.pd-coupon__labels { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.pd-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; background: var(--mist); color: var(--teal-deep); border-radius: 4px; padding: 0.15rem 0.5rem; }
.pd-label--warn { background: #fbe9df; color: var(--warn); }
.pd-coupon__stats { display: flex; gap: 1.1rem; flex-wrap: wrap; font-size: 0.85rem; color: var(--ink-soft); font-family: var(--mono); margin-bottom: 0.8rem; }
.pd-verified { color: var(--verify); }
.pd-coupon__actions { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.pd-code { font-family: var(--mono); font-weight: 700; font-size: 1.05rem; background: repeating-linear-gradient(45deg, var(--amber-soft), var(--amber-soft) 8px, #fff 8px, #fff 16px); border: 2px dashed var(--amber); border-radius: 6px; padding: 0.45rem 0.9rem; letter-spacing: 0.06em; }
.pd-proof summary { cursor: pointer; font-size: 0.85rem; color: var(--teal); }
.pd-proof img { margin-top: 0.6rem; border: 1px solid var(--line); border-radius: 6px; }
.pd-coupon__feedback { display: flex; gap: 0.6rem; align-items: center; margin-top: 0.9rem; font-size: 0.85rem; color: var(--ink-soft); }

/* ===== Buttons ===== */
.pd-btn { display: inline-block; background: var(--teal); color: #fff; border: 0; border-radius: 7px; font-family: var(--display); font-weight: 700; font-size: 0.95rem; padding: 0.65rem 1.3rem; cursor: pointer; text-decoration: none; }
.pd-btn:hover { background: var(--teal-deep); color: #fff; }
.pd-btn--reveal { background: var(--amber); }
.pd-btn--reveal:hover, .pd-btn--reveal.is-revealed { background: #b9741c; }
.pd-mini { background: #fff; border: 1px solid var(--line); border-radius: 5px; font-size: 0.8rem; padding: 0.25rem 0.7rem; cursor: pointer; color: var(--ink-soft); }
.pd-mini:hover { border-color: var(--teal); color: var(--teal); }
.pd-report { color: var(--danger); }

/* ===== Sticky best-code bar ===== */
.pd-stickybar { position: fixed; left: 0; right: 0; bottom: -80px; background: var(--ink); color: #fff; padding: 0.7rem 1.25rem; display: flex; align-items: center; gap: 1rem; justify-content: center; transition: bottom 0.25s ease; z-index: 50; }
.pd-stickybar.is-visible { bottom: 0; }
.pd-stickybar strong { font-family: var(--mono); color: #ffd9a0; }

/* ===== Content sections ===== */
.pd-section { margin: 2rem 0; }
.pd-section ul { padding-left: 1.2rem; }
.entry-content, .pd-single { max-width: 820px; }
.pd-single-header { padding: 2.2rem 0 0.5rem; }
.pd-updated { font-size: 0.85rem; color: var(--ink-soft); font-family: var(--mono); }

/* ===== Author box ===== */
.pd-author { display: flex; gap: 0.9rem; align-items: center; background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.9rem 1.1rem; margin: 1.4rem 0; }
.pd-author img { border-radius: 50%; }
.pd-author__label { margin: 0; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); }
.pd-author__name { margin: 0.1rem 0 0; font-weight: 700; }
.pd-author__role { margin: 0; font-size: 0.85rem; color: var(--ink-soft); }

/* ===== Review verdict & scores ===== */
.pd-verdict { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin: 1.4rem 0; }
.pd-verdict__score { font-family: var(--display); font-weight: 800; font-size: 1.1rem; }
.pd-verdict__score span { font-size: 2.6rem; color: var(--teal); }
.pd-verdict__facts { display: flex; gap: 1.4rem; flex-wrap: wrap; margin: 0; }
.pd-verdict__facts dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); }
.pd-verdict__facts dd { margin: 0; font-weight: 600; font-size: 0.95rem; }
.pd-scores { width: 100%; border-collapse: collapse; margin: 1rem 0 2rem; }
.pd-scores caption { text-align: left; font-size: 0.85rem; color: var(--ink-soft); padding-bottom: 0.5rem; }
.pd-scores th { text-align: left; font-weight: 600; padding: 0.45rem 0.8rem 0.45rem 0; font-size: 0.92rem; width: 240px; }
.pd-scores td { padding: 0.45rem 0; }
.pd-bar { background: var(--mist); border-radius: 99px; height: 9px; min-width: 120px; overflow: hidden; }
.pd-bar span { display: block; height: 100%; background: var(--teal); border-radius: 99px; }
.pd-changelog { list-style: none; padding: 0; border-left: 3px solid var(--line); }
.pd-changelog li { padding: 0.3rem 0 0.3rem 1rem; }
.pd-changelog time { font-family: var(--mono); font-size: 0.82rem; color: var(--ink-soft); margin-right: 0.5rem; }

/* ===== Comparison table ===== */
.pd-section--criteria_table table, .pd-compare-table { width: 100%; border-collapse: collapse; }
.pd-section--criteria_table th, .pd-section--criteria_table td, .pd-compare-table th, .pd-compare-table td { border: 1px solid var(--line); padding: 0.6rem 0.8rem; text-align: left; font-size: 0.93rem; }
.pd-section--criteria_table th, .pd-compare-table th { background: var(--mist); font-family: var(--display); }

/* ===== Interlink boxes ===== */
.pd-interlinks { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 1.4rem 0; }
.pd-interlinks a { display: block; background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.9rem 1.1rem; text-decoration: none; font-weight: 700; color: var(--ink); }
.pd-interlinks a:hover { border-color: var(--teal); color: var(--teal); }
.pd-interlinks a small { display: block; font-weight: 400; color: var(--ink-soft); }

/* ===== Subscribe ===== */
.pd-subscribe { background: var(--mist); border-radius: var(--radius); padding: 1.4rem; }
.pd-subscribe h2 { margin-top: 0; font-size: 1.2rem; }
.pd-subscribe__form { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.pd-subscribe__form input { flex: 1; min-width: 220px; border: 1px solid var(--line); border-radius: 7px; padding: 0.6rem 0.9rem; font-family: var(--body); }

/* ===== FAQ / details ===== */
.pd-faq details { border-bottom: 1px solid var(--line); padding: 0.7rem 0; }
.pd-faq summary { cursor: pointer; font-weight: 700; }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: #b9d3d3; margin-top: 3.5rem; padding: 2.4rem 0 1.6rem; font-size: 0.9rem; }
.site-footer a { color: #9fd6d5; text-decoration: none; }
.site-footer .pd-footer-cols { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-footer ul { list-style: none; padding: 0; margin: 0.4rem 0 0; }
.site-footer li { margin: 0.25rem 0; }
.site-footer .pd-footnote { border-top: 1px solid #22404d; margin-top: 1.6rem; padding-top: 1.2rem; font-size: 0.8rem; color: #7ea0a0; }

/* ===== Author archive ===== */
.pd-author-hero { display: flex; gap: 1.4rem; align-items: center; padding: 2.4rem 0 1rem; }
.pd-author-hero img { border-radius: 50%; }

/* ===== Comments (user reviews) ===== */
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 0.8rem 0; background: #fff; }
.pd-comment-rating { color: var(--amber); font-size: 0.95rem; }

@media (max-width: 640px) {
	.site-header .wrap { flex-wrap: wrap; padding: 0.6rem 1.25rem; }
	.pd-verdict { flex-direction: column; align-items: flex-start; }
	.pd-scores th { width: auto; display: block; padding-bottom: 0; }
	.pd-scores tr { display: block; margin-bottom: 0.6rem; }
	.pd-scores td { display: block; }
}

/* ===== v1.1: vendor page sidebar layout ===== */
.pd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2.4rem; align-items: start; }
.pd-sidebar { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 0.4rem; }
.pd-sidebar .pd-section { margin: 0.6rem 0; }
.pd-sidebar .pd-subscribe { padding: 1.1rem; }
@media (max-width: 900px) { .pd-layout { grid-template-columns: 1fr; } .pd-sidebar { position: static; } }

/* ===== Verification proof thumbnail + lightbox ===== */
.pd-shot { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 3px; cursor: zoom-in; display: inline-flex; align-items: center; gap: 6px; }
.pd-shot img { width: 44px; height: 44px; object-fit: cover; border-radius: 4px; display: block; }
.pd-shot span { font-size: 0.75rem; font-weight: 700; color: var(--verify); padding-right: 6px; }
.pd-lightbox { position: fixed; inset: 0; background: rgba(16,34,46,0.88); display: flex; align-items: center; justify-content: center; z-index: 100; cursor: zoom-out; }
.pd-lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; background: #fff; }
.pd-lightbox__close { position: absolute; top: 16px; right: 24px; color: #fff; font-size: 2rem; cursor: pointer; }

/* ===== Rating summary ===== */
.pd-rating-summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; }
.pd-stars { font-family: var(--display); font-weight: 800; color: var(--teal); font-size: 1.2rem; }
