/* AIma article shelves: reuse the current site's palette, type and page header. */
#notesView,#notesView *,#notesView *::before,#notesView *::after{box-sizing:border-box}
#notesView .notes-header nav{max-width:100%;overflow-x:auto}
#notesView .notes-shelf-nav{display:flex;gap:36px;align-items:center;padding-top:21px;padding-bottom:21px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
#notesView .notes-shelf-nav a{display:flex;align-items:center;gap:12px;font-size:14px;font-weight:800;color:var(--ink)}
#notesView .notes-shelf-nav img{width:44px;height:44px;object-fit:cover;border-radius:7px}
#notesView .notes-shelf-nav a:hover{color:#8A5A1B}
#notesView .notes-shelf-nav a:focus-visible,#notesView .notes-shelves a:focus-visible{outline:3px solid #8A5A1B;outline-offset:5px}
#notesView .notes-shelves{padding-bottom:30px}
#notesView .notes-shelf{padding-top:42px;scroll-margin-top:110px}
#notesView .notes-shelf[hidden],#notesView .notes-shelf-nav[hidden]{display:none}
#notesView .notes-shelf-heading{border-top:3px solid #3A2E24;padding-top:16px;display:flex;align-items:baseline;justify-content:space-between;gap:20px;margin-bottom:25px}
#notesView .notes-shelf-heading h2{font-size:25px;line-height:1.5;margin:0;font-weight:800}
#notesView .notes-shelf-heading>span{font-size:12px;color:var(--text)}
#notesView .notes-story{display:grid;grid-template-columns:260px minmax(0,1fr);gap:32px;align-items:center;padding:0 0 25px}
#notesView .notes-story+.notes-story{border-top:1px solid var(--line);padding-top:25px}
#notesView .notes-story-image{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px;display:block}
#notesView .notes-story h3{font-size:clamp(23px,2.5vw,30px);line-height:1.55;letter-spacing:-.02em;margin:0 0 13px;font-weight:800;max-width:650px}
#notesView .notes-story p{color:var(--text);font-size:15px;line-height:1.9;max-width:620px;margin:0 0 22px}
#notesView .notes-story-read{display:inline-block;padding:10px 21px;border-radius:999px;background:var(--ink);color:#fff;font-size:13px;font-weight:800}
#notesView .notes-story-read:hover{background:#8A5A1B}
#notesView .notes-draft-label{display:inline-block;color:#8A5A1B;font-size:12px;font-weight:700;margin-bottom:13px}
#notesView .notes-draft-label+span{display:block}
#notesView .notes-substack-link{display:inline-block;font-size:12px;color:#8A5A1B;font-weight:800;margin:0 0 4px}
#notesView .notes-useful-row{display:grid;grid-template-columns:88px minmax(0,1fr) auto;gap:22px;align-items:center;padding:23px 0;border-bottom:1px solid var(--line)}
#notesView .notes-useful-row:first-child{padding-top:0}
#notesView .notes-useful-row img{display:block;width:88px;height:88px;object-fit:cover;border-radius:6px}
#notesView .notes-tags{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
#notesView .notes-tag{font-size:11px;line-height:1.6;color:#79551F;background:#EDE3D2;border-radius:999px;padding:2px 10px}
#notesView .notes-useful-row h3{font-size:19px;line-height:1.6;margin:0 0 5px;color:var(--ink)}
#notesView .notes-useful-row p{font-size:13px;line-height:1.9;color:var(--text);margin:0}
#notesView .notes-inline-read{font-size:12px;font-weight:800;white-space:nowrap;color:#8A5A1B}
#notesView .notes-behind-stories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
#notesView .notes-behind-card{display:grid;grid-template-columns:80px minmax(0,1fr);gap:17px;align-items:start;padding:21px;background:#FFFCF6;border:1px solid var(--line);border-radius:8px}
#notesView .notes-behind-card img{display:block;width:80px;height:80px;border-radius:6px;object-fit:cover}
#notesView .notes-behind-card h3{font-size:17px;margin:0 0 8px;line-height:1.6}
#notesView .notes-behind-card p{font-size:13px;color:var(--text);line-height:1.9;margin:0 0 12px}
#notesView .notes-guide-heading{display:flex;align-items:baseline;justify-content:space-between;gap:20px;margin:29px 0 14px}
#notesView .notes-guide-heading h3{font-size:16px;margin:0}
#notesView .notes-guide-heading a{font-size:12px;color:#8A5A1B;font-weight:800}
#notesView .notes-guide-shortlist{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
#notesView .notes-guide-shortlist a{display:block;padding:16px 0;border-top:1px solid var(--line)}
#notesView .notes-guide-shortlist h4{font-size:15px;margin:0 0 7px}
#notesView .notes-guide-shortlist p{font-size:12px;line-height:1.8;color:var(--text);margin:0 0 9px}
#notesView .notes-guide-shortlist span{font-size:12px;color:#8A5A1B;font-weight:800}
@media(max-width:760px){
 #notesView .notes-hero h1{font-size:clamp(25px,7.5vw,32px);line-height:1.35}
 #notesView .notes-shelf-nav{gap:18px;flex-wrap:wrap;padding-top:17px;padding-bottom:17px}
 #notesView .notes-shelf-nav a{font-size:12px;gap:8px}
 #notesView .notes-shelf-nav img{width:35px;height:35px}
 #notesView .notes-shelf{padding-top:30px;scroll-margin-top:150px}
 #notesView .notes-shelf-heading{display:block;margin-bottom:20px}
 #notesView .notes-shelf-heading h2{font-size:22px}
 #notesView .notes-shelf-heading>span{display:block;margin-top:5px}
 #notesView .notes-story{grid-template-columns:1fr;gap:22px}
 #notesView .notes-story-image{max-height:360px;aspect-ratio:1;object-fit:contain;background:#EFE5D6}
 #notesView .notes-story h3{font-size:24px;line-height:1.6}
 #notesView .notes-story p{font-size:14px}
 #notesView .notes-useful-row{grid-template-columns:66px minmax(0,1fr);gap:13px;align-items:start}
 #notesView .notes-useful-row img{width:66px;height:70px}
 #notesView .notes-useful-row h3{font-size:17px}
 #notesView .notes-useful-row>.notes-inline-read{grid-column:2}
 #notesView .notes-behind-stories{grid-template-columns:1fr;gap:15px}
 #notesView .notes-behind-card{padding:17px;grid-template-columns:65px minmax(0,1fr);gap:14px}
 #notesView .notes-behind-card img{width:65px;height:70px}
 #notesView .notes-guide-shortlist{grid-template-columns:1fr;gap:0}
}

#notesView .notes-guide-title{display:flex;gap:12px;align-items:center;margin-bottom:12px}
#notesView .notes-guide-title img{display:block;width:44px;height:44px;flex:0 0 44px;object-fit:contain;border-radius:10px}
#notesView .notes-guide-title h4{margin:0}
