/*
Theme Name: Document Retrieval
Theme URI: https://pentavirtual.com/
Author: Prakash Sharma
Author URI: https://pentavirtual.com/
Description: Single-page theme for a secure document retrieval service. Clean institutional layout, no navigation, no sidebar, no comments. Built to pair with the Document Retrieval plugin.
Version: 1.6.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: docverify-theme
Tags: one-column, custom-logo, accessibility-ready, translation-ready, rtl-language-support
*/

:root {
	--dvt-ink: #17181a;
	--dvt-muted: #5c6066;
	--dvt-line: #d3d6da;
	--dvt-panel: #f4f5f3;
	--dvt-accent: #ffd200;
	--dvt-accent-ink: #17181a;
	--dvt-focus: #0b5cab;
	--dvt-bg: #ffffff;
	--dvt-shell: 960px;
	--dvt-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--dvt-bg);
	color: var(--dvt-ink);
	font-family: var(--dvt-font);
	font-size: 16px;
	line-height: 1.6;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

a {
	color: var(--dvt-focus);
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible {
	outline: 3px solid var(--dvt-focus);
	outline-offset: 2px;
}

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

.dvt-shell {
	width: 100%;
	max-width: var(--dvt-shell);
	margin-inline: auto;
	padding-inline: 1.25rem;
}

.dvt-skip {
	position: absolute;
	left: -9999px;
}

.dvt-skip:focus {
	left: 1rem;
	top: 1rem;
	z-index: 100;
	padding: 0.625rem 1rem;
	background: #fff;
	border: 2px solid var(--dvt-ink);
	text-decoration: none;
	color: var(--dvt-ink);
}

/* Notice bar ------------------------------------------------------------ */

.dvt-notice {
	background: var(--dvt-panel);
	border-bottom: 1px solid var(--dvt-line);
	font-size: 0.875rem;
	color: var(--dvt-ink);
}

.dvt-notice__inner {
	display: flex;
	gap: 0.625rem;
	align-items: baseline;
	padding-block: 0.75rem;
}

.dvt-notice__label {
	flex: none;
	font-weight: 600;
}

.dvt-notice p {
	margin: 0;
}

/* Masthead -------------------------------------------------------------- */

.dvt-masthead {
	border-bottom: 1px solid var(--dvt-line);
	padding-block: 1.125rem;
}

.dvt-masthead__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.dvt-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	color: var(--dvt-ink);
}

.dvt-brand__tagline {
	font-size: 0.875rem;
	font-weight: 400;
	color: var(--dvt-muted);
}

.custom-logo,
.dvt-brand__logo {
	max-height: 46px;
	width: auto;
	display: block;
}

.dvt-brand__logo {
	max-width: 260px;
}

/* Main ------------------------------------------------------------------ */

.dvt-main {
	flex: 1 0 auto;
	padding-block: clamp(1.75rem, 1rem + 3vw, 3rem);
}

.dvt-breadcrumb {
	font-size: 0.8125rem;
	color: var(--dvt-muted);
	margin-bottom: 1.25rem;
}

.dvt-breadcrumb a {
	color: var(--dvt-muted);
}

.dvt-breadcrumb span[aria-current] {
	color: var(--dvt-ink);
}

.dvt-sep {
	margin-inline: 0.375rem;
	color: #b4b2a9;
}

.dvt-updated {
	margin-top: 2.5rem;
	padding-top: 1rem;
	border-top: 1px solid var(--dvt-line);
	font-size: 0.8125rem;
	color: var(--dvt-muted);
}

/* Page content (when not rendered by the plugin shortcode) --------------- */

.dvt-content h2 {
	font-size: 1.25rem;
	line-height: 1.3;
	margin: 2rem 0 0.75rem;
}

.dvt-content p {
	max-width: 68ch;
}

/* Footer ---------------------------------------------------------------- */

