/* =====================================================================
   JFFD Shorts Script Engine — front-end styles  ("Press Kit" direction)
   Scoped under .jffd-sg so nothing leaks into the host WordPress theme.
   Brand: JustFoodForDogs design system. One accent (Crisp Gold), gold
   rationed to graphic punctuation only. No aqua. No gradients/glass.
   ===================================================================== */

/* ---------- Self-hosted brand fonts (JFFD-licensed, served from plugin) ---------- */
@font-face {
	font-family: "Helvetica Now Display";
	src: url("../fonts/HelveticaNowDisplay-Regular.ttf") format("truetype");
	font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
	font-family: "Helvetica Now Display";
	src: url("../fonts/HelveticaNowDisplay-Medium.ttf") format("truetype");
	font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
	font-family: "Helvetica Now Display";
	src: url("../fonts/HelveticaNowDisplay-Bold.otf") format("opentype");
	font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
	font-family: "Helvetica Now Display";
	src: url("../fonts/HelveticaNowDisplay-Black.otf") format("opentype");
	font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
	font-family: "Helvetica Now Text";
	src: url("../fonts/HelveticaNowText-Bold.ttf") format("truetype");
	font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Scoped tokens ---------- */
.jffd-sg {
	--mid: #07272D;
	--kale: #003B49;
	--bone: #F5F7F9;
	--white: #FFFFFF;
	--off: #D0D3D4;
	--off-25: rgba(208, 211, 212, 0.25);
	--gold: #C1A01F;
	--gold-shade: #A08629;

	--fg: #003B49;
	--fg-strong: #07272D;
	--fg-muted: #4A6771;
	--fg-on-dark: #FFFFFF;

	--border: rgba(0, 59, 73, 0.15);
	--focus-ring: rgba(193, 160, 31, 0.30);

	--shadow-soft: 0 3px 13px -1px rgba(0, 0, 0, 0.15);
	--shadow-hover: 0 6px 18px -2px rgba(0, 0, 0, 0.18);
	--shadow-button: 0 2px 8px rgba(0, 59, 73, 0.18);

	--r-xs: 4px;
	--r-sm: 7px;
	--r-md: 14px;
	--r-pill: 999px;

	--ease: cubic-bezier(0.2, 0.8, 0.2, 1);
	--t-micro: 150ms;
	--t-base: 240ms;
	--t-enter: 400ms;

	--maxw: 1080px;
	--gutter: 32px;

	--font-display: "Helvetica Now Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--font-text: "Helvetica Now Text", "Helvetica Now Display", "Helvetica Neue", Arial, sans-serif;

	max-width: var(--maxw);
	margin: 0 auto;
	background: var(--bone);
	border-radius: var(--r-md);
	box-shadow: var(--shadow-soft);
	isolation: isolate;
	font-family: var(--font-display);
	color: var(--fg);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
.jffd-sg *,
.jffd-sg *::before,
.jffd-sg *::after { box-sizing: border-box; }

.jffd-sg__sr {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}

/* ---------- Header band (Midnight, gold-sealed) ---------- */
.jffd-sg__header {
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: 96px;
	padding: 20px var(--gutter);
	background: var(--mid);
	border-radius: var(--r-md) var(--r-md) 0 0;
	border-bottom: 2px solid var(--gold);
}
.jffd-sg__logo {
	height: 24px;
	width: auto;
	display: block;
	flex: 0 0 auto;
}
.jffd-sg__rule {
	width: 1px;
	align-self: stretch;
	max-height: 30px;
	margin: auto 0;
	background: var(--off-25);
	flex: 0 0 auto;
}
.jffd-sg__eyebrow {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 13px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--off);
}

/* ---------- Body ---------- */
.jffd-sg__body { padding: clamp(24px, 4vw, 40px) var(--gutter) 40px; }

.jffd-sg__intro { margin-bottom: 28px; }
.jffd-sg__title {
	display: flex;
	align-items: baseline;
	gap: 14px;
	font-family: var(--font-display);
	font-weight: 900;
	font-size: clamp(34px, 4vw, 52px);
	line-height: 1.04;
	letter-spacing: -0.01em;
	color: var(--mid);
	margin: 0;
}
.jffd-sg__tick {
	width: 10px; height: 10px;
	border-radius: var(--r-pill);
	background: var(--gold);
	flex: 0 0 auto;
	transform: translateY(-2px);
}
.jffd-sg__sub {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 18px;
	color: var(--fg-muted);
	margin: 12px 0 0;
	max-width: 60ch;
}

.jffd-sg__notice {
	margin-bottom: 18px;
	padding: 12px 16px;
	border-radius: var(--r-sm);
	font-size: 14px;
}
.jffd-sg__notice--warn {
	background: var(--off-25);
	color: var(--mid);
	border: 1px solid var(--border);
}

/* ---------- Form card ---------- */
.jffd-sg__form {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--r-md);
	padding: clamp(20px, 3vw, 32px);
	box-shadow: var(--shadow-soft);
}
.jffd-sg__field { margin-bottom: 24px; }
.jffd-sg__field:last-child { margin-bottom: 0; }
.jffd-sg__field > label,
.jffd-sg__toggle > span {
	display: block;
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 14px;
	color: var(--mid);
	margin-bottom: 8px;
}
.jffd-sg__req { color: var(--kale); }
.jffd-sg__field small {
	display: block;
	font-size: 13px;
	color: var(--fg-muted);
	margin-top: 6px;
}
.jffd-sg input[type="text"],
.jffd-sg input[type="url"],
.jffd-sg select,
.jffd-sg textarea {
	width: 100%;
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 16px;
	color: var(--kale);
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--r-sm);
	padding: 12px 14px;
	transition: border-color var(--t-micro) var(--ease), box-shadow var(--t-micro) var(--ease);
}
.jffd-sg textarea { resize: vertical; line-height: 1.5; }
.jffd-sg ::placeholder { color: var(--fg-muted); opacity: 1; }
.jffd-sg input:focus-visible,
.jffd-sg select:focus-visible,
.jffd-sg textarea:focus-visible,
.jffd-sg input:focus,
.jffd-sg select:focus,
.jffd-sg textarea:focus {
	outline: none;
	border-color: var(--gold);
	box-shadow: 0 0 0 3px var(--focus-ring);
}
.jffd-sg select {
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23003B49' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 40px;
}

