/* Service landing pages: /drones-services and /landing-services.
   Layout lives in templates/service_landing.html.
   Every class starts with "svc-" and every element rule sits under .svc, so these
   styles and the Frappe website styles (Bootstrap) cannot restyle each other.
   Brand: navy #0a0a72, orange #f48c06, Poppins. Navy text on orange gives 6.6:1 contrast. */

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

.svc {
	--svc-navy: #0a0a72;
	--svc-navy-soft: #eef0fb;
	--svc-orange: #f48c06;
	--svc-orange-soft: #fff4e3;
	--svc-ink: #17183b;
	--svc-muted: #565a78;
	--svc-line: #dfe1ee;
	--svc-bg: #f6f7fb;
	--svc-white: #fff;
	--svc-green: #0f7a4d;
	--svc-green-soft: #e6f5ee;
	--svc-radius: 12px;
	/* Links read these two values, so a component changes link colour in one place. */
	--svc-link: var(--svc-navy);
	--svc-link-deco: underline;

	font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 16px;
	/* The website body uses weight 420 and an optical-size axis for its own variable
	   font. Poppins has neither, and 420 would resolve to its 500 weight. */
	font-weight: 400;
	font-variation-settings: normal;
	line-height: 1.6;
	letter-spacing: normal;
	text-align: left;
	color: var(--svc-ink);
	background: var(--svc-white);
	-webkit-text-size-adjust: 100%;
}

/* Reset. :where() keeps these at one-class weight: above the website's element
   rules, below every component rule that follows. */
.svc :where(h1, h2, h3, p, ul, ol, dl, dt, dd, table) {
	margin: 0;
	padding: 0;
}
.svc :where(h1, h2, h3) {
	font-size: inherit;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: normal;
	color: inherit;
}
.svc :where(ul, ol) {
	list-style: none;
}
.svc :where(dt) {
	font-weight: 400;
}
.svc :where(b) {
	font-weight: 600;
}
.svc :where(img, svg) {
	max-width: 100%;
}

.svc a,
.svc a:hover,
.svc a:focus {
	color: var(--svc-link);
	text-decoration: var(--svc-link-deco);
	text-underline-offset: 3px;
}
.svc a:hover {
	text-decoration-thickness: 2px;
}
.svc a:focus-visible,
.svc summary:focus-visible {
	outline: 3px solid var(--svc-orange);
	outline-offset: 2px;
}

.svc-wrap {
	max-width: 1168px;
	margin: 0 auto;
	padding-left: 24px;
	padding-right: 24px;
}
.svc .svc-skip {
	position: absolute;
	left: -999px;
	top: 0;
	z-index: 10;
	padding: 8px 12px;
	font-weight: 600;
	background: var(--svc-orange);
}
.svc .svc-skip:focus {
	left: 8px;
	top: 8px;
}

/* Header */
.svc-hdr {
	--svc-link: var(--svc-white);
	--svc-link-deco: none;
	position: relative;
	background: var(--svc-navy);
	color: var(--svc-white);
}
.svc-hdr__in {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 72px;
}
.svc-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}
.svc-brand img,
.svc-ftr__brand img {
	flex: none;
	background: var(--svc-white);
	border-radius: 8px;
	padding: 3px;
}
.svc-brand img {
	width: 48px;
	height: 48px;
}
.svc-brand b,
.svc-brand small {
	display: block;
}
.svc-brand b {
	font-size: 16px;
	line-height: 1.25;
}
.svc-brand small {
	font-size: 12.5px;
	font-weight: 400;
	line-height: 1.3;
	opacity: 0.82;
}
.svc-nav {
	display: flex;
	align-items: center;
	gap: 4px;
}
.svc-nav a {
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 14.5px;
	font-weight: 500;
	white-space: nowrap;
}
.svc-nav a:hover {
	background: rgba(255, 255, 255, 0.12);
}
.svc-nav a[aria-current="page"] {
	border-radius: 0;
	box-shadow: inset 0 -3px 0 var(--svc-orange);
}
.svc-nav .svc-nav__signin {
	margin-left: 8px;
	border: 1.5px solid rgba(255, 255, 255, 0.7);
}
/* Phone menu: a native <details>, so it needs no script. Hidden on wide screens. */
.svc-menu {
	display: none;
}
.svc-menu summary {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	margin-left: 8px;
	padding: 8px 14px;
	border: 1.5px solid rgba(255, 255, 255, 0.7);
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	list-style: none;
	cursor: pointer;
}
.svc-menu summary::-webkit-details-marker {
	display: none;
}
.svc-menu[open] summary {
	background: rgba(255, 255, 255, 0.12);
}
.svc-menu ul {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	z-index: 5;
	padding: 8px 16px 16px;
	background: var(--svc-navy);
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	box-shadow: 0 12px 24px rgba(10, 10, 114, 0.25);
}
.svc-menu li a {
	display: block;
	padding: 12px;
	font-size: 16px;
}
.svc-menu li a[aria-current="page"] {
	box-shadow: inset 3px 0 0 var(--svc-orange);
}

