/**
 * style.css — LEGACY content layout + components (transitional).
 *
 * Base layer  -> base.css
 * Page chrome (header/nav/footer/branding) -> layout.css  (removed from here)
 * Remaining here: content container, two-column layout, and the old
 * component rules (tables, forms, pager, tabs, webquest <details>, search).
 * These get rebuilt with tokens in the components phase; until then they
 * keep content pages functional.
 *
 * Loaded LAST (after tokens.css, base.css, layout.css).
 */

.clearfix:after {
  content: "";
  display: table;
  clear: both;
}

.form-wrapper {
    overflow-x: auto;
}

.views-field-changed {
	width: 150px;	
}
.views-field-view-node {
	width: 60px;
}

/* content layout */
.wrapper {
  max-width: var(--container);
  margin: 2rem auto;
  padding: 0 var(--margin-desktop) 2em;   /* match the header's 64px sides */
}
 
.main {
  padding: 0;                  /* was 1.7% — the wrapper owns side padding now */
  min-height: calc(100vh - 70px);
}

.two-col .main {
	width: 70%;
	float: left;
}

.sidebar {
	width: 30%;
	float: left;
	padding: 1.7%;
}

/*tables*/

#block-cwtheme-content table {
	border: 1px solid #ccc; 
	border-collapse: collapse;
}
 
#block-cwtheme-content caption {
	color: #555;
}
  
#block-cwtheme-content th {
	background: #F4F5F2;
	padding: 5px 4px;
	text-shadow: 1px 1px #fff;
	border-right: 1px solid #ccc;
	color:#333;
}

#block-cwtheme-content tbody tr:nth-child(even) {
	background: #EAE3F7;
}

#block-cwtheme-content tbody tr:nth-child(odd) {
	background: #fff;
}

#block-cwtheme-content td { 
	color: #747474;
	padding: 6px;
	border-right: 1px solid #ccc;
	border-bottom: 1px solid #ccc;
}

#block-cwtheme-content td.active {
	background: none;
}

#block-cwtheme-content tfoot td{
	background: #F4F5F2;
	text-shadow: 1px 1px #fff;
	color:#555;
	font-size: .8em;
	font-style: italic;
}

/*drupal-specific*/

.path-frontpage ol li {
	font-size: 1.25em;
}

.messages--status {
padding: .6em;
color: green;
font-size: 1.3em;
font-weight: bold;
border: 1px solid #e2e2e2;
background: #fafafa;
margin: 1em 0;
}

/*contact form */

.contact-form input[type="text"], .contact-form input[type="email"] {
	display: block;
}

.contact-form label {
	font-weight: bolder;
}

.contact-form #edit-preview {
	display: none;
}

/*images in content*/

.align-left {
	margin-right: .6em;
}

.align-right {
	margin-left: .6em;
}

/*webquests */

.tabs.wq-back2top {
	text-align: right;
}

/*webquest node add form */

.filter-help {
display: none;
}

form[action="/node/add/webquest"] input.form-submit {
	font-size: 1.6em;
	font-weight: bold;
	padding: .3em .6em;
	background-color: #E3D4FC;
	color: #C9223B;
	width: 12em;
	margin-top: 1em;
	margin-left: 9.42em;
	display: block;
	border: 2px solid #5B4282;
}

form[action="/node/add/webquest"] input.form-submit:hover {
	background-color: #EAE3F7;
	color: #C9223B;
}

.view-webquests .views-table, .view-webquests table.cols-3, .views-element-container table.cols-3, .views-element-container .views-table {
	table-layout: fixed;
	width: 100%;
	margin-top: 1.5em;
}

summary {
    background: #EAE3F7;
	color: #5B4282;
	font-weight: bold;
}

@media (max-width: 900px) {
  .wrapper { padding: 0 var(--margin-mobile) 2em; }
}	

/*responsive (content two-column collapse)*/
@media (max-width: 767px) {
    .main, .two-col  .main, .sidebar {
        width: auto;
        float: none;
    }
}

