/* «Тёплый журнал»: the approved reading surface stays within the app palette. */
@font-face{font-family:Lora;src:url('fonts/Lora.ttf') format('truetype');font-weight:400 700;font-display:swap}
.inspiration-screen{--journal-unit:calc(100cqw / 375)}
.inspiration-screen .news-article{
 margin:0;padding:calc(10 * var(--journal-unit)) calc(12 * var(--journal-unit)) 0;
 border:0;background:none;box-shadow:none;color:var(--dark);
}
.inspiration-screen .news-art{
 width:100%;height:auto;aspect-ratio:646 / 224;margin:0;
 border-radius:calc(10 * var(--journal-unit));
 /* Display only the supplied illustration region; keep the source unchanged. */
 background-image:url('assets/inspiration/article-reference.png');
 background-size:223.529412% auto;background-position:81.829574% 34.132841%;
 background-repeat:no-repeat;
}
.inspiration-screen .news-copy{margin:calc(8 * var(--journal-unit)) calc(4 * var(--journal-unit)) 0}
.inspiration-screen .news-article h2{
 margin:0;color:var(--dark);
 font-family:Lora,Georgia,serif;font-size:clamp(20px,5.866667cqw,24px);
 font-weight:500;line-height:1.25;letter-spacing:-.025em;
 overflow-wrap:break-word;text-wrap:pretty;
}
.inspiration-screen .news-article p{
 margin:0 0 calc(18 * var(--journal-unit));color:var(--dark);
 font-size:clamp(15px,4.266667cqw,18.35px);font-weight:400;line-height:1.5;
 overflow-wrap:break-word;
}
.inspiration-screen .news-article p:last-child{margin-bottom:0}
.inspiration-screen .news-end{
 height:0;margin:0 calc(4 * var(--journal-unit));
 border:0;border-top:1px solid rgb(86 56 45 / 16%);
}
.news-art{
 background-image:url('assets/inspiration/article-reference.png');
 background-size:223.529412% auto;background-position:81.829574% 34.132841%;
 background-repeat:no-repeat;
}
.news-art.has-news-image{background:none;position:relative;overflow:hidden;aspect-ratio:3 / 2}
.news-art.has-news-image .news-art-image{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;display:block}
.news-feed-status{margin:20px 16px;font-size:14px;line-height:1.5;color:var(--brown)}
.news-article{touch-action:pan-y pinch-zoom}
.news-read-end{display:block;height:1px}
.news-actions{display:flex;justify-content:flex-end;align-items:center;margin:0 4px;gap:10px;color:var(--brown)}
.news-book,.news-share{display:grid;place-items:center;width:44px;height:44px;border:0;background:transparent;padding:0;flex:none}
.news-book img{width:27px;height:21px}
.news-share img{width:19px;height:19px}
.news-reader-group{display:flex;align-items:center;gap:3px;flex:0 0 auto}
.news-actions .news-share{margin:0}
/* Match the supplied book SVG: #935F4C at 60% opacity. */
.news-read-count{font-size:13px;font-variant-numeric:tabular-nums;white-space:nowrap;min-width:0;text-align:right;opacity:.6}
.inspiration-screen .news-end{margin-top:0}
.favorites-screen{--journal-unit:calc(100cqw / 375)}
.favorites-people{padding:0 13px 0 17px}
.favorites-people .card-list{padding:0}
.favorites-people .person-card:last-child{border-bottom:0}
.favorites-divider{display:flex;align-items:center;min-height:28px;color:rgba(255,250,229,.5);gap:5px}
.favorites-divider::before{content:'';height:1px;background:currentColor;flex:1}
.favorites-expand{width:28px;height:28px;padding:0;background:none;border:0;display:grid;place-items:center;color:inherit;flex:none}
.expand-chevron{width:15px;height:9px;display:block;clip-path:polygon(0 0,50% 72%,100% 0,100% 14%,50% 88%,0 14%);background:currentColor}
.favorites-expand[aria-expanded=true] .expand-chevron{transform:rotate(180deg)}
.favorites-news{margin:30px 13px 20px 17px}
.favorites-news>h2{font-family:Roboto,Arial,sans-serif;font-size:16px;font-weight:400;text-align:center;margin:0;padding:5px 0 12px;border-bottom:1px solid rgba(255,250,229,.3)}
.favorite-news{position:relative;display:grid;grid-template-columns:37% minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;column-gap:12px;height:calc((100cqw - 30px) * .2775 + 24px);padding:12px 0;border-bottom:1px solid rgba(255,250,229,.3)}
.favorite-news:last-child{border-bottom:0}
.favorite-news-art{width:100%;height:100%;min-height:0;margin:0;grid-row:1 / 3;border-radius:8px;overflow:hidden;background-size:auto 584%;background-position:62% 34.132841%}
.favorite-news h3{font-size:clamp(12px,3.733333cqw,16px);font-weight:500;line-height:1.25;margin:0 0 3px;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.favorite-news-actions{display:flex;align-items:center;gap:4px;min-width:0;height:clamp(32px,9.6cqw,42px)}
.favorite-news-actions .news-book,.favorite-news-actions .news-share{width:clamp(28px,8.5cqw,36px);height:100%}
.favorite-news-actions img{filter:brightness(0) saturate(100%) invert(97%) sepia(16%) saturate(423%) hue-rotate(331deg) brightness(108%) contrast(101%)}
.favorite-news-actions .news-details{position:static;width:auto;min-width:72px;min-height:27px;margin-left:auto;padding:5px 10px;white-space:nowrap}
.favorites-empty{font-size:14px;line-height:1.5;opacity:.8;padding:14px 0;margin:0}
.news-share-modal h3{font-size:16px;margin:20px 0 8px}
.share-news-title{font-weight:500;line-height:1.4}
.share-recipient{display:flex;align-items:center;gap:12px;width:100%;padding:10px;background:transparent;border:1px solid var(--line);border-radius:12px;text-align:left}
.share-recipient .avatar{width:40px;height:40px}
.news-share-modal .share-messengers{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;align-items:center;margin:14px 0 10px}
.news-share-modal .share-option{display:flex;align-items:center;justify-content:center;min-height:44px;margin:0;padding:0;white-space:nowrap;font-size:clamp(11px,3.2cqw,14px);color:var(--brown);text-decoration:underline;text-align:center}
.news-share-modal .share-copy-button{min-height:44px;margin:0 auto;padding:0;color:var(--dark)}
.share-copy{height:220px;line-height:1.5}
.message-news{border:0;background:transparent;color:inherit;text-align:left;display:block;padding:0;width:100%;min-width:150px}
.message-news .news-art{display:block;width:100%;height:auto;aspect-ratio:646 / 224;border-radius:6px;margin-bottom:8px}
.message-news strong{display:block;line-height:1.3;font-weight:500}
.message-news>span:last-child{display:block;font-size:12px;opacity:.7;margin:7px 0}
@container phone (max-width:360px){.favorite-news{column-gap:10px}.favorite-news-actions{gap:3px}}

/* Preserve the complete illustration in the app, including its top and bottom. */
.inspiration-screen .news-art.has-news-image{aspect-ratio:3 / 2}
.inspiration-screen .news-art.has-news-image .news-art-image{object-fit:contain}
/* This original 3:1 panorama fills the existing 3:2 frame. Other images stay complete. */
.inspiration-screen [data-news-id="3e811a2b-7b1c-4ca8-9d39-7668e0941963"] .news-art.has-news-image .news-art-image:is([src$="-1193d508dabe0161.png"],[data-news-image$="-1193d508dabe0161.png"]){object-fit:cover;object-position:50% 50%}
.news-expand-row{display:flex;justify-content:flex-end;margin:0}
.news-expand{min-height:44px;min-width:44px;border:0;background:none;padding:4px 0 4px 12px;text-align:right;color:var(--brown);font-size:15px}
.news-text{padding-top:4px}
.inspiration-screen .news-actions{margin-top:0}

/* Preserve the visible article explicitly when refreshing the archive. */
.inspiration-screen .scroll{overflow-anchor:none}

.message-news .news-art.has-news-image{aspect-ratio:3 / 2}
.favorite-news-art.has-news-image{align-self:stretch;aspect-ratio:auto}
.favorite-news-art.has-news-image .news-art-image{object-fit:cover}

/* An empty result has its own invitation; loading, errors and privacy notices keep their existing flow. */
.notes-empty{margin:32px 17px 24px;padding:24px 18px;text-align:center;border:1px solid rgb(255 250 229 / 18%);border-radius:22px;background:rgb(255 250 229 / 6%);color:var(--cream)}
.notes-empty-note{display:block;width:32px;height:36px;margin:0 auto 16px;opacity:.8}
.notes-empty h2{margin:0 0 18px;font-size:clamp(22px,6.4cqw,27px);font-weight:500;line-height:1.2;text-wrap:balance}
.notes-empty p{margin:0;font-size:clamp(14px,4.266667cqw,18px);line-height:1.5;font-weight:400}
.notes-empty .notes-empty-link{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:48px;margin:22px 0 0;padding:10px 12px;border-radius:24px;font-size:clamp(13px,4cqw,17px);font-weight:400}
.notes-empty-link img{width:27px;height:21px;flex:none}
.notes-empty-reset{display:block;min-height:44px;margin:10px auto 0;font-size:13px}
