/* ==========================================================================
   OneMileFeet Design 1.0.1 — dark expii-style theme (STYLING ONLY)
   Applies on top of Twenty Twenty-Three. No content, slug, SEO or settings
   changes. Deactivate this plugin to restore the previous design.
   Fonts: system stacks only — zero external downloads, zero added weight.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
	--omf-navy: #07071f;
	--omf-navy-2: #0b0b26;
	--omf-indigo: #17173a;
	--omf-indigo-2: #1e1e45;
	--omf-ink: #f2f3fa;
	--omf-ink-dim: #c6c9e0;
	--omf-ink-mute: #9a9dc0;
	--omf-peri: #a5b4ff;
	--omf-peri-deep: #8b9dff;
	--omf-pink: #ff7ab8;
	--omf-gold: #ffc107;
	--omf-line: rgba(165, 180, 255, 0.22);
	--omf-line-soft: rgba(165, 180, 255, 0.14);
	--omf-radius: 24px;
	--omf-radius-sm: 16px;
	--omf-serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
	--omf-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--omf-mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, "Liberation Mono", monospace;
	color-scheme: dark;
}

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

html,
body {
	overflow-x: clip;
}

body {
	background: var(--omf-navy) !important;
	color: var(--omf-ink) !important;
	font-family: var(--omf-sans);
}

::selection {
	background: var(--omf-peri-deep);
	color: var(--omf-navy);
}

:focus-visible {
	outline: 2px solid var(--omf-peri);
	outline-offset: 2px;
}

a {
	color: var(--omf-peri);
}

h1,
h2,
h3,
h4 {
	color: var(--omf-ink);
}

p,
li {
	color: var(--omf-ink-dim);
}

/* ---------- Header & nav ---------- */
header.wp-block-template-part {
	background: rgba(7, 7, 31, 0.92);
	border-bottom: 1px solid var(--omf-line-soft);
}

.wp-block-site-title a {
	color: var(--omf-ink) !important;
	text-decoration: none;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.wp-block-site-title a:hover {
	color: var(--omf-peri) !important;
}

.wp-block-navigation-item__content {
	color: var(--omf-ink-dim) !important;
}

.wp-block-navigation-item__content:hover {
	color: var(--omf-ink) !important;
}

.wp-block-navigation__responsive-container-open {
	color: var(--omf-ink) !important;
}

.wp-block-navigation__responsive-container {
	background: var(--omf-navy-2) !important;
	color: var(--omf-ink) !important;
}

.wp-block-navigation__responsive-container .wp-block-navigation-item__content {
	color: var(--omf-ink) !important;
	font-size: 1.25rem;
}

.wp-block-navigation__responsive-container-close {
	color: var(--omf-ink) !important;
}

/* FIX 2 (v1.0.1): hamburger + overlay nav at ALL widths.
   Core hides the hamburger and shows the 17 links inline at >=600px
   (.wp-block-navigation__responsive-container-open:not(.always-shown)
   display:none, and the container becomes display:block position:relative).
   Force the mobile behaviour everywhere: always show the hamburger, and
   keep the inline list hidden at desktop widths while the menu is closed.
   The overlay itself (.is-menu-open) is core's fixed full-screen panel at
   every width, so no JS change is needed — the core interactivity toggle
   opens/closes it the same way it already does on mobile. All 17 links
   stay reachable through the overlay. */
.wp-block-navigation__responsive-container-open:not(.always-shown) {
	display: flex !important;
}

@media (min-width: 600px) {
	.wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none !important;
	}
}

/* ---------- Hero / post title ---------- */
.wp-block-post-title {
	font-family: var(--omf-serif);
	font-size: clamp(2rem, 6vw, 3.1rem);
	line-height: 1.12;
	letter-spacing: -0.01em;
	color: var(--omf-ink);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
	.wp-block-post-title {
		background: linear-gradient(92deg, #e8ebff 10%, var(--omf-peri) 48%, var(--omf-pink) 92%);
		-webkit-background-clip: text;
		background-clip: text;
		-webkit-text-fill-color: transparent;
		color: transparent;
	}
}

.wp-block-post-featured-image img {
	border-radius: var(--omf-radius);
	border: 1px solid var(--omf-line-soft);
}

/* ---------- 3D gold cube (keeps its own navy/gold faces; just lift it) ---------- */
.omf-scene {
	filter: drop-shadow(0 14px 34px rgba(139, 157, 255, 0.28));
}

/* ---------- Converter ---------- */
.omf-converter {
	background: linear-gradient(180deg, var(--omf-indigo), #12122e) !important;
	border: 1px solid var(--omf-line) !important;
	border-radius: var(--omf-radius) !important;
	padding: 28px 24px !important;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
	max-width: 560px;
}

.omf-converter label {
	color: var(--omf-ink-dim);
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.omf-converter input[type="number"] {
	background: var(--omf-navy) !important;
	color: var(--omf-ink) !important;
	border: 1px solid var(--omf-line) !important;
	border-radius: 12px;
	padding: 14px 16px !important;
	min-height: 48px;
	font-family: var(--omf-mono);
	font-size: 18px;
	margin-top: 6px;
}

.omf-converter input[type="number"]:focus {
	border-color: var(--omf-peri-deep) !important;
	outline: none;
	box-shadow: 0 0 0 3px rgba(139, 157, 255, 0.35);
}

.omf-converter > div {
	color: var(--omf-peri);
}

/* Quick chips (added by the plugin script, under the converter) */
.omf-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin: 16px auto 0;
	max-width: 560px;
}

.omf-chip {
	min-height: 44px;
	padding: 10px 16px;
	border-radius: 999px;
	border: 1px solid var(--omf-line);
	background: var(--omf-indigo);
	color: var(--omf-ink);
	font: 600 15px/1 var(--omf-sans);
	cursor: pointer;
}

.omf-chip:hover {
	border-color: var(--omf-peri);
	color: #fff;
}

.omf-chip.is-active {
	background: linear-gradient(90deg, var(--omf-peri-deep), var(--omf-pink));
	border-color: transparent;
	color: var(--omf-navy);
}

/* ---------- Headings, tables, content links ---------- */
.entry-content h2,
.wp-block-post-content h2 {
	font-family: var(--omf-serif);
	font-size: clamp(1.5rem, 4vw, 2rem);
	line-height: 1.25;
	margin: 2.2em 0 0.8em;
}

.entry-content h2::after,
.wp-block-post-content h2::after {
	content: "";
	display: block;
	width: 56px;
	height: 4px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--omf-peri-deep), var(--omf-pink));
	margin-top: 12px;
}

