/* Taigiaoan.com v20.8 — authoritative responsive layer.
 * Earlier theme files mixed scoped desktop selectors with unscoped media
 * selectors. These rules intentionally match the desktop specificity. */
body.taigiaoan-site.tgx-design *,body.taigiaoan-site.tgx-design *:before,body.taigiaoan-site.tgx-design *:after{box-sizing:border-box}
body.taigiaoan-site.tgx-design img,body.taigiaoan-site.tgx-design svg{max-width:100%}
body.taigiaoan-site.tgx-design .tgx-hero-copy,
body.taigiaoan-site.tgx-design .tgx-showcase-head>*,
body.taigiaoan-site.tgx-design .tgx-result-layout>*,
body.taigiaoan-site.tgx-design .tlga-library-layout>*,
body.taigiaoan-site.tgx-design .tlga-contact-layout>*{min-width:0}

/* Contact support card keeps the contrast it was designed for. */
body.taigiaoan-site.tgx-design .tlga-contact-tips{border-color:rgba(255,255,255,.13)!important;background:radial-gradient(circle at 88% 8%,rgba(38,157,190,.28),transparent 30%),linear-gradient(145deg,#102f57,#1766a8)!important;color:#fff!important}
body.taigiaoan-site.tgx-design .tlga-contact-tips h3{color:#fff!important}
body.taigiaoan-site.tgx-design .tlga-contact-tips li{color:#d5e6f3!important}
body.taigiaoan-site.tgx-design .tlga-contact-tips a{color:#fff!important}

@media(max-width:1024px){
 body.taigiaoan-site.tgx-design .tgx-hero-grid,
 body.taigiaoan-site.tgx-design .tgx-showcase-layout,
 body.taigiaoan-site.tgx-design .tgx-university>.site-width,
 body.taigiaoan-site.tgx-design .tgx-trust-grid,
 body.taigiaoan-site.tgx-design .tgx-result-layout,
 body.taigiaoan-site.tgx-design .tlga-library-layout,
 body.taigiaoan-site.tgx-design .tlga-detail-layout,
 body.taigiaoan-site.tgx-design .tlga-contact-layout{grid-template-columns:minmax(0,1fr)!important}
 body.taigiaoan-site.tgx-design .tgx-hero-grid{gap:34px!important}
 body.taigiaoan-site.tgx-design .tgx-hero-route{width:100%;max-width:none!important}
 body.taigiaoan-site.tgx-design .tgx-path-grid,
 body.taigiaoan-site.tgx-design .tgx-doc-grid,
 body.taigiaoan-site.tgx-design .tgx-doc-grid-feature,
 body.taigiaoan-site.tgx-design .tgx-doc-grid-catalog,
 body.taigiaoan-site.tgx-design .tlga-document-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.taigiaoan-site.tgx-design .tgx-filter-fields,
 body.taigiaoan-site.tgx-design .tlga-catalog-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.taigiaoan-site.tgx-design .tgx-filter-search,
 body.taigiaoan-site.tgx-design .tlga-filter-search{grid-column:1/-1}
 body.taigiaoan-site.tgx-design .tgx-filter-fields button,
 body.taigiaoan-site.tgx-design .tlga-catalog-filter-grid>button{width:100%}
 body.taigiaoan-site.tgx-design .tlga-document-sidebar,
 body.taigiaoan-site.tgx-design .tlga-detail-sidebar{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

@media(max-width:720px){
 html{overflow-x:hidden}
 body.taigiaoan-site.tgx-design{width:100%;overflow-x:hidden}
 body.taigiaoan-site.tgx-design .site-width{width:calc(100% - 28px)!important;max-width:none!important;margin-inline:auto!important}
 body.taigiaoan-site.tgx-design .tga-topbar{display:none}
 body.taigiaoan-site.tgx-design .tga-header-main{min-height:82px!important}
 body.taigiaoan-site.tgx-design .tga-brand{min-width:0;max-width:225px}
 body.taigiaoan-site.tgx-design .tga-brand img{width:100%;height:auto}
 body.taigiaoan-site.tgx-design .tga-menu-toggle{flex:0 0 52px;width:52px;height:52px}

 /* Home hero becomes a clean reading column. */
 body.taigiaoan-site.tgx-design .tgx-hero{padding:42px 0 49px!important;background:linear-gradient(145deg,#e8f3ff,#e8f6f1)!important}
 body.taigiaoan-site.tgx-design .tgx-hero:before,body.taigiaoan-site.tgx-design .tgx-hero:after{display:none!important}
 body.taigiaoan-site.tgx-design .tgx-hero-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:27px!important}
 body.taigiaoan-site.tgx-design .tgx-hero-copy{width:100%;min-width:0}
 body.taigiaoan-site.tgx-design .tgx-hero .tgx-eyebrow{font-size:10px;letter-spacing:.1em;white-space:normal}
 body.taigiaoan-site.tgx-design .tgx-hero h1{max-width:none;margin:12px 0 15px;font-size:clamp(38px,11vw,49px)!important;line-height:1.01!important;letter-spacing:-.055em!important;word-break:normal!important;overflow-wrap:normal!important}
 body.taigiaoan-site.tgx-design .tgx-hero-copy>p{max-width:none;font-size:15px!important;line-height:1.65;word-break:normal}
 body.taigiaoan-site.tgx-design .tgx-search{display:grid!important;grid-template-columns:38px minmax(0,1fr)!important;width:100%;max-width:none;padding:7px!important}
 body.taigiaoan-site.tgx-design .tgx-search>i{justify-self:center}
 body.taigiaoan-site.tgx-design .tgx-search input{width:100%;min-width:0;padding-inline:4px;font-size:13px}
 body.taigiaoan-site.tgx-design .tgx-search button{grid-column:1/-1;width:100%;margin-top:5px}
 body.taigiaoan-site.tgx-design .tgx-hero-links{display:grid!important;grid-template-columns:1fr 1fr;gap:8px!important;width:100%;margin-top:14px}
 body.taigiaoan-site.tgx-design .tgx-hero-links a{justify-content:center;min-width:0;padding:10px 8px;border:1px solid #c4dae8;border-radius:9px;background:rgba(255,255,255,.72);font-size:11px;line-height:1.35;text-align:center;word-break:normal}
 body.taigiaoan-site.tgx-design .tgx-hero-links a:last-child{grid-column:1/-1}
 body.taigiaoan-site.tgx-design .tgx-hero-metrics{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px!important;width:100%;margin-top:16px!important}
 body.taigiaoan-site.tgx-design .tgx-hero-metrics span{min-width:0;padding:10px 7px!important;border:1px solid rgba(89,153,181,.22);border-left:2px solid #51b99e!important;border-radius:8px;background:rgba(255,255,255,.66)!important;text-align:center}
 body.taigiaoan-site.tgx-design .tgx-hero-metrics b{font-size:19px}
 body.taigiaoan-site.tgx-design .tgx-hero-metrics small{font-size:9px;line-height:1.35;word-break:normal}
 body.taigiaoan-site.tgx-design .tgx-hero-route{padding:19px!important;border-radius:17px!important}
 body.taigiaoan-site.tgx-design .tgx-hero-route h2{margin:16px 0 12px;font-size:24px}
 body.taigiaoan-site.tgx-design .tgx-hero-route ol{grid-template-columns:1fr 1fr;column-gap:12px}
 body.taigiaoan-site.tgx-design .tgx-hero-route li{min-width:0}

 /* All discovery and document grids use one readable column on phones. */
 body.taigiaoan-site.tgx-design .tgx-quick-hubs>.site-width,
 body.taigiaoan-site.tgx-design .tgx-path-grid,
 body.taigiaoan-site.tgx-design .tgx-doc-grid,
 body.taigiaoan-site.tgx-design .tgx-doc-grid-feature,
 body.taigiaoan-site.tgx-design .tgx-doc-grid-catalog,
 body.taigiaoan-site.tgx-design .tgx-book-list,
 body.taigiaoan-site.tgx-design .tgx-university nav,
 body.taigiaoan-site.tgx-design .tgx-journal-grid,
 body.taigiaoan-site.tgx-design .tlga-document-grid,
 body.taigiaoan-site.tgx-design .tlga-related .tlga-document-grid,
 body.taigiaoan-site.tgx-design .tlga-catalog-child-grid{grid-template-columns:minmax(0,1fr)!important}
 body.taigiaoan-site.tgx-design .tgx-doc-card{width:100%;min-width:0}
 body.taigiaoan-site.tgx-design .tgx-doc-card-file{width:min(78%,230px);min-width:0}
 body.taigiaoan-site.tgx-design .tgx-doc-card h3{font-size:18px;word-break:normal;overflow-wrap:anywhere}
 body.taigiaoan-site.tgx-design .tgx-section-head,
 body.taigiaoan-site.tgx-design .tgx-result-heading{align-items:flex-start!important;flex-direction:column!important;gap:12px!important}
 body.taigiaoan-site.tgx-design .tgx-section-head h2,body.taigiaoan-site.tgx-design .tgx-result-heading h2{font-size:30px!important;line-height:1.12}
 body.taigiaoan-site.tgx-design .tgx-section-head p{font-size:14px}
 body.taigiaoan-site.tgx-design .tgx-paths,
 body.taigiaoan-site.tgx-design .tgx-showcase,
 body.taigiaoan-site.tgx-design .tgx-recent,
 body.taigiaoan-site.tgx-design .tgx-journal{padding:47px 0!important}
 body.taigiaoan-site.tgx-design .tgx-path-grid article{min-height:0!important}
 body.taigiaoan-site.tgx-design .tgx-showcase-head{padding:19px!important}
 body.taigiaoan-site.tgx-design .tgx-showcase-head h2{font-size:29px!important}
 body.taigiaoan-site.tgx-design .tgx-books>.site-width,body.taigiaoan-site.tgx-design .tgx-university>.site-width{grid-template-columns:minmax(0,1fr)!important}

 /* Library and category filters never keep desktop columns. */
 body.taigiaoan-site.tgx-design .tgx-catalog-intro-grid,
 body.taigiaoan-site.tgx-design .tgx-result-layout,
 body.taigiaoan-site.tgx-design .tgx-filter-fields,
 body.taigiaoan-site.tgx-design .tlga-catalog-filter-grid,
 body.taigiaoan-site.tgx-design .tlga-filter-grid{grid-template-columns:minmax(0,1fr)!important}
 body.taigiaoan-site.tgx-design .tgx-filter-search,
 body.taigiaoan-site.tgx-design .tlga-filter-search{grid-column:auto!important}
 body.taigiaoan-site.tgx-design .tgx-filter-fields>*,
 body.taigiaoan-site.tgx-design .tlga-catalog-filter-grid>*{grid-column:auto!important;width:100%!important;min-width:0!important;max-width:none!important}
 body.taigiaoan-site.tgx-design .tgx-filter-fields input,
 body.taigiaoan-site.tgx-design .tgx-filter-fields select,
 body.taigiaoan-site.tgx-design .tlga-catalog-filter-grid input,
 body.taigiaoan-site.tgx-design .tlga-catalog-filter-grid select{width:100%!important;min-width:0!important}
 body.taigiaoan-site.tgx-design .tgx-filter,body.taigiaoan-site.tgx-design .tlga-filter{padding:16px!important;border-radius:15px}
 body.taigiaoan-site.tgx-design .tgx-filter-heading,body.taigiaoan-site.tgx-design .tlga-filter-title{align-items:flex-start}
 body.taigiaoan-site.tgx-design .tgx-catalog-intro-grid aside{display:none!important}
 body.taigiaoan-site.tgx-design .tgx-result-heading>span{align-self:flex-start}
 body.taigiaoan-site.tgx-design .tlga-document-sidebar,
 body.taigiaoan-site.tgx-design .tlga-detail-sidebar{grid-template-columns:minmax(0,1fr)!important}

 /* New category hero and information pages. */
 body.taigiaoan-site.tgx-design .tgx-category-hero{grid-template-columns:minmax(0,1fr)!important;padding:24px 18px 18px!important;gap:18px!important}
 body.taigiaoan-site.tgx-design .tgx-category-copy h1{font-size:36px!important;line-height:1.04!important}
 body.taigiaoan-site.tgx-design .tgx-category-meta{grid-template-columns:1fr 1fr!important}
 body.taigiaoan-site.tgx-design .tgx-category-meta>a{grid-column:1/-1!important}
 body.taigiaoan-site.tgx-design .tgx-category-hero>aside{padding:15px!important;min-height:0!important}
 body.taigiaoan-site.tgx-design .tgx-category-hero>aside nav{grid-template-columns:minmax(0,1fr)!important}
 body.taigiaoan-site.tgx-design .tgx-category-mark{display:none!important}
 body.taigiaoan-site.tgx-design .tgx-category-page .tlga-catalog-children{padding:16px!important}
 body.taigiaoan-site.tgx-design .tlga-contact-hero-grid,
 body.taigiaoan-site.tgx-design .tlga-about-hero-grid,
 body.taigiaoan-site.tgx-design .tlga-guide-hero-grid{grid-template-columns:minmax(0,1fr)!important}
 body.taigiaoan-site.tgx-design .tlga-contact-hero,body.taigiaoan-site.tgx-design .tlga-contact-info,body.taigiaoan-site.tgx-design .tlga-contact-compose,body.taigiaoan-site.tgx-design .tlga-contact-tips{border-radius:16px}
 body.taigiaoan-site.tgx-design .tlga-contact-sidebar{min-width:0}
 body.taigiaoan-site.tgx-design .tlga-contact-form-grid{grid-template-columns:minmax(0,1fr)!important}
 body.taigiaoan-site.tgx-design .tlga-contact-form-grid>*{grid-column:auto!important;min-width:0}
 body.taigiaoan-site.tgx-design .tlga-contact-channels article{grid-template-columns:42px minmax(0,1fr)!important}
 body.taigiaoan-site.tgx-design .tlga-contact-channels a,body.taigiaoan-site.tgx-design .tlga-contact-channels span{overflow-wrap:anywhere}

 body.taigiaoan-site.tgx-design .tga-footer-grid{grid-template-columns:minmax(0,1fr)!important}
 body.taigiaoan-site.tgx-design .tga-footer-cta>.site-width{align-items:flex-start;flex-direction:column}
 body.taigiaoan-site.tgx-design .tga-footer-cta a{width:100%;justify-content:center}
 body.taigiaoan-site.tgx-design a.public-admin-edit{right:12px!important;bottom:12px!important;display:grid!important;place-items:center;width:44px!important;height:44px!important;padding:0!important;border-radius:50%!important;font-size:0!important;line-height:0!important}
 body.taigiaoan-site.tgx-design a.public-admin-edit i{font-size:19px!important;line-height:1!important}
}

@media(max-width:390px){
 body.taigiaoan-site.tgx-design .site-width{width:calc(100% - 20px)!important}
 body.taigiaoan-site.tgx-design .tga-brand{max-width:205px}
 body.taigiaoan-site.tgx-design .tgx-hero h1{font-size:36px!important}
 body.taigiaoan-site.tgx-design .tgx-hero-metrics{grid-template-columns:1fr!important}
 body.taigiaoan-site.tgx-design .tgx-hero-route ol{grid-template-columns:1fr}
 body.taigiaoan-site.tgx-design .tgx-category-meta{grid-template-columns:1fr!important}
 body.taigiaoan-site.tgx-design .tgx-category-meta>a{grid-column:auto!important}
}
