/* Final layout stabilization v7.3: current PolicyAtlas color, typography & menu retained. */
:root { --lpc73-focus:#1564b5; }
html, body {max-width:100%;}
body {overflow-x:clip;}
img,iframe,video,svg {max-width:100%;}
.wrap, .pa5-columns, .hero-grid, .library-layout, .wb-layout, .footer-core {min-width:0;}

/* Featured and archive posters are never cropped by theme CSS. */
.pa5-featured-wrap,.lpc67-feature-image,.lpc-blog-card-home .card-image,.news-thumb,.lpc-archive-card .image,
.lpc-guide-dynamic .image,.lpc68-browser-card,.lpc73-featured-tools {min-width:0;}
.pa5-featured img,.pa5-featured-wide img,.lpc66-inline-poster img,.lpc67-feature-image img,
.news-thumb img,.lpc-blog-card-home img,.lpc-archive-card img,.lpc-guide-dynamic img,
.pa5-related img,.pa-plan-card img,.wp-post-image {
  display:block;max-width:100%;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain!important;object-position:center;
}
.news-thumb,.lpc67-feature-image,.pa5-featured,.pa5-featured-wide{background:#f0f5fa;overflow:hidden}
.pa5-featured-wide {max-width:100%;}
.lpc66-inline-poster{width:100%;margin:24px 0;}
.lpc66-inline-poster img{border-radius:8px}

/* The editorial feature shows an actual relevant guide, not an old product spotlight. */
.lpc67-feature-body{min-width:0;max-width:100%}
.lpc67-feature-body h2{font-size:clamp(23px,2.1vw,34px);line-height:1.24;overflow-wrap:anywhere}
.lpc73-featured-tools{display:flex;flex-wrap:wrap;gap:8px;margin:15px 0 0}
.lpc73-featured-tools a{padding:8px 11px;border:1px solid #adc7cf;border-radius:8px;font-size:11px;font-weight:750;color:#133b54;background:#f6fafb;transition:background .2s ease,transform .2s ease}
.lpc73-featured-tools a:hover,.lpc73-featured-tools a:focus-visible{background:#e3eff4;transform:translateY(-2px)}
.lpc73-current-pending{border:1px solid #b1c5dd;background:#244867;color:#eff6fc!important;font-size:12px;padding:12px;border-radius:8px;margin:6px 0}

/* High-intent landing pages explain limitations and useful next links without duplicate calculators. */
.lpc73-quality-panel{background:#f5f9fc;border:1px solid #dae4ee;border-left:4px solid #0b568d;padding:clamp(16px,2.5vw,30px);margin:32px 0;border-radius:8px;clear:both}
.lpc73-quality-panel h2{font-size:clamp(21px,2.3vw,28px);letter-spacing:-.025em;margin:0 0 12px;color:#133757}
.lpc73-quality-panel p{line-height:1.7;max-width:78ch;color:#30495f}
.lpc73-quality-links{border-top:1px solid #d8e5ef;padding-top:15px}
.lpc73-quality-links strong{display:block;color:#163b5d;margin-bottom:9px}
.lpc73-quality-links ul{margin:0;padding-left:22px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 22px}
.lpc73-quality-links li{min-width:0}
.lpc73-quality-links a{color:#07558f;overflow-wrap:anywhere;text-decoration:underline;text-underline-offset:3px}
.lpc73-disclaimer{font-size:12px;margin:16px 0 0!important}

/* Responsive forms and embedded calculator shells; never force desktop widths on mobile. */
.lpc73-quality-panel input,.lpc73-quality-panel select,
.lpc69-panel input,.lpc69-panel select,.lpc69-panel textarea,
.licpa-calculator input,.licpa-calculator select,.licpa-calculator button,
.licpa-calculator iframe,.pa5-reading iframe{max-width:100%;box-sizing:border-box}
.pa5-reading,.pa5-content,.pa5-columns,.lpc69-panel{min-width:0;overflow-wrap:anywhere}
.pa5-reading table,.pa5-content table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.pa5-reading pre,.pa5-reading code{max-width:100%;overflow-wrap:anywhere}

/* Share toolbar and social icons have comfortable touch targets. */
.pa5-toolbar{padding:12px clamp(16px,2vw,28px)!important;min-width:0}
.pa5-share-links,.pa5-controls{min-width:0;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.pa5-toolbar a,.pa5-toolbar button{min-height:40px;display:inline-flex;align-items:center;justify-content:center}
.atlas-footer .lpc72-footer-social-row .lpc67-social{min-width:0;flex-wrap:wrap}
.atlas-footer .lpc72-footer-social-row .lpc67-social-links{display:flex;gap:10px!important;min-width:0;flex:1 1 auto}
.atlas-footer .lpc72-footer-social-row a{min-width:0}

/* Accessible, reduced-motion-friendly interactions across cards and buttons. */
:where(.lpc68-tool-item,.tool-card,.lpc73-featured-tools a,.btn,.lpc68-browser-card):focus-visible {outline:3px solid var(--lpc73-focus);outline-offset:3px}
@media (hover:hover) {
 .lpc68-tool-item,.lpc68-browser-card {transition:transform .22s ease,box-shadow .22s ease}
 .lpc68-tool-item:hover,.lpc68-browser-card:hover {transform:translateY(-3px);box-shadow:0 10px 24px #123a641c}
}

@media(max-width:1100px){
 .hero-grid{grid-template-columns:minmax(0,1.25fr) minmax(270px,.85fr)}
 .hero-main{padding:46px 24px 44px 0}
 .hero-side{padding:25px}
 .brand-row{gap:18px}
 .nav-inner a{white-space:normal}
 .footer-core{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:24px!important}
 .footer-brand-v4{grid-column:1/-1}
}
@media(max-width:820px){
 .wrap{width:calc(100% - 36px)!important;max-width:100%}
 .hero-grid{display:grid;grid-template-columns:1fr!important}
 .hero-main{padding:44px 6px 35px!important}
 .hero-side{padding:24px!important}
 .hero h1{font-size:clamp(36px,7vw,56px)!important;overflow-wrap:anywhere}
 .hero-actions{flex-wrap:wrap}
 .hero-mini{gap:15px;flex-wrap:wrap}
 .library-layout{grid-template-columns:1fr!important}
 .library-aside{padding:20px}
 .lpc68-tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .pa5-columns{display:grid;grid-template-columns:1fr!important}
 .pa5-sidebar{min-width:0}
 .lpc73-featured-tools{gap:6px}
 .footer-core{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .footer-brand-v4{grid-column:1/-1}
 .lpc73-quality-links ul{grid-template-columns:1fr}
}
@media(max-width:520px){
 .wrap{width:calc(100% - 24px)!important}
 .hero-main{padding:36px 0 32px!important}
 .hero h1{font-size:clamp(32px,9vw,44px)!important}
 .hero h1,.hero-main>p{max-width:100%}
 .hero-actions{display:flex;flex-direction:column;align-items:stretch;gap:9px}
 .hero-actions a{width:100%;min-height:46px;justify-content:space-between}
 .hero-mini{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 .hero-mini div{flex-direction:column;gap:5px}
 .hero-side{padding:18px!important}
 .lpc67-feature-body h2{font-size:clamp(21px,5.4vw,28px)}
 .lpc68-tool-grid,.tool-grid,.news-grid,.pa5-related-grid{grid-template-columns:1fr!important}
 .library-main .plan-row,.plan-row{grid-template-columns:minmax(0,1fr) auto!important;gap:6px 12px;padding:14px!important}
 .plan-row .plan-name{grid-column:1/-1;grid-row:1}
 .plan-row .plan-number{grid-column:1;grid-row:2}
 .plan-row .plan-status{grid-column:2;grid-row:2}
 .plan-row .plan-arrow{display:none}
 .lpc68-browser-card{min-width:0}
 .footer-core{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:24px 12px!important}
 .footer-core .footer-brand-v4{grid-column:1/-1}
 .footer-link-group{min-width:0}
 .footer-link-group a{overflow-wrap:anywhere}
 .atlas-footer .lpc72-footer-social-row .lpc67-social{display:block}
 .atlas-footer .lpc72-footer-social-row .lpc67-social-title{display:block;margin-bottom:12px}
 .atlas-footer .lpc72-footer-social-row .lpc67-social-links{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important}
 .atlas-footer .lpc72-footer-social-row .lpc67-social-links a{width:100%;justify-content:center;padding:9px 4px;font-size:12px}
 .pa5-toolbar{gap:12px;padding:12px 14px!important}
 .pa5-share-links{max-width:100%}
 .pa5-controls{width:100%;justify-content:flex-end}
 .pa5-post-head h1,.pa5-hero-shell h1{overflow-wrap:anywhere;font-size:clamp(29px,8vw,42px)}
 .lpc69-panel label,.lpc69-bonus-form label{display:block;max-width:100%}
 .lpc73-quality-panel{padding:16px}
}
@media(prefers-reduced-motion:reduce){
 :where(.lpc68-tool-item,.lpc68-browser-card,.lpc73-featured-tools a){transition:none!important;transform:none!important}
 html{scroll-behavior:auto}
}
