/*
Theme Name: Kratom Clean
Description: Editorial theme for a kratom deals, vendor-assessment and lab-results site. Warm paper ground, serif display face, squared geometry. Requires the Kratom Deals Engine plugin.
Version: 2.0.0
Author: Your Team
License: GPL-2.0+
Text Domain: kratom-clean
*/

:root {
	/* --------------------------------------------------------------
	   KRATOM CLEAN — visual identity
	   Warm, botanical, editorial. Deliberately unlike a clinical
	   lab-supply site: paper-toned ground rather than cool white,
	   a serif display face, squared geometry, and rules instead of
	   shadows. Nothing here should read as a recolour of another site.
	   -------------------------------------------------------------- */

	/* Ink & ground — warm, not blue-grey */
	--ink: #1c1a15;
	--ink-soft: #5c5648;
	--ink-faint: #8a8272;
	--paper: #f6f2e9;          /* oat page ground */
	--surface: #fffdf7;        /* card / panel */
	--mist: #ece5d6;           /* tinted fill */
	--line: #d9d0bd;
	--line-strong: #b9ad93;

	/* Botanical primary + clay accent */
	--leaf: #2f5d3a;
	--leaf-deep: #1f4127;
	--leaf-soft: #e6eee4;
	--clay: #a8492a;
	--clay-soft: #f8ece5;
	--gold: #8a6d1f;

	/* Semantic */
	--verify: #2f6b3c;
	--warn: #9a6212;
	--danger: #96331f;

	/* Aliases — the plugin stylesheet and inline styles reference these
	   names. Re-pointed rather than renamed so one identity change
	   propagates everywhere without touching 900 lines of component CSS. */
	--teal: var(--leaf);
	--teal-deep: var(--leaf-deep);
	--amber: var(--clay);
	--amber-soft: var(--clay-soft);

	/* Geometry — squared and ruled, not rounded and shadowed */
	--radius: 3px;
	--radius-lg: 4px;
	--rule: 1px solid var(--line);
	--rule-strong: 2px solid var(--ink);

	/* Type — serif display against a humanist sans */
	--display: "Fraunces", Georgia, "Times New Roman", serif;
	--body: "Public Sans", system-ui, -apple-system, sans-serif;
	--mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

	--wrap: 1160px;
}

* { 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; }
.kr-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 ===== */
.kr-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; }
.kr-disclosure--research { background: var(--mist); border-color: var(--line); color: var(--ink-soft); }
.kr-topbar { background: var(--ink); color: #cfe4e4; font-size: 0.8rem; text-align: center; padding: 0.4rem 1rem; }
.kr-topbar a { color: #9fd6d5; }

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

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

/* ===== Sections & grids ===== */
.kr-home-section { padding: 2.6rem 0 0.6rem; }
.kr-home-section .kr-more { font-weight: 700; text-decoration: none; }
.kr-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); margin: 1.2rem 0; }
.kr-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; }
.kr-card h3 { margin: 0; }
.kr-card h3 a { text-decoration: none; color: var(--ink); }
.kr-card h3 a:hover { color: var(--teal); }
.kr-card .kr-card__meta { font-size: 0.82rem; color: var(--ink-soft); margin-top: auto; }
.kr-card--vendor img.vendor-logo { max-height: 42px; width: auto; align-self: flex-start; }

