/* A reading-first news board using the existing Begins typefaces and palette. */
.news-board-page {
  --board-ink: #23251e;
  --board-muted: #697064;
  --board-paper: #fffefa;
  --board-rule: #e1e2d8;
  --board-accent: #ffd24c;
}

html.begins-cartoon body.news-board-page main { background: #faf9f3; color: var(--board-ink); }
html.begins-cartoon body.news-board-page main .wrap { width: calc(100% - 64px); max-width: 1120px; }
.board-masthead { padding-block: 23px 32px; border-bottom: 1px solid var(--board-rule); background: #fffdf5; }
.board-masthead .breadcrumb { display: flex; align-items: center; gap: 9px; margin: 0 0 23px; color: #74796f; font-size: 12px; }
.board-masthead .breadcrumb a:hover { text-decoration: underline; }
.board-masthead .breadcrumb [aria-current] { color: #444d3e; }
.board-masthead-copy { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.board-eyebrow { margin: 0 0 7px; color: #636c54; font-size: 10px; font-weight: 750; letter-spacing: .15em; line-height: 1.4; }
.board-masthead h1 { margin: 0; font-family: var(--begins-ui-font, "BeginsUI", sans-serif); font-size: 36px; font-weight: 800; line-height: 1.25; letter-spacing: -.055em; }
.board-description { margin: 0 0 2px; color: #68715f; font-size: 14px; line-height: 1.75; text-align: right; }
.news-board-page .board-content { min-height: 510px; padding-block: 28px 64px; scroll-margin-top: 94px; }

.board-feedback:has(#board-status:empty):has([data-board-retry][hidden]),
#board-status:empty { display: none; }
.board-feedback { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 18px; color: var(--board-muted); font-size: 14px; }
#board-status { margin: 0; }

.board-tabs { display: flex; align-items: stretch; gap: 4px; padding: 5px; border: 1px solid #d5d8cb; border-radius: 7px; background: #f1f2ea; }
.board-tabs a { display: grid; place-items: center; flex: 1; min-height: 48px; padding: 10px 12px; border: 1px solid transparent; border-radius: 4px; color: #606859; font-size: 15px; font-weight: 650; line-height: 1.5; white-space: nowrap; }
.board-tabs a:hover { color: var(--board-ink); background: #e8ebdf; }
.board-tabs a[aria-current="page"] { background: var(--board-accent); border-color: #34392c; color: #24291d; font-weight: 800; box-shadow: 0 2px 0 #34392c; }

.board-toolbar, .board-list-heading, .board-search, .board-search-field { display: flex; align-items: center; }
.board-toolbar { justify-content: space-between; gap: 16px 24px; margin: 32px 0 18px; }
.board-list-heading { flex-wrap: wrap; align-items: baseline; gap: 6px 10px; min-width: 0; }
.board-list-heading h2, .board-fallback > h2 { margin: 0; font-size: 21px; font-weight: 750; line-height: 1.4; letter-spacing: -.04em; }
#board-result-count, .board-post-date, .board-detail-meta { color: var(--board-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.board-search { gap: 7px; width: min(100%, 328px); flex-shrink: 0; }
.board-search-field { flex: 1; min-width: 0; min-height: 44px; gap: 9px; padding-inline: 12px 4px; border: 1px solid #c6cbbd; border-radius: 5px; background: #fffefa; color: #6f7864; }
.board-search-field svg { flex: none; }
html.begins-cartoon body.news-board-page main #board-query { flex: 1; min-width: 0; width: 100%; height: 42px; padding: 4px 0; border: 0; border-radius: 0; background: transparent; color: var(--board-ink); font-size: 13px; }
#board-query::placeholder { color: #7c8275; opacity: 1; }
#board-query::-webkit-search-cancel-button { -webkit-appearance: none; }
.board-search-field:focus-within { outline: 3px solid #b9531b; outline-offset: 2px; }
html.begins-cartoon body.news-board-page main #board-query:focus-visible { outline: 0; }
#board-clear { display: grid; place-items: center; flex: none; width: 32px; height: 36px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: #59634e; font-size: 21px; line-height: 1; }
#board-clear:hover { background: #edf1e3; }
.board-search-submit, .board-back { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; gap: 8px; padding: 8px 18px; border: 1px solid #34392c; border-radius: 5px; background: #343e2d; color: #fffefa; font-size: 14px; font-weight: 700; white-space: nowrap; }
.board-search-submit:hover { background: #20291a; }

.board-columns, .board-post-link { display: grid; grid-template-columns: 105px minmax(0, 1fr) 100px 16px; align-items: center; gap: 16px; padding-inline: 22px; }
.board-columns { min-height: 44px; border-top: 2px solid #34392c; border-bottom: 1px solid var(--board-rule); background: #f0f2e9; color: #626c57; font-size: 12px; font-weight: 600; }
.board-columns > :nth-child(3) { text-align: right; }
.board-posts { margin: 0; padding: 0; list-style: none; }
.board-row { margin: 0; border-bottom: 1px solid var(--board-rule); background: var(--board-paper); }
.board-row:has(.board-pin) { background: #fff8df; box-shadow: inset 3px 0 #e6ae28; }
.board-post-link { min-height: 72px; padding-block: 16px; }
.board-post-link:hover, .board-post-link:focus-visible { background: #f2f5e9; }
.board-row:has(.board-pin) .board-post-link:hover { background: #fff0bd; }
.board-kind, .board-pin { display: inline-flex; align-items: center; justify-content: center; justify-self: start; width: fit-content; border-radius: 4px; font-size: 11px; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.board-kind { padding: 4px 9px; border: 1px solid #e2d9bc; background: #f8f2df; color: #75602d; }
.board-kind[data-kind="update"] { border-color: #cedde0; background: #edf4f4; color: #456772; }
.board-kind[data-kind="devnote"] { border-color: #d8decb; background: #eef2e4; color: #53673d; }
.board-pin { margin-inline-end: 8px; padding: 2px 6px; background: #3f5032; color: #fffefa; vertical-align: 2px; }
.board-post-copy { min-width: 0; color: var(--board-ink); overflow-wrap: anywhere; }
.board-post-copy strong { font-size: 15px; font-weight: 650; line-height: 1.65; letter-spacing: -.025em; }
.board-row:has(.board-pin) strong { font-weight: 750; }
.board-post-copy small { display: block; margin-top: 3px; color: var(--board-muted); font-size: 13px; line-height: 1.65; }
.board-post-link:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.board-post-date, .board-post-arrow { justify-self: end; white-space: nowrap; }
.board-post-arrow { color: #89937e; font-size: 20px; line-height: 1; }

.board-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 28px; }
.board-pagination:empty { display: none; }
.board-pagination :is(a, button, [aria-current="page"]) { display: inline-grid; place-items: center; min-width: 40px; min-height: 40px; padding: 6px 10px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: #657059; font: inherit; font-size: 14px; }
.board-pagination [aria-current="page"] { border-color: #d1d8c3; background: #eaf0de; color: #304a22; font-weight: 750; }
.board-pagination :is(a, button):hover:not([aria-current="page"]):not(:disabled) { background: #eef0e5; }
.board-pagination :disabled, .board-pagination [aria-disabled="true"] { color: #92998a; cursor: default; }
.board-empty { padding: 58px 20px; border-bottom: 1px solid var(--board-rule); background: var(--board-paper); text-align: center; }
.board-empty h3 { margin: 0; font-size: 18px; letter-spacing: -.025em; }
.board-empty p { margin: 7px 0; color: var(--board-muted); font-size: 14px; overflow-wrap: anywhere; }
.board-text-action { min-height: 40px; padding: 7px 2px; border: 0; background: transparent; color: #415d31; font-size: 14px; font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }

.board-detail { margin-top: 30px; border: 1px solid var(--board-rule); border-top: 2px solid #34392c; background: var(--board-paper); }
.board-detail-header, .board-detail-body, .board-detail-footer { padding-inline: clamp(22px, 4.2vw, 50px); }
.board-detail-header { padding-block: 31px 26px; border-bottom: 1px solid var(--board-rule); background: #f8f9f1; }
.board-detail-header h2 { margin: 13px 0 13px; max-width: 36em; font-size: clamp(23px, 3vw, 31px); font-weight: 750; line-height: 1.5; letter-spacing: -.045em; overflow-wrap: anywhere; }
.board-detail-body { min-height: 240px; padding-block: 35px 45px; color: #3b4434; font-size: 16px; line-height: 1.95; overflow-wrap: anywhere; }
.board-detail-body > * { max-width: 78ch; }
.board-detail-body :is(p, ul, ol) { margin-block: 0 1.15em; }
.board-detail-body :is(ul, ol) { padding-inline-start: 1.45em; }
.board-detail-body li + li { margin-top: .4em; }
.board-detail-body :is(h3, h4) { margin-block: 1.6em .5em; font-size: 1.12em; line-height: 1.5; }
.board-detail-body > :first-child { margin-top: 0; }
.board-detail-body > :last-child { margin-bottom: 0; }
.board-detail-body a:not(.button) { color: #345d30; text-decoration: underline; text-underline-offset: 4px; }
.board-detail-footer { display: flex; justify-content: center; padding-block: 22px; border-top: 1px solid var(--board-rule); }
.board-back { min-width: 130px; border-color: #bcc6af; background: #fffefa; color: #3b5030; }
.board-back:hover { background: #edf2e4; border-color: #70825e; }
.board-related { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px 24px; margin-top: 28px; }
.board-related a { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; color: #6c7562; font-size: 12px; }
.board-related a:hover { color: #344b26; text-decoration: underline; text-underline-offset: 4px; }
.board-fallback .news-index { margin-top: 14px; }

@media (max-width: 650px) {
  html.begins-cartoon body.news-board-page main .wrap { width: calc(100% - 32px); }
  .board-masthead { padding-block: 19px 23px; }
  .board-masthead .breadcrumb { margin-bottom: 19px; }
  .board-masthead-copy { display: block; }
  .board-masthead h1 { font-size: 29px; }
  .board-eyebrow { margin-bottom: 5px; font-size: 9px; }
  .board-description { margin-top: 12px; text-align: left; font-size: 13px; }
  .board-description br { display: none; }
  .news-board-page .board-content { min-height: 450px; padding-block: 20px 40px; }
  .board-tabs { gap: 2px; padding: 4px; }
  .board-tabs a { min-height: 44px; padding: 8px 3px; font-size: 13px; }
  .board-toolbar { display: grid; gap: 15px; margin: 25px 0 16px; }
  .board-list-heading h2 { font-size: 20px; }
  .board-search { width: 100%; }
  .board-columns { display: none; }
  .board-posts { border-top: 2px solid #34392c; }
  .board-posts:empty { border: 0; }
  .board-post-link { grid-template-columns: minmax(0, 1fr) max-content; gap: 8px 10px; min-height: 94px; padding: 16px; }
  .board-post-link > .board-kind { grid-area: 1 / 1; }
  .board-post-copy { grid-area: 2 / 1; }
  .board-post-date { grid-area: 1 / 2; font-size: 12px; }
  .board-post-arrow { grid-area: 2 / 2; }
  .board-post-copy strong { font-size: 15px; }
  .board-empty { border-top: 2px solid #34392c; }
  .board-detail { margin-top: 23px; }
  .board-detail-header { padding-block: 24px; }
  .board-detail-body { padding-block: 27px 34px; font-size: 15px; }
  .board-related { gap: 6px 18px; }
}

@media (max-width: 380px) {
  .board-tabs a { font-size: 12px; }
  .board-post-link { padding-inline: 12px; }
  .board-kind { padding-inline: 7px; }
  .board-related { justify-content: flex-start; }
}
