.th-journal-hero { background: #edf3f9; }
.th-journal-hero-inner,
.th-journal-featured {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(22px, 5vw, 64px);
}
.th-journal-hero-inner { padding-block: clamp(28px, 5vw, 66px); }
.th-journal-hero-inner > img,
.th-journal-featured > img {
    width: 100%;
    aspect-ratio: 1.95;
    object-fit: cover;
}
.th-journal-hero-inner .th-deck { margin-bottom: 1.2em; }
.th-guide-featured-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 17px; }
.th-journal-articles { background: #f1f6fa; scroll-margin-top: .75rem; }
.th-journal-topics { display: flex; flex-wrap: wrap; gap: 9px; margin: 18px 0 24px; }
.th-journal-topics a {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    border: 1px solid #bfd0df;
    border-radius: 3em;
    color: var(--navy);
    background: #fff;
    font-size: .84rem;
    font-weight: 700;
    text-decoration: none;
}
.th-journal-topics a:hover { border-color: var(--navy); }
.th-journal-topics a[aria-current] { background: var(--navy); color: #fff; border-color: var(--navy); }
.th-guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 22px); }
.th-guide-card { position: relative; min-width: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); }
.th-guide-card-image { display: block; background: #f1f6fa; overflow: hidden; }
.th-guide-card-image img { width: 100%; aspect-ratio: 2.2; object-fit: cover; }
.th-guide-card-body { display: flex; flex-direction: column; flex: 1; padding: clamp(14px, 2vw, 23px); }
.th-guide-card-body h3 { font: 400 clamp(1.13rem, 1.85vw, 1.55rem)/1.23 Georgia, serif; overflow-wrap: anywhere; }
.th-guide-card-body h3 a { color: var(--navy); text-decoration: none; }
.th-guide-card-body h3 a::after { position: absolute; inset: 0; content: ""; }
.th-guide-card:hover h3 a { text-decoration: underline; }
.th-guide-card:focus-within { outline: 2px solid #1c5f92; outline-offset: 3px; }
.th-guide-card-body > p:not(.th-label) { color: var(--muted); font-size: .92rem; }
.th-guide-card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: auto;
    border-top: 1px solid var(--line);
    padding-top: 12px;
    color: var(--muted);
    font-size: .78rem;
}
.th-guide-card-foot > span:last-child { margin-left: auto; color: var(--navy); font-weight: 750; }
.th-journal-contact { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 30px; }
.th-journal-contact p { margin-bottom: 0; }

.th-guide-reading {
    display: grid;
    grid-template-columns: minmax(0, 15rem) minmax(0, 49rem);
    justify-content: center;
    align-items: start;
    gap: clamp(18px, 4vw, 50px);
    margin-block: clamp(24px, 4vw, 44px);
}
.th-guide-reading > .th-prose { width: 100%; min-width: 0; margin-top: 0; }
.th-guide-reading > .th-prose:only-child { grid-column: 1 / -1; }
.th-guide-contents {
    position: sticky;
    top: calc(var(--th-shell-offset, 100px) + var(--wp-admin--admin-bar--height, 0px) + .75rem);
    min-width: 0;
    max-height: calc(100dvh - var(--th-shell-offset, 100px) - var(--wp-admin--admin-bar--height, 0px) - 1.5rem);
    overflow: auto;
}
.th-guide-contents details { padding: 15px 16px; border: 1px solid var(--line); background: var(--surface); }
.th-guide-contents summary { color: var(--navy); cursor: pointer; font-weight: 750; }
.th-guide-contents ul { margin: 12px 0 0; padding: 0; list-style: none; }
.th-guide-contents a { display: block; padding: 5px 0; font-size: .84rem; line-height: 1.35; text-decoration: none; overflow-wrap: anywhere; }
.th-guide-contents a:hover { text-decoration: underline; }
.th-guide-page :is(section[id], h2[id]), .th-product-page :is(#specifications, #inquiry) { scroll-margin-top: .75rem; }
.th-guide-page section[aria-labelledby="quick-answer-title"] { padding: clamp(16px, 3vw, 27px); border-left: 4px solid var(--gold); background: #f2f6fa; margin-bottom: 28px; }
.th-guide-page section[aria-labelledby="quick-answer-title"] > :last-child { margin-bottom: 0; }
.th-guide-page section[aria-labelledby="quick-answer-title"] h2 { margin: 0 0 10px; }
.th-guide-page section[aria-labelledby="quick-answer-title"] > p:first-child { color: #715027; font-size: .78rem; font-weight: 800; letter-spacing: .07em; }
.th-guide-page .th-table-scroll { max-width: 100%; overflow-x: auto; margin: 18px 0 24px; }
.th-guide-page .th-table-scroll table { min-width: min(500px, 155vw); }
.th-guide-page .th-table-scroll caption { color: var(--muted); text-align: left; margin-bottom: 8px; font-size: .86rem; }
.th-guide-related, .th-product-related { margin-top: clamp(34px, 6vw, 64px); padding-top: clamp(22px, 3vw, 34px); border-top: 1px solid var(--line); }
.th-guide-related .th-guide-grid { margin-top: 22px; }

.th-product-discovery-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; }
.th-product-guide-link { color: #0f5091; font-size: .92rem; font-weight: 740; }
.th-product-caption { padding-top: 6px; margin-bottom: 0; }
.th-product-caption:empty { display: none; }
.th-gallery button[aria-pressed="true"] { border-color: #1c5f92; box-shadow: inset 0 0 0 1px #1c5f92; }
.th-product-sample { display: grid; grid-template-columns: 98px minmax(0, 1fr); align-items: start; gap: 14px; padding: 13px; margin-top: 18px; border: 1px solid var(--line); background: var(--surface); }
.th-product-sample img { width: 98px; aspect-ratio: 1.25; object-fit: cover; }
.th-product-sample p { margin: 1px 0 3px; font-size: .85rem; }
.th-product-sample a { font-size: .82rem; font-weight: 700; }
.th-product-quick-actions { display: none; }

@media (max-width: 850px) {
    .th-guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .th-guide-reading { grid-template-columns: minmax(0, 1fr); }
    .th-guide-contents { position: static; max-height: none; overflow: visible; }
    .th-guide-contents ul { columns: 2; column-gap: 16px; }
}

@media (max-width: 680px) {
    .th-journal-hero-inner, .th-journal-featured, .th-guide-grid { grid-template-columns: minmax(0, 1fr); }
    .th-journal-featured > img { aspect-ratio: 1.9; }
    .th-guide-contents ul { columns: 1; }
    .th-product-page.has-mobile-product-actions { padding-bottom: 78px; }
    .th-product-quick-actions {
        position: fixed;
        inset: auto 0 0;
        z-index: 20;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        background: #fff;
        border-top: 1px solid #bfceda;
        padding: 9px 12px calc(9px + env(safe-area-inset-bottom, 0px));
    }
    .th-product-quick-actions .th-button { min-height: 44px; padding: 6px 8px; line-height: 1.23; text-align: center; }
    .th-product-quick-actions .th-button + .th-button { color: var(--navy); background: #fff; border-color: #7892a6; }
}
