/* ============================================================
   Gush Shalom — page styles (pages.css)
   About · Blog · Actions vertical carousel · Settlement table + search · Article
   Loads after theme.css.
   ============================================================ */

.gs-mb-10 { margin-bottom: 10px; }
.gs-h2 { font-size: 32px; font-weight: 700; line-height: 1.2; color: #333; }
.gs-lead-p { font-size: 17px; line-height: 1.6; color: #333; margin: 0 0 16px; max-width: 680px; }
[dir="rtl"] .gs-lead-p { line-height: 1.7; }
.gs-caption { font-size: 13px; color: #69727D; line-height: 1.5; margin-top: 8px; }
.gs-empty, .gs-notice { font-size: 16px; color: #69727D; }
.gs-notice { border: 1px solid #CDCDCD; background: #F7F7F7; padding: 20px 24px; border-radius: 4px; }

/* ---------- About sub-nav ---------- */
.gs-subnav { position: sticky; top: 67px; z-index: 20; background: rgba(255,255,255,0.95); backdrop-filter: saturate(120%); border-bottom: 1px solid #CDCDCD; }
.gs-subnav__inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 52px; display: flex; align-items: center; gap: 28px; overflow-x: auto; }
.gs-subnav__link { font-size: 14.4px; text-decoration: none; white-space: nowrap; color: #69727D; font-weight: 400; padding-bottom: 2px; border-bottom: 2px solid transparent; }
.gs-subnav__link.is-active { color: #333; font-weight: 600; border-bottom-color: #CC3366; }

/* ---------- About two-column blocks ---------- */
.gs-about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.gs-about-grid__text { max-width: 600px; }
.gs-about-grid__text p { font-size: 17px; line-height: 1.6; color: #333; margin: 0 0 16px; }
[dir="rtl"] .gs-about-grid__text p { line-height: 1.7; }
.gs-about-grid__fig { margin: 0; }

/* ---------- Aims list ---------- */
.gs-aims { list-style: none; margin: 0; padding: 0; }
.gs-aims__item { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; padding: 24px 0; border-top: 1px solid #CDCDCD; }
.gs-aims__bullet { min-width: 44px; display: flex; justify-content: center; padding-top: 6px; }
.gs-aims__bullet span { width: 18px; height: 18px; border-radius: 50%; background: #CC3366; display: inline-block; flex: 0 0 auto; }
.gs-aims__text { font-size: 17px; line-height: 1.6; color: #333; margin: 0; max-width: 680px; }
[dir="rtl"] .gs-aims__text { line-height: 1.7; }
.gs-aims__lead { font-weight: 700; }

/* ---------- Pull quote ---------- */
.gs-pullquote { margin: 0; border-inline-start: 4px solid #CC3366; padding-inline-start: 24px; }
.gs-pullquote__text { font-size: 24px; line-height: 1.4; color: #333; margin: 0 0 10px; font-weight: 400; }
.gs-pullquote__text--sm { font-size: 18px; line-height: 1.6; margin: 0; }
[dir="rtl"] .gs-pullquote__text--sm { line-height: 1.7; }
.gs-pullquote__attr { font-size: 14.4px; color: #69727D; }

/* ---------- Article (single) ---------- */
.gs-article__meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #69727D; margin-bottom: 16px; }
.gs-article__meta .gs-tag { color: #CC3366; font-weight: 600; }
.gs-article__figure { margin: 0 0 32px; }
.gs-article__body { max-width: 680px; }
.gs-article__body p { font-size: 18px; line-height: 1.7; color: #333; margin: 0 0 20px; }
.gs-article__body h2 { font-size: 24px; margin: 32px 0 12px; }
.gs-article__body h3 { font-size: 20px; margin: 28px 0 10px; }
.gs-article__body a { color: #CC3366; }
.gs-article__back { margin-top: 40px; }

/* ---------- Blog list ---------- */
.gs-blog-list { border-bottom: 0; }
.gs-blog-list__row.is-hidden { display: none; }
.gs-blog-row { display: flex; gap: 32px; align-items: flex-start; padding: 32px 0; border-top: 1px solid #CDCDCD; text-decoration: none; transition: background 160ms; }
.gs-blog-row:hover { background: #F7F7F7; }
.gs-blog-row__body { flex: 1 1 auto; min-width: 0; }
.gs-blog-row__meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #69727D; margin-bottom: 10px; flex-wrap: wrap; }
.gs-blog-row__meta .gs-tag { color: #CC3366; font-weight: 600; white-space: nowrap; }
.gs-blog-row__title { font-size: 24px; font-weight: 700; line-height: 1.25; color: #333; margin: 0 0 10px; text-wrap: pretty; }
.gs-blog-row__excerpt { font-size: 16px; line-height: 1.6; color: #69727D; margin: 0 0 14px; max-width: 680px; text-wrap: pretty; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
[dir="rtl"] .gs-blog-row__excerpt { line-height: 1.7; }
.gs-blog-row__read { font-size: 14.4px; font-weight: 500; color: #CC3366; }
.gs-blog-row__thumb { flex: 0 0 auto; width: 240px; margin: 0; }
.gs-blog-list__end { border-top: 1px solid #CDCDCD; }
.gs-blog-more { display: flex; justify-content: center; margin-top: 40px; }
.gs-pagination { margin-top: 40px; }
.gs-pagination .page-numbers { display: inline-flex; gap: 6px; align-items: center; }
.gs-pagination a, .gs-pagination span { padding: 8px 14px; border: 1px solid #CDCDCD; text-decoration: none; color: #333; font-size: 14px; }
.gs-pagination .current { background: #CC3366; color: #fff; border-color: #CC3366; }

/* ---------- Settlement: search ---------- */
.gs-search__label { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #333; margin-bottom: 10px; }
.gs-search { position: relative; max-width: 520px; }
.gs-search__icon { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: #69727D; pointer-events: none; display: inline-flex; }
.gs-search__input { width: 100%; box-sizing: border-box; font-family: inherit; font-size: 16px; color: #333; background: #fff; border: 1px solid #CDCDCD; border-radius: 0; padding: 12px 44px; outline: none; transition: border-color 160ms, box-shadow 160ms; }
.gs-search__input:focus { border-color: #333; box-shadow: 0 0 0 2px rgba(204,51,102,0.35); }
.gs-search__clear { position: absolute; inset-inline-end: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: #69727D; display: inline-flex; padding: 4px; }
.gs-search__hint { font-size: 13px; color: #69727D; margin: 8px 0 0; }

/* ---------- Settlement: TablePress table ---------- */
.gs-companies__table { margin-top: 26px; overflow-x: auto; position: relative; }

/* The table has ~1,200 rows in its raw, un-paginated markup — before our JS
   hides columns and hands it to DataTables (pagination, filtering), the
   browser would otherwise flash that whole raw table for a moment on every
   load. Keep it clipped and invisible until site.js adds .is-ready; a
   <noscript> fallback below un-hides it for non-JS visitors. */
.gs-companies__table:not(.is-ready) { max-height: 420px; overflow-y: hidden; }
.gs-companies__table:not(.is-ready) table { visibility: hidden; }
.gs-companies__table:not(.is-ready)::after {
	content: attr(data-loading);
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #69727D;
	font-size: 14px;
}
.gs-companies__table .tablepress { width: 100%; border-collapse: collapse; border: 1px solid #CDCDCD; background: #fff; font-size: 15px; margin: 0; }
.gs-companies__table .tablepress th,
.gs-companies__table .tablepress td { padding: 13px 18px; border: none; border-bottom: 1px solid #CDCDCD; vertical-align: top; text-align: start; line-height: 1.5; }
.gs-companies__table .tablepress thead th { background: #F7F7F7; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: #333; }
.gs-companies__table .tablepress tbody td { color: #69727D; }
.gs-companies__table .tablepress tbody td.column-1 { color: #333; font-weight: 500; }
.gs-companies__table .tablepress tbody tr:hover td { background: #F7F7F7; }
.gs-companies__source { font-size: 12px; color: #69727D; line-height: 1.55; margin: 26px auto 0; max-width: 680px; text-align: center; }
/* DataTables controls, toned to the design system */
.gs-companies__table .dataTables_wrapper .dataTables_paginate .paginate_button { padding: 6px 12px; border: 1px solid #CDCDCD !important; border-radius: 0; margin-inline-start: -1px; color: #333 !important; background: #fff !important; }
.gs-companies__table .dataTables_wrapper .dataTables_paginate .paginate_button.current { background: #CC3366 !important; color: #fff !important; border-color: #CC3366 !important; }
.gs-companies__table .dataTables_wrapper .dataTables_info,
.gs-companies__table .dataTables_wrapper .dataTables_length,
.gs-companies__table .dataTables_wrapper .dataTables_filter { font-size: 13px; color: #69727D; margin-top: 12px; }
.gs-companies__table .dataTables_wrapper .dataTables_filter { display: none; } /* our custom search replaces it */

/* RTL only: DataTables' own length + search row (English UI strings: "Search:",
   "entries per page") reflows into a jumbled, mixed-direction line under RTL.
   We already have a proper Hebrew-labelled search box above the table, so hide
   this row for Hebrew only — the LTR/English layout above renders it fine and
   is left untouched. */
.gs-rtl .gs-companies__table .dt-layout-row:has(.dt-search) { display: none; }

/* ---------- Actions: vertical carousel ---------- */
.gs-vcar__note { font-size: 15px; color: #69727D; line-height: 1.6; margin: 0 0 28px; max-width: 620px; }
.gs-vcar { position: relative; height: 660px; overflow: hidden; }
.gs-vcar__viewport { position: absolute; inset: 0; overflow: hidden; }
.gs-vcar__track { position: absolute; inset-inline: 0; top: 0; display: flex; flex-direction: column; gap: 20px; transition: transform 600ms cubic-bezier(.4,0,.2,1); will-change: transform; }
.gs-vcar__card { height: 300px; display: flex; gap: 24px; align-items: stretch; border: 1px solid #E4E4E4; border-inline-start: 4px solid #E4E4E4; border-radius: 4px; background: #fff; padding: 16px; box-sizing: border-box; opacity: 0.1; cursor: pointer; transition: opacity 600ms cubic-bezier(.4,0,.2,1), border-color 300ms; }
.gs-vcar__card.is-active { border-color: #CDCDCD; border-inline-start-color: #CC3366; cursor: default; }
.gs-vcar__thumb { flex: 0 0 auto; width: 380px; height: 100%; margin: 0; }
.gs-vcar__thumb .gs-photo { height: 100%; border: none; border-radius: 4px; }
.gs-vcar__text { flex: 1 1 auto; min-width: 0; align-self: center; }
.gs-vcar__date { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #CC3366; margin-bottom: 10px; }
.gs-vcar__body { font-size: 17px; line-height: 1.55; color: #333; margin: 0; text-wrap: pretty; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.gs-vcar__card:not(.is-active) .gs-vcar__body { font-size: 15px; }
.gs-vcar__fade { position: absolute; inset-inline: 0; height: 64px; z-index: 3; pointer-events: none; }
.gs-vcar__fade--top { top: 0; background: linear-gradient(#fff, rgba(255,255,255,0)); }
.gs-vcar__fade--bottom { bottom: 0; background: linear-gradient(rgba(255,255,255,0), #fff); }
.gs-vcar__controls { display: flex; align-items: center; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.gs-vcar__slider { flex: 1 1 240px; display: flex; flex-direction: column; gap: 8px; min-width: 200px; }
.gs-vcar__slider input[type="range"] { width: 100%; accent-color: #CC3366; cursor: pointer; }
.gs-vcar__count { font-size: 13px; color: #69727D; font-variant-numeric: tabular-nums; }
.gs-homecar__nav { display: flex; gap: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .gs-about-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .gs-blog-row { flex-direction: column !important; gap: 16px !important; }
  .gs-blog-row__thumb { width: 100% !important; order: -1; }
  .gs-vcar__card { flex-direction: column !important; height: auto !important; }
  .gs-vcar__thumb { width: 100% !important; height: 180px !important; order: -1; }
  .gs-vcar { height: 560px; }
}
