/*
Theme Name: Tally Blog

Theme URI: https://tallyandgst.in/blog/

Description: Modern custom WordPress blog theme for Tally Institute of Learning - Baguiati.

Version: 3.0.0

Author: Tally Institute of Learning - Baguiati

Text Domain: tally-blog
*/


/* =========================================================
   01. DESIGN TOKENS
   ========================================================= */

:root {
    /* brand green — unchanged */
    --tally-green: #007f3d;
    --tally-green-dark: #006b34;
    --tally-green-soft: #edf8f2;
    --tally-green-pale: #f5faf7;
    --tally-green-deep: #004321;

    /* warm editorial neutrals */
    --blog-text: #262b28;
    --blog-heading: #12181a;
    --blog-muted: #6c756f;
    --blog-border: #e7e2d8;
    --blog-border-light: #f1ede3;

    --blog-white: #ffffff;
    --blog-bg: #fbfaf6;
    --blog-soft-bg: #f6f4ee;

    /* layered, softer shadows for a premium lift */
    --blog-shadow-sm: 0 2px 10px rgba(18, 26, 21, 0.05);
    --blog-shadow: 0 14px 34px rgba(18, 26, 21, 0.08), 0 2px 8px rgba(18, 26, 21, 0.04);
    --blog-shadow-lg: 0 26px 64px rgba(18, 26, 21, 0.12), 0 4px 16px rgba(18, 26, 21, 0.05);
    --blog-shadow-hover: 0 30px 74px rgba(18, 26, 21, 0.16), 0 8px 20px rgba(18, 26, 21, 0.06);

    --blog-radius: 16px;
    --blog-radius-lg: 22px;
    --blog-radius-small: 12px;
    --blog-radius-pill: 999px;

    --blog-content-width: 1200px;
    --blog-reading-width: 760px;
    --blog-sidebar-width: 320px;

    --blog-transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
    --blog-transition-slow: 450ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Clears the site's fixed/sticky navbar so blog content (and the
       sidebar's first widget) isn't hidden underneath it on load.
       This is an ESTIMATE from screenshots — tune this one value if
       content still sits too high or too low under the nav. Smaller
       values are used on tablet/mobile where the navbar is shorter. */
    --blog-header-offset: 170px;
}


/* =========================================================
   02. BASIC BLOG RESET
   Deliberately scoped so the existing website/header/footer
   are not affected.
   ========================================================= */

.blog-main-content,
.blog-main-content *,
.tally-blog-sidebar,
.tally-blog-sidebar * {
    box-sizing: border-box;
}

.blog-main-content {
    width: 100%;
    position: relative;
    z-index: 1;
    background: var(--blog-bg);
    color: var(--blog-text);
    font-family: inherit;

    /* .page (from working.css, wraps the whole site) sets
       text-align: center — reset it here so blog text defaults
       to left, without touching the main site's stylesheet. */
    text-align: left;
}

.blog-main-content img {
    max-width: 100%;
}

.blog-main-content a {
    transition:
        color var(--blog-transition),
        background-color var(--blog-transition),
        border-color var(--blog-transition),
        box-shadow var(--blog-transition),
        transform var(--blog-transition);
}


/* =========================================================
   03. BLOG CONTENT WRAPPER
   ========================================================= */

.tally-blog-content {
    width: 100%;
    padding: calc(var(--blog-header-offset) + 20px) 0 90px;

    background:
        radial-gradient(ellipse 900px 460px at 50% -12%, var(--tally-green-soft) 0%, transparent 62%),
        var(--blog-bg);
}

.tally-blog-content > .container {
    width: 100%;
    max-width: var(--blog-content-width);
    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   04. BLOG INTRO / HERO
   ========================================================= */

.tally-blog-intro {
    max-width: 900px;
    margin: 0 auto 56px;
    text-align: center;
}

.tally-blog-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    margin: 0 0 15px;
    padding: 6px 14px 6px 11px;

    color: var(--tally-green-dark);
    background: var(--tally-green-soft);
    border: 1px solid rgba(0, 127, 61, 0.14);
    border-radius: var(--blog-radius-pill);

    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.tally-blog-eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
    background: var(--tally-green);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(0, 127, 61, 0.14);
}

