/*
Theme Name: OwnCalculate
Version: 0.3.0-rc1
Text Domain: owncalculate
Requires PHP: 8.2
License: GPL-2.0-or-later
*/

:root {
	--oc-blue: #2563eb;
	--oc-blue-hover: #1d4ed8;
	--oc-blue-dark: #1e40af;
	--oc-blue-pale: #eff6ff;
	--oc-ink: #111827;
	--oc-muted: #4b5563;
	--oc-paper: #ffffff;
	--oc-surface: #ffffff;
	--oc-subtle: #f3f4f6;
	--oc-border: #d1d5db;
--oc-border-strong: #6b7280;
	--oc-success: #166534;
	--oc-notice: #fffbeb;
	--oc-notice-border: #d6a63a;
	--oc-radius-sm: 0.5rem;
	--oc-radius: 0.75rem;
	--oc-radius-lg: 1rem;
	--oc-content-width: 74rem;
	--oc-reading-width: 48rem;
	--oc-font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--oc-font-display: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--oc-focus-ring: 0 0 0 3px var(--oc-paper), 0 0 0 6px var(--oc-blue);
	color-scheme: light;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 6rem;
}

body {
	min-width: 20rem;
	min-height: 100vh;
	margin: 0;
	background: var(--oc-paper);
	color: var(--oc-ink);
	font-family: var(--oc-font-body);
	font-size: 1rem;
	line-height: 1.6;
overflow-wrap: anywhere;
	-webkit-font-smoothing: antialiased;
}

body,
button,
input,
select,
textarea {
	font-family: var(--oc-font-body);
}

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

a {
	color: var(--oc-blue-dark);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--oc-blue-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid var(--oc-blue);
	outline-offset: 3px;
	border-radius: 0.2rem;
}

button,
input,
select,
textarea {
	color: inherit;
	font-size: 1rem;
}

button {
	cursor: pointer;
}

::selection {
	background: #bfdbfe;
	color: var(--oc-ink);
}

.oc-wrap {
	width: min(var(--oc-content-width), calc(100% - 3rem));
	margin-inline: auto;
}

.skip-link,
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus,
.screen-reader-text:focus {
	z-index: 1000;
	top: 0.75rem;
	left: 0.75rem;
	width: auto;
	height: auto;
	padding: 0.75rem 1rem;
	margin: 0;
	clip: auto;
	overflow: visible;
	border-radius: var(--oc-radius-sm);
	background: var(--oc-ink);
	color: var(--oc-paper);
	font-weight: 700;
	text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.7em;
	color: var(--oc-ink);
	font-family: var(--oc-font-display);
	font-weight: 700;
	line-height: 1.2;
	text-wrap: balance;
}

h1 {
	font-size: clamp(1.875rem, 4.5vw, 3rem);
	letter-spacing: -0.04em;
}

h2 {
	font-size: clamp(1.5rem, 3.2vw, 2.25rem);
	letter-spacing: -0.03em;
}

h3 {
	font-size: clamp(1.2rem, 2.2vw, 1.5rem);
	letter-spacing: -0.02em;
}

p {
	margin: 0 0 1.2em;
}

.oc-site-header {
	position: relative;
	z-index: 20;
	border-bottom: 1px solid var(--oc-border);
	background: var(--oc-paper);
}

.oc-site-header > .oc-wrap {
	display: flex;
flex-wrap: wrap;
	min-height: 5rem;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
	padding-block: 0.55rem;
}

.oc-brand {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 0.55rem;
	color: var(--oc-ink);
	font-family: var(--oc-font-display);
	font-size: clamp(1.1rem, 2vw, 1.3rem);
	font-weight: 750;
	letter-spacing: -0.04em;
	text-decoration: none;
}

.oc-brand::before {
	width: 0.65rem;
	height: 0.65rem;
	border-radius: 0.15rem;
	background: var(--oc-blue);
	content: "";
}

.oc-nav {
	display: flex;
	min-width: 0;
	align-items: center;
	justify-content: flex-end;
	gap: 1rem;
}

.oc-menu {
	display: flex;
flex-wrap: wrap;
	align-items: center;
	gap: clamp(0.65rem, 1.8vw, 1.4rem);
	padding: 0;
	margin: 0;
	list-style: none;
}

.oc-menu > li {
	position: relative;
}

.oc-menu a {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	padding: 0.35rem 0.15rem;
	color: var(--oc-ink);
	font-size: 0.94rem;
	font-weight: 600;
	text-decoration: none;
}

.oc-menu a:hover,
.oc-menu .current-menu-item > a,
.oc-menu .current_page_item > a {
	color: var(--oc-blue);
}

.oc-menu .sub-menu {
	position: absolute;
	top: calc(100% - 0.05rem);
	left: -0.75rem;
	z-index: 5;
	display: block;
	min-width: 13rem;
	padding: 0.45rem;
	margin: 0;
	border: 1px solid var(--oc-border);
	border-radius: var(--oc-radius-sm);
	background: var(--oc-surface);
	list-style: none;
	visibility: hidden;
}

.oc-menu li:hover > .sub-menu,
.oc-menu li:focus-within > .sub-menu {
	visibility: visible;
}

.oc-menu .sub-menu a {
	width: 100%;
	min-height: 2.75rem;
	padding: 0.55rem 0.7rem;
	border-radius: 0.35rem;
}

.oc-menu .sub-menu a:hover,
.oc-menu .sub-menu a:focus-visible {
	background: var(--oc-blue-pale);
}

