/* Kashmir Boat hub: Today strip, tool cards, tool pages, prayer, weather, panels. */
.kb-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--kb-valley); margin: 0 0 4px; }
html[dir=rtl] .kb-eyebrow { letter-spacing: 0; text-transform: none; }

/* Today strip */
.kb-today { background: #fff; border: 1px solid var(--kb-line); border-radius: 18px; padding: 16px 18px; box-shadow: 0 6px 24px -18px rgba(22,59,40,.5); }
.kb-today-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.kb-today-title { margin: 0; font-weight: 700; color: var(--kb-forest); font-size: 15px; }
.kb-today-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kb-today-items a { display: flex; gap: 10px; align-items: center; height: 100%; padding: 10px 12px; border-radius: 12px; background: var(--kb-cream); text-decoration: none; color: var(--kb-forest); }
.kb-today-items a:hover { background: var(--kb-mist); }
.kb-today-items span { display: flex; flex-direction: column; min-width: 0; }
.kb-today-items small { font-size: 12.5px; color: var(--kb-stone); }
.kb-today-items strong { font-size: 15.5px; line-height: 1.3; }
.kb-today-items .kb-tool-ic, .kb-today-items .kb-wx-ic, .kb-today-items .kb-moon { flex: none; color: var(--kb-valley); }
.kb-today-alerts { margin-top: 12px; }
.kb-aq-dot { flex: none; width: 18px; height: 18px; border-radius: 50%; background: #C9C4B8; }

/* District and method switchers */
.kb-dswitch { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; }
.kb .kb-dswitch select { min-height: 40px; width: auto; padding: 7px 34px 7px 12px; font-weight: 600; }
.kb-locate { font-size: 13.5px; }

/* Tool cards */
.kb-tool-groups { display: grid; gap: 30px; }
.kb-group-title { font-family: var(--kb-sans); font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--kb-stone); margin: 0 0 12px; }
html[dir=rtl] .kb-group-title { letter-spacing: 0; text-transform: none; font-size: 16px; }
.kb-tool-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.kb-tool-card { display: flex; gap: 14px; align-items: flex-start; height: 100%; padding: 18px; border-radius: 16px; background: #fff; border: 1px solid var(--kb-line); text-decoration: none; color: var(--kb-forest); transition: border-color .15s, transform .15s, box-shadow .15s; box-sizing: border-box; }
a.kb-tool-card:hover { border-color: var(--kb-valley); transform: translateY(-2px); box-shadow: 0 10px 26px -20px rgba(22,59,40,.7); }
.kb-tool-card-ic { flex: none; width: 50px; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--kb-mist); color: var(--kb-forest); }
.kb-tool-card-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kb-tool-card-body strong { font-family: var(--kb-head); font-size: 19px; line-height: 1.25; }
html[dir=rtl] .kb-tool-card-body strong { line-height: 1.9; font-size: 18px; }
.kb-tool-card-body > span { font-size: 14.5px; line-height: 1.5; color: var(--kb-body); }
.kb-tool-live { font-style: normal; font-size: 13.5px; font-weight: 700; color: var(--kb-valley); margin-top: 4px; }
.kb-tool-soon { font-style: normal; align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--kb-ochre-deep); background: var(--kb-ochre-soft); border-radius: 999px; padding: 2px 10px; margin-top: 6px; }
.kb-tool-card.is-soon { background: #FBFAF6; }
.kb-tool-card.is-soon .kb-tool-card-ic { background: #EFEBE2; color: var(--kb-stone); }
.kb-tc-prayer .kb-tool-card-ic { background: #E7EFE9; }
.kb-tc-weather .kb-tool-card-ic { background: #E6EEF6; color: #2D5C86; }
.kb-tc-blood .kb-tool-card-ic { background: #F7E6E6; color: #A12C2C; }
.kb-tc-emergency .kb-tool-card-ic { background: #F7E6E6; color: #A12C2C; }
.kb-tc-lostfound .kb-tool-card-ic { background: var(--kb-ochre-soft); color: var(--kb-ochre-deep); }
.kb-tc-games .kb-tool-card-ic { background: var(--kb-saffron-soft); color: var(--kb-saffron); }

/* Tool pages */
.kb-tool { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.kb-tool > *, .kb-tool-grid > *, .kb-side > * { min-width: 0; }
.kb-tool-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 18px; align-items: center; }
.kb-tool-head .kb-h1 { margin: 0 0 4px; }
.kb-tool-head .kb-lead { margin: 0; }
.kb-tool-head-ic { width: 64px; height: 64px; border-radius: 18px; background: var(--kb-mist); color: var(--kb-forest); display: flex; align-items: center; justify-content: center; grid-row: span 2; }
.kb-tool-controls { grid-column: 1 / -1; display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.kb-tool-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.kb-side { display: grid; gap: 18px; }
.kb-panel { background: #fff; border: 1px solid var(--kb-line); border-radius: 16px; padding: 20px 22px; }
.kb-panel-head .kb-help { margin-top: -6px; }
.kb-row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.kb-tag-soft { display: inline-block; font-size: 12px; background: var(--kb-ochre-soft); color: var(--kb-ochre-deep); border-radius: 999px; padding: 1px 8px; }
.kb-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 12px 0; }
.kb-dl dt { color: var(--kb-stone); font-size: 14px; }
.kb-dl dd { margin: 0; font-weight: 600; color: var(--kb-forest); }
.kb-dl-row { display: flex; gap: 22px; flex-wrap: wrap; }
.kb-dl-row div { display: flex; flex-direction: column; }
.kb-about-data ul { margin: 0 0 10px; padding-inline-start: 20px; color: var(--kb-body); }
.kb-about-data li { margin-bottom: 6px; }
.kb-big { font-family: var(--kb-head); font-size: 26px; color: var(--kb-forest); margin: 0 0 6px; }

/* Prayer */
.kb-next { font-size: 18px; font-weight: 700; color: var(--kb-forest); background: var(--kb-mist); border-radius: 12px; padding: 10px 14px; margin: 6px 0 14px; }
.kb-next [data-kb-left] { font-weight: 600; color: var(--kb-valley); }
.kb-times { list-style: none; margin: 0 0 12px; padding: 0; }
.kb-times li { display: flex; justify-content: space-between; align-items: center; padding: 11px 6px; border-bottom: 1px solid #EEE9DF; font-size: 17px; }
.kb-times li:last-child { border-bottom: 0; }
.kb-times li span { display: flex; flex-direction: column; color: var(--kb-forest); font-weight: 600; }
.kb-times li small { font-weight: 500; font-size: 13px; color: var(--kb-ochre-deep); }
.kb-times li strong { font-size: 20px; color: var(--kb-forest); font-variant-numeric: tabular-nums; }
.kb-times li.is-next { background: var(--kb-mist); border-radius: 10px; }
.kb-times li.is-muted span, .kb-times li.is-muted strong { color: var(--kb-stone); font-weight: 500; }
.kb-moon-row { display: flex; gap: 14px; align-items: center; }
.kb-moon-name { font-weight: 700; color: var(--kb-forest); margin: 0; font-size: 17px; }
.kb-upcoming { list-style: none; margin: 0 0 8px; padding: 0; }
.kb-upcoming li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid #EEE9DF; }
.kb-upcoming li span, .kb-upcoming li strong { display: flex; flex-direction: column; color: var(--kb-forest); }
.kb-upcoming li strong { text-align: end; font-size: 15px; }
.kb-upcoming small { font-weight: 500; color: var(--kb-stone); font-size: 13px; }
.kb-seg { display: inline-flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.kb-seg a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--kb-line); text-decoration: none; color: var(--kb-forest); font-size: 14px; font-weight: 600; }
.kb-seg a[aria-current] { background: var(--kb-forest); color: #fff; border-color: var(--kb-forest); }
.kb-table-nav { margin: 6px 0 10px; }
.kb-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.kb-table { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.kb-table th, .kb-table td { padding: 8px 10px; text-align: start; border-bottom: 1px solid #EEE9DF; white-space: nowrap; }
.kb-table th { font-size: 13px; color: var(--kb-stone); font-weight: 700; background: #FBFAF6; position: sticky; top: 0; }
.kb-table tr.is-today td { background: var(--kb-mist); font-weight: 700; }
.kb-table .kb-hl { background: var(--kb-ochre-soft); }

/* Weather */
.kb-wx-big { display: flex; gap: 18px; align-items: center; }
.kb-wx-temp { font-family: var(--kb-head); font-size: 56px; line-height: 1; margin: 0; color: var(--kb-forest); }
.kb-wx-cond { margin: 4px 0 0; font-size: 18px; font-weight: 600; color: var(--kb-body); }
.kb-hours { list-style: none; margin: 0; padding: 0 0 6px; display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.kb-hours li { flex: none; width: 64px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 12px; background: var(--kb-cream); font-size: 13px; color: var(--kb-stone); }
.kb-hours strong { font-size: 16px; color: var(--kb-forest); }
.kb-hours small { font-size: 11.5px; color: #3E7CB1; }
.kb-days { list-style: none; margin: 0; padding: 0; }
.kb-days li { display: grid; grid-template-columns: 110px 40px minmax(0, 1fr) 70px 90px; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid #EEE9DF; }
.kb-days li.is-snow { background: #EEF4FA; border-radius: 10px; }
.kb-day-name { font-weight: 700; color: var(--kb-forest); }
.kb-day-cond { color: var(--kb-body); }
.kb-day-precip { color: #3E7CB1; font-size: 14px; }
.kb-days strong { text-align: end; font-size: 17px; color: var(--kb-forest); }
.kb-days strong span { color: var(--kb-stone); font-weight: 500; }
.kb-aq-val { display: flex; align-items: baseline; gap: 10px; margin: 4px 0; }
.kb-aq-val strong { font-family: var(--kb-head); font-size: 44px; line-height: 1; }
.kb-aq-val span { font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.kb-aq-good { background: #2E8B57; } .kb-aq-val.kb-aq-good span { background: #E3F2E8; color: #1E6B3F; }
.kb-aq-ok { background: #8DB33F; } .kb-aq-val.kb-aq-ok span { background: #EEF5DD; color: #4E6B12; }
.kb-aq-moderate { background: #E2B33B; } .kb-aq-val.kb-aq-moderate span { background: #FBF0D5; color: #7A5A0A; }
.kb-aq-poor { background: #E07B2E; } .kb-aq-val.kb-aq-poor span { background: #FBE5D3; color: #8A4310; }
.kb-aq-vpoor { background: #C23B3B; } .kb-aq-val.kb-aq-vpoor span { background: #F7DCDC; color: #8A1F1F; }
.kb-aq-severe { background: #7A1F3D; } .kb-aq-val.kb-aq-severe span { background: #F0D9E1; color: #5E1430; }
.kb-aq-val[class*=kb-aq-] { background: none; }
.kb-quakes { list-style: none; margin: 0 0 8px; padding: 0; }
.kb-quakes li { display: flex; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid #EEE9DF; }
.kb-quakes li > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; color: var(--kb-forest); }
.kb-quakes small { color: var(--kb-stone); font-size: 13px; }
.kb-mag { flex: none; font-weight: 800; font-size: 14px; background: var(--kb-ochre-soft); color: var(--kb-ochre-deep); border-radius: 8px; padding: 4px 8px; }

/* Alerts */
.kb-alert { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; padding: 12px 16px; border-radius: 12px; margin: 0 0 8px; border: 1px solid; font-size: 15px; }
.kb-alert-advisory { background: #EEF4FA; border-color: #BCD3EA; color: #1F4B73; }
.kb-alert-warning { background: var(--kb-ochre-soft); border-color: #E4C9A2; color: #6B4614; }
.kb-alert-danger { background: #FBEDEC; border-color: #E7B7B7; color: #7E1E1E; }
.kb-alert-body { flex-basis: 100%; }
.kb-alert-meta { flex-basis: 100%; font-size: 13px; opacity: .85; }
.kb-alert a { color: inherit; font-weight: 700; }

/* Panels for moderators and organisations */
.kb-account-head .kb-role { display: inline-block; margin: 0 6px 10px 0; font-size: 13px; font-weight: 700; color: var(--kb-saffron); background: var(--kb-saffron-soft); border-radius: 999px; padding: 3px 12px; }
.kb-role-pending { color: var(--kb-ochre-deep) !important; background: var(--kb-ochre-soft) !important; }
.kb-subtabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 16px; }
.kb-subtabs a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--kb-line); text-decoration: none; color: var(--kb-forest); font-weight: 600; font-size: 14.5px; background: #fff; }
.kb-subtabs a[aria-current] { background: var(--kb-valley); border-color: var(--kb-valley); color: #fff; }
.kb-mod-row { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid #EEE9DF; }
.kb-mod-row p { margin: 4px 0; }
.kb-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kb-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px 12px; }
.kb fieldset.kb-field { border: 0; padding: 0; margin: 0 0 14px; }
.kb fieldset.kb-field legend { font-weight: 600; font-size: 15px; color: var(--kb-forest); margin-bottom: 8px; }
.kb-more summary { cursor: pointer; font-weight: 600; color: var(--kb-valley); margin-top: 14px; }
.kb-list { margin: 0 0 8px; padding-inline-start: 20px; }
.kb-narrow { max-width: 760px; }

@media (max-width: 900px) {
	.kb-today-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.kb-tool-grid { grid-template-columns: minmax(0, 1fr); }
	.kb-days li { grid-template-columns: 92px 36px minmax(0, 1fr) 70px; }
	.kb-day-precip { display: none; }
}
@media (max-width: 560px) {
	.kb-today { padding: 14px; border-radius: 16px; }
	.kb-today-items a { padding: 9px 10px; }
	.kb-tool-cards { grid-template-columns: minmax(0, 1fr); }
	.kb-tool-head-ic { width: 52px; height: 52px; }
	.kb-row2 { grid-template-columns: minmax(0, 1fr); }
	.kb-panel { padding: 16px; }
	.kb-days li { grid-template-columns: 84px 34px minmax(0, 1fr) 64px; gap: 6px; font-size: 14.5px; }
	.kb-wx-temp { font-size: 46px; }
}
@media print {
	.kbt-header, .kbt-footer, .kb-tool-controls, .kb-side, .kb-prayer-today, .kb-about-data, .kb-seg, .kb-table-nav a, .kb-alert { display: none !important; }
	.kb-table th { position: static; }
}

/* Emergency */
.kb-sos-big { display: flex; align-items: center; gap: 18px; padding: 16px 22px; border-radius: 16px; background: #A12C2C; color: #fff !important; text-decoration: none; }
.kb-sos-big strong { font-family: var(--kb-head); font-size: 44px; line-height: 1; }
.kb-sos-big span { font-size: 16px; font-weight: 600; }
.kb-sos-big:hover { background: #8A2222; }
.kb-filterbar { display: grid; gap: 10px; }
.kb .kb-search-inline { max-width: 460px; }
.kb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.kb-chip { font: 600 14px/1 var(--kb-sans); padding: 8px 13px; border-radius: 999px; border: 1px solid var(--kb-line); background: #fff; color: var(--kb-forest); cursor: pointer; }
.kb-chip.is-on { background: var(--kb-forest); border-color: var(--kb-forest); color: #fff; }
.kb-contact-group[hidden], .kb-contact[hidden] { display: none; }
.kb-contacts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.kb-contact { background: #fff; border: 1px solid var(--kb-line); border-radius: 14px; padding: 14px 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: start; }
.kb-contact-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kb-contact-main strong { color: var(--kb-forest); font-size: 16.5px; }
.kb-contact-main small { color: var(--kb-stone); font-size: 13.5px; }
.kb-contact-note { color: var(--kb-body) !important; }
.kb-contact-calls { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.kb-call { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 14px; border-radius: 10px; background: var(--kb-forest); color: #fff !important; font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kb-call:hover { background: var(--kb-valley); }
.kb-contact-report { grid-column: 1 / -1; font-size: 13px; }
.kb-contact-report summary { cursor: pointer; color: var(--kb-stone); }
.kb-chk { color: var(--kb-valley); }
.kb-chk-old { color: var(--kb-ochre-deep); }
.kb-chk-no { color: var(--kb-stone); font-style: italic; }

/* Blood */
.kb-groups { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.kb-groups li { background: #FBEDEC; border-radius: 12px; padding: 10px 6px; text-align: center; display: flex; flex-direction: column; }
.kb-groups strong { color: #A12C2C; font-size: 18px; }
.kb-groups span { font-size: 22px; font-weight: 700; color: var(--kb-forest); }
.kb-reqs { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 12px; }
.kb-req { background: #fff; border: 1px solid #E7B7B7; border-inline-start: 6px solid #A12C2C; border-radius: 14px; padding: 14px 16px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; }
.kb-req.is-closed { border-color: var(--kb-line); opacity: .75; }
.kb-req-group { width: 58px; height: 58px; border-radius: 50%; background: #A12C2C; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 19px; }
.kb-req-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.kb-req-body strong { color: var(--kb-forest); font-size: 17px; }
.kb-req-body small { color: var(--kb-stone); font-size: 13.5px; }
.kb-req-body p { margin: 4px 0; }
.kb-req-contact { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 600; color: var(--kb-forest); }
.kb-req .kb-contact-report { grid-column: 2 / -1; }
.kb-camps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.kb-camps li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.kb-camps li > div { display: flex; flex-direction: column; gap: 2px; }
.kb-camps small { color: var(--kb-stone); }
.kb-camp-date { margin: 0; width: 60px; text-align: center; background: var(--kb-mist); border-radius: 12px; padding: 6px; color: var(--kb-forest); font-weight: 700; text-transform: uppercase; font-size: 13px; }
.kb-camp-date strong { display: block; font-size: 24px; line-height: 1.1; }

/* Winter */
.kb-big-stat { font-size: 18px; color: var(--kb-body); margin: 0; }
.kb-big-stat strong { font-family: var(--kb-head); font-size: 34px; color: var(--kb-forest); }
.kb-steps-sm { margin: 0; padding-inline-start: 20px; color: var(--kb-body); }
.kb-steps-sm li { margin-bottom: 6px; }
.kb-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.kb-point { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; }
.kb-point.is-near { border-color: var(--kb-valley); }
.kb-point-main { display: flex; flex-direction: column; gap: 3px; }
.kb-point-main strong { color: var(--kb-forest); font-size: 17.5px; }
.kb-point-main small { color: var(--kb-stone); }
.kb-needs { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; color: var(--kb-body); }
.kb-needs span { background: #E6EEF6; color: #1F4B73; border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 600; }
.kb-point-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; min-width: 200px; }
.kb-pledge summary { list-style: none; cursor: pointer; }
.kb-pledge summary::-webkit-details-marker { display: none; }
.kb-pledge[open] { grid-column: 1 / -1; }
.kb-pledge form { margin-top: 12px; }
@media (max-width: 700px) {
	.kb-groups { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.kb-req { grid-template-columns: auto minmax(0, 1fr); }
	.kb-req > .kb-actions { grid-column: 1 / -1; }
	.kb-point { grid-template-columns: minmax(0, 1fr); }
	.kb-camps li { grid-template-columns: auto minmax(0, 1fr); }
	.kb-contacts { grid-template-columns: minmax(0, 1fr); }
	.kb-sos-big strong { font-size: 36px; }
}

/* Newsroom, exams */
.kb-news { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.kb-news-item { display: flex; flex-direction: column; gap: 3px; padding: 12px 0; border-bottom: 1px solid var(--kb-line); min-width: 0; }
.kb-news-item:last-child { border-bottom: 0; }
.kb-news-item a { color: var(--kb-forest); font-weight: 600; text-decoration: none; line-height: 1.4; overflow-wrap: anywhere; }
.kb-news-item a:hover { text-decoration: underline; }
.kb-news-item small { color: var(--kb-stone); font-size: 13px; }
.kb-news-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.kb-news-tags a, .kb-news-tags span { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--kb-mist); color: var(--kb-valley); }
.kb-news-search { display: flex; gap: 8px; margin: 0 0 14px; }
.kb-news-search input { flex: 1; min-width: 0; }
.kb-board { align-self: flex-start; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #8A5A20; background: #F6EBDC; padding: 2px 8px; border-radius: 6px; }
.kb-official { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.kb-official li { display: flex; flex-direction: column; padding: 10px 12px; border: 1px solid var(--kb-line); border-radius: 12px; background: #fff; }
.kb-official a { font-weight: 600; color: var(--kb-forest); }
.kb-official small { color: var(--kb-stone); font-size: 12.5px; }
.kb-exams .kb-chips { margin: 0 0 16px; }
.kb-exams .kb-chip { text-decoration: none; }
.kb-exam-review { border: 1px solid var(--kb-line); border-radius: 14px; padding: 12px 14px; margin: 0 0 12px; background: var(--kb-cream); }

/* Roads, shutdowns, outages */
.kb-roads, .kb-sched, .kb-outages { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.kb-road { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--kb-line); border-radius: 12px; background: #fff; }
.kb-road div { display: flex; flex-direction: column; min-width: 0; }
.kb-road small { color: var(--kb-stone); font-size: 13px; }
.kb-road-dot { flex: none; width: 12px; height: 12px; margin-top: 5px; border-radius: 50%; background: #C9C4B8; }
.kb-road-open .kb-road-dot { background: #2E8B57; }
.kb-road-oneway .kb-road-dot { background: #B5803F; }
.kb-road-closed .kb-road-dot { background: #B3261E; }
.kb-road-edit { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--kb-line); }
.kb-sched li, .kb-outages li { padding: 10px 12px; border: 1px solid var(--kb-line); border-radius: 12px; background: #fff; }
.kb-sched-kind { display: inline-block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 8px; border-radius: 6px; margin-inline-end: 6px; }
.kb-k-power { background: #FFF1CC; color: #7A5600; }
.kb-k-water { background: #DDEEFF; color: #1F4E7A; }
.kb-k-traffic { background: #F3E3EF; color: #7B4E8B; }

/* Textbooks */
.kb-book-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.kb-book-filters input[type=search] { flex: 1 1 200px; min-width: 0; }
.kb-book-filters select { flex: 0 1 180px; min-width: 0; }
.kb-books { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.kb-book-card { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--kb-line); border-radius: 14px; overflow: hidden; background: #fff; text-decoration: none; color: var(--kb-ink, #222); }
.kb-book-card:hover { border-color: var(--kb-valley); }
.kb-book-img { aspect-ratio: 4 / 3; background: var(--kb-cream); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.kb-book-img img { width: 100%; height: 100%; object-fit: cover; }
.kb-book-ph { color: var(--kb-valley); opacity: .6; }
.kb-book-body { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; min-width: 0; }
.kb-book-body strong { color: var(--kb-forest); line-height: 1.3; }
.kb-book-body small { color: var(--kb-stone); font-size: 13px; }
.kb-book-price { font-style: normal; font-weight: 700; color: var(--kb-forest); font-size: 17px; margin: 4px 0 0; }
.kb-book-price.is-free { color: #2E7D4F; }
.kb-book-price.is-wanted { color: #7B4E8B; }
.kb-book-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.kb-book-photos img { width: 100%; height: auto; border-radius: 10px; display: block; }
.kb-radio-seg { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.kb-radio-seg label { display: flex; gap: 6px; align-items: center; padding: 8px 12px; border: 1px solid var(--kb-line); border-radius: 10px; background: #fff; cursor: pointer; }
.kb-radio-seg label:has(input:checked) { border-color: var(--kb-valley); background: var(--kb-mist); }

/* Directory */
.kb-services { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.kb-service { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--kb-line); border-radius: 14px; background: #fff; }
.kb-service-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: inherit; }
.kb-service-main strong { color: var(--kb-forest); }
.kb-service-main small { color: var(--kb-stone); font-size: 13px; }
.kb-service .kb-call { flex: none; }
.kb-stars { color: #C8901E; letter-spacing: 1px; font-size: 15px; }
.kb-stars-off { color: #DDD6C8; }
.kb-reviews { list-style: none; margin: 0; padding: 0; }
.kb-reviews li { padding: 10px 0; border-bottom: 1px solid var(--kb-line); }
.kb-reviews p { margin: 4px 0 0; }
.kb-rate { border: 0; padding: 0; margin: 0 0 10px; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.kb-rate legend { width: 100%; font-weight: 600; margin-bottom: 4px; }
.kb-rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kb-rate label { font-size: 30px; line-height: 1; color: #DDD6C8; cursor: pointer; padding: 2px; }
.kb-rate input:checked ~ label, .kb-rate label:hover, .kb-rate label:hover ~ label { color: #C8901E; }
.kb-rate input:focus-visible + label { outline: 2px solid var(--kb-valley); border-radius: 4px; }
@media (max-width: 600px) {
	.kb-road-edit { grid-template-columns: minmax(0, 1fr); }
	.kb-books { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.kb-book-filters select { flex: 1 1 45%; }
}
.kb-sched li { display: flex; gap: 10px; align-items: flex-start; }
.kb-sched li div { display: flex; flex-direction: column; min-width: 0; }
.kb-sched small, .kb-outages small { color: var(--kb-stone); font-size: 13px; }
.kb-outages li { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.kb-outages small { flex-basis: 100%; }