/* ---------- Product toggle block ---------- */
.jffd-sg__product {
	background: var(--off-25);
	border: 1px solid var(--border);
	border-radius: var(--r-sm);
	padding: 18px;
	margin-bottom: 24px;
}
.jffd-sg__toggle {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	cursor: pointer;
}
.jffd-sg__toggle input {
	margin-top: 2px;
	width: 20px; height: 20px;
	accent-color: var(--kale);
	flex: 0 0 auto;
}
.jffd-sg__toggle > span {
	margin-bottom: 0;
	font-weight: 500;
	color: var(--mid);
}
.jffd-sg__product-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 16px;
	transition: opacity var(--t-base) var(--ease);
}
.jffd-sg__product-fields.is-dim {
	opacity: 0.55;
	pointer-events: none;
}

/* ---------- Keyword-cluster combobox ---------- */
.jffd-sg__combo { position: relative; }
.jffd-sg__combo-input { padding-right: 38px !important; }
.jffd-sg__combo-clear {
	position: absolute; top: 0; right: 0; height: 100%;
	width: 36px; border: none; background: transparent;
	font-size: 20px; line-height: 1; color: var(--fg-muted); cursor: pointer;
}
.jffd-sg__combo-clear:hover { color: var(--mid); }
.jffd-sg__combo-list {
	position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 5;
	max-height: 320px; overflow-y: auto;
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--r-sm);
	box-shadow: var(--shadow-soft);
}
.jffd-sg__combo-opt {
	display: grid;
	grid-template-columns: 1fr auto auto;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	cursor: pointer;
	border-bottom: 1px solid var(--border);
}
.jffd-sg__combo-opt:last-child { border-bottom: none; }
.jffd-sg__combo-opt:hover,
.jffd-sg__combo-opt.is-active { background: var(--off-25); }
.jffd-sg__combo-opt .co-name { font-family: var(--font-display); font-weight: 500; font-size: 14.5px; color: var(--mid); }
.jffd-sg__combo-opt .co-tag {
	font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
	color: var(--kale); border: 1px solid var(--border); border-radius: var(--r-pill);
	padding: 1px 7px; margin-left: 6px; vertical-align: middle;
}
.jffd-sg__combo-opt .co-meta { font-size: 12px; color: var(--fg-muted); white-space: nowrap; }
.jffd-sg__combo-opt .co-vol {
	font-family: var(--font-display); font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums;
	color: var(--mid); background: var(--off-25); border-radius: var(--r-pill); padding: 3px 10px; min-width: 44px; text-align: right;
}
.jffd-sg__combo-empty { padding: 14px; font-size: 14px; color: var(--fg-muted); }