.tally-blog-intro h1 {
    max-width: 820px;
    margin: 0 auto 18px;

    color: var(--blog-heading);
    font-size: clamp(36px, 4.4vw, 54px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.tally-blog-intro > p {
    max-width: 720px;
    margin: 0 auto;

    color: var(--blog-muted);
    font-size: 17px;
    line-height: 1.75;
}


/* =========================================================
   05. SEARCH
   Works with the standard WordPress get_search_form()
   ========================================================= */

.tally-blog-search {
    max-width: 560px;
    margin: 32px auto 0;
}

.tally-blog-search form,
.tally-blog-sidebar-search form {
    display: flex;
    position: relative;
    width: 100%;
    margin: 0;
}

.tally-blog-search label,
.tally-blog-sidebar-search label {
    flex: 1;
    margin: 0;
}

.tally-blog-search .search-field,
.tally-blog-sidebar-search .search-field {
    display: block;
    width: 100%;
    height: 52px;

    padding: 0 58px 0 21px;

    color: var(--blog-text);
    background: var(--blog-white);

    border: 1px solid var(--blog-border);
    border-radius: var(--blog-radius-pill);

    outline: none;

    font-size: 14px;
    line-height: 52px;

    box-shadow: var(--blog-shadow-sm);

    transition:
        border-color var(--blog-transition),
        box-shadow var(--blog-transition);
}

.tally-blog-search .search-field:focus,
.tally-blog-sidebar-search .search-field:focus {
    border-color: rgba(0, 127, 61, 0.55);
    box-shadow: 0 0 0 4px rgba(0, 127, 61, 0.1);
}

.tally-blog-search .search-submit,
.tally-blog-sidebar-search .search-submit {
    position: absolute;
    top: 6px;
    right: 6px;

    width: 40px;
    height: 40px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: var(--tally-green);
    color: #fff;

    font-size: 0;
    cursor: pointer;

    transition:
        background-color var(--blog-transition),
        transform var(--blog-transition);
}

.tally-blog-search .search-submit::before,
.tally-blog-sidebar-search .search-submit::before {
    content: "⌕";
    font-size: 22px;
    line-height: 40px;
}

.tally-blog-search .search-submit:hover,
.tally-blog-sidebar-search .search-submit:hover {
    background: var(--tally-green-dark);
    transform: scale(1.06);
}


/* =========================================================
   06. FEATURED ARTICLE
   ========================================================= */

.tally-blog-featured {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);

    min-height: 400px;
    margin: 0 0 76px;

    overflow: hidden;

    background: var(--blog-white);

    border: 1px solid var(--blog-border);
    border-radius: var(--blog-radius-lg);

    box-shadow: var(--blog-shadow);

    transition: box-shadow var(--blog-transition), transform var(--blog-transition);
}

.tally-blog-featured:hover {
    box-shadow: var(--blog-shadow-hover);
    transform: translateY(-3px);
}

.tally-blog-featured-media {
    position: relative;
    min-height: 400px;
    overflow: hidden;
    background: var(--tally-green-pale);
}

.tally-blog-featured-media::before {
    content: "Featured Article";

    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;

    padding: 7px 15px;

    color: #fff;
    background: rgba(18, 24, 21, 0.55);
    backdrop-filter: blur(6px);

    border-radius: var(--blog-radius-pill);

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tally-blog-featured-media::after {
    content: "";

    position: absolute;
    inset: 0;

    background: linear-gradient(180deg, rgba(0, 0, 0, 0.32) 0%, transparent 28%);
    pointer-events: none;
}

.tally-blog-featured-media > a {
    display: block;
    width: 100%;
    height: 100%;
}

.tally-blog-featured-media img {
    display: block;

    width: 100%;
    height: 100%;

    min-height: 400px;

    object-fit: cover;

    transition: transform var(--blog-transition-slow);
}

.tally-blog-featured:hover .tally-blog-featured-media img {
    transform: scale(1.04);
}

.tally-blog-featured-placeholder {
    display: flex !important;
    align-items: center;
    justify-content: center;

    min-height: 400px;

    padding: 35px;

    color: var(--tally-green) !important;
    background:
        radial-gradient(
            circle at 25% 25%,
            rgba(0, 127, 61, 0.10),
            transparent 35%
        ),
        var(--tally-green-pale);

    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none !important;
}

.tally-blog-featured-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 50px 54px;
}

.tally-blog-featured-copy .tally-blog-eyebrow {
    margin-bottom: 13px;
}

.tally-blog-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    margin: 0 0 15px;

    color: var(--blog-muted);

    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
}

