.featured-topics { min-width: 0; align-self: center; }
.featured-topics h2 { margin: 0 0 .4rem; font: 700 1.2rem var(--serif); }
.featured-topics ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.featured-topics a {
  display: grid;
  grid-template-columns: 34px max-content minmax(0, 1fr) auto;
  align-items: center;
  gap: .45rem;
  padding: .28rem .35rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.featured-topics a:hover { background: #edf0e6; }
.featured-topics a:focus-visible { outline-offset: 2px; }
.featured-topics a strong { font-size: .9rem; line-height: 1.35; }
.featured-topics .feature-label { font-size: .76rem; font-weight: 700; }
.feature-label { color: #77613c; }
.features-page { max-width: 920px; padding-block: 2rem 3rem; }
.features-page h1 { margin-block: 0 1rem; }
.features-index { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.features-page article { border-top: 1px solid var(--line); padding-block: 1.75rem; scroll-margin-top: 1rem; }
.features-page article:first-of-type { margin-top: 1.5rem; }
.features-page article h2 { margin-block: .3rem .8rem; }
.features-page article p, .features-page dd { line-height: 1.8; }
.features-page dt { font-weight: 700; margin-top: .8rem; }
.features-page dd { margin-inline-start: 0; }
@media (max-width: 700px) {
  .featured-topics { grid-row: 1; }
}

.toyotomi-entry, .toyotomi-index a {
  display: inline-block;
  padding: .5rem .8rem;
  border: 1px solid var(--line);
  border-radius: .35rem;
  background: #f7f3e9;
  color: var(--ink);
  font-weight: 700;
}
.toyotomi-people article h2 small { display: inline-block; font-size: .6em; font-weight: 400; }
.toyotomi-summary { display: flex; align-items: flex-start; gap: 1.25rem; }
.toyotomi-summary > div { flex: 1; min-width: 0; }
.toyotomi-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin: 0; }
.toyotomi-dates > div { border-left: 3px solid #aa8e54; background: #f7f3e9; padding: .45rem .65rem; }
.toyotomi-dates dt { margin-top: 0; }
.toyotomi-package { margin: 0; width: min(26vw, 144px); text-align: center; font-size: .8rem; }
.toyotomi-package img { width: 100%; height: auto; max-height: 240px; object-fit: contain; background: #fff; display: block; }
.toyotomi-package span { display: block; margin-top: .3rem; }
.toyotomi-events { padding-left: 1.25rem; }
.toyotomi-events li { margin-block: .45rem; }
.toyotomi-events span { display: block; }
.toyotomi-sources { font-size: .9rem; }
@media (max-width: 560px) {
  .toyotomi-dates { grid-template-columns: 1fr; }
  .toyotomi-summary { gap: .7rem; }
}

.feature-thumb {
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: #f7f3e9;
  overflow: hidden;
}
.feature-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}
.features-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: .35rem;
}
.features-cards a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: .4rem;
  border: 1px solid var(--line);
  padding: .25rem .35rem;
  font-size: .9rem;
}
.features-cards a:hover { background: #edf0e6; }
.features-cards a:focus-visible { outline-offset: 2px; }
.feature-image-credits { font-size: .78rem; line-height: 1.6; }
@media (max-width: 475px) {
  .featured-topics a { grid-template-columns: 34px minmax(0, 1fr) auto; gap: .05rem .4rem; }
  .featured-topics .feature-thumb { grid-area: 1 / 1 / 3 / 2; }
  .featured-topics .feature-label { grid-area: 1 / 2; align-self: end; line-height: 1.1; }
  .featured-topics a strong { grid-area: 2 / 2; align-self: start; }
  .featured-topics a > :last-child { grid-area: 1 / 3 / 3 / 4; }
}

.feature-roster { margin-block: 1.4rem; }
.feature-roster h2 { border-bottom: 1px solid var(--line); padding-bottom: .3rem; }
.feature-roster dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: .35rem .9rem; }
.feature-roster dl > div { border-bottom: 1px solid var(--line); padding-block: .35rem; }
.feature-roster dt { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; margin-top: 0; }
.feature-roster dt small { font-weight: 400; }
.feature-roster dd { margin-top: .25rem; font-size: .92rem; }
.feature-sword-list dt { display: flex; align-items: center; gap: .45rem; }
.feature-sword-list dd { margin-top: .15rem; }

.literary-feature-entry {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: start;
  gap: .6rem;
  padding-block: .55rem;
  border-top: 1px solid var(--line);
}
.literary-feature-entry .feature-thumb { width: 52px; height: 52px; }
.literary-feature-entry h3 { margin: 0; font-size: 1rem; }
.features-page .literary-feature-entry p { margin: .12rem 0 .25rem; line-height: 1.5; }
.literary-feature-links { display: flex; flex-wrap: wrap; gap: .2rem .7rem; font-size: .83rem; }

.feature-roster .munmu-yokan-person {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: .7rem;
  align-content: start;
}
.munmu-yokan-person > dt, .munmu-yokan-person > dd { grid-column: 2; }
.munmu-yokan-person > .munmu-yokan-art {
  grid-area: 1 / 1 / 3 / 2;
  margin: 0;
}
.munmu-yokan-art img {
  display: block;
  width: 42px;
  height: auto;
}
