/* =========================================================
   GETTING IT RIGHT — ARTICLE REVISION
   ========================================================= */

.idy-steward-message-link {
    background: #f6f1e8;
    border-top: 1px solid rgba(58,48,37,.14);
    border-bottom: 1px solid rgba(58,48,37,.14);
    padding: 42px 0 42px;
}

.idy-steward-message-link__inner {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.idy-steward-message-link__kicker,
.git-kicker,
.git-final-thought__kicker,
.git-article__dateline,
.git-breakout::before {
    margin: 0 0 14px;
    color: #a77743;
    font-family: "Barlow Condensed", Arial, sans-serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: .24em;
    text-transform: uppercase;
}

.idy-steward-message-link h2 {
    max-width: 720px;
    margin: 0 auto 14px;
    color: #2e2923;
    font-family: "Gilda Display", Georgia, serif;
    font-size: clamp(34px,4vw,48px);
    font-weight: 400;
    line-height: 1.08;
}

.idy-steward-message-link__dek {
    max-width: 610px;
    margin: 0 auto 22px;
    color: #6c6257;
    font-family: "Gilda Display", Georgia, serif;
    font-size: 18px;
    line-height: 1.6;
}

.idy-steward-message-link__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #8f6437;
    font-family: "Barlow Condensed", Arial, sans-serif;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: .18em;
    text-decoration: none;
    text-transform: uppercase;
}

.idy-steward-message-link__cta span {
    font-size: 18px;
    transition: transform .25s ease;
}

.idy-steward-message-link__cta:hover span,
.idy-steward-message-link__cta:focus span {
    transform: translateX(4px);
}

.idy-getting-it-right-body {
    margin: 0;
    background: #f6f0e6;
    color: #342f29;
}

.idy-getting-it-right-body .navbar {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100%;
    z-index: 2000;
    min-height: 100px;
    background: transparent !important;
    border-bottom: 1px solid transparent;
    box-shadow: none;
    transform: none !important;
    transition:
        background-color .45s ease,
        box-shadow .45s ease,
        transform .5s ease,
        height .35s ease;
}

.idy-getting-it-right-body .navbar.nav-scroll {
    position: fixed !important;
    top: -100px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100%;
    min-height: 90px;
    height: 90px;
    transform: translateY(100px) !important;
    background: rgba(255,255,255,.97) !important;
    border-bottom-color: rgba(44,40,34,.08);
    box-shadow: 0 5px 15px rgb(15 36 84 / 5%);
}

.idy-getting-it-right-body .navbar .navbar-nav .nav-link,
.idy-getting-it-right-body .navbar .navbar-nav .nav-link:link,
.idy-getting-it-right-body .navbar .navbar-nav .nav-link:visited {
    color: #fff !important;
}

.idy-getting-it-right-body .navbar.nav-scroll .navbar-nav .nav-link,
.idy-getting-it-right-body .navbar.nav-scroll .navbar-nav .nav-link:link,
.idy-getting-it-right-body .navbar.nav-scroll .navbar-nav .nav-link:visited {
    color: #222 !important;
}

.idy-getting-it-right-body .navbar .logo-img {
    opacity: .96;
    transition: opacity .25s ease, width .35s ease, margin .35s ease;
}

.idy-getting-it-right-body .navbar.nav-scroll .logo-img {
    width: 160px;
    margin-bottom: 0;
}

.idy-getting-it-right-body .navbar.nav-scroll .navbar-toggler-icon,
.idy-getting-it-right-body .navbar.nav-scroll .icon-bar {
    color: #aa8453;
}

.git-page,
.git-article,
.git-site-footer {
    background: #f6f0e6;
}

.git-page .container,
.git-site-footer .container {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}


.git-subhero {
    position: relative;
    min-height: clamp(250px, 29vw, 330px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.git-subhero__media,
.git-subhero__media img,
.git-subhero__overlay {
    position: absolute;
    inset: 0;
}

.git-subhero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 45%;
}

.git-subhero__overlay {
    background:
        linear-gradient(90deg, rgba(18,13,8,.62) 0%, rgba(18,13,8,.22) 54%, rgba(18,13,8,.08) 100%),
        linear-gradient(0deg, rgba(18,13,8,.50) 0%, rgba(18,13,8,.02) 64%);
}

.git-subhero .container {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 48px));
}

