.ed-page {
  --ed-text: #f4edf0;
  --ed-sub: #c5baca;
  --ed-gold: #e6c88c;
  --ed-line: #504054;
  --ed-panel: #211d2b;
  color: var(--ed-text);
  line-height: 1.65;
  padding: clamp(18px, 4vw, 42px);
  min-width: 0;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.ed-page *, .ed-page *::before, .ed-page *::after { box-sizing: border-box; }
.ed-page [hidden] { display: none !important; }
.ed-page h1, .ed-page h2, .ed-page h3, .ed-page p, .ed-page ul, .ed-page figure, .ed-page dl { margin: 0; }
.ed-page h1, .ed-page h2 { font-family: "Nanum Myeongjo", "Batang", "Times New Roman", serif; text-wrap: balance; }
.ed-page h1 { font-size: clamp(1.85rem, 4vw, 2.8rem); line-height: 1.32; letter-spacing: -.045em; }
.ed-page h2 { font-size: clamp(1.22rem, 2.8vw, 1.58rem); font-weight: 700; line-height: 1.5; letter-spacing: -.045em; }
.ed-page h3 { font-size: 1rem; }
.ed-page a { color: var(--ed-gold); }
.ed-page button, .ed-page input, .ed-page textarea, .ed-page select { font: inherit; color-scheme: dark; }
.ed-page a:focus-visible, .ed-page button:focus-visible, .ed-page summary:focus-visible, .ed-page :is(input,textarea,select):focus-visible { outline: 2px solid #eed395; outline-offset: 3px; }
.ed-page button { cursor: pointer; }
.ed-crumb { font-size: .78rem; margin-bottom: 25px; color: var(--ed-sub); display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.ed-crumb a { color: var(--ed-sub); text-decoration: none; }
.ed-crumb span[aria-hidden] { color: #9b849b; }
.ed-head { max-width: 46rem; margin: 0 0 29px; }
.ed-head p, .ed-learn-hero p { margin-top: 12px; line-height: 1.8; color: var(--ed-sub); }
.ed-page .ed-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.ed-filters label, .ed-report label { display: grid; gap: 5px; font-size: .8rem; color: var(--ed-sub); }
.ed-search { flex: 1 1 250px; }
.ed-sort { flex: 0 1 auto; }
.ed-page :is(input,textarea,select) { color: var(--ed-text); border: 1px solid var(--ed-line); background: #1b1722; border-radius: 8px; min-width: 0; width: 100%; padding: 10px 12px; }
.ed-page input::placeholder, .ed-page textarea::placeholder { color: #a79aac; }
.ed-filters fieldset { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; padding: 0; margin: 4px 0 0; border: none; }
.ed-filters button, .ed-empty button, .ed-report button { font-size: .83rem; border: 1px solid var(--ed-line); background: transparent; color: var(--ed-sub); min-height: 40px; padding: 4px 13px; border-radius: 20px; }
.ed-filters button[aria-pressed="true"] { color: #201925; background: #ddc28f; border-color: #ddc28f; font-weight: 700; }
.ed-page .ed-matches { margin: 20px 0 10px; font-size: .8rem; color: var(--ed-sub); }
.ed-deck { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 123px),1fr)); gap: 20px 12px; }
.ed-deck li { min-width: 0; }
.ed-deck a { color: inherit; display: block; text-decoration: none; }
.ed-thumb { border-radius: 9px; overflow: hidden; aspect-ratio: .69; background: var(--ed-panel); display: grid; place-items: center; padding: 4px; border: 1px solid #55455b; }
.ed-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ed-deck a:hover .ed-thumb { border-color: var(--ed-gold); }
.ed-card-detail { display: grid; margin-top: 6px; }
.ed-card-detail small, .ed-kicker, .ed-siblings small { font-size: .72rem; color: var(--ed-gold); }
.ed-card-detail strong { color: var(--ed-text); font-size: 1rem; }
.ed-card-detail > span { font-size: .76rem; color: var(--ed-sub); }
.ed-empty { padding: 26px 12px; text-align: center; }
.ed-empty button { margin-top: 12px; }
.ed-card-hero, .ed-learn-hero { display: grid; grid-template-columns: minmax(114px, .56fr) minmax(0, 1.44fr); gap: clamp(16px, 3vw, 34px); align-items: center; }
.ed-card-hero figure { border-radius: 15px; border: 1px solid var(--ed-line); background: radial-gradient(ellipse at center, #45334d, #201927); padding: 12px; }
.ed-card-hero img { display: block; width: 100%; height: auto; }
.ed-card-hero h1 { margin-top: 4px; }
.ed-en { font-family: Georgia, serif; color: var(--ed-sub); font-style: italic; }
.ed-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 0; }
.ed-tags span { font-size: .73rem; color: #ddcfae; padding: 2px 9px; border: 1px solid #5d4b43; border-radius: 12px; }
.ed-card-hero .ed-lead { color: #e0d6de; }
.ed-primary { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; margin-top: 17px; border-radius: 22px; background: #ddc28f; padding: 8px 16px; color: #201925 !important; font-size: .86rem; font-weight: 700; }
.ed-prose { margin-top: clamp(25px, 4vw, 38px); }
.ed-prose > p, .ed-prose > ul, .ed-prose > ol, .ed-worked p { margin-top: 10px; line-height: 1.88; color: #dfd7e0; }
.ed-prose > ul, .ed-prose > ol { padding-inline-start: 1.35em; }
.ed-prose li + li { margin-top: 7px; }
.ed-prose h2 { margin-bottom: 10px; }
.ed-duo { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.ed-duo > div { border: 1px solid var(--ed-line); border-radius: 12px; background: var(--ed-panel); padding: 16px; }
.ed-duo h3, .ed-def dt { color: var(--ed-gold); }
.ed-duo p, .ed-duo small { display: block; margin-top: 6px; }
.ed-duo small { color: var(--ed-sub); }
.ed-def > div { display: grid; grid-template-columns: 6em minmax(0,1fr); gap: 9px; padding: 13px 0; border-bottom: 1px solid var(--ed-line); }
.ed-def dt { font-weight: 700; }
.ed-def dd { margin: 0; }
.ed-siblings { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.ed-siblings a { display: flex; align-items: center; gap: 10px; border: 1px solid var(--ed-line); color: var(--ed-text); padding: 6px 13px 6px 6px; border-radius: 9px; text-decoration: none; background: var(--ed-panel); }
.ed-siblings img { width: 32px; height: 48px; object-fit: contain; border-radius: 3px; }
.ed-siblings small, .ed-siblings strong { display: block; }
.ed-siblings i { color: var(--ed-sub); font-style: normal; }
.ed-faq { border-top: 1px solid var(--ed-line); padding: 12px 0; }
.ed-faq:last-child { border-bottom: 1px solid var(--ed-line); }
.ed-faq summary { cursor: pointer; color: #e6d5b7; padding: 4px 0; font-weight: 600; }
.ed-faq p { margin: 10px 0; color: var(--ed-sub); }
.ed-follow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 11px; border-top: 1px solid var(--ed-line); margin-top: 33px; padding-top: 17px; }
.ed-follow h2 { font-size: 1rem; }
.ed-follow a { font-size: .87rem; text-underline-offset: 4px; }
.ed-page .ed-learn-hero { grid-template-columns: 1fr minmax(75px, 26%); border: 1px solid #544457; border-radius: 15px; background: radial-gradient(ellipse at right, #453249 0, #272030 50%, #211b2b); overflow: hidden; padding: clamp(18px,4vw,30px); min-height: 175px; }
.ed-learn-hero > div:last-child { height: 105px; position: relative; }
.ed-learn-hero img { position: absolute; top: 50%; left: 50%; transform: translate(-75%, -50%) rotate(-16deg); width: auto; height: 116px; box-shadow: 0 7px 12px #120e16a8; }
.ed-learn-hero img:nth-child(2) { transform: translate(-26%, -48%) rotate(12deg); }
.ed-learn-hero img:nth-child(3) { transform: translate(-50%, -51%) rotate(1deg); }
.ed-page .ed-lessons { padding: 0; list-style: none; margin: 0; }
.ed-lessons li + li { margin: 0; }
.ed-lessons a { display: flex; justify-content: space-between; align-items: center; gap: 8px; text-decoration: none; color: var(--ed-text); padding: 15px 2px; border-bottom: 1px solid var(--ed-line); }
.ed-lessons a:hover, .ed-lessons a span { color: var(--ed-gold); }
.ed-lessons strong { font-size: .96rem; font-weight: 500; }
.ed-worked { margin-top: 29px; padding: 16px 19px; background: #28212d; border-inline-start: 3px solid #bd9b62; border-radius: 0 10px 10px 0; }
.ed-worked h2 { font-size: 1.06rem; color: var(--ed-gold); }
.ed-report { display: grid; gap: 14px; margin-top: 13px; }
.ed-report textarea { resize: vertical; }
.ed-report p, .ed-report output { font-size: .83rem; color: var(--ed-sub); }
.ed-report button { color: var(--ed-gold); }
.ed-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 580px) {
  .ed-page { padding: 18px 14px 28px; }
  .ed-card-hero { grid-template-columns: minmax(82px, .62fr) minmax(0, 1.38fr); align-items: start; gap: 12px; }
  .ed-card-hero figure { padding: 4px; border-radius: 7px; }
  .ed-card-hero h1 { font-size: 1.6rem; }
  .ed-card-hero .ed-lead { font-size: .87rem; }
  .ed-duo { grid-template-columns: 1fr; }
  .ed-def > div { grid-template-columns: 1fr; gap: 4px; }
  .ed-deck { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 15px 8px; }
  .ed-card-detail small, .ed-card-detail > span { font-size: .67rem; }
  .ed-learn-hero img { height: 89px; }
}
@media (max-width: 370px) {
  .ed-deck { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ed-primary { padding: 8px 11px; }
  .ed-search { flex-basis: 100%; }
  .ed-page .ed-learn-hero { grid-template-columns: 1fr 60px; }
  .ed-learn-hero img { height: 70px; }
  .ed-card-hero .ed-tags { gap: 3px; padding: 7px 0; }
}
