/* Article pages: styles used only by the newer article pages */

:root {
  --cwg-blue-deep: #0c42d3;
  --cwg-blue-panel: #1c62d4;
  --cwg-blue-ink: #0e38c5;
  --cwg-sky: #f2f6fe;
  --cwg-line: #d6e2f8;
  --cwg-red: #e03831;
  --cwg-red-tint: #fdf2f1;
  --cwg-ink: #333;
  --cwg-muted: #5c6270;
  --cwg-display: Impact, "Anton", "Arial Narrow Bold", "Arial Black", sans-serif;
  --cwg-text: "Lucida Grande", "Lucida Sans", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif;
}

/* Header thermometer (same as the rest of the site) */
#thermometer { width: 962px; height: 236px; margin: 134px 0 0 3px; padding: 1px 0 0 0; position: relative; overflow: hidden; background: url('/sites/all/themes/guts/images/thermo_bg1.gif') no-repeat top left; }
#thermometer .right { height: 156px; margin: 12px 0 0 672px; position: relative; zoom: 1; }
#thermometer .raised h2 { font-family: "Impact", "Arial Black", "Arial", sans-serif; text-transform: uppercase; font-weight: normal; font-size: 3em; color: #e03831; margin: 0; }
#thermometer .raised h6 { color: #333; margin: 0 0 8px 0; font-size: 1.1em; font-weight: bold; }
#thermometer .total h4 { color: #39b0f3; font-weight: normal; font-size: 1.75em; text-transform: lowercase; margin: 0; }
#thermometer .total h4 strong { color: #0b2bbd; font-weight: bold; }
#thermometer .total h6 { color: #aaa; font-size: 0.9em; margin: 0 0 8px 0; }
#thermometer .recent h4 { font-size: 1.2em; color: #333; text-transform: uppercase; font-family: "Impact", "Arial Black", "Arial", sans-serif; font-weight: normal; margin: 0; }
#thermometer .recent h4 strong { color: #aaa; font-weight: normal; padding-left: 6px; }
#thermometer .contribute { display: block; position: absolute; width: 259px; height: 82px; background: url('/sites/all/themes/guts/images/thermo_button.gif') no-repeat top left; text-indent: -999em; top: 64px; left: 360px; z-index: 999; }
#thermometer .contribute:hover { background: url('/sites/all/themes/guts/images/thermo_button_hover.gif') no-repeat top left; }
#thermometer #mercury { display: block; width: 31px; position: absolute; bottom: 0; left: 0; height: 236px; background: url('/sites/all/themes/guts/images/thermo_overlay.gif') no-repeat bottom left; z-index: 50; }
#thermometer .markers { color: #666; }
#thermometer .markers div { float: left; }
#thermometer .marker_1 { padding: 0 48px 0 120px; }
#thermometer .marker_2, #thermometer .marker_3, #thermometer .marker_4, #thermometer .marker_5 { padding: 0 48px; }
#thermometer .marker_6 { color: #e03831; font-family: "Impact", "Arial Black", "Arial", sans-serif; font-size: 1.4em; float: right !important; margin-right: 20px; }
.raiseby { float: left; width: 340px; text-align: center; font-family: "Impact", "Arial Black", "Arial", sans-serif; color: white; }
.raiseby h4 { font-weight: normal; margin: 28px 0 0 0; color: white; font-size: 3em; text-transform: uppercase; }
.raiseby h2 { font-weight: normal; margin: 0; color: white; font-size: 4em; }
.raiseby h6 { font-weight: normal; margin: 0; color: white; font-size: 1.4em; text-transform: uppercase; }

/* Layout */
.cwg-page #main { width: auto; max-width: 960px; box-sizing: content-box; }
.cwg-panel {
  margin: 16px 0 0;
  padding: 14px 12px 26px;
  background: var(--cwg-blue-panel) url(/sites/all/themes/guts/images/bg_center.jpg) no-repeat center top;
}
h1.cwg-title {
  position: relative;
  margin: 0 0 14px;
  padding: 10px 18px 11px 42px;
  background: rgba(80, 189, 250, .5);
  border-top: 1px solid #fff;
  border-bottom: 1px solid #fff;
  color: #fff;
  font: normal 31px/1.2 var(--cwg-display);
  letter-spacing: .005em;
  text-shadow: 0 1px 2px rgba(5, 30, 110, .35);
}
h1.cwg-title::before {
  content: "\2605";
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  font: 20px/1 Arial, sans-serif;
  color: #fff;
}
.cwg-card {
  background: #fff;
  border-radius: 6px;
  padding: 0 32px 26px;
  box-shadow: 0 2px 0 rgba(5, 30, 110, .25);
  overflow: hidden;
}