.git-subhero__content {
    max-width: 670px;
    padding: 0 0 34px;
}

.git-kicker {
    margin-bottom: 10px;
    color: rgba(255,255,255,.82);
    font-size: 14.5px;
    letter-spacing: .22em;
}

.git-subhero h1 {
    margin: 0;
    color: #fff8ef;
    font-family: "Gilda Display", Georgia, serif;
    font-size: clamp(42px,5.2vw,64px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -.03em;
}

.git-dek {
    max-width: 600px;
    margin: 12px 0 0;
    color: rgba(255,247,236,.86);
    font-family: "Cormorant Garamond", Garamond, Georgia, serif;
    font-size: clamp(17px,1.65vw,29px);
    line-height: 1.38;
}

/* Quiet visual lineage — secondary to the article. */
.git-predecessors {
    padding: 65px 0 48px;
    background: #f6f0e6;
    border-bottom: 0;
}

.git-predecessors__title {
    margin: 0 0 8px;
    color: #3a3129;
    font-family: "Gilda Display", Georgia, serif;
    font-size: clamp(36px, 3.25vw, 43px);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -.015em;
    text-align: center;
    text-transform: none;
}

.git-predecessors__label {
    margin: 4px 0 50px;
    color: #a26e3b;
    font-family: "Gilda Display", Georgia, serif;
    font-size: clamp(20px, 1.8vw, 22px);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: .3em;
    text-align: center;
    text-transform: uppercase;
}

.git-predecessors__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 8px;
    width: min(820px,100%);
    margin: 0 auto;
    align-items: end;
}

.git-predecessors figure {
    margin: 0;
    text-align: center;
}

.git-predecessors img {
    display: block;
    width: auto;
    max-width: 100%;
    height: 290px;
    margin: 0 auto;
    object-fit: contain;
}

.git-predecessors figcaption {
    margin-top: 9px;
    color: #746758;
    font-family: "Cormorant Garamond", Garamond, Georgia, serif;
    font-size: 14px;
    line-height: 1.2;
}

/* Magazine-style article body. */
.git-article {
    padding: 8px 0 78px;
}

.git-article > .container {
    max-width: 1040px;
}

.git-article__head {
    width: min(900px,100%);
    margin: 0 auto 34px;
    padding: 0;
    border: 0;
    text-align: center;
}

.git-article__date,
.git-article__dateline {
    font-family: "Gilda Display", Georgia, serif;
    font-weight: 400;
    text-align: center;
    text-transform: uppercase;
}

.git-article__date {
    margin: 0 0 5px;
    color: #a26e3b;
    font-size: clamp(39px, 1.7vw, 40px);
    line-height: 1.16;
    letter-spacing: .075em;
}

.git-article__dateline {
    margin: 0;
    color: #7b5b3b;
    font-size: clamp(15px, 1.4vw, 17px);
    line-height: 1.2;
    letter-spacing: .4em;
}

.git-article__body {
    width: min(900px,100%);
    margin: 0 auto;
    column-count: 2;
    column-gap: 54px;
    column-rule: 1px solid rgba(84,68,50,.08);
}

.git-article__body p,
.git-breakout,
.git-final-thought,
.git-ending {
    break-inside: avoid;
}

.git-article__body p {
    margin: 0 0 .9em;
    color: #453d35;
    font-family: "Cormorant Garamond", Garamond, Georgia, serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.52;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    orphans: 3;
    widows: 3;
}

.git-article__body .git-lead {
    margin-bottom: 1em;
    color: #302a24;
    font-size: 21px;
    font-weight: 500;
    line-height: 1.42;
}

/* One simple editorial breakout that remains inside the column flow. */
.git-breakout {
    width: auto;
    margin: 22px 0 24px;
    padding: 14px 0 14px 17px;
    border: 0;
    border-left: 2px solid rgba(167,119,67,.72);
    text-align: left;
}

.git-breakout::before {
    display: none;
    content: none;
}

.git-breakout p {
    margin: 0;
    color: #332c26;
    font-family: "Gilda Display", Georgia, serif;
    font-size: 21px;
    font-weight: 400;
    line-height: 1.34;
    text-align: left;
}