.tally-blog-meta-separator {
    color: #b3ab9d;
}

.tally-blog-featured-copy h2 {
    margin: 0 0 16px;

    color: var(--blog-heading);

    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -0.025em;
}

.tally-blog-featured-copy h2 a {
    color: inherit;
    text-decoration: none;
    background-image: linear-gradient(var(--tally-green), var(--tally-green));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0% 2px;
    transition: background-size var(--blog-transition), color var(--blog-transition);
}

.tally-blog-featured-copy h2 a:hover {
    color: var(--tally-green);
    background-size: 100% 2px;
}

.tally-blog-excerpt {
    color: var(--blog-muted);
    font-size: 15px;
    line-height: 1.7;
}

.tally-blog-featured-copy .tally-blog-excerpt {
    max-width: 570px;
    margin-bottom: 26px;
}

.tally-blog-excerpt p {
    margin: 0 0 10px;
}

.tally-blog-excerpt p:last-child {
    margin-bottom: 0;
}

/* default text-style read link — used on grid cards & elsewhere */
.tally-blog-read-link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    position: relative;

    color: var(--tally-green);

    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;

    text-decoration: none;
}

.tally-blog-read-link::after {
    content: "→";
    margin-left: 8px;

    transition: transform var(--blog-transition);
}

.tally-blog-read-link:hover {
    color: var(--tally-green-dark);
}

.tally-blog-read-link:hover::after {
    transform: translateX(4px);
}

/* featured article gets the elevated pill CTA */
.tally-blog-featured-copy .tally-blog-read-link {
    padding: 13px 24px;

    color: #fff;
    background: var(--tally-green);
    border-radius: var(--blog-radius-pill);

    box-shadow: 0 10px 24px rgba(0, 127, 61, 0.22);

    transition:
        background-color var(--blog-transition),
        transform var(--blog-transition),
        box-shadow var(--blog-transition);
}

.tally-blog-featured-copy .tally-blog-read-link:hover {
    color: #fff;
    background: var(--tally-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 127, 61, 0.3);
}


/* =========================================================
   07. SECTION HEADING
   ========================================================= */

.tally-blog-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;

    margin: 0 0 28px;

    padding-bottom: 19px;

    border-bottom: 1px solid var(--blog-border);
}

.tally-blog-section-heading .tally-blog-eyebrow {
    margin-bottom: 9px;
}

.tally-blog-section-heading h2 {
    margin: 0;

    color: var(--blog-heading);

    font-size: 29px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.tally-blog-section-heading > p {
    max-width: 330px;
    margin: 0;

    color: var(--blog-muted);

    font-size: 13px;
    line-height: 1.6;
    text-align: right;
}


/* =========================================================
   08. LATEST ARTICLES GRID
   ========================================================= */

.tally-blog-post-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;

    margin: 0;
}

.tally-blog-post-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;

    overflow: hidden;

    background: var(--blog-white);

    border: 1px solid var(--blog-border);
    border-radius: var(--blog-radius-small);

    box-shadow: var(--blog-shadow-sm);

    transition:
        transform 260ms cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 260ms cubic-bezier(0.4, 0, 0.2, 1),
        border-color 260ms ease;
}

.tally-blog-post-card::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;

    height: 3px;

    background: var(--tally-green);

    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--blog-transition);
}

.tally-blog-post-card:hover {
    transform: translateY(-5px);

    border-color: #dcd6c8;

    box-shadow: var(--blog-shadow-lg);
}

.tally-blog-post-card:hover::before {
    transform: scaleX(1);
}

