* {
    margin: 0;
    padding: 0;
}

h1, h2, h3 {
  font-family: 'Poppins', sans-serif;
}

body, p, li {
  font-family: 'Lato', sans-serif;
}

code, pre {
  font-family: 'Fira Code', monospace;
}

html {
    box-sizing: border-box;
    font-size: 16px;
    background: linear-gradient(135deg, #ffffff, #c3c3f3, #0046f6);
    background-size: 400% 400%;
}

header {
    top: 20px;
    background-color: #15256d;
    display: flex;
    justify-content: center;
    border-bottom: silver 5px solid;
}

.nav-bar {
    height: 3rem;
    justify-content: center;
    align-items: center;
    display: flex;
    padding: 1rem;
}

.nav-bar ul {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-bar li {
    display: inline-flex;
    flex-direction: column;
    padding: 0rem 1rem;
    color: white;
}

.nav-bar a {
    color: white;
    text-decoration: none;
}

.page-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 2rem 0 2rem;
    text-align: center;
}
 
.page-header h1, .page-header h2, .page-header h3 {
    padding-bottom: 1rem;
}

.summary-section-container, .summary-section-details-container, .summary-section-results-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 2rem;
    margin: 2rem 2rem;
}

.summary-section-item {
    text-align: center;
    border: slateblue 5px solid;
    padding: 3rem;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
}

.summary-section-item h3 {
    margin: 0.75rem;
}

.section-item-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 2rem;
    padding: 0 2rem 2rem 2rem;
    margin-bottom: 2rem;
}

.section-item-master {
    display: flex;
    justify-content: space-evenly;
}

.section-link-wrapper {
    display: flex;
    max-width: 20rem;
    height: auto;
    width: 100%
}

.section-item {
    width: 100%;
    text-align: center;
    border: slateblue 5px solid;
    padding: 3rem;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
}

.prd-embed-container, .user-journey-embed-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2rem;
    padding: 2rem;
    background-color: white; /* Solid white background for document readability against the page gradient */
    border: #0046f6 5px solid;
    border-radius: 0.5rem;
    box-sizing: border-box;
}

.prd-embed-container h3, .user-journey-embed-container h3 {
    margin-bottom: 1.5rem;
    text-align: center;
    color: #15256d; /* Matches your header nav color */
}

.iframe-wrapper {
    width: 100%;
    max-width: 900px; /* Constrains the width so it doesn't stretch awkwardly on ultra-wide monitors */
    height: 65vh; /* Responsive height based on viewport */
    min-height: 500px; /* Fallback for smaller screens */
    border: 2px solid silver;
    border-radius: 0.25rem;
    overflow: hidden; /* Ensures the iframe respects the border radius */
}

.iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none; /* Removes default browser iframe borders */
}

.footer {
    display: flex;
    justify-content: center;
    align-content: center;
    height: 4em;
    background-color: #15256d;
    position: relative;
    border-top: silver 5px solid;
}

.copyright {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
}

.copyright p {
    color: silver;
    font-size: 1.25rem;
}

/* Footer at the bottom: on a short page it sits at the foot of the window, on a long page after the content */
body {
  position: relative;
  box-sizing: border-box;
  min-height: 100vh;
  padding-bottom: calc(4em + 5px); /* room for the footer, which is 4em tall plus its 5px border */
}

footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

/* Phones: less padding inside the summary cards so the text is not squeezed into a narrow column. */
@media (max-width: 480px) {
    .summary-section-container, .summary-section-details-container, .summary-section-results-container { margin: 1.5rem 1rem; gap: 1.5rem; }
    .summary-section-item { padding: 1.5rem 1rem; }
}

/* ---- item-tag-styles (moved from inline <style>) ---- */
.item-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; margin: 0.75rem 0; }
.item-tags span { padding: 0.2rem 0.65rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700; font-family: 'Lato', sans-serif; line-height: 1.3; }
.item-tags span:nth-child(1) { background: #ede9fe; color: #5b21b6; }
.item-tags span:nth-child(2) { background: #dbeafe; color: #1e40af; }

/* Uniform card layout: same height, title slot, label slots, and Click to View position */
.section-item, .page-item { box-sizing: border-box; justify-content: flex-start !important; padding: 2rem 1.25rem !important; min-height: 15rem; font-size: 1rem; }
.section-item > :is(h2,h3,h4), .page-item > :is(h2,h3,h4) { display: flex; align-items: center; justify-content: center; min-height: 3.2rem; margin: 0 0 1rem; font-size: 1.15rem; line-height: 1.35; }
.item-tags { flex-direction: column !important; flex-wrap: nowrap !important; align-items: stretch; width: 100%; max-width: 12rem; gap: 0.5rem !important; margin: 0 0 1.25rem !important; }
.item-tags span { display: block; box-sizing: border-box; height: 1.9rem; line-height: 1.9rem !important; padding: 0 0.5rem !important; text-align: center; white-space: nowrap; }
.section-item > p, .page-item > p { margin: auto 0 0 !important; padding: 0 !important; font-size: 1rem !important; line-height: 1.4; }
.section-item > p::after, .page-item > p::after { content: ""; }
  .section-item { height: 15.75rem; min-height: 0; }
  /* Order: title, Click to View, labels */
.section-item > p, .page-item > p { order: 2; margin: 0 0 1rem !important; }
.item-tags { order: 3; margin: 0 !important; }

@media (max-width: 768px) {
  .section-item-container { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 0.75rem !important; padding: 0 0.75rem 1rem !important; margin-bottom: 1rem !important; }
  .section-item-master { min-width: 0; }
  .section-link-wrapper { max-width: none; }
  .section-item { height: 14rem !important; padding: 1rem 0.5rem !important; border-width: 3px !important; }
  .section-item > h4 { min-height: 4.1rem; font-size: 1rem !important; margin: 0 0 0.5rem !important; line-height: 1.25 !important; }
  .section-item > p { margin: 0 0 0.6rem !important; font-size: 0.9rem !important; }
  .item-tags { max-width: 100% !important; gap: 0.35rem !important; }
  .item-tags span { height: 1.65rem; line-height: 1.65rem !important; font-size: 0.7rem !important; padding: 0 0.3rem !important; overflow: hidden; text-overflow: ellipsis; }
}
