/* Little Red George — shared project taxonomy archive template. */
.lrgh-term-page {
    --lrgh-archive-bg: #f6f1ea;
    --lrgh-archive-top: 72px;
    --lrgh-archive-bottom: 88px;
    --lrgh-archive-gap: 24px;
    --lrgh-archive-cols-desktop: 3;
    --lrgh-archive-cols-tablet: 2;
    width: 100%;
    min-height: 62vh;
    padding: var(--lrgh-archive-top) 0 var(--lrgh-archive-bottom);
    background: var(--lrgh-archive-bg);
    color: #302a25;
}

.lrgh-term-page > .lrgh-inner {
    width: 100%;
    max-width: var(--lrgds-max-width,1400px);
    margin-inline: auto;
}

.lrgh-term-page .lrgh-term-intro {
    width: 100%;
    margin: 0 0 24px;
    padding: 0 0 25px;
    border-bottom: 1px solid #ded6ce;
}

.lrgh-term-page .lrgh-term-intro-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .9fr);
    align-items: end;
    gap: clamp(28px, 5vw, 72px);
    width: 100%;
}

.lrgh-term-page .lrgh-term-intro-heading {
    min-width: 0;
}

.lrgh-term-page .lrgh-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 7px;
    margin: 0 0 30px;
    color: #81776e;
    font: 400 12px/1.7 Inter, "Segoe UI", system-ui, "Microsoft YaHei", sans-serif;
}

.lrgh-term-page .lrgh-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.lrgh-term-page .lrgh-breadcrumb a:hover {
    color: #a85146;
}

.lrgh-term-page .lrgh-kicker {
    margin: 0 0 10px;
    color: #a85146;
    font: 700 10px/1.5 Inter, "Segoe UI", system-ui, "Microsoft YaHei", sans-serif;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.lrgh-term-page h1.lrgh-term-title {
    margin: 0 0 14px;
    color: #302a25;
    font: 700 clamp(34px, 4vw, 52px)/1.12 Inter, "Segoe UI", system-ui, "Microsoft YaHei", sans-serif;
    letter-spacing: -.045em;
}

.lrgh-term-page h1.lrgh-term-title em {
    display: inline;
    color: #a85146;
    font: inherit;
    font-style: normal;
}

.lrgh-term-page .lrgh-term-title--visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.lrgh-term-page .lrgh-term-desc {
    max-width: 620px;
    justify-self: end;
    margin: 0;
    color: #756d66;
    text-align: right;
    font: 400 14px/1.85 Inter, "Segoe UI", system-ui, "Microsoft YaHei", sans-serif;
}

.lrgh-term-page .lrgh-term-desc p {
    margin: 0;
}

.lrgh-term-page .lrgh-taxonomy-children {
    margin: 32px 0 38px;
    padding: 23px 0 25px;
    border-top: 1px solid #ded6ce;
    border-bottom: 1px solid #ded6ce;
}

.lrgh-term-page .lrgh-taxonomy-children-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 17px;
}

.lrgh-term-page .lrgh-taxonomy-children-head h2 {
    margin: 0;
    color: #302a25;
    font: 650 clamp(18px, 2vw, 23px)/1.25 Inter, "Segoe UI", system-ui, "Microsoft YaHei", sans-serif;
    letter-spacing: -.025em;
}

.lrgh-term-page .lrgh-taxonomy-children-head > span {
    color: #81776e;
    font: 400 11px/1.5 Inter, "Segoe UI", system-ui, "Microsoft YaHei", sans-serif;
}

.lrgh-term-page .lrgh-taxonomy-child-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.lrgh-term-page .lrgh-taxonomy-child-card {
    display: flex;
    min-width: 0;
    min-height: 56px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #ded6ce;
    background: rgba(255, 253, 249, .55);
    color: #302a25;
    text-decoration: none;
    transition: border-color .18s ease, background-color .18s ease;
}

.lrgh-term-page .lrgh-taxonomy-child-card strong {
    color: inherit;
    font: 600 13px/1.4 Inter, "Segoe UI", system-ui, "Microsoft YaHei", sans-serif;
    overflow-wrap: anywhere;
}

.lrgh-term-page .lrgh-taxonomy-child-card span {
    flex: 0 0 auto;
    color: #8a7d72;
    font: 400 10px/1.4 Inter, "Segoe UI", system-ui, "Microsoft YaHei", sans-serif;
}

