/* =========================================================================
   GSA — service.css  (Service Page template)

   Sidebar directory + header + 3 tabs + PDF preview dialog.
   Colours follow the site tokens in main.css.
   ========================================================================= */

.gsa-lw {
	--lw-radius-lg: 18px;
	--lw-radius-md: 12px;
	--lw-radius-sm: 8px;
	--lw-shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
	--lw-shadow-md: 0 8px 24px rgba(16, 24, 40, .08);
	--lw-shadow-lg: 0 20px 48px rgba(16, 24, 40, .16);
	padding: clamp(28px, 5vw, 48px) var(--gsa-gutter) 72px;
	color: var(--gsa-ink);
}
.gsa-lw ul, .gsa-lw ol { list-style: none; margin: 0; padding: 0; }
.gsa-lw .gsa-ico { display: block; flex-shrink: 0; width: 20px; height: 20px; }

/* Layout */
.gsa-lw__shell { max-width: var(--gsa-max); margin: 0 auto; display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }

/* Sidebar */
.gsa-lw__sidebar {
	position: sticky; top: 24px; padding: 16px;
	background: var(--gsa-surface); border: 1px solid var(--gsa-line); border-radius: var(--lw-radius-lg); box-shadow: var(--lw-shadow-sm);
}
.gsa-lw__mobile-toggle {
	display: none; width: 100%; align-items: center; justify-content: space-between; gap: 12px;
	padding: 14px 16px; background: var(--gsa-surface); border: 1px solid var(--gsa-line); border-radius: var(--lw-radius-md);
	box-shadow: var(--lw-shadow-sm); font-size: 15px; font-weight: 600; color: var(--gsa-ink);
}
.gsa-lw__mobile-toggle-label { display: flex; align-items: center; gap: 10px; min-width: 0; }
.gsa-lw__mobile-toggle .gsa-ico { width: 18px; height: 18px; color: var(--gsa-accent); transition: transform .2s; }
.gsa-lw__mobile-toggle[aria-expanded="true"] .gsa-lw__chevron { transform: rotate(180deg); }
.gsa-lw__sidebar-panel { display: none; }

.gsa-lw__search { position: relative; margin-bottom: 16px; }
.gsa-lw__search .gsa-ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--gsa-soft); }
.gsa-lw__search input {
	width: 100%; padding: 10px 12px 10px 38px; border: 1px solid var(--gsa-line); border-radius: var(--lw-radius-sm);
	font-size: 14px; background: var(--gsa-bg); outline: 0; transition: border-color .15s, background .15s;
}
.gsa-lw__search input:focus { border-color: var(--gsa-accent); background: var(--gsa-surface); }

