/* Pure Canna COA Library. Brand values match the site's Elementor global colors. */
.pco-coa {
	--pco-green: #106934;
	--pco-green-dark: #0b4d26;
	--pco-cream: #fffef6;
	--pco-sand: #efeee5;
	--pco-ink: #1d1d1b;
	--pco-muted: #5f5f5a;
	--pco-line: #dedcd0;
	--pco-radius: 12px;
	color: var(--pco-ink);
}

.pco-coa-archive,
.pco-coa-single {
	max-width: 1200px;
	margin: 0 auto;
	padding: 48px 20px 80px;
}
.pco-coa-single { max-width: 1000px; }

.pco-coa-hero { max-width: 720px; margin-bottom: 32px; }
.pco-coa-title {
	font-size: clamp(2rem, 4vw, 2.75rem);
	line-height: 1.1;
	margin: 0 0 12px;
	color: var(--pco-ink);
}
.pco-coa-intro { font-size: 1.0625rem; line-height: 1.6; color: var(--pco-muted); margin: 0; }
.pco-coa-subtitle { margin: 0; color: var(--pco-muted); }

.pco-coa-back { margin: 0 0 16px; font-size: .9375rem; }
.pco-coa-back a { color: var(--pco-green); text-decoration: none; font-weight: 600; }
.pco-coa-back a::before { content: "\2039"; margin-right: 6px; }
.pco-coa-back a:hover { text-decoration: underline; }

