/* Public editorial layout. Deliberately independent of dashboard builder classes. */
.reading-intro { padding: 18px 22px; margin-bottom: 28px; border: 1px solid #c9e4d2; border-radius: 16px; background: #f1faf4; }
.reading-intro > span, .reading-activity__eyebrow { color: #087442; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.reading-intro p { margin: 8px 0 0; font-size: .9rem; }
.editorial-content .reading-activity { margin: 40px 0; padding: clamp(18px,4vw,32px); border: 1px solid #c9dfd1; border-radius: 22px; background: #f6fbf7; box-shadow: 0 10px 30px #133a2110; }
.editorial-content .reading-activity--poll { background: #f7f4eb; border-color: #e4dcc5; }
.editorial-content .reading-activity h2 { font-size: clamp(1.3rem,3vw,1.8rem); margin-top: 10px; }
.reading-activity fieldset { min-width: 0; border: 0; border-top: 1px solid #d5e5da; padding: 18px 0; margin: 18px 0 0; }
.reading-activity legend { font-weight: 700; font-size: 1rem; padding: 0 0 10px; }
.reading-option { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin: 8px 0; border: 1px solid #d3e1d7; border-radius: 10px; background: #fff; font-size: .93rem; cursor: pointer; }
.reading-option input { width: 18px; height: 18px; margin-top: 5px; flex-shrink: 0; accent-color: #087442; }
.reading-option:has(input:checked) { border-color: #087442; background: #e9f7ee; }
.reading-activity button { min-height: 44px; padding: 10px 16px; border: 1px solid #b9d4c3; border-radius: 10px; background: #fff; color: #173e2b; font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; }
.reading-activity button[type="submit"], .reading-activity button[aria-pressed="true"] { background: #087442; color: #fff; border-color: #087442; }
.reading-activity :is(button,input,summary):focus-visible { outline: 3px solid #d89b19; outline-offset: 3px; }
.reading-actions, .reading-poll-options { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.reading-activity .reading-feedback { color: #6e5015; font-size: .88rem; margin: 10px 0 0; }
.reading-activity .is-correct .reading-feedback { color: #087442; }
.reading-activity [data-activity-result] { font-weight: 650; font-size: .94rem; }
.reading-activity [data-activity-result]:empty, .reading-feedback:empty { display: none; }
.reading-activity details { margin-top: 18px; font-size: .9rem; }
.reading-activity summary { cursor: pointer; text-decoration: underline; }
.reading-activity .reading-clues { padding-left: 22px; font-size: .9rem; }
.wordsearch-grid { display: grid; grid-template-columns: repeat(9,minmax(0,1fr)); gap: 4px; max-width: 480px; margin: 24px 0; }
.wordsearch-grid button { padding: 0; min-height: 0; aspect-ratio: 1; border-radius: 6px; font-family: monospace; font-size: clamp(.8rem,3vw,1.15rem); }
.wordsearch-grid button.is-found { background: #c0edcf; border-color: #087442; color: #064f2b; }
.wordsearch-grid button.is-selected { outline: 3px solid #d89b19; outline-offset: -3px; }
.crossword-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 4px; max-width: 410px; margin: 24px 0; }
.crossword-cell { position: relative; display: block; min-width: 0; aspect-ratio: 1; }
.crossword-cell > span { position: absolute; top: 1px; left: 5px; font-size: .6rem; color: #52665a; pointer-events: none; }
.crossword-cell input { width: 100%; height: 100%; min-width: 0; padding: 7px 0 0; box-sizing: border-box; text-align: center; border: 1px solid #aac8b5; border-radius: 5px; background: #fff; color: #173e2b; font-size: 1.2rem; font-weight: 700; }
.crossword-cell input[aria-invalid="true"] { border: 2px dashed #b34622; background: #fff1ea; }
.crossword-cell input[aria-invalid="false"] { background: #d6f1df; }
.crossword-block { border-radius: 4px; background: #153b2920; }
.editorial-content .reading-source { font-size: .8rem; padding: 16px; background: #f1f6f3; border-left: 3px solid #087442; }
.editorial-content .reading-source a { text-decoration: underline; overflow-wrap: anywhere; }
.editorial-content .editorial-section--closing h2, .editorial-content .reading-contact { color: #dcffe7; }
.editorial-content .reading-contact { font-weight: 700; text-decoration: underline; }
#article-view .article-cover:has(img[src*="blog-idi"]) { aspect-ratio: 1200 / 680; height: auto; max-height: none; background: #102c21; }
#article-view .article-cover img[src*="blog-idi"] { height: auto; max-height: none; width: 100%; object-fit: contain; }
#article-view {
  --editorial-accent: #26744b;
  --editorial-ink: #163529;
  --editorial-soft: #f0f6f2;
  padding: 36px 0 80px;
  background: #fff;
}
#article-view > .blog-shell { width: min(1240px, calc(100% - 48px)); }
#article-view .breadcrumbs { margin: 0 0 48px; font-size: .8rem; }
#article-view .breadcrumbs span:last-child { overflow: hidden; text-overflow: ellipsis; }
#article-view .article-header { max-width: 940px; margin: 0 auto 40px; text-align: left; }
#article-view .article-header h1 {
  margin: 20px 0 24px;
  color: var(--editorial-ink);
  font-size: clamp(2.3rem, 4.7vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.045em;
  text-wrap: balance;
}
#article-view .article-lead { max-width: 800px; margin: 0 0 26px; font-size: clamp(1.08rem, 1.7vw, 1.25rem); line-height: 1.75; }
#article-view .article-meta { justify-content: flex-start; padding-top: 22px; border-top: 1px solid #dde8df; font-size: .83rem; }
#article-view .article-meta > span:first-child { font-weight: 700; color: var(--editorial-ink); }
#article-view .article-cover { max-width: 1240px; margin: 0 auto 58px; border-radius: 18px; box-shadow: none; background: var(--editorial-soft); }
#article-view .article-cover img { display: block; width: 100%; height: auto; max-height: 520px; aspect-ratio: 16/9; object-fit: cover; border: 0; border-radius: 0; box-shadow: none; }
#article-view .article-cover figcaption { padding: 12px 20px; color: #526b5d; font-size: .78rem; }
.editorial-layout {
  display: grid;
  grid-template-columns: 76px minmax(0, 980px);
  justify-content: center;
  gap: 36px;
  width: 100%;
  margin: 0 auto;
  align-items: start;
}
.editorial-layout > .share-box { grid-column: 1; grid-row: 1; display: flex; position: sticky; top: 110px; }
.editorial-content {
  grid-column: 2;
  grid-row: 1;
  display: block;
  width: 100%;
  min-width: 0;
  color: #384d41;
  font-family: var(--blog-body, 'DM Sans', sans-serif);
  font-size: 1.08rem;
  line-height: 1.85;
  overflow-wrap: break-word;
}
.editorial-content h2,
.editorial-content h3 { font-family: var(--blog-display, 'Manrope', sans-serif); color: var(--editorial-ink); font-weight: 800; letter-spacing: -.025em; line-height: 1.3; text-wrap: pretty; }
.editorial-content h2 { margin: 0 0 20px; font-size: clamp(1.55rem, 2.3vw, 2rem); scroll-margin-top: 110px; }
.editorial-content h3 { margin: 0 0 14px; font-size: 1.25rem; }
.editorial-content p { margin: 0 0 18px; }
.editorial-content p:last-child { margin-bottom: 0; }
.editorial-content ul,
.editorial-content ol { margin: 18px 0 0; padding-left: 24px; }
.editorial-content li { margin: 0 0 10px; padding-left: 5px; }
.editorial-content li::marker { color: var(--editorial-accent); }
.editorial-content strong { font-weight: 700; color: var(--editorial-ink); }
.editorial-media { margin: 8px 0 52px; }
.editorial-media img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 18px; box-shadow: 0 18px 46px rgba(18, 53, 36, .12); }
.editorial-media figcaption { margin-top: 12px; color: #65796d; font-size: .8rem; line-height: 1.5; text-align: center; }
.editorial-section { margin-bottom: 44px; }
.editorial-section--text { padding-bottom: 36px; border-bottom: 1px solid #e1e9e3; }
.editorial-section--intro { padding: 30px 32px; border-left: 4px solid var(--editorial-accent); border-radius: 0 16px 16px 0; background: var(--editorial-soft); }
.editorial-section--intro h2 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); }
.editorial-index { display: block; margin: 0 0 44px; padding: 26px 30px; border: 1px solid #dce6df; border-radius: 16px; background: #fafcfb; }
.editorial-index > div { margin-bottom: 18px; }
.editorial-index .eyebrow { display: block; margin: 0 0 4px; font-size: .65rem; color: var(--editorial-accent); }
.editorial-index strong { display: block; font-size: 1.15rem; }
.editorial-index nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.editorial-index a { display: flex; align-items: baseline; gap: 12px; padding: 12px 0; border-top: 1px solid #e1e9e3; font-size: .85rem; line-height: 1.5; color: #384d41; }
.editorial-index a span { flex: 0 0 22px; font-size: .72rem; font-weight: 800; color: var(--editorial-accent); }
.editorial-index a:hover { color: var(--editorial-accent); text-decoration: underline; }
.editorial-index a:focus-visible { outline: 2px solid var(--editorial-accent); outline-offset: 4px; }
.editorial-section--steps ol { list-style: none; counter-reset: editorial-step; padding: 0; }
.editorial-section--steps li { position: relative; counter-increment: editorial-step; margin: 0; padding: 20px 0 20px 56px; border-bottom: 1px solid #e1e9e3; }
.editorial-section--steps li::before { content: counter(editorial-step, decimal-leading-zero); position: absolute; left: 0; top: 22px; width: 36px; height: 36px; display: grid; place-items: center; background: var(--editorial-soft); color: var(--editorial-accent); border-radius: 50%; font-size: .78rem; font-weight: 800; }
.editorial-section--comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.editorial-column { min-width: 0; padding: 26px; border: 1px solid #dce6df; border-top: 3px solid var(--editorial-accent); border-radius: 12px; font-size: .96rem; background: #f8fbf9; }
.editorial-column + .editorial-column { border-top-color: #a7b8ad; background: #fff; }
.editorial-section--checklist { padding: 30px; background: var(--editorial-soft); border-radius: 16px; }
.editorial-section--checklist ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; list-style: none; padding: 0; }
.editorial-section--checklist li { position: relative; padding-left: 26px; margin: 0; font-size: .94rem; }
.editorial-section--checklist li::before { content: '✓'; position: absolute; left: 0; color: var(--editorial-accent); font-weight: 800; }
.editorial-section--closing { padding: 32px; border-radius: 16px; background: #173f2d; color: #e0eee4; }
.editorial-section--closing h3 { color: #fff; font-size: 1.5rem; }
#article-view .article-tags { max-width: 980px; margin: 20px auto 56px; }
#article-view .article-cta { max-width: 940px; margin: 0 auto 64px; box-shadow: none; }
#article-view .related { margin-top: 88px; border-top: 1px solid #dce6df; padding-top: 56px; }
#article-view .back-link { margin: 76px auto 54px; padding: 12px 20px; border: 1px solid #c9dfcf; border-radius: 999px; background: #f5faf6; }
#article-view .back-link:hover { border-color: var(--editorial-accent); background: #edf7ef; }
@media (max-width: 800px) {
  .editorial-layout { display: flex; flex-direction: column; gap: 28px; }
  .editorial-layout > .share-box { position: static; flex-direction: row; justify-content: flex-start; width: 100%; }
  .editorial-layout > .share-box > span { margin-right: 10px; }
  #article-view .article-cover { margin-bottom: 32px; }
  #article-view .back-link { margin-top: 56px; }
}
@media (max-width: 560px) {
  #article-view { padding-top: 24px; }
  #article-view > .blog-shell { width: calc(100% - 32px); }
  #article-view .breadcrumbs { margin-bottom: 28px; }
  #article-view .article-header { margin-bottom: 28px; }
  #article-view .article-header h1 { font-size: 2.2rem; }
  .editorial-content { font-size: 1rem; line-height: 1.8; }
  .editorial-index { padding: 22px; }
  .editorial-index nav,
  .editorial-section--comparison,
  .editorial-section--checklist ul { grid-template-columns: minmax(0, 1fr); }
  .editorial-section { margin-bottom: 32px; }
  .editorial-section--intro,
  .editorial-section--checklist,
  .editorial-section--closing { padding: 24px; }
  .editorial-media { margin-bottom: 38px; }
  .editorial-media img { border-radius: 12px; }
}
