:root {
	--wm-bg: #0d1117;
	--wm-panel: #141b24;
	--wm-panel-muted: #1b2430;
	--wm-border: #273244;
	--wm-text: #e6edf3;
	--wm-text-muted: #b7c6d8;
	--wm-accent: #ffbe0b;
	--wm-accent-strong: #fb5607;
}

body,
h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: Verdana, sans-serif;
}

.whiskey-content-wrapper {
	width: min(1680px, 100%);
	margin: 0 auto;
	padding: 0 16px 20px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.whiskey-content-area {
	display: grid;
	grid-template-columns: minmax(360px, 0.95fr) minmax(520px, 1.05fr);
	gap: 18px;
	align-items: start;
}

.whiskey-content,
.whiskey-div-filler {
	border: 1px solid var(--wm-border);
	border-radius: 14px;
	background: var(--wm-panel);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.whiskey-content {
	padding: 16px;
	position: sticky;
	top: 82px;
}

.source-card {
	color: var(--wm-text);
	display: flex;
	flex-direction: column;
	gap: 12px;
	text-align: left;
}

.source-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
}

.source-pill {
	display: inline-flex;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(255, 190, 11, 0.16);
	color: var(--wm-accent);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.source-meta,
.source-date,
.source-subtitle {
	color: #cbd8e8;
	font-size: 13px;
}

.source-title {
	font-size: 1.6rem;
	line-height: 1.2;
	margin: 0;
	color: var(--wm-text);
}

.source-subtitle-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.source-summary,
.icon-text p {
	margin: 0;
	color: #e6edf3;
	font-size: 14px;
	line-height: 1.45;
}

.icon-text {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.icon-text img {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.source-image-wrap {
	width: 100%;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--wm-border);
	background: var(--wm-panel-muted);
}

.source-image {
	width: 100%;
	max-height: 480px;
	object-fit: cover;
	display: block;
}

.call-to-action {
	display: flex;
	justify-content: flex-start;
}

.cta-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 16px;
	border-radius: 999px;
	background: var(--wm-accent-strong);
	color: #ffffff;
	text-decoration: none;
	font-size: 14px;
	font-weight: 700;
}

.cta-button:hover {
	background: var(--wm-accent);
	color: #111;
}

.whiskey-div-filler {
	padding: 16px 18px;
	background: linear-gradient(180deg, #182131, #131a24);
}

.whiskey-div-filler h1,
.whiskey-div-filler h2,
.whiskey-div-filler h3,
.whiskey-div-filler h4,
.whiskey-div-filler h5,
.whiskey-div-filler h6,
.whiskey-div-filler label,
.whiskey-div-filler summary,
.whiskey-div-filler strong {
	color: #f3f6fa !important;
}

.whiskey-div-filler p,
.whiskey-div-filler .small,
.whiskey-div-filler .text-muted {
	color: #c8d5e5 !important;
}

.whiskey-div-filler a {
	color: var(--wm-accent);
}

.whiskey-div-filler .card {
	background: #ffffff;
	color: #121212;
	border: 1px solid #dde4ed;
	border-radius: 12px;
}

.whiskey-div-filler .card .small,
.whiskey-div-filler .card .text-muted,
.whiskey-div-filler .card p {
	color: #3f4a57 !important;
}

.whiskey-div-filler .card strong,
.whiskey-div-filler .card label {
	color: #1b1e24 !important;
}

.whiskey-div-filler .card h1,
.whiskey-div-filler .card h2,
.whiskey-div-filler .card h3,
.whiskey-div-filler .card h4,
.whiskey-div-filler .card h5,
.whiskey-div-filler .card h6,
.whiskey-div-filler .card .form-label,
.whiskey-div-filler .card summary {
	color: #1b1e24 !important;
}

.whiskey-div-filler .card .small,
.whiskey-div-filler .card .text-muted,
.whiskey-div-filler .card span {
	color: #3f4a57 !important;
}

.whiskey-div-filler > form > h6.text-black {
	color: #d7e2ef !important;
}

.whiskey-div-filler .form-control,
.whiskey-div-filler .form-select {
	background: #fff;
	color: #111;
	border-color: #ccd6e3;
}

.publishing-strategy-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 10px;
	align-items: end;
}

.strategy-field {
	min-width: 0;
}

.strategy-field .form-label {
	font-weight: 600;
}

#platform-targets {
	min-height: 126px;
}

#scheduled-at,
#theme-month {
	min-height: 42px;
}

