/*
Theme Name: Shilajit Journal MTC
Theme URI: https://shilajitjournal.com
Author: Marketing the Change
Author URI: https://marketingthechange.com
Description: Editorial magazine FSE theme for Shilajit Journal. Earthy premium palette (resin brown, gold, cream, moss), Fraunces + Inter, YMYL byline and FTC disclosure blocks built in. Ships with block patterns for hero, benefit cards with citations, how-to steps, product-review cards, brand comparison table, FAQ, related studies.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: shilajitjournal-mtc
Tags: block-theme, full-site-editing, magazine, editorial, blog
*/

/* Base editorial reset. theme.json handles most tokens. */

body { text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }

a { text-underline-offset: 3px; }

/* Skip link */
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { position: fixed; top: 12px; left: 12px; background: #C9A24A; color: #1E1611; padding: 8px 14px; z-index: 9999; font-weight: 600; }

/* Byline card (YMYL) */
.sj-byline {
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center;
  padding: 16px 20px; background: #E9DFCB; border-left: 3px solid #5B7A3D;
  font-size: 14px; color: #1E1611; margin: 24px 0;
}
.sj-byline strong { font-weight: 600; }
.sj-byline .sj-byline__meta { font-family: 'JetBrains Mono', ui-monospace, monospace; color: #4A3625; }

/* Medical reviewer badge */
.sj-medreview {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px; background: #5B7A3D; color: #F8F2E4;
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em; border-radius: 2px;
}

/* FTC disclosure block */
.sj-ftc {
  border-top: 4px solid #B85C3A; background: #F5EFE0; color: #1E1611;
  padding: 20px 24px; margin: 24px 0; font-size: 15px; line-height: 1.55;
}
.sj-ftc__label { font-weight: 700; color: #B85C3A; letter-spacing: 0.04em; text-transform: uppercase; font-size: 12px; display: block; margin-bottom: 6px; }
.sj-ftc a { color: #1E1611; text-decoration: underline; text-decoration-color: #B85C3A; }

/* Medical disclaimer band */
.sj-meddisclaimer {
  background: #E9DFCB; border-left: 3px solid #B85C3A; padding: 14px 18px;
  font-size: 14px; color: #1E1611; margin: 24px 0;
}

/* Evidence chip */
.sj-chip { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; }
.sj-chip--strong { background: #5B7A3D; color: #F8F2E4; }
.sj-chip--moderate { background: #D9B764; color: #1E1611; }
.sj-chip--preliminary { background: #E9DFCB; color: #4A3625; }
.sj-chip--insufficient { background: #B85C3A; color: #F8F2E4; }

/* Sourced-claim citation */
.sj-cite { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.7em; color: #C9A24A; text-decoration: none; vertical-align: super; padding: 0 2px; }
.sj-cite:hover { text-decoration: underline; }

/* Callout */
.sj-callout { border-left: 4px solid #C9A24A; background: #F5EFE0; padding: 20px 24px; margin: 24px 0; }
.sj-callout p:last-child { margin-bottom: 0; }

/* Verdict badge */
.sj-verdict { display: inline-flex; align-items: baseline; gap: 6px; padding: 10px 16px; background: #C9A24A; color: #1E1611; border-radius: 4px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 700; }
.sj-verdict__score { font-size: 24px; line-height: 1; }
.sj-verdict__max { font-size: 14px; opacity: 0.7; }

/* Brand comparison table */
.sj-compare { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.sj-compare th, .sj-compare td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #E9DFCB; }
.sj-compare thead th { background: #2A1E15; color: #F8F2E4; font-family: 'Fraunces', Georgia, serif; font-weight: 600; }
.sj-compare tbody tr:nth-child(even) { background: #E9DFCB; }
.sj-compare tbody tr:hover { background: #F5EFE0; }

/* Image treatments */
.sj-img-resin-wash { position: relative; overflow: hidden; isolation: isolate; }
.sj-img-resin-wash img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sj-img-resin-wash::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42,30,21,0.35) 0%, rgba(42,30,21,0.75) 100%); pointer-events: none; z-index: 1; }
.sj-img-cream-frame { padding: 12px; background: #F5EFE0; border: 1px solid #E9DFCB; border-radius: 4px; box-shadow: 0 2px 6px rgba(30,22,17,0.06); display: inline-block; }
.sj-img-cream-frame img { width: 100%; height: auto; display: block; border-radius: 2px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
