:root{
  --header-bg: #8380C5;
  --red: #D71E3E;
  --blue: #0076BD;
  --green: #A1CF5F;
  --resource-bg: #722A82;
  --footer-bg: #17365E;
  --white: #ffffff;
  --ink: #111318;
  --radius-lg: 16px;
  --gap-padding: 36px;
  --radius-md: 12px;
  --shadow: 0 12px 30px rgba(0,0,0,.15);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: 'Open Sans', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
}

img {
	height: auto;
	max-width: 100%;
}

/* Layout helpers */
.container{
	position: relative;
	margin-inline:auto;
	width: min(1200px, 100% - 48px);
}

/* Hero */
.hero {
  position:relative;
  background: var(--header-bg);
  color: var(--white);
  padding: 0px 0 var(--gap-padding);
  overflow: hidden;
}

.dsbn-logo {
  position:absolute;
  left: 0px;
  top: 0px;
  width: 160px; /* swap to exact export size */
  height: auto;
	z-index: 99;
}

.hero-inner{
  display:grid;
  grid-template-columns: 1fr;
  align-items: end;
  gap: 24px;
  min-height: 220px;
}

.hero-copy h1 {
  padding-top: 240px;
  margin: 0;
  font-weight: 800;
  color: var(--white);
  font-size: 4em;
  line-height:1.1;
}

.hero-copy h2 {
	color: var(--white);
	font-size: 2em;
	margin: 0.5rem 0;
}

.hero-art {
	padding-top: 30px;
}

.hero-art img{
  width: 100%;
  height: auto;
  display:block;
  max-width: 440px;
  margin-left: auto;
}

/* Tiles */
.tiles{
  display:grid; gap: 18px;
  grid-template-columns: 1fr;
  padding: var(--gap-padding) 0 0;
}

.tile {
  position: relative; border-radius: 18px; overflow:hidden;
  min-height: 220px;
  box-shadow: var(--shadow);
  cursor: pointer;
	text-align: center;
}
.tile-inner{ padding: 24px; position:relative; height:100%; display:grid; gap:18px; align-content:space-between; }

.tile-icon {
	align-items: center;
	display: flex;
	justify-content: center;
	margin: 0 auto;
	width: 100%;
	height:100px;
}

.tile-icon img {
	max-width: 140px;
}

.tile-icon.safety img {
	max-width: 100px;
}

.tile-icon.guidelines img {
	max-width: 100px;
}

.tile h2 {
  margin: 0;
  color: var(--white);
  font-weight: 800;
  font-size: 1.2rem;
}
.tile-red{ background: var(--red); }
.tile-blue{ background: var(--blue); }
.tile-green{ background: var(--green); }

/* Hover overlay */
.tile-overlay{
  position:absolute; inset:0;
  display:grid; place-items:center;
  background: rgba(0,0,0,.5);
  opacity:0; transition: opacity .2s ease-in-out;
}
.tile:hover .tile-overlay, .tile:focus-within .tile-overlay{ opacity:1; }
.tile-cta{
  background: #000; color: var(--white);
  padding: 12px 16px; border-radius: 999px; border: none;
  font-weight: 700;
  box-shadow: var(--shadow);
}

/* Statement */
.statement{
	padding: var(--gap-padding) 0;
	min-height: 1em;
}

.page-content {
	min-height: 1em;
}

.statement p {
	line-height: 2em;
	margin: 0 auto;
	font-weight: 600;
}

.statement p a {
	color: var(--ink);
}

/* Resources row */
.resources{
  display:grid; gap: 16px;
  grid-template-columns: 1fr;
  padding: 0 0 var(--gap-padding);
}

.resource{
  display:flex; align-items:center; gap: 16px;
  text-decoration:none; background: var(--resource-bg); color: var(--white);
  padding: 16px 18px; border-radius: 14px; box-shadow: var(--shadow);
  font-weight: 700;
}
.resource-icon{ width: 120px; height:auto; }
.resource-text{
	line-height:1.25;
	text-align: center;
	width: 100%;
}

