.nb-page,
.nb-home {
  --nb-ink: #283229;
  --nb-muted: #59665a;
  --nb-line: #d5ddd1;
  color: var(--nb-ink);
  min-width: 0;
}
.nb-page {
  display: grid;
  gap: 18px;
}
.nb-home {
  padding: clamp(16px, 3vw, 25px);
  background: #f6f7ee;
  border: 1px solid var(--nb-line);
  border-left: 4px solid #627d57;
}
.nb-home-top,
.nb-section-title,
.nb-card-meta,
.nb-home-schedule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.nb-home-top h2,
.nb-section-title h2 {
  margin: 4px 0;
}
.nb-home-schedule {
  margin: 13px 0 6px;
  padding: 9px 12px;
  background: #edf0cd;
  justify-content: flex-start;
}
.nb-home-schedule > button {
  margin-left: auto;
}
.nb-home-schedule > span,
.nb-home-schedule > small {
  font-size: 12px;
  color: #48583c;
}
.nb-home-latest {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.nb-home-latest button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
  text-align: left;
  color: inherit;
  background: #fff;
  border: 1px solid var(--nb-line);
  cursor: pointer;
}
.nb-home-latest b {
  flex: 1;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.nb-home-latest span {
  font-size: 11px;
  color: var(--nb-muted);
}
.nb-hero {
  padding: clamp(22px, 4vw, 46px);
  background: #283229;
  border-top: 5px solid #e4ee48;
  color: #f7f8e9;
}
.nb-hero-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 36%);
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
}
.nb-hero .t-index {
  color: #d0daa9;
}
.nb-hero h2 {
  font-size: clamp(36px, 6vw, 68px);
  margin: 8px 0;
  line-height: 1.12;
}
.nb-hero h2 span {
  color: #e4ee48;
}
.nb-hero p {
  margin: 8px 0 0;
  color: #e0e6d4;
}
.nb-priority {
  display: grid;
  justify-items: start;
  gap: 7px;
  min-width: 0;
  padding: clamp(15px, 2vw, 22px);
  background: #e8ef56;
  color: #283229;
  border: 1px solid #d0db48;
}
.nb-priority-label {
  font-size: 13px;
  font-weight: 700;
}
.nb-priority strong {
  font-size: clamp(17px, 2vw, 22px);
  overflow-wrap: anywhere;
}
.nb-priority > span:not(.nb-priority-label) {
  font-size: 13px;
}
.nb-priority > .t-button {
  margin-top: 3px;
  color: #fafbee;
  background: #283229;
  border-color: #283229;
}
.nb-priority > .t-button:hover {
  background: #3d4c37;
}
.nb-priority > .t-button:focus-visible {
  outline: 2px solid #283229;
  outline-offset: 2px;
}
.nb-directory {
  background: #f7f8f0;
  border: 1px solid var(--nb-line);
  padding: clamp(15px, 3vw, 28px);
}
.nb-directory-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.nb-directory-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-column: span 2;
  align-items: start;
  gap: 12px;
  min-width: 0;
  min-height: 134px;
  padding: clamp(12px, 1.6vw, 20px);
  border: 1px solid var(--nb-line);
  background: #fff;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.nb-directory-card:nth-last-child(-n + 2) {
  grid-column: span 3;
}
.nb-directory-card:hover {
  background: #f3f6e6;
  border-color: #81936f;
}
.nb-directory-card:focus-visible {
  outline: 2px solid #516944;
  outline-offset: 2px;
}
.nb-directory-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: #e9eee1;
  color: #445c37;
}
.nb-directory-icon svg {
  width: 22px;
  height: 22px;
}
.nb-directory-schedule .nb-directory-icon {
  background: #edf0b7;
  color: #485327;
}
.nb-directory-monthly .nb-directory-icon {
  background: #f2e9d7;
  color: #655233;
}
.nb-directory-album .nb-directory-icon {
  background: #e1edeb;
  color: #345951;
}
.nb-directory-rules .nb-directory-icon {
  background: #e5eae2;
  color: #495f48;
}
.nb-directory-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.nb-directory-meta {
  font-size: 11px;
  color: var(--nb-muted);
}
.nb-directory-copy strong {
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.3;
}
.nb-directory-description {
  font-size: 13px;
  color: var(--nb-muted);
  line-height: 1.5;
}
.nb-directory-copy small {
  font-size: 12px;
  color: #485e3d;
}
.nb-directory-arrow {
  color: #455b3e;
  font-size: 18px;
}
.nb-category-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.nb-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.nb-tabs button {
  border: 1px solid var(--nb-line);
  background: #f8f9f3;
  color: inherit;
  text-align: left;
  padding: 11px 12px;
  font-weight: 700;
  cursor: pointer;
}
.nb-tabs button[aria-pressed='true'] {
  background: #e8ef56;
  border-color: #a9b334;
}
.nb-panel,
.nb-reading {
  background: #fff;
  border: 1px solid var(--nb-line);
  padding: clamp(16px, 3vw, 32px);
  min-width: 0;
}
.nb-section-title {
  margin-bottom: 18px;
}
.nb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 245px), 1fr));
  gap: 14px;
}
.nb-grid-list {
  grid-template-columns: minmax(0, 1fr);
}
.nb-card {
  border: 1px solid var(--nb-line);
  padding: 15px;
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
}
.nb-card.is-current {
  background: #f4f6e4;
  border-left: 4px solid #75883d;
}
.nb-grid-list .nb-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}
.nb-card h3 {
  margin: 7px 0;
  overflow-wrap: anywhere;
}
.nb-card p {
  margin: 6px 0;
  color: var(--nb-muted);
  overflow-wrap: anywhere;
}
.nb-card button {
  justify-self: start;
}
.nb-card-meta,
.nb-card small,
.nb-muted,
.nb-reading-meta {
  color: var(--nb-muted);
  font-size: 13px;
}
.nb-badge {
  padding: 4px 6px;
  background: #e8edd6;
  color: #465638;
}
.nb-cover {
  overflow: hidden;
  aspect-ratio: 16 / 8;
  background: #ebefdf;
}
.nb-cover > div {
  display: grid;
  align-content: center;
  gap: 8px;
  height: 100%;
  padding: 15px;
}
.nb-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nb-cover-monthly img {
  object-fit: contain;
}
.nb-reading > h2 {
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.nb-reading-meta {
  margin-bottom: 20px;
}
.nb-text,
.nb-rule-summary {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.8;
}
.nb-rule-summary {
  background: #eef1e3;
  padding: 12px 16px;
}
.nb-month-cover img,
.nb-practice-image img {
  max-width: min(100%, 760px);
  height: auto;
}
.nb-practice-image {
  margin-inline: 0;
}
.nb-attachments,
.nb-actions,
.nb-fields {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.nb-attachments {
  margin-top: 22px;
}
.nb-attachments h3 {
  flex-basis: 100%;
  margin: 0;
}
.nb-attachments button {
  white-space: normal;
  overflow-wrap: anywhere;
}
.nb-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
  gap: 14px;
}
.nb-gallery figure {
  margin: 0;
  min-width: 0;
}
.nb-gallery button {
  width: 100%;
  border: 0;
  padding: 0;
  background: #edf1e7;
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
}
.nb-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nb-gallery figcaption {
  overflow-wrap: anywhere;
  font-size: 12px;
  padding: 5px 0;
}
.nb-lightbox {
  width: min(900px, 93vw);
  max-height: 91vh;
}
.nb-lightbox::backdrop {
  background: #1b231bd9;
}
.nb-lightbox img {
  display: block;
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
}
.nb-word {
  display: block;
  border: 1px solid var(--nb-line);
  width: 100%;
  height: clamp(460px, 70vh, 850px);
}
.nb-sheet {
  --sc-col: 130px;
  min-width: 0;
}
.nb-sheet .sc-grid-scroll {
  overflow: auto;
}
.nb-panel label {
  display: grid;
  gap: 5px;
  margin: 8px 0;
}
.nb-panel :is(input, textarea, select) {
  width: 100%;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--nb-line);
  color: inherit;
  background: #fbfcf8;
}
.nb-panel textarea {
  resize: vertical;
}
.nb-source-row {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 12px;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--nb-line);
  background: #f6f8ee;
  color: inherit;
  cursor: pointer;
}
.nb-source-row span {
  flex-shrink: 0;
  font-size: 13px;
}
.nb-error {
  color: #8e2e2e;
}
.nb-error:empty {
  display: none;
}
@media (max-width: 1050px) {
  .nb-directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nb-directory-card,
  .nb-directory-card:nth-last-child(-n + 2) {
    grid-column: auto;
  }
}
@media (max-width: 700px) {
  .nb-home-latest {
    grid-template-columns: minmax(0, 1fr);
  }
  .nb-hero-overview,
  .nb-directory-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .nb-directory-card {
    min-height: 0;
  }
  .nb-category-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .nb-category-nav > button {
    justify-self: start;
  }
  .nb-tabs button {
    padding: 8px 9px;
    font-size: 13px;
  }
  .nb-grid-list .nb-card {
    grid-template-columns: minmax(0, 1fr);
  }
}