.gsa-lw__group-label {
	padding: 16px 8px 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em;
	text-transform: uppercase; color: var(--gsa-soft);
}
.gsa-lw__group:first-child .gsa-lw__group-label { padding-top: 2px; }
.gsa-lw__nav-item {
	display: flex; align-items: center; gap: 12px; padding: 9px 8px; border-radius: var(--lw-radius-sm);
	border-left: 3px solid transparent; font-size: 14.5px; font-weight: 500; color: var(--gsa-muted);
	transition: background .15s, color .15s, border-color .15s;
}
.gsa-lw__nav-item:hover { background: var(--gsa-bg); color: var(--gsa-ink); }
.gsa-lw__nav-icon {
	flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
	background: var(--gsa-bg); color: var(--gsa-accent);
}
.gsa-lw__nav-icon .gsa-ico { width: 16px; height: 16px; }
.gsa-lw__nav-item.is-active { background: var(--gsa-accent-tint); color: var(--gsa-accent-dark); font-weight: 700; border-left-color: var(--gsa-accent); }
.gsa-lw__nav-item.is-active .gsa-lw__nav-icon { background: var(--gsa-accent); color: #fff; }
.gsa-lw__nav-empty { padding: 18px 10px; text-align: center; font-size: 13.5px; color: var(--gsa-soft); }

/* Main */
.gsa-lw__main { min-width: 0; }
.gsa-lw__breadcrumb { margin-bottom: 16px; font-size: 13px; font-weight: 500; color: var(--gsa-soft); }
.gsa-lw__breadcrumb a:hover { color: var(--gsa-accent-dark); }
.gsa-lw__crumb-current { color: var(--gsa-accent-dark); font-weight: 600; }

.gsa-lw__header {
	margin-bottom: 24px; padding: clamp(22px, 4vw, 36px);
	background: var(--gsa-surface); border: 1px solid var(--gsa-line); border-radius: var(--lw-radius-lg); box-shadow: var(--lw-shadow-sm);
}
.gsa-lw__eyebrow {
	display: inline-block; margin-bottom: 12px; padding: 5px 12px; border-radius: 999px;
	background: var(--gsa-accent-tint); color: var(--gsa-accent-dark);
	font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.gsa-lw__title { margin: 0 0 16px; font-size: clamp(28px, 4vw, 40px); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.gsa-lw__intro { margin: 0 0 24px; max-width: 68ch; font-size: 16.5px; font-weight: 300; line-height: 1.75; color: var(--gsa-muted); }
.gsa-lw__stats { display: flex; flex-wrap: wrap; gap: 12px; }
.gsa-lw__stat {
	display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
	background: var(--gsa-bg); border: 1px solid var(--gsa-line); font-size: 13.5px; font-weight: 600;
}
.gsa-lw__stat .gsa-ico { width: 16px; height: 16px; color: var(--gsa-accent); }
.gsa-lw__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* Tabs */
.gsa-lw__tabs {
	display: flex; gap: 4px; margin-bottom: 24px; padding: 4px; overflow-x: auto;
	background: var(--gsa-surface); border: 1px solid var(--gsa-line); border-radius: 999px;
}
.gsa-lw__tab {
	flex: 1 1 auto; white-space: nowrap; padding: 11px 18px; border: 0; border-radius: 999px; background: transparent;
	font-size: 14.5px; font-weight: 600; color: var(--gsa-muted); transition: background .18s, color .18s, box-shadow .18s;
}
.gsa-lw__tab:hover { color: var(--gsa-ink); }
.gsa-lw__tab.is-active { background: var(--gsa-accent); color: #fff; font-weight: 700; box-shadow: var(--lw-shadow-sm); }

.gsa-lw__panels {
	padding: clamp(22px, 4vw, 36px);
	background: var(--gsa-surface); border: 1px solid var(--gsa-line); border-radius: var(--lw-radius-lg); box-shadow: var(--lw-shadow-sm);
}
.gsa-lw__panel.is-active { animation: gsa-lw-fade .25s ease; }
@keyframes gsa-lw-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.gsa-lw__panel-heading { margin: 0 0 16px; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.gsa-lw__panel-body { margin: 0 0 32px; max-width: 72ch; font-size: 15.5px; font-weight: 300; line-height: 1.75; color: var(--gsa-muted); }
.gsa-lw__panel-body p { margin: 0 0 1em; }
.gsa-lw__panel-body p:last-child { margin-bottom: 0; }
.gsa-lw__content { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--gsa-line); }

/* Service tab: features */
.gsa-lw__features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.gsa-lw__feature {
	display: flex; gap: 12px; padding: 16px; border: 1px solid var(--gsa-line); border-radius: var(--lw-radius-md);
	background: var(--gsa-bg); transition: transform .18s, box-shadow .18s, border-color .18s;
}
/* info tile, not a link: no hover effect */
.gsa-lw__feature-icon {
	flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
	background: var(--gsa-accent-tint); color: var(--gsa-accent-dark);
}
.gsa-lw__feature-icon .gsa-ico { width: 19px; height: 19px; }
.gsa-lw__feature-title { margin: 0 0 4px; font-size: 14.5px; font-weight: 700; }
.gsa-lw__feature-text { font-size: 13.5px; line-height: 1.6; color: var(--gsa-muted); }

/* Process tab: stepper */
.gsa-lw__step { position: relative; display: flex; gap: 16px; padding-bottom: 32px; }
.gsa-lw__step:last-child { padding-bottom: 0; }
.gsa-lw__step-line { position: absolute; left: 17px; top: 36px; bottom: 0; width: 2px; background: var(--gsa-line); }
.gsa-lw__step:last-child .gsa-lw__step-line { display: none; }
.gsa-lw__step-num {
	position: relative; z-index: 1; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; background: var(--gsa-accent); color: #fff; font-size: 14px; font-weight: 700;
}
.gsa-lw__step-body { flex: 1; padding-top: 4px; }
.gsa-lw__step-top { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.gsa-lw__step-title { margin: 0; font-size: 15.5px; font-weight: 700; }
.gsa-lw__step-duration {
	display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; white-space: nowrap;
	background: var(--gsa-accent-tint); color: var(--gsa-accent-dark); font-size: 12px; font-weight: 700;
}
.gsa-lw__step-duration .gsa-ico { width: 12px; height: 12px; }
.gsa-lw__step-text { font-size: 14px; line-height: 1.65; color: var(--gsa-muted); }

/* Download tab */
.gsa-lw__docs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.gsa-lw__doc {
	display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--gsa-line);
	border-radius: var(--lw-radius-md); background: var(--gsa-bg); transition: transform .18s, box-shadow .18s, border-color .18s;
}
/* row holds its own buttons: no hover on the row itself */
.gsa-lw__doc-icon {
	flex-shrink: 0; width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
	background: var(--gsa-danger-tint); color: var(--gsa-danger); font-size: 12px; font-weight: 800; letter-spacing: .02em;
}
.gsa-lw__doc-info { flex: 1; min-width: 0; }
.gsa-lw__doc-title { margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 700; }
.gsa-lw__doc-meta { font-size: 12.5px; color: var(--gsa-soft); }
.gsa-lw__doc-actions { display: flex; gap: 6px; flex-shrink: 0; }
.gsa-lw__icon-btn {
	width: 34px; height: 34px; border-radius: var(--lw-radius-sm); display: flex; align-items: center; justify-content: center;
	border: 1px solid var(--gsa-line); background: var(--gsa-surface); color: var(--gsa-muted); transition: background .15s, color .15s, border-color .15s;
}
.gsa-lw__icon-btn:hover { background: var(--gsa-accent); border-color: var(--gsa-accent); color: #fff; }
.gsa-lw__icon-btn .gsa-ico { width: 16px; height: 16px; }

/* Preview dialog (native <dialog>: focus trap + Escape built in) */
.gsa-lw__modal {
	width: min(760px, calc(100% - 32px)); max-height: min(860px, 90vh); padding: 0;
	border: 0; border-radius: var(--lw-radius-lg); box-shadow: var(--lw-shadow-lg); overflow: hidden;
	color: var(--gsa-ink);
}
.gsa-lw__modal[open] { display: flex; flex-direction: column; animation: gsa-lw-fade .22s ease; }
.gsa-lw__modal::backdrop { background: rgba(10, 14, 25, .55); }
.gsa-lw__modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--gsa-line); }
.gsa-lw__modal-head h3 { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15.5px; font-weight: 700; }
.gsa-lw__modal-close {
	flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; border: 0; display: flex; align-items: center; justify-content: center;
	background: var(--gsa-bg); color: var(--gsa-muted);
}
.gsa-lw__modal-close .gsa-ico { width: 15px; height: 15px; }
.gsa-lw__modal-close:hover { background: var(--gsa-inverse); color: var(--gsa-on-inverse); }
.gsa-lw__modal-body { flex: 1; min-height: 0; padding: 18px; background: var(--gsa-bg); }
.gsa-lw__modal-body iframe { display: block; width: 100%; height: min(640px, 66vh); border: 1px solid var(--gsa-line); border-radius: var(--lw-radius-sm); background: var(--gsa-surface); }
.gsa-lw__modal-foot { display: flex; justify-content: flex-end; padding: 14px 18px; border-top: 1px solid var(--gsa-line); }
.gsa-lw__modal-foot .gsa-ico { width: 16px; height: 16px; }

/* Responsive */
@media (max-width: 900px) {
	.gsa-lw__shell { grid-template-columns: 1fr; }
	.gsa-lw__sidebar { display: none; }
	.gsa-lw__mobile-toggle { display: flex; max-width: var(--gsa-max); margin-inline: auto; }
	.gsa-lw__sidebar-panel {
		display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease;
		max-width: var(--gsa-max); margin: 10px auto 18px;
	}
	.gsa-lw__sidebar-panel > div { overflow: hidden; }
	.gsa-lw__sidebar-panel.is-open { grid-template-rows: 1fr; }
	.gsa-lw__sidebar-inner { padding: 16px; background: var(--gsa-surface); border: 1px solid var(--gsa-line); border-radius: var(--lw-radius-lg); box-shadow: var(--lw-shadow-md); }
}
@media (max-width: 620px) {
	.gsa-lw__features, .gsa-lw__docs { grid-template-columns: 1fr; }
	.gsa-lw__tab { padding: 10px 14px; font-size: 13.5px; }
}

/* Documents-required checklist (Service tab) */
.gsa-lw__subheading { margin: 32px 0 14px; font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.gsa-lw__reqs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.gsa-lw__reqs li { position: relative; padding-left: 28px; font-size: 14px; line-height: 1.55; color: var(--gsa-muted); }
.gsa-lw__reqs li::before {
	content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 6px;
	background: var(--gsa-accent-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 10.5 8.5 14 15 7' stroke='%233450DB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
@media (max-width: 620px) { .gsa-lw__reqs { grid-template-columns: 1fr; } }

/* v1.2: 16px search input on phones (stops iOS zoom on focus). */
@media (max-width: 720px) {
	.gsa-lw__search input { font-size: 16px; }
}

/* v1.7.1 — More breathing room */
.gsa-lw { padding: clamp(32px, 4vw, 64px) var(--gsa-gutter) var(--gsa-space-section, 96px); }
.gsa-lw__shell { gap: clamp(24px, 3vw, 48px); grid-template-columns: 290px minmax(0, 1fr); }
.gsa-lw__sidebar-inner { padding: 20px; }
.gsa-lw__nav-item { padding: 11px 10px; }
.gsa-lw__breadcrumb { margin-bottom: 20px; }
.gsa-lw__header { margin-bottom: 28px; padding: clamp(26px, 4vw, 52px); }
.gsa-lw__stats { gap: 10px; margin-top: 4px; }
.gsa-lw__actions { margin-top: 32px; gap: 12px; }
.gsa-lw__tabs { margin-bottom: 28px; }
.gsa-lw__panels { padding: clamp(26px, 4vw, 52px); }
.gsa-lw__features, .gsa-lw__docs { gap: 20px; }
.gsa-lw__feature, .gsa-lw__doc { padding: 20px 22px; gap: 14px; }
.gsa-lw__content { margin-top: 40px; padding-top: 36px; }
.gsa-lw__step { padding-bottom: 40px; gap: 20px; }
.gsa-lw__reqs { gap: 12px 32px; }
@media (max-width: 900px) {
	.gsa-lw__shell { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
	.gsa-lw__features, .gsa-lw__docs { gap: 14px; }
}
