/* SMGRC Books — all rules are scoped under .smgrc-books / .smgrc-books-modal */
.smgrc-books{max-width:1280px;margin:0 auto;color:#161b22;line-height:1.5;font-family:inherit}
.smgrc-books *,.smgrc-books *::before,.smgrc-books *::after,
.smgrc-books-modal *,.smgrc-books-modal *::before,.smgrc-books-modal *::after{box-sizing:border-box}
.smgrc-books [hidden],.smgrc-books-modal[hidden]{display:none!important}
.smgrc-books .smgrc-books__sr,.smgrc-books-modal .smgrc-books-modal__sr{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Toolbar */
.smgrc-books .smgrc-books__toolbar{display:flex;flex-wrap:wrap;gap:16px;align-items:center;justify-content:space-between;margin:0 0 28px}
.smgrc-books .smgrc-books__filters{display:flex;flex-wrap:wrap;gap:8px}
.smgrc-books button.smgrc-pill{appearance:none;-webkit-appearance:none;display:inline-flex;align-items:center;justify-content:center;height:36px;margin:0;padding:7px 16px;border:1px solid rgba(22,27,34,.14);border-radius:999px;background:#fff;color:#161b22;font:inherit;font-size:13px;font-weight:700;line-height:1;letter-spacing:normal;text-transform:none;box-shadow:none;cursor:pointer;transition:background .15s,color .15s}
.smgrc-books button.smgrc-pill:hover{background:#f1f3f5;color:#161b22}
.smgrc-books button.smgrc-pill.is-active,.smgrc-books button.smgrc-pill.is-active:hover{background:#161b22;border-color:#161b22;color:#fff}
.smgrc-books .smgrc-books__search{position:relative;display:block;min-width:260px}
.smgrc-books .smgrc-books__search-icon{position:absolute;inset-block-start:50%;inset-inline-start:16px;transform:translateY(-50%);color:#4a5563;pointer-events:none}
.smgrc-books input.smgrc-books__input{appearance:none;-webkit-appearance:none;display:block;width:100%;height:44px;margin:0;padding:0 18px 0 42px;padding-inline:42px 18px;border:1px solid rgba(22,27,34,.14);border-radius:999px;background:#fff;color:#161b22;font:inherit;font-size:14px;box-shadow:none}
.smgrc-books input.smgrc-books__input::placeholder{color:#5b6574;opacity:1}

/* Grid: one card per row */
.smgrc-books .smgrc-books__grid{display:grid;grid-template-columns:minmax(0,1fr);gap:28px}
@media (max-width:860px){.smgrc-books .smgrc-books__search{min-width:0;width:100%}}

/* Card (horizontal: cover | content) */
.smgrc-books .smgrc-book{display:flex;margin:0;overflow:hidden;background:#fff;border:1px solid rgba(22,27,34,.08);border-radius:20px;box-shadow:0 1px 2px rgba(22,27,34,.04),0 10px 28px rgba(22,27,34,.06)}
.smgrc-books .smgrc-book__cover{flex:0 0 272px;display:flex;align-items:flex-start;justify-content:center;padding-top:34px;background:linear-gradient(170deg,#e3f1fc,#edf7df)}
.smgrc-books .smgrc-book__cover img{display:block;width:176px;height:245px;max-width:none;object-fit:cover;border-radius:8px;box-shadow:0 16px 34px rgba(22,27,34,.22)}
.smgrc-books .smgrc-book__placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;width:176px;height:245px;border:2px dashed rgba(22,27,34,.28);border-radius:8px;background:rgba(255,255,255,.55);color:#4a5563;font-size:12px;font-weight:700}
.smgrc-books .smgrc-book__body{display:flex;flex-direction:column;flex:1 1 auto;gap:14px;min-width:0;padding:32px 40px 34px}
.smgrc-books .smgrc-book__meta{display:flex;align-items:center;justify-content:space-between;gap:12px}
.smgrc-books .smgrc-book__publisher{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.9px;line-height:1.4;color:#0b6e8f}
.smgrc-books .smgrc-book__year{display:inline-flex;align-items:center;flex:none;height:28px;margin-inline-start:auto;padding:0 12px;border-radius:999px;background:#eaf5d9;font-size:12.5px;font-weight:800;color:#376009}
.smgrc-books .smgrc-book__title{margin:0;padding:0;font-size:25px;font-weight:800;line-height:1.28;color:#161b22;letter-spacing:normal;text-transform:none;text-align:justify;text-justify:inter-word}
.smgrc-books .smgrc-book__title::after{content:"";display:block;width:36px;height:3px;margin-top:10px;border-radius:3px;background:linear-gradient(90deg,#3fa3ed,#8fca3a)}
.smgrc-books .smgrc-book__desc{font-size:15.5px;line-height:1.75;color:#4a5563;overflow-wrap:anywhere;text-align:justify;text-justify:inter-word}
.smgrc-books .smgrc-book__desc p{margin:0 0 .75em;padding:0}
.smgrc-books .smgrc-book__desc>:last-child{margin-bottom:0}
.smgrc-books .smgrc-book__desc a{color:#0b6e8f;text-decoration:underline}
.smgrc-books .smgrc-book__actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:auto;padding-top:6px}
@media (max-width:760px){
	.smgrc-books .smgrc-book__cover{flex-basis:220px}
	.smgrc-books .smgrc-book__cover img,.smgrc-books .smgrc-book__placeholder{width:148px;height:206px}
	.smgrc-books .smgrc-book__body{padding:26px 24px 28px}
}
@media (max-width:560px){
	.smgrc-books .smgrc-book{flex-direction:column}
	.smgrc-books .smgrc-book__cover{flex:none;padding:28px 0}
	.smgrc-books .smgrc-book__body{padding:22px 22px 24px}
	.smgrc-books .smgrc-book__title{font-size:21px}
}

/* Buttons */
.smgrc-books .smgrc-btn{appearance:none;-webkit-appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:6px;height:44px;margin:0;padding:0 22px;border-radius:999px;font:inherit;font-size:14px;font-weight:700;line-height:1;letter-spacing:normal;text-transform:none;text-decoration:none;box-shadow:none;cursor:pointer;transition:background .15s,color .15s}
.smgrc-books .smgrc-btn--outline{background:#fff;color:#161b22;border:1px solid rgba(22,27,34,.22)}
.smgrc-books .smgrc-btn--outline:hover{background:#f1f3f5;color:#161b22}
.smgrc-books .smgrc-btn--solid{flex:1 1 auto;background:#161b22;color:#fff;border:1px solid #161b22}
.smgrc-books .smgrc-btn--solid:hover{background:#2b333d;color:#fff}
.smgrc-books .smgrc-books__more-wrap{display:flex;justify-content:center;margin-top:36px}
.smgrc-books .smgrc-books__more{height:48px;padding:0 34px}
.smgrc-books .smgrc-books__empty{margin:32px 0;text-align:center;font-size:15px;color:#4a5563}

/* Focus */
.smgrc-books button:focus-visible,.smgrc-books a:focus-visible,.smgrc-books input:focus-visible,
.smgrc-books-modal button:focus-visible{outline:2px solid #161b22;outline-offset:2px;box-shadow:0 0 0 5px #fff}

/* Cite This popup (moved to <body> by JS) */
.smgrc-books-modal{position:fixed;inset:0;z-index:999999;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(22,27,34,.58);font-family:inherit;color:#161b22;line-height:1.5}
.smgrc-books-modal .smgrc-books-modal__dialog{position:relative;width:100%;max-width:880px;max-height:90vh;overflow:auto;padding:30px 28px 28px;background:#fff;border-radius:22px;box-shadow:0 30px 70px rgba(22,27,34,.35)}
.smgrc-books-modal .smgrc-books-modal__dialog:focus{outline:none}
.smgrc-books-modal .smgrc-books-modal__eyebrow{margin:0 0 4px;font-size:12px;font-weight:800;letter-spacing:.9px;text-transform:uppercase;color:#0b6e8f}
.smgrc-books-modal .smgrc-books-modal__heading{margin:0 56px 20px 0;margin-inline:0 56px;padding:0;font-size:22px;font-weight:800;line-height:1.3;color:#161b22;letter-spacing:normal;text-transform:none}
.smgrc-books-modal .smgrc-books-modal__close{position:absolute;inset-block-start:18px;inset-inline-end:18px;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;margin:0;padding:0;border:1px solid rgba(22,27,34,.14);border-radius:999px;background:#fff;color:#161b22;box-shadow:none;cursor:pointer;appearance:none;-webkit-appearance:none}
.smgrc-books-modal .smgrc-books-modal__close:hover{background:#f1f3f5}
.smgrc-books-modal table.smgrc-cite-table{width:100%;margin:0;border-collapse:separate;border-spacing:0;border:1px solid #d9dee4;border-radius:14px;overflow:hidden;font-size:15px;background:#fff}
.smgrc-books-modal .smgrc-cite-table th,.smgrc-books-modal .smgrc-cite-table td{padding:16px 20px;border:0;vertical-align:top;line-height:1.65;color:#161b22;background:transparent}
.smgrc-books-modal .smgrc-cite-table th{width:130px;text-align:center;font-weight:800;background:#f1f5f9;color:#0b6e8f}
.smgrc-books-modal .smgrc-cite-table td{text-align:justify}
.smgrc-books-modal .smgrc-cite-table tr+tr th,.smgrc-books-modal .smgrc-cite-table tr+tr td{border-top:1px solid #d9dee4}
.smgrc-books-modal .smgrc-cite-table tr:nth-child(even) td{background:#fafbfc}
.smgrc-books-modal .smgrc-cite-text{white-space:pre-wrap;overflow-wrap:anywhere;user-select:text;text-align:justify;text-justify:inter-word}
@media (max-width:640px){
	.smgrc-books-modal .smgrc-books-modal__dialog{padding:24px 18px 20px}
	.smgrc-books-modal table.smgrc-cite-table,.smgrc-books-modal .smgrc-cite-table tbody,.smgrc-books-modal .smgrc-cite-table tr,.smgrc-books-modal .smgrc-cite-table th,.smgrc-books-modal .smgrc-cite-table td{display:block;width:100%}
	.smgrc-books-modal .smgrc-cite-table th{text-align:start;padding:10px 16px}
	.smgrc-books-modal .smgrc-cite-table td{padding:12px 16px}
	.smgrc-books-modal .smgrc-cite-table tr+tr th{border-top:1px solid #d9dee4}
	.smgrc-books-modal .smgrc-cite-table tr+tr td{border-top:0}
}

@media (prefers-reduced-motion:reduce){.smgrc-books *{transition:none!important}}

/* Justified text (forced so themes/Elementor cannot override it) */
.smgrc-books .smgrc-book__desc,.smgrc-books .smgrc-book__desc *,.smgrc-books .smgrc-book__title,.smgrc-books-modal .smgrc-cite-text,.smgrc-books-modal .smgrc-cite-text *,.smgrc-books-modal .smgrc-cite-table td{text-align:justify!important;text-justify:inter-word;hyphens:auto;-webkit-hyphens:auto}

/* v1.6.1: justify everything inside the cards, with extra specificity */
html body .smgrc-books .smgrc-book__body,
html body .smgrc-books .smgrc-book__body *:not(.smgrc-btn):not(.smgrc-book__meta):not(.smgrc-book__meta *),
html body .smgrc-books-modal .smgrc-cite-text,
html body .smgrc-books-modal .smgrc-cite-text *,
html body .smgrc-books-modal .smgrc-cite-table td{text-align:justify!important;text-justify:inter-word}