.entry-content h3,
.wp-block-post-content h3 {
	font-family: var(--omf-serif);
}

.entry-content a,
.wp-block-post-content a {
	color: var(--omf-peri);
	text-decoration: underline;
	text-decoration-color: rgba(165, 180, 255, 0.5);
	text-underline-offset: 3px;
}

.entry-content a:hover,
.wp-block-post-content a:hover {
	color: #fff;
	text-decoration-color: var(--omf-pink);
}

figure.wp-block-table {
	overflow-x: auto;
	border: 1px solid var(--omf-line-soft);
	border-radius: var(--omf-radius-sm);
}

.wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
}

.wp-block-table th,
.wp-block-table td {
	padding: 12px 16px;
	border-bottom: 1px solid var(--omf-line-soft);
	text-align: left;
	color: var(--omf-ink-dim);
}

.wp-block-table tr:last-child th,
.wp-block-table tr:last-child td {
	border-bottom: 0;
}

.wp-block-table th {
	color: var(--omf-peri);
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.wp-block-table td:last-child {
	font-family: var(--omf-mono);
	white-space: nowrap;
}

.wp-block-table tbody tr:hover {
	background: rgba(165, 180, 255, 0.05);
}

/* ---------- FAQ (Rank Math) ---------- */
.rank-math-list-item {
	background: var(--omf-indigo);
	border: 1px solid var(--omf-line-soft);
	border-radius: var(--omf-radius-sm);
	margin-bottom: 12px;
	padding: 18px 20px;
}

.rank-math-question {
	font-family: var(--omf-serif);
	font-size: 1.15rem;
	line-height: 1.4;
	color: var(--omf-ink);
	margin: 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	cursor: pointer;
}

.rank-math-question::after {
	content: "+";
	color: var(--omf-peri);
	font-family: var(--omf-sans);
	font-size: 1.5rem;
	line-height: 1;
	flex: none;
}

.rank-math-list-item.omf-open .rank-math-question::after {
	content: "\2013";
}

.rank-math-answer {
	color: var(--omf-ink-dim);
}

.rank-math-answer p {
	margin: 12px 0 0;
}

/* Collapsed only when JS is running (no-JS keeps all answers visible) */
html.omf-faq-js .rank-math-answer {
	display: none;
}

html.omf-faq-js .rank-math-list-item.omf-open .rank-math-answer {
	display: block;
}

/* ---------- Footer ---------- */
footer.wp-block-template-part {
	border-top: 1px solid var(--omf-line-soft);
	color: var(--omf-ink-mute);
}

footer.wp-block-template-part a {
	color: var(--omf-ink-mute);
}

footer.wp-block-template-part a:hover {
	color: var(--omf-peri);
}

/* ---------- Buttons & table of contents ---------- */
.wp-block-button__link {
	background: linear-gradient(90deg, var(--omf-peri-deep), var(--omf-pink));
	color: var(--omf-navy);
	border-radius: 999px;
	padding: 14px 26px;
	font-weight: 700;
	min-height: 48px;
}

/* ---------- Table of contents (Easy TOC) — v1.0.1 ----------
   The box stays light (its own #F9F9F9), so the text must be dark.
   v1.0.0 coloured the text pale on the assumption of a dark box, but the
   light box won the cascade, leaving pale-on-white text. These rules pin
   BOTH the light background and dark text with ID selectors + !important,
   so the result is deterministic whatever else loads: light box, dark
   readable heading and links. Behaviour and links are untouched. */
div#ez-toc-container {
	background: #f9f9f9 !important;
	border: 1px solid #aaaaaa !important;
	border-radius: var(--omf-radius-sm);
}

div#ez-toc-container p.ez-toc-title {
	color: #14142b !important;
}

div#ez-toc-container a,
div#ez-toc-container a:visited {
	color: #1d2f7a !important;
}

div#ez-toc-container a:hover,
div#ez-toc-container a:focus-visible {
	color: #0b0b26 !important;
}

/* Toggle icon ships with an inline fill:#999 style; !important beats it. */
div#ez-toc-container a.ez-toc-toggle svg {
	fill: #444444 !important;
	color: #444444 !important;
}

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
	.omf-converter {
		padding: 20px 16px !important;
	}

	.omf-chips {
		gap: 6px;
	}

	.omf-chip {
		padding: 10px 14px;
	}

	.wp-block-table th,
	.wp-block-table td {
		padding: 10px 12px;
		font-size: 15px;
	}

	.rank-math-list-item {
		padding: 16px;
	}
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.omf-cube {
		animation: none;
	}
}
