/* 0.15.29.6 overnight design batch (Fadi, November 25 2026): v2-nav */
/*
 * Navigation batch styles (new rules only; nothing above is overridden
 * outside these components):
 *  1. Sign-in page: the Renter | Owner switch (DL_Signin::toggle).
 *  2. Township rules page: search row, sort/filter row, quick tags,
 *     region tag on each card, flat list (A to Z / last checked).
 *  3. /owners/ township rules card: small search box to the rules page.
 * Colours: Harbour Navy #1C2B45 (active switch, buttons), Lake Blue
 * #44708F (links, focus), Mist #F2F5F8, Line #DCE4EC. Gold is never a
 * button. Focus rings are always visible (keyboard users).
 */

/* 1. Sign in as: Renter | Owner ------------------------------------- */
.dl-signin__toggle { display: flex; flex-direction: column; gap: 8px; }
.dl-signin__toggle-label { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #8C6F10; }
.dl-astoggle {
	display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
	margin: 0; padding: 4px; list-style: none;
	background: #F2F5F8; border: 1px solid #DCE4EC; border-radius: 999px;
}
.dl-astoggle li { margin: 0; }
.dl-astoggle__opt {
	display: flex; align-items: center; justify-content: center;
	min-height: 44px; padding: 8px 16px; border-radius: 999px;
	font-size: 16px; font-weight: 600; color: #1C2B45; text-decoration: none;
	transition: background-color .15s ease, color .15s ease;
}
.dl-astoggle__opt:hover { background: #fff; }
.dl-astoggle__opt.is-on { background: #1C2B45; color: #fff; box-shadow: 0 1px 3px rgba(28, 43, 69, .25); }
.dl-astoggle__opt:focus-visible { outline: 3px solid #44708F; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .dl-astoggle__opt { transition: none; } }

/* 2. Township rules page ---------------------------------------------- */
.dl-trules__filters { align-items: flex-end; }
.dl-trules__search { flex: 1 1 100%; min-width: 0; max-width: 100%; display: flex; flex-direction: column; gap: 6px; }
.dl-trules__search label { font-size: 15px; font-weight: 600; }
.dl-trules__searchrow { display: flex; gap: 10px; min-width: 0; }
.dl-trules__searchrow input {
	flex: 1 1 auto; width: 100%; min-width: 0; min-height: 52px; padding: 10px 16px;
	border: 1px solid #5B6B80; border-radius: 12px; background: #fff;
	font: inherit; font-size: 17px; color: #1C2B45; box-sizing: border-box;
}
.dl-trules__searchrow .dl-btn { flex: none; min-height: 52px; padding: 0 24px; }
.dl-trules__filters input:focus-visible, .dl-trules__filters select:focus-visible { outline: 3px solid #44708F; outline-offset: 1px; }
.dl-trules__filters .dl-trules__field { flex: 1 1 160px; min-width: 0; }
.dl-trules__filters .dl-trules__field select { width: 100%; min-width: 0; text-overflow: ellipsis; }
.dl-trules__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.dl-trules__tagslabel { font-size: 14px; font-weight: 600; color: #5B6B80; }
.dl-trules__chips { margin: 0; padding: 0; list-style: none; gap: 8px; }
.dl-trules__chips li { margin: 0; }
.dl-trules__chips .dl-chip { min-height: 40px; padding: 6px 14px; font-size: 14px; }
.dl-trules__chips .dl-chip:focus-visible, .dl-trules__chips .dl-chips__clear:focus-visible { outline: 3px solid #44708F; outline-offset: 2px; }
.dl-trules__chips .dl-chips__clear { color: #44708F; }
.dl-trules__results { display: flex; flex-direction: column; gap: 20px; }
.dl-trules__flat[hidden] { display: none; }
.dl-trules__itemtags { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
/* Grouped by region: the heading already names the region, so the tag is hidden. */
.dl-trules__results[data-sort="region"] .dl-trules__itemtags { display: none; }
.dl-trules__tag {
	display: inline-block; padding: 2px 10px; border-radius: 999px;
	background: #F2F5F8; border: 1px solid #DCE4EC;
	font-size: 13px; font-weight: 600; color: #1C2B45;
}
@media (max-width: 781px) {
	.dl-trules__searchrow .dl-btn { padding: 0 16px; }
	.dl-trules__filters .dl-trules__field { flex: 1 1 calc(50% - 8px); min-width: 0; }
	.dl-trules__tags { flex-direction: column; align-items: flex-start; }
	.dl-trules__chips { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
	.dl-trules__chips .dl-chip { white-space: nowrap; }
}

/* 3. /owners/ township rules card -------------------------------------- */
.dl-rclink { display: flex; flex-direction: column; gap: 8px; }
.dl-rclink label { font-size: 15px; font-weight: 600; color: #1C2B45; }
.dl-rclink__row { display: flex; gap: 10px; }
.dl-rclink__row input {
	flex: 1 1 auto; min-width: 0; min-height: 52px; padding: 10px 16px;
	border: 1px solid #5B6B80; border-radius: 12px; background: #fff;
	font: inherit; font-size: 17px; color: #1C2B45;
}
.dl-rclink__row input:focus-visible { outline: 3px solid #44708F; outline-offset: 1px; }
.dl-rclink__row .dl-btn { flex: none; min-height: 52px; padding: 0 22px; }
.dl-rclink .dl-small { margin: 4px 0 0; }
.dl-rclink .dl-small a { color: #44708F; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 781px) {
	.dl-rclink__row { flex-direction: column; }
	.dl-rclink__row .dl-btn { width: 100%; }
}
