/* =========================================================================
   /digital-sustainability/ (SEO landing page), page stylesheet.

   Lovable project 4560703a. The ds-* partials in
   template-parts/sections/seo/, in the order the page renders them, plus
   this design's overrides of the shared family.

   COLOUR. This export departs from the family palette in two places, both
   mapped onto existing tokens rather than given new ones:
     surface-alt     oklch(0.975 0.006 145), a green-tinted #f4f8f4. No
                     token; drawn as --seo-alt (--rv-fog, #f4f5f3). Flagged.
     gradient-green  oklch(0.55 0.15 138) to oklch(0.74 0.19 138), the H1's
                     second line. Drawn from --seo-green-deep to --seo-green.

   TYPE. The export forces every h1, h2, h3 and display face to weight 600
   and -0.03em tracking, and h1/h2 to line-height 1.04, with !important.
   Scoped to this page's <main> below at class specificity; this file loads
   after seo-core.css, so order settles the ties.
   ========================================================================= */

.seo--digital-sustainability :where(h1, h2, h3) {
	font-weight: 600;
	letter-spacing: -0.03em;
}
.seo--digital-sustainability :where(h1, h2) { line-height: 1.04; }

/* The design's eyebrows are ink (or paper on dark), not green. */
.seo-ds-eyebrow { color: var(--seo-fg); }

.seo-ds-fg { color: var(--seo-fg); }

.seo-ds-p {
	max-width: 62ch;
	font-size: 1.0625rem;
	line-height: 1.75;
	color: var(--seo-fg-muted);
}

.seo-ds-bullets > :where(li) + :where(li) { margin-top: 12px; }
.seo-ds-bullets > :where(li),
.seo-ds-plist > :where(li) {
	display: flex;
	gap: 12px;
	font-size: 1rem;
	line-height: 1.8;
	color: var(--seo-fg-muted);
}
.seo-ds-bullets > :where(li)::before,
.seo-ds-plist > :where(li)::before {
	content: "";
	flex: none;
	width: 7px;
	height: 7px;
	margin-top: 0.45rem;
	background: var(--seo-green);
}

/* A pinned H2 at the side of an 8-column body (mission, help, quotes). */
.seo-ds-split { display: grid; gap: 48px; }
@media (min-width: 768px) {
	.seo-ds-split {
		grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
		gap: 64px;
	}
	.seo-ds-sticky {
		position: sticky;
		top: 100px;
	}
}

/* -------------------------------------------------------------- ds-hero -- */

.seo-ds-hero { text-align: center; }
.seo-ds-hero .seo-ds-hero-eyebrow {
	justify-content: center;
	margin-bottom: 40px;
}
.seo-ds-hero-h {
	max-width: none;
	margin-inline: auto;
}
.seo-ds-gradient {
	background-image: linear-gradient(90deg, var(--seo-green-deep), var(--seo-green));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.seo-ds-hero-body {
	max-width: 62ch;
	margin: 48px auto 0;
}
@media (min-width: 768px) {
	.seo-ds-hero-body { margin-top: 56px; }
}
.seo-ds-hero-body > * + * { margin-top: 24px; }
.seo-ds-hero-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 20px 40px;
	padding-top: 16px;
}

/* ----------------------------------------------------------- ds-mission -- */

.seo-ds-prose {
	padding-top: 40px;
	border-top: 1px solid var(--seo-band-rule);
}
.seo-ds-prose > * + * { margin-top: 20px; }
.seo-ds-block {
	margin-top: 40px;
	padding-top: 40px;
	border-top: 1px solid var(--seo-band-rule);
}
/* A short green lead-in, a gap, then the hairline to the edge. */
.seo-ds-block-rule {
	display: block;
	height: 1px;
	margin-bottom: 32px;
	background: linear-gradient(90deg, var(--seo-green) 0 24px, transparent 24px 40px, var(--seo-band-rule) 40px);
}
.seo-ds-block-body {
	max-width: 62ch;
	margin-top: 16px;
}
.seo-ds-block-body > * + * { margin-top: 16px; }
.seo-ds-block-body .seo-body { line-height: 1.8; }

/* --------------------------------------------------------- ds-cell-grid -- */

