/* Shared component styling is copied from the reference; local additions below. */
:root{color-scheme:dark}html{background:var(--ng-page)!important}body{--text:var(--ng-ink);--muted:var(--ng-muted);color:var(--ng-ink);background-color:var(--ng-page)!important;background-image:radial-gradient(circle at 12% 8%,rgba(var(--ng-accent-rgb),.12),transparent 32%),linear-gradient(145deg,var(--ng-page),var(--ng-page-deep))!important;background-attachment:fixed!important}body:before{pointer-events:none}.page-shell,.ng-bottom-nav{position:relative;z-index:1}a{color:inherit}button,input,select{font:inherit}button{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid #73ddff;outline-offset:4px}.local-name{display:flex;align-items:center;gap:12px}.local-name img{width:54px;height:54px;object-fit:contain}.local-name strong{font-size:23px;line-height:1.25}.local-name small{display:block;color:var(--ng-muted);font-size:10px;letter-spacing:3px}.local-header-action{border:1px solid var(--ng-line);background:#8771ea28;border-radius:14px;padding:8px 13px;text-decoration:none;font-size:12px;position:relative;z-index:2}.ng-theme-hero-art img{width:100%;height:100%;object-fit:cover}.local-hero-copy{position:absolute;z-index:2;left:8%;top:24%;max-width:55%;text-shadow:0 2px 25px #0008;pointer-events:none}.local-hero-copy span{font-size:12px;letter-spacing:4px;color:#9adaff}.local-hero-copy h1{font-size:clamp(22px,5vw,58px);letter-spacing:4px;line-height:1.4;margin:12px 0;color:#fff}.local-hero-copy p{font-size:clamp(11px,1.5vw,17px);color:#c9cffa;line-height:1.9}.local-controls{position:absolute;right:22px;bottom:20px;z-index:4;display:flex;gap:8px}.local-controls button{border:1px solid #ffffff33;border-radius:50%;width:30px;height:30px;background:#0c123966;color:white}.slide{cursor:default!important}.local-feature-section{padding:22px 20px 0;max-width:1180px;margin:auto;width:100%}.local-page-heading{margin:14px 0 22px}.local-page-heading h1{margin:0;color:var(--ng-ink);font-size:27px}.local-page-heading p{color:var(--ng-muted);margin:5px 0;font-size:13px}.local-tools{display:flex;align-items:center;gap:12px;justify-content:space-between;flex-wrap:wrap;margin-bottom:20px}.local-tools input{border-radius:12px;border:1px solid var(--ng-line);background:var(--ng-panel);color:var(--ng-ink);padding:10px 14px;max-width:100%;width:280px}.local-action{border:1px solid var(--ng-line);border-radius:10px;background:var(--ng-button);padding:8px 16px;text-decoration:none;cursor:pointer}.local-tabs{display:flex;gap:8px;flex-wrap:wrap}.local-tabs button{border:1px solid var(--ng-line);background:var(--ng-panel);padding:6px 17px;border-radius:40px}.local-tabs button.active{background:var(--ng-button)}.local-empty{padding:35px;text-align:center;color:var(--ng-muted);border:1px dashed var(--ng-line);border-radius:18px}.local-sim-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}.local-sim-card{display:flex;align-items:center;gap:20px;border:1px solid var(--ng-line);border-radius:22px;background:var(--ng-panel);padding:25px;text-decoration:none;transition:transform .2s}.local-sim-card:hover{transform:translateY(-4px)}.local-sim-card img{width:100px;height:100px;object-fit:contain}.local-sim-card h2{margin:0;color:var(--ng-ink);font-size:21px}.local-sim-card p{color:var(--ng-muted);font-size:13px}.local-sim-card span{color:#77d8ff;font-size:13px}.local-note{color:var(--ng-muted);font-size:12px;line-height:1.8;margin-top:24px}.draw-summary{background:radial-gradient(ellipse at top right,#5f45cb55,transparent 70%),var(--ng-panel);border:1px solid var(--ng-line);border-radius:22px;padding:26px;margin-bottom:24px;display:flex;align-items:center;justify-content:space-between;gap:20px}.draw-summary h2{margin:0 0 6px;font-size:20px}.draw-summary p{color:var(--ng-muted);margin:0;font-size:12px}.draw-balls{display:flex;gap:10px;align-items:center}.draw-ball{display:inline-grid;place-items:center;border-radius:50%;height:46px;width:46px;background:radial-gradient(circle at 30% 20%,#d8ddff,#7062cd 45%,#29276f);color:white;font-size:22px;font-weight:700;box-shadow:0 0 20px #8872ff22}.draw-ball.sum{background:radial-gradient(circle at 30% 20%,#ffe9ab,#b79446 45%,#625327)}.draw-table-wrap{border:1px solid var(--ng-line);border-radius:17px;overflow:auto;background:var(--ng-panel)}.draw-table{border-collapse:collapse;width:100%;font-size:13px}.draw-table th{font-weight:500;color:var(--ng-muted);text-align:left;background:#ffffff04}.draw-table td,.draw-table th{padding:15px 20px;white-space:nowrap;border-bottom:1px solid #7972ab20}.draw-table tr:last-child td{border:0}.draw-table .draw-ball{width:26px;height:26px;font-size:13px;margin-right:5px}.draw-status{font-size:12px;color:var(--ng-muted)}.draw-status.stale{color:#ecc779}dialog{padding:36px;border-radius:22px;border:1px solid var(--ng-line);background:var(--ng-panel-solid);color:var(--ng-ink);width:min(480px,90vw);box-shadow:0 30px 90px #0007}dialog::backdrop{background:#05071fc9;backdrop-filter:blur(8px)}.dialog-close{position:absolute;top:9px;right:13px;font-size:24px;border:0;background:transparent;color:var(--ng-muted)}#detail-body p{white-space:pre-wrap;color:var(--ng-muted);line-height:1.9}#detail-body img{max-height:120px;object-fit:contain}.local-footer{text-align:center;font-size:11px;color:var(--ng-muted);padding:30px 12px}.local-footer a{text-decoration:none;opacity:.7}.ng-platform-logo-carousel{overflow:hidden}.local-logo-track{display:flex;align-items:center;justify-content:space-around;gap:19px;padding:12px 8px;overflow:auto;scrollbar-width:none}.local-logo-track a{flex:0 0 58px}.local-logo-track img{width:58px;height:58px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 2px #8f6cea30;border:1px solid #7c75b5}.ng-bottom-nav{position:fixed}.local-noimage{display:none}.local-error{margin:80px auto;max-width:500px;text-align:center;padding:25px;border:1px solid var(--ng-line);border-radius:18px}
@media(max-width:640px){.local-name img{width:40px;height:40px}.local-name strong{font-size:18px}.local-name small{font-size:8px;letter-spacing:2px}.local-header-action{padding:6px 9px}.local-hero-copy{top:15%;max-width:70%}.local-hero-copy h1{margin:5px 0;font-size:24px}.local-hero-copy p{margin:0;line-height:1.5}.local-hero-copy span{font-size:8px;letter-spacing:2px}.local-controls{bottom:10px;right:12px}.local-feature-section{padding:16px 14px 0}.local-sim-grid{grid-template-columns:1fr;gap:12px}.local-sim-card{padding:20px}.local-sim-card img{width:75px;height:75px}.draw-summary{align-items:flex-start;flex-direction:column;padding:20px}.draw-balls{gap:8px}.draw-table th,.draw-table td{padding:12px}.local-logo-track{gap:15px;justify-content:flex-start}.local-logo-track a{flex-basis:46px}.local-logo-track img{width:46px;height:46px}}

.local-category-icon{width:18px;height:18px;object-fit:contain;vertical-align:middle}

.page-shell .ng-brand-header .local-name{gap:10px}.page-shell .local-header-action{padding:0;width:44px;height:44px;display:grid;place-items:center}.local-header-action img{width:42px;height:42px;object-fit:contain}

/* Keep user content within the original components at every viewport size. */
.local-name{min-width:0;flex:1}
.local-name>div{min-width:0}
.local-name img,.local-header-action{flex-shrink:0}
.local-name strong{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow-wrap:anywhere}
.local-name small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;letter-spacing:.04em}
.local-hero-copy{max-height:calc(100% - 64px);overflow:hidden;overflow-wrap:anywhere}
.local-hero-copy h1,.local-hero-copy p{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.local-hero-copy h1{letter-spacing:0}
.local-hero-copy p{margin:0}
.page-shell .carousel .dots{left:16px;right:124px;overflow-x:auto;scrollbar-width:none;padding:4px 0;justify-content:safe center}
.page-shell .carousel .dot{flex-shrink:0}
.page-shell .carousel .dot:focus-visible{outline-offset:2px}
.local-controls button{display:grid;place-items:center;padding:0}
.local-controls button[data-action="toggle-carousel"]{font-size:12px}
.marquee-wrap:hover .marquee,.marquee-wrap:focus-within .marquee{animation-play-state:paused}
.page-shell .card .title,.page-shell .card .desc{overflow-wrap:anywhere}
.page-shell .card-rec-badge{max-width:calc(100% - 16px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.local-tools,.local-tabs{min-width:0;max-width:100%}
.local-tabs button{max-width:100%;overflow-wrap:anywhere}
.local-sim-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.local-sim-card{min-width:0;width:100%;text-align:left}
.local-sim-card>div{min-width:0}
.local-sim-card img{flex-shrink:0}
.local-sim-card h2,.local-sim-card p{overflow-wrap:anywhere}
.local-sim-card p{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:3}
.local-logo-track button{flex:0 0 58px;padding:0;border:0;background:transparent;line-height:0;border-radius:50%}
.local-logo-track :is(a,button){outline-offset:3px}
.local-image-unavailable{visibility:hidden}
dialog{max-height:calc(100dvh - 32px);overflow:auto}
dialog #detail-body{overflow-wrap:anywhere}
dialog #detail-body h2{padding-right:8px;line-height:1.4}
dialog #detail-body img{max-width:100%}
html:has(dialog[open]){overflow:hidden}
.local-footer{overflow-wrap:anywhere}
@media(max-width:640px){
  .local-name small{letter-spacing:.04em}
  .local-hero-copy{top:10%;max-width:76%;max-height:calc(100% - 54px)}
  .local-hero-copy h1{font-size:clamp(16px,4.2vw,24px);line-height:1.3}
  .local-hero-copy p{font-size:clamp(10px,2.5vw,13px)}
  .page-shell .carousel .dots{left:12px;right:116px;bottom:10px}
  .local-sim-grid{grid-template-columns:minmax(0,1fr)}
  .local-sim-card{gap:16px}
  .local-logo-track button{flex-basis:46px}
  dialog{padding:30px 22px 24px}
}
@media(prefers-reduced-motion:reduce){
  .page-shell .slides,.local-sim-card{transition:none}
  .page-shell .slide img{animation:none}
}

/* Match the reference page structure while keeping every asset on this origin. */
body.ng-app-shell-home .section.nav-section.local-home-categories{display:block!important}
.ng-brand-header .brand-logo{flex-shrink:1;min-width:0}
body.ng-core-hub-page .ng-brand-header+.ng-hub-shell{padding-top:0}
.ng-hub-shell,.ng-hub-section,.ng-hub-grid,.ng-category-card__copy,.ng-service-card,.ng-service-card__meta{min-width:0}
.local-notice-text{white-space:pre-wrap;overflow-wrap:anywhere}
body.ng-core-hub-page .local-tools{padding:0}
body.ng-core-hub-page .ng-hub-shell{flex:1}
body.ng-core-hub-page .ng-hub-shell .card-grid{width:100%}
body.ng-channel-page .ng-notice-post{margin:0}
body.ng-channel-page .ng-notice-post__body{padding:20px}
body.ng-channel-page .ng-notice-post__body h3{margin:0 0 10px;color:var(--ng-shell-text)}
body.ng-channel-page .ng-notice-post__body p{margin:0;line-height:1.8;color:var(--ng-shell-muted)}
.ng-age-gate__panel{min-width:0}
.ng-age-gate__panel h2,.ng-age-gate__panel p{overflow-wrap:anywhere}
.ng-age-gate__panel button:focus-visible{outline:2px solid var(--ng-shell-primary);outline-offset:3px}
dialog.local-share-dialog{padding:0;overflow:hidden;width:min(520px,calc(100vw - 32px));border-radius:24px}
dialog.local-share-dialog .dialog-close{z-index:4;color:#fff;top:10px;right:12px}
dialog.local-share-dialog .site-share-head{padding-right:48px}
dialog.local-share-dialog .site-share-head strong,dialog.local-share-dialog .site-share-head span{white-space:normal;overflow-wrap:anywhere}
dialog.local-share-dialog .site-share-body{max-height:70dvh}
dialog.local-share-dialog #detail-body p{margin:0}

html[data-ui-theme] body.ng-core-hub-page #app>header.ng-brand-header{width:min(1180px,calc(100% - 28px));margin-bottom:0}
html[data-ui-theme] body::after{display:none!important}
@media(max-width:720px){html[data-ui-theme] body.ng-core-hub-page #app>header.ng-brand-header{width:calc(100% - 24px)}}
@media(max-width:768px){html[data-ui-theme] body::before{display:none!important}}

html.ng-skin-active body{background-attachment:fixed!important}
html body .ng-brand-header .brand:has(.local-brand-subtitle){flex-wrap:wrap;column-gap:14px;row-gap:3px}
.local-brand-subtitle{display:block;min-width:0;max-width:100%;color:var(--ng-shell-muted);font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.local-service-description{margin:7px 0 0;color:var(--ng-shell-muted);font-size:12px;line-height:1.6;overflow-wrap:anywhere}
@media(max-width:720px){.local-brand-subtitle{flex-basis:100%;font-size:11px}}

/* Match the reference popup's modal scroll lock. */
body.ng-popup-v12-open { overflow: hidden; }

.gh-main-categories{grid-template-columns:repeat(2,minmax(0,1fr))}
