.live-roof-guide {
    --roof-guide-navy: #062637;
    --roof-guide-gold: #ffb912;
    --roof-guide-cream: #f7f2e7;
    --roof-guide-line: #e1e1df;
    color: var(--roof-guide-navy);
}
.itum-live .roof-guide-hero {
    --page-hero-height: clamp(180px, 14vw, 245px);
    --page-hero-fade: linear-gradient(to right, transparent 30%, #05263762 50%, #052637 88%);
}
.itum-live .roof-guide-hero h1 { font-size: clamp(30px, 3vw, 44px); }
.itum-live .live-page-hero.roof-guide-hero figure img { object-position: center 17%; object-view-box: inset(24% 0 0 0); }
.roof-guide-wrap { width: calc(100% - 64px); max-width: 1180px; margin-inline: auto; padding: 34px 0 45px; }
.roof-guide-index {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px 0;
    padding: 10px 14px;
    margin: 0 0 32px;
    border-radius: 12px;
    background: var(--roof-guide-cream);
}
.roof-guide-index a { display: block; padding: 0 clamp(8px, 1.5vw, 21px); font-size: 15px; font-weight: 800; line-height: 1.25; }
.roof-guide-index a + a { border-inline-start: 1px solid #a7b0b5; }
.roof-guide-index a:hover, .live-roof-guide summary:hover { color: #805300; }
.roof-guide-index a:focus-visible, .live-roof-guide summary:focus-visible { outline: 2px solid #936300; outline-offset: 3px; }
.roof-guide-wrap :is(h2, h3, p) { margin: 0; }
.roof-guide-wrap h2 { font-size: clamp(25px, 2.5vw, 36px); font-weight: 900; line-height: 1.18; margin-bottom: 12px; }
.roof-guide-wrap h3 { font-size: clamp(18px, 1.65vw, 24px); font-weight: 850; line-height: 1.25; }
.roof-guide-wrap p, .roof-guide-wrap li { font-size: 17px; line-height: 1.6; }
.roof-guide-wrap p + p { margin-top: 11px; }
.roof-guide-section { margin-top: clamp(24px, 3vw, 42px); padding-top: clamp(21px, 2.7vw, 37px); border-top: 1px solid var(--roof-guide-line); }
.roof-guide-wrap [id] { scroll-margin-top: 102px; }
.roof-guide-section h2::after, .roof-guide-result h3::after {
    display: block;
    width: 57px;
    height: 4px;
    margin-top: 8px;
    background: var(--roof-guide-gold);
    content: "";
}
.roof-guide-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.roof-guide-cards > div, .roof-guide-materials > div { background: var(--roof-guide-cream); border-radius: 12px; padding: 18px 22px; }
.roof-guide-cards > div { text-align: center; }
.roof-guide-cards .icon { display: block; width: 43px; height: 43px; margin: 0 auto 9px; color: #bc7900; }
.roof-guide-cards h3, .roof-guide-materials h3, .roof-guide-flood h3, .roof-guide-steps h3 { margin-bottom: 5px; }
.roof-guide-split, .roof-guide-materials, .roof-guide-bottom { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(20px, 3vw, 42px); }
.roof-guide-split { align-items: center; }
.roof-guide-section > p + :is(.roof-guide-split,.roof-guide-materials,.roof-guide-steps,.roof-guide-calc,.roof-guide-table) { margin-top: 17px; }
.roof-guide-split ul { margin: 10px 0 0; padding-inline-start: 22px; }
.roof-guide-materials h3 { padding-inline-start: 10px; border-inline-start: 4px solid var(--roof-guide-gold); }
.roof-guide-layers { display: grid; place-items: center; gap: 4px; margin: 0; padding: 16px; background: var(--roof-guide-cream); border-radius: 12px; }
.roof-guide-layers figcaption { text-align: center; font-size: 14px; line-height: 1.4; color: #455963; }
.roof-guide-layer-stack { position: relative; width: min(80%, 336px); aspect-ratio: 1.9; }
.roof-guide-layer-stack i {
    --roof-layer-fill: #4c5b65;
    --roof-layer-offset: 0%;
    position: absolute;
    z-index: 5;
    inset: var(--roof-layer-offset) 0 auto;
    height: 44%;
    clip-path: polygon(50% 0, 100% 52%, 50% 100%, 0 52%);
    background: linear-gradient(150deg, #ffffff38, transparent 55%), var(--roof-layer-fill);
}
.roof-guide-layer-stack i:nth-child(2) { --roof-layer-fill: #9fb2bb; --roof-layer-offset: 13%; z-index: 4; }
.roof-guide-layer-stack i:nth-child(3) { --roof-layer-fill: #d7c5a5; --roof-layer-offset: 26%; z-index: 3; }
.roof-guide-layer-stack i:nth-child(4) { --roof-layer-fill: #e9dfc7; --roof-layer-offset: 39%; z-index: 2; }
.roof-guide-layer-stack i:nth-child(5) { --roof-layer-fill: #80858a; --roof-layer-offset: 52%; z-index: 1; }
.roof-guide-ticks { list-style: none; padding: 0 !important; margin: 8px 0 0; }
.roof-guide-ticks li { display: flex; gap: 9px; align-items: flex-start; margin-top: 5px; }
.roof-guide-ticks li::before { content: "✓"; flex: 0 0 19px; text-align: center; line-height: 19px; margin-top: 4px; border-radius: 3px; background: var(--roof-guide-gold); color: var(--roof-guide-navy); font-size: 14px; font-weight: 900; }
.roof-guide-flood { background: var(--roof-guide-cream); border: 1px solid #e6a400; border-radius: 11px; padding: 17px 20px; }
.roof-guide-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 22px; text-align: center; }
.roof-guide-steps li { position: relative; padding: 2px 5px; }
.roof-guide-steps li + li::before { content: "‹"; direction: ltr; color: #a86b00; position: absolute; inset-inline-start: -15px; top: 11px; font-size: 30px; font-weight: 800; }
.roof-guide-steps p { font-size: 15px; line-height: 1.45; }
.roof-guide-step-icon { position: relative; display: grid; place-items: center; width: 55px; height: 55px; margin: 0 auto 8px; border-radius: 50%; background: var(--roof-guide-cream); }
.roof-guide-step-icon .icon { width: 33px; height: 33px; }
.roof-guide-step-icon span { position: absolute; top: -4px; inset-inline-start: -7px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--roof-guide-gold); font-size: 12px; font-weight: 900; }
.roof-guide-calc { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); gap: 16px; padding: 12px; background: var(--roof-guide-cream); border-radius: 12px; }
.roof-guide-calc form { margin: 0; padding: 8px 13px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 16px; align-content: start; }
.roof-guide-field { display: grid; gap: 5px; }
.roof-guide-field[hidden] { display: none; }
.roof-guide-field label, .roof-guide-extra { font-weight: 800; font-size: 15px; }
.roof-guide-field :is(input,select) { width: 100%; min-width: 0; min-height: 40px; padding: 6px 10px; font: inherit; color: inherit; background: white; border: 1px solid #ccd2d5; border-radius: 7px; }
.roof-guide-extra { display: flex; align-self: end; align-items: center; gap: 7px; min-height: 40px; }
.roof-guide-extra input { accent-color: var(--roof-guide-gold); width: 17px; height: 17px; }
.roof-guide-calc button { grid-column: 1/-1; justify-self: start; min-height: 41px; padding: 7px 26px; background: var(--roof-guide-gold); color: var(--roof-guide-navy); border: 0; border-radius: 30px; font: inherit; font-weight: 850; cursor: pointer; }
.roof-guide-calc button:hover { background: #ffd265; }
.roof-guide-result { min-width: 0; padding: 17px 18px; background: var(--roof-guide-navy); border-radius: 10px; color: #fff; }
.roof-guide-result h3 { color: inherit; margin-bottom: 13px; }
.roof-guide-result .roof-cost-output { display: grid; align-content: center; min-height: 95px; padding: 12px; border-radius: 8px; border: 1px solid #ffffff55; overflow-wrap: anywhere; }
.roof-guide-result .roof-cost-total { display: block; font-size: clamp(22px, 2.7vw, 38px); color: #ffca45; }
.roof-guide-result small { display: block; margin-top: 6px; line-height: 1.45; }
.roof-guide-table { border: 1px solid var(--roof-guide-line); border-radius: 9px; overflow: hidden; }
.roof-guide-table table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.roof-guide-table :is(th,td) { text-align: start; padding: 8px 10px; border: 1px solid var(--roof-guide-line); overflow-wrap: anywhere; }
.roof-guide-table thead th { background: var(--roof-guide-cream); }
.roof-guide-table tbody tr:nth-child(even) { background: #faf9f5; }
.roof-guide-bottom > section + section { border-inline-start: 1px solid var(--roof-guide-line); padding-inline-start: clamp(20px, 3vw, 42px); }
.roof-guide-bottom details { padding: 0; border-bottom: 1px solid var(--roof-guide-line); }
.roof-guide-bottom details summary { min-height: 39px; padding: 6px 0; cursor: pointer; font-size: 16px; font-weight: 800; line-height: 1.35; }
.roof-guide-bottom details summary::after {
    content: "";
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    margin-inline-end: 3px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: translateY(-2px) rotate(45deg);
}
.roof-guide-bottom details[open] summary::after { content: ""; transform: translateY(2px) rotate(225deg); }
.roof-guide-bottom details p { margin-bottom: 8px; }

.roof-guide-estimate-link {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px 24px;
    padding: clamp(17px, 3vw, 30px);
    border-radius: 14px;
    background: var(--roof-guide-navy);
    color: #fff;
}
.roof-guide-estimate-link h2 { color: inherit; font-size: clamp(23px, 2.4vw, 34px); }
.roof-guide-estimate-link a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 8px 17px;
    border-radius: 24px;
    color: var(--roof-guide-navy);
    background: var(--roof-guide-gold);
    font-size: 17px;
    font-weight: 850;
    text-align: center;
}
.roof-guide-estimate-link a:hover { color: var(--roof-guide-navy); background: #ffd471; }
.roof-guide-estimate-link a:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.roof-guide-estimate-link svg { width: 22px; height: 22px; flex: none; }
.roof-guide-estimate-link a span { font-size: 21px; }

@media (max-width: 900px) {
    .itum-live .roof-guide-hero { --page-hero-mobile-photo: clamp(113px, 35vw, 260px); --page-hero-fade: linear-gradient(#052637, transparent 34%); }
    .itum-live .live-page-hero.roof-guide-hero figure img { object-position: center bottom; }
    .roof-guide-wrap { width: calc(100% - 40px); }
}
@supports not (object-view-box: inset(24% 0 0 0)) {
    .itum-live .live-page-hero.roof-guide-hero figure img { object-position: center 54%; }
    @media (max-width: 900px) {
        .itum-live .live-page-hero.roof-guide-hero figure img { object-position: center bottom; }
    }
}
@media (max-width: 620px) {
    .itum-live .roof-guide-hero {
        --page-hero-fade: linear-gradient(to bottom, #052637 0%, #052637f5 20%, #052637c9 40%, #05263742 70%, transparent 96%);
    }
    .itum-live .roof-guide-hero > .live-hero-grid {
        justify-content: flex-start;
        min-height: clamp(203px, 59vw, 284px);
        padding: 24px 0 22px;
    }
    .itum-live .roof-guide-hero nav { margin-bottom: 10px; font-size: 13px; }
    .itum-live .roof-guide-hero h1 { margin: 0; font-size: clamp(23px, 7.05vw, 32px); line-height: 1.15; text-wrap: balance; }
    .itum-live .roof-guide-hero h1::after { width: 49px; height: 4px; margin-top: 12px; }
    .itum-live .live-page-hero.roof-guide-hero figure {
        position: absolute;
        inset: 0;
        height: 100%;
        margin: 0;
    }
    .itum-live .live-page-hero.roof-guide-hero figure img { object-position: 29% 46%; }
    .roof-guide-wrap { padding-top: 21px; }
    .roof-guide-index {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 5px;
        padding: 6px;
        margin-bottom: 26px;
    }
    .roof-guide-index a {
        display: grid;
        place-items: center;
        min-height: 44px;
        padding: 4px 3px;
        border-radius: 7px;
        background: #ffffffb0;
        font-size: clamp(12px, 3.35vw, 15px);
        line-height: 1.2;
        text-align: center;
    }
    .roof-guide-index a + a { border-inline-start: 0; }
    .roof-guide-cards, .roof-guide-split, .roof-guide-materials, .roof-guide-bottom, .roof-guide-calc { grid-template-columns: 1fr; }
    .roof-guide-cards { gap: 9px; margin-top: 19px; }
    .roof-guide-cards > div { padding: 13px 14px; }
    .roof-guide-steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .roof-guide-steps li:nth-child(odd)::before { content: none; }
    .roof-guide-calc form { padding: 3px; gap: 10px; }
    .roof-guide-table table { font-size: 12px; }
    .roof-guide-table :is(th,td) { padding: 6px 4px; }
    .roof-guide-bottom > section + section { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--roof-guide-line); padding-top: 18px; }
}
@media (max-width: 375px) {
    .roof-guide-calc form { grid-template-columns: 1fr; }
}
