/* Compact editorial resources and document cards, using the configured theme tokens. */
.tb-page{--dw-line:color-mix(in srgb,var(--ui-ink,#19263b) 8%,transparent)}
.tb-page,.dw-document-card{--ui-accent:var(--color-orange-500,#f45118);--ui-soft:color-mix(in srgb,var(--ui-accent) 6%,#fff);--ui-line:color-mix(in srgb,var(--ui-accent) 8%,#e8ebf0);--ui-surface:#fff;--ui-muted:#626e80;--ui-ink:#19263b}
.tb-page:not(.tb-detail){max-width:1440px;margin-inline:auto;padding:28px 32px 36px}
.tb-heading{margin-bottom:20px}.tb-heading h1{font-size:26px;letter-spacing:-.5px}.tb-heading p{font-size:13px;margin-top:6px}
.tb-top-tabs{gap:12px;margin-bottom:24px}.tb-top-tabs button{min-height:82px;padding:16px 22px;border-radius:12px;box-shadow:none!important;border-color:var(--dw-line)!important;background:var(--ui-surface,#fff)!important;flex-direction:row;justify-content:flex-start;gap:16px}
.tb-top-tabs button.active{border-color:color-mix(in srgb,var(--ui-accent,#2563eb) 40%,transparent)!important;background:color-mix(in srgb,var(--ui-accent,#2563eb) 5%,#fff)!important}
.tb-top-tabs .tb-tab-icon{width:44px;height:44px;order:0}.tb-top-tabs .tb-category-art{width:44px;height:44px}.tb-top-tabs strong{font-size:17px}.tb-top-tabs small{font-size:12px;margin-top:5px}
.tb-section-bar{gap:16px;margin:20px 0 16px}.tb-section-bar h2{font-size:18px}.tb-search{max-width:360px;min-height:40px;border-radius:9px!important;border-color:var(--dw-line)!important}.tb-search input{font-size:13px}.tb-search button{border-radius:7px!important;font-size:13px}
.tb-filters{gap:6px;margin-bottom:20px}.tb-filters button{padding:7px 13px;font-size:13px;border-radius:7px}
.tb-office-section h3{font-size:15px;margin:4px 0 12px}.tb-office-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.tb-office-grid .tb-office-card{min-height:112px;padding:18px;gap:14px;align-items:flex-start;border:1px solid var(--dw-line);border-radius:12px;box-shadow:none;background:var(--ui-surface,#fff)}
.tb-office-card .tb-tool-icon{width:38px;height:38px;min-width:38px;border-radius:10px;background:var(--ui-soft,#f2f5fa)}.tb-office-card strong{font-size:15px;font-weight:600}.tb-office-card p{font-size:12px;line-height:1.65;margin:6px 0 8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.tb-office-card>svg{width:15px;margin-top:10px;opacity:.45}.tb-office-card .tb-permission{font-size:11px;background:transparent;padding:0;color:var(--ui-muted,#727d8d)}
.tb-office-sections{gap:24px}.tb-office-card:hover{border-color:color-mix(in srgb,var(--ui-accent,#2563eb) 30%,transparent);transform:translateY(-2px)}
.tb-resource-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.tb-resource-grid .tb-resource-card{border:1px solid var(--dw-line);border-radius:12px}
.tb-resource-grid .tb-resource-stage{aspect-ratio:8/5;max-height:172px;border:0;background:color-mix(in srgb,var(--ui-accent,#2563eb) 3%,#f4f5f7)}
.tb-resource-media{inset:12px 18px}.tb-resource-type{top:8px;left:8px;padding:1px 5px;font-size:10px;line-height:18px;background:#ffffffeb;box-shadow:none}
.tb-resource-grid .tb-resource-copy{padding:13px 14px 12px;display:grid;grid-template-columns:1fr auto;gap:7px 8px;align-items:center}
.tb-resource-grid .tb-resource-copy h3{grid-column:1/-1;font-size:14px;font-weight:600;line-height:1.6;height:3.2em;margin:0}
.tb-resource-grid .tb-resource-copy p{grid-column:1/-1;font-size:12px;line-height:1.6;height:3.2em;margin:0 0 4px;color:var(--ui-muted,#727d8d)}
.tb-resource-grid .tb-resource-copy .tb-permission{background:transparent!important;margin:0;padding:0;font-size:11px;color:var(--ui-muted,#727d8d)}
.tb-resource-grid .tb-get-button{width:auto;margin:0;font-size:12px;min-height:28px;padding:4px 10px;border-radius:6px;background:var(--ui-soft,#f2f5fa);color:var(--ui-accent,#2563eb)}
.tb-resource-grid .tb-get-button:hover{background:var(--ui-accent,#2563eb);color:#fff}
/* Keep native category, search, favourites, ordering and pagination controls. */
.wenku-main .card-grid,.wenku-main .doc-grid,.wenku-main .grid,.gov-page .wenku-grid{gap:18px}
.dw-document-card.doc-card{display:flex!important;flex-direction:column!important;min-width:0;width:100%;height:100%!important;min-height:0!important;padding:0!important;border:1px solid transparent!important;border-radius:12px!important;background:var(--ui-surface,#fff)!important;box-shadow:none!important;overflow:hidden;text-decoration:none;color:inherit;transition:border-color .18s,transform .18s}
.dw-document-card:hover{border-color:color-mix(in srgb,var(--ui-accent,#2563eb) 24%,transparent)!important;transform:translateY(-2px)}
.dw-document-body{padding:20px 22px 13px;min-width:0;display:flex;flex:1;flex-direction:column}
.dw-document-card .doc-title{display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:16px!important;line-height:1.6!important;font-weight:600!important;margin:0 0 9px!important;height:3.2em;white-space:normal!important;color:var(--ui-ink,#19263b)!important}
.dw-document-category{font-size:11px;line-height:18px;padding:1px 6px;background:var(--ui-soft,#f2f5fa);color:var(--ui-muted,#727d8d);align-self:flex-start;border-radius:3px;margin-bottom:12px}
.dw-document-card .doc-desc{display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:3!important;overflow:hidden;font-size:13px!important;line-height:1.75!important;min-height:5.25em;height:5.25em!important;max-height:none!important;color:var(--ui-muted,#626e80)!important;margin:0 0 16px!important;white-space:normal!important}
.dw-document-footer{border-top:1px solid color-mix(in srgb,var(--ui-ink,#19263b) 6%,transparent);padding-top:11px;display:flex;gap:8px;align-items:center;justify-content:space-between;font-size:11px;color:var(--ui-muted,#8490a2);margin-top:auto}.dw-document-footer time{margin-left:auto;white-space:nowrap}.dw-document-stats{font-size:10px}
.dw-document-card mark{background:color-mix(in srgb,var(--ui-accent,#2563eb) 10%,transparent);color:var(--ui-accent,#2563eb)}
.dw-ppt-card .dw-ppt-cover{aspect-ratio:4/3;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;overflow:hidden;background:var(--ui-soft,#f2f5fa);color:var(--ui-accent,#2563eb)}.dw-ppt-cover img{width:100%;height:100%;object-fit:contain}.dw-ppt-cover svg{width:40px;height:40px}.dw-ppt-cover span{font-size:12px}.dw-ppt-card .dw-document-body{padding:10px 12px}.dw-ppt-card .doc-title{font-size:13px!important;line-height:1.6!important;margin:0!important;max-height:3.2em;height:3.2em}
.docwk-front .wenku-main .doc-grid,.docwk-front .wenku-main .doc-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.docwk-front .wenku-main .doc-grid:has(>.dw-ppt-card):not(:has(>.dw-text-card)){grid-template-columns:repeat(4,minmax(0,1fr))}
.gov-page .hero-inner{position:relative}.dw-home-hotspot{position:absolute;right:0;top:12px;z-index:2;display:block;width:180px;height:105px}.dw-home-hotspot img{width:100%;height:100%;object-fit:contain;transition:transform .2s}.dw-home-hotspot:hover img{transform:translateY(-3px)}
@media(min-width:1760px){.tb-resource-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.docwk-front .wenku-main .doc-grid:has(>.dw-ppt-card):not(:has(>.dw-text-card)){grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:1199px){.tb-page:not(.tb-detail){padding:24px}.tb-resource-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.tb-office-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.docwk-front .wenku-main .doc-grid,.docwk-front .wenku-main .doc-list{grid-template-columns:repeat(2,minmax(0,1fr))}.docwk-front .wenku-main .doc-grid:has(>.dw-ppt-card):not(:has(>.dw-text-card)){grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1024px){.dw-home-hotspot{width:130px;height:82px;top:0}.tb-top-tabs button{min-height:76px;padding:14px 16px}.tb-top-tabs .tb-tab-icon,.tb-top-tabs .tb-category-art{width:36px;height:36px}.tb-top-tabs strong{font-size:16px}.dw-document-body{padding:16px}.dw-document-card .doc-title{font-size:15px!important}}
@media(max-width:600px){.tb-page:not(.tb-detail){padding:18px 16px 28px}.tb-heading h1{font-size:23px}.tb-top-tabs{gap:10px;margin-bottom:20px}.tb-top-tabs button{min-height:70px;padding:12px;gap:9px}.tb-top-tabs strong{font-size:15px}.tb-top-tabs small{display:none}.tb-top-tabs .tb-tab-icon,.tb-top-tabs .tb-category-art{width:32px;height:32px}.tb-section-bar{gap:10px;align-items:stretch;flex-direction:column}.tb-search{width:100%;max-width:none;min-width:0!important}.tb-filters{gap:4px}.tb-filters button{padding:6px 11px;font-size:12px}.tb-office-grid{gap:9px}.tb-office-grid .tb-office-card{padding:14px 12px;min-height:138px;display:flex;flex-direction:column;gap:9px}.tb-office-card .tb-tool-icon{width:31px;height:31px;min-width:31px}.tb-office-card>svg{display:none}.tb-office-card strong{font-size:14px}.tb-office-card p{font-size:11px;margin:5px 0;line-height:1.6}.tb-office-card .tb-permission{font-size:10px}.tb-office-section h3{font-size:14px}
.tb-resource-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tb-resource-grid .tb-resource-card{padding:0;display:flex;flex-direction:column;gap:0;border-radius:10px}.tb-resource-grid .tb-resource-stage{width:100%;min-width:0;min-height:0;aspect-ratio:5/4;max-height:145px;border-radius:0}.tb-resource-media{inset:10px}.tb-resource-grid .tb-resource-copy{padding:10px;gap:5px}.tb-resource-grid .tb-resource-copy h3{font-size:13px;height:3.2em;min-height:0;margin:0}.tb-resource-grid .tb-resource-copy p{font-size:11px;line-height:1.6;height:3.2em;margin-bottom:3px}.tb-resource-grid .tb-resource-copy .tb-permission{font-size:10px}.tb-resource-grid .tb-get-button{min-height:25px;padding:3px 7px;font-size:11px}
.docwk-front .wenku-main .doc-grid,.docwk-front .wenku-main .doc-list{grid-template-columns:1fr!important;gap:10px}.docwk-front .wenku-main .doc-grid:has(>.dw-ppt-card):not(:has(>.dw-text-card)){grid-template-columns:repeat(2,minmax(0,1fr))!important}.dw-document-body{padding:16px 16px 12px}.dw-document-card .doc-title{height:auto;max-height:3.2em;font-size:15px!important;margin-bottom:7px!important}.dw-document-category{margin-bottom:8px;font-size:10px}.dw-document-card .doc-desc{min-height:0;height:auto!important;max-height:5.25em!important;margin-bottom:12px!important;font-size:12px!important}.dw-document-footer{font-size:10px;padding-top:9px}.dw-ppt-card .dw-document-body{padding:9px 10px}.dw-ppt-card .doc-title{font-size:12px!important;height:3.2em}.dw-home-hotspot{width:92px;height:66px;right:0;top:0}.gov-page .hero-inner:has(.dw-home-hotspot)>h1,.gov-page .hero-inner:has(.dw-home-hotspot)>.subtitle{padding-right:86px}}
@media(prefers-reduced-motion:reduce){.tb-office-card,.dw-document-card,.dw-home-hotspot img{transition:none;transform:none!important}}
/* Override the earlier compact row presentation only for the new shared cards. */
body.docwk-front.docwk-unified-ui .wenku-page .doc-card.dw-document-card,body.docwk-front.docwk-unified-ui .gov-page .doc-card.dw-document-card{display:flex!important;padding:0!important;border-radius:12px!important;border:1px solid transparent!important;min-height:0!important;background:var(--ui-surface,#fff)!important}
body.docwk-front.docwk-unified-ui .wenku-page .doc-grid{display:grid!important;gap:18px!important}
body.docwk-front.docwk-unified-ui :is(.wenku-page,.gov-page) .dw-document-card .doc-title{font-size:16px!important;line-height:1.6!important;font-weight:600!important;margin:0 0 9px!important}
body.docwk-front.docwk-unified-ui :is(.wenku-page,.gov-page) .dw-document-card .doc-desc{display:-webkit-box!important;-webkit-line-clamp:3!important;font-size:13px!important;line-height:1.75!important;color:var(--ui-muted,#626e80)!important;margin:0 0 16px!important}
@media(max-width:600px){body.docwk-front.docwk-unified-ui .wenku-page .doc-grid{grid-template-columns:1fr!important;gap:10px!important}body.docwk-front.docwk-unified-ui .wenku-page .doc-grid:has(>.dw-ppt-card):not(:has(>.dw-text-card)){grid-template-columns:repeat(2,minmax(0,1fr))!important}body.docwk-front.docwk-unified-ui :is(.wenku-page,.gov-page) .dw-document-card .doc-title{font-size:15px!important;margin-bottom:7px!important}body.docwk-front.docwk-unified-ui :is(.wenku-page,.gov-page) .dw-document-card .doc-desc{font-size:12px!important;margin-bottom:12px!important}}
body.docwk-front.docwk-unified-ui :is(.wenku-page,.gov-page) .dw-ppt-card .doc-title{font-size:13px!important;margin:0!important}
.tb-page .tb-top-tabs .tb-tab-icon,.tb-page .tb-top-tabs .tb-category-art{width:44px!important;height:44px!important;position:static!important;transform:none!important}
@media(max-width:600px){.tb-page .tb-top-tabs .tb-tab-icon,.tb-page .tb-top-tabs .tb-category-art{width:32px!important;height:32px!important}}
body.docwk-front.docwk-unified-ui .wenku-page .doc-grid{background:transparent!important;border:0!important;border-radius:0!important;padding:0!important}
body.docwk-front.docwk-unified-ui :is(.wenku-page,.gov-page) .dw-text-card .doc-title{height:auto!important;max-height:3.2em}
.docwk-mobile-start{position:relative}.docwk-mobile-start:has(.dw-home-hotspot)>h2,.docwk-mobile-start:has(.dw-home-hotspot)>p{padding-right:110px}

/* Homepage configured pendant; overrides the historical hero placement. */
.gov-page .hero,.gov-page .hero-inner{overflow:visible!important}
.dw-hotspot-anchor{position:relative;overflow:visible!important}
.dw-hotspot-anchor .dw-home-hotspot{display:block;position:absolute;inset:auto 22px auto auto;top:0;width:clamp(110px,14vw,180px);height:var(--hotspot-height,80px);max-height:90px;transform:translateY(-76%);z-index:3;opacity:0;border:0;background:none;box-shadow:none}
.dw-hotspot-anchor .dw-home-hotspot.is-ready{opacity:1}
.dw-hotspot-anchor .dw-home-hotspot img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 4px 5px #24354a12)}
.dw-hotspot-anchor span.dw-home-hotspot{cursor:default}
@media(max-width:1024px){.dw-hotspot-anchor .dw-home-hotspot{width:130px;max-height:65px;right:14px}}
@media(max-width:600px){.dw-hotspot-anchor .dw-home-hotspot{display:none}.gov-page .hero-inner:has(.dw-home-hotspot)>h1,.gov-page .hero-inner:has(.dw-home-hotspot)>.subtitle{padding-right:0}}