/* ===== Signature: vial coupon card ===== */
.kr-coupons { display: flex; flex-direction: column; gap: 1.1rem; margin: 1.4rem 0; }
.kr-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); }
.kr-coupon__cap { width: 14px; flex: 0 0 14px; background: linear-gradient(180deg, var(--amber) 0%, #b9741c 100%); }
.kr-coupon__body { padding: 1.1rem 1.3rem; flex: 1; }
.kr-coupon__title { margin: 0.25rem 0; }
.kr-coupon__desc { margin: 0 0 0.6rem; color: var(--ink-soft); font-size: 0.95rem; }
.kr-coupon__labels { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.kr-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; }
.kr-label--warn { background: #fbe9df; color: var(--warn); }
.kr-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; }
.kr-verified { color: var(--verify); }
.kr-coupon__actions { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.kr-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; }
.kr-proof summary { cursor: pointer; font-size: 0.85rem; color: var(--teal); }
.kr-proof img { margin-top: 0.6rem; border: 1px solid var(--line); border-radius: 6px; }
.kr-coupon__feedback { display: flex; gap: 0.6rem; align-items: center; margin-top: 0.9rem; font-size: 0.85rem; color: var(--ink-soft); }

/* ===== Buttons ===== */
.kr-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; }
.kr-btn:hover { background: var(--teal-deep); color: #fff; }
.kr-btn--reveal { background: var(--amber); }
.kr-btn--reveal:hover, .kr-btn--reveal.is-revealed { background: #b9741c; }
.kr-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); }
.kr-mini:hover { border-color: var(--teal); color: var(--teal); }
.kr-report { color: var(--danger); }

/* ===== Sticky best-code bar ===== */
.kr-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; }
.kr-stickybar.is-visible { bottom: 0; }
.kr-stickybar strong { font-family: var(--mono); color: #ffd9a0; }

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

/* ===== Author box ===== */
.kr-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; }
.kr-author img { border-radius: 50%; }
.kr-author__label { margin: 0; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); }
.kr-author__name { margin: 0.1rem 0 0; font-weight: 700; }
.kr-author__role { margin: 0; font-size: 0.85rem; color: var(--ink-soft); }

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

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

/* ===== Interlink boxes ===== */
.kr-interlinks { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 1.4rem 0; }
.kr-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); }
.kr-interlinks a:hover { border-color: var(--teal); color: var(--teal); }
.kr-interlinks a small { display: block; font-weight: 400; color: var(--ink-soft); }

/* ===== Subscribe ===== */
.kr-subscribe { background: var(--mist); border-radius: var(--radius); padding: 1.4rem; }
.kr-subscribe h3 { margin-top: 0; font-size: 1.2rem; }
.kr-rating-summary h3 { margin-top: 0; font-size: 1.2rem; }
.kr-subscribe__form { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.kr-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 ===== */
.kr-faq details { border-bottom: 1px solid var(--line); padding: 0.7rem 0; }
.kr-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 .kr-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 .kr-footnote { border-top: 1px solid #22404d; margin-top: 1.6rem; padding-top: 1.2rem; font-size: 0.8rem; color: #7ea0a0; }

/* ===== Author archive ===== */
.kr-author-hero { display: flex; gap: 1.4rem; align-items: center; padding: 2.4rem 0 1rem; }
.kr-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; }
.kr-comment-rating { color: var(--amber); font-size: 0.95rem; }

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

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

/* ===== Verification proof thumbnail + lightbox ===== */
.kr-shot { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 3px; cursor: zoom-in; display: inline-flex; align-items: center; gap: 6px; }
.kr-shot img { width: 44px; height: 44px; object-fit: cover; border-radius: 4px; display: block; }
.kr-shot span { font-size: 0.75rem; font-weight: 700; color: var(--verify); padding-right: 6px; }
.kr-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; }
.kr-lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; background: #fff; }
.kr-lightbox__close { position: absolute; top: 16px; right: 24px; color: #fff; font-size: 2rem; cursor: pointer; }

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

/* ===== v1.3: boxed coupon-site design ===== */
.kr-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.6rem; box-shadow: 0 1px 3px rgba(16,34,46,0.04); }
.kr-main > .kr-section, .kr-main > .kr-box { margin: 0 0 1.4rem; }
.kr-main .kr-box > h2:first-child, .kr-box > h2:first-child { margin-top: 0; padding-bottom: 0.6rem; border-bottom: 1px solid var(--line); }
.kr-sidebar .kr-box { margin: 0 0 1.2rem; padding: 1.1rem 1.2rem; }
.kr-sidebar .kr-box h2 { font-size: 1.05rem; }
.kr-main .kr-coupons { margin: 1rem 0 0.4rem; }
.kr-main .kr-coupon { box-shadow: none; }

