/* ==========================================================================
   In the News — Page-specific styles
   ========================================================================== */

/* Page Container — full-bleed; each direct child is its own colored band */
.inTheNewsPage {
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font-family: "Atlas Regular", Atlas-Grotesk, sans-serif;
    color: #555658;
}

/* Asymmetric padding centers content at max-width 1200px with a 32px minimum gutter */
.inTheNewsPage > .aboutText,
.inTheNewsPage > .itn-section,
.inTheNewsPage > .itn-stats,
.inTheNewsPage > .itn-jump-nav,
.inTheNewsPage > .itn-proof-quotes,
.inTheNewsPage > .itn-why,
.inTheNewsPage > #libraries,
.inTheNewsPage > #universities,
.inTheNewsPage > #genealogy,
.inTheNewsPage > #trade-press,
.inTheNewsPage > .itn-faq,
.inTheNewsPage > .itn-summary,
.inTheNewsPage > .boxBorder {
    width: 100%;
    margin: 0;
    padding-left: max(32px, calc(50% - 600px));
    padding-right: max(32px, calc(50% - 600px));
    box-sizing: border-box;
}

/* Alternating section backgrounds — like the homepage's full-bleed bands */
.inTheNewsPage > .aboutText { background: #fff; padding-top: 40px; padding-bottom: 32px; }
.inTheNewsPage > .itn-proof-quotes { background: #f5f5f5; padding-top: 56px; padding-bottom: 56px; }
.inTheNewsPage > .itn-why { background: #fff; padding-top: 56px; padding-bottom: 56px; }
.inTheNewsPage > .itn-stats { padding-top: 24px; padding-bottom: 24px; background: #fff; border-radius: 0; }
.inTheNewsPage > .itn-stats.itn-collection-stats { background: #f5f5f5; }
.inTheNewsPage > .itn-jump-nav { background: #fff; padding-top: 24px; padding-bottom: 24px; border-bottom: 0; }
.inTheNewsPage > #libraries { background: #f5f5f5; padding-top: 56px; padding-bottom: 56px; }
.inTheNewsPage > #universities { background: #fff; padding-top: 56px; padding-bottom: 56px; }
.inTheNewsPage > #genealogy { background: #f5f5f5; padding-top: 56px; padding-bottom: 56px; }
.inTheNewsPage > #trade-press { background: #fff; padding-top: 56px; padding-bottom: 56px; }
.inTheNewsPage > .itn-faq { background: #f5f5f5; padding-top: 56px; padding-bottom: 56px; }
.inTheNewsPage > .itn-summary { background: #fff; padding-top: 56px; padding-bottom: 56px; }
.inTheNewsPage > .boxBorder { background: #f5f5f5; padding-top: 56px; padding-bottom: 56px; }
.inTheNewsPage > .boxBorder .libraryLogos {
    background: transparent;
    border-bottom: 0;
    border-top: 0;
    padding: 0;
    text-align: center;
}
.inTheNewsPage > .boxBorder .libraryLogos h3.subtitle {
    text-align: center;
    color: #212122;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    padding: 0 0 32px;
    margin: 0;
}
.inTheNewsPage > .boxBorder .libraryLogos h3.subtitle .txtRed {
    display: block;
    font-size: 18px;
    color: #c93030;
    margin-top: 4px;
}
.inTheNewsPage > .boxBorder .libraryLogos ul {
    text-align: center;
}
/* Sprite is a 1x PNG (160×521). Slight rendering hint helps a hair on retina,
   but a real fix requires a 2x sprite or SVG logos. */
.inTheNewsPage > .boxBorder .libraryLogos ul li {
    image-rendering: -webkit-optimize-contrast;
}

/* Page Header — Lyon serif h1 to match homepage hero */
.inTheNewsPage .aboutText {
    padding-top: 40px;
    padding-bottom: 32px;
}
.inTheNewsPage .aboutText h1 {
    padding: 0;
    margin: 0 0 16px;
    line-height: 1.15;
    font-family: "Lyon Medium", "Lyon Display", Georgia, serif;
    font-weight: 500;
    font-size: 40px;
    color: #212122;
}
.inTheNewsPage .aboutText h1 .txtRed {
    color: #c93030;
}
.inTheNewsPage .aboutText p {
    font-size: 16px;
    line-height: 1.7;
    color: #555658;
    padding-bottom: 0;
    margin: 0 0 12px;
    max-width: 1080px;
}
.inTheNewsPage .aboutText p a {
    color: #295da1;
    text-decoration: none;
}
.inTheNewsPage .aboutText p a:hover {
    text-decoration: underline;
}
.inTheNewsPage .aboutText p.itn-freshness {
    font-size: 13px;
    line-height: 1.5;
    color: #888;
    margin-top: 8px;
}

/* Breadcrumb — match the spacing and chevron treatment used on browse pages */
.itn-breadcrumb {
    max-width: 1280px;
    margin: 32px auto 8px !important;
    padding: 0 32px !important;
    font-size: 0;
}
.itn-breadcrumb li {
    font-size: 14px;
    line-height: 1.4;
    padding-right: 14px;
    margin-right: 14px;
}
.itn-breadcrumb li:after {
    content: "";
    display: inline-block;
    width: 7px;
    height: 12px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='7' height='12' viewBox='0 0 7 12' fill='none'><path d='M1 1l4.764 4.764a.333.333 0 0 1 0 .472L1 11' stroke='%23747578' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
    margin: 0;
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
}
.itn-breadcrumb li:last-child {
    padding-right: 0;
    margin-right: 0;
}
.itn-breadcrumb li:last-child:after {
    display: none;
}
.itn-breadcrumb li a,
.itn-breadcrumb li span {
    font-size: 14px;
    color: #707070 !important;
}
.itn-breadcrumb li:last-child span {
    color: #212122 !important;
}

@media (max-width: 768px) {
    .inTheNewsPage > .aboutText,
    .inTheNewsPage > .itn-section,
    .inTheNewsPage > .itn-stats,
    .inTheNewsPage > .itn-jump-nav,
    .inTheNewsPage > .boxBorder {
        padding-left: 16px;
        padding-right: 16px;
    }
    .itn-breadcrumb {
        padding: 0 16px !important;
    }
    .inTheNewsPage .aboutText h1 {
        font-size: 28px;
    }
    .inTheNewsPage .aboutText p {
        font-size: 15px;
    }
}

/* Stats Bar — flex inside a band */
.itn-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.itn-stat-item {
    text-align: center;
    min-width: 140px;
}
.itn-stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #c93030;
    line-height: 1.2;
}
.itn-stat-label {
    display: block;
    font-size: 13px;
    color: #555658;
    margin-top: 4px;
}

/* Section Headers — Lyon serif, no underline */
.itn-section {
    margin-bottom: 0;
}
.itn-section h2 {
    font-family: "Lyon Medium", "Lyon Display", Georgia, serif;
    font-size: 28px;
    font-weight: 500;
    color: #212122;
    line-height: 1.25;
    margin-bottom: 24px;
    padding-bottom: 0;
    border-bottom: 0;
}

/* Jump Nav */
.itn-jump-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.itn-jump-nav a {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 13px;
    color: #555;
    text-decoration: none;
}
.itn-jump-nav a:hover {
    background: #c00;
    color: #fff;
    border-color: #c00;
    text-decoration: none;
}

/* Freshness Signal */
.itn-freshness {
    font-size: 13px;
    color: #888;
    font-style: italic;
    margin-top: 10px;
}

/* Why Section */
.itn-why-list {
    list-style: disc;
    padding-left: 24px;
    margin: 0;
    line-height: 1.8;
    font-size: 15px;
    color: #555658;
}
.itn-why-list a {
    color: #295da1;
    text-decoration: none;
}
.itn-why-list a:hover {
    text-decoration: underline;
}

/* Institution Type Label */
.itn-type {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #666;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-left: 8px;
}

/* Citation Cards — 2-column grid; cards stretch to equal height */
#libraries,
#universities,
#genealogy,
#trade-press {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    /* default align-items: stretch — cards fill row height */
}
#libraries > h2,
#universities > h2,
#genealogy > h2,
#trade-press > h2 {
    grid-column: 1 / -1;
}
.itn-citation {
    display: flex;
    flex-direction: column;
    border: 1px solid #efeff0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 0;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.itn-citation:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.10);
}
.itn-citation-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}
.itn-citation-header cite {
    font-size: 13px;
    font-weight: 600;
    color: #c93030;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.itn-citation-header time {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
}
.itn-citation h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px;
    line-height: 1.4;
}
.itn-citation h3 a {
    color: #295da1;
    text-decoration: none;
}
.itn-citation h3 a:hover {
    text-decoration: underline;
}
.itn-citation blockquote {
    margin: 0 0 10px;
    padding: 10px 16px;
    border-left: 3px solid #efeff0;
    background: #fafafa;
    font-size: 14px;
    line-height: 1.6;
    color: #555658;
}
.itn-citation blockquote p {
    margin: 0;
}
.itn-context {
    display: block;
    font-size: 12px;
    color: #747578;
    line-height: 1.5;
    font-style: italic;
    margin-top: auto;
    padding-top: 12px;
}
.itn-context a {
    color: #295da1;
    text-decoration: none;
}
.itn-context a:hover {
    text-decoration: underline;
}

/* FAQ Section */
.itn-faq h3 {
    font-size: 17px;
    font-weight: 600;
    color: #212122;
    margin: 20px 0 8px;
}
.itn-faq h3:first-of-type {
    margin-top: 0;
}
.itn-faq p {
    font-size: 15px;
    color: #555658;
    line-height: 1.7;
    margin: 0 0 16px;
}
.itn-faq p a {
    color: #295da1;
    text-decoration: none;
}
.itn-faq p a:hover {
    text-decoration: underline;
}

/* Summary Section */
.itn-summary p {
    font-size: 15px;
    color: #555658;
    line-height: 1.7;
}

/* Proof Quotes (What Institutions Say) — white card, soft shadow */
.itn-proof-quotes {
    margin-bottom: 30px;
}
.itn-proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 16px;
}
.itn-proof-quote {
    background: #fff;
    border: 1px solid #efeff0;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
    padding: 20px 20px 16px;
    margin: 0;
}
.itn-proof-quote p {
    font-size: 15px;
    line-height: 1.6;
    color: #212122;
    margin: 0 0 10px;
    font-style: italic;
}
.itn-proof-quote footer {
    font-size: 13px;
    color: #555658;
    font-style: normal;
    font-weight: 600;
}
.itn-proof-quote footer cite {
    font-style: normal;
}

/* Collection Stats Bar — light panel with red numerals */
.itn-collection-stats {
    background: #f5f5f5;
    margin-bottom: 16px;
}
.itn-collection-stats .itn-stat-number {
    color: #c93030;
}
.itn-collection-stats .itn-stat-label {
    color: #555658;
}

/* Responsive */
@media (max-width: 900px) {
    #libraries,
    #universities,
    #genealogy,
    #trade-press {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .itn-stats {
        gap: 10px;
    }
    .itn-stat-item {
        min-width: 120px;
        flex: 1 1 40%;
    }
    .itn-stat-number {
        font-size: 28px;
    }
    .itn-citation {
        padding: 14px;
    }
    .itn-citation-header {
        flex-direction: column;
    }
    .itn-citation-header time {
        margin-top: 2px;
    }
    .itn-section h2 {
        font-size: 22px;
    }
    .itn-type {
        margin-left: 0;
        margin-top: 4px;
    }
    .itn-faq h3 {
        font-size: 16px;
    }
    .itn-proof-grid {
        grid-template-columns: 1fr;
    }
    .itn-proof-quote {
        padding: 16px;
    }
    .itn-collection-stats .itn-stat-number {
        font-size: 24px;
    }
}
@media (max-width: 480px) {
    .itn-stat-item {
        flex: 1 1 100%;
    }
}
