/* Shared category symbols, news navigation and bottom sheets. */
.board-news-copy {
    display:flex;
    flex:1;
    min-width:0;
    flex-direction:column;
    align-items:flex-start;
    gap:4px;
    overflow-wrap:anywhere
}
.board-news-copy strong {
    font-size:var(--ios-font-callout);
    font-weight:600;
    line-height:1.4
}
.board-news-meta {
    color:var(--muted);
    font-size:var(--ios-font-footnote);
    line-height:1.5
}
.board-news-list {
    list-style:none;
    margin:0;
    padding:0
}
.board-news-entry {
    display:flex;
    align-items:center;
    gap:12px;
    padding:16px 0;
    min-height:64px;
    border-top:1px solid var(--line);
    color:var(--ink);
    text-decoration:none
}
.board-news-entry:hover {
    color:var(--ink);
    background:var(--ios-control-muted)
}
.board-news-entry>.board-news-category {
    flex-shrink:0;
    align-self:flex-start
}
.board-news-entry .ios-category-tile {
    width:38px;
    height:38px;
    font-size:1.15rem;
    border-radius:11px
}
.board-news-kind {
    font-size:var(--ios-font-caption);
    font-weight:600;
    padding:2px 7px;
    border-radius:7px;
    color:var(--brand);
    background:var(--ios-control-muted)
}
.board-news-kind.is-updated {
    color:var(--ios-warning)
}
.board-news-entry>.bi {
    color:var(--muted);
    flex-shrink:0
}
:is(.category-colored-header,.board-news-category)[data-category-icon] {
    --category-icon-color:var(--system-indigo);
    --category-symbol-color:var(--ios-fill-ink)
}
:is(.category-colored-header,.board-news-category)[data-category-icon="document"] {
    --category-icon-color:var(--system-blue)
}
:is(.category-colored-header,.board-news-category)[data-category-icon="program"] {
    --category-icon-color:var(--system-teal)
}
:is(.category-colored-header,.board-news-category)[data-category-icon="message"] {
    --category-icon-color:var(--system-green)
}
:is(.category-colored-header,.board-news-category)[data-category-icon="tasks"] {
    --category-icon-color:var(--system-orange)
}
:is(.category-colored-header,.board-news-category)[data-category-icon="star"] {
    --category-icon-color:var(--system-yellow)
}
:is(.category-colored-header,.board-news-category)[data-category-icon="info"] {
    --category-icon-color:var(--system-cyan)
}
:is(.category-colored-header,.board-news-category)[data-category-icon="calendar"] {
    --category-icon-color:var(--system-red)
}
.ios-category-tile {
    display:grid;
    place-items:center;
    flex-shrink:0;
    width:44px;
    height:44px;
    border-radius:14px;
    background:var(--category-icon-color);
    color:var(--category-symbol-color);
    font-size:1.35rem
}
.news-nav-icon {
    position:relative;
    display:inline-flex;
    align-items:center;
    justify-content:center
}
.news-nav-badge {
    position:absolute;
    top:-6px;
    left:60%;
    min-width:17px;
    height:17px;
    padding:0 4px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:10px;
    background:var(--system-red);
    color:var(--ios-fill-ink);
    font-size:.625rem;
    line-height:1;
    font-weight:700;
    border:1px solid var(--ios-card)
}
#main-navbar [aria-controls="board-news-sheet"] {
    display:flex;
    align-items:center;
    gap:10px
}
.ios-tabbar.has-admin-tab .ios-tab {
    font-size:clamp(.7059rem,2.8vw,.7647rem);
    padding-inline:2px
}
.ios-tabbar.has-admin-tab .ios-tab .bi {
    font-size:clamp(1.1765rem,5vw,1.4rem)
}
.ios-tabbar .ios-tab>span:last-child {
    white-space:nowrap
}
.ios-account-sheet.offcanvas-bottom {
    --bs-offcanvas-height:auto;
    max-height:calc(100dvh - max(20px,env(safe-area-inset-top)));
    border:0;
    border-radius:32px 32px 0 0;
    --bs-offcanvas-transition:transform .32s var(--ios-motion-ease);
    box-shadow:0 -12px 50px #0002;
    width:100%;
    max-width:600px;
    margin-inline:auto
}
.ios-account-sheet .offcanvas-header {
    padding:18px 20px 14px;
    border-bottom:1px solid var(--ios-card-edge);
    gap:12px;
    flex:none
}
.ios-account-sheet .offcanvas-title {
    font-size:1.1176rem;
    font-weight:650;
    line-height:1.2;
    letter-spacing:-.02em
}
.ios-account-sheet .btn-close {
    flex:none;
    padding:12px;
    margin-right:-6px;
    border-radius:50%;
    background-color:var(--bs-tertiary-bg,#f3f5fa)
}
.ios-account-sheet .offcanvas-body {
    padding:20px 24px max(26px,env(safe-area-inset-bottom));
    overflow-y:auto;
    overscroll-behavior:contain
}
.ios-account-sheet .offcanvas-body p {
    line-height:1.6
}
.ios-account-sheet .form-control {
    min-height:48px
}
.ios-account-sheet .btn {
    min-height:46px
}
@media(min-width:768px) {
    .ios-account-sheet.offcanvas-bottom {
        bottom:20px;
        border-radius:32px;
        max-height:calc(100dvh - 40px)
    }
}
@media(max-width:359px) {
    .ios-account-sheet .offcanvas-header {
        padding-inline:20px
    }
    .ios-account-sheet .offcanvas-body {
        padding-inline:20px
    }
}
.ios-app .ios-sheet-close {
    display:grid;
    place-items:center;
    flex-shrink:0;
    width:44px;
    height:44px;
    min-height:44px;
    border-radius:50%;
    padding:0;
    margin-left:auto;
    background:var(--bs-tertiary-bg,#f3f5fa);
    color:var(--muted,#697585)
}
.category-icon-preview {
    display:flex;
    align-items:center;
    gap:12px;
    background:transparent;
    color:var(--ink)
}

/* Save actions share a clear, full-width position at the end of sheet forms. */
.ios-account-sheet .offcanvas-body form > .btn-primary[type="submit"] {
    width:100%;
    min-height:48px;
    border-radius:24px;
    margin-top:8px;
}
