@font-face {
  font-family: "Lato";
  src:
    url("/fonts/Lato-Regular.woff2") format("woff2");
  font-weight: 400 699;
}
@font-face {
  font-family: "Lato";
  src:
    url("/fonts/Lato-RegularItalic.woff2") format("woff2");
  font-weight: 400 699;
  font-style: italic;
}
@font-face {
  font-family: "Lato";
  src:
    url("/fonts/Lato-Bold.woff2") format("woff2");
  font-weight: 700 899;
}
@font-face {
  font-family: "Lato";
  src:
    url("/fonts/Lato-BoldItalic.woff2") format("woff2");
  font-weight: 700 899;
  font-style: italic;
}
@font-face {
  font-family: "Lato";
  src:
    url("/fonts/Lato-Light.woff2") format("woff2");
  font-weight: 300 399;
}
@font-face {
  font-family: "Lato";
  src:
    url("/fonts/Lato-LightItalic.woff2") format("woff2");
  font-weight: 300 399;
  font-style: italic;
}
@font-face {
  font-family: "Lato";
  src:
    url("/fonts/Lato-Black.woff2") format("woff2");
  font-weight: 900;
}
@font-face {
  font-family: "Lato";
  src:
    url("/fonts/Lato-BlackItalic.woff2") format("woff2");
  font-weight: 900;
  font-style: italic;
}
@font-face {
  font-family: "Lato";
  src:
    url("/fonts/Lato-Thin.woff2") format("woff2");
  font-weight: 100 299;
}
@font-face {
  font-family: "Lato";
  src:
    url("/fonts/Lato-ThinItalic.woff2") format("woff2");
  font-weight: 100 299;
  font-style: italic;
}

:root,
:host {
  --hfp-palestine-red: #e4312b;
  --hfp-palestine-green: #149954;
  --hfp-palestine-white: #fff;
  --hfp-palestine-black: #000;

  --hfp-pastel-red: #ed7575;
  --hfp-pastel-green: #7dcf8a;
  --hfp-pastel-white: #fff;
  --hfp-pastel-grey: #868686;
  --hfp-pastel-black: #000;
  --hfp-pastel-background: #fff3ce;

  --hfp-brand-1: #fff0f0;
  --hfp-brand-2: #fdf5e2;
  --hfp-brand-3: #fae9df;
  --hfp-brand-4: #fff1d6;
  --hfp-brand-5: #fff8d8;
  --hfp-brand-6: #fff5e5;
  --hfp-brand-7: #fff3c3;

  --hfp-israel-blue: #005eb8;
  --hfp-israel-white: #fff;

  --hfp-header-color: var(--hfp-palestine-black);

  --pico-font-family-sans-serif: "Lato", system-ui, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, Helvetica, Arial, "Helvetica Neue", sans-serif,
    var(--pico-font-family-emoji);
}

/** Color schemes */
[data-theme="light"],
:root:not([data-theme="dark"]),
:host(:not([data-theme="dark"])) {
  --pico-form-element-focus-color: var(--hfp-pastel-green);
  --pico-form-element-active-border-color: var(--hfp-pastel-green);
}


q,
blockquote,
blockquote > * {
  border-color: var(--hfp-brand-4);
  color: var(--pico-muted-color);
  font-style: italic;
}

blockquote > :last-child {
  margin-bottom: 0;
}

/* https://www.a11yproject.com/posts/how-to-hide-content/ */
.visually-hidden {
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.hfp-home {
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
}

.hfp-logo {
  height: 2.25rem;
  margin-inline-start: -8px;
}

.hfp-header {
  padding-right: var(--pico-nav-element-spacing-horizontal);
}

.hfp-card-container {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(auto-fill, minmax(150px, 480px));
    grid-template-rows: auto;
    gap: 1em;
    word-wrap: break-word;
}
.hfp-card {
    margin-bottom: 20px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
}
.no-link:hover {
  text-decoration: none !important;
}
.hfp-card:hover {
  text-decoration: underline;
}

input[type="search"] {
  max-width: 46.5rem;
}

.hfp-article-list {
	list-style: none;
	padding: 0;
}
.hfp-article-list-item {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	margin-bottom: 1em;
}
.hfp-article-list-date,
.hfp-article-list-item:before {
	--text-lightness: 90%;
	font-size: var(--font-size-small);
}
.hfp-article-list-date {
	word-spacing: -0.5px;
}
.hfp-article-list-link {
	font-size: var(--font-size-base);
	font-weight: var(--font-weight-base);
	flex-basis: calc(100% - 1.5rem);
}
.hfp-article-list-item-active .hfp-article-list-link {
	font-weight: var(--font-weight-bold);
}

.hfp-article-tag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-transform: capitalize;
	font-style: italic;
}
.hfp-article-list-item > .hfp-article-tag {
	align-self: center;
}

.hfp-article-metadata {
	font-size: 0.8em;
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.5em;
	padding: 0;
	margin: 0 0 1rem 0;
}
.hfp-article-metadata li {
  list-style: none;
}
.hfp-article-metadata time {
	margin-right: 1em;
}

.hfp-article img {
	height: auto;
	max-width: 100%;
}
.hfp-article video {
	display: block;
	margin: 2em auto;
	width: 100%;
}
.hfp-footer {
  background-color: var(--hfp-pastel-background);
  padding-top: 0;
  section {
    padding: 0 1.5em 1.5em 1.5em;
    p {
      color: var(--hfp-pastel-black);
    }

    div {
      padding-top: 2.5em;
      display: flex;
      flex-direction: column;
      gap: 0
  
      ul {
        width: 50%;
        min-width: 200px;
        padding-inline-start: 0;
      }
      li {
        list-style-type: none;
      }
    }
  }
  header span {
    display: block;
    height: 6px;
    background-color: var(--hfp-palestine-red);  
  }
  header > span {
    background-color: var(--hfp-pastel-red);    
  }
  header > span:nth-child(2) {
    background-color: var(--hfp-pastel-green);    
  }
  header > span:nth-child(3) {
    background-color: var(--hfp-pastel-grey);    
  }
}

@media only screen and (min-width: 641px) {
  .hfp-footer {
    section {
      div {
        flex-direction: row;
        gap: 25vh;
        justify-content: space-between;
      }
    }
  }
}

/* Stack in-body nav lists vertically */
nav[aria-label] ul,
nav[aria-describedby] ul {
  padding-left: 2rem;
  margin-inline: 0;
  margin-bottom: var(--pico-typography-spacing-vertical);
  list-style: square;
  flex-direction: column;
  align-items: flex-start;
}
nav[aria-label] li,
nav[aria-describedby] li {
  display: list-item;
  padding: calc(var(----pico-nav-element-spacing-vertical) * 0.5);
  margin-bottom: calc(var(--pico-typography-spacing-vertical) * 0.25);
}