/* Local task tabs (restore horizontal tabs after stable9 rebase) */
.tabs.primary {
  list-style: none !important;
  padding: 0 !important;
  margin: 1em 0 !important;
  border-bottom: 1px solid #ccc;
  overflow: hidden;
}
.tabs.primary li {
  display: inline-block !important;
  margin: 0 0.25em 0 0;
  padding: 0;
}
.tabs.primary li a {
  display: block;
  padding: 0.4em 1em;
  text-decoration: none;
  color: #5B4282;
  border: 1px solid #ccc;
  border-bottom: none;
  background: #f4f5f2;
  border-radius: 4px 4px 0 0;
}
.tabs.primary li a:hover {
  background: #EAE3F7;
}
.tabs.primary li a.is-active {
  background: #fff;
  color: #333;
  font-weight: bold;
}

/* back to the top link */
.tabs.wq-back2top {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tabs.wq-back2top li {
  display: inline;
}
.tabs.wq-back2top a {
  text-decoration: underline;
  color: #5B4282;
}

/* Search block: keep input + button on one line (classy parity after stable9 rebase) */
#search-block-form .form-item,
#search-block-form .form-actions {
  display: inline-block;
  vertical-align: top;
  margin: 0 0.25em 0 0;
}

/* Webquest section <details> spacing (classy parity after stable9 rebase) */
.region-content details {
  margin-bottom: 1em;
}

/* Search block: spacing below + slightly larger input/button (classy parity) */
#search-block-form {
  margin-bottom: 1.5em;
}
#search-block-form .form-search {
  padding: 0.3em 0.5em;
  font-size: 1em;
}
#search-block-form .form-submit {
  padding: 0.3em 0.8em;
  font-size: 1em;
}

/* Webquest section <details> boxed look (classy parity, keep native arrow) */
.region-content details {
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 1em;
  overflow: hidden;
}
.region-content details > summary {
  padding: 0.5em 1em;
  cursor: pointer;
}
.region-content details > *:not(summary) {
  padding: 0 1em 1em 1em;
}

/* Global form input/button sizing (classy parity after stable9 rebase) */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="date"],
textarea,
select,
.button,
.form-submit,
button,
input[type="submit"] {
  font-size: 1em;
  padding: 0.4em 0.6em;
  line-height: 1.2;
}
select {
  padding: 0.3em 0.4em;
}

/* forms */
.form-item, .form-actions {
    margin-top: 1em;
    margin-bottom: 1em;
}

/* Pager: horizontal layout (classy parity after stable9 rebase) */
.pager__items {
  list-style: none;
  padding: 0;
  margin: 1em 0;
  text-align: center;
}
.pager__item {
  display: inline-block;
  margin: 0 0.25em;
}
.pager__item a,
.pager__item.is-active {
  display: inline-block;
  padding: 0.2em 0.6em;
  text-decoration: none;
  color: #5B4282;
}
.pager__item.is-active {
  font-weight: bold;
  color: #333;
}

/* Search results: remove ordered-list numbering (classy parity after stable9 rebase) */
.path-search .region-content ol,
.region-content ol.search-results {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Google Programmable Search box */

.gsc-control-cse {
  padding: 0 !important; 
  border-radius: var(--r-xl) !important;
}

form.gsc-search-box {
    width: 100% !important;  
	max-width: 100% !important;
}

form.gsc-search-box {
  margin: 0 !important;
}
.gsc-control-cse {
    border-color: transparent !important;
    background-color: transparent !important;
}
table.gsc-input {
    margin-bottom: 0 !important;
}

.gsib_a {
    padding: 14px 10px 14px 56px !important;
}	

input.gsc-input {
    outline: 2px solid transparent !important; 
    outline-offset: 2px !important;
    --tw-text-opacity: 1 !important;
    color: rgb(25 28 30 / var(--tw-text-opacity, 1)) !important;
	background: #F7F9FB !important;
	border: 1px solid #006c49 !important;
    padding: 10px !important;
	border-radius: var(--r-xl) !important;
}
.gsc-wrapper {
	max-width: 100% !important;
	width: 100% !important;	
}
/*
table.gsc-search-box td {
  border: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
*/