/* Shared collection rhythm and intrinsic sizing. */
.catalog-content>.card-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.resource-card,.card-body,.detail-main,.detail-title-block,.contact-layout>*{min-width:0}
.card-body h3,.card-body p,.detail-title-block h1,.detail-lead{overflow-wrap:break-word;word-break:normal}
.page-home .why-panel>div:first-child{text-align:center}
.page-home .why-panel>div:first-child p{margin-inline:auto;max-width:520px}
.page-home .why-panel{grid-template-columns:minmax(0,1fr);gap:32px;padding:36px}
.page-home .why-panel>div:first-child{max-width:740px;margin-inline:auto}
.page-home .why-panel h2{max-width:650px;margin-inline:auto;text-wrap:balance}
.page-home .why-features{grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;padding-top:26px;border-top:1px solid var(--border)}
.page-home .why-features>div{flex-direction:column;align-items:center;text-align:center;gap:12px}
.page-home .why-features p{margin:8px 0 0}
.home-team>.section-heading{justify-content:center;text-align:center}
.page-home .restored-team-card{display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px}
.page-home .restored-team-card img{width:112px;height:112px;border-radius:50%;object-fit:cover;margin:0}
.page-home .restored-team-card .team-number{position:absolute;top:20px;right:20px}
.page-home .restored-team-card p{width:100%;margin-top:6px}
.page-home .restored-team-card h3,.page-home .restored-team-card>.eyebrow{align-self:center;width:100%;text-align:center}
.page-home .testimonial{text-align:center;align-items:center}
.page-home .testimonial-person{justify-content:center;margin-top:auto;padding-top:16px}
.page-home .testimonial blockquote{width:100%}
.page-about .about-hero{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:center}
.page-about .about-hero-copy{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:16px;min-height:0;padding:36px}
.page-about .about-hero-copy>:is(h1,h2,p,.eyebrow,.detail-actions){margin:0}
.page-about .about-hero-copy h1{font-size:clamp(32px,4vw,49px);line-height:1.15}
.page-about .about-hero-copy h2{font-size:25px;line-height:1.3}
.page-about .about-hero-copy p{max-width:58ch;text-wrap:pretty;font-size:14px;line-height:1.85}
.page-about .about-hero-copy .detail-actions{padding-top:6px}
.page-about .about-hero-art.engineered-art{min-height:0;padding:24px}
.page-about .about-hero-copy{gap:22px}
.page-about .about-hero-copy h1{margin:0}
.page-about .about-hero-art .cyber-scene{max-width:400px}
.contact-aside .original-support-copy p{line-height:1.8}
.legal-hero{grid-template-columns:minmax(0,1fr) 160px;padding:24px 30px;gap:24px}
.legal-scene{max-width:150px;justify-self:center}
.legal-hero h1{font-size:clamp(28px,3.5vw,42px);margin:10px 0 12px}
.legal-hero p{font-size:13px;line-height:1.7}
.legal-meta{margin:16px 0 22px;padding:18px 24px}
@media(min-width:701px) and (max-width:1024px){
 .catalog-content>.card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
 .detail-page .detail-grid{grid-template-columns:minmax(0,1fr)}
 .detail-sidebar-inner{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
 .detail-sidebar .toc{display:none}
 .detail-title-block{max-width:760px;width:100%;margin-inline:auto}
 .page-about .about-hero-copy{padding:28px;gap:14px}
 .page-home .why-features{grid-template-columns:repeat(2,minmax(0,1fr))}
 .page-about .about-hero{grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr)}
 .page-about .about-hero-art.engineered-art{padding:12px}
 .page-about .about-hero-copy h1{font-size:clamp(30px,4vw,39px)}
}
@media(min-width:701px) and (prefers-reduced-motion:no-preference){
 .desktop-effects .resource-card{position:relative;transition:opacity .8s ease,transform .8s cubic-bezier(.2,.8,.2,1),box-shadow .35s ease,border-color .35s ease;transition-delay:var(--reveal-delay,0ms)}
 .desktop-effects .resource-card.reveal-pending{opacity:0;transform:translateY(50px)}
 .desktop-effects .resource-card:before{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;background:linear-gradient(105deg,transparent 20%,#8ae9ff14 48%,transparent 75%);transform:translateX(-110%)}
 .desktop-effects .resource-card.card-arriving:before{animation:collection-sheen 1.1s ease-out both;animation-delay:var(--reveal-delay,0ms)}
 @keyframes collection-sheen{to{transform:translateX(110%)}}
}
@media(min-width:701px) and (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
 .desktop-effects .resource-card:hover{transform:translateY(-5px);border-color:var(--accent);box-shadow:0 18px 35px #0002;transition-delay:0ms}
 .desktop-effects .resource-card:hover:before{animation:collection-sheen .7s ease-out}
 .desktop-effects .resource-card .card-cover img{transition:transform .6s ease}
 .desktop-effects .resource-card:hover .card-cover img{transform:scale(1.035)}
}
@media(max-width:700px){
 .page-home .hero-trust{flex-wrap:nowrap;justify-content:center;gap:16px;font-size:10px;width:100%;white-space:nowrap}
 .page-home .hero-trust>span:last-child{display:none}
 .page-home .hero-trust .icon{width:13px;height:13px}
 .page-home .hero-scroll{display:none}
 .catalog-content>.card-grid{grid-template-columns:minmax(0,1fr);gap:22px}
 /* Use the source image's ratio: full width, no fixed-height letterboxing. */
 .resource-card .card-cover,.catalog-content .resource-card .card-cover{height:auto;aspect-ratio:auto;background:var(--surface-2)}
 .resource-card .card-cover img{display:block;width:100%;height:auto;max-height:none;object-fit:contain;object-position:center}
 .page-home .home-toolkit .compact-thumbnail{object-fit:contain;object-position:center}
 .resource-card .card-body{padding:20px}.resource-card .card-body h3{font-size:17px;line-height:1.5}
 .resource-card .card-body p{font-size:13px;line-height:1.8}
 .page-home .why-panel{padding:28px 22px;gap:28px}
 .page-home .why-panel h2{font-size:27px;line-height:1.25}.page-home .why-panel p{font-size:13px;line-height:1.8}
 .page-home .why-features{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 16px}
 .why-features>div{display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px}
 .why-features>div strong{font-size:12px}.why-features>div p{font-size:11px!important;line-height:1.7}
 .page-home .restored-team-grid,.page-home .testimonial-grid{grid-template-columns:minmax(0,1fr)}
 .page-home .restored-team-card,.page-home .testimonial{width:100%;max-width:480px;margin-inline:auto;padding:25px}
 .page-home .restored-team-card img{width:96px;height:96px}
 .page-home .restored-team-card h3{font-size:24px}
 .page-home .restored-team-card p,.page-home .testimonial blockquote{font-size:13px;line-height:1.85}
 .site-footer .footer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:30px 20px;text-align:center}
 .footer-grid>.footer-brand,.footer-grid>.footer-community{grid-column:1/-1;min-width:0}
 .footer-brand .brand,.footer-brand .social-links{justify-content:center}
 .footer-brand p,.footer-community p{max-width:360px;margin-inline:auto;line-height:1.8}
 .footer-grid>div>h3{font-size:15px}.footer-grid>div>a:not(.brand):not(.btn),.footer-cookie-button{font-size:12px}
 .footer-community{border-top:1px solid var(--border);padding-top:26px}
 .footer-community .eyebrow{font-size:9px;line-height:1.6}
 .site-footer .footer-bottom{flex-direction:column;align-items:center;text-align:center;gap:12px;font-size:10px;line-height:1.7}
 .page-about .about-hero{display:block}
 .page-about .about-hero-copy{align-items:center;text-align:center;padding:30px 24px;gap:16px;min-height:0}
 .page-about .about-hero-copy h1{font-size:34px}.page-about .about-hero-copy h2{font-size:24px}
 .page-about .about-hero-copy p{font-size:13px;line-height:1.85;text-align:center}
 .page-about .about-hero-copy .detail-actions{justify-content:center;padding-top:6px}
 .page-about .about-hero-art.engineered-art{opacity:.13;padding:0}
 .page-about .about-hero-copy h1{font-size:clamp(28px,7.5vw,34px)}
 .page-about .about-hero-copy p{font-size:clamp(12px,3.3vw,14px)}
 .page-about .about-values>.panel{text-align:center}.page-about .about-values .detail-icon{margin-inline:auto}
 .page-about .about-connect>.panel>h2,.page-about .about-connect>.panel>.eyebrow,.page-about .about-connect>.panel>p{text-align:center;display:block}
 .page-contact .contact-aside{grid-template-columns:1fr}
 .contact-form-panel>h2,.contact-form-panel>.eyebrow,.contact-form-panel>p,.contact-aside>.panel>h2,.contact-aside>.panel>.eyebrow,.original-support-copy{text-align:center}
 .contact-form-panel>.eyebrow,.contact-aside>.panel>.eyebrow{display:block}
 .contact-channels{text-align:left}
 .contact-channel small{font-size:11px;line-height:1.6}
 /* Leave the paragraph the full width; the illustration occupies the title row. */
 .page-contact .contact-intro{display:block;position:relative;min-height:0;padding:20px!important}
 .page-contact .contact-scene{position:absolute;right:16px;top:20px;width:clamp(48px,14vw,68px);max-width:none;margin:0}
 .page-contact .contact-intro-copy{min-width:0}
 .page-contact .contact-intro h1{font-size:clamp(20px,5.8vw,34px);line-height:1.2;white-space:nowrap;letter-spacing:-.04em;margin:10px 0 14px!important;padding-right:54px}
 .page-contact .contact-intro h1 span{display:inline}
 .page-contact .contact-intro p{font-size:clamp(11px,3vw,14px);line-height:1.65;max-width:52ch;margin:0}
 .page-contact .contact-intro .eyebrow{font-size:8px;padding-right:60px}
 .page-search .search-workspace{padding-top:16px}
 .page-search .search-masthead{padding:16px 18px;margin-bottom:12px;gap:0;border-radius:14px}
 .page-search .search-masthead .breadcrumb{font-size:10px;margin:0 0 8px}
 .page-search .search-masthead .eyebrow,.page-search .search-masthead p{display:none}
 .page-search .search-masthead h1{font-size:clamp(19px,5.4vw,26px);line-height:1.3;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
 .page-search .catalog-toolbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:10px;gap:8px;margin:0 0 12px}
 .page-search .catalog-toolbar>.btn{font-size:11px;min-height:38px;padding:8px;gap:6px;white-space:nowrap}
 .page-search .catalog-toolbar>.btn .icon{width:14px;height:14px}
 .page-search .catalog-controls{width:auto;min-width:0;display:block}
 .page-search .catalog-controls label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .page-search .catalog-controls select{width:100%;min-width:0;min-height:38px;font-size:11px;padding:8px}
 .page-search .results-summary{font-size:10px;line-height:1.5;padding:0 2px 12px;gap:10px}
 .legal-hero{display:block;position:relative;padding:20px}
 .legal-scene{position:absolute;top:20px;right:16px;width:68px;max-width:68px}
 .legal-hero h1{font-size:clamp(24px,6.5vw,30px);margin:9px 0 10px;line-height:1.18;padding-right:58px}
 .legal-hero .eyebrow{font-size:7px;line-height:1.6;letter-spacing:.08em;padding-right:62px}
 .legal-hero p{font-size:11px;line-height:1.65}
 .legal-meta{padding:14px 16px;gap:12px;margin:12px 0 16px}
 .legal-meta>span:last-child{padding-top:10px}
 .legal-meta>span:last-child>span{display:flex;align-items:center;gap:8px}.legal-meta>span:last-child small{margin:0}
 .legal-toolbar{margin-bottom:12px}.legal-section summary{padding:14px}
 /* Center short summaries, retain readable left-aligned instructions. */
 .detail-hero{gap:20px}.detail-title-block{text-align:center;padding:0 0 24px}
 .detail-tags,.detail-meta,.detail-title-block .detail-actions{justify-content:center}
 .detail-tags{gap:10px;flex-wrap:wrap}.detail-title-block h1{font-size:clamp(24px,6.3vw,32px);line-height:1.3;margin:14px 0 16px;text-wrap:pretty}
 .detail-lead{font-size:13px;line-height:1.85;margin:0 auto 18px;max-width:55ch;text-wrap:pretty}
 .detail-meta{display:flex;flex-wrap:wrap;gap:10px 16px;font-size:10px;line-height:1.6}
 .detail-title-block .detail-actions{display:flex;flex-wrap:wrap;gap:10px}
 .detail-title-block .detail-actions .btn{min-height:44px;font-size:12px}
 .detail-title-block .inline-form{margin:0}
 .detail-hero .article-cover{margin:0;width:100%}
 .detail-hero .article-cover img{width:100%;height:auto;max-height:350px;object-fit:contain;aspect-ratio:16/9;background:var(--surface-2)}
 .detail-hero .article-cover figcaption{font-size:9px}
 .detail-page .breadcrumb{flex-wrap:nowrap;min-width:0;overflow:hidden}.detail-page .breadcrumb>span:last-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
 .detail-page .article-body{font-size:14px;line-height:1.9;overflow-wrap:anywhere}
 .article-body pre{max-width:100%;overflow:auto;white-space:pre}.article-body img{max-width:100%;height:auto}
 .detail-page .video-panel{padding:16px}.video-panel .section-heading{gap:12px}.video-panel h2{font-size:21px}
 .video-poster-caption{left:14px;right:14px;bottom:12px}.video-poster-caption strong{font-size:12px}
 .video-note{flex-wrap:wrap;gap:8px;line-height:1.6}
 .detail-sidebar .panel{text-align:center}.detail-sidebar .panel .detail-icon{margin-inline:auto}
 .detail-page .tool-download-panel{grid-template-columns:1fr;text-align:center;padding:24px;gap:16px}
 .tool-download-panel .download-emblem{margin-inline:auto}.tool-download-panel h2{font-size:25px}
 .detail-page .related-section .section-heading{flex-wrap:wrap;gap:14px}.detail-page .related-section h2{font-size:24px}
}
