/* LIC v6.6 — targeted site fixes, scoped to live page selectors */
/* Navigation: aligned baseline, calm active indicator and intentional dropdown chevron */
.primary .nav-inner{min-height:64px;height:auto;gap:4px;align-items:stretch}
.primary .nav-group{align-items:stretch}
.primary .nav-inner>a,.primary .nav-trigger{height:64px;display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:0 clamp(10px,1.05vw,18px);line-height:1.2;vertical-align:middle;border-radius:0;font-size:12px;letter-spacing:0}
.primary .nav-group>.nav-trigger{white-space:nowrap;position:relative}
.primary .nav-arrow{font-size:0!important;width:7px;height:7px;display:inline-block;flex:none;border:solid currentColor;border-width:0 1.8px 1.8px 0;transform:translateY(-2px) rotate(45deg);transition:transform .2s;opacity:.85;margin-left:2px}
.primary .nav-group:hover .nav-arrow,.primary .nav-group:focus-within .nav-arrow{transform:translateY(1px) rotate(225deg)}
.primary .nav-inner>a:not(.nav-last):hover,.primary .nav-trigger:hover,.primary a.lpc66-active{background:rgba(255,255,255,.11)!important;color:#ffe1a8!important}
.primary a.lpc66-active:after{content:"";position:absolute;bottom:0;left:15px;right:15px;height:3px;background:#ffca6c;border-radius:4px 4px 0 0}
.primary a.lpc66-active{position:relative}
.primary .nav-last{margin:auto 0 auto auto!important;min-height:42px;height:auto!important;align-self:center;padding:11px 16px!important;border-radius:9px!important;background:#ffcb89!important;color:#152b49!important}
.primary .nav-last:hover{background:#ffe1b7!important}
.primary .mega a{height:auto;min-height:45px;justify-content:flex-start;white-space:normal;line-height:1.4;border-radius:8px}
.primary .mega{z-index:100;border-radius:0 0 16px 16px;overflow:visible}
@media(max-width:1210px){.primary .nav-inner{flex-wrap:wrap;min-height:64px}.primary .nav-last{margin-left:auto!important}}
@media(max-width:980px){.primary .nav-inner>a,.primary .nav-trigger{height:auto;min-height:46px;justify-content:space-between}.primary .nav-inner{align-items:stretch}.primary .mega{min-width:0!important;width:100%!important;max-width:100%!important}.primary .nav-last{margin:10px 0!important;width:max-content!important}}
/* Clear 3-column tool library grid with visible card edges */
.tools .tools-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important;background:transparent!important;border:0!important}
.tools .tool-card{display:flex!important;flex-direction:column;min-width:0;min-height:250px;border:1px solid #d8e4ea!important;border-radius:16px;background:#fff!important;padding:28px;box-shadow:0 7px 20px rgba(19,43,72,.055)}
.tools .tool-card:hover{transform:translateY(-3px);box-shadow:0 14px 28px rgba(19,43,72,.12);border-color:#9fc5d6!important}
.tools .section-head{border-bottom:1px solid #d6e1e7;padding-bottom:22px}
.tools .tool-symbol{border-radius:12px;background:#eaf4f7;color:#075a85}
@media(max-width:900px){.tools .tools-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:600px){.tools .tools-grid{grid-template-columns:1fr!important}.tools .tool-card{min-height:unset;padding:22px}}
/* Directory counters are computed over the complete published catalog */
.library .library-layout{border-radius:16px;overflow:hidden;border:1px solid #d7e3ec;box-shadow:0 10px 27px rgba(21,43,70,.05)}
.library .library-aside{background:#112d4e}
.library .filter{gap:12px;align-items:center;cursor:pointer;text-align:left;line-height:1.45}
.library .filter b{padding:4px 9px;min-width:33px;background:rgba(255,255,255,.12);color:#fff;border-radius:20px;text-align:center;font-variant-numeric:tabular-nums}
.library .filter.active{color:#ffda92}
.library .filter.active b{background:#ffd895;color:#133556}
.library .plan-records{max-height:820px;overflow-y:auto;overscroll-behavior:contain}
.library .plan-row{min-width:0;gap:12px}
.library .plan-name{min-width:0}
.library .plan-name strong{display:block;font-size:14px;line-height:1.45;overflow-wrap:anywhere;color:#123a54}
.library .plan-status{font-size:11px;font-weight:750}
.library .plan-row[data-status="Withdrawn"] .plan-status{color:#8d5525}
.library .plan-row[data-status="Review needed"] .plan-status{color:#7d6381}
@media(max-width:900px){.library .library-layout{grid-template-columns:1fr}.library .library-aside{padding:22px}.library .filter-context{margin-top:15px}.library .plan-row{grid-template-columns:95px minmax(0,1fr) 95px 20px;padding:13px 12px}.library .directory-head{grid-template-columns:95px minmax(0,1fr) 95px 20px;padding:12px}.library .library-tools{flex-wrap:wrap}}
/* No image clipping: keep full 16:9 thumbnail whether hero or article body */
.pa5-featured-wrap,.pa5-featured-wide{width:100%;max-width:100%;margin-inline:auto}
.pa5-featured-wide img,.pa5-featured img,.pa5-reading .lpc66-inline-poster img,.pa5-reading img.lpc66-inline-image{display:block!important;width:100%!important;max-width:100%!important;height:auto!important;max-height:none!important;aspect-ratio:16/9;object-fit:contain!important;object-position:center!important;border-radius:12px;clip-path:none!important}
.pa5-featured-wide{background:transparent!important;border-radius:16px;overflow:visible!important}
.pa5-featured-wrap{margin-bottom:24px}
.pa5-reading figure.lpc66-inline-poster{max-width:100%;margin:25px 0 32px;overflow:visible;border-radius:14px;box-shadow:0 12px 28px rgba(9,37,65,.12);background:#f1f5f8;padding:0}
.pa5-reading figure.lpc66-inline-poster img{border-radius:14px}
.pa5-reading .wp-block-image img,.pa5-reading figure img{max-width:100%;height:auto;object-fit:contain}
/* Toolbar edge spaces remain balanced even with full width bar */
.pa5-page .pa5-toolbar{padding:16px clamp(18px,2.2vw,32px)!important;gap:16px!important;min-height:76px}
.pa5-page .pa5-toolbar .pa5-share-links{padding-left:2px;gap:9px;min-width:0}
.pa5-page .pa5-toolbar .pa5-controls{padding-right:2px;gap:9px;margin-left:auto}
.pa5-page .pa5-toolbar .pa5-share-links>strong{margin-right:3px}
.pa5-page .pa5-toolbar button,.pa5-page .pa5-toolbar a{line-height:1.4;min-height:36px;display:inline-flex;align-items:center;justify-content:center}
/* Embedded calculator outer shell: uniform spacing, no forced 520px blanks */
.pa5-reading .lpcm-card{margin:26px 0!important;width:100%;max-width:none!important;border-radius:18px;overflow:hidden}
.pa5-reading .lpcm-header{padding:24px 25px 19px}
.pa5-reading .lpcm-frame{max-width:100%;margin:0;border:0}
@media(max-width:650px){.pa5-page .pa5-toolbar{padding:15px!important;gap:14px!important}.pa5-page .pa5-toolbar .pa5-controls{margin-left:0}.pa5-reading .lpcm-header{padding:18px}}
/* Homepage illustrative workbench uses same cards, radii and form language as post calculators. */
.workbench .wb-layout{border-radius:18px;overflow:hidden;border:1px solid #d4e1eb;box-shadow:0 10px 32px rgba(16,51,78,.07)}
.workbench .wb-nav{background:#edf5fa}
.workbench .wb-nav button{border-radius:8px;color:#25475f}
.workbench .wb-nav button.selected{background:#0d5488;color:#fff}
.workbench .wb-form input,.workbench .wb-form select{min-height:44px;border-radius:9px;border:1px solid #c8d9e6;background:#fff}
.workbench .wb-result{background:#133657;color:#fff}
.workbench .wb-result strong{color:#fff}
@media(max-width:1100px){.workbench .wb-layout{grid-template-columns:200px minmax(0,1fr)}.workbench .wb-result{grid-column:1/-1}}
@media(max-width:750px){.workbench .wb-layout{grid-template-columns:minmax(0,1fr)}.workbench .wb-nav{display:flex;gap:10px;overflow-x:auto}.workbench .wb-nav button{min-width:140px}.workbench .wb-form{padding:24px 18px}.workbench .form-grid{grid-template-columns:1fr 1fr}.workbench .wb-result{grid-column:auto}}
@media(max-width:500px){.workbench .form-grid{grid-template-columns:1fr}}

@media(min-width:981px){.primary .nav-group:nth-of-type(4)>.mega,.primary .nav-group:nth-of-type(5)>.mega{left:auto;right:0}}
