/* Existing selected hip images; preserve the shared owner-guide presentation. */
.hip-owner-guide-page #main-content .hip-consult-figure {margin:1.5rem auto;min-width:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;}
.hip-owner-guide-page #main-content .hip-consult-figure > .curated-open {display:block;width:100%;padding:0;border:0;border-radius:0;background:#fff;cursor:zoom-in;color:inherit;box-shadow:none;}
.hip-owner-guide-page #main-content .hip-consult-figure img {display:block;width:100%;height:auto;max-height:36rem;object-fit:contain;}
.hip-owner-guide-page #main-content .hip-consult-figure figcaption {padding:0;margin-top:.65rem;font-size:1rem!important;line-height:1.6!important;}
.hip-owner-guide-page #main-content .hip-portrait {max-width:34rem;}
.hip-owner-guide-page #main-content .hip-portrait img {max-height:34rem;}
.hip-owner-guide-page #main-content .tplo-enlarge-cue {position:static;display:table;margin:.5rem .5rem .5rem auto;padding:.35rem .6rem;border:1px solid #bdc7cf;border-radius:5px;background:#fff;color:#456679;font:600 .85rem/1.4 system-ui,sans-serif;pointer-events:none;}
.hip-owner-guide-page #main-content .curated-open:focus-visible {outline:3px solid var(--brand-accent,#456679);outline-offset:3px;}
.hip-owner-guide-page #main-content .hip-mobile-view {display:none;}
.hip-owner-guide-page #main-content .hip-pennhip-views {align-items:start;}
.hip-owner-guide-page #main-content .hip-pennhip-views .hip-consult-figure {width:100%;margin:0;}
.hip-owner-guide-page #main-content .hip-pennhip-views img {aspect-ratio:1;max-height:none;object-fit:contain;}
.hip-owner-guide-page #main-content .hip-index-pair {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem;}
.hip-owner-guide-page #main-content .hip-index-pair figure {width:100%;}
.hip-owner-guide-page #main-content .hip-index-pair img {height:20rem;max-height:none;}
.hip-owner-guide-page #main-content .hip-manual-sequence [data-curated-frame][hidden] {display:none!important;}
.hip-owner-guide-page #main-content .hip-manual-sequence figure {margin:0;}
.hip-owner-guide-page #main-content .hip-manual-sequence img {height:27rem;max-height:60dvh;object-fit:contain;}
.hip-owner-guide-page #main-content .hip-image-detail {padding-top:.6rem;}
.hip-owner-guide-page #main-content .hip-image-detail > :first-child {margin-top:.5rem;}
.hip-owner-guide-page .curated-viewer[open] {display:flex;flex-direction:column;}
.hip-owner-guide-page .curated-viewer-tools {flex-shrink:0;}
.hip-owner-guide-page .curated-viewer-tools strong {min-width:0;overflow-wrap:anywhere;}
.hip-owner-guide-page .curated-viewer-pan {min-height:0;flex:0 0 auto;max-height:65dvh;}
.hip-owner-guide-page .curated-viewer-pan:not(.zoomed) img {width:auto;height:auto;max-height:58dvh;}
.hip-owner-guide-page .curated-viewer-pan.zoomed img {height:auto;}
.hip-owner-guide-page .tplo-media-help {font-size:.875rem;line-height:1.5;margin:0 0 .6rem;color:#456679;}
@media(max-width:700px){
 .hip-owner-guide-page #main-content .hip-desktop-view {display:none;}
 .hip-owner-guide-page #main-content .hip-mobile-view {display:block;}
 .hip-owner-guide-page #main-content .hip-consult-figure img {max-height:32rem;}
 .hip-owner-guide-page #main-content .hip-pennhip-views {grid-template-columns:1fr;}
 .hip-owner-guide-page #main-content .hip-pennhip-views .hip-consult-figure {max-width:30rem;}
 .hip-owner-guide-page #main-content .hip-index-pair {grid-template-columns:1fr;gap:0;}
 .hip-owner-guide-page #main-content .hip-index-pair figure {max-width:24rem;}
 .hip-owner-guide-page #main-content .hip-manual-sequence img {height:23rem;max-height:55dvh;}
 .hip-owner-guide-page #main-content #hip-coverage-mobile img {height:auto;max-height:26rem;}
}
@media print{
 .hip-owner-guide-page #main-content .hip-desktop-view {display:block!important;}
 .hip-owner-guide-page #main-content .hip-mobile-view {display:none!important;}
 .hip-owner-guide-page #main-content .hip-manual-sequence [data-curated-frame][hidden] {display:block!important;}
}

/* The owner decisions: a complete workup, then FHO versus THR. */
.hip-owner-guide-page #main-content .hip-workup-steps {padding-left:1.5rem;}
.hip-owner-guide-page #main-content .hip-workup-steps li {margin:.8rem 0;}
.hip-owner-guide-page #main-content .hip-surgery-options {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem;margin:1.25rem 0 2rem;}
.hip-owner-guide-page #main-content .hip-option-card {display:grid;grid-template-rows:auto auto auto 1fr;min-width:0;gap:.75rem;padding:1rem;border:1px solid var(--line,#d9dce3);border-radius:6px;background:transparent;}
.hip-owner-guide-page #main-content .hip-option-card h4 {margin:0;font-size:1.25rem;line-height:1.35;}
.hip-owner-guide-page #main-content .hip-option-card > p {margin:0;font-size:1rem;line-height:1.6;}
.hip-owner-guide-page #main-content .hip-option-card figure {width:100%;max-width:none;margin:0;}
.hip-owner-guide-page #main-content .hip-option-card figure img {height:20rem;max-height:none;object-fit:contain;}
.hip-owner-guide-page #main-content .hip-option-card dl {margin:.5rem 0 0;font-size:1rem;line-height:1.6;}
.hip-owner-guide-page #main-content .hip-option-card dl > div {border-top:1px solid var(--line,#d9dce3);padding:.75rem 0;}
.hip-owner-guide-page #main-content .hip-option-card dt {font-weight:700;}
.hip-owner-guide-page #main-content .hip-option-card dd {margin:.3rem 0 0;}
@supports(grid-template-rows:subgrid){
 .hip-owner-guide-page #main-content .hip-option-card {grid-row:span 4;grid-template-rows:subgrid;}
}
.hip-owner-guide-page #main-content .hip-lifetime-costs {margin:2rem 0;padding-top:1.5rem;border-top:1px solid var(--line,#d9dce3);}
.hip-owner-guide-page #main-content .hip-study-context {font-size:1rem;line-height:1.6;}
.hip-owner-guide-page #main-content .hip-study-table {width:100%;border-collapse:collapse;font:1rem/1.5 system-ui,sans-serif;margin:1.25rem 0;}
.hip-owner-guide-page #main-content .hip-study-table caption {text-align:left;font-weight:700;padding:.6rem 0;}
.hip-owner-guide-page #main-content .hip-study-table :is(th,td) {padding:.7rem .6rem;text-align:right;border:1px solid var(--line,#d9dce3);vertical-align:top;}
.hip-owner-guide-page #main-content .hip-study-table thead th {background:var(--wash,#f5f5f7);font-size:.9rem;}
.hip-owner-guide-page #main-content .hip-study-table th:first-child {text-align:left;}
.hip-owner-guide-page #main-content .hip-cost-mobile-label {display:none;}
.hip-owner-guide-page #main-content .hip-workup-stage {margin:0;padding:0;border:0;border-top:1px solid var(--line,#d9dce3);border-radius:0;background:transparent;box-shadow:none;}
.hip-owner-guide-page #main-content .hip-workup-stage:last-child {border-bottom:1px solid var(--line,#d9dce3);}
.hip-owner-guide-page #main-content .hip-workup-stage > summary {min-height:64px;padding:16px 0;}
.hip-owner-guide-page #main-content .hip-workup-stage-body {padding:0 0 1.25rem;}
.hip-owner-guide-page #main-content .hip-workup-stage-body > section {padding:0;border:0;}
.hip-owner-guide-page #main-content .hip-workup-stage-body > section > :first-child {margin-top:.25rem;}
.hip-owner-guide-page #main-content .hip-cost-takeaways {padding:1rem 0;margin:1rem 0;border-top:1px solid var(--line,#d9dce3);border-bottom:1px solid var(--line,#d9dce3);}
.hip-owner-guide-page #main-content .hip-cost-takeaways h4 {margin:0 0 .65rem;font-size:1.1rem;}
.hip-owner-guide-page #main-content .hip-cost-takeaways li {margin:.65rem 0;}
.hip-owner-guide-page #main-content .hip-study-lowest {background:#edf3f7;}
.hip-owner-guide-page #main-content .hip-study-value {display:inline-flex;flex-direction:column;align-items:flex-end;gap:.2rem;}
.hip-owner-guide-page #main-content .hip-study-lowest .hip-study-amount {font-weight:700;}
.hip-owner-guide-page #main-content .hip-lowest-badge {font-size:.75rem;line-height:1.3;color:#456679;}
.hip-owner-guide-page #main-content #hip-function-comparison {margin-top:1.75rem;padding-top:1.25rem;border-top:1px solid var(--line,#d9dce3);}
@media(max-width:700px){
 .hip-owner-guide-page #main-content .hip-surgery-options {grid-template-columns:1fr;gap:1.5rem;}
 .hip-owner-guide-page #main-content .hip-option-card {grid-row:auto;grid-template-rows:auto auto auto auto;}
 .hip-owner-guide-page #main-content .hip-option-card figure img {height:auto;max-height:none;}
}
@media(max-width:850px){
 .hip-owner-guide-page #main-content .hip-study-table {display:block;}
 .hip-owner-guide-page #main-content .hip-study-table caption {display:block;}
 .hip-owner-guide-page #main-content .hip-study-table thead {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);}
 .hip-owner-guide-page #main-content .hip-study-table tbody {display:block;}
 .hip-owner-guide-page #main-content .hip-study-table tr {display:block;margin:0 0 1rem;border:1px solid var(--line,#d9dce3);border-radius:5px;}
 .hip-owner-guide-page #main-content .hip-study-table tbody th {display:block;padding:.6rem .75rem;background:var(--wash,#f5f5f7);border:0;text-align:left;}
 .hip-owner-guide-page #main-content .hip-study-table td {display:flex;justify-content:space-between;gap:1rem;padding:.6rem .75rem;border:0;border-top:1px solid var(--line,#d9dce3);text-align:right;}
 .hip-owner-guide-page #main-content .hip-cost-mobile-label {display:block;text-align:left;min-width:0;}
}

/* Keep age context with each stacked cost row. */
.hip-owner-guide-page #main-content .hip-cost-age-label {display:none;}
@media(max-width:850px){
 .hip-owner-guide-page #main-content .hip-cost-age-label {display:inline;}
}

/* Young-dog options: show both timing windows before the detailed explanation. */
.hip-owner-guide-page #main-content .hip-young-option > summary {min-height:76px;padding:16px 0;}
.hip-owner-guide-page #main-content .hip-young-option > summary > span {min-width:0;}
.hip-owner-guide-page #main-content .hip-option-age {display:block;margin-top:.15rem;color:#456679;font-size:.9rem;font-weight:500;line-height:1.5;}