/* Footer */
.site-footer{ background: var(--footer-bg); color: var(--white); }
.footer-inner{ display:flex; justify-content:center; align-items:center; padding: var( --gap-padding) 0; }
.footer-logo{
	max-width: 350px; height:auto;
	width: 100%;
}

/* Modals */
.modal[hidden]{ display:none; }
.modal{
  position: fixed;
  inset: 0;
  display:grid; place-items:center;
  background: rgba(0,0,0,.5);
  padding: 20px;
  z-index: 50;
}
.modal-panel{
  background: #fff; color:#111;
  width: min(720px, 100%);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 20px 20px 16px;
  position:relative;
}
.modal-close{
  position:absolute; right: 10px; top: 10px;
  border:none; background: transparent; font-size: 28px; line-height:1; cursor:pointer;
}
.modal h3{ margin: 0 0 10px; font-weight:800; }
.modal-body{ font-weight:600; }


@media(min-width: 1024px){
  .resources{ grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px){
  .tiles{ grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px){
  .hero-inner{
		grid-template-columns: 1.2fr .8fr;
	}
}


@media (max-width: 768px){
	.dsbn-logo {
		width: 100px; /* swap to exact export size */
	}

	.hero-copy h1 {
		font-size: clamp(45px, 4vw + 8px, 56px);
		padding: 10px 0 0 120px;
	}

	.hero-copy h2 {
		font-size: 1.5em;
		margin: 0 0 1rem 0;
		padding: 10px 0 0 120px;
	}

	.hero-art {
		margin: 0 auto;
		padding: 0;
	}

	.hero-art img {
		max-width: 300px;
	}

	.tile-icon {
		max-width: 120px;
	}
}

@media (max-width: 420px){
	.dsbn-logo {
		width: 80px; /* swap to exact export size */
	}

	.hero-copy h1 {
		font-size: clamp(35px, 4vw + 8px, 56px);
		padding: 10px 0 0 100px;
	}

	.hero-copy h2 {
		padding: 10px 0 0 100px;
	}

	.tile-icon {
		max-width: 100px;
	}

	.resource-icon {
		width: 80px;
		height: auto;
	}

	.hero-art img {
		max-width: 200px;
	}
}


/*a11y*/

#a11y-toolbar {
	position: fixed;
	right: 12px;
	bottom: 12px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	background: rgba(0, 0, 0, 0.75);
	color: #fff;
	padding: 6px;
	border-radius: 10px;
	z-index: 10001;
	font-size: 0.9rem;
}

	#a11y-toolbar button {
		font: inherit;
		border: 2px solid #fff;
		background: transparent;
		color: #fff;
		padding: 4px 6px;
		border-radius: 6px;
		cursor: pointer;
	}

		#a11y-toolbar button:focus-visible {
			outline: 3px solid #0ff;
			outline-offset: 2px;
		}

@media (max-width: 600px) {
	#a11y-toolbar {
		flex-direction: column;
		right: 6px;
		bottom: 6px;
		padding: 4px;
	}

		#a11y-toolbar button {
			font-size: 0.8rem;
			padding: 3px 5px;
		}
}


.skip-link {
	position: absolute;
	left: -999px;
	top: 0;
	background: #fff;
	color: #000;
	padding: 8px 12px;
	z-index: 10000
}

	.skip-link:focus {
		left: 8px;
		box-shadow: 0 0 0 3px rgba(0, 0, 0, .3)
	}

:focus-visible {
	outline: 3px solid #000;
	outline-offset: 2px
}

@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
		scroll-behavior: auto !important
	}
}

html.high-contrast,
html.high-contrast body {
	filter: contrast(115%) saturate(110%);
	background: #000 !important;
	color: #fff !important
}

	html.high-contrast a {
		color: #0ff !important
	}

	html.high-contrast button,
	html.high-contrast input,
	html.high-contrast select,
	html.high-contrast textarea {
		background: #111 !important;
		color: #fff !important;
		border-color: #fff !important
	}