.lrgh-term-page .lrgh-taxonomy-child-card:hover,
.lrgh-term-page .lrgh-taxonomy-child-card:focus-visible {
    border-color: #a85146;
    background: #fffdf9;
}

.lrgh-term-page .lrgh-archive-grid {
    display: grid;
    grid-template-columns: repeat(var(--lrgh-archive-cols-desktop), minmax(0, 1fr));
    gap: var(--lrgh-archive-gap);
    width: 100%;
    margin: 0;
}

.lrgh-term-page .lrgh-archive-grid .lrgh-3d-card {
    width: 100%;
    min-width: 0;
}

.lrgh-term-page .lrgh-archive-grid .lrgh-3d-media {
    aspect-ratio: 16 / 9;
    background: #eae0d4;
}

.lrgh-term-page .lrgh-archive-grid .lrgh-3d-image {
    object-fit: cover;
}

.lrgh-term-page .lrgh-archive-grid .lrgh-3d-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 14px;
    padding-top: 14px;
}

.lrgh-term-page .lrgh-empty-path {
    margin: 20px 0 0;
    padding: 24px 0;
    border-top: 1px solid #ded6ce;
    color: #756d66;
    font: 400 14px/1.7 Inter, "Segoe UI", system-ui, "Microsoft YaHei", sans-serif;
}

.lrgh-term-page .lrgh-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 38px 0 0;
}

.lrgh-term-page .lrgh-pagination .page-numbers {
    box-sizing: border-box;
    display: inline-flex;
    min-width: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 10px;
    border: 1px solid #ded6ce;
    border-radius: 3px;
    color: #302a25;
    background: transparent;
    text-decoration: none;
    font: 600 12px/1 Inter, "Segoe UI", system-ui, sans-serif;
}

.lrgh-term-page .lrgh-pagination .page-numbers.prev,
.lrgh-term-page .lrgh-pagination .page-numbers.next {
    min-width: 40px;
    padding: 0;
    font-size: 22px;
    font-weight: 400;
}

.lrgh-term-page .lrgh-pagination .page-numbers.dots {
    min-width: 16px;
    padding: 0;
    border-color: transparent;
    background: transparent;
    color: #8c8177;
    cursor: default;
}

.lrgh-term-page .lrgh-pagination .page-numbers.current,
.lrgh-term-page .lrgh-pagination a.page-numbers:hover {
    border-color: #a94f45;
    background: #a94f45;
    color: #fff;
}

@media (max-width: 767px) {
    .lrgh-term-page .lrgh-pagination {
        gap: 6px;
        margin-top: 30px;
    }
    .lrgh-term-page .lrgh-pagination .page-numbers {
        min-width: 36px;
        min-height: 36px;
        padding-inline: 8px;
    }
    .lrgh-term-page .lrgh-pagination .page-numbers.prev,
    .lrgh-term-page .lrgh-pagination .page-numbers.next {
        min-width: 36px;
    }
}

.lrgh-term-page .lrgh-archive-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
    margin: 42px 0 0;
    padding-top: 24px;
    border-top: 1px solid #ded6ce;
}

/* The classic theme may expose only its default Site Title / Tagline on taxonomy archives.
   When the saved Little Red shell is available, replace that fallback only on these archives. */
body.lrgh-project-archive-body #masthead,
body.lrgh-project-archive-body #colophon,
body.lrgh-project-archive-body #header:not(.lrg-site-shell-header),
body.lrgh-project-archive-body #footer:not(.lrg-site-shell-footer),
body.lrgh-project-archive-body .site-header:not(.lrg-site-shell-header),
body.lrgh-project-archive-body .site-footer:not(.lrg-site-shell-footer),
body.lrgh-project-archive-body .elementor-location-header,
body.lrgh-project-archive-body .elementor-location-footer,
body.lrgh-project-archive-body .hfe-site-header,
body.lrgh-project-archive-body .hfe-site-footer,
body.lrgh-project-archive-body .wp-site-blocks > header.wp-block-template-part,
body.lrgh-project-archive-body .wp-site-blocks > footer.wp-block-template-part,
body.lrgh-project-archive-body header:not(.lrg-site-shell-header),
body.lrgh-project-archive-body footer:not(.lrg-site-shell-footer) {
    display: none !important;
}

body.lrgh-project-archive-body .site-title,
body.lrgh-project-archive-body .site-description,
body.lrgh-project-archive-body .site-branding,
body.lrgh-project-archive-body .wp-block-site-title,
body.lrgh-project-archive-body .wp-block-site-tagline {
    display: none !important;
}

