/* Horn & Grain tang guide photo repair (2026-08-09). */

body.postid-257 .entry-content .hag-tang-guide {
    --tg-ink: #29231d;
    --tg-muted: #665f56;
    --tg-red: #873d31;
    --tg-gold: #b68a45;
    --tg-paper: #fbf8f2;
    --tg-line: #dfd6c8;
    width: min(100%, 920px);
    margin-inline: auto;
    color: var(--tg-ink);
}

body.postid-257 .entry-content .hag-tang-guide *,
body.postid-257 .entry-content .hag-tang-guide *::before,
body.postid-257 .entry-content .hag-tang-guide *::after {
    box-sizing: border-box;
}

body.postid-257 .entry-content .hag-tang-guide > br,
body.postid-257 .entry-content .hag-tang-actions > br {
    display: none;
}

body.postid-257 .entry-content .hag-tang-safety {
    margin: 0 0 1rem;
    padding: .85rem 1rem;
    color: var(--tg-ink);
    background: #fff6e8;
    border: 1px solid #dfc18e;
    border-radius: 8px;
    line-height: 1.5;
}

body.postid-257 .entry-content .hag-tang-safety a {
    color: var(--tg-red);
    font-weight: 700;
}

body.postid-257 .entry-content .hag-tang-hero,
body.postid-257 .entry-content .hag-tang-handle-on {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(260px, .92fr);
    gap: clamp(1.25rem, 4vw, 2.75rem);
    align-items: center;
    margin: 0 0 clamp(2.5rem, 7vw, 4.5rem);
    padding: clamp(1.15rem, 4vw, 2.5rem);
    background: var(--tg-paper);
    border: 1px solid var(--tg-line);
    border-radius: 16px;
}

body.postid-257 .entry-content .hag-tang-hero-copy,
body.postid-257 .entry-content .hag-tang-handle-copy,
body.postid-257 .entry-content .hag-tang-step-number + div {
    min-width: 0;
}

body.postid-257 .entry-content .hag-tang-eyebrow {
    margin: 0 0 .7rem;
    color: var(--tg-red);
    font-size: .76rem;
    font-weight: 750;
    letter-spacing: .11em;
}

body.postid-257 .entry-content .hag-tang-lede {
    margin: 0 0 1.25rem;
    font-size: clamp(1.05rem, 2.2vw, 1.3rem);
    line-height: 1.55;
}

body.postid-257 .entry-content .hag-tang-five {
    display: grid;
    gap: .55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.postid-257 .entry-content .hag-tang-five li {
    display: grid;
    grid-template-columns: 3.2rem minmax(0, 1fr);
    gap: .75rem;
    align-items: center;
    margin: 0;
    padding: .65rem .75rem;
    background: #fff;
    border: 1px solid var(--tg-line);
    border-radius: 8px;
}

body.postid-257 .entry-content .hag-tang-five strong {
    color: var(--tg-red);
    font-size: 1.05rem;
    text-align: center;
}

body.postid-257 .entry-content .hag-tang-photo {
    margin: 0;
}

body.postid-257 .entry-content .hag-tang-photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 10px;
}

body.postid-257 .entry-content .hag-tang-photo figcaption {
    margin-top: .65rem;
    color: var(--tg-muted);
    font-size: .82rem;
    line-height: 1.45;
}

body.postid-257 .entry-content .hag-tang-section {
    margin: 0 auto clamp(2.5rem, 7vw, 4.5rem);
}

body.postid-257 .entry-content .hag-tang-section h2,
body.postid-257 .entry-content .hag-tang-handle-on h2,
body.postid-257 .entry-content .hag-tang-finish h2 {
    margin: 0 0 1rem;
    color: var(--tg-ink);
    font-size: clamp(1.55rem, 4vw, 2.15rem);
    line-height: 1.18;
}

body.postid-257 .entry-content .hag-tang-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .9rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.postid-257 .entry-content .hag-tang-steps > li {
    display: grid;
    grid-template-columns: 2.45rem minmax(0, 1fr);
    gap: .75rem;
    align-content: start;
    margin: 0;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--tg-line);
    border-radius: 10px;
}

body.postid-257 .entry-content .hag-tang-step-number {
    display: grid;
    width: 2.45rem;
    height: 2.45rem;
    place-items: center;
    color: #fff;
    background: var(--tg-red);
    border-radius: 50%;
    font-size: .78rem;
    font-weight: 750;
    line-height: 1;
}

body.postid-257 .entry-content .hag-tang-steps h3 {
    margin: .05rem 0 .35rem;
    font-size: 1rem;
    line-height: 1.25;
}

body.postid-257 .entry-content .hag-tang-steps p,
body.postid-257 .entry-content .hag-tang-note p,
body.postid-257 .entry-content .hag-tang-handle-on p,
body.postid-257 .entry-content .hag-tang-finish p {
    margin: 0;
    line-height: 1.6;
}

body.postid-257 .entry-content .hag-tang-note {
    margin-top: .9rem;
    padding: .9rem 1rem;
    background: #f4eee4;
    border-left: 4px solid var(--tg-gold);
    border-radius: 0 8px 8px 0;
}