.oc-menu .sub-menu .sub-menu {
top: 0;
left: 100%;
}

.oc-brand-domain {
color: var(--oc-blue);
}

.oc-menu-toggle {
	display: none;
	min-width: 2.75rem;
	min-height: 2.75rem;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--oc-border-strong);
	border-radius: var(--oc-radius-sm);
	background: var(--oc-surface);
	color: var(--oc-ink);
	font-size: 0.9rem;
	font-weight: 700;
}

.oc-nav-enhanced .oc-menu-toggle::before {
	width: 1.05rem;
	height: 2px;
	margin-right: 0.45rem;
	background: var(--oc-ink);
	content: "";
}

.oc-hero {
	position: relative;
	padding: clamp(2.75rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 4rem);
	background: var(--oc-blue-pale);
}

.oc-hero > .oc-wrap {
	position: relative;
	z-index: 1;
}

.oc-hero h1 {
	max-width: 18ch;
	margin-bottom: 0.9rem;
}

.oc-hero p {
	max-width: 43rem;
	color: var(--oc-muted);
	font-size: clamp(1rem, 1.7vw, 1.15rem);
}

.oc-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	margin-bottom: 0.8rem;
	color: var(--oc-blue-dark);
	font-size: 0.76rem;
	font-weight: 750;
	letter-spacing: 0.1em;
	line-height: 1.3;
	text-transform: uppercase;
}

.oc-eyebrow::before {
	width: 1.2rem;
	height: 2px;
	background: currentColor;
	content: "";
}

.oc-search,
.search-form {
	display: flex;
	width: min(100%, 43rem);
	min-width: 0;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.55rem;
	margin-top: 1.5rem;
	padding: 0.55rem;
	border: 1px solid var(--oc-border);
	border-radius: var(--oc-radius);
	background: var(--oc-surface);
}

.oc-search label,
.search-form label {
	display: flex;
	min-width: 0;
	flex: 1 1 14rem;
	align-items: center;
}

.oc-search input[type="search"],
.oc-search input[type="text"],
.search-form input[type="search"],
.search-form input[type="text"] {
	width: 100%;
	min-width: 0;
	min-height: 2.75rem;
	padding: 0.55rem 0.75rem;
	border: 1px solid var(--oc-border-strong);
	border-radius: var(--oc-radius-sm);
	background: var(--oc-paper);
	color: var(--oc-ink);
	font-size: 1rem;
}

.oc-search input::placeholder,
.search-form input::placeholder {
	color: var(--oc-muted);
	opacity: 1;
}

.oc-search input:focus-visible,
.search-form input:focus-visible,
.oc-search select:focus-visible {
	outline: 3px solid var(--oc-blue);
	outline-offset: 1px;
}

.oc-search select,
.search-form select {
	min-width: 0;
	min-height: 2.75rem;
	flex: 0 1 auto;
	padding: 0.5rem 2rem 0.5rem 0.7rem;
	border: 1px solid var(--oc-border-strong);
	border-radius: var(--oc-radius-sm);
	background-color: var(--oc-paper);
	color: var(--oc-ink);
	font-size: 1rem;
}

.oc-search button,
.oc-search input[type="submit"],
.search-form button,
.search-form input[type="submit"],
.search-form .search-submit {
	display: inline-flex;
	min-height: 2.75rem;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	padding: 0.55rem 1rem;
	border: 1px solid var(--oc-blue);
	border-radius: var(--oc-radius-sm);
	background: var(--oc-blue);
	color: var(--oc-paper);
	font-size: 1rem;
	font-weight: 700;
}

.oc-search button:hover,
.oc-search input[type="submit"]:hover,
.search-form button:hover,
.search-form input[type="submit"]:hover,
.search-form .search-submit:hover {
	border-color: var(--oc-blue-hover);
	background: var(--oc-blue-hover);
}

.oc-section {
	padding-block: clamp(2.75rem, 6vw, 4.5rem);
}

.oc-section + .oc-section {
	padding-top: 0;
}

.oc-section > .oc-wrap > h2,
.oc-section > .oc-wrap > .oc-section-heading {
	margin-bottom: 1.35rem;
}

.oc-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.oc-card {
	position: relative;
	display: flex;
	min-height: 10rem;
	min-width: 0;
	flex-direction: column;
	align-items: flex-start;
	padding: clamp(1.1rem, 2.3vw, 1.5rem);
	border: 1px solid var(--oc-border);
	border-radius: var(--oc-radius);
	background: var(--oc-surface);
	color: var(--oc-ink);
	text-decoration: none;
}

a.oc-card:hover {
	border-color: var(--oc-blue);
	background: var(--oc-blue-pale);
	color: var(--oc-ink);
}

.oc-card h2,
.oc-card h3,
.oc-card .oc-card-title {
	margin-bottom: 0.5rem;
	color: var(--oc-ink);
	font-family: var(--oc-font-display);
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.3;
}

.oc-card p {
	margin-bottom: 0;
	color: var(--oc-muted);
	font-size: 0.94rem;
}

.oc-empty {
	padding: clamp(1.25rem, 3vw, 2rem);
	border: 1px dashed var(--oc-border-strong);
	border-radius: var(--oc-radius);
	background: var(--oc-subtle);
	color: var(--oc-muted);
}

.oc-empty > :last-child {
	margin-bottom: 0;
}

