/* BestPeriodTracker.com — original editorial theme */
:root{
  --paper:#fbf7f2;
  --card:#ffffff;
  --ink:#241d22;
  --muted:#6f6470;
  --line:#ece3da;
  --berry:#b03a64;
  --berry-dark:#8c2c4e;
  --berry-soft:#fbe9f0;
  --leaf:#3f7d6a;
  --radius:16px;
  --wrap:1100px;
  --shadow:0 8px 30px rgba(54,30,40,.07);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;background:var(--paper);color:var(--ink);
  font-family:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  font-size:18px;line-height:1.7;-webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{font-family:"Newsreader","Georgia",serif;font-weight:600;line-height:1.18;color:var(--ink);letter-spacing:-.01em}
a{color:var(--berry-dark);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;display:block}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 22px}
.narrow{max-width:760px;margin:0 auto}

/* header */
.site-head{position:sticky;top:0;z-index:50;background:rgba(251,247,242,.86);backdrop-filter:saturate(150%) blur(10px);border-bottom:1px solid var(--line)}
.head-inner{display:flex;align-items:center;justify-content:space-between;height:68px}
.brand{font-family:"Newsreader",serif;font-size:23px;font-weight:600;color:var(--ink)!important;text-decoration:none;letter-spacing:-.02em}
.brand b{color:var(--berry)}
.nav{display:flex;gap:26px;align-items:center}
.nav a{color:var(--ink);font-size:15px;font-weight:500}
.nav a:hover{color:var(--berry);text-decoration:none}
@media(max-width:720px){.nav{display:none}}