/* Vendor hero card */
.kr-vendor-hero { display: flex; gap: 1.4rem; align-items: center; margin: 1.8rem 0 1.6rem; }
.kr-vendor-hero__logo { flex: 0 0 auto; width: 110px; height: 110px; border: 1px solid var(--line); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; background: #fff; overflow: hidden; }
.kr-vendor-hero__logo img { max-width: 92%; max-height: 92%; object-fit: contain; }
.kr-vendor-hero h1 { margin: 0 0 0.4rem; }
.kr-vendor-hero__lede { margin: 0; color: var(--ink-soft); max-width: 760px; }
@media (max-width: 640px) { .kr-vendor-hero { flex-direction: column; align-items: flex-start; } }

/* Vendor cards: large logo, name, offers, updated */
.kr-vgrid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); margin: 1.2rem 0; }
.kr-vcard { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.35rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1rem 1.2rem; text-decoration: none; color: var(--ink); transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.kr-vcard:hover { border-color: var(--teal); box-shadow: 0 3px 10px rgba(14,124,123,0.12); color: var(--ink); }
.kr-vcard__logo { width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; margin-bottom: 0.4rem; }
.kr-vcard__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.kr-vcard__initial { font-family: var(--display); font-size: 2.4rem; font-weight: 800; color: var(--teal); background: var(--mist); width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.kr-vcard__name { font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.kr-vcard__meta { font-size: 0.85rem; color: var(--teal-deep); font-weight: 600; }
.kr-vcard__meta.kr-muted { color: var(--ink-soft); font-weight: 400; }

/* Popular codes today */
.kr-popular { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin: 1rem 0 1.6rem; }
.kr-popular__item { display: flex; gap: 0.9rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.8rem 1rem; text-decoration: none; color: var(--ink); }
.kr-popular__item:hover { border-color: var(--amber); color: var(--ink); }
.kr-popular__item img { width: 48px; height: 48px; object-fit: contain; border-radius: 6px; flex: 0 0 auto; }
.kr-popular__body { display: flex; flex-direction: column; gap: 0.15rem; }
.kr-popular__body strong { font-size: 0.98rem; line-height: 1.3; }
.kr-popular__body .kr-muted { font-size: 0.82rem; }

/* Activity feed */
.kr-activity { list-style: none; padding: 0; margin: 0.6rem 0; }
.kr-activity li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px dashed var(--line); font-size: 0.94rem; }
.kr-activity li:last-child { border-bottom: 0; }
.kr-activity time { color: var(--ink-soft); font-family: var(--mono); font-size: 0.8rem; white-space: nowrap; }

/* Pros / cons two-up */
.kr-proscons { display: grid; gap: 1.4rem; grid-template-columns: 1fr 1fr; margin: 0 0 1.4rem; }
.kr-pros { border-top: 4px solid var(--verify); }
.kr-cons { border-top: 4px solid var(--warn); }
@media (max-width: 700px) { .kr-proscons { grid-template-columns: 1fr; } }

/* Bottom generic section links */
.kr-section-link { text-align: center; margin: 0.4rem 0 0; }
.kr-section-link a { font-weight: 700; text-decoration: none; }

/* Sidebar stacked interlinks */
.kr-interlinks--stack { grid-template-columns: 1fr; }
.kr-stars-line { font-size: 1.05rem; }
.kr-verdict__score--pending span { color: var(--ink-soft); }

/* ===== v1.5: uniform bordered panels & list cards (SimplyCodes-style) ===== */
.kr-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.7rem; margin: 2rem 0; box-shadow: 0 1px 3px rgba(16,34,46,0.04); }
.kr-panel > h2 { margin-top: 0; padding-bottom: 0.7rem; border-bottom: 1px solid var(--line); }
.kr-panel__desc { margin-top: -0.2rem; }
.kr-lgrid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.kr-lcard { border: 1px solid var(--line); border-radius: 9px; background: #fff; padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.3rem; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.kr-lcard:hover { border-color: var(--teal); box-shadow: 0 3px 10px rgba(14,124,123,0.10); }
.kr-lcard__link { display: flex; flex-direction: column; gap: 0.45rem; text-decoration: none; color: var(--ink); }
.kr-lcard__link:hover { color: var(--teal); }
.kr-lcard__link img, .kr-lcard__logo { width: 48px; height: 48px; object-fit: contain; border-radius: 6px; }
.kr-lcard__initial { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 1.4rem; color: var(--teal); background: var(--mist); border-radius: 50%; }
.kr-lcard__link strong { font-family: var(--display); font-weight: 700; font-size: 1rem; line-height: 1.3; }
.kr-lcard__meta { font-size: 0.84rem; color: var(--ink-soft); }

/* Verification log (activity) */
.kr-verifylog__rows { margin: 0.8rem 0; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.kr-verifylog__row { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 1rem; background: #fff; }
.kr-verifylog__row + .kr-verifylog__row { border-top: 1px solid var(--mist); }
.kr-verifylog__row:nth-child(even) { background: #fbfdfd; }
.kr-verifylog__ico { flex: 0 0 auto; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #e7f5ec; color: var(--verify); font-size: 0.75rem; font-weight: 700; }
.kr-verifylog__msg { font-size: 0.94rem; }
.kr-verifylog__row time { margin-left: auto; padding-left: 1.6rem; color: var(--ink-soft); font-family: var(--mono); font-size: 0.78rem; white-space: nowrap; }

/* Visitor star rating */
.kr-starrate { border-top: 1px solid var(--line); margin-top: 0.9rem; padding-top: 0.9rem; }
.kr-starrate__label { margin: 0 0 0.2rem; font-weight: 600; font-size: 0.92rem; }
.kr-starrate__btns { margin: 0 0 0.3rem; }
.kr-star { background: none; border: 0; font-size: 1.5rem; line-height: 1; color: var(--line); cursor: pointer; padding: 0 0.1rem; transition: color 0.1s ease; }
.kr-star.is-hot, .kr-star:hover { color: var(--amber); }
.kr-starrate__avg { margin: 0; font-size: 0.85rem; }

/* Sidebar vendor logo card */
.kr-sidelogo { text-align: center; }
.kr-sidelogo img { max-height: 90px; width: auto; object-fit: contain; }

/* Page tint so white cards visibly separate from the background */
body.single-kr_vendor, body.single-kr_review { background: #f0f5f6; }
body.single-kr_vendor .site-header, body.single-kr_review .site-header { background: #fff; }
.kr-main > .kr-section, .kr-main > .kr-box { box-shadow: 0 1px 4px rgba(16,34,46,0.06); }

/* ===== v1.6: FAQ accordion, code table, yellow stars, hard section separation ===== */
.kr-acc details { border: 1px solid var(--line); border-radius: 8px; background: #fff; margin: 0 0 0.6rem; }
.kr-acc summary { cursor: pointer; padding: 0.85rem 1rem; font-weight: 600; font-family: var(--display); list-style: none; position: relative; padding-right: 2.2rem; }
.kr-acc summary::-webkit-details-marker { display: none; }
.kr-acc summary::after { content: "+"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); color: var(--teal); font-size: 1.2rem; font-weight: 700; }
.kr-acc details[open] summary::after { content: "–"; }
.kr-acc details[open] summary { border-bottom: 1px solid var(--mist); }
.kr-acc__body { padding: 0.2rem 1rem 0.9rem; }
.kr-acc__body p { margin: 0.6rem 0 0; }

.kr-tablewrap { overflow-x: auto; }
.kr-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.kr-table th, .kr-table td { text-align: left; padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--mist); }
.kr-table thead th { font-family: var(--display); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); border-bottom: 2px solid var(--line); }
.kr-table tbody tr:hover { background: #f7fbfb; }

/* Yellow stars */
.kr-star.is-hot, .kr-star:hover, .kr-star.is-set { color: #f7b500; }
.kr-starrate .kr-verified { color: var(--verify); font-weight: 600; }

/* Hard separation: every content box gets an explicit border + breathing room (kills the blog-post look) */
.kr-box { background: #fff; border: 1px solid var(--line) !important; border-radius: var(--radius); padding: 1.4rem 1.6rem; box-shadow: 0 1px 4px rgba(16,34,46,0.06); }
.kr-main > * + * { margin-top: 1.6rem; }
.kr-sidebar > * + * { margin-top: 1.4rem; }
.kr-verifylog { border: 1px solid var(--line) !important; }

/* ===== Primary-nav dropdown (fallback menu + WP custom menus) ===== */
.site-nav li { position: relative; }
.site-nav .menu-item-has-children > a::after { content: " \25BE"; font-size: .8em; opacity: .7; }
.site-nav .sub-menu {
	position: absolute; top: 100%; left: 0; z-index: 60; min-width: 230px;
	margin: 0; padding: .35rem; list-style: none;
	background: #fff; border: 1px solid var(--line); border-radius: 12px;
	box-shadow: 0 12px 34px rgba(12,40,42,.12);
	opacity: 0; visibility: hidden; transform: translateY(4px);
	transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.site-nav .menu-item-has-children:hover > .sub-menu,
.site-nav .menu-item-has-children:focus-within > .sub-menu {
	opacity: 1; visibility: visible; transform: translateY(0);
}
.site-nav .sub-menu li { display: block; margin: 0; }
.site-nav .sub-menu a {
	display: block; padding: .55rem .7rem; border-radius: 8px;
	white-space: nowrap; font-weight: 600;
}
.site-nav .sub-menu a:hover { background: var(--mist); color: var(--teal-deep); }
@media (max-width: 860px) {
	.site-nav .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none;
		box-shadow: none; border: 0; border-left: 2px solid var(--line);
		border-radius: 0; margin: .2rem 0 .4rem .6rem; min-width: 0;
	}
	.site-nav .menu-item-has-children > a::after { content: ""; }
}

/* =====================  SEARCH RESULTS  ===================== */
.kr-search-again { max-width: 560px; margin-top: 1rem; }

.kr-results {
	list-style: none;
	margin: 1.75rem 0 0;
	padding: 0;
	display: grid;
	gap: 1rem;
}
.kr-result {
	padding: 1.15rem 1.25rem;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	transition: border-color .15s ease, box-shadow .15s ease;
}
.kr-result:hover {
	border-color: var(--teal);
	box-shadow: 0 8px 24px rgba(12,40,42,.08);
}
.kr-result__kind {
	display: inline-block;
	margin-bottom: .4rem;
	padding: .12rem .5rem;
	font-family: var(--display);
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--teal-deep);
	background: var(--mist);
	border-radius: 999px;
}
.kr-result__title {
	margin: 0 0 .35rem;
	font-size: 1.15rem;
	line-height: 1.35;
}
.kr-result__title a { text-decoration: none; }
.kr-result__title a:hover { text-decoration: underline; }
.kr-result__snippet {
	margin: 0 0 .5rem;
	color: var(--ink-soft);
	font-size: .95rem;
}
.kr-result__snippet mark {
	padding: 0 .12em;
	background: var(--amber-soft);
	color: inherit;
	border-radius: 3px;
	font-weight: 600;
}
.kr-result__meta {
	margin: 0;
	font-size: .8rem;
	color: var(--ink-soft);
}
.kr-result__url {
	font-family: var(--mono);
	font-size: .78rem;
	color: var(--teal-deep);
	word-break: break-all;
}

.kr-noresults { margin-top: 1.75rem; }
.kr-noresults ul { margin: .6rem 0 0; padding-left: 1.15rem; }
.kr-noresults li { margin-bottom: .3rem; }

/* ==================================================================
   IDENTITY LAYER
   Structural overrides that make this a different design rather than
   a different palette. Loaded last, so it wins over the base rules
   above without those needing to be unpicked.
   ================================================================== */

/* ---- Typography: serif display, tighter sans body, real hierarchy ---- */
body { font-size: 1.02rem; line-height: 1.7; letter-spacing: 0.005em; }

h1, h2, h3, h4 {
	font-family: var(--display);
	letter-spacing: -0.015em;
	font-optical-sizing: auto;
}
h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 600; line-height: 1.08; }
h2 { font-size: clamp(1.45rem, 2.7vw, 1.95rem); font-weight: 600; line-height: 1.15; margin-top: 2.6rem; }
h3 { font-size: 1.18rem; font-weight: 600; letter-spacing: -0.01em; }

/* Section headings carry a short rule above them — an editorial cue that
   replaces the plain stacked headings of the source theme. */
.kr-section > h2:first-child,
.kr-home-section > h2:first-child {
	position: relative;
	padding-top: 0.85rem;
	margin-top: 2.4rem;
}
.kr-section > h2:first-child::before,
.kr-home-section > h2:first-child::before {
	content: "";
	position: absolute;
	top: 0; left: 0;
	width: 2.4rem; height: 3px;
	background: var(--clay);
}

a { text-underline-offset: 0.18em; text-decoration-thickness: 1px; }

/* ---- Header: solid botanical bar, not a sticky white strip ---- */
.site-header { background: var(--leaf-deep); border-bottom: 0; position: static; }
.site-header .wrap { min-height: 72px; }
.site-brand { color: #fdfaf2; font-weight: 600; font-size: 1.32rem; letter-spacing: -0.02em; }
.site-brand em { color: #d9b877; }
.site-nav a { color: #cfdac9; font-weight: 500; font-size: 0.94rem; letter-spacing: 0.01em; }
.site-nav a:hover { color: #fff; }
.site-nav ul { gap: 1.6rem; }
.kr-topbar { background: var(--ink); color: #d8d2c2; letter-spacing: 0.02em; }
.kr-topbar a { color: #e5c98d; }

/* ---- Hero: flat paper ground, asymmetric, ruled off ---- */
.kr-hero {
	background: var(--paper);
	border-bottom: 2px solid var(--ink);
	padding: 4rem 0 3.2rem;
}
.kr-hero h1 { max-width: 17ch; }
.kr-hero h1 mark { background: none; color: var(--clay); font-style: italic; }
.kr-hero p.lede { font-size: 1.12rem; max-width: 58ch; color: var(--ink-soft); }
.kr-search { border: 2px solid var(--ink); border-radius: 2px; }
.kr-search input { background: var(--surface); }

/* ---- Panels & cards: flat, squared, ruled ---- */
.kr-box, .kr-card, .kr-coupon {
	background: var(--surface);
	border: var(--rule);
	border-radius: var(--radius);
	box-shadow: none;
}
.kr-card {
	border-left: 3px solid var(--line-strong);
	transition: border-left-color .15s ease, background .15s ease;
}
.kr-card:hover { border-left-color: var(--clay); background: #fff; }
.kr-card h3 a:hover { color: var(--leaf); }
.kr-card .kr-card__meta { font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-faint); }

/* ---- The code chip: solid slab with a mono face, not a dashed ticket ---- */
.kr-code {
	background: var(--ink);
	color: #f7f0dc;
	border: 0;
	border-radius: 2px;
	font-family: var(--mono);
	font-weight: 600;
	letter-spacing: 0.14em;
	padding: 0.5rem 1rem;
}
.kr-label {
	background: transparent;
	color: var(--clay);
	border: 1px solid var(--clay);
	border-radius: 2px;
	letter-spacing: 0.09em;
	font-weight: 600;
	font-size: 0.68rem;
}

/* ---- Buttons: squared, tracked, understated ---- */
.kr-btn {
	background: var(--leaf);
	border-radius: 2px;
	font-family: var(--body);
	font-weight: 600;
	font-size: 0.88rem;
	letter-spacing: 0.04em;
	padding: 0.7rem 1.4rem;
	transition: background .15s ease;
}
.kr-btn:hover { background: var(--leaf-deep); }
.kr-btn--reveal { background: var(--clay); }
.kr-btn--reveal:hover, .kr-btn--reveal.is-revealed { background: #8b3a20; }
.kr-btn--sm { padding: 0.42rem 0.9rem; font-size: 0.8rem; }
.kr-mini { border-radius: 2px; background: var(--mist); border-color: var(--line); }
.kr-chip { border-radius: 2px; }

/* ---- Tables: ruled top and bottom only, no boxed grid ---- */
.kr-table thead th {
	border-bottom: 2px solid var(--ink);
	font-family: var(--body);
	font-size: 0.7rem;
	letter-spacing: 0.09em;
	color: var(--ink-faint);
}
.kr-table th, .kr-table td { border-bottom: 1px solid var(--line); }
.kr-section--criteria_table th, .kr-section--criteria_table td,
.kr-compare-table th, .kr-compare-table td {
	border: 0;
	border-bottom: 1px solid var(--line);
}
.kr-section--criteria_table thead th, .kr-compare-table thead th { border-bottom: 2px solid var(--ink); }

/* ---- Disclosures: left-ruled notes rather than tinted rounded boxes ---- */
.kr-disclosure {
	background: transparent;
	border: 0;
	border-left: 3px solid var(--clay);
	border-radius: 0;
	padding: 0.6rem 0 0.6rem 0.95rem;
	color: var(--ink-soft);
	font-size: 0.86rem;
}
.kr-disclosure--research { border-left-color: var(--leaf); }

/* ---- Author block: ruled, not a filled pill ---- */
.kr-author {
	background: transparent;
	border: 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	border-radius: 0;
	padding: 1rem 0;
}
.kr-author img { border-radius: 2px; }

/* ---- Verdict block: heavy top rule, flat ground ---- */
.kr-verdict {
	background: var(--leaf-soft);
	border: 0;
	border-top: 3px solid var(--leaf-deep);
	border-radius: 0;
	padding: 1.4rem 1.5rem;
}
.kr-bar, .kr-bar span { border-radius: 0; }
.kr-bar { background: var(--mist); height: 6px; }
.kr-bar span { background: var(--leaf); }

/* ---- Footer: ink ground, warm text ---- */
.site-footer { background: var(--ink); color: #cfc8b6; margin-top: 4rem; }
.site-footer a { color: #e5c98d; }
.site-footer a:hover { color: #fff; }

/* ---- Focus ring in the accent, squared ---- */
:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; border-radius: 0; }

/* ---- Enhancement-layer geometry: unround everything inherited ---- */
.kr-explorer__card, .kr-biggest__card, .kr-matchup, .kr-matchup__side,
.kr-split__col, .kr-shot, .kr-calc__col, .kr-lab__stats > div,
.kr-strainalk__stats > div, .kr-ti__stat, .kr-legal__stat,
.kr-strainbreak__row, .kr-matcher__result, .kr-tibadge {
	border-radius: var(--radius);
	box-shadow: none;
}
.kr-explorer__card:hover, .kr-biggest__card:hover { transform: none; border-color: var(--clay); }
.kr-explorer__card { border-left: 3px solid var(--line-strong); }
.kr-explorer__card:hover { border-left-color: var(--clay); }
.kr-ti__grade { border-radius: 2px; }
.kr-assay__bar, .kr-assay__bar > span, .kr-ti__bar, .kr-ti__bar > span { border-radius: 0; }
.kr-pill { border-radius: 2px; letter-spacing: 0.04em; }
.kr-explorer__range, .kr-matchup__mit, .kr-biggest__pct { font-family: var(--display); }

/* ---- Reduced-motion and print behave sensibly ---- */
@media print {
	.site-header, .site-footer, .kr-search, .kr-btn { display: none !important; }
	body { background: #fff; }
}
