/* Scoped homepage styling; header, footer, ads, and existing widgets are not targeted. */
main.llh7-active{--llh7-panel:#fff;--llh7-ink:#102d43;--llh7-muted:#536e82;--llh7-line:#d3e2eb;--llh7-soft:#eaf3f8;--llh7-accent:#176b9e;--llh7-shadow:0 10px 30px #1c4d6910}
html[data-theme="dark"] main.llh7-active,body[data-theme="dark"] main.llh7-active{--llh7-panel:#112b3d;--llh7-ink:#e8f4fc;--llh7-muted:#b7cad8;--llh7-line:#345365;--llh7-soft:#1a3a50;--llh7-accent:#90d5f5;--llh7-shadow:none}
main.llh7-active > .llh7-off{display:none!important}
html body main.llh7-active > .llh7-managed:not(.llh7-app):not(.llh7-hero),html body main.llh7-active > .llh7-planning{background:var(--llh7-panel)!important;border:1px solid var(--llh7-line)!important;border-radius:20px!important;padding:28px!important;margin:20px 0!important;box-shadow:var(--llh7-shadow)!important;min-width:0;box-sizing:border-box;max-width:100%}
html body main.llh7-active > .llh7-hero{border-radius:20px!important;margin-bottom:20px!important}
main.llh7-active > .llh7-directory .section-top h2,main.llh7-active > .llh7-draws .ou-spotlight-head h2,main.llh7-active > .llh7-tools .ll-toolshowcase-heading-copy h2,main.llh7-active > .llh7-examples .lf-heading h2,main.llh7-active > .llh7-how .atlas-refined-heading h2,main.llh7-active .llh7-featured h2{color:var(--llh7-ink)!important;font-size:clamp(23px,2.5vw,33px)!important;line-height:1.17!important;letter-spacing:-.035em!important;font-weight:800!important}
main.llh7-active .llh7-section-top{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:16px}
main.llh7-active .llh7-kicker{display:block;color:var(--llh7-accent);font-size:10px;letter-spacing:.1em;font-weight:800;text-transform:uppercase;margin-bottom:8px}
main.llh7-active .llh7-featured p{color:var(--llh7-muted);line-height:1.6;margin:0 0 12px}
main.llh7-active .llh7-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
main.llh7-active a.llh7-article{display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid var(--llh7-line);border-radius:12px;background:var(--llh7-panel);color:var(--llh7-ink);text-decoration:none;box-shadow:none}
main.llh7-active .llh7-article img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border:0;border-radius:0}
main.llh7-active .llh7-card-copy{padding:16px;display:flex;flex-direction:column;flex:1;gap:5px}
main.llh7-active .llh7-card-copy h3{color:var(--llh7-ink);font-size:16px;font-weight:750;line-height:1.35;margin:0 0 6px}
main.llh7-active .llh7-card-copy p{font-size:12px}
main.llh7-active .llh7-link{font-size:12px;font-weight:750;color:var(--llh7-accent);text-decoration:none}
main.llh7-active .llh7-card-copy .llh7-link{margin-top:auto}
main.llh7-active a.llh7-article:hover .llh7-link,main.llh7-active a.llh7-link:hover{text-decoration:underline}
main.llh7-active a.llh7-article:focus-visible{outline:3px solid var(--llh7-accent);outline-offset:3px}
@media(max-width:760px){html body main.llh7-active > .llh7-managed:not(.llh7-app):not(.llh7-hero),html body main.llh7-active > .llh7-planning{padding:18px!important;border-radius:15px!important;margin:14px 0!important}main.llh7-active .llh7-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){main.llh7-active .llh7-card-grid{grid-template-columns:1fr}main.llh7-active .llh7-section-top{align-items:flex-start}}

main.llh7-active .llh7-card-item{display:flex;flex-direction:column;min-width:0}
main.llh7-active .llh7-card-item>.llh7-article{flex:1}
main.llh7-active .llh7-photo-credit{display:block;font-size:10px;line-height:1.5;color:var(--llh7-muted);padding:6px 4px 0;overflow-wrap:anywhere}
main.llh7-active .llh7-photo-credit a{color:var(--llh7-accent);text-decoration:underline}

/* V7.1 approved refinements */

main.llh71-on{--llh7-muted:#405b70;--llh7-line:#cddfe9}html[data-theme=dark] main.llh71-on,body[data-theme=dark] main.llh71-on{--llh7-muted:#c1d5e2;--llh7-line:#3e5e70}
html body main.llh71-on > .llh7-managed:not(.llh7-app):not(.llh7-hero){margin:16px 0!important;padding:24px!important;border-radius:18px!important}
html body main.llh71-on > .llh7-hero{margin-bottom:16px!important}
main.llh71-on .ll-toolshowcase-heading-copy p,main.llh71-on .ll-toolshowcase-meta,main.llh71-on .ll-toolshowcase-footer,main.llh71-on .ll-toolshowcase-card-bottom p,main.llh71-on .ll-toolshowcase-card-label,main.llh71-on .ll-s1-finder-copy p,main.llh71-on .ll-s1-finder-search label,main.llh71-on .atlas-refined-heading p,main.llh71-on .atlas-step-card p,main.llh71-on .lf-heading p{color:var(--llh7-muted)!important;opacity:1!important}
main.llh71-on .ll-toolshowcase-kicker{color:var(--llh7-accent)!important;opacity:1!important}main.llh71-on .ll-toolshowcase-heading-copy h2,main.llh71-on .ll-toolshowcase-card-bottom h3{color:var(--llh7-ink)!important;opacity:1!important}
main.llh71-on .ll-toolshowcase-card{background:var(--llh7-soft)!important;border-color:var(--llh7-line)!important;box-shadow:none!important}
main.llh71-on .ll-toolshowcase-card-bottom .ll-toolshowcase-card-cta{color:var(--llh7-accent)!important;opacity:1!important}
main.llh71-on .ll-s1-finder{border:1px solid var(--llh7-line)!important;background:var(--llh7-soft)!important;padding:18px!important;border-radius:13px!important}
main.llh71-on .ll-s1-search-shell{min-height:46px!important;border-color:#91b4c7!important;background:var(--llh7-panel)!important}main.llh71-on .ll-s1-search-shell input{font-size:14px!important;color:var(--llh7-ink)!important;min-width:0}main.llh71-on .ll-s1-search-shell input::placeholder{color:var(--llh7-muted)!important;opacity:1}
main.llh71-on>.llh7-tools,main.llh71-on>.llh7-draws{overflow:hidden!important}main.llh71-on .llh7-article img{aspect-ratio:4/3;object-fit:cover;object-position:center}main.llh71-on .llh7-card-copy{padding:16px;gap:6px}main.llh71-on .llh7-card-copy h3{font-size:17px;line-height:1.35}main.llh71-on .llh7-card-copy p{font-size:13px;line-height:1.6}main.llh71-on .llh7-photo-credit{font-size:11px}
main.llh71-on .llh71-tools-extra{margin-top:18px;padding-top:18px;border-top:1px solid var(--llh7-line)}main.llh71-on .llh71-tools-extra h3,main.llh71-on .llh71-learn h3{font-size:17px;color:var(--llh7-ink)!important;margin:0 0 10px;font-weight:750}
main.llh71-on .llh71-tools-extra .ll-home-tool-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0}main.llh71-on .llh71-tools-extra .ll-home-tool-grid a{background:var(--llh7-soft)!important;border:1px solid var(--llh7-line)!important;border-radius:12px!important;color:var(--llh7-ink)!important;padding:15px!important;box-shadow:none!important}main.llh71-on .llh71-tools-extra .ll-home-tool-grid a small,main.llh71-on .llh71-tools-extra .ll-home-tool-grid a span{color:var(--llh7-muted)!important;opacity:1!important}
main.llh71-on .llh71-learn{margin-top:18px;border-top:1px solid var(--llh7-line);padding-top:18px}main.llh71-on .llh71-learn .atlas-home-story,main.llh71-on .llh71-learn .lq-section{border:0!important;box-shadow:none!important;margin:0!important;padding:0!important;background:none!important;border-radius:0!important}main.llh71-on .llh71-learn .atlas-home-story h2,main.llh71-on .llh71-learn .lq-section h2{font-size:20px!important;line-height:1.3!important;color:var(--llh7-ink)!important}main.llh71-on .llh71-learn .atlas-home-story p,main.llh71-on .llh71-learn .lq-section p{color:var(--llh7-muted)!important;opacity:1!important}main.llh71-on .llh71-learn details{border:1px solid var(--llh7-line);border-radius:12px;background:var(--llh7-soft);padding:14px 16px;margin-top:10px;color:var(--llh7-ink)}main.llh71-on .llh71-learn summary{font-size:15px;font-weight:750;cursor:pointer;line-height:1.5}main.llh71-on .llh71-learn details[open] summary{margin-bottom:16px}main.llh71-on .llh71-learn .llh71-learn-links{display:flex;gap:8px 16px;flex-wrap:wrap;margin-top:12px;font-size:13px}main.llh71-on .llh71-learn .llh71-learn-links a{color:var(--llh7-accent);font-weight:650}
main.llh71-on .llh71-tools-extra a:focus-visible,main.llh71-on .llh71-learn summary:focus-visible{outline:3px solid var(--llh7-accent);outline-offset:3px}
@media(max-width:760px){html body main.llh71-on > .llh7-managed:not(.llh7-app):not(.llh7-hero){padding:16px!important;margin:12px 0!important;border-radius:15px!important}main.llh71-on .llh71-tools-extra .ll-home-tool-grid{grid-template-columns:1fr}main.llh71-on .llh7-article img{aspect-ratio:16/10}main.llh71-on .llh7-card-copy{padding:14px}main.llh71-on .llh71-learn details{padding:12px}main.llh71-on .ll-s1-finder{padding:12px!important}main.llh71-on .ll-s1-finder-main{grid-template-columns:1fr!important}main.llh71-on .ll-s1-finder-actions{flex-wrap:wrap}main.llh71-on .ll-toolshowcase-grid{gap:10px!important}main.llh71-on .llh71-learn .atlas-home-story *,main.llh71-on .llh71-learn .lq-section *{min-width:0;overflow-wrap:anywhere}}

/* Preserve the approved layout even if the legacy scroll-reveal observer has not fired. */
body.visual-perfection-home main.llh71-on > .llh7-how[data-perfection-reveal],body.visual-perfection-home main.llh71-on .llh71-learn [data-perfection-reveal]{opacity:1!important;transform:none!important}
