/**
 * components.css — shared component styles (Phase 3+).
 *
 * Loaded LAST in global-css (after style.css) so new, token-based component
 * styles override the legacy ones during the transition. Over time, legacy
 * rules migrate out of style.css into here.
 *
 * Currently: the /webquests listing cards, the pager, and the Google
 * Programmable Search box.
 */

/* ===================================================================
   WebQuests listing (/webquests) — card rows
   =================================================================== */
.view-webquests .view-content { margin-top: var(--gutter); }

.wq-row { margin-bottom: 0.5rem; }  

.wq-row {
  display: flex;
  align-items: stretch;          /* columns full height -> full-height divider */
  padding: 1.25rem var(--gutter);
  background: var(--surface);
  border: 1px solid var(--surface-variant);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.wq-row:hover {
  box-shadow: var(--shadow);
  border-color: var(--outline-variant);
}

.wq-row__date {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  color: var(--tertiary);
  font-size: var(--fs-label);
}

.wq-row__title {
  flex: 1 1 auto;
  min-width: 0;                  /* allow ellipsis truncation */
  display: flex;
  align-items: center;
  padding: 0 var(--gutter);
}
.wq-row__title a {
  display: block;
  max-width: 100%;
  color: var(--brand);
  /* font-size: var(--fs-headline-md); */
  font-size: var(--fs-body-lg);
  font-weight: 500;
  line-height: 1.25;
}
.wq-row__title a:hover {
  color: var(--ink);
  text-decoration: none;
}

.wq-row__link {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding-left: var(--gutter);
}
.wq-row__link a {
  font-size: var(--fs-body);  
  color: var(--ink);  
  white-space: nowrap;
  background: #fff !important;  
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  --tw-border-opacity: 1;
  border-color: rgb(108 122 113);
  border-width: 1px;
  border-radius: 0.5rem;
  border-style: solid;  
}

.wq-row__link a::after { content: " \2192"; }      /* → */
.wq-row__link a:hover {
  color: var(--brand);
  text-decoration: none;
  background: rgb(242 244 246) !important;      
}



/* Stack on small screens (no fixed columns, no divider). */
@media (max-width: 600px) {
  .wq-row { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
  .wq-row__date,
  .wq-row__title,
  .wq-row__link {
    width: auto;
    padding: 0;
    border: 0;
  }
  .wq-row__title a { font-size: var(--fs-title); white-space: normal; }
  .wq-row__link { margin-top: 0.25rem; }
}

/* ===================================================================
   Pager — compact, mockup style:  ‹  1  [2]  3  …  ›
   =================================================================== */
.pager__items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: var(--gutter) 0 0;
}
.pager__item { display: flex; margin: 0; }

/* number + chevron buttons */
.pager__item a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.7rem;
  border: 1px solid var(--surface-variant);
  border-radius: var(--r-xl);
  color: var(--secondary);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.pager__item a:hover {
  background: var(--surface-low);
  border-color: var(--outline-variant);
  color: var(--ink);
  text-decoration: none;
}

/* active page = filled green */
.pager__item.is-active a {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
}

/* drop the « First / Last » text controls (mockup has none) */
.pager__item--first,
.pager__item--last { display: none; }

/* prev / next: single chevrons instead of ‹‹ / ›› */
.pager__item--previous a,
.pager__item--next a { font-size: 0; }
.pager__item--previous a::after { content: '\2039'; font-size: 1.4rem; }  /* ‹ */
.pager__item--next a::after     { content: '\203A'; font-size: 1.4rem; }  /* › */

/* ellipsis */
.pager__item--ellipsis {
  display: flex;
  align-items: center;
  padding: 0 0.3rem;
  color: var(--tertiary);
  font-weight: 600;
  letter-spacing: 0.1em;
}

/* ===================================================================
   Google Programmable Search box (themed within Google's constraints)
   Google injects inline styles + table markup, so overrides need !important.
   This won't be pixel-perfect — tune against the live .gsc-* DOM.
   =================================================================== */
   
   
/*

#block-cwq-theme-googleprogrammablesearch { margin-bottom: var(--gutter); }

.gsc-control-cse {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  font-family: var(--font-sans) !important;
}
form.gsc-search-box { margin: 0 !important; }
table.gsc-search-box,
table.gsc-search-box td {
  border: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}
.gsc-input-box {
  max-width: 520px !important;
  border: 1px solid var(--surface-variant) !important;
  border-radius: var(--r-lg) !important;
  background: var(--surface) !important;
  box-shadow: none !important;
  padding: 0.15rem 0.5rem !important;
}
.gsc-input .gsc-input,
input.gsc-input {
  background: transparent !important;
  font-family: var(--font-sans) !important;
}
.gsib_a { padding: 6px 9px !important; } 

*/