.seo-ds-cells-grid {
	display: grid;
	gap: 1px;
	border: 1px solid var(--seo-rule);
	background: var(--seo-rule);
}
.seo-ds-cells--2 { margin-top: 48px; }
.seo-ds-cells--3 { margin-top: 56px; }
@media (min-width: 640px) {
	.seo-ds-cells--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
	.seo-ds-cells--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.seo-ds-cell {
	padding: 32px;
	background: var(--seo-paper);
	color: var(--seo-ink);
}
@media (min-width: 768px) {
	.seo-ds-cells--2 .seo-ds-cell { padding: 40px; }
}
.seo-ds-cell-value {
	font-size: 2.75rem;
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.03em;
	color: var(--seo-green-deep);
}
@media (min-width: 768px) {
	.seo-ds-cell-value { font-size: 3.5rem; }
}
.seo-ds-cell-label {
	max-width: 40ch;
	margin-top: 20px;
	font-size: 1rem;
	line-height: 1.75;
	color: var(--seo-muted);
}
.seo-ds-cell-rule {
	display: block;
	width: 32px;
	height: 1px;
	background: var(--seo-green);
}
.seo-ds-cell-rule + .seo-h4 { margin-top: 24px; }
.seo-ds-cell .seo-body {
	margin-top: 16px;
	line-height: 1.8;
	color: var(--seo-muted);
}

/* -------------------------------------------------------------- ds-help -- */

.seo-ds-help-list { border-top: 1px solid var(--seo-band-rule); }
.seo-ds-help-row {
	display: grid;
	gap: 12px;
	padding-block: 32px;
	border-bottom: 1px solid var(--seo-band-rule);
}
@media (min-width: 768px) {
	.seo-ds-help-row {
		grid-template-columns: 14rem minmax(0, 1fr);
		gap: 40px;
	}
}
.seo-ds-help-title { line-height: 1.375; }
.seo-ds-help-q {
	font-weight: 500;
	line-height: 1.8;
	color: var(--seo-fg);
}
.seo-ds-help-a {
	margin-top: 8px;
	line-height: 1.8;
}
.seo-ds-callout {
	max-width: 60ch;
	margin-top: 40px;
	padding-left: 24px;
	border-left: 2px solid var(--seo-green);
	font-size: 1.0625rem;
	line-height: 1.75;
	color: var(--seo-fg);
}

/* ----------------------------------------------------------- ds-process -- */

.seo-ds-process-grid { display: grid; gap: 40px; }
@media (min-width: 768px) {
	.seo-ds-process-grid {
		grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
		gap: 64px;
	}
}
.seo-ds-process-side .seo-lede {
	max-width: 36ch;
	line-height: 1.8;
}
.seo-ds-steps {
	position: relative;
	display: grid;
	gap: 8px;
}
/* The line the markers sit on, from the first centre to the last. */
.seo-ds-steps::before {
	content: "";
	position: absolute;
	top: 11px;
	right: 10%;
	left: 10%;
	display: none;
	height: 1px;
	background: var(--seo-rule-dark);
}
@media (min-width: 640px) {
	.seo-ds-steps {
		grid-template-columns: repeat(var(--seo-n), minmax(0, 1fr));
		gap: 0;
	}
	.seo-ds-steps::before { display: block; }
}
.seo-ds-step { position: relative; }
.seo-ds-step-btn {
	display: flex;
	align-items: center;
	gap: 16px;
	width: 100%;
	text-align: left;
}
@media (min-width: 640px) {
	.seo-ds-step-btn {
		flex-direction: column;
		text-align: center;
	}
}
.seo-ds-step-box {
	position: relative;
	z-index: 1;
	display: grid;
	flex: none;
	place-items: center;
	width: 24px;
	height: 24px;
	border: 1px solid var(--seo-rule-dark);
	background: var(--seo-ink-deep);
	transition: border-color 0.2s ease;
}
.seo-ds-step-box::after {
	content: "";
	width: 8px;
	height: 8px;
}
.seo-ds-step-btn:hover .seo-ds-step-box { border-color: var(--seo-dark-muted); }
.seo-ds-step.is-active .seo-ds-step-box { border-color: var(--seo-green); }
.seo-ds-step.is-active .seo-ds-step-box::after { background: var(--seo-green); }
.seo-ds-step-title {
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.375;
	color: var(--seo-dark-muted);
	transition: color 0.2s ease;
}
.seo-ds-step-btn:hover .seo-ds-step-title,
.seo-ds-step.is-active .seo-ds-step-title { color: var(--seo-paper); }
.seo-ds-panel {
	display: none;
	margin-top: 40px;
	padding: 24px;
	border: 1px solid var(--seo-rule-dark);
}
.seo-ds-panel.is-active { display: block; }
@media (min-width: 768px) {
	.seo-ds-panel { padding: 40px; }
}
.seo-ds-panel-tag { color: var(--seo-green); }
.seo-ds-panel-title {
	margin-top: 16px;
	font-size: 1.5rem;
	line-height: 1.375;
	color: var(--seo-paper);
}
@media (min-width: 768px) {
	.seo-ds-panel-title { font-size: 1.875rem; }
}
.seo-ds-panel-lead {
	max-width: 56ch;
	margin-top: 20px;
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--seo-paper);
}
.seo-ds-panel-body {
	max-width: 56ch;
	margin-top: 12px;
	line-height: 1.8;
}
.seo-ds-ticks {
	display: flex;
	gap: 8px;
	margin-top: 32px;
}
.seo-ds-tick {
	flex: 1;
	height: 1px;
	background: var(--seo-rule-dark);
}
.seo-ds-tick.is-on { background: var(--seo-green); }

