/*
Theme Name: Operations Workspace
Theme URI: https://example.com/operations-workspace
Author: Operations Workspace
Description: A clean WordPress theme foundation for the dark-store operations platform.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: operations-workspace
*/

/* Operations Workspace brand foundation */
:root {
	--bops-purple: #5B3CC4;
	--bops-cyan: #16B8D4;
	--bops-white: #FFFFFF;
	--bops-light-grey: #F5F6FA;
	--bops-charcoal: #25263A;
	--bops-success: #168A50;
	--bops-warning: #B96B00;
	--bops-danger: #D92D35;
	--bops-info: #1684C7;
	--bops-border: #E7E8EF;
	--bops-muted: #74768A;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bops-light-grey);
	color: var(--bops-charcoal);
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.6;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--bops-purple);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover {
	color: #482DA8;
}

button,
input,
select,
textarea {
	font: inherit;
}

button,
input[type="submit"] {
	cursor: pointer;
}

:focus-visible {
	outline: 3px solid rgba(22, 184, 212, .55);
	outline-offset: 2px;
}

.site-header {
	position: relative;
	z-index: 2;
	background: var(--bops-white);
	border-bottom: 1px solid var(--bops-border);
}

.site-header-inner {
	display: flex;
	width: min(1180px, calc(100% - 40px));
	min-height: 72px;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	margin: 0 auto;
}

.site-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--bops-charcoal);
	font-size: 19px;
	font-weight: 700;
	text-decoration: none;
	letter-spacing: -.35px;
}

.site-brand:hover {
	color: var(--bops-purple);
}

.site-brand-mark {
	display: grid;
	width: 32px;
	height: 32px;
	place-items: center;
	border-radius: 9px;
	background: var(--bops-purple);
	color: var(--bops-white);
	font-size: 17px;
}

.site-brand strong {
	color: var(--bops-purple);
	font-weight: 600;
}

.site-brand .custom-logo {
	display: block;
	width: auto;
	max-height: 42px;
}

.site-navigation {
	display: flex;
	align-items: center;
}

.site-menu,
.site-menu ul {
	display: flex;
	align-items: center;
	gap: 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-menu a {
	color: #55576B;
	font-size: 14px;
	font-weight: 550;
	text-decoration: none;
}

.site-menu a:hover,
.site-menu .current-menu-item > a {
	color: var(--bops-purple);
}

.site-main {
	width: min(1180px, calc(100% - 40px));
	min-height: 60vh;
	margin: 0 auto;
	padding: 44px 0 64px;
}

.site-main > article,
.site-main > .entry-content,
.site-main > .not-found {
	padding: clamp(22px, 4vw, 42px);
	border: 1px solid var(--bops-border);
	border-radius: 14px;
	background: var(--bops-white);
}

.entry-title {
	margin: 0 0 20px;
	font-size: clamp(28px, 4vw, 42px);
	line-height: 1.15;
	letter-spacing: -.8px;
}

.entry-content > :first-child {
	margin-top: 0;
}

.entry-content > :last-child {
	margin-bottom: 0;
}

.entry-content h2,
.entry-content h3 {
	color: var(--bops-charcoal);
	line-height: 1.25;
}

.entry-content blockquote {
	margin: 24px 0;
	padding: 12px 20px;
	border-left: 4px solid var(--bops-cyan);
	color: var(--bops-muted);
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
}

.entry-content th,
.entry-content td {
	padding: 10px 12px;
	border: 1px solid var(--bops-border);
	text-align: left;
}

.entry-content th {
	background: var(--bops-light-grey);
}

.entry-content .wp-block-button__link,
input[type="submit"] {
	display: inline-block;
	padding: 10px 18px;
	border: 0;
	border-radius: 8px;
	background: var(--bops-purple);
	color: var(--bops-white);
	text-decoration: none;
}

.entry-content .wp-block-button__link:hover,
input[type="submit"]:hover {
	background: #482DA8;
}

.site-footer {
	padding: 22px 20px;
	border-top: 1px solid var(--bops-border);
	background: var(--bops-white);
	color: var(--bops-muted);
	font-size: 13px;
	text-align: center;
}

.site-footer p {
	margin: 0;
}

/* The Operations App page template gives the dashboard the full viewport. */
body.operations-app-page {
	min-height: 100vh;
	background: var(--bops-light-grey);
}

body.operations-app-page .app-template-main {
	width: 100%;
	max-width: none;
	min-height: 100vh;
	margin: 0;
	padding: 0;
}

body.operations-app-page .app-template-main > * {
	margin-top: 0;
	margin-bottom: 0;
}

@media (max-width: 700px) {
	.site-header-inner {
		width: min(100% - 28px, 1180px);
		min-height: 62px;
		gap: 14px;
	}

	.site-navigation {
		max-width: 58%;
		overflow-x: auto;
	}

	.site-menu {
		gap: 14px;
		white-space: nowrap;
	}

	.site-menu a {
		font-size: 12px;
	}

	.site-main {
		width: min(100% - 28px, 1180px);
		padding: 26px 0 40px;
	}
}

