/* Board views: solid content cards with subtle, category-colored details. */
.board-news-banner{display:flex;align-items:center;gap:12px;width:100%;min-height:76px;text-align:left;border:1px solid var(--line);border-radius:20px;background:var(--ios-card);color:var(--ink);padding:14px 16px;margin:-10px 0 24px}
.board-news-bell{display:grid;place-items:center;width:42px;height:42px;flex-shrink:0;border-radius:13px;background:var(--ios-primary-fill);color:var(--ios-primary-ink);font-size:1.2rem}
.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-banner .board-news-copy>span,.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,.board-news-banner>.bi{color:var(--muted);flex-shrink:0}
.ios-board-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}
.ios-board-heading h1{margin:0;min-width:0;font-size:clamp(1.85rem,4.4vw,2.5rem);font-weight:700;letter-spacing:-.045em;line-height:1.15;overflow-wrap:anywhere}
.ios-app .ios-board-create{display:flex;align-items:center;justify-content:center;gap:9px;flex-shrink:0;border-radius:50px;min-width:46px;min-height:46px;padding:10px 15px}
.ios-board-search-row{display:flex;align-items:center;gap:10px;margin-bottom:28px}
.ios-new-dot{display:inline-block;flex-shrink:0;width:7px;height:7px;border-radius:50%;background:var(--brand);vertical-align:2px;margin-right:3px}
.ios-category-board .ios-category-card{border:1px solid var(--bs-border-color,#e6e9ef);border-radius:23px;margin-bottom:12px;overflow:hidden;background:var(--ios-card,#fff);box-shadow:0 3px 12px #1c243303}
.ios-category-board .accordion-button.category-colored-header{background:var(--ios-card,#fff);color:var(--ink,#1c2433);gap:12px!important;min-height:78px;padding:15px;line-height:1.35;border-radius:0;box-shadow:none;font-size:1.05rem}
.ios-category-board .accordion-button.category-colored-header:hover{background:var(--bs-tertiary-bg,#f8f9fb)}
.ios-category-board .accordion-button.category-colored-header:focus-visible{box-shadow:inset 0 0 0 3px var(--brand,#516ca3);outline:none}
.ios-category-board .accordion-button.category-colored-header::after{display:none}
/* Apple system colors, Default (dark), as supplied in the design reference.
   Icons and counts share the same saturated background in both themes. Blue tiles use white symbols. */
: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}
.ios-category-board .category-name{flex:1;min-width:0;font-weight:600;letter-spacing:-.025em}
.ios-category-title{display:block}
.ios-category-new{display:flex;align-items:center;gap:3px;margin-top:3px;font-size:.73rem;font-weight:400;letter-spacing:0;color:var(--muted,#697585)}
.ios-category-board .category-document-count{display:grid;place-items:center;flex-shrink:0;min-width:27px;height:27px;padding:2px 7px;border-radius:8px;background:var(--category-icon-color);color:var(--ios-fill-ink);font-size:.78rem;font-weight:600;font-variant-numeric:tabular-nums}
.ios-category-chevron{flex-shrink:0;font-size:.8rem;color:var(--muted,#697585);transition:transform .25s ease}
.ios-category-board .accordion-button[aria-expanded="true"] .ios-category-chevron{transform:rotate(180deg)}
.ios-category-board .accordion-body{padding:0 15px 6px}
.ios-category-board:not(.is-enhanced) .accordion-collapse{display:block}
.ios-category-empty{margin:0;padding:15px 0;font-size:.875rem;line-height:1.6;color:var(--muted,#697585)}
.ios-document-entry{display:flex;align-items:center;gap:10px;border-top:1px solid var(--bs-border-color,#e6e9ef);padding:16px 0}
.ios-document-icon{flex-shrink:0;color:var(--brand,#516ca3);font-size:1.1rem}
.ios-document-main{flex:1;min-width:0}
.ios-document-title-row{display:flex;flex-wrap:wrap;align-items:center;gap:5px 9px}
.ios-document-entry .document-title{color:var(--ink,#1c2433);text-decoration:none;font-size:.95rem;font-weight:600;line-height:1.4;overflow-wrap:anywhere}
.ios-document-entry .document-title:hover{text-decoration:underline;text-underline-offset:3px}
.ios-document-meta{display:flex;flex-wrap:wrap;gap:4px 9px;font-size:.72rem;color:var(--muted,#697585);margin-top:4px;line-height:1.5}
.ios-document-status{margin-left:auto;font-size:.64rem;font-weight:500;border-radius:6px}
.ios-document-actions{display:flex;align-items:center;flex-shrink:0;gap:0}
.ios-document-actions form{margin:0}
.ios-document-entry .ios-document-action{display:grid;place-items:center;width:44px;min-width:44px;min-height:44px;padding:0;border:0;border-radius:13px;color:var(--muted,#697585);background:transparent}
.ios-document-entry .ios-document-action:hover{color:var(--brand,#516ca3);background:var(--bs-tertiary-bg,#f3f5fa)}
.ios-document-entry .ios-document-action.is-favorite{color:var(--ink)}
.ios-search-results{padding:0 18px;border-radius:23px;overflow:hidden}
.ios-search-results>.ios-document-entry:first-child{border-top:0}
.ios-board-filter-summary{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:-10px 3px 18px;font-size:.8rem;color:var(--muted,#697585)}
.ios-board-filter-summary a{white-space:nowrap;text-decoration:none}
.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)}
[data-bs-theme="dark"] .ios-document-entry .ios-document-action.is-favorite{color:var(--system-yellow)}
@media(max-width:575.98px){.ios-board-create{width:46px;padding:10px}.ios-category-board .accordion-button.category-colored-header{padding:14px;gap:10px!important}.ios-category-board .accordion-body{padding:0 12px 5px}.ios-document-entry{gap:6px}.ios-document-icon{display:none}.ios-document-entry .document-title{font-size:.9rem}.ios-document-actions{align-self:center}.ios-document-status{font-size:.61rem}.ios-search-results{padding:0 12px}}
@media(max-width:359.98px){.ios-category-board .accordion-button.category-colored-header{padding:12px;gap:8px!important}.ios-category-tile{width:38px;height:38px;border-radius:12px}.ios-category-board .category-name{font-size:.94rem}.ios-category-new{font-size:.65rem}.ios-category-board .category-document-count{min-width:24px;height:24px;padding:2px 5px}.ios-document-actions{flex-direction:column}}
@media(prefers-reduced-motion:reduce){.ios-category-chevron{transition:none}}

.deleted-post-entry{gap:20px}
.deleted-post-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.deleted-post-actions form{margin:0}
@media(max-width:767.98px){.deleted-post-entry{align-items:stretch;flex-direction:column;gap:12px}.deleted-post-actions{flex-wrap:wrap}.deleted-post-actions .btn{min-height:44px}}

/* Quiet, title-first rows. The entire title area opens the document. */
.ios-app .ios-category-board .ios-category-card,.ios-search-results{overflow:visible}
.ios-app .ios-category-board .ios-category-card{position:relative;border-radius:23px}
.ios-app .ios-category-board .ios-category-card:has(.dropdown-menu.show){z-index:3}
.ios-app .ios-document-entry:not(.deleted-post-entry){position:relative;flex-wrap:nowrap;gap:8px;padding:0;min-height:76px}
.ios-document-entry:not(.deleted-post-entry) .ios-document-main{position:relative;align-self:stretch;display:flex;flex-direction:column;justify-content:center;padding:16px 0}
.ios-document-entry .document-title::after{content:"";position:absolute;inset:0;border-radius:10px}
.ios-document-entry .document-title:focus-visible{outline:2px solid var(--brand);outline-offset:4px;border-radius:4px}
.ios-app .ios-document-entry .ios-document-title-row{display:flex;flex-wrap:wrap;gap:6px 10px}
.ios-app .ios-document-entry .ios-document-actions{position:relative;flex-direction:row;align-self:center;gap:0}
.ios-document-entry .ios-document-status{margin-left:0}
.ios-document-entry .document-more .dropdown-menu{min-width:190px;padding:6px;border-radius:16px;box-shadow:0 8px 28px #17233826}
.ios-document-entry .document-more .dropdown-item{display:flex;align-items:center;min-height:44px;border-radius:10px;padding:10px 12px;font-size:.9rem}
.ios-app .post-order-toolbar{justify-content:flex-end;padding:4px 0;gap:4px 12px}
.ios-app .post-order-toolbar [data-order-toggle]{padding:8px 4px;min-height:44px;text-decoration:none;border:0;background:transparent;font-size:.8rem;color:var(--muted)}
.ios-app .post-order-toolbar .post-order-status:empty{display:none}
@media(hover:hover){.ios-document-entry .document-title:hover::after{background:color-mix(in srgb,var(--brand) 4%,transparent)}}
.category-heading-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;column-gap:12px;align-items:center;border-radius:22px;background:var(--ios-card)}
.category-heading-row:has(.post-order-toolbar:not([hidden])){grid-template-columns:minmax(0,1fr) 44px auto auto}
.category-heading-row .accordion-header{position:relative;z-index:0;display:grid;grid-template-columns:subgrid;grid-column:1/-1;grid-row:1;min-width:0;border-radius:inherit}
.ios-app .ios-category-board .category-heading-row .accordion-button{display:grid;grid-template-columns:subgrid;grid-column:1/-1}
.category-heading-label{display:flex;align-items:center;gap:12px;min-width:0;grid-column:1}
.category-heading-row .category-document-count{grid-column:-3/-2}
.category-heading-row .ios-category-chevron{grid-column:-2/-1}
.ios-app .ios-category-board .category-heading-row .category-colored-header{background:transparent!important;border-radius:inherit;box-shadow:none}
.ios-app .ios-category-board .category-heading-row .category-colored-header:focus-visible{box-shadow:inset 0 0 0 3px var(--brand,#516ca3)}
.category-heading-row:has(.accordion-button[aria-expanded="true"]){background:var(--bs-tertiary-bg);border-radius:22px 22px 0 0;box-shadow:inset 0 -1px var(--line)}
.ios-category-card .ios-document-entry:first-child{border-top:0}
.ios-app .category-heading-row .post-order-toolbar{grid-column:2;grid-row:1;z-index:1;padding:0}
.ios-app .category-heading-row .category-options{display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--muted)}
.ios-app .category-heading-row .dropdown-menu{padding:6px;border-radius:14px}
.ios-app .category-heading-row [data-order-toggle]{padding:10px 12px;color:var(--ink);font-size:.9rem;border-radius:8px}
.ios-app .category-heading-row [data-order-toggle]:hover{background:var(--bs-tertiary-bg)}
.post-order-status:empty{display:none}
.post-order.is-ordering .category-options{color:var(--brand);background:var(--accent)}
.post-order.is-ordering .post-order-help{padding-top:12px}

.category-icon-preview{display:flex;align-items:center;gap:12px;background:transparent;color:var(--ink)}