.jffd-sg__link {
	background: none; border: none; padding: 0; cursor: pointer;
	font-family: var(--font-display); font-weight: 500; font-size: 13px;
	color: var(--kale); text-decoration: underline; text-underline-offset: 2px;
}
.jffd-sg__link:hover { color: var(--mid); }

.jffd-sg__addcluster {
	margin-top: 12px; padding: 16px;
	background: var(--off-25); border: 1px solid var(--border); border-radius: var(--r-sm);
	display: flex; flex-direction: column; gap: 10px;
}
.jffd-sg__addcluster .jffd-sg__btn { align-self: flex-start; font-size: 14px; padding: 10px 22px; }
.jffd-sg__addnote { font-size: 13px; color: var(--fg-muted); }

.jffd-sg__loadnote {
	margin-top: 8px; font-size: 13px; font-weight: 500; color: var(--gold-shade);
}

/* ---------- Content queue ---------- */
.jffd-sg__queue {
	margin-top: 20px;
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--r-md);
	box-shadow: var(--shadow-soft);
	overflow: hidden;
}
.jffd-sg__queue > summary {
	list-style: none;
	cursor: pointer;
	user-select: none;
	padding: 16px 20px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.jffd-sg__queue > summary::-webkit-details-marker { display: none; }
.jffd-sg__queue > summary::before {
	content: "";
	width: 8px; height: 8px;
	border-right: 2px solid var(--kale);
	border-bottom: 2px solid var(--kale);
	transform: rotate(-45deg);
	transition: transform var(--t-base) var(--ease);
	flex: 0 0 auto;
}
.jffd-sg__queue[open] > summary::before { transform: rotate(45deg); }
.jffd-sg__queue-label {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--mid);
}
.jffd-sg__queue-count { font-family: var(--font-display); font-weight: 500; font-size: 13px; color: var(--fg-muted); }
.jffd-sg__queue-body { padding: 0 20px 8px; }
.jffd-sg__queue-empty { font-size: 14px; color: var(--fg-muted); padding: 4px 0 16px; }