/* Suppress only the theme's oversized fallback Site Title / Tagline on archives,
   even when the theme's normal navigation remains in place. */
body.lrgh-project-archive-body:not(.lrgh-project-archive-manual-shell) .site-title,
body.lrgh-project-archive-body:not(.lrgh-project-archive-manual-shell) .site-description,
body.lrgh-project-archive-body:not(.lrgh-project-archive-manual-shell) .wp-block-site-title,
body.lrgh-project-archive-body:not(.lrgh-project-archive-manual-shell) .wp-block-site-tagline {
    display: none !important;
}

@media (max-width: 1024px) {
    .lrgh-term-page {
        padding-top: min(var(--lrgh-archive-top), 60px);
        padding-bottom: min(var(--lrgh-archive-bottom), 72px);
    }
    .lrgh-term-page .lrgh-archive-grid {
        grid-template-columns: repeat(var(--lrgh-archive-cols-tablet), minmax(0, 1fr));
    }
    .lrgh-term-page .lrgh-taxonomy-child-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .lrgh-term-page {
        padding-top: min(var(--lrgh-archive-top), 42px);
        padding-bottom: min(var(--lrgh-archive-bottom), 56px);
    }
    .lrgh-term-page .lrgh-term-intro {
        margin-bottom: 20px;
        padding-bottom: 20px;
    }
    .lrgh-term-page .lrgh-term-intro-row {
        display: block;
    }
    .lrgh-term-page .lrgh-term-desc {
        max-width: none;
        margin-top: 12px;
        text-align: left;
        font-size: 13px;
    }
    .lrgh-term-page .lrgh-breadcrumb {
        margin-bottom: 18px;
        font-size: 11px;
    }
    .lrgh-term-page h1.lrgh-term-title {
        font-size: clamp(30px, 8vw, 40px);
    }
    .lrgh-term-page .lrgh-term-desc {
        margin-bottom: 0;
    }
    .lrgh-term-page .lrgh-archive-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 25px;
    }
    .lrgh-term-page .lrgh-taxonomy-children {
        margin: 24px 0 28px;
        padding: 18px 0 20px;
    }
    .lrgh-term-page .lrgh-taxonomy-child-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .lrgh-term-page .lrgh-taxonomy-child-card {
        min-height: 54px;
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
        padding: 11px 12px;
    }
    .lrgh-term-page .lrgh-taxonomy-child-card strong {
        font-size: 12px;
    }
    .lrgh-term-page .lrgh-archive-grid .lrgh-3d-facts {
        gap: 8px 9px;
    }
    .lrgh-term-page .lrgh-archive-grid .lrgh-3d-facts dt {
        font-size: 9px;
    }
    .lrgh-term-page .lrgh-archive-grid .lrgh-3d-facts dd {
        font-size: 12px;
    }
    .lrgh-term-page .lrgh-archive-footer {
        margin-top: 30px;
        padding-top: 20px;
    }
}

/* Keep the three project facts in a horizontal, three-column row even when
   theme / Elementor global definition-list styles are loaded after this file. */
.lrgh-term-page .lrgh-pf--archive .lrgh-archive-grid .lrgh-3d-facts {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: start !important;
    gap: 10px 14px !important;
    width: 100%;
    margin: 0 !important;
    padding: 14px 0 0 !important;
}
.lrgh-term-page .lrgh-pf--archive .lrgh-archive-grid .lrgh-3d-facts > div {
    display: block !important;
    float: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    text-align: left !important;
}
.lrgh-term-page .lrgh-pf--archive .lrgh-archive-grid .lrgh-3d-facts dt,
.lrgh-term-page .lrgh-pf--archive .lrgh-archive-grid .lrgh-3d-facts dd {
    display: block !important;
    float: none !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    text-align: left !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
}
.lrgh-term-page .lrgh-pf--archive .lrgh-archive-grid .lrgh-3d-facts dt {
    color: #a85146 !important;
    font: 600 10px/1.5 Inter, "Segoe UI", system-ui, "Microsoft YaHei", sans-serif !important;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 4px !important;
}
.lrgh-term-page .lrgh-pf--archive .lrgh-archive-grid .lrgh-3d-facts dd {
    color: #302924 !important;
    font: 400 13px/1.5 Inter, "Segoe UI", system-ui, "Microsoft YaHei", sans-serif !important;
}
