/* Article and Daily templates. Components are scoped to these editorial pages. */
.editorial-head,
.library-head,
.hero-image,
.article-layout,
.article-filters,
.article-library,
#article-empty {
  box-sizing: border-box;
  width: min(1180px, calc(100% - 96px));
  margin-inline: auto;
}
.editorial-head,
.library-head {
  padding-block: 66px 0;
  color: var(--ink, #171b1e);
}
.editorial-head h1,
.library-head h1 {
  font-family: var(--display, "Iowan Old Style", Georgia, serif);
  font-weight: 500;
  font-size: clamp(42px, 4.5vw, 64px);
  line-height: 1.08;
  letter-spacing: -.045em;
  text-align: left;
  text-wrap: balance;
  max-width: 21ch;
  margin: 18px 0 25px;
}
.editorial-head > p:not(.editorial-meta),
.library-head > p:not(.editorial-meta) {
  max-width: 730px;
  margin: 0 0 27px;
  font-family: var(--ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted, #5b656c);
  text-wrap: pretty;
}
.editorial-meta {
  margin: 0;
  color: var(--muted, #5b656c);
  font-family: var(--ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}
.editorial-head > .editorial-meta:first-child,
.library-head > .editorial-meta:first-child {
  color: var(--accent, #136b91);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .035em;
}
.editorial-byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 860px;
}
.editorial-byline [data-save-item] {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid var(--line, #dde1e3);
  border-radius: 3px;
  background: var(--bg, #fff);
  color: var(--ink, #171b1e);
  font-family: var(--ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif);
  font-size: 16px;
  line-height: 1.4;
  cursor: pointer;
}
.editorial-byline [data-save-item][aria-pressed="true"] {
  border-color: var(--accent, #136b91);
  color: var(--accent, #136b91);
}
.hero-image {
  margin-block: 37px 0;
}
.hero-image > a {
  display: block;
  color: inherit;
}
.hero-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 570px;
  object-fit: contain;
  background: #f4f5f5;
  border-radius: 0;
}
.hero-image figcaption {
  margin-top: 12px;
  color: var(--muted, #5b656c);
  font-size: 16px;
  line-height: 1.5;
}
.article-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 710px);
  column-gap: 76px;
  align-items: start;
  justify-content: start;
  margin-block: 58px 90px;
}
.article-outline {
  position: sticky;
  top: 28px;
  min-width: 0;
  padding-top: 7px;
  font-family: var(--ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif);
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted, #5b656c);
}
.article-outline > .editorial-meta:first-child {
  color: var(--ink, #171b1e);
  font-weight: 600;
  margin-bottom: 12px;
}
.article-outline a {
  display: block;
  padding-block: 11px;
  min-height: 44px;
  text-decoration: none;
  line-height: 1.4;
  color: var(--muted, #5b656c);
}
.article-outline a:hover {
  color: var(--accent, #136b91);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.article-outline .meta {
  margin-top: 24px;
}
.article-prose {
  min-width: 0;
  color: var(--ink, #171b1e);
  font-family: var(--ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif);
  font-size: 20px;
  line-height: 1.72;
}
.article-prose p {
  margin: 0 0 1.35em;
  max-width: none;
  font-size: inherit;
  line-height: inherit;
}
.article-prose > p:first-child {
  font-size: 26px;
  line-height: 1.5;
  letter-spacing: -.018em;
}
.article-section {
  margin-bottom: 40px;
  scroll-margin-top: 24px;
}
.article-section h2 {
  margin: 0 0 20px;
  font-family: var(--display, "Iowan Old Style", Georgia, serif);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.article-callout {
  margin: 38px 0 44px;
  padding: 24px 0 24px 25px;
  border-left: 3px solid var(--accent, #136b91);
  background: transparent;
}
.article-callout p {
  margin: 0;
  font-family: var(--display, "Iowan Old Style", Georgia, serif);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -.025em;
}
.article-end {
  border-top: 1px solid var(--line, #dde1e3);
  margin-top: 48px;
  padding-top: 27px;
  font-size: 17px;
  line-height: 1.6;
}
.article-end > .editorial-meta:first-child {
  color: var(--ink, #171b1e);
  font-weight: 600;
  margin-bottom: 16px;
}
.article-end .text-link {
  display: block;
  width: fit-content;
  min-height: 44px;
  padding-block: 9px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--accent, #136b91);
}
.article-end details {
  margin-top: 22px;
  margin-bottom: 18px;
  color: var(--muted, #5b656c);
  font-size: 16px;
  line-height: 1.6;
}
.article-end summary {
  cursor: pointer;
  padding-block: 10px;
  min-height: 44px;
}
.article-end details p {
  margin-block: 12px;
}
.article-filters {
  margin-block: 37px 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line, #dde1e3);
  font-family: var(--ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif);
}
.article-filters label {
  display: inline-block;
  margin-right: 18px;
  font-size: 16px;
  font-weight: 600;
}
.article-filters input {
  width: min(440px, 100%);
  height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--line, #dde1e3);
  border-radius: 3px;
  background: var(--bg, #fff);
  color: var(--ink, #171b1e);
  font: inherit;
  font-size: 17px;
}
.article-filters > div {
  display: grid;
  grid-template-columns: .7fr repeat(4, 1fr);
  gap: 24px;
  margin-top: 25px;
  border-bottom: 1px solid var(--line, #dde1e3);
}
.article-filters button {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 5px;
  min-width: 0;
  min-height: 92px;
  padding: 12px 0 18px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--ink, #171b1e);
  font: inherit;
  font-size: 17px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}
.article-filters button strong {
  font-weight: 600;
}
.article-filters button span {
  color: var(--muted, #5b656c);
  font-size: 16px;
  line-height: 1.4;
}
.article-filters button[aria-pressed="true"] {
  border-bottom-color: var(--accent, #136b91);
  color: var(--accent, #136b91);
}
.article-filters button:hover {
  color: var(--accent, #136b91);
}
.article-library {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 58px 34px;
  margin-block: 0 90px;
}
.article-library article {
  min-width: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.article-library article[hidden] {
  display: none;
}
.article-library a {
  text-decoration: none;
  color: inherit;
}
.article-library h2 a:hover {
  color: var(--accent, #136b91);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
.article-library img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0;
  background: #f4f5f5;
}
.article-feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 43px;
  align-items: center;
}
.article-library h2 {
  font-family: var(--display, "Iowan Old Style", Georgia, serif);
  font-size: 30px;
  line-height: 1.16;
  letter-spacing: -.035em;
  font-weight: 500;
  margin: 12px 0 15px;
  text-wrap: balance;
}
.article-feature h2 {
  font-size: clamp(32px, 3.1vw, 43px);
  line-height: 1.13;
}
.article-tile > div {
  margin-top: 21px;
}
.article-library p:not(.editorial-meta):not(.meta) {
  margin-block: 0 18px;
  color: var(--muted, #5b656c);
  font-size: 18px;
  line-height: 1.6;
}
.article-library .meta {
  font-size: 16px;
  line-height: 1.5;
}
.article-library .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 9px;
  color: var(--accent, #136b91);
  font-size: 17px;
  line-height: 1.5;
}
#article-empty {
  margin-bottom: 80px;
  font-size: 18px;
  line-height: 1.6;
}
.editorial-head a:focus-visible,
.article-layout a:focus-visible,
.hero-image a:focus-visible,
.article-library a:focus-visible,
.article-filters :focus-visible,
.article-end summary:focus-visible {
  outline: 3px solid var(--accent, #136b91);
  outline-offset: 5px;
}
@media (max-width: 1000px) {
  .article-layout { grid-template-columns: 170px minmax(0, 1fr); gap: 40px; }
  .article-filters > div { gap: 14px; grid-template-columns: .6fr repeat(4, 1fr); }
  .article-library { gap: 40px 25px; }
  .article-feature { gap: 30px; }
  .article-library h2 { font-size: 28px; }
  .article-feature h2 { font-size: 36px; }
}
@media (max-width: 760px) {
  .editorial-head,
  .library-head,
  .hero-image,
  .article-layout,
  .article-filters,
  .article-library,
  #article-empty { width: calc(100% - 40px); }
  .editorial-head,
  .library-head { padding-top: 33px; }
  .editorial-head h1,
  .library-head h1 { margin: 14px 0 18px; font-size: clamp(39px, 10vw, 52px); line-height: 1.08; letter-spacing: -.045em; }
  .editorial-head > p:not(.editorial-meta),
  .library-head > p:not(.editorial-meta) { font-size: 19px; line-height: 1.48; margin-bottom: 20px; }
  .hero-image { margin-top: 25px; }
  .hero-image img { max-height: none; }
  .hero-image figcaption { margin-top: 9px; font-size: 16px; line-height: 1.4; }
  .article-layout { display: flex; flex-direction: column; gap: 25px; margin-block: 28px 60px; }
  .daily-reading .article-outline { order: 2; margin-top: 10px; }
  .article-outline { position: static; width: 100%; border-bottom: 1px solid var(--line, #dde1e3); padding: 0 0 18px; }
  .article-outline > .editorial-meta:first-child { margin-bottom: 8px; }
  .article-outline a { display: inline-block; padding: 8px 15px 8px 0; }
  .article-outline > p:not(.editorial-meta) { margin: 5px 0; }
  .article-outline .meta { margin-top: 8px; }
  .article-prose { width: 100%; font-size: 18px; line-height: 1.7; }
  .article-prose > p:first-child { font-size: 22px; line-height: 1.5; }
  .article-section { margin-bottom: 33px; }
  .article-section h2 { font-size: 30px; margin-bottom: 17px; }
  .article-callout { margin-block: 29px 34px; padding: 17px 0 17px 19px; }
  .article-callout p { font-size: 26px; line-height: 1.35; }
  .article-end { margin-top: 33px; padding-top: 23px; }
  .article-filters { margin-block: 28px 30px; }
  .article-filters label { display: block; margin: 0 0 10px; }
  .article-filters input { width: 100%; }
  .article-filters > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; margin-top: 17px; }
  .article-filters button { min-height: 82px; padding-block: 11px; }
  .article-filters button:first-child { grid-column: 1 / -1; min-height: 44px; padding-block: 9px; }
  .article-library { grid-template-columns: 1fr; gap: 37px; margin-bottom: 60px; }
  .article-feature { display: block; }
  .article-feature > div { margin-top: 21px; }
  .article-library h2,
  .article-feature h2 { font-size: 32px; line-height: 1.15; }
  .article-library p:not(.editorial-meta):not(.meta) { font-size: 18px; }
}
@media print {
  .article-outline,
  .article-filters,
  .article-end details { display: none; }
  .article-layout { display: block; width: 100%; margin-top: 24px; }
  .hero-image { width: 70%; }
  .article-prose { max-width: 100%; font-size: 12pt; }
}

/* V5: permanent Daily and Journal libraries. No photographic substitute. */
.editorial-library-shell {
  --library-canvas: #f5f6f7;
  --library-paper: #fff;
  --library-ink: #15191d;
  --library-muted: #58656e;
  --library-blue: #257896;
  --library-line: #dce2e5;
  --library-tint: #e6eff3;
  color: var(--library-ink);
  background: var(--library-canvas);
  font-family: var(--ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif);
  padding: 0 0 78px;
}
[data-theme="dark"] .editorial-library-shell {
  --library-canvas: #15191d;
  --library-paper: #20272c;
  --library-ink: #f3f5f6;
  --library-muted: #b2bec6;
  --library-blue: #83c4dd;
  --library-line: #39454d;
  --library-tint: #293d47;
}
.editorial-library-shell * { box-sizing: border-box; }
.editorial-library-shell [hidden] { display: none !important; }
.library-page-width { width: min(1200px, calc(100% - 80px)); margin: 0 auto; }
.editorial-library-shell a { color: inherit; text-decoration: none; }
.editorial-library-shell button,
.editorial-library-shell input,
.editorial-library-shell select { font: inherit; color: inherit; }
.editorial-library-shell button { cursor: pointer; }
.editorial-library-shell button:disabled { cursor: default; opacity: .45; }
.library-introduction {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 60px;
  padding: 61px 0 39px;
}
.editorial-library-shell .library-kicker {
  margin: 0 0 13px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--library-blue);
  letter-spacing: .01em;
}
.library-introduction h1 {
  font-family: inherit;
  font-size: clamp(46px, 5vw, 68px);
  font-weight: 620;
  letter-spacing: -.052em;
  line-height: 1.06;
  margin: 0;
}
.library-introduction > p {
  margin: 0;
  font-size: 23px;
  line-height: 1.47;
  letter-spacing: -.015em;
  color: var(--library-muted);
}
.library-motif { display: block; width: 160px; height: 130px; color: currentColor; }
.daily-today {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  overflow: hidden;
  border-radius: 16px;
  background: var(--library-paper);
  min-height: 336px;
}
.daily-today-art {
  position: relative;
  overflow: hidden;
  min-height: 336px;
  background: #d7e7ee;
  color: #286e87;
}
.daily-today-number {
  position: absolute;
  inset: auto auto 37px 38px;
  font-size: 118px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.08em;
  font-variant-numeric: tabular-nums;
}
.daily-today-art .daily-today-motif {
  position: absolute;
  width: 76%;
  height: 76%;
  right: -13%;
  top: -7%;
  stroke-width: 1.25;
  transform: rotate(-12deg);
  opacity: .65;
}
.daily-today-art-label { position: absolute; top: 31px; left: 36px; font-size: 16px; font-weight: 500; }
.daily-today-art img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.daily-today-art.has-image > span,
.daily-today-art.has-image > svg { display: none; }
.daily-today-copy { display: flex; flex-direction: column; padding: 40px 44px 32px; }
.daily-today-copy .library-kicker { display: flex; flex-wrap: wrap; gap: 5px 16px; }
.daily-today-copy .library-kicker > span { color: var(--library-muted); font-weight: 400; }
.daily-today-copy h2 {
  font-family: inherit;
  font-weight: 560;
  font-size: clamp(34px, 3vw, 43px);
  line-height: 1.12;
  letter-spacing: -.04em;
  margin: 7px 0 18px;
  text-wrap: balance;
}
.daily-today-copy > p:not(.library-kicker) { margin: 0 0 25px; font-size: 21px; line-height: 1.5; letter-spacing: -.015em; }
.daily-today-end { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 13px; margin-top: auto; padding-top: 11px; font-size: 16px; line-height: 1.5; }
.daily-today-end > span { color: var(--library-muted); }
.daily-today-end strong { color: var(--library-blue); font-weight: 600; }
.daily-today:hover h2 { color: var(--library-blue); }
.daily-archive,
.journal-archive { margin-top: 63px; }
.library-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.library-section-heading h2 { font-family: inherit; font-size: 34px; font-weight: 580; line-height: 1.14; letter-spacing: -.035em; margin: 0; }
.library-section-heading > p { color: var(--library-muted); margin: 0; font-size: 18px; line-height: 1.5; }
.library-controls { display: flex; align-items: end; gap: 22px; }
.library-search { display: block; flex: 1; min-width: 0; }
.library-search > span,
.library-topic-select > span { display: block; font-size: 16px; line-height: 1.4; margin-bottom: 9px; color: var(--library-muted); }
.library-search input,
.library-topic-select select {
  display: block;
  width: 100%;
  height: 50px;
  border: 1px solid var(--library-line);
  border-radius: 7px;
  background: var(--library-paper);
  padding: 12px 15px;
  font-size: 17px;
  line-height: 1.4;
  box-shadow: none;
}
.library-search input::placeholder { color: var(--library-muted); opacity: 1; }
.library-topic-select { flex: 0 1 235px; min-width: 170px; }
.library-topic-select select { padding-right: 30px; }
.library-view-switch { display: flex; align-items: stretch; border: 1px solid var(--library-line); border-radius: 7px; background: var(--library-paper); min-height: 50px; padding: 3px; }
.library-view-switch button { border: 0; border-radius: 4px; min-height: 42px; padding: 9px 13px; background: transparent; font-size: 16px; line-height: 1.4; }
.library-view-switch button[aria-pressed="true"] { background: var(--library-tint); color: var(--library-blue); font-weight: 600; }
.daily-topic-shortcuts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 21px; }
.daily-topic-shortcuts button { min-height: 44px; padding: 10px 0; background: transparent; border: 0; border-bottom: 2px solid transparent; border-radius: 0; font-size: 16px; line-height: 1.4; color: var(--library-muted); }
.daily-topic-shortcuts button[aria-pressed="true"] { color: var(--library-blue); border-bottom-color: currentColor; font-weight: 600; }
.library-result-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-block: 20px 27px; min-height: 44px; font-size: 16px; color: var(--library-muted); }
.library-result-bar p { margin: 0; font-size: 16px; line-height: 1.5; }
.library-result-bar > div { display: flex; align-items: center; gap: 24px; }
.library-result-bar button { background: transparent; border: 0; border-radius: 0; color: var(--library-blue); padding: 10px 0; min-height: 44px; font-size: 16px; line-height: 1.4; }
.library-result-bar .journal-all { color: var(--library-muted); border-bottom: 2px solid transparent; }
.library-result-bar .journal-all[aria-pressed="true"] { color: var(--library-blue); border-bottom-color: currentColor; font-weight: 600; }
.daily-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 38px 25px; }
.daily-tile { min-width: 0; padding: 0; background: transparent; border: 0; }
.daily-cover { display: block; position: relative; width: 100%; height: 158px; overflow: hidden; padding: 0; background: var(--library-tint); border: none; border-radius: 16px; color: var(--library-blue); text-align: left; }
.daily-cover-room { background: #e5ece7; color: #446756; }
.daily-cover-rack { background: #e3eaee; color: #456776; }
.daily-cover-rotation { background: #eee9e1; color: #866e4b; }
.daily-cover-mind { background: #dfeaf1; color: #3e7088; }
.daily-cover-number { position: absolute; bottom: 14px; left: 20px; font-size: 56px; font-weight: 340; line-height: 1; letter-spacing: -.065em; font-variant-numeric: tabular-nums; }
.daily-cover .library-motif { position: absolute; width: 120px; height: 100px; right: 0; top: 18px; opacity: .7; }
.daily-cover-label { position: absolute; top: 16px; left: 21px; font-size: 16px; line-height: 1.3; }
.daily-cover img { width: 100%; height: 100%; display: block; object-fit: cover; }
.daily-tile-copy { padding-top: 16px; }
.daily-tile-meta { display: flex; gap: 8px 13px; flex-wrap: wrap; margin: 0 0 11px; font-size: 16px; line-height: 1.4; font-variant-numeric: tabular-nums; color: var(--library-muted); }
.daily-tile h3 { font-family: inherit; font-size: 23px; font-weight: 550; line-height: 1.24; letter-spacing: -.028em; margin: 0 0 12px; }
.daily-title-link { display: inline; background: transparent; border: 0; border-radius: 0; padding: 0; font: inherit; line-height: inherit; color: inherit; text-align: left; }
.daily-title-link:hover { color: var(--library-blue); }
.daily-tile-copy > p:not(.daily-tile-meta) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font-size: 17px; line-height: 1.55; color: var(--library-muted); margin: 0 0 12px; }
.daily-tile-tags { display: flex; gap: 5px 12px; flex-wrap: wrap; }
.daily-tile-tags button { border: none; border-radius: 0; background: transparent; padding: 6px 0; min-height: 44px; color: var(--library-blue); font-size: 16px; line-height: 1.35; text-align: left; }
.daily-preview-link { min-height: 44px; padding: 7px 0; background: none; border: none; border-radius: 0; color: var(--library-muted) !important; font-size: 16px !important; }
.daily-preview-link span { margin-left: 7px; }
.daily-grid[data-view="list"] { grid-template-columns: 1fr; gap: 0; }
.daily-grid[data-view="list"] .daily-tile { display: grid; grid-template-columns: 130px 1fr; gap: 28px; border-top: 1px solid var(--library-line); padding-block: 25px; }
.daily-grid[data-view="list"] .daily-cover { height: 130px; }
.daily-grid[data-view="list"] .daily-cover svg { width: 76px; height: 60px; top: 19px; right: -12px; }
.daily-grid[data-view="list"] .daily-cover-number { font-size: 47px; }
.daily-grid[data-view="list"] .daily-tile-copy { padding-top: 0; }
.daily-grid[data-view="list"] .daily-tile h3 { font-size: 25px; margin-bottom: 8px; }
.daily-grid[data-view="list"] .daily-tile-copy > p { max-width: 760px; margin-bottom: 5px; }
.daily-grid[data-view="list"] .daily-tile-tags { display: inline-flex; margin-right: 20px; }
.daily-calendar { padding: 29px; background: var(--library-paper); border-radius: 16px; }
.daily-calendar-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 26px; }
.daily-calendar-toolbar > div { text-align: center; }
.daily-calendar-toolbar h3 { font: inherit; font-size: 27px; font-weight: 580; letter-spacing: -.025em; line-height: 1.2; margin: 0 0 5px; }
.daily-calendar-toolbar p { font-size: 16px; color: var(--library-muted); line-height: 1.5; margin: 0; }
.daily-calendar-toolbar button { width: 47px; height: 47px; border: 1px solid var(--library-line); border-radius: 7px; background: transparent; font-size: 22px; }
.daily-calendar-days,
.daily-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.daily-calendar-days { padding-bottom: 13px; font-size: 16px; color: var(--library-muted); }
.daily-calendar-days span { text-align: center; }
.calendar-day { min-height: 110px; padding: 9px 10px; background: var(--library-canvas); border-radius: 6px; }
.calendar-day.has-note { background: var(--library-tint); }
.calendar-day-number { display: block; font-size: 16px; color: var(--library-muted); line-height: 1.3; font-variant-numeric: tabular-nums; }
.calendar-note { display: flex; flex-direction: column; width: 100%; min-height: 62px; padding: 7px 0 0; background: none; border: none; border-radius: 0; color: var(--library-blue) !important; text-align: left; font-size: 16px; line-height: 1.25; }
.calendar-note-number { font-size: 18px; font-weight: 600; margin-bottom: 3px; }
.calendar-note-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 16px; }
.calendar-footnote { font-size: 16px; color: var(--library-muted); margin: 21px 0 0; line-height: 1.5; }
.library-empty { text-align: center; background: var(--library-paper); border-radius: 16px; padding: 50px 25px; margin-bottom: 30px; }
.library-empty h3 { font-family: inherit; font-size: 28px; line-height: 1.2; font-weight: 580; letter-spacing: -.03em; margin: 0 0 12px; }
.library-empty p { margin: 0 0 19px; font-size: 18px; line-height: 1.5; color: var(--library-muted); }
.library-empty button { min-height: 44px; border: 1px solid var(--library-line); border-radius: 6px; background: transparent; color: var(--library-blue); padding: 10px 17px; }
.library-source-note { margin: 39px 0 0; font-size: 16px; line-height: 1.55; color: var(--library-muted); }
.daily-preview-dialog { width: min(650px, calc(100% - 36px)); max-height: calc(100dvh - 50px); padding: 0; border: none; border-radius: 16px; color: var(--library-ink); background: var(--library-paper); box-shadow: 0 18px 90px #0e263333; }
.daily-preview-dialog::backdrop { background: #15232d80; }
.daily-preview-close { position: sticky; top: 0; display: flex; gap: 12px; align-items: center; justify-content: flex-end; width: 100%; min-height: 56px; padding: 14px 24px; border: 0; border-radius: 0; background: var(--library-paper); color: var(--library-muted); font-size: 16px; }
.daily-preview-close span { font-size: 26px; line-height: 1; }
.daily-preview-content { padding: 10px 39px 36px; }
.daily-preview-content h2 { margin: 12px 0 22px; font-family: inherit; font-size: 38px; font-weight: 580; line-height: 1.15; letter-spacing: -.035em; }
.daily-preview-content > p:not(.library-kicker) { margin: 0; font-size: 21px; line-height: 1.6; }
.daily-preview-topics { display: flex; flex-wrap: wrap; gap: 8px 17px; color: var(--library-blue); margin-top: 22px; font-size: 16px; }
.daily-preview-explanation { margin-top: 30px; border-top: 1px solid var(--library-line); padding-top: 23px; }
.daily-preview-explanation h3 { font-family: inherit; margin: 0 0 10px; font-size: 18px; font-weight: 600; }
.daily-preview-explanation p { font-size: 17px; line-height: 1.6; color: var(--library-muted); margin: 0 0 15px; }
.daily-preview-explanation .text-link { display: block; min-height: 44px; padding-block: 10px; color: var(--library-blue); font-size: 17px; line-height: 1.4; }
.journal-topics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-radius: 16px; padding: 13px 19px; background: var(--library-paper); }
.journal-topics button { display: flex; flex-direction: column; position: relative; align-items: flex-start; justify-content: flex-start; gap: 10px; padding: 14px 22px 23px; min-width: 0; text-align: left; background: transparent; border: none; border-right: 1px solid var(--library-line); border-bottom: 3px solid transparent; border-radius: 0; }
.journal-topics button:last-child { border-right: none; }
.journal-topics button[aria-pressed="true"] { border-bottom-color: var(--library-blue); color: var(--library-blue); }
.journal-topics button:hover { color: var(--library-blue); }
.journal-topics .library-motif { width: 72px; height: 66px; color: var(--library-blue); margin-left: -11px; }
.journal-topic-copy { display: flex; flex-direction: column; gap: 9px; }
.journal-topic-copy strong { font-size: 22px; line-height: 1.2; letter-spacing: -.025em; font-weight: 580; }
.journal-topic-copy > span { font-size: 16px; line-height: 1.4; color: var(--library-muted); }
.journal-topic-arrow { position: absolute; right: 21px; top: 23px; font-size: 21px; font-weight: 400; color: var(--library-blue); }
.journal-archive .library-section-heading .library-search { flex: 0 1 360px; }
.journal-library-shell .article-library { width: 100%; margin: 0; gap: 39px 30px; }
.journal-library-shell .article-library article { color: var(--library-ink); }
.journal-library-shell .article-library .article-feature { grid-template-columns: 1.2fr 1fr; gap: 41px; margin-bottom: 3px; padding: 0; background: var(--library-paper); border-radius: 16px; overflow: hidden; align-items: stretch; }
.journal-library-shell .article-feature > a { display: flex; align-items: center; background: #e7ebee; }
.journal-library-shell .article-feature > a img { aspect-ratio: 16/9; object-fit: cover; border-radius: 0; }
.journal-library-shell .article-feature > div { display: flex; flex-direction: column; justify-content: center; padding: 34px 35px 32px 0; }
.journal-library-shell .article-library h2 { font-family: inherit; font-size: 26px; line-height: 1.2; font-weight: 570; letter-spacing: -.03em; }
.journal-library-shell .article-feature h2 { font-size: clamp(31px, 2.8vw, 39px); line-height: 1.13; margin-bottom: 18px; }
.journal-library-shell .article-library .editorial-meta { color: var(--library-blue); font-size: 16px; line-height: 1.4; }
.journal-library-shell .article-library p:not(.editorial-meta):not(.meta) { color: var(--library-muted); font-size: 18px; line-height: 1.6; }
.journal-library-shell .article-library .meta { color: var(--library-muted); font-size: 16px; line-height: 1.5; }
.journal-library-shell .article-tile > a { display: block; overflow: hidden; border-radius: 16px; }
.journal-library-shell .article-library .text-link { color: var(--library-blue); font-size: 17px; }
.journal-library-shell .article-library[data-result-count="1"] > article { grid-column: 1/-1; display: grid; grid-template-columns: 1.2fr 1fr; gap: 41px; padding: 0; border-radius: 16px; background: var(--library-paper); overflow: hidden; }
.journal-library-shell .article-library[data-result-count="1"] > article > div { padding: 30px 35px 30px 0; margin: 0; align-self: center; }
.journal-library-shell .article-library[data-result-count="1"] > article > a { border-radius: 0; display: flex; align-items: center; background: #e7ebee; }
.journal-coded-cover { aspect-ratio: 16/9; display: flex !important; justify-content: space-between; align-items: center; padding: 25px; background: var(--library-tint) !important; color: var(--library-blue) !important; }
.journal-coded-cover .library-motif { width: 45%; height: auto; }
.journal-coded-cover span { max-width: 48%; font-size: 23px; line-height: 1.2; font-weight: 550; letter-spacing: -.02em; }
.editorial-library-shell :is(a, button, input, select):focus-visible { outline: 3px solid var(--library-blue); outline-offset: 4px; }
.editorial-library-shell a,
.editorial-library-shell button { transition: color 140ms ease, border-color 140ms ease, background-color 140ms ease; }
@media (max-width: 1050px) {
  .library-page-width { width: calc(100% - 60px); }
  .library-introduction { gap: 35px; }
  .library-introduction > p { font-size: 21px; }
  .daily-today-copy { padding: 30px; }
  .daily-today-copy h2 { font-size: 35px; }
  .daily-today-copy > p:not(.library-kicker) { font-size: 20px; }
  .daily-today-number { left: 28px; font-size: 105px; }
  .daily-today-art-label { left: 29px; }
  .daily-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 22px; }
  .library-controls { gap: 14px; flex-wrap: wrap; }
  .library-view-switch { margin-left: auto; }
  .journal-topics { padding: 10px 12px; }
  .journal-topics button { padding-inline: 16px; }
  .journal-topic-copy strong { font-size: 20px; }
  .journal-topic-arrow { right: 16px; }
  .journal-library-shell .article-library { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journal-library-shell .article-library .article-feature { gap: 28px; }
  .journal-library-shell .article-feature h2 { font-size: 32px; }
  .journal-library-shell .article-feature > div { padding: 28px 27px 26px 0; }
  .calendar-note-title { font-size: 16px; -webkit-line-clamp: 2; }
}
@media (max-width: 760px) {
  .editorial-library-shell { padding-bottom: 48px; }
  .library-page-width { width: calc(100% - 40px); }
  .library-introduction { grid-template-columns: 1fr; gap: 18px; padding: 35px 0 27px; }
  .library-introduction h1 { font-size: 49px; letter-spacing: -.05em; }
  .library-introduction > p { font-size: 20px; line-height: 1.48; }
  .library-introduction > p br { display: none; }
  .library-introduction > p br::after { content: ' '; }
  .daily-today { grid-template-columns: 1fr; }
  .daily-today-art { min-height: 190px; }
  .daily-today-number { font-size: 90px; bottom: 21px; left: 27px; }
  .daily-today-art-label { top: 23px; left: 27px; }
  .daily-today-art .daily-today-motif { width: 62%; height: 130%; top: -8%; right: 0; transform: rotate(-14deg); }
  .daily-today-copy { padding: 27px; }
  .daily-today-copy h2 { font-size: 34px; margin-top: 4px; }
  .daily-today-copy > p:not(.library-kicker) { font-size: 19px; line-height: 1.55; }
  .daily-today-end { font-size: 16px; gap: 17px; }
  .daily-archive,
  .journal-archive { margin-top: 44px; }
  .library-section-heading { align-items: flex-start; flex-direction: column; gap: 15px; margin-bottom: 24px; }
  .library-section-heading h2 { font-size: 31px; }
  .library-section-heading > p { font-size: 18px; }
  .library-section-heading > p br { display: none; }
  .library-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .library-controls .library-search { grid-column: 1/-1; }
  .library-topic-select { min-width: 0; }
  .library-view-switch { grid-column: 1/-1; margin: 0; justify-self: start; }
  .library-controls .library-topic-select { grid-column: 1/-1; }
  .daily-topic-shortcuts { flex-wrap: nowrap; overflow-x: auto; gap: 19px; margin-right: -20px; padding-right: 20px; scrollbar-width: thin; }
  .daily-topic-shortcuts button { flex: 0 0 auto; }
  .library-result-bar { margin-block: 17px 24px; gap: 12px; }
  .library-result-bar > div { gap: 18px; }
  .daily-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 29px 20px; }
  .daily-cover { height: 140px; }
  .daily-cover-number { font-size: 50px; left: 17px; }
  .daily-cover-label { left: 17px; }
  .daily-cover .library-motif { right: -15px; width: 100px; height: 85px; top: 30px; }
  .daily-tile h3 { font-size: 22px; }
  .daily-tile-copy > p:not(.daily-tile-meta) { font-size: 17px; }
  .daily-calendar { padding: 20px 13px; }
  .daily-calendar-toolbar { gap: 12px; }
  .daily-calendar-toolbar h3 { font-size: 24px; }
  .daily-calendar-toolbar button { flex: 0 0 44px; width: 44px; height: 44px; }
  .daily-calendar-days,
  .daily-calendar-grid { gap: 4px; }
  .calendar-day { min-height: 88px; padding: 8px 4px; }
  .calendar-day-number { text-align: center; }
  .calendar-note { min-height: 48px; text-align: center; align-items: center; padding-top: 10px; }
  .calendar-note-title { display: none; }
  .calendar-note-number { font-size: 17px; }
  .daily-calendar-days { font-size: 16px; }
  .calendar-footnote { font-size: 16px; }
  .daily-preview-content { padding: 6px 27px 30px; }
  .daily-preview-content h2 { font-size: 33px; }
  .daily-preview-content > p:not(.library-kicker) { font-size: 19px; }
  .journal-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 6px 14px; }
  .journal-topics button { padding: 15px 11px 20px; gap: 4px; }
  .journal-topics button:nth-child(2) { border-right: 0; }
  .journal-topics button:nth-child(-n+2) { border-bottom-color: var(--library-line); }
  .journal-topics button[aria-pressed="true"] { border-bottom-color: var(--library-blue); }
  .journal-topics .library-motif { width: 64px; height: 58px; }
  .journal-topic-copy strong { font-size: 20px; }
  .journal-topic-copy > span { font-size: 16px; }
  .journal-topic-copy { gap: 7px; }
  .journal-topic-arrow { top: 20px; right: 11px; font-size: 19px; }
  .journal-archive .library-section-heading .library-search { flex: auto; width: 100%; margin-top: 9px; }
  .journal-library-shell .article-library { grid-template-columns: 1fr; gap: 31px; }
  .journal-library-shell .article-library .article-feature,
  .journal-library-shell .article-library[data-result-count="1"] > article { display: block; }
  .journal-library-shell .article-feature > a img { aspect-ratio: 16/9; }
  .journal-library-shell .article-feature > div,
  .journal-library-shell .article-library[data-result-count="1"] > article > div { padding: 25px; margin: 0; }
  .journal-library-shell .article-feature h2 { font-size: 32px; }
  .journal-library-shell .article-tile h2 { font-size: 28px; }
  .journal-library-shell .article-library p:not(.editorial-meta):not(.meta) { font-size: 18px; }
  .library-source-note { margin-top: 28px; }
}
@media (max-width: 450px) {
  .daily-grid { grid-template-columns: 1fr; gap: 27px; }
  .daily-tile { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 17px; align-items: start; }
  .daily-cover { height: 133px; border-radius: 13px; }
  .daily-cover-label { left: 13px; top: 13px; font-size: 16px; }
  .daily-cover-number { left: 13px; bottom: 13px; font-size: 43px; }
  .daily-cover .library-motif { width: 78px; height: 62px; top: 32px; right: -24px; }
  .daily-tile-copy { padding-top: 0; }
  .daily-tile-meta { flex-direction: column; gap: 2px; margin-bottom: 9px; }
  .daily-tile h3 { font-size: 21px; margin-bottom: 9px; }
  .daily-tile-copy > p:not(.daily-tile-meta) { -webkit-line-clamp: 2; margin-bottom: 7px; }
  .daily-tile-tags { gap: 0 9px; }
  .daily-grid[data-view="list"] .daily-tile { grid-template-columns: 1fr; gap: 0; padding-block: 22px; }
  .daily-grid[data-view="list"] .daily-cover { display: none; }
  .daily-grid[data-view="list"] .daily-tile-meta { flex-direction: row; gap: 16px; }
  .daily-grid[data-view="list"] .daily-tile h3 { font-size: 23px; }
  .daily-calendar { margin-inline: -8px; padding-inline: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .editorial-library-shell a,
  .editorial-library-shell button { transition: none; }
}