.oc-empty h2,
.oc-empty h3 {
	color: var(--oc-ink);
}

.oc-notice {
	padding: 1rem 1.15rem;
	border: 1px solid var(--oc-notice-border);
	border-left: 4px solid #a16207;
	border-radius: var(--oc-radius-sm);
	background: var(--oc-notice);
	color: #713f12;
}

.oc-notice > :last-child {
	margin-bottom: 0;
}

.oc-article {
	width: min(100%, var(--oc-reading-width));
	margin-inline: auto;
	padding-block: clamp(2.25rem, 5vw, 4rem);
}

.oc-article > :first-child {
	margin-top: 0;
}

.oc-article p,
.oc-article li {
	color: #374151;
}

.oc-article h2,
.oc-article h3 {
	margin-top: 1.8em;
}

.oc-article blockquote {
	margin: 1.8rem 0;
	padding: 0.8rem 1.25rem;
	border-left: 3px solid var(--oc-blue);
	background: var(--oc-blue-pale);
	color: var(--oc-ink);
}

.oc-article table {
	width: 100%;
	border-collapse: collapse;
}

.oc-article th,
.oc-article td {
	padding: 0.75rem;
	border: 1px solid var(--oc-border);
	text-align: left;
}

.oc-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1rem;
	margin: 0 0 1.4rem;
	color: var(--oc-muted);
	font-size: 0.88rem;
}

.oc-category-list,
.oc-footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	padding: 0;
	margin: 0;
	list-style: none;
}

.oc-category-list a {
	display: inline-flex;
	min-height: 2.75rem;
	align-items: center;
	padding: 0.45rem 0.85rem;
	border: 1px solid var(--oc-border);
	border-radius: 999px;
	background: var(--oc-blue-pale);
	color: var(--oc-blue-dark);
	font-size: 0.9rem;
	font-weight: 650;
	text-decoration: none;
}

.oc-category-list a:hover {
	border-color: var(--oc-blue);
	background: var(--oc-blue);
	color: var(--oc-paper);
}

.oc-site-footer {
	margin-top: clamp(2rem, 5vw, 4rem);
	padding-block: 2rem;
	border-top: 1px solid var(--oc-border);
	background: var(--oc-subtle);
}

.oc-site-footer > .oc-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 1.5rem;
}

.oc-site-footer .oc-brand {
	font-size: 1.05rem;
}

.oc-footer-links a {
	display: inline-flex;
	min-height: 2.75rem;
	align-items: center;
	padding-inline: 0.35rem;
	color: var(--oc-muted);
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
}