/* Buttons */
.svc-btn {
	--svc-link-deco: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 24px;
	border: 2px solid transparent;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
}
.svc-btn svg {
	flex: none;
	width: 18px;
	height: 18px;
}
.svc-btn--primary {
	background: var(--svc-orange);
}
.svc-btn--primary:hover {
	background: #ffa022;
}
.svc-btn--navy {
	--svc-link: var(--svc-white);
	background: var(--svc-navy);
}
.svc-btn--navy:hover {
	background: #16168f;
}
.svc-btn--block {
	display: flex;
	width: 100%;
}

/* Page body */
.svc-crumbs {
	--svc-link: var(--svc-muted);
	padding: 18px 0 0;
	font-size: 14px;
	color: var(--svc-muted);
}
.svc-crumbs span {
	margin: 0 6px;
}
.svc-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 56px;
	align-items: start;
	padding-top: 20px;
}
.svc-main > * + * {
	margin-top: 22px;
}
.svc-main h1 {
	font-size: 42px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--svc-navy);
}
.svc-lead {
	font-size: 19px;
	line-height: 1.55;
}
.svc-muted {
	color: var(--svc-muted);
}
.svc-small {
	font-size: 14px;
}
.svc-main .svc-h2 {
	margin-top: 48px;
	padding-top: 28px;
	border-top: 3px solid var(--svc-navy);
	font-size: 26px;
	line-height: 1.25;
	color: var(--svc-navy);
}
.svc-facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border: 1px solid var(--svc-line);
	border-radius: var(--svc-radius);
	overflow: hidden;
}
.svc-facts div {
	padding: 16px 18px;
	border-right: 1px solid var(--svc-line);
}
.svc-facts div:last-child {
	border-right: 0;
}
.svc-facts dt {
	font-size: 13px;
	color: var(--svc-muted);
}
.svc-facts dd {
	margin-top: 2px;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.35;
}
.svc-start {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 22px;
}
.svc-start .svc-btn {
	min-height: 54px;
	padding: 14px 28px;
	font-size: 18px;
}
.svc-note {
	padding: 14px 18px;
	border: 1px solid #f0c483;
	border-radius: 10px;
	background: var(--svc-orange-soft);
}

/* Lists */
.svc-checks li {
	position: relative;
	margin-bottom: 10px;
	padding-left: 32px;
}
.svc-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 4px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--svc-green-soft)
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.4l3 3 6-6.6' fill='none' stroke='%230f7a4d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
		center / 20px no-repeat;
}
.svc-dots li {
	position: relative;
	margin-bottom: 6px;
	padding-left: 20px;
}
.svc-dots li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 11px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--svc-navy);
}

/* Numbered steps */
.svc-steps {
	counter-reset: svc-step;
}
.svc-steps > li {
	counter-increment: svc-step;
	position: relative;
	margin-left: 19px;
	padding: 0 0 26px 60px;
	border-left: 3px solid var(--svc-line);
}
.svc-steps > li:last-child {
	padding-bottom: 0;
	border-left-color: transparent;
}
.svc-steps > li::before {
	content: counter(svc-step);
	position: absolute;
	left: -21px;
	top: -4px;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border: 3px solid var(--svc-navy);
	border-radius: 50%;
	background: var(--svc-white);
	font-size: 16px;
	font-weight: 700;
	color: var(--svc-navy);
}
.svc-steps h3 {
	font-size: 18px;
	line-height: 1.4;
}
.svc-steps p {
	margin-top: 4px;
}
.svc-steps span {
	display: inline-block;
	margin-top: 8px;
	padding: 2px 10px;
	border-radius: 6px;
	background: var(--svc-bg);
	font-size: 13px;
	color: var(--svc-muted);
}

/* Tables */
.svc-table-scroll {
	overflow-x: auto;
}
.svc-main table {
	width: 100%;
	border-collapse: collapse;
}
.svc-main th,
.svc-main td {
	padding: 12px 14px;
	border-bottom: 1px solid var(--svc-line);
	font-size: 15px;
	text-align: left;
	vertical-align: top;
}
.svc-main th {
	background: var(--svc-navy-soft);
	font-size: 14px;
	font-weight: 600;
	color: var(--svc-navy);
}
.svc-main .svc-num {
	text-align: right;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}
.svc-main td small {
	display: block;
	font-size: 14px;
	color: var(--svc-muted);
}

/* Fold-out list */
.svc-acc {
	border-top: 1px solid var(--svc-line);
	border-bottom: 1px solid var(--svc-line);
}
.svc-acc summary {
	position: relative;
	min-height: 48px;
	padding: 16px 40px 16px 0;
	font-weight: 600;
	list-style: none;
	cursor: pointer;
}
.svc-acc summary::-webkit-details-marker {
	display: none;
}
.svc-acc summary::after {
	content: "";
	position: absolute;
	right: 8px;
	top: 22px;
	width: 10px;
	height: 10px;
	border-right: 2px solid var(--svc-navy);
	border-bottom: 2px solid var(--svc-navy);
	transform: rotate(45deg);
	transition: transform 0.15s;
}
.svc-acc[open] summary::after {
	top: 26px;
	transform: rotate(-135deg);
}
.svc-acc ul {
	padding-bottom: 18px;
}