/* --------------------------------------------------------- ds-practices -- */

.seo-ds-practices-grid {
	display: grid;
	gap: 40px;
	margin-top: 56px;
}
@media (min-width: 768px) {
	.seo-ds-practices-grid {
		grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
		gap: 64px;
	}
}
.seo-ds-ptabs {
	display: flex;
	flex-direction: column;
	border-left: 1px solid var(--seo-band-rule);
}
.seo-ds-ptab {
	margin-left: -1px;
	padding: 16px 0 16px 24px;
	border-left: 2px solid transparent;
	font-size: 1.125rem;
	font-weight: 600;
	letter-spacing: -0.03em;
	text-align: left;
	color: var(--seo-muted);
	transition: color 0.2s ease, border-color 0.2s ease;
}
.seo-ds-ptab:hover { color: var(--seo-ink); }
.seo-ds-ptab.is-active {
	border-color: var(--seo-green);
	color: var(--seo-ink);
}
.seo-ds-ppanel {
	padding-top: 32px;
	border-top: 1px solid var(--seo-band-rule);
}
.seo-ds-ppanel-title {
	font-size: 1.5rem;
	line-height: 1.375;
}
@media (min-width: 768px) {
	.seo-ds-ppanel-title { font-size: 1.875rem; }
}
.seo-ds-ppanel-intro {
	max-width: 60ch;
	margin-top: 16px;
}
.seo-ds-plist {
	display: grid;
	column-gap: 40px;
	margin-top: 32px;
	border-top: 1px solid var(--seo-band-rule);
}
@media (min-width: 640px) {
	.seo-ds-plist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.seo-ds-plist > :where(li) {
	padding-block: 16px;
	border-bottom: 1px solid var(--seo-band-rule);
	line-height: 1.7;
}
.seo-ds-ppanel-closing { margin-top: 24px; }

/* ----------------------------------------------------------- ds-stories -- */

.seo-ds-stories-head { display: grid; gap: 40px; }
@media (min-width: 768px) {
	.seo-ds-stories-head {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: end;
		gap: 64px;
	}
}
.seo-ds-stories-grid {
	display: grid;
	gap: 40px;
	margin-top: 56px;
}
@media (min-width: 768px) {
	.seo-ds-stories-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 48px;
	}
}
.seo-ds-story {
	padding-top: 32px;
	border-top: 1px solid var(--seo-band-rule);
}
.seo-ds-story-link { display: block; }
.seo-ds-story-shot {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 12rem;
	padding: 40px;
	overflow: hidden;
	border-bottom: 2px solid transparent;
	background: var(--seo-ink);
	transition: border-color 0.3s ease;
}
@media (min-width: 768px) {
	.seo-ds-story-shot { height: 16rem; }
}
.seo-ds-story-link:hover .seo-ds-story-shot { border-color: var(--seo-green); }
.seo-ds-story-logo {
	width: auto;
	max-width: 70%;
	max-height: 64px;
	object-fit: contain;
}
.seo-ds-story-meta {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 24px;
	color: var(--seo-green-deep);
}
.seo-ds-story-sep { color: color-mix(in oklab, var(--seo-muted) 50%, transparent); }
.seo-ds-story-year { color: var(--seo-muted); }
.seo-ds-story-title {
	margin-top: 16px;
	line-height: 1.375;
	transition: color 0.3s ease;
}
@media (min-width: 768px) {
	.seo-ds-story-title { font-size: 1.5rem; }
}
.seo-ds-story-link:hover .seo-ds-story-title { color: var(--seo-green-deep); }
.seo-ds-stories-foot { margin-top: 48px; }

