/* S-008 未記名改訂欄・責任分解票 */
.amendment-slip {
  color: #d8c69f;
}

.amendment-slip .amendment-head {
  align-items: baseline;
  background: #1a1008;
  border: 1px solid #6b4b1d;
  border-left: 5px solid #b58b42;
  color: #f0d38a;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin: 1.2rem 0 1.35rem;
  padding: .82rem 1rem;
}

.amendment-slip .amendment-head small {
  color: #bda677;
  font-size: .72rem;
  line-height: 1.75;
  text-align: right;
}

.amendment-slip .amendment-meta {
  border: 1px solid #5b421e;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1.2rem 0 1.5rem;
  background: #5b421e;
}

.amendment-slip .amendment-meta > div {
  background: #171008;
  min-width: 0;
  padding: .72rem .82rem;
}

.amendment-slip .amendment-meta b {
  color: #e7ca83;
  display: block;
  font-size: .72rem;
  letter-spacing: .04em;
  margin-bottom: .28rem;
}

.amendment-slip .amendment-meta span {
  color: #c7b58e;
  display: block;
  font-size: .8rem;
  line-height: 1.75;
}

.amendment-slip .amendment-caution {
  background: #2a130e;
  border-left: 4px solid #a84f44;
  color: #e7bdb4;
  font-size: .83rem;
  line-height: 1.9;
  margin: 1.45rem 0;
  padding: .9rem 1rem;
}

.amendment-slip .amendment-caution strong {
  color: #ffd0c5;
}

.amendment-slip .amendment-key {
  display: grid;
  gap: .7rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1rem 0 1.45rem;
}

.amendment-slip .amendment-key > div {
  background: #171008;
  border: 1px solid #69522e;
  border-top: 3px solid #76986d;
  color: #cfbd97;
  font-size: .76rem;
  line-height: 1.78;
  min-width: 0;
  padding: .72rem;
}

.amendment-slip .amendment-key > div[data-state="separate"] {
  border-top-color: #b58b42;
}

.amendment-slip .amendment-key > div[data-state="blank"] {
  border-top: 3px dashed #c17669;
}

.amendment-slip .amendment-key strong {
  color: #f0d38a;
  display: block;
  font-size: .78rem;
  margin-bottom: .22rem;
}

.amendment-slip .amendment-sheet {
  background: #f5ecd8;
  border: 1px solid #b99154;
  box-shadow: 4px 5px 0 rgba(0, 0, 0, .22);
  color: #3d2c1c;
  margin: 1.5rem 0;
  padding: 1.12rem;
}

.amendment-slip .amendment-sheet h2 {
  border-bottom: 1px solid #c49b62;
  color: #4d3218;
  font-size: 1.14rem;
  margin: 0 0 .55rem;
  padding-bottom: .58rem;
}

.amendment-slip .amendment-sheet > p {
  font-size: .82rem;
  line-height: 1.86;
  margin: .65rem 0;
}

.amendment-slip .amendment-table-wrap {
  margin: 1rem 0;
  overflow-x: auto;
}

.amendment-slip .amendment-table {
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.72;
  min-width: 720px;
  width: 100%;
}

.amendment-slip .amendment-table caption {
  caption-side: top;
  color: #503719;
  font-weight: 700;
  padding: 0 0 .55rem;
  text-align: left;
}

.amendment-slip .amendment-table th,
.amendment-slip .amendment-table td {
  border: 1px solid #c7a571;
  padding: .6rem .65rem;
  text-align: left;
  vertical-align: top;
}

.amendment-slip .amendment-table th {
  background: #e8d4ac;
  color: #422a13;
}

.amendment-slip .amendment-table td:first-child {
  font-weight: 700;
  width: 18%;
}

.amendment-slip .amendment-table tr[data-state="blank"] td {
  background: #f0dfcd;
}

.amendment-slip .amendment-table .blank-cell {
  color: #7d4238;
  font-weight: 700;
}

.amendment-slip .amendment-ledger {
  border-left: 2px solid #b28b43;
  margin: 1.45rem 0 1.25rem .75rem;
  padding-left: 1.15rem;
}

.amendment-slip .amendment-entry {
  color: #cfbd97;
  font-size: .84rem;
  line-height: 1.86;
  margin: 0 0 1.15rem;
  position: relative;
}

.amendment-slip .amendment-entry::before {
  background: #d6b157;
  border: 2px solid #1a1008;
  border-radius: 50%;
  content: '';
  height: .5rem;
  left: -1.55rem;
  position: absolute;
  top: .4rem;
  width: .5rem;
}

.amendment-slip .amendment-entry time {
  color: #f0d38a;
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .74rem;
}

.amendment-slip .amendment-entry strong {
  color: #f7e4b4;
}

.amendment-slip .amendment-entry .source-note {
  color: #ad956b;
  font-size: .76rem;
  margin: .35rem 0 0;
}

.amendment-slip .amendment-quote {
  border-bottom: 1px solid #81534a;
  border-top: 1px solid #81534a;
  color: #dab09f;
  font-family: serif;
  font-size: .94rem;
  line-height: 1.95;
  margin: 1.45rem 0;
  padding: .9rem 1rem;
}

.amendment-slip .amendment-links {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin: 1.35rem 0 .35rem;
}

.amendment-slip .amendment-links a {
  background: #23170b;
  border: 1px solid #6f552b;
  color: #f0d38a;
  display: block;
  flex: 1 1 205px;
  font-size: .8rem;
  line-height: 1.6;
  padding: .62rem .72rem;
  text-decoration: none;
}

.amendment-slip .amendment-links a:hover,
.amendment-slip .amendment-links a:focus-visible {
  background: #3a2610;
  color: #fff0bd;
  outline: 3px solid #e5c26e;
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .amendment-slip .amendment-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .amendment-slip .amendment-head small {
    text-align: left;
  }

  .amendment-slip .amendment-meta,
  .amendment-slip .amendment-key {
    grid-template-columns: 1fr;
  }

  .amendment-slip .amendment-sheet {
    padding: .85rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .amendment-slip .amendment-links a {
    transition: background-color 160ms cubic-bezier(0.23, 1, 0.32, 1), color 160ms cubic-bezier(0.23, 1, 0.32, 1), transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
  }

  .amendment-slip .amendment-links a:active {
    transform: scale(.97);
  }
}

@media (prefers-reduced-motion: reduce) {
  .amendment-slip .amendment-links a {
    transition: none;
  }

  .amendment-slip .amendment-links a:active {
    transform: none;
  }
}
