.edit-section { color: var(--ink); background: var(--night); }
.edit-section .eyebrow, .edit-reader .eyebrow { color: #d9cffa; }
.edit-consult { padding-block: clamp(24px,4vw,60px); }
.edit-consult-panel {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(22px,6.5vw,96px);
  padding: clamp(26px,4.5vw,70px); border-radius: 28px;
  background: radial-gradient(ellipse at 0% 110%,#3e2e4d,transparent 62%),#24202a;
}
.edit-consult-copy h2 { max-width: 12ch; }
.edit-consult-copy > p:last-child { max-width: 34ch; margin-top: 17px; color: #d4cdd8; }
.edit-consult-tool fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.edit-consult-tool legend { padding: 0; margin-bottom: 10px; font-weight: 700; }
.edit-channel-list { display: flex; flex-wrap: wrap; gap: 6px; }
.edit-channel-list label { position: relative; cursor: pointer; }
.edit-channel-list input { position: absolute; opacity: 0; inset: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.edit-channel-list span {
  display: block; padding: .52rem .88rem; border-radius: 8px; color: #e6e1ea;
  background: #39333f; font-size: .89rem; font-weight: 650;
}
.edit-channel-list :checked + span { color: #261d38; background: #dfd4f7; }
.edit-channel-list :focus-visible + span { outline: 3px solid #c8ffea; outline-offset: 2px; }
.edit-consult-tool > p { max-width: 39ch; min-height: 3.2em; color: #e0dbe3; margin: 15px 0 19px; }
.edit-consult-tool .button { border: 0; }
.edit-consult-tool .button span { margin-left: 5px; }
.edit-journal { padding-block: clamp(42px,5vw,77px) clamp(54px,7vw,100px); }
.edit-journal-head { margin-bottom: clamp(21px,2.5vw,38px); }
.edit-article-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(10px,1.35vw,22px); }
.edit-article { min-width: 0; }
.edit-article-link {
  display: flex; flex-direction: column; width: 100%; height: 100%; overflow: hidden; padding: 0; border: 0;
  border-radius: 20px; text-align: left; color: #f7f6f8; background: #1b1b20;
}
.edit-article-link:focus-visible, .edit-close:focus-visible { outline: 3px solid #c9b4ff; outline-offset: 4px; }
.edit-cover { display: block; flex: none; width: 100%; aspect-ratio: 1.18; overflow: hidden; background: #171719; }
.edit-cover img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transition: transform .32s ease; }
.edit-card-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 9px; padding: clamp(16px,2vw,28px); }
.edit-article-topic { color: #bbb4c0; font-size: .81rem; font-weight: 650; }
.edit-article-title { max-width: 21ch; font-size: clamp(1.18rem,1.85vw,1.74rem); line-height: 1.2; font-weight: 650; letter-spacing: -.035em; text-wrap: balance; }
.edit-read { display: flex; align-items: baseline; gap: .35em; margin-top: auto; padding-top: 7px; color: #dfd5ed; font-size: .86rem; font-weight: 650; }
@media (hover:hover) {
  .edit-article-link:hover .edit-cover img { transform: scale(1.04); }
  .edit-article-link:hover .edit-read { color: #fff; }
}
.edit-reader { width: min(660px,calc(100% - 26px)); max-height: calc(100dvh - 32px); overflow: auto; margin: auto; padding: clamp(22px,3vw,40px); border: 0; border-radius: 20px; background: #222126; color: #faf8f9; }
.edit-reader::backdrop { background: #08070bcc; backdrop-filter: blur(5px); }
.edit-reader-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.edit-reader-head .eyebrow { margin: 0; }
.edit-close { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: #3b3741; color: white; font-size: 1.45rem; line-height: 1; }
.edit-reader h2 { margin: 0 0 1rem; font-size: clamp(1.7rem,3.1vw,2.6rem); letter-spacing: -.045em; }
.edit-reader h3 { margin: 1.35rem 0 .45rem; font-size: 1.15rem; }
.edit-reader #edit-reader-body p { color: #d8d3dc; line-height: 1.68; }

@media (max-width: 760px) {
  .edit-consult-panel { grid-template-columns: 1fr; gap: 25px; padding: clamp(20px,4.9vw,32px); border-radius: 20px; }
  .edit-consult-tool > p { min-height: 0; }
  .edit-article-grid { grid-template-columns: 1fr; gap: 10px; }
  .edit-article-link { display: grid; grid-template-columns: clamp(96px,36%,158px) minmax(0,1fr); border-radius: 15px; }
  .edit-cover { min-height: 132px; height: 100%; aspect-ratio: auto; }
  .edit-card-copy { align-self: stretch; padding: clamp(12px,3.6vw,20px); gap: 5px; }
  .edit-article-title { font-size: clamp(1rem,4.6vw,1.45rem); }
  .edit-read { padding-top: 3px; }
}
@media (prefers-reduced-motion:reduce) {
  .edit-cover img { transition: none; }
  .edit-article-link:hover .edit-cover img { transform: none; }
}