.jffd-sg__qrow {
	display: grid;
	grid-template-columns: 1fr auto auto;
	align-items: center;
	gap: 14px;
	padding: 13px 0;
	border-top: 1px solid var(--border);
}
.jffd-sg__qmain { min-width: 0; }
.jffd-sg__qtitle {
	display: block;
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 15px;
	color: var(--kale);
	text-decoration: none;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
a.jffd-sg__qtitle:hover { text-decoration: underline; text-underline-offset: 2px; }
.jffd-sg__qmeta { display: block; font-size: 12.5px; color: var(--fg-muted); margin-top: 3px; }
.jffd-sg__qstatus {
	width: auto !important;
	font-size: 13px !important;
	padding: 7px 30px 7px 12px !important;
	background-position: right 10px center !important;
}
.jffd-sg__qremove {
	border: none; background: transparent; cursor: pointer;
	font-size: 20px; line-height: 1; color: var(--fg-muted);
	width: 32px; height: 32px; border-radius: var(--r-pill);
	flex: 0 0 auto;
	transition: background var(--t-micro) var(--ease), color var(--t-micro) var(--ease);
}
.jffd-sg__qremove:hover { background: var(--off-25); color: var(--jffd-alert, #CA3725); }

@media (max-width: 640px) {
	.jffd-sg__qrow { grid-template-columns: 1fr auto; grid-template-areas: "main remove" "status status"; }
	.jffd-sg__qmain { grid-area: main; }
	.jffd-sg__qremove { grid-area: remove; }
	.jffd-sg__qstatus { grid-area: status; width: 100% !important; }
}

/* ---------- Google Doc link in export bar ---------- */
.jffd-sg__gdoc-link { display: inline-flex; align-items: center; font-size: 14px; color: var(--white); }
.jffd-sg__gdoc-link a { color: var(--white); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Advanced (<details>) ---------- */
.jffd-sg__adv {
	border-top: 1px solid var(--border);
	margin-top: 4px;
	padding-top: 18px;
	margin-bottom: 24px;
}
.jffd-sg__adv summary {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 14px;
	color: var(--mid);
	cursor: pointer;
	list-style: none;
	user-select: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.jffd-sg__adv summary::-webkit-details-marker { display: none; }
.jffd-sg__adv summary::before {
	content: "";
	width: 8px; height: 8px;
	border-right: 2px solid var(--kale);
	border-bottom: 2px solid var(--kale);
	transform: rotate(-45deg);
	transition: transform var(--t-base) var(--ease);
}
.jffd-sg__adv[open] summary::before { transform: rotate(45deg); }
.jffd-sg__adv-inner {
	margin-top: 16px;
	padding: 18px;
	background: var(--off-25);
	border-radius: var(--r-sm);
}
.jffd-sg__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
	margin-bottom: 16px;
}

/* ---------- Buttons ---------- */
.jffd-sg__actions {
	display: flex;
	gap: 12px;
	margin-top: 48px;
	flex-wrap: wrap;
}
.jffd-sg__btn {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 16px;
	border: none;
	border-radius: var(--r-pill);
	padding: 16px 32px;
	cursor: pointer;
	transition: background var(--t-base) var(--ease), transform 120ms var(--ease),
		box-shadow var(--t-base) var(--ease), color var(--t-base) var(--ease);
}
.jffd-sg__btn:active { transform: scale(0.98); }
.jffd-sg__btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--focus-ring); }
.jffd-sg__btn--primary {
	position: relative;
	overflow: hidden;
	background: var(--gold);
	color: var(--mid);
	box-shadow: var(--shadow-button);
}
.jffd-sg__btn--primary:hover { background: var(--gold-shade); transform: translateY(-1px); }
.jffd-sg__btn--primary:disabled { cursor: progress; transform: none; }
/* Gold-on-gold ring is invisible; give the primary pill a Midnight focus ring. */
.jffd-sg__btn--primary:focus-visible { box-shadow: var(--shadow-button), 0 0 0 2px var(--bone), 0 0 0 4px var(--mid); }
.jffd-sg__btn--primary.is-working::after {
	content: "";
	position: absolute;
	left: 0; bottom: 0;
	height: 2px; width: 100%;
	background: var(--mid);
	transform-origin: left center;
	animation: jffd-sweep 1.1s var(--ease) infinite;
}
@keyframes jffd-sweep {
	0% { transform: scaleX(0); transform-origin: left center; }
	50% { transform: scaleX(1); transform-origin: left center; }
	51% { transform: scaleX(1); transform-origin: right center; }
	100% { transform: scaleX(0); transform-origin: right center; }
}
.jffd-sg__btn--ghost {
	background: transparent;
	color: var(--kale);
	box-shadow: inset 0 0 0 1.5px var(--kale);
}
.jffd-sg__btn--ghost:hover { background: var(--kale); color: var(--white); }

/* ---------- Error status ---------- */
.jffd-sg__status {
	margin-top: 24px;
	padding: 16px 18px;
	border-radius: var(--r-sm);
	font-size: 15px;
	background: #fbe9e7;
	color: #8a2418;
	border: 1px solid rgba(202, 55, 37, 0.3);
}

/* ---------- Results ---------- */
.jffd-sg__results { margin-top: 48px; }
.jffd-sg__results-label {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--mid);
	margin: 0 0 16px;
}
/* Results section label carries no gold dot — gold stays rationed to card titles + the H1 tick. */

.jffd-sg__export {
	position: sticky;
	top: var(--jffd-sticky-top, 0px);
	z-index: 3;
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	padding: 14px 18px;
	margin-bottom: 16px;
	background: var(--kale);
	border-radius: var(--r-md);
	box-shadow: var(--shadow-soft);
}
.jffd-sg__export .jffd-sg__btn { font-size: 14px; padding: 11px 22px; }
.jffd-sg__export .jffd-sg__btn--ghost { color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.7); }
.jffd-sg__export .jffd-sg__btn--ghost:hover { background: var(--white); color: var(--kale); }
.jffd-sg__export .jffd-sg__btn--fill { background: var(--white); color: var(--kale); box-shadow: none; }
.jffd-sg__export .jffd-sg__btn--fill:hover { background: var(--off); }

