/* Guide and worksheet, using the site's existing palette and type. */
.ew-material { max-width: 1320px; margin: var(--header-h) auto 0; padding: 64px var(--pad-x) 0; }
.ew-material :is(h1,h2,h3,h4) { font-family: var(--font-display); text-transform: none; font-weight: 700; letter-spacing: -.035em; }
.ew-material :is(section,textarea,a) { scroll-margin-top: 104px; }
.ew-material p { line-height: 1.75; }
.ew-material p + p { margin-top: 1.1em; }
.ew-material a:not(.ew-example-nav a,.ew-contents a,.ew-example__use,.ew-colophon a) { text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; }
.ew-material :is(a,button,textarea):focus-visible { outline: 2px solid var(--steel); outline-offset: 5px; }
.ew-material button { font: inherit; color: inherit; cursor: pointer; border-radius: var(--radius-control, 6px); }
.ew-material [hidden] { display: none !important; }
.ew-skip { position: fixed; top: -100px; left: 20px; z-index: 120; background: var(--ink); color: var(--bone); padding: 14px 20px; border-radius: var(--radius-control, 6px); }
.ew-skip:focus { top: 14px; }
.ew-js-only { display: none !important; }
.ew-enhanced .ew-js-only { display: flex !important; }
.ew-hero h1 { font-size: clamp(35px,4.7vw,66px); line-height: 1.22; max-width: 1050px; margin: 0 0 20px; }
.ew-date,.ew-language { color: var(--steel); font-size: 13px; }
.ew-date { margin-bottom: 30px; }
.ew-language { margin-top: 24px; }
.ew-intro { max-width: 820px; }
.ew-intro p { font-size: 17px; }
.ew-intro p:first-child { font-size: 21px; line-height: 1.65; }
.ew-contents { margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.ew-contents a { padding: 10px 0; display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.5; }
.ew-contents a:hover { text-decoration: underline; text-underline-offset: .22em; }
.ew-contents a span { font-size: 20px; }
.ew-guide { max-width: 760px; margin: 88px auto; }
.ew-reading { max-width: 760px; min-width: 0; }
.ew-reading h2,.ew-examples__intro h2,.ew-worksheet h2 { font-size: clamp(24px,2.4vw,32px); line-height: 1.4; margin-bottom: 25px; }
.ew-reading p,.ew-examples__intro p { font-size: 17px; }
.ew-examples { padding-top: 40px; }
.ew-examples__intro { max-width: 760px; margin-left: auto; margin-right: auto; }
.ew-fiction-note { max-width: 760px; margin: 30px auto; color: var(--steel); font-size: 14px; }
.ew-example-nav { display: grid; grid-template-columns: 1fr 1fr 1.12fr; gap: 8px; }
.ew-example-nav a { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: start; padding: 16px 18px; border: 1px solid var(--taupe); border-radius: var(--radius-control, 6px); font-size: 14px; line-height: 1.5; transition: background .18s,color .18s; }
.ew-example-nav a span:last-child { font-size: 20px; }
.ew-example-nav a[aria-current] { background: color-mix(in srgb,var(--taupe) 30%,transparent); border-color: var(--steel); }
.ew-example-nav a:hover { background: color-mix(in srgb,var(--taupe) 25%,transparent); }
.ew-example-nav__help { font-size: 12px; color: var(--steel); margin-top: 12px; }
.ew-example { margin-top: 55px; }
.ew-example + .ew-example { padding-top: 45px; border-top: 1px solid var(--taupe); }
.ew-example__header { max-width: 760px; }
.ew-example__header h3 { font-size: clamp(24px,2.5vw,34px); line-height: 1.4; margin: 0 0 20px; }
.ew-example__header p { font-size: 16px; }
.ew-facts { display: grid; grid-template-columns: 1fr 3fr; gap: 32px; margin: 30px 0 35px; }
.ew-facts h4,.ew-annotations > h4 { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0; font-weight: 500; line-height: 1.6; }
.ew-facts ul { display: grid; gap: 9px; font-size: 14px; line-height: 1.7; }
.ew-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.ew-comparison section { padding: 23px 30px 28px 0; border-top: 1px solid var(--taupe); }
.ew-comparison section + section { padding-left: 32px; padding-right: 0; }
.ew-comparison h4 { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0; margin-bottom: 20px; }
.ew-comparison p { font-size: 20px; line-height: 1.85; }
.ew-comparison__before p { color: var(--steel); }
.ew-fragment { text-decoration-color: var(--taupe); }
.ew-fragment sup { font-family: var(--font-mono); font-size: 10px; margin-left: 3px; color: var(--steel); line-height: 0; }
.ew-annotations { margin: 15px 0 42px; }
.ew-annotations > h4 { margin-bottom: 20px; }
.ew-annotations ol { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 48px; }
.ew-annotations li { display: flex; gap: 15px; }
.ew-note-number { flex: 0 0 18px; margin-top: 2px; font-family: var(--font-mono); font-size: 11px; line-height: 1.75; color: var(--steel); }
.ew-annotations strong { font-size: 13px; line-height: 1.65; font-weight: 600; }
.ew-annotations p { font-size: 13px; margin-top: 7px; line-height: 1.75; }
.ew-annotations li:target { outline: 1px solid var(--steel); outline-offset: 8px; }
.ew-specimens { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.ew-specimen { border-top: 1px solid var(--taupe); padding-top: 25px; }
.ew-specimen h4 { font-size: 19px; line-height: 1.55; margin: 0 0 8px; }
.ew-specimen .ew-specimen__type { color: var(--steel); font-size: 12px; margin-bottom: 20px; }
.ew-specimen p { font-size: 14px; }
.ew-example__conclusion { max-width: 760px; margin: 34px 0 0; font-size: 14px; }
.ew-limit { padding-left: 18px; border-left: 2px solid var(--taupe); color: var(--steel); }
.ew-example__use { width: max-content; max-width: 100%; align-items: center; gap: 35px; padding: 14px 0; border-bottom: 1px solid var(--ink); margin-top: 22px; font-size: 14px; }
.ew-example__use span { font-size: 23px; }
.ew-worksheet { padding: 0; margin: 0; }
.ew-worksheet__header { max-width: 760px; }
.ew-worksheet__header h2 { margin-bottom: 18px; }
.ew-worksheet__header p { font-size: 16px; }
.ew-seed { justify-content: space-between; align-items: center; gap: 25px; padding: 0; margin-top: 30px; }
.ew-seed .ew-seed__label { font-size: 12px; color: var(--steel); }
.ew-seed p { font-size: 14px; margin-top: 4px; }
.ew-seed button { flex: 0 0 auto; background: none; border: 1px solid var(--steel); padding: 13px 15px; font-size: 13px; }
.ew-seed button span { margin-left: 14px; }
.ew-form { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 34px; margin-top: 32px; }
.ew-field { min-width: 0; display: flex; flex-direction: column; }
.ew-field label { display: flex; align-items: baseline; gap: 12px; font-size: 14px; font-weight: 600; line-height: 1.6; }
.ew-field > p { font-size: 12px; line-height: 1.65; margin: 9px 0 13px; }
.ew-field textarea { width: 100%; min-height: 125px; resize: vertical; border: 1px solid var(--taupe); background: color-mix(in srgb,var(--bone) 80%,transparent); padding: 14px; font-family: var(--font-body); font-size: 15px; color: var(--ink); line-height: 1.65; margin-top: auto; border-radius: var(--radius-control, 6px); }
.ew-field textarea:focus { border-color: var(--steel); }
.ew-field--draft textarea { min-height: 185px; border-color: var(--steel); }
.ew-actions { flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 30px; }
.ew-actions button,.ew-manual button { background: none; border: 1px solid var(--taupe); padding: 14px 16px; font-size: 12px; line-height: 1.5; }
.ew-actions button span { margin-left: 12px; }
.ew-actions .ew-action-primary { background: var(--steel); color: var(--bone); border-color: var(--steel); }
.ew-actions .ew-reset { margin-left: auto; border-color: transparent; text-decoration: underline; text-underline-offset: .25em; }
.ew-actions button:hover,.ew-seed button:hover,.ew-manual button:hover { background: var(--ink); color: var(--bone); }
.ew-status { font-size: 13px; color: var(--steel); min-height: 23px; margin-top: 15px; }
.ew-manual { border-top: 1px solid var(--taupe); margin-top: 18px; padding-top: 22px; }
.ew-manual label { font-weight: 600; font-size: 14px; }
.ew-manual p { font-size: 13px; margin-top: 9px; }
.ew-manual textarea { display: block; margin: 15px 0; width: 100%; padding: 14px; border: 1px solid var(--steel); border-radius: var(--radius-control, 6px); background: var(--bone); color: var(--ink); font: 14px/1.7 var(--font-body); resize: vertical; }
.ew-worksheet__notes { margin-top: 18px; padding-top: 20px; border-top: 1px solid var(--taupe); max-width: 760px; }
.ew-worksheet__notes p { font-size: 12px; color: var(--steel); }
.ew-worksheet__notes p + p { margin-top: 8px; }
.ew-print-value { display: none; }
.ew-noscript { padding: 20px 0; font-size: 14px; }
.ew-telegram { margin: 0 auto 70px; padding-top: 34px; border-top: 1px solid var(--taupe); }
.ew-colophon { padding: 0 0 35px; font-size: 13px; line-height: 1.6; }
@media (max-width: 900px) {
  .ew-material { padding-top: 38px; }
  .ew-guide { margin: 75px auto; }
  .ew-example-nav a { padding: 20px 14px; gap: 9px; font-size: 12px; }
  .ew-seed { align-items: flex-start; flex-direction: column; gap: 15px; }
  .ew-actions .ew-reset { margin-left: 0; }
}
@media (max-width: 600px) {
  .ew-material { padding-top: 27px; }
  .ew-hero h1 { font-size: 34px; letter-spacing: -.04em; line-height: 1.28; margin: 0 0 16px; overflow-wrap: normal; }
  .ew-date { font-size: 12px; margin-bottom: 24px; }
  .ew-intro p { font-size: 15px; }
  .ew-intro p:first-child { font-size: 18px; line-height: 1.7; }
  .ew-contents { flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 26px; }
  .ew-contents a { padding: 12px 0; font-size: 13px; }
  .ew-guide { margin: 57px auto; }
  .ew-reading h2,.ew-examples__intro h2,.ew-worksheet h2 { font-size: 23px; line-height: 1.45; margin-bottom: 21px; }
  .ew-reading p,.ew-examples__intro p { font-size: 15px; }
  .ew-examples { padding-top: 28px; }
  .ew-fiction-note { font-size: 13px; margin: 25px 0; }
  .ew-example-nav { grid-template-columns: 1fr; }
  .ew-example-nav a { padding: 15px; font-size: 13px; gap: 12px; }
  .ew-example-nav__help { font-size: 11px; line-height: 1.65; }
  .ew-example { margin-top: 36px; }
  .ew-example__header h3 { font-size: 24px; }
  .ew-example__header p { font-size: 14px; }
  .ew-facts { grid-template-columns: 1fr; gap: 13px; margin: 25px 0; }
  .ew-facts ul { font-size: 12px; }
  .ew-comparison { grid-template-columns: 1fr; }
  .ew-comparison section,.ew-comparison section + section { padding: 20px 0 27px; }
  .ew-comparison h4 { margin-bottom: 13px; font-size: 11px; }
  .ew-comparison p { font-size: 18px; }
  .ew-annotations { margin: 7px 0 30px; }
  .ew-annotations ol { grid-template-columns: 1fr; gap: 20px; }
  .ew-annotations li { gap: 12px; }
  .ew-annotations p,.ew-annotations strong { font-size: 12px; }
  .ew-specimens { grid-template-columns: 1fr; gap: 32px; }
  .ew-specimen { padding-top: 20px; }
  .ew-specimen h4 { font-size: 18px; }
  .ew-specimen p,.ew-example__conclusion { font-size: 13px; }
  .ew-worksheet__header p { font-size: 14px; }
  .ew-worksheet h2 { font-size: 22px; }
  .ew-seed { margin-top: 24px; }
  .ew-seed p { font-size: 12px; }
  .ew-seed button { width: 100%; text-align: left; display: flex; justify-content: space-between; font-size: 12px; }
  .ew-form { grid-template-columns: 1fr; gap: 25px; margin-top: 25px; }
  .ew-field label { font-size: 13px; gap: 9px; }
  .ew-field > p { font-size: 11px; margin: 8px 0 12px; }
  .ew-field textarea { font-size: 16px; min-height: 130px; padding: 12px; }
  .ew-field--draft textarea { min-height: 195px; }
  .ew-enhanced .ew-actions { display: grid !important; grid-template-columns: 1fr 1fr; gap: 9px; }
  .ew-actions button { padding: 12px 9px; font-size: 11px; }
  .ew-actions .ew-action-primary { grid-column: 1/-1; text-align: left; display: flex; justify-content: space-between; padding: 14px; }
  .ew-actions .ew-reset { grid-column: 1/-1; justify-self: start; padding-left: 0; }
  .ew-worksheet__notes p { font-size: 11px; }
  .ew-colophon { flex-direction: column; gap: 10px; padding-top: 20px; }
  .ew-telegram { margin-bottom: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .page-explain-work { scroll-behavior: auto; }
  html:has(.page-explain-work) { scroll-behavior: auto; }
  .ew-example-nav a { transition: none; }
}
@media print {
  @page { margin: 17mm; }
  html,body.page-explain-work { overflow: visible; max-width: none; background: var(--bone); }
  .page-explain-work :is(.site-header,.archive-head,.site-footer,.ew-skip,.ew-hero,.ew-guide,.ew-examples,.ew-telegram,.ew-colophon,.ew-js-only,.ew-status,.ew-manual,.ew-worksheet__notes,.ew-noscript) { display: none !important; }
  .ew-material { max-width: none; margin: 0; padding: 0; }
  .ew-worksheet { border: 0; margin: 0; padding: 0; }
  .ew-worksheet__header h2 { font-size: 23px; }
  .ew-worksheet__header p { font-size: 11px; line-height: 1.6; }
  .ew-form { display: block; margin-top: 23px; }
  .ew-field { display: block; margin: 0 0 20px; break-inside: avoid; }
  .ew-field label { font-size: 12px; }
  .ew-field > p { font-size: 9px; margin: 5px 0 7px; }
  .ew-enhanced .ew-field textarea { display: none; }
  .ew-field textarea { min-height: 80px; font-size: 11px; }
  .ew-enhanced .ew-print-value { display: block; white-space: pre-wrap; overflow-wrap: anywhere; font: 11px/1.6 var(--font-body); padding: 0 0 10px; border-bottom: 1px solid var(--taupe); min-height: 25px; }
}
