/* Stable reading cards fit both themes and remain useful without JavaScript. */
.fd .nw-reading .fd-section-head {min-height:44px}
.fd .nw-reading-shuffle {display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px 12px;border:1px solid var(--fd-rule);border-radius:8px;background:var(--cv-panel);color:var(--cv-link);font:inherit;font-size:.85rem;line-height:1.3;cursor:pointer}
.fd .nw-reading-shuffle[hidden] {display:none}
.fd .nw-reading-shuffle:hover {background:var(--cv-elevated);border-color:var(--cv-accent)}
.fd .nw-reading-card {height:17rem;min-width:0;overflow:hidden}
.fd .nw-reading-card .fd-meta {white-space:nowrap;text-overflow:ellipsis;overflow:hidden;flex:none}
.fd .nw-reading-card h3 {display:block;overflow-wrap:anywhere;flex:none}
.fd .nw-reading-card h3 a {display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;max-height:4.2em}
.fd .nw-reading-card .nw-reading-excerpt {display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden;overflow-wrap:anywhere;max-height:6.2em;font-size:.92rem}
.fd .nw-reading-card small {display:block;flex:none;padding-top:6px}
.fd .nw-reading-example-links {display:inline-flex;align-items:center;gap:4px 14px;flex-wrap:wrap;min-height:32px;min-width:0}
.fd .nw-reading-example-links a {max-width:100%;min-width:0;overflow-wrap:anywhere}
.fd .nw-reading-status {position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;margin:-1px}
@media(max-width:620px) {
  .fd .nw-reading .fd-section-head {align-items:flex-start;align-content:flex-start;gap:8px;min-height:5.5rem}
  .fd .nw-reading-shuffle {max-width:100%;font-size:.8rem}
  .fd .nw-reading-card {height:16rem}
  .fd .nw-reading-examples {align-items:flex-start}
  .fd .nw-reading-example-links {flex:1 1 170px;min-height:64px;align-content:flex-start}
}
