.methods {
  color-scheme: light;
  color: var(--ink);
  background: var(--paper);
  padding-block: clamp(4rem, 7vw, 7rem);
}
.methods-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
}
.methods-legend li {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .85rem;
}
.method-rating {
  display: inline-grid;
  place-items: center;
  width: 1.4em;
  height: 1.4em;
  background: #e0e0e5;
  color: #484958;
  border-radius: .25em;
  font-family: system-ui, sans-serif;
  font-size: 1.65rem;
  font-weight: 650;
  line-height: 1;
}
.method-rating[data-rating="◎"] { background: #d6eae1; color: #21513f; }
.method-rating[data-rating="○"] { background: #e1e6f3; color: #374b72; }
.method-rating[data-rating="△"] { background: #f3e7ce; color: #734f16; }
.methods-legend .method-rating { font-size: 1rem; }
.price-row .method-price {
  display: block;
  font-size: 1em;
  line-height: 1.45;
}
.price-caption { display: block; font-size: .86em; font-weight: 550; }
.price-unit { display: inline-block; }
.price-zero { display: block; font-size: 1.5em; line-height: 1.15; }
.price-row td:nth-child(2) .method-price { color: #305143; }
.price-scope { margin-top: .8rem; color: #555463; font-size: .86rem; }
.method-note { display: block; margin-top: .55rem; }
.methods-toggle { display: none; }
.methods-frame {
  overflow: hidden;
  border: 1px solid #c8c8d0;
  border-radius: 8px;
}
.methods-table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
  font-size: clamp(.9rem, 1.05vw, 1.04rem);
  text-align: left;
}
.methods-table th, .methods-table td {
  vertical-align: top;
  padding: clamp(.9rem, 1.65vw, 1.7rem);
  overflow-wrap: anywhere;
}
.methods-table thead th {
  vertical-align: bottom;
  background: #e6e4e5;
  font-size: clamp(1rem, 1.32vw, 1.35rem);
  line-height: 1.4;
}
.methods-table thead th:first-child {
  width: 16%;
  color: #545367;
  font-size: .86rem;
}
.methods-table small {
  display: block;
  margin-bottom: .35rem;
  font-size: .75rem;
  font-weight: 500;
}
.methods-table thead th:nth-child(2) {
  color: #fff;
  background: #39375c;
}
.methods-table tbody th, .methods-table td {
  border-top: 1px solid #cfccd1;
}
.methods-table td { background: #faf9f6; }
.methods-table td:nth-child(2) { background: #e9e8f4; }
.method-label { display: none; }
.methods-export {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 1.6fr;
  align-items: center;
  gap: clamp(1.25rem, 3.6vw, 4rem);
  margin-top: clamp(2rem, 4.4vw, 4.5rem);
}
.methods-views {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.methods-views div { position: relative; }
.methods-views img {
  width: 100%;
  height: auto;
  aspect-ratio: 360 / 203;
  object-fit: cover;
}
.methods-views span {
  position: absolute;
  bottom: 5px;
  left: 5px;
  background: #222235e8;
  color: white;
  padding: 1px 7px;
  font-size: .72rem;
}
.methods-views figcaption {
  grid-column: 1 / -1;
  color: #555463;
  font-size: .8rem;
}
.methods-status {
  color: #565584;
  font-size: .82rem;
  font-weight: 700;
}
.methods-export h3 {
  margin-block: .35rem .6rem;
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  line-height: 1.4;
  letter-spacing: -.035em;
}
.methods-sources {
  margin-top: 2rem;
  border-top: 1px solid #c8c8d0;
  font-size: .9rem;
}
.methods-sources summary {
  width: fit-content;
  padding-block: .8rem;
  font-weight: 650;
  cursor: pointer;
}
.methods-sources ul { margin: .5rem 0 0; padding: 0; list-style: none; }
.methods-sources li { display: flex; flex-wrap: wrap; gap: .25rem 1.2rem; align-items: baseline; }
.methods-sources li + li { margin-top: .4rem; }
.methods-sources a { color: #403e75; }
@media (max-width: 760px) {
  .methods-frame { border: 0; overflow: visible; }
  .methods-table, .methods-table tbody, .methods-table tr { display: block; }
  .methods-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .methods-table tbody tr {
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid #c8c8d0;
    border-radius: 6px;
  }
  .methods-table tbody th {
    display: block;
    padding: .63rem .9rem;
    background: #343449;
    color: #fff;
    border: 0;
  }
  .methods-table td {
    display: grid;
    grid-template-columns: minmax(5.2rem, 26%) 1fr;
    gap: .85rem;
    padding: .72rem .9rem;
  }
  .method-label {
    display: block;
    color: #49475e;
    font-weight: 700;
    font-size: .8rem;
    line-height: 1.5;
  }
  .price-row .method-price { grid-column: 2; grid-row: 1; }
  .methods-frame .price-row .method-label { grid-column: 1; grid-row: 1 / span 2; }
  .methods-frame .price-row .method-note { grid-column: 2; grid-row: 2; }
  #method-notes:not(:checked) ~ .methods-frame .method-price { font-size: .8rem; line-height: 1.4; }
  .methods-export { grid-template-columns: 1fr; }
  .methods-views { max-width: 420px; }
  .methods-sources li { gap: .2rem .9rem; }
  .methods-sources b { flex-basis: 100%; }
  .methods-legend { display: grid; grid-template-columns: repeat(2, 1fr); gap: .55rem .6rem; }
  .methods-legend li { font-size: .78rem; line-height: 1.45; }
  .methods-legend .method-rating { flex: 0 0 1.4em; }
  .methods-toggle { display: inline-block; vertical-align: middle; }
  input.methods-toggle { width: 1.12rem; height: 1.12rem; accent-color: #484466; margin: 0 .22rem 0 0; }
  label.methods-toggle { min-height: 44px; padding: .58rem 0; font-size: .9rem; cursor: pointer; }
  .methods-frame td { align-items: start; }
  .methods-frame .method-rating { grid-column: 1; grid-row: 1; font-size: 1.35rem; }
  .methods-frame .method-label { grid-column: 1; grid-row: 2; }
  .methods-frame .method-note { grid-column: 2; grid-row: span 2; margin: 0; }
  #method-notes:not(:checked) ~ .methods-frame { overflow: hidden; border: 1px solid #c8c8d0; }
  #method-notes:not(:checked) ~ .methods-frame table { display: table; }
  #method-notes:not(:checked) ~ .methods-frame thead {
    display: table-header-group;
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
  }
  #method-notes:not(:checked) ~ .methods-frame tbody { display: table-row-group; }
  #method-notes:not(:checked) ~ .methods-frame tr { display: table-row; border: 0; }
  #method-notes:not(:checked) ~ .methods-frame :is(th, td) {
    display: table-cell;
    padding: .6rem .22rem;
    text-align: center;
    vertical-align: middle;
    line-height: 1.4;
  }
  #method-notes:not(:checked) ~ .methods-frame thead th { font-size: .78rem; }
  #method-notes:not(:checked) ~ .methods-frame thead th:first-child { width: 29%; }
  #method-notes:not(:checked) ~ .methods-frame tbody th {
    background: transparent;
    border-top: 1px solid #cfccd1;
    color: var(--ink);
    text-align: left;
    padding-inline: .5rem;
    font-size: .82rem;
  }
  #method-notes:not(:checked) ~ .methods-frame :is(small, .method-note, .method-label) { display: none; }
}