body.postid-257 .entry-content .hag-tang-photo-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .7rem;
    margin: 0;
    padding: 0;
    counter-reset: photo;
    list-style: none;
}

body.postid-257 .entry-content .hag-tang-photo-list li {
    margin: 0;
    padding: 1rem;
    background: var(--tg-paper);
    border-top: 3px solid var(--tg-gold);
    border-radius: 6px;
}

body.postid-257 .entry-content .hag-tang-photo-list strong,
body.postid-257 .entry-content .hag-tang-photo-list span {
    display: block;
}

body.postid-257 .entry-content .hag-tang-photo-list span {
    margin-top: .25rem;
    color: var(--tg-muted);
    font-size: .88rem;
    line-height: 1.45;
}

body.postid-257 .entry-content .hag-tang-small {
    margin: .85rem 0 0;
    color: var(--tg-muted);
    font-size: .88rem;
}

body.postid-257 .entry-content .hag-tang-handle-on {
    grid-template-columns: minmax(0, 1.1fr) minmax(240px, .9fr);
}

body.postid-257 .entry-content .hag-tang-optional {
    margin-top: 1rem;
    border-top: 1px solid var(--tg-line);
}

body.postid-257 .entry-content .hag-tang-optional summary {
    padding: .85rem 0 .4rem;
    cursor: pointer;
    color: var(--tg-red);
    font-weight: 700;
}

body.postid-257 .entry-content .hag-tang-optional ul {
    margin: .35rem 0 .6rem 1.2rem;
}

body.postid-257 .entry-content .hag-tang-optional p {
    color: var(--tg-muted);
    font-size: .88rem;
}

body.postid-257 .entry-content .hag-tang-finish {
    margin: 0;
    padding: clamp(1.25rem, 4vw, 2rem);
    text-align: center;
    background: #2f2923;
    border-radius: 14px;
}

body.postid-257 .entry-content .hag-tang-finish h2,
body.postid-257 .entry-content .hag-tang-finish p {
    color: #fff;
}

body.postid-257 .entry-content .hag-tang-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
    margin: 1.15rem 0 0;
    padding: 0;
    list-style: none;
}

body.postid-257 .entry-content .hag-tang-actions li {
    margin: 0;
}

body.postid-257 .entry-content .hag-tang-actions .button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: .7rem 1rem;
    color: #2f2923;
    background: #fff;
    border: 1px solid #fff;
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none;
}

body.postid-257 .entry-content .hag-tang-actions .button-outline {
    color: #fff;
    background: transparent;
}

body.postid-257 .entry-content .hag-tang-actions .button:hover,
body.postid-257 .entry-content .hag-tang-actions .button:focus-visible {
    color: #fff;
    background: var(--tg-red);
    border-color: var(--tg-red);
}

body.postid-257 .entry-content #photos,
body.postid-257 .entry-content #handle-on,
body.postid-257 .entry-content #take-readings-title {
    scroll-margin-top: 7rem;
}

/* Keep the guide focused: archive/social keeps the real featured photo; the article opens on the measurement image. */
body.postid-257 .ast-single-post-featured-section,
body.postid-257 header.entry-header .post-thumb,
body.postid-257 .post-navigation,
body.postid-257 #comments,
body.postid-257 .comments-area {
    display: none !important;
}

body.postid-257 .entry-content .hag-tang-guide a:focus-visible,
body.postid-257 .entry-content .hag-tang-guide summary:focus-visible {
    outline: 3px solid var(--tg-red);
    outline-offset: 3px;
}

body.postid-257 .entry-content .hag-tang-finish a:focus-visible {
    outline-color: #f2c36e;
}

body.admin-bar.postid-257 .entry-content #photos,
body.admin-bar.postid-257 .entry-content #handle-on,
body.admin-bar.postid-257 .entry-content #take-readings-title {
    scroll-margin-top: 9rem;
}

@media (max-width: 760px) {
    body.postid-257 .entry-content .hag-tang-hero,
    body.postid-257 .entry-content .hag-tang-handle-on {
        grid-template-columns: minmax(0, 1fr);
        padding: 1rem;
    }

    body.postid-257 .entry-content .hag-tang-steps,
    body.postid-257 .entry-content .hag-tang-photo-list {
        grid-template-columns: minmax(0, 1fr);
    }

    body.postid-257 .entry-content .hag-tang-photo-list {
        gap: .55rem;
    }

    body.postid-257 .entry-content .hag-tang-photo-list li {
        padding: .75rem .85rem;
    }

    body.postid-257 .entry-content .hag-tang-actions {
        display: grid;
    }

    body.postid-257 .entry-content .hag-tang-actions .button {
        width: 100%;
    }
}

@media print {
    body.postid-257 .entry-content .hag-tang-actions {
        display: none;
    }

    body.postid-257 .entry-content .hag-tang-hero,
    body.postid-257 .entry-content .hag-tang-handle-on {
        break-inside: avoid;
        box-shadow: none;
    }
}
