/*!
Theme Name: iGen Child
Template: kadence
Description: A custom theme for the Kadence
*/

:root {
    /* Font family */
    --font-primary: "Poppins", "DM Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

    /* Brand colors */
    --black: #000000;
    --shadow: #2D3648;
    --plum: #5C2960;
    --lavender: #916194;
    --pistachio: #A4C939;
    --white: #FFFFFF;

    /* Body defaults */
    --body-size: 1.125rem; /* 18px */
    --body-line: 1.6;

    /* Heading scale (brand ranges) */
    --h1-size: clamp(3.25rem, 2.6rem + 2vw, 5.25rem);   /* 52–84px */
    --h2-size: clamp(2.375rem, 1.9rem + 1.6vw, 4.25rem);/* 38–68px */
    --h3-size: clamp(1.25rem, 1.05rem + 0.7vw, 2rem);   /* 20–32px */
    --h4-size: clamp(1rem, 0.95rem + 0.5vw, 1.875rem);  /* 16–30px */
}

body {
    font-family: var(--font-primary);
    font-size: var(--body-size);
    font-weight: 400;
    line-height: var(--body-line);
    color: var(--shadow);
    text-transform: none;
}

p,
li,
td,
th {
    font-family: var(--font-primary);
    font-size: var(--body-size);
    font-weight: 400;
    line-height: var(--body-line);
    color: var(--shadow);
}

/* Small text */
small,
.small {
  font-weight: 400;
}

/* =================================================
   Headings
   ================================================= */

h1,
h2,
h3,
h4 {
    font-family: var(--font-primary);
    margin: 0 0 0.5em;
}

/* H1 Headline Case, Bold */
h1 {
    font-size: var(--h1-size);
    font-weight: 700;
    line-height: 1.15;
    color: var(--shadow);
    text-transform: capitalize;
}

/* H2 Sentence Case, Regular */
h2 {
    font-size: var(--h2-size);
    font-weight: 400;
    line-height: 1.2;
    color: var(--plum);
    text-transform: none;
}

/* H3 Headline Case, Bold */
h3 {
    font-size: var(--h3-size);
    font-weight: 700;
    line-height: 1.25;
    color: var(--shadow);
    text-transform: capitalize;
}

/* H4 Headline Case, Regular */
h4 {
    font-size: var(--h4-size);
    font-weight: 400;
    line-height: 1.3;
    color: var(--shadow);
    text-transform: capitalize;
}

a {
    color: var(--pistachio);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

a:hover,
a:focus {
    color: var(--plum);
}

/* =================================================
   Resource Article page template
   ================================================= */

.footer-widget6 a{
    color: var(--wp--preset--color--theme-palette-3) !important;
}

.igen-resource-article-area {
    background: var(--white);
}

.igen-resource-article-shell {
    width: min(calc(100% - 2rem), 760px);
    margin: 0 auto;
    padding: 2.5rem 0 5rem;
}

.igen-resource-article {
    background: transparent;
}

.igen-resource-article-featured {
    display: block;
    margin: 0 0 1.75rem;
    overflow: hidden;
    border-radius: 4px;
}

.igen-resource-article-featured-image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    position: static;
}

.igen-resource-article-caption {
    margin-top: 0.5rem;
    color: var(--shadow);
    font-size: 0.875rem;
    line-height: 1.5;
    opacity: 0.75;
}

.igen-resource-article-header {
    margin-bottom: 1.5rem;
}

.igen-resource-article-header .entry-title {
    margin-bottom: 0.75rem;
    color: var(--shadow);
    font-size: clamp(2.25rem, 1.85rem + 1.25vw, 3rem);
    line-height: 1.15;
    text-transform: none;
}

.igen-resource-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.65rem;
    color: var(--shadow);
    font-size: 0.875rem;
    line-height: 1.4;
}

.igen-resource-article-meta a {
    color: var(--shadow);
    text-decoration: none;
}

.igen-resource-article-meta a:hover,
.igen-resource-article-meta a:focus {
    color: var(--plum);
    text-decoration: underline;
}

.igen-resource-article-meta .posted-by {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.igen-resource-article-meta .author-avatar,
.igen-resource-article-meta .author-image,
.igen-resource-article-meta .avatar {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
}

.igen-resource-article-meta .avatar {
    vertical-align: middle;
}

.igen-resource-article .entry-content {
    color: var(--shadow);
}

.igen-resource-article .entry-content p,
.igen-resource-article .entry-content li,
.igen-resource-article .entry-content td,
.igen-resource-article .entry-content th {
    font-size: 1rem;
    line-height: 1.7;
}

.igen-resource-article .entry-content h2 {
    margin-top: 2.25rem;
    margin-bottom: 1rem;
    color: var(--shadow);
    font-size: clamp(1.75rem, 1.5rem + 0.75vw, 2.35rem);
    font-weight: 500;
    line-height: 1.2;
}

.igen-resource-article .entry-content h3 {
    margin-top: 1.75rem;
    color: var(--shadow);
    font-size: clamp(1.25rem, 1.1rem + 0.45vw, 1.65rem);
}

.igen-resource-article .entry-content table {
    width: 100%;
    margin: 1.25rem 0 2rem;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.igen-resource-article .entry-content th,
.igen-resource-article .entry-content td {
    padding: 0.45rem 0.6rem;
    border: 1px solid rgba(92, 41, 96, 0.25);
}

.igen-resource-article .entry-content th {
    font-weight: 500;
    text-align: center;
}

.igen-resource-article-author {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(45, 54, 72, 0.16);
}

.igen-resource-article-author .entry-author-profile {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 0.35rem 1rem;
    align-items: start;
}

.igen-resource-article-author .entry-author-avatar {
    grid-row: span 2;
}

.igen-resource-article-author .avatar {
    display: block;
    width: 64px;
    height: 64px;
    border-radius: 50%;
}

.igen-resource-article-author .entry-author-name {
    color: var(--shadow);
    font-size: 1rem;
    line-height: 1.3;
}

.igen-resource-article-author .entry-author-name a {
    color: inherit;
    text-decoration: none;
}

.igen-resource-article-author .entry-author-description p {
    margin: 0;
    color: var(--shadow);
    font-size: 0.95rem;
    line-height: 1.65;
}

@media (max-width: 767px) {
    .igen-resource-article-shell {
        width: min(calc(100% - 1.5rem), 760px);
        padding-top: 1.5rem;
    }

    .igen-resource-article-header .entry-title {
        font-size: 2rem;
    }

    .igen-resource-article-author .entry-author-profile {
        grid-template-columns: 48px 1fr;
    }

    .igen-resource-article-author .avatar {
        width: 48px;
        height: 48px;
    }
}
