/* Readability improvements for inheritance articles rendered as EVERY recipes. */
.koyori-checklist-badge {
  align-items: stretch;
  border: 1px solid #294861;
  border-radius: 5px;
  display: inline-flex;
  line-height: 1;
  margin: 0 0 12px;
  overflow: hidden;
  vertical-align: top;
}

.koyori-checklist-badge__label,
.koyori-checklist-badge__number {
  align-items: center;
  display: flex;
  font-weight: 700;
  justify-content: center;
}

.koyori-checklist-badge__label {
  background: #294861;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.05em;
  padding: 8px 11px;
}

.koyori-checklist-badge__number {
  background: #f1f5f3;
  color: #294861;
  font-size: 19px;
  letter-spacing: 0.02em;
  min-width: 68px;
  padding: 6px 11px;
}

#recipe_video_data {
  border: 1px solid #e2e8ec;
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(25, 52, 74, 0.05);
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr) 105px minmax(0, 1fr);
  overflow: hidden;
}

/* EVERY's recipe table is 190px on the right by default. In procedure
 * articles the explanation belongs on the right, so use a balanced grid. */
.koyori-inheritance-article .recipe_material dl {
  display: grid;
  grid-template-columns: minmax(180px, 32%) minmax(0, 68%);
  justify-content: stretch;
}

.koyori-inheritance-article .recipe_material dt,
.koyori-inheritance-article .recipe_material dd {
  box-sizing: border-box;
  line-height: 1.8;
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 14px 18px;
  width: auto;
}

.koyori-inheritance-article .recipe_material dt {
  align-items: center;
  justify-content: flex-start;
}

.koyori-inheritance-article .recipe_material dd {
  align-items: center;
  display: flex;
}

#recipe_video_data dt,
#recipe_video_data dd {
  box-sizing: border-box;
  float: none;
  height: auto;
  line-height: 1.65;
  margin: 0;
  min-height: 72px;
  width: auto;
}

#recipe_video_data dt {
  background: #f1f5f3;
  color: #294861;
  font-weight: 700;
  padding: 14px 10px;
}

#recipe_video_data dd {
  justify-content: flex-start;
  padding: 14px 18px;
  text-align: left;
}

.koyori-inline-image {
  margin: 2.4em 0;
}

.koyori-inline-image__image {
  border: 1px solid #e3e8eb;
  border-radius: 8px 8px 0 0;
  box-sizing: border-box;
  display: block;
  height: auto;
  width: 100%;
}

.koyori-inline-image__caption {
  background: #f1f5f3;
  border-left: 4px solid #7f9f68;
  border-radius: 0 0 8px 8px;
  box-sizing: border-box;
  color: #294861;
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.8;
  margin: 0;
  padding: 13px 17px;
}

.koyori-local-contacts {
  margin: 3em 0 2.4em;
}

.koyori-local-contacts-intro {
  background: #f4f8f6;
  border-left: 4px solid #7f9f68;
  border-radius: 4px;
  color: #294861;
  line-height: 1.9;
  margin-bottom: 18px;
  padding: 15px 18px;
}

.koyori-local-contact-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.koyori-local-contact-card {
  background: #fff;
  border: 1px solid #dce5e9;
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(25, 52, 74, 0.05);
  box-sizing: border-box;
  min-width: 0;
  padding: 18px;
}

.koyori-inheritance-article .koyori-local-contact-card h3 {
  border: 0;
  color: #294861;
  font-size: 18px;
  margin: 0 0 10px;
  padding: 0 0 8px;
  position: relative;
}

.koyori-inheritance-article .koyori-local-contact-card h3::after {
  background: #7f9f68;
  bottom: 0;
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  width: 34px;
}

.koyori-local-contact-card p {
  line-height: 1.75;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}

.koyori-local-contact-office {
  font-weight: 700;
}

.koyori-local-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 13px 0 0 !important;
}

.koyori-local-contact-links a {
  align-items: center;
  background: #294861;
  border-radius: 4px;
  color: #fff !important;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  justify-content: center;
  min-height: 38px;
  padding: 5px 12px;
  text-decoration: none;
}

.koyori-local-contact-links a:last-child {
  background: #edf4ef;
  color: #294861 !important;
}

.koyori-local-contacts-note {
  color: #5e6d76;
  font-size: 13px;
  line-height: 1.7;
  margin: 13px 0 0;
}

@media screen and (max-width: 650px) {
	.koyori-inheritance-article #recipe_title_area .parent_category {
		box-sizing: border-box;
		float: none;
		height: auto;
		margin: 0 0 12px;
		min-height: 42px;
		padding: 11px 14px;
		width: 100%;
	}

	.koyori-inheritance-article #recipe_title_area .title_area {
		box-sizing: border-box;
		float: none;
		margin: 0;
		padding: 0;
		width: 100%;
	}

	.koyori-inheritance-article #recipe_title_area .entry-title {
		font-size: clamp(20px, 6.2vw, 25px);
		line-height: 1.5;
		overflow-wrap: anywhere;
		word-break: normal;
	}

  .koyori-checklist-badge {
    margin-bottom: 9px;
  }

  .koyori-checklist-badge__label {
    font-size: 10px;
    padding: 7px 8px;
  }

  .koyori-checklist-badge__number {
    font-size: 16px;
    min-width: 58px;
    padding: 6px 8px;
  }

  #recipe_video_data {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
  }

  #recipe_video_data dt,
  #recipe_video_data dd {
    border-bottom: 1px solid #e2e8ec;
    border-right: 0;
    line-height: 1.6;
    min-height: 54px;
    padding: 10px 12px;
  }

  #recipe_video_data dt:nth-of-type(2),
  #recipe_video_data dd:nth-of-type(2) {
    border-bottom: 0;
  }

  .koyori-inline-image__caption {
    font-size: 14px;
    padding: 11px 13px;
  }

  .koyori-inheritance-article .recipe_material dl {
    grid-template-columns: minmax(110px, 36%) minmax(0, 64%);
  }

  .koyori-inheritance-article .recipe_material dt,
  .koyori-inheritance-article .recipe_material dd {
    line-height: 1.7;
    padding: 11px 12px;
  }

  .koyori-local-contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .koyori-local-contact-card {
    padding: 15px;
  }

  .koyori-inheritance-article .koyori-local-contact-card h3 {
    font-size: 17px;
  }

	.koyori-local-contact-links a {
		flex: 1 1 130px;
	}

	.koyori-pagination ul {
		box-sizing: border-box;
		column-gap: 4px;
		flex-wrap: wrap;
		row-gap: 7px;
		width: 100%;
	}

	.koyori-pagination a,
	.koyori-pagination span {
		box-sizing: border-box;
		min-width: 44px;
		padding-left: 3px;
		padding-right: 3px;
		width: 44px;
	}
}
