/* =====================================================
   Kuntalehti Activation Page — External CSS (v4)
   ===================================================== */

/* --- Fonts ---
   Dinot is proprietary; use Merriweather (already loaded on kuntalehti.fi)
   as the editorial heading font, and Source Sans 3 for body text. */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700;900&family=Source+Sans+3:wght@300;400;600;700&display=swap');

/* --- Color variables --- */
:root {
  --kl-dark-blue:   #19192d; /* nav/header background */
  --kl-yellow:      #ffd400; /* primary CTA button    */
  --kl-dark:        #303042; /* dark text / headings  */
  --kl-body-text:   #333333; /* body copy             */
  --kl-medium-blue: #3788d6; /* links / secondary     */
  --kl-bg:          #ffffff;
}

/* --- Base typography --- */
body {
  font-family: 'Source Sans 3', sans-serif !important;
  color: var(--kl-body-text) !important;
  background-color: var(--kl-bg) !important;
  font-size: 17px !important;
  line-height: 1.6 !important;
}

/* --- Headings --- */
h1, h2, h3, h4,
.text-4xl,
.text-5xl,
.text-6xl,
#ingressHeader {
  font-family: 'Merriweather', serif !important;
  color: var(--kl-dark) !important;
  font-weight: 700 !important;
}

/* =====================================================
   NAV / HEADER — dark background extending to cover logo
   ===================================================== */

/* Remove the top padding that was eating into the dark bar height */
.relative.pt-6 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Remove the fixed 40px height so the nav grows with its content */
nav.relative,
nav {
  height: auto !important;
  min-height: 0 !important;
  background-color: var(--kl-dark-blue) !important;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  align-items: center !important;
}

/* Also ensure the flex child wrappers inside the nav don't add extra space */
nav > div,
nav > div > div {
  background-color: var(--kl-dark-blue) !important;
}

/* =====================================================
   LOGO
   ===================================================== */

img#logo {
  margin-top: 0 !important;    /* overrides inline style="margin-top:20px;" */
  margin-left: 20px;
  width: auto !important;
  max-width: 160px !important;
  height: auto !important;
  display: block !important;
}

/* =====================================================
   PRIMARY CTA BUTTON — Kuntalehti yellow
   ===================================================== */

button,
button[type="submit"],
.bg-amber-400,
.hover\:bg-amber-300:hover {
  background-color: var(--kl-yellow) !important;
  color: var(--kl-dark) !important;
  font-family: 'Source Sans 3', sans-serif !important;
  font-weight: 700 !important;
  border-radius: 0 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  transition: background-color 0.2s ease !important;
}
button:hover,
button[type="submit"]:hover {
  background-color: #e6be00 !important;
}

/* Override any remaining blue from earlier S3 versions */
div.rounded-md a {
  background-color: var(--kl-yellow) !important;
  color: var(--kl-dark) !important;
}

/* --- Accent / teal overrides → Kuntalehti medium blue --- */
.text-teal-400,
.text-teal-500 {
  color: var(--kl-medium-blue) !important;
}

/* =====================================================
   INPUT FIELD
   ===================================================== */

input[type="email"],
#Email {
  font-family: 'Source Sans 3', sans-serif !important;
  border: 1px solid #cccccc !important;
  border-radius: 0 !important;
  background-color: #f5f5f5 !important;
  color: var(--kl-body-text) !important;
  font-size: 16px !important;
}
input[type="email"]:focus,
#Email:focus {
  border-color: var(--kl-dark-blue) !important;
  background-color: #ffffff !important;
  outline: 2px solid var(--kl-yellow) !important;
}

/* =====================================================
   BODY TEXT & PARAGRAPH
   ===================================================== */

#ingressBody,
.text-gray-500,
.text-base {
  color: var(--kl-body-text) !important;
  font-family: 'Source Sans 3', sans-serif !important;
}

/* =====================================================
   PROFILE / SIDE IMAGE
   ===================================================== */

#profileImage {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  margin-top: 0 !important;
}

/* =====================================================
   LAYOUT
   ===================================================== */

.max-w-7xl {
  max-width: 80rem !important;
}

.xl\:pb-32 {
  padding-bottom: 4rem !important;
}

/* =====================================================
   RESPONSIVE — tablet (≤ 1024px)
   ===================================================== */

@media (max-width: 1024px) {
  img#logo {
    max-width: 130px !important;
  }
  .max-w-7xl {
    max-width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .xl\:pb-32 {
    padding-bottom: 2rem !important;
  }
  .lg\:absolute {
    position: relative !important;
    width: 100% !important;
    inset: auto !important;
  }
  .lg\:max-w-2xl {
    max-width: 100% !important;
  }
  .lg\:w-full {
    width: 100% !important;
  }
  #profileImage {
    height: 300px !important;
    object-fit: cover !important;
  }
}

/* =====================================================
   RESPONSIVE — mobile (≤ 640px)
   ===================================================== */

@media (max-width: 640px) {
  img#logo {
    max-width: 110px !important;
  }
  body {
    font-size: 15px !important;
  }
  #ingressHeader,
  .text-4xl {
    font-size: 1.75rem !important;
    line-height: 1.3 !important;
  }
  .mt-10, .sm\:mt-12, .md\:mt-16,
  .lg\:mt-20, .xl\:mt-28 {
    margin-top: 1.5rem !important;
  }
  button,
  button[type="submit"] {
    width: 100% !important;
    padding: 0.875rem 1rem !important;
    font-size: 1rem !important;
  }
  #profileImage {
    height: 200px !important;
  }
  .xl\:pb-32 {
    padding-bottom: 1.5rem !important;
  }
}