.jffd-sg__card {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--r-md);
	padding: 22px;
	margin-bottom: 16px;
	box-shadow: var(--shadow-soft);
}
.jffd-sg__card--enter { animation: jffd-rise var(--t-enter) var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes jffd-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.jffd-sg__card--interactive { transition: box-shadow var(--t-base) var(--ease), transform var(--t-base) var(--ease); }
.jffd-sg__card--interactive:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }

.jffd-sg__card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}
.jffd-sg__card-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--mid);
	margin: 0;
}
.jffd-sg__card-title .dot {
	width: 9px; height: 9px;
	border-radius: var(--r-pill);
	background: var(--gold);
	flex: 0 0 auto;
}
.jffd-sg__card-title .dot.is-pulse { animation: jffd-pulse var(--t-micro) var(--ease); }
@keyframes jffd-pulse { 0% { transform: scale(1); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }

/* Copy button */
.jffd-sg__copy {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 13px;
	color: var(--kale);
	background: transparent;
	border: 1.5px solid var(--kale);
	border-radius: var(--r-pill);
	padding: 6px 16px;
	cursor: pointer;
	white-space: nowrap;
	transition: background var(--t-micro) var(--ease), color var(--t-micro) var(--ease);
}
.jffd-sg__copy:hover { background: var(--kale); color: var(--white); }
.jffd-sg__copy:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--focus-ring); }
.jffd-sg__copy.is-done { background: var(--kale); color: var(--white); }

/* Headline */
.jffd-sg__title-main {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 24px;
	line-height: 1.2;
	color: var(--mid);
	letter-spacing: -0.01em;
}
.jffd-sg__alts { margin: 14px 0 0; padding: 0; list-style: none; }
.jffd-sg__alts li {
	font-size: 14px;
	color: var(--fg-muted);
	padding: 8px 0;
	border-top: 1px solid var(--border);
}

/* AEO */
.jffd-sg__aeo-q {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 16px;
	color: var(--kale);
	margin: 0 0 8px;
}
.jffd-sg__aeo-a {
	font-family: var(--font-text);
	font-size: 15.5px;
	line-height: 1.55;
	color: var(--mid);
	border-left: 3px solid var(--kale);
	padding-left: 14px;
}

/* Voiceover script */
.jffd-sg__script {
	font-family: var(--font-text);
	font-size: 16px;
	line-height: 1.6;
	color: var(--kale);
	white-space: pre-wrap;
}
.jffd-sg__meta-row {
	display: flex; gap: 10px; flex-wrap: wrap;
	margin-top: 14px; padding-top: 14px;
	border-top: 1px solid var(--border);
}
.jffd-sg__chip {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	color: var(--mid);
	background: var(--off-25);
	border: 1px solid var(--border);
	border-radius: var(--r-pill);
	padding: 5px 14px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.jffd-sg__chip.is-good::before {
	content: "";
	width: 7px; height: 7px;
	border-radius: var(--r-pill);
	background: var(--gold);
}
.jffd-sg__chip.is-good { border-color: var(--gold); }

/* Storyboard table */
.jffd-sg__table-wrap { position: relative; overflow-x: auto; border-radius: var(--r-sm); }
.jffd-sg__table { width: 100%; border-collapse: collapse; font-size: 14px; }
.jffd-sg__table th {
	text-align: left;
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--fg-muted);
	background: var(--off-25);
	padding: 10px 12px;
	white-space: nowrap;
}
.jffd-sg__table td {
	padding: 11px 12px;
	border-bottom: 1px solid var(--border);
	vertical-align: top;
	line-height: 1.45;
	color: var(--mid);
}
.jffd-sg__table td.tc { font-family: var(--font-display); font-weight: 500; color: var(--kale); white-space: nowrap; font-variant-numeric: tabular-nums; }
.jffd-sg__table td.osd { color: var(--kale); font-weight: 500; }
.jffd-sg__table td.broll { color: var(--fg-muted); }

