/* Orange control family, scoped to inscriptions. */
.stories-surface{border:0!important}.stories-surface .reader-layout{border:0;box-shadow:none}
.stories-surface :is(.story-pagination,.reader-page-index) a[aria-current=page]{background:transparent!important;border-color:transparent!important;border-bottom:2px solid #aa741f!important;color:#805014!important;border-radius:0;box-shadow:none}
.stories-surface .nq-pagination{display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:12px;align-items:center;direction:rtl}.nq-pagination>:first-child{justify-self:start}.nq-pagination>:last-child{justify-self:end}.nq-pagination .pagination-numbers{grid-column:2;justify-content:center;flex-wrap:wrap;gap:6px}
.stories-surface .nq-pagination .nq-icon{background:transparent!important;border:0!important;padding:0!important;display:inline-flex;width:44px;height:44px;align-items:center;justify-content:center;min-height:44px;color:inherit}
.nq-icon img,.nq-action img{width:40px;height:40px;object-fit:contain;flex-shrink:0;pointer-events:none}.nq-icon[aria-disabled=true]{opacity:.35}
.stories-surface .nq-back,.stories-surface .nq-neighbor{background:transparent!important;border:0!important;border-image:url('/assets/inscriptions/18_navigation_back_all_story_button-02.png') 0 30 fill / 0 18px / 0 stretch!important;color:#38210c!important;box-sizing:border-box;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 20px;font:21px/1.35 BookArabic,Arial,sans-serif;text-align:center;max-width:100%;border-radius:10px}
.stories-surface .nq-neighbor{border-image-source:url('/assets/inscriptions/17_navigation_back_story_button-02.png')!important;display:block;text-align:right;min-height:76px;padding:12px 22px}.nq-neighbor span{color:#684819}.nq-neighbor b{color:#38210c}
.stories-surface .story-share{justify-content:center;gap:12px 22px}.stories-surface .nq-action{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border:0!important;background:transparent!important;padding:0 5px!important;color:inherit;font:22px/1.3 BookArabic,Arial,sans-serif;cursor:pointer}
.stories-surface .rating-stars [data-rating]{font-size:0!important;background:transparent url('/assets/inscriptions/19_evaluation_button-02.png') center/30px 28px no-repeat!important;min-width:40px;min-height:44px;border:0;padding:0}.stories-surface .rating-stars .nq-filled{background-image:url('/assets/inscriptions/20_after_evaluation_button-02.png')!important}
.stories-surface .comment-form button[type=submit]{border:0;background:transparent url('/assets/inscriptions/18_send_comment_button-02.png') center/100% 100% no-repeat;min-height:46px;min-width:130px;padding:8px 22px;color:#38210c}
.nq-reading-settings{display:flex;justify-content:center;align-items:center;gap:10px;max-width:100%;direction:rtl}.nq-settings-label{font-size:20px;white-space:nowrap}.nq-reading-settings .reader-tools{display:flex;flex-wrap:nowrap;align-items:center;gap:8px;margin:0;min-width:0}.nq-reading-settings [data-font]{background:transparent url('/assets/inscriptions/22_text_sizes_button-02.png') center/100% 100% no-repeat!important;border:0!important;border-radius:8px;width:44px;height:44px;min-width:44px;padding:0;color:#38210c!important;font:23px/1 BookArabic,Arial,sans-serif}.nq-reading-settings [data-font]:disabled{opacity:.4;cursor:default}
.nq-modes{position:relative;min-width:0;width:200px;text-align:right}.nq-modes summary{display:flex;align-items:center;min-height:44px;box-sizing:border-box;list-style:none;cursor:pointer;background:url('/assets/inscriptions/21_read_moods_button-02.png') center/100% 100% no-repeat;color:#38210c;padding:5px 14px 5px 30px;font:20px/1.25 BookArabic,Arial,sans-serif;white-space:nowrap}.nq-modes summary::-webkit-details-marker{display:none}
.nq-modes .reading-modes{position:absolute;top:calc(100% + 6px);right:0;left:0;display:flex;flex-direction:column;gap:3px;padding:6px;border:1px solid #b97c20;border-radius:9px;background:#fff5df;box-shadow:0 5px 18px #0003;z-index:30}.nq-modes:not([open]) .reading-modes{display:none}.nq-modes .reading-modes button{color:#3b280e;background:transparent;border:0;border-radius:5px;min-height:44px;text-align:right;font-size:21px;padding:6px 12px}.nq-modes .reading-modes button[aria-pressed=true]{background:#ffe0a3;color:#38210c}.nq-modes .reading-modes button[aria-pressed=true]:after{content:' ✓'}
.stories-surface .reading-bar{margin:10px 0 18px;gap:12px}.stories-surface .story-heading{padding-bottom:0}
.stories-surface :is(.nq-action,.nq-icon,.nq-back,.nq-neighbor,.nq-modes summary,[data-font],[data-rating],.comment-form button){transition:filter .16s,transform .16s}.stories-surface :is(button,a,summary):focus-visible{outline:2px solid #a65d00;outline-offset:3px}
@media(hover:hover){.stories-surface :is(.nq-action,.nq-icon,.nq-back,.nq-neighbor,.nq-modes summary,[data-font],[data-rating],.comment-form button):not(:disabled):not([aria-disabled=true]):hover{filter:brightness(1.12);transform:translateY(-1px)}.nq-modes .reading-modes button:hover{background:#ffcf80}}
.stories-surface :is(.nq-action,.nq-back,.nq-neighbor,[data-font],.comment-form button):not(:disabled):active{filter:brightness(.9);transform:none}
@media(max-width:600px){.nq-settings-label{display:none}.nq-reading-settings{width:100%;gap:0}.nq-reading-settings .reader-tools{width:100%;max-width:330px;gap:6px;justify-content:center}.nq-modes{flex:1;max-width:220px}.nq-modes summary{font-size:18px;padding-right:10px;padding-left:26px}.nq-icon img,.nq-action img{width:34px;height:34px}.stories-surface .nq-action{font-size:20px;gap:6px}.stories-surface .nq-pagination{grid-template-columns:44px minmax(0,1fr) 44px;gap:8px}.nq-pagination>.nq-back:last-child{grid-column:1/-1;grid-row:2;justify-self:center}.stories-surface .nq-back{font-size:19px}.stories-surface .post-neighbors{gap:12px}.stories-surface .post-neighbors a{max-width:none;min-width:0;font-size:19px;padding:10px 14px}.post-neighbors b{overflow-wrap:anywhere}.stories-surface .rating-stars [data-rating]{min-width:38px}.stories-surface .rating-row{gap:6px 10px}.stories-surface .reading-bar{margin:8px 0 16px}}
@media(prefers-reduced-motion:reduce){.stories-surface :is(button,a,summary){transition:none!important;transform:none!important}}
.reader.night :is(.story-pagination,.reader-page-index) a[aria-current=page]{color:#f4bc62!important}.reader.night .nq-settings-label{color:#eee8df}
/* Compact controls and a shared text-column baseline. */
.stories-surface .nq-reading-settings{justify-content:flex-start;gap:8px}
.stories-surface .nq-reading-settings [data-font]{width:36px;min-width:36px;height:44px;min-height:44px;background-size:36px 36px!important;font-size:20px}
.stories-surface .nq-modes{width:174px;flex:none}
.stories-surface .nq-modes summary{height:44px;min-height:44px;background-size:100% 36px;font-size:18px;padding-inline:12px 25px}
.stories-surface .nq-settings-label{font-size:18px}
.stories-surface .nq-back{font-size:18px;min-height:36px;padding:7px 15px;white-space:nowrap;width:max-content}
.stories-surface .story-cover>.nq-back{align-self:center;max-width:none}
.stories-surface .reader-after{box-sizing:border-box;width:100%;padding-inline:24px}
.stories-surface .nq-footer-actions{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:14px 24px;margin:24px 0 12px;direction:rtl}
.stories-surface .nq-footer-actions .story-share{justify-content:flex-start;margin:0;padding:0;gap:10px 18px;flex:0 1 auto}
.stories-surface .nq-footer-actions .post-neighbors{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;margin:0;flex:0 1 auto;max-width:100%}
.stories-surface .post-neighbors .nq-neighbor{flex:0 1 auto;width:auto;max-width:260px;min-height:44px;padding:7px 16px;font-size:18px}
.stories-surface .nq-neighbor span{font-size:16px;line-height:1.2}.stories-surface .nq-neighbor b{font-size:19px;line-height:1.3;display:block}
.stories-surface .nq-action{font-size:19px}.stories-surface .nq-action img{width:30px;height:30px}
.stories-surface .quotes-pagination{margin:16px 0 0;padding:12px 0;min-height:0;align-items:center}
.stories-surface .quotes-pagination+.related-posts{border-top:0;margin-top:0;padding-top:20px}
.stories-surface .quote-actions{padding:12px 0;align-items:center;gap:8px 16px}
.stories-surface .quote-actions .post-engagement{min-width:0}
.stories-surface .quote-actions .engagement-status:empty,.stories-surface .quote-status:empty,.stories-surface #share-status:empty{display:none}
.stories-surface .comment-page-context{font-size:18px;color:#805b2e}
@media(min-width:768px){.stories-surface.reader:has(.reader-sidebar) .reader-after{width:calc((100% - 48px)*.65 + 24px);padding-left:0;margin-left:auto}}
@media(max-width:767px){
 .stories-surface .reader-after{padding-inline:12px}
 .stories-surface .nq-reading-settings{justify-content:center}
 .stories-surface .nq-reading-settings .reader-tools{width:auto;max-width:100%;gap:5px}
 .stories-surface .nq-modes{width:170px;max-width:calc(100vw - 145px);flex:0 1 170px}
 .stories-surface .nq-modes summary{font-size:17px;padding-inline:10px 24px}
 .stories-surface .nq-footer-actions{gap:16px;margin-top:20px}
 .stories-surface .nq-footer-actions .post-neighbors{margin-inline-start:auto}
 .stories-surface .post-neighbors .nq-neighbor{max-width:100%;padding:7px 14px}
 .stories-surface .nq-back{font-size:17px;min-height:36px;padding:7px 14px}
 .stories-surface .nq-action{font-size:18px}
}
/* Final spacing and lightweight RTL work navigation. */
.stories-surface .comment-form textarea{resize:vertical;width:100%!important;min-width:100%;max-width:100%;min-height:120px;box-sizing:border-box}
.stories-surface .quote-actions{padding:12px 20px;box-sizing:border-box}
.stories-surface .reader-after>.post-neighbors{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:12px 24px;margin:20px 0;direction:rtl}
.stories-surface .reader-after>.post-neighbors .nq-neighbor{border:0!important;border-image:none!important;background:none!important;box-shadow:none;border-radius:0;display:flex;align-items:baseline;gap:7px;padding:4px 0;min-height:44px;width:auto;max-width:100%;font:19px/1.5 BookArabic,Arial,sans-serif;color:inherit!important;text-align:right}
.stories-surface .post-neighbors .nq-prev-work{grid-column:1;grid-row:1;justify-self:start}
.stories-surface .post-neighbors .nq-next-work{grid-column:2;grid-row:1;justify-self:end;flex-direction:row-reverse;text-align:left}
.stories-surface .post-neighbors .nq-neighbor-copy{display:block;min-width:0;color:inherit;font:inherit}
.stories-surface .post-neighbors .nq-neighbor-copy>span{display:inline;font:inherit;color:#80613a}
.stories-surface .post-neighbors .nq-neighbor-copy>b{display:inline;font:inherit;color:inherit;overflow-wrap:anywhere}
.stories-surface .post-neighbors .nq-neighbor-arrow{display:inline;flex:none;color:#a66b1b;font:24px/1 Arial,sans-serif}
.reader.night .post-neighbors .nq-neighbor-copy>span{color:#d4b78e}
@media(hover:hover){.stories-surface .post-neighbors .nq-neighbor:hover .nq-neighbor-copy>b{text-decoration:underline;text-underline-offset:5px}}
@media(max-width:767px){.stories-surface .quote-actions{padding-inline:14px}.stories-surface .reader-after>.post-neighbors{gap:12px}.stories-surface .reader-after>.post-neighbors .nq-neighbor{font-size:18px}}
@media(max-width:400px){.stories-surface .reader-after>.post-neighbors{grid-template-columns:minmax(0,1fr)}.stories-surface .post-neighbors .nq-next-work{grid-column:1;grid-row:2}}

/* Explicit rating labels; each phrase remains intact when wrapping. */
.stories-surface .rating-summary{display:flex;flex-wrap:wrap;align-items:center;gap:4px 18px;direction:rtl;text-align:right}
.stories-surface .rating-summary>span{display:inline-block;white-space:nowrap;font-size:19px;line-height:1.5}
@media(max-width:600px){.stories-surface .rating-summary{gap:3px 14px}.stories-surface .rating-summary>span{font-size:18px}}