/* ------------------------------------------------------------ ds-quotes -- */

.seo-ds-quotes-list { border-top: 1px solid var(--seo-band-rule); }
.seo-ds-quote {
	padding-block: 40px;
	border-bottom: 1px solid var(--seo-band-rule);
}
.seo-ds-quote-text {
	padding-left: 24px;
	border-left: 2px solid var(--seo-green);
	font-size: 1.0625rem;
	line-height: 1.8;
	color: var(--seo-fg);
}
.seo-ds-quote-by {
	margin-top: 24px;
	padding-left: 24px;
}
.seo-ds-quote-author {
	display: block;
	font-weight: 600;
	color: var(--seo-fg);
}
.seo-ds-quote-role {
	display: block;
	margin-top: 8px;
	color: var(--seo-fg-muted);
}

/* ----------------------------------------------------------- ds-contact -- */

.seo-ds-contact-sub {
	margin-top: 32px;
	font-size: 1.5rem;
	line-height: 1.375;
}
.seo-ds-contact-intro { margin-top: 16px; }

/* --------------------------------------------------------------- ds-faq -- */

.seo-ds-faq-list {
	margin-top: 48px;
	border-top: 1px solid var(--seo-band-rule);
}
.seo-ds-faq-item { border-bottom: 1px solid var(--seo-band-rule); }
.seo-ds-faq-q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-block: 24px;
	list-style: none;
	cursor: pointer;
}
.seo-ds-faq-q::-webkit-details-marker { display: none; }
.seo-ds-faq-title { line-height: 1.556; }
.seo-ds-faq-chev {
	flex: none;
	width: 16px;
	height: 16px;
	color: var(--seo-muted);
	transition: transform 0.2s ease;
}
.seo-ds-faq-item[open] .seo-ds-faq-chev { transform: rotate(180deg); }
.seo-ds-faq-a {
	padding-bottom: 24px;
	line-height: 1.8;
}

/* ------------------------------------------------------------ close-cta -- */

/* Both closing bands are ink here, not the partial's deepest ink. */
.seo-close { background: var(--seo-ink); }
.seo-close .seo-eyebrow {
	margin-bottom: 32px;
	color: var(--seo-fg);
}
.seo--digital-sustainability .seo-close-h { line-height: 1.04; }

/* "Sustainability is ongoing": a section H2 rather than the closing size,
   its CTA aligned to the foot of the copy. */
.seo--digital-sustainability :where(#ongoing) .seo-close-grid { align-items: end; }
.seo--digital-sustainability :where(#ongoing) .seo-close-h {
	max-width: 48rem;
	font-size: clamp(32px, 3.1vw, 44px);
}
.seo--digital-sustainability :where(#ongoing) .seo-lede { max-width: none; }

/* "Next step": copy and actions stacked, actions in a row. */
.seo--digital-sustainability :where(#next-step) .seo-close-grid { grid-template-columns: minmax(0, 1fr); }
.seo--digital-sustainability :where(#next-step) .seo-close-h { max-width: 24ch; }
.seo--digital-sustainability :where(#next-step) .seo-lede {
	max-width: 48ch;
	margin-top: 32px;
	font-size: 1.0625rem;
	line-height: 1.75;
}
.seo--digital-sustainability :where(#next-step) .seo-close-actions {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px 40px;
}
