/* Scope every Poetry override. Existing Home, auth, profiles and Horoscope
   retain their own geometry and the same global Home navigation. */
.herday-shared-logo{object-fit:contain}
html:has(>body.poetry-mode){background:var(--cream)}
body.poetry-mode{background:var(--cream);padding-bottom:var(--poetry-nav-reserve,84px)}
body.poetry-mode .nav div:first-child{opacity:1}
.beauty-shell.poetry-shell{width:96%;max-width:544px;margin-inline:auto;padding:0;color:#23114c}
.poetry-page{font-family:'Nimbus Roman','Times New Roman',Times,serif;padding:5px 0 6px;--poetry-ink:#23114c;--poetry-muted:#8290ab;--poetry-accent:#df247b;--poetry-surface:#fdf8fc;--poetry-line:#f3dfe9;color:var(--poetry-ink)}
.poetry-page *{box-sizing:border-box}
.poetry-page button{cursor:pointer;color:inherit;font:inherit}
.poetry-page button:focus-visible,.poetry-page input:focus-visible,.poetry-page textarea:focus-visible,.poetry-page select:focus-visible,.poetry-card:focus-visible{outline:2px solid var(--poetry-accent);outline-offset:3px}
.poetry-page h1,.poetry-page h2,.poetry-page h3{font-family:'Nimbus Roman','Times New Roman',Times,serif;font-weight:700;white-space:normal;overflow-wrap:break-word;line-height:1.05;margin:0;color:inherit}
.poetry-page p{font:inherit;white-space:normal;margin:0;color:inherit}
.poetry-icon{width:1.35em;height:1.35em;display:block;flex-shrink:0}
.poetry-header{height:29px;display:flex;align-items:center;justify-content:space-between;margin:0 5px 0}
.poetry-header .logo{width:88px;height:auto;display:block}
.poetry-back{display:grid;place-items:center;border:0;background:none;padding:0;width:28px;height:28px}
.poetry-back .poetry-icon{width:23px;height:23px}
.poetry-intro{margin:0 5px 8px}
.poetry-intro h1{font-size:clamp(30px,9.25vw,47px);letter-spacing:-.5px}
.poetry-intro p{font-size:clamp(15px,4.4vw,23px);line-height:1.16;margin-top:2px}
.poetry-hero{display:block;border-radius:12px;object-fit:cover;width:calc(100% - 6px);margin-inline:3px}
.poetry-main-hero{aspect-ratio:2059/764}
.poetry-submit-shortcut{width:calc(100% - 6px);margin:7px 3px 0;background:#df247b;border:0;border-radius:15px;min-height:32px;display:flex;align-items:center;justify-content:center;gap:10px;font-size:17px!important;color:#fff2f8!important}
.poetry-submit-shortcut .poetry-icon{width:17px;height:17px}
.poetry-shortcuts{display:flex;gap:5px;margin:7px 3px 10px;align-items:stretch}
.poetry-shortcuts button{flex:1 0 auto;background:var(--poetry-surface);border:1px solid var(--poetry-line);border-radius:99px;padding:6px 7px;font-size:clamp(11px,3.2vw,16px);white-space:nowrap;box-shadow:0 1px 3px #d9a5bd15}
.poetry-shortcuts .active{background:#df247b;border-color:#df247b;color:#fff2f8}
.poetry-latest-row{display:flex;align-items:center;gap:13px;margin:0 3px 6px}
.poetry-latest-row h2{font-size:clamp(18px,5.25vw,27px);flex-shrink:0}
.poetry-search{display:flex;align-items:center;gap:9px;min-width:0;background:var(--poetry-surface);border:1px solid var(--poetry-line);border-radius:99px;height:29px;padding:0 11px;flex:1}
.poetry-search .poetry-icon{width:16px;height:16px}
.poetry-search input{width:100%;min-width:0;padding:0;border:0;background:transparent;color:inherit;font:12px 'Nimbus Roman','Times New Roman',Times,serif;outline:none;height:100%}
.poetry-page input::placeholder,.poetry-page textarea::placeholder{color:var(--poetry-muted);opacity:1}
.poetry-feed{display:grid;gap:7px}
.poetry-card{position:relative;min-width:0;border:1px solid var(--poetry-line);border-radius:12px;background:var(--poetry-surface);box-shadow:0 1px 3px #d9a5bd12;padding:5px 10px 7px;overflow-wrap:break-word}
.poetry-card[data-poetry-card]{cursor:pointer}
.poetry-meta{display:grid;grid-template-columns:34px minmax(0,1fr) 17px;gap:9px;align-items:start;position:relative}
.poetry-avatar{display:block;width:34px;height:34px;border-radius:50%;object-fit:cover;flex-shrink:0}
.poetry-author-copy{min-width:0;padding-top:3px}
.poetry-author-copy>b{font-size:13px;font-weight:400;display:block;line-height:1.15}
.poetry-meta-line{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-top:2px;font-size:11px;line-height:1.2;color:var(--poetry-muted)}
.poetry-meta-line time{white-space:nowrap}
.poetry-badge{display:inline-flex;align-items:center;gap:5px;padding:2px 8px;border-radius:99px;background:#fde9f2;color:#cc377e;font-size:10px;line-height:1.1;max-width:100%}
.poetry-badge .poetry-icon{width:12px;height:12px}
.poetry-menu{width:18px;height:24px;display:grid;place-items:center;background:none;border:0;padding:0;margin-top:4px}
.poetry-menu .poetry-icon{width:15px;height:17px}
.poetry-preview-flow{display:flow-root;margin-top:5px}
.poetry-card h3{font-size:clamp(16px,4.4vw,23px);line-height:1.04;margin:0 0 4px;letter-spacing:-.35px}
/* Native float wrapping constrains only intersecting line boxes. After the
   thumbnail's bottom, subsequent text uses the entire content width. */
.poetry-thumbnail{float:right;width:26.5%;aspect-ratio:1;object-fit:cover;border-radius:6px;margin:-15px 0 5px 12px;display:block}
.poetry-preview{font-size:clamp(12px,3.65vw,19px);line-height:1.1}
.poetry-preview p+p{margin-top:12px}
.poetry-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;clear:both;margin-top:10px}
.poetry-actions button{display:flex;align-items:center;gap:6px;white-space:nowrap;padding:0;background:none;border:0;font-size:clamp(10px,2.9vw,15px);line-height:1.2;min-height:22px}
.poetry-actions .poetry-icon{width:17px;height:18px}
.poetry-actions .poetry-like .poetry-icon{color:#e32d7a;stroke:none}
.poetry-options{position:absolute;right:8px;top:27px;z-index:5;display:grid;background:var(--poetry-surface);border:1px solid var(--poetry-line);border-radius:8px;box-shadow:0 2px 9px #39142a16;padding:5px}
.poetry-options button{border:0;background:none;text-align:left;padding:7px 16px;font-size:13px}
.poetry-popular-heading{font-size:clamp(19px,5.3vw,28px)!important;margin:9px 5px 5px!important}
.poetry-popular-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;align-items:stretch}
.poetry-popular-card{padding:5px 9px 6px;display:flex;flex-direction:column}
.poetry-popular-card .poetry-meta{grid-template-columns:30px minmax(0,1fr) 12px;gap:7px}
.poetry-popular-card .poetry-avatar{width:30px;height:30px}
.poetry-popular-card .poetry-author-copy>b{font-size:12px}
.poetry-popular-card .poetry-meta-line{font-size:10px;gap:4px}
.poetry-popular-card .poetry-badge{font-size:9px;padding:2px 5px;gap:3px}
.poetry-popular-card .poetry-badge .poetry-icon{width:10px;height:10px}
.poetry-popular-card .poetry-menu{width:12px}
.poetry-popular-card .poetry-preview-flow{margin-top:6px}
.poetry-popular-card h3{font-size:clamp(14px,3.8vw,20px);line-height:1;letter-spacing:-.4px}
.poetry-popular-card .poetry-preview{font-size:clamp(10px,3vw,15px);line-height:1.1}
.poetry-popular-card .poetry-thumbnail{width:27%;margin:-4px 0 3px 4px;border-radius:5px}
.poetry-popular-card .poetry-actions{margin-top:auto;padding-top:7px;gap:4px}
.poetry-popular-card .poetry-actions button{font-size:clamp(8px,2.4vw,12px);gap:3px;min-height:18px}
.poetry-popular-card .poetry-actions .poetry-icon{width:13px;height:14px}
.poetry-empty{font-size:15px!important;line-height:1.4!important;padding:20px 10px!important;color:var(--poetry-muted)!important}
/* Full reading detail: independently observed hierarchy; no media region is
   rendered at all when the record has no image. */
.poetry-detail .poetry-intro{margin-bottom:11px}
.poetry-full-post{padding:10px 14px 13px}
.poetry-full-post .poetry-meta{grid-template-columns:45px minmax(0,1fr) 18px;gap:12px}
.poetry-full-post .poetry-avatar{width:45px;height:45px}
.poetry-full-post .poetry-author-copy>b{font-size:16px;font-weight:700}
.poetry-full-post .poetry-meta-line{font-size:13px;margin-top:5px;gap:7px}
.poetry-full-post .poetry-badge{font-size:13px;padding:3px 9px;gap:7px}
.poetry-full-post .poetry-menu{margin-top:5px}
.poetry-full-post h3{font-size:clamp(23px,6.55vw,34px);margin:15px 0 12px;letter-spacing:-.5px}
.poetry-full-body{font-size:clamp(16px,4.45vw,23px);line-height:1.16}
.poetry-full-body p+p{margin-top:18px}
.poetry-full-post .poetry-actions{border-top:1px solid #f0e2eb;padding-top:14px;margin-top:18px}
.poetry-full-post .poetry-actions button{font-size:clamp(12px,3.45vw,18px);gap:8px}
.poetry-full-post .poetry-actions .poetry-icon{width:21px;height:21px}
.poetry-comments{margin:14px 5px 0}
.poetry-comments>h2{font-size:clamp(21px,5.5vw,29px);margin:0 0 11px}
.poetry-comment{display:grid;grid-template-columns:43px minmax(0,1fr) 17px;gap:12px;margin-bottom:18px;position:relative}
.poetry-comment .poetry-avatar{width:43px;height:43px}
.poetry-comment-copy{min-width:0;font-size:14px;line-height:1.2;padding-top:2px}
.poetry-comment-copy b{font-size:14px;display:block;line-height:1.2}
.poetry-comment-copy time{display:block;color:var(--poetry-muted);font-size:13px;margin:2px 0 3px}
.poetry-comment-copy p{line-height:1.25;overflow-wrap:anywhere}
.poetry-composer{display:flex;align-items:center;gap:10px;margin:0 -4px}
.poetry-composer-avatar,.poetry-composer .poetry-avatar{width:38px;height:38px;flex:none}
.poetry-user-initial{display:grid;place-items:center;background:#fde9f2;color:#cc377e;font:17px Poppins,sans-serif}
.poetry-composer-input{min-width:0;flex:1;display:flex;align-items:center;gap:7px;border:1px solid var(--poetry-line);border-radius:99px;background:var(--poetry-surface);height:39px;padding:3px 6px 3px 15px}
.poetry-composer input{min-width:0;flex:1;width:100%;background:none;border:0;outline:0;padding:0;font:14px 'Nimbus Roman','Times New Roman',Times,serif;color:inherit}
.poetry-composer button{border:0;border-radius:50%;width:31px;height:31px;flex:none;background:#e3237e;color:#fff;display:grid;place-items:center;padding:7px}
.poetry-composer button .poetry-icon{width:18px;height:18px}
.poetry-detail-image{display:block;width:75.5%;aspect-ratio:1;object-fit:cover;border-radius:10px;margin:0 auto 8px}
.image-detail .poetry-full-post{padding-bottom:9px}
.image-detail .poetry-full-post h3{margin:13px 0 8px}
.image-detail .poetry-full-body{font-size:clamp(14px,3.9vw,20px);line-height:1.14}
.image-detail .poetry-full-body p+p{margin-top:11px}
.image-detail .poetry-full-post .poetry-actions{margin-top:10px;padding-top:9px}
.image-detail .poetry-comments{margin-top:8px}
.image-detail .poetry-comments>h2{font-size:clamp(20px,5vw,26px);margin-bottom:8px}
.image-detail .poetry-comment{grid-template-columns:38px minmax(0,1fr) 17px;gap:13px;margin-bottom:10px}
.image-detail .poetry-comment .poetry-avatar{width:38px;height:38px}
.image-detail .poetry-comment-copy,.image-detail .poetry-comment-copy b{font-size:12px}
.image-detail .poetry-comment-copy time{font-size:11px;margin:1px 0 2px}
.image-detail .poetry-composer-input{height:33px;padding-left:12px;padding-right:3px}
.image-detail .poetry-composer input{font-size:12px}
.image-detail .poetry-composer-avatar,.image-detail .poetry-composer .poetry-avatar{width:33px;height:33px}
.image-detail .poetry-composer button{width:28px;height:28px;padding:6px}
/* Submit: one enclosing form, consistent independent input outlines. */
.poetry-submit .poetry-header,.poetry-categories .poetry-header{margin-bottom:18px}
.poetry-submit .poetry-intro{margin:0 9px 13px}
.poetry-submit .poetry-intro p{font-size:clamp(15px,4.2vw,22px);margin-top:5px}
.poetry-form{padding:15px 14px 13px;border:1px solid var(--poetry-line);background:var(--poetry-surface);border-radius:13px;box-shadow:0 1px 3px #d9a5bd12}
.poetry-form>label:not(.poetry-add-image){display:block;font-size:16px;font-weight:700;margin:0 2px 7px}
.poetry-form>input:not([type=file]),.poetry-form select,.poetry-form textarea{display:block;width:100%;border:1px solid #e8dce8;border-radius:10px;background:#fef8fc;color:inherit;font:15px 'Nimbus Roman','Times New Roman',Times,serif;padding:11px;outline:none}
.poetry-form>input:not([type=file]){height:40px;margin-bottom:17px}
.poetry-category-select{position:relative;margin-bottom:18px}
.poetry-form select{height:40px;padding-right:38px;appearance:none}
.poetry-form select:has(option[value=""]:checked){color:var(--poetry-muted)}
.poetry-category-select .poetry-icon{position:absolute;width:14px;height:14px;right:13px;top:13px;pointer-events:none}
.poetry-form textarea{min-height:237px;resize:vertical;padding-top:12px;margin-bottom:18px;line-height:1.35}
.poetry-image-label{font-size:16px;margin:0 2px 11px}
.poetry-image-label span{font-weight:400;color:var(--poetry-muted);font-size:15px}
.poetry-form .poetry-add-image{width:max-content;min-width:143px;height:42px;border:1px solid #29234d;border-radius:11px;display:flex;align-items:center;justify-content:center;gap:12px;font-size:16px;font-weight:700;cursor:pointer}
.poetry-add-image .poetry-icon{width:19px;height:19px}
.poetry-file-input{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.poetry-add-image:has(+input:focus-visible){outline:2px solid var(--poetry-accent);outline-offset:3px}
.poetry-image-helper{font-size:12px!important;color:var(--poetry-muted)!important;margin:5px 2px 0!important;line-height:1.3!important}
.poetry-selected-file{font-size:12px!important;color:var(--poetry-muted)!important;margin-top:6px!important;overflow-wrap:anywhere}
.poetry-guidance{border-top:1px solid #f0e2ea;padding-top:12px;margin-top:16px;display:flex;align-items:center;gap:10px;font-size:12px;line-height:1.3}
.poetry-guidance .poetry-icon{width:19px;height:19px}
.poetry-final-submit{border:0;background:#df2578;color:#fff2f8!important;border-radius:11px;width:100%;min-height:42px;font-size:19px!important;font-weight:700!important;margin-top:15px}
/* Category rows size themselves independently. Grid stretch makes the short
   card share its row's taller height; later rows return to the base height. */
.poetry-categories .poetry-intro{margin:0 10px 12px}
.poetry-categories .poetry-intro p{margin-top:5px}
.poetry-categories-hero{aspect-ratio:646/356;border-radius:15px}
.poetry-categories>h2{font-size:clamp(25px,6.9vw,36px);margin:18px 5px 12px}
.poetry-category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:0 3px;align-items:stretch}
.poetry-category-card{border:1px solid var(--poetry-line);background:var(--poetry-surface);border-radius:13px;display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:58px;padding:20px 12px 20px 16px;text-align:left;box-shadow:0 1px 3px #d9a5bd12}
.poetry-category-card span{min-width:0;font-size:clamp(14px,3.9vw,21px);font-weight:700;line-height:1.1;overflow-wrap:break-word}
.poetry-category-card .poetry-icon{width:6px;height:12px;color:#cf2e84;flex:none}
/* Dynamic category feed: serif headings and sans-serif metadata/body. */
.poetry-category-feed{--poetry-ink:#372758;--poetry-muted:#766b83;--poetry-accent:#c31461;--poetry-line:#f5e9ef;--poetry-surface:#fdf8fc}
.poetry-category-feed .poetry-header{height:38px;margin-top:8px;margin-bottom:11px}
.poetry-category-feed .poetry-intro{margin-bottom:14px}
.poetry-category-feed .poetry-intro p{color:#766b83;font-size:clamp(15px,4.05vw,21px);margin-top:6px}
.poetry-feed-controls{display:flex;gap:10px;margin:0 3px;align-items:stretch;font-family:Arial,sans-serif}
.poetry-feed-controls .poetry-search{height:35px;border-radius:15px;padding:0 13px;gap:12px}
.poetry-feed-controls .poetry-search input{font:14px Arial,sans-serif}
.poetry-feed-controls .poetry-search .poetry-icon{width:17px;height:17px}
.poetry-sort{width:24%;min-width:78px;position:relative;background:var(--poetry-surface);border:1px solid var(--poetry-line);border-radius:15px;height:35px}
.poetry-sort select{appearance:none;width:100%;height:100%;border:0;background:transparent;border-radius:15px;color:inherit;padding:0 27px 0 11px;font:14px Arial,sans-serif}
.poetry-sort .poetry-icon{width:12px;height:12px;position:absolute;right:11px;top:11px;pointer-events:none}
.poetry-posts-heading{font-size:clamp(19px,5vw,26px)!important;margin:13px 6px 9px!important}
.poetry-category-feed .poetry-feed{gap:8px;margin:0 3px}
.poetry-category-feed .poetry-card{padding:9px 11px 11px;border-radius:14px}
.poetry-category-feed .poetry-meta{grid-template-columns:43px minmax(0,1fr) 18px;gap:8px}
.poetry-category-feed .poetry-avatar{width:43px;height:43px}
.poetry-category-feed .poetry-author-copy{font-family:Arial,sans-serif;padding-top:3px}
.poetry-category-feed .poetry-author-copy>b{font-size:14px;font-weight:600}
.poetry-category-feed .poetry-meta-line{font-size:12px;margin-top:6px;gap:7px}
.poetry-category-feed .poetry-badge{font:12px Arial,sans-serif;padding:3px 8px;background:#faedf4;color:#ad2762}
.poetry-category-feed .poetry-preview-flow{margin-top:8px}
.poetry-category-feed .poetry-card h3{font-size:clamp(20px,5.45vw,29px);margin-bottom:8px;letter-spacing:-.4px}
.poetry-category-feed .poetry-preview{font:clamp(13px,3.5vw,18px)/1.35 Arial,sans-serif}
.poetry-category-feed .poetry-preview p+p{margin-top:15px}
.poetry-category-feed .poetry-thumbnail{width:29.2%;margin-top:-18px;margin-left:18px;border-radius:9px}
.poetry-category-feed .poetry-actions{margin-top:12px;gap:10px;justify-content:flex-start;font-family:Arial,sans-serif}
.poetry-category-feed .poetry-actions button{font:12px Arial,sans-serif;gap:7px}
.poetry-category-feed .poetry-actions button+button{margin-left:14px}
.poetry-category-feed .poetry-actions button:last-child{margin-left:auto}
.poetry-category-feed .poetry-actions .poetry-icon{width:18px;height:18px}
.poetry-category-feed .poetry-like{color:#ad2762}
.poetry-category-feed .poetry-like .poetry-icon{color:#c31461}
@media(min-width:700px){
 .poetry-page{padding-top:8px}.poetry-header{height:36px}
 .poetry-card{padding:8px 15px 10px}.poetry-meta{grid-template-columns:45px minmax(0,1fr) 20px;gap:12px}.poetry-avatar{width:45px;height:45px}
 .poetry-author-copy>b{font-size:17px}.poetry-meta-line{font-size:14px}.poetry-badge{font-size:13px}
 .poetry-shortcuts button{padding:8px 10px}.poetry-search{height:37px}.poetry-search input{font-size:15px}
 .poetry-submit-shortcut{min-height:42px;font-size:22px!important}
 .poetry-full-post{padding:15px 20px}.poetry-full-post .poetry-meta{grid-template-columns:60px minmax(0,1fr) 20px}.poetry-full-post .poetry-avatar{width:60px;height:60px}
 .poetry-full-post .poetry-author-copy>b{font-size:21px}.poetry-full-post .poetry-meta-line,.poetry-full-post .poetry-badge{font-size:17px}
 .poetry-form textarea{min-height:300px}.poetry-category-card{padding-block:26px;min-height:78px}
 .poetry-category-feed .poetry-author-copy>b{font-size:18px}.poetry-category-feed .poetry-meta-line,.poetry-category-feed .poetry-badge{font-size:15px}
 .poetry-category-feed .poetry-actions button{font-size:15px}.poetry-category-feed .poetry-actions button+button{margin-left:22px}
}
@media(max-width:350px){
 .poetry-shortcuts{gap:3px}.poetry-shortcuts button{padding-inline:5px}
 .poetry-latest-row{gap:7px}.poetry-latest-row h2{font-size:17px}.poetry-search{padding-inline:8px;gap:6px}
 .poetry-category-feed .poetry-actions{gap:7px}.poetry-category-feed .poetry-actions button+button{margin-left:7px}
 .poetry-category-feed .poetry-actions button{font-size:11px;gap:4px}
 .poetry-full-post .poetry-actions button{font-size:11px;gap:5px}
 .poetry-category-card{padding-inline:12px;gap:7px}
 .poetry-popular-card .poetry-meta{grid-template-columns:26px minmax(0,1fr) 10px;gap:4px}.poetry-popular-card .poetry-avatar{width:26px;height:26px}
 .poetry-popular-card .poetry-actions{gap:2px}.poetry-popular-card .poetry-actions button{gap:2px;font-size:8px}.poetry-popular-card .poetry-actions .poetry-icon{width:11px;height:12px}
}