/* Contact block */
.svc-help {
	padding: 24px;
	border-radius: var(--svc-radius);
	background: var(--svc-navy-soft);
}
.svc-help h3 {
	font-size: 18px;
	line-height: 1.35;
}
.svc-help dl {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);
	gap: 6px 16px;
	margin-top: 12px;
	font-size: 15px;
}
.svc-help dt {
	color: var(--svc-muted);
}
.svc-help dd {
	font-weight: 500;
	overflow-wrap: anywhere;
}
.svc-help dd small {
	display: block;
	font-size: 14px;
	font-weight: 400;
	color: var(--svc-muted);
}

/* Side column */
.svc-aside {
	position: sticky;
	top: 20px;
	display: grid;
	gap: 20px;
	margin-top: 6px;
}
.svc-box {
	padding: 20px;
	border: 1px solid var(--svc-line);
	border-radius: var(--svc-radius);
	background: var(--svc-bg);
}
.svc-box h2 {
	margin-bottom: 8px;
	font-size: 17px;
}
.svc-box p {
	margin-bottom: 14px;
	font-size: 15px;
	color: var(--svc-muted);
}
.svc-box li {
	border-top: 1px solid var(--svc-line);
}
.svc-box li a {
	display: block;
	padding: 11px 0;
	font-size: 15px;
	font-weight: 500;
}

/* Footer */
.svc-ftr {
	--svc-link: #d9dbf5;
	margin-top: 72px;
	background: var(--svc-navy);
	font-size: 14px;
	color: #d9dbf5;
}
.svc-ftr__in {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: 32px;
	padding-top: 40px;
	padding-bottom: 28px;
}
.svc-ftr h2 {
	margin-bottom: 10px;
	font-size: 14px;
	color: var(--svc-white);
}
.svc-ftr li {
	margin-bottom: 6px;
}
.svc-ftr__brand {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}
.svc-ftr__brand img {
	width: 44px;
	height: 44px;
}
.svc-ftr__base {
	padding: 16px 0 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.svc-ftr__base img {
	display: block;
	width: auto;
	height: 40px;
}

@media (max-width: 900px) {
	.svc-nav > a:not(.svc-nav__signin) {
		display: none;
	}
	.svc-nav .svc-nav__signin {
		margin-left: 0;
	}
	.svc-menu {
		display: block;
	}
	.svc-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}
	.svc-aside {
		position: static;
	}
	/* The side column now sits below the content, where a contents list has no use. */
	.svc-box--toc {
		display: none;
	}
	.svc-ftr__in {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}
}

@media (max-width: 720px) {
	.svc-wrap {
		padding-left: 16px;
		padding-right: 16px;
	}
	.svc-hdr__in {
		min-height: 60px;
	}
	.svc-brand img {
		width: 40px;
		height: 40px;
	}
	.svc-brand b {
		font-size: 14px;
	}
	.svc-brand small {
		display: none;
	}
	.svc-nav .svc-nav__signin {
		padding: 8px 12px;
		font-size: 14px;
	}
	.svc-main h1 {
		font-size: 30px;
	}
	.svc-lead {
		font-size: 17px;
	}
	.svc-main .svc-h2 {
		margin-top: 36px;
		padding-top: 22px;
		font-size: 22px;
	}
	/* Facts become one row each, label left and value right. */
	.svc-facts {
		grid-template-columns: minmax(0, 1fr);
	}
	.svc-facts div {
		display: flex;
		align-items: baseline;
		justify-content: space-between;
		gap: 16px;
		padding: 12px 16px;
		border-right: 0;
		border-bottom: 1px solid var(--svc-line);
	}
	.svc-facts div:last-child {
		border-bottom: 0;
	}
	.svc-facts dd {
		margin-top: 0;
		font-size: 16px;
		text-align: right;
	}
	.svc-start {
		gap: 14px;
	}
	.svc-start .svc-btn {
		width: 100%;
	}
	.svc-steps > li {
		margin-left: 17px;
		padding-left: 34px;
	}
	.svc-steps > li::before {
		left: -19px;
		width: 34px;
		height: 34px;
	}
	.svc-main th,
	.svc-main td {
		padding: 10px 8px;
	}
	.svc-main .svc-num {
		white-space: normal;
	}
	.svc-main .svc-table--3 th,
	.svc-main .svc-table--3 td {
		padding: 10px 6px;
		font-size: 14px;
	}
	.svc-main .svc-table--3 td:first-child {
		width: 36%;
	}
	.svc-main .svc-table--3 .svc-num {
		white-space: nowrap;
	}
	.svc-main .svc-table--2 td:first-child {
		width: 52%;
	}
	/* Contact rows stack, so the office hours stay on one line each. */
	.svc-help {
		padding: 20px;
	}
	.svc-help dl {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}
	.svc-help dt {
		margin-top: 10px;
		font-size: 14px;
	}
	.svc-ftr {
		margin-top: 48px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.svc-acc summary::after {
		transition: none;
	}
}