.git-breakout p span {
    display: block;
    margin-top: 8px;
    color: #6a5845;
    font-size: .86em;
}


.git-article__body strong.git-bell {
    color: #2c2722;
    font-weight: 600;
}

/* The closing reflection remains part of the article rather than a new feature section. */
.git-final-thought {
    margin: 24px 0 0;
    padding-top: 18px;
    border-top: 1px solid rgba(84,68,50,.14);
}

.git-final-thought__kicker {
    margin-bottom: 13px;
    text-align: left;
    font-size: 10px;
}

.git-ending {
    margin: 30px auto 14px !important;
    width: min(520px, 92%);
    color: #2f2923 !important;
    font-family: "Gilda Display", Georgia, serif !important;
    font-size: 20px !important;
    line-height: 1.42 !important;
    text-align: center !important;
    break-inside: avoid;
}

.git-ending span {
    display: block;
}

.git-ending span + span {
    margin-top: 5px;
}

.git-signature {
    width: min(900px, calc(100% - 48px));
    margin: 28px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(84,68,50,.14);
    text-align: right;
}

.git-signature p {
    margin: 0 0 2px;
    color: #2d2822;
    font-family: "Gilda Display", Georgia, serif;
    font-size: 18px;
    line-height: 1.25;
}

.git-signature span {
    color: #8a765f;
    font-family: "Barlow Condensed", Arial, sans-serif;
    font-size: 10.5px;
    line-height: 1.45;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.git-site-footer {
    border-top: 0;
    background: #050a0e;
    padding: 30px 0 28px;
}

.git-site-footer .container {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.git-site-footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 28px;
    align-items: center;
}

.git-site-footer__copyright {
    margin: 0;
    color: rgba(255,255,255,.78);
    font-family: "Barlow", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.3;
}

.git-site-footer__social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.git-site-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border: 1px solid rgba(214,168,67,.68);
    border-radius: 50%;
    color: #d6a843;
    text-decoration: none;
    transition: color .22s ease, background-color .22s ease, border-color .22s ease;
}

.git-site-footer__social a:hover,
.git-site-footer__social a:focus {
    background: #d6a843;
    border-color: #d6a843;
    color: #06121a;
}

.git-site-footer__credit {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: nowrap;
    white-space: nowrap;
    color: rgba(255,255,255,.76);
    font-family: "Barlow", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.2;
}

.git-site-footer__credit a {
    color: #d6a843;
    text-decoration: none;
}

.git-site-footer__credit a:last-child {
    color: rgba(255,255,255,.78);
}

.git-site-footer__sep {
    color: rgba(255,255,255,.42);
}

@media screen and (max-width: 991px) {
    .idy-getting-it-right-body .navbar.nav-scroll {
        background: rgba(255,255,255,.98) !important;
    }

    .idy-getting-it-right-body .navbar:not(.nav-scroll) .navbar-collapse {
        background: rgba(255,255,255,.98);
    }

    .idy-getting-it-right-body .navbar:not(.nav-scroll) .navbar-collapse .nav-link {
        color: #222 !important;
    }
}

@media (max-width: 920px) {
    .git-article > .container,
    .git-article__head,
    .git-article__body {
        width: min(720px,100%);
    }

    .git-article__body {
        column-count: 1;
        column-rule: 0;
    }

    .git-article__body p {
        font-size: 18px;
        line-height: 1.55;
    }

    .git-signature,
    .git-return {
        width: min(720px, calc(100% - 48px));
    }
}

@media (max-width: 820px) {
    .idy-steward-message-link {
        padding: 52px 0 56px;
    }

    .git-subhero {
        min-height: 250px;
    }

    .git-subhero__content {
        padding-bottom: 28px;
    }
}

@media (max-width: 920px) {
    .git-site-footer__inner {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 18px;
        text-align: center;
    }

    .git-site-footer__credit {
        justify-content: center;
        flex-wrap: wrap;
        white-space: normal;
    }
}