.dvt-footer {
	flex: none;
	border-top: 3px solid var(--dvt-accent);
	background: var(--dvt-panel);
	padding-block: 1.75rem;
	font-size: 0.875rem;
	color: var(--dvt-muted);
}

.dvt-footer__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	align-items: baseline;
	justify-content: space-between;
}

.dvt-footer p {
	margin: 0;
}

.dvt-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.dvt-footer__links a {
	color: var(--dvt-muted);
}

/* Fallback screen ------------------------------------------------------- */

.dvt-fallback {
	padding: 1.5rem;
	background: var(--dvt-panel);
	border: 1px solid var(--dvt-line);
	max-width: 68ch;
}

.dvt-fallback code {
	background: #fff;
	border: 1px solid var(--dvt-line);
	padding: 0.125rem 0.375rem;
}

/* The plugin's form inherits the theme font and shell width --------------- */

.dv {
	--dv-font: var(--dvt-font);
	--dv-accent: var(--dvt-accent);
	--dv-accent-ink: var(--dvt-accent-ink);
	--dv-panel: var(--dvt-panel);
	--dv-line: var(--dvt-line);
	--dv-focus: var(--dvt-focus);
	max-width: none;
	padding: 0;
	margin: 0;
}

@media (max-width: 600px) {
	.dvt-masthead__inner {
		flex-wrap: wrap;
		gap: 0.75rem 1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
		animation: none !important;
	}
}

/* =======================================================================
   1.1.0 — layout pass
   Two columns on desktop so the explanatory text sits beside the form
   instead of leaving half the row empty. All plugin classes, no plugin edits.
   ==================================================================== */

body::before {
	content: "";
	display: block;
	flex: none;
	height: 4px;
	background: var(--dvt-accent);
}

.dvt-main {
	padding-block: clamp(2rem, 1rem + 4vw, 4rem);
}

.dv__header {
	padding-bottom: 1.5rem;
	margin-bottom: 2.25rem;
}

.dv__title {
	font-size: clamp(1.875rem, 1.2rem + 2.4vw, 2.75rem);
}

.dv__intro {
	font-size: 1.125rem;
	max-width: 62ch;
}

.dv__panel {
	background: #fff;
	border: 1px solid var(--dvt-line);
	padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
}

.dv__form {
	max-width: none;
	gap: 1.5rem;
}

.dv__select,
.dv__input {
	min-height: 48px;
	font-size: 1.0625rem;
}

.dv__submit {
	padding: 0.875rem 2rem;
	font-size: 1.0625rem;
}

.dv__notes {
	margin-top: 1.75rem;
	padding: 1.25rem 1.375rem;
	background: var(--dvt-panel);
	border: 1px solid var(--dvt-line);
	border-top: 3px solid var(--dvt-accent);
	border-radius: 0;
	font-size: 0.9375rem;
	max-width: none;
}

.dv__notes p {
	margin: 0;
}

.dv__result {
	border-radius: 0;
}

@media (min-width: 900px) {
	.dv {
		display: grid;
		grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
		column-gap: 2.5rem;
		align-items: start;
	}

	.dv__header,
	.dv__empty {
		grid-column: 1 / -1;
	}

	.dv__panel {
		grid-column: 1;
	}

	.dv__notes {
		grid-column: 2;
		margin-top: 0;
		position: sticky;
		top: 1.5rem;
	}

	.dvt-updated {
		grid-column: 1 / -1;
	}
}

@media (max-width: 560px) {
	.dvt-shell {
		padding-inline: 1rem;
	}

	.dv__submit {
		width: 100%;
		text-align: center;
	}

	.dv__result-list {
		grid-template-columns: 1fr;
		gap: 0.125rem;
	}

	.dv__result-list dt {
		margin-top: 0.5rem;
	}

	.dvt-footer__inner {
		flex-direction: column;
		gap: 0.75rem;
	}
}

.dvt-operator {
	margin-top: 0.5rem;
	font-size: 0.8125rem;
	color: var(--dvt-muted);
	max-width: 70ch;
}
