/*
Color palette
https://colorhunt.co/palette/e8edf22c3947547a95c2a56d
*/
:root {
  --primary-bg-color: #f8f9fa;
  --primary-text-color: #547A95;
  --secondary-text-color: #667085;
  --primary-forground-color: #2C3947;
  --primary-boarder-color: #547A95;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
  background: var(--primary-bg-color);
  color: var(--primary-text-color);
  display: flex;
  flex-direction: column;
}

page-header,
page-footer {
  display: block;
  width: 100%;
}
 
header {
  padding: 24px 30px;
  background: white;
  border-bottom: 1px solid var(--primary-boarder-color);
}

.header-inner {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.team-name {
  font-weight: bold;
  color: var(--primary-forground-color);
  white-space: nowrap;
}
 
header h1 {
  font-size: 1.8rem;
  margin: 0 0 4px 0;
  color: var(--primary-text-color);
}
 
header p {
  margin: 0;
  color: var(--secondary-text-color);
  font-size: 0.9rem;
}

header img,
header .logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  font-size: 3.8rem;
  line-height: 1;
}

footer {
  width: 100%;
  box-sizing: border-box;
  padding: 20px;
  color: var(--secondary-text-color);
  background: white;
  border-top: 1px solid var(--primary-boarder-color);
}

footer p {
  margin: 4px 0;
}

.footer-inner {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.dashboard {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 36px;
  flex: 1;
}

.dashboard-intro {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 20px;
  padding: 22px;
  background: white;
  border: 1px solid #d7dee7;
  border-radius: 12px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary-text-color);
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
}

.dashboard-intro h2 {
  margin: 0;
  color: var(--primary-forground-color);
  font-size: 1.6rem;
}

.intro-text {
  max-width: 360px;
  margin: 0;
  color: var(--secondary-text-color);
  line-height: 1.5;
}
 
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr)) 320px;
  gap: 20px;
}
 
.widget {
  background: white;
  padding: 22px;
  border-radius: 12px;
  border: 1px solid #d7dee7;
  border-top: 4px solid var(--primary-boarder-color);
  transition: transform 0.2s, box-shadow 0.2s;
}

.long-widget {
  grid-column: 1 / -1;
}

.widget:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(44, 57, 71, 0.08);
}

.main-widget,
.ad-card {
  min-height: 360px;
}

.widget h2 {
  color: var(--primary-forground-color);
  font-size: 1.1rem;
  margin: 0 0 14px 0;
}

.widget p,
.ad-placeholder {
  color: #667085;
  line-height: 1.5;
}

.ad-placeholder {
  border-radius: 8px;
  display: grid;
  min-height: 250px;
  place-items: center;
  text-align: center;
}

.ad-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.ad-content {
  width: 100%;
  text-align: left;
}

.ad-content span {
  display: block;
  margin-bottom: 14px;
  color: var(--primary-text-color);
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.ad-content h2 {
  margin-bottom: 6px;
}

.ad-content p {
  margin: 0;
  color: #667085;
  line-height: 1.4;
}

.ad-widget-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}

.ad-widget-wrap ad-widget {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 850px) {
  .dashboard-intro {
    display: block;
  }

  .intro-text {
    margin-top: 12px;
    max-width: none;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    display: block;
    text-align: center;
  }

  .header-inner {
    align-items: flex-start;
  }

  .team-name {
    margin-top: 4px;
  }
}