/* Description */
.jffd-sg__desc { font-family: var(--font-text); font-size: 15px; line-height: 1.6; color: var(--mid); white-space: pre-wrap; }
.jffd-sg__desc a { color: var(--kale); font-weight: 700; word-break: break-all; }

/* Tags / hashtags — Blue Kale outline pills (NO aqua, NO gold fill) */
.jffd-sg__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.jffd-sg__tag {
	font-size: 13px;
	color: var(--kale);
	background: transparent;
	border: 1px solid var(--kale);
	border-radius: var(--r-pill);
	padding: 5px 13px;
}

/* Recommended product */
.jffd-sg__product-rec { display: flex; flex-direction: column; gap: 6px; }
.jffd-sg__product-rec .name { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--mid); }
.jffd-sg__product-rec .why { font-family: var(--font-text); font-size: 14.5px; color: var(--fg-muted); }
.jffd-sg__product-rec a { color: var(--kale); font-weight: 500; word-break: break-all; }

/* Keyword coverage */
.jffd-sg__cov { margin: 0; padding: 0; list-style: none; }
.jffd-sg__cov li {
	display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap;
	padding: 11px 0; border-bottom: 1px solid var(--border);
}
.jffd-sg__cov li:last-child { border-bottom: none; }
.jffd-sg__cov .kw { font-family: var(--font-display); font-weight: 500; color: var(--kale); min-width: 160px; flex: 1 1 160px; }
.jffd-sg__cov .count {
	font-family: var(--font-display); font-weight: 700; font-size: 12px; font-variant-numeric: tabular-nums;
	color: var(--mid); background: var(--gold);
	border-radius: var(--r-pill); padding: 2px 9px; flex: 0 0 auto;
}
.jffd-sg__cov .pl { display: flex; gap: 6px; flex-wrap: wrap; flex: 2 1 240px; }
.jffd-sg__cov .pl .place {
	font-size: 12px; color: var(--kale);
	border: 1px solid var(--border); border-radius: var(--r-pill); padding: 3px 10px;
}

/* Brand voice check */
.jffd-sg__voice { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.jffd-sg__voice li { display: flex; gap: 10px; background: var(--bone); border-radius: var(--r-sm); padding: 12px 14px; font-size: 14px; }
.jffd-sg__voice .check {
	width: 16px; height: 9px; flex: 0 0 auto; margin-top: 4px;
	border-left: 2px solid var(--kale); border-bottom: 2px solid var(--kale);
	transform: rotate(-45deg);
}
.jffd-sg__voice .lab { display: block; font-family: var(--font-display); font-weight: 500; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--kale); margin-bottom: 4px; }
.jffd-sg__voice .val { font-family: var(--font-text); color: var(--mid); }

/* Production notes */
.jffd-sg__production {
	font-family: var(--font-text);
	font-size: 14.5px; line-height: 1.55; color: var(--mid);
	background: var(--off-25); border-radius: var(--r-sm); padding: 14px 16px;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
	.jffd-sg__product-fields { grid-template-columns: 1fr; }
	.jffd-sg__voice { grid-template-columns: 1fr; }
	.jffd-sg__body { padding: 24px 20px 32px; }
	.jffd-sg__header { padding: 18px 20px; min-height: 80px; }
	.jffd-sg__card { padding: 18px; }
	/* edge-fade so clipped storyboard columns are discoverable */
	/* Storyboard scrolls horizontally via native overflow; no gradient scrim (brand: no gradients). */
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.jffd-sg *,
	.jffd-sg *::before,
	.jffd-sg *::after {
		animation: none !important;
		transition: none !important;
	}
	.jffd-sg__btn--primary.is-working::after { animation: none; transform: scaleX(1); }
	.jffd-sg__card--enter { opacity: 1; transform: none; }
}
