/* Shared, scoped guidance on the Proline product and in the fence configurator. */
.fence-help-link {
    display: inline-flex; align-items: center; min-height: 44px;
    margin-left: .5rem; padding: .15rem 0; font-size: .85rem;
    font-weight: 400; line-height: 1.35; color: #855b14;
    text-decoration: underline; text-underline-offset: .2em;
    white-space: normal;
}
.fence-help-link:hover { color: #5f410e; }
#konfiguratorApp .fence-help-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0; margin: -.4rem 0 -.4rem .2rem;
    vertical-align: middle; text-decoration: none; flex-shrink: 0;
}
.fence-help-icon span {
    display: inline-flex; align-items: center; justify-content: center;
    width: 23px; height: 23px; border: 1px solid #946718; border-radius: 50%;
    font: italic bold 17px Georgia, serif; color: #805810; background: transparent;
}
.fence-help-link:focus-visible, .fence-help-icon:focus-visible,
.fence-help-dialog a:focus-visible, .fence-help-dialog button:focus-visible {
    outline: 3px solid #b2770b; outline-offset: 3px; border-radius: 3px;
}
.fence-help-dialog:not([open]) { display: none; }
.fence-help-dialog {
    box-sizing: border-box; width: min(46rem, calc(100% - 32px)); max-width: 46rem;
    max-height: 90vh; max-height: 90dvh; margin: auto; padding: 0;
    border: 1px solid #d7ddd3; border-radius: 3px; background: #fff;
    color: #364239; box-shadow: 0 8px 28px #18231c33;
    overflow: auto; overscroll-behavior: contain; font: inherit; font-size: 16px; line-height: 1.55;
}
.fence-help-dialog::backdrop { background: #18231c88; }
.fence-help-dialog *, .fence-help-dialog *::before, .fence-help-dialog *::after { box-sizing: border-box; }
.fence-help-dialog__header {
    display: flex; align-items: center; gap: 16px; justify-content: space-between;
    position: sticky; top: 0; z-index: 2; background: #fff;
    border-bottom: 1px solid #e2e6de; padding: 20px 24px;
}
.fence-help-dialog h2 { font-family: inherit; font-weight: 700; font-size: 23px; line-height: 1.25; color: #314c32; margin: 0; }
.fence-help-dialog__close { flex: 0 0 44px; width: 44px; height: 44px; background: transparent;
    color: #3d4b3e; border: 0; border-radius: 0; font-size: 26px; cursor: pointer; }
.fence-help-dialog__body { padding: 20px 24px 8px; }
.fence-help-dialog p { margin: 0 0 14px; font-size: 16px; line-height: 1.55; }
.fence-help-dialog h3 { margin: 0 0 6px; font-family: inherit; font-weight: 700; font-size: 17px; line-height: 1.4; color: #314c32; }
.fence-help-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; margin: 22px 0; }
.fence-help-card { padding: 0; border: 0; border-radius: 0; background: transparent; min-width: 0; }
.fence-help-card p { margin-bottom: 0; font-size: 15px; }
.fence-help-note { padding: 0; background: transparent; border: 0; }
.fence-help-dialog .fence-help-source { color: #66705f; font-size: 13px; }
.fence-help-links { display: flex; flex-wrap: wrap; column-gap: 22px; row-gap: 0; margin: 12px 0; }
.fence-help-dialog a { color: #3c5e30; text-decoration: underline; text-underline-offset: 3px; min-height: 44px;
    display: inline-flex; align-items: center; gap: 5px; font-size: 15px; }
.fence-help-dialog a::after { content: '↗'; font-size: 14px; }
.fence-help-dialog__footer { padding: 12px 24px 22px; }
.fence-help-dialog__done { border: 0; border-radius: 5px; padding: 12px 22px; background: #465f37;
    color: #fff; min-height: 44px; font-family: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.fence-help-dialog__done:hover { background: #344a29; }
.fence-help-sketch { display:flex; gap:var(--help-gap,8px); justify-content:flex-start; height:57px; align-items:end; margin-bottom:10px; overflow:hidden; }
.fence-help-sketch i { display:block; height:51px; width:8px; flex:0 0 8px; background:#b8a077;
    clip-path:polygon(50% 0,100% 10%,100% 100%,0 100%,0 10%); }
.fence-help-dialog .fence-help-caption { font-size: 12px; color:#65705f; margin: -8px 0 18px; }
@media (max-width: 575px) {
    .fence-help-link { margin-left: .35rem; font-size: .8rem; }
    .fence-help-dialog { width: calc(100% - 20px); max-height: 94vh; max-height: 94dvh; border-radius: 3px; }
    .fence-help-dialog__header { padding: 14px 16px; gap: 8px; }
    .fence-help-dialog h2 { font-size: 21px; }
    .fence-help-dialog__body { padding: 16px 16px 4px; }
    .fence-help-dialog__footer { padding: 10px 16px 18px; }
    .fence-help-cards { gap: 18px; }
    .fence-help-card { padding: 0; }
    .fence-help-card h3 { font-size: 16px; }
    .fence-help-card p { font-size: 14px; }
    .fence-help-dialog__done { width: 100%; }
}
@media (max-width: 359px) { .fence-help-cards { grid-template-columns: 1fr; } }
@media print { .fence-help-dialog, .fence-help-icon, .fence-help-link { display: none !important; } }

.fence-wood-comparison { margin: 2.5rem auto 3rem; color: #364239; scroll-margin-top: 110px; }
.fence-wood-comparison__eyebrow { color: #775516; text-transform: uppercase; font-size: .78rem; letter-spacing: .12em; font-weight: 700; margin: 0 0 .6rem; }
.fence-wood-comparison h2 { color: #3d5634; font-size: clamp(1.5rem,2.6vw,2rem); line-height: 1.25; margin-bottom: .8rem; }
.fence-wood-comparison > p { max-width: 58rem; }
.fence-wood-comparison table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; margin: 1.6rem 0 .8rem; }
.fence-wood-comparison__label { width: 22%; }
.fence-wood-comparison--chestnut .fence-wood-comparison__photo { max-width: 340px; }
.fence-wood-comparison th, .fence-wood-comparison td { padding: 1rem 1.2rem; text-align: left; vertical-align: top; border-bottom: 1px solid #e0e5db; overflow-wrap: break-word; hyphens: auto; }
.fence-wood-comparison tbody th { font-weight: 600; font-size: .92rem; color: #56624e; }
.fence-wood-comparison tbody td:nth-child(2), .fence-wood-comparison thead th:nth-child(2) { background: transparent; }
.fence-wood-comparison tbody td:nth-child(3), .fence-wood-comparison thead th:nth-child(3) { background: transparent; }
.fence-wood-comparison thead th { font-size: 1.25rem; color: #354a2d; }
.fence-wood-comparison__photo { width: 100%; aspect-ratio: 534 / 333; margin-bottom: .9rem; background-repeat: no-repeat; border-radius: 0; }
/* Unchanged archive screenshots, showing only their original product-photo areas. */
.fence-wood-comparison__photo--chestnut { background-image: url('../../images/selection-help/kastanie-archiv.png'); background-size: 255.618% auto; background-position: 7.942% 84.656%; }
.fence-wood-comparison .fence-wood-comparison__caption { color: #68705f; font-size: .8rem; }
.fence-wood-comparison__note { padding: 1rem 0; margin: 0; }
.fence-wood-comparison__links { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.5rem; }
.fence-wood-comparison__links a { color: #3f5d32; padding: .7rem 0; min-height: 44px; text-decoration: underline; text-underline-offset: .2rem; }
.fence-wood-comparison__links .fence-wood-comparison__choose { background: #465f37; color: #fff; padding: .8rem 1.1rem; border-radius: 4px; text-decoration: none; }
.fence-wood-comparison a:focus-visible { outline: 3px solid #b2770b; outline-offset: 3px; }
@media (max-width: 575px) {
    .fence-wood-comparison { width: calc(100% - 32px); margin: 1.5rem auto 2rem; padding-left: 0; padding-right: 0; }
    .fence-wood-comparison__label { width: 26%; }
    .fence-wood-comparison th, .fence-wood-comparison td { padding: .6rem .45rem; font-size: .8rem; line-height: 1.5; }
    .fence-wood-comparison tbody th { font-size: .76rem; }
    .fence-wood-comparison thead th { font-size: .95rem; }
    .fence-wood-comparison__photo { border-radius: 3px; }
}

@media (max-width: 575px) {
    /* Keep both woods next to each other; put long row labels above the pair. */
    .fence-wood-comparison table, .fence-wood-comparison thead, .fence-wood-comparison tbody { display: block; }
    .fence-wood-comparison colgroup, .fence-wood-comparison thead td { display: none; }
    .fence-wood-comparison tr { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
    .fence-wood-comparison--chestnut tr { grid-template-columns: minmax(0,1fr); }
    .fence-wood-comparison--chestnut thead th:first-child { display: none; }
    .fence-wood-comparison tbody th { grid-column: 1 / -1; padding: .85rem .6rem .3rem; border: 0; font-size: .85rem; }
    .fence-wood-comparison th, .fence-wood-comparison td { padding: .65rem .6rem; font-size: .88rem; }
    .fence-wood-comparison thead th { font-size: 1rem; }
}
/* Consistent, solid link underlines; suppress the theme's dotted bottom border. */
a.fence-help-link,
.fence-help-dialog a,
.fence-wood-comparison a:not(.fence-wood-comparison__choose),
#konfiguratorApp .fence-mount-detail a {
    border-bottom: 0;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
