/* Dashboard round 1 (MEK, Nov 27): Selawik for the main text, Nunito for the small UI bits,
   centred Dashboard / Following tabs, info on the right, and the dashboard in layers
   (Island-wide, your district first, then smaller areas and the other districts). */
@font-face{font-family:'Selawik';src:url('../brand/fonts/selawik/selawkl.woff2') format('woff2');font-weight:300;font-display:swap}
@font-face{font-family:'Selawik';src:url('../brand/fonts/selawik/selawksl.woff2') format('woff2');font-weight:350;font-display:swap}
@font-face{font-family:'Selawik';src:url('../brand/fonts/selawik/selawk.woff2') format('woff2');font-weight:400 500;font-display:swap}
@font-face{font-family:'Selawik';src:url('../brand/fonts/selawik/selawksb.woff2') format('woff2');font-weight:600;font-display:swap}
@font-face{font-family:'Selawik';src:url('../brand/fonts/selawik/selawkb.woff2') format('woff2');font-weight:700 900;font-display:swap}

:root{--lk-main:'Selawik','Segoe UI',system-ui,sans-serif;--lk-small:'Nunito','Selawik','Segoe UI',sans-serif;--lk-blue:#1683f5}

/* Main font everywhere (the DocuPad handwriting keeps its own font) */
body *:not(.dp-title):not(.dp-text):not(.biz-mini-paper *):not(.lookit-pages *){font-family:var(--lk-main)!important}
body h1,body h2,body h3{letter-spacing:-.01em}

/* Small UI: buttons, chips, labels, eyebrows, counts. Rounded and bold, like the logo. */
body :is(button,select,small,label,.eyebrow,.tag,.chip,.post-time,.ts-item,.feed-tab,.channel-tabs button,.feed-follow,.text-button,.pulse-tag,.pulse-actions a,.pulse-actions button,.smile-badge,.feed-day-heading span,.publisher-label,.lk-chip,.lk-tier-eyebrow,.lk-tier-note,.lk-card-tag,.lk-person small,.nav span,.dock-button span,.post-price,.feed-identity small,.following-identity small,.post-heading span,.engagement-ribbon,.small-note):not(.dp-title):not(.dp-text){font-family:var(--lk-small)!important}
body :is(.eyebrow,.lk-tier-eyebrow,.lk-card-tag){font-style:italic;font-weight:800!important;letter-spacing:.06em}
body :is(button,.text-button,.chip,.lk-chip){font-weight:700}

/* ---------- top bar: logo left, tabs centred, info right ---------- */
body .shell>header{display:grid!important;grid-template-columns:1fr auto 1fr;align-items:center;gap:14px}
body .shell>header .header-wordmark{justify-self:start}
body .shell>header .location,body .shell>header #mode,body .shell>header label[for=mode],body .shell>header .demo,body .shell>header .header-store{display:none!important}
body .shell>header .header-actions{justify-self:end;display:flex;align-items:center;gap:8px;margin:0}
body .shell>header #view-switcher{grid-column:2;margin:0!important;padding:0!important;min-height:0!important;border:0!important;display:block}
body .shell>header #view-switcher[hidden]{display:block!important;visibility:hidden}
body .shell>header .view-switcher-buttons{width:290px!important;grid-template-columns:repeat(2,1fr)!important;padding:4px!important;border-radius:999px!important;background:var(--ui-soft,#f1f2f4)!important}
body .shell>header .view-switcher-buttons:before{width:calc(50% - 4px)!important;left:4px!important;top:4px!important;bottom:4px!important;border-radius:999px!important;background:var(--ui-panel,#fff)!important;box-shadow:0 1px 3px #0000001a,0 4px 12px -6px #00000033}
body .shell>header .view-switcher-buttons button{padding:9px 10px!important;font:700 14px var(--lk-small)!important;color:var(--ui-secondary,#666)!important}
body .shell>header .view-switcher-buttons button.active{color:var(--ui-text,#111)!important}
.ts-loc{flex-direction:row}.ts-loc .ts-area{font-style:normal;color:var(--biz-muted)}
.ts-date svg{color:var(--lk-blue)!important}

@media (max-width:1100px){.ts-loc .ts-area{display:none}}
@media (max-width:900px){body .shell>header{grid-template-columns:auto 1fr;height:auto!important;padding:10px 0 12px!important;row-gap:10px}
  body .shell>header #view-switcher{grid-column:1 / -1;grid-row:2;justify-self:center}
  .ts-date{display:none!important}}
@media (max-width:760px){.top-status .ts-loc b,.top-status .ts-time{display:inline-flex!important}.ts-weather em{display:none}}
@media (max-width:560px){body .shell>header .view-switcher-buttons{width:min(290px,calc(100vw - 60px))!important}
  .top-status{gap:0}.ts-item{padding:4px 5px!important}.ts-item svg{width:13px!important;height:13px!important}.ts-weather b{font-size:11.5px}
  body .shell>header .header-wordmark .lk-logo{height:21px!important}}
@media (max-width:400px){.ts-weather{display:none!important}}

/* the old page heading, the duplicate feed tabs and the illustrated map are replaced */
#home-view .home-heading,#home-view .daily-overview,#home-view .feed-tabs{display:none!important}
#explore-view{display:none!important}

/* ---------- the layers ---------- */
.lk-tier{margin:0 0 30px}
.lk-tier-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:0 0 14px}
.lk-tier-eyebrow{display:inline-flex;align-items:center;gap:7px;font-size:11.5px;color:var(--lk-blue);text-transform:uppercase}
.lk-tier-eyebrow i{width:8px;height:8px;border-radius:50%;background:currentColor;box-shadow:0 0 0 4px color-mix(in srgb,currentColor 18%,transparent)}
.lk-tier-head h2{margin:4px 0 0;font-size:clamp(24px,2.4vw,32px);font-weight:600;line-height:1.1}
.lk-tier-note{margin:4px 0 0;font-size:12.5px;color:var(--ui-secondary,#666);font-weight:600}
.lk-tier-note button{border:0;background:none;padding:0;color:var(--lk-blue);font:inherit;cursor:pointer}

/* Island-wide: MEK's own layer */
.lk-island-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:12px}
.lk-icard{position:relative;display:flex;flex-direction:column;justify-content:flex-end;min-height:150px;padding:16px 18px;border-radius:22px;background:var(--ui-panel,#fff);color:var(--ui-text,#111);text-decoration:none;overflow:hidden;box-shadow:0 1px 2px #0000000a}
.lk-icard b{font-size:19px;font-weight:600;line-height:1.2}.lk-icard span{margin-top:3px;font-size:13px;color:var(--ui-secondary,#666)}
.lk-card-tag{position:absolute;top:14px;left:16px;display:inline-flex;align-items:center;gap:6px;padding:4px 9px;border-radius:999px;background:#1683f51a;color:var(--lk-blue);font-size:10.5px;text-transform:uppercase}
.lk-card-tag svg{width:13px;height:13px}
.lk-icard.lk-main{background:radial-gradient(ellipse at 80% 0%,#3aa2ff 0%,#1683f5 35%,#0c55c4 70%,#062a6e 100%);color:#fff;min-height:170px}
.lk-icard.lk-main span{color:#ffffffcc}.lk-icard.lk-main .lk-card-tag{background:#ffffff26;color:#fff}
.lk-icard.lk-main:after{content:'';position:absolute;right:-30px;top:-30px;width:160px;height:160px;border-radius:50%;background:radial-gradient(circle,#ffffff40,transparent 65%)}
.lk-flag{position:absolute;right:16px;top:14px;display:flex;gap:4px}.lk-flag i{width:9px;height:9px;border-radius:50%;background:#fff;opacity:.85}
.lk-run-by{display:inline-flex;align-items:center;gap:6px;padding:6px 11px;border-radius:999px;background:var(--ui-soft,#f1f2f4);font:700 11.5px var(--lk-small);color:var(--ui-secondary,#666);white-space:nowrap}
.lk-run-by .lk-logo{height:10px;color:var(--ui-text,#111)}

/* Districts: yours first, then the others; then the neighbourhoods inside it */
.lk-chips{display:flex;gap:7px;overflow-x:auto;scrollbar-width:none;padding:2px 0 4px;margin:0 0 10px}
.lk-chips::-webkit-scrollbar{display:none}
.lk-chip{flex:none;padding:7px 13px;border:1px solid var(--ui-line,#e6e6e6);border-radius:999px;background:var(--ui-panel,#fff);color:var(--ui-text,#111);font-size:12.5px;cursor:pointer;white-space:nowrap}
.lk-chip.on{background:var(--ui-text,#111);border-color:var(--ui-text,#111);color:var(--ui-panel,#fff)}
.lk-chip.home:before{content:'';display:inline-block;width:7px;height:7px;margin-right:6px;border-radius:50%;background:var(--lk-blue);vertical-align:1px}
.lk-chips.small .lk-chip{padding:5px 11px;font-size:11.5px;background:none}
.lk-chips.small .lk-chip.on{background:#1683f51a;border-color:#1683f555;color:var(--lk-blue)}
.lk-sub{margin:0 0 6px;font:800 italic 11px var(--lk-small);letter-spacing:.06em;color:var(--ui-secondary,#666);text-transform:uppercase}
#lk-district .home-pulse{margin-top:8px}
.lk-elsewhere{padding:28px 16px;border-radius:20px;background:var(--ui-panel,#fff);text-align:center;color:var(--ui-secondary,#666)}
.lk-elsewhere b{display:block;margin-bottom:4px;color:var(--ui-text,#111);font-size:18px;font-weight:600}

/* Following: the same setup, only what you follow */
.lk-people{display:flex;gap:14px;overflow-x:auto;scrollbar-width:none;padding:2px 0 8px;margin-bottom:8px}
.lk-person{flex:none;display:flex;flex-direction:column;align-items:center;gap:5px;width:76px;text-align:center;border:0;background:none;color:var(--ui-text,#111);cursor:pointer;padding:0}
.lk-person span{display:grid;place-items:center;width:58px;height:58px;border-radius:20px;background:var(--c);color:#fff;font:700 20px var(--lk-small);box-shadow:0 0 0 2px var(--ui-panel,#fff),0 0 0 4px var(--c)}
.lk-person b{font-size:12px;font-weight:600;line-height:1.15}.lk-person small{font-size:10.5px;color:var(--ui-secondary,#666);margin-top:-3px}
body[data-feed-layout=following] #lk-island,body[data-feed-layout=following] #lk-district-head,body[data-feed-layout=following] #lk-district .home-pulse,body[data-feed-layout=following] .lk-chips{display:none!important}
body:not([data-feed-layout=following]) #lk-following{display:none}
body[data-feed-layout=following] .feed-section-heading{display:none}

/* Post bubbles: white unless the poster picks a colour */
body .feed-section .feed-grid .feed-card[data-bubble],body .feed-grid .following-post[data-bubble] .post-surface{background:var(--bubble)!important}
.lk-bubble-row{display:flex;gap:7px;flex-wrap:wrap;margin:4px 0 8px}
.lk-bubble-row button{width:28px;height:28px;border-radius:50%;border:0;cursor:pointer;background:var(--c);box-shadow:inset 0 0 0 1px #0000002a}
.lk-bubble-row button.on{box-shadow:0 0 0 2px #fff,0 0 0 4px #111}

/* Our Smile icon instead of the little smiley face */
.lk-smile-ic{width:1em;height:1em;vertical-align:-.12em}
.compact-promo-icon{width:30px!important;height:30px!important;align-self:flex-end}.compact-promo-icon .lk-smile-ic{width:16px;height:16px}
.rail-bottom .avatar .lk-smile-ic{width:18px;height:18px}

@media (max-width:900px){.lk-island-grid{grid-template-columns:1fr 1fr}.lk-icard.lk-main{grid-column:1 / -1}}
@media (max-width:560px){.lk-tier-head{flex-wrap:wrap}.lk-island-grid{gap:9px}.lk-icard{min-height:128px;padding:14px;border-radius:18px}.lk-icard b{font-size:16px}.lk-icard span{font-size:12px}.lk-run-by{display:none}}
@media (prefers-color-scheme:dark){.lk-person span{box-shadow:0 0 0 2px #111,0 0 0 4px var(--c)}}
body[data-feed-layout=following] #lk-district .feed-section{display:block!important}
body[data-feed-layout=following] #lk-elsewhere,body[data-feed-layout=following] #lk-areas-wrap{display:none!important}