#scheduled-at::-webkit-calendar-picker-indicator,
#theme-month::-webkit-calendar-picker-indicator {
	opacity: 0.9;
	transform: scale(1.1);
	cursor: pointer;
}

.advanced-options-summary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	border-radius: 8px;
	border: 1px solid #cad6e6;
	background: #f7fafe;
	color: #182233;
	font-weight: 700 !important;
}

.advanced-options-summary:hover {
	background: #eef5ff;
}

.whiskey-div-filler summary.advanced-options-summary {
	color: #182233 !important;
}

/* Fallback: keep details summary readable even if class is missing */
.whiskey-div-filler .card details > summary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	border-radius: 8px;
	border: 1px solid #cad6e6;
	background: #f7fafe;
	color: #182233 !important;
	font-weight: 700 !important;
}

.whiskey-div-filler .card details > summary:hover {
	background: #eef5ff;
}

/* Fallback: robust publish-row layout for older Bootstrap column markup */
.whiskey-div-filler .card .row:has(#publish-mode) {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 12px;
	align-items: end;
}

.whiskey-div-filler .card .row:has(#publish-mode) > [class*="col-"] {
	width: auto;
	max-width: none;
	padding-right: 0;
	padding-left: 0;
}

.whiskey-div-filler .card .row:has(#publish-mode) .form-label {
	font-weight: 600;
}

.whiskey-div-filler .card .row:has(#publish-mode) #theme-month,
.whiskey-div-filler .card .row:has(#publish-mode) #scheduled-at {
	min-height: 42px;
	min-width: 210px;
}

.whiskey-div-filler .form-control::placeholder {
	color: #687587;
}

.whiskey-div-filler .alert {
	background: #fff8e5;
	color: #151515;
	border-color: var(--wm-accent);
}

.whiskey-div-filler .alert strong,
.whiskey-div-filler .alert .small,
.whiskey-div-filler .alert .text-uppercase,
.whiskey-div-filler .alert .fw-bold {
	color: #151515 !important;
}

.whiskey-div-filler .alert a,
.whiskey-div-filler a {
	text-underline-offset: 2px;
}

.whiskey-footer {
	background: #111826;
	border: 1px solid var(--wm-border);
	border-radius: 14px;
	padding: 14px 16px;
}

.social-icons {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.social-icons img,
.footer-logo-icon {
	width: 32px;
	height: 32px;
	border-radius: 999px;
	object-fit: cover;
}

@media (max-width: 1200px) {
	.whiskey-content-area {
		grid-template-columns: 1fr;
	}

	.whiskey-content {
		position: static;
	}
}

@media (max-width: 768px) {
	.whiskey-content-wrapper {
		padding: 0 10px 14px;
	}

	.whiskey-content,
	.whiskey-div-filler,
	.whiskey-footer {
		border-radius: 12px;
	}

	.whiskey-content,
	.whiskey-div-filler {
		padding: 12px;
	}

	.source-title {
		font-size: 1.3rem;
	}

	.source-card-header,
	.source-subtitle-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
	}

	.call-to-action {
		width: 100%;
	}

	.cta-button {
		width: 100%;
	}

	.whiskey-div-filler .card-body {
		padding: 12px;
	}

	.whiskey-div-filler form > .d-flex.justify-content-between.align-items-center,
	.whiskey-div-filler .card .d-flex.justify-content-between.align-items-center {
		flex-wrap: wrap;
		gap: 10px;
		align-items: flex-start !important;
	}

	.whiskey-div-filler form > .d-flex.justify-content-between.align-items-center > .btn,
	.whiskey-div-filler .card .d-flex.justify-content-between.align-items-center > .btn {
		width: 100%;
	}

	.whiskey-div-filler .row {
		row-gap: 10px;
	}

	.whiskey-div-filler details summary {
		line-height: 1.4;
	}

	.publishing-strategy-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	#platform-targets {
		min-height: 110px;
	}

	.whiskey-div-filler .card .row:has(#publish-mode) {
		grid-template-columns: 1fr;
	}

	.whiskey-div-filler .card .row:has(#publish-mode) #theme-month,
	.whiskey-div-filler .card .row:has(#publish-mode) #scheduled-at {
		min-width: 0;
	}

	.source-image {
		max-height: 300px;
	}
}

@media (max-width: 1200px) and (min-width: 769px) {
	.publishing-strategy-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
