/**
 * Private Vehicle Regulations page.
 *
 * @package jpd-theme
 */


.jpd-page--private-and-vehicle-regulations {
	color: #333333;
	background: var(--jpd-white);
	padding: 0px 0 72px;
}


.jpd-private-vehicle-and-regulations {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
}


/* =========================================================
   Content spacing
   ========================================================= */

.jpd-private-vehicle-content {
	padding-top: clamp(2.5rem, 4vw, 3.5rem);
}

/* Page heading */
.jpd-private-vehicle-and-regulations__heading {
	margin: 0;
	color: #0b3a74;
	font-family: var(--jpd-font-heading);
	font-size: clamp(1.5rem, 2.2vw, 1.85rem);
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
}

/* ──  Private vehicle and regulations table ─────────────────────────────────────── */

/* Table wrapper */
.jpd-private-vehicle-and-regulations__table-wrapper {
	border: 1px solid #e8d48a;
	border-radius: 12px;
	overflow: hidden;
	background: #fef6d8;
	box-shadow: 0 1px 3px rgba(3,47,60,0.06);
}


/* Table */
.jpd-private-vehicle-and-regulations__table {
	width: 100%;
	border-collapse: collapse;
}

/* Header */
.jpd-private-vehicle-and-regulations__table thead th {
	padding: 1rem 1.5rem;
	background: linear-gradient(
		90deg,
		#fde08d 0%,
		#f5c842 100%
	);
	color: #1a1a1a;
	font-size: clamp(0.95rem, 0.3vw + 0.85rem, 1.05rem);
	font-weight: 700;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: .04em;
	border-bottom: 1px solid #e8d48a;
}


/* Body cells */
.jpd-private-vehicle-and-regulations__table td {
	padding: 1.25rem 1.5rem;
	color: #333;
	font-size: clamp(0.9rem, 0.3vw + 0.8rem, 1rem);
	line-height: 1.6;
	vertical-align: top;
}

.jpd-private-vehicle-and-regulations__table th,
.jpd-private-vehicle-and-regulations__table td {
    border-bottom: 2px solid #e8d48a;
    border-left: 2px solid #e8d48a;
}

.jpd-private-vehicle-and-regulations__table th:last-child,
.jpd-private-vehicle-and-regulations__table td:last-child {
	border-bottom: 2px solid #e8d48a;
}


/* Number column */
.jpd-private-vehicle-and-regulations__table td:first-child {
	width: 70px;
	text-align: center;
	font-weight: 700;
	color: #0b3a74;
    border-left: 0;  
}


/* Category column */
.jpd-private-vehicle-and-regulations__table td:nth-child(2) {
	width: 30%;
	font-weight: 700;
	color: #1a1a1a;
	text-align: left;
}


/* Details column */
.jpd-private-vehicle-and-regulations__table td:nth-child(3) {
	text-align: left;
}


/* Last row */
.jpd-private-vehicle-and-regulations__table tbody tr:last-child td {
	border-bottom: 0;
}


/* Detail lists */
.jpd-private-vehicle-and-regulations__table ul {
	margin: 0;
	padding-left: 1.25rem;
}


.jpd-private-vehicle-and-regulations__table li {
	margin-bottom: 0.5rem;
	line-height: 1.6;
}


.jpd-private-vehicle-and-regulations__table li:last-child {
	margin-bottom: 0;
}



.jpd-private-vehicle-and-regulations__section {
	margin-bottom: 26px;
}

.jpd-private-vehicle-and-regulations__section:last-child {
    margin-bottom: 0;
}

.jpd-private-vehicle-and-regulations__section-title {
	font-weight: 600;
    margin: 0 0 6px;
    line-height: 1.5;
}

.jpd-private-vehicle-and-regulations__section p {
	margin: 0 0 6px;
}


.jpd-private-vehicle-and-regulations__sub-list {
    margin: 4px 0 12px;
    padding-left: 22px;
}


.jpd-private-vehicle-and-regulations__sub-list li {
    margin-bottom: 2px;
}


.jpd-private-vehicle-and-regulations__table td ul {
	margin-top: 4px;
	margin-bottom: 8px;
}


.jpd-private-vehicle-and-regulations__table td li {
	line-height: 1.5;
}