/* Toolbar */
.pco-coa-toolbar {
	display: flex; flex-wrap: wrap; gap: 12px 24px;
	align-items: center; justify-content: space-between;
	margin-bottom: 24px;
}
.pco-coa-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pco-coa .pco-coa-chip {
	appearance: none; cursor: pointer;
	border: 1px solid var(--pco-line); background: #fff; color: var(--pco-ink);
	border-radius: 999px; padding: 8px 16px; font: inherit; font-size: .9375rem; line-height: 1.2;
	transition: background .15s, border-color .15s, color .15s;
}
.pco-coa .pco-coa-chip:hover { border-color: var(--pco-green); color: var(--pco-green); background: #fff; }
.pco-coa .pco-coa-chip.is-active { background: var(--pco-green); border-color: var(--pco-green); color: #fff; }
.pco-coa .pco-coa-search input[type="search"] {
	width: 280px; max-width: 100%;
	border: 1px solid var(--pco-line); border-radius: 999px; padding: 9px 16px;
	font: inherit; font-size: .9375rem; background: #fff;
}
.pco-coa .pco-coa-search input[type="search"]:focus { outline: 2px solid var(--pco-green); outline-offset: 1px; }

/* Grid */
.pco-coa-grid {
	list-style: none; margin: 0; padding: 0;
	display: grid; gap: 24px;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.pco-coa-card {
	display: flex; flex-direction: column; margin: 0;
	background: #fff; border: 1px solid var(--pco-line); border-radius: var(--pco-radius);
	overflow: hidden; transition: box-shadow .2s, transform .2s;
}
.pco-coa-card:hover { box-shadow: 0 10px 30px rgba(16, 105, 52, .12); transform: translateY(-2px); }
.pco-coa-card[hidden] { display: none; }
.pco-coa-card-thumb {
	display: block; aspect-ratio: 4 / 3; overflow: hidden;
	background: var(--pco-sand); border-bottom: 1px solid var(--pco-line);
}
.pco-coa-card-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.pco-coa-thumb-fallback {
	display: flex; align-items: center; justify-content: center; height: 100%;
	font-weight: 700; letter-spacing: .08em; color: var(--pco-green);
}
.pco-coa-card-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.pco-coa-card-cat {
	font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	color: var(--pco-green); text-decoration: none;
}
.pco-coa-card-title { font-size: 1.125rem; line-height: 1.3; margin: 0; }
.pco-coa-card-title a { color: var(--pco-ink); text-decoration: none; }
.pco-coa-card-title a:hover { color: var(--pco-green); }

.pco-coa-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; font-size: .875rem; }
.pco-coa-meta div { display: flex; gap: 6px; }
.pco-coa-meta dt { color: var(--pco-muted); font-weight: 400; margin: 0; }
.pco-coa-meta dd { margin: 0; font-weight: 600; }

.pco-coa-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.pco-coa a.pco-coa-btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 9px 18px; border-radius: 999px; border: 1px solid var(--pco-green);
	background: var(--pco-green); color: #fff; text-decoration: none;
	font-size: .9375rem; font-weight: 600; line-height: 1.2;
	transition: background .15s, color .15s;
}
.pco-coa a.pco-coa-btn:hover { background: var(--pco-green-dark); border-color: var(--pco-green-dark); color: #fff; }
.pco-coa a.pco-coa-btn-ghost { background: transparent; color: var(--pco-green); }
.pco-coa a.pco-coa-btn-ghost:hover { background: var(--pco-green); color: #fff; }

.pco-coa-noresults, .pco-coa-empty { color: var(--pco-muted); padding: 24px 0; }

/* Single */
.pco-coa-single-head {
	display: flex; flex-wrap: wrap; gap: 16px 24px;
	align-items: flex-end; justify-content: space-between; margin-bottom: 24px;
}
.pco-coa-single-head .pco-coa-actions { margin: 0; padding: 0; }
.pco-coa-single-heading .pco-coa-title { margin: 4px 0 4px; }

.pco-coa-facts {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0;
	margin: 0 0 32px; background: var(--pco-cream);
	border: 1px solid var(--pco-line); border-radius: var(--pco-radius); overflow: hidden;
}
.pco-coa-facts > div { padding: 14px 18px; box-shadow: 0 0 0 .5px var(--pco-line); }
.pco-coa-facts .pco-coa-facts-wide { grid-column: 1 / -1; }
.pco-coa-facts dt { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--pco-muted); margin: 0 0 4px; }
.pco-coa-facts dd { margin: 0; font-weight: 600; }
.pco-coa-facts dd a { color: var(--pco-green); }

.pco-coa-content { margin-bottom: 32px; line-height: 1.6; }

.pco-coa-document { display: grid; gap: 24px; }
.pco-coa-page { margin: 0; }
.pco-coa-page a { display: block; }
.pco-coa-page img {
	display: block; width: 100%; height: auto;
	border: 1px solid var(--pco-line); border-radius: 8px; background: #fff;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .06);
}
.pco-coa-page figcaption { text-align: center; font-size: .875rem; color: var(--pco-muted); margin-top: 8px; }
.pco-coa-pdf { width: 100%; height: 85vh; min-height: 600px; border: 1px solid var(--pco-line); border-radius: 8px; }

/* Product tab */
.pco-coa-product-intro { color: var(--pco-muted); }
.pco-coa-product .pco-coa-product-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.pco-coa-product-item {
	display: flex; gap: 16px; align-items: center; margin: 0;
	border: 1px solid var(--pco-line); border-radius: var(--pco-radius); padding: 12px; background: #fff;
}
.pco-coa-product-thumb { flex: 0 0 72px; width: 72px; height: 92px; overflow: hidden; border-radius: 6px; background: var(--pco-sand); }
.pco-coa-product-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.pco-coa-product-body { display: flex; flex-direction: column; gap: 4px; }
.pco-coa-product-body strong a { color: var(--pco-ink); text-decoration: none; }
.pco-coa-product-meta { font-size: .875rem; color: var(--pco-muted); }
.pco-coa-product-body .pco-coa-actions { padding-top: 4px; }
.pco-coa-product-all a { color: var(--pco-green); font-weight: 600; }
.pco-coa-meta-link { display: block; margin-top: 8px; }
.pco-coa-meta-link a { color: #106934; font-weight: 600; }

@media (max-width: 600px) {
	.pco-coa-archive, .pco-coa-single { padding: 32px 16px 56px; }
	.pco-coa-search, .pco-coa .pco-coa-search input[type="search"] { width: 100%; }
	.pco-coa-grid { grid-template-columns: 1fr; gap: 16px; }
	.pco-coa-card-thumb { aspect-ratio: 16 / 9; }
	.pco-coa .pco-coa-search input[type="search"] { width: 100%; }
}
