/* Saedal — spacious charcoal surfaces inspired by the supplied reference. */
html[data-theme="dark"]{color-scheme:dark;--bg:#0e1011;--panel:#151719;--soft:#202327;--ink:#f6f6f2;--muted:#a3a8aa;--line:#34383b;--sd-strong:#f7f7f5;--sd-on-strong:#111314}
html[data-theme="light"]{color-scheme:light;--bg:#f0f1ef;--panel:#fff;--soft:#f4f5f3;--ink:#181b1b;--muted:#62696a;--line:#d8ddda;--sd-strong:#181b1b;--sd-on-strong:#fff}
body:has(.by-header),body.saedal-home{background:var(--bg);color:var(--ink);font-family:Pretendard,'Pretendard Variable',system-ui,-apple-system,sans-serif}
.by-shell{width:min(1220px,calc(100% - 48px))}
.by-header{border-color:var(--line);background:var(--bg)}
.by-header-inner{min-height:88px}
.by-brand img{width:115px;height:auto}
.by-theme-btn,.by-login{height:42px;border:1px solid var(--line);border-radius:14px;background:var(--soft);color:var(--ink)}
.by-theme-btn{width:42px}.by-theme-btn:hover,.by-login:hover{background:var(--panel);border-color:var(--muted)}
.by-login{min-width:82px;padding:0 17px}
.by-main{margin-top:34px;margin-bottom:62px;padding:47px 52px 53px;border:1px solid var(--line);border-radius:32px;background:var(--panel);box-shadow:0 24px 80px rgba(0,0,0,.1)}
.by-groups{gap:48px}
.by-group-head{padding-bottom:16px;margin-bottom:20px;border-color:var(--line)}
.by-group-head h2{font-size:18px;font-weight:680;letter-spacing:-.035em}
.by-group-head span,.by-group-head>a{font-size:12px}
.by-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.by-card{position:relative;display:grid;grid-template-columns:1fr auto;grid-template-rows:auto 1fr;align-items:start;gap:17px;min-height:171px;padding:24px;border:1px solid var(--line);border-radius:21px;background:var(--soft);transition:background .18s,border-color .18s,box-shadow .18s,transform .18s}
.by-card:hover{transform:translateY(-3px);border-color:var(--muted);background:var(--panel);box-shadow:0 16px 32px rgba(0,0,0,.11)}
.by-card-icon{grid-column:1;grid-row:1;width:56px;height:56px;border-radius:16px;border-color:var(--line);background:var(--panel)}
.by-card-icon img{object-fit:contain}
.by-card-copy{grid-column:1/-1;grid-row:2;align-self:end}
.by-card-copy strong{font-size:17px;font-weight:700;letter-spacing:-.035em}
.by-card-copy small{margin-top:5px;font-size:12px;line-height:1.45;white-space:normal}
.by-card-arrow{grid-column:2;grid-row:1;color:var(--muted);font-size:20px}
.by-card.is-bot{border-color:var(--line)}
.by-update-grid{gap:13px}.by-update{border-radius:21px;background:var(--soft);border-color:var(--line);padding:23px;min-height:140px}
.by-footer{border-color:var(--line);padding:37px 0 45px;background:var(--bg)}
.by-footer-brand>a{font-size:18px;letter-spacing:-.04em}.by-footer-brand p,.by-footer-links{font-size:12px}

/* Shared navigation on Saedal pages, including services that load site-nav.js. */
#shashat-nav{border-radius:18px!important;border:1px solid var(--line,#34383b)!important;box-shadow:0 14px 38px rgba(0,0,0,.14)!important}
#shashat-nav .snav-link,#shashat-nav .snav-grp-btn{border-radius:999px!important}
#snav-search-btn{border-radius:999px!important;background:var(--soft,#202327)!important;border-color:var(--line,#34383b)!important}
#snav-corner .sa-btn,#snav-corner #snav-theme-btn{border-radius:999px!important;background:var(--soft,#202327)!important;border-color:var(--line,#34383b)!important;color:var(--ink,#f6f6f2)!important}
#snav-corner .sa-menu{border-radius:19px!important;background:var(--panel,#151719)!important;border-color:var(--line,#34383b)!important;color:var(--ink,#f6f6f2)!important}
html[data-theme="dark"] #shashat-nav{background:rgba(21,23,25,.96)!important;color:#f5f5f2!important}
html[data-theme="light"] #shashat-nav{background:rgba(255,255,255,.96)!important;color:#181b1b!important}

@media(max-width:900px){.by-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.by-main{padding:38px 30px}.by-groups{gap:40px}}
@media(max-width:600px){.by-shell{width:calc(100% - 28px)}.by-header-inner{min-height:72px}.by-brand img{width:92px}.by-theme-btn{width:36px;height:36px;border-radius:12px}.by-login{height:36px;min-width:65px;padding:0 12px;border-radius:12px}.by-main{margin-top:18px;margin-bottom:35px;padding:25px 18px 29px;border-radius:22px}.by-groups{gap:33px}.by-group-head{margin-bottom:15px;padding-bottom:13px}.by-group-head h2{font-size:16px}.by-grid{grid-template-columns:1fr;gap:9px}.by-card{display:flex;align-items:center;gap:14px;min-height:101px;padding:17px;border-radius:17px}.by-card-icon{width:52px;height:52px;flex:0 0 52px;border-radius:14px}.by-card-copy{align-self:center;min-width:0}.by-card-copy strong{font-size:15px}.by-card-copy small{font-size:11px}.by-card-arrow{margin-left:auto;font-size:17px}.by-footer{padding:28px 0 35px}}
@media(prefers-reduced-motion:reduce){.by-card,.by-update{transition:none}}

/* Mini game index uses its own markup; carry the same surface and card rhythm across. */
html[data-theme="dark"] body:has(.g-grid){--bg:#0e1011;--card:#202327;--text:#f6f6f2;--sub:#a3a8aa;--line:#34383b;--accent:#f6f6f2;--accent-soft:#292d30;--muted:#a3a8aa}
html:not([data-theme="dark"]) body:has(.g-grid){--bg:#f0f1ef;--card:#fff;--text:#181b1b;--sub:#62696a;--line:#d8ddda;--accent:#181b1b;--accent-soft:#f4f5f3;--muted:#62696a}
body:has(.g-grid) .wrap{max-width:1220px;margin:80px auto 70px;padding:45px 52px 55px;border:1px solid var(--line);border-radius:32px;background:var(--card)}
body:has(.g-grid) .g-head{margin-bottom:28px}
body:has(.g-grid) .g-head h1{font-size:30px;letter-spacing:-.04em;margin-bottom:9px}
body:has(.g-grid) .g-head p{font-size:14px;line-height:1.6}
body:has(.g-grid) .g-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
body:has(.g-grid) .g-card{min-height:260px;border-radius:21px;background:var(--accent-soft);border-color:var(--line);box-shadow:none}
body:has(.g-grid) .g-card:hover{background:var(--card);border-color:var(--sub);box-shadow:0 16px 32px rgba(0,0,0,.11)}
body:has(.g-grid) .g-thumb{height:142px;background:transparent}
body:has(.g-grid) .g-thumb img{width:83px;height:83px}
body:has(.g-grid) .g-body{padding:20px 22px 22px}
body:has(.g-grid) .g-name{font-size:18px;letter-spacing:-.035em}
body:has(.g-grid) .g-desc{font-size:13px;margin:7px 0 17px}
body:has(.g-grid) .g-rec{font-size:12px;padding-top:13px}
@media(max-width:900px){body:has(.g-grid) .wrap{margin:78px 20px 50px;padding:32px 28px}body:has(.g-grid) .g-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){body:has(.g-grid) .wrap{margin:70px 14px 36px;padding:24px 18px;border-radius:22px}body:has(.g-grid) .g-head h1{font-size:24px}body:has(.g-grid) .g-grid{grid-template-columns:1fr;gap:10px}body:has(.g-grid) .g-card{min-height:0;display:grid;grid-template-columns:92px minmax(0,1fr);align-items:center}body:has(.g-grid) .g-thumb{height:100%;min-height:112px}body:has(.g-grid) .g-thumb img{width:58px;height:58px}body:has(.g-grid) .g-body{padding:15px 15px 15px 0}body:has(.g-grid) .g-name{font-size:16px}body:has(.g-grid) .g-desc{font-size:11px;margin-bottom:9px}body:has(.g-grid) .g-rec{font-size:11px;padding-top:8px}}

/* Compact homepage and a clearly legible wordmark in the shared nav. */
.by-shell{width:min(1080px,calc(100% - 48px))}
.by-header-inner{min-height:78px}
.by-main{margin-top:26px;margin-bottom:46px;padding:34px 38px 39px;border-radius:26px}
.by-groups{gap:35px}
.by-group-head{margin-bottom:15px;padding-bottom:12px}
.by-card{min-height:141px;gap:11px;padding:18px 20px;border-radius:18px}
.by-card-icon{width:48px;height:48px;border-radius:13px}
.by-card-copy strong{font-size:15px}
.by-card-copy small{font-size:11px}
.by-update{min-height:117px;padding:18px;border-radius:18px}
#shashat-nav .snav-logo .rk-inline,#shashat-nav .snav-logo img{height:25px!important;width:auto!important;max-width:none!important}
html:root #shashat-nav .snav-logo img.rk-inline{height:25px!important;width:auto!important;max-width:none!important}
#shashat-nav .snav-logo{min-width:111px!important;justify-content:flex-start!important}
#snav-corner .sa-btn.sa-avatar{width:36px!important;min-width:36px!important;height:36px!important;padding:2px!important;overflow:visible!important;border-radius:50%!important}
#snav-corner .sa-avatar img{width:100%;height:100%;display:block;object-fit:cover;border-radius:50%}
#snav-corner .sa-avatar span{display:grid;place-items:center;width:100%;height:100%;border-radius:50%;background:var(--sn-strong,#17191a);color:var(--sn-on-strong,#fff);font-size:14px;font-weight:700}
.by-login.by-avatar{width:40px;min-width:40px;height:40px;padding:2px;border-radius:50%}
.by-avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
.by-avatar span{display:grid;place-items:center;width:100%;height:100%;border-radius:50%;background:var(--sd-strong);color:var(--sd-on-strong);font-size:15px;font-weight:700}
.by-alert{position:relative;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;box-sizing:border-box;border:1px solid var(--line);border-radius:50%;background:var(--soft);color:var(--ink);text-decoration:none}
.by-alert[hidden],.by-alert-count[hidden]{display:none}
.by-alert:hover{background:var(--panel);border-color:var(--muted)}
.by-alert svg{width:18px;height:18px}
.by-alert-count{position:absolute;top:-7px;right:-9px;display:grid;place-items:center;min-width:19px;height:19px;padding:0 4px;box-sizing:border-box;border-radius:999px;background:#171717;color:#fff;font-size:10px;font-weight:750;line-height:1;box-shadow:0 0 0 2px var(--bg)}
html[data-theme=dark] .by-alert-count{background:#f4f4f2;color:#171717}
@media(max-width:600px){.by-alert{width:36px;height:36px}}
@media(max-width:600px){.by-shell{width:calc(100% - 28px)}.by-main{margin:17px auto 32px;padding:23px 17px 27px;border-radius:21px}.by-groups{gap:28px}.by-card{min-height:90px;padding:14px 16px;border-radius:16px}.by-card-icon{width:45px;height:45px;flex-basis:45px}.by-header-inner{min-height:70px}#shashat-nav .snav-logo .rk-inline,#shashat-nav .snav-logo img{height:21px!important}#shashat-nav .snav-logo{min-width:94px!important}}
@media(max-width:600px){html:root #shashat-nav .snav-logo img.rk-inline{height:21px!important}}

/* The homepage uses the same navigation component as the other pages. */
body.saedal-home{padding-top:64px}
body.saedal-home #snav-search-btn{display:none!important}
body.saedal-home .by-main{margin-top:24px}
.by-card-icon{border:1px solid var(--line);background:var(--panel);color:var(--ink)}
.by-card-icon img{width:100%;height:100%;object-fit:contain}
.by-card-icon-line{background:var(--ink);color:var(--panel);border-color:var(--ink)}
.by-card-icon-line svg{display:block;width:27px;height:27px;flex:none}
@media(max-width:600px){body.saedal-home{padding-top:56px}body.saedal-home .by-main{margin-top:15px}.by-card-icon-line svg{width:25px;height:25px}}

/* Keep the original service artwork, but give every home card one compact rhythm. */
body.saedal-home .by-grid{gap:11px}
body.saedal-home .by-card{display:flex;align-items:center;gap:17px;min-height:106px;padding:17px 18px;background:var(--panel);border-radius:17px}
body.saedal-home .by-card-icon{display:grid;place-items:center;flex:0 0 62px;width:62px;height:62px;border:1px solid var(--line);border-radius:15px;background:var(--bg);overflow:hidden}
body.saedal-home .by-card-icon img{display:block;width:46px;height:46px;object-fit:contain;border-radius:10px}
body.saedal-home .by-card-icon-line{background:var(--ink);border-color:var(--ink);color:var(--panel)}
body.saedal-home .by-card-icon-line svg{width:30px;height:30px}
body.saedal-home .by-card-copy{min-width:0;align-self:center}
body.saedal-home .by-card-copy strong{font-size:15px;line-height:1.35}
body.saedal-home .by-card-copy small{margin-top:5px;font-size:11px;line-height:1.4}
body.saedal-home .by-card:hover{background:var(--soft)}
@media(max-width:600px){body.saedal-home .by-card{gap:14px;min-height:90px;padding:13px 14px}body.saedal-home .by-card-icon{flex-basis:54px;width:54px;height:54px;border-radius:13px}body.saedal-home .by-card-icon img{width:40px;height:40px}body.saedal-home .by-card-icon-line svg{width:27px;height:27px}}
body.saedal-home .by-main{margin-top:32px}
@media(max-width:600px){body.saedal-home .by-main{margin-top:24px}}

/* Index pictograms are drawn for this site; service artwork is untouched elsewhere. */
body.saedal-home .by-card-icon-line{border:0;background:transparent;color:var(--ink);border-radius:0;overflow:visible}
body.saedal-home .by-card-icon-line svg{width:40px;height:40px;stroke-width:1.9}
@media(max-width:600px){body.saedal-home .by-card-icon-line svg{width:36px;height:36px}}

/* Keep labels readable when a page uses a light accent in dark mode. */
html[data-theme="dark"] :is(#tabs button[aria-selected="true"],.empty .btn,.btn-fill,.srch button,.seg button.on,.btn.primary,.au-btn){color:#17191a!important}
html[data-theme="dark"] :is(.btn-fill,.btn.primary,.au-btn){background:#f4f5f2!important;border-color:#f4f5f2!important}
html[data-theme="dark"] .row.me .nm::after{color:#17191a!important}