.oc-footer-links a:hover {
	color: var(--oc-blue-dark);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.oc-site-footer p {
	margin: 0;
	color: var(--oc-muted);
	font-size: 0.86rem;
}

.oc-footer-identity {
flex: 1 1 18rem;
}

.oc-footer-identity .oc-brand {
margin-bottom: 0.5rem;
}

.oc-footer-copyright {
flex-basis: 100%;
}

/* Shared presentation only: these selectors do not create calculator controls. */
.oc-button,
.oc-calculator button {
display: inline-flex;
min-height: 2.75rem;
align-items: center;
justify-content: center;
padding: 0.6rem 1.1rem;
border: 1px solid var(--oc-blue);
border-radius: var(--oc-radius-sm);
background: var(--oc-blue);
color: var(--oc-paper);
font: inherit;
font-weight: 700;
text-decoration: none;
}

.oc-button:hover,
.oc-calculator button:hover {
background: var(--oc-blue-hover);
color: var(--oc-paper);
}

.oc-calculator input,
.oc-calculator select,
.oc-calculator textarea {
width: 100%;
max-width: 100%;
min-height: 2.75rem;
padding: 0.65rem 0.75rem;
border: 1px solid var(--oc-border-strong);
border-radius: var(--oc-radius-sm);
background: var(--oc-paper);
color: var(--oc-ink);
font: inherit;
font-size: 1rem;
}

.oc-calculator label {
display: block;
margin-bottom: 0.4rem;
font-weight: 600;
}

.oc-calculator [aria-invalid="true"] {
border-color: #b91c1c;
}

.oc-button:disabled,
.oc-calculator button:disabled {
background: var(--oc-subtle);
border-color: var(--oc-border-strong);
color: var(--oc-muted);
cursor: not-allowed;
}

.oc-result {
padding: 1.25rem;
border: 1px solid var(--oc-border);
border-left: 4px solid var(--oc-blue);
border-radius: var(--oc-radius);
background: var(--oc-blue-pale);
color: var(--oc-ink);
font-variant-numeric: tabular-nums;
}

.alignwide {
	max-width: 64rem;
	margin-inline: auto;
}

.alignfull {
	width: 100%;
	max-width: none;
}

.wp-caption,
.gallery-caption {
	color: var(--oc-muted);
	font-size: 0.9rem;
}

.wp-caption img {
	display: block;
}

.wp-block-button__link {
	display: inline-flex;
	min-height: 2.75rem;
	align-items: center;
	justify-content: center;
	padding: 0.6rem 1.1rem;
	border: 1px solid var(--oc-blue);
	border-radius: var(--oc-radius-sm);
	background: var(--oc-blue);
	color: var(--oc-paper);
	font-weight: 700;
	text-decoration: none;
}

.wp-block-button__link:hover {
	border-color: var(--oc-blue-hover);
	background: var(--oc-blue-hover);
	color: var(--oc-paper);
}

@media (max-width: 58rem) {
	.oc-site-header > .oc-wrap {
		min-height: 4.75rem;
		flex-wrap: wrap;
		gap: 0.5rem 1rem;
		padding-block: 0.65rem;
	}

	.oc-nav {
		gap: 0.6rem;
	}

	.oc-menu {
		gap: 0.5rem;
	}

	.oc-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 46rem) {
	.oc-wrap {
		width: min(var(--oc-content-width), calc(100% - 2rem));
	}

	.oc-site-header > .oc-wrap {
		justify-content: space-between;
	}

	.oc-nav {
		width: 100%;
		justify-content: flex-start;
	}

	.oc-menu {
		flex-wrap: wrap;
		gap: 0.2rem 0.7rem;
	}

	.oc-nav-enhanced .oc-nav {
		display: block;
		width: 100%;
	}

	.oc-nav-enhanced .oc-nav[hidden] {
		display: none;
	}

	.oc-nav-enhanced .oc-nav:not([hidden]) {
		padding: 0.25rem 0 0.5rem;
	}

	.oc-nav-enhanced .oc-menu {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		flex-wrap: nowrap;
		gap: 0.1rem;
		padding: 0.35rem;
		border: 1px solid var(--oc-border);
		border-radius: var(--oc-radius);
		background: var(--oc-surface);
	}

	.oc-nav-enhanced .oc-menu a {
		width: 100%;
		min-height: 2.75rem;
		padding: 0.55rem 0.75rem;
		border-radius: 0.4rem;
		font-size: 0.95rem;
	}

	.oc-nav-enhanced .oc-menu a:hover,
	.oc-nav-enhanced .oc-menu a:focus-visible {
		background: var(--oc-blue-pale);
	}

	.oc-menu .sub-menu,
.oc-nav-enhanced .oc-menu .sub-menu,
.oc-menu .sub-menu .sub-menu {
		position: static;
		display: block;
		min-width: 0;
		padding: 0 0 0 0.9rem;
		border: 0;
		background: transparent;
		visibility: visible;
	}

	.oc-nav-enhanced .oc-menu .sub-menu a {
		color: var(--oc-muted);
	}

	.oc-menu-toggle {
		order: 2;
	}

	.oc-nav-enhanced .oc-menu-toggle {
		display: inline-flex;
	}

	.oc-nav-enhanced .oc-nav {
		order: 3;
	}

	.oc-hero {
		padding-block: 2.75rem 2.5rem;
	}

	.oc-search,
	.search-form {
		align-items: stretch;
		flex-direction: column;
	}

	.oc-search label,
	.search-form label {
		width: 100%;
		flex: 1 1 auto;
	}

	.oc-search select,
	.search-form select,
	.oc-search button,
	.oc-search input[type="submit"],
	.search-form button,
	.search-form input[type="submit"],
	.search-form .search-submit {
		width: 100%;
		max-width: 100%;
	}

	.oc-site-footer > .oc-wrap {
		align-items: flex-start;
		flex-direction: column;
		gap: 1rem;
	}

.oc-footer-identity,
.oc-footer-copyright {
flex-basis: auto;
}
}

@media (max-width: 34rem) {
	.oc-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.oc-card {
		min-height: auto;
	}

	.oc-section {
		padding-block: 2.75rem;
	}

	.oc-section + .oc-section {
		padding-top: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

@media (forced-colors: active) {
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
outline: 3px solid Highlight;
}
}

/* Batch 2: native home presentation. */
.oc-home {
	--oc-home-space: clamp(2.5rem, 5vw, 4rem);
}

.oc-home-hero {
	padding: clamp(2.75rem, 6vw, 4.75rem) 1.5rem clamp(2.5rem, 5vw, 4rem);
	border-bottom: 1px solid var(--oc-border);
	background: linear-gradient(180deg, var(--oc-blue-pale) 0, var(--oc-paper) 78%);
	text-align: center;
}

.oc-home-hero-content {
	width: min(100%, 54rem);
	margin-inline: auto;
}

.oc-home-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 0.9rem;
	color: var(--oc-blue-dark);
	font-size: 0.76rem;
	font-weight: 750;
	letter-spacing: 0.1em;
	line-height: 1.35;
	text-transform: uppercase;
}

.oc-home-eyebrow::before {
	width: 1.15rem;
	height: 2px;
	background: currentColor;
	content: "";
}

.oc-home-hero h1 {
	max-width: 22ch;
	margin: 0 auto 0.85rem;
	font-size: clamp(2rem, 5vw, 3.35rem);
	letter-spacing: -0.045em;
}

.oc-home-hero-content > p:not(.oc-home-eyebrow) {
	max-width: 42rem;
	margin: 0 auto;
	color: var(--oc-muted);
	font-size: clamp(1rem, 1.7vw, 1.12rem);
}

.oc-home-hero .oc-search,
.oc-home-hero .search-form {
	display: grid;
	width: min(100%, 49rem);
	grid-template-columns: minmax(0, 1fr) auto minmax(9rem, auto) auto;
	align-items: center;
	gap: 0.5rem;
	margin: 1.65rem auto 0;
	padding: 0.55rem;
	border-color: #b9c8df;
	box-shadow: 0 0.5rem 1.5rem rgb(17 24 39 / 7%);
	text-align: left;
}

.oc-home-hero .oc-search > label:first-child,
.oc-home-hero .search-form > label:first-child {
	grid-column: 1 / -1;
	flex: initial;
	padding: 0 0.15rem;
	color: var(--oc-ink);
	font-size: 0.88rem;
	font-weight: 650;
}

.oc-home-hero .oc-search > input[type="search"],
.oc-home-hero .oc-search > input[type="text"],
.oc-home-hero .search-form > input[type="search"],
.oc-home-hero .search-form > input[type="text"] {
	grid-column: 1;
}

.oc-home-hero .oc-search > label:nth-of-type(2),
.oc-home-hero .search-form > label:nth-of-type(2) {
	flex: initial;
	color: var(--oc-muted);
	font-size: 0.88rem;
	font-weight: 600;
	white-space: nowrap;
}

.oc-home-hero .oc-search > select,
.oc-home-hero .search-form > select {
	max-width: 100%;
}

.oc-home-hero .oc-search > button,
.oc-home-hero .oc-search > input[type="submit"],
.oc-home-hero .search-form > button,
.oc-home-hero .search-form > input[type="submit"],
.oc-home-hero .search-form > .search-submit {
	white-space: nowrap;
}

.oc-home-categories,
.oc-home-inventory,
.oc-home #owncalculate-latest-articles {
	width: min(var(--oc-content-width), calc(100% - 3rem));
	margin-inline: auto;
}