.tally-blog-card-image {
    display: block;

    position: relative;

    width: 100%;
    aspect-ratio: 3 / 2;

    overflow: hidden;

    background: var(--tally-green-pale);

    text-decoration: none !important;
}

.tally-blog-card-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform var(--blog-transition-slow);
}

.tally-blog-post-card:hover .tally-blog-card-image img {
    transform: scale(1.05);
}

.tally-blog-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    padding: 20px;

    color: var(--tally-green);

    background: var(--tally-green-pale);

    font-size: 13px;
    font-weight: 700;

    text-align: center;
}

.tally-blog-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;

    padding: 24px 24px 26px;
}

.tally-blog-card-body .tally-blog-meta {
    margin-bottom: 10px;
}

.tally-blog-card-title {
    margin: 0 0 11px;

    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.tally-blog-card-title a {
    color: var(--blog-heading);
    text-decoration: none;
    transition: color var(--blog-transition);
}

.tally-blog-card-title a:hover {
    color: var(--tally-green);
}

.tally-blog-card-body .tally-blog-excerpt {
    display: -webkit-box;
    overflow: hidden;

    margin-bottom: 18px;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.tally-blog-card-body .tally-blog-read-link {
    margin-top: auto;
}


/* =========================================================
   09. PAGINATION
   ========================================================= */

.tally-blog-pagination {
    margin-top: 50px;
}

.tally-blog-pagination .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.tally-blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 40px;
    height: 40px;

    padding: 0 13px;

    color: var(--blog-text);
    background: var(--blog-white);

    border: 1px solid var(--blog-border);
    border-radius: var(--blog-radius-pill);

    font-size: 12px;
    font-weight: 700;

    text-decoration: none;

    transition:
        color var(--blog-transition),
        background-color var(--blog-transition),
        border-color var(--blog-transition),
        box-shadow var(--blog-transition);
}

.tally-blog-pagination .page-numbers:hover,
.tally-blog-pagination .page-numbers.current {
    color: #fff;
    background: var(--tally-green);
    border-color: var(--tally-green);
    box-shadow: 0 8px 18px rgba(0, 127, 61, 0.22);
}

.tally-blog-pagination .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}


/* =========================================================
   10. EMPTY BLOG
   ========================================================= */

.tally-blog-empty {
    max-width: 700px;
    margin: 40px auto 0;

    padding: 60px 30px;

    text-align: center;

    border: 1px dashed var(--blog-border);
    border-radius: var(--blog-radius);

    background: var(--blog-soft-bg);
}

.tally-blog-empty::before {
    content: "";

    display: block;

    width: 46px;
    height: 46px;
    margin: 0 auto 20px;

    background: var(--blog-white);
    border: 1px solid var(--blog-border);
    border-radius: 12px;

    box-shadow: var(--blog-shadow-sm);
}

.tally-blog-empty h2 {
    margin: 0 0 10px;

    color: var(--blog-heading);

    font-size: 27px;
    font-weight: 800;
    line-height: 1.3;
}

.tally-blog-empty p {
    margin: 0;

    color: var(--blog-muted);

    font-size: 15px;
    line-height: 1.7;
}


/* =========================================================
   11. SINGLE POST LAYOUT
   ========================================================= */

.tally-blog-single-shell {
    max-width: var(--blog-content-width);
}

.tally-blog-single-grid {
    width: 100%;
}

.tally-blog-single-main {
    min-width: 0;
    max-width: 860px;
    margin: 0 auto;
}

.tally-blog-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;

    margin: 0 0 28px;

    color: var(--blog-muted);

    font-size: 12px;
    line-height: 1.5;
}

.tally-blog-breadcrumbs a {
    color: var(--tally-green);
    text-decoration: none;
    font-weight: 600;
}

.tally-blog-breadcrumbs a:hover {
    color: var(--tally-green-dark);
}

.tally-blog-single-header {
    margin-bottom: 30px;
}

.tally-blog-single-header .tally-blog-eyebrow {
    margin-bottom: 11px;
}

.tally-blog-single-header .tally-blog-meta {
    margin-bottom: 15px;
}