/* Article typography */
.cwg { font-family: var(--cwg-text); font-size: 14px; line-height: 1.72; color: var(--cwg-ink); }
.cwg p { margin: 0 0 14px; line-height: 1.72; }
.cwg a { color: var(--cwg-blue-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; text-decoration-color: rgba(14, 56, 197, .45); }
.cwg a:hover { color: var(--cwg-red); text-decoration-color: currentColor; }
.cwg h2 {
  position: relative;
  margin: 40px 0 14px;
  padding-left: 26px;
  font: normal 26px/1.2 var(--cwg-display);
  color: var(--cwg-blue-ink);
  letter-spacing: .005em;
}
.cwg h2::before {
  content: "\2605";
  position: absolute;
  left: 0;
  top: .2em;
  font: 18px/1 Arial, sans-serif;
  color: var(--cwg-red);
}
.cwg-sec { border-top: 1px solid var(--cwg-line); margin-top: 34px; }
.cwg-sec > h2 { margin-top: 30px; }
.cwg-sec--tint { margin: 34px -32px 0; padding: 4px 32px 18px; background: var(--cwg-sky); border-top: 0; }
.cwg-sec--tint + .cwg-sec { border-top: 0; }

/* Opening: photo to the card edges, intro card over it */
.cwg-hero { margin: 0 -32px; }
.cwg-hero img, .cwg-band img { display: block; width: 100%; height: auto; }
.cwg-lead {
  position: relative;
  margin: -78px 0 0;
  padding: 22px 26px 8px;
  background: #fff;
  border-top: 4px solid var(--cwg-red);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 14px 30px -12px rgba(12, 66, 211, .35);
}
.cwg-lead p { font-size: 16px; line-height: 1.7; color: #262b36; }

/* Photo band with a sheet laid over its lower edge */
.cwg-band { margin: 26px -32px 0; }
.cwg-sheet {
  position: relative;
  margin: -96px 0 18px;
  padding: 18px 18px 6px;
  background: #fff;
  border-top: 4px solid var(--cwg-blue-panel);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 14px 30px -12px rgba(12, 66, 211, .38);
}

/* Tables */
.cwg-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 18px 0 20px; }
.cwg-sheet .cwg-tablewrap { margin: 0 0 12px; }
.cwg-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; line-height: 1.55; }
.cwg-table th {
  padding: 11px 14px;
  background: var(--cwg-blue-panel);
  color: #fff;
  text-align: left;
  font-weight: bold;
  vertical-align: bottom;
}
.cwg-table th:first-child { border-top-left-radius: 4px; }
.cwg-table th:last-child { border-top-right-radius: 4px; }
.cwg-table td { padding: 11px 14px; border-bottom: 1px solid var(--cwg-line); vertical-align: top; }
.cwg-table tbody tr:nth-child(even) td { background: var(--cwg-sky); }
.cwg-table td:first-child { font-weight: bold; color: #1d2a4d; }
.cwg-table .cwg-blank { color: #8a93a8; letter-spacing: .04em; white-space: nowrap; }

/* Dated record table */
.cwg-table--record td:first-child { font: normal 17px/1.25 var(--cwg-display); color: var(--cwg-red); width: 15%; }
.cwg-table--record th:last-child { background: var(--cwg-red); }
.cwg-table--record td:last-child { background: var(--cwg-red-tint) !important; }

/* Worked example and closing note */
.cwg-example {
  margin: 4px 0 18px;
  padding: 16px 20px 2px;
  background: var(--cwg-sky);
  border-left: 4px solid var(--cwg-blue-panel);
  border-radius: 0 4px 4px 0;
}
.cwg-note {
  margin: 22px 0 6px;
  padding: 14px 20px 1px;
  background: var(--cwg-red-tint);
  border-left: 4px solid var(--cwg-red);
  border-radius: 0 4px 4px 0;
}
.cwg-note p { font-size: 13px; color: #4a4f5c; }

/* Numbered questions */
ol.cwg-questions {
  list-style: none;
  counter-reset: cwgq;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0 22px;
  padding: 0;
}
ol.cwg-questions li {
  counter-increment: cwgq;
  position: relative;
  margin: 0;
  padding: 14px 18px 14px 62px;
  background: var(--cwg-sky);
  border: 1px solid var(--cwg-line);
  border-radius: 6px;
  line-height: 1.55;
}
ol.cwg-questions li::before {
  content: counter(cwgq);
  position: absolute;
  left: 18px;
  top: 10px;
  font: normal 34px/1 var(--cwg-display);
  color: var(--cwg-red);
}

.cwg-home { margin: 26px 0 0; padding-top: 14px; border-top: 1px solid var(--cwg-line); font-size: 13px; }
.cwg-home a { color: var(--cwg-blue-ink); }

/* Narrower screens: scale the fixed header, let the footer wrap */
@media (max-width: 999px) {
  .cwg-page #header { zoom: .76; }
  .cwg-page #wrapper { background-size: 957px auto; }
  .cwg-page #disclaimer { width: auto; height: auto; margin: 10px 12px 30px; padding-bottom: 58px; background-size: min(589px, 100%) auto; display: flow-root; }
}
@media (max-width: 759px) {
  .cwg-page #header { zoom: .6; }
  .cwg-page #wrapper { background-size: 755px auto; }
  .cwg-page #main { padding: 0 8px; }
  .cwg-panel { margin-top: 10px; padding: 10px 8px 16px; }
  .cwg-card { padding: 0 18px 20px; }
  .cwg-hero, .cwg-band { margin-left: -18px; margin-right: -18px; }
  .cwg-sec--tint { margin-left: -18px; margin-right: -18px; padding-left: 18px; padding-right: 18px; }
  .cwg-lead { margin-top: -40px; padding: 16px 18px 4px; }
  .cwg-lead p { font-size: 15px; }
  .cwg-sheet { margin-top: -48px; padding: 14px 12px 4px; }
  h1.cwg-title { font-size: 25px; padding: 9px 12px 10px 34px; }
  h1.cwg-title::before { left: 11px; top: 17px; transform: none; font-size: 16px; }
  .cwg { font-size: 15px; }
  .cwg h2 { font-size: 23px; padding-left: 23px; }
  .cwg h2::before { font-size: 16px; }
  ol.cwg-questions { grid-template-columns: 1fr; }
}
@media (max-width: 599px) {
  .cwg-page #header { zoom: .47; }
  .cwg-page #wrapper { background-size: 592px auto; }
  /* wide tables turn into stacked cards */
  .cwg-table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cwg-table--stack, .cwg-table--stack tbody, .cwg-table--stack tr, .cwg-table--stack td { display: block; width: auto; }
  .cwg-table--stack tr { margin: 0 0 12px; border: 1px solid var(--cwg-line); border-radius: 6px; overflow: hidden; }
  .cwg-table--stack tbody tr:nth-child(even) td { background: transparent; }
  .cwg-table--stack td { border-bottom: 1px solid var(--cwg-line); }
  .cwg-table--stack td:last-child { border-bottom: 0; }
  .cwg-table--stack td:first-child { background: var(--cwg-sky) !important; }
  .cwg-table--stack td:not(:first-child)::before { content: attr(data-label); display: block; font-size: 12px; font-weight: bold; color: var(--cwg-blue-ink); margin-bottom: 2px; }
  .cwg-table--stack.cwg-table--record td:last-child::before { color: var(--cwg-red); }
  .cwg-table--stack.cwg-table--sheet td:not(:first-child) { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
  .cwg-table--stack.cwg-table--sheet td:not(:first-child)::before { margin: 0; font-size: 13px; }
  .cwg-table--record td:first-child { width: auto; }
  .cwg-page #disclaimer { padding-bottom: 46px; background-size: min(420px, 100%) auto; }
}
@media (max-width: 479px) {
  .cwg-page #header { zoom: .38; }
  .cwg-page #wrapper { background-size: 478px auto; }
}
@media (max-width: 379px) {
  .cwg-page #header { zoom: .32; }
  .cwg-page #wrapper { background-size: 403px auto; }
  .cwg-card { padding: 0 14px 18px; }
  .cwg-hero, .cwg-band { margin-left: -14px; margin-right: -14px; }
  .cwg-sec--tint { margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px; }
  ol.cwg-questions li { padding-left: 52px; }
  ol.cwg-questions li::before { left: 14px; }
}
