.resource-reader{box-sizing:border-box;inset:0;width:100%;height:100%;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#f8faf7;color:#20332b;font:inherit}
.resource-reader[open]{display:flex;flex-direction:column}
.resource-reader::backdrop{background:#fff}
.resource-reader header{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;padding:calc(.5rem + env(safe-area-inset-top)) max(.65rem,env(safe-area-inset-right)) .5rem max(.65rem,env(safe-area-inset-left));border-bottom:1px solid #d8e2dd}
.resource-reader header strong{flex:1;min-width:5rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.resource-reader button,.resource-reader .reader-source{font:inherit;font-size:.92em;color:#174b3c;background:white;border:1px solid #becdc2;border-radius:.5rem;padding:.5rem .65rem;cursor:pointer}
.resource-reader .reader-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding-bottom:env(safe-area-inset-bottom)}
.resource-reader iframe{width:100%;height:100%;min-height:12rem;border:0;display:block;background:white}
.resource-reader .reader-list{max-width:48rem;margin:0 auto;padding:1rem;display:grid;gap:.65rem}
.resource-reader .reader-list article{background:white;padding:.8rem;border:1px solid #e0e6e2;border-radius:.5rem}
.resource-reader .reader-list h3{margin:0 0 .4rem;font:inherit;font-weight:bold}
.resource-reader img,.resource-reader video{max-width:100%;max-height:65vh;display:block;margin:.4rem auto}
.resource-reader .reader-list iframe{height:auto;aspect-ratio:16/9}

.resource-reader .native-article{box-sizing:border-box;max-width:44rem;width:100%;margin:0 auto;padding:clamp(16px,4vw,36px);line-height:1.6}
.native-article h1{font-size:clamp(1.45rem,4vw,2.1rem);line-height:1.18;margin:0 0 .45rem;overflow-wrap:anywhere}
.native-article .native-meta,.native-article small{color:#51665d;font-size:.9em}
.native-article p{margin:.7rem 0}
.resource-reader .native-article img{display:block;max-width:100%;max-height:70vh;width:auto;height:auto;margin:1rem auto;border-radius:.4rem}
.resource-reader .native-source{padding:.45rem max(.8rem,env(safe-area-inset-right)) max(.45rem,env(safe-area-inset-bottom));text-align:end;border-top:1px solid #d8e2dd}
.resource-reader .native-source a{font-size:.85rem;display:inline-block;padding:.2rem .4rem;border:0;background:transparent}
.reader-list summary{cursor:pointer;font-weight:600;padding:.6rem .2rem}