.oc-home-categories {
	padding-block: var(--oc-home-space);
}

.oc-home-categories > h2,
.oc-home-inventory > h2,
.oc-home #owncalculate-latest-articles > h2 {
	margin-bottom: 0.55rem;
	font-size: clamp(1.5rem, 3vw, 2rem);
}

.oc-home-categories > .oc-section-intro,
.oc-home-inventory > .oc-section-intro {
	max-width: 45rem;
	margin-bottom: 1.4rem;
	color: var(--oc-muted);
}

.oc-category-navigation {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.75rem;
	padding: 0;
	margin: 0;
	list-style: none;
}

.oc-category-navigation > li {
	min-width: 0;
}

.oc-category-tile {
	display: flex;
	min-height: 4.15rem;
	min-width: 0;
	align-items: center;
	justify-content: space-between;
	gap: 0.6rem;
	padding: 0.8rem 1rem;
	border: 1px solid var(--oc-border);
	border-radius: var(--oc-radius);
	background: var(--oc-surface);
	color: var(--oc-ink);
	text-decoration: none;
	transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

a.oc-category-tile:hover {
	transform: translateY(-2px);
	border-color: var(--oc-blue);
	background: var(--oc-blue-pale);
	color: var(--oc-ink);
}

.oc-category-name {
	min-width: 0;
	font-weight: 650;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.oc-category-action {
	flex: 0 0 auto;
	color: var(--oc-blue-dark);
	font-size: 0.82rem;
	font-weight: 650;
	white-space: nowrap;
}

.oc-category-unavailable {
	border-style: dashed;
	background: var(--oc-subtle);
	color: var(--oc-muted);
}

.oc-category-unavailable .oc-category-action {
	color: var(--oc-muted);
}

.oc-home-inventory {
	padding-block: 0 var(--oc-home-space);
	scroll-margin-top: 1.5rem;
}

.oc-home-empty {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: start;
	gap: 0.35rem 0.85rem;
	padding: clamp(1.25rem, 3vw, 1.8rem);
	border: 1px solid var(--oc-border);
	border-radius: var(--oc-radius);
	background: var(--oc-subtle);
}

.oc-home-empty .oc-status-dot {
	width: 0.62rem;
	height: 0.62rem;
	margin-top: 0.48rem;
	border-radius: 50%;
	background: var(--oc-blue);
	box-shadow: 0 0 0 0.25rem var(--oc-blue-pale);
}

.oc-home-empty h3 {
	margin: 0 0 0.35rem;
	font-size: 1.05rem;
	letter-spacing: -0.01em;
}

.oc-home-empty p {
	grid-column: 2;
	max-width: 55rem;
	margin: 0;
	color: var(--oc-muted);
}

.oc-calculator-group {
	padding-top: 1.65rem;
	margin-top: 1.65rem;
	border-top: 1px solid var(--oc-border);
}

.oc-calculator-group > h3 {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem 0.65rem;
	margin-bottom: 0.9rem;
	font-size: 1.2rem;
}

.oc-home > .oc-home-inventory {
padding-top: var(--oc-home-space);
}

.oc-calculator-group > h3 > a {
display: inline-flex;
min-height: 2.75rem;
align-items: center;
color: var(--oc-ink);
text-decoration: underline;
text-decoration-color: var(--oc-border-strong);
text-underline-offset: 0.2em;
}

.oc-calculator-group > h3 > a:hover {
color: var(--oc-blue-dark);
text-decoration-color: currentColor;
}

.oc-group-count {
	color: var(--oc-muted);
	font-size: 0.82rem;
	font-weight: 550;
	letter-spacing: 0;
}

.oc-home .oc-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.85rem;
}

.oc-home-inventory .oc-calculator-card {
	min-height: 8.4rem;
	padding: 1.15rem;
	transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.oc-home-inventory .oc-calculator-card:hover {
	transform: translateY(-2px);
}

.oc-home-inventory .oc-calculator-card h4 {
	margin: 0 0 0.55rem;
	font-size: 1.06rem;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.oc-home-inventory .oc-calculator-card h4 a {
display: inline-block;
min-height: 2.75rem;
	color: var(--oc-ink);
	text-decoration: none;
}

.oc-home-inventory .oc-calculator-card h4 a:hover {
	color: var(--oc-blue-dark);
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.oc-home-inventory .oc-calculator-card .oc-calculator-card-category {
	margin: auto 0 0;
	color: var(--oc-muted);
	font-size: 0.84rem;
}

.oc-home #owncalculate-latest-articles {
	padding-block: 0 var(--oc-home-space);
}

.oc-home #owncalculate-latest-articles .oc-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 58rem) {
	.oc-home .oc-grid,
	.oc-home #owncalculate-latest-articles .oc-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 46rem) {
	.oc-home-hero {
		padding-inline: 1rem;
	}

	.oc-home-hero .oc-search,
	.oc-home-hero .search-form {
		grid-template-columns: minmax(0, 1fr);
		align-items: stretch;
	}

	.oc-home-hero .oc-search > label:first-child,
	.oc-home-hero .search-form > label:first-child,
	.oc-home-hero .oc-search > input[type="search"],
	.oc-home-hero .oc-search > input[type="text"],
	.oc-home-hero .search-form > input[type="search"],
	.oc-home-hero .search-form > input[type="text"],
	.oc-home-hero .oc-search > label:nth-of-type(2),
	.oc-home-hero .search-form > label:nth-of-type(2),
	.oc-home-hero .oc-search > select,
	.oc-home-hero .search-form > select,
	.oc-home-hero .oc-search > button,
	.oc-home-hero .oc-search > input[type="submit"],
	.oc-home-hero .search-form > button,
	.oc-home-hero .search-form > input[type="submit"],
	.oc-home-hero .search-form > .search-submit {
		grid-column: 1;
		width: 100%;
	}

	.oc-home-hero .oc-search > label:nth-of-type(2),
	.oc-home-hero .search-form > label:nth-of-type(2) {
		margin-top: 0.25rem;
	}

	.oc-home-categories,
	.oc-home-inventory,
	.oc-home #owncalculate-latest-articles {
		width: min(var(--oc-content-width), calc(100% - 2rem));
	}

	.oc-category-navigation {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 34rem) {
	.oc-home .oc-grid,
	.oc-home #owncalculate-latest-articles .oc-grid,
	.oc-category-navigation {
		grid-template-columns: minmax(0, 1fr);
	}

	.oc-category-tile {
		min-height: 3.7rem;
	}

.oc-home-inventory .oc-calculator-card {
		min-height: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.oc-category-tile,
.oc-home-inventory .oc-calculator-card {
		transition: none;
	}
}

/* OwnCalculate identity: a calm, legible frame around everyday answers. */
:root {
	--oc-blue: #176fe5;
	--oc-blue-hover: #0f5fc9;
	--oc-blue-dark: #15477f;
	--oc-blue-pale: #edf6ff;
	--oc-ink: #142b49;
	--oc-muted: #53677f;
	--oc-paper: #fbfdff;
	--oc-surface: #ffffff;
	--oc-subtle: #f3f8fd;
	--oc-border: #d6e3f0;
	--oc-border-strong: #8298b2;
	--oc-focus-ring: 0 0 0 3px var(--oc-paper), 0 0 0 6px var(--oc-blue);
}

.oc-site-header {
	border-bottom-color: #dce8f4;
	background: rgb(251 253 255 / 96%);
}

.oc-site-header > .oc-wrap {
	min-height: 5.25rem;
}

.oc-brand {
	gap: 0;
}

.oc-brand::before {
	display: none;
	content: none;
}

.oc-brand-wordmark {
	display: block;
	width: clamp(11.5rem, 23vw, 15.5rem);
	height: auto;
}

.oc-menu-toggle {
	border-color: var(--oc-border);
}

.oc-home-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding-block: clamp(3.5rem, 8vw, 6.25rem) clamp(3.1rem, 6vw, 4.75rem);
	border-bottom: 1px solid #d9e8f7;
	background:
		radial-gradient(ellipse at 50% -24%, rgb(255 255 255 / 96%) 0 28%, transparent 70%),
		linear-gradient(180deg, #edf6ff 0%, #f7fbff 72%, #fbfdff 100%);
}

.oc-home-hero::before,
.oc-home-hero::after {
	position: absolute;
	z-index: -1;
	pointer-events: none;
	content: "";
}

.oc-home-hero::before {
	inset: auto -8% -5.5rem;
	height: 10rem;
	border: 1px solid rgb(74 143 214 / 13%);
	border-radius: 50% 50% 0 0 / 68% 68% 0 0;
	background: rgb(218 237 255 / 25%);
	transform: rotate(-2deg);
}

.oc-home-hero::after {
	top: 2.1rem;
	right: max(5vw, calc((100vw - var(--oc-content-width)) / 2));
	width: 5.5rem;
	height: 5.5rem;
	border: 1px solid rgb(57 127 199 / 14%);
	border-radius: 1.35rem;
	background:
		linear-gradient(90deg, transparent 48%, rgb(57 127 199 / 11%) 49% 51%, transparent 52%),
		linear-gradient(transparent 48%, rgb(57 127 199 / 11%) 49% 51%, transparent 52%);
	transform: rotate(8deg);
}

.oc-home-hero-content {
	position: relative;
	z-index: 1;
	width: min(100%, 58rem);
}

.oc-home-eyebrow {
	margin-bottom: 1rem;
	color: #285b91;
	letter-spacing: 0.085em;
}

.oc-home-hero h1 {
	max-width: 19ch;
	margin-bottom: 1rem;
	color: #142b49;
	font-size: clamp(2.25rem, 5.2vw, 3.65rem);
	letter-spacing: -0.052em;
	line-height: 1.08;
}

.oc-home-hero-content > p:not(.oc-home-eyebrow) {
	max-width: 43rem;
	color: #4f647c;
	font-size: clamp(1.04rem, 1.75vw, 1.18rem);
	line-height: 1.65;
}

.oc-home-hero .oc-search,
.oc-home-hero .search-form {
	width: min(100%, 51rem);
	margin-top: 1.85rem;
	padding: 0.65rem;
	border-color: #c6d9ed;
	border-radius: 0.9rem;
	box-shadow: 0 0.7rem 2rem rgb(29 75 124 / 10%), 0 1px 2px rgb(29 75 124 / 5%);
}

.oc-home-hero .oc-search input[type="search"],
.oc-home-hero .search-form input[type="search"] {
	min-height: 3.15rem;
padding-inline: 2.75rem 1rem;
border: 1px solid #D1D5DB;
background-color: #ffffff;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 4.5 4.5'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: 1rem center;
background-size: 1.125rem 1.125rem;
color: #111827;
	font-size: 1.02rem;
}

.oc-home-hero .oc-search input[type="search"]::placeholder,
.oc-home-hero .search-form input[type="search"]::placeholder {
color: #4b5563;
opacity: 1;
}

.oc-home-hero .oc-search input[type="search"]:focus,
.oc-home-hero .search-form input[type="search"]:focus,
.oc-home-hero .oc-search input[type="search"]:focus-visible,
.oc-home-hero .search-form input[type="search"]:focus-visible {
border-color: #2563EB;
outline: 3px solid #2563EB;
outline-offset: 1px;
}

.oc-site-footer .oc-brand-wordmark {
width: min(100%, 13rem);
max-width: 100%;
height: auto;
}

.oc-home-hero .oc-search button,
.oc-home-hero .search-form button {
	min-height: 3.15rem;
	padding-inline: 1.3rem;
	border-radius: 0.65rem;
	box-shadow: 0 2px 5px rgb(12 79 164 / 16%);
}

@media (max-width: 46rem) {
	.oc-site-header > .oc-wrap {
		min-height: 4.5rem;
	}

	.oc-brand-wordmark {
		width: clamp(10.25rem, 47vw, 13rem);
	}

	.oc-home-hero {
		padding-block: 3.25rem 3rem;
	}

	.oc-home-hero::after {
		top: 1rem;
		right: 1.2rem;
		width: 3.25rem;
		height: 3.25rem;
		border-radius: 0.85rem;
	}

	.oc-home-hero .oc-search,
	.oc-home-hero .search-form {
		width: 100%;
		margin-top: 1.5rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.oc-home-hero::before,
	.oc-home-hero::after {
		transform: none;
	}
}

/* Native calculator category archive. */
.oc-category-archive {
	padding-bottom: clamp(2.75rem, 6vw, 4.5rem);
}

.oc-category-breadcrumbs {
	padding-block: 1rem;
	border-bottom: 1px solid var(--oc-border);
}

.oc-category-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.65rem;
	padding: 0;
	margin: 0;
	list-style: none;
	color: var(--oc-muted);
	font-size: 0.9rem;
}

.oc-category-breadcrumbs li {
	display: inline-flex;
	min-height: 2.75rem;
	align-items: center;
}

.oc-category-breadcrumbs li + li::before {
	margin-right: 0.65rem;
	color: var(--oc-border-strong);
	content: "/";
}

.oc-category-breadcrumbs a {
	display: inline-flex;
	min-height: 2.75rem;
	align-items: center;
	color: var(--oc-blue-dark);
	font-weight: 600;
	text-decoration: none;
}

.oc-category-breadcrumbs a:hover {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.oc-category-heading {
	padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 4rem);
	margin-top: 1.25rem;
	border: 1px solid #dbe7f8;
	border-radius: var(--oc-radius-lg);
	background: linear-gradient(180deg, var(--oc-blue-pale) 0, var(--oc-paper) 100%);
}

.oc-category-eyebrow,
.oc-category-kicker {
	margin: 0 0 0.75rem;
	color: var(--oc-blue-dark);
	font-size: 0.76rem;
	font-weight: 750;
	letter-spacing: 0.1em;
	line-height: 1.35;
	text-transform: uppercase;
}

.oc-category-eyebrow::before,
.oc-category-kicker::before {
	display: inline-block;
	width: 1.1rem;
	height: 2px;
	margin: 0 0.55rem 0.2em 0;
	background: currentColor;
	content: "";
}

.oc-category-heading h1 {
	max-width: 22ch;
	margin-bottom: 0.85rem;
}

.oc-category-intro {
	max-width: 48rem;
	margin: 0;
	color: var(--oc-muted);
	font-size: clamp(1rem, 1.7vw, 1.15rem);
}

.oc-category-caution {
	max-width: 48rem;
	padding: 0.85rem 1rem;
	margin: 1.25rem 0 0;
	border: 1px solid var(--oc-notice-border);
	border-left: 4px solid #a16207;
	border-radius: var(--oc-radius-sm);
	background: var(--oc-notice);
	color: #713f12;
}

.oc-category-collection {
	padding-top: clamp(2.5rem, 5vw, 4rem);
}

.oc-category-collection-heading {
	margin-bottom: 1.25rem;
}

.oc-category-kicker {
	margin-bottom: 0.45rem;
}

.oc-category-collection h2 {
	margin-bottom: 0;
}

.oc-category-grid {
	gap: 0.9rem;
}

.oc-category-grid .oc-calculator-card {
	min-height: 9rem;
	transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.oc-category-grid .oc-calculator-card:hover {
	transform: translateY(-2px);
}

.oc-category-grid .oc-calculator-card h3 {
	margin: 0 0 0.55rem;
	font-size: 1.08rem;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.oc-category-grid .oc-calculator-card h3 a {
	display: inline-block;
	min-height: 2.75rem;
	color: var(--oc-ink);
	text-decoration: none;
}

.oc-category-grid .oc-calculator-card h3 a:hover {
	color: var(--oc-blue-dark);
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.oc-category-grid .oc-calculator-card .oc-calculator-card-category {
	margin: auto 0 0;
	color: var(--oc-muted);
	font-size: 0.88rem;
}

.oc-category-empty {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: start;
	gap: 0.4rem 1rem;
	padding: clamp(1.25rem, 3vw, 2rem);
	border: 1px dashed var(--oc-border-strong);
	border-radius: var(--oc-radius);
	background: var(--oc-subtle);
}

.oc-category-empty-mark {
	width: 0.7rem;
	height: 0.7rem;
	margin-top: 0.5rem;
	border: 2px solid var(--oc-blue);
	border-radius: 50%;
	box-shadow: 0 0 0 0.25rem var(--oc-blue-pale);
}

.oc-category-empty-copy h3 {
	margin: 0 0 0.45rem;
	font-size: 1.15rem;
}

.oc-category-empty-copy > p {
	max-width: 48rem;
	margin: 0;
	color: var(--oc-muted);
}

.oc-category-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem 1rem;
	margin-top: 1rem;
}

.oc-category-action {
	display: inline-flex;
	min-height: 2.75rem;
	align-items: center;
	justify-content: center;
	padding: 0.55rem 1rem;
	border: 1px solid var(--oc-blue);
	border-radius: var(--oc-radius-sm);
	background: var(--oc-blue);
	color: var(--oc-paper);
	font-weight: 700;
	text-decoration: none;
}

.oc-category-action:hover {
	border-color: var(--oc-blue-hover);
	background: var(--oc-blue-hover);
	color: var(--oc-paper);
}

.oc-category-home-link {
	display: inline-flex;
	min-height: 2.75rem;
	align-items: center;
	font-weight: 650;
}

.oc-category-unavailable {
	margin-bottom: 0;
}

.oc-category-unavailable .oc-category-action {
	margin-top: 1.25rem;
}

@media (max-width: 58rem) {
	.oc-category-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 34rem) {
	.oc-category-heading {
		padding: 2rem 1.25rem;
		margin-top: 0.75rem;
	}

	.oc-category-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.oc-category-grid .oc-calculator-card {
		min-height: auto;
	}

	.oc-category-empty {
		grid-template-columns: minmax(0, 1fr);
	}

	.oc-category-empty-mark {
		margin: 0 0 0.25rem 0.25rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.oc-category-grid .oc-calculator-card {
		transition: none;
	}
}

/* Contact-only native controls. Existing calculator/design rules are unchanged. */
.oc-contact-form { max-width: 44rem; margin-block: 1.5rem; }
.oc-contact-field { margin-block: 1.25rem; }
.oc-contact-field label { display: block; font-weight: 700; margin-bottom: .4rem; }
.oc-contact-field input,
.oc-contact-field textarea {
box-sizing: border-box; display: block; width: 100%; max-width: 100%;
border: 1px solid #53677f; border-radius: .5rem; padding: .8rem;
background: #fff; color: #142b49; font: inherit;
}
.oc-contact-field textarea { min-height: 11rem; resize: vertical; }
.oc-contact-field input:focus,
.oc-contact-field textarea:focus,
.oc-contact-form button:focus-visible {
outline: 3px solid #2563eb; outline-offset: 3px; border-color: #2563eb;
}
.oc-contact-form button {
font: inherit; font-weight: 700; border: 0; border-radius: .5rem;
padding: .85rem 1.2rem; background: #176fe5; color: #fff; cursor: pointer;
}
.oc-contact-form button:disabled { background: #53677f; cursor: not-allowed; }
.oc-contact-help { font-size: .95rem; }
.oc-contact-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* Coordinated native navigation; no changes to calculator or content layouts. */
.oc-menu-toggle { gap: .5rem; }
.oc-nav-enhanced .oc-menu-toggle::before { display: none; content: none; }
.oc-menu-icon { display: block; flex: 0 0 20px; }
.oc-menu a[aria-current="page"] { color: var(--oc-blue); }
.oc-footer-links { min-width: 0; width: 100%; }
.oc-footer-links > .oc-menu { flex-wrap: wrap; gap: .25rem 1.25rem; }
.oc-footer-links a { overflow-wrap: anywhere; }
@media (min-width: 46.001rem) {
    .oc-site-header > .oc-wrap { flex-wrap: nowrap; }
    .oc-nav > .oc-menu { flex-wrap: nowrap; }
}
@media (max-width: 46rem) {
    .oc-footer-links > .oc-menu {
        display: grid; width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start; gap: .25rem 1rem;
    }
    .oc-footer-links a { width: 100%; min-height: 2.75rem; }
}