/* trust bar (Trustpilot-style) */
.trustbar{background:#fff;border-bottom:1px solid var(--line)}
.trustbar .wrap{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;padding:11px 22px;font-size:14.5px}
.trustbar b{font-weight:700;color:var(--ink)}
.tp-stars{display:inline-flex;gap:3px}
.tp-stars i{width:22px;height:22px;background:#00b67a;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:13px;border-radius:3px;font-style:normal}
.trustbar .tp-sub{color:var(--muted)}
.trustbar .tp-sub u{color:var(--ink)}
.trustbar .tp-brand{display:inline-flex;align-items:center;gap:5px;font-weight:700;color:var(--ink)}
.trustbar .tp-brand .star{color:#00b67a;font-size:16px}
@media(max-width:560px){.trustbar .wrap{gap:8px;font-size:13px}.tp-stars i{width:19px;height:19px}}

/* hero */
.hero{padding:64px 0 30px;text-align:center}
.kicker{color:var(--berry);font-weight:700;font-size:13px;letter-spacing:.14em;text-transform:uppercase}
.hero h1{font-size:clamp(34px,6vw,58px);margin:14px 0 16px}
.hero p{font-size:20px;color:var(--muted);max-width:620px;margin:0 auto}

/* category pills */
.cats{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin:28px 0 8px}
.pill{background:var(--card);border:1px solid var(--line);color:var(--ink);padding:8px 16px;border-radius:999px;font-size:14px;font-weight:600;box-shadow:var(--shadow)}
.pill:hover{border-color:var(--berry);color:var(--berry);text-decoration:none}

/* section heading */
.sec-head{display:flex;align-items:baseline;justify-content:space-between;margin:48px 0 22px;border-bottom:1px solid var(--line);padding-bottom:12px}
.sec-head h2{font-size:27px;margin:0}
.sec-head a{font-size:14px;font-weight:600}

/* post grid */
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
@media(max-width:860px){.grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.grid{grid-template-columns:1fr}}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);transition:transform .15s ease,box-shadow .15s ease;display:flex;flex-direction:column}
.card:hover{transform:translateY(-3px);box-shadow:0 14px 40px rgba(54,30,40,.12);text-decoration:none}
.card .thumb{aspect-ratio:16/10;background:linear-gradient(135deg,var(--berry-soft),#f3eee9);display:flex;align-items:center;justify-content:center;font-size:42px;overflow:hidden}
.card .thumb img{width:100%;height:100%;object-fit:cover;display:block}
.post-hero{margin:6px 0 28px;border-radius:18px;overflow:hidden;box-shadow:var(--shadow)}
.post-hero img{width:100%;height:auto;display:block;aspect-ratio:16/9;object-fit:cover}
.post-hero figcaption{background:var(--card);color:var(--muted);font-size:13px;padding:8px 14px;text-align:center}
.card .body{padding:18px 20px 22px}
.card .tag{color:var(--berry);font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.card h3{font-size:20px;margin:8px 0 8px;color:var(--ink)}
.card p{margin:0;color:var(--muted);font-size:15px;line-height:1.6}

/* featured */
.featured{display:grid;grid-template-columns:1.15fr 1fr;gap:30px;align-items:center;background:var(--card);border:1px solid var(--line);border-radius:22px;overflow:hidden;box-shadow:var(--shadow);margin-top:8px}
.featured .thumb{aspect-ratio:auto;height:100%;min-height:280px;font-size:72px}
.featured .body{padding:34px 38px}
.featured h2{font-size:32px;margin:10px 0 12px}
.featured p{color:var(--muted);margin:0 0 18px}
@media(max-width:760px){.featured{grid-template-columns:1fr}.featured .thumb{min-height:180px}}

.btn{display:inline-block;background:var(--berry);color:#fff!important;padding:12px 22px;border-radius:999px;font-weight:600;font-size:15px;box-shadow:var(--shadow)}
.btn:hover{background:var(--berry-dark);text-decoration:none}

/* article */
.article-head{padding:48px 0 8px}
.crumbs{color:var(--muted);font-size:14px;margin:0 0 14px}
.article-head h1{font-size:clamp(30px,5vw,46px);margin:10px 0 14px}
.dek{font-size:20px;color:var(--muted);margin:0 0 18px}
.byline{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:14px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:14px 0;margin:18px 0}
.av{width:40px;height:40px;border-radius:50%;background:var(--berry);color:#fff;display:flex;align-items:center;justify-content:center;font-family:"Newsreader",serif;font-weight:600}
.prose{font-size:18.5px}
.prose h2{font-size:29px;margin:42px 0 14px}
.prose h3{font-size:22px;margin:30px 0 10px}
.prose p{margin:0 0 18px}
.prose ul,.prose ol{margin:0 0 18px;padding-left:24px}
.prose li{margin:0 0 9px}
.prose img{border-radius:var(--radius);margin:26px 0}
.prose figcaption{color:var(--muted);font-size:14px;text-align:center;margin-top:8px}
.prose blockquote{margin:26px 0;padding:6px 22px;border-left:4px solid var(--berry);color:var(--ink);font-style:italic;background:var(--berry-soft);border-radius:0 12px 12px 0}
.callout{background:var(--card);border:1px solid var(--line);border-left:4px solid var(--leaf);border-radius:0 12px 12px 0;padding:18px 22px;margin:26px 0;box-shadow:var(--shadow)}
.callout h4{margin:0 0 6px;font-size:17px}
.callout p{margin:0;color:var(--muted);font-size:16px}
.toc{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:20px 24px;margin:26px 0;box-shadow:var(--shadow)}
.toc h4{margin:0 0 10px;font-size:15px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
.toc ol{margin:0;padding-left:20px}
.toc li{margin:0 0 6px;font-size:16px}
table{width:100%;border-collapse:collapse;margin:24px 0;font-size:15.5px;background:var(--card);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}
th,td{padding:12px 14px;text-align:left;border-bottom:1px solid var(--line)}
th{background:var(--berry-soft);font-weight:700}
.related{margin:46px 0}

/* footer */
.site-foot{background:#241d22;color:#d9cfd5;margin-top:70px;padding:46px 0 30px}
.site-foot a{color:#e9b9cc}
.foot-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:30px}
@media(max-width:680px){.foot-grid{grid-template-columns:1fr}}
.site-foot .brand{color:#fff!important}
.site-foot h4{color:#fff;font-size:14px;text-transform:uppercase;letter-spacing:.08em;margin:0 0 12px}
.site-foot ul{list-style:none;padding:0;margin:0}
.site-foot li{margin:0 0 8px;font-size:15px}
.foot-bottom{border-top:1px solid rgba(255,255,255,.12);margin-top:34px;padding-top:18px;display:flex;justify-content:space-between;font-size:13px;color:#9c8f96;flex-wrap:wrap;gap:8px}
.disclaimer{font-size:13px;color:var(--muted);background:var(--card);border:1px solid var(--line);border-radius:12px;padding:14px 18px;margin:30px 0}

/* reviews app (with replies + form) */
.rv{margin:50px 0 8px}
.rv-summary{display:flex;gap:24px;align-items:center;flex-wrap:wrap;border:1px solid var(--line);background:var(--card);border-radius:16px;padding:22px 26px;box-shadow:var(--shadow);margin-bottom:8px}
.rv-summary .score{font-family:"Newsreader",serif;font-size:46px;font-weight:600;line-height:1}
.grn{color:#00b67a}
.rv-bigstars{font-size:19px;letter-spacing:2px;color:#00b67a;margin-top:4px}
.rv-summary .count{color:var(--muted);font-size:14px}
.rv-item{border-bottom:1px solid var(--line);padding:22px 0}
.rv-rate{color:#00b67a;letter-spacing:1px;font-size:15px}
.rv-head{display:flex;align-items:center;gap:10px;margin:8px 0 2px;flex-wrap:wrap}
.rv-av{width:34px;height:34px;border-radius:50%;background:var(--berry-soft);color:var(--berry-dark);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px}
.rv-name{font-weight:700;font-size:15px}
.rv-verified{background:#00b67a;color:#fff;font-size:11px;font-weight:700;padding:2px 7px;border-radius:4px}
.rv-date{color:var(--muted);font-size:13px;margin-left:auto}
.rv-text{margin:6px 0 0}
.rv-reply{background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:12px 16px;margin:12px 0 0;font-size:15px;line-height:1.55}
.rv-reply b{color:var(--berry-dark)}
.rv-actions{margin-top:8px}
.rv-linkbtn{background:none;border:none;color:var(--berry-dark);font-weight:600;font-size:14px;padding:0;cursor:pointer;text-decoration:underline}
.rv-replyform{margin-top:10px;display:none}
.rv-replyform.open{display:block}
.rv-replyform textarea{width:100%;border:1px solid var(--line);border-radius:10px;padding:10px;font-family:inherit;font-size:14px;background:var(--card)}
.rv-replyform button{margin-top:8px;background:var(--ink);color:#fff;border:none;padding:8px 16px;border-radius:8px;font-weight:600;font-size:13px;cursor:pointer}
.rv-pager{display:flex;gap:6px;justify-content:center;align-items:center;margin:24px 0 0;flex-wrap:wrap}
.rv-pager button{min-width:36px;height:36px;border:1px solid var(--line);background:var(--card);border-radius:8px;font-weight:600;color:var(--ink);font-family:inherit;cursor:pointer}
.rv-pager button.active{background:var(--berry);color:#fff;border-color:var(--berry)}
.rv-pager button:disabled{opacity:.4;cursor:default}
.rv-form{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:24px;box-shadow:var(--shadow);margin-top:30px}
.rv-form h3{margin:0 0 6px}
.rv-form .hint{color:var(--muted);font-size:13px;margin:0 0 10px}
.rv-form label{display:block;font-weight:600;font-size:14px;margin:12px 0 6px}
.rv-form input,.rv-form textarea{width:100%;border:1px solid var(--line);border-radius:10px;padding:11px 13px;font-family:inherit;font-size:15px;background:var(--paper);box-sizing:border-box}
.rv-form textarea{min-height:90px;resize:vertical}
.rv-starpick{display:inline-flex;gap:5px;font-size:28px;color:#d9cfd5;cursor:pointer;user-select:none}
.rv-starpick span.on{color:#00b67a}
.rv-form .submit{margin-top:16px;background:var(--berry);color:#fff;border:none;padding:12px 24px;border-radius:999px;font-weight:600;font-size:15px;cursor:pointer}
.rv-form .submit:hover{background:var(--berry-dark)}
.rv-thanks{background:#e7f7ef;border:1px solid #b6e6cf;color:#127a4e;border-radius:10px;padding:12px 16px;margin-top:12px;font-size:14px}
.rv-thanks.err{background:#fdecef;border-color:#f3c2cd;color:#a3243f}

/* reviews */
.reviews{margin:58px 0 10px}
.rating-hero{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;margin-bottom:30px}
.rating-hero .big{font-family:"Newsreader",serif;font-size:54px;font-weight:600;line-height:1}
.stars{color:#f0a500;letter-spacing:2px;font-size:20px}
.rating-hero .sub{color:var(--muted);font-size:15px}
.reviews-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
@media(max-width:860px){.reviews-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.reviews-grid{grid-template-columns:1fr}}
.review-card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:20px 22px;box-shadow:var(--shadow)}
.rev-top{display:flex;align-items:center;gap:12px;margin-bottom:10px}
.rev-av{width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;color:#fff;font-size:16px;flex-shrink:0}
.rev-name{font-weight:700;font-size:15px;line-height:1.2}
.rev-meta{color:var(--muted);font-size:12.5px}
.review-card .stars{font-size:15px;letter-spacing:1px}
.review-card p{margin:8px 0 0;font-size:15px;color:var(--ink);line-height:1.6}