@media (max-width: 768px) {
	.jpd-private-vehicle-and-regulations__table-wrapper {
		border: 0;
		background: transparent;
		overflow: visible;
	}

    .jpd-private-vehicle-and-regulations__table th,
	.jpd-private-vehicle-and-regulations__table td {
		border-left: 0;
		border-bottom: 1px solid #e8d48a;
        border-right: 0;
	}

	.jpd-private-vehicle-and-regulations__table,
	.jpd-private-vehicle-and-regulations__table tbody,
	.jpd-private-vehicle-and-regulations__table tr,
	.jpd-private-vehicle-and-regulations__table td {
		display: block;
		width: 100%;
	}

	.jpd-private-vehicle-and-regulations__table td:first-child,
	.jpd-private-vehicle-and-regulations__table td:nth-child(2),
	.jpd-private-vehicle-and-regulations__table td:nth-child(3) {
		width: 100%;
	}


	.jpd-private-vehicle-and-regulations__table thead {
		display: none;
	}


	.jpd-private-vehicle-and-regulations__table tr {
		margin-bottom: 1rem;
		border: 1px solid #e8d48a;
		border-radius: 12px;
		overflow: hidden;
		background: #fef6d8;
	}

	.jpd-private-vehicle-and-regulations__table td {
        position: relative;       
		display: flex;
		align-items: center;
		gap: 1rem;
		padding: 0 1rem 0 0;
		color: #333;
		line-height: 1.6;
		border-bottom: 1px solid #e8d48a;
	}


	.jpd-private-vehicle-and-regulations__table td:last-child {
		border-bottom: 0;
	}

	.jpd-private-vehicle-and-regulations__table td::before {
		display: flex;
		align-items: center;
		flex-shrink: 0;
		width: 90px;
		box-sizing: border-box;
		padding: .9rem 1rem;
		margin: 0;
		background: none;
		color: #0b3a74;
		font-size: .8rem;
		font-weight: 700;
		text-transform: uppercase;
		letter-spacing: .04em;

	}

    .jpd-private-vehicle-and-regulations__table td::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 90px;
        width: 2px;
        background: #e8d48a;
    }

    .jpd-private-vehicle-and-regulations__table td:has(ul)::after,
    .jpd-private-vehicle-and-regulations__table td:has(.jpd-private-vehicle-and-regulations__section)::after {
        display: none;
    }


	.jpd-private-vehicle-and-regulations__table td > * {
		flex: 1;
		align-self: center;
		margin: 0;
		padding: .9rem 0;
	}

    .jpd-private-vehicle-and-regulations__table td:has(ul),
    .jpd-private-vehicle-and-regulations__table td:has(.jpd-private-vehicle-and-regulations__section) {
	    display: block;
	    padding: 0 0 .9rem;
    }

    .jpd-private-vehicle-and-regulations__table td:has(ul)::before,
    .jpd-private-vehicle-and-regulations__table td:has(.jpd-private-vehicle-and-regulations__section)::before {
        width: 100%;
        border-right: 0;
        border-bottom: 2px solid #e8d48a;
    }

    .jpd-private-vehicle-and-regulations__table td:has(ul) > *,
    .jpd-private-vehicle-and-regulations__table td:has(.jpd-private-vehicle-and-regulations__section) > * {
        display: block;
        padding: 0.8rem 1.8rem 0;
    }


    .jpd-private-vehicle-and-regulations__table td .jpd-private-vehicle-and-regulations__section {
        width: 100%;
    }

    .jpd-private-vehicle-and-regulations__table tbody tr:last-child td {
	    border-bottom: 1px solid #e8d48a;
    }

    .jpd-private-vehicle-and-regulations__table tbody tr:last-child td:last-child {
        border-bottom: 0;
    }

	/* Remove extra bottom spacing */
	.jpd-private-vehicle-and-regulations__table td ul {
		margin-top: .75rem;
		margin-bottom: .75rem;
	}


	/* Labels */
	.jpd-private-vehicle-and-regulations__table td:first-child::before {
		content: "No.";
	}


	.jpd-private-vehicle-and-regulations__table td:nth-child(2)::before {
		content: "Items";
	}


	.jpd-private-vehicle-and-regulations__table td:nth-child(3)::before {
		content: "Details";
	}

	.jpd-private-vehicle-and-regulations__table td:first-child {
		text-align: left;
	}
}