/* Resources (/resources/): inc/resources.php + parts/model/res-main.php. Builds on help.css (layout, sidebar, article text). */
.res-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 980px; }
@media (max-width: 700px) { .res-list { grid-template-columns: 1fr; } }
.res-list.res-list-sm { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 8px; max-width: none; }
.res-card { display: flex; flex-direction: column; gap: 8px; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; text-decoration: none; color: var(--ink); box-shadow: 0 .125rem .25rem rgba(0,0,0,.05); transition: border-color .15s, transform .15s; }
.res-card:hover { border-color: var(--blue); text-decoration: none; transform: translateY(-1px); }
.res-tag { align-self: flex-start; display: inline-block; font-family: var(--head); font-size: 11.5px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--blue-text); background: rgba(0,123,255,.08); border-radius: 50rem; padding: 2px 10px; }
.res-card-t { font-family: var(--head); font-weight: 600; font-size: 18px; line-height: 1.3; }
.res-list-sm .res-card { padding: 14px 16px; }
.res-list-sm .res-card-t { font-size: 15px; }
.res-card-d { font-size: 14.5px; line-height: 1.55; color: #4a525c; }
.res-card-m { margin-top: auto; font-size: 13px; color: var(--muted); }
.res-more { font-size: 15px; color: #4a525c; }
.res-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 14px; color: var(--muted); }
.res-byline .res-tag { align-self: center; }
.res-body .res-note { background: var(--soft); border-left: 4px solid var(--blue); border-radius: 0 6px 6px 0; padding: 12px 16px; margin: 0 0 18px; }
.res-body .res-note p:last-child { margin-bottom: 0; }
.res-body table { display: table; }
@media (max-width: 700px) { .res-body table { display: block; } }
.res-related { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }

/* /resources/ list, reading-first (Substack-style): the newest guide featured with its photo, then rows with thumbnails */
.res-wrap { max-width: 780px; margin: 0 auto; }
.res-feat { display: flex; flex-direction: column; gap: 10px; color: var(--ink); text-decoration: none; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.res-feat:hover { text-decoration: none; }
.res-feat-img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; margin-bottom: 8px; background: var(--soft); }
.res-feat-t { font-family: var(--head); font-weight: 700; font-size: clamp(24px, 3.2vw, 32px); line-height: 1.2; letter-spacing: -.2px; }
.res-feat:hover .res-feat-t, .res-row:hover .res-row-t { color: var(--blue-text); }
.res-feat-d { font-size: 17px; line-height: 1.6; color: #4a525c; }
.res-meta { font-size: 13.5px; color: var(--muted); }
.res-sec { font-family: var(--head); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin: 30px 0 4px; }
.res-rows { list-style: none; margin: 0; padding: 0; }
.res-rows li { border-bottom: 1px solid var(--line); }
.res-row { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 24px; align-items: center; padding: 22px 0; color: var(--ink); text-decoration: none; }
.res-row:hover { text-decoration: none; }
.res-row-txt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.res-row-t { font-family: var(--head); font-weight: 600; font-size: 20px; line-height: 1.3; }
.res-row-d { font-size: 15px; line-height: 1.55; color: #4a525c; }
.res-row-img { width: 200px; height: 134px; object-fit: cover; border-radius: 8px; background: var(--soft); }
.res-ask { margin: 36px 0 10px; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 22px 24px; }
.res-ask-h { font-size: 19px; font-weight: 700; margin: 0 0 6px; }
.res-ask p { margin: 0 0 16px; font-size: 15px; line-height: 1.6; color: #4a525c; }
.res-ask .to-pill { margin: 0 8px 8px 0; }
@media (max-width: 640px) {
	.res-row { grid-template-columns: minmax(0, 1fr) 104px; gap: 14px; padding: 18px 0; align-items: start; }
	.res-row-img { width: 104px; height: 104px; }
	.res-row-t { font-size: 17px; }
	.res-row-d { display: none; }
	.res-feat-d { font-size: 16px; }
}
/* Article: the guide's photo above the text */
.res-cover-fig { margin: 0 0 24px; }
.res-cover { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; display: block; background: var(--soft); }