@media (max-width: 575px) {
    .git-page .container,
    .git-site-footer .container,
    .git-subhero .container,
    .git-signature,
    .git-return {
        width: calc(100% - 32px);
    }

    .git-subhero {
        min-height: 220px;
    }

    .git-subhero__content {
        padding-bottom: 24px;
    }

    .git-predecessors {
        padding: 26px 0 28px;
    }

    .git-predecessors__title {
        margin-bottom: 7px;
        font-size: 31px;
    }

    .git-predecessors__label {
        margin-bottom: 20px;
        font-size: 14px;
    }

    .git-predecessors__grid {
        width: min(440px,100%);
        gap: 8px;
    }

    .git-predecessors img {
        height: 138px;
    }

    .git-predecessors figcaption {
        font-size: 10.5px;
    }

    .git-article {
        padding: 32px 0 64px;
    }

    .git-article__body p {
        font-size: 17px;
        line-height: 1.5;
        text-align: left;
        hyphens: none;
    }

    .git-article__body .git-lead {
        font-size: 21px;
    }

    .git-breakout p {
        font-size: 20px;
    }

    .git-ending {
        width: 100%;
        font-size: 19px !important;
        text-align: center !important;
    }

    .git-site-footer {
        padding: 28px 0 26px;
    }

    .git-site-footer__inner {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 18px;
        text-align: center;
    }

    .git-site-footer__credit {
        justify-content: center;
        flex-wrap: wrap;
        white-space: normal;
        line-height: 1.4;
    }
}

@media (prefers-reduced-motion: reduce) {
    .idy-steward-message-link__cta span {
        transition: none;
    }
}

/* =========================================================
   GETTING IT RIGHT — FOLDED PAGE-SPECIFIC RULES
   ========================================================= */

/* Predecessor headings must be visible immediately and animate on page load. */
.git-load-predecessor-title,
.git-load-predecessor-label {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none;
}

.js .git-load-predecessor-title {
    animation: gitPredecessorTitleIn 0.85s cubic-bezier(.22,.61,.36,1) both;
}

.js .git-load-predecessor-label {
    animation: gitPredecessorLabelIn 0.85s cubic-bezier(.22,.61,.36,1) 0.14s both;
}

@keyframes gitPredecessorTitleIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gitPredecessorLabelIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .js .git-load-predecessor-title,
    .js .git-load-predecessor-label {
        animation: none;
    }
}

/* Hero copy: visible and animated on initial page load, never gated by scroll reveal. */
.git-load-hero-copy {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none;
}
.js .git-load-hero-copy {
    animation: gitHeroCopyIn 1s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes gitHeroCopyIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Center Dr. Drake portrait: visible immediately and moves on load. */
.git-load-drake {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none;
}
.js .git-load-drake {
    animation: gitDrakeIn 0.9s cubic-bezier(.22,.61,.36,1) 0.12s both;
}
@keyframes gitDrakeIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .js .git-load-hero-copy,
    .js .git-load-drake {
        animation: none;
    }
}

/* Getting It Right — mobile full-height hero, portrait rise, footer */
@media screen and (max-width: 575px) {
    /* Full-screen editorial opening, using Newfoundland as the reference. */
    body.idy-getting-it-right-body .git-subhero {
        height: 100vh !important;
        min-height: 100vh !important;
    }

    body.idy-getting-it-right-body .git-subhero__content {
        padding-bottom: 42px !important;
    }

    /* Only the three predecessor portraits rise on scroll on mobile. */
    body.idy-getting-it-right-body .git-predecessors figure.git-mobile-scroll-rise {
        opacity: 1 !important;
        transform: translate3d(0, 20px, 0) !important;
        transition: opacity .88s ease, transform .88s ease !important;
        animation: none !important;
        will-change: opacity, transform;
    }

    body.idy-getting-it-right-body .git-predecessors figure.git-mobile-scroll-rise.is-visible {
        opacity: 1 !important;
        transform: translate3d(0, 0, 0) !important;
    }

    /* Give the custom article footer the same breathing room as the corrected mobile pages. */
    body.idy-getting-it-right-body .git-site-footer {
        padding-top: 24px !important;
        padding-bottom: 50px !important;
    }

    body.idy-getting-it-right-body .git-site-footer__inner {
        margin-top: 0 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.idy-getting-it-right-body .git-predecessors figure.git-mobile-scroll-rise {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Getting It Right — desktop standard subhero height */
@media screen and (min-width: 992px) {
    body.idy-getting-it-right-body .git-subhero {
        min-height: clamp(380px, 52vh, 560px) !important;
    }
}
