/* 0.65.0-alpha — interactive embedded Work lists.
   Isolated from the main catalogue. Adds a compact toolbar, optional draft/
   synopsis switch, sortable headers, top-aligned cells and optional alternating
   row shading while preserving the dark/gold REH Writings visual language. */
.rehw-embedded-list{--rehw-list-gold:#d2ae5b;--rehw-list-ink:#e8e3da;--rehw-list-muted:#aaa397;--rehw-list-line:#3a352c;--rehw-list-panel:#141414;margin:1.25rem 0;color:var(--rehw-list-ink);font-family:Arial,sans-serif}
.rehw-embedded-heading{margin:0 0 .75rem;color:#efe8dc;font-family:Georgia,'Times New Roman',serif}
.rehw-embedded-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 12px;padding:10px;border:1px solid var(--rehw-list-line);border-radius:9px;background:#101010}
.rehw-embedded-search{flex:0 1 390px;min-width:230px;max-width:390px}.rehw-embedded-type{flex:0 1 190px;min-width:150px}
.rehw-embedded-toolbar input[type="search"],.rehw-embedded-toolbar select{width:100%;height:40px;margin:0!important;padding:0 12px;border:1px solid #454038!important;border-radius:7px!important;background:#1b1b1b!important;color:#e0c579!important;box-shadow:none!important}
.rehw-embedded-toolbar input[type="search"]:focus,.rehw-embedded-toolbar select:focus{border-color:var(--rehw-list-gold)!important;outline:1px solid rgba(210,174,91,.45)!important;background:#181818!important;color:#f0d58b!important}
.rehw-embedded-toolbar input[type="search"]::placeholder{color:#bba469;opacity:.85}
.rehw-embedded-draft-toggle{display:inline-flex;align-items:center;gap:8px;margin:0!important;color:#c7b98f;font-size:.78rem;font-weight:700;white-space:nowrap;cursor:pointer;user-select:none}
.rehw-embedded-draft-toggle input{position:absolute;opacity:0;pointer-events:none}
.rehw-embedded-switch{position:relative;display:inline-block;width:38px;height:20px;border:1px solid #5a4b2d;border-radius:999px;background:#29251e;box-shadow:inset 0 1px 2px rgba(0,0,0,.35);transition:background .15s ease,border-color .15s ease}
.rehw-embedded-switch::after{content:'';position:absolute;left:3px;top:3px;width:12px;height:12px;border-radius:50%;background:#8f8677;box-shadow:0 1px 2px rgba(0,0,0,.45);transition:transform .15s ease,background .15s ease}
.rehw-embedded-draft-toggle input:checked+.rehw-embedded-switch{border-color:#8f7132;background:#493b21}
.rehw-embedded-draft-toggle input:checked+.rehw-embedded-switch::after{transform:translateX(18px);background:#e0c579}
.rehw-embedded-draft-toggle input:focus-visible+.rehw-embedded-switch{outline:2px solid rgba(210,174,91,.55);outline-offset:2px}
.rehw-embedded-count{margin-left:auto;padding:6px 10px;border:1px solid #4e442f;border-radius:999px;color:#e0c579;font-size:.8rem;font-weight:700;white-space:nowrap}
.rehw-embedded-table-wrap{overflow:auto;border:1px solid var(--rehw-list-line);border-radius:9px;background:var(--rehw-list-panel)}
.rehw-embedded-table{width:100%;border-collapse:collapse;margin:0!important;background:transparent!important;color:var(--rehw-list-ink)!important}
.rehw-embedded-table th,.rehw-embedded-table td{padding:11px 13px!important;border:0!important;border-bottom:1px solid #302c26!important;background:transparent!important;text-align:left;vertical-align:top!important}
.rehw-embedded-table th{color:#d8bc77!important;font-size:.72rem!important;font-weight:800!important;letter-spacing:.07em;text-transform:uppercase;white-space:nowrap}
.rehw-embedded-sort{display:flex;align-items:center;justify-content:flex-start;gap:7px;width:100%;margin:0!important;padding:0!important;border:0!important;background:transparent!important;color:inherit!important;font:inherit!important;font-weight:inherit!important;letter-spacing:inherit!important;text-transform:inherit!important;text-align:left!important;box-shadow:none!important;cursor:pointer}
.rehw-sort-arrows{display:inline-flex;flex-direction:column;line-height:.55;font-size:.58rem;color:#5b5549;transform:translateY(-1px)}
.rehw-sort-arrows i{font-style:normal;transition:color .12s ease}.rehw-embedded-table th[aria-sort="ascending"] .rehw-sort-up,.rehw-embedded-table th[aria-sort="descending"] .rehw-sort-down{color:#d9ba70}.rehw-embedded-sort:hover .rehw-sort-arrows i{color:#9e8c62}.rehw-embedded-table th[aria-sort="ascending"] .rehw-sort-down,.rehw-embedded-table th[aria-sort="descending"] .rehw-sort-up{color:#514b41}
.rehw-embedded-table tbody tr:last-child td{border-bottom:0!important}
.rehw-embedded-list.is-striped .rehw-embedded-table tbody tr.is-alt td{background:rgba(255,255,255,.025)!important}
.rehw-embedded-table tbody tr:hover td,.rehw-embedded-list.is-striped .rehw-embedded-table tbody tr.is-alt:hover td{background:rgba(210,174,91,.055)!important}
.rehw-embedded-title a{color:#f0e7d8!important;font-family:Georgia,'Times New Roman',serif;font-size:1.02rem;text-decoration:none!important}.rehw-embedded-title a:hover{color:#e4c576!important}
.rehw-embedded-table td:not(.rehw-embedded-title){color:#bcb4a8!important;font-size:.85rem;line-height:1.4}
.rehw-embedded-empty,.rehw-embedded-error{padding:14px 16px;border:1px solid var(--rehw-list-line);border-radius:8px;background:#151515;color:#c9c1b4}.rehw-embedded-error code{color:#e1c67d}.rehw-embedded-error ul{margin:.7rem 0 .45rem 1.2rem}
@media(max-width:800px){.rehw-embedded-search{flex:1 1 280px;max-width:none}.rehw-embedded-count{margin-left:0}}
@media(max-width:640px){.rehw-embedded-toolbar{align-items:stretch}.rehw-embedded-search,.rehw-embedded-type{flex:1 1 100%;max-width:none}.rehw-embedded-draft-toggle{min-height:34px}.rehw-embedded-count{margin-left:0;width:max-content}.rehw-embedded-table thead{display:none}.rehw-embedded-table,.rehw-embedded-table tbody,.rehw-embedded-table tr,.rehw-embedded-table td{display:block;width:100%}.rehw-embedded-table tr{padding:9px 12px;border-bottom:1px solid #302c26}.rehw-embedded-table tr:last-child{border-bottom:0}.rehw-embedded-table td{display:flex!important;justify-content:space-between;align-items:flex-start;gap:14px;padding:4px 0!important;border:0!important}.rehw-embedded-table td::before{content:attr(data-label);color:#928978;font-size:.72rem;font-weight:700;text-transform:uppercase}.rehw-embedded-table .rehw-embedded-title{display:block!important;padding-bottom:7px!important}.rehw-embedded-table .rehw-embedded-title::before{display:none}.rehw-embedded-title a{font-size:1.08rem}}

/* 0.66.0-alpha — exact Textual Version expansion for draft/synopsis rows. */
.rehw-embedded-title{min-width:170px}
.rehw-embedded-title.is-text-version{padding-left:28px!important;position:relative}
.rehw-embedded-title.is-text-version::before{content:'↳';position:absolute;left:12px;top:12px;color:#8f7950;font-family:Arial,sans-serif;font-size:.82rem}
.rehw-embedded-title-meta{display:block;margin-top:3px;color:#918778;font-family:Arial,sans-serif;font-size:.70rem;font-weight:600;line-height:1.3}
.rehw-embedded-title.is-text-version a{font-size:.96rem;color:#e5d8c4!important}
.rehw-embedded-table tr[data-rehw-row-kind="text_version"] td{background:rgba(210,174,91,.018)!important}
.rehw-embedded-list.is-striped .rehw-embedded-table tr[data-rehw-row-kind="text_version"].is-alt td{background:rgba(210,174,91,.04)!important}
@media(max-width:640px){.rehw-embedded-title.is-text-version{padding-left:18px!important}.rehw-embedded-title.is-text-version::before{left:0;top:5px}}

/* Explicit cell foregrounds resist theme td defaults on dark catalogue panels. */
.rehw-embedded-list .rehw-embedded-table td{color:#e8e2d8!important}
.rehw-embedded-list .rehw-embedded-table td:not(.rehw-embedded-title){color:#d4cbbd!important}
.rehw-embedded-list .rehw-embedded-title-meta{color:#bfb6a6}
