/* Shared, full-width navigation and borderless journal lists. */
html { scrollbar-gutter: stable; }
body { font-size: 20px; }
.shell { width: 100%; max-width: none; padding-left: 28px; padding-right: 28px; }
.site-header, .home-view .site-header {
  display: flex; height: auto; min-height: 104px; padding-top: 24px; padding-bottom: 24px;
  gap: 0; flex-wrap: nowrap; justify-content: flex-start;
}
.site-header nav.header-summary {
  display: flex; width: 100%; height: auto; margin: 0; padding: 0;
  align-items: baseline; justify-content: flex-start; gap: 36px; flex-wrap: wrap;
}
.header-counts { display: flex; gap: 36px; margin: 0; flex-wrap: wrap; }
.header-count { flex-direction: row; align-items: baseline; gap: 8px; font-size: 26px; }
.header-count dt, .header-count dd {
  color: #222222; font-family: inherit; font-size: inherit; line-height: 1.2;
  letter-spacing: -.4px; white-space: nowrap;
}
.header-count dt { font-weight: 600; }
.header-count dd { font-weight: 750; }
.site-header .header-count a { display: inline; height: auto; padding: 6px 0; }
.site-header nav a[aria-current=page]:after { display: none; }
.site-header .header-count a[aria-current=page] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; }
.site-header .header-editor { display: inline; height: auto; font-size: 20px; padding: 6px 0; }
.page-heading { padding: 48px 0 34px; margin: 0; border: 0; }
.page-heading h1 { font-size: clamp(56px, 6.4vw, 90px); line-height: 1.04; margin: 0; }
.page-intro { font-size: 22px; }
.eyebrow { font-size: 16px; }
.text-link, .back-link, .button { font-size: 18px; }
.bucket-controls { border: 0; padding: 0; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.segmented button { font-size: 18px; padding: 14px 20px; }
.filters { gap: 12px; flex-wrap: wrap; }
.filters input, .filters select { height: 52px; font-size: 18px; padding: 0 14px; }
.search-field input { width: 260px; }
.list-region { width: 100%; min-width: 0; }
.scroll-rail { width: 100%; height: 18px; overflow-x: scroll; overflow-y: hidden; margin-bottom: 12px; }
.scroll-track { height: 1px; }
.list-viewport { width: 100%; max-height: 1080px; overflow: auto; scrollbar-gutter: stable; }
.list-viewport, .scroll-rail { scrollbar-color: auto; scrollbar-width: auto; }
.list-viewport::-webkit-scrollbar, .scroll-rail::-webkit-scrollbar { width: 12px; height: 12px; }
.list-viewport::-webkit-scrollbar-track, .scroll-rail::-webkit-scrollbar-track { background: #eeeeee; }
.list-viewport::-webkit-scrollbar-thumb, .scroll-rail::-webkit-scrollbar-thumb { background: #777777; border: 2px solid #eeeeee; border-radius: 8px; }
.bucket-table, .writing-table {
  display: table; width: 100%; border-collapse: separate; border-spacing: 0;
  table-layout: fixed; text-align: left; border: 0; background: transparent;
}
.bucket-table { min-width: 1830px; }
.bucket-table thead, .writing-table thead {
  display: table-header-group; position: static; width: auto; height: auto;
  overflow: visible; clip: auto;
}
.bucket-table tbody, .writing-table tbody { display: table-row-group; }
.bucket-table tr, .writing-table tr { display: table-row; border: 0; box-shadow: none; background: transparent; padding: 0; }
.bucket-table th, .writing-table th {
  position: sticky; top: 0; z-index: 1; background: #ffffff; background-image: none;
  border: 0; border-bottom: 4px solid #171717; padding: 18px 16px;
  font-size: 17px; line-height: 1.4; letter-spacing: 0; color: #333333; vertical-align: bottom;
}
.bucket-table th:first-child { width: 70px; padding-left: 0; }
.bucket-table th:nth-child(2) { width: auto; }
.bucket-table th:nth-child(n+3):nth-child(-n+6) { width: 192px; }
.bucket-table th:nth-child(7) { width: 340px; }
.bucket-table th:last-child { width: 90px; padding-right: 0; }
.bucket-table td, .writing-table td {
  display: table-cell; padding: 26px 16px; border: 0; vertical-align: top;
  background: transparent; box-shadow: none;
}
.bucket-table tr:hover td, .writing-table tr:hover td { background: transparent; }
.bucket-table .item-id { padding: 28px 16px 26px 0; font-size: 16px; letter-spacing: 0; }
.bucket-table .activity { padding: 26px 24px 26px 16px; border: 0; margin: 0; }
.activity strong { font-size: 22px; line-height: 1.4; }
.activity p { font-size: 17px; }
.bucket-table td:before { display: none; }
.rating { max-width: none; }
.rating-icons { display: block; font-size: 16px; white-space: nowrap; overflow-wrap: normal; word-break: normal; line-height: 1.4; }
.rating-number, .unrated { font-size: 16px; }
.bucket-table .tag-cell { padding: 26px 16px; }
.tag { font-size: 14px; padding: 4px 0; border: 0; background: transparent; }
.tag:not(:last-child):after { content: ','; }
.tags { gap: 4px 8px; }
.album-link { font-size: 18px; text-decoration: underline; text-underline-offset: 4px; }
.bucket-table .album-cell { padding-right: 0; }
.writing-table th:first-child { width: 220px; padding-left: 0; }
.writing-table th:last-child { text-align: right; padding-right: 0; }
.writing-table .writing-date { padding: 34px 24px 34px 0; font-size: 18px; line-height: 1.5; color: #626262; }
.writing-table .writing-title { text-align: right; padding: 28px 32px 28px 28px; }
.writing-title h2 { margin: 0; font-size: clamp(30px, 3vw, 46px); line-height: 1.15; font-weight: 750; overflow-wrap: anywhere; }
.writing-title a { display: block; }
.writing-title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.reading-page { max-width: 1100px; margin-left: 0; }
.reading-header h1 { font-size: clamp(48px, 5.5vw, 76px); }
.reading-header .eyebrow, .reading-header .tag, .sample-label { font-size: 16px; }
.reading-body, .poem .reading-body { max-width: 900px; font-size: 22px; }
.site-footer { justify-content: flex-start; gap: 22px; font-size: 34px; font-weight: 800; line-height: 1.1; letter-spacing: -1px; }
.site-footer .footer-wordmark, #footer-year { font: inherit; letter-spacing: inherit; color: #333333; }
.empty-state { border: 0; }
.empty-state p, .error-message, .loading { font-size: 20px; }
@media (max-width: 760px) {
  .shell { padding-left: 16px; padding-right: 16px; }
  .site-header, .home-view .site-header { min-height: 104px; padding: 24px 16px; }
  .site-header nav.header-summary { gap: 18px 24px; }
  .header-counts { gap: 20px; }
  .header-count { font-size: 22px; gap: 6px; }
  .site-header .header-editor { font-size: 18px; }
  .page-heading { padding: 36px 0 30px; }
  .page-heading h1 { font-size: clamp(46px, 9vw, 68px); }
  .filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
  .filters input, .filters select { font-size: 17px; width: 100%; padding: 0 10px; }
  .writing-table th:first-child { width: 120px; }
  .writing-table .writing-date { font-size: 16px; padding-right: 16px; }
  .writing-table .writing-title { padding-left: 8px; padding-right: 20px; }
  .writing-title h2 { font-size: clamp(27px, 5vw, 36px); }
  .reading-body, .poem .reading-html { scrollbar-gutter: stable; }
body { font-size: 20px; }
  .site-footer { gap: 18px; font-size: 30px; }
}
@media (max-width: 380px) {
  .segmented button { font-size: 16px; padding: 12px 14px; }
}

/* Home link replaces the footer; each public route shares this header. */
.site-header, .home-view .site-header { gap: 28px; }
.site-header nav.header-summary { flex: 1; width: auto; min-width: 0; }
.header-home {
  flex-shrink: 0; margin-left: auto; white-space: nowrap;
  font-size: 34px; font-weight: 800; letter-spacing: -1px; line-height: 1.2;
}
.header-home a:hover { text-decoration: underline; text-underline-offset: 6px; }
#site-year { margin-left: 12px; }
.writing-table th { padding-top: 0; padding-bottom: 0; height: 4px; line-height: 0; }
body:not(.home-view) #main { padding-bottom: 48px; }
@media (max-width: 760px) {
  .site-header, .home-view .site-header { align-items: flex-start; gap: 20px; }
  .header-home { font-size: 24px; padding-top: 2px; }
  #site-year { margin-left: 6px; }
  .site-header nav.header-summary { gap: 16px; }
  .header-counts { gap: 16px 20px; }
}
@media (max-width: 380px) {
  .header-home { font-size: 22px; }
  .header-count { font-size: 20px; }
}

/* Consistent type, understated links, and high-contrast record numbers. */
.site-header .header-editor { font-size: 26px; font-weight: 600; line-height: 1.2; letter-spacing: -.4px; text-decoration: none; }
.site-header .header-editor:hover { text-decoration: underline; text-underline-offset: 7px; }
.writing-table .writing-date { font-weight: 700; }
.bucket-table .item-id { font-family: inherit; font-size: 22px; line-height: 1.4; padding-top: 26px; }
.id-badge { display: inline-block; color: #ffffff; background: #171717; font-weight: 750; padding: 0 5px; line-height: 1.4; }
.bucket-table .tag, .bucket-table .unrated { color: #626262; font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1.5; }
.bucket-table .tag { padding-top: 0; padding-bottom: 0; }
.album-page { padding-top: 36px; }
.album-page .page-heading { padding-top: 24px; }
.album-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; border-top: 4px solid #171717; padding-top: 28px; }
.album-photo { display: block; background: #f3f3f3; }
.album-photo img { display: block; width: 100%; height: 320px; object-fit: cover; }
.album-empty { border-top: 4px solid #171717; padding: 28px 0; color: #626262; }
.photo-viewer { width: min(1200px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 16px; border: 0; background: #ffffff; }
.photo-viewer::backdrop { background: #111111dd; }
.photo-viewer img { display: block; max-width: 100%; max-height: calc(100dvh - 135px); object-fit: contain; margin: auto; }
.photo-viewer .viewer-controls { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; }
.photo-viewer button { background: white; border: 1px solid #c6c6c6; padding: 10px 14px; font-size: 18px; font-weight: 700; }
@media(max-width: 1000px) { .album-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media(max-width: 760px) { .site-header .header-editor { font-size: 22px; } .album-photo img { height: 240px; } }
@media(max-width: 500px) { .album-gallery { grid-template-columns: 1fr; } }
@media(max-width: 380px) { .site-header .header-editor { font-size: 20px; } }

/* Completed activity descriptions retain their layout with a clear strike. */
.bucket-table .activity .completed-activity { text-decoration-line: line-through; text-decoration-thickness: 2px; }