.tally-blog-single-header h1 {
    max-width: 900px;

    margin: 0;

    color: var(--blog-heading);

    font-size: clamp(34px, 4.2vw, 50px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
}


/* =========================================================
   12. SINGLE POST FEATURED IMAGE
   ========================================================= */

.tally-blog-featured-image {
    width: 100%;
    margin: 0 0 38px;

    overflow: hidden;

    border-radius: var(--blog-radius);
    background: var(--blog-soft-bg);
    box-shadow: var(--blog-shadow);
}

.tally-blog-featured-image img {
    display: block;

    width: 100%;
    height: auto;

    max-height: 560px;

    object-fit: cover;
}


/* =========================================================
   13. ARTICLE CONTENT
   ========================================================= */

.tally-blog-entry-content {
    color: var(--blog-text);

    font-size: 17px;
    line-height: 1.84;
}

.tally-blog-entry-content > *:first-child {
    margin-top: 0;
}

.tally-blog-entry-content > *:last-child {
    margin-bottom: 0;
}

.tally-blog-entry-content p {
    margin: 0 0 22px;
}

.tally-blog-entry-content h2,
.tally-blog-entry-content h3,
.tally-blog-entry-content h4 {
    color: var(--blog-heading);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.tally-blog-entry-content h2 {
    margin: 44px 0 18px;

    font-size: 30px;
    line-height: 1.25;
}

.tally-blog-entry-content h3 {
    margin: 36px 0 15px;

    font-size: 24px;
    line-height: 1.3;
}

.tally-blog-entry-content h4 {
    margin: 28px 0 12px;

    font-size: 20px;
    line-height: 1.35;
}

.tally-blog-entry-content a {
    color: var(--tally-green);
    text-decoration: none;
    background-image: linear-gradient(var(--tally-green), var(--tally-green));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 100% 1px;
    padding-bottom: 1px;
    transition: color var(--blog-transition);
}

.tally-blog-entry-content a:hover {
    color: var(--tally-green-dark);
}

.tally-blog-entry-content ul,
.tally-blog-entry-content ol {
    margin: 0 0 25px;
    padding-left: 25px;
}

.tally-blog-entry-content li {
    margin-bottom: 9px;
}

.tally-blog-entry-content blockquote {
    position: relative;

    margin: 32px 0;
    padding: 26px 30px 26px 62px;

    color: #394640;

    background: var(--tally-green-pale);

    border-left: 4px solid var(--tally-green);
    border-radius: 0 12px 12px 0;

    font-size: 18px;
    line-height: 1.7;
}

.tally-blog-entry-content blockquote::before {
    content: "“";

    position: absolute;
    top: 8px;
    left: 20px;

    color: var(--tally-green);
    opacity: 0.35;

    font-size: 44px;
    font-weight: 800;
    line-height: 1;
}

.tally-blog-entry-content blockquote p {
    margin-bottom: 0;
}

.tally-blog-entry-content img {
    display: block;

    height: auto;
    max-width: 100%;

    margin: 30px auto;

    border-radius: 10px;
}

.tally-blog-entry-content figure {
    margin: 32px 0;
}

.tally-blog-entry-content figcaption {
    margin-top: 8px;

    color: var(--blog-muted);

    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.tally-blog-entry-content table {
    width: 100%;
    margin: 28px 0;

    border-collapse: collapse;
    overflow: hidden;

    border-radius: 10px;
    box-shadow: var(--blog-shadow-sm);

    font-size: 14px;
}

.tally-blog-entry-content th,
.tally-blog-entry-content td {
    padding: 12px 14px;

    border: 1px solid var(--blog-border);

    text-align: left;
    vertical-align: top;
}

.tally-blog-entry-content th {
    color: var(--blog-heading);
    background: var(--blog-soft-bg);
    font-weight: 700;
}

.tally-blog-entry-content pre {
    overflow-x: auto;

    margin: 28px 0;
    padding: 22px;

    background: #171f1b;
    color: #eef4f1;

    border-radius: 12px;

    font-size: 13px;
    line-height: 1.65;
}

.tally-blog-entry-content code {
    font-size: 0.9em;
}

.tally-blog-entry-content :not(pre) > code {
    padding: 2px 6px;

    color: var(--tally-green-dark);
    background: var(--tally-green-pale);

    border-radius: 5px;
}


/* =========================================================
   14. POST TAGS
   ========================================================= */

.tally-blog-post-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 44px;
    padding-top: 26px;

    border-top: 1px solid var(--blog-border);
}

.tally-blog-post-bottom a {
    display: inline-flex;
    align-items: center;

    padding: 7px 14px;

    color: #52605a;
    background: var(--blog-soft-bg);

    border: 1px solid var(--blog-border);
    border-radius: var(--blog-radius-pill);

    font-size: 11px;
    font-weight: 600;

    text-decoration: none;

    transition:
        color var(--blog-transition),
        border-color var(--blog-transition),
        background-color var(--blog-transition);
}

.tally-blog-post-bottom a:hover {
    color: #fff;
    border-color: var(--tally-green);
    background: var(--tally-green);
}


/* =========================================================
   15. SIDEBAR
   ========================================================= */

.tally-blog-sidebar {
    min-width: 0;
    width: 100%;
}

.tally-blog-sidebar-inner {
    width: 100%;
}

.tally-blog-sidebar .widget {
    margin: 0 0 24px;
    padding: 24px;

    background: var(--blog-white);

    border: 1px solid var(--blog-border);
    border-radius: var(--blog-radius-small);

    box-shadow: var(--blog-shadow-sm);
}

.tally-blog-sidebar .widget:last-child {
    margin-bottom: 0;
}

.tally-blog-sidebar .widget-title {
    position: relative;

    margin: 0 0 17px;
    padding: 0 0 13px;

    color: var(--blog-heading);

    border-bottom: 1px solid var(--blog-border-light);

    font-size: 15.5px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.tally-blog-sidebar .widget-title::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -1px;

    width: 30px;
    height: 2px;

    background: var(--tally-green);
    border-radius: 2px;
}

.tally-blog-sidebar ul {
    list-style: none;

    margin: 0;
    padding: 0;
}

.tally-blog-sidebar li {
    margin: 0;
    padding: 11px 0;

    border-bottom: 1px solid var(--blog-border-light);

    color: var(--blog-muted);

    font-size: 13px;
    line-height: 1.55;
}

.tally-blog-sidebar li:first-child {
    padding-top: 0;
}

.tally-blog-sidebar li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.tally-blog-sidebar li a {
    color: #45514c;
    text-decoration: none;
    transition: color var(--blog-transition);
}

.tally-blog-sidebar li a:hover {
    color: var(--tally-green);
}

.tally-blog-sidebar .count {
    color: var(--blog-muted);
}

.tally-blog-sidebar-muted {
    color: var(--blog-muted);
    font-size: 13px;
}


/* =========================================================
   16. SIDEBAR SEARCH
   ========================================================= */

.tally-blog-sidebar-search {
    padding: 22px;
}

.tally-blog-sidebar-search .search-field {
    height: 46px;
    line-height: 46px;
    padding-left: 17px;
}

.tally-blog-sidebar-search .search-submit {
    width: 36px;
    height: 36px;
}

.tally-blog-sidebar-search .search-submit::before {
    font-size: 19px;
    line-height: 36px;
}


/* =========================================================
   17. COMMENTS
   Supports WordPress comments_template() markup
   ========================================================= */

.tally-blog-single-main .comments-area {
    margin-top: 54px;
    padding-top: 36px;

    border-top: 1px solid var(--blog-border);
}

.tally-blog-single-main .comments-title,
.tally-blog-single-main .comment-reply-title {
    margin: 0 0 22px;

    color: var(--blog-heading);

    font-size: 25px;
    font-weight: 800;
    line-height: 1.3;
}

.tally-blog-single-main .comment-list {
    list-style: none;

    margin: 0;
    padding: 0;
}

.tally-blog-single-main .comment-list .comment {
    margin: 0 0 20px;
    padding: 22px;

    border: 1px solid var(--blog-border);
    border-radius: var(--blog-radius-small);

    background: var(--blog-white);
    box-shadow: var(--blog-shadow-sm);
}

.tally-blog-single-main .comment-list .children {
    list-style: none;
    margin: 20px 0 0;
    padding-left: 25px;
}

.tally-blog-single-main .comment-author {
    color: var(--blog-heading);
    font-size: 14px;
    font-weight: 800;
}

.tally-blog-single-main .comment-metadata {
    margin-top: 3px;

    color: var(--blog-muted);

    font-size: 11px;
}

.tally-blog-single-main .comment-content {
    margin-top: 12px;

    color: #4b5752;

    font-size: 14px;
    line-height: 1.7;
}

.tally-blog-single-main .comment-content p:last-child {
    margin-bottom: 0;
}

.tally-blog-single-main .reply {
    margin-top: 10px;
}

.tally-blog-single-main .comment-reply-link {
    color: var(--tally-green);

    font-size: 12px;
    font-weight: 700;

    text-decoration: none;
}

.tally-blog-single-main .comment-form {
    margin-top: 25px;
}

.tally-blog-single-main .comment-form p {
    margin-bottom: 15px;
}

.tally-blog-single-main .comment-form label {
    display: block;

    margin-bottom: 6px;

    color: #4b5752;

    font-size: 12px;
    font-weight: 600;
}

.tally-blog-single-main .comment-form input[type="text"],
.tally-blog-single-main .comment-form input[type="email"],
.tally-blog-single-main .comment-form input[type="url"],
.tally-blog-single-main .comment-form textarea {
    display: block;

    width: 100%;

    padding: 12px 14px;

    color: var(--blog-text);
    background: #fff;

    border: 1px solid var(--blog-border);
    border-radius: 8px;

    outline: none;

    font-family: inherit;
    font-size: 14px;

    transition:
        border-color var(--blog-transition),
        box-shadow var(--blog-transition);
}

.tally-blog-single-main .comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.tally-blog-single-main .comment-form input:focus,
.tally-blog-single-main .comment-form textarea:focus {
    border-color: rgba(0, 127, 61, 0.55);
    box-shadow: 0 0 0 4px rgba(0, 127, 61, 0.1);
}

.tally-blog-single-main .comment-form .submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 22px;

    color: #fff;
    background: var(--tally-green);

    border: 0;
    border-radius: var(--blog-radius-pill);

    font-family: inherit;
    font-size: 12px;
    font-weight: 700;

    cursor: pointer;

    transition: background-color var(--blog-transition), transform var(--blog-transition);
}

.tally-blog-single-main .comment-form .submit:hover {
    background: var(--tally-green-dark);
    transform: translateY(-1px);
}


/* =========================================================
   18. WORDPRESS ACCESSIBILITY / UTILITY
   ========================================================= */

.blog-main-content .screen-reader-text {
    position: absolute !important;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border: 0;
}

.blog-main-content a:focus-visible,
.blog-main-content button:focus-visible,
.blog-main-content input:focus-visible,
.blog-main-content textarea:focus-visible {
    outline: 2px solid var(--tally-green);
    outline-offset: 2px;
}


/* =========================================================
   19. TABLET
   ========================================================= */

@media (max-width: 1199px) {

    :root {
        --blog-header-offset: 140px;
    }

    .tally-blog-content {
        padding: calc(var(--blog-header-offset) + 20px) 0 76px;
    }

    .tally-blog-content > .container,
    .tally-blog-single-shell {
        max-width: 960px;
    }

    .tally-blog-featured-copy {
        padding: 40px 40px;
    }

    .tally-blog-post-grid {
        gap: 22px;
    }

    .tally-blog-card-body {
        padding: 21px;
    }
}


/* =========================================================
   20. SMALL TABLET
   ========================================================= */

@media (max-width: 991px) {

    :root {
        --blog-header-offset: 110px;
    }

    .tally-blog-content {
        padding-top: calc(var(--blog-header-offset) + 20px);
        padding-bottom: 68px;
    }

    .tally-blog-content > .container,
    .tally-blog-single-shell {
        max-width: 720px;
    }

    .tally-blog-intro {
        margin-bottom: 44px;
    }

    .tally-blog-intro h1 {
        font-size: 39px;
    }

    .tally-blog-featured {
        grid-template-columns: 1fr;
    }

    .tally-blog-featured-media,
    .tally-blog-featured-media img,
    .tally-blog-featured-placeholder {
        min-height: 300px;
        height: 300px;
    }

    .tally-blog-featured-copy {
        padding: 36px;
    }

    .tally-blog-post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tally-blog-sidebar {
        width: 100%;
    }

    .tally-blog-sidebar-inner {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .tally-blog-sidebar .widget {
        margin: 0;
    }
}


/* =========================================================
   21. MOBILE
   ========================================================= */

@media (max-width: 767px) {

    :root {
        --blog-header-offset: 80px;
    }

    .tally-blog-content {
        padding: calc(var(--blog-header-offset) + 20px) 0 58px;
    }

    .tally-blog-content > .container,
    .tally-blog-single-shell {
        width: auto;
        max-width: none;

        margin-left: 18px;
        margin-right: 18px;
    }

    .tally-blog-intro {
        margin-bottom: 36px;
    }

    .tally-blog-intro h1 {
        margin-bottom: 15px;

        font-size: 32px;
        line-height: 1.16;
    }

    .tally-blog-intro > p {
        font-size: 15px;
        line-height: 1.65;
    }

    .tally-blog-search {
        margin-top: 24px;
    }

    .tally-blog-featured {
        margin-bottom: 54px;

        border-radius: 14px;
    }

    .tally-blog-featured-media,
    .tally-blog-featured-media img,
    .tally-blog-featured-placeholder {
        min-height: 230px;
        height: 230px;
    }

    .tally-blog-featured-copy {
        padding: 28px 24px 32px;
    }

    .tally-blog-featured-copy h2 {
        font-size: 27px;
        line-height: 1.2;
    }

    .tally-blog-section-heading {
        display: block;

        margin-bottom: 23px;
        padding-bottom: 16px;
    }

    .tally-blog-section-heading h2 {
        font-size: 26px;
    }

    .tally-blog-section-heading > p {
        max-width: none;

        margin-top: 8px;

        text-align: left;
    }

    .tally-blog-post-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .tally-blog-card-body {
        padding: 20px 21px 22px;
    }

    .tally-blog-breadcrumbs {
        margin-bottom: 21px;
    }

    .tally-blog-single-header {
        margin-bottom: 24px;
    }

    .tally-blog-single-header h1 {
        font-size: 32px;
        line-height: 1.18;
    }

    .tally-blog-featured-image {
        margin-bottom: 28px;
        border-radius: 12px;
    }

    .tally-blog-featured-image img {
        max-height: none;
    }

    .tally-blog-entry-content {
        font-size: 16px;
        line-height: 1.78;
    }

    .tally-blog-entry-content h2 {
        margin-top: 36px;
        font-size: 27px;
    }

    .tally-blog-entry-content h3 {
        margin-top: 29px;
        font-size: 22px;
    }

    .tally-blog-entry-content blockquote {
        padding: 20px 20px 20px 44px;
        font-size: 16px;
    }

    .tally-blog-entry-content blockquote::before {
        left: 14px;
        font-size: 34px;
    }

    .tally-blog-sidebar-inner {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .tally-blog-sidebar .widget {
        padding: 20px;
    }

    .tally-blog-single-main .comments-area {
        margin-top: 42px;
        padding-top: 30px;
    }
}


/* =========================================================
   22. VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .tally-blog-content > .container,
    .tally-blog-single-shell {
        margin-left: 14px;
        margin-right: 14px;
    }

    .tally-blog-intro h1 {
        font-size: 29px;
    }

    .tally-blog-eyebrow {
        font-size: 10.5px;
    }

    .tally-blog-featured-copy {
        padding: 24px 20px 28px;
    }

    .tally-blog-featured-copy h2 {
        font-size: 25px;
    }

    .tally-blog-single-header h1 {
        font-size: 29px;
    }

    .tally-blog-entry-content {
        font-size: 15.8px;
    }

    .tally-blog-post-bottom a {
        font-size: 10px;
    }
}


/* =========================================================
   23. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .blog-main-content *,
    .blog-main-content *::before,
    .blog-main-content *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